@linker-design-plus/timeline-track 2.0.23 → 2.0.24

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,7 +1,7 @@
1
1
  var Na = Object.defineProperty;
2
2
  var $a = (a, e, t) => e in a ? Na(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var p = (a, e, t) => $a(a, typeof e != "symbol" ? e + "" : e, t);
4
- const I = {
4
+ const A = {
5
5
  transparent: "transparent",
6
6
  white: "#ffffff",
7
7
  black: "#000000",
@@ -51,85 +51,85 @@ const I = {
51
51
  sliderThumbInnerShadow: "rgba(255, 255, 255, 0.92)",
52
52
  sliderThumbShadow: "rgba(8, 24, 56, 0.24)"
53
53
  }, ee = {
54
- background: I.black,
55
- border: I.borderStrong,
56
- timeTick: I.textSecondary,
57
- timeText: I.textSubtle,
58
- trackBackground: I.black,
59
- trackSelectedBackground: I.selectedTrackSurface,
60
- trackBorder: I.borderStrong,
61
- clipBackground: I.clipSurface,
62
- clipBorder: I.black,
63
- clipName: I.textPrimary,
64
- clipDuration: I.textMuted,
65
- clipHandle: I.textPrimary,
66
- clipSelectedBorder: I.clipSelectedBorder,
67
- clipCoverBackground: I.borderStrong,
68
- audioClipText: I.textAudio,
69
- audioClipAccent: I.audioClipAccent,
70
- playhead: I.textPrimary,
71
- grid: I.borderStrong,
72
- snapGuideLineColor: I.accentSelectedBorder,
73
- scrollbarBackground: I.borderStrong,
74
- scrollbarBorder: I.borderSubtle,
75
- scrollbarThumb: I.borderMedium
54
+ background: A.black,
55
+ border: A.borderStrong,
56
+ timeTick: A.textSecondary,
57
+ timeText: A.textSubtle,
58
+ trackBackground: A.black,
59
+ trackSelectedBackground: A.selectedTrackSurface,
60
+ trackBorder: A.borderStrong,
61
+ clipBackground: A.clipSurface,
62
+ clipBorder: A.black,
63
+ clipName: A.textPrimary,
64
+ clipDuration: A.textMuted,
65
+ clipHandle: A.textPrimary,
66
+ clipSelectedBorder: A.clipSelectedBorder,
67
+ clipCoverBackground: A.borderStrong,
68
+ audioClipText: A.textAudio,
69
+ audioClipAccent: A.audioClipAccent,
70
+ playhead: A.textPrimary,
71
+ grid: A.borderStrong,
72
+ snapGuideLineColor: A.accentSelectedBorder,
73
+ scrollbarBackground: A.borderStrong,
74
+ scrollbarBorder: A.borderSubtle,
75
+ scrollbarThumb: A.borderMedium
76
76
  }, ge = {
77
77
  backgroundColor: "#0f0f0f",
78
- borderColor: I.borderStrong,
79
- textColor: I.textSecondary,
80
- labelColor: I.textHint,
81
- inputBackground: I.inputSurface,
82
- inputBorder: I.borderMedium,
83
- inputFocusBorder: I.accentFocus,
84
- buttonBackground: I.inputSurface,
85
- buttonBorder: I.borderMedium,
86
- buttonActiveBackground: I.accentFocus,
87
- buttonActiveBorder: I.accentFocus,
88
- buttonActiveText: I.white
78
+ borderColor: A.borderStrong,
79
+ textColor: A.textSecondary,
80
+ labelColor: A.textHint,
81
+ inputBackground: A.inputSurface,
82
+ inputBorder: A.borderMedium,
83
+ inputFocusBorder: A.accentFocus,
84
+ buttonBackground: A.inputSurface,
85
+ buttonBorder: A.borderMedium,
86
+ buttonActiveBackground: A.accentFocus,
87
+ buttonActiveBorder: A.accentFocus,
88
+ buttonActiveText: A.white
89
89
  }, be = {
90
- background: I.panelSurface,
91
- border: I.borderStrong,
92
- text: I.textPrimary,
93
- buttonBackground: I.buttonSurface,
90
+ background: A.panelSurface,
91
+ border: A.borderStrong,
92
+ text: A.textPrimary,
93
+ buttonBackground: A.buttonSurface,
94
94
  buttonHover: "#3a3a3a",
95
- buttonDanger: I.accentDanger
96
- }, At = {
95
+ buttonDanger: A.accentDanger
96
+ }, It = {
97
97
  border: ee.scrollbarBorder,
98
98
  thumb: ee.scrollbarThumb,
99
- hitArea: I.overlayHitArea
99
+ hitArea: A.overlayHitArea
100
100
  }, bt = {
101
- fill: I.white,
102
- stroke: I.black,
103
- text: I.black
101
+ fill: A.white,
102
+ stroke: A.black,
103
+ text: A.black
104
104
  }, ke = {
105
- tabBarBackground: I.buttonSurface,
106
- actionBarBackground: I.buttonSurface,
107
- activeTabBackground: I.activeTabBackground,
108
- activeTabText: I.white,
109
- inactiveTabText: I.textInactive,
110
- sliderThumbShadow: `0 8px 20px ${I.sliderThumbShadow}`,
111
- sliderThumbInnerShadow: `inset 0 1px 1px ${I.sliderThumbInnerShadow}`
105
+ tabBarBackground: A.buttonSurface,
106
+ actionBarBackground: A.buttonSurface,
107
+ activeTabBackground: A.activeTabBackground,
108
+ activeTabText: A.white,
109
+ inactiveTabText: A.textInactive,
110
+ sliderThumbShadow: `0 8px 20px ${A.sliderThumbShadow}`,
111
+ sliderThumbInnerShadow: `inset 0 1px 1px ${A.sliderThumbInnerShadow}`
112
112
  }, sn = {
113
- grip: I.accentPlayheadGrip,
114
- shadow: I.overlayShadow
113
+ grip: A.accentPlayheadGrip,
114
+ shadow: A.overlayShadow
115
115
  }, pi = {
116
- background: I.overlayPreview,
117
- text: I.white,
118
- actionBackground: I.accentAction,
119
- actionText: I.white
116
+ background: A.overlayPreview,
117
+ text: A.white,
118
+ actionBackground: A.accentAction,
119
+ actionText: A.white
120
120
  }, nt = {
121
- border: I.overlayTransformHandle,
122
- handleBackground: I.black
121
+ border: A.overlayTransformHandle,
122
+ handleBackground: A.black
123
123
  }, an = {
124
- fill: I.overlaySelectionBoxFill,
125
- stroke: I.accentSelectionBox
124
+ fill: A.overlaySelectionBoxFill,
125
+ stroke: A.accentSelectionBox
126
126
  }, fi = {
127
- videoFill: I.overlayVideoDropPreview,
128
- videoStroke: I.accentSelectedBorder,
129
- audioFill: I.overlayAudioDropPreview,
130
- audioStroke: I.accentAudioPreview
127
+ videoFill: A.overlayVideoDropPreview,
128
+ videoStroke: A.accentSelectedBorder,
129
+ audioFill: A.overlayAudioDropPreview,
130
+ audioStroke: A.accentAudioPreview
131
131
  }, on = {
132
- line: I.gridLine
132
+ line: A.gridLine
133
133
  }, za = {
134
134
  fontSize: 32,
135
135
  color: "#fff",
@@ -554,7 +554,7 @@ class Se {
554
554
  return l.rotation = T._getRotation(l.rotation), l;
555
555
  }
556
556
  }
557
- const qa = "[object Array]", ja = "[object Number]", Ka = "[object String]", Za = "[object Boolean]", Ja = Math.PI / 180, Qa = 180 / Math.PI, It = "#", eo = "", to = "0", io = "Konva warning: ", cn = "Konva error: ", ro = "rgb(", er = {
557
+ const qa = "[object Array]", ja = "[object Number]", Ka = "[object String]", Za = "[object Boolean]", Ja = Math.PI / 180, Qa = 180 / Math.PI, At = "#", eo = "", to = "0", io = "Konva warning: ", cn = "Konva error: ", ro = "rgb(", er = {
558
558
  aliceblue: [240, 248, 255],
559
559
  antiquewhite: [250, 235, 215],
560
560
  aqua: [0, 255, 255],
@@ -778,7 +778,7 @@ const so = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
778
778
  return ((1 << 24) + (a << 16) + (e << 8) + t).toString(16).slice(1);
779
779
  },
780
780
  _hexToRgb(a) {
781
- a = a.replace(It, eo);
781
+ a = a.replace(At, eo);
782
782
  const e = parseInt(a, 16);
783
783
  return {
784
784
  r: e >> 16 & 255,
@@ -790,7 +790,7 @@ const so = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
790
790
  let a = (Math.random() * 16777215 << 0).toString(16);
791
791
  for (; a.length < 6; )
792
792
  a = to + a;
793
- return It + a;
793
+ return At + a;
794
794
  },
795
795
  isCanvasFarblingActive() {
796
796
  if (Et !== null)
@@ -817,11 +817,11 @@ const so = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
817
817
  return this.isCanvasFarblingActive() ? this.getSnappedHexColor(a) : a;
818
818
  },
819
819
  getHitColorKey(a, e, t) {
820
- return this.isCanvasFarblingActive() && (a = Math.round(a / 5) * 5, e = Math.round(e / 5) * 5, t = Math.round(t / 5) * 5), It + this._rgbToHex(a, e, t);
820
+ return this.isCanvasFarblingActive() && (a = Math.round(a / 5) * 5, e = Math.round(e / 5) * 5, t = Math.round(t / 5) * 5), At + this._rgbToHex(a, e, t);
821
821
  },
822
822
  getSnappedHexColor(a) {
823
823
  const e = this._hexToRgb(a);
824
- return It + this._rgbToHex(Math.round(e.r / 5) * 5, Math.round(e.g / 5) * 5, Math.round(e.b / 5) * 5);
824
+ return At + this._rgbToHex(Math.round(e.r / 5) * 5, Math.round(e.g / 5) * 5, Math.round(e.b / 5) * 5);
825
825
  },
826
826
  getRGB(a) {
827
827
  let e;
@@ -829,7 +829,7 @@ const so = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
829
829
  r: e[0],
830
830
  g: e[1],
831
831
  b: e[2]
832
- }) : a[0] === It ? this._hexToRgb(a.substring(1)) : a.substr(0, 4) === ro ? (e = no.exec(a.replace(/ /g, "")), {
832
+ }) : a[0] === At ? this._hexToRgb(a.substring(1)) : a.substr(0, 4) === ro ? (e = no.exec(a.replace(/ /g, "")), {
833
833
  r: parseInt(e[1], 10),
834
834
  g: parseInt(e[2], 10),
835
835
  b: parseInt(e[3], 10)
@@ -1640,7 +1640,7 @@ function Co() {
1640
1640
  }) : T.warn(Ze(a) + ' is a not valid value for "' + e + '" attribute. The value should be a array of numbers.')), a;
1641
1641
  };
1642
1642
  }
1643
- function Ae() {
1643
+ function Ie() {
1644
1644
  if (D.isUnminified)
1645
1645
  return function(a, e) {
1646
1646
  return a === !0 || a === !1 || T.warn(Ze(a) + ' is a not valid value for "' + e + '" attribute. The value should be a boolean.'), a;
@@ -1778,7 +1778,7 @@ function To(a) {
1778
1778
  return () => {
1779
1779
  };
1780
1780
  }
1781
- const Ei = "absoluteOpacity", pn = "allEventListeners", Me = "absoluteTransform", fn = "absoluteScale", tt = "canvas", wo = "Change", ko = "children", xo = "konva", kr = "listening", Po = "mouseenter", _o = "mouseleave", Ao = "pointerenter", Io = "pointerleave", Eo = "touchenter", Ro = "touchleave", gn = "set", mn = "Shape", Ri = " ", yn = "stage", We = "transform", Mo = "Stage", xr = "visible", Do = [
1781
+ const Ei = "absoluteOpacity", pn = "allEventListeners", Me = "absoluteTransform", fn = "absoluteScale", tt = "canvas", wo = "Change", ko = "children", xo = "konva", kr = "listening", Po = "mouseenter", _o = "mouseleave", Io = "pointerenter", Ao = "pointerleave", Eo = "touchenter", Ro = "touchleave", gn = "set", mn = "Shape", Ri = " ", yn = "stage", We = "transform", Mo = "Stage", xr = "visible", Do = [
1782
1782
  "xChange.konva",
1783
1783
  "yChange.konva",
1784
1784
  "scaleXChange.konva",
@@ -2427,8 +2427,8 @@ class E {
2427
2427
  const r = [
2428
2428
  Po,
2429
2429
  _o,
2430
- Ao,
2431
2430
  Io,
2431
+ Ao,
2432
2432
  Eo,
2433
2433
  Ro
2434
2434
  ];
@@ -2609,16 +2609,16 @@ te(E, "offsetY", 0, R());
2609
2609
  te(E, "dragDistance", void 0, R());
2610
2610
  te(E, "width", 0, R());
2611
2611
  te(E, "height", 0, R());
2612
- te(E, "listening", !0, Ae());
2613
- te(E, "preventDefault", !0, Ae());
2612
+ te(E, "listening", !0, Ie());
2613
+ te(E, "preventDefault", !0, Ie());
2614
2614
  te(E, "filters", void 0, function(a) {
2615
2615
  return this._filterUpToDate = !1, a;
2616
2616
  });
2617
- te(E, "visible", !0, Ae());
2617
+ te(E, "visible", !0, Ie());
2618
2618
  te(E, "transformsEnabled", "all", dt());
2619
2619
  te(E, "size");
2620
2620
  te(E, "dragBoundFunc");
2621
- te(E, "draggable", !1, Ae());
2621
+ te(E, "draggable", !1, Ie());
2622
2622
  m.backCompat(E, {
2623
2623
  rotateDeg: "rotate",
2624
2624
  setRotationDeg: "setRotation",
@@ -3322,7 +3322,7 @@ function jo() {
3322
3322
  function Ko() {
3323
3323
  this._clearCache(ea);
3324
3324
  }
3325
- class A extends E {
3325
+ class I extends E {
3326
3326
  constructor(e) {
3327
3327
  super(e);
3328
3328
  let t, i = 0;
@@ -3550,100 +3550,100 @@ class A extends E {
3550
3550
  qt(e);
3551
3551
  }
3552
3552
  }
3553
- A.prototype._fillFunc = zo;
3554
- A.prototype._strokeFunc = Vo;
3555
- A.prototype._fillFuncHit = Uo;
3556
- A.prototype._strokeFuncHit = Wo;
3557
- A.prototype._centroid = !1;
3558
- A.prototype.nodeType = "Shape";
3559
- ae(A);
3560
- A.prototype.eventListeners = {};
3561
- A.prototype.on.call(A.prototype, "shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Yo);
3562
- A.prototype.on.call(A.prototype, "shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Xo);
3563
- A.prototype.on.call(A.prototype, "fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", qo);
3564
- A.prototype.on.call(A.prototype, "fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", jo);
3565
- A.prototype.on.call(A.prototype, "fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", Ko);
3566
- m.addGetterSetter(A, "stroke", void 0, Os());
3567
- m.addGetterSetter(A, "strokeWidth", 2, R());
3568
- m.addGetterSetter(A, "fillAfterStrokeEnabled", !1);
3569
- m.addGetterSetter(A, "hitStrokeWidth", "auto", jr());
3570
- m.addGetterSetter(A, "strokeHitEnabled", !0, Ae());
3571
- m.addGetterSetter(A, "perfectDrawEnabled", !0, Ae());
3572
- m.addGetterSetter(A, "shadowForStrokeEnabled", !0, Ae());
3573
- m.addGetterSetter(A, "lineJoin");
3574
- m.addGetterSetter(A, "lineCap");
3575
- m.addGetterSetter(A, "miterLimit");
3576
- m.addGetterSetter(A, "sceneFunc");
3577
- m.addGetterSetter(A, "hitFunc");
3578
- m.addGetterSetter(A, "dash");
3579
- m.addGetterSetter(A, "dashOffset", 0, R());
3580
- m.addGetterSetter(A, "shadowColor", void 0, dt());
3581
- m.addGetterSetter(A, "shadowBlur", 0, R());
3582
- m.addGetterSetter(A, "shadowOpacity", 1, R());
3583
- m.addComponentsGetterSetter(A, "shadowOffset", ["x", "y"]);
3584
- m.addGetterSetter(A, "shadowOffsetX", 0, R());
3585
- m.addGetterSetter(A, "shadowOffsetY", 0, R());
3586
- m.addGetterSetter(A, "fillPatternImage");
3587
- m.addGetterSetter(A, "fill", void 0, Os());
3588
- m.addGetterSetter(A, "fillPatternX", 0, R());
3589
- m.addGetterSetter(A, "fillPatternY", 0, R());
3590
- m.addGetterSetter(A, "fillLinearGradientColorStops");
3591
- m.addGetterSetter(A, "strokeLinearGradientColorStops");
3592
- m.addGetterSetter(A, "fillRadialGradientStartRadius", 0);
3593
- m.addGetterSetter(A, "fillRadialGradientEndRadius", 0);
3594
- m.addGetterSetter(A, "fillRadialGradientColorStops");
3595
- m.addGetterSetter(A, "fillPatternRepeat", "repeat");
3596
- m.addGetterSetter(A, "fillEnabled", !0);
3597
- m.addGetterSetter(A, "strokeEnabled", !0);
3598
- m.addGetterSetter(A, "shadowEnabled", !0);
3599
- m.addGetterSetter(A, "dashEnabled", !0);
3600
- m.addGetterSetter(A, "strokeScaleEnabled", !0);
3601
- m.addGetterSetter(A, "fillPriority", "color");
3602
- m.addComponentsGetterSetter(A, "fillPatternOffset", ["x", "y"]);
3603
- m.addGetterSetter(A, "fillPatternOffsetX", 0, R());
3604
- m.addGetterSetter(A, "fillPatternOffsetY", 0, R());
3605
- m.addComponentsGetterSetter(A, "fillPatternScale", ["x", "y"]);
3606
- m.addGetterSetter(A, "fillPatternScaleX", 1, R());
3607
- m.addGetterSetter(A, "fillPatternScaleY", 1, R());
3608
- m.addComponentsGetterSetter(A, "fillLinearGradientStartPoint", [
3553
+ I.prototype._fillFunc = zo;
3554
+ I.prototype._strokeFunc = Vo;
3555
+ I.prototype._fillFuncHit = Uo;
3556
+ I.prototype._strokeFuncHit = Wo;
3557
+ I.prototype._centroid = !1;
3558
+ I.prototype.nodeType = "Shape";
3559
+ ae(I);
3560
+ I.prototype.eventListeners = {};
3561
+ I.prototype.on.call(I.prototype, "shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Yo);
3562
+ I.prototype.on.call(I.prototype, "shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Xo);
3563
+ I.prototype.on.call(I.prototype, "fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", qo);
3564
+ I.prototype.on.call(I.prototype, "fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", jo);
3565
+ I.prototype.on.call(I.prototype, "fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", Ko);
3566
+ m.addGetterSetter(I, "stroke", void 0, Os());
3567
+ m.addGetterSetter(I, "strokeWidth", 2, R());
3568
+ m.addGetterSetter(I, "fillAfterStrokeEnabled", !1);
3569
+ m.addGetterSetter(I, "hitStrokeWidth", "auto", jr());
3570
+ m.addGetterSetter(I, "strokeHitEnabled", !0, Ie());
3571
+ m.addGetterSetter(I, "perfectDrawEnabled", !0, Ie());
3572
+ m.addGetterSetter(I, "shadowForStrokeEnabled", !0, Ie());
3573
+ m.addGetterSetter(I, "lineJoin");
3574
+ m.addGetterSetter(I, "lineCap");
3575
+ m.addGetterSetter(I, "miterLimit");
3576
+ m.addGetterSetter(I, "sceneFunc");
3577
+ m.addGetterSetter(I, "hitFunc");
3578
+ m.addGetterSetter(I, "dash");
3579
+ m.addGetterSetter(I, "dashOffset", 0, R());
3580
+ m.addGetterSetter(I, "shadowColor", void 0, dt());
3581
+ m.addGetterSetter(I, "shadowBlur", 0, R());
3582
+ m.addGetterSetter(I, "shadowOpacity", 1, R());
3583
+ m.addComponentsGetterSetter(I, "shadowOffset", ["x", "y"]);
3584
+ m.addGetterSetter(I, "shadowOffsetX", 0, R());
3585
+ m.addGetterSetter(I, "shadowOffsetY", 0, R());
3586
+ m.addGetterSetter(I, "fillPatternImage");
3587
+ m.addGetterSetter(I, "fill", void 0, Os());
3588
+ m.addGetterSetter(I, "fillPatternX", 0, R());
3589
+ m.addGetterSetter(I, "fillPatternY", 0, R());
3590
+ m.addGetterSetter(I, "fillLinearGradientColorStops");
3591
+ m.addGetterSetter(I, "strokeLinearGradientColorStops");
3592
+ m.addGetterSetter(I, "fillRadialGradientStartRadius", 0);
3593
+ m.addGetterSetter(I, "fillRadialGradientEndRadius", 0);
3594
+ m.addGetterSetter(I, "fillRadialGradientColorStops");
3595
+ m.addGetterSetter(I, "fillPatternRepeat", "repeat");
3596
+ m.addGetterSetter(I, "fillEnabled", !0);
3597
+ m.addGetterSetter(I, "strokeEnabled", !0);
3598
+ m.addGetterSetter(I, "shadowEnabled", !0);
3599
+ m.addGetterSetter(I, "dashEnabled", !0);
3600
+ m.addGetterSetter(I, "strokeScaleEnabled", !0);
3601
+ m.addGetterSetter(I, "fillPriority", "color");
3602
+ m.addComponentsGetterSetter(I, "fillPatternOffset", ["x", "y"]);
3603
+ m.addGetterSetter(I, "fillPatternOffsetX", 0, R());
3604
+ m.addGetterSetter(I, "fillPatternOffsetY", 0, R());
3605
+ m.addComponentsGetterSetter(I, "fillPatternScale", ["x", "y"]);
3606
+ m.addGetterSetter(I, "fillPatternScaleX", 1, R());
3607
+ m.addGetterSetter(I, "fillPatternScaleY", 1, R());
3608
+ m.addComponentsGetterSetter(I, "fillLinearGradientStartPoint", [
3609
3609
  "x",
3610
3610
  "y"
3611
3611
  ]);
3612
- m.addComponentsGetterSetter(A, "strokeLinearGradientStartPoint", [
3612
+ m.addComponentsGetterSetter(I, "strokeLinearGradientStartPoint", [
3613
3613
  "x",
3614
3614
  "y"
3615
3615
  ]);
3616
- m.addGetterSetter(A, "fillLinearGradientStartPointX", 0);
3617
- m.addGetterSetter(A, "strokeLinearGradientStartPointX", 0);
3618
- m.addGetterSetter(A, "fillLinearGradientStartPointY", 0);
3619
- m.addGetterSetter(A, "strokeLinearGradientStartPointY", 0);
3620
- m.addComponentsGetterSetter(A, "fillLinearGradientEndPoint", [
3616
+ m.addGetterSetter(I, "fillLinearGradientStartPointX", 0);
3617
+ m.addGetterSetter(I, "strokeLinearGradientStartPointX", 0);
3618
+ m.addGetterSetter(I, "fillLinearGradientStartPointY", 0);
3619
+ m.addGetterSetter(I, "strokeLinearGradientStartPointY", 0);
3620
+ m.addComponentsGetterSetter(I, "fillLinearGradientEndPoint", [
3621
3621
  "x",
3622
3622
  "y"
3623
3623
  ]);
3624
- m.addComponentsGetterSetter(A, "strokeLinearGradientEndPoint", [
3624
+ m.addComponentsGetterSetter(I, "strokeLinearGradientEndPoint", [
3625
3625
  "x",
3626
3626
  "y"
3627
3627
  ]);
3628
- m.addGetterSetter(A, "fillLinearGradientEndPointX", 0);
3629
- m.addGetterSetter(A, "strokeLinearGradientEndPointX", 0);
3630
- m.addGetterSetter(A, "fillLinearGradientEndPointY", 0);
3631
- m.addGetterSetter(A, "strokeLinearGradientEndPointY", 0);
3632
- m.addComponentsGetterSetter(A, "fillRadialGradientStartPoint", [
3628
+ m.addGetterSetter(I, "fillLinearGradientEndPointX", 0);
3629
+ m.addGetterSetter(I, "strokeLinearGradientEndPointX", 0);
3630
+ m.addGetterSetter(I, "fillLinearGradientEndPointY", 0);
3631
+ m.addGetterSetter(I, "strokeLinearGradientEndPointY", 0);
3632
+ m.addComponentsGetterSetter(I, "fillRadialGradientStartPoint", [
3633
3633
  "x",
3634
3634
  "y"
3635
3635
  ]);
3636
- m.addGetterSetter(A, "fillRadialGradientStartPointX", 0);
3637
- m.addGetterSetter(A, "fillRadialGradientStartPointY", 0);
3638
- m.addComponentsGetterSetter(A, "fillRadialGradientEndPoint", [
3636
+ m.addGetterSetter(I, "fillRadialGradientStartPointX", 0);
3637
+ m.addGetterSetter(I, "fillRadialGradientStartPointY", 0);
3638
+ m.addComponentsGetterSetter(I, "fillRadialGradientEndPoint", [
3639
3639
  "x",
3640
3640
  "y"
3641
3641
  ]);
3642
- m.addGetterSetter(A, "fillRadialGradientEndPointX", 0);
3643
- m.addGetterSetter(A, "fillRadialGradientEndPointY", 0);
3644
- m.addGetterSetter(A, "fillPatternRotation", 0);
3645
- m.addGetterSetter(A, "fillRule", void 0, dt());
3646
- m.backCompat(A, {
3642
+ m.addGetterSetter(I, "fillRadialGradientEndPointX", 0);
3643
+ m.addGetterSetter(I, "fillRadialGradientEndPointY", 0);
3644
+ m.addGetterSetter(I, "fillPatternRotation", 0);
3645
+ m.addGetterSetter(I, "fillRule", void 0, dt());
3646
+ m.backCompat(I, {
3647
3647
  dashArray: "dash",
3648
3648
  getDashArray: "getDash",
3649
3649
  setDashArray: "getDash",
@@ -3842,7 +3842,7 @@ ut.prototype.nodeType = "Layer";
3842
3842
  ae(ut);
3843
3843
  m.addGetterSetter(ut, "imageSmoothingEnabled", !0);
3844
3844
  m.addGetterSetter(ut, "clearBeforeDraw", !0);
3845
- m.addGetterSetter(ut, "hitGraphEnabled", !0, Ae());
3845
+ m.addGetterSetter(ut, "hitGraphEnabled", !0, Ie());
3846
3846
  class Zr extends ut {
3847
3847
  constructor(e) {
3848
3848
  super(e), this.listening(!1), T.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.');
@@ -4181,7 +4181,7 @@ const Zt = {
4181
4181
  FastLayer: Zr,
4182
4182
  Group: kt,
4183
4183
  DD: Z,
4184
- Shape: A,
4184
+ Shape: I,
4185
4185
  shapes: Kt,
4186
4186
  Animation: Te,
4187
4187
  Tween: ie,
@@ -4189,7 +4189,7 @@ const Zt = {
4189
4189
  Context: Yi,
4190
4190
  Canvas: Xr
4191
4191
  });
4192
- class Fe extends A {
4192
+ class Fe extends I {
4193
4193
  _sceneFunc(e) {
4194
4194
  const t = D.getAngle(this.angle()), i = this.clockwise();
4195
4195
  e.beginPath(), e.arc(0, 0, this.outerRadius(), 0, t, i), e.arc(0, 0, this.innerRadius(), t, 0, !i), e.closePath(), e.fillStrokeShape(this);
@@ -4228,15 +4228,15 @@ ae(Fe);
4228
4228
  m.addGetterSetter(Fe, "innerRadius", 0, R());
4229
4229
  m.addGetterSetter(Fe, "outerRadius", 0, R());
4230
4230
  m.addGetterSetter(Fe, "angle", 0, R());
4231
- m.addGetterSetter(Fe, "clockwise", !1, Ae());
4232
- function Ar(a, e, t, i, r, n, s) {
4231
+ m.addGetterSetter(Fe, "clockwise", !1, Ie());
4232
+ function Ir(a, e, t, i, r, n, s) {
4233
4233
  const o = Math.sqrt(Math.pow(t - a, 2) + Math.pow(i - e, 2)), l = Math.sqrt(Math.pow(r - t, 2) + Math.pow(n - i, 2)), c = s * o / (o + l), h = s * l / (o + l), d = t - c * (r - a), u = i - c * (n - e), f = t + h * (r - a), g = i + h * (n - e);
4234
4234
  return [d, u, f, g];
4235
4235
  }
4236
4236
  function kn(a, e) {
4237
4237
  const t = a.length, i = [];
4238
4238
  for (let r = 2; r < t - 2; r += 2) {
4239
- const n = Ar(a[r - 2], a[r - 1], a[r], a[r + 1], a[r + 2], a[r + 3], e);
4239
+ const n = Ir(a[r - 2], a[r - 1], a[r], a[r + 1], a[r + 2], a[r + 3], e);
4240
4240
  isNaN(n[0]) || (i.push(n[0]), i.push(n[1]), i.push(a[r]), i.push(a[r + 1]), i.push(n[2]), i.push(n[3]));
4241
4241
  }
4242
4242
  return i;
@@ -4261,7 +4261,7 @@ function nl(a) {
4261
4261
  return n * n * n * r[0] + 3 * n * n * i * r[1] + 3 * n * i * i * r[2] + i * i * i * r[3];
4262
4262
  }));
4263
4263
  }
4264
- class Ge extends A {
4264
+ class Ge extends I {
4265
4265
  constructor(e) {
4266
4266
  super(e), this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva", function() {
4267
4267
  this._clearCache("tensionPoints");
@@ -4292,7 +4292,7 @@ class Ge extends A {
4292
4292
  return this.closed() ? this._getTensionPointsClosed() : kn(this.points(), this.tension());
4293
4293
  }
4294
4294
  _getTensionPointsClosed() {
4295
- const e = this.points(), t = e.length, i = this.tension(), r = Ar(e[t - 2], e[t - 1], e[0], e[1], e[2], e[3], i), n = Ar(e[t - 4], e[t - 3], e[t - 2], e[t - 1], e[0], e[1], i), s = kn(e, i);
4295
+ const e = this.points(), t = e.length, i = this.tension(), r = Ir(e[t - 2], e[t - 1], e[0], e[1], e[2], e[3], i), n = Ir(e[t - 4], e[t - 3], e[t - 2], e[t - 1], e[0], e[1], i), s = kn(e, i);
4296
4296
  return [r[2], r[3]].concat(s).concat([
4297
4297
  n[0],
4298
4298
  n[1],
@@ -5061,10 +5061,10 @@ const sl = [
5061
5061
  return Math.sqrt(o) / 2 * (u * g - h * y + v);
5062
5062
  };
5063
5063
  function ll(a, e, t) {
5064
- const i = Ir(1, t, a), r = Ir(1, t, e), n = i * i + r * r;
5064
+ const i = Ar(1, t, a), r = Ar(1, t, e), n = i * i + r * r;
5065
5065
  return Math.sqrt(n);
5066
5066
  }
5067
- const Ir = (a, e, t) => {
5067
+ const Ar = (a, e, t) => {
5068
5068
  const i = t.length - 1;
5069
5069
  let r, n;
5070
5070
  if (i === 0)
@@ -5078,7 +5078,7 @@ const Ir = (a, e, t) => {
5078
5078
  r = new Array(i);
5079
5079
  for (let s = 0; s < i; s++)
5080
5080
  r[s] = i * (t[s + 1] - t[s]);
5081
- return Ir(a - 1, e, r);
5081
+ return Ar(a - 1, e, r);
5082
5082
  }
5083
5083
  }, _n = (a, e, t) => {
5084
5084
  let i = 1, r = a / e, n = (a - t(r)) / e, s = 0;
@@ -5095,7 +5095,7 @@ const Ir = (a, e, t) => {
5095
5095
  }
5096
5096
  return r;
5097
5097
  };
5098
- class re extends A {
5098
+ class re extends I {
5099
5099
  constructor(e) {
5100
5100
  super(e), this.dataArray = [], this.pathLength = 0, this._readDataAttribute(), this.on("dataChange.konva", function() {
5101
5101
  this._readDataAttribute();
@@ -5519,7 +5519,7 @@ m.addGetterSetter(pt, "pointerLength", 10, R());
5519
5519
  m.addGetterSetter(pt, "pointerWidth", 10, R());
5520
5520
  m.addGetterSetter(pt, "pointerAtBeginning", !1);
5521
5521
  m.addGetterSetter(pt, "pointerAtEnding", !0);
5522
- class _t extends A {
5522
+ class _t extends I {
5523
5523
  _sceneFunc(e) {
5524
5524
  e.beginPath(), e.arc(0, 0, this.attrs.radius || 0, 0, Math.PI * 2, !1), e.closePath(), e.fillStrokeShape(this);
5525
5525
  }
@@ -5541,7 +5541,7 @@ _t.prototype.className = "Circle";
5541
5541
  _t.prototype._attrsAffectingSize = ["radius"];
5542
5542
  ae(_t);
5543
5543
  m.addGetterSetter(_t, "radius", 0, R());
5544
- class Je extends A {
5544
+ class Je extends I {
5545
5545
  _sceneFunc(e) {
5546
5546
  const t = this.radiusX(), i = this.radiusY();
5547
5547
  e.beginPath(), e.save(), t !== i && e.scale(1, i / t), e.arc(0, 0, t, 0, Math.PI * 2, !1), e.restore(), e.closePath(), e.fillStrokeShape(this);
@@ -5566,7 +5566,7 @@ ae(Je);
5566
5566
  m.addComponentsGetterSetter(Je, "radius", ["x", "y"]);
5567
5567
  m.addGetterSetter(Je, "radiusX", 0, R());
5568
5568
  m.addGetterSetter(Je, "radiusY", 0, R());
5569
- let Ie = class ia extends A {
5569
+ let Ae = class ia extends I {
5570
5570
  constructor(e) {
5571
5571
  super(e), this._loadListener = () => {
5572
5572
  this._requestDraw();
@@ -5629,16 +5629,16 @@ let Ie = class ia extends A {
5629
5629
  }, r.onerror = i, r.crossOrigin = "Anonymous", r.src = e;
5630
5630
  }
5631
5631
  };
5632
- Ie.prototype.className = "Image";
5633
- Ie.prototype._attrsAffectingSize = ["image"];
5634
- ae(Ie);
5635
- m.addGetterSetter(Ie, "cornerRadius", 0, Xi(4));
5636
- m.addGetterSetter(Ie, "image");
5637
- m.addComponentsGetterSetter(Ie, "crop", ["x", "y", "width", "height"]);
5638
- m.addGetterSetter(Ie, "cropX", 0, R());
5639
- m.addGetterSetter(Ie, "cropY", 0, R());
5640
- m.addGetterSetter(Ie, "cropWidth", 0, R());
5641
- m.addGetterSetter(Ie, "cropHeight", 0, R());
5632
+ Ae.prototype.className = "Image";
5633
+ Ae.prototype._attrsAffectingSize = ["image"];
5634
+ ae(Ae);
5635
+ m.addGetterSetter(Ae, "cornerRadius", 0, Xi(4));
5636
+ m.addGetterSetter(Ae, "image");
5637
+ m.addComponentsGetterSetter(Ae, "crop", ["x", "y", "width", "height"]);
5638
+ m.addGetterSetter(Ae, "cropX", 0, R());
5639
+ m.addGetterSetter(Ae, "cropY", 0, R());
5640
+ m.addGetterSetter(Ae, "cropWidth", 0, R());
5641
+ m.addGetterSetter(Ae, "cropHeight", 0, R());
5642
5642
  const ra = [
5643
5643
  "fontFamily",
5644
5644
  "fontSize",
@@ -5709,7 +5709,7 @@ class Jr extends kt {
5709
5709
  }
5710
5710
  Jr.prototype.className = "Label";
5711
5711
  ae(Jr);
5712
- class ft extends A {
5712
+ class ft extends I {
5713
5713
  _sceneFunc(e) {
5714
5714
  const t = this.width(), i = this.height(), r = this.pointerDirection(), n = this.pointerWidth(), s = this.pointerHeight(), o = this.cornerRadius();
5715
5715
  let l = 0, c = 0, h = 0, d = 0;
@@ -5731,7 +5731,7 @@ m.addGetterSetter(ft, "pointerDirection", hl);
5731
5731
  m.addGetterSetter(ft, "pointerWidth", 0, R());
5732
5732
  m.addGetterSetter(ft, "pointerHeight", 0, R());
5733
5733
  m.addGetterSetter(ft, "cornerRadius", 0, Xi(4));
5734
- class di extends A {
5734
+ class di extends I {
5735
5735
  _sceneFunc(e) {
5736
5736
  const t = this.cornerRadius(), i = this.width(), r = this.height();
5737
5737
  e.beginPath(), t ? T.drawRoundedRectPath(e, i, r, t) : e.rect(0, 0, i, r), e.closePath(), e.fillStrokeShape(this);
@@ -5740,7 +5740,7 @@ class di extends A {
5740
5740
  di.prototype.className = "Rect";
5741
5741
  ae(di);
5742
5742
  m.addGetterSetter(di, "cornerRadius", 0, Xi(4));
5743
- class Qe extends A {
5743
+ class Qe extends I {
5744
5744
  _sceneFunc(e) {
5745
5745
  const t = this._getPoints(), i = this.radius(), r = this.sides(), n = this.cornerRadius();
5746
5746
  if (e.beginPath(), n)
@@ -5793,10 +5793,10 @@ ae(Qe);
5793
5793
  m.addGetterSetter(Qe, "radius", 0, R());
5794
5794
  m.addGetterSetter(Qe, "sides", 0, R());
5795
5795
  m.addGetterSetter(Qe, "cornerRadius", 0, Xi(4));
5796
- const An = Math.PI * 2;
5797
- class gt extends A {
5796
+ const In = Math.PI * 2;
5797
+ class gt extends I {
5798
5798
  _sceneFunc(e) {
5799
- e.beginPath(), e.arc(0, 0, this.innerRadius(), 0, An, !1), e.moveTo(this.outerRadius(), 0), e.arc(0, 0, this.outerRadius(), An, 0, !0), e.closePath(), e.fillStrokeShape(this);
5799
+ e.beginPath(), e.arc(0, 0, this.innerRadius(), 0, In, !1), e.moveTo(this.outerRadius(), 0), e.arc(0, 0, this.outerRadius(), In, 0, !0), e.closePath(), e.fillStrokeShape(this);
5800
5800
  }
5801
5801
  getWidth() {
5802
5802
  return this.outerRadius() * 2;
@@ -5817,7 +5817,7 @@ gt.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"];
5817
5817
  ae(gt);
5818
5818
  m.addGetterSetter(gt, "innerRadius", 0, R());
5819
5819
  m.addGetterSetter(gt, "outerRadius", 0, R());
5820
- class Re extends A {
5820
+ class Re extends I {
5821
5821
  constructor(e) {
5822
5822
  super(e), this._updated = !0, this.anim = new Te(() => {
5823
5823
  const t = this._updated;
@@ -5887,7 +5887,7 @@ m.backCompat(Re, {
5887
5887
  getIndex: "getFrameIndex",
5888
5888
  setIndex: "setFrameIndex"
5889
5889
  });
5890
- class et extends A {
5890
+ class et extends I {
5891
5891
  _sceneFunc(e) {
5892
5892
  const t = this.innerRadius(), i = this.outerRadius(), r = this.numPoints();
5893
5893
  e.beginPath(), e.moveTo(0, 0 - i);
@@ -5926,7 +5926,7 @@ function Ye(a) {
5926
5926
  return e;
5927
5927
  }, []);
5928
5928
  }
5929
- const yt = "auto", ul = "center", na = "inherit", Dt = "justify", pl = "Change.konva", fl = "2d", In = "-", sa = "left", gl = "text", ml = "Text", yl = "top", Sl = "bottom", En = "middle", aa = "normal", vl = "px ", Ti = " ", Cl = "right", Rn = "rtl", bl = "word", Tl = "char", Mn = "none", sr = "…", oa = [
5929
+ const yt = "auto", ul = "center", na = "inherit", Dt = "justify", pl = "Change.konva", fl = "2d", An = "-", sa = "left", gl = "text", ml = "Text", yl = "top", Sl = "bottom", En = "middle", aa = "normal", vl = "px ", Ti = " ", Cl = "right", Rn = "rtl", bl = "word", Tl = "char", Mn = "none", sr = "…", oa = [
5930
5930
  "direction",
5931
5931
  "fontFamily",
5932
5932
  "fontSize",
@@ -5963,7 +5963,7 @@ function Pl(a) {
5963
5963
  function _l(a) {
5964
5964
  return a = a || {}, !a.fillLinearGradientColorStops && !a.fillRadialGradientColorStops && !a.fillPatternImage && (a.fill = a.fill || "black"), a;
5965
5965
  }
5966
- class ne extends A {
5966
+ class ne extends I {
5967
5967
  constructor(e) {
5968
5968
  super(_l(e)), this._partialTextX = 0, this._partialTextY = 0;
5969
5969
  for (let t = 0; t < wl; t++)
@@ -6105,12 +6105,12 @@ class ne extends A {
6105
6105
  }
6106
6106
  if (k) {
6107
6107
  if (y) {
6108
- const H = Ye(w), V = Ye(k), z = H[V.length], N = z === Ti || z === In;
6108
+ const H = Ye(w), V = Ye(k), z = H[V.length], N = z === Ti || z === An;
6109
6109
  let L;
6110
6110
  if (N && M <= h)
6111
6111
  L = V.length;
6112
6112
  else {
6113
- const X = V.lastIndexOf(Ti), F = V.lastIndexOf(In);
6113
+ const X = V.lastIndexOf(Ti), F = V.lastIndexOf(An);
6114
6114
  L = Math.max(X, F) + 1;
6115
6115
  }
6116
6116
  L > 0 && (P = L, k = H.slice(0, P).join(""), M = this._getTextWidth(k));
@@ -6173,20 +6173,20 @@ m.addGetterSetter(ne, "align", sa);
6173
6173
  m.addGetterSetter(ne, "verticalAlign", yl);
6174
6174
  m.addGetterSetter(ne, "lineHeight", 1, R());
6175
6175
  m.addGetterSetter(ne, "wrap", bl);
6176
- m.addGetterSetter(ne, "ellipsis", !1, Ae());
6176
+ m.addGetterSetter(ne, "ellipsis", !1, Ie());
6177
6177
  m.addGetterSetter(ne, "letterSpacing", 0, R());
6178
6178
  m.addGetterSetter(ne, "text", "", dt());
6179
6179
  m.addGetterSetter(ne, "textDecoration", "");
6180
6180
  m.addGetterSetter(ne, "underlineOffset", void 0, R());
6181
6181
  m.addGetterSetter(ne, "charRenderFunc", void 0);
6182
- const Al = "", la = "normal";
6182
+ const Il = "", la = "normal";
6183
6183
  function ca(a) {
6184
6184
  a.fillText(this.partialText, 0, 0);
6185
6185
  }
6186
6186
  function ha(a) {
6187
6187
  a.strokeText(this.partialText, 0, 0);
6188
6188
  }
6189
- class he extends A {
6189
+ class he extends I {
6190
6190
  constructor(e) {
6191
6191
  super(e), this.dummyCanvas = T.createCanvasElement(), this.dataArray = [], this._readDataAttribute(), this.on("dataChange.konva", function() {
6192
6192
  this._readDataAttribute(), this._setTextData();
@@ -6349,10 +6349,10 @@ m.addGetterSetter(he, "align", "left");
6349
6349
  m.addGetterSetter(he, "letterSpacing", 0, R());
6350
6350
  m.addGetterSetter(he, "textBaseline", "middle");
6351
6351
  m.addGetterSetter(he, "fontVariant", la);
6352
- m.addGetterSetter(he, "text", Al);
6352
+ m.addGetterSetter(he, "text", Il);
6353
6353
  m.addGetterSetter(he, "textDecoration", "");
6354
6354
  m.addGetterSetter(he, "kerningFunc", void 0);
6355
- const da = "tr-konva", Il = [
6355
+ const da = "tr-konva", Al = [
6356
6356
  "resizeEnabledChange",
6357
6357
  "rotateAnchorOffsetChange",
6358
6358
  "rotateAnchorAngleChange",
@@ -6439,7 +6439,7 @@ function Ol(a, e, t) {
6439
6439
  let Lr = 0;
6440
6440
  class U extends kt {
6441
6441
  constructor(e) {
6442
- super(e), this._movingAnchorName = null, this._transforming = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(Il, this.update), this.getNode() && this.update();
6442
+ super(e), this._movingAnchorName = null, this._transforming = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(Al, this.update), this.getNode() && this.update();
6443
6443
  }
6444
6444
  attachTo(e) {
6445
6445
  return this.setNode(e), this;
@@ -6603,7 +6603,7 @@ class U extends kt {
6603
6603
  }), this.add(t);
6604
6604
  }
6605
6605
  _createBack() {
6606
- const e = new A({
6606
+ const e = new I({
6607
6607
  name: "back",
6608
6608
  width: 0,
6609
6609
  height: 0,
@@ -6963,7 +6963,7 @@ function Fl(a) {
6963
6963
  U.prototype.className = "Transformer";
6964
6964
  ae(U);
6965
6965
  m.addGetterSetter(U, "enabledAnchors", Oi, Fl);
6966
- m.addGetterSetter(U, "flipEnabled", !0, Ae());
6966
+ m.addGetterSetter(U, "flipEnabled", !0, Ie());
6967
6967
  m.addGetterSetter(U, "resizeEnabled", !0);
6968
6968
  m.addGetterSetter(U, "anchorSize", 10, R());
6969
6969
  m.addGetterSetter(U, "rotateEnabled", !0);
@@ -6998,7 +6998,7 @@ m.backCompat(U, {
6998
6998
  rotateHandlerOffset: "rotateAnchorOffset",
6999
6999
  enabledHandlers: "enabledAnchors"
7000
7000
  });
7001
- class He extends A {
7001
+ class He extends I {
7002
7002
  _sceneFunc(e) {
7003
7003
  e.beginPath(), e.arc(0, 0, this.radius(), 0, D.getAngle(this.angle()), this.clockwise()), e.lineTo(0, 0), e.closePath(), e.fillStrokeShape(this);
7004
7004
  }
@@ -7962,7 +7962,7 @@ const K = wn.Util._assign(wn, {
7962
7962
  Arrow: pt,
7963
7963
  Circle: _t,
7964
7964
  Ellipse: Je,
7965
- Image: Ie,
7965
+ Image: Ae,
7966
7966
  Label: Jr,
7967
7967
  Tag: ft,
7968
7968
  Line: Ge,
@@ -8234,7 +8234,7 @@ function _c(a) {
8234
8234
  )
8235
8235
  };
8236
8236
  }
8237
- function Ac() {
8237
+ function Ic() {
8238
8238
  try {
8239
8239
  if (typeof globalThis.localStorage > "u")
8240
8240
  return null;
@@ -8247,7 +8247,7 @@ function Ac() {
8247
8247
  return null;
8248
8248
  }
8249
8249
  }
8250
- function Ic() {
8250
+ function Ac() {
8251
8251
  try {
8252
8252
  if (typeof globalThis.localStorage > "u")
8253
8253
  return null;
@@ -8356,8 +8356,8 @@ class Bc {
8356
8356
  p(this, "persistTimeoutId", null);
8357
8357
  p(this, "highFrequencyEventTimestamps", /* @__PURE__ */ new Map());
8358
8358
  this.config = _c(e);
8359
- const t = Ac();
8360
- this.latestFailureWindow = Ic(), this.state = {
8359
+ const t = Ic();
8360
+ this.latestFailureWindow = Ac(), this.state = {
8361
8361
  version: ri,
8362
8362
  sessions: Ot((t == null ? void 0 : t.sessions) ?? [], this.config, {
8363
8363
  enforceStorageQuota: this.config.persist
@@ -8998,10 +8998,10 @@ function jc(a) {
8998
8998
  return "decoding" in r && (r.decoding = "async"), r.src = i, zn.set(a, r), r;
8999
8999
  }
9000
9000
  const ue = 3, Vn = 10, Kc = 4, Zc = 6, Un = 8, Wn = 14, Fr = 10, Jc = 12, Qc = 4, Ta = 1, Gi = 28, wa = 8, Gr = 19, Hr = 15;
9001
- function ni(a, e, t, i, r = I.white, n = I.black, s = 1) {
9001
+ function ni(a, e, t, i, r = A.white, n = A.black, s = 1) {
9002
9002
  return new K.Rect({ x: a, y: e, width: t, height: i, fill: r, stroke: n, strokeWidth: s });
9003
9003
  }
9004
- function Hi(a, e, t, i = 12, r = "Arial", n = I.black, s = "left", o = "top") {
9004
+ function Hi(a, e, t, i = 12, r = "Arial", n = A.black, s = "left", o = "top") {
9005
9005
  return new K.Text({ text: a, x: e, y: t, fontSize: i, fontFamily: r, fill: n, align: s, verticalAlign: o });
9006
9006
  }
9007
9007
  function xt(a = 0, e = 0) {
@@ -9022,26 +9022,26 @@ function eh(a, e, t, i) {
9022
9022
  return !r || !n ? !1 : (r.x(0), r.y(0), r.width(ue), r.height(t), n.x(e - ue), n.y(0), n.width(ue), n.height(t), !0);
9023
9023
  }
9024
9024
  function ka(a, e, t) {
9025
- const i = e ? a.clipSelectedBorder : I.transparent, r = e ? Ta : 0;
9025
+ const i = e ? a.clipSelectedBorder : A.transparent, r = e ? Ta : 0;
9026
9026
  return t === "audio" ? {
9027
- background: I.audioClipBackground,
9027
+ background: A.audioClipBackground,
9028
9028
  label: a.audioClipText || a.clipName,
9029
9029
  accent: a.audioClipAccent || a.clipHandle,
9030
9030
  coverBackground: a.clipCoverBackground || ee.clipCoverBackground,
9031
9031
  border: i,
9032
9032
  borderWidth: r
9033
9033
  } : t === "text" ? {
9034
- background: I.textClipBackground,
9034
+ background: A.textClipBackground,
9035
9035
  label: a.clipName,
9036
9036
  accent: a.clipHandle,
9037
- coverBackground: a.clipCoverBackground || I.accentCoverFallback,
9037
+ coverBackground: a.clipCoverBackground || A.accentCoverFallback,
9038
9038
  border: i,
9039
9039
  borderWidth: r
9040
9040
  } : {
9041
- background: I.videoClipBackground,
9041
+ background: A.videoClipBackground,
9042
9042
  label: a.clipName,
9043
9043
  accent: a.clipHandle,
9044
- coverBackground: a.clipCoverBackground || I.accentCoverFallback,
9044
+ coverBackground: a.clipCoverBackground || A.accentCoverFallback,
9045
9045
  border: i,
9046
9046
  borderWidth: r
9047
9047
  };
@@ -9235,7 +9235,7 @@ function hh(a, e, t, i) {
9235
9235
  y: e,
9236
9236
  width: t,
9237
9237
  height: i,
9238
- stroke: I.clipSelectedBorder,
9238
+ stroke: A.clipSelectedBorder,
9239
9239
  strokeWidth: Ta,
9240
9240
  fillEnabled: !1
9241
9241
  });
@@ -10859,10 +10859,10 @@ let $r = ce;
10859
10859
  * Copyright 2019 Google LLC
10860
10860
  * SPDX-License-Identifier: BSD-3-Clause
10861
10861
  */
10862
- const Mi = globalThis, en = Mi.ShadowRoot && (Mi.ShadyCSS === void 0 || Mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Aa = Symbol(), Xn = /* @__PURE__ */ new WeakMap();
10862
+ const Mi = globalThis, en = Mi.ShadowRoot && (Mi.ShadyCSS === void 0 || Mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ia = Symbol(), Xn = /* @__PURE__ */ new WeakMap();
10863
10863
  let bh = class {
10864
10864
  constructor(e, t, i) {
10865
- if (this._$cssResult$ = !0, i !== Aa) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10865
+ if (this._$cssResult$ = !0, i !== Ia) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10866
10866
  this.cssText = e, this.t = t;
10867
10867
  }
10868
10868
  get styleSheet() {
@@ -10878,7 +10878,7 @@ let bh = class {
10878
10878
  return this.cssText;
10879
10879
  }
10880
10880
  };
10881
- const Th = (a) => new bh(typeof a == "string" ? a : a + "", void 0, Aa), wh = (a, e) => {
10881
+ const Th = (a) => new bh(typeof a == "string" ? a : a + "", void 0, Ia), wh = (a, e) => {
10882
10882
  if (en) a.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
10883
10883
  else for (const t of e) {
10884
10884
  const i = document.createElement("style"), r = Mi.litNonce;
@@ -10894,7 +10894,7 @@ const Th = (a) => new bh(typeof a == "string" ? a : a + "", void 0, Aa), wh = (a
10894
10894
  * Copyright 2017 Google LLC
10895
10895
  * SPDX-License-Identifier: BSD-3-Clause
10896
10896
  */
10897
- const { is: kh, defineProperty: xh, getOwnPropertyDescriptor: Ph, getOwnPropertyNames: _h, getOwnPropertySymbols: Ah, getPrototypeOf: Ih } = Object, Ke = globalThis, jn = Ke.trustedTypes, Eh = jn ? jn.emptyScript : "", cr = Ke.reactiveElementPolyfillSupport, Qt = (a, e) => a, zr = { toAttribute(a, e) {
10897
+ const { is: kh, defineProperty: xh, getOwnPropertyDescriptor: Ph, getOwnPropertyNames: _h, getOwnPropertySymbols: Ih, getPrototypeOf: Ah } = Object, Ke = globalThis, jn = Ke.trustedTypes, Eh = jn ? jn.emptyScript : "", cr = Ke.reactiveElementPolyfillSupport, Qt = (a, e) => a, zr = { toAttribute(a, e) {
10898
10898
  switch (e) {
10899
10899
  case Boolean:
10900
10900
  a = a ? Eh : null;
@@ -10922,7 +10922,7 @@ const { is: kh, defineProperty: xh, getOwnPropertyDescriptor: Ph, getOwnProperty
10922
10922
  }
10923
10923
  }
10924
10924
  return t;
10925
- } }, Ia = (a, e) => !kh(a, e), Kn = { attribute: !0, type: String, converter: zr, reflect: !1, useDefault: !1, hasChanged: Ia };
10925
+ } }, Aa = (a, e) => !kh(a, e), Kn = { attribute: !0, type: String, converter: zr, reflect: !1, useDefault: !1, hasChanged: Aa };
10926
10926
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ke.litPropertyMetadata ?? (Ke.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
10927
10927
  let Ct = class extends HTMLElement {
10928
10928
  static addInitializer(e) {
@@ -10953,13 +10953,13 @@ let Ct = class extends HTMLElement {
10953
10953
  }
10954
10954
  static _$Ei() {
10955
10955
  if (this.hasOwnProperty(Qt("elementProperties"))) return;
10956
- const e = Ih(this);
10956
+ const e = Ah(this);
10957
10957
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
10958
10958
  }
10959
10959
  static finalize() {
10960
10960
  if (this.hasOwnProperty(Qt("finalized"))) return;
10961
10961
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Qt("properties"))) {
10962
- const t = this.properties, i = [..._h(t), ...Ah(t)];
10962
+ const t = this.properties, i = [..._h(t), ...Ih(t)];
10963
10963
  for (const r of i) this.createProperty(r, t[r]);
10964
10964
  }
10965
10965
  const e = this[Symbol.metadata];
@@ -11051,7 +11051,7 @@ let Ct = class extends HTMLElement {
11051
11051
  var s;
11052
11052
  if (e !== void 0) {
11053
11053
  const o = this.constructor;
11054
- if (r === !1 && (n = this[e]), i ?? (i = o.getPropertyOptions(e)), !((i.hasChanged ?? Ia)(n, t) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(e)) && !this.hasAttribute(o._$Eu(e, i)))) return;
11054
+ if (r === !1 && (n = this[e]), i ?? (i = o.getPropertyOptions(e)), !((i.hasChanged ?? Aa)(n, t) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(e)) && !this.hasAttribute(o._$Eu(e, i)))) return;
11055
11055
  this.C(e, t, i);
11056
11056
  }
11057
11057
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -11899,7 +11899,7 @@ class Kh extends La {
11899
11899
  border-radius: 50%;
11900
11900
  appearance: none;
11901
11901
  -webkit-appearance: none;
11902
- background: radial-gradient(circle at 32% 30%, ${I.sliderThumbGlowStart} 0%, ${I.sliderThumbGlowEnd} 74%);
11902
+ background: radial-gradient(circle at 32% 30%, ${A.sliderThumbGlowStart} 0%, ${A.sliderThumbGlowEnd} 74%);
11903
11903
  box-shadow:
11904
11904
  var(--clip-slider-thumb-shadow),
11905
11905
  ${ke.sliderThumbInnerShadow};
@@ -11922,7 +11922,7 @@ class Kh extends La {
11922
11922
  height: 9px;
11923
11923
  border: 1px solid var(--clip-slider-thumb-border);
11924
11924
  border-radius: 50%;
11925
- background: radial-gradient(circle at 32% 30%, ${I.sliderThumbGlowStart} 0%, ${I.sliderThumbGlowEnd} 74%);
11925
+ background: radial-gradient(circle at 32% 30%, ${A.sliderThumbGlowStart} 0%, ${A.sliderThumbGlowEnd} 74%);
11926
11926
  box-shadow:
11927
11927
  var(--clip-slider-thumb-shadow),
11928
11928
  ${ke.sliderThumbInnerShadow};
@@ -11953,7 +11953,7 @@ class Kh extends La {
11953
11953
  padding: 4px 10px;
11954
11954
  border-radius: 6px;
11955
11955
  background: #4e5569;
11956
- color: ${I.white};
11956
+ color: ${A.white};
11957
11957
  font-size: 11px;
11958
11958
  line-height: 1.3;
11959
11959
  font-weight: 500;
@@ -12183,7 +12183,7 @@ class Kh extends La {
12183
12183
  "font-size:13px",
12184
12184
  "font-family:inherit",
12185
12185
  "transition:background-color 0.15s, color 0.15s",
12186
- `background-color:${r ? ke.activeTabBackground : I.transparent}`,
12186
+ `background-color:${r ? ke.activeTabBackground : A.transparent}`,
12187
12187
  `color:${r ? ke.activeTabText : ke.inactiveTabText}`,
12188
12188
  "border-radius:4px"
12189
12189
  ].join(";")}
@@ -12465,7 +12465,7 @@ class Kh extends La {
12465
12465
  ${e.voiceErrorMessage ? j`
12466
12466
  <div
12467
12467
  class=${G.errorText}
12468
- style=${`padding-top:12px;font-size:12px;color:${I.accentDanger};`}
12468
+ style=${`padding-top:12px;font-size:12px;color:${A.accentDanger};`}
12469
12469
  >
12470
12470
  ${e.voiceErrorMessage}
12471
12471
  </div>
@@ -12536,7 +12536,7 @@ class Kh extends La {
12536
12536
  "align-items:center",
12537
12537
  "justify-content:center",
12538
12538
  `background:url(${s}) center / cover no-repeat`,
12539
- `color:${I.white}`,
12539
+ `color:${A.white}`,
12540
12540
  "font-size:18px",
12541
12541
  "font-weight:600"
12542
12542
  ].join(";")}
@@ -12551,7 +12551,7 @@ class Kh extends La {
12551
12551
  width="18"
12552
12552
  height="18"
12553
12553
  viewBox="0 0 24 24"
12554
- fill=${I.white}
12554
+ fill=${A.white}
12555
12555
  >
12556
12556
  <path
12557
12557
  d="M3 9v6h4l5 5V4L7 9H3zm13.5 3a4.5 4.5 0 0 0-2.5-4.03v8.05a4.5 4.5 0 0 0 2.5-4.02zM14 3.23v2.06a7 7 0 0 1 0 13.42v-2.06a5 5 0 0 0 0-9.3z"
@@ -12572,7 +12572,7 @@ class Kh extends La {
12572
12572
  "align-items:center",
12573
12573
  "justify-content:center",
12574
12574
  "background:linear-gradient(135deg, #6c7080 0%, #424656 100%)",
12575
- `color:${I.white}`,
12575
+ `color:${A.white}`,
12576
12576
  "font-size:18px",
12577
12577
  "font-weight:600"
12578
12578
  ].join(";")}
@@ -12589,7 +12589,7 @@ class Kh extends La {
12589
12589
  "gap:6px",
12590
12590
  "padding-right:24px",
12591
12591
  "font-size:14px",
12592
- `color:${I.white}`,
12592
+ `color:${A.white}`,
12593
12593
  "white-space:nowrap",
12594
12594
  "overflow:hidden",
12595
12595
  "text-overflow:ellipsis"
@@ -12756,10 +12756,10 @@ class Kh extends La {
12756
12756
  "flex-direction:column",
12757
12757
  "overflow:hidden",
12758
12758
  "height:100%",
12759
- `--clip-slider-fill-start:${I.sliderFillStart}`,
12760
- `--clip-slider-fill-end:${I.sliderFillEnd}`,
12761
- `--clip-slider-road:${I.sliderRoad}`,
12762
- `--clip-slider-thumb-border:${I.sliderThumbBorder}`,
12759
+ `--clip-slider-fill-start:${A.sliderFillStart}`,
12760
+ `--clip-slider-fill-end:${A.sliderFillEnd}`,
12761
+ `--clip-slider-road:${A.sliderRoad}`,
12762
+ `--clip-slider-thumb-border:${A.sliderThumbBorder}`,
12763
12763
  `--clip-slider-thumb-shadow:${ke.sliderThumbShadow}`
12764
12764
  ].join(";");
12765
12765
  }
@@ -14184,9 +14184,9 @@ class vd {
14184
14184
  this.finishInteraction(!1);
14185
14185
  });
14186
14186
  p(this, "handleMovePointerDown", (e) => {
14187
- var i, r;
14187
+ var i, r, n, s;
14188
14188
  const t = e;
14189
- (t.button ?? 0) !== 0 || !this.state || ((i = t.preventDefault) == null || i.call(t), (r = t.stopPropagation) == null || r.call(t), this.interaction = {
14189
+ (t.button ?? 0) !== 0 || !this.state || ((i = t.preventDefault) == null || i.call(t), (r = t.stopPropagation) == null || r.call(t), this.state.clipType === "text" && ((s = (n = this.callbacks).onTextTransformInteractionStart) == null || s.call(n)), this.interaction = {
14190
14190
  clipId: this.state.clipId,
14191
14191
  mode: "move",
14192
14192
  pointerStart: this.toLocalPoint(t),
@@ -14243,10 +14243,10 @@ class vd {
14243
14243
  }
14244
14244
  getRotateHandlePointerDown() {
14245
14245
  return (e) => {
14246
- var o, l;
14246
+ var o, l, c, h;
14247
14247
  const t = e;
14248
14248
  if ((t.button ?? 0) !== 0 || !this.state) return;
14249
- (o = t.preventDefault) == null || o.call(t), (l = t.stopPropagation) == null || l.call(t);
14249
+ (o = t.preventDefault) == null || o.call(t), (l = t.stopPropagation) == null || l.call(t), this.state.clipType === "text" && ((h = (c = this.callbacks).onTextTransformInteractionStart) == null || h.call(c));
14250
14250
  const i = this.state.displayRect.left + this.state.displayRect.width / 2, r = this.state.displayRect.top + this.state.displayRect.height / 2, n = this.toLocalPoint(t), s = Math.atan2(n.y - r, n.x - i) * (180 / Math.PI);
14251
14251
  this.interaction = {
14252
14252
  clipId: this.state.clipId,
@@ -14280,12 +14280,14 @@ class vd {
14280
14280
  }
14281
14281
  getHandlePointerDown(e) {
14282
14282
  return (t) => {
14283
- var c, h;
14283
+ var c, h, d, u;
14284
14284
  const i = t;
14285
14285
  if ((i.button ?? 0) !== 0 || !this.state)
14286
14286
  return;
14287
14287
  (c = i.preventDefault) == null || c.call(i), (h = i.stopPropagation) == null || h.call(i);
14288
- const r = e === "top-right" || e === "bottom-left" ? "nesw-resize" : "nwse-resize", n = this.state.clipType === "text", s = n ? this.state.displayRect.left + this.state.displayRect.width / 2 : void 0, o = n ? this.state.displayRect.top + this.state.displayRect.height / 2 : void 0, l = n ? Math.sqrt(Math.pow(this.state.displayRect.width / 2, 2) + Math.pow(this.state.displayRect.height / 2, 2)) : void 0;
14288
+ const r = this.state.clipType === "text";
14289
+ r && ((u = (d = this.callbacks).onTextTransformInteractionStart) == null || u.call(d));
14290
+ const n = e === "top-right" || e === "bottom-left" ? "nesw-resize" : "nwse-resize", s = r ? this.state.displayRect.left + this.state.displayRect.width / 2 : void 0, o = r ? this.state.displayRect.top + this.state.displayRect.height / 2 : void 0, l = r ? Math.sqrt(Math.pow(this.state.displayRect.width / 2, 2) + Math.pow(this.state.displayRect.height / 2, 2)) : void 0;
14289
14291
  this.interaction = {
14290
14292
  clipId: this.state.clipId,
14291
14293
  mode: "scale",
@@ -14295,17 +14297,17 @@ class vd {
14295
14297
  frameSize: this.state.frameSize,
14296
14298
  nextTransform: this.state.transform,
14297
14299
  changed: !1,
14298
- cursor: r,
14300
+ cursor: n,
14299
14301
  clipType: this.state.clipType ?? "video",
14300
- startFontSize: n ? this.state.currentFontSize : void 0,
14301
- nextFontSize: n ? this.state.currentFontSize : void 0,
14302
+ startFontSize: r ? this.state.currentFontSize : void 0,
14303
+ nextFontSize: r ? this.state.currentFontSize : void 0,
14302
14304
  centerX: s,
14303
14305
  centerY: o,
14304
14306
  startCenterDistance: l,
14305
14307
  startRotation: void 0,
14306
14308
  nextRotation: void 0,
14307
14309
  startAngle: void 0
14308
- }, this.setGlobalCursor(r), this.bindDocumentListeners();
14310
+ }, this.setGlobalCursor(n), this.bindDocumentListeners();
14309
14311
  };
14310
14312
  }
14311
14313
  bindDocumentListeners() {
@@ -14485,7 +14487,7 @@ function ze(a) {
14485
14487
  } catch {
14486
14488
  }
14487
14489
  }
14488
- function Ad(a) {
14490
+ function Id(a) {
14489
14491
  var e;
14490
14492
  try {
14491
14493
  const t = a.play();
@@ -14500,7 +14502,7 @@ function fs(a, e) {
14500
14502
  } catch {
14501
14503
  }
14502
14504
  }
14503
- function Ai(a, e) {
14505
+ function Ii(a, e) {
14504
14506
  var i;
14505
14507
  const t = (i = a == null ? void 0 : a.clip.style) == null ? void 0 : i[e];
14506
14508
  return typeof t == "number" && t > 0 ? t : null;
@@ -14511,7 +14513,7 @@ function gs(a) {
14511
14513
  const e = Number.parseFloat(a);
14512
14514
  return Number.isFinite(e) ? e : 0;
14513
14515
  }
14514
- function Id() {
14516
+ function Ad() {
14515
14517
  return typeof performance < "u" && typeof performance.now == "function" ? Math.round(performance.now()) : Date.now();
14516
14518
  }
14517
14519
  function Ed(a) {
@@ -14526,7 +14528,7 @@ function Ed(a) {
14526
14528
  }
14527
14529
  function oe(a) {
14528
14530
  return {
14529
- tsMs: Id(),
14531
+ tsMs: Ad(),
14530
14532
  currentTime: Number.isFinite(a.currentTime) ? Number(a.currentTime.toFixed(3)) : null,
14531
14533
  duration: Number.isFinite(a.duration) ? Number(a.duration.toFixed(3)) : null,
14532
14534
  currentSrc: De(a) || null,
@@ -14665,6 +14667,7 @@ class Ld {
14665
14667
  p(this, "isSyncProjecting", !1);
14666
14668
  p(this, "deferredPreloadSlotKeys", /* @__PURE__ */ new Set());
14667
14669
  p(this, "deferredPreloadFlushScheduled", !1);
14670
+ p(this, "lastSyncedPlayState", "paused");
14668
14671
  this.callbacks = e, this.dependencies = t, this.pendingOverlayRenderer = new fd(() => {
14669
14672
  var i, r;
14670
14673
  (r = (i = this.callbacks).onPendingPreviewRetry) == null || r.call(i);
@@ -14703,9 +14706,16 @@ class Ld {
14703
14706
  onRotationCommit: (i, r) => {
14704
14707
  var n, s;
14705
14708
  (s = (n = this.callbacks).onTextRotationCommit) == null || s.call(n, i, r);
14709
+ },
14710
+ onTextTransformInteractionStart: () => {
14711
+ this.requestPauseIfPlaying();
14706
14712
  }
14707
14713
  });
14708
14714
  }
14715
+ requestPauseIfPlaying() {
14716
+ var e, t;
14717
+ this.lastSyncedPlayState === "playing" && ((t = (e = this.callbacks).onPauseIfPlaying) == null || t.call(e));
14718
+ }
14709
14719
  emitDiagnostic(e, t, i, r = {}) {
14710
14720
  var o, l;
14711
14721
  const n = this.dependencies.diagnostics;
@@ -14755,7 +14765,7 @@ class Ld {
14755
14765
  const t = document.createElement("div");
14756
14766
  t.className = this.dependencies.rootClassName ?? "timeline-preview-root", t.style.position = "relative", t.style.width = "100%", t.style.height = "100%", t.style.overflow = "hidden";
14757
14767
  const i = document.createElement("div");
14758
- i.className = this.dependencies.frameClassName ?? "timeline-preview-frame", i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.overflow = "hidden", i.style.background = I.black, t.appendChild(i);
14768
+ i.className = this.dependencies.frameClassName ?? "timeline-preview-frame", i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.overflow = "hidden", i.style.background = A.black, t.appendChild(i);
14759
14769
  const r = document.createElement("div");
14760
14770
  r.className = "timeline-preview-text-layer", r.style.position = "absolute", r.style.inset = "0", r.style.pointerEvents = "none", r.style.zIndex = "2000", i.appendChild(r);
14761
14771
  const n = document.createElement("div");
@@ -14793,7 +14803,7 @@ class Ld {
14793
14803
  var s;
14794
14804
  if (!this.rootElement || !this.frameElement)
14795
14805
  return;
14796
- this.primarySelectedClipId = e.primarySelectedClipId ?? null, this.activeSyncRequestId = e.syncRequestId, this.emitDiagnostic("info", "playback", "preview.sync.requested", {
14806
+ this.lastSyncedPlayState = e.playState, this.primarySelectedClipId = e.primarySelectedClipId ?? null, this.activeSyncRequestId = e.syncRequestId, this.emitDiagnostic("info", "playback", "preview.sync.requested", {
14797
14807
  message: "Preview sync requested",
14798
14808
  syncRequestId: e.syncRequestId ?? null,
14799
14809
  runtimeState: {
@@ -14841,14 +14851,14 @@ class Ld {
14841
14851
  }
14842
14852
  createMediaElement(e, t) {
14843
14853
  const i = this.dependencies.createMediaElement, r = i ? i(e, t) : document.createElement(e === "video" ? "video" : "audio");
14844
- return r.preload = t === "preload" ? "auto" : "metadata", r.crossOrigin = "anonymous", r.loop = !1, r.controls = !1, Wi(r) ? (wr(r), r.playsInline = !0, r.style.position = "absolute", r.style.inset = "0", r.style.width = "100%", r.style.height = "100%", r.style.objectFit = "fill", r.style.background = I.black, r.style.pointerEvents = "none") : r.style.display = "none", r;
14854
+ return r.preload = t === "preload" ? "auto" : "metadata", r.crossOrigin = "anonymous", r.loop = !1, r.controls = !1, Wi(r) ? (wr(r), r.playsInline = !0, r.style.position = "absolute", r.style.inset = "0", r.style.width = "100%", r.style.height = "100%", r.style.objectFit = "fill", r.style.background = A.black, r.style.pointerEvents = "none") : r.style.display = "none", r;
14845
14855
  }
14846
14856
  createSlot(e, t, i) {
14847
14857
  var S, C;
14848
14858
  const r = this.createMediaElement(t, i), n = t === "video" ? document.createElement("div") : null;
14849
14859
  if (n) {
14850
14860
  const w = this.dependencies.slotClassNamePrefix ?? "timeline-preview-slot";
14851
- n.className = `${w} timeline-preview-slot--${e} timeline-preview-slot--${i}`, n.style.position = "absolute", n.style.overflow = "hidden", n.style.background = I.black, n.style.pointerEvents = "none", n.style.display = "none", n.appendChild(r), (S = this.frameElement) == null || S.appendChild(n);
14861
+ n.className = `${w} timeline-preview-slot--${e} timeline-preview-slot--${i}`, n.style.position = "absolute", n.style.overflow = "hidden", n.style.background = A.black, n.style.pointerEvents = "none", n.style.display = "none", n.appendChild(r), (S = this.frameElement) == null || S.appendChild(n);
14852
14862
  }
14853
14863
  const s = {
14854
14864
  role: i,
@@ -15521,7 +15531,7 @@ class Ld {
15521
15531
  speed: i,
15522
15532
  sourceState: l
15523
15533
  }
15524
- })), Ad(e.element);
15534
+ })), Id(e.element);
15525
15535
  } else
15526
15536
  this.emitDiagnostic("debug", "playback", "media.pause.requested", this.buildSlotTraceData(e, {
15527
15537
  message: "Media pause requested",
@@ -15585,7 +15595,7 @@ class Ld {
15585
15595
  maybeResolveAutoAspectRatio(e) {
15586
15596
  if (!Xt(this.requestedAspectRatio.mode) || this.resolvedAutoAspectRatio || !e || !e.hasVisual)
15587
15597
  return;
15588
- const t = Ai(e, "sys_width"), i = Ai(e, "sys_height");
15598
+ const t = Ii(e, "sys_width"), i = Ii(e, "sys_height");
15589
15599
  if (t && i) {
15590
15600
  this.handleResolvedAutoAspectRatio(t, i);
15591
15601
  return;
@@ -15812,7 +15822,7 @@ class Ld {
15812
15822
  const i = t;
15813
15823
  if ((i.button ?? 0) !== 0)
15814
15824
  return;
15815
- if ((s = i.preventDefault) == null || s.call(i), (o = i.stopPropagation) == null || o.call(i), this.primarySelectedClipId !== e) {
15825
+ if ((s = i.preventDefault) == null || s.call(i), (o = i.stopPropagation) == null || o.call(i), this.requestPauseIfPlaying(), this.primarySelectedClipId !== e) {
15816
15826
  (c = (l = this.callbacks).onPreviewClipSelect) == null || c.call(l, e);
15817
15827
  return;
15818
15828
  }
@@ -16008,7 +16018,7 @@ class Ld {
16008
16018
  width: e.element.videoWidth,
16009
16019
  height: e.element.videoHeight
16010
16020
  };
16011
- const r = Ai(t, "sys_width"), n = Ai(t, "sys_height");
16021
+ const r = Ii(t, "sys_width"), n = Ii(t, "sys_height");
16012
16022
  return r && n ? {
16013
16023
  width: r,
16014
16024
  height: n
@@ -16843,7 +16853,7 @@ function Ts(a, e = ti.allowedMimeTypes) {
16843
16853
  const i = bs(a.mimeType);
16844
16854
  return !e.some((r) => bs(r) === i);
16845
16855
  }
16846
- function Au(a) {
16856
+ function Iu(a) {
16847
16857
  return a && a.split(";", 1)[0].trim().toLowerCase() || null;
16848
16858
  }
16849
16859
  function ws(a) {
@@ -16852,7 +16862,7 @@ function ws(a) {
16852
16862
  const e = Number(a);
16853
16863
  return Number.isSafeInteger(e) && e >= 0 ? e : null;
16854
16864
  }
16855
- function Iu(a) {
16865
+ function Au(a) {
16856
16866
  if (!a)
16857
16867
  return null;
16858
16868
  const e = a.match(/^bytes\s+(?:\d+-\d+|\*)\/(\d+|\*)$/i);
@@ -16866,7 +16876,7 @@ function ks(a, e, t) {
16866
16876
  url: e,
16867
16877
  ok: a.ok,
16868
16878
  status: a.status,
16869
- mimeType: Au(a.headers.get("content-type")),
16879
+ mimeType: Iu(a.headers.get("content-type")),
16870
16880
  sizeBytes: t,
16871
16881
  etag: a.headers.get("etag"),
16872
16882
  lastModified: a.headers.get("last-modified"),
@@ -16887,7 +16897,7 @@ class Eu {
16887
16897
  headers: {
16888
16898
  Range: "bytes=0-0"
16889
16899
  }
16890
- }), i = Iu(t.headers.get("content-range")) ?? ws(t.headers.get("content-length"));
16900
+ }), i = Au(t.headers.get("content-range")) ?? ws(t.headers.get("content-length"));
16891
16901
  try {
16892
16902
  await ((r = t.body) == null ? void 0 : r.cancel());
16893
16903
  } catch {
@@ -17367,7 +17377,7 @@ class Bu {
17367
17377
  function Ou(a) {
17368
17378
  return a === "text" ? "文本" : a === "video" ? "视频" : "音频";
17369
17379
  }
17370
- function Ii(a) {
17380
+ function Ai(a) {
17371
17381
  return a === "text" ? 0 : a === "video" ? 1 : 2;
17372
17382
  }
17373
17383
  class Fu {
@@ -17438,7 +17448,7 @@ class Fu {
17438
17448
  this.tracks.splice(s, 0, e), this.recalculateOrder();
17439
17449
  return;
17440
17450
  }
17441
- const o = this.tracks.findIndex((l) => Ii(l.type) > Ii(e.type));
17451
+ const o = this.tracks.findIndex((l) => Ai(l.type) > Ai(e.type));
17442
17452
  if (o !== -1) {
17443
17453
  this.tracks.splice(o, 0, e), this.recalculateOrder();
17444
17454
  return;
@@ -17450,7 +17460,7 @@ class Fu {
17450
17460
  this.tracks.splice(s + 1, 0, e), this.recalculateOrder();
17451
17461
  return;
17452
17462
  }
17453
- const o = this.tracks.reduce((l, c, h) => Ii(c.type) <= Ii(e.type) ? h : l, -1);
17463
+ const o = this.tracks.reduce((l, c, h) => Ai(c.type) <= Ai(e.type) ? h : l, -1);
17454
17464
  if (o !== -1) {
17455
17465
  this.tracks.splice(o + 1, 0, e), this.recalculateOrder();
17456
17466
  return;
@@ -18055,13 +18065,13 @@ class _s {
18055
18065
  container: this.container,
18056
18066
  width: this.container.clientWidth,
18057
18067
  height: this.container.clientHeight
18058
- }), this.layer = new K.Layer(), this.layer.name("scrollbar-layer"), this.stage.add(this.layer), this.hitAreaRect = de.createRect(0, 0, 0, 0, At.hitArea, "transparent", 0), this.hitAreaRect.name("scrollbar-hit-area"), this.thumbRect = de.createRect(
18068
+ }), this.layer = new K.Layer(), this.layer.name("scrollbar-layer"), this.stage.add(this.layer), this.hitAreaRect = de.createRect(0, 0, 0, 0, It.hitArea, "transparent", 0), this.hitAreaRect.name("scrollbar-hit-area"), this.thumbRect = de.createRect(
18059
18069
  0,
18060
18070
  0,
18061
18071
  0,
18062
18072
  0,
18063
- this.theme.scrollbarThumb || At.thumb,
18064
- this.theme.scrollbarThumbBorder || this.theme.scrollbarBorder || At.border,
18073
+ this.theme.scrollbarThumb || It.thumb,
18074
+ this.theme.scrollbarThumbBorder || this.theme.scrollbarBorder || It.border,
18065
18075
  1
18066
18076
  ), this.thumbRect.name("scrollbar-thumb"), this.thumbRect.cornerRadius(999), this.layer.add(this.hitAreaRect), this.layer.add(this.thumbRect), this.stage.on("mousedown", this.handleStageMouseDown), this.stage.on("mouseup", this.handleStageMouseUp), this.stage.on("mouseenter", this.handleStageMouseEnter), this.stage.on("mousemove", this.handleStageMouseMove), this.stage.on("mouseleave", this.handleStageMouseLeave), this.render();
18067
18077
  }
@@ -18108,7 +18118,7 @@ class _s {
18108
18118
  }
18109
18119
  render() {
18110
18120
  const e = Math.max(0, this.container.clientWidth), t = Math.max(0, this.container.clientHeight), i = this.shouldHideScrollbar();
18111
- this.stage.width(e), this.stage.height(t), this.container.style.display = i ? "none" : "block", this.hitAreaRect.x(0), this.hitAreaRect.y(0), this.hitAreaRect.width(e), this.hitAreaRect.height(t), this.thumbRect.fill(this.theme.scrollbarThumb || At.thumb), this.thumbRect.stroke(this.theme.scrollbarThumbBorder || this.theme.scrollbarBorder || At.border);
18121
+ this.stage.width(e), this.stage.height(t), this.container.style.display = i ? "none" : "block", this.hitAreaRect.x(0), this.hitAreaRect.y(0), this.hitAreaRect.width(e), this.hitAreaRect.height(t), this.thumbRect.fill(this.theme.scrollbarThumb || It.thumb), this.thumbRect.stroke(this.theme.scrollbarThumbBorder || this.theme.scrollbarBorder || It.border);
18112
18122
  const r = this.getAvailableTrackSize();
18113
18123
  if (r <= 0 || i) {
18114
18124
  this.thumbRect.visible(!1), this.container.style.cursor = "default", this.stage.batchDraw();
@@ -18150,7 +18160,7 @@ class _s {
18150
18160
  return this.scrollOffset / i * r;
18151
18161
  }
18152
18162
  }
18153
- class As {
18163
+ class Is {
18154
18164
  constructor() {
18155
18165
  p(this, "entries", /* @__PURE__ */ new Map());
18156
18166
  }
@@ -18259,7 +18269,7 @@ const zu = "@linker-design-plus/timeline-track", Vu = "2.0.23", Ht = {
18259
18269
  name: zu,
18260
18270
  version: Vu
18261
18271
  }, Uu = 1, Wu = 2, Yu = 120, Xu = 250;
18262
- function Is(a) {
18272
+ function As(a) {
18263
18273
  return a == null ? a : JSON.parse(JSON.stringify(a));
18264
18274
  }
18265
18275
  function qu(a) {
@@ -18334,7 +18344,7 @@ class rp {
18334
18344
  });
18335
18345
  p(this, "keyboardShortcutsController", null);
18336
18346
  p(this, "clipClipboard", null);
18337
- p(this, "mountManager", new As());
18347
+ p(this, "mountManager", new Is());
18338
18348
  p(this, "pendingDraftData", null);
18339
18349
  p(this, "selectionStore", new Ha());
18340
18350
  p(this, "multiDragSession", null);
@@ -18653,6 +18663,9 @@ class rp {
18653
18663
  onPendingPreviewRetry: () => {
18654
18664
  this.isActivePreviewCallbackToken(e) && this.retryPendingPreview();
18655
18665
  },
18666
+ onPauseIfPlaying: () => {
18667
+ this.isActivePreviewCallbackToken(e) && this.getPlayStateState() === "playing" && this.pause();
18668
+ },
18656
18669
  onRuntimeError: () => {
18657
18670
  this.isActivePreviewCallbackToken(e) && this.handlePreviewBackendRuntimeError();
18658
18671
  }
@@ -20966,7 +20979,7 @@ class rp {
20966
20979
  return {
20967
20980
  ...e,
20968
20981
  thumbnails: e.thumbnails ? [...e.thumbnails] : void 0,
20969
- style: Is(e.style),
20982
+ style: As(e.style),
20970
20983
  visualTransform: e.visualTransform ? { ...e.visualTransform } : void 0,
20971
20984
  textStyle: e.textStyle ? { ...e.textStyle } : void 0
20972
20985
  };
@@ -20985,7 +20998,7 @@ class rp {
20985
20998
  endTimeAtSource: r.endTimeAtSource,
20986
20999
  sourceDuration: r.sourceDuration,
20987
21000
  thumbnails: r.thumbnails ? [...r.thumbnails] : void 0,
20988
- style: Is(r.style),
21001
+ style: As(r.style),
20989
21002
  visualTransform: r.visualTransform ? { ...r.visualTransform } : void 0,
20990
21003
  separatedAudioClipId: n,
20991
21004
  separatedFromVideoClipId: s,
@@ -21445,7 +21458,7 @@ class rp {
21445
21458
  }
21446
21459
  initKeyboardShortcuts() {
21447
21460
  var e;
21448
- this.rootContainer && (this.mountManager || (this.mountManager = new As()), (e = this.keyboardShortcutsController) == null || e.destroy(), this.keyboardShortcutsController = new eu({
21461
+ this.rootContainer && (this.mountManager || (this.mountManager = new Is()), (e = this.keyboardShortcutsController) == null || e.destroy(), this.keyboardShortcutsController = new eu({
21449
21462
  root: this.rootContainer,
21450
21463
  config: this.config.keyboardShortcuts,
21451
21464
  callbacks: {