@cliquify.me/timeline 4.0.14 → 4.0.16

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
@@ -1,6 +1,6 @@
1
1
  var _l = Object.defineProperty;
2
2
  var Tl = (i, t, e) => t in i ? _l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var S = (i, t, e) => Tl(i, typeof t != "symbol" ? t + "" : t, e);
3
+ var w = (i, t, e) => Tl(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { dispatch as Kt } from "@designcombo/events";
5
5
  function y(i, t, e) {
6
6
  return (t = function(s) {
@@ -2182,7 +2182,7 @@ function ac(i, t, e, s, r) {
2182
2182
  const { target: n } = e, { counterAxis: o, origin: a, lockSkewing: c, skew: h, flip: l } = Ci[i];
2183
2183
  if (It(n, c)) return !1;
2184
2184
  const { origin: u, flip: d } = Ci[o], g = Q(e[u]) * (n[d] ? -1 : 1), f = -Math.sign(g) * (n[l] ? -1 : 1), p = 0.5 * -((n[h] === 0 && si(e, j, j, s, r)[i] > 0 || n[h] > 0 ? 1 : -1) * f) + 0.5;
2185
- return _e(xa, Xe((b, T, x, w) => function(O, k, D) {
2185
+ return _e(xa, Xe((b, T, x, S) => function(O, k, D) {
2186
2186
  let { target: M, ex: F, ey: G, skewingSide: nt } = k, st = H(k, Zl);
2187
2187
  const { skew: R } = Ci[O], Z = D.subtract(new _(F, G)).divide(new _(M.scaleX, M.scaleY))[O], Ct = M[R], bt = st[R], Nt = Math.tan(N(bt)), Ut = O === "y" ? M._getTransformedDimensions({ scaleX: 1, scaleY: 1, skewX: 0 }).x : M._getTransformedDimensions({ scaleX: 1, scaleY: 1 }).y, xe = 2 * Z * nt / Math.max(Ut, 1) + Nt, Se = ve(Math.atan(xe));
2188
2188
  M.set(R, Se);
@@ -2192,7 +2192,7 @@ function ac(i, t, e, s, r) {
2192
2192
  we !== 1 && M.set(dt, we * bs);
2193
2193
  }
2194
2194
  return sr;
2195
- }(i, T, new _(x, w))))(t, v(v({}, e), {}, { [a]: p, skewingSide: f }), s, r);
2195
+ }(i, T, new _(x, S))))(t, v(v({}, e), {}, { [a]: p, skewingSide: f }), s, r);
2196
2196
  }
2197
2197
  const cc = (i, t, e, s) => ac("x", i, t, e, s), hc = (i, t, e, s) => ac("y", i, t, e, s);
2198
2198
  function ni(i, t) {
@@ -3037,8 +3037,8 @@ function Ji(i, t, e, s, r, n, o, a) {
3037
3037
  if (E.cachesBoundsOfCurve && (c = [...arguments].join(), Os.boundsOfCurveCache[c])) return Os.boundsOfCurveCache[c];
3038
3038
  const h = Math.sqrt, l = Math.abs, u = [], d = [[0, 0], [0, 0]];
3039
3039
  let g = 6 * i - 12 * e + 6 * r, f = -3 * i + 9 * e - 9 * r + 3 * o, p = 3 * e - 3 * i;
3040
- for (let w = 0; w < 2; ++w) {
3041
- if (w > 0 && (g = 6 * t - 12 * s + 6 * n, f = -3 * t + 9 * s - 9 * n + 3 * a, p = 3 * s - 3 * t), l(f) < 1e-12) {
3040
+ for (let S = 0; S < 2; ++S) {
3041
+ if (S > 0 && (g = 6 * t - 12 * s + 6 * n, f = -3 * t + 9 * s - 9 * n + 3 * a, p = 3 * s - 3 * t), l(f) < 1e-12) {
3042
3042
  if (l(g) < 1e-12) continue;
3043
3043
  const F = -p / g;
3044
3044
  0 < F && F < 1 && u.push(F);
@@ -3054,8 +3054,8 @@ function Ji(i, t, e, s, r, n, o, a) {
3054
3054
  let m = u.length;
3055
3055
  const b = m, T = kc(i, t, e, s, r, n, o, a);
3056
3056
  for (; m--; ) {
3057
- const { x: w, y: O } = T(u[m]);
3058
- d[0][m] = w, d[1][m] = O;
3057
+ const { x: S, y: O } = T(u[m]);
3058
+ d[0][m] = S, d[1][m] = O;
3059
3059
  }
3060
3060
  d[0][b] = i, d[1][b] = t, d[0][b + 1] = o, d[1][b + 1] = a;
3061
3061
  const x = [new _(Math.min(...d[0]), Math.min(...d[1])), new _(Math.max(...d[0]), Math.max(...d[1]))];
@@ -3065,7 +3065,7 @@ const Bu = (i, t, e) => {
3065
3065
  let [s, r, n, o, a, c, h, l] = e;
3066
3066
  const u = ((d, g, f, p, m, b, T) => {
3067
3067
  if (f === 0 || p === 0) return [];
3068
- let x = 0, w = 0, O = 0;
3068
+ let x = 0, S = 0, O = 0;
3069
3069
  const k = Math.PI, D = T * pn, M = Pt(D), F = Et(D), G = 0.5 * (-F * d - M * g), nt = 0.5 * (-F * g + M * d), st = f ** 2, R = p ** 2, Z = nt ** 2, Ct = G ** 2, bt = st * R - st * Z - R * Ct;
3070
3070
  let Nt = Math.abs(f), Ut = Math.abs(p);
3071
3071
  if (bt < 0) {
@@ -3077,7 +3077,7 @@ const Bu = (i, t, e) => {
3077
3077
  b === 0 && he > 0 ? he -= 2 * k : b === 1 && he < 0 && (he += 2 * k);
3078
3078
  const rr = Math.ceil(Math.abs(he / k * 2)), we = [], _s = he / rr, bl = 8 / 3 * Math.sin(_s / 4) * Math.sin(_s / 4) / Math.sin(_s / 2);
3079
3079
  let yi = bs + _s;
3080
- for (let le = 0; le < rr; le++) we[le] = Ru(bs, yi, F, M, Nt, Ut, sr, vi, bl, x, w), x = we[le][5], w = we[le][6], bs = yi, yi += _s;
3080
+ for (let le = 0; le < rr; le++) we[le] = Ru(bs, yi, F, M, Nt, Ut, sr, vi, bl, x, S), x = we[le][5], S = we[le][6], bs = yi, yi += _s;
3081
3081
  return we;
3082
3082
  })(h - i, l - t, r, n, a, c, o);
3083
3083
  for (let d = 0, g = u.length; d < g; d++) u[d][1] += i, u[d][2] += t, u[d][3] += i, u[d][4] += t, u[d][5] += i, u[d][6] += t;
@@ -4041,8 +4041,8 @@ class nr {
4041
4041
  const T = Math.min(p, m);
4042
4042
  if (T > 0) {
4043
4043
  const x = T / Math.max(p, m);
4044
- o.forEach((w) => {
4045
- w.offset += x * (1 - w.offset);
4044
+ o.forEach((S) => {
4045
+ S.offset += x * (1 - S.offset);
4046
4046
  });
4047
4047
  }
4048
4048
  }
@@ -4777,9 +4777,9 @@ class ht extends Nc {
4777
4777
  }
4778
4778
  _renderChars(t, e, s, r, n, o) {
4779
4779
  const a = this.getHeightOfLine(o), c = this.textAlign.includes(Lt), h = this.path, l = !c && this.charSpacing === 0 && this.isEmptyStyles(o) && !h, u = this.direction === "ltr", d = this.direction === "ltr" ? 1 : -1, g = e.direction;
4780
- let f, p, m, b, T, x = "", w = 0;
4780
+ let f, p, m, b, T, x = "", S = 0;
4781
4781
  if (e.save(), g !== this.direction && (e.canvas.setAttribute("dir", u ? "ltr" : "rtl"), e.direction = u ? "ltr" : "rtl", e.textAlign = u ? A : $), n -= a * this._fontSizeFraction / this.lineHeight, l) return this._renderChar(t, e, o, 0, s.join(""), r, n), void e.restore();
4782
- for (let O = 0, k = s.length - 1; O <= k; O++) b = O === k || this.charSpacing || h, x += s[O], m = this.__charBounds[o][O], w === 0 ? (r += d * (m.kernedWidth - m.width), w += m.width) : w += m.kernedWidth, c && !b && this._reSpaceAndTab.test(s[O]) && (b = !0), b || (f = f || this.getCompleteStyleDeclaration(o, O), p = this.getCompleteStyleDeclaration(o, O + 1), b = ai(f, p, !1)), b && (h ? (e.save(), e.translate(m.renderLeft, m.renderTop), e.rotate(m.angle), this._renderChar(t, e, o, O, x, -w / 2, 0), e.restore()) : (T = r, this._renderChar(t, e, o, O, x, T, n)), x = "", f = p, r += d * w, w = 0);
4782
+ for (let O = 0, k = s.length - 1; O <= k; O++) b = O === k || this.charSpacing || h, x += s[O], m = this.__charBounds[o][O], S === 0 ? (r += d * (m.kernedWidth - m.width), S += m.width) : S += m.kernedWidth, c && !b && this._reSpaceAndTab.test(s[O]) && (b = !0), b || (f = f || this.getCompleteStyleDeclaration(o, O), p = this.getCompleteStyleDeclaration(o, O + 1), b = ai(f, p, !1)), b && (h ? (e.save(), e.translate(m.renderLeft, m.renderTop), e.rotate(m.angle), this._renderChar(t, e, o, O, x, -S / 2, 0), e.restore()) : (T = r, this._renderChar(t, e, o, O, x, T, n)), x = "", f = p, r += d * S, S = 0);
4783
4783
  e.restore();
4784
4784
  }
4785
4785
  _applyPatternGradientTransformText(t) {
@@ -4854,7 +4854,7 @@ class ht extends Nc {
4854
4854
  }
4855
4855
  const u = this._textLines[c], d = l / this.lineHeight, g = this._getLineLeftOffset(c);
4856
4856
  let f, p, m = 0, b = 0, T = this.getValueOfPropertyAt(c, 0, e), x = this.getValueOfPropertyAt(c, 0, et);
4857
- const w = s + d * (1 - this._fontSizeFraction);
4857
+ const S = s + d * (1 - this._fontSizeFraction);
4858
4858
  let O = this.getHeightOfChar(c, 0), k = this.getValueOfPropertyAt(c, 0, "deltaY");
4859
4859
  for (let M = 0, F = u.length; M < F; M++) {
4860
4860
  const G = this.__charBounds[c][M];
@@ -4863,11 +4863,11 @@ class ht extends Nc {
4863
4863
  if (n && f && p) t.save(), t.fillStyle = x, t.translate(G.renderLeft, G.renderTop), t.rotate(G.angle), t.fillRect(-G.kernedWidth / 2, a * nt + st, G.kernedWidth, this.fontSize / 15), t.restore();
4864
4864
  else if ((f !== T || p !== x || nt !== O || st !== k) && b > 0) {
4865
4865
  let R = r + g + m;
4866
- this.direction === "rtl" && (R = this.width - R - b), T && x && (t.fillStyle = x, t.fillRect(R, w + a * O + k, b, this.fontSize / 15)), m = G.left, b = G.width, T = f, x = p, O = nt, k = st;
4866
+ this.direction === "rtl" && (R = this.width - R - b), T && x && (t.fillStyle = x, t.fillRect(R, S + a * O + k, b, this.fontSize / 15)), m = G.left, b = G.width, T = f, x = p, O = nt, k = st;
4867
4867
  } else b += G.kernedWidth;
4868
4868
  }
4869
4869
  let D = r + g + m;
4870
- this.direction === "rtl" && (D = this.width - D - b), t.fillStyle = p, f && p && t.fillRect(D, w + a * O + k, b - o, this.fontSize / 15), s += l;
4870
+ this.direction === "rtl" && (D = this.width - D - b), t.fillStyle = p, f && p && t.fillRect(D, S + a * O + k, b - o, this.fontSize / 15), s += l;
4871
4871
  }
4872
4872
  this._removeShadow(t);
4873
4873
  }
@@ -5005,10 +5005,10 @@ class _d {
5005
5005
  o.backgroundColor = "";
5006
5006
  const x = { stroke: "transparent", fill: "transparent", textBackgroundColor: "transparent" };
5007
5007
  o.setSelectionStyles(x, 0, r), o.setSelectionStyles(x, n, o.text.length), o.dirty = !0;
5008
- const w = o.toCanvasElement({ enableRetinaScaling: a.enableRetinaScaling, viewportTransform: !0 });
5009
- o.backgroundColor = b, o.styles = T, o.dirty = !0, Ds(w, { position: "fixed", left: "".concat(-w.width, "px"), border: ft, width: "".concat(w.width / d, "px"), height: "".concat(w.height / d, "px") }), this.__dragImageDisposer && this.__dragImageDisposer(), this.__dragImageDisposer = () => {
5010
- w.remove();
5011
- }, Dt(t.target || this.target.hiddenTextarea).body.appendChild(w), (s = t.dataTransfer) === null || s === void 0 || s.setDragImage(w, m.x, m.y);
5008
+ const S = o.toCanvasElement({ enableRetinaScaling: a.enableRetinaScaling, viewportTransform: !0 });
5009
+ o.backgroundColor = b, o.styles = T, o.dirty = !0, Ds(S, { position: "fixed", left: "".concat(-S.width, "px"), border: ft, width: "".concat(S.width / d, "px"), height: "".concat(S.height / d, "px") }), this.__dragImageDisposer && this.__dragImageDisposer(), this.__dragImageDisposer = () => {
5010
+ S.remove();
5011
+ }, Dt(t.target || this.target.hiddenTextarea).body.appendChild(S), (s = t.dataTransfer) === null || s === void 0 || s.setDragImage(S, m.x, m.y);
5012
5012
  }
5013
5013
  onDragStart(t) {
5014
5014
  this.__dragStartFired = !0;
@@ -5635,9 +5635,9 @@ class Jt extends Sd {
5635
5635
  T = this.__charBounds[l][d - 1].left + this.__charBounds[l][d - 1].width - D;
5636
5636
  }
5637
5637
  m = p, (this.lineHeight < 1 || g === l && this.lineHeight > 1) && (p /= this.lineHeight);
5638
- let x = s.left + f + b, w = p, O = 0;
5638
+ let x = s.left + f + b, S = p, O = 0;
5639
5639
  const k = T - b;
5640
- this.inCompositionMode ? (t.fillStyle = this.compositionColor || "black", w = 1, O = p) : t.fillStyle = this.selectionColor, this.direction === "rtl" && (this.textAlign === $ || this.textAlign === Lt || this.textAlign === js ? x = this.width - x - k : this.textAlign === A || this.textAlign === Gr ? x = s.left + f - T : this.textAlign !== j && this.textAlign !== Is || (x = s.left + f - T)), t.fillRect(x, s.top + s.topOffset + O, k, w), s.topOffset += m;
5640
+ this.inCompositionMode ? (t.fillStyle = this.compositionColor || "black", S = 1, O = p) : t.fillStyle = this.selectionColor, this.direction === "rtl" && (this.textAlign === $ || this.textAlign === Lt || this.textAlign === js ? x = this.width - x - k : this.textAlign === A || this.textAlign === Gr ? x = s.left + f - T : this.textAlign !== j && this.textAlign !== Is || (x = s.left + f - T)), t.fillRect(x, s.top + s.topOffset + O, k, S), s.topOffset += m;
5641
5641
  }
5642
5642
  }
5643
5643
  getCurrentCharFontSize() {
@@ -5755,8 +5755,8 @@ class Ie extends Jt {
5755
5755
  const m = Math.max(e, r, this.dynamicMinWidth), b = n[t];
5756
5756
  let T;
5757
5757
  for (g = 0, T = 0; T < b.length; T++) {
5758
- const { word: x, width: w } = b[T];
5759
- g += x.length, u += f + w - a, u > m && !p ? (h.push(d), d = [], u = w, p = !0) : u += a, p || c || d.push(l), d = d.concat(x), f = c ? 0 : this._measureWord([l], t, g), g++, p = !1;
5758
+ const { word: x, width: S } = b[T];
5759
+ g += x.length, u += f + S - a, u > m && !p ? (h.push(d), d = [], u = S, p = !0) : u += a, p || c || d.push(l), d = d.concat(x), f = c ? 0 : this._measureWord([l], t, g), g++, p = !1;
5760
5760
  }
5761
5761
  return T && h.push(d), r + o > this.dynamicMinWidth && (this.dynamicMinWidth = r - a + o), h;
5762
5762
  }
@@ -6850,9 +6850,9 @@ class yr extends rt {
6850
6850
  }
6851
6851
  applyTo2d(t) {
6852
6852
  const e = t.imageData, s = e.data, r = this.matrix, n = Math.round(Math.sqrt(r.length)), o = Math.floor(n / 2), a = e.width, c = e.height, h = t.ctx.createImageData(a, c), l = h.data, u = this.opaque ? 1 : 0;
6853
- let d, g, f, p, m, b, T, x, w, O, k, D, M;
6853
+ let d, g, f, p, m, b, T, x, S, O, k, D, M;
6854
6854
  for (k = 0; k < c; k++) for (O = 0; O < a; O++) {
6855
- for (m = 4 * (k * a + O), d = 0, g = 0, f = 0, p = 0, M = 0; M < n; M++) for (D = 0; D < n; D++) T = k + M - o, b = O + D - o, T < 0 || T >= c || b < 0 || b >= a || (x = 4 * (T * a + b), w = r[M * n + D], d += s[x] * w, g += s[x + 1] * w, f += s[x + 2] * w, u || (p += s[x + 3] * w));
6855
+ for (m = 4 * (k * a + O), d = 0, g = 0, f = 0, p = 0, M = 0; M < n; M++) for (D = 0; D < n; D++) T = k + M - o, b = O + D - o, T < 0 || T >= c || b < 0 || b >= a || (x = 4 * (T * a + b), S = r[M * n + D], d += s[x] * S, g += s[x + 1] * S, f += s[x + 2] * S, u || (p += s[x + 3] * S));
6856
6856
  l[m] = d, l[m + 1] = g, l[m + 2] = f, l[m + 3] = u ? s[m + 3] : p;
6857
6857
  }
6858
6858
  t.imageData = h;
@@ -7206,39 +7206,39 @@ class Cr extends rt {
7206
7206
  }
7207
7207
  lanczosResize(t, e, s, r, n) {
7208
7208
  const o = t.imageData.data, a = t.ctx.createImageData(r, n), c = a.data, h = this.lanczosCreate(this.lanczosLobes), l = this.rcpScaleX, u = this.rcpScaleY, d = 2 / this.rcpScaleX, g = 2 / this.rcpScaleY, f = Math.ceil(l * this.lanczosLobes / 2), p = Math.ceil(u * this.lanczosLobes / 2), m = {}, b = { x: 0, y: 0 }, T = { x: 0, y: 0 };
7209
- return function x(w) {
7209
+ return function x(S) {
7210
7210
  let O, k, D, M, F, G, nt, st, R, Z, Ct;
7211
- for (b.x = (w + 0.5) * l, T.x = Math.floor(b.x), O = 0; O < n; O++) {
7211
+ for (b.x = (S + 0.5) * l, T.x = Math.floor(b.x), O = 0; O < n; O++) {
7212
7212
  for (b.y = (O + 0.5) * u, T.y = Math.floor(b.y), F = 0, G = 0, nt = 0, st = 0, R = 0, k = T.x - f; k <= T.x + f; k++) if (!(k < 0 || k >= e)) {
7213
7213
  Z = Math.floor(1e3 * Math.abs(k - b.x)), m[Z] || (m[Z] = {});
7214
7214
  for (let bt = T.y - p; bt <= T.y + p; bt++) bt < 0 || bt >= s || (Ct = Math.floor(1e3 * Math.abs(bt - b.y)), m[Z][Ct] || (m[Z][Ct] = h(Math.sqrt(Math.pow(Z * d, 2) + Math.pow(Ct * g, 2)) / 1e3)), D = m[Z][Ct], D > 0 && (M = 4 * (bt * e + k), F += D, G += D * o[M], nt += D * o[M + 1], st += D * o[M + 2], R += D * o[M + 3]));
7215
7215
  }
7216
- M = 4 * (O * r + w), c[M] = G / F, c[M + 1] = nt / F, c[M + 2] = st / F, c[M + 3] = R / F;
7216
+ M = 4 * (O * r + S), c[M] = G / F, c[M + 1] = nt / F, c[M + 2] = st / F, c[M + 3] = R / F;
7217
7217
  }
7218
- return ++w < r ? x(w) : a;
7218
+ return ++S < r ? x(S) : a;
7219
7219
  }(0);
7220
7220
  }
7221
7221
  bilinearFiltering(t, e, s, r, n) {
7222
7222
  let o, a, c, h, l, u, d, g, f, p, m, b, T, x = 0;
7223
- const w = this.rcpScaleX, O = this.rcpScaleY, k = 4 * (e - 1), D = t.imageData.data, M = t.ctx.createImageData(r, n), F = M.data;
7224
- for (d = 0; d < n; d++) for (g = 0; g < r; g++) for (l = Math.floor(w * g), u = Math.floor(O * d), f = w * g - l, p = O * d - u, T = 4 * (u * e + l), m = 0; m < 4; m++) o = D[T + m], a = D[T + 4 + m], c = D[T + k + m], h = D[T + k + 4 + m], b = o * (1 - f) * (1 - p) + a * f * (1 - p) + c * p * (1 - f) + h * f * p, F[x++] = b;
7223
+ const S = this.rcpScaleX, O = this.rcpScaleY, k = 4 * (e - 1), D = t.imageData.data, M = t.ctx.createImageData(r, n), F = M.data;
7224
+ for (d = 0; d < n; d++) for (g = 0; g < r; g++) for (l = Math.floor(S * g), u = Math.floor(O * d), f = S * g - l, p = O * d - u, T = 4 * (u * e + l), m = 0; m < 4; m++) o = D[T + m], a = D[T + 4 + m], c = D[T + k + m], h = D[T + k + 4 + m], b = o * (1 - f) * (1 - p) + a * f * (1 - p) + c * p * (1 - f) + h * f * p, F[x++] = b;
7225
7225
  return M;
7226
7226
  }
7227
7227
  hermiteFastResize(t, e, s, r, n) {
7228
7228
  const o = this.rcpScaleX, a = this.rcpScaleY, c = Math.ceil(o / 2), h = Math.ceil(a / 2), l = t.imageData.data, u = t.ctx.createImageData(r, n), d = u.data;
7229
7229
  for (let g = 0; g < n; g++) for (let f = 0; f < r; f++) {
7230
7230
  const p = 4 * (f + g * r);
7231
- let m = 0, b = 0, T = 0, x = 0, w = 0, O = 0, k = 0;
7231
+ let m = 0, b = 0, T = 0, x = 0, S = 0, O = 0, k = 0;
7232
7232
  const D = (g + 0.5) * a;
7233
7233
  for (let M = Math.floor(g * a); M < (g + 1) * a; M++) {
7234
7234
  const F = Math.abs(D - (M + 0.5)) / h, G = (f + 0.5) * o, nt = F * F;
7235
7235
  for (let st = Math.floor(f * o); st < (f + 1) * o; st++) {
7236
7236
  let R = Math.abs(G - (st + 0.5)) / c;
7237
7237
  const Z = Math.sqrt(nt + R * R);
7238
- Z > 1 && Z < -1 || (m = 2 * Z * Z * Z - 3 * Z * Z + 1, m > 0 && (R = 4 * (st + M * e), k += m * l[R + 3], T += m, l[R + 3] < 255 && (m = m * l[R + 3] / 250), x += m * l[R], w += m * l[R + 1], O += m * l[R + 2], b += m));
7238
+ Z > 1 && Z < -1 || (m = 2 * Z * Z * Z - 3 * Z * Z + 1, m > 0 && (R = 4 * (st + M * e), k += m * l[R + 3], T += m, l[R + 3] < 255 && (m = m * l[R + 3] / 250), x += m * l[R], S += m * l[R + 1], O += m * l[R + 2], b += m));
7239
7239
  }
7240
7240
  }
7241
- d[p] = x / b, d[p + 1] = w / b, d[p + 2] = O / b, d[p + 3] = k / T;
7241
+ d[p] = x / b, d[p + 1] = S / b, d[p + 2] = O / b, d[p + 3] = k / T;
7242
7242
  }
7243
7243
  return u;
7244
7244
  }
@@ -7333,8 +7333,8 @@ const zd = {
7333
7333
  }, Ke = class Ke extends tt {
7334
7334
  constructor(e) {
7335
7335
  super(e);
7336
- S(this, "id");
7337
- S(this, "accepts", [
7336
+ w(this, "id");
7337
+ w(this, "accepts", [
7338
7338
  "audio",
7339
7339
  "video",
7340
7340
  "image",
@@ -7342,10 +7342,10 @@ const zd = {
7342
7342
  "caption",
7343
7343
  "template"
7344
7344
  ]);
7345
- S(this, "metadata");
7346
- S(this, "items", []);
7347
- S(this, "magnetic");
7348
- S(this, "static");
7345
+ w(this, "metadata");
7346
+ w(this, "items", []);
7347
+ w(this, "magnetic");
7348
+ w(this, "static");
7349
7349
  Object.assign(this, Ke.ownDefaults), this.id = e.id, this.accepts = e.accepts || [], this.items = e.items || [], this.magnetic = e.magnetic, this.static = e.static, this.metadata = e.metadata, this.fill = "rgba(34, 34, 37, 0.8)";
7350
7350
  }
7351
7351
  static getDefaults() {
@@ -7358,7 +7358,7 @@ const zd = {
7358
7358
  this.width = e;
7359
7359
  }
7360
7360
  };
7361
- S(Ke, "ownDefaults", zd), S(Ke, "type", "Track");
7361
+ w(Ke, "ownDefaults", zd), w(Ke, "type", "Track");
7362
7362
  let ie = Ke;
7363
7363
  C.setClass(ie, "Track");
7364
7364
  const Zs = 1, He = "rgba(255, 255, 255,1.0)", Hd = [
@@ -7425,13 +7425,13 @@ const Zs = 1, He = "rgba(255, 255, 255,1.0)", Hd = [
7425
7425
  width: e.width
7426
7426
  });
7427
7427
  super([r, n, o], e);
7428
- S(this, "guide");
7429
- S(this, "topGuide");
7430
- S(this, "bottomGuide");
7431
- S(this, "metadata");
7432
- S(this, "accepts", []);
7433
- S(this, "kind");
7434
- S(this, "activeGuideFill");
7428
+ w(this, "guide");
7429
+ w(this, "topGuide");
7430
+ w(this, "bottomGuide");
7431
+ w(this, "metadata");
7432
+ w(this, "accepts", []);
7433
+ w(this, "kind");
7434
+ w(this, "activeGuideFill");
7435
7435
  Object.assign(this, Ze.ownDefaults), this.guide = n, this.topGuide = r, this.bottomGuide = o, this.id = e.id, this.metadata = e.metadata, this.tScale = e.tScale, this.kind = e.kind, this.activeGuideFill = e.activeGuideFill || He;
7436
7436
  }
7437
7437
  static getDefaults() {
@@ -7447,7 +7447,7 @@ const Zs = 1, He = "rgba(255, 255, 255,1.0)", Hd = [
7447
7447
  e ? this.guide.set("fill", this.activeGuideFill) : this.guide.set("fill", "transparent");
7448
7448
  }
7449
7449
  };
7450
- S(Ze, "type", "Helper"), S(Ze, "ownDefaults", {
7450
+ w(Ze, "type", "Helper"), w(Ze, "ownDefaults", {
7451
7451
  selectable: !1,
7452
7452
  evented: !1
7453
7453
  });
@@ -7456,11 +7456,11 @@ C.setClass(ls, "Helper");
7456
7456
  const Je = class Je extends tt {
7457
7457
  constructor(e) {
7458
7458
  super(e);
7459
- S(this, "guideItemId");
7460
- S(this, "distXToActCenter");
7461
- S(this, "trackItemType");
7462
- S(this, "defaultPos");
7463
- S(this, "draggedObject");
7459
+ w(this, "guideItemId");
7460
+ w(this, "distXToActCenter");
7461
+ w(this, "trackItemType");
7462
+ w(this, "defaultPos");
7463
+ w(this, "draggedObject");
7464
7464
  Object.assign(this, Je.ownDefaults), this.id = e.id;
7465
7465
  }
7466
7466
  static getDefaults() {
@@ -7483,7 +7483,7 @@ const Je = class Je extends tt {
7483
7483
  ), e.lineWidth = Zs, e.setLineDash(this.strokeDashArray), e.strokeStyle = He, e.stroke(), e.restore();
7484
7484
  }
7485
7485
  };
7486
- S(Je, "type", "Placeholder"), S(Je, "ownDefaults", {
7486
+ w(Je, "type", "Placeholder"), w(Je, "ownDefaults", {
7487
7487
  rx: 6,
7488
7488
  ry: 6,
7489
7489
  objectCaching: !1,
@@ -7819,11 +7819,11 @@ const { wrapWithFireEvent: ug, getLocalPoint: dg } = vs, gg = (i, t, e, s) => {
7819
7819
  n.duration,
7820
7820
  n.tScale,
7821
7821
  n.playbackRate
7822
- ), w = n.width + n.left;
7823
- if (w <= x) {
7824
- n.set("width", w);
7822
+ ), S = n.width + n.left;
7823
+ if (S <= x) {
7824
+ n.set("width", S);
7825
7825
  const O = X(
7826
- x - w,
7826
+ x - S,
7827
7827
  n.tScale,
7828
7828
  n.playbackRate
7829
7829
  );
@@ -7853,12 +7853,12 @@ const { wrapWithFireEvent: ug, getLocalPoint: dg } = vs, gg = (i, t, e, s) => {
7853
7853
  ), Qe = class Qe extends tt {
7854
7854
  constructor(e) {
7855
7855
  super(e);
7856
- S(this, "duration");
7857
- S(this, "fromId");
7858
- S(this, "toId");
7859
- S(this, "kind", "none");
7860
- S(this, "isSelected", !1);
7861
- S(this, "availableDrop", !0);
7856
+ w(this, "duration");
7857
+ w(this, "fromId");
7858
+ w(this, "toId");
7859
+ w(this, "kind", "none");
7860
+ w(this, "isSelected", !1);
7861
+ w(this, "availableDrop", !0);
7862
7862
  Object.assign(this, Qe.ownDefaults), this.id = e.id, this.centeredScaling = !0, this.strokeWidth = 0, this.tScale = e.tScale, this.duration = e.duration, this.fromId = e.fromId, this.toId = e.toId, this.kind = e.kind, this.strokeDashArray = e.strokeDashArray || [];
7863
7863
  }
7864
7864
  static createControls() {
@@ -7890,7 +7890,7 @@ const { wrapWithFireEvent: ug, getLocalPoint: dg } = vs, gg = (i, t, e, s) => {
7890
7890
  ), e.lineWidth = Zs, e.setLineDash(this.strokeDashArray), e.strokeStyle = s, e.stroke(), e.restore();
7891
7891
  }
7892
7892
  };
7893
- S(Qe, "type", "Transition"), S(Qe, "ownDefaults", {
7893
+ w(Qe, "type", "Transition"), w(Qe, "ownDefaults", {
7894
7894
  objectCaching: !1,
7895
7895
  borderColor: "transparent",
7896
7896
  stroke: "transparent",
@@ -7909,12 +7909,12 @@ C.setClass(Ht, "Transition");
7909
7909
  const As = class As extends tt {
7910
7910
  constructor(e) {
7911
7911
  super(e);
7912
- S(this, "id");
7913
- S(this, "resourceId", "");
7914
- S(this, "tScale");
7915
- S(this, "isSelected", !1);
7916
- S(this, "trim");
7917
- S(this, "duration");
7912
+ w(this, "id");
7913
+ w(this, "resourceId", "");
7914
+ w(this, "tScale");
7915
+ w(this, "isSelected", !1);
7916
+ w(this, "trim");
7917
+ w(this, "duration");
7918
7918
  Object.assign(this, As.ownDefaults), this.id = e.id, this.tScale = e.tScale, this.objectCaching = !1, this.rx = 8, this.ry = 8;
7919
7919
  }
7920
7920
  static createControls() {
@@ -7942,7 +7942,7 @@ const As = class As extends tt {
7942
7942
  this.src = e;
7943
7943
  }
7944
7944
  };
7945
- S(As, "type", "Trimmable"), S(As, "ownDefaults", {
7945
+ w(As, "type", "Trimmable"), w(As, "ownDefaults", {
7946
7946
  rx: 6,
7947
7947
  ry: 6,
7948
7948
  objectCaching: !1,
@@ -7958,7 +7958,7 @@ C.setClass(Qt, "Trimmable");
7958
7958
  const ts = class ts extends tt {
7959
7959
  constructor(e) {
7960
7960
  super(e);
7961
- S(this, "isSelected", !1);
7961
+ w(this, "isSelected", !1);
7962
7962
  Object.assign(this, ts.ownDefaults), this.tScale = e.tScale, this.display = e.display;
7963
7963
  }
7964
7964
  static createControls() {
@@ -7987,7 +7987,7 @@ const ts = class ts extends tt {
7987
7987
  ), e.lineWidth = Zs, e.strokeStyle = He, e.stroke(), e.restore());
7988
7988
  }
7989
7989
  };
7990
- S(ts, "type", "Resizable"), S(ts, "ownDefaults", {
7990
+ w(ts, "type", "Resizable"), w(ts, "ownDefaults", {
7991
7991
  rx: 6,
7992
7992
  ry: 6,
7993
7993
  objectCaching: !1,
@@ -8007,13 +8007,13 @@ function fg(i) {
8007
8007
  const es = class es extends tt {
8008
8008
  constructor(e) {
8009
8009
  super(e);
8010
- S(this, "duration");
8011
- S(this, "fromId");
8012
- S(this, "toId");
8013
- S(this, "isSelected", !1);
8014
- S(this, "name");
8015
- S(this, "durationString");
8016
- S(this, "itemType");
8010
+ w(this, "duration");
8011
+ w(this, "fromId");
8012
+ w(this, "toId");
8013
+ w(this, "isSelected", !1);
8014
+ w(this, "name");
8015
+ w(this, "durationString");
8016
+ w(this, "itemType");
8017
8017
  Object.assign(this, es.ownDefaults), this.id = e.id, this.fill = "#27272a", this.name = e.type.toUpperCase(), this.durationString = fg(e.duration), this.itemType = e.type;
8018
8018
  }
8019
8019
  static getDefaults() {
@@ -8050,7 +8050,7 @@ const es = class es extends tt {
8050
8050
  e.fillStyle = "rgba(0, 0, 0, 0.5)", e.roundRect ? (e.beginPath(), e.roundRect(s, r, n, o, a), e.fill()) : e.fillRect(s, r, n, o);
8051
8051
  }
8052
8052
  };
8053
- S(es, "type", "PreviewTrackItem"), S(es, "ownDefaults", {
8053
+ w(es, "type", "PreviewTrackItem"), w(es, "ownDefaults", {
8054
8054
  objectCaching: !1,
8055
8055
  borderColor: "transparent",
8056
8056
  stroke: "transparent",
@@ -8064,8 +8064,8 @@ let ye = es;
8064
8064
  C.setClass(ye, "PreviewTrackItem");
8065
8065
  class pg {
8066
8066
  constructor() {
8067
- S(this, "___eventListeners", {});
8068
- S(this, "___activeObjects", []);
8067
+ w(this, "___eventListeners", {});
8068
+ w(this, "___activeObjects", []);
8069
8069
  }
8070
8070
  resize(t, { force: e } = { force: !1 }) {
8071
8071
  var s;
@@ -8942,8 +8942,8 @@ function Yv(i, t, e, s, r, n) {
8942
8942
  m || (m = d == "constructor");
8943
8943
  }
8944
8944
  if (p && !m) {
8945
- var w = i.constructor, O = t.constructor;
8946
- w != O && "constructor" in i && "constructor" in t && !(typeof w == "function" && w instanceof w && typeof O == "function" && O instanceof O) && (p = !1);
8945
+ var S = i.constructor, O = t.constructor;
8946
+ S != O && "constructor" in i && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof O == "function" && O instanceof O) && (p = !1);
8947
8947
  }
8948
8948
  return n.delete(i), n.delete(t), p;
8949
8949
  }
@@ -9022,7 +9022,7 @@ function Qv(i, t, e) {
9022
9022
  function x() {
9023
9023
  a !== void 0 && clearTimeout(a), h = 0, s = c = r = a = void 0;
9024
9024
  }
9025
- function w() {
9025
+ function S() {
9026
9026
  return a === void 0 ? o : T(Fi());
9027
9027
  }
9028
9028
  function O() {
@@ -9035,7 +9035,7 @@ function Qv(i, t, e) {
9035
9035
  }
9036
9036
  return a === void 0 && (a = setTimeout(b, t)), o;
9037
9037
  }
9038
- return O.cancel = x, O.flush = w, O;
9038
+ return O.cancel = x, O.flush = S, O;
9039
9039
  }
9040
9040
  function t0(i, t) {
9041
9041
  return bh(i, t);
@@ -9353,12 +9353,12 @@ function _h(i) {
9353
9353
  T,
9354
9354
  e.tScale,
9355
9355
  e.playbackRate
9356
- ), w = e.trim.to + x;
9356
+ ), S = e.trim.to + x;
9357
9357
  if (b < m || b < m) return;
9358
- w <= e.duration && (e.set({
9358
+ S <= e.duration && (e.set({
9359
9359
  width: b,
9360
9360
  scaleX: 1
9361
- }), e.trim.to = w, e.onResizeSnap && e.onResizeSnap(), h = !0);
9361
+ }), e.trim.to = S, e.onResizeSnap && e.onResizeSnap(), h = !0);
9362
9362
  } else
9363
9363
  e.set({
9364
9364
  width: g - e.left,
@@ -9370,12 +9370,12 @@ function _h(i) {
9370
9370
  T,
9371
9371
  e.tScale,
9372
9372
  e.playbackRate
9373
- ), w = e.trim.to + x;
9373
+ ), S = e.trim.to + x;
9374
9374
  if (b < m) return;
9375
- w <= e.duration && (e.set({
9375
+ S <= e.duration && (e.set({
9376
9376
  width: b,
9377
9377
  scaleX: 1
9378
- }), e.trim.to = w, e.onResizeSnap && e.onResizeSnap(), h = !0);
9378
+ }), e.trim.to = S, e.onResizeSnap && e.onResizeSnap(), h = !0);
9379
9379
  } else
9380
9380
  e.set({
9381
9381
  width: d - e.left,
@@ -9817,11 +9817,11 @@ function C0(i) {
9817
9817
  const ss = class ss extends tt {
9818
9818
  constructor(e) {
9819
9819
  super(e);
9820
- S(this, "duration");
9821
- S(this, "fromId");
9822
- S(this, "toId");
9823
- S(this, "itemType", "none");
9824
- S(this, "isSelected", !1);
9820
+ w(this, "duration");
9821
+ w(this, "fromId");
9822
+ w(this, "toId");
9823
+ w(this, "itemType", "none");
9824
+ w(this, "isSelected", !1);
9825
9825
  Object.assign(this, ss.ownDefaults), this.id = e.id;
9826
9826
  }
9827
9827
  static createControls() {
@@ -9867,7 +9867,7 @@ const ss = class ss extends tt {
9867
9867
  ), e.lineWidth = Zs, e.strokeStyle = He, e.stroke(), e.restore());
9868
9868
  }
9869
9869
  };
9870
- S(ss, "type", "TransitionGuide"), S(ss, "ownDefaults", {
9870
+ w(ss, "type", "TransitionGuide"), w(ss, "ownDefaults", {
9871
9871
  objectCaching: !1,
9872
9872
  borderColor: "transparent",
9873
9873
  stroke: "transparent",
@@ -10400,10 +10400,10 @@ function Gh(i) {
10400
10400
  Le.forEach((m) => {
10401
10401
  const b = c.find((k) => k.id === m.toId), T = c.find((k) => k.id === m.fromId), x = m.width;
10402
10402
  ((b == null ? void 0 : b.width) || 0) >= x / 2 && ((T == null ? void 0 : T.width) || 0) >= x / 2 || (m.availableDrop = !1);
10403
- const w = p.find(
10403
+ const S = p.find(
10404
10404
  (k) => k.fromId === m.toId
10405
10405
  );
10406
- w && w.width + x / 2 >= ((b == null ? void 0 : b.width) || 0) && (m.availableDrop = !1);
10406
+ S && S.width + x / 2 >= ((b == null ? void 0 : b.width) || 0) && (m.availableDrop = !1);
10407
10407
  const O = p.find(
10408
10408
  (k) => k.toId === m.fromId
10409
10409
  );
@@ -10845,14 +10845,14 @@ function al(i) {
10845
10845
  Object.keys(t).forEach((p) => {
10846
10846
  const { objects: m, index: b } = t[p], T = this.tracks.find(
10847
10847
  (O) => O.id === p
10848
- ), x = m.map((O) => O.id).filter((O) => !this.transitionIds.includes(O)), w = {
10848
+ ), x = m.map((O) => O.id).filter((O) => !this.transitionIds.includes(O)), S = {
10849
10849
  id: er(),
10850
10850
  items: x,
10851
10851
  type: T.type,
10852
10852
  accepts: T.accepts,
10853
10853
  tempIndex: b
10854
10854
  };
10855
- g.push(w);
10855
+ g.push(S);
10856
10856
  });
10857
10857
  const f = Ah(l, g);
10858
10858
  f.length && d.splice(o, 0, ...f), this.tracks = d, this.renderTracks(), this.refreshTrackLayout(), this.alignItemsToTrack(), this.uodateTrackItemIdsOrdering(), this.adjustMagneticTrack(), this.updateTransitions(!0), this.updateState({ updateHistory: !0, kind: "update" });
@@ -10882,16 +10882,16 @@ function cl(i) {
10882
10882
  const k = o[O.id];
10883
10883
  O.left = k == null ? void 0 : k.left;
10884
10884
  }), this.resumeEventListeners();
10885
- const x = r.trackId, w = g.find((O) => O.id === x);
10886
- w == null || w.items.push(...Object.keys(o)), this.tracks = g;
10885
+ const x = r.trackId, S = g.find((O) => O.id === x);
10886
+ S == null || S.items.push(...Object.keys(o)), this.tracks = g;
10887
10887
  });
10888
10888
  const f = this.tracks[u], p = [];
10889
10889
  Object.keys(e).forEach((b) => {
10890
- const { objects: T, index: x } = e[b], w = T.filter((D) => D.type !== "transition").map((D) => D.id), [O] = w, k = this.trackItemsMap[O];
10890
+ const { objects: T, index: x } = e[b], S = T.filter((D) => D.type !== "transition").map((D) => D.id), [O] = S, k = this.trackItemsMap[O];
10891
10891
  if (t && k) {
10892
10892
  const D = this.getItemAccepts(k.type), M = {
10893
10893
  id: er(),
10894
- items: w,
10894
+ items: S,
10895
10895
  type: k.type,
10896
10896
  accepts: D,
10897
10897
  tempIndex: x
@@ -10899,7 +10899,7 @@ function cl(i) {
10899
10899
  p.push(M);
10900
10900
  } else {
10901
10901
  const D = g[u + x];
10902
- D == null || D.items.push(...w), this.tracks = g;
10902
+ D == null || D.items.push(...S), this.tracks = g;
10903
10903
  }
10904
10904
  });
10905
10905
  const m = Ah(f, p);
@@ -11047,7 +11047,7 @@ const wy = (i) => {
11047
11047
  }), fl = i.state.subscribeToUpdateItemDetails((t) => {
11048
11048
  const e = i.getTrackItems();
11049
11049
  if (e.length === 0) return;
11050
- const s = i.state.getState(), r = t.trackItemDetailsMap, n = s.trackItemsMap;
11050
+ const s = i.state.getState(), r = t.trackItemsMap, n = s.trackItemsMap;
11051
11051
  e.forEach((o) => {
11052
11052
  const a = r[o.id];
11053
11053
  if (a)
@@ -11069,18 +11069,15 @@ const wy = (i) => {
11069
11069
  } else (a.type === "text" || a.type === "caption") && (a.type === "text" || a.type === "caption") && o.set({ text: a.details.text });
11070
11070
  }), i.requestRenderAll();
11071
11071
  }), gl = i.state.subscribeToHistory((t) => {
11072
- i.tracks = t.tracks, i.trackItemsMap = t.trackItemsMap, i.trackItemIds = t.trackItemIds, i.trackItemDetailsMap = t.trackItemDetailsMap, i.transitionIds = t.transitionIds, i.transitionsMap = t.transitionsMap, i.renderTracks(), i.refreshTrackLayout(), i.updateTrackItemCoords(), i.alignItemsToTrack(), i.alignTransitionsToTrack(), i.adjustMagneticTrack(), i.updateTransitions(), i.calcBounding(), i.duration = Er(i.trackItemsMap);
11072
+ i.tracks = t.tracks, i.trackItemsMap = t.trackItemsMap, i.trackItemIds = t.trackItemIds, i.transitionIds = t.transitionIds, i.transitionsMap = t.transitionsMap, i.renderTracks(), i.refreshTrackLayout(), i.updateTrackItemCoords(), i.alignItemsToTrack(), i.alignTransitionsToTrack(), i.adjustMagneticTrack(), i.updateTransitions(), i.calcBounding(), i.duration = Er(i.trackItemsMap);
11073
11073
  }), dl = i.state.subscribeToAddOrRemoveItems(() => {
11074
11074
  const t = i.getTrackItems().map((n) => n.id), e = i.state.getState(), s = e.trackItemIds, r = [];
11075
11075
  t.forEach((n) => {
11076
11076
  s.includes(n) || r.push(n);
11077
- }), i.deleteTrackItemById(r), i.tracks = e.tracks, i.trackItemsMap = e.trackItemsMap, i.trackItemDetailsMap = e.trackItemDetailsMap, i.transitionIds = e.transitionIds, i.transitionsMap = e.transitionsMap, s.forEach((n) => {
11077
+ }), i.deleteTrackItemById(r), i.tracks = e.tracks, i.trackItemsMap = e.trackItemsMap, i.transitionIds = e.transitionIds, i.transitionsMap = e.transitionsMap, s.forEach((n) => {
11078
11078
  if (!t.includes(n)) {
11079
11079
  const a = {
11080
- ...e.trackItemsMap[n],
11081
- details: {
11082
- ...e.trackItemDetailsMap[n].details
11083
- }
11080
+ ...e.trackItemsMap[n]
11084
11081
  };
11085
11082
  i.addTrackItem(a);
11086
11083
  }
@@ -11102,29 +11099,28 @@ const Ls = class Ls extends Qi {
11102
11099
  constructor(e, s) {
11103
11100
  var r;
11104
11101
  super(e, s);
11105
- S(this, "itemTypes", []);
11106
- S(this, "acceptsMap");
11107
- S(this, "sizesMap", {});
11108
- S(this, "objectTypes", []);
11102
+ w(this, "itemTypes", []);
11103
+ w(this, "acceptsMap");
11104
+ w(this, "sizesMap", {});
11105
+ w(this, "objectTypes", []);
11109
11106
  // Declare properties from state
11110
- S(this, "tracks", []);
11111
- S(this, "hoverCornerItem", !1);
11112
- S(this, "trackItemsMap", {});
11113
- S(this, "trackItemIds", []);
11114
- S(this, "transitionIds", []);
11115
- S(this, "transitionsMap", {});
11116
- S(this, "trackItemDetailsMap", {});
11117
- S(this, "scale");
11118
- S(this, "duration");
11119
- S(this, "bounding");
11120
- S(this, "onScroll");
11121
- S(this, "onResizeCanvas");
11122
- S(this, "tScale");
11123
- S(this, "state");
11124
- S(this, "activeIds", []);
11125
- S(this, "spacing");
11126
- S(this, "guideLineColor");
11127
- S(this, "withTransitions", []);
11107
+ w(this, "tracks", []);
11108
+ w(this, "hoverCornerItem", !1);
11109
+ w(this, "trackItemsMap", {});
11110
+ w(this, "trackItemIds", []);
11111
+ w(this, "transitionIds", []);
11112
+ w(this, "transitionsMap", {});
11113
+ w(this, "scale");
11114
+ w(this, "duration");
11115
+ w(this, "bounding");
11116
+ w(this, "onScroll");
11117
+ w(this, "onResizeCanvas");
11118
+ w(this, "tScale");
11119
+ w(this, "state");
11120
+ w(this, "activeIds", []);
11121
+ w(this, "spacing");
11122
+ w(this, "guideLineColor");
11123
+ w(this, "withTransitions", []);
11128
11124
  this.bounding = s.bounding || {
11129
11125
  width: s.width || 0,
11130
11126
  height: s.height || 0
@@ -11282,7 +11278,6 @@ const Ls = class Ls extends Qi {
11282
11278
  trackItemsMap: this.trackItemsMap,
11283
11279
  transitionIds: this.transitionIds,
11284
11280
  transitionsMap: this.transitionsMap,
11285
- trackItemDetailsMap: this.trackItemDetailsMap,
11286
11281
  scale: this.scale,
11287
11282
  duration: e
11288
11283
  };
@@ -11336,7 +11331,7 @@ const Ls = class Ls extends Qi {
11336
11331
  c[0]
11337
11332
  );
11338
11333
  Math.abs(a) > h ? this.setViewportPos(
11339
- -(o - h) - this.spacing.right,
11334
+ -(o - h) + this.spacing.right,
11340
11335
  this.viewportTransform[5]
11341
11336
  ) : l.left + l.width <= h ? this.setViewportPos(16, this.viewportTransform[5]) : this.setViewportPos(
11342
11337
  this.viewportTransform[4] - a,
@@ -11381,7 +11376,7 @@ const Ls = class Ls extends Qi {
11381
11376
  }), this.requestRenderAll(), this.calcBounding(), this.refreshTrackLayout(), this.updateTransitions(!1), this.resumeEventListeners();
11382
11377
  }
11383
11378
  };
11384
- S(Ls, "objectTypes", []);
11379
+ w(Ls, "objectTypes", []);
11385
11380
  let Ns = Ls;
11386
11381
  Sy(Ns, [
11387
11382
  pg,