@evercam/ui 0.0.55-beta.1 → 0.0.55-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributes.json +19 -0
- package/dist/index.mjs +656 -466
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +29 -9
- package/dist/src/components/ETimelineMilestone.vue.d.ts +26 -2
- package/dist/src/index.d.ts +28 -8
- package/dist/src/types.d.ts +13 -1
- package/dist/style.css +1 -1
- package/dist/tags.json +5 -1
- package/dist/web-types.json +37 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}),
|
|
5
|
-
const ma =
|
|
1
|
+
import Ve from "vue";
|
|
2
|
+
import * as I from "d3";
|
|
3
|
+
import Ke from "moment-timezone";
|
|
4
|
+
var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), Ae = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(Ae || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
|
|
5
|
+
const ma = Ve.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
8
8
|
text: {
|
|
@@ -94,7 +94,7 @@ var ga = function() {
|
|
|
94
94
|
null,
|
|
95
95
|
null
|
|
96
96
|
);
|
|
97
|
-
const Mr = ya.exports, va =
|
|
97
|
+
const Mr = ya.exports, va = Ve.extend({
|
|
98
98
|
name: "EAvatar",
|
|
99
99
|
components: {
|
|
100
100
|
Badge: Mr
|
|
@@ -2308,7 +2308,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2308
2308
|
function P(F) {
|
|
2309
2309
|
return D.has(F);
|
|
2310
2310
|
}
|
|
2311
|
-
let
|
|
2311
|
+
let w = /* @__PURE__ */ new Set([
|
|
2312
2312
|
"xx-small",
|
|
2313
2313
|
"x-small",
|
|
2314
2314
|
"small",
|
|
@@ -2319,7 +2319,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2319
2319
|
"xxx-large"
|
|
2320
2320
|
]);
|
|
2321
2321
|
function $(F) {
|
|
2322
|
-
return
|
|
2322
|
+
return w.has(F);
|
|
2323
2323
|
}
|
|
2324
2324
|
let O = /* @__PURE__ */ new Set([
|
|
2325
2325
|
"larger",
|
|
@@ -2411,14 +2411,14 @@ var Qr = {};
|
|
|
2411
2411
|
if (P !== void 0)
|
|
2412
2412
|
return (0, n.default)(P);
|
|
2413
2413
|
if (f(C)) {
|
|
2414
|
-
let
|
|
2415
|
-
return
|
|
2414
|
+
let w = u(C, D);
|
|
2415
|
+
return w === void 0 ? void 0 : (0, n.default)(w);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
2418
|
function d(C, b = {}, { validate: D = () => !0 } = {}) {
|
|
2419
2419
|
var P;
|
|
2420
|
-
let
|
|
2421
|
-
return
|
|
2420
|
+
let w = (P = b.values) === null || P === void 0 ? void 0 : P[C];
|
|
2421
|
+
return w !== void 0 ? w : b.supportsNegativeValues && C.startsWith("-") ? h(C.slice(1), b.values, D) : u(C, D);
|
|
2422
2422
|
}
|
|
2423
2423
|
function f(C) {
|
|
2424
2424
|
return C.startsWith("[") && C.endsWith("]");
|
|
@@ -2449,8 +2449,8 @@ var Qr = {};
|
|
|
2449
2449
|
function v(C, b = {}, { tailwindConfig: D = {} } = {}) {
|
|
2450
2450
|
var P;
|
|
2451
2451
|
if (((P = b.values) === null || P === void 0 ? void 0 : P[C]) !== void 0) {
|
|
2452
|
-
var
|
|
2453
|
-
return g((
|
|
2452
|
+
var w;
|
|
2453
|
+
return g((w = b.values) === null || w === void 0 ? void 0 : w[C]);
|
|
2454
2454
|
}
|
|
2455
2455
|
let [$, O] = m(C);
|
|
2456
2456
|
if (O !== void 0) {
|
|
@@ -2525,14 +2525,14 @@ var Qr = {};
|
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let
|
|
2529
|
-
for (let $ of
|
|
2528
|
+
let w = B(C, b, D, P);
|
|
2529
|
+
for (let $ of w)
|
|
2530
2530
|
return $;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
2533
|
function* B(C, b, D, P) {
|
|
2534
|
-
let
|
|
2535
|
-
if (
|
|
2534
|
+
let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
|
|
2535
|
+
if (w && D.modifiers != null && (D.modifiers === "any" || typeof D.modifiers == "object" && (O && f(O) || O in D.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof D.modifiers == "object") {
|
|
2536
2536
|
var F, V;
|
|
2537
2537
|
let H = (V = (F = D.modifiers) === null || F === void 0 ? void 0 : F[O]) !== null && V !== void 0 ? V : null;
|
|
2538
2538
|
H !== null ? O = H : f(O) && (O = y(O));
|
|
@@ -2581,9 +2581,9 @@ var Jr = {};
|
|
|
2581
2581
|
function m(P) {
|
|
2582
2582
|
return typeof P == "function";
|
|
2583
2583
|
}
|
|
2584
|
-
function g(P, ...
|
|
2585
|
-
let $ =
|
|
2586
|
-
for (let O of
|
|
2584
|
+
function g(P, ...w) {
|
|
2585
|
+
let $ = w.pop();
|
|
2586
|
+
for (let O of w)
|
|
2587
2587
|
for (let U in O) {
|
|
2588
2588
|
let F = $(P[U], O[U]);
|
|
2589
2589
|
F === void 0 ? (0, l.default)(P[U]) && (0, l.default)(O[U]) ? P[U] = g({}, P[U], O[U], $) : P[U] = O[U] : P[U] = F;
|
|
@@ -2593,23 +2593,23 @@ var Jr = {};
|
|
|
2593
2593
|
const y = {
|
|
2594
2594
|
colors: r.default,
|
|
2595
2595
|
negative(P) {
|
|
2596
|
-
return Object.keys(P).filter((
|
|
2596
|
+
return Object.keys(P).filter((w) => P[w] !== "0").reduce((w, $) => {
|
|
2597
2597
|
let O = (0, e.default)(P[$]);
|
|
2598
|
-
return O !== void 0 && (
|
|
2598
|
+
return O !== void 0 && (w[`-${$}`] = O), w;
|
|
2599
2599
|
}, {});
|
|
2600
2600
|
},
|
|
2601
2601
|
breakpoints(P) {
|
|
2602
|
-
return Object.keys(P).filter((
|
|
2603
|
-
...
|
|
2602
|
+
return Object.keys(P).filter((w) => typeof P[w] == "string").reduce((w, $) => ({
|
|
2603
|
+
...w,
|
|
2604
2604
|
[`screen-${$}`]: P[$]
|
|
2605
2605
|
}), {});
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
|
-
function v(P, ...
|
|
2609
|
-
return m(P) ? P(...
|
|
2608
|
+
function v(P, ...w) {
|
|
2609
|
+
return m(P) ? P(...w) : P;
|
|
2610
2610
|
}
|
|
2611
2611
|
function T(P) {
|
|
2612
|
-
return P.reduce((
|
|
2612
|
+
return P.reduce((w, { extend: $ }) => g(w, $, (O, U) => O === void 0 ? [
|
|
2613
2613
|
U
|
|
2614
2614
|
] : Array.isArray(O) ? [
|
|
2615
2615
|
U,
|
|
@@ -2621,32 +2621,32 @@ var Jr = {};
|
|
|
2621
2621
|
}
|
|
2622
2622
|
function x(P) {
|
|
2623
2623
|
return {
|
|
2624
|
-
...P.reduce((
|
|
2624
|
+
...P.reduce((w, $) => (0, n.defaults)(w, $), {}),
|
|
2625
2625
|
// In order to resolve n config objects, we combine all of their `extend` properties
|
|
2626
2626
|
// into arrays instead of objects so they aren't overridden.
|
|
2627
2627
|
extend: T(P)
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function L(P,
|
|
2630
|
+
function L(P, w) {
|
|
2631
2631
|
if (Array.isArray(P) && (0, l.default)(P[0]))
|
|
2632
|
-
return P.concat(
|
|
2633
|
-
if (Array.isArray(
|
|
2632
|
+
return P.concat(w);
|
|
2633
|
+
if (Array.isArray(w) && (0, l.default)(w[0]) && (0, l.default)(P))
|
|
2634
2634
|
return [
|
|
2635
2635
|
P,
|
|
2636
|
-
...
|
|
2636
|
+
...w
|
|
2637
2637
|
];
|
|
2638
|
-
if (Array.isArray(
|
|
2639
|
-
return
|
|
2638
|
+
if (Array.isArray(w))
|
|
2639
|
+
return w;
|
|
2640
2640
|
}
|
|
2641
|
-
function E({ extend: P, ...
|
|
2642
|
-
return g(
|
|
2641
|
+
function E({ extend: P, ...w }) {
|
|
2642
|
+
return g(w, P, ($, O) => !m($) && !O.some(m) ? g({}, $, ...O, L) : (U, F) => g({}, ...[
|
|
2643
2643
|
$,
|
|
2644
2644
|
...O
|
|
2645
2645
|
].map((V) => v(V, U, F)), L));
|
|
2646
2646
|
}
|
|
2647
2647
|
function* k(P) {
|
|
2648
|
-
let
|
|
2649
|
-
if (
|
|
2648
|
+
let w = (0, a.toPath)(P);
|
|
2649
|
+
if (w.length === 0 || (yield w, Array.isArray(P)))
|
|
2650
2650
|
return;
|
|
2651
2651
|
let $ = /^(.*?)\s*\/\s*([^/]+)$/, O = P.match($);
|
|
2652
2652
|
if (O !== null) {
|
|
@@ -2655,11 +2655,11 @@ var Jr = {};
|
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
function R(P) {
|
|
2658
|
-
const
|
|
2658
|
+
const w = ($, O) => {
|
|
2659
2659
|
for (const U of k($)) {
|
|
2660
2660
|
let F = 0, V = P;
|
|
2661
2661
|
for (; V != null && F < U.length; )
|
|
2662
|
-
V = V[U[F++]], V = m(V) && (U.alpha === void 0 || F <= U.length - 1) ? V(
|
|
2662
|
+
V = V[U[F++]], V = m(V) && (U.alpha === void 0 || F <= U.length - 1) ? V(w, y) : V;
|
|
2663
2663
|
if (V !== void 0) {
|
|
2664
2664
|
if (U.alpha !== void 0) {
|
|
2665
2665
|
let H = (0, u.parseColorFormat)(V);
|
|
@@ -2670,16 +2670,16 @@ var Jr = {};
|
|
|
2670
2670
|
}
|
|
2671
2671
|
return O;
|
|
2672
2672
|
};
|
|
2673
|
-
return Object.assign(
|
|
2674
|
-
theme:
|
|
2673
|
+
return Object.assign(w, {
|
|
2674
|
+
theme: w,
|
|
2675
2675
|
...y
|
|
2676
|
-
}), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](
|
|
2676
|
+
}), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](w, y) : P[O], $), {});
|
|
2677
2677
|
}
|
|
2678
2678
|
function B(P) {
|
|
2679
|
-
let
|
|
2679
|
+
let w = [];
|
|
2680
2680
|
return P.forEach(($) => {
|
|
2681
|
-
|
|
2682
|
-
...
|
|
2681
|
+
w = [
|
|
2682
|
+
...w,
|
|
2683
2683
|
$
|
|
2684
2684
|
];
|
|
2685
2685
|
var O;
|
|
@@ -2687,14 +2687,14 @@ var Jr = {};
|
|
|
2687
2687
|
U.length !== 0 && U.forEach((F) => {
|
|
2688
2688
|
F.__isOptionsFunction && (F = F());
|
|
2689
2689
|
var V;
|
|
2690
|
-
|
|
2691
|
-
...
|
|
2690
|
+
w = [
|
|
2691
|
+
...w,
|
|
2692
2692
|
...B([
|
|
2693
2693
|
(V = F == null ? void 0 : F.config) !== null && V !== void 0 ? V : {}
|
|
2694
2694
|
])
|
|
2695
2695
|
];
|
|
2696
2696
|
});
|
|
2697
|
-
}),
|
|
2697
|
+
}), w;
|
|
2698
2698
|
}
|
|
2699
2699
|
function C(P) {
|
|
2700
2700
|
return [
|
|
@@ -2712,7 +2712,7 @@ var Jr = {};
|
|
|
2712
2712
|
], []);
|
|
2713
2713
|
}
|
|
2714
2714
|
function D(P) {
|
|
2715
|
-
let
|
|
2715
|
+
let w = [
|
|
2716
2716
|
...B(P),
|
|
2717
2717
|
{
|
|
2718
2718
|
prefix: "",
|
|
@@ -2722,10 +2722,10 @@ var Jr = {};
|
|
|
2722
2722
|
];
|
|
2723
2723
|
var $, O;
|
|
2724
2724
|
return (0, o.normalizeConfig)((0, n.defaults)({
|
|
2725
|
-
theme: R(E(x(
|
|
2726
|
-
corePlugins: C(
|
|
2725
|
+
theme: R(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
|
|
2726
|
+
corePlugins: C(w.map((U) => U.corePlugins)),
|
|
2727
2727
|
plugins: b(P.map((U) => (O = U == null ? void 0 : U.plugins) !== null && O !== void 0 ? O : []))
|
|
2728
|
-
}, ...
|
|
2728
|
+
}, ...w));
|
|
2729
2729
|
}
|
|
2730
2730
|
})(Br);
|
|
2731
2731
|
var en = {}, Aa = {
|
|
@@ -3963,7 +3963,7 @@ const Ca = {
|
|
|
3963
3963
|
"canplay",
|
|
3964
3964
|
"canplaythrough",
|
|
3965
3965
|
"statechanged"
|
|
3966
|
-
], Pa =
|
|
3966
|
+
], Pa = Ve.extend({
|
|
3967
3967
|
name: "EIcon",
|
|
3968
3968
|
props: {
|
|
3969
3969
|
icon: {
|
|
@@ -4011,7 +4011,7 @@ var Oa = function() {
|
|
|
4011
4011
|
null,
|
|
4012
4012
|
null
|
|
4013
4013
|
);
|
|
4014
|
-
const Na = Ma.exports, Ba =
|
|
4014
|
+
const Na = Ma.exports, Ba = Ve.extend({
|
|
4015
4015
|
name: "ESpinner",
|
|
4016
4016
|
props: {
|
|
4017
4017
|
dark: {
|
|
@@ -4089,7 +4089,7 @@ var $a = function() {
|
|
|
4089
4089
|
null,
|
|
4090
4090
|
null
|
|
4091
4091
|
);
|
|
4092
|
-
const sn = Ga.exports, Ha =
|
|
4092
|
+
const sn = Ga.exports, Ha = Ve.extend({
|
|
4093
4093
|
props: {
|
|
4094
4094
|
align: {
|
|
4095
4095
|
type: String,
|
|
@@ -4162,7 +4162,7 @@ var Va = function() {
|
|
|
4162
4162
|
null,
|
|
4163
4163
|
null
|
|
4164
4164
|
);
|
|
4165
|
-
const za = Wa.exports, Ya =
|
|
4165
|
+
const za = Wa.exports, Ya = Ve.extend({
|
|
4166
4166
|
props: {
|
|
4167
4167
|
alignSelf: {
|
|
4168
4168
|
type: String,
|
|
@@ -5238,17 +5238,17 @@ function wo(s) {
|
|
|
5238
5238
|
case "dvh1":
|
|
5239
5239
|
case "dvhe": {
|
|
5240
5240
|
const a = X(t, ["dvcC"])[0], o = a[2] >> 1 & 127, l = a[2] << 5 & 32 | a[3] >> 3 & 31;
|
|
5241
|
-
r += "." +
|
|
5241
|
+
r += "." + De(o) + "." + De(l);
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
case "vp09": {
|
|
5245
5245
|
const a = X(t, ["vpcC"])[0], o = a[4], l = a[5], c = a[6] >> 4 & 15;
|
|
5246
|
-
r += "." +
|
|
5246
|
+
r += "." + De(o) + "." + De(l) + "." + De(c);
|
|
5247
5247
|
break;
|
|
5248
5248
|
}
|
|
5249
5249
|
case "av01": {
|
|
5250
5250
|
const a = X(t, ["av1C"])[0], o = a[1] >>> 5, l = a[1] & 31, c = a[2] >>> 7 ? "H" : "M", u = (a[2] & 64) >> 6, h = (a[2] & 32) >> 5, d = o === 2 && u ? h ? 12 : 10 : u ? 10 : 8, f = (a[2] & 16) >> 4, m = (a[2] & 8) >> 3, g = (a[2] & 4) >> 2, y = a[2] & 3, v = 1, T = 1, x = 1, L = 0;
|
|
5251
|
-
r += "." + o + "." +
|
|
5251
|
+
r += "." + o + "." + De(l) + c + "." + De(d) + "." + f + "." + m + g + y + "." + De(v) + "." + De(T) + "." + De(x) + "." + L;
|
|
5252
5252
|
break;
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
@@ -5266,7 +5266,7 @@ function ui(s, e) {
|
|
|
5266
5266
|
function St(s) {
|
|
5267
5267
|
return ("0" + s.toString(16).toUpperCase()).slice(-2);
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5269
|
+
function De(s) {
|
|
5270
5270
|
return (s < 10 ? "0" : "") + s;
|
|
5271
5271
|
}
|
|
5272
5272
|
function ko(s, e) {
|
|
@@ -5426,7 +5426,7 @@ function As(s, e) {
|
|
|
5426
5426
|
m === n && (y && (R += 8), v && (R += 4), T && (x = z(f, R), R += 4), L && (E = z(f, R), R += 4), k && (R += 4), e.type === "video" && (a = Bo(e.codec)), X(h, ["trun"]).map((B) => {
|
|
5427
5427
|
const C = B[0], b = z(B, 0) & 16777215, D = (b & 1) !== 0;
|
|
5428
5428
|
let P = 0;
|
|
5429
|
-
const
|
|
5429
|
+
const w = (b & 4) !== 0, $ = (b & 256) !== 0;
|
|
5430
5430
|
let O = 0;
|
|
5431
5431
|
const U = (b & 512) !== 0;
|
|
5432
5432
|
let F = 0;
|
|
@@ -5434,7 +5434,7 @@ function As(s, e) {
|
|
|
5434
5434
|
let M = 0;
|
|
5435
5435
|
const Q = z(B, 4);
|
|
5436
5436
|
let Z = 8;
|
|
5437
|
-
D && (P = z(B, Z), Z += 4),
|
|
5437
|
+
D && (P = z(B, Z), Z += 4), w && (Z += 4);
|
|
5438
5438
|
let ee = P + c;
|
|
5439
5439
|
for (let ae = 0; ae < Q; ae++) {
|
|
5440
5440
|
if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (C === 0 ? M = z(B, Z) : M = mn(B, Z), Z += 4), e.type === te.VIDEO) {
|
|
@@ -6084,16 +6084,16 @@ class ke {
|
|
|
6084
6084
|
u = o.startSN = parseInt(D);
|
|
6085
6085
|
break;
|
|
6086
6086
|
case "SKIP": {
|
|
6087
|
-
const
|
|
6088
|
-
ve(o,
|
|
6089
|
-
const $ =
|
|
6087
|
+
const w = new ne(D);
|
|
6088
|
+
ve(o, w, ["RECENTLY-REMOVED-DATERANGES"]);
|
|
6089
|
+
const $ = w.decimalInteger("SKIPPED-SEGMENTS");
|
|
6090
6090
|
if (W($)) {
|
|
6091
6091
|
o.skippedSegments = $;
|
|
6092
6092
|
for (let U = $; U--; )
|
|
6093
6093
|
l.unshift(null);
|
|
6094
6094
|
u += $;
|
|
6095
6095
|
}
|
|
6096
|
-
const O =
|
|
6096
|
+
const O = w.enumeratedString("RECENTLY-REMOVED-DATERANGES");
|
|
6097
6097
|
O && (o.recentlyRemovedDateranges = O.split(" "));
|
|
6098
6098
|
break;
|
|
6099
6099
|
}
|
|
@@ -6122,16 +6122,16 @@ class ke {
|
|
|
6122
6122
|
g.tagList.push([b, D]);
|
|
6123
6123
|
break;
|
|
6124
6124
|
case "DATERANGE": {
|
|
6125
|
-
const
|
|
6126
|
-
ve(o,
|
|
6127
|
-
const $ = new nn(
|
|
6125
|
+
const w = new ne(D);
|
|
6126
|
+
ve(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), ve(o, w, w.clientAttrs);
|
|
6127
|
+
const $ = new nn(w, o.dateRanges[w.ID]);
|
|
6128
6128
|
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${D}"`), g.tagList.push(["EXT-X-DATERANGE", D]);
|
|
6129
6129
|
break;
|
|
6130
6130
|
}
|
|
6131
6131
|
case "DEFINE": {
|
|
6132
6132
|
{
|
|
6133
|
-
const
|
|
6134
|
-
ve(o,
|
|
6133
|
+
const w = new ne(D);
|
|
6134
|
+
ve(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? Wo(o, w, a) : Rs(o, w, t);
|
|
6135
6135
|
}
|
|
6136
6136
|
break;
|
|
6137
6137
|
}
|
|
@@ -6139,13 +6139,13 @@ class ke {
|
|
|
6139
6139
|
f = parseInt(D);
|
|
6140
6140
|
break;
|
|
6141
6141
|
case "KEY": {
|
|
6142
|
-
const
|
|
6143
|
-
if (
|
|
6144
|
-
if (
|
|
6142
|
+
const w = ks(D, t, o);
|
|
6143
|
+
if (w.isSupported()) {
|
|
6144
|
+
if (w.method === "NONE") {
|
|
6145
6145
|
T = void 0;
|
|
6146
6146
|
break;
|
|
6147
6147
|
}
|
|
6148
|
-
T || (T = {}), T[
|
|
6148
|
+
T || (T = {}), T[w.keyFormat] && (T = oe({}, T)), T[w.keyFormat] = w;
|
|
6149
6149
|
} else
|
|
6150
6150
|
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${D}"`);
|
|
6151
6151
|
break;
|
|
@@ -6154,10 +6154,10 @@ class ke {
|
|
|
6154
6154
|
o.startTimeOffset = Ps(D);
|
|
6155
6155
|
break;
|
|
6156
6156
|
case "MAP": {
|
|
6157
|
-
const
|
|
6158
|
-
if (ve(o,
|
|
6157
|
+
const w = new ne(D);
|
|
6158
|
+
if (ve(o, w, ["BYTERANGE", "URI"]), g.duration) {
|
|
6159
6159
|
const $ = new ai(r, t);
|
|
6160
|
-
Ms($,
|
|
6160
|
+
Ms($, w, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
|
|
6161
6161
|
} else {
|
|
6162
6162
|
const $ = g.byteRangeEndOffset;
|
|
6163
6163
|
if ($) {
|
|
@@ -6165,37 +6165,37 @@ class ke {
|
|
|
6165
6165
|
E = `${$ - O}@${O}`;
|
|
6166
6166
|
} else
|
|
6167
6167
|
E = null;
|
|
6168
|
-
Ms(g,
|
|
6168
|
+
Ms(g, w, i, T), c = g, L = !0;
|
|
6169
6169
|
}
|
|
6170
6170
|
break;
|
|
6171
6171
|
}
|
|
6172
6172
|
case "SERVER-CONTROL": {
|
|
6173
|
-
const
|
|
6174
|
-
o.canBlockReload =
|
|
6173
|
+
const w = new ne(D);
|
|
6174
|
+
o.canBlockReload = w.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = w.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && w.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = w.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = w.optionalFloat("HOLD-BACK", 0);
|
|
6175
6175
|
break;
|
|
6176
6176
|
}
|
|
6177
6177
|
case "PART-INF": {
|
|
6178
|
-
const
|
|
6179
|
-
o.partTarget =
|
|
6178
|
+
const w = new ne(D);
|
|
6179
|
+
o.partTarget = w.decimalFloatingPoint("PART-TARGET");
|
|
6180
6180
|
break;
|
|
6181
6181
|
}
|
|
6182
6182
|
case "PART": {
|
|
6183
|
-
let
|
|
6184
|
-
|
|
6185
|
-
const $ = h > 0 ?
|
|
6183
|
+
let w = o.partList;
|
|
6184
|
+
w || (w = o.partList = []);
|
|
6185
|
+
const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(D);
|
|
6186
6186
|
ve(o, U, ["BYTERANGE", "URI"]);
|
|
6187
6187
|
const F = new uo(U, g, t, O, $);
|
|
6188
|
-
|
|
6188
|
+
w.push(F), g.duration += F.duration;
|
|
6189
6189
|
break;
|
|
6190
6190
|
}
|
|
6191
6191
|
case "PRELOAD-HINT": {
|
|
6192
|
-
const
|
|
6193
|
-
ve(o,
|
|
6192
|
+
const w = new ne(D);
|
|
6193
|
+
ve(o, w, ["URI"]), o.preloadHint = w;
|
|
6194
6194
|
break;
|
|
6195
6195
|
}
|
|
6196
6196
|
case "RENDITION-REPORT": {
|
|
6197
|
-
const
|
|
6198
|
-
ve(o,
|
|
6197
|
+
const w = new ne(D);
|
|
6198
|
+
ve(o, w, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(w);
|
|
6199
6199
|
break;
|
|
6200
6200
|
}
|
|
6201
6201
|
default:
|
|
@@ -6746,7 +6746,7 @@ function Ot(s) {
|
|
|
6746
6746
|
}
|
|
6747
6747
|
return e;
|
|
6748
6748
|
}
|
|
6749
|
-
var
|
|
6749
|
+
var Ce = {
|
|
6750
6750
|
audioId3: "org.id3",
|
|
6751
6751
|
dateRange: "com.apple.quicktime.HLS",
|
|
6752
6752
|
emsg: "https://aomedia.org/emsg/ID3"
|
|
@@ -6846,7 +6846,7 @@ class nl {
|
|
|
6846
6846
|
if (a)
|
|
6847
6847
|
for (let o = 0; o < n.length; o++) {
|
|
6848
6848
|
const l = n[o].type;
|
|
6849
|
-
if (l ===
|
|
6849
|
+
if (l === Ce.emsg && !i || !r)
|
|
6850
6850
|
continue;
|
|
6851
6851
|
const c = hn(n[o].data);
|
|
6852
6852
|
if (c) {
|
|
@@ -6892,7 +6892,7 @@ class nl {
|
|
|
6892
6892
|
} = a;
|
|
6893
6893
|
if (n && (o || l)) {
|
|
6894
6894
|
let c;
|
|
6895
|
-
r === "audio" ? c = (u) => u.type ===
|
|
6895
|
+
r === "audio" ? c = (u) => u.type === Ce.audioId3 && l : r === "video" ? c = (u) => u.type === Ce.emsg && o : c = (u) => u.type === Ce.audioId3 && l || u.type === Ce.emsg && o, Fi(n, t, i, c);
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
onLevelUpdated(e, {
|
|
@@ -6951,7 +6951,7 @@ class nl {
|
|
|
6951
6951
|
const B = $s(c, f, v, {
|
|
6952
6952
|
key: E,
|
|
6953
6953
|
data: R
|
|
6954
|
-
},
|
|
6954
|
+
}, Ce.dateRange);
|
|
6955
6955
|
B && (B.id = h, this.id3Track.addCue(B), g[E] = B);
|
|
6956
6956
|
}
|
|
6957
6957
|
}
|
|
@@ -7466,7 +7466,7 @@ var me = {
|
|
|
7466
7466
|
RemoveAlternatePermanently: 3,
|
|
7467
7467
|
InsertDiscontinuity: 4,
|
|
7468
7468
|
RetryRequest: 5
|
|
7469
|
-
},
|
|
7469
|
+
}, Le = {
|
|
7470
7470
|
None: 0,
|
|
7471
7471
|
MoveAllAlternatesMatchingHost: 1,
|
|
7472
7472
|
MoveAllAlternatesMatchingHDCP: 2,
|
|
@@ -7517,7 +7517,7 @@ class Tl {
|
|
|
7517
7517
|
if ((i = t.frag) != null && i.gap) {
|
|
7518
7518
|
t.errorAction = {
|
|
7519
7519
|
action: me.DoNothing,
|
|
7520
|
-
flags:
|
|
7520
|
+
flags: Le.None
|
|
7521
7521
|
};
|
|
7522
7522
|
return;
|
|
7523
7523
|
}
|
|
@@ -7545,7 +7545,7 @@ class Tl {
|
|
|
7545
7545
|
if (a) {
|
|
7546
7546
|
const c = n.levels[n.loadLevel];
|
|
7547
7547
|
if (c && (a.type === J.AUDIO_TRACK && c.hasAudioGroup(a.groupId) || a.type === J.SUBTITLE_TRACK && c.hasSubtitleGroup(a.groupId))) {
|
|
7548
|
-
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags =
|
|
7548
|
+
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags = Le.MoveAllAlternatesMatchingHost;
|
|
7549
7549
|
return;
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
@@ -7555,7 +7555,7 @@ class Tl {
|
|
|
7555
7555
|
const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
|
|
7556
7556
|
u ? t.errorAction = {
|
|
7557
7557
|
action: me.SendAlternateToPenaltyBox,
|
|
7558
|
-
flags:
|
|
7558
|
+
flags: Le.MoveAllAlternatesMatchingHDCP,
|
|
7559
7559
|
hdcpLevel: u
|
|
7560
7560
|
} : this.keySystemError(t);
|
|
7561
7561
|
}
|
|
@@ -7574,7 +7574,7 @@ class Tl {
|
|
|
7574
7574
|
case _.BUFFER_NUDGE_ON_STALL:
|
|
7575
7575
|
t.errorAction = {
|
|
7576
7576
|
action: me.DoNothing,
|
|
7577
|
-
flags:
|
|
7577
|
+
flags: Le.None
|
|
7578
7578
|
};
|
|
7579
7579
|
return;
|
|
7580
7580
|
}
|
|
@@ -7589,7 +7589,7 @@ class Tl {
|
|
|
7589
7589
|
if (Yt(r, n, zt(e), e.response))
|
|
7590
7590
|
return {
|
|
7591
7591
|
action: me.RetryRequest,
|
|
7592
|
-
flags:
|
|
7592
|
+
flags: Le.None,
|
|
7593
7593
|
retryConfig: r,
|
|
7594
7594
|
retryCount: n
|
|
7595
7595
|
};
|
|
@@ -7604,7 +7604,7 @@ class Tl {
|
|
|
7604
7604
|
if (r && (e.details !== _.FRAG_GAP && r.fragmentError++, Yt(o, l, zt(e), e.response)))
|
|
7605
7605
|
return {
|
|
7606
7606
|
action: me.RetryRequest,
|
|
7607
|
-
flags:
|
|
7607
|
+
flags: Le.None,
|
|
7608
7608
|
retryConfig: o,
|
|
7609
7609
|
retryCount: l
|
|
7610
7610
|
};
|
|
@@ -7661,13 +7661,13 @@ class Tl {
|
|
|
7661
7661
|
if (u > -1 && i.loadLevel !== u)
|
|
7662
7662
|
return e.levelRetry = !0, this.playlistError = 0, {
|
|
7663
7663
|
action: me.SendAlternateToPenaltyBox,
|
|
7664
|
-
flags:
|
|
7664
|
+
flags: Le.None,
|
|
7665
7665
|
nextAutoLevel: u
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
7668
|
return {
|
|
7669
7669
|
action: me.SendAlternateToPenaltyBox,
|
|
7670
|
-
flags:
|
|
7670
|
+
flags: Le.MoveAllAlternatesMatchingHost
|
|
7671
7671
|
};
|
|
7672
7672
|
}
|
|
7673
7673
|
onErrorOut(e, t) {
|
|
@@ -7694,10 +7694,10 @@ class Tl {
|
|
|
7694
7694
|
nextAutoLevel: a
|
|
7695
7695
|
} = i;
|
|
7696
7696
|
switch (r) {
|
|
7697
|
-
case
|
|
7697
|
+
case Le.None:
|
|
7698
7698
|
this.switchLevel(e, a);
|
|
7699
7699
|
break;
|
|
7700
|
-
case
|
|
7700
|
+
case Le.MoveAllAlternatesMatchingHDCP:
|
|
7701
7701
|
n && (t.maxHdcpLevel = Ni[Ni.indexOf(n) - 1], i.resolved = !0), this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);
|
|
7702
7702
|
break;
|
|
7703
7703
|
}
|
|
@@ -8177,8 +8177,8 @@ class kl {
|
|
|
8177
8177
|
const C = R ? R * 8 : T;
|
|
8178
8178
|
let b = Number.POSITIVE_INFINITY, D;
|
|
8179
8179
|
for (D = t.level - 1; D > h; D--) {
|
|
8180
|
-
const
|
|
8181
|
-
if (b = this.getTimeToLoadFrag(f / 1e3, C, c *
|
|
8180
|
+
const w = x[D].maxBitrate;
|
|
8181
|
+
if (b = this.getTimeToLoadFrag(f / 1e3, C, c * w, !x[D].details), b < g)
|
|
8182
8182
|
break;
|
|
8183
8183
|
}
|
|
8184
8184
|
if (b >= B || b > c * 10)
|
|
@@ -8416,7 +8416,7 @@ class kl {
|
|
|
8416
8416
|
E = F, k = Q ? V[V.length - 1] : V[0], R = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
|
|
8417
8417
|
} else
|
|
8418
8418
|
E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
|
|
8419
|
-
const D = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3,
|
|
8419
|
+
const D = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
|
|
8420
8420
|
for (let O = i; O >= t; O--) {
|
|
8421
8421
|
var $;
|
|
8422
8422
|
const U = m[O], F = O > h;
|
|
@@ -8433,7 +8433,7 @@ class kl {
|
|
|
8433
8433
|
})) : U.supportedResult = Dn;
|
|
8434
8434
|
}
|
|
8435
8435
|
if (E && U.codecSet !== E || k && U.videoRange !== k || F && R > U.frameRate || !F && R > 0 && R < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
|
|
8436
|
-
|
|
8436
|
+
w.push(O);
|
|
8437
8437
|
continue;
|
|
8438
8438
|
}
|
|
8439
8439
|
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) || D;
|
|
@@ -8449,7 +8449,7 @@ class kl {
|
|
|
8449
8449
|
(Z <= P || !W(Z) || x && !this.bitrateTestDelay || Z < c)
|
|
8450
8450
|
) {
|
|
8451
8451
|
const ae = this.forcedAutoLevel;
|
|
8452
|
-
return O !== y && (ae === -1 || ae !== y) && (
|
|
8452
|
+
return O !== y && (ae === -1 || ae !== y) && (w.length && S.trace(`[abr] Skipped level(s) ${w.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${m[w[0]].codecs}" ${m[w[0]].videoRange}; not compatible with "${T.codecs}" ${k}`), S.info(`[abr] switch candidate:${h}->${O} adjustedbw(${Math.round(M)})-bitrate=${Math.round(M - Q)} ttfb:${P.toFixed(1)} avgDuration:${H.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${Z.toFixed(1)} firstSelection:${L} codecSet:${E} videoRange:${k} hls.loadLevel:${y}`)), L && (this.firstSelection = O), O;
|
|
8453
8453
|
}
|
|
8454
8454
|
}
|
|
8455
8455
|
return -1;
|
|
@@ -8951,7 +8951,7 @@ class Ul {
|
|
|
8951
8951
|
load(e, t) {
|
|
8952
8952
|
const i = e.url;
|
|
8953
8953
|
if (!i)
|
|
8954
|
-
return Promise.reject(new
|
|
8954
|
+
return Promise.reject(new Ge({
|
|
8955
8955
|
type: q.NETWORK_ERROR,
|
|
8956
8956
|
details: _.FRAG_LOAD_ERROR,
|
|
8957
8957
|
fatal: !1,
|
|
@@ -8988,7 +8988,7 @@ class Ul {
|
|
|
8988
8988
|
});
|
|
8989
8989
|
},
|
|
8990
8990
|
onError: (f, m, g, y) => {
|
|
8991
|
-
this.resetLoader(e, c), l(new
|
|
8991
|
+
this.resetLoader(e, c), l(new Ge({
|
|
8992
8992
|
type: q.NETWORK_ERROR,
|
|
8993
8993
|
details: _.FRAG_LOAD_ERROR,
|
|
8994
8994
|
fatal: !1,
|
|
@@ -9003,7 +9003,7 @@ class Ul {
|
|
|
9003
9003
|
}));
|
|
9004
9004
|
},
|
|
9005
9005
|
onAbort: (f, m, g) => {
|
|
9006
|
-
this.resetLoader(e, c), l(new
|
|
9006
|
+
this.resetLoader(e, c), l(new Ge({
|
|
9007
9007
|
type: q.NETWORK_ERROR,
|
|
9008
9008
|
details: _.INTERNAL_ABORTED,
|
|
9009
9009
|
fatal: !1,
|
|
@@ -9014,7 +9014,7 @@ class Ul {
|
|
|
9014
9014
|
}));
|
|
9015
9015
|
},
|
|
9016
9016
|
onTimeout: (f, m, g) => {
|
|
9017
|
-
this.resetLoader(e, c), l(new
|
|
9017
|
+
this.resetLoader(e, c), l(new Ge({
|
|
9018
9018
|
type: q.NETWORK_ERROR,
|
|
9019
9019
|
details: _.FRAG_LOAD_TIMEOUT,
|
|
9020
9020
|
fatal: !1,
|
|
@@ -9063,7 +9063,7 @@ class Ul {
|
|
|
9063
9063
|
i(v), o(v);
|
|
9064
9064
|
},
|
|
9065
9065
|
onError: (f, m, g, y) => {
|
|
9066
|
-
this.resetLoader(e, c), l(new
|
|
9066
|
+
this.resetLoader(e, c), l(new Ge({
|
|
9067
9067
|
type: q.NETWORK_ERROR,
|
|
9068
9068
|
details: _.FRAG_LOAD_ERROR,
|
|
9069
9069
|
fatal: !1,
|
|
@@ -9079,7 +9079,7 @@ class Ul {
|
|
|
9079
9079
|
}));
|
|
9080
9080
|
},
|
|
9081
9081
|
onAbort: (f, m, g) => {
|
|
9082
|
-
e.stats.aborted = t.stats.aborted, this.resetLoader(e, c), l(new
|
|
9082
|
+
e.stats.aborted = t.stats.aborted, this.resetLoader(e, c), l(new Ge({
|
|
9083
9083
|
type: q.NETWORK_ERROR,
|
|
9084
9084
|
details: _.INTERNAL_ABORTED,
|
|
9085
9085
|
fatal: !1,
|
|
@@ -9091,7 +9091,7 @@ class Ul {
|
|
|
9091
9091
|
}));
|
|
9092
9092
|
},
|
|
9093
9093
|
onTimeout: (f, m, g) => {
|
|
9094
|
-
this.resetLoader(e, c), l(new
|
|
9094
|
+
this.resetLoader(e, c), l(new Ge({
|
|
9095
9095
|
type: q.NETWORK_ERROR,
|
|
9096
9096
|
details: _.FRAG_LOAD_TIMEOUT,
|
|
9097
9097
|
fatal: !1,
|
|
@@ -9149,9 +9149,9 @@ function Xs(s, e) {
|
|
|
9149
9149
|
error: t,
|
|
9150
9150
|
networkDetails: null
|
|
9151
9151
|
};
|
|
9152
|
-
return e && (i.part = e), (e || s).stats.aborted = !0, new
|
|
9152
|
+
return e && (i.part = e), (e || s).stats.aborted = !0, new Ge(i);
|
|
9153
9153
|
}
|
|
9154
|
-
class
|
|
9154
|
+
class Ge extends Error {
|
|
9155
9155
|
constructor(e) {
|
|
9156
9156
|
super(e.error.message), this.data = void 0, this.data = e;
|
|
9157
9157
|
}
|
|
@@ -9238,12 +9238,12 @@ class Kl {
|
|
|
9238
9238
|
const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], h = o[3], d = this.uint8ArrayToUint32Array_(i);
|
|
9239
9239
|
let f = d[0], m = d[1], g = d[2], y = d[3];
|
|
9240
9240
|
const v = new Int32Array(e), T = new Int32Array(v.length);
|
|
9241
|
-
let x, L, E, k, R, B, C, b, D, P,
|
|
9241
|
+
let x, L, E, k, R, B, C, b, D, P, w, $, O, U;
|
|
9242
9242
|
const F = this.networkToHostOrderSwap;
|
|
9243
9243
|
for (; t < v.length; ) {
|
|
9244
|
-
for (D = F(v[t]), P = F(v[t + 1]),
|
|
9244
|
+
for (D = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), R = D ^ n[0], B = $ ^ n[1], C = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
|
|
9245
9245
|
x = l[R >>> 24] ^ c[B >> 16 & 255] ^ u[C >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[C >> 16 & 255] ^ u[b >> 8 & 255] ^ h[R & 255] ^ n[O + 1], E = l[C >>> 24] ^ c[b >> 16 & 255] ^ u[R >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[R >> 16 & 255] ^ u[B >> 8 & 255] ^ h[C & 255] ^ n[O + 3], R = x, B = L, C = E, b = k, O = O + 4;
|
|
9246
|
-
x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = D, m = P, g =
|
|
9246
|
+
x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = D, m = P, g = w, y = $, t = t + 4;
|
|
9247
9247
|
}
|
|
9248
9248
|
return T.buffer;
|
|
9249
9249
|
}
|
|
@@ -10129,7 +10129,7 @@ class cs {
|
|
|
10129
10129
|
pts: this.lastPTS,
|
|
10130
10130
|
dts: this.lastPTS,
|
|
10131
10131
|
data: i,
|
|
10132
|
-
type:
|
|
10132
|
+
type: Ce.audioId3,
|
|
10133
10133
|
duration: Number.POSITIVE_INFINITY
|
|
10134
10134
|
}); r < c; ) {
|
|
10135
10135
|
if (this.canParse(e, r)) {
|
|
@@ -10140,7 +10140,7 @@ class cs {
|
|
|
10140
10140
|
pts: this.lastPTS,
|
|
10141
10141
|
dts: this.lastPTS,
|
|
10142
10142
|
data: i,
|
|
10143
|
-
type:
|
|
10143
|
+
type: Ce.audioId3,
|
|
10144
10144
|
duration: Number.POSITIVE_INFINITY
|
|
10145
10145
|
}), r += i.length, n = r) : r++;
|
|
10146
10146
|
if (r === c && n !== c) {
|
|
@@ -10513,7 +10513,7 @@ class uc {
|
|
|
10513
10513
|
len: c.byteLength,
|
|
10514
10514
|
dts: o,
|
|
10515
10515
|
pts: o,
|
|
10516
|
-
type:
|
|
10516
|
+
type: Ce.emsg,
|
|
10517
10517
|
duration: l
|
|
10518
10518
|
});
|
|
10519
10519
|
}
|
|
@@ -10993,12 +10993,12 @@ class mc {
|
|
|
10993
10993
|
}
|
|
10994
10994
|
}
|
|
10995
10995
|
const ue = 188;
|
|
10996
|
-
class
|
|
10996
|
+
class ze {
|
|
10997
10997
|
constructor(e, t, i) {
|
|
10998
10998
|
this.observer = void 0, this.config = void 0, this.typeSupported = void 0, this.sampleAes = null, this.pmtParsed = !1, this.audioCodec = void 0, this.videoCodec = void 0, this._duration = 0, this._pmtId = -1, this._videoTrack = void 0, this._audioTrack = void 0, this._id3Track = void 0, this._txtTrack = void 0, this.aacOverFlow = null, this.remainderData = null, this.videoParser = void 0, this.observer = e, this.config = t, this.typeSupported = i, this.videoParser = new fc();
|
|
10999
10999
|
}
|
|
11000
11000
|
static probe(e) {
|
|
11001
|
-
const t =
|
|
11001
|
+
const t = ze.syncOffset(e);
|
|
11002
11002
|
return t > 0 && S.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`), t !== -1;
|
|
11003
11003
|
}
|
|
11004
11004
|
static syncOffset(e) {
|
|
@@ -11040,7 +11040,7 @@ class We {
|
|
|
11040
11040
|
* Resets all internal track instances of the demuxer.
|
|
11041
11041
|
*/
|
|
11042
11042
|
resetInitSegment(e, t, i, r) {
|
|
11043
|
-
this.pmtParsed = !1, this._pmtId = -1, this._videoTrack =
|
|
11043
|
+
this.pmtParsed = !1, this._pmtId = -1, this._videoTrack = ze.createTrack("video"), this._audioTrack = ze.createTrack("audio", r), this._id3Track = ze.createTrack("id3"), this._txtTrack = ze.createTrack("text"), this._audioTrack.segmentCodec = "aac", this.aacOverFlow = null, this.remainderData = null, this.audioCodec = t, this.videoCodec = i, this._duration = r;
|
|
11044
11044
|
}
|
|
11045
11045
|
resetTimeStamp() {
|
|
11046
11046
|
}
|
|
@@ -11064,7 +11064,7 @@ class We {
|
|
|
11064
11064
|
id3Track: l,
|
|
11065
11065
|
textTrack: c
|
|
11066
11066
|
};
|
|
11067
|
-
const L = Math.max(0,
|
|
11067
|
+
const L = Math.max(0, ze.syncOffset(e));
|
|
11068
11068
|
x -= (x - L) % ue, x < e.byteLength && !r && (this.remainderData = new Uint8Array(e.buffer, x, e.buffer.byteLength - x));
|
|
11069
11069
|
let E = 0;
|
|
11070
11070
|
for (let R = L; R < x; R += ue)
|
|
@@ -11296,7 +11296,7 @@ class We {
|
|
|
11296
11296
|
return;
|
|
11297
11297
|
}
|
|
11298
11298
|
const i = oe({}, t, {
|
|
11299
|
-
type: this._videoTrack ?
|
|
11299
|
+
type: this._videoTrack ? Ce.emsg : Ce.audioId3,
|
|
11300
11300
|
duration: Number.POSITIVE_INFINITY
|
|
11301
11301
|
});
|
|
11302
11302
|
e.samples.push(i);
|
|
@@ -11489,7 +11489,7 @@ class Qs {
|
|
|
11489
11489
|
}
|
|
11490
11490
|
}
|
|
11491
11491
|
}
|
|
11492
|
-
const
|
|
11492
|
+
const We = Math.pow(2, 32) - 1;
|
|
11493
11493
|
class A {
|
|
11494
11494
|
static init() {
|
|
11495
11495
|
A.types = {
|
|
@@ -11754,7 +11754,7 @@ class A {
|
|
|
11754
11754
|
}
|
|
11755
11755
|
static mdhd(e, t) {
|
|
11756
11756
|
t *= e;
|
|
11757
|
-
const i = Math.floor(t / (
|
|
11757
|
+
const i = Math.floor(t / (We + 1)), r = Math.floor(t % (We + 1));
|
|
11758
11758
|
return A.box(A.types.mdhd, new Uint8Array([
|
|
11759
11759
|
1,
|
|
11760
11760
|
// version 1
|
|
@@ -11839,7 +11839,7 @@ class A {
|
|
|
11839
11839
|
}
|
|
11840
11840
|
static mvhd(e, t) {
|
|
11841
11841
|
t *= e;
|
|
11842
|
-
const i = Math.floor(t / (
|
|
11842
|
+
const i = Math.floor(t / (We + 1)), r = Math.floor(t % (We + 1)), n = new Uint8Array([
|
|
11843
11843
|
1,
|
|
11844
11844
|
// version 1
|
|
11845
11845
|
0,
|
|
@@ -12229,7 +12229,7 @@ class A {
|
|
|
12229
12229
|
return e.type === "audio" ? e.segmentCodec === "mp3" && e.codec === "mp3" ? A.box(A.types.stsd, A.STSD, A.mp3(e)) : e.segmentCodec === "ac3" ? A.box(A.types.stsd, A.STSD, A.ac3(e)) : A.box(A.types.stsd, A.STSD, A.mp4a(e)) : A.box(A.types.stsd, A.STSD, A.avc1(e));
|
|
12230
12230
|
}
|
|
12231
12231
|
static tkhd(e) {
|
|
12232
|
-
const t = e.id, i = e.duration * e.timescale, r = e.width, n = e.height, a = Math.floor(i / (
|
|
12232
|
+
const t = e.id, i = e.duration * e.timescale, r = e.width, n = e.height, a = Math.floor(i / (We + 1)), o = Math.floor(i % (We + 1));
|
|
12233
12233
|
return A.box(A.types.tkhd, new Uint8Array([
|
|
12234
12234
|
1,
|
|
12235
12235
|
// version 1
|
|
@@ -12344,7 +12344,7 @@ class A {
|
|
|
12344
12344
|
]));
|
|
12345
12345
|
}
|
|
12346
12346
|
static traf(e, t) {
|
|
12347
|
-
const i = A.sdtp(e), r = e.id, n = Math.floor(t / (
|
|
12347
|
+
const i = A.sdtp(e), r = e.id, n = Math.floor(t / (We + 1)), a = Math.floor(t % (We + 1));
|
|
12348
12348
|
return A.box(
|
|
12349
12349
|
A.types.traf,
|
|
12350
12350
|
A.box(A.types.tfhd, new Uint8Array([
|
|
@@ -12549,12 +12549,12 @@ class Mt {
|
|
|
12549
12549
|
} else
|
|
12550
12550
|
h = this.generateIS(e, t, n, a);
|
|
12551
12551
|
const D = this.isVideoContiguous;
|
|
12552
|
-
let P = -1,
|
|
12552
|
+
let P = -1, w;
|
|
12553
12553
|
if (E && (P = bc(t.samples), !D && this.config.forceKeyFrameOnDiscontinuity))
|
|
12554
12554
|
if (m = !0, P > 0) {
|
|
12555
12555
|
S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
|
|
12556
12556
|
const $ = this.getVideoStartPts(t.samples);
|
|
12557
|
-
t.samples = t.samples.slice(P), t.dropped += P, y += (t.samples[0].pts - $) / t.inputTimeScale,
|
|
12557
|
+
t.samples = t.samples.slice(P), t.dropped += P, y += (t.samples[0].pts - $) / t.inputTimeScale, w = y;
|
|
12558
12558
|
} else
|
|
12559
12559
|
P === -1 && (S.warn(`[mp4-remuxer]: No keyframe found out of ${x} video samples`), m = !1);
|
|
12560
12560
|
if (this.ISGenerated) {
|
|
@@ -12569,7 +12569,7 @@ class Mt {
|
|
|
12569
12569
|
}
|
|
12570
12570
|
} else
|
|
12571
12571
|
E && (c = this.remuxVideo(t, y, D, 0));
|
|
12572
|
-
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS =
|
|
12572
|
+
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
|
|
12573
12573
|
}
|
|
12574
12574
|
}
|
|
12575
12575
|
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f = Vn(i, n, this._initPTS, this._initDTS)), r.samples.length && (d = Kn(r, n, this._initPTS))), {
|
|
@@ -12695,7 +12695,7 @@ class Mt {
|
|
|
12695
12695
|
}
|
|
12696
12696
|
const b = new DataView(C.buffer);
|
|
12697
12697
|
b.setUint32(0, B), C.set(A.types.mdat, 4);
|
|
12698
|
-
let D = !1, P = Number.POSITIVE_INFINITY,
|
|
12698
|
+
let D = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
|
|
12699
12699
|
for (let H = 0; H < l; H++) {
|
|
12700
12700
|
const M = a[H], Q = M.units;
|
|
12701
12701
|
let Z = 0;
|
|
@@ -12715,7 +12715,7 @@ class Mt {
|
|
|
12715
12715
|
d = fe;
|
|
12716
12716
|
}
|
|
12717
12717
|
const ae = Math.round(M.pts - M.dts);
|
|
12718
|
-
P = Math.min(P, d), $ = Math.max($, d),
|
|
12718
|
+
P = Math.min(P, d), $ = Math.max($, d), w = Math.min(w, ee), O = Math.max(O, ee), o.push(new er(M.key, d, Z, ae));
|
|
12719
12719
|
}
|
|
12720
12720
|
if (o.length) {
|
|
12721
12721
|
if (st) {
|
|
@@ -12723,7 +12723,7 @@ class Mt {
|
|
|
12723
12723
|
const H = o[0].flags;
|
|
12724
12724
|
H.dependsOn = 2, H.isNonSync = 0;
|
|
12725
12725
|
}
|
|
12726
|
-
} else if (yi && O -
|
|
12726
|
+
} else if (yi && O - w < $ - P && L / $ < 0.025 && o[0].cts === 0) {
|
|
12727
12727
|
S.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");
|
|
12728
12728
|
let H = f;
|
|
12729
12729
|
for (let M = 0, Q = o.length; M < Q; M++) {
|
|
@@ -12837,13 +12837,13 @@ class Mt {
|
|
|
12837
12837
|
samples: f
|
|
12838
12838
|
}));
|
|
12839
12839
|
e.samples = [];
|
|
12840
|
-
const P = L / a,
|
|
12840
|
+
const P = L / a, w = v / a, O = {
|
|
12841
12841
|
data1: D,
|
|
12842
12842
|
data2: k,
|
|
12843
12843
|
startPTS: P,
|
|
12844
|
-
endPTS:
|
|
12844
|
+
endPTS: w,
|
|
12845
12845
|
startDTS: P,
|
|
12846
|
-
endDTS:
|
|
12846
|
+
endDTS: w,
|
|
12847
12847
|
type: "audio",
|
|
12848
12848
|
hasAudio: !0,
|
|
12849
12849
|
hasVideo: !1,
|
|
@@ -13038,17 +13038,17 @@ function tr(s, e) {
|
|
|
13038
13038
|
}
|
|
13039
13039
|
return S.warn(`Unhandled video codec "${t}"`), t === "hvc1" || t === "hev1" ? "hvc1.1.6.L120.90" : t === "av01" ? "av01.0.04M.08" : "avc1.42e01e";
|
|
13040
13040
|
}
|
|
13041
|
-
let
|
|
13041
|
+
let He;
|
|
13042
13042
|
try {
|
|
13043
|
-
|
|
13043
|
+
He = self.performance.now.bind(self.performance);
|
|
13044
13044
|
} catch {
|
|
13045
|
-
S.debug("Unable to use Performance API on this environment"),
|
|
13045
|
+
S.debug("Unable to use Performance API on this environment"), He = lt == null ? void 0 : lt.Date.now;
|
|
13046
13046
|
}
|
|
13047
13047
|
const Nt = [{
|
|
13048
13048
|
demux: uc,
|
|
13049
13049
|
remux: Ac
|
|
13050
13050
|
}, {
|
|
13051
|
-
demux:
|
|
13051
|
+
demux: ze,
|
|
13052
13052
|
remux: Mt
|
|
13053
13053
|
}, {
|
|
13054
13054
|
demux: lc,
|
|
@@ -13070,7 +13070,7 @@ class ir {
|
|
|
13070
13070
|
}
|
|
13071
13071
|
push(e, t, i, r) {
|
|
13072
13072
|
const n = i.transmuxing;
|
|
13073
|
-
n.executeStart =
|
|
13073
|
+
n.executeStart = He();
|
|
13074
13074
|
let a = new Uint8Array(e);
|
|
13075
13075
|
const {
|
|
13076
13076
|
currentTransmuxState: o,
|
|
@@ -13096,7 +13096,7 @@ class ir {
|
|
|
13096
13096
|
if (B.isSync()) {
|
|
13097
13097
|
let C = B.softwareDecrypt(a, L.key.buffer, L.iv.buffer);
|
|
13098
13098
|
if (i.part > -1 && (C = B.flush()), !C)
|
|
13099
|
-
return n.executeEnd =
|
|
13099
|
+
return n.executeEnd = He(), vi(i);
|
|
13100
13100
|
a = new Uint8Array(C);
|
|
13101
13101
|
} else
|
|
13102
13102
|
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((C) => {
|
|
@@ -13114,16 +13114,16 @@ class ir {
|
|
|
13114
13114
|
fatal: !1,
|
|
13115
13115
|
error: B,
|
|
13116
13116
|
reason: B.message
|
|
13117
|
-
}), n.executeEnd =
|
|
13117
|
+
}), n.executeEnd = He(), vi(i);
|
|
13118
13118
|
}
|
|
13119
13119
|
(u || h || m || E) && this.resetInitSegment(x, g, y, T, t), (u || m || E) && this.resetInitialTimestamp(v), c || this.resetContiguity();
|
|
13120
13120
|
const k = this.transmux(a, L, f, d, i), R = this.currentTransmuxState;
|
|
13121
|
-
return R.contiguous = !0, R.discontinuity = !1, R.trackSwitch = !1, n.executeEnd =
|
|
13121
|
+
return R.contiguous = !0, R.discontinuity = !1, R.trackSwitch = !1, n.executeEnd = He(), k;
|
|
13122
13122
|
}
|
|
13123
13123
|
// Due to data caching, flush calls can produce more than one TransmuxerResult (hence the Array type)
|
|
13124
13124
|
flush(e) {
|
|
13125
13125
|
const t = e.transmuxing;
|
|
13126
|
-
t.executeStart =
|
|
13126
|
+
t.executeStart = He();
|
|
13127
13127
|
const {
|
|
13128
13128
|
decrypter: i,
|
|
13129
13129
|
currentTransmuxState: r,
|
|
@@ -13143,7 +13143,7 @@ class ir {
|
|
|
13143
13143
|
remuxer: c
|
|
13144
13144
|
} = this;
|
|
13145
13145
|
if (!l || !c)
|
|
13146
|
-
return t.executeEnd =
|
|
13146
|
+
return t.executeEnd = He(), [vi(e)];
|
|
13147
13147
|
const u = l.flush(o);
|
|
13148
13148
|
return Bt(u) ? u.then((h) => (this.flushRemux(a, h, e), a)) : (this.flushRemux(a, u, e), a);
|
|
13149
13149
|
}
|
|
@@ -13162,7 +13162,7 @@ class ir {
|
|
|
13162
13162
|
e.push({
|
|
13163
13163
|
remuxResult: u,
|
|
13164
13164
|
chunkMeta: i
|
|
13165
|
-
}), i.transmuxing.executeEnd =
|
|
13165
|
+
}), i.transmuxing.executeEnd = He();
|
|
13166
13166
|
}
|
|
13167
13167
|
resetInitialTimestamp(e) {
|
|
13168
13168
|
const {
|
|
@@ -15596,7 +15596,7 @@ const or = {
|
|
|
15596
15596
|
}, jn = function(e) {
|
|
15597
15597
|
let t = e;
|
|
15598
15598
|
return or.hasOwnProperty(e) && (t = or[e]), String.fromCharCode(t);
|
|
15599
|
-
},
|
|
15599
|
+
}, Re = 15, $e = 100, Bc = {
|
|
15600
15600
|
17: 1,
|
|
15601
15601
|
18: 3,
|
|
15602
15602
|
21: 5,
|
|
@@ -15642,7 +15642,7 @@ class Vc {
|
|
|
15642
15642
|
}
|
|
15643
15643
|
}
|
|
15644
15644
|
}
|
|
15645
|
-
const
|
|
15645
|
+
const qe = function(e) {
|
|
15646
15646
|
const t = [];
|
|
15647
15647
|
for (let i = 0; i < e.length; i++)
|
|
15648
15648
|
t.push(e[i].toString(16));
|
|
@@ -15781,19 +15781,19 @@ class Wc {
|
|
|
15781
15781
|
}
|
|
15782
15782
|
class xi {
|
|
15783
15783
|
constructor(e) {
|
|
15784
|
-
this.rows = [], this.currRow =
|
|
15785
|
-
for (let t = 0; t <
|
|
15784
|
+
this.rows = [], this.currRow = Re - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
|
|
15785
|
+
for (let t = 0; t < Re; t++)
|
|
15786
15786
|
this.rows.push(new Wc(e));
|
|
15787
15787
|
this.logger = e;
|
|
15788
15788
|
}
|
|
15789
15789
|
reset() {
|
|
15790
|
-
for (let e = 0; e <
|
|
15790
|
+
for (let e = 0; e < Re; e++)
|
|
15791
15791
|
this.rows[e].clear();
|
|
15792
|
-
this.currRow =
|
|
15792
|
+
this.currRow = Re - 1;
|
|
15793
15793
|
}
|
|
15794
15794
|
equals(e) {
|
|
15795
15795
|
let t = !0;
|
|
15796
|
-
for (let i = 0; i <
|
|
15796
|
+
for (let i = 0; i < Re; i++)
|
|
15797
15797
|
if (!this.rows[i].equals(e.rows[i])) {
|
|
15798
15798
|
t = !1;
|
|
15799
15799
|
break;
|
|
@@ -15801,12 +15801,12 @@ class xi {
|
|
|
15801
15801
|
return t;
|
|
15802
15802
|
}
|
|
15803
15803
|
copy(e) {
|
|
15804
|
-
for (let t = 0; t <
|
|
15804
|
+
for (let t = 0; t < Re; t++)
|
|
15805
15805
|
this.rows[t].copy(e.rows[t]);
|
|
15806
15806
|
}
|
|
15807
15807
|
isEmpty() {
|
|
15808
15808
|
let e = !0;
|
|
15809
|
-
for (let t = 0; t <
|
|
15809
|
+
for (let t = 0; t < Re; t++)
|
|
15810
15810
|
if (!this.rows[t].isEmpty()) {
|
|
15811
15811
|
e = !1;
|
|
15812
15812
|
break;
|
|
@@ -15838,7 +15838,7 @@ class xi {
|
|
|
15838
15838
|
this.logger.log(2, () => "pacData = " + JSON.stringify(e));
|
|
15839
15839
|
let t = e.row - 1;
|
|
15840
15840
|
if (this.nrRollUpRows && t < this.nrRollUpRows - 1 && (t = this.nrRollUpRows - 1), this.nrRollUpRows && this.currRow !== t) {
|
|
15841
|
-
for (let o = 0; o <
|
|
15841
|
+
for (let o = 0; o < Re; o++)
|
|
15842
15842
|
this.rows[o].clear();
|
|
15843
15843
|
const n = this.currRow + 1 - this.nrRollUpRows, a = this.lastOutputScreen;
|
|
15844
15844
|
if (a) {
|
|
@@ -15888,7 +15888,7 @@ class xi {
|
|
|
15888
15888
|
e = e || !1;
|
|
15889
15889
|
const t = [];
|
|
15890
15890
|
let i = "", r = -1;
|
|
15891
|
-
for (let n = 0; n <
|
|
15891
|
+
for (let n = 0; n < Re; n++) {
|
|
15892
15892
|
const a = this.rows[n].getTextString();
|
|
15893
15893
|
a && (r = n + 1, e ? t.push("Row " + r + ": '" + a + "'") : t.push(a.trim()));
|
|
15894
15894
|
}
|
|
@@ -15901,10 +15901,10 @@ class xi {
|
|
|
15901
15901
|
}
|
|
15902
15902
|
class lr {
|
|
15903
15903
|
constructor(e, t, i) {
|
|
15904
|
-
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[
|
|
15904
|
+
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
|
|
15905
15905
|
}
|
|
15906
15906
|
reset() {
|
|
15907
|
-
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[
|
|
15907
|
+
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
|
|
15908
15908
|
}
|
|
15909
15909
|
getHandler() {
|
|
15910
15910
|
return this.outputFilter;
|
|
@@ -16016,11 +16016,11 @@ class cr {
|
|
|
16016
16016
|
this.logger.time = e;
|
|
16017
16017
|
for (let o = 0; o < t.length; o += 2)
|
|
16018
16018
|
if (r = t[o] & 127, n = t[o + 1] & 127, !(r === 0 && n === 0)) {
|
|
16019
|
-
if (this.logger.log(3, "[" +
|
|
16019
|
+
if (this.logger.log(3, "[" + qe([t[o], t[o + 1]]) + "] -> (" + qe([r, n]) + ")"), i = this.parseCmd(r, n), i || (i = this.parseMidrow(r, n)), i || (i = this.parsePAC(r, n)), i || (i = this.parseBackgroundAttributes(r, n)), !i && (a = this.parseChars(r, n), a)) {
|
|
16020
16020
|
const l = this.currentChannel;
|
|
16021
16021
|
l && l > 0 ? this.channels[l].insertChars(a) : this.logger.log(2, "No channel found yet. TEXT-MODE?");
|
|
16022
16022
|
}
|
|
16023
|
-
!i && !a && this.logger.log(2, "Couldn't parse cleaned data " +
|
|
16023
|
+
!i && !a && this.logger.log(2, "Couldn't parse cleaned data " + qe([r, n]) + " orig: " + qe([t[o], t[o + 1]]));
|
|
16024
16024
|
}
|
|
16025
16025
|
}
|
|
16026
16026
|
/**
|
|
@@ -16034,7 +16034,7 @@ class cr {
|
|
|
16034
16034
|
if (!(r || n))
|
|
16035
16035
|
return !1;
|
|
16036
16036
|
if (ur(e, t, i))
|
|
16037
|
-
return rt(null, null, i), this.logger.log(3, "Repeated command (" +
|
|
16037
|
+
return rt(null, null, i), this.logger.log(3, "Repeated command (" + qe([e, t]) + ") is dropped"), !0;
|
|
16038
16038
|
const a = e === 20 || e === 21 || e === 23 ? 1 : 2, o = this.channels[a];
|
|
16039
16039
|
return e === 20 || e === 21 || e === 28 || e === 29 ? t === 32 ? o.ccRCL() : t === 33 ? o.ccBS() : t === 34 ? o.ccAOF() : t === 35 ? o.ccAON() : t === 36 ? o.ccDER() : t === 37 ? o.ccRU(2) : t === 38 ? o.ccRU(3) : t === 39 ? o.ccRU(4) : t === 40 ? o.ccFON() : t === 41 ? o.ccRDC() : t === 42 ? o.ccTR() : t === 43 ? o.ccRTD() : t === 44 ? o.ccEDM() : t === 45 ? o.ccCR() : t === 46 ? o.ccENM() : t === 47 && o.ccEOC() : o.ccTO(t - 32), rt(e, t, i), this.currentChannel = a, !0;
|
|
16040
16040
|
}
|
|
@@ -16047,7 +16047,7 @@ class cr {
|
|
|
16047
16047
|
if (e === 17 ? i = 1 : i = 2, i !== this.currentChannel)
|
|
16048
16048
|
return this.logger.log(0, "Mismatch channel in midrow parsing"), !1;
|
|
16049
16049
|
const r = this.channels[i];
|
|
16050
|
-
return r ? (r.ccMIDROW(t), this.logger.log(3, "MIDROW (" +
|
|
16050
|
+
return r ? (r.ccMIDROW(t), this.logger.log(3, "MIDROW (" + qe([e, t]) + ")"), !0) : !1;
|
|
16051
16051
|
}
|
|
16052
16052
|
return !1;
|
|
16053
16053
|
}
|
|
@@ -16094,7 +16094,7 @@ class cr {
|
|
|
16094
16094
|
} else
|
|
16095
16095
|
e >= 32 && e <= 127 && (r = t === 0 ? [e] : [e, t]);
|
|
16096
16096
|
if (r) {
|
|
16097
|
-
const a =
|
|
16097
|
+
const a = qe(r);
|
|
16098
16098
|
this.logger.log(3, "Char codes = " + a.join(",")), rt(e, t, this.cmdHistory);
|
|
16099
16099
|
}
|
|
16100
16100
|
return r;
|
|
@@ -18363,7 +18363,7 @@ class Wu {
|
|
|
18363
18363
|
const {
|
|
18364
18364
|
errorAction: i
|
|
18365
18365
|
} = t;
|
|
18366
|
-
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags ===
|
|
18366
|
+
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags === Le.MoveAllAlternatesMatchingHost) {
|
|
18367
18367
|
const r = this.levels;
|
|
18368
18368
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18369
18369
|
if (t.context) {
|
|
@@ -19519,7 +19519,7 @@ class oh {
|
|
|
19519
19519
|
this.keyUriToKeyInfo = {};
|
|
19520
19520
|
}
|
|
19521
19521
|
createKeyLoadError(e, t = _.KEY_LOAD_ERROR, i, r, n) {
|
|
19522
|
-
return new
|
|
19522
|
+
return new Ge({
|
|
19523
19523
|
type: q.NETWORK_ERROR,
|
|
19524
19524
|
details: t,
|
|
19525
19525
|
fatal: !1,
|
|
@@ -21165,7 +21165,7 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21165
21165
|
return i === 0 ? `${t}:${Ci.format(e)}` : `${i}:${Ci.format(
|
|
21166
21166
|
t
|
|
21167
21167
|
)}:${Ci.format(e)}`;
|
|
21168
|
-
}, xh =
|
|
21168
|
+
}, xh = Ve.extend({
|
|
21169
21169
|
name: "VideoPlayer",
|
|
21170
21170
|
components: {
|
|
21171
21171
|
ESpinner: sn
|
|
@@ -21463,7 +21463,7 @@ var Th = function() {
|
|
|
21463
21463
|
null
|
|
21464
21464
|
);
|
|
21465
21465
|
const bh = Sh.exports, Zt = (s) => {
|
|
21466
|
-
const e =
|
|
21466
|
+
const e = I.utcFormat("%_d")(s), i = {
|
|
21467
21467
|
1: "st",
|
|
21468
21468
|
2: "nd",
|
|
21469
21469
|
3: "rd"
|
|
@@ -21471,23 +21471,23 @@ const bh = Sh.exports, Zt = (s) => {
|
|
|
21471
21471
|
return `${e}${i}`;
|
|
21472
21472
|
}, Ar = (s) => new Date(
|
|
21473
21473
|
Date.UTC(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate() + 1)
|
|
21474
|
-
).getUTCDate() === 1 ? "" :
|
|
21475
|
-
const e =
|
|
21474
|
+
).getUTCDate() === 1 ? "" : I.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(I.utcFormat("%H")(s)) ? "" : `${I.utcFormat("%H")(s)}h`, Ye = (s) => {
|
|
21475
|
+
const e = I.utcFormat("%H:%M")(s);
|
|
21476
21476
|
return e === "00:00" ? "" : e;
|
|
21477
|
-
}, _i = (s) =>
|
|
21478
|
-
const e =
|
|
21477
|
+
}, _i = (s) => I.utcFormat("%M:%S")(s), Lr = (s) => `${I.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
|
|
21478
|
+
const e = Ye(s), t = Zt(s), i = I.utcFormat("%B")(s);
|
|
21479
21479
|
return e || `${i} ${t}`;
|
|
21480
21480
|
}, Ii = (s) => {
|
|
21481
|
-
const e =
|
|
21481
|
+
const e = Ye(s), t = Number.parseInt(I.utcFormat("%H")(s)), i = Zt(s), r = I.utcFormat("%B")(s);
|
|
21482
21482
|
return e && t % 6 === 0 ? `${r} ${i} ${e}` : Yi(s);
|
|
21483
21483
|
}, pt = (s) => (e) => {
|
|
21484
|
-
const t =
|
|
21485
|
-
return !(
|
|
21484
|
+
const t = I.utcFormat("%H")(e);
|
|
21485
|
+
return !(I.utcFormat("%M")(e) === "00" && Number.parseInt(t) % s === 0);
|
|
21486
21486
|
}, wi = (s) => (e) => {
|
|
21487
|
-
const t =
|
|
21487
|
+
const t = I.utcFormat("%M")(e);
|
|
21488
21488
|
return Number.parseInt(t) % s !== 0;
|
|
21489
21489
|
}, Rr = (s) => (e) => {
|
|
21490
|
-
const t =
|
|
21490
|
+
const t = I.utcFormat("%M")(e), i = I.utcFormat("%S")(e);
|
|
21491
21491
|
return Number.parseInt(t) % s !== 0 && Number.parseInt(i) === 0;
|
|
21492
21492
|
}, K = {
|
|
21493
21493
|
_10_seconds: 25e-6,
|
|
@@ -21521,300 +21521,300 @@ const Ah = {
|
|
|
21521
21521
|
[kt.overview]: [
|
|
21522
21522
|
{
|
|
21523
21523
|
precision: K._30_seconds,
|
|
21524
|
-
interval:
|
|
21524
|
+
interval: I.utcMinute.every(2),
|
|
21525
21525
|
format: Lr
|
|
21526
21526
|
},
|
|
21527
21527
|
{
|
|
21528
21528
|
precision: K._1_minute,
|
|
21529
|
-
interval:
|
|
21529
|
+
interval: I.utcMinute.every(5),
|
|
21530
21530
|
format: Lr
|
|
21531
21531
|
},
|
|
21532
21532
|
{
|
|
21533
21533
|
precision: K._2_minutes,
|
|
21534
|
-
interval:
|
|
21534
|
+
interval: I.utcMinute.every(10),
|
|
21535
21535
|
format: Yi
|
|
21536
21536
|
},
|
|
21537
21537
|
{
|
|
21538
21538
|
precision: K._5_minutes,
|
|
21539
|
-
interval:
|
|
21539
|
+
interval: I.utcMinute.every(20),
|
|
21540
21540
|
format: Ii
|
|
21541
21541
|
},
|
|
21542
21542
|
{
|
|
21543
21543
|
precision: K._15_minutes,
|
|
21544
|
-
interval:
|
|
21544
|
+
interval: I.utcHour,
|
|
21545
21545
|
format: Ii
|
|
21546
21546
|
},
|
|
21547
21547
|
{
|
|
21548
21548
|
precision: K._30_minutes,
|
|
21549
|
-
interval:
|
|
21549
|
+
interval: I.utcHour.every(2),
|
|
21550
21550
|
format: Ii
|
|
21551
21551
|
},
|
|
21552
21552
|
{
|
|
21553
21553
|
precision: K._2_hours,
|
|
21554
|
-
interval:
|
|
21554
|
+
interval: I.utcHour.every(6),
|
|
21555
21555
|
format: (s) => {
|
|
21556
|
-
const e =
|
|
21556
|
+
const e = Ye(s), t = Zt(s), i = I.utcFormat("%B")(s);
|
|
21557
21557
|
return e || `${i} ${t}`;
|
|
21558
21558
|
}
|
|
21559
21559
|
},
|
|
21560
21560
|
{
|
|
21561
21561
|
precision: K._3_hours,
|
|
21562
|
-
interval:
|
|
21562
|
+
interval: I.utcHour.every(12),
|
|
21563
21563
|
format: Yi
|
|
21564
21564
|
},
|
|
21565
21565
|
{
|
|
21566
21566
|
precision: K._6_hours,
|
|
21567
|
-
interval:
|
|
21567
|
+
interval: I.utcHour.every(24),
|
|
21568
21568
|
format: (s) => {
|
|
21569
21569
|
const e = Zt(s);
|
|
21570
|
-
return `${
|
|
21570
|
+
return `${I.utcFormat("%b")(s)} ${e}`;
|
|
21571
21571
|
}
|
|
21572
21572
|
},
|
|
21573
21573
|
{
|
|
21574
21574
|
precision: K._2_days,
|
|
21575
|
-
interval:
|
|
21575
|
+
interval: I.utcMonth,
|
|
21576
21576
|
format: (s) => {
|
|
21577
21577
|
const t = s.getUTCMonth() === 0 && s.getUTCDate() === 1 ? "%Y – %B" : "%B";
|
|
21578
|
-
return
|
|
21578
|
+
return I.utcFormat(t)(s);
|
|
21579
21579
|
}
|
|
21580
21580
|
},
|
|
21581
21581
|
{
|
|
21582
21582
|
precision: K._2_year,
|
|
21583
|
-
interval:
|
|
21583
|
+
interval: I.utcYear.every(2),
|
|
21584
21584
|
format: "%Y"
|
|
21585
21585
|
},
|
|
21586
21586
|
{
|
|
21587
21587
|
precision: K._5_years,
|
|
21588
|
-
interval:
|
|
21588
|
+
interval: I.utcYear.every(5),
|
|
21589
21589
|
format: "%Y"
|
|
21590
21590
|
},
|
|
21591
21591
|
{
|
|
21592
21592
|
precision: K._20_years,
|
|
21593
|
-
interval:
|
|
21593
|
+
interval: I.utcYear.every(20),
|
|
21594
21594
|
format: "%Y"
|
|
21595
21595
|
},
|
|
21596
21596
|
{
|
|
21597
21597
|
precision: K._75_years,
|
|
21598
|
-
interval:
|
|
21598
|
+
interval: I.utcYear.every(75),
|
|
21599
21599
|
format: "%Y"
|
|
21600
21600
|
},
|
|
21601
21601
|
{
|
|
21602
21602
|
precision: K._300_years,
|
|
21603
|
-
interval:
|
|
21603
|
+
interval: I.utcYear.every(300),
|
|
21604
21604
|
format: "%Y"
|
|
21605
21605
|
},
|
|
21606
21606
|
{
|
|
21607
21607
|
precision: K.infinity,
|
|
21608
|
-
interval:
|
|
21608
|
+
interval: I.utcMonth.every(12),
|
|
21609
21609
|
format: "%Y"
|
|
21610
21610
|
}
|
|
21611
21611
|
],
|
|
21612
21612
|
[kt.detailed]: [
|
|
21613
21613
|
{
|
|
21614
21614
|
precision: K._10_seconds,
|
|
21615
|
-
interval:
|
|
21615
|
+
interval: I.utcSecond.every(10),
|
|
21616
21616
|
format: _i
|
|
21617
21617
|
},
|
|
21618
21618
|
{
|
|
21619
21619
|
precision: K._20_seconds,
|
|
21620
|
-
interval: (Dr =
|
|
21620
|
+
interval: (Dr = I.utcSecond.every(20)) == null ? void 0 : Dr.filter(Rr(2)),
|
|
21621
21621
|
format: _i
|
|
21622
21622
|
},
|
|
21623
21623
|
{
|
|
21624
21624
|
precision: K._30_seconds,
|
|
21625
|
-
interval: (_r =
|
|
21625
|
+
interval: (_r = I.utcSecond.every(30)) == null ? void 0 : _r.filter(Rr(2)),
|
|
21626
21626
|
format: _i
|
|
21627
21627
|
},
|
|
21628
21628
|
{
|
|
21629
21629
|
precision: K._1_minute,
|
|
21630
|
-
interval:
|
|
21631
|
-
format:
|
|
21630
|
+
interval: I.utcMinute.filter(wi(5)),
|
|
21631
|
+
format: Ye
|
|
21632
21632
|
},
|
|
21633
21633
|
{
|
|
21634
21634
|
precision: K._2_minutes,
|
|
21635
|
-
interval: (Ir =
|
|
21636
|
-
format:
|
|
21635
|
+
interval: (Ir = I.utcMinute.every(2)) == null ? void 0 : Ir.filter(wi(10)),
|
|
21636
|
+
format: Ye
|
|
21637
21637
|
},
|
|
21638
21638
|
{
|
|
21639
21639
|
precision: K._5_minutes,
|
|
21640
|
-
interval: (wr =
|
|
21641
|
-
format:
|
|
21640
|
+
interval: (wr = I.utcMinute.every(5)) == null ? void 0 : wr.filter(wi(20)),
|
|
21641
|
+
format: Ye
|
|
21642
21642
|
},
|
|
21643
21643
|
{
|
|
21644
21644
|
precision: K._15_minutes,
|
|
21645
|
-
interval: (kr =
|
|
21646
|
-
format:
|
|
21645
|
+
interval: (kr = I.utcMinute.every(15)) == null ? void 0 : kr.filter(pt(1)),
|
|
21646
|
+
format: Ye
|
|
21647
21647
|
},
|
|
21648
21648
|
{
|
|
21649
21649
|
precision: K._30_minutes,
|
|
21650
|
-
interval: (Pr =
|
|
21651
|
-
format:
|
|
21650
|
+
interval: (Pr = I.utcMinute.every(30)) == null ? void 0 : Pr.filter(pt(2)),
|
|
21651
|
+
format: Ye
|
|
21652
21652
|
},
|
|
21653
21653
|
{
|
|
21654
21654
|
precision: K._1_hour,
|
|
21655
|
-
interval:
|
|
21655
|
+
interval: I.utcHour.filter(pt(6)),
|
|
21656
21656
|
format: gt
|
|
21657
21657
|
},
|
|
21658
21658
|
{
|
|
21659
21659
|
precision: K._2_hours,
|
|
21660
|
-
interval: (Or =
|
|
21660
|
+
interval: (Or = I.utcHour.every(2)) == null ? void 0 : Or.filter(pt(6)),
|
|
21661
21661
|
format: gt
|
|
21662
21662
|
},
|
|
21663
21663
|
{
|
|
21664
21664
|
precision: K._3_hours,
|
|
21665
|
-
interval: (Fr =
|
|
21665
|
+
interval: (Fr = I.utcHour.every(3)) == null ? void 0 : Fr.filter(pt(12)),
|
|
21666
21666
|
format: gt
|
|
21667
21667
|
},
|
|
21668
21668
|
{
|
|
21669
21669
|
precision: K._4_hours,
|
|
21670
|
-
interval:
|
|
21670
|
+
interval: I.utcHour.every(4),
|
|
21671
21671
|
format: gt
|
|
21672
21672
|
},
|
|
21673
21673
|
{
|
|
21674
21674
|
precision: K._6_hours,
|
|
21675
|
-
interval:
|
|
21675
|
+
interval: I.utcHour.every(6),
|
|
21676
21676
|
format: gt
|
|
21677
21677
|
},
|
|
21678
21678
|
{
|
|
21679
21679
|
precision: K._1_day,
|
|
21680
|
-
interval:
|
|
21680
|
+
interval: I.utcDay,
|
|
21681
21681
|
format: Ar
|
|
21682
21682
|
},
|
|
21683
21683
|
{
|
|
21684
21684
|
precision: K._2_days,
|
|
21685
|
-
interval:
|
|
21685
|
+
interval: I.utcDay.every(2),
|
|
21686
21686
|
format: Ar
|
|
21687
21687
|
},
|
|
21688
21688
|
{
|
|
21689
21689
|
precision: K._1_month,
|
|
21690
|
-
interval:
|
|
21690
|
+
interval: I.utcMonth,
|
|
21691
21691
|
format: "%B"
|
|
21692
21692
|
},
|
|
21693
21693
|
{
|
|
21694
21694
|
precision: K._1_month_abbr,
|
|
21695
|
-
interval:
|
|
21695
|
+
interval: I.utcMonth,
|
|
21696
21696
|
format: "%b"
|
|
21697
21697
|
},
|
|
21698
21698
|
{
|
|
21699
21699
|
precision: K._1_month_letter,
|
|
21700
|
-
interval:
|
|
21701
|
-
format: (s) =>
|
|
21700
|
+
interval: I.utcMonth,
|
|
21701
|
+
format: (s) => I.utcFormat("%B")(s).charAt(0)
|
|
21702
21702
|
},
|
|
21703
21703
|
{
|
|
21704
21704
|
precision: K._3_months,
|
|
21705
|
-
interval:
|
|
21705
|
+
interval: I.utcMonth.every(3),
|
|
21706
21706
|
format: "Q%q"
|
|
21707
21707
|
},
|
|
21708
21708
|
{
|
|
21709
21709
|
precision: K._2_year,
|
|
21710
|
-
interval:
|
|
21710
|
+
interval: I.utcMonth.every(6),
|
|
21711
21711
|
format: "%Y"
|
|
21712
21712
|
},
|
|
21713
21713
|
{
|
|
21714
21714
|
precision: K._5_years,
|
|
21715
|
-
interval:
|
|
21715
|
+
interval: I.utcYear.every(2),
|
|
21716
21716
|
format: "%Y"
|
|
21717
21717
|
},
|
|
21718
21718
|
{
|
|
21719
21719
|
precision: K._20_years,
|
|
21720
|
-
interval:
|
|
21720
|
+
interval: I.utcYear.every(4),
|
|
21721
21721
|
format: "%Y"
|
|
21722
21722
|
},
|
|
21723
21723
|
{
|
|
21724
21724
|
precision: K._75_years,
|
|
21725
|
-
interval:
|
|
21725
|
+
interval: I.utcYear.every(25),
|
|
21726
21726
|
format: "%Y"
|
|
21727
21727
|
},
|
|
21728
21728
|
{
|
|
21729
21729
|
precision: K._300_years,
|
|
21730
|
-
interval:
|
|
21730
|
+
interval: I.utcYear.every(100),
|
|
21731
21731
|
format: "%Y"
|
|
21732
21732
|
},
|
|
21733
21733
|
{
|
|
21734
21734
|
precision: K.infinity,
|
|
21735
|
-
interval:
|
|
21735
|
+
interval: I.utcYear.every(500),
|
|
21736
21736
|
format: ""
|
|
21737
21737
|
}
|
|
21738
21738
|
],
|
|
21739
21739
|
[kt.detailedBackground]: [
|
|
21740
21740
|
{
|
|
21741
21741
|
precision: K._10_seconds,
|
|
21742
|
-
interval:
|
|
21742
|
+
interval: I.utcSecond,
|
|
21743
21743
|
format: ""
|
|
21744
21744
|
},
|
|
21745
21745
|
{
|
|
21746
21746
|
precision: K._20_seconds,
|
|
21747
|
-
interval:
|
|
21747
|
+
interval: I.utcSecond.every(5),
|
|
21748
21748
|
format: ""
|
|
21749
21749
|
},
|
|
21750
21750
|
{
|
|
21751
21751
|
precision: K._30_seconds,
|
|
21752
|
-
interval:
|
|
21752
|
+
interval: I.utcSecond.every(10),
|
|
21753
21753
|
format: ""
|
|
21754
21754
|
},
|
|
21755
21755
|
{
|
|
21756
21756
|
precision: K._1_minute,
|
|
21757
|
-
interval:
|
|
21757
|
+
interval: I.utcSecond.every(20),
|
|
21758
21758
|
format: ""
|
|
21759
21759
|
},
|
|
21760
21760
|
{
|
|
21761
21761
|
precision: K._2_minutes,
|
|
21762
|
-
interval:
|
|
21762
|
+
interval: I.utcSecond.every(30),
|
|
21763
21763
|
format: ""
|
|
21764
21764
|
},
|
|
21765
21765
|
{
|
|
21766
21766
|
precision: K._5_minutes,
|
|
21767
|
-
interval:
|
|
21767
|
+
interval: I.utcMinute,
|
|
21768
21768
|
format: ""
|
|
21769
21769
|
},
|
|
21770
21770
|
{
|
|
21771
21771
|
precision: K._15_minutes,
|
|
21772
|
-
interval:
|
|
21772
|
+
interval: I.utcMinute.every(3),
|
|
21773
21773
|
format: ""
|
|
21774
21774
|
},
|
|
21775
21775
|
{
|
|
21776
21776
|
precision: K._30_minutes,
|
|
21777
|
-
interval:
|
|
21777
|
+
interval: I.utcMinute.every(6),
|
|
21778
21778
|
format: ""
|
|
21779
21779
|
},
|
|
21780
21780
|
{
|
|
21781
21781
|
precision: K._1_hour,
|
|
21782
|
-
interval:
|
|
21782
|
+
interval: I.utcMinute.every(15),
|
|
21783
21783
|
format: ""
|
|
21784
21784
|
},
|
|
21785
21785
|
{
|
|
21786
21786
|
precision: K._2_hours,
|
|
21787
|
-
interval:
|
|
21787
|
+
interval: I.utcMinute.every(30),
|
|
21788
21788
|
format: ""
|
|
21789
21789
|
},
|
|
21790
21790
|
{
|
|
21791
21791
|
precision: K._3_hours,
|
|
21792
|
-
interval:
|
|
21792
|
+
interval: I.utcHour,
|
|
21793
21793
|
format: ""
|
|
21794
21794
|
},
|
|
21795
21795
|
{
|
|
21796
21796
|
precision: K._4_hours,
|
|
21797
|
-
interval:
|
|
21797
|
+
interval: I.utcHour,
|
|
21798
21798
|
format: ""
|
|
21799
21799
|
},
|
|
21800
21800
|
{
|
|
21801
21801
|
precision: K._6_hours,
|
|
21802
|
-
interval:
|
|
21802
|
+
interval: I.utcMinute.every(120),
|
|
21803
21803
|
format: ""
|
|
21804
21804
|
},
|
|
21805
21805
|
{
|
|
21806
21806
|
precision: K._1_day,
|
|
21807
|
-
interval:
|
|
21807
|
+
interval: I.utcHour.every(8),
|
|
21808
21808
|
format: ""
|
|
21809
21809
|
},
|
|
21810
21810
|
{
|
|
21811
21811
|
precision: K._2_days,
|
|
21812
|
-
interval:
|
|
21812
|
+
interval: I.utcHour.every(12),
|
|
21813
21813
|
format: ""
|
|
21814
21814
|
},
|
|
21815
21815
|
{
|
|
21816
21816
|
precision: K._1_month,
|
|
21817
|
-
interval:
|
|
21817
|
+
interval: I.utcDay.filter((s) => {
|
|
21818
21818
|
const e = s.getUTCDate(), t = new Date(
|
|
21819
21819
|
s.getUTCFullYear(),
|
|
21820
21820
|
s.getUTCMonth() + 1,
|
|
@@ -21826,7 +21826,7 @@ const Ah = {
|
|
|
21826
21826
|
},
|
|
21827
21827
|
{
|
|
21828
21828
|
precision: K._1_month_abbr,
|
|
21829
|
-
interval:
|
|
21829
|
+
interval: I.utcDay.filter((s) => {
|
|
21830
21830
|
const e = s.getUTCDate(), t = new Date(
|
|
21831
21831
|
s.getUTCFullYear(),
|
|
21832
21832
|
s.getUTCMonth() + 1,
|
|
@@ -21838,7 +21838,7 @@ const Ah = {
|
|
|
21838
21838
|
},
|
|
21839
21839
|
{
|
|
21840
21840
|
precision: K._1_month_letter,
|
|
21841
|
-
interval:
|
|
21841
|
+
interval: I.utcDay.filter((s) => {
|
|
21842
21842
|
const e = s.getUTCDate(), t = new Date(
|
|
21843
21843
|
s.getUTCFullYear(),
|
|
21844
21844
|
s.getUTCMonth() + 1,
|
|
@@ -21850,42 +21850,42 @@ const Ah = {
|
|
|
21850
21850
|
},
|
|
21851
21851
|
{
|
|
21852
21852
|
precision: K._3_months,
|
|
21853
|
-
interval:
|
|
21853
|
+
interval: I.utcMonth,
|
|
21854
21854
|
format: ""
|
|
21855
21855
|
},
|
|
21856
21856
|
{
|
|
21857
21857
|
precision: K._3_months,
|
|
21858
|
-
interval:
|
|
21858
|
+
interval: I.utcMonth,
|
|
21859
21859
|
format: ""
|
|
21860
21860
|
},
|
|
21861
21861
|
{
|
|
21862
21862
|
precision: K._2_year,
|
|
21863
|
-
interval:
|
|
21863
|
+
interval: I.utcYear,
|
|
21864
21864
|
format: ""
|
|
21865
21865
|
},
|
|
21866
21866
|
{
|
|
21867
21867
|
precision: K._5_years,
|
|
21868
|
-
interval:
|
|
21868
|
+
interval: I.utcYear.every(2),
|
|
21869
21869
|
format: ""
|
|
21870
21870
|
},
|
|
21871
21871
|
{
|
|
21872
21872
|
precision: K._20_years,
|
|
21873
|
-
interval:
|
|
21873
|
+
interval: I.utcYear.every(5),
|
|
21874
21874
|
format: ""
|
|
21875
21875
|
},
|
|
21876
21876
|
{
|
|
21877
21877
|
precision: K._75_years,
|
|
21878
|
-
interval:
|
|
21878
|
+
interval: I.utcYear.every(20),
|
|
21879
21879
|
format: ""
|
|
21880
21880
|
},
|
|
21881
21881
|
{
|
|
21882
21882
|
precision: K._300_years,
|
|
21883
|
-
interval:
|
|
21883
|
+
interval: I.utcYear.every(100),
|
|
21884
21884
|
format: ""
|
|
21885
21885
|
},
|
|
21886
21886
|
{
|
|
21887
21887
|
precision: K.infinity,
|
|
21888
|
-
interval:
|
|
21888
|
+
interval: I.utcYear.every(500),
|
|
21889
21889
|
format: ""
|
|
21890
21890
|
}
|
|
21891
21891
|
]
|
|
@@ -21911,15 +21911,21 @@ const Ah = {
|
|
|
21911
21911
|
name: "resize-observer",
|
|
21912
21912
|
definition: vs
|
|
21913
21913
|
}
|
|
21914
|
-
],
|
|
21914
|
+
], je = {
|
|
21915
21915
|
milestone: "e-tl-milestone",
|
|
21916
|
+
milestoneBullet: "e-tl-milestone--bullet",
|
|
21917
|
+
milestoneDot: "e-tl-milestone--dot",
|
|
21916
21918
|
milestoneContent: "e-tl-milestone-content",
|
|
21917
21919
|
milestoneLine: "e-tl-milestone-line",
|
|
21918
21920
|
milestonesContainer: "e-tl-milestones",
|
|
21919
21921
|
milestoneHovered: "e-tl-milestone--hovered",
|
|
21920
21922
|
milestoneSelected: "e-tl-milestone--selected",
|
|
21921
|
-
milestoneLabel: "e-tl-milestone-label"
|
|
21922
|
-
|
|
21923
|
+
milestoneLabel: "e-tl-milestone-label",
|
|
21924
|
+
milestoneDotContainer: "e-tl-milestone-dot-container",
|
|
21925
|
+
milestoneDotLine: "e-tl-milestone-dot-line",
|
|
21926
|
+
milestoneDotDot: "e-tl-milestone-dot-dot",
|
|
21927
|
+
milestoneDotHovered: "e-tl-milestone-dot--hovered"
|
|
21928
|
+
}, Rh = Ve.extend({
|
|
21923
21929
|
name: "ETimeline",
|
|
21924
21930
|
directives: {
|
|
21925
21931
|
resizeObserver: vs
|
|
@@ -21948,13 +21954,30 @@ const Ah = {
|
|
|
21948
21954
|
transitionDuration: {
|
|
21949
21955
|
type: Number,
|
|
21950
21956
|
default: 500
|
|
21957
|
+
},
|
|
21958
|
+
dot: {
|
|
21959
|
+
type: Boolean,
|
|
21960
|
+
default: !1
|
|
21961
|
+
},
|
|
21962
|
+
dotSize: {
|
|
21963
|
+
type: Number,
|
|
21964
|
+
default: 8
|
|
21965
|
+
},
|
|
21966
|
+
lineWidth: {
|
|
21967
|
+
type: Number,
|
|
21968
|
+
default: 2
|
|
21969
|
+
},
|
|
21970
|
+
lineHeight: {
|
|
21971
|
+
type: Number,
|
|
21972
|
+
default: 28
|
|
21951
21973
|
}
|
|
21952
21974
|
},
|
|
21953
21975
|
data() {
|
|
21954
21976
|
return {
|
|
21955
|
-
milestoneClasses:
|
|
21977
|
+
milestoneClasses: je,
|
|
21956
21978
|
timeouts: [],
|
|
21957
|
-
isInitialRender: !0
|
|
21979
|
+
isInitialRender: !0,
|
|
21980
|
+
isMouseOver: !1
|
|
21958
21981
|
};
|
|
21959
21982
|
},
|
|
21960
21983
|
computed: {
|
|
@@ -21963,10 +21986,21 @@ const Ah = {
|
|
|
21963
21986
|
transition: `transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`
|
|
21964
21987
|
};
|
|
21965
21988
|
},
|
|
21989
|
+
sizeStyles() {
|
|
21990
|
+
return this.dot ? {} : {
|
|
21991
|
+
width: `${this.size}px`,
|
|
21992
|
+
height: `${this.size}px`
|
|
21993
|
+
};
|
|
21994
|
+
},
|
|
21995
|
+
positionStyles() {
|
|
21996
|
+
return this.dot && this.isMouseOver ? {
|
|
21997
|
+
transform: `translateY(calc(-100% - ${this.lineHeight}px))`
|
|
21998
|
+
} : {};
|
|
21999
|
+
},
|
|
21966
22000
|
styles() {
|
|
21967
22001
|
return {
|
|
21968
|
-
|
|
21969
|
-
|
|
22002
|
+
...this.sizeStyles,
|
|
22003
|
+
...this.positionStyles,
|
|
21970
22004
|
backgroundColor: this.backgroundColor,
|
|
21971
22005
|
borderColor: this.borderColor,
|
|
21972
22006
|
borderWidth: `${this.borderWidth}px`,
|
|
@@ -21977,42 +22011,88 @@ const Ah = {
|
|
|
21977
22011
|
contentStyles() {
|
|
21978
22012
|
return this.transitionStyles;
|
|
21979
22013
|
},
|
|
22014
|
+
computedTransitionDuration() {
|
|
22015
|
+
return this.isInitialRender ? 0 : this.transitionDuration;
|
|
22016
|
+
},
|
|
21980
22017
|
labelStyles() {
|
|
21981
22018
|
return {
|
|
21982
|
-
transition: `opacity ${this.
|
|
22019
|
+
transition: `opacity ${this.computedTransitionDuration}ms`
|
|
22020
|
+
};
|
|
22021
|
+
},
|
|
22022
|
+
dotContainerStyles() {
|
|
22023
|
+
return {
|
|
22024
|
+
top: this.isMouseOver ? `calc(100% - ${this.borderWidth}px)` : `calc(50% + ${this.dotSize / 2}px)`,
|
|
22025
|
+
height: `calc(${this.lineHeight}px + ${this.dotSize}px)`,
|
|
22026
|
+
left: `calc(50% - ${this.lineWidth}px / 2)`,
|
|
22027
|
+
transition: `${this.computedTransitionDuration}ms`
|
|
22028
|
+
};
|
|
22029
|
+
},
|
|
22030
|
+
lineStyles() {
|
|
22031
|
+
return {
|
|
22032
|
+
bottom: `${this.dotSize / 2}px`,
|
|
22033
|
+
left: `calc(50% - ${this.lineWidth}px / 2)`,
|
|
22034
|
+
width: `${this.lineWidth}px`,
|
|
22035
|
+
height: this.isMouseOver ? `${this.lineHeight}px` : "0",
|
|
22036
|
+
backgroundColor: this.borderColor,
|
|
22037
|
+
transition: `${this.computedTransitionDuration}ms`
|
|
22038
|
+
};
|
|
22039
|
+
},
|
|
22040
|
+
dotStyles() {
|
|
22041
|
+
return {
|
|
22042
|
+
top: `${this.lineHeight}px`,
|
|
22043
|
+
left: `calc(50% - ${this.dotSize}px / 2)`,
|
|
22044
|
+
width: `${this.dotSize}px`,
|
|
22045
|
+
height: `${this.dotSize}px`,
|
|
22046
|
+
backgroundColor: this.borderColor,
|
|
22047
|
+
transition: `${this.computedTransitionDuration}ms`
|
|
21983
22048
|
};
|
|
21984
22049
|
}
|
|
21985
22050
|
},
|
|
21986
|
-
|
|
21987
|
-
this
|
|
22051
|
+
mounted() {
|
|
22052
|
+
this.$nextTick(() => {
|
|
22053
|
+
this.dot || (this.onMilestoneMouseOver(), this.onMilestoneMouseLeave()), this.isInitialRender = !1;
|
|
22054
|
+
});
|
|
21988
22055
|
},
|
|
21989
22056
|
methods: {
|
|
21990
|
-
onMilestoneMouseOver(s
|
|
21991
|
-
|
|
22057
|
+
onMilestoneMouseOver(s) {
|
|
22058
|
+
if (this.isMouseOver = !0, this.dot)
|
|
22059
|
+
return;
|
|
22060
|
+
const e = (s == null ? void 0 : s.target) || this.$refs.container;
|
|
22061
|
+
if (!e)
|
|
22062
|
+
return;
|
|
22063
|
+
const t = e.children[0];
|
|
21992
22064
|
if (!t)
|
|
21993
22065
|
return;
|
|
21994
22066
|
const i = t.children[0];
|
|
21995
22067
|
if (!i)
|
|
21996
22068
|
return;
|
|
21997
|
-
const r = i.
|
|
21998
|
-
|
|
21999
|
-
return;
|
|
22000
|
-
const n = r.getBoundingClientRect(), a = t.dataset.timeoutId;
|
|
22001
|
-
a && (clearTimeout(Number(a)), t.dataset.timeoutId = ""), t.dataset.initialWidth || (t.dataset.initialWidth = t.style.width), t.dataset.initialHeight || (t.dataset.initialHeight = t.style.height), t.dataset.initialContentWidth || (t.dataset.initialContentWidth = String(n.width)), t.dataset.initialContentHeight || (t.dataset.initialContentHeight = String(n.height)), t.dataset.transitionStart = String(Date.now()), t.style.width = t.dataset.initialContentWidth + "px", t.style.height = t.dataset.initialContentHeight + "px", t.style.borderRadius = "0.5em", t.classList.add(Ye.milestoneHovered), i.style.opacity = "1", i.style.width = t.dataset.initialContentWidth + "px", i.style.height = t.dataset.initialContentHeight + "px";
|
|
22069
|
+
const r = i.getBoundingClientRect(), n = e.dataset.timeoutId;
|
|
22070
|
+
n && (clearTimeout(Number(n)), e.dataset.timeoutId = ""), e.dataset.initialWidth || (e.dataset.initialWidth = e.style.width), e.dataset.initialHeight || (e.dataset.initialHeight = e.style.height), e.dataset.initialContentWidth || (e.dataset.initialContentWidth = String(r.width)), e.dataset.initialContentHeight || (e.dataset.initialContentHeight = String(r.height)), e.dataset.transitionStart = String(Date.now()), e.style.width = e.dataset.initialContentWidth + "px", e.style.height = e.dataset.initialContentHeight + "px", e.style.borderRadius = "0.5em", e.classList.add(je.milestoneHovered), t.style.opacity = "1", t.style.width = e.dataset.initialContentWidth + "px", t.style.height = e.dataset.initialContentHeight + "px";
|
|
22002
22071
|
},
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22072
|
+
onMilestoneMouseMove() {
|
|
22073
|
+
this.timeouts.forEach((s) => clearTimeout(s)), this.isMouseOver = !0;
|
|
22074
|
+
},
|
|
22075
|
+
onMilestoneMouseLeave(s) {
|
|
22076
|
+
if (this.dot) {
|
|
22077
|
+
this.timeouts.push(
|
|
22078
|
+
setTimeout(() => {
|
|
22079
|
+
this.isMouseOver = !1;
|
|
22080
|
+
}, this.transitionDuration + 100)
|
|
22081
|
+
);
|
|
22006
22082
|
return;
|
|
22007
|
-
|
|
22008
|
-
const
|
|
22009
|
-
if (!
|
|
22083
|
+
}
|
|
22084
|
+
const e = (s == null ? void 0 : s.target) || this.$refs.container;
|
|
22085
|
+
if (!e)
|
|
22086
|
+
return;
|
|
22087
|
+
e.style.width = e.dataset.initialWidth || "", e.style.height = e.dataset.initialHeight || "", e.style.borderRadius = "10em";
|
|
22088
|
+
const t = e.children[0];
|
|
22089
|
+
if (!t)
|
|
22010
22090
|
return;
|
|
22011
|
-
|
|
22012
|
-
const
|
|
22013
|
-
|
|
22014
|
-
},
|
|
22015
|
-
|
|
22091
|
+
t.style.width = "0", t.style.height = "0", t.style.opacity = "0";
|
|
22092
|
+
const i = Date.now() - Number(e.dataset.transitionStart), r = i > this.transitionDuration ? this.transitionDuration : i, n = setTimeout(() => {
|
|
22093
|
+
e.classList.remove(je.milestoneHovered), e.dataset.timeoutId = "";
|
|
22094
|
+
}, r);
|
|
22095
|
+
e.dataset.timeoutId = String(n), this.timeouts.push(n);
|
|
22016
22096
|
},
|
|
22017
22097
|
onMilestoneClick(s, e) {
|
|
22018
22098
|
this.$emit("milestone-click", e);
|
|
@@ -22021,9 +22101,15 @@ const Ah = {
|
|
|
22021
22101
|
});
|
|
22022
22102
|
var Ch = function() {
|
|
22023
22103
|
var e = this, t = e._self._c;
|
|
22024
|
-
return t("div", {
|
|
22104
|
+
return t("div", { ref: "container", class: {
|
|
22105
|
+
[e.milestoneClasses.milestone]: !0,
|
|
22106
|
+
[e.milestoneClasses.milestoneBullet]: !e.dot,
|
|
22107
|
+
[e.milestoneClasses.milestoneHovered]: e.isMouseOver && !e.dot,
|
|
22108
|
+
[e.milestoneClasses.milestoneDot]: e.dot,
|
|
22109
|
+
[e.milestoneClasses.milestoneDotHovered]: e.isMouseOver && e.dot
|
|
22110
|
+
}, style: e.styles, attrs: { tabindex: "0" }, on: { mouseover: (i) => e.onMilestoneMouseOver(i, e.milestone), mousemove: e.onMilestoneMouseMove, mouseleave: (i) => e.onMilestoneMouseLeave(i, e.milestone), click: (i) => e.onMilestoneClick(i, e.milestone) } }, [t("div", { class: e.milestoneClasses.milestoneContent, style: e.contentStyles }, [e._t("content", function() {
|
|
22025
22111
|
return [t("span", [e._v(" " + e._s(e.milestone.text) + " ")])];
|
|
22026
|
-
})], 2), t("div", { class: e.milestoneClasses.milestoneLabel, style: e.labelStyles }, [e._t("label")], 2)]);
|
|
22112
|
+
})], 2), e.dot ? t("div", { class: e.milestoneClasses.milestoneDotContainer, style: e.dotContainerStyles }, [t("div", { class: e.milestoneClasses.milestoneDotLine, style: e.lineStyles }), t("div", { class: e.milestoneClasses.milestoneDotDot, style: e.dotStyles })]) : t("div", { class: e.milestoneClasses.milestoneLabel, style: e.labelStyles }, [e._t("label")], 2)]);
|
|
22027
22113
|
}, Dh = [], _h = /* @__PURE__ */ Ne(
|
|
22028
22114
|
Rh,
|
|
22029
22115
|
Ch,
|
|
@@ -22070,12 +22156,12 @@ const Ih = _h.exports, G = {
|
|
|
22070
22156
|
lineGraphDot: "line-graph-dot",
|
|
22071
22157
|
curtain: "curtain",
|
|
22072
22158
|
forbiddenInterval: "forbidden-interval"
|
|
22073
|
-
},
|
|
22159
|
+
}, Ue = {
|
|
22074
22160
|
transparencyGradient: "transparency-gradient",
|
|
22075
22161
|
transparencyGradientLight: "transparency-gradient-light",
|
|
22076
22162
|
loadingGradient: "loading-gradient",
|
|
22077
22163
|
stripedPattern: "stripedPattern"
|
|
22078
|
-
}, wh =
|
|
22164
|
+
}, wh = Ve.extend({
|
|
22079
22165
|
name: "ETimeline",
|
|
22080
22166
|
directives: {
|
|
22081
22167
|
resizeObserver: vs
|
|
@@ -22152,6 +22238,10 @@ const Ih = _h.exports, G = {
|
|
|
22152
22238
|
type: Number,
|
|
22153
22239
|
default: 60
|
|
22154
22240
|
},
|
|
22241
|
+
chartMinLabelHeight: {
|
|
22242
|
+
type: Number,
|
|
22243
|
+
default: 18
|
|
22244
|
+
},
|
|
22155
22245
|
minZoom: {
|
|
22156
22246
|
type: Number,
|
|
22157
22247
|
default: 1e-4
|
|
@@ -22215,6 +22305,18 @@ const Ih = _h.exports, G = {
|
|
|
22215
22305
|
milestoneBulletSize: {
|
|
22216
22306
|
type: Number,
|
|
22217
22307
|
default: 18
|
|
22308
|
+
},
|
|
22309
|
+
milestonesFirst: {
|
|
22310
|
+
type: Boolean,
|
|
22311
|
+
default: !0
|
|
22312
|
+
},
|
|
22313
|
+
forbiddenIntervals: {
|
|
22314
|
+
type: Array,
|
|
22315
|
+
default: () => []
|
|
22316
|
+
},
|
|
22317
|
+
forbiddenIntervalColor: {
|
|
22318
|
+
type: String,
|
|
22319
|
+
default: "#ddd"
|
|
22218
22320
|
}
|
|
22219
22321
|
},
|
|
22220
22322
|
data() {
|
|
@@ -22264,10 +22366,41 @@ const Ih = _h.exports, G = {
|
|
|
22264
22366
|
markersDragBehavior: null,
|
|
22265
22367
|
initialMarkerDragMouseOffset: 0,
|
|
22266
22368
|
selectedMilestoneId: null,
|
|
22267
|
-
isInitialized: !1
|
|
22369
|
+
isInitialized: !1,
|
|
22370
|
+
lastValidTransform: I.zoomIdentity
|
|
22268
22371
|
};
|
|
22269
22372
|
},
|
|
22270
22373
|
computed: {
|
|
22374
|
+
combinedBarsHeight() {
|
|
22375
|
+
return Object.values(this.barGroups).reduce(
|
|
22376
|
+
(s, e) => s + (this.getBarGroupHeight(e) || this.barChartHeight),
|
|
22377
|
+
0
|
|
22378
|
+
);
|
|
22379
|
+
},
|
|
22380
|
+
combinedBottomBarsHeight() {
|
|
22381
|
+
return Object.values(this.barGroups).reduce(
|
|
22382
|
+
(s, e) => s + (e.bottom ? this.getBarGroupHeight(e) : 0),
|
|
22383
|
+
0
|
|
22384
|
+
);
|
|
22385
|
+
},
|
|
22386
|
+
combinedMilestonesHeight() {
|
|
22387
|
+
return Object.values(this.milestonesGroups).reduce(
|
|
22388
|
+
(s, e) => s + (e.height || this.barChartHeight),
|
|
22389
|
+
0
|
|
22390
|
+
);
|
|
22391
|
+
},
|
|
22392
|
+
milestonesYOffset() {
|
|
22393
|
+
return this.milestonesFirst ? 0 : this.combinedBarsHeight - this.combinedBottomBarsHeight + (this.hasChart ? this.chartHeight : 0);
|
|
22394
|
+
},
|
|
22395
|
+
chartsYOffset() {
|
|
22396
|
+
return this.hasMilestones && this.milestonesFirst ? this.combinedMilestonesHeight : 0;
|
|
22397
|
+
},
|
|
22398
|
+
barsYOffset() {
|
|
22399
|
+
return (this.hasChart ? this.chartHeight : 0) + (this.hasMilestones && this.milestonesFirst ? this.combinedMilestonesHeight : 0);
|
|
22400
|
+
},
|
|
22401
|
+
hasMilestones() {
|
|
22402
|
+
return Object.keys(this.milestonesGroups).length > 0;
|
|
22403
|
+
},
|
|
22271
22404
|
barChartHeight() {
|
|
22272
22405
|
return this.barHeight + this.barYPadding;
|
|
22273
22406
|
},
|
|
@@ -22285,7 +22418,7 @@ const Ih = _h.exports, G = {
|
|
|
22285
22418
|
},
|
|
22286
22419
|
lineGraphGroups() {
|
|
22287
22420
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22288
|
-
(s, [e, t]) => t.chartType ===
|
|
22421
|
+
(s, [e, t]) => t.chartType === Ae.lineGraph ? { ...s, [e]: t } : s,
|
|
22289
22422
|
{}
|
|
22290
22423
|
);
|
|
22291
22424
|
},
|
|
@@ -22297,19 +22430,21 @@ const Ih = _h.exports, G = {
|
|
|
22297
22430
|
},
|
|
22298
22431
|
barGroups() {
|
|
22299
22432
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22300
|
-
(s, [e, t]) => !t.chartType ||
|
|
22433
|
+
(s, [e, t]) => !t.chartType || [Ae.bars, Ae.dots].includes(
|
|
22434
|
+
t.chartType
|
|
22435
|
+
) ? { ...s, [e]: t } : s,
|
|
22301
22436
|
{}
|
|
22302
22437
|
);
|
|
22303
22438
|
},
|
|
22304
22439
|
barChartGroups() {
|
|
22305
22440
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22306
|
-
(s, [e, t]) => t.chartType ===
|
|
22441
|
+
(s, [e, t]) => t.chartType === Ae.barChart ? { ...s, [e]: t } : s,
|
|
22307
22442
|
{}
|
|
22308
22443
|
);
|
|
22309
22444
|
},
|
|
22310
22445
|
milestonesGroups() {
|
|
22311
22446
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22312
|
-
(s, [e, t]) => t.chartType ===
|
|
22447
|
+
(s, [e, t]) => t.chartType === Ae.milestones ? { ...s, [e]: t } : s,
|
|
22313
22448
|
{}
|
|
22314
22449
|
);
|
|
22315
22450
|
},
|
|
@@ -22329,10 +22464,7 @@ const Ih = _h.exports, G = {
|
|
|
22329
22464
|
return this.axisHeight * s;
|
|
22330
22465
|
},
|
|
22331
22466
|
timelineHeight() {
|
|
22332
|
-
|
|
22333
|
-
this.milestonesGroups
|
|
22334
|
-
).reduce((r, n) => r + (n.height || this.barChartHeight), 0), e = Object.keys(this.barGroups).length, t = this.barChartHeight * e, i = this.hasChart ? this.chartHeight : 0;
|
|
22335
|
-
return this.combinedXAxesHeight + i + t + s;
|
|
22467
|
+
return (this.hasChart ? this.chartHeight : 0) + this.combinedXAxesHeight + this.combinedBarsHeight + this.combinedMilestonesHeight;
|
|
22336
22468
|
},
|
|
22337
22469
|
filteredEventsGroups() {
|
|
22338
22470
|
const s = Object.entries(this.eventsGroups).filter(
|
|
@@ -22341,9 +22473,8 @@ const Ih = _h.exports, G = {
|
|
|
22341
22473
|
return Object.fromEntries(s);
|
|
22342
22474
|
},
|
|
22343
22475
|
allEventsSorted() {
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
);
|
|
22476
|
+
const s = Object.values(this.filteredEventsGroups).map((e) => e.events).flat();
|
|
22477
|
+
return this.getSortedEvents(s);
|
|
22347
22478
|
},
|
|
22348
22479
|
oldestEvent() {
|
|
22349
22480
|
let s;
|
|
@@ -22422,12 +22553,6 @@ const Ih = _h.exports, G = {
|
|
|
22422
22553
|
startDate() {
|
|
22423
22554
|
this.zoomToStartAndEndDates();
|
|
22424
22555
|
},
|
|
22425
|
-
minDate() {
|
|
22426
|
-
this.updateForbiddenIntervals();
|
|
22427
|
-
},
|
|
22428
|
-
maxDate() {
|
|
22429
|
-
this.updateForbiddenIntervals();
|
|
22430
|
-
},
|
|
22431
22556
|
endDate() {
|
|
22432
22557
|
this.zoomToStartAndEndDates();
|
|
22433
22558
|
},
|
|
@@ -22447,6 +22572,9 @@ const Ih = _h.exports, G = {
|
|
|
22447
22572
|
},
|
|
22448
22573
|
groupsVisibility() {
|
|
22449
22574
|
this.updateAndRedrawTimeline();
|
|
22575
|
+
},
|
|
22576
|
+
forbiddenIntervals() {
|
|
22577
|
+
this.updateForbiddenIntervals(!0);
|
|
22450
22578
|
}
|
|
22451
22579
|
},
|
|
22452
22580
|
created() {
|
|
@@ -22469,29 +22597,29 @@ const Ih = _h.exports, G = {
|
|
|
22469
22597
|
);
|
|
22470
22598
|
return;
|
|
22471
22599
|
}
|
|
22472
|
-
this.initOrUpdateSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(s, e), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.
|
|
22600
|
+
this.initOrUpdateSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(s, e), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.curtains && (this.initCurtains(), this.emitCurtainChange()), this.initSelectedTimestampCursor(), this.updateMarkers(), this.registerEventsListeners(), this.emitVisibleInterval(Pt.initial), this.selectedDate && this.panOnDateClick && this.panToTimestamp(this.selectedDate), this.isInitialized = !0;
|
|
22473
22601
|
},
|
|
22474
22602
|
initRefs() {
|
|
22475
22603
|
this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp, this.wrapperDiv = this.$refs.wrapperDiv;
|
|
22476
22604
|
},
|
|
22477
22605
|
initOrUpdateSvg() {
|
|
22478
|
-
this.svg || (this.svg =
|
|
22606
|
+
this.svg || (this.svg = I.select(this.timeline).append("svg")), this.svg.attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
|
|
22479
22607
|
},
|
|
22480
22608
|
initDefs() {
|
|
22481
22609
|
const s = this.svg.append("defs");
|
|
22482
22610
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
22483
22611
|
([t, i]) => {
|
|
22484
|
-
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${
|
|
22485
|
-
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [
|
|
22612
|
+
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${Ue.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
22613
|
+
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [Ae.lineGraph, Ae.barChart].includes(
|
|
22486
22614
|
n
|
|
22487
22615
|
) && [
|
|
22488
22616
|
{
|
|
22489
|
-
id:
|
|
22617
|
+
id: Ue.transparencyGradientLight,
|
|
22490
22618
|
stop: 38,
|
|
22491
22619
|
opacity: 0.3
|
|
22492
22620
|
},
|
|
22493
22621
|
{
|
|
22494
|
-
id:
|
|
22622
|
+
id: Ue.transparencyGradient,
|
|
22495
22623
|
stop: 130,
|
|
22496
22624
|
opacity: 0.4
|
|
22497
22625
|
}
|
|
@@ -22500,15 +22628,15 @@ const Ih = _h.exports, G = {
|
|
|
22500
22628
|
h.append("stop").attr("offset", "0%").style("stop-color", r).style("stop-opacity", u), h.append("stop").attr("offset", `${c}%`).style("stop-color", r).style("stop-opacity", 0);
|
|
22501
22629
|
});
|
|
22502
22630
|
}
|
|
22503
|
-
), s.append("pattern").attr("id",
|
|
22631
|
+
), s.append("pattern").attr("id", Ue.stripedPattern).attr("width", 5).attr("height", 3).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("rect").attr("width", 1).attr("height", 4).attr("transform", "translate(0,0)").attr("fill", this.forbiddenIntervalColor);
|
|
22504
22632
|
},
|
|
22505
22633
|
initUtcOffset() {
|
|
22506
22634
|
const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate;
|
|
22507
|
-
this.utcOffset =
|
|
22635
|
+
this.utcOffset = Ke.parseZone(s).utcOffset();
|
|
22508
22636
|
},
|
|
22509
22637
|
initTimeScale(s, e) {
|
|
22510
22638
|
const t = s || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = e || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
|
|
22511
|
-
this.timeScale =
|
|
22639
|
+
this.timeScale = I.scaleTime().domain([this.tzStringToDate(t), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
|
|
22512
22640
|
},
|
|
22513
22641
|
initXAxes() {
|
|
22514
22642
|
let s = 0;
|
|
@@ -22528,17 +22656,17 @@ const Ih = _h.exports, G = {
|
|
|
22528
22656
|
}
|
|
22529
22657
|
},
|
|
22530
22658
|
initYScale() {
|
|
22531
|
-
this.yScale =
|
|
22659
|
+
this.yScale = I.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
|
|
22532
22660
|
},
|
|
22533
22661
|
updateYScaleDomain() {
|
|
22534
22662
|
const [s, e] = this.timeScale.domain(), t = this.flattenedCounts.filter((r) => {
|
|
22535
22663
|
const n = new Date(r.startDate || r.timestamp), a = new Date(r.endDate || r.timestamp);
|
|
22536
22664
|
return a >= s && a <= e || n >= s && n <= e;
|
|
22537
|
-
}), i =
|
|
22665
|
+
}), i = I.max(t, (r) => r.count);
|
|
22538
22666
|
this.yScale.domain([0, i]);
|
|
22539
22667
|
},
|
|
22540
22668
|
initZoomBehavior() {
|
|
22541
|
-
this.disableZoom || (this.zoomBehavior =
|
|
22669
|
+
this.disableZoom || (this.zoomBehavior = I.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior), this.svg.call(this.zoomBehavior.transform, I.zoomIdentity));
|
|
22542
22670
|
},
|
|
22543
22671
|
zoomToFitMarkers() {
|
|
22544
22672
|
const s = this.markers.map(
|
|
@@ -22558,10 +22686,10 @@ const Ih = _h.exports, G = {
|
|
|
22558
22686
|
);
|
|
22559
22687
|
},
|
|
22560
22688
|
translateMarkersIntoView(s, e, t) {
|
|
22561
|
-
const i = this.timeScale(new Date(s)), r = this.timeScale(new Date(e)), n = (i + r) / 2, o = this.svg.node().getBoundingClientRect().width / 2 - n, l =
|
|
22689
|
+
const i = this.timeScale(new Date(s)), r = this.timeScale(new Date(e)), n = (i + r) / 2, o = this.svg.node().getBoundingClientRect().width / 2 - n, l = I.zoomTransform(this.svg.node());
|
|
22562
22690
|
this.svg.transition().duration(this.fitMarkersTransitionDuration / 2).call(
|
|
22563
22691
|
this.zoomBehavior.transform,
|
|
22564
|
-
|
|
22692
|
+
I.zoomIdentity.translate(l.x + o, l.y).scale(t)
|
|
22565
22693
|
);
|
|
22566
22694
|
},
|
|
22567
22695
|
initSelectedTimestampCursor() {
|
|
@@ -22625,14 +22753,14 @@ const Ih = _h.exports, G = {
|
|
|
22625
22753
|
},
|
|
22626
22754
|
createAxis(s) {
|
|
22627
22755
|
const e = this.xAxesConfig[s], t = this.getAxisTicksConfig(e);
|
|
22628
|
-
return
|
|
22756
|
+
return I.axisBottom(this.timeScale).ticks(t.interval).tickFormat(t.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
|
|
22629
22757
|
},
|
|
22630
22758
|
getAxisTicksConfig(s) {
|
|
22631
22759
|
const { interval: e, format: t } = s.find(
|
|
22632
22760
|
(r) => r.precision >= this.currentTimeScaleDensity && r.interval
|
|
22633
22761
|
);
|
|
22634
22762
|
return {
|
|
22635
|
-
formatFn: (r) => typeof t == "function" ? t(r) :
|
|
22763
|
+
formatFn: (r) => typeof t == "function" ? t(r) : I.timeFormat(t)(r),
|
|
22636
22764
|
interval: e
|
|
22637
22765
|
};
|
|
22638
22766
|
},
|
|
@@ -22647,12 +22775,12 @@ const Ih = _h.exports, G = {
|
|
|
22647
22775
|
return;
|
|
22648
22776
|
const s = this;
|
|
22649
22777
|
this.svg.selectAll(`.${G.labelBg}`).each(function() {
|
|
22650
|
-
|
|
22778
|
+
I.select(this).style("fill", s.dark ? "black" : "white");
|
|
22651
22779
|
}), this.svg.selectAll(`.${G.labelBgFill}`).each(function() {
|
|
22652
|
-
const e =
|
|
22780
|
+
const e = I.select(this), t = e.node().dataset.color;
|
|
22653
22781
|
e.style("fill", s.getLabelBackgroundColor(t)).style("stroke", s.getTextFillColor(t)).style("stroke-width", 0.25);
|
|
22654
22782
|
}), this.svg.selectAll(`.${G.labelText}`).each(function() {
|
|
22655
|
-
const e =
|
|
22783
|
+
const e = I.select(this), t = e.node().dataset.color;
|
|
22656
22784
|
e.style("fill", s.getTextFillColor(t));
|
|
22657
22785
|
});
|
|
22658
22786
|
},
|
|
@@ -22715,24 +22843,33 @@ const Ih = _h.exports, G = {
|
|
|
22715
22843
|
this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
|
|
22716
22844
|
},
|
|
22717
22845
|
handleLabelMouseOver(s) {
|
|
22718
|
-
|
|
22846
|
+
I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
|
|
22719
22847
|
`${G.lineGraphGroup}--highlighted`,
|
|
22720
22848
|
!0
|
|
22721
|
-
),
|
|
22849
|
+
), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
|
|
22722
22850
|
`${G.lineGraphGroupLabel}--highlighted`,
|
|
22723
22851
|
!0
|
|
22724
22852
|
);
|
|
22725
22853
|
},
|
|
22726
22854
|
handleLabelMouseLeave(s) {
|
|
22727
|
-
|
|
22855
|
+
I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
|
|
22728
22856
|
`${G.lineGraphGroup}--highlighted`,
|
|
22729
22857
|
!1
|
|
22730
|
-
),
|
|
22858
|
+
), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
|
|
22731
22859
|
`${G.lineGraphGroupLabel}--highlighted`,
|
|
22732
22860
|
!1
|
|
22733
22861
|
);
|
|
22734
22862
|
},
|
|
22863
|
+
isZoomAllowed(s) {
|
|
22864
|
+
const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.minDate ? this.tzStringToDate(this.minDate) : void 0, r = this.maxDate ? this.tzStringToDate(this.maxDate) : void 0;
|
|
22865
|
+
return (!i || t[0] >= i) && (!r || t[1] <= r);
|
|
22866
|
+
},
|
|
22735
22867
|
handleZoom(s) {
|
|
22868
|
+
if (!this.isZoomAllowed(s)) {
|
|
22869
|
+
s.sourceEvent.preventDefault(), this.svg.call(this.zoomBehavior.transform, this.lastValidTransform);
|
|
22870
|
+
return;
|
|
22871
|
+
}
|
|
22872
|
+
this.lastValidTransform = s.transform;
|
|
22736
22873
|
const e = s.transform.rescaleX(this.initialTimeScale);
|
|
22737
22874
|
this.timeScale.domain(e.domain()), this.updateCurrentTimeScaleDensity(), this.updateYScaleDomain();
|
|
22738
22875
|
const t = s.transform.k / this.lastTransform.k;
|
|
@@ -22745,10 +22882,10 @@ const Ih = _h.exports, G = {
|
|
|
22745
22882
|
this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.updateMilestonesPositions(), this.repositionSelectedTimestampCursor(), this.updateForbiddenIntervals(), this.updateMarkers(), this.emitVisibleInterval(Pt.zoom), this.curtains && this.emitCurtainChange();
|
|
22746
22883
|
},
|
|
22747
22884
|
panToTimestamp(s) {
|
|
22748
|
-
const e = this.tzStringToDate(s), t = this.timeScale(e), i =
|
|
22885
|
+
const e = this.tzStringToDate(s), t = this.timeScale(e), i = I.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2;
|
|
22749
22886
|
this.svg.transition().duration(this.panTransitionDuration).call(
|
|
22750
22887
|
this.zoomBehavior.transform,
|
|
22751
|
-
|
|
22888
|
+
I.zoomIdentity.translate(r, 0).scale(i.k)
|
|
22752
22889
|
), this.emitVisibleInterval(Pt.autoPan);
|
|
22753
22890
|
},
|
|
22754
22891
|
emitCurtainChange() {
|
|
@@ -22787,10 +22924,10 @@ const Ih = _h.exports, G = {
|
|
|
22787
22924
|
zoomToStartAndEndDates() {
|
|
22788
22925
|
const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, e = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, t = this.tzStringToDate(s), i = this.tzStringToDate(e);
|
|
22789
22926
|
this.initialTimeScale.domain([t, i]);
|
|
22790
|
-
const r =
|
|
22927
|
+
const r = I.zoomTransform(this.svg.node()), n = i.getTime() - t.getTime(), o = this.initialTimeScale.range().map((f) => this.initialTimeScale.invert(f)).reduce((f, m) => m.getTime() - f, 0) / n * r.k, c = -(this.initialTimeScale(t) * o), [u, h] = this.zoomBehavior.scaleExtent(), d = Math.max(u, Math.min(h, o));
|
|
22791
22928
|
this.svg.transition().duration(this.zoomToBoundariesTransitionDuration).call(
|
|
22792
22929
|
this.zoomBehavior.transform,
|
|
22793
|
-
|
|
22930
|
+
I.zoomIdentity.translate(c, 0).scale(d)
|
|
22794
22931
|
);
|
|
22795
22932
|
},
|
|
22796
22933
|
rescaleAxis(s, e) {
|
|
@@ -22801,15 +22938,15 @@ const Ih = _h.exports, G = {
|
|
|
22801
22938
|
},
|
|
22802
22939
|
translateTicksText(s) {
|
|
22803
22940
|
this.svg.select(`.${G.xAxis}-${s}`).selectAll(".tick text").each(function() {
|
|
22804
|
-
let e =
|
|
22941
|
+
let e = I.select(this), t = e.node().getBBox();
|
|
22805
22942
|
e.attr("x", t.height / 2).attr("y", 0).style("text-anchor", "start");
|
|
22806
22943
|
});
|
|
22807
22944
|
},
|
|
22808
22945
|
updateEventsBars() {
|
|
22809
|
-
const s = `.${G.eventGroup} > rect.${G.eventRect}`;
|
|
22810
|
-
this.svg.selectAll(s).attr("x", this.getEventRectX).attr("width", this.getEventRectWidth);
|
|
22811
|
-
const
|
|
22812
|
-
this.svg.selectAll(
|
|
22946
|
+
const s = `.${G.eventGroup} > rect.${G.eventRect}`, e = `${s}:not(.${G.eventRect}--dot)`;
|
|
22947
|
+
this.svg.selectAll(s).attr("x", this.getEventRectX), this.svg.selectAll(e).attr("width", this.getEventRectWidth);
|
|
22948
|
+
const t = `.${G.eventGroup} > text.${G.eventRectText}`;
|
|
22949
|
+
this.svg.selectAll(t).attr("x", (i) => this.getEventRectX(i) + this.textPadding).text(this.getEventText);
|
|
22813
22950
|
},
|
|
22814
22951
|
updateBarChart() {
|
|
22815
22952
|
const s = Object.keys(this.barChartGroups).length;
|
|
@@ -22824,7 +22961,7 @@ const Ih = _h.exports, G = {
|
|
|
22824
22961
|
},
|
|
22825
22962
|
updateLineGraphs() {
|
|
22826
22963
|
Object.entries(this.lineGraphGroups).forEach(([s]) => {
|
|
22827
|
-
const e =
|
|
22964
|
+
const e = I.area().x((t) => this.timeScale(this.tzStringToDate(t.timestamp))).y0(this.timelineHeight).y1((t) => this.yScale(t.count)).curve(I.curveMonotoneX);
|
|
22828
22965
|
this.svg.selectAll(
|
|
22829
22966
|
`.${G.lineGraphPath}-${s}`
|
|
22830
22967
|
).attr("d", (t) => e(t));
|
|
@@ -22836,12 +22973,12 @@ const Ih = _h.exports, G = {
|
|
|
22836
22973
|
this.svg.selectAll(
|
|
22837
22974
|
`.${G.lineGraphDot}-${s}`
|
|
22838
22975
|
).each(function(t) {
|
|
22839
|
-
|
|
22976
|
+
I.select(this).attr("cx", e.timeScale(e.tzStringToDate(t.timestamp))).attr("cy", e.yScale(t.count));
|
|
22840
22977
|
}), this.svg.selectAll(
|
|
22841
22978
|
`.${G.lineGraphHoverZone}-${s}`
|
|
22842
22979
|
).each(function(t) {
|
|
22843
22980
|
const i = e.timeScale(e.tzStringToDate(t.timestamp).getTime()) - 15;
|
|
22844
|
-
|
|
22981
|
+
I.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", e.chartHeight);
|
|
22845
22982
|
});
|
|
22846
22983
|
});
|
|
22847
22984
|
},
|
|
@@ -22871,7 +23008,7 @@ const Ih = _h.exports, G = {
|
|
|
22871
23008
|
return parseInt(e.left);
|
|
22872
23009
|
},
|
|
22873
23010
|
isTimestampAllowedForMarker(s, e) {
|
|
22874
|
-
return (
|
|
23011
|
+
return (e.minDate ? s >= this.tzStringToDate(e.minDate) : !0) && (e.maxDate ? s <= this.tzStringToDate(e.maxDate) : !0);
|
|
22875
23012
|
},
|
|
22876
23013
|
handleMarkerDrag({
|
|
22877
23014
|
marker: s,
|
|
@@ -22887,54 +23024,58 @@ const Ih = _h.exports, G = {
|
|
|
22887
23024
|
r,
|
|
22888
23025
|
s
|
|
22889
23026
|
);
|
|
22890
|
-
t.type === "drag" && a && e.attr("style", `left: ${n}px`), t.type === "end" && a
|
|
22891
|
-
|
|
22892
|
-
|
|
22893
|
-
...this.markersPositions
|
|
22894
|
-
|
|
22895
|
-
|
|
22896
|
-
|
|
23027
|
+
if (t.type === "drag" && a && e.attr("style", `left: ${n}px`), t.type === "end" && a) {
|
|
23028
|
+
const o = s.id || s.timestamp;
|
|
23029
|
+
this.markersPositions = {
|
|
23030
|
+
...this.markersPositions,
|
|
23031
|
+
[o]: {
|
|
23032
|
+
...this.markersPositions[o],
|
|
23033
|
+
position: n
|
|
23034
|
+
}
|
|
23035
|
+
}, e.classed(G.markerDragged, !1);
|
|
23036
|
+
}
|
|
23037
|
+
t.type !== "start" && this.$emit(`marker-drag-${t.type}`, {
|
|
22897
23038
|
marker: s,
|
|
22898
23039
|
newTimestamp: r.toISOString()
|
|
22899
23040
|
});
|
|
22900
23041
|
},
|
|
22901
23042
|
removeMarkersDragBehavior() {
|
|
22902
|
-
this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null),
|
|
23043
|
+
this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null), I.selectAll(`.${G.marker}`).call(
|
|
22903
23044
|
this.markersDragBehavior
|
|
22904
23045
|
));
|
|
22905
23046
|
},
|
|
22906
23047
|
initMarkersDragBehavior() {
|
|
22907
23048
|
this.removeMarkersDragBehavior();
|
|
22908
23049
|
const s = this;
|
|
22909
|
-
this.markersDragBehavior =
|
|
23050
|
+
this.markersDragBehavior = I.drag().on("start", function(e, t) {
|
|
22910
23051
|
var i;
|
|
22911
23052
|
(i = e.sourceEvent) == null || i.preventDefault(), s.handleMarkerDrag({
|
|
22912
23053
|
marker: t,
|
|
22913
|
-
markerElement:
|
|
23054
|
+
markerElement: I.select(this),
|
|
22914
23055
|
dragEvent: e
|
|
22915
23056
|
});
|
|
22916
23057
|
}).on("drag", function(e, t) {
|
|
22917
23058
|
s.handleMarkerDrag({
|
|
22918
23059
|
marker: t,
|
|
22919
|
-
markerElement:
|
|
23060
|
+
markerElement: I.select(this),
|
|
22920
23061
|
dragEvent: e
|
|
22921
23062
|
});
|
|
22922
23063
|
}).on("end", function(e, t) {
|
|
22923
23064
|
s.handleMarkerDrag({
|
|
22924
23065
|
marker: t,
|
|
22925
|
-
markerElement:
|
|
23066
|
+
markerElement: I.select(this),
|
|
22926
23067
|
dragEvent: e
|
|
22927
23068
|
});
|
|
22928
|
-
}),
|
|
23069
|
+
}), I.selectAll(`.${G.marker}`).data(this.sortedMarkers).call(this.markersDragBehavior);
|
|
22929
23070
|
},
|
|
22930
23071
|
initCurtains() {
|
|
22931
23072
|
this.createCurtains(), this.updateCurtains();
|
|
22932
23073
|
},
|
|
22933
23074
|
createCurtains() {
|
|
22934
23075
|
this.curtains && (this.svg.append("rect").classed(`${G.curtain} ${G.curtain}--left`, !0).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
|
|
22935
|
-
|
|
23076
|
+
I.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
|
|
22936
23077
|
), this.svg.append("rect").classed(`${G.curtain} ${G.curtain}--right`, !0).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
|
|
22937
|
-
|
|
23078
|
+
I.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
|
|
22938
23079
|
), this.updateCurtains());
|
|
22939
23080
|
},
|
|
22940
23081
|
updateCurtains() {
|
|
@@ -22944,31 +23085,23 @@ const Ih = _h.exports, G = {
|
|
|
22944
23085
|
s - this.rightCurtainWidth + this.curtainHandleWidth
|
|
22945
23086
|
).attr("y", -this.curtainHandleWidth).attr("width", this.rightCurtainWidth + this.curtainHandleWidth * 2).attr("height", e + this.curtainHandleWidth * 2);
|
|
22946
23087
|
},
|
|
22947
|
-
|
|
22948
|
-
|
|
22949
|
-
|
|
22950
|
-
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22956
|
-
|
|
22957
|
-
|
|
22958
|
-
if (s) {
|
|
22959
|
-
const t = this.timeScale(s);
|
|
22960
|
-
this.svg.select(`.${G.forbiddenInterval}--min`).attr("x", 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${De.stripedPattern})`);
|
|
22961
|
-
}
|
|
22962
|
-
if (e) {
|
|
22963
|
-
const t = this.timeline.offsetWidth - this.timeScale(e), i = this.timeScale(e);
|
|
22964
|
-
this.svg.select(`.${G.forbiddenInterval}--max`).attr("x", i > 0 ? i : 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${De.stripedPattern})`);
|
|
22965
|
-
}
|
|
23088
|
+
updateForbiddenIntervals(s = !1) {
|
|
23089
|
+
s && this.svg.selectAll(`.${G.forbiddenInterval}`).remove();
|
|
23090
|
+
const e = this.timeScale.domain();
|
|
23091
|
+
this.forbiddenIntervals.forEach((t, i) => {
|
|
23092
|
+
const r = t.startDate === -1 / 0 ? e[0] : this.tzStringToDate(t.startDate), n = t.endDate === 1 / 0 ? e[1] : this.tzStringToDate(t.endDate), a = this.timeScale(r), o = this.timeScale(n), l = Math.max(o - a, 0);
|
|
23093
|
+
let c = this.svg.select(`.${G.forbiddenInterval}-${i}`);
|
|
23094
|
+
c.empty() && (c = this.svg.append("rect").attr(
|
|
23095
|
+
"class",
|
|
23096
|
+
`${G.forbiddenInterval} ${G.forbiddenInterval}-${i}`
|
|
23097
|
+
).attr("fill", `url(#${Ue.stripedPattern})`)), c.attr("x", a).attr("y", 0).attr("width", l).attr("height", this.timelineHeight);
|
|
23098
|
+
});
|
|
22966
23099
|
},
|
|
22967
23100
|
drawEventsGroups() {
|
|
22968
23101
|
this.svg.selectAll(`g.${G.eventGroup}`).remove(), this.svg.selectAll(`.${G.barChartGroup}`).remove(), this.svg.selectAll(`.${G.lineGraphGroup}`).remove(), this.svg.selectAll(`.${G.lineGraphGroupLabel}`).remove(), this.svg.selectAll(`.${G.loadingIndicator}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups(), this.drawBarChartEventsGroups(), this.drawMilestonesPlaceholder();
|
|
22969
23102
|
},
|
|
22970
23103
|
drawLineGraphEventsGroups() {
|
|
22971
|
-
const s = this.combinedXAxesHeight, e = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
|
|
23104
|
+
const s = this.combinedXAxesHeight + this.chartsYOffset, e = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
|
|
22972
23105
|
Object.entries(e).forEach(([t, i]) => {
|
|
22973
23106
|
const r = this.svg.append("g").classed(
|
|
22974
23107
|
`${G.lineGraphGroup} ${G.lineGraphGroup}-${t}`,
|
|
@@ -22987,18 +23120,22 @@ const Ih = _h.exports, G = {
|
|
|
22987
23120
|
});
|
|
22988
23121
|
}), Object.entries(this.lineGraphGroups).forEach(
|
|
22989
23122
|
([t, i], r) => {
|
|
22990
|
-
const { color: n, isLoading: a, label: o } = i, l =
|
|
23123
|
+
const { color: n, isLoading: a, label: o } = i, l = Math.max(
|
|
23124
|
+
this.chartMinLabelHeight,
|
|
23125
|
+
this.barChartHeight
|
|
23126
|
+
), c = this.chartHeight - l * (r + 1), u = s + this.chartHeight - l, h = this.svg.append("g").classed(G.lineGraphGroupLabel, !0).attr("transform", `translate(0,${s})`).on("mouseover", () => this.handleLabelMouseOver(t)).on("mouseleave", () => this.handleLabelMouseLeave(t));
|
|
22991
23127
|
this.drawProgressIndicator({
|
|
22992
23128
|
type: t,
|
|
22993
23129
|
color: n,
|
|
22994
23130
|
isLoading: a,
|
|
22995
|
-
yPosition:
|
|
23131
|
+
yPosition: u
|
|
22996
23132
|
}), this.drawTextLabel({
|
|
22997
23133
|
color: n,
|
|
22998
23134
|
label: o,
|
|
22999
23135
|
type: t,
|
|
23000
|
-
|
|
23001
|
-
|
|
23136
|
+
height: l,
|
|
23137
|
+
yPosition: c,
|
|
23138
|
+
gElement: h
|
|
23002
23139
|
});
|
|
23003
23140
|
}
|
|
23004
23141
|
);
|
|
@@ -23009,8 +23146,8 @@ const Ih = _h.exports, G = {
|
|
|
23009
23146
|
color: t,
|
|
23010
23147
|
type: i
|
|
23011
23148
|
}) {
|
|
23012
|
-
const r =
|
|
23013
|
-
e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${
|
|
23149
|
+
const r = I.area().x((a) => this.timeScale(this.tzStringToDate(a.timestamp))).y0(this.timelineHeight).y1((a) => this.yScale(a.count)).curve(I.curveMonotoneX), n = `clip-${i}`;
|
|
23150
|
+
e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${Ue.transparencyGradientLight}-${i})`).attr("stroke", t).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (a) => r(a)).attr("clip-path", `url(#${n})`);
|
|
23014
23151
|
},
|
|
23015
23152
|
drawLineGraphHoverZones({
|
|
23016
23153
|
events: s,
|
|
@@ -23045,42 +23182,71 @@ const Ih = _h.exports, G = {
|
|
|
23045
23182
|
drawSingleBarEventsGroup({
|
|
23046
23183
|
type: s,
|
|
23047
23184
|
eventsGroup: e,
|
|
23048
|
-
|
|
23049
|
-
|
|
23050
|
-
|
|
23185
|
+
milestone: t,
|
|
23186
|
+
dots: i,
|
|
23187
|
+
dotsSize: r,
|
|
23188
|
+
bottom: n
|
|
23051
23189
|
}) {
|
|
23052
|
-
const {
|
|
23053
|
-
|
|
23054
|
-
|
|
23055
|
-
|
|
23190
|
+
const {
|
|
23191
|
+
color: a,
|
|
23192
|
+
bgColor: o,
|
|
23193
|
+
label: l,
|
|
23194
|
+
events: c,
|
|
23195
|
+
barBorderRadius: u,
|
|
23196
|
+
isLoading: h,
|
|
23197
|
+
height: d,
|
|
23198
|
+
chartType: f
|
|
23199
|
+
} = e;
|
|
23200
|
+
let m = this.getBarGroupYPosition(s, n);
|
|
23201
|
+
const y = [
|
|
23202
|
+
Ae.bars,
|
|
23203
|
+
Ae.dots,
|
|
23204
|
+
void 0
|
|
23205
|
+
].includes(f) ? this.getBarGroupHeight(e) : d;
|
|
23206
|
+
t && (m = this.getMilestoneGroupYPosition(s)), this.drawProgressIndicator({
|
|
23207
|
+
yPosition: m,
|
|
23056
23208
|
type: s,
|
|
23057
|
-
color:
|
|
23058
|
-
isLoading:
|
|
23209
|
+
color: a,
|
|
23210
|
+
isLoading: h
|
|
23059
23211
|
});
|
|
23060
|
-
const
|
|
23061
|
-
this.drawBackground({
|
|
23062
|
-
color:
|
|
23063
|
-
gElement:
|
|
23064
|
-
yPosition:
|
|
23065
|
-
height:
|
|
23066
|
-
}),
|
|
23067
|
-
|
|
23068
|
-
|
|
23069
|
-
|
|
23070
|
-
|
|
23071
|
-
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
23212
|
+
const v = this.svg.append("g").attr("data-color", a).classed(G.eventGroup, !0).classed(`${G.eventGroup}-${s}`, !0);
|
|
23213
|
+
if (this.drawBackground({
|
|
23214
|
+
color: o || a,
|
|
23215
|
+
gElement: v,
|
|
23216
|
+
yPosition: m,
|
|
23217
|
+
height: y
|
|
23218
|
+
}), t || i) {
|
|
23219
|
+
const T = i ? 0.5 : 2, x = m + y / 2;
|
|
23220
|
+
v.append("line").classed(je.milestoneLine, !0).attr("x1", 0).attr("x2", this.timeline.offsetWidth).attr("y1", x).attr("y2", x).style("stroke", a).style("stroke-width", T);
|
|
23221
|
+
}
|
|
23222
|
+
this.drawBars({
|
|
23223
|
+
events: c,
|
|
23224
|
+
color: a,
|
|
23225
|
+
gElement: v,
|
|
23226
|
+
yPosition: m,
|
|
23075
23227
|
type: s,
|
|
23076
|
-
|
|
23077
|
-
|
|
23078
|
-
height:
|
|
23228
|
+
dots: i,
|
|
23229
|
+
dotsSize: r,
|
|
23230
|
+
height: d,
|
|
23231
|
+
barBorderRadius: u
|
|
23232
|
+
}), l && this.drawTextLabel({
|
|
23233
|
+
color: a,
|
|
23234
|
+
label: l,
|
|
23235
|
+
type: s,
|
|
23236
|
+
gElement: v,
|
|
23237
|
+
yPosition: m,
|
|
23238
|
+
height: d
|
|
23079
23239
|
});
|
|
23080
23240
|
},
|
|
23081
23241
|
drawBarEventsGroups() {
|
|
23082
23242
|
Object.entries(this.barGroups).forEach(
|
|
23083
|
-
([s, e]
|
|
23243
|
+
([s, e]) => this.drawSingleBarEventsGroup({
|
|
23244
|
+
type: s,
|
|
23245
|
+
eventsGroup: e,
|
|
23246
|
+
bottom: e.bottom,
|
|
23247
|
+
dots: e.chartType === Ae.dots,
|
|
23248
|
+
dotsSize: e.dotsSize || 3
|
|
23249
|
+
})
|
|
23084
23250
|
);
|
|
23085
23251
|
},
|
|
23086
23252
|
drawMilestonesPlaceholder() {
|
|
@@ -23092,14 +23258,13 @@ const Ih = _h.exports, G = {
|
|
|
23092
23258
|
events: [],
|
|
23093
23259
|
isLoading: !1
|
|
23094
23260
|
},
|
|
23095
|
-
milestone: !0
|
|
23096
|
-
height: e.height
|
|
23261
|
+
milestone: !0
|
|
23097
23262
|
})
|
|
23098
23263
|
), this.updateMilestonesPositions();
|
|
23099
23264
|
},
|
|
23100
23265
|
getMilestoneClass(s) {
|
|
23101
23266
|
return {
|
|
23102
|
-
[
|
|
23267
|
+
[je.milestoneSelected]: [
|
|
23103
23268
|
s.id,
|
|
23104
23269
|
s.timestamp
|
|
23105
23270
|
].includes(this.selectedMilestoneId)
|
|
@@ -23113,31 +23278,43 @@ const Ih = _h.exports, G = {
|
|
|
23113
23278
|
},
|
|
23114
23279
|
getMilestoneGroupYPosition(s) {
|
|
23115
23280
|
let e = 0;
|
|
23116
|
-
for (const [
|
|
23281
|
+
for (const [t, i] of Object.entries(this.milestonesGroups)) {
|
|
23282
|
+
if (t === s)
|
|
23283
|
+
break;
|
|
23284
|
+
e += i.height || this.barChartHeight;
|
|
23285
|
+
}
|
|
23286
|
+
return this.combinedXAxesHeight + this.milestonesYOffset + e;
|
|
23287
|
+
},
|
|
23288
|
+
getBarGroupYPosition(s, e) {
|
|
23289
|
+
let t = this.combinedXAxesHeight;
|
|
23290
|
+
e ? t += (this.hasChart ? this.chartHeight : 0) + (this.hasMilestones ? this.combinedMilestonesHeight : 0) : t += this.barsYOffset;
|
|
23291
|
+
for (const [i, r] of Object.entries(this.barGroups)) {
|
|
23117
23292
|
if (i === s)
|
|
23118
23293
|
break;
|
|
23119
|
-
e
|
|
23294
|
+
!e && r.bottom || (t += this.getBarGroupHeight(r));
|
|
23120
23295
|
}
|
|
23121
|
-
|
|
23122
|
-
|
|
23296
|
+
return t;
|
|
23297
|
+
},
|
|
23298
|
+
getBarGroupHeight(s) {
|
|
23299
|
+
return s.height ? Math.max(s.height + this.barYPadding, 1) : this.barChartHeight;
|
|
23123
23300
|
},
|
|
23124
23301
|
updateMilestonesPositions() {
|
|
23125
23302
|
Object.entries(this.milestonesGroups).forEach(([s, e]) => {
|
|
23126
23303
|
const t = this.getMilestoneGroupYPosition(s), i = this.svg.select(
|
|
23127
23304
|
`g.${G.eventGroup}-${s}`
|
|
23128
|
-
), r =
|
|
23129
|
-
i.attr("x1", 0).attr("x2", this.timeline.offsetWidth).select(`.${
|
|
23130
|
-
const
|
|
23131
|
-
`.${
|
|
23305
|
+
), r = 2, a = (e.height || this.barChartHeight) / 2, o = t + a - r / 2;
|
|
23306
|
+
i.attr("x1", 0).attr("x2", this.timeline.offsetWidth).select(`.${je.milestoneLine}`).attr("y1", o).attr("y2", o);
|
|
23307
|
+
const l = I.select(
|
|
23308
|
+
`.${je.milestonesContainer}-${s}`
|
|
23132
23309
|
);
|
|
23133
|
-
|
|
23134
|
-
const
|
|
23135
|
-
`.${
|
|
23136
|
-
).data(e.events);
|
|
23137
|
-
|
|
23310
|
+
l.style("top", `${t}px`).style("height", `${e.height || this.barChartHeight}px`);
|
|
23311
|
+
const c = l.selectAll(
|
|
23312
|
+
`.${je.milestone}`
|
|
23313
|
+
).data(this.getSortedEvents(e.events));
|
|
23314
|
+
c.exit().remove(), c.enter().append("div").merge(c).style(
|
|
23138
23315
|
"left",
|
|
23139
|
-
(
|
|
23140
|
-
).style("top", `${
|
|
23316
|
+
(u) => `${this.timeScale(this.tzStringToDate(u.timestamp))}px`
|
|
23317
|
+
).style("top", `${o}px`);
|
|
23141
23318
|
});
|
|
23142
23319
|
},
|
|
23143
23320
|
drawBarChartEventsGroups() {
|
|
@@ -23165,7 +23342,7 @@ const Ih = _h.exports, G = {
|
|
|
23165
23342
|
this.svg.append("rect").classed(
|
|
23166
23343
|
`${G.loadingIndicator} ${G.loadingIndicator}-${e}`,
|
|
23167
23344
|
!0
|
|
23168
|
-
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${
|
|
23345
|
+
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Ue.loadingGradient}-${e})`).style("visibility", t ? "visible" : "hidden");
|
|
23169
23346
|
},
|
|
23170
23347
|
drawBackground({
|
|
23171
23348
|
color: s,
|
|
@@ -23173,26 +23350,34 @@ const Ih = _h.exports, G = {
|
|
|
23173
23350
|
gElement: t,
|
|
23174
23351
|
height: i
|
|
23175
23352
|
}) {
|
|
23176
|
-
t.append("rect").attr("class", G.eventGroupBg).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth).attr("height", i || this.barChartHeight).attr("fill",
|
|
23353
|
+
t.append("rect").attr("class", G.eventGroupBg).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth).attr("height", i || this.barChartHeight).attr("fill", I.color(s).toString()).style("opacity", 0.1);
|
|
23177
23354
|
},
|
|
23178
23355
|
drawBars({
|
|
23179
23356
|
events: s,
|
|
23180
23357
|
gElement: e,
|
|
23181
23358
|
yPosition: t,
|
|
23182
23359
|
color: i,
|
|
23183
|
-
type: r
|
|
23360
|
+
type: r,
|
|
23361
|
+
dots: n,
|
|
23362
|
+
dotsSize: a,
|
|
23363
|
+
height: o,
|
|
23364
|
+
barBorderRadius: l = 1.5
|
|
23184
23365
|
}) {
|
|
23185
|
-
const
|
|
23186
|
-
|
|
23366
|
+
const c = this, u = t + this.barYPadding / 2, h = n ? ((o || this.barChartHeight) - a) / 2 : 0;
|
|
23367
|
+
let d = Math.max(
|
|
23368
|
+
(o != null ? o : this.barChartHeight) - this.barYPadding,
|
|
23369
|
+
1
|
|
23370
|
+
);
|
|
23371
|
+
n && (d = a), e.selectAll(G.eventRect).data(s).enter().append("rect").attr(
|
|
23187
23372
|
"class",
|
|
23188
|
-
(
|
|
23189
|
-
).attr("x", this.getEventRectX).attr("y",
|
|
23190
|
-
|
|
23373
|
+
(f) => G.eventRect + (n ? ` ${G.eventRect}--dot` : "") + (f.className ? ` ${f.className}` : "")
|
|
23374
|
+
).attr("x", this.getEventRectX).attr("y", u + h).attr("ry", n ? a : l).attr("rx", n ? a : l).attr("width", n ? a : this.getEventRectWidth).attr("height", d).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (f) => f.color || i).on("mouseover", function(f, m) {
|
|
23375
|
+
I.select(this).classed(G.eventRectHovered, !0), c.handleBarMouseOver(f, m, r);
|
|
23191
23376
|
}).on("mouseout", function() {
|
|
23192
|
-
|
|
23193
|
-
}), e.selectAll(G.eventRectText).data(s.filter((
|
|
23377
|
+
I.select(this).classed(G.eventRectHovered, !1), c.handleBarMouseOut();
|
|
23378
|
+
}), e.selectAll(G.eventRectText).data(s.filter((f) => !!f.text)).enter().append("text").attr("class", G.eventRectText).attr("x", (f) => this.getEventRectX(f) + this.textPadding).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
|
|
23194
23379
|
"fill",
|
|
23195
|
-
(
|
|
23380
|
+
(f) => this.getTextFillColor(f.color || i, 0.75)
|
|
23196
23381
|
).text(this.getEventText);
|
|
23197
23382
|
},
|
|
23198
23383
|
drawBarsChart({
|
|
@@ -23213,17 +23398,17 @@ const Ih = _h.exports, G = {
|
|
|
23213
23398
|
).attr("x", u).attr("y", -i).attr("width", l).attr("height", this.yScale.range()[0] + i).attr("fill", (f) => f.color || t).attr("fill-opacity", 0), d.append("rect").attr(
|
|
23214
23399
|
"class",
|
|
23215
23400
|
(f) => G.eventBar + (f.className ? ` ${f.className}` : "")
|
|
23216
|
-
).attr("x", u).attr("y", h).attr("width", l).attr("height", c).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${
|
|
23401
|
+
).attr("x", u).attr("y", h).attr("width", l).attr("height", c).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${Ue.transparencyGradient}-${r})`), d.append("rect").attr(
|
|
23217
23402
|
"class",
|
|
23218
23403
|
(f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
|
|
23219
23404
|
).attr("x", u).attr("y", h).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (f) => f.color || t), d.on("mouseover", function(f, m) {
|
|
23220
|
-
const g =
|
|
23405
|
+
const g = I.select(this);
|
|
23221
23406
|
a.onBarChartBarMouseOver(g, t), a.handleBarMouseOver(f, m, r);
|
|
23222
23407
|
}).on("mouseout", function() {
|
|
23223
|
-
const f =
|
|
23408
|
+
const f = I.select(this);
|
|
23224
23409
|
a.onBarChartBarMouseOut(f, r), a.handleBarMouseOut();
|
|
23225
23410
|
}).on("click", function() {
|
|
23226
|
-
e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1),
|
|
23411
|
+
e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1), I.select(this).classed(G.eventBarContainerSelected, !0);
|
|
23227
23412
|
});
|
|
23228
23413
|
},
|
|
23229
23414
|
onBarChartBarMouseOver(s, e) {
|
|
@@ -23234,7 +23419,7 @@ const Ih = _h.exports, G = {
|
|
|
23234
23419
|
onBarChartBarMouseOut(s, e) {
|
|
23235
23420
|
s.classed(G.eventBarContainerHovered, !1), s.selectAll(`.${G.eventBarHoverZone}`).attr("fill-opacity", 0);
|
|
23236
23421
|
const i = s.selectAll(`.${G.eventBar}`);
|
|
23237
|
-
i.attr("fill", `url(#${
|
|
23422
|
+
i.attr("fill", `url(#${Ue.transparencyGradient}-${e})`), i.attr("fill-opacity", 1);
|
|
23238
23423
|
},
|
|
23239
23424
|
drawTextLabel({
|
|
23240
23425
|
gElement: s,
|
|
@@ -23257,10 +23442,10 @@ const Ih = _h.exports, G = {
|
|
|
23257
23442
|
},
|
|
23258
23443
|
getTextFillColor(s, e = 0) {
|
|
23259
23444
|
var t, i;
|
|
23260
|
-
return (this.dark ? (t =
|
|
23445
|
+
return (this.dark ? (t = I.color(s)) == null ? void 0 : t.brighter(1.5 + e) : (i = I.color(s)) == null ? void 0 : i.darker(2 + e)).toString();
|
|
23261
23446
|
},
|
|
23262
23447
|
getLabelBackgroundColor(s) {
|
|
23263
|
-
let e =
|
|
23448
|
+
let e = I.color(s);
|
|
23264
23449
|
return e.opacity = this.dark ? 0.2 : 0.5, e.toString();
|
|
23265
23450
|
},
|
|
23266
23451
|
getCurrentGroupVisibility(s) {
|
|
@@ -23317,18 +23502,18 @@ const Ih = _h.exports, G = {
|
|
|
23317
23502
|
};
|
|
23318
23503
|
},
|
|
23319
23504
|
tzStringToDate(s) {
|
|
23320
|
-
return
|
|
23505
|
+
return Ke(s).add(this.utcOffset, "minutes").toDate();
|
|
23321
23506
|
},
|
|
23322
23507
|
dateToTzString(s) {
|
|
23323
23508
|
const e = new Date(s).getTimezoneOffset();
|
|
23324
|
-
return
|
|
23509
|
+
return Ke(s).add(e, "minutes").utcOffset(this.utcOffset, !0).format();
|
|
23325
23510
|
},
|
|
23326
23511
|
getCurrentTimeBounds() {
|
|
23327
23512
|
const s = this.timeScale.domain();
|
|
23328
23513
|
return { startDate: s[0], endDate: s[1] };
|
|
23329
23514
|
},
|
|
23330
23515
|
getFormattedTimestamp(s) {
|
|
23331
|
-
return
|
|
23516
|
+
return Ke.parseZone(s).format("YYYY-MM-DDTHH:mm:ss");
|
|
23332
23517
|
},
|
|
23333
23518
|
fillTimeGaps(s) {
|
|
23334
23519
|
if (s.length <= 1)
|
|
@@ -23339,14 +23524,14 @@ const Ih = _h.exports, G = {
|
|
|
23339
23524
|
const a = s[n];
|
|
23340
23525
|
if (r.push(a), n === s.length - 1)
|
|
23341
23526
|
break;
|
|
23342
|
-
const o = s[n + 1], l =
|
|
23527
|
+
const o = s[n + 1], l = Ke(a.timestamp), c = Ke(o.timestamp);
|
|
23343
23528
|
if (c.diff(l, e) > 1) {
|
|
23344
23529
|
const u = t(l).toISOString(), h = i(c).toISOString();
|
|
23345
23530
|
r.push({ timestamp: u, count: 0 }), u !== h && r.push({ timestamp: h, count: 0 });
|
|
23346
23531
|
}
|
|
23347
23532
|
}
|
|
23348
23533
|
if (this.flattenLineGraphEnds) {
|
|
23349
|
-
const n =
|
|
23534
|
+
const n = Ke(s[0].timestamp), a = Ke(s[s.length - 1].timestamp), o = i(n).toISOString(), l = t(a).toISOString();
|
|
23350
23535
|
r = [
|
|
23351
23536
|
{ timestamp: o, count: 0 },
|
|
23352
23537
|
...r,
|
|
@@ -23362,6 +23547,11 @@ const Ih = _h.exports, G = {
|
|
|
23362
23547
|
},
|
|
23363
23548
|
onMilestoneClick(s, e) {
|
|
23364
23549
|
this.panOnDateClick && this.panToTimestamp(s.timestamp), this.selectedMilestoneId = s.id || s.timestamp, this.$emit("milestone-click", { milestone: s, milestoneType: e });
|
|
23550
|
+
},
|
|
23551
|
+
getSortedEvents(s) {
|
|
23552
|
+
return [...s].sort(
|
|
23553
|
+
(e, t) => new Date(e.timestamp || e.startDate) > new Date(t.timestamp || t.startDate) ? 1 : -1
|
|
23554
|
+
);
|
|
23365
23555
|
}
|
|
23366
23556
|
}
|
|
23367
23557
|
});
|
|
@@ -23374,13 +23564,13 @@ var kh = function() {
|
|
|
23374
23564
|
return [e._v(" " + e._s(i.label) + " ")];
|
|
23375
23565
|
}, { marker: i })], 2)]), t("div", { staticClass: "marker-line e-absolute e-pointer-events-none", style: e.getMarkerLineStyle(i) })]);
|
|
23376
23566
|
}), e.autoResize ? t("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.onResize, expression: "onResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }) : t("div", { ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }), e._l(e.milestonesGroups, function(i, r) {
|
|
23377
|
-
return t("div", { key: `${r}`, staticClass: "e-timeline-milestones" }, [t("div", { class: `e-tl-milestones e-tl-milestones-${r}` }, e._l(i.events, function(n, a) {
|
|
23378
|
-
return t("ETimelineMilestone", { key: `${n.milestoneType}-${a}`, class: e.getMilestoneClass(n), attrs: { size: n.size || e.milestoneBulletSize,
|
|
23567
|
+
return t("div", { key: `${r}`, staticClass: "e-timeline-milestones" }, [t("div", { class: `e-tl-milestones e-tl-milestones-${r}` }, e._l(e.getSortedEvents(i.events), function(n, a) {
|
|
23568
|
+
return t("ETimelineMilestone", { key: `${n.milestoneType}-${a}`, class: e.getMilestoneClass(n), attrs: { "data-timestamp": n.timestamp, milestone: n, dot: i.dots, size: n.size || e.milestoneBulletSize, "transition-duration": i.milestonesTransitionDuration, "line-height": i.milestonesLineHeight, "dot-size": i.milestonesDotSize, "background-color": e.getMilestoneColors(n.color, i.color).background, "border-color": e.getMilestoneColors(n.color, i.color).border }, on: { "milestone-click": function(o) {
|
|
23379
23569
|
return e.onMilestoneClick(n, r);
|
|
23380
23570
|
} }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
23381
23571
|
return [e._t(`milestoneContent.${n.milestoneType}`, function() {
|
|
23382
|
-
return [t("span", [e._v(" " + e._s(n.text) + " ")])];
|
|
23383
|
-
}, { milestone: n })];
|
|
23572
|
+
return [t("span", { staticClass: "e-px-2" }, [e._v(" " + e._s(n.text) + " ")])];
|
|
23573
|
+
}, { milestone: n, index: a })];
|
|
23384
23574
|
}, proxy: !0 }, { key: "label", fn: function() {
|
|
23385
23575
|
return [e._t(`milestoneLabel.${n.milestoneType}`, null, { milestone: n })];
|
|
23386
23576
|
}, proxy: !0 }], null, !0) });
|
|
@@ -23519,7 +23709,7 @@ export {
|
|
|
23519
23709
|
Y as Size,
|
|
23520
23710
|
Ia as TextSizes,
|
|
23521
23711
|
kt as TimelineAxis,
|
|
23522
|
-
|
|
23712
|
+
Ae as TimelineChartType,
|
|
23523
23713
|
Pt as TimelineIntervalChangeTrigger,
|
|
23524
23714
|
Cr as components,
|
|
23525
23715
|
vh as debounce,
|