@cliquify.me/state 4.0.23 → 4.0.25
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/handlers/add/animation.d.ts +1 -0
- package/dist/index.es.js +339 -331
- package/dist/index.umd.js +1 -1
- package/dist/utils/load-item.d.ts +4 -0
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -108,14 +108,14 @@ var Er = function() {
|
|
|
108
108
|
} catch (b) {
|
|
109
109
|
o = b instanceof pn ? b.errors : [b];
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
if (
|
|
111
|
+
var y = this._finalizers;
|
|
112
|
+
if (y) {
|
|
113
113
|
this._finalizers = null;
|
|
114
114
|
try {
|
|
115
|
-
for (var h = kn(
|
|
116
|
-
var
|
|
115
|
+
for (var h = kn(y), k = h.next(); !k.done; k = h.next()) {
|
|
116
|
+
var I = k.value;
|
|
117
117
|
try {
|
|
118
|
-
Un(
|
|
118
|
+
Un(I);
|
|
119
119
|
} catch (b) {
|
|
120
120
|
o = o ?? [], b instanceof pn ? o = _n(_n([], vn(o)), vn(b.errors)) : o.push(b);
|
|
121
121
|
}
|
|
@@ -124,7 +124,7 @@ var Er = function() {
|
|
|
124
124
|
n = { error: b };
|
|
125
125
|
} finally {
|
|
126
126
|
try {
|
|
127
|
-
|
|
127
|
+
k && !k.done && (i = h.return) && i.call(h);
|
|
128
128
|
} finally {
|
|
129
129
|
if (n) throw n.error;
|
|
130
130
|
}
|
|
@@ -492,8 +492,8 @@ function Cn(t) {
|
|
|
492
492
|
var vr = { exports: {} };
|
|
493
493
|
vr.exports;
|
|
494
494
|
(function(t, r) {
|
|
495
|
-
var e = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, c = 9007199254740991, u = "[object Arguments]", d = "[object Array]", p = "[object AsyncFunction]", m = "[object Boolean]",
|
|
496
|
-
$[tt] = $[Qt] = $[te] = $[Se] = $[we] = $[Te] = $[Ee] = $[z] = $[Ae] = !0, $[u] = $[d] = $[x] = $[m] = $[F] = $[
|
|
495
|
+
var e = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, c = 9007199254740991, u = "[object Arguments]", d = "[object Array]", p = "[object AsyncFunction]", m = "[object Boolean]", y = "[object Date]", h = "[object Error]", k = "[object Function]", I = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", f = "[object Null]", v = "[object Object]", T = "[object Promise]", w = "[object Proxy]", A = "[object RegExp]", S = "[object Set]", E = "[object String]", L = "[object Symbol]", R = "[object Undefined]", Y = "[object WeakMap]", x = "[object ArrayBuffer]", F = "[object DataView]", tt = "[object Float32Array]", Qt = "[object Float64Array]", te = "[object Int8Array]", Se = "[object Int16Array]", we = "[object Int32Array]", Te = "[object Uint8Array]", Ee = "[object Uint8ClampedArray]", z = "[object Uint16Array]", Ae = "[object Uint32Array]", Me = /[\\^$.*+?()[\]{}|]/g, st = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
496
|
+
$[tt] = $[Qt] = $[te] = $[Se] = $[we] = $[Te] = $[Ee] = $[z] = $[Ae] = !0, $[u] = $[d] = $[x] = $[m] = $[F] = $[y] = $[h] = $[k] = $[b] = $[_] = $[v] = $[A] = $[S] = $[E] = $[Y] = !1;
|
|
497
497
|
var re = typeof ft == "object" && ft && ft.Object === Object && ft, xe = typeof self == "object" && self && self.Object === Object && self, it = re || xe || Function("return this")(), ne = r && !r.nodeType && r, se = ne && !0 && t && !t.nodeType && t, zt = se && se.exports === ne, $t = zt && re.process, ie = function() {
|
|
498
498
|
try {
|
|
499
499
|
return $t && $t.binding && $t.binding("util");
|
|
@@ -501,27 +501,27 @@ vr.exports;
|
|
|
501
501
|
}
|
|
502
502
|
}(), Ft = ie && ie.isTypedArray;
|
|
503
503
|
function ae(s, a) {
|
|
504
|
-
for (var l = -1,
|
|
504
|
+
for (var l = -1, g = s == null ? 0 : s.length, O = 0, M = []; ++l < g; ) {
|
|
505
505
|
var D = s[l];
|
|
506
506
|
a(D, l, s) && (M[O++] = D);
|
|
507
507
|
}
|
|
508
508
|
return M;
|
|
509
509
|
}
|
|
510
510
|
function Nt(s, a) {
|
|
511
|
-
for (var l = -1,
|
|
511
|
+
for (var l = -1, g = a.length, O = s.length; ++l < g; )
|
|
512
512
|
s[O + l] = a[l];
|
|
513
513
|
return s;
|
|
514
514
|
}
|
|
515
515
|
function oe(s, a) {
|
|
516
|
-
for (var l = -1,
|
|
516
|
+
for (var l = -1, g = s == null ? 0 : s.length; ++l < g; )
|
|
517
517
|
if (a(s[l], l, s))
|
|
518
518
|
return !0;
|
|
519
519
|
return !1;
|
|
520
520
|
}
|
|
521
521
|
function Oe(s, a) {
|
|
522
|
-
for (var l = -1,
|
|
523
|
-
|
|
524
|
-
return
|
|
522
|
+
for (var l = -1, g = Array(s); ++l < s; )
|
|
523
|
+
g[l] = a(l);
|
|
524
|
+
return g;
|
|
525
525
|
}
|
|
526
526
|
function Ce(s) {
|
|
527
527
|
return function(a) {
|
|
@@ -536,8 +536,8 @@ vr.exports;
|
|
|
536
536
|
}
|
|
537
537
|
function ce(s) {
|
|
538
538
|
var a = -1, l = Array(s.size);
|
|
539
|
-
return s.forEach(function(
|
|
540
|
-
l[++a] = [O,
|
|
539
|
+
return s.forEach(function(g, O) {
|
|
540
|
+
l[++a] = [O, g];
|
|
541
541
|
}), l;
|
|
542
542
|
}
|
|
543
543
|
function ue(s, a) {
|
|
@@ -547,8 +547,8 @@ vr.exports;
|
|
|
547
547
|
}
|
|
548
548
|
function ut(s) {
|
|
549
549
|
var a = -1, l = Array(s.size);
|
|
550
|
-
return s.forEach(function(
|
|
551
|
-
l[++a] =
|
|
550
|
+
return s.forEach(function(g) {
|
|
551
|
+
l[++a] = g;
|
|
552
552
|
}), l;
|
|
553
553
|
}
|
|
554
554
|
var Tt = Array.prototype, Re = Function.prototype, gt = Object.prototype, Et = it["__core-js_shared__"], Ht = Re.toString, et = gt.hasOwnProperty, le = function() {
|
|
@@ -560,8 +560,8 @@ vr.exports;
|
|
|
560
560
|
function X(s) {
|
|
561
561
|
var a = -1, l = s == null ? 0 : s.length;
|
|
562
562
|
for (this.clear(); ++a < l; ) {
|
|
563
|
-
var
|
|
564
|
-
this.set(
|
|
563
|
+
var g = s[a];
|
|
564
|
+
this.set(g[0], g[1]);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function Rr() {
|
|
@@ -591,8 +591,8 @@ vr.exports;
|
|
|
591
591
|
function q(s) {
|
|
592
592
|
var a = -1, l = s == null ? 0 : s.length;
|
|
593
593
|
for (this.clear(); ++a < l; ) {
|
|
594
|
-
var
|
|
595
|
-
this.set(
|
|
594
|
+
var g = s[a];
|
|
595
|
+
this.set(g[0], g[1]);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function Fr() {
|
|
@@ -602,8 +602,8 @@ vr.exports;
|
|
|
602
602
|
var a = this.__data__, l = $e(a, s);
|
|
603
603
|
if (l < 0)
|
|
604
604
|
return !1;
|
|
605
|
-
var
|
|
606
|
-
return l ==
|
|
605
|
+
var g = a.length - 1;
|
|
606
|
+
return l == g ? a.pop() : yt.call(a, l, 1), --this.size, !0;
|
|
607
607
|
}
|
|
608
608
|
function Lr(s) {
|
|
609
609
|
var a = this.__data__, l = $e(a, s);
|
|
@@ -613,15 +613,15 @@ vr.exports;
|
|
|
613
613
|
return $e(this.__data__, s) > -1;
|
|
614
614
|
}
|
|
615
615
|
function Ur(s, a) {
|
|
616
|
-
var l = this.__data__,
|
|
617
|
-
return
|
|
616
|
+
var l = this.__data__, g = $e(l, s);
|
|
617
|
+
return g < 0 ? (++this.size, l.push([s, a])) : l[g][1] = a, this;
|
|
618
618
|
}
|
|
619
619
|
q.prototype.clear = Fr, q.prototype.delete = Nr, q.prototype.get = Lr, q.prototype.has = Hr, q.prototype.set = Ur;
|
|
620
620
|
function ot(s) {
|
|
621
621
|
var a = -1, l = s == null ? 0 : s.length;
|
|
622
622
|
for (this.clear(); ++a < l; ) {
|
|
623
|
-
var
|
|
624
|
-
this.set(
|
|
623
|
+
var g = s[a];
|
|
624
|
+
this.set(g[0], g[1]);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
function Wr() {
|
|
@@ -642,8 +642,8 @@ vr.exports;
|
|
|
642
642
|
return mt(this, s).has(s);
|
|
643
643
|
}
|
|
644
644
|
function Gr(s, a) {
|
|
645
|
-
var l = mt(this, s),
|
|
646
|
-
return l.set(s, a), this.size += l.size ==
|
|
645
|
+
var l = mt(this, s), g = l.size;
|
|
646
|
+
return l.set(s, a), this.size += l.size == g ? 0 : 1, this;
|
|
647
647
|
}
|
|
648
648
|
ot.prototype.clear = Wr, ot.prototype.delete = Br, ot.prototype.get = jr, ot.prototype.has = Yr, ot.prototype.set = Gr;
|
|
649
649
|
function De(s) {
|
|
@@ -678,16 +678,16 @@ vr.exports;
|
|
|
678
678
|
function qr(s, a) {
|
|
679
679
|
var l = this.__data__;
|
|
680
680
|
if (l instanceof q) {
|
|
681
|
-
var
|
|
682
|
-
if (!bt ||
|
|
683
|
-
return
|
|
684
|
-
l = this.__data__ = new ot(
|
|
681
|
+
var g = l.__data__;
|
|
682
|
+
if (!bt || g.length < e - 1)
|
|
683
|
+
return g.push([s, a]), this.size = ++l.size, this;
|
|
684
|
+
l = this.__data__ = new ot(g);
|
|
685
685
|
}
|
|
686
686
|
return l.set(s, a), this.size = l.size, this;
|
|
687
687
|
}
|
|
688
688
|
kt.prototype.clear = je, kt.prototype.delete = Xr, kt.prototype.get = Kr, kt.prototype.has = Vr, kt.prototype.set = qr;
|
|
689
689
|
function Jr(s, a) {
|
|
690
|
-
var l = Fe(s),
|
|
690
|
+
var l = Fe(s), g = !l && pr(s), O = !l && !g && Ne(s), M = !l && !g && !O && gr(s), D = l || g || O || M, P = D ? Oe(s.length, String) : [], U = P.length;
|
|
691
691
|
for (var N in s)
|
|
692
692
|
et.call(s, N) && !(D && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
693
693
|
(N == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -703,8 +703,8 @@ vr.exports;
|
|
|
703
703
|
return -1;
|
|
704
704
|
}
|
|
705
705
|
function Ye(s, a, l) {
|
|
706
|
-
var
|
|
707
|
-
return Fe(s) ?
|
|
706
|
+
var g = a(s);
|
|
707
|
+
return Fe(s) ? g : Nt(g, l(s));
|
|
708
708
|
}
|
|
709
709
|
function pe(s) {
|
|
710
710
|
return s == null ? s === void 0 ? R : f : at && at in Object(s) ? Rt(s) : dr(s);
|
|
@@ -712,10 +712,10 @@ vr.exports;
|
|
|
712
712
|
function ur(s) {
|
|
713
713
|
return _t(s) && pe(s) == u;
|
|
714
714
|
}
|
|
715
|
-
function lr(s, a, l,
|
|
716
|
-
return s === a ? !0 : s == null || a == null || !_t(s) && !_t(a) ? s !== s && a !== a : Zr(s, a, l,
|
|
715
|
+
function lr(s, a, l, g, O) {
|
|
716
|
+
return s === a ? !0 : s == null || a == null || !_t(s) && !_t(a) ? s !== s && a !== a : Zr(s, a, l, g, lr, O);
|
|
717
717
|
}
|
|
718
|
-
function Zr(s, a, l,
|
|
718
|
+
function Zr(s, a, l, g, O, M) {
|
|
719
719
|
var D = Fe(s), P = Fe(a), U = D ? d : vt(s), N = P ? d : vt(a);
|
|
720
720
|
U = U == u ? v : U, N = N == u ? v : N;
|
|
721
721
|
var J = U == v, ct = N == v, W = U == N;
|
|
@@ -725,15 +725,15 @@ vr.exports;
|
|
|
725
725
|
D = !0, J = !1;
|
|
726
726
|
}
|
|
727
727
|
if (W && !J)
|
|
728
|
-
return M || (M = new kt()), D || gr(s) ? Ge(s, a, l,
|
|
728
|
+
return M || (M = new kt()), D || gr(s) ? Ge(s, a, l, g, O, M) : rn(s, a, U, l, g, O, M);
|
|
729
729
|
if (!(l & i)) {
|
|
730
730
|
var Z = J && et.call(s, "__wrapped__"), K = ct && et.call(a, "__wrapped__");
|
|
731
731
|
if (Z || K) {
|
|
732
732
|
var Xt = Z ? s.value() : s, Pt = K ? a.value() : a;
|
|
733
|
-
return M || (M = new kt()), O(Xt, Pt, l,
|
|
733
|
+
return M || (M = new kt()), O(Xt, Pt, l, g, M);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
return W ? (M || (M = new kt()), nn(s, a, l,
|
|
736
|
+
return W ? (M || (M = new kt()), nn(s, a, l, g, O, M)) : !1;
|
|
737
737
|
}
|
|
738
738
|
function Qr(s) {
|
|
739
739
|
if (!mr(s) || cn(s))
|
|
@@ -752,7 +752,7 @@ vr.exports;
|
|
|
752
752
|
et.call(s, l) && l != "constructor" && a.push(l);
|
|
753
753
|
return a;
|
|
754
754
|
}
|
|
755
|
-
function Ge(s, a, l,
|
|
755
|
+
function Ge(s, a, l, g, O, M) {
|
|
756
756
|
var D = l & i, P = s.length, U = a.length;
|
|
757
757
|
if (P != U && !(D && U > P))
|
|
758
758
|
return !1;
|
|
@@ -762,8 +762,8 @@ vr.exports;
|
|
|
762
762
|
var J = -1, ct = !0, W = l & o ? new De() : void 0;
|
|
763
763
|
for (M.set(s, a), M.set(a, s); ++J < P; ) {
|
|
764
764
|
var Z = s[J], K = a[J];
|
|
765
|
-
if (
|
|
766
|
-
var Xt = D ?
|
|
765
|
+
if (g)
|
|
766
|
+
var Xt = D ? g(K, Z, J, a, s, M) : g(Z, K, J, s, a, M);
|
|
767
767
|
if (Xt !== void 0) {
|
|
768
768
|
if (Xt)
|
|
769
769
|
continue;
|
|
@@ -772,20 +772,20 @@ vr.exports;
|
|
|
772
772
|
}
|
|
773
773
|
if (W) {
|
|
774
774
|
if (!oe(a, function(Pt, me) {
|
|
775
|
-
if (!wt(W, me) && (Z === Pt || O(Z, Pt, l,
|
|
775
|
+
if (!wt(W, me) && (Z === Pt || O(Z, Pt, l, g, M)))
|
|
776
776
|
return W.push(me);
|
|
777
777
|
})) {
|
|
778
778
|
ct = !1;
|
|
779
779
|
break;
|
|
780
780
|
}
|
|
781
|
-
} else if (!(Z === K || O(Z, K, l,
|
|
781
|
+
} else if (!(Z === K || O(Z, K, l, g, M))) {
|
|
782
782
|
ct = !1;
|
|
783
783
|
break;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
return M.delete(s), M.delete(a), ct;
|
|
787
787
|
}
|
|
788
|
-
function rn(s, a, l,
|
|
788
|
+
function rn(s, a, l, g, O, M, D) {
|
|
789
789
|
switch (l) {
|
|
790
790
|
case F:
|
|
791
791
|
if (s.byteLength != a.byteLength || s.byteOffset != a.byteOffset)
|
|
@@ -794,7 +794,7 @@ vr.exports;
|
|
|
794
794
|
case x:
|
|
795
795
|
return !(s.byteLength != a.byteLength || !M(new fe(s), new fe(a)));
|
|
796
796
|
case m:
|
|
797
|
-
case
|
|
797
|
+
case y:
|
|
798
798
|
case _:
|
|
799
799
|
return fr(+s, +a);
|
|
800
800
|
case h:
|
|
@@ -805,14 +805,14 @@ vr.exports;
|
|
|
805
805
|
case b:
|
|
806
806
|
var P = ce;
|
|
807
807
|
case S:
|
|
808
|
-
var U =
|
|
808
|
+
var U = g & i;
|
|
809
809
|
if (P || (P = ut), s.size != a.size && !U)
|
|
810
810
|
return !1;
|
|
811
811
|
var N = D.get(s);
|
|
812
812
|
if (N)
|
|
813
813
|
return N == a;
|
|
814
|
-
|
|
815
|
-
var J = Ge(P(s), P(a),
|
|
814
|
+
g |= o, D.set(s, a);
|
|
815
|
+
var J = Ge(P(s), P(a), g, O, M, D);
|
|
816
816
|
return D.delete(s), J;
|
|
817
817
|
case L:
|
|
818
818
|
if (Be)
|
|
@@ -820,7 +820,7 @@ vr.exports;
|
|
|
820
820
|
}
|
|
821
821
|
return !1;
|
|
822
822
|
}
|
|
823
|
-
function nn(s, a, l,
|
|
823
|
+
function nn(s, a, l, g, O, M) {
|
|
824
824
|
var D = l & i, P = he(s), U = P.length, N = he(a), J = N.length;
|
|
825
825
|
if (U != J && !D)
|
|
826
826
|
return !1;
|
|
@@ -837,9 +837,9 @@ vr.exports;
|
|
|
837
837
|
for (var Xt = D; ++ct < U; ) {
|
|
838
838
|
W = P[ct];
|
|
839
839
|
var Pt = s[W], me = a[W];
|
|
840
|
-
if (
|
|
841
|
-
var Hn = D ?
|
|
842
|
-
if (!(Hn === void 0 ? Pt === me || O(Pt, me, l,
|
|
840
|
+
if (g)
|
|
841
|
+
var Hn = D ? g(me, Pt, W, a, s, M) : g(Pt, me, W, s, a, M);
|
|
842
|
+
if (!(Hn === void 0 ? Pt === me || O(Pt, me, l, g, M) : Hn)) {
|
|
843
843
|
K = !1;
|
|
844
844
|
break;
|
|
845
845
|
}
|
|
@@ -866,11 +866,11 @@ vr.exports;
|
|
|
866
866
|
var a = et.call(s, at), l = s[at];
|
|
867
867
|
try {
|
|
868
868
|
s[at] = void 0;
|
|
869
|
-
var
|
|
869
|
+
var g = !0;
|
|
870
870
|
} catch {
|
|
871
871
|
}
|
|
872
872
|
var O = de.call(s);
|
|
873
|
-
return
|
|
873
|
+
return g && (a ? s[at] = l : delete s[at]), O;
|
|
874
874
|
}
|
|
875
875
|
var sn = xt ? function(s) {
|
|
876
876
|
return s == null ? [] : (s = Object(s), ae(xt(s), function(a) {
|
|
@@ -878,9 +878,9 @@ vr.exports;
|
|
|
878
878
|
}));
|
|
879
879
|
} : dn, vt = pe;
|
|
880
880
|
(Bt && vt(new Bt(new ArrayBuffer(1))) != F || bt && vt(new bt()) != b || jt && vt(jt.resolve()) != T || Yt && vt(new Yt()) != S || We && vt(new We()) != Y) && (vt = function(s) {
|
|
881
|
-
var a = pe(s), l = a == v ? s.constructor : void 0,
|
|
882
|
-
if (
|
|
883
|
-
switch (
|
|
881
|
+
var a = pe(s), l = a == v ? s.constructor : void 0, g = l ? rt(l) : "";
|
|
882
|
+
if (g)
|
|
883
|
+
switch (g) {
|
|
884
884
|
case ar:
|
|
885
885
|
return F;
|
|
886
886
|
case Ot:
|
|
@@ -943,7 +943,7 @@ vr.exports;
|
|
|
943
943
|
if (!mr(s))
|
|
944
944
|
return !1;
|
|
945
945
|
var a = pe(s);
|
|
946
|
-
return a ==
|
|
946
|
+
return a == k || a == I || a == p || a == w;
|
|
947
947
|
}
|
|
948
948
|
function Ke(s) {
|
|
949
949
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= c;
|
|
@@ -972,8 +972,8 @@ const B = /* @__PURE__ */ Cn(ti), vo = "add", ei = "track", ri = "trackItems", _
|
|
|
972
972
|
var _r = { exports: {} };
|
|
973
973
|
_r.exports;
|
|
974
974
|
(function(t, r) {
|
|
975
|
-
var e = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", p = "[object Error]", m = "[object Function]",
|
|
976
|
-
z[o] = z[c] = z[A] = z[S] = z[u] = z[d] = z[E] = z[L] = z[R] = z[Y] = z[x] = z[h] = z[
|
|
975
|
+
var e = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", p = "[object Error]", m = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", k = "[object Number]", I = "[object Object]", b = "[object Promise]", _ = "[object RegExp]", f = "[object Set]", v = "[object String]", T = "[object Symbol]", w = "[object WeakMap]", A = "[object ArrayBuffer]", S = "[object DataView]", E = "[object Float32Array]", L = "[object Float64Array]", R = "[object Int8Array]", Y = "[object Int16Array]", x = "[object Int32Array]", F = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", Qt = "[object Uint16Array]", te = "[object Uint32Array]", Se = /[\\^$.*+?()[\]{}|]/g, we = /\w*$/, Te = /^\[object .+?Constructor\]$/, Ee = /^(?:0|[1-9]\d*)$/, z = {};
|
|
976
|
+
z[o] = z[c] = z[A] = z[S] = z[u] = z[d] = z[E] = z[L] = z[R] = z[Y] = z[x] = z[h] = z[k] = z[I] = z[_] = z[f] = z[v] = z[T] = z[F] = z[tt] = z[Qt] = z[te] = !0, z[p] = z[m] = z[w] = !1;
|
|
977
977
|
var Ae = typeof ft == "object" && ft && ft.Object === Object && ft, Me = typeof self == "object" && self && self.Object === Object && self, st = Ae || Me || Function("return this")(), ee = r && !r.nodeType && r, $ = ee && !0 && t && !t.nodeType && t, re = $ && $.exports === ee;
|
|
978
978
|
function xe(s, a) {
|
|
979
979
|
return s.set(a[0], a[1]), s;
|
|
@@ -982,24 +982,24 @@ _r.exports;
|
|
|
982
982
|
return s.add(a), s;
|
|
983
983
|
}
|
|
984
984
|
function ne(s, a) {
|
|
985
|
-
for (var l = -1,
|
|
985
|
+
for (var l = -1, g = s ? s.length : 0; ++l < g && a(s[l], l, s) !== !1; )
|
|
986
986
|
;
|
|
987
987
|
return s;
|
|
988
988
|
}
|
|
989
989
|
function se(s, a) {
|
|
990
|
-
for (var l = -1,
|
|
990
|
+
for (var l = -1, g = a.length, O = s.length; ++l < g; )
|
|
991
991
|
s[O + l] = a[l];
|
|
992
992
|
return s;
|
|
993
993
|
}
|
|
994
|
-
function zt(s, a, l,
|
|
994
|
+
function zt(s, a, l, g) {
|
|
995
995
|
for (var O = -1, M = s ? s.length : 0; ++O < M; )
|
|
996
996
|
l = a(l, s[O], O, s);
|
|
997
997
|
return l;
|
|
998
998
|
}
|
|
999
999
|
function $t(s, a) {
|
|
1000
|
-
for (var l = -1,
|
|
1001
|
-
|
|
1002
|
-
return
|
|
1000
|
+
for (var l = -1, g = Array(s); ++l < s; )
|
|
1001
|
+
g[l] = a(l);
|
|
1002
|
+
return g;
|
|
1003
1003
|
}
|
|
1004
1004
|
function ie(s, a) {
|
|
1005
1005
|
return s == null ? void 0 : s[a];
|
|
@@ -1015,8 +1015,8 @@ _r.exports;
|
|
|
1015
1015
|
}
|
|
1016
1016
|
function ae(s) {
|
|
1017
1017
|
var a = -1, l = Array(s.size);
|
|
1018
|
-
return s.forEach(function(
|
|
1019
|
-
l[++a] = [O,
|
|
1018
|
+
return s.forEach(function(g, O) {
|
|
1019
|
+
l[++a] = [O, g];
|
|
1020
1020
|
}), l;
|
|
1021
1021
|
}
|
|
1022
1022
|
function Nt(s, a) {
|
|
@@ -1026,8 +1026,8 @@ _r.exports;
|
|
|
1026
1026
|
}
|
|
1027
1027
|
function oe(s) {
|
|
1028
1028
|
var a = -1, l = Array(s.size);
|
|
1029
|
-
return s.forEach(function(
|
|
1030
|
-
l[++a] =
|
|
1029
|
+
return s.forEach(function(g) {
|
|
1030
|
+
l[++a] = g;
|
|
1031
1031
|
}), l;
|
|
1032
1032
|
}
|
|
1033
1033
|
var Oe = Array.prototype, Ce = Function.prototype, wt = Object.prototype, Lt = st["__core-js_shared__"], ce = function() {
|
|
@@ -1039,8 +1039,8 @@ _r.exports;
|
|
|
1039
1039
|
function Ot(s) {
|
|
1040
1040
|
var a = -1, l = s ? s.length : 0;
|
|
1041
1041
|
for (this.clear(); ++a < l; ) {
|
|
1042
|
-
var
|
|
1043
|
-
this.set(
|
|
1042
|
+
var g = s[a];
|
|
1043
|
+
this.set(g[0], g[1]);
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
function xr() {
|
|
@@ -1069,8 +1069,8 @@ _r.exports;
|
|
|
1069
1069
|
function X(s) {
|
|
1070
1070
|
var a = -1, l = s ? s.length : 0;
|
|
1071
1071
|
for (this.clear(); ++a < l; ) {
|
|
1072
|
-
var
|
|
1073
|
-
this.set(
|
|
1072
|
+
var g = s[a];
|
|
1073
|
+
this.set(g[0], g[1]);
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
function Rr() {
|
|
@@ -1080,8 +1080,8 @@ _r.exports;
|
|
|
1080
1080
|
var a = this.__data__, l = ze(a, s);
|
|
1081
1081
|
if (l < 0)
|
|
1082
1082
|
return !1;
|
|
1083
|
-
var
|
|
1084
|
-
return l ==
|
|
1083
|
+
var g = a.length - 1;
|
|
1084
|
+
return l == g ? a.pop() : Pe.call(a, l, 1), !0;
|
|
1085
1085
|
}
|
|
1086
1086
|
function Dr(s) {
|
|
1087
1087
|
var a = this.__data__, l = ze(a, s);
|
|
@@ -1091,15 +1091,15 @@ _r.exports;
|
|
|
1091
1091
|
return ze(this.__data__, s) > -1;
|
|
1092
1092
|
}
|
|
1093
1093
|
function $r(s, a) {
|
|
1094
|
-
var l = this.__data__,
|
|
1095
|
-
return
|
|
1094
|
+
var l = this.__data__, g = ze(l, s);
|
|
1095
|
+
return g < 0 ? l.push([s, a]) : l[g][1] = a, this;
|
|
1096
1096
|
}
|
|
1097
1097
|
X.prototype.clear = Rr, X.prototype.delete = Pr, X.prototype.get = Dr, X.prototype.has = zr, X.prototype.set = $r;
|
|
1098
1098
|
function q(s) {
|
|
1099
1099
|
var a = -1, l = s ? s.length : 0;
|
|
1100
1100
|
for (this.clear(); ++a < l; ) {
|
|
1101
|
-
var
|
|
1102
|
-
this.set(
|
|
1101
|
+
var g = s[a];
|
|
1102
|
+
this.set(g[0], g[1]);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
function Fr() {
|
|
@@ -1140,23 +1140,23 @@ _r.exports;
|
|
|
1140
1140
|
function Gr(s, a) {
|
|
1141
1141
|
var l = this.__data__;
|
|
1142
1142
|
if (l instanceof X) {
|
|
1143
|
-
var
|
|
1144
|
-
if (!yt ||
|
|
1145
|
-
return
|
|
1146
|
-
l = this.__data__ = new q(
|
|
1143
|
+
var g = l.__data__;
|
|
1144
|
+
if (!yt || g.length < e - 1)
|
|
1145
|
+
return g.push([s, a]), this;
|
|
1146
|
+
l = this.__data__ = new q(g);
|
|
1147
1147
|
}
|
|
1148
1148
|
return l.set(s, a), this;
|
|
1149
1149
|
}
|
|
1150
1150
|
ot.prototype.clear = Wr, ot.prototype.delete = Br, ot.prototype.get = jr, ot.prototype.has = Yr, ot.prototype.set = Gr;
|
|
1151
1151
|
function De(s, a) {
|
|
1152
|
-
var l = Xe(s) || Fe(s) ? $t(s.length, String) : [],
|
|
1152
|
+
var l = Xe(s) || Fe(s) ? $t(s.length, String) : [], g = l.length, O = !!g;
|
|
1153
1153
|
for (var M in s)
|
|
1154
|
-
ut.call(s, M) && !(O && (M == "length" || on(M,
|
|
1154
|
+
ut.call(s, M) && !(O && (M == "length" || on(M, g))) && l.push(M);
|
|
1155
1155
|
return l;
|
|
1156
1156
|
}
|
|
1157
1157
|
function cr(s, a, l) {
|
|
1158
|
-
var
|
|
1159
|
-
(!(ut.call(s, a) && pr(
|
|
1158
|
+
var g = s[a];
|
|
1159
|
+
(!(ut.call(s, a) && pr(g, l)) || l === void 0 && !(a in s)) && (s[a] = l);
|
|
1160
1160
|
}
|
|
1161
1161
|
function ze(s, a) {
|
|
1162
1162
|
for (var l = s.length; l--; )
|
|
@@ -1167,9 +1167,9 @@ _r.exports;
|
|
|
1167
1167
|
function kt(s, a) {
|
|
1168
1168
|
return s && Ge(a, Ve(a), s);
|
|
1169
1169
|
}
|
|
1170
|
-
function je(s, a, l,
|
|
1170
|
+
function je(s, a, l, g, O, M, D) {
|
|
1171
1171
|
var P;
|
|
1172
|
-
if (
|
|
1172
|
+
if (g && (P = M ? g(s, O, M, D) : g(s)), P !== void 0)
|
|
1173
1173
|
return P;
|
|
1174
1174
|
if (!_t(s))
|
|
1175
1175
|
return s;
|
|
@@ -1178,10 +1178,10 @@ _r.exports;
|
|
|
1178
1178
|
if (P = sn(s), !a)
|
|
1179
1179
|
return en(s, P);
|
|
1180
1180
|
} else {
|
|
1181
|
-
var N = Rt(s), J = N == m || N ==
|
|
1181
|
+
var N = Rt(s), J = N == m || N == y;
|
|
1182
1182
|
if (hr(s))
|
|
1183
1183
|
return $e(s, a);
|
|
1184
|
-
if (N ==
|
|
1184
|
+
if (N == I || N == o || J && !M) {
|
|
1185
1185
|
if (Ft(s))
|
|
1186
1186
|
return M ? s : {};
|
|
1187
1187
|
if (P = vt(J ? {} : s), !a)
|
|
@@ -1199,15 +1199,15 @@ _r.exports;
|
|
|
1199
1199
|
if (D.set(s, P), !U)
|
|
1200
1200
|
var W = l ? nn(s) : Ve(s);
|
|
1201
1201
|
return ne(W || s, function(Z, K) {
|
|
1202
|
-
W && (K = Z, Z = s[K]), cr(P, K, je(Z, a, l,
|
|
1202
|
+
W && (K = Z, Z = s[K]), cr(P, K, je(Z, a, l, g, K, s, D));
|
|
1203
1203
|
}), P;
|
|
1204
1204
|
}
|
|
1205
1205
|
function Xr(s) {
|
|
1206
1206
|
return _t(s) ? le(s) : {};
|
|
1207
1207
|
}
|
|
1208
1208
|
function Kr(s, a, l) {
|
|
1209
|
-
var
|
|
1210
|
-
return Xe(s) ?
|
|
1209
|
+
var g = a(s);
|
|
1210
|
+
return Xe(s) ? g : se(g, l(s));
|
|
1211
1211
|
}
|
|
1212
1212
|
function Vr(s) {
|
|
1213
1213
|
return Tt.call(s);
|
|
@@ -1241,16 +1241,16 @@ _r.exports;
|
|
|
1241
1241
|
return new s.constructor(l, s.byteOffset, s.byteLength);
|
|
1242
1242
|
}
|
|
1243
1243
|
function ur(s, a, l) {
|
|
1244
|
-
var
|
|
1245
|
-
return zt(
|
|
1244
|
+
var g = a ? l(ae(s), !0) : ae(s);
|
|
1245
|
+
return zt(g, xe, new s.constructor());
|
|
1246
1246
|
}
|
|
1247
1247
|
function lr(s) {
|
|
1248
1248
|
var a = new s.constructor(s.source, we.exec(s));
|
|
1249
1249
|
return a.lastIndex = s.lastIndex, a;
|
|
1250
1250
|
}
|
|
1251
1251
|
function Zr(s, a, l) {
|
|
1252
|
-
var
|
|
1253
|
-
return zt(
|
|
1252
|
+
var g = a ? l(oe(s), !0) : oe(s);
|
|
1253
|
+
return zt(g, it, new s.constructor());
|
|
1254
1254
|
}
|
|
1255
1255
|
function Qr(s) {
|
|
1256
1256
|
return ar ? Object(ar.call(s)) : {};
|
|
@@ -1260,12 +1260,12 @@ _r.exports;
|
|
|
1260
1260
|
return new s.constructor(l, s.byteOffset, s.length);
|
|
1261
1261
|
}
|
|
1262
1262
|
function en(s, a) {
|
|
1263
|
-
var l = -1,
|
|
1264
|
-
for (a || (a = Array(
|
|
1263
|
+
var l = -1, g = s.length;
|
|
1264
|
+
for (a || (a = Array(g)); ++l < g; )
|
|
1265
1265
|
a[l] = s[l];
|
|
1266
1266
|
return a;
|
|
1267
1267
|
}
|
|
1268
|
-
function Ge(s, a, l,
|
|
1268
|
+
function Ge(s, a, l, g) {
|
|
1269
1269
|
l || (l = {});
|
|
1270
1270
|
for (var O = -1, M = a.length; ++O < M; ) {
|
|
1271
1271
|
var D = a[O], P = void 0;
|
|
@@ -1289,9 +1289,9 @@ _r.exports;
|
|
|
1289
1289
|
}
|
|
1290
1290
|
var Ct = Ut ? Nt(Ut, Object) : dn, Rt = Vr;
|
|
1291
1291
|
(Mt && Rt(new Mt(new ArrayBuffer(1))) != S || yt && Rt(new yt()) != h || at && Rt(at.resolve()) != b || xt && Rt(new xt()) != f || Wt && Rt(new Wt()) != w) && (Rt = function(s) {
|
|
1292
|
-
var a = Tt.call(s), l = a ==
|
|
1293
|
-
if (
|
|
1294
|
-
switch (
|
|
1292
|
+
var a = Tt.call(s), l = a == I ? s.constructor : void 0, g = l ? rt(l) : void 0;
|
|
1293
|
+
if (g)
|
|
1294
|
+
switch (g) {
|
|
1295
1295
|
case Bt:
|
|
1296
1296
|
return S;
|
|
1297
1297
|
case bt:
|
|
@@ -1312,7 +1312,7 @@ _r.exports;
|
|
|
1312
1312
|
function vt(s) {
|
|
1313
1313
|
return typeof s.constructor == "function" && !dr(s) ? Xr(et(s)) : {};
|
|
1314
1314
|
}
|
|
1315
|
-
function an(s, a, l,
|
|
1315
|
+
function an(s, a, l, g) {
|
|
1316
1316
|
var O = s.constructor;
|
|
1317
1317
|
switch (a) {
|
|
1318
1318
|
case A:
|
|
@@ -1321,7 +1321,7 @@ _r.exports;
|
|
|
1321
1321
|
case d:
|
|
1322
1322
|
return new O(+s);
|
|
1323
1323
|
case S:
|
|
1324
|
-
return pe(s,
|
|
1324
|
+
return pe(s, g);
|
|
1325
1325
|
case E:
|
|
1326
1326
|
case L:
|
|
1327
1327
|
case R:
|
|
@@ -1331,16 +1331,16 @@ _r.exports;
|
|
|
1331
1331
|
case tt:
|
|
1332
1332
|
case Qt:
|
|
1333
1333
|
case te:
|
|
1334
|
-
return tn(s,
|
|
1334
|
+
return tn(s, g);
|
|
1335
1335
|
case h:
|
|
1336
|
-
return ur(s,
|
|
1337
|
-
case
|
|
1336
|
+
return ur(s, g, l);
|
|
1337
|
+
case k:
|
|
1338
1338
|
case v:
|
|
1339
1339
|
return new O(s);
|
|
1340
1340
|
case _:
|
|
1341
1341
|
return lr(s);
|
|
1342
1342
|
case f:
|
|
1343
|
-
return Zr(s,
|
|
1343
|
+
return Zr(s, g, l);
|
|
1344
1344
|
case T:
|
|
1345
1345
|
return Qr(s);
|
|
1346
1346
|
}
|
|
@@ -1391,7 +1391,7 @@ _r.exports;
|
|
|
1391
1391
|
var hr = At || fn;
|
|
1392
1392
|
function Ke(s) {
|
|
1393
1393
|
var a = _t(s) ? Tt.call(s) : "";
|
|
1394
|
-
return a == m || a ==
|
|
1394
|
+
return a == m || a == y;
|
|
1395
1395
|
}
|
|
1396
1396
|
function mr(s) {
|
|
1397
1397
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= i;
|
|
@@ -1434,38 +1434,38 @@ const G = (t) => Object.keys(t).reduce((r, e) => {
|
|
|
1434
1434
|
function nt(t, r, e) {
|
|
1435
1435
|
t.forEach((n) => {
|
|
1436
1436
|
const i = Object.values(r).filter(
|
|
1437
|
-
(
|
|
1437
|
+
(k) => n.items.includes(k.id)
|
|
1438
1438
|
), c = i.filter(
|
|
1439
|
-
(
|
|
1439
|
+
(k) => !e.includes(k.id)
|
|
1440
1440
|
).sort(
|
|
1441
|
-
(
|
|
1441
|
+
(k, I) => k.display.from - I.display.from
|
|
1442
1442
|
), u = i.sort(
|
|
1443
|
-
(
|
|
1443
|
+
(k, I) => k.display.from - I.display.from
|
|
1444
1444
|
), d = c[c.length - 1];
|
|
1445
1445
|
let p = (d == null ? void 0 : d.display.to) || 0;
|
|
1446
|
-
u.forEach((
|
|
1447
|
-
if (e.includes(
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1446
|
+
u.forEach((k) => {
|
|
1447
|
+
if (e.includes(k.id)) {
|
|
1448
|
+
const I = k.display.to - k.display.from;
|
|
1449
|
+
k.display = {
|
|
1450
1450
|
from: p,
|
|
1451
|
-
to: p +
|
|
1452
|
-
}, p = p +
|
|
1451
|
+
to: p + I
|
|
1452
|
+
}, p = p + I;
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
const
|
|
1456
|
-
(
|
|
1457
|
-
).map((
|
|
1455
|
+
const y = i.sort(
|
|
1456
|
+
(k, I) => k.display.from - I.display.from
|
|
1457
|
+
).map((k) => k.id);
|
|
1458
1458
|
let h = 0;
|
|
1459
|
-
|
|
1460
|
-
const
|
|
1459
|
+
y.forEach((k) => {
|
|
1460
|
+
const I = [];
|
|
1461
1461
|
let b = 0;
|
|
1462
|
-
if (
|
|
1462
|
+
if (I.forEach((_) => {
|
|
1463
1463
|
_.forEach((f) => {
|
|
1464
1464
|
f.type === "transition" && (b += f.duration);
|
|
1465
1465
|
});
|
|
1466
|
-
}), r[
|
|
1467
|
-
const _ = r[
|
|
1468
|
-
r[
|
|
1466
|
+
}), r[k]) {
|
|
1467
|
+
const _ = r[k].display.to - r[k].display.from;
|
|
1468
|
+
r[k].display = {
|
|
1469
1469
|
from: h - b,
|
|
1470
1470
|
to: h + _ - b
|
|
1471
1471
|
}, h += _;
|
|
@@ -1521,7 +1521,7 @@ function Ui(t, r) {
|
|
|
1521
1521
|
u.forEach((S) => {
|
|
1522
1522
|
n.includes(S) && n.length === 1 && C(e.transitionsMap[S]);
|
|
1523
1523
|
});
|
|
1524
|
-
const
|
|
1524
|
+
const y = u.filter(
|
|
1525
1525
|
(S) => !i.includes(S) && !n.includes(S)
|
|
1526
1526
|
), h = Object.fromEntries(
|
|
1527
1527
|
Object.entries(e.transitionsMap).filter(
|
|
@@ -1531,9 +1531,9 @@ function Ui(t, r) {
|
|
|
1531
1531
|
Object.keys(h).forEach((S) => {
|
|
1532
1532
|
n.includes(S) && (h[S].kind = "none");
|
|
1533
1533
|
});
|
|
1534
|
-
const
|
|
1534
|
+
const k = e.trackItemIds.filter(
|
|
1535
1535
|
(S) => !n.includes(S)
|
|
1536
|
-
),
|
|
1536
|
+
), I = Hi(
|
|
1537
1537
|
e.tracks,
|
|
1538
1538
|
n
|
|
1539
1539
|
), b = Object.fromEntries(
|
|
@@ -1544,7 +1544,7 @@ function Ui(t, r) {
|
|
|
1544
1544
|
nt(_, b, []);
|
|
1545
1545
|
const f = {}, v = [], { updatedTrackItems: T, updatedStructure: w } = fs(
|
|
1546
1546
|
i,
|
|
1547
|
-
|
|
1547
|
+
k,
|
|
1548
1548
|
e.trackItemsMap,
|
|
1549
1549
|
e.structure,
|
|
1550
1550
|
f,
|
|
@@ -1554,10 +1554,10 @@ function Ui(t, r) {
|
|
|
1554
1554
|
trackItemIds: m,
|
|
1555
1555
|
activeIds: [],
|
|
1556
1556
|
trackItemsMap: T,
|
|
1557
|
-
tracks:
|
|
1557
|
+
tracks: I,
|
|
1558
1558
|
duration: A,
|
|
1559
1559
|
structure: w,
|
|
1560
|
-
transitionIds:
|
|
1560
|
+
transitionIds: y,
|
|
1561
1561
|
transitionsMap: h
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
@@ -1639,21 +1639,21 @@ async function ji(t) {
|
|
|
1639
1639
|
};
|
|
1640
1640
|
p.unshift(f);
|
|
1641
1641
|
});
|
|
1642
|
-
const m = [...d.structure, ...e.structure],
|
|
1642
|
+
const m = [...d.structure, ...e.structure], y = e.trackItemIds, h = {
|
|
1643
1643
|
...d.trackItemsMap,
|
|
1644
1644
|
...e.trackItemsMap
|
|
1645
|
-
},
|
|
1645
|
+
}, k = {
|
|
1646
1646
|
structure: m,
|
|
1647
|
-
trackItemIds:
|
|
1647
|
+
trackItemIds: y,
|
|
1648
1648
|
trackItemsMap: h,
|
|
1649
1649
|
tracks: p
|
|
1650
|
-
},
|
|
1650
|
+
}, I = G(k.trackItemsMap);
|
|
1651
1651
|
return {
|
|
1652
|
-
trackItemIds:
|
|
1653
|
-
trackItemsMap:
|
|
1654
|
-
structure:
|
|
1655
|
-
tracks:
|
|
1656
|
-
duration:
|
|
1652
|
+
trackItemIds: k.trackItemIds,
|
|
1653
|
+
trackItemsMap: k.trackItemsMap,
|
|
1654
|
+
structure: k.structure,
|
|
1655
|
+
tracks: k.tracks,
|
|
1656
|
+
duration: I
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
1659
|
let Sr = {
|
|
@@ -1751,14 +1751,14 @@ async function Ki(t, r) {
|
|
|
1751
1751
|
const e = { ...t }, n = Object.keys(r)[0], i = Object.values(r)[0], o = e.trackItemsMap[n], c = { ...e.trackItemsMap[n] }, u = o.details;
|
|
1752
1752
|
if (!i.details.src) return {};
|
|
1753
1753
|
if (o.type === "image") {
|
|
1754
|
-
const d = await Ue(i.details.src), { crop: p, newHeight: m, newWidth:
|
|
1755
|
-
i.details.crop = p, i.details.height = m, i.details.width =
|
|
1754
|
+
const d = await Ue(i.details.src), { crop: p, newHeight: m, newWidth: y } = Kn(o, d);
|
|
1755
|
+
i.details.crop = p, i.details.height = m, i.details.width = y;
|
|
1756
1756
|
} else if (o.type === "video") {
|
|
1757
|
-
const d = await Dn(i.details.src), p = e.trackItemsMap[n], { display: m, duration:
|
|
1758
|
-
i.details.crop =
|
|
1757
|
+
const d = await Dn(i.details.src), p = e.trackItemsMap[n], { display: m, duration: y, trim: h } = Vn(p, d), { crop: k, newHeight: I, newWidth: b } = Kn(o, d);
|
|
1758
|
+
i.details.crop = k, i.details.height = I, i.details.width = b, c.display = m, c.duration = y, c.trim = h;
|
|
1759
1759
|
} else if (o.type === "audio") {
|
|
1760
|
-
const d = await ms(i.details.src), p = e.trackItemsMap[n], { display: m, duration:
|
|
1761
|
-
c.display = m, c.duration =
|
|
1760
|
+
const d = await ms(i.details.src), p = e.trackItemsMap[n], { display: m, duration: y, trim: h } = Vn(p, d);
|
|
1761
|
+
c.display = m, c.duration = y, c.trim = h;
|
|
1762
1762
|
}
|
|
1763
1763
|
return o.details = { ...u, ...i.details }, e.trackItemsMap[n] = { ...c }, {
|
|
1764
1764
|
trackItemsMap: {
|
|
@@ -1900,7 +1900,7 @@ function Zi(t, r, e = 300, n = 300) {
|
|
|
1900
1900
|
qe(A) && i.push(A);
|
|
1901
1901
|
});
|
|
1902
1902
|
});
|
|
1903
|
-
const m = Array.from(c.querySelectorAll("*")),
|
|
1903
|
+
const m = Array.from(c.querySelectorAll("*")), y = /* @__PURE__ */ new Set();
|
|
1904
1904
|
return m.forEach((b) => {
|
|
1905
1905
|
if (hn(b)) return;
|
|
1906
1906
|
const _ = b.getAttribute("class");
|
|
@@ -1908,30 +1908,30 @@ function Zi(t, r, e = 300, n = 300) {
|
|
|
1908
1908
|
const v = _.split(" ").map((T) => `${r}-${T}`).join(" ");
|
|
1909
1909
|
b.setAttribute("class", v), v.split(" ").forEach((T) => {
|
|
1910
1910
|
const w = p[T];
|
|
1911
|
-
w != null && w.fill && !["none", "transparent"].includes(w.fill) &&
|
|
1911
|
+
w != null && w.fill && !["none", "transparent"].includes(w.fill) && y.add(V(w.fill)), w != null && w.stroke && !["none", "transparent"].includes(w.stroke) && y.add(V(w.stroke));
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
1914
|
["fill", "stroke", "stop-color"].forEach((v) => {
|
|
1915
1915
|
const T = b.getAttribute(v);
|
|
1916
|
-
T && !["none", "transparent"].includes(T) &&
|
|
1916
|
+
T && !["none", "transparent"].includes(T) && y.add(V(T));
|
|
1917
1917
|
});
|
|
1918
1918
|
const f = b.getAttribute("style");
|
|
1919
1919
|
if (f) {
|
|
1920
1920
|
const v = /fill\s*:\s*([^;]+);?/.exec(f), T = /stroke\s*:\s*([^;]+);?/.exec(f), w = /stop-color\s*:\s*([^;]+);?/.exec(f);
|
|
1921
1921
|
if (v) {
|
|
1922
1922
|
const A = v[1].trim();
|
|
1923
|
-
A && !["none", "transparent"].includes(A) &&
|
|
1923
|
+
A && !["none", "transparent"].includes(A) && y.add(V(A));
|
|
1924
1924
|
}
|
|
1925
1925
|
if (T) {
|
|
1926
1926
|
const A = T[1].trim();
|
|
1927
|
-
A && !["none", "transparent"].includes(A) &&
|
|
1927
|
+
A && !["none", "transparent"].includes(A) && y.add(V(A));
|
|
1928
1928
|
}
|
|
1929
1929
|
if (w) {
|
|
1930
1930
|
const A = w[1].trim();
|
|
1931
|
-
A && !["none", "transparent"].includes(A) &&
|
|
1931
|
+
A && !["none", "transparent"].includes(A) && y.add(V(A));
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
}),
|
|
1934
|
+
}), y.forEach(
|
|
1935
1935
|
(b) => !i.includes(b) && qe(b) && i.push(b)
|
|
1936
1936
|
), Array.from(c.querySelectorAll("*")).forEach((b) => {
|
|
1937
1937
|
if (b.hasAttribute("id")) {
|
|
@@ -2299,18 +2299,18 @@ const vs = async (t, r) => {
|
|
|
2299
2299
|
metadata: {}
|
|
2300
2300
|
};
|
|
2301
2301
|
}, Ss = async (t, r) => {
|
|
2302
|
-
var
|
|
2302
|
+
var y;
|
|
2303
2303
|
const e = t.trackItemIds, n = t.size || {
|
|
2304
2304
|
width: t.details.width,
|
|
2305
2305
|
height: t.details.height
|
|
2306
2306
|
}, i = Math.min(
|
|
2307
2307
|
r.size.width / n.width,
|
|
2308
2308
|
r.size.height / n.height
|
|
2309
|
-
), o = ((
|
|
2309
|
+
), o = ((y = t.details) == null ? void 0 : y.rotate) || 0, c = ht(r, n), u = t.display;
|
|
2310
2310
|
let d = 1 / 0, p = 0;
|
|
2311
2311
|
e.forEach((h) => {
|
|
2312
|
-
const
|
|
2313
|
-
|
|
2312
|
+
const k = t.trackItemsMap[h];
|
|
2313
|
+
k.display.from < d && (d = k.display.from), k.display.to > p && (p = k.display.to);
|
|
2314
2314
|
});
|
|
2315
2315
|
const m = t.trim || t.display || { from: d, to: p };
|
|
2316
2316
|
return {
|
|
@@ -2340,8 +2340,8 @@ const vs = async (t, r) => {
|
|
|
2340
2340
|
r.size.height / n.height
|
|
2341
2341
|
), o = ((m = t.details) == null ? void 0 : m.rotate) || 0, c = ht(r, n), u = t.display;
|
|
2342
2342
|
let d = 1 / 0, p = 0;
|
|
2343
|
-
return e.forEach((
|
|
2344
|
-
const h = t.trackItemsMap[
|
|
2343
|
+
return e.forEach((y) => {
|
|
2344
|
+
const h = t.trackItemsMap[y];
|
|
2345
2345
|
h.display.from < d && (d = h.display.from), h.display.to > p && (p = h.display.to);
|
|
2346
2346
|
}), {
|
|
2347
2347
|
id: t.id,
|
|
@@ -2366,7 +2366,7 @@ const vs = async (t, r) => {
|
|
|
2366
2366
|
t.id,
|
|
2367
2367
|
Number(e.width || o.width),
|
|
2368
2368
|
Number(e.height || o.height)
|
|
2369
|
-
),
|
|
2369
|
+
), y = t.details.colorMap || Object.fromEntries(m.map((h) => [h, h]));
|
|
2370
2370
|
return {
|
|
2371
2371
|
id: t.id,
|
|
2372
2372
|
name: "illustration",
|
|
@@ -2402,7 +2402,7 @@ const vs = async (t, r) => {
|
|
|
2402
2402
|
visibility: e.visibility || "visible",
|
|
2403
2403
|
svgString: p,
|
|
2404
2404
|
initialSvgString: C(p),
|
|
2405
|
-
colorMap:
|
|
2405
|
+
colorMap: y
|
|
2406
2406
|
},
|
|
2407
2407
|
metadata: t.metadata || {}
|
|
2408
2408
|
};
|
|
@@ -2567,7 +2567,9 @@ const vs = async (t, r) => {
|
|
|
2567
2567
|
words: i.words || [],
|
|
2568
2568
|
appearedColor: i.appearedColor || i.color,
|
|
2569
2569
|
activeColor: i.activeColor || i.color,
|
|
2570
|
-
activeFillColor: i.activeFillColor || "transparent"
|
|
2570
|
+
activeFillColor: i.activeFillColor || "transparent",
|
|
2571
|
+
isKeywordColor: i.isKeywordColor || "transparent",
|
|
2572
|
+
preservedColorKeyWord: i.preservedColorKeyWord || !1
|
|
2571
2573
|
},
|
|
2572
2574
|
metadata: t.metadata || {}
|
|
2573
2575
|
};
|
|
@@ -2696,36 +2698,36 @@ async function oa(t, r) {
|
|
|
2696
2698
|
const m = e[p];
|
|
2697
2699
|
if (m.type === "text" || m.type === "caption") {
|
|
2698
2700
|
if (m.details.fontUrl) {
|
|
2699
|
-
const
|
|
2701
|
+
const y = {
|
|
2700
2702
|
fontFamily: m.details.fontFamily,
|
|
2701
2703
|
url: m.details.fontUrl
|
|
2702
2704
|
};
|
|
2703
|
-
n.add(JSON.stringify(
|
|
2705
|
+
n.add(JSON.stringify(y));
|
|
2704
2706
|
}
|
|
2705
2707
|
(c = m.animations) != null && c.in && m.animations.in.composition.forEach(
|
|
2706
|
-
(
|
|
2708
|
+
(y) => {
|
|
2707
2709
|
var h;
|
|
2708
|
-
(h =
|
|
2709
|
-
(
|
|
2710
|
-
n.add(JSON.stringify(
|
|
2710
|
+
(h = y.details) != null && h.fonts && y.details.fonts.forEach(
|
|
2711
|
+
(k) => {
|
|
2712
|
+
n.add(JSON.stringify(k));
|
|
2711
2713
|
}
|
|
2712
2714
|
);
|
|
2713
2715
|
}
|
|
2714
2716
|
), (u = m.animations) != null && u.loop && m.animations.loop.composition.forEach(
|
|
2715
|
-
(
|
|
2717
|
+
(y) => {
|
|
2716
2718
|
var h;
|
|
2717
|
-
(h =
|
|
2718
|
-
(
|
|
2719
|
-
n.add(JSON.stringify(
|
|
2719
|
+
(h = y.details) != null && h.fonts && y.details.fonts.forEach(
|
|
2720
|
+
(k) => {
|
|
2721
|
+
n.add(JSON.stringify(k));
|
|
2720
2722
|
}
|
|
2721
2723
|
);
|
|
2722
2724
|
}
|
|
2723
2725
|
), (d = m.animations) != null && d.out && m.animations.out.composition.forEach(
|
|
2724
|
-
(
|
|
2726
|
+
(y) => {
|
|
2725
2727
|
var h;
|
|
2726
|
-
(h =
|
|
2727
|
-
(
|
|
2728
|
-
n.add(JSON.stringify(
|
|
2728
|
+
(h = y.details) != null && h.fonts && y.details.fonts.forEach(
|
|
2729
|
+
(k) => {
|
|
2730
|
+
n.add(JSON.stringify(k));
|
|
2729
2731
|
}
|
|
2730
2732
|
);
|
|
2731
2733
|
}
|
|
@@ -2739,16 +2741,16 @@ async function oa(t, r) {
|
|
|
2739
2741
|
Array.from(n).map((p) => JSON.parse(p))
|
|
2740
2742
|
);
|
|
2741
2743
|
for (const [p, m] of i) {
|
|
2742
|
-
const
|
|
2744
|
+
const y = await ws(
|
|
2743
2745
|
{ ...m.trackItem, details: m.details },
|
|
2744
2746
|
{
|
|
2745
2747
|
size: { width: m.details.width, height: m.details.height }
|
|
2746
2748
|
}
|
|
2747
2749
|
), h = ys(
|
|
2748
|
-
|
|
2750
|
+
y.details.svgString,
|
|
2749
2751
|
m.details.colorMap
|
|
2750
2752
|
);
|
|
2751
|
-
|
|
2753
|
+
y.details.svgString = h, e[p] = y;
|
|
2752
2754
|
}
|
|
2753
2755
|
const o = G(e);
|
|
2754
2756
|
return {
|
|
@@ -2822,29 +2824,29 @@ function ua(t, r) {
|
|
|
2822
2824
|
e.transitionIds = e.transitionIds.filter(
|
|
2823
2825
|
(h) => h !== p.id
|
|
2824
2826
|
);
|
|
2825
|
-
const
|
|
2827
|
+
const y = {};
|
|
2826
2828
|
e.transitionIds.forEach(
|
|
2827
|
-
(h) =>
|
|
2828
|
-
), e.transitionsMap =
|
|
2829
|
+
(h) => y[h] = e.transitionsMap[h]
|
|
2830
|
+
), e.transitionsMap = y;
|
|
2829
2831
|
}
|
|
2830
2832
|
}
|
|
2831
2833
|
if (d) {
|
|
2832
|
-
const m = u.display.to - u.display.from,
|
|
2834
|
+
const m = u.display.to - u.display.from, y = {};
|
|
2833
2835
|
d.duration / 2 > m ? (e.transitionIds = e.transitionIds.filter(
|
|
2834
2836
|
(h) => h !== d.id
|
|
2835
2837
|
), e.transitionIds.forEach(
|
|
2836
|
-
(h) =>
|
|
2837
|
-
), e.transitionsMap =
|
|
2838
|
+
(h) => y[h] = e.transitionsMap[h]
|
|
2839
|
+
), e.transitionsMap = y) : (e.transitionIds = e.transitionIds.map((h) => e.transitionsMap[h].fromId === c.id ? h.replace(c.id, o) : h), Object.keys(e.transitionsMap).forEach((h) => {
|
|
2838
2840
|
if (e.transitionsMap[h].fromId === c.id) {
|
|
2839
|
-
const
|
|
2840
|
-
I
|
|
2841
|
+
const I = h.replace(c.id, o);
|
|
2842
|
+
y[I] = {
|
|
2841
2843
|
...e.transitionsMap[h],
|
|
2842
|
-
id:
|
|
2844
|
+
id: I,
|
|
2843
2845
|
fromId: o
|
|
2844
2846
|
};
|
|
2845
2847
|
} else
|
|
2846
|
-
|
|
2847
|
-
}), e.transitionsMap =
|
|
2848
|
+
y[h] = e.transitionsMap[h];
|
|
2849
|
+
}), e.transitionsMap = y);
|
|
2848
2850
|
}
|
|
2849
2851
|
return e.trackItemsMap[n] = c, e.trackItemsMap[o] = u, e.trackItemIds.push(o), e.tracks.forEach((m) => {
|
|
2850
2852
|
m.items.includes(n) && m.items.push(o);
|
|
@@ -2875,11 +2877,11 @@ async function la(t, r) {
|
|
|
2875
2877
|
...n[c].metadata,
|
|
2876
2878
|
...u.metadata
|
|
2877
2879
|
} : n[c].metadata = u.metadata), u.display || u.playbackRate) {
|
|
2878
|
-
const d = u.playbackRate, p = n[c].playbackRate || 1, m = n[c].display,
|
|
2880
|
+
const d = u.playbackRate, p = n[c].playbackRate || 1, m = n[c].display, k = (m.to - m.from) * p / d, I = {
|
|
2879
2881
|
from: m.from,
|
|
2880
|
-
to: m.from +
|
|
2882
|
+
to: m.from + k
|
|
2881
2883
|
};
|
|
2882
|
-
n[c].display =
|
|
2884
|
+
n[c].display = I, n[c].playbackRate = d;
|
|
2883
2885
|
}
|
|
2884
2886
|
u.animations && (n[c].animations = {
|
|
2885
2887
|
...n[c].animations,
|
|
@@ -2904,24 +2906,24 @@ async function da(t, r) {
|
|
|
2904
2906
|
if (!i.details.src) return {};
|
|
2905
2907
|
if (o.type === "image") {
|
|
2906
2908
|
const u = await Ue(i.details.src), d = o.details.width || 0, p = o.details.height || 0;
|
|
2907
|
-
let m = u.width,
|
|
2909
|
+
let m = u.width, y = u.height;
|
|
2908
2910
|
const h = u.width / u.height;
|
|
2909
|
-
d / p > h ? (m = d,
|
|
2911
|
+
d / p > h ? (m = d, y = d / h) : (y = p, m = p * h), c.crop = {
|
|
2910
2912
|
x: 0,
|
|
2911
2913
|
y: 0,
|
|
2912
2914
|
height: c.height,
|
|
2913
2915
|
width: c.width
|
|
2914
|
-
}, i.details.width = m, i.details.height =
|
|
2916
|
+
}, i.details.width = m, i.details.height = y;
|
|
2915
2917
|
} else if (o.type === "video") {
|
|
2916
2918
|
const u = await Dn(i.details.src), d = o.details.width || 0, p = o.details.height || 0;
|
|
2917
|
-
let m = u.width,
|
|
2919
|
+
let m = u.width, y = u.height;
|
|
2918
2920
|
const h = u.width / u.height;
|
|
2919
|
-
d / p > h ? (m = d,
|
|
2921
|
+
d / p > h ? (m = d, y = d / h) : (y = p, m = p * h), c.crop = {
|
|
2920
2922
|
x: 0,
|
|
2921
2923
|
y: 0,
|
|
2922
2924
|
height: c.height,
|
|
2923
2925
|
width: c.width
|
|
2924
|
-
}, i.details.width = m, i.details.height =
|
|
2926
|
+
}, i.details.width = m, i.details.height = y;
|
|
2925
2927
|
}
|
|
2926
2928
|
return i.details && (o.details = { ...c, ...i.details }, i.details = o.details), e.trackItemsMap[n] = {
|
|
2927
2929
|
...e.trackItemsMap[n],
|
|
@@ -2953,58 +2955,59 @@ function pa(t, { idTrack: r, idItems: e }, n) {
|
|
|
2953
2955
|
});
|
|
2954
2956
|
}
|
|
2955
2957
|
async function ha(t, r, e = {}) {
|
|
2958
|
+
var k;
|
|
2956
2959
|
const n = C(t), i = r.trackItems.map(
|
|
2957
|
-
(
|
|
2960
|
+
(I) => aa(I, {
|
|
2958
2961
|
size: n.size
|
|
2959
2962
|
})
|
|
2960
2963
|
), o = await Promise.all(i);
|
|
2961
|
-
r.tracks.forEach((
|
|
2964
|
+
(k = r.tracks) == null || k.forEach((I) => {
|
|
2962
2965
|
pa(
|
|
2963
2966
|
o,
|
|
2964
|
-
{ idTrack:
|
|
2967
|
+
{ idTrack: I.id, idItems: I.items },
|
|
2965
2968
|
n
|
|
2966
2969
|
);
|
|
2967
2970
|
});
|
|
2968
|
-
const c = Os(r.tracks, r.trackItems), u = [], d = o.map((
|
|
2969
|
-
r.trackItems.forEach((
|
|
2970
|
-
if (
|
|
2971
|
+
const c = Os(r.tracks, r.trackItems), u = [], d = o.map((I) => I.id);
|
|
2972
|
+
r.trackItems.forEach((I) => {
|
|
2973
|
+
if (I.type !== "template") return;
|
|
2971
2974
|
n.trackItemsMap = {
|
|
2972
2975
|
...n.trackItemsMap,
|
|
2973
|
-
...
|
|
2976
|
+
...I.trackItemsMap
|
|
2974
2977
|
}, n.transitionsMap = {
|
|
2975
2978
|
...n.transitionsMap,
|
|
2976
|
-
...
|
|
2979
|
+
...I.transitionsMap
|
|
2977
2980
|
};
|
|
2978
|
-
const
|
|
2979
|
-
id:
|
|
2980
|
-
items:
|
|
2981
|
-
transitions:
|
|
2982
|
-
tracks:
|
|
2981
|
+
const b = {
|
|
2982
|
+
id: I.id,
|
|
2983
|
+
items: I.trackItemIds,
|
|
2984
|
+
transitions: I.transitionsIds || [],
|
|
2985
|
+
tracks: I.tracks
|
|
2983
2986
|
};
|
|
2984
|
-
u.push(
|
|
2987
|
+
u.push(b);
|
|
2985
2988
|
});
|
|
2986
2989
|
const p = [], m = {};
|
|
2987
|
-
if (o.forEach((
|
|
2988
|
-
p.push(
|
|
2990
|
+
if (o.forEach((I) => {
|
|
2991
|
+
p.push(I.id), m[I.id] = I;
|
|
2989
2992
|
}), xs(
|
|
2990
2993
|
n.tracks,
|
|
2991
2994
|
c
|
|
2992
2995
|
))
|
|
2993
|
-
n.tracks.forEach((
|
|
2994
|
-
c.forEach((
|
|
2995
|
-
|
|
2996
|
-
[
|
|
2996
|
+
n.tracks.forEach((I) => {
|
|
2997
|
+
c.forEach((b) => {
|
|
2998
|
+
I.id === b.id && (I.magnetic && nt(
|
|
2999
|
+
[I],
|
|
2997
3000
|
n.trackItemsMap,
|
|
2998
3001
|
d
|
|
2999
|
-
),
|
|
3002
|
+
), I.items.push(...p));
|
|
3000
3003
|
});
|
|
3001
3004
|
});
|
|
3002
3005
|
else {
|
|
3003
|
-
const
|
|
3004
|
-
Math.max(
|
|
3006
|
+
const I = e.trackIndex || 0, b = Math.min(
|
|
3007
|
+
Math.max(I, 0),
|
|
3005
3008
|
n.tracks.length
|
|
3006
3009
|
);
|
|
3007
|
-
n.tracks.splice(
|
|
3010
|
+
n.tracks.splice(b, 0, ...c);
|
|
3008
3011
|
}
|
|
3009
3012
|
n.trackItemsMap = {
|
|
3010
3013
|
...n.trackItemsMap,
|
|
@@ -3013,7 +3016,7 @@ async function ha(t, r, e = {}) {
|
|
|
3013
3016
|
...n.trackItemIds,
|
|
3014
3017
|
...p
|
|
3015
3018
|
], n.structure = [...n.structure, ...u];
|
|
3016
|
-
const h = n.tracks.filter((
|
|
3019
|
+
const h = n.tracks.filter((I) => I.magnetic);
|
|
3017
3020
|
return nt(h, n.trackItemsMap, d), n.duration = G(n.trackItemsMap), {
|
|
3018
3021
|
trackItemIds: n.trackItemIds,
|
|
3019
3022
|
trackItemsMap: n.trackItemsMap,
|
|
@@ -3152,43 +3155,43 @@ async function va(t, r, e = {}) {
|
|
|
3152
3155
|
size: n.size,
|
|
3153
3156
|
scaleMode: e.scaleMode,
|
|
3154
3157
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3155
|
-
}),
|
|
3158
|
+
}), y = {
|
|
3156
3159
|
id: m.id,
|
|
3157
3160
|
items: c,
|
|
3158
3161
|
transitions: [],
|
|
3159
3162
|
tracks: u
|
|
3160
|
-
},
|
|
3163
|
+
}, k = [{
|
|
3161
3164
|
...m,
|
|
3162
3165
|
type: i,
|
|
3163
3166
|
details: p
|
|
3164
|
-
}],
|
|
3165
|
-
|
|
3166
|
-
...
|
|
3167
|
+
}], I = St(n, k, e);
|
|
3168
|
+
I.trackItemsMap = {
|
|
3169
|
+
...I.trackItemsMap,
|
|
3167
3170
|
...o,
|
|
3168
3171
|
[m.id]: {
|
|
3169
3172
|
...m,
|
|
3170
3173
|
type: i,
|
|
3171
3174
|
details: p
|
|
3172
3175
|
}
|
|
3173
|
-
},
|
|
3174
|
-
const b =
|
|
3175
|
-
return nt(b,
|
|
3176
|
-
|
|
3177
|
-
...
|
|
3176
|
+
}, I.structure = [...I.structure, y], I.duration = G(I.trackItemsMap);
|
|
3177
|
+
const b = I.tracks.filter((_) => _.magnetic);
|
|
3178
|
+
return nt(b, I.trackItemsMap, [m.id]), d && Object.keys(d).forEach((_) => {
|
|
3179
|
+
I.trackItemsMap[_] = {
|
|
3180
|
+
...I.trackItemsMap[_],
|
|
3178
3181
|
details: {
|
|
3179
3182
|
...d[_].details
|
|
3180
3183
|
}
|
|
3181
3184
|
};
|
|
3182
3185
|
}), {
|
|
3183
|
-
trackItemIds:
|
|
3184
|
-
trackItemsMap:
|
|
3185
|
-
tracks:
|
|
3186
|
-
duration:
|
|
3187
|
-
structure:
|
|
3186
|
+
trackItemIds: I.trackItemIds,
|
|
3187
|
+
trackItemsMap: I.trackItemsMap,
|
|
3188
|
+
tracks: I.tracks,
|
|
3189
|
+
duration: I.duration,
|
|
3190
|
+
structure: I.structure
|
|
3188
3191
|
};
|
|
3189
3192
|
}
|
|
3190
3193
|
async function ge(t, r, e = {}, n) {
|
|
3191
|
-
const i = C(t), o = (
|
|
3194
|
+
const i = C(t), o = (y) => y.display ? y.display : {
|
|
3192
3195
|
from: 0,
|
|
3193
3196
|
to: i.duration
|
|
3194
3197
|
}, c = [];
|
|
@@ -3235,9 +3238,9 @@ async function ge(t, r, e = {}, n) {
|
|
|
3235
3238
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3236
3239
|
})
|
|
3237
3240
|
);
|
|
3238
|
-
const u = await Promise.all(c), d = u.map((
|
|
3241
|
+
const u = await Promise.all(c), d = u.map((y) => y.id), p = St(i, u, e);
|
|
3239
3242
|
p.duration = G(p.trackItemsMap);
|
|
3240
|
-
const m = p.tracks.filter((
|
|
3243
|
+
const m = p.tracks.filter((y) => y.magnetic);
|
|
3241
3244
|
return nt(m, p.trackItemsMap, d), {
|
|
3242
3245
|
trackItemIds: p.trackItemIds,
|
|
3243
3246
|
trackItemsMap: p.trackItemsMap,
|
|
@@ -3246,11 +3249,11 @@ async function ge(t, r, e = {}, n) {
|
|
|
3246
3249
|
};
|
|
3247
3250
|
}
|
|
3248
3251
|
async function _a(t, r, e = {}) {
|
|
3249
|
-
const n = C(t), i = "template", o = r.trackItemsMap, c = r.trackItemIds, u = r.transitionsMap, d = r.transitionIds || [], p = r.tracks || [], m = r.structure || [], { details:
|
|
3252
|
+
const n = C(t), i = "template", o = r.trackItemsMap, c = r.trackItemIds, u = r.transitionsMap, d = r.transitionIds || [], p = r.tracks || [], m = r.structure || [], { details: y, ...h } = await Ss(r, {
|
|
3250
3253
|
size: n.size,
|
|
3251
3254
|
scaleMode: e.scaleMode,
|
|
3252
3255
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3253
|
-
}),
|
|
3256
|
+
}), k = {
|
|
3254
3257
|
id: h.id,
|
|
3255
3258
|
items: c,
|
|
3256
3259
|
transitions: d,
|
|
@@ -3258,7 +3261,7 @@ async function _a(t, r, e = {}) {
|
|
|
3258
3261
|
}, b = [{
|
|
3259
3262
|
...h,
|
|
3260
3263
|
type: i,
|
|
3261
|
-
details:
|
|
3264
|
+
details: y
|
|
3262
3265
|
}], _ = St(n, b, e);
|
|
3263
3266
|
_.transitionIds = [
|
|
3264
3267
|
..._.transitionIds,
|
|
@@ -3272,11 +3275,11 @@ async function _a(t, r, e = {}) {
|
|
|
3272
3275
|
[h.id]: {
|
|
3273
3276
|
...h,
|
|
3274
3277
|
type: i,
|
|
3275
|
-
details:
|
|
3278
|
+
details: y
|
|
3276
3279
|
}
|
|
3277
3280
|
}, _.structure = [
|
|
3278
3281
|
..._.structure,
|
|
3279
|
-
|
|
3282
|
+
k,
|
|
3280
3283
|
...m
|
|
3281
3284
|
], _.duration = G(_.trackItemsMap);
|
|
3282
3285
|
const f = _.tracks.filter((v) => v.magnetic);
|
|
@@ -3290,43 +3293,43 @@ async function _a(t, r, e = {}) {
|
|
|
3290
3293
|
};
|
|
3291
3294
|
}
|
|
3292
3295
|
async function Sa(t, r, e = {}) {
|
|
3293
|
-
const n = C(t), i = r.map((
|
|
3296
|
+
const n = C(t), i = r.map((y) => Es(y, {
|
|
3294
3297
|
size: e.size
|
|
3295
3298
|
})), o = await Promise.all(i), c = Os(
|
|
3296
3299
|
[
|
|
3297
3300
|
{
|
|
3298
3301
|
accepts: ["caption"],
|
|
3299
3302
|
type: "caption",
|
|
3300
|
-
items: o.map((
|
|
3303
|
+
items: o.map((y) => y.id)
|
|
3301
3304
|
}
|
|
3302
3305
|
],
|
|
3303
3306
|
o
|
|
3304
3307
|
), u = [], d = {};
|
|
3305
|
-
if (o.forEach((
|
|
3306
|
-
const { details: h, metadata:
|
|
3307
|
-
u.push(
|
|
3308
|
-
...
|
|
3308
|
+
if (o.forEach((y) => {
|
|
3309
|
+
const { details: h, metadata: k, ...I } = y;
|
|
3310
|
+
u.push(y.id), d[y.id] = {
|
|
3311
|
+
...I,
|
|
3309
3312
|
details: {
|
|
3310
3313
|
...h,
|
|
3311
|
-
...
|
|
3314
|
+
...k
|
|
3312
3315
|
}
|
|
3313
3316
|
};
|
|
3314
3317
|
}), xs(
|
|
3315
3318
|
n.tracks,
|
|
3316
3319
|
c
|
|
3317
3320
|
))
|
|
3318
|
-
n.tracks.forEach((
|
|
3321
|
+
n.tracks.forEach((y) => {
|
|
3319
3322
|
c.forEach((h) => {
|
|
3320
|
-
|
|
3321
|
-
[
|
|
3323
|
+
y.id === h.id && (y.magnetic && nt(
|
|
3324
|
+
[y],
|
|
3322
3325
|
n.trackItemsMap,
|
|
3323
3326
|
u
|
|
3324
|
-
),
|
|
3327
|
+
), y.items.push(...u));
|
|
3325
3328
|
});
|
|
3326
3329
|
});
|
|
3327
3330
|
else {
|
|
3328
|
-
const
|
|
3329
|
-
Math.max(
|
|
3331
|
+
const y = e.trackIndex || 0, h = Math.min(
|
|
3332
|
+
Math.max(y, 0),
|
|
3330
3333
|
n.tracks.length
|
|
3331
3334
|
);
|
|
3332
3335
|
n.tracks.splice(h, 0, ...c);
|
|
@@ -3338,7 +3341,7 @@ async function Sa(t, r, e = {}) {
|
|
|
3338
3341
|
...n.trackItemIds,
|
|
3339
3342
|
...u
|
|
3340
3343
|
], n.duration = G(n.trackItemsMap);
|
|
3341
|
-
const m = n.tracks.filter((
|
|
3344
|
+
const m = n.tracks.filter((y) => y.magnetic);
|
|
3342
3345
|
return nt(
|
|
3343
3346
|
m,
|
|
3344
3347
|
n.trackItemsMap,
|
|
@@ -3364,12 +3367,17 @@ async function wa(t, r) {
|
|
|
3364
3367
|
var u;
|
|
3365
3368
|
(u = c.details) != null && u.fonts && i.push(...c.details.fonts);
|
|
3366
3369
|
}
|
|
3367
|
-
) : r.animations.out
|
|
3370
|
+
) : r.animations.out ? r.animations.out.composition.forEach(
|
|
3368
3371
|
(c) => {
|
|
3369
3372
|
var u;
|
|
3370
3373
|
(u = c.details) != null && u.fonts && i.push(...c.details.fonts);
|
|
3371
3374
|
}
|
|
3372
|
-
)
|
|
3375
|
+
) : r.animations.timed && r.animations.timed.composition.forEach(
|
|
3376
|
+
(c) => {
|
|
3377
|
+
var u;
|
|
3378
|
+
(u = c.details) != null && u.fonts && i.push(...c.details.fonts);
|
|
3379
|
+
}
|
|
3380
|
+
), i.length > 0 && await He(i), o.in && r.animations.in ? o.in = r.animations.in : o.out && r.animations.out ? o.out = r.animations.out : o.loop && r.animations.loop ? o.loop = r.animations.loop : !o.out && r.animations.out ? o.out = r.animations.out : !o.in && r.animations.in ? o.in = r.animations.in : !o.loop && r.animations.loop ? o.loop = r.animations.loop : o = r.animations, (r.animations.in || r.animations.out || r.animations.loop) && delete o.timed, r.animations.timed && (o.timed = r.animations.timed, delete o.in, delete o.out, delete o.loop), n.animations = o, {
|
|
3373
3381
|
trackItemsMap: e.trackItemsMap
|
|
3374
3382
|
};
|
|
3375
3383
|
}
|
|
@@ -3436,7 +3444,7 @@ function Ea(t) {
|
|
|
3436
3444
|
}
|
|
3437
3445
|
);
|
|
3438
3446
|
}
|
|
3439
|
-
}),
|
|
3447
|
+
}), y = o.subscribe((f) => {
|
|
3440
3448
|
if (f.key === $i) return t.undo();
|
|
3441
3449
|
if (f.key === Fi) return t.redo();
|
|
3442
3450
|
}), h = d.subscribe((f) => {
|
|
@@ -3453,7 +3461,7 @@ function Ea(t) {
|
|
|
3453
3461
|
}
|
|
3454
3462
|
);
|
|
3455
3463
|
}
|
|
3456
|
-
}),
|
|
3464
|
+
}), k = i.subscribe(async (f) => {
|
|
3457
3465
|
var v, T, w, A;
|
|
3458
3466
|
if (f.key === Ci) {
|
|
3459
3467
|
const S = ((v = f.value) == null ? void 0 : v.payload.trackItemIds) || [];
|
|
@@ -3486,7 +3494,7 @@ function Ea(t) {
|
|
|
3486
3494
|
kind: "update:details"
|
|
3487
3495
|
});
|
|
3488
3496
|
}
|
|
3489
|
-
}),
|
|
3497
|
+
}), I = n.subscribe(async (f) => {
|
|
3490
3498
|
var L, R, Y, x, F, tt, Qt, te, Se, we, Te, Ee, z, Ae, Me, st, ee, $, re, xe, it, ne, se, zt, $t, ie, Ft, ae, Nt, oe, Oe, Ce, wt, Lt, ce, ue, ut, Tt, Re, gt, Et, Ht, et, le, de, Pe, Ut, At, fe, Mt, yt, at, xt, Wt, It, Bt, bt, jt, Yt;
|
|
3491
3499
|
const v = C(t.getState()), T = ((R = (L = f.value) == null ? void 0 : L.options) == null ? void 0 : R.isSelected) || !1, w = (x = (Y = f.value) == null ? void 0 : Y.options) == null ? void 0 : x.scaleMode, A = (tt = (F = f.value) == null ? void 0 : F.options) == null ? void 0 : tt.scaleAspectRatio, S = (te = (Qt = f.value) == null ? void 0 : Qt.options) == null ? void 0 : te.trackIndex;
|
|
3492
3500
|
let E = {};
|
|
@@ -3648,7 +3656,7 @@ function Ea(t) {
|
|
|
3648
3656
|
});
|
|
3649
3657
|
return {
|
|
3650
3658
|
unsubscribe: () => {
|
|
3651
|
-
|
|
3659
|
+
I.unsubscribe(), b.unsubscribe(), _.unsubscribe(), y.unsubscribe(), k.unsubscribe(), m.unsubscribe(), h.unsubscribe(), p.unsubscribe();
|
|
3652
3660
|
}
|
|
3653
3661
|
};
|
|
3654
3662
|
}
|
|
@@ -3658,19 +3666,19 @@ function Cs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
|
3658
3666
|
let i = [];
|
|
3659
3667
|
const o = Array.isArray(t);
|
|
3660
3668
|
for (const p in t) {
|
|
3661
|
-
const m = t[p],
|
|
3669
|
+
const m = t[p], y = o ? +p : p;
|
|
3662
3670
|
if (!(p in r)) {
|
|
3663
3671
|
i.push({
|
|
3664
3672
|
type: "REMOVE",
|
|
3665
|
-
path: [
|
|
3673
|
+
path: [y],
|
|
3666
3674
|
oldValue: t[p]
|
|
3667
3675
|
});
|
|
3668
3676
|
continue;
|
|
3669
3677
|
}
|
|
3670
|
-
const h = r[p],
|
|
3671
|
-
m && h &&
|
|
3672
|
-
!(Number.isNaN(m) && Number.isNaN(h)) && !(
|
|
3673
|
-
path: [
|
|
3678
|
+
const h = r[p], k = typeof m == "object" && typeof h == "object" && Array.isArray(m) === Array.isArray(h);
|
|
3679
|
+
m && h && k && !Aa[(d = (u = Object.getPrototypeOf(m)) == null ? void 0 : u.constructor) == null ? void 0 : d.name] && (!e.cyclesFix || !n.includes(m)) ? i.push.apply(i, Cs(m, h, e, e.cyclesFix ? n.concat([m]) : []).map((I) => (I.path.unshift(y), I))) : m !== h && // treat NaN values as equivalent
|
|
3680
|
+
!(Number.isNaN(m) && Number.isNaN(h)) && !(k && (isNaN(m) ? m + "" == h + "" : +m == +h)) && i.push({
|
|
3681
|
+
path: [y],
|
|
3674
3682
|
type: "CHANGE",
|
|
3675
3683
|
value: h,
|
|
3676
3684
|
oldValue: m
|
|
@@ -4156,81 +4164,81 @@ function ts() {
|
|
|
4156
4164
|
"Patching reserved attributes like __proto__, prototype and constructor is not allowed"
|
|
4157
4165
|
);
|
|
4158
4166
|
const r = "replace", e = "add", n = "remove";
|
|
4159
|
-
function i(h,
|
|
4167
|
+
function i(h, k, I, b) {
|
|
4160
4168
|
switch (h.type_) {
|
|
4161
4169
|
case 0:
|
|
4162
4170
|
case 2:
|
|
4163
4171
|
return c(
|
|
4164
4172
|
h,
|
|
4165
|
-
g,
|
|
4166
4173
|
k,
|
|
4174
|
+
I,
|
|
4167
4175
|
b
|
|
4168
4176
|
);
|
|
4169
4177
|
case 1:
|
|
4170
|
-
return o(h,
|
|
4178
|
+
return o(h, k, I, b);
|
|
4171
4179
|
case 3:
|
|
4172
4180
|
return u(
|
|
4173
4181
|
h,
|
|
4174
|
-
g,
|
|
4175
4182
|
k,
|
|
4183
|
+
I,
|
|
4176
4184
|
b
|
|
4177
4185
|
);
|
|
4178
4186
|
}
|
|
4179
4187
|
}
|
|
4180
|
-
function o(h,
|
|
4188
|
+
function o(h, k, I, b) {
|
|
4181
4189
|
let { base_: _, assigned_: f } = h, v = h.copy_;
|
|
4182
|
-
v.length < _.length && ([_, v] = [v, _], [
|
|
4190
|
+
v.length < _.length && ([_, v] = [v, _], [I, b] = [b, I]);
|
|
4183
4191
|
for (let T = 0; T < _.length; T++)
|
|
4184
4192
|
if (f[T] && v[T] !== _[T]) {
|
|
4185
|
-
const w =
|
|
4186
|
-
|
|
4193
|
+
const w = k.concat([T]);
|
|
4194
|
+
I.push({
|
|
4187
4195
|
op: r,
|
|
4188
4196
|
path: w,
|
|
4189
4197
|
// Need to maybe clone it, as it can in fact be the original value
|
|
4190
4198
|
// due to the base/copy inversion at the start of this function
|
|
4191
|
-
value:
|
|
4199
|
+
value: y(v[T])
|
|
4192
4200
|
}), b.push({
|
|
4193
4201
|
op: r,
|
|
4194
4202
|
path: w,
|
|
4195
|
-
value:
|
|
4203
|
+
value: y(_[T])
|
|
4196
4204
|
});
|
|
4197
4205
|
}
|
|
4198
4206
|
for (let T = _.length; T < v.length; T++) {
|
|
4199
|
-
const w =
|
|
4200
|
-
|
|
4207
|
+
const w = k.concat([T]);
|
|
4208
|
+
I.push({
|
|
4201
4209
|
op: e,
|
|
4202
4210
|
path: w,
|
|
4203
4211
|
// Need to maybe clone it, as it can in fact be the original value
|
|
4204
4212
|
// due to the base/copy inversion at the start of this function
|
|
4205
|
-
value:
|
|
4213
|
+
value: y(v[T])
|
|
4206
4214
|
});
|
|
4207
4215
|
}
|
|
4208
4216
|
for (let T = v.length - 1; _.length <= T; --T) {
|
|
4209
|
-
const w =
|
|
4217
|
+
const w = k.concat([T]);
|
|
4210
4218
|
b.push({
|
|
4211
4219
|
op: n,
|
|
4212
4220
|
path: w
|
|
4213
4221
|
});
|
|
4214
4222
|
}
|
|
4215
4223
|
}
|
|
4216
|
-
function c(h,
|
|
4224
|
+
function c(h, k, I, b) {
|
|
4217
4225
|
const { base_: _, copy_: f } = h;
|
|
4218
4226
|
Ze(h.assigned_, (v, T) => {
|
|
4219
4227
|
const w = gn(_, v), A = gn(f, v), S = T ? Qe(_, v) ? r : e : n;
|
|
4220
4228
|
if (w === A && S === r)
|
|
4221
4229
|
return;
|
|
4222
|
-
const E =
|
|
4223
|
-
|
|
4224
|
-
S === e ? { op: n, path: E } : S === n ? { op: e, path: E, value:
|
|
4230
|
+
const E = k.concat(v);
|
|
4231
|
+
I.push(S === n ? { op: S, path: E } : { op: S, path: E, value: A }), b.push(
|
|
4232
|
+
S === e ? { op: n, path: E } : S === n ? { op: e, path: E, value: y(w) } : { op: r, path: E, value: y(w) }
|
|
4225
4233
|
);
|
|
4226
4234
|
});
|
|
4227
4235
|
}
|
|
4228
|
-
function u(h,
|
|
4236
|
+
function u(h, k, I, b) {
|
|
4229
4237
|
let { base_: _, copy_: f } = h, v = 0;
|
|
4230
4238
|
_.forEach((T) => {
|
|
4231
4239
|
if (!f.has(T)) {
|
|
4232
|
-
const w =
|
|
4233
|
-
|
|
4240
|
+
const w = k.concat([v]);
|
|
4241
|
+
I.push({
|
|
4234
4242
|
op: n,
|
|
4235
4243
|
path: w,
|
|
4236
4244
|
value: T
|
|
@@ -4243,8 +4251,8 @@ function ts() {
|
|
|
4243
4251
|
v++;
|
|
4244
4252
|
}), v = 0, f.forEach((T) => {
|
|
4245
4253
|
if (!_.has(T)) {
|
|
4246
|
-
const w =
|
|
4247
|
-
|
|
4254
|
+
const w = k.concat([v]);
|
|
4255
|
+
I.push({
|
|
4248
4256
|
op: e,
|
|
4249
4257
|
path: w,
|
|
4250
4258
|
value: T
|
|
@@ -4257,27 +4265,27 @@ function ts() {
|
|
|
4257
4265
|
v++;
|
|
4258
4266
|
});
|
|
4259
4267
|
}
|
|
4260
|
-
function d(h,
|
|
4261
|
-
|
|
4268
|
+
function d(h, k, I, b) {
|
|
4269
|
+
I.push({
|
|
4262
4270
|
op: r,
|
|
4263
4271
|
path: [],
|
|
4264
|
-
value:
|
|
4272
|
+
value: k === zn ? void 0 : k
|
|
4265
4273
|
}), b.push({
|
|
4266
4274
|
op: r,
|
|
4267
4275
|
path: [],
|
|
4268
4276
|
value: h
|
|
4269
4277
|
});
|
|
4270
4278
|
}
|
|
4271
|
-
function p(h,
|
|
4272
|
-
return
|
|
4273
|
-
const { path: b, op: _ } =
|
|
4279
|
+
function p(h, k) {
|
|
4280
|
+
return k.forEach((I) => {
|
|
4281
|
+
const { path: b, op: _ } = I;
|
|
4274
4282
|
let f = h;
|
|
4275
4283
|
for (let A = 0; A < b.length - 1; A++) {
|
|
4276
4284
|
const S = ve(f);
|
|
4277
4285
|
let E = b[A];
|
|
4278
4286
|
typeof E != "string" && typeof E != "number" && (E = "" + E), (S === 0 || S === 1) && (E === "__proto__" || E === "constructor") && j(19), typeof f == "function" && E === "prototype" && j(19), f = gn(f, E), typeof f != "object" && j(18, b.join("/"));
|
|
4279
4287
|
}
|
|
4280
|
-
const v = ve(f), T = m(
|
|
4288
|
+
const v = ve(f), T = m(I.value), w = b[b.length - 1];
|
|
4281
4289
|
switch (_) {
|
|
4282
4290
|
case r:
|
|
4283
4291
|
switch (v) {
|
|
@@ -4306,7 +4314,7 @@ function ts() {
|
|
|
4306
4314
|
case 2:
|
|
4307
4315
|
return f.delete(w);
|
|
4308
4316
|
case 3:
|
|
4309
|
-
return f.delete(
|
|
4317
|
+
return f.delete(I.value);
|
|
4310
4318
|
default:
|
|
4311
4319
|
return delete f[w];
|
|
4312
4320
|
}
|
|
@@ -4322,16 +4330,16 @@ function ts() {
|
|
|
4322
4330
|
return h.map(m);
|
|
4323
4331
|
if (sr(h))
|
|
4324
4332
|
return new Map(
|
|
4325
|
-
Array.from(h.entries()).map(([
|
|
4333
|
+
Array.from(h.entries()).map(([I, b]) => [I, m(b)])
|
|
4326
4334
|
);
|
|
4327
4335
|
if (ir(h))
|
|
4328
4336
|
return new Set(Array.from(h).map(m));
|
|
4329
|
-
const
|
|
4330
|
-
for (const
|
|
4331
|
-
|
|
4332
|
-
return Qe(h, Je) && (
|
|
4337
|
+
const k = Object.create(be(h));
|
|
4338
|
+
for (const I in h)
|
|
4339
|
+
k[I] = m(h[I]);
|
|
4340
|
+
return Qe(h, Je) && (k[Je] = h[Je]), k;
|
|
4333
4341
|
}
|
|
4334
|
-
function
|
|
4342
|
+
function y(h) {
|
|
4335
4343
|
return ke(h) ? m(h) : h;
|
|
4336
4344
|
}
|
|
4337
4345
|
Ca("Patches", {
|
|
@@ -4672,7 +4680,7 @@ class Xo {
|
|
|
4672
4680
|
transitionsMap: u,
|
|
4673
4681
|
trackItemsMap: d,
|
|
4674
4682
|
structure: p
|
|
4675
|
-
}),
|
|
4683
|
+
}), y = [], h = [], k = [], I = [], b = [], _ = [];
|
|
4676
4684
|
e.forEach((x) => {
|
|
4677
4685
|
let F;
|
|
4678
4686
|
const tt = x.path.slice(1);
|
|
@@ -4688,20 +4696,20 @@ class Xo {
|
|
|
4688
4696
|
path: tt,
|
|
4689
4697
|
op: "add",
|
|
4690
4698
|
value: x.oldValue
|
|
4691
|
-
}, x.path.includes("trackItemIds") ?
|
|
4699
|
+
}, x.path.includes("trackItemIds") ? k.push(F) : x.path.includes("transitionIds") ? h.push(F) : x.path.includes("trackItemsMap") ? b.push(F) : x.path.includes("transitionsMap") ? I.push(F) : x.path.includes("tracks") ? y.push(F) : x.path.includes("structure") && _.push(F);
|
|
4692
4700
|
});
|
|
4693
4701
|
const f = this.applyPatch(
|
|
4694
4702
|
m.tracks,
|
|
4695
|
-
|
|
4703
|
+
y
|
|
4696
4704
|
), v = this.applyPatch(
|
|
4697
4705
|
m.transitionIds,
|
|
4698
4706
|
h
|
|
4699
4707
|
), T = this.applyPatch(
|
|
4700
4708
|
m.trackItemIds,
|
|
4701
|
-
|
|
4709
|
+
k
|
|
4702
4710
|
), w = this.applyPatch(
|
|
4703
4711
|
m.transitionsMap,
|
|
4704
|
-
|
|
4712
|
+
I
|
|
4705
4713
|
), A = this.applyPatch(
|
|
4706
4714
|
m.trackItemsMap,
|
|
4707
4715
|
b
|
|
@@ -4743,7 +4751,7 @@ class Xo {
|
|
|
4743
4751
|
transitionsMap: u,
|
|
4744
4752
|
trackItemsMap: d,
|
|
4745
4753
|
structure: p
|
|
4746
|
-
}),
|
|
4754
|
+
}), y = [], h = [], k = [], I = [], b = [], _ = [];
|
|
4747
4755
|
e.forEach((x) => {
|
|
4748
4756
|
let F;
|
|
4749
4757
|
const tt = x.path.slice(1);
|
|
@@ -4759,20 +4767,20 @@ class Xo {
|
|
|
4759
4767
|
path: tt,
|
|
4760
4768
|
op: "remove",
|
|
4761
4769
|
value: x.oldValue
|
|
4762
|
-
}, x.path.includes("trackItemIds") ?
|
|
4770
|
+
}, x.path.includes("trackItemIds") ? k.push(F) : x.path.includes("transitionIds") ? h.push(F) : x.path.includes("trackItemsMap") ? b.push(F) : x.path.includes("transitionsMap") ? I.push(F) : x.path.includes("structure") ? _.push(F) : y.push(F);
|
|
4763
4771
|
});
|
|
4764
4772
|
const f = this.applyPatch(
|
|
4765
4773
|
m.tracks,
|
|
4766
|
-
|
|
4774
|
+
y
|
|
4767
4775
|
), v = this.applyPatch(
|
|
4768
4776
|
m.transitionIds,
|
|
4769
4777
|
h
|
|
4770
4778
|
), T = this.applyPatch(
|
|
4771
4779
|
m.trackItemIds,
|
|
4772
|
-
|
|
4780
|
+
k
|
|
4773
4781
|
), w = this.applyPatch(
|
|
4774
4782
|
m.transitionsMap,
|
|
4775
|
-
|
|
4783
|
+
I
|
|
4776
4784
|
), A = this.applyPatch(
|
|
4777
4785
|
m.trackItemsMap,
|
|
4778
4786
|
b
|