@byomakase/omakase-react-components 1.2.1 → 1.2.3

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.es.js CHANGED
@@ -513,28 +513,28 @@ var D = /* @__PURE__ */ function() {
513
513
  for (; !r[0] && r.length > 1; ) r.shift();
514
514
  }
515
515
  return function(r, i, o, s, u, c) {
516
- var a, l, f, d, m, h, p, b, w, I, L, N, R, A, G, re, Y, we, K, oe, se = r.constructor, Ee = r.s == i.s ? 1 : -1, F = r.d, _ = i.d;
517
- if (!F || !F[0] || !_ || !_[0])
516
+ var a, l, f, d, m, h, p, b, w, I, L, N, R, A, G, re, Y, we, K, oe, se = r.constructor, Ee = r.s == i.s ? 1 : -1, V = r.d, _ = i.d;
517
+ if (!V || !V[0] || !_ || !_[0])
518
518
  return new se(
519
519
  // Return NaN if either NaN, or both Infinity or 0.
520
- !r.s || !i.s || (F ? _ && F[0] == _[0] : !_) ? NaN : (
520
+ !r.s || !i.s || (V ? _ && V[0] == _[0] : !_) ? NaN : (
521
521
  // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
522
- F && F[0] == 0 || !_ ? Ee * 0 : Ee / 0
522
+ V && V[0] == 0 || !_ ? Ee * 0 : Ee / 0
523
523
  )
524
524
  );
525
- for (c ? (m = 1, l = r.e - i.e) : (c = ne, m = C, l = X(r.e / m) - X(i.e / m)), K = _.length, Y = F.length, w = new se(Ee), I = w.d = [], f = 0; _[f] == (F[f] || 0); f++) ;
526
- if (_[f] > (F[f] || 0) && l--, o == null ? (A = o = se.precision, s = se.rounding) : u ? A = o + (r.e - i.e) + 1 : A = o, A < 0)
525
+ for (c ? (m = 1, l = r.e - i.e) : (c = ne, m = C, l = X(r.e / m) - X(i.e / m)), K = _.length, Y = V.length, w = new se(Ee), I = w.d = [], f = 0; _[f] == (V[f] || 0); f++) ;
526
+ if (_[f] > (V[f] || 0) && l--, o == null ? (A = o = se.precision, s = se.rounding) : u ? A = o + (r.e - i.e) + 1 : A = o, A < 0)
527
527
  I.push(1), h = !0;
528
528
  else {
529
529
  if (A = A / m + 2 | 0, f = 0, K == 1) {
530
530
  for (d = 0, _ = _[0], A++; (f < Y || d) && A--; f++)
531
- G = d * c + (F[f] || 0), I[f] = G / _ | 0, d = G % _ | 0;
531
+ G = d * c + (V[f] || 0), I[f] = G / _ | 0, d = G % _ | 0;
532
532
  h = d || f < Y;
533
533
  } else {
534
- for (d = c / (_[0] + 1) | 0, d > 1 && (_ = t(_, d, c), F = t(F, d, c), K = _.length, Y = F.length), re = K, L = F.slice(0, K), N = L.length; N < K; ) L[N++] = 0;
534
+ for (d = c / (_[0] + 1) | 0, d > 1 && (_ = t(_, d, c), V = t(V, d, c), K = _.length, Y = V.length), re = K, L = V.slice(0, K), N = L.length; N < K; ) L[N++] = 0;
535
535
  oe = _.slice(), oe.unshift(0), we = _[0], _[1] >= c / 2 && ++we;
536
536
  do
537
- d = 0, a = e(_, L, K, N), a < 0 ? (R = L[0], K != N && (R = R * c + (L[1] || 0)), d = R / we | 0, d > 1 ? (d >= c && (d = c - 1), p = t(_, d, c), b = p.length, N = L.length, a = e(p, L, b, N), a == 1 && (d--, n(p, K < b ? oe : _, b, c))) : (d == 0 && (a = d = 1), p = _.slice()), b = p.length, b < N && p.unshift(0), n(L, p, N, c), a == -1 && (N = L.length, a = e(_, L, K, N), a < 1 && (d++, n(L, K < N ? oe : _, N, c))), N = L.length) : a === 0 && (d++, L = [0]), I[f++] = d, a && L[0] ? L[N++] = F[re] || 0 : (L = [F[re]], N = 1);
537
+ d = 0, a = e(_, L, K, N), a < 0 ? (R = L[0], K != N && (R = R * c + (L[1] || 0)), d = R / we | 0, d > 1 ? (d >= c && (d = c - 1), p = t(_, d, c), b = p.length, N = L.length, a = e(p, L, b, N), a == 1 && (d--, n(p, K < b ? oe : _, b, c))) : (d == 0 && (a = d = 1), p = _.slice()), b = p.length, b < N && p.unshift(0), n(L, p, N, c), a == -1 && (N = L.length, a = e(_, L, K, N), a < 1 && (d++, n(L, K < N ? oe : _, N, c))), N = L.length) : a === 0 && (d++, L = [0]), I[f++] = d, a && L[0] ? L[N++] = V[re] || 0 : (L = [V[re]], N = 1);
538
538
  while ((re++ < Y || L[0] !== void 0) && A--);
539
539
  h = L[0] !== void 0;
540
540
  }
@@ -904,7 +904,7 @@ function En(t) {
904
904
  throw Error(he + o);
905
905
  return (u = o.charCodeAt(0)) === 45 ? (o = o.slice(1), a.s = -1) : (u === 43 && (o = o.slice(1)), a.s = 1), hn.test(o) ? ft(a, o) : lr(a, o);
906
906
  }
907
- if (i.prototype = g, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Cr, i.clone = En, i.isDecimal = kt, i.abs = dr, i.acos = mr, i.acosh = hr, i.add = pr, i.asin = gr, i.asinh = vr, i.atan = br, i.atanh = wr, i.atan2 = Er, i.cbrt = Sr, i.ceil = Tr, i.clamp = yr, i.cos = Lr, i.cosh = Mr, i.div = xr, i.exp = Ar, i.floor = Ir, i.hypot = Or, i.ln = _r, i.log = Nr, i.log10 = kr, i.log2 = Rr, i.max = Dr, i.min = Vr, i.mod = Fr, i.mul = Br, i.pow = $r, i.random = Pr, i.round = Kr, i.sign = Ur, i.sin = Hr, i.sinh = Zr, i.sqrt = Xr, i.sub = qr, i.sum = Wr, i.tan = jr, i.tanh = Gr, i.trunc = Yr, t === void 0 && (t = {}), t && t.defaults !== !0)
907
+ if (i.prototype = g, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Cr, i.clone = En, i.isDecimal = kt, i.abs = dr, i.acos = mr, i.acosh = hr, i.add = pr, i.asin = gr, i.asinh = vr, i.atan = br, i.atanh = wr, i.atan2 = Er, i.cbrt = Sr, i.ceil = Tr, i.clamp = yr, i.cos = Lr, i.cosh = Mr, i.div = xr, i.exp = Ar, i.floor = Ir, i.hypot = Or, i.ln = _r, i.log = Nr, i.log10 = kr, i.log2 = Rr, i.max = Dr, i.min = Fr, i.mod = Vr, i.mul = Br, i.pow = $r, i.random = Pr, i.round = Kr, i.sign = Ur, i.sin = Hr, i.sinh = Zr, i.sqrt = Xr, i.sub = qr, i.sum = Wr, i.tan = jr, i.tanh = Gr, i.trunc = Yr, t === void 0 && (t = {}), t && t.defaults !== !0)
908
908
  for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], e = 0; e < r.length; ) t.hasOwnProperty(n = r[e++]) || (t[n] = this[n]);
909
909
  return i.config(t), i;
910
910
  }
