@evercam/ui 0.0.55-beta.3 → 0.0.55-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import He from "vue";
2
- import * as w from "d3";
2
+ import * as I from "d3";
3
3
  import Ve from "moment-timezone";
4
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 || {}), qe = /* @__PURE__ */ ((s) => (s.bars = "bars", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(qe || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
5
5
  const ma = He.extend({
@@ -2308,7 +2308,7 @@ var Ji = {}, Zr = {}, ei = {};
2308
2308
  function P(F) {
2309
2309
  return D.has(F);
2310
2310
  }
2311
- let I = /* @__PURE__ */ new Set([
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 I.has(F);
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 I = u(C, D);
2415
- return I === void 0 ? void 0 : (0, n.default)(I);
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 I = (P = b.values) === null || P === void 0 ? void 0 : P[C];
2421
- return I !== void 0 ? I : b.supportsNegativeValues && C.startsWith("-") ? h(C.slice(1), b.values, D) : u(C, D);
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 I;
2453
- return g((I = b.values) === null || I === void 0 ? void 0 : I[C]);
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 I = B(C, b, D, P);
2529
- for (let $ of I)
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 I = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
2535
- if (I && 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") {
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, ...I) {
2585
- let $ = I.pop();
2586
- for (let O of I)
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((I) => P[I] !== "0").reduce((I, $) => {
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 && (I[`-${$}`] = O), I;
2598
+ return O !== void 0 && (w[`-${$}`] = O), w;
2599
2599
  }, {});
2600
2600
  },
2601
2601
  breakpoints(P) {
2602
- return Object.keys(P).filter((I) => typeof P[I] == "string").reduce((I, $) => ({
2603
- ...I,
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, ...I) {
2609
- return m(P) ? P(...I) : P;
2608
+ function v(P, ...w) {
2609
+ return m(P) ? P(...w) : P;
2610
2610
  }
2611
2611
  function T(P) {
2612
- return P.reduce((I, { extend: $ }) => g(I, $, (O, U) => O === void 0 ? [
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((I, $) => (0, n.defaults)(I, $), {}),
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, I) {
2630
+ function L(P, w) {
2631
2631
  if (Array.isArray(P) && (0, l.default)(P[0]))
2632
- return P.concat(I);
2633
- if (Array.isArray(I) && (0, l.default)(I[0]) && (0, l.default)(P))
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
- ...I
2636
+ ...w
2637
2637
  ];
2638
- if (Array.isArray(I))
2639
- return I;
2638
+ if (Array.isArray(w))
2639
+ return w;
2640
2640
  }
2641
- function E({ extend: P, ...I }) {
2642
- return g(I, P, ($, O) => !m($) && !O.some(m) ? g({}, $, ...O, L) : (U, F) => 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 I = (0, a.toPath)(P);
2649
- if (I.length === 0 || (yield I, Array.isArray(P)))
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 I = ($, O) => {
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(I, y) : 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(I, {
2674
- theme: I,
2673
+ return Object.assign(w, {
2674
+ theme: w,
2675
2675
  ...y
2676
- }), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](I, y) : 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 I = [];
2679
+ let w = [];
2680
2680
  return P.forEach(($) => {
2681
- I = [
2682
- ...I,
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
- I = [
2691
- ...I,
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
- }), I;
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 I = [
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(I.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
2726
- corePlugins: C(I.map((U) => U.corePlugins)),
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
- }, ...I));
2728
+ }, ...w));
2729
2729
  }
2730
2730
  })(Br);
2731
2731
  var en = {}, Aa = {
@@ -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 I = (b & 4) !== 0, $ = (b & 256) !== 0;
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), I && (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 I = new ne(D);
6088
- ve(o, I, ["RECENTLY-REMOVED-DATERANGES"]);
6089
- const $ = I.decimalInteger("SKIPPED-SEGMENTS");
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 = I.enumeratedString("RECENTLY-REMOVED-DATERANGES");
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 I = new ne(D);
6126
- ve(o, I, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), ve(o, I, I.clientAttrs);
6127
- const $ = new nn(I, o.dateRanges[I.ID]);
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 I = new ne(D);
6134
- ve(o, I, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in I ? Wo(o, I, a) : Rs(o, I, t);
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 I = ks(D, t, o);
6143
- if (I.isSupported()) {
6144
- if (I.method === "NONE") {
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[I.keyFormat] && (T = oe({}, T)), T[I.keyFormat] = I;
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 I = new ne(D);
6158
- if (ve(o, I, ["BYTERANGE", "URI"]), g.duration) {
6157
+ const w = new ne(D);
6158
+ if (ve(o, w, ["BYTERANGE", "URI"]), g.duration) {
6159
6159
  const $ = new ai(r, t);
6160
- Ms($, I, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
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, I, i, T), c = g, L = !0;
6168
+ Ms(g, w, i, T), c = g, L = !0;
6169
6169
  }
6170
6170
  break;
6171
6171
  }
6172
6172
  case "SERVER-CONTROL": {
6173
- const I = new ne(D);
6174
- o.canBlockReload = I.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = I.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && I.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = I.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = I.optionalFloat("HOLD-BACK", 0);
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 I = new ne(D);
6179
- o.partTarget = I.decimalFloatingPoint("PART-TARGET");
6178
+ const w = new ne(D);
6179
+ o.partTarget = w.decimalFloatingPoint("PART-TARGET");
6180
6180
  break;
6181
6181
  }
6182
6182
  case "PART": {
6183
- let I = o.partList;
6184
- I || (I = o.partList = []);
6185
- const $ = h > 0 ? I[I.length - 1] : void 0, O = h++, U = new ne(D);
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
- I.push(F), g.duration += F.duration;
6188
+ w.push(F), g.duration += F.duration;
6189
6189
  break;
6190
6190
  }
6191
6191
  case "PRELOAD-HINT": {
6192
- const I = new ne(D);
6193
- ve(o, I, ["URI"]), o.preloadHint = I;
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 I = new ne(D);
6198
- ve(o, I, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(I);
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:
@@ -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 I = x[D].maxBitrate;
8181
- if (b = this.getTimeToLoadFrag(f / 1e3, C, c * I, !x[D].details), b < g)
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, I = [];
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
- I.push(O);
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) && (I.length && S.trace(`[abr] Skipped level(s) ${I.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${m[I[0]].codecs}" ${m[I[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;
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;
@@ -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, I, $, O, U;
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]), I = F(v[t + 2]), $ = F(v[t + 3]), R = D ^ n[0], B = $ ^ n[1], C = I ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
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 = I, y = $, t = t + 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 = w, y = $, t = t + 4;
9247
9247
  }
9248
9248
  return T.buffer;
9249
9249
  }
@@ -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, I;
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, I = y;
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 = I);
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, I = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_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), I = Math.min(I, ee), O = Math.max(O, ee), o.push(new er(M.key, d, Z, ae));
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 - I < $ - P && L / $ < 0.025 && o[0].cts === 0) {
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, I = v / a, O = {
12840
+ const P = L / a, w = v / a, O = {
12841
12841
  data1: D,
12842
12842
  data2: k,
12843
12843
  startPTS: P,
12844
- endPTS: I,
12844
+ endPTS: w,
12845
12845
  startDTS: P,
12846
- endDTS: I,
12846
+ endDTS: w,
12847
12847
  type: "audio",
12848
12848
  hasAudio: !0,
12849
12849
  hasVideo: !1,
@@ -21463,7 +21463,7 @@ var Th = function() {
21463
21463
  null
21464
21464
  );
21465
21465
  const bh = Sh.exports, Zt = (s) => {
21466
- const e = w.utcFormat("%_d")(s), i = {
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 ? "" : w.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(w.utcFormat("%H")(s)) ? "" : `${w.utcFormat("%H")(s)}h`, ze = (s) => {
21475
- const e = w.utcFormat("%H:%M")(s);
21474
+ ).getUTCDate() === 1 ? "" : I.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(I.utcFormat("%H")(s)) ? "" : `${I.utcFormat("%H")(s)}h`, ze = (s) => {
21475
+ const e = I.utcFormat("%H:%M")(s);
21476
21476
  return e === "00:00" ? "" : e;
21477
- }, _i = (s) => w.utcFormat("%M:%S")(s), Lr = (s) => `${w.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
21478
- const e = ze(s), t = Zt(s), i = w.utcFormat("%B")(s);
21477
+ }, _i = (s) => I.utcFormat("%M:%S")(s), Lr = (s) => `${I.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
21478
+ const e = ze(s), t = Zt(s), i = I.utcFormat("%B")(s);
21479
21479
  return e || `${i} ${t}`;
21480
21480
  }, Ii = (s) => {
21481
- const e = ze(s), t = Number.parseInt(w.utcFormat("%H")(s)), i = Zt(s), r = w.utcFormat("%B")(s);
21481
+ const e = ze(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 = w.utcFormat("%H")(e);
21485
- return !(w.utcFormat("%M")(e) === "00" && Number.parseInt(t) % s === 0);
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 = w.utcFormat("%M")(e);
21487
+ const t = I.utcFormat("%M")(e);
21488
21488
  return Number.parseInt(t) % s !== 0;
21489
21489
  }, Rr = (s) => (e) => {
21490
- const t = w.utcFormat("%M")(e), i = w.utcFormat("%S")(e);
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: w.utcMinute.every(2),
21524
+ interval: I.utcMinute.every(2),
21525
21525
  format: Lr
21526
21526
  },
21527
21527
  {
21528
21528
  precision: K._1_minute,
21529
- interval: w.utcMinute.every(5),
21529
+ interval: I.utcMinute.every(5),
21530
21530
  format: Lr
21531
21531
  },
21532
21532
  {
21533
21533
  precision: K._2_minutes,
21534
- interval: w.utcMinute.every(10),
21534
+ interval: I.utcMinute.every(10),
21535
21535
  format: Yi
21536
21536
  },
21537
21537
  {
21538
21538
  precision: K._5_minutes,
21539
- interval: w.utcMinute.every(20),
21539
+ interval: I.utcMinute.every(20),
21540
21540
  format: Ii
21541
21541
  },
21542
21542
  {
21543
21543
  precision: K._15_minutes,
21544
- interval: w.utcHour,
21544
+ interval: I.utcHour,
21545
21545
  format: Ii
21546
21546
  },
21547
21547
  {
21548
21548
  precision: K._30_minutes,
21549
- interval: w.utcHour.every(2),
21549
+ interval: I.utcHour.every(2),
21550
21550
  format: Ii
21551
21551
  },
21552
21552
  {
21553
21553
  precision: K._2_hours,
21554
- interval: w.utcHour.every(6),
21554
+ interval: I.utcHour.every(6),
21555
21555
  format: (s) => {
21556
- const e = ze(s), t = Zt(s), i = w.utcFormat("%B")(s);
21556
+ const e = ze(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: w.utcHour.every(12),
21562
+ interval: I.utcHour.every(12),
21563
21563
  format: Yi
21564
21564
  },
21565
21565
  {
21566
21566
  precision: K._6_hours,
21567
- interval: w.utcHour.every(24),
21567
+ interval: I.utcHour.every(24),
21568
21568
  format: (s) => {
21569
21569
  const e = Zt(s);
21570
- return `${w.utcFormat("%b")(s)} ${e}`;
21570
+ return `${I.utcFormat("%b")(s)} ${e}`;
21571
21571
  }
21572
21572
  },
21573
21573
  {
21574
21574
  precision: K._2_days,
21575
- interval: w.utcMonth,
21575
+ interval: I.utcMonth,
21576
21576
  format: (s) => {
21577
21577
  const t = s.getUTCMonth() === 0 && s.getUTCDate() === 1 ? "%Y – %B" : "%B";
21578
- return w.utcFormat(t)(s);
21578
+ return I.utcFormat(t)(s);
21579
21579
  }
21580
21580
  },
21581
21581
  {
21582
21582
  precision: K._2_year,
21583
- interval: w.utcYear.every(2),
21583
+ interval: I.utcYear.every(2),
21584
21584
  format: "%Y"
21585
21585
  },
21586
21586
  {
21587
21587
  precision: K._5_years,
21588
- interval: w.utcYear.every(5),
21588
+ interval: I.utcYear.every(5),
21589
21589
  format: "%Y"
21590
21590
  },
21591
21591
  {
21592
21592
  precision: K._20_years,
21593
- interval: w.utcYear.every(20),
21593
+ interval: I.utcYear.every(20),
21594
21594
  format: "%Y"
21595
21595
  },
21596
21596
  {
21597
21597
  precision: K._75_years,
21598
- interval: w.utcYear.every(75),
21598
+ interval: I.utcYear.every(75),
21599
21599
  format: "%Y"
21600
21600
  },
21601
21601
  {
21602
21602
  precision: K._300_years,
21603
- interval: w.utcYear.every(300),
21603
+ interval: I.utcYear.every(300),
21604
21604
  format: "%Y"
21605
21605
  },
21606
21606
  {
21607
21607
  precision: K.infinity,
21608
- interval: w.utcMonth.every(12),
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: w.utcSecond.every(10),
21615
+ interval: I.utcSecond.every(10),
21616
21616
  format: _i
21617
21617
  },
21618
21618
  {
21619
21619
  precision: K._20_seconds,
21620
- interval: (Dr = w.utcSecond.every(20)) == null ? void 0 : Dr.filter(Rr(2)),
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 = w.utcSecond.every(30)) == null ? void 0 : _r.filter(Rr(2)),
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: w.utcMinute.filter(wi(5)),
21630
+ interval: I.utcMinute.filter(wi(5)),
21631
21631
  format: ze
21632
21632
  },
21633
21633
  {
21634
21634
  precision: K._2_minutes,
21635
- interval: (Ir = w.utcMinute.every(2)) == null ? void 0 : Ir.filter(wi(10)),
21635
+ interval: (Ir = I.utcMinute.every(2)) == null ? void 0 : Ir.filter(wi(10)),
21636
21636
  format: ze
21637
21637
  },
21638
21638
  {
21639
21639
  precision: K._5_minutes,
21640
- interval: (wr = w.utcMinute.every(5)) == null ? void 0 : wr.filter(wi(20)),
21640
+ interval: (wr = I.utcMinute.every(5)) == null ? void 0 : wr.filter(wi(20)),
21641
21641
  format: ze
21642
21642
  },
21643
21643
  {
21644
21644
  precision: K._15_minutes,
21645
- interval: (kr = w.utcMinute.every(15)) == null ? void 0 : kr.filter(pt(1)),
21645
+ interval: (kr = I.utcMinute.every(15)) == null ? void 0 : kr.filter(pt(1)),
21646
21646
  format: ze
21647
21647
  },
21648
21648
  {
21649
21649
  precision: K._30_minutes,
21650
- interval: (Pr = w.utcMinute.every(30)) == null ? void 0 : Pr.filter(pt(2)),
21650
+ interval: (Pr = I.utcMinute.every(30)) == null ? void 0 : Pr.filter(pt(2)),
21651
21651
  format: ze
21652
21652
  },
21653
21653
  {
21654
21654
  precision: K._1_hour,
21655
- interval: w.utcHour.filter(pt(6)),
21655
+ interval: I.utcHour.filter(pt(6)),
21656
21656
  format: gt
21657
21657
  },
21658
21658
  {
21659
21659
  precision: K._2_hours,
21660
- interval: (Or = w.utcHour.every(2)) == null ? void 0 : Or.filter(pt(6)),
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 = w.utcHour.every(3)) == null ? void 0 : Fr.filter(pt(12)),
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: w.utcHour.every(4),
21670
+ interval: I.utcHour.every(4),
21671
21671
  format: gt
21672
21672
  },
21673
21673
  {
21674
21674
  precision: K._6_hours,
21675
- interval: w.utcHour.every(6),
21675
+ interval: I.utcHour.every(6),
21676
21676
  format: gt
21677
21677
  },
21678
21678
  {
21679
21679
  precision: K._1_day,
21680
- interval: w.utcDay,
21680
+ interval: I.utcDay,
21681
21681
  format: Ar
21682
21682
  },
21683
21683
  {
21684
21684
  precision: K._2_days,
21685
- interval: w.utcDay.every(2),
21685
+ interval: I.utcDay.every(2),
21686
21686
  format: Ar
21687
21687
  },
21688
21688
  {
21689
21689
  precision: K._1_month,
21690
- interval: w.utcMonth,
21690
+ interval: I.utcMonth,
21691
21691
  format: "%B"
21692
21692
  },
21693
21693
  {
21694
21694
  precision: K._1_month_abbr,
21695
- interval: w.utcMonth,
21695
+ interval: I.utcMonth,
21696
21696
  format: "%b"
21697
21697
  },
21698
21698
  {
21699
21699
  precision: K._1_month_letter,
21700
- interval: w.utcMonth,
21701
- format: (s) => w.utcFormat("%B")(s).charAt(0)
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: w.utcMonth.every(3),
21705
+ interval: I.utcMonth.every(3),
21706
21706
  format: "Q%q"
21707
21707
  },
21708
21708
  {
21709
21709
  precision: K._2_year,
21710
- interval: w.utcMonth.every(6),
21710
+ interval: I.utcMonth.every(6),
21711
21711
  format: "%Y"
21712
21712
  },
21713
21713
  {
21714
21714
  precision: K._5_years,
21715
- interval: w.utcYear.every(2),
21715
+ interval: I.utcYear.every(2),
21716
21716
  format: "%Y"
21717
21717
  },
21718
21718
  {
21719
21719
  precision: K._20_years,
21720
- interval: w.utcYear.every(4),
21720
+ interval: I.utcYear.every(4),
21721
21721
  format: "%Y"
21722
21722
  },
21723
21723
  {
21724
21724
  precision: K._75_years,
21725
- interval: w.utcYear.every(25),
21725
+ interval: I.utcYear.every(25),
21726
21726
  format: "%Y"
21727
21727
  },
21728
21728
  {
21729
21729
  precision: K._300_years,
21730
- interval: w.utcYear.every(100),
21730
+ interval: I.utcYear.every(100),
21731
21731
  format: "%Y"
21732
21732
  },
21733
21733
  {
21734
21734
  precision: K.infinity,
21735
- interval: w.utcYear.every(500),
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: w.utcSecond,
21742
+ interval: I.utcSecond,
21743
21743
  format: ""
21744
21744
  },
21745
21745
  {
21746
21746
  precision: K._20_seconds,
21747
- interval: w.utcSecond.every(5),
21747
+ interval: I.utcSecond.every(5),
21748
21748
  format: ""
21749
21749
  },
21750
21750
  {
21751
21751
  precision: K._30_seconds,
21752
- interval: w.utcSecond.every(10),
21752
+ interval: I.utcSecond.every(10),
21753
21753
  format: ""
21754
21754
  },
21755
21755
  {
21756
21756
  precision: K._1_minute,
21757
- interval: w.utcSecond.every(20),
21757
+ interval: I.utcSecond.every(20),
21758
21758
  format: ""
21759
21759
  },
21760
21760
  {
21761
21761
  precision: K._2_minutes,
21762
- interval: w.utcSecond.every(30),
21762
+ interval: I.utcSecond.every(30),
21763
21763
  format: ""
21764
21764
  },
21765
21765
  {
21766
21766
  precision: K._5_minutes,
21767
- interval: w.utcMinute,
21767
+ interval: I.utcMinute,
21768
21768
  format: ""
21769
21769
  },
21770
21770
  {
21771
21771
  precision: K._15_minutes,
21772
- interval: w.utcMinute.every(3),
21772
+ interval: I.utcMinute.every(3),
21773
21773
  format: ""
21774
21774
  },
21775
21775
  {
21776
21776
  precision: K._30_minutes,
21777
- interval: w.utcMinute.every(6),
21777
+ interval: I.utcMinute.every(6),
21778
21778
  format: ""
21779
21779
  },
21780
21780
  {
21781
21781
  precision: K._1_hour,
21782
- interval: w.utcMinute.every(15),
21782
+ interval: I.utcMinute.every(15),
21783
21783
  format: ""
21784
21784
  },
21785
21785
  {
21786
21786
  precision: K._2_hours,
21787
- interval: w.utcMinute.every(30),
21787
+ interval: I.utcMinute.every(30),
21788
21788
  format: ""
21789
21789
  },
21790
21790
  {
21791
21791
  precision: K._3_hours,
21792
- interval: w.utcHour,
21792
+ interval: I.utcHour,
21793
21793
  format: ""
21794
21794
  },
21795
21795
  {
21796
21796
  precision: K._4_hours,
21797
- interval: w.utcHour,
21797
+ interval: I.utcHour,
21798
21798
  format: ""
21799
21799
  },
21800
21800
  {
21801
21801
  precision: K._6_hours,
21802
- interval: w.utcMinute.every(120),
21802
+ interval: I.utcMinute.every(120),
21803
21803
  format: ""
21804
21804
  },
21805
21805
  {
21806
21806
  precision: K._1_day,
21807
- interval: w.utcHour.every(8),
21807
+ interval: I.utcHour.every(8),
21808
21808
  format: ""
21809
21809
  },
21810
21810
  {
21811
21811
  precision: K._2_days,
21812
- interval: w.utcHour.every(12),
21812
+ interval: I.utcHour.every(12),
21813
21813
  format: ""
21814
21814
  },
21815
21815
  {
21816
21816
  precision: K._1_month,
21817
- interval: w.utcDay.filter((s) => {
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: w.utcDay.filter((s) => {
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: w.utcDay.filter((s) => {
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: w.utcMonth,
21853
+ interval: I.utcMonth,
21854
21854
  format: ""
21855
21855
  },
21856
21856
  {
21857
21857
  precision: K._3_months,
21858
- interval: w.utcMonth,
21858
+ interval: I.utcMonth,
21859
21859
  format: ""
21860
21860
  },
21861
21861
  {
21862
21862
  precision: K._2_year,
21863
- interval: w.utcYear,
21863
+ interval: I.utcYear,
21864
21864
  format: ""
21865
21865
  },
21866
21866
  {
21867
21867
  precision: K._5_years,
21868
- interval: w.utcYear.every(2),
21868
+ interval: I.utcYear.every(2),
21869
21869
  format: ""
21870
21870
  },
21871
21871
  {
21872
21872
  precision: K._20_years,
21873
- interval: w.utcYear.every(5),
21873
+ interval: I.utcYear.every(5),
21874
21874
  format: ""
21875
21875
  },
21876
21876
  {
21877
21877
  precision: K._75_years,
21878
- interval: w.utcYear.every(20),
21878
+ interval: I.utcYear.every(20),
21879
21879
  format: ""
21880
21880
  },
21881
21881
  {
21882
21882
  precision: K._300_years,
21883
- interval: w.utcYear.every(100),
21883
+ interval: I.utcYear.every(100),
21884
21884
  format: ""
21885
21885
  },
21886
21886
  {
21887
21887
  precision: K.infinity,
21888
- interval: w.utcYear.every(500),
21888
+ interval: I.utcYear.every(500),
21889
21889
  format: ""
21890
21890
  }
21891
21891
  ]
@@ -22255,6 +22255,14 @@ const Ih = _h.exports, G = {
22255
22255
  type: String,
22256
22256
  default: void 0
22257
22257
  },
22258
+ minVisibleDate: {
22259
+ type: String,
22260
+ default: void 0
22261
+ },
22262
+ maxVisibleDate: {
22263
+ type: String,
22264
+ default: void 0
22265
+ },
22258
22266
  cursorTimestamp: {
22259
22267
  type: [String, void 0],
22260
22268
  default: void 0
@@ -22351,7 +22359,8 @@ const Ih = _h.exports, G = {
22351
22359
  markersDragBehavior: null,
22352
22360
  initialMarkerDragMouseOffset: 0,
22353
22361
  selectedMilestoneId: null,
22354
- isInitialized: !1
22362
+ isInitialized: !1,
22363
+ lastValidTransform: I.zoomIdentity
22355
22364
  };
22356
22365
  },
22357
22366
  computed: {
@@ -22561,7 +22570,7 @@ const Ih = _h.exports, G = {
22561
22570
  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;
22562
22571
  },
22563
22572
  initOrUpdateSvg() {
22564
- this.svg || (this.svg = w.select(this.timeline).append("svg")), this.svg.attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
22573
+ this.svg || (this.svg = I.select(this.timeline).append("svg")), this.svg.attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
22565
22574
  },
22566
22575
  initDefs() {
22567
22576
  const s = this.svg.append("defs");
@@ -22594,7 +22603,7 @@ const Ih = _h.exports, G = {
22594
22603
  },
22595
22604
  initTimeScale(s, e) {
22596
22605
  const t = s || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = e || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
22597
- this.timeScale = w.scaleTime().domain([this.tzStringToDate(t), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
22606
+ this.timeScale = I.scaleTime().domain([this.tzStringToDate(t), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
22598
22607
  },
22599
22608
  initXAxes() {
22600
22609
  let s = 0;
@@ -22614,17 +22623,17 @@ const Ih = _h.exports, G = {
22614
22623
  }
22615
22624
  },
22616
22625
  initYScale() {
22617
- this.yScale = w.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
22626
+ this.yScale = I.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
22618
22627
  },
22619
22628
  updateYScaleDomain() {
22620
22629
  const [s, e] = this.timeScale.domain(), t = this.flattenedCounts.filter((r) => {
22621
22630
  const n = new Date(r.startDate || r.timestamp), a = new Date(r.endDate || r.timestamp);
22622
22631
  return a >= s && a <= e || n >= s && n <= e;
22623
- }), i = w.max(t, (r) => r.count);
22632
+ }), i = I.max(t, (r) => r.count);
22624
22633
  this.yScale.domain([0, i]);
22625
22634
  },
22626
22635
  initZoomBehavior() {
22627
- this.disableZoom || (this.zoomBehavior = w.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior));
22636
+ 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));
22628
22637
  },
22629
22638
  zoomToFitMarkers() {
22630
22639
  const s = this.markers.map(
@@ -22644,10 +22653,10 @@ const Ih = _h.exports, G = {
22644
22653
  );
22645
22654
  },
22646
22655
  translateMarkersIntoView(s, e, t) {
22647
- 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 = w.zoomTransform(this.svg.node());
22656
+ 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());
22648
22657
  this.svg.transition().duration(this.fitMarkersTransitionDuration / 2).call(
22649
22658
  this.zoomBehavior.transform,
22650
- w.zoomIdentity.translate(l.x + o, l.y).scale(t)
22659
+ I.zoomIdentity.translate(l.x + o, l.y).scale(t)
22651
22660
  );
22652
22661
  },
22653
22662
  initSelectedTimestampCursor() {
@@ -22711,14 +22720,14 @@ const Ih = _h.exports, G = {
22711
22720
  },
22712
22721
  createAxis(s) {
22713
22722
  const e = this.xAxesConfig[s], t = this.getAxisTicksConfig(e);
22714
- return w.axisBottom(this.timeScale).ticks(t.interval).tickFormat(t.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
22723
+ return I.axisBottom(this.timeScale).ticks(t.interval).tickFormat(t.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
22715
22724
  },
22716
22725
  getAxisTicksConfig(s) {
22717
22726
  const { interval: e, format: t } = s.find(
22718
22727
  (r) => r.precision >= this.currentTimeScaleDensity && r.interval
22719
22728
  );
22720
22729
  return {
22721
- formatFn: (r) => typeof t == "function" ? t(r) : w.timeFormat(t)(r),
22730
+ formatFn: (r) => typeof t == "function" ? t(r) : I.timeFormat(t)(r),
22722
22731
  interval: e
22723
22732
  };
22724
22733
  },
@@ -22733,12 +22742,12 @@ const Ih = _h.exports, G = {
22733
22742
  return;
22734
22743
  const s = this;
22735
22744
  this.svg.selectAll(`.${G.labelBg}`).each(function() {
22736
- w.select(this).style("fill", s.dark ? "black" : "white");
22745
+ I.select(this).style("fill", s.dark ? "black" : "white");
22737
22746
  }), this.svg.selectAll(`.${G.labelBgFill}`).each(function() {
22738
- const e = w.select(this), t = e.node().dataset.color;
22747
+ const e = I.select(this), t = e.node().dataset.color;
22739
22748
  e.style("fill", s.getLabelBackgroundColor(t)).style("stroke", s.getTextFillColor(t)).style("stroke-width", 0.25);
22740
22749
  }), this.svg.selectAll(`.${G.labelText}`).each(function() {
22741
- const e = w.select(this), t = e.node().dataset.color;
22750
+ const e = I.select(this), t = e.node().dataset.color;
22742
22751
  e.style("fill", s.getTextFillColor(t));
22743
22752
  });
22744
22753
  },
@@ -22801,24 +22810,33 @@ const Ih = _h.exports, G = {
22801
22810
  this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
22802
22811
  },
22803
22812
  handleLabelMouseOver(s) {
22804
- w.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22813
+ I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22805
22814
  `${G.lineGraphGroup}--highlighted`,
22806
22815
  !0
22807
- ), w.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22816
+ ), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22808
22817
  `${G.lineGraphGroupLabel}--highlighted`,
22809
22818
  !0
22810
22819
  );
22811
22820
  },
22812
22821
  handleLabelMouseLeave(s) {
22813
- w.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22822
+ I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22814
22823
  `${G.lineGraphGroup}--highlighted`,
22815
22824
  !1
22816
- ), w.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22825
+ ), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22817
22826
  `${G.lineGraphGroupLabel}--highlighted`,
22818
22827
  !1
22819
22828
  );
22820
22829
  },
22830
+ isZoomAllowed(s) {
22831
+ const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.minVisibleDate ? this.tzStringToDate(this.minVisibleDate) : void 0, r = this.maxVisibleDate ? this.tzStringToDate(this.maxVisibleDate) : void 0;
22832
+ return (!i || t[0] >= i) && (!r || t[1] <= r);
22833
+ },
22821
22834
  handleZoom(s) {
22835
+ if (!this.isZoomAllowed(s)) {
22836
+ s.sourceEvent.preventDefault(), this.svg.call(this.zoomBehavior.transform, this.lastValidTransform);
22837
+ return;
22838
+ }
22839
+ this.lastValidTransform = s.transform;
22822
22840
  const e = s.transform.rescaleX(this.initialTimeScale);
22823
22841
  this.timeScale.domain(e.domain()), this.updateCurrentTimeScaleDensity(), this.updateYScaleDomain();
22824
22842
  const t = s.transform.k / this.lastTransform.k;
@@ -22831,10 +22849,10 @@ const Ih = _h.exports, G = {
22831
22849
  this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.updateMilestonesPositions(), this.repositionSelectedTimestampCursor(), this.updateForbiddenIntervals(), this.updateMarkers(), this.emitVisibleInterval(Pt.zoom), this.curtains && this.emitCurtainChange();
22832
22850
  },
22833
22851
  panToTimestamp(s) {
22834
- const e = this.tzStringToDate(s), t = this.timeScale(e), i = w.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2;
22852
+ const e = this.tzStringToDate(s), t = this.timeScale(e), i = I.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2;
22835
22853
  this.svg.transition().duration(this.panTransitionDuration).call(
22836
22854
  this.zoomBehavior.transform,
22837
- w.zoomIdentity.translate(r, 0).scale(i.k)
22855
+ I.zoomIdentity.translate(r, 0).scale(i.k)
22838
22856
  ), this.emitVisibleInterval(Pt.autoPan);
22839
22857
  },
22840
22858
  emitCurtainChange() {
@@ -22873,10 +22891,10 @@ const Ih = _h.exports, G = {
22873
22891
  zoomToStartAndEndDates() {
22874
22892
  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);
22875
22893
  this.initialTimeScale.domain([t, i]);
22876
- const r = w.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));
22894
+ 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));
22877
22895
  this.svg.transition().duration(this.zoomToBoundariesTransitionDuration).call(
22878
22896
  this.zoomBehavior.transform,
22879
- w.zoomIdentity.translate(c, 0).scale(d)
22897
+ I.zoomIdentity.translate(c, 0).scale(d)
22880
22898
  );
22881
22899
  },
22882
22900
  rescaleAxis(s, e) {
@@ -22887,7 +22905,7 @@ const Ih = _h.exports, G = {
22887
22905
  },
22888
22906
  translateTicksText(s) {
22889
22907
  this.svg.select(`.${G.xAxis}-${s}`).selectAll(".tick text").each(function() {
22890
- let e = w.select(this), t = e.node().getBBox();
22908
+ let e = I.select(this), t = e.node().getBBox();
22891
22909
  e.attr("x", t.height / 2).attr("y", 0).style("text-anchor", "start");
22892
22910
  });
22893
22911
  },
@@ -22910,7 +22928,7 @@ const Ih = _h.exports, G = {
22910
22928
  },
22911
22929
  updateLineGraphs() {
22912
22930
  Object.entries(this.lineGraphGroups).forEach(([s]) => {
22913
- const e = w.area().x((t) => this.timeScale(this.tzStringToDate(t.timestamp))).y0(this.timelineHeight).y1((t) => this.yScale(t.count)).curve(w.curveMonotoneX);
22931
+ const e = I.area().x((t) => this.timeScale(this.tzStringToDate(t.timestamp))).y0(this.timelineHeight).y1((t) => this.yScale(t.count)).curve(I.curveMonotoneX);
22914
22932
  this.svg.selectAll(
22915
22933
  `.${G.lineGraphPath}-${s}`
22916
22934
  ).attr("d", (t) => e(t));
@@ -22922,12 +22940,12 @@ const Ih = _h.exports, G = {
22922
22940
  this.svg.selectAll(
22923
22941
  `.${G.lineGraphDot}-${s}`
22924
22942
  ).each(function(t) {
22925
- w.select(this).attr("cx", e.timeScale(e.tzStringToDate(t.timestamp))).attr("cy", e.yScale(t.count));
22943
+ I.select(this).attr("cx", e.timeScale(e.tzStringToDate(t.timestamp))).attr("cy", e.yScale(t.count));
22926
22944
  }), this.svg.selectAll(
22927
22945
  `.${G.lineGraphHoverZone}-${s}`
22928
22946
  ).each(function(t) {
22929
22947
  const i = e.timeScale(e.tzStringToDate(t.timestamp).getTime()) - 15;
22930
- w.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", e.chartHeight);
22948
+ I.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", e.chartHeight);
22931
22949
  });
22932
22950
  });
22933
22951
  },
@@ -22989,42 +23007,42 @@ const Ih = _h.exports, G = {
22989
23007
  });
22990
23008
  },
22991
23009
  removeMarkersDragBehavior() {
22992
- this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null), w.selectAll(`.${G.marker}`).call(
23010
+ this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null), I.selectAll(`.${G.marker}`).call(
22993
23011
  this.markersDragBehavior
22994
23012
  ));
22995
23013
  },
22996
23014
  initMarkersDragBehavior() {
22997
23015
  this.removeMarkersDragBehavior();
22998
23016
  const s = this;
22999
- this.markersDragBehavior = w.drag().on("start", function(e, t) {
23017
+ this.markersDragBehavior = I.drag().on("start", function(e, t) {
23000
23018
  var i;
23001
23019
  (i = e.sourceEvent) == null || i.preventDefault(), s.handleMarkerDrag({
23002
23020
  marker: t,
23003
- markerElement: w.select(this),
23021
+ markerElement: I.select(this),
23004
23022
  dragEvent: e
23005
23023
  });
23006
23024
  }).on("drag", function(e, t) {
23007
23025
  s.handleMarkerDrag({
23008
23026
  marker: t,
23009
- markerElement: w.select(this),
23027
+ markerElement: I.select(this),
23010
23028
  dragEvent: e
23011
23029
  });
23012
23030
  }).on("end", function(e, t) {
23013
23031
  s.handleMarkerDrag({
23014
23032
  marker: t,
23015
- markerElement: w.select(this),
23033
+ markerElement: I.select(this),
23016
23034
  dragEvent: e
23017
23035
  });
23018
- }), w.selectAll(`.${G.marker}`).data(this.sortedMarkers).call(this.markersDragBehavior);
23036
+ }), I.selectAll(`.${G.marker}`).data(this.sortedMarkers).call(this.markersDragBehavior);
23019
23037
  },
23020
23038
  initCurtains() {
23021
23039
  this.createCurtains(), this.updateCurtains();
23022
23040
  },
23023
23041
  createCurtains() {
23024
23042
  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(
23025
- w.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
23043
+ I.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
23026
23044
  ), 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(
23027
- w.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
23045
+ I.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
23028
23046
  ), this.updateCurtains());
23029
23047
  },
23030
23048
  updateCurtains() {
@@ -23099,7 +23117,7 @@ const Ih = _h.exports, G = {
23099
23117
  color: t,
23100
23118
  type: i
23101
23119
  }) {
23102
- const r = w.area().x((a) => this.timeScale(this.tzStringToDate(a.timestamp))).y0(this.timelineHeight).y1((a) => this.yScale(a.count)).curve(w.curveMonotoneX), n = `clip-${i}`;
23120
+ 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}`;
23103
23121
  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(#${De.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})`);
23104
23122
  },
23105
23123
  drawLineGraphHoverZones({
@@ -23217,7 +23235,7 @@ const Ih = _h.exports, G = {
23217
23235
  `g.${G.eventGroup}-${s}`
23218
23236
  ), r = 2, a = (e.height || this.barChartHeight) / 2, o = t + a - r / 2;
23219
23237
  i.attr("x1", 0).attr("x2", this.timeline.offsetWidth).select(`.${Ye.milestoneLine}`).attr("y1", o).attr("y2", o);
23220
- const l = w.select(
23238
+ const l = I.select(
23221
23239
  `.${Ye.milestonesContainer}-${s}`
23222
23240
  );
23223
23241
  l.style("top", `${t}px`).style("height", `${e.height || this.barChartHeight}px`);
@@ -23263,7 +23281,7 @@ const Ih = _h.exports, G = {
23263
23281
  gElement: t,
23264
23282
  height: i
23265
23283
  }) {
23266
- 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", w.color(s).toString()).style("opacity", 0.1);
23284
+ 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);
23267
23285
  },
23268
23286
  drawBars({
23269
23287
  events: s,
@@ -23277,9 +23295,9 @@ const Ih = _h.exports, G = {
23277
23295
  "class",
23278
23296
  (a) => G.eventRect + (a.className ? ` ${a.className}` : "")
23279
23297
  ).attr("x", this.getEventRectX).attr("y", t + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (a) => a.color || i).on("mouseover", function(a, o) {
23280
- w.select(this).classed(G.eventRectHovered, !0), n.handleBarMouseOver(a, o, r);
23298
+ I.select(this).classed(G.eventRectHovered, !0), n.handleBarMouseOver(a, o, r);
23281
23299
  }).on("mouseout", function() {
23282
- w.select(this).classed(G.eventRectHovered, !1), n.handleBarMouseOut();
23300
+ I.select(this).classed(G.eventRectHovered, !1), n.handleBarMouseOut();
23283
23301
  }), e.selectAll(G.eventRectText).data(s.filter((a) => !!a.text)).enter().append("text").attr("class", G.eventRectText).attr("x", (a) => this.getEventRectX(a) + 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(
23284
23302
  "fill",
23285
23303
  (a) => this.getTextFillColor(a.color || i, 0.75)
@@ -23307,13 +23325,13 @@ const Ih = _h.exports, G = {
23307
23325
  "class",
23308
23326
  (f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
23309
23327
  ).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) {
23310
- const g = w.select(this);
23328
+ const g = I.select(this);
23311
23329
  a.onBarChartBarMouseOver(g, t), a.handleBarMouseOver(f, m, r);
23312
23330
  }).on("mouseout", function() {
23313
- const f = w.select(this);
23331
+ const f = I.select(this);
23314
23332
  a.onBarChartBarMouseOut(f, r), a.handleBarMouseOut();
23315
23333
  }).on("click", function() {
23316
- e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1), w.select(this).classed(G.eventBarContainerSelected, !0);
23334
+ e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1), I.select(this).classed(G.eventBarContainerSelected, !0);
23317
23335
  });
23318
23336
  },
23319
23337
  onBarChartBarMouseOver(s, e) {
@@ -23347,10 +23365,10 @@ const Ih = _h.exports, G = {
23347
23365
  },
23348
23366
  getTextFillColor(s, e = 0) {
23349
23367
  var t, i;
23350
- return (this.dark ? (t = w.color(s)) == null ? void 0 : t.brighter(1.5 + e) : (i = w.color(s)) == null ? void 0 : i.darker(2 + e)).toString();
23368
+ 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();
23351
23369
  },
23352
23370
  getLabelBackgroundColor(s) {
23353
- let e = w.color(s);
23371
+ let e = I.color(s);
23354
23372
  return e.opacity = this.dark ? 0.2 : 0.5, e.toString();
23355
23373
  },
23356
23374
  getCurrentGroupVisibility(s) {