@@ -947,10 +947,10 @@ function kr(t) {
947
947
  function Dr() {
948
948
  return vn(this, arguments, "lt");
949
949
  }
950
- function Vr() {
950
+ function Fr() {
951
951
  return vn(this, arguments, "gt");
952
952
  }
953
- function Fr(t, e) {
953
+ function Vr(t, e) {
954
954
  return new this(t).mod(e);
955
955
  }
956
956
  function Br(t, e) {
@@ -1020,15 +1020,30 @@ var Ae = g.constructor = En(ut);
1020
1020
  Pe = new Ae(Pe);
1021
1021
  Ke = new Ae(Ke);
1022
1022
  class ae {
1023
- static formatToTimecode(e, n, r = !1) {
1024
- let i = new Ae(n), o, s = i.round();
1025
- o = i.mul(e).floor();
1026
- let u, c, a, l, f = s.mul(86400), d = o.mod(f), m = s.mul(3600), h = s.mul(60);
1027
- return l = d.divToInt(m), d = d.minus(l.mul(m)), a = d.divToInt(h), d = d.minus(a.mul(h)), c = d.divToInt(s), u = d.minus(c.mul(s)), ae.formatTimecodeText(l.toNumber(), a.toNumber(), c.toNumber(), u.toNumber(), r);
1023
+ static formatToTimecode(e, n, r = !1, i = !1) {
1024
+ let o = new Ae(n), s, u = o.round();
1025
+ s = o.mul(e).floor();
1026
+ let c, a, l, f, d = u.mul(86400), m = s.mod(
1027
+ d
1028
+ ), h = u.mul(3600), p = u.mul(60);
1029
+ return f = m.divToInt(h), m = m.minus(
1030
+ f.mul(h)
1031
+ ), l = m.divToInt(p), m = m.minus(
1032
+ l.mul(p)
1033
+ ), a = m.divToInt(u), c = m.minus(
1034
+ a.mul(u)
1035
+ ), ae.formatTimecodeText(
1036
+ f.toNumber(),
1037
+ l.toNumber(),
1038
+ a.toNumber(),
1039
+ c.toNumber(),
1040
+ r,
1041
+ i
1042
+ );
1028
1043
  }
1029
- static formatTimecodeText(e, n, r, i, o = !1) {
1030
- let s = o ? "." : ":";
1031
- return `${ae.padZero(e)}:${ae.padZero(n)}:${ae.padZero(r)}${s}${ae.padZero(i)}`;
1044
+ static formatTimecodeText(e, n, r, i, o = !1, s = !1) {
1045
+ let u = s ? "." : o ? ";" : ":";
1046
+ return `${ae.padZero(e)}:${ae.padZero(n)}:${ae.padZero(r)}${u}${ae.padZero(i)}`;
1032
1047
  }
1033
1048
  /**
1034
1049
  * Fast padding
@@ -1181,7 +1196,7 @@ function ti(t, e) {
1181
1196
  (f) => f.frameRate !== void 0
1182
1197
  ), i = (r == null ? void 0 : r.start) ?? n.at(0).start, o = new Date(i * 1e3), s = o.getUTCHours(), u = o.getUTCMinutes(), c = o.getUTCSeconds(), a = o.getUTCMilliseconds(), l = s * 3600 + u * 60 + c + a / 1e3;
1183
1198
  return r === void 0 ? {
1184
- ffom: ae.formatToTimecode(l, 100, !1),
1199
+ ffom: ae.formatToTimecode(l, 100, !1, !0),
1185
1200
  mediaStartTime: i,
1186
1201
  frameRate: 100,
1187
1202
  dropFrame: !1
@@ -1718,7 +1733,7 @@ var j = function() {
1718
1733
  }
1719
1734
  }, t.prototype.forEach = function(e, n) {
1720
1735
  var r = this;
1721
- return n = Vt(n), new n(function(i, o) {
1736
+ return n = Ft(n), new n(function(i, o) {
1722
1737
  var s = new pt({
1723
1738
  next: function(u) {
1724
1739
  try {
@@ -1743,7 +1758,7 @@ var j = function() {
1743
1758
  return li(e)(this);
1744
1759
  }, t.prototype.toPromise = function(e) {
1745
1760
  var n = this;
1746
- return e = Vt(e), new e(function(r, i) {
1761
+ return e = Ft(e), new e(function(r, i) {
1747
1762
  var o;
1748
1763
  n.subscribe(function(s) {
1749
1764
  return o = s;
@@ -1757,7 +1772,7 @@ var j = function() {
1757
1772
  return new t(e);
1758
1773
  }, t;
1759
1774
  }();
1760
- function Vt(t) {
1775
+ function Ft(t) {
1761
1776
  var e;
1762
1777
  return (e = t ?? oi.Promise) !== null && e !== void 0 ? e : Promise;
1763
1778
  }
@@ -1832,7 +1847,7 @@ var hi = function(t) {
1832
1847
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
1833
1848
  }
1834
1849
  return e.prototype.lift = function(n) {
1835
- var r = new Ft(this, this);
1850
+ var r = new Vt(this, this);
1836
1851
  return r.operator = n, r;
1837
1852
  }, e.prototype._throwIfClosed = function() {
1838
1853
  if (this.closed)
@@ -1902,9 +1917,9 @@ var hi = function(t) {
1902
1917
  var n = new j();
1903
1918
  return n.source = this, n;
1904
1919
  }, e.create = function(n, r) {
1905
- return new Ft(n, r);
1920
+ return new Vt(n, r);
1906
1921
  }, e;
1907
- }(j), Ft = function(t) {
1922
+ }(j), Vt = function(t) {
1908
1923
  Ie(e, t);
1909
1924
  function e(n, r) {
1910
1925
  var i = t.call(this) || this;
@@ -2005,7 +2020,7 @@ function Oe(t) {
2005
2020
  if (An(t))
2006
2021
  return Ti(t);
2007
2022
  if (On(t))
2008
- return Vn(t);
2023
+ return Fn(t);
2009
2024
  if (Rn(t))
2010
2025
  return yi(t);
2011
2026
  if (Dn(t))
@@ -2058,7 +2073,7 @@ function yi(t) {
2058
2073
  e.complete();
2059
2074
  });
2060
2075
  }
2061
- function Vn(t) {
2076
+ function Fn(t) {
2062
2077
  return new j(function(e) {
2063
2078
  Li(t, e).catch(function(n) {
2064
2079
  return e.error(n);
@@ -2066,7 +2081,7 @@ function Vn(t) {
2066
2081
  });
2067
2082
  }
2068
2083
  function Ci(t) {
2069
- return Vn(kn(t));
2084
+ return Fn(kn(t));
2070
2085
  }
2071
2086
  function Li(t, e) {
2072
2087
  var n, r, i, o;
@@ -2114,7 +2129,7 @@ function me(t, e, n, r, i) {
2114
2129
  if (t.add(o), !i)
2115
2130
  return o;
2116
2131
  }
2117
- function Fn(t, e) {
2132
+ function Vn(t, e) {
2118
2133
  return e === void 0 && (e = 0), ge(function(n, r) {
2119
2134
  n.subscribe(ce(r, function(i) {
2120
2135
  return me(r, t, function() {
@@ -2139,10 +2154,10 @@ function Bn(t, e) {
2139
2154
  });
2140
2155
  }
2141
2156
  function Mi(t, e) {
2142
- return Oe(t).pipe(Bn(e), Fn(e));
2157
+ return Oe(t).pipe(Bn(e), Vn(e));
2143
2158
  }
2144
2159
  function xi(t, e) {
2145
- return Oe(t).pipe(Bn(e), Fn(e));
2160
+ return Oe(t).pipe(Bn(e), Vn(e));
2146
2161
  }
2147
2162
  function Ai(t, e) {
2148
2163
  return new j(function(n) {
@@ -2230,7 +2245,7 @@ function Un(t) {
2230
2245
  return ki(t, e);
2231
2246
  });
2232
2247
  }
2233
- var Di = Array.isArray, Vi = Object.getPrototypeOf, Fi = Object.prototype, Bi = Object.keys;
2248
+ var Di = Array.isArray, Fi = Object.getPrototypeOf, Vi = Object.prototype, Bi = Object.keys;
2234
2249
  function Hn(t) {
2235
2250
  if (t.length === 1) {
2236
2251
  var e = t[0];
@@ -2249,7 +2264,7 @@ function Hn(t) {
2249
2264
  return { args: t, keys: null };
2250
2265
  }
2251
2266
  function $i(t) {
2252
- return t && typeof t == "object" && Vi(t) === Fi;
2267
+ return t && typeof t == "object" && Fi(t) === Vi;
2253
2268
  }
2254
2269
  function Zn(t, e) {
2255
2270
  return t.reduce(function(n, r, i) {
@@ -2455,7 +2470,7 @@ const Io = S.memo(
2455
2470
  const s = (u) => {
2456
2471
  i.handleKeyboardEvent(u) && (u.preventDefault(), u.stopPropagation());
2457
2472
  };
2458
- return window.addEventListener("keydown", s), t.video.appendHelpMenuGroup(
2473
+ return window.addEventListener("keydown", s), t.chroming.appendHelpMenuGroup(
2459
2474
  i.getKeyboardShortcutsHelpMenuGroup()
2460
2475
  ), () => {
2461
2476
  window.removeEventListener("keydown", s);
@@ -2618,7 +2633,7 @@ const Gi = S.memo(function({
2618
2633
  s
2619
2634
  ) && (l.stopPropagation(), l.preventDefault());
2620
2635
  };
2621
- return (o === void 0 || o) && ((c = document.querySelector("media-controller")) == null || c.setAttribute("nohotkeys", ""), (a = document.querySelector("media-controller")) == null || a.setAttribute("tabindex", "-1"), window.addEventListener("keydown", u), s.video.appendHelpMenuGroup(
2636
+ return (o === void 0 || o) && ((c = document.querySelector("media-controller")) == null || c.setAttribute("nohotkeys", ""), (a = document.querySelector("media-controller")) == null || a.setAttribute("tabindex", "-1"), window.addEventListener("keydown", u), s.chroming.appendHelpMenuGroup(
2622
2637
  $t.getKeyboardShortcutsHelpMenuGroup()
2623
2638
  )), s.loadVideo(e, r).subscribe({
2624
2639
  next: (l) => {
@@ -3060,7 +3075,7 @@ const Oo = ({
3060
3075
  return !0;
3061
3076
  }
3062
3077
  return !1;
3063
- }, [Ee, F] = ve(oe(t)), [_, Ye] = ve(se(t));
3078
+ }, [Ee, V] = ve(oe(t)), [_, Ye] = ve(se(t));
3064
3079
  J(() => {
3065
3080
  if (Y(() => b()), K(() => w()), A && A !== t) {
3066
3081
  const v = i.find(
@@ -3069,7 +3084,7 @@ const Oo = ({
3069
3084
  v == null || v.removeMarker(A.id), G(void 0);
3070
3085
  }
3071
3086
  }, [t, A, i, G]), J(() => () => Q(m), []), J(() => {
3072
- if (F(
3087
+ if (V(
3073
3088
  oe(t)
3074
3089
  ), Ye(
3075
3090
  se(t)
@@ -3088,7 +3103,7 @@ const Oo = ({
3088
3103
  M.currentTime,
3089
3104
  e
3090
3105
  )
3091
- ), F(
3106
+ ), V(
3092
3107
  () => oe(t)
3093
3108
  ), Ye(
3094
3109
  () => se(t)
@@ -3122,7 +3137,7 @@ const Oo = ({
3122
3137
  e.video.getCurrentTime(),
3123
3138
  e
3124
3139
  )
3125
- ), F(
3140
+ ), V(
3126
3141
  () => oe(t)
3127
3142
  ), Ye(
3128
3143
  () => se(t)
@@ -3319,7 +3334,7 @@ const Oo = ({
3319
3334
  const E = (M) => {
3320
3335
  v.handleKeyboardEvent(M, e) && (M.stopPropagation(), M.preventDefault());
3321
3336
  };
3322
- return window.addEventListener("keydown", E), h.current || (e.video.appendHelpMenuGroup(
3337
+ return window.addEventListener("keydown", E), h.current || (e.chroming.appendHelpMenuGroup(
3323
3338
  v.getKeyboardShortcutsHelpMenuGroup()
3324
3339
  ), h.current = !0), () => window.removeEventListener("keydown", E);
3325
3340
  }), /* @__PURE__ */ S.createElement("div", { className: "control-panel-wrapper" }, /* @__PURE__ */ S.createElement("div", { className: "control-panel" }, /* @__PURE__ */ S.createElement(
@@ -4140,9 +4155,9 @@ const _o = S.memo(
4140
4155
  w.at(L).next(), w.at(L).complete();
4141
4156
  }) : (w.at(L).next(), w.at(L).complete());
4142
4157
  });
4143
- }), i && Ui(w).subscribe(() => {
4158
+ }), i && (w.length ? Ui(w).subscribe(() => {
4144
4159
  i(h, p, l);
4145
- });
4160
+ }) : i(h, p, l));
4146
4161
  };
4147
4162
  return /* @__PURE__ */ S.createElement(
4148
4163
  Gi,
@@ -4156,7 +4171,7 @@ const _o = S.memo(
4156
4171
  );
4157
4172
  }
4158
4173
  );
4159
- function Ve(t) {
4174
+ function Fe(t) {
4160
4175
  const e = new Date(t * 1e3), n = e.getUTCHours();
4161
4176
  let r = e.getUTCMinutes();
4162
4177
  return e.getUTCSeconds() >= 30 && r++, `${n}h ${r}min`;
@@ -4355,7 +4370,7 @@ const To = `
4355
4370
  </defs>
4356
4371
  </svg>
4357
4372
 
4358
- `, V = {
4373
+ `, F = {
4359
4374
  container: "omakase-time-range-selector-container",
4360
4375
  segments: "omakase-time-range-selector-segments",
4361
4376
  segment: "omakase-time-range-selector-segment",
@@ -4369,7 +4384,7 @@ const To = `
4369
4384
  rangeSelectorDuration: "omakase-time-range-selector-range-selector-duration",
4370
4385
  buttonContainer: "omakase-time-range-selector-button-container",
4371
4386
  invisible: "omakase-time-range-selector-invisible"
4372
- }, Fe = {
4387
+ }, Ve = {
4373
4388
  leftHandle: "omakase-time-range-selector-range-selector-left-handle",
4374
4389
  rightHandle: "omakase-time-range-selector-range-selector-right-handle",
4375
4390
  rangeDuration: "omakase-time-range-selector-range-selector-range-duration",
@@ -4403,7 +4418,7 @@ class jt extends HTMLElement {
4403
4418
  T(this, "resetSegments", () => {
4404
4419
  this._container.removeChild(this._segments), this._segments = this.buildSegments(
4405
4420
  this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
4406
- ), this._segments.classList.add(V.segments), this._container.append(this._segments);
4421
+ ), this._segments.classList.add(F.segments), this._container.append(this._segments);
4407
4422
  });
4408
4423
  T(this, "getBounds", () => ({
4409
4424
  wrapperLeft: this._container.offsetLeft,
@@ -4434,14 +4449,14 @@ class jt extends HTMLElement {
4434
4449
  });
4435
4450
  T(this, "showButtons", () => {
4436
4451
  const { start: n, end: r } = this.getSliderValues();
4437
- n === this.currentStart && r === this.currentEnd || this._buttonContainer.classList.remove(V.invisible);
4452
+ n === this.currentStart && r === this.currentEnd || this._buttonContainer.classList.remove(F.invisible);
4438
4453
  });
4439
4454
  T(this, "hideButtons", () => {
4440
- this._buttonContainer.classList.add(V.invisible);
4455
+ this._buttonContainer.classList.add(F.invisible);
4441
4456
  });
4442
4457
  T(this, "updateDuration", () => {
4443
4458
  const { start: n, end: r } = this.getSliderValues(), i = r - n;
4444
- this._rangeSelectorRangeDisplay.textContent = Ve(i);
4459
+ this._rangeSelectorRangeDisplay.textContent = Fe(i);
4445
4460
  });
4446
4461
  T(this, "onXclick", () => {
4447
4462
  this.firstLabelIndex = this._initialFirstLabelIndex, this.resetSegments();
@@ -4503,7 +4518,7 @@ class jt extends HTMLElement {
4503
4518
  n ? this.firstLabelIndex += 1 : this.firstLabelIndex -= 1, this.resetSegments();
4504
4519
  });
4505
4520
  T(this, "onMouseDownDrag", (n) => {
4506
- if (n.target instanceof HTMLElement && n.target.classList.contains(V.rangeSelectorHandle))
4521
+ if (n.target instanceof HTMLElement && n.target.classList.contains(F.rangeSelectorHandle))
4507
4522
  return;
4508
4523
  n.preventDefault();
4509
4524
  const r = n.clientX, { selectorLeft: i, selectorWidth: o, wrapperWidth: s } = this.getBounds();
@@ -4589,22 +4604,22 @@ class jt extends HTMLElement {
4589
4604
  i > this.maxValue && (i = this.maxValue), this.currentStart = r, this.currentEnd = i;
4590
4605
  } else
4591
4606
  r = this.minValue, i = this.segmentSize;
4592
- this.resolveInitialSegment(r, i), this._container = document.createElement("div"), this._container.classList.add(V.container);
4607
+ this.resolveInitialSegment(r, i), this._container = document.createElement("div"), this._container.classList.add(F.container);
4593
4608
  const o = document.createElement("style");
4594
4609
  o.textContent = To, this._container.append(o), this._buttonContainer = document.createElement("div"), this._buttonContainer.classList.add(
4595
- V.buttonContainer,
4596
- V.invisible
4610
+ F.buttonContainer,
4611
+ F.invisible
4597
4612
  );
4598
4613
  const s = this.createButtonSvg(yo), u = this.createButtonSvg(Co);
4599
- s.onclick = this.onCheckmarkClick, u.onclick = this.onXclick, this._buttonContainer.append(s, u), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(V.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(V.rangeSelectorHandle), this._rangeSelectorLeftHandle.id = Fe.leftHandle, this._rangeSelectorRightHandle = document.createElement("div"), this._rangeSelectorRightHandle.classList.add(V.rangeSelectorHandle), this._rangeSelectorRightHandle.id = Fe.rightHandle, this._rangeSelectorRangeDisplay = document.createElement("div"), this._rangeSelectorRangeDisplay.classList.add(
4600
- V.rangeSelectorDuration
4601
- ), this._rangeSelectorRangeDisplay.id = Fe.rangeDuration, this._rangeSelector.append(
4614
+ s.onclick = this.onCheckmarkClick, u.onclick = this.onXclick, this._buttonContainer.append(s, u), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(F.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(F.rangeSelectorHandle), this._rangeSelectorLeftHandle.id = Ve.leftHandle, this._rangeSelectorRightHandle = document.createElement("div"), this._rangeSelectorRightHandle.classList.add(F.rangeSelectorHandle), this._rangeSelectorRightHandle.id = Ve.rightHandle, this._rangeSelectorRangeDisplay = document.createElement("div"), this._rangeSelectorRangeDisplay.classList.add(
4615
+ F.rangeSelectorDuration
4616
+ ), this._rangeSelectorRangeDisplay.id = Ve.rangeDuration, this._rangeSelector.append(
4602
4617
  this._rangeSelectorLeftHandle,
4603
4618
  this._rangeSelectorRangeDisplay,
4604
4619
  this._rangeSelectorRightHandle
4605
4620
  ), this._container.append(this._rangeSelector), this._segments = this.buildSegments(
4606
4621
  this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
4607
- ), this._segments.id = Fe.segments, this._segments.classList.add(V.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
4622
+ ), this._segments.id = Ve.segments, this._segments.classList.add(F.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
4608
4623
  "mousedown",
4609
4624
  this.onMouseDownLeft
4610
4625
  ), this._rangeSelectorRightHandle.addEventListener(
@@ -4640,30 +4655,30 @@ class jt extends HTMLElement {
4640
4655
  const r = document.createElement("div");
4641
4656
  n.slice(0, -2).forEach((a) => {
4642
4657
  const l = document.createElement("div");
4643
- l.classList.add(V.segment);
4658
+ l.classList.add(F.segment);
4644
4659
  const f = document.createElement("div");
4645
- f.classList.add(V.segmentMarker);
4660
+ f.classList.add(F.segmentMarker);
4646
4661
  const d = document.createElement("div");
4647
- d.classList.add(V.segmentTick);
4662
+ d.classList.add(F.segmentTick);
4648
4663
  const m = document.createElement("div");
4649
- m.classList.add(V.segmentLabel), m.innerHTML = Ve(a), l.append(f, d, m), r.append(l);
4664
+ m.classList.add(F.segmentLabel), m.innerHTML = Fe(a), l.append(f, d, m), r.append(l);
4650
4665
  });
4651
4666
  const i = document.createElement("div");
4652
- i.classList.add(V.segment);
4667
+ i.classList.add(F.segment);
4653
4668
  const o = document.createElement("div");
4654
- o.classList.add(V.segmentMarker);
4669
+ o.classList.add(F.segmentMarker);
4655
4670
  const s = document.createElement("div");
4656
- s.classList.add(V.segmentTick);
4671
+ s.classList.add(F.segmentTick);
4657
4672
  const u = document.createElement("div");
4658
4673
  u.classList.add(
4659
- V.segmentLabel,
4660
- V.firstSegmentLabel
4661
- ), u.innerHTML = Ve(n.at(-2));
4674
+ F.segmentLabel,
4675
+ F.firstSegmentLabel
4676
+ ), u.innerHTML = Fe(n.at(-2));
4662
4677
  const c = document.createElement("div");
4663
4678
  return c.classList.add(
4664
- V.segmentLabel,
4665
- V.secondSegmentLabel
4666
- ), c.innerHTML = Ve(n.at(-1)), i.append(
4679
+ F.segmentLabel,
4680
+ F.secondSegmentLabel
4681
+ ), c.innerHTML = Fe(n.at(-1)), i.append(
4667
4682
  o,
4668
4683
  s,
4669
4684
  u,