@cliquify.me/state 4.0.16 → 4.0.17
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/events.d.ts +1 -0
- package/dist/handlers/add/composition.d.ts +1 -1
- package/dist/handlers/add/custom.d.ts +2 -2
- package/dist/index.es.js +1173 -1117
- package/dist/index.umd.js +2 -2
- package/dist/utils/load-item.d.ts +30 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fs = Object.defineProperty;
|
|
2
2
|
var Ls = (t, r, e) => r in t ? Fs(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
|
-
var
|
|
4
|
-
import { subject as
|
|
3
|
+
var Ut = (t, r, e) => Ls(t, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { subject as jt, filter as Wt, dispatch as Ns } from "@designcombo/events";
|
|
5
5
|
var bn = function(t, r) {
|
|
6
6
|
return bn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
7
7
|
e.__proto__ = n;
|
|
@@ -9,7 +9,7 @@ var bn = function(t, r) {
|
|
|
9
9
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
10
10
|
}, bn(t, r);
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function er(t, r) {
|
|
13
13
|
if (typeof r != "function" && r !== null)
|
|
14
14
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
15
15
|
bn(t, r);
|
|
@@ -50,7 +50,7 @@ function _n(t, r, e) {
|
|
|
50
50
|
(o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
|
|
51
51
|
return t.concat(o || Array.prototype.slice.call(r));
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ct(t) {
|
|
54
54
|
return typeof t == "function";
|
|
55
55
|
}
|
|
56
56
|
function as(t) {
|
|
@@ -102,7 +102,7 @@ var Ar = function() {
|
|
|
102
102
|
else
|
|
103
103
|
c.remove(this);
|
|
104
104
|
var m = this.initialTeardown;
|
|
105
|
-
if (
|
|
105
|
+
if (Ct(m))
|
|
106
106
|
try {
|
|
107
107
|
m();
|
|
108
108
|
} catch (k) {
|
|
@@ -112,10 +112,10 @@ var Ar = function() {
|
|
|
112
112
|
if (b) {
|
|
113
113
|
this._finalizers = null;
|
|
114
114
|
try {
|
|
115
|
-
for (var h = kn(b),
|
|
116
|
-
var
|
|
115
|
+
for (var h = kn(b), I = h.next(); !I.done; I = h.next()) {
|
|
116
|
+
var _ = I.value;
|
|
117
117
|
try {
|
|
118
|
-
|
|
118
|
+
Un(_);
|
|
119
119
|
} catch (k) {
|
|
120
120
|
o = o ?? [], k instanceof pn ? o = _n(_n([], vn(o)), vn(k.errors)) : o.push(k);
|
|
121
121
|
}
|
|
@@ -124,7 +124,7 @@ var Ar = function() {
|
|
|
124
124
|
n = { error: k };
|
|
125
125
|
} finally {
|
|
126
126
|
try {
|
|
127
|
-
|
|
127
|
+
I && !I.done && (i = h.return) && i.call(h);
|
|
128
128
|
} finally {
|
|
129
129
|
if (n) throw n.error;
|
|
130
130
|
}
|
|
@@ -137,7 +137,7 @@ var Ar = function() {
|
|
|
137
137
|
var e;
|
|
138
138
|
if (r && r !== this)
|
|
139
139
|
if (this.closed)
|
|
140
|
-
|
|
140
|
+
Un(r);
|
|
141
141
|
else {
|
|
142
142
|
if (r instanceof t) {
|
|
143
143
|
if (r.closed || r._hasParent(this))
|
|
@@ -164,14 +164,14 @@ var Ar = function() {
|
|
|
164
164
|
}(), t;
|
|
165
165
|
}(), os = Ar.EMPTY;
|
|
166
166
|
function cs(t) {
|
|
167
|
-
return t instanceof Ar || t && "closed" in t &&
|
|
167
|
+
return t instanceof Ar || t && "closed" in t && Ct(t.remove) && Ct(t.add) && Ct(t.unsubscribe);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function Un(t) {
|
|
170
|
+
Ct(t) ? t() : t.unsubscribe();
|
|
171
171
|
}
|
|
172
172
|
var Hs = {
|
|
173
173
|
Promise: void 0
|
|
174
|
-
},
|
|
174
|
+
}, Us = {
|
|
175
175
|
setTimeout: function(t, r) {
|
|
176
176
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
177
177
|
e[n - 2] = arguments[n];
|
|
@@ -182,21 +182,21 @@ var Hs = {
|
|
|
182
182
|
},
|
|
183
183
|
delegate: void 0
|
|
184
184
|
};
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function js(t) {
|
|
186
|
+
Us.setTimeout(function() {
|
|
187
187
|
throw t;
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function jn() {
|
|
191
191
|
}
|
|
192
192
|
function kr(t) {
|
|
193
193
|
t();
|
|
194
194
|
}
|
|
195
195
|
var us = function(t) {
|
|
196
|
-
|
|
196
|
+
er(r, t);
|
|
197
197
|
function r(e) {
|
|
198
198
|
var n = t.call(this) || this;
|
|
199
|
-
return n.isStopped = !1, e ? (n.destination = e, cs(e) && e.add(n)) : n.destination =
|
|
199
|
+
return n.isStopped = !1, e ? (n.destination = e, cs(e) && e.add(n)) : n.destination = Ys, n;
|
|
200
200
|
}
|
|
201
201
|
return r.create = function(e, n, i) {
|
|
202
202
|
return new wn(e, n, i);
|
|
@@ -223,7 +223,7 @@ var us = function(t) {
|
|
|
223
223
|
this.unsubscribe();
|
|
224
224
|
}
|
|
225
225
|
}, r;
|
|
226
|
-
}(Ar),
|
|
226
|
+
}(Ar), Ws = function() {
|
|
227
227
|
function t(r) {
|
|
228
228
|
this.partialObserver = r;
|
|
229
229
|
}
|
|
@@ -255,29 +255,29 @@ var us = function(t) {
|
|
|
255
255
|
}
|
|
256
256
|
}, t;
|
|
257
257
|
}(), wn = function(t) {
|
|
258
|
-
|
|
258
|
+
er(r, t);
|
|
259
259
|
function r(e, n, i) {
|
|
260
260
|
var o = t.call(this) || this, c;
|
|
261
|
-
return
|
|
261
|
+
return Ct(e) || !e ? c = {
|
|
262
262
|
next: e ?? void 0,
|
|
263
263
|
error: n ?? void 0,
|
|
264
264
|
complete: i ?? void 0
|
|
265
|
-
} : c = e, o.destination = new
|
|
265
|
+
} : c = e, o.destination = new Ws(c), o;
|
|
266
266
|
}
|
|
267
267
|
return r;
|
|
268
268
|
}(us);
|
|
269
269
|
function br(t) {
|
|
270
|
-
|
|
270
|
+
js(t);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Bs(t) {
|
|
273
273
|
throw t;
|
|
274
274
|
}
|
|
275
|
-
var
|
|
275
|
+
var Ys = {
|
|
276
276
|
closed: !0,
|
|
277
|
-
next:
|
|
278
|
-
error:
|
|
279
|
-
complete:
|
|
280
|
-
},
|
|
277
|
+
next: jn,
|
|
278
|
+
error: Bs,
|
|
279
|
+
complete: jn
|
|
280
|
+
}, Gs = function() {
|
|
281
281
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
282
282
|
}();
|
|
283
283
|
function Xs(t) {
|
|
@@ -290,7 +290,7 @@ function Ks(t) {
|
|
|
290
290
|
}, e);
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
var
|
|
293
|
+
var Wn = function() {
|
|
294
294
|
function t(r) {
|
|
295
295
|
r && (this._subscribe = r);
|
|
296
296
|
}
|
|
@@ -298,7 +298,7 @@ var Bn = function() {
|
|
|
298
298
|
var e = new t();
|
|
299
299
|
return e.source = this, e.operator = r, e;
|
|
300
300
|
}, t.prototype.subscribe = function(r, e, n) {
|
|
301
|
-
var i = this, o =
|
|
301
|
+
var i = this, o = qs(r) ? r : new wn(r, e, n);
|
|
302
302
|
return kr(function() {
|
|
303
303
|
var c = i, u = c.operator, d = c.source;
|
|
304
304
|
o.add(u ? u.call(o, d) : d ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -311,7 +311,7 @@ var Bn = function() {
|
|
|
311
311
|
}
|
|
312
312
|
}, t.prototype.forEach = function(r, e) {
|
|
313
313
|
var n = this;
|
|
314
|
-
return e =
|
|
314
|
+
return e = Bn(e), new e(function(i, o) {
|
|
315
315
|
var c = new wn({
|
|
316
316
|
next: function(u) {
|
|
317
317
|
try {
|
|
@@ -328,7 +328,7 @@ var Bn = function() {
|
|
|
328
328
|
}, t.prototype._subscribe = function(r) {
|
|
329
329
|
var e;
|
|
330
330
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(r);
|
|
331
|
-
}, t.prototype[
|
|
331
|
+
}, t.prototype[Gs] = function() {
|
|
332
332
|
return this;
|
|
333
333
|
}, t.prototype.pipe = function() {
|
|
334
334
|
for (var r = [], e = 0; e < arguments.length; e++)
|
|
@@ -336,7 +336,7 @@ var Bn = function() {
|
|
|
336
336
|
return Ks(r)(this);
|
|
337
337
|
}, t.prototype.toPromise = function(r) {
|
|
338
338
|
var e = this;
|
|
339
|
-
return r =
|
|
339
|
+
return r = Bn(r), new r(function(n, i) {
|
|
340
340
|
var o;
|
|
341
341
|
e.subscribe(function(c) {
|
|
342
342
|
return o = c;
|
|
@@ -350,32 +350,32 @@ var Bn = function() {
|
|
|
350
350
|
return new t(r);
|
|
351
351
|
}, t;
|
|
352
352
|
}();
|
|
353
|
-
function
|
|
353
|
+
function Bn(t) {
|
|
354
354
|
var r;
|
|
355
355
|
return (r = t ?? Hs.Promise) !== null && r !== void 0 ? r : Promise;
|
|
356
356
|
}
|
|
357
357
|
function Vs(t) {
|
|
358
|
-
return t &&
|
|
358
|
+
return t && Ct(t.next) && Ct(t.error) && Ct(t.complete);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function qs(t) {
|
|
361
361
|
return t && t instanceof us || Vs(t) && cs(t);
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var Js = as(function(t) {
|
|
364
364
|
return function() {
|
|
365
365
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
366
366
|
};
|
|
367
367
|
}), ls = function(t) {
|
|
368
|
-
|
|
368
|
+
er(r, t);
|
|
369
369
|
function r() {
|
|
370
370
|
var e = t.call(this) || this;
|
|
371
371
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
372
372
|
}
|
|
373
373
|
return r.prototype.lift = function(e) {
|
|
374
|
-
var n = new
|
|
374
|
+
var n = new Yn(this, this);
|
|
375
375
|
return n.operator = e, n;
|
|
376
376
|
}, r.prototype._throwIfClosed = function() {
|
|
377
377
|
if (this.closed)
|
|
378
|
-
throw new
|
|
378
|
+
throw new Js();
|
|
379
379
|
}, r.prototype.next = function(e) {
|
|
380
380
|
var n = this;
|
|
381
381
|
kr(function() {
|
|
@@ -438,13 +438,13 @@ var qs = as(function(t) {
|
|
|
438
438
|
var n = this, i = n.hasError, o = n.thrownError, c = n.isStopped;
|
|
439
439
|
i ? e.error(o) : c && e.complete();
|
|
440
440
|
}, r.prototype.asObservable = function() {
|
|
441
|
-
var e = new
|
|
441
|
+
var e = new Wn();
|
|
442
442
|
return e.source = this, e;
|
|
443
443
|
}, r.create = function(e, n) {
|
|
444
|
-
return new
|
|
444
|
+
return new Yn(e, n);
|
|
445
445
|
}, r;
|
|
446
|
-
}(
|
|
447
|
-
|
|
446
|
+
}(Wn), Yn = function(t) {
|
|
447
|
+
er(r, t);
|
|
448
448
|
function r(e, n) {
|
|
449
449
|
var i = t.call(this) || this;
|
|
450
450
|
return i.destination = e, i.source = n, i;
|
|
@@ -462,8 +462,8 @@ var qs = as(function(t) {
|
|
|
462
462
|
var n, i;
|
|
463
463
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && i !== void 0 ? i : os;
|
|
464
464
|
}, r;
|
|
465
|
-
}(ls),
|
|
466
|
-
|
|
465
|
+
}(ls), Gn = function(t) {
|
|
466
|
+
er(r, t);
|
|
467
467
|
function r(e) {
|
|
468
468
|
var n = t.call(this) || this;
|
|
469
469
|
return n._value = e, n;
|
|
@@ -492,88 +492,88 @@ 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]", b = "[object Date]", h = "[object Error]",
|
|
496
|
-
$[tt] = $[
|
|
497
|
-
var
|
|
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]", b = "[object Date]", h = "[object Error]", I = "[object Function]", _ = "[object GeneratorFunction]", k = "[object Map]", w = "[object Number]", f = "[object Null]", y = "[object Object]", v = "[object Promise]", S = "[object Proxy]", A = "[object RegExp]", E = "[object Set]", T = "[object String]", H = "[object Symbol]", R = "[object Undefined]", V = "[object WeakMap]", x = "[object ArrayBuffer]", F = "[object DataView]", tt = "[object Float32Array]", Gt = "[object Float64Array]", Xt = "[object Int8Array]", Ie = "[object Int16Array]", be = "[object Int32Array]", ke = "[object Uint8Array]", ve = "[object Uint8ClampedArray]", z = "[object Uint16Array]", _e = "[object Uint32Array]", Se = /[\\^$.*+?()[\]{}|]/g, st = /^\[object .+?Constructor\]$/, Kt = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
496
|
+
$[tt] = $[Gt] = $[Xt] = $[Ie] = $[be] = $[ke] = $[ve] = $[z] = $[_e] = !0, $[u] = $[d] = $[x] = $[m] = $[F] = $[b] = $[h] = $[I] = $[k] = $[w] = $[y] = $[A] = $[E] = $[T] = $[V] = !1;
|
|
497
|
+
var Vt = typeof dt == "object" && dt && dt.Object === Object && dt, we = typeof self == "object" && self && self.Object === Object && self, it = Vt || we || Function("return this")(), qt = r && !r.nodeType && r, Jt = qt && !0 && t && !t.nodeType && t, Rt = Jt && Jt.exports === qt, Pt = Rt && Vt.process, Zt = function() {
|
|
498
498
|
try {
|
|
499
|
-
return
|
|
499
|
+
return Pt && Pt.binding && Pt.binding("util");
|
|
500
500
|
} catch {
|
|
501
501
|
}
|
|
502
|
-
}(),
|
|
503
|
-
function
|
|
504
|
-
for (var l = -1,
|
|
502
|
+
}(), Dt = Zt && Zt.isTypedArray;
|
|
503
|
+
function Qt(s, a) {
|
|
504
|
+
for (var l = -1, g = s == null ? 0 : s.length, O = 0, M = []; ++l < g; ) {
|
|
505
505
|
var D = s[l];
|
|
506
|
-
a(D, l, s) && (
|
|
506
|
+
a(D, l, s) && (M[O++] = D);
|
|
507
507
|
}
|
|
508
|
-
return
|
|
508
|
+
return M;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
for (var l = -1,
|
|
510
|
+
function zt(s, a) {
|
|
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
|
-
function
|
|
516
|
-
for (var l = -1,
|
|
515
|
+
function te(s, a) {
|
|
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
|
-
function
|
|
522
|
-
for (var l = -1,
|
|
523
|
-
|
|
524
|
-
return
|
|
521
|
+
function Te(s, a) {
|
|
522
|
+
for (var l = -1, g = Array(s); ++l < s; )
|
|
523
|
+
g[l] = a(l);
|
|
524
|
+
return g;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ae(s) {
|
|
527
527
|
return function(a) {
|
|
528
528
|
return s(a);
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function _t(s, a) {
|
|
532
532
|
return s.has(a);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function $t(s, a) {
|
|
535
535
|
return s == null ? void 0 : s[a];
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function ee(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
|
-
function
|
|
543
|
+
function re(s, a) {
|
|
544
544
|
return function(l) {
|
|
545
545
|
return s(a(l));
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
548
|
function ct(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
|
-
var
|
|
555
|
-
var s = /[^.]+$/.exec(
|
|
554
|
+
var St = Array.prototype, Ee = Function.prototype, gt = Object.prototype, wt = it["__core-js_shared__"], Ft = Ee.toString, et = gt.hasOwnProperty, ne = function() {
|
|
555
|
+
var s = /[^.]+$/.exec(wt && wt.keys && wt.keys.IE_PROTO || "");
|
|
556
556
|
return s ? "Symbol(src)_1." + s : "";
|
|
557
|
-
}(),
|
|
558
|
-
"^" +
|
|
559
|
-
),
|
|
560
|
-
function
|
|
557
|
+
}(), se = gt.toString, Me = RegExp(
|
|
558
|
+
"^" + Ft.call(et).replace(Se, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
559
|
+
), Lt = Rt ? it.Buffer : void 0, Tt = it.Symbol, ie = it.Uint8Array, At = gt.propertyIsEnumerable, yt = St.splice, ht = Tt ? Tt.toStringTag : void 0, xe = Object.getOwnPropertySymbols, Fe = Lt ? Lt.isBuffer : void 0, ae = re(Object.keys, Object), Le = Mt(it, "DataView"), oe = Mt(it, "Map"), Ne = Mt(it, "Promise"), He = Mt(it, "Set"), Ue = Mt(it, "WeakMap"), Nt = Mt(Object, "create"), ar = rt(Le), Et = rt(oe), xr = rt(Ne), Or = rt(He), Cr = rt(Ue), or = Tt ? Tt.prototype : void 0, je = or ? or.valueOf : void 0;
|
|
560
|
+
function Y(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
|
-
function
|
|
568
|
-
this.__data__ =
|
|
567
|
+
function Rr() {
|
|
568
|
+
this.__data__ = Nt ? Nt(null) : {}, this.size = 0;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Pr(s) {
|
|
571
571
|
var a = this.has(s) && delete this.__data__[s];
|
|
572
572
|
return this.size -= a ? 1 : 0, a;
|
|
573
573
|
}
|
|
574
574
|
function Dr(s) {
|
|
575
575
|
var a = this.__data__;
|
|
576
|
-
if (
|
|
576
|
+
if (Nt) {
|
|
577
577
|
var l = a[s];
|
|
578
578
|
return l === n ? void 0 : l;
|
|
579
579
|
}
|
|
@@ -581,72 +581,72 @@ vr.exports;
|
|
|
581
581
|
}
|
|
582
582
|
function zr(s) {
|
|
583
583
|
var a = this.__data__;
|
|
584
|
-
return
|
|
584
|
+
return Nt ? a[s] !== void 0 : et.call(a, s);
|
|
585
585
|
}
|
|
586
586
|
function $r(s, a) {
|
|
587
587
|
var l = this.__data__;
|
|
588
|
-
return this.size += this.has(s) ? 0 : 1, l[s] =
|
|
588
|
+
return this.size += this.has(s) ? 0 : 1, l[s] = Nt && a === void 0 ? n : a, this;
|
|
589
589
|
}
|
|
590
|
-
|
|
591
|
-
function
|
|
590
|
+
Y.prototype.clear = Rr, Y.prototype.delete = Pr, Y.prototype.get = Dr, Y.prototype.has = zr, Y.prototype.set = $r;
|
|
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() {
|
|
599
599
|
this.__data__ = [], this.size = 0;
|
|
600
600
|
}
|
|
601
601
|
function Lr(s) {
|
|
602
|
-
var a = this.__data__, l =
|
|
602
|
+
var a = this.__data__, l = Re(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 Nr(s) {
|
|
609
|
-
var a = this.__data__, l =
|
|
609
|
+
var a = this.__data__, l = Re(a, s);
|
|
610
610
|
return l < 0 ? void 0 : a[l][1];
|
|
611
611
|
}
|
|
612
612
|
function Hr(s) {
|
|
613
|
-
return
|
|
613
|
+
return Re(this.__data__, s) > -1;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
var l = this.__data__,
|
|
617
|
-
return
|
|
615
|
+
function Ur(s, a) {
|
|
616
|
+
var l = this.__data__, g = Re(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 = Lr, q.prototype.get = Nr, q.prototype.has = Hr, q.prototype.set = Ur;
|
|
620
620
|
function at(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
|
-
function
|
|
627
|
+
function jr() {
|
|
628
628
|
this.size = 0, this.__data__ = {
|
|
629
|
-
hash: new
|
|
630
|
-
map: new (
|
|
631
|
-
string: new
|
|
629
|
+
hash: new Y(),
|
|
630
|
+
map: new (oe || q)(),
|
|
631
|
+
string: new Y()
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
var a =
|
|
634
|
+
function Wr(s) {
|
|
635
|
+
var a = mt(this, s).delete(s);
|
|
636
636
|
return this.size -= a ? 1 : 0, a;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
return
|
|
638
|
+
function Br(s) {
|
|
639
|
+
return mt(this, s).get(s);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
641
|
+
function Yr(s) {
|
|
642
|
+
return mt(this, s).has(s);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
var l =
|
|
646
|
-
return l.set(s, a), this.size += l.size ==
|
|
644
|
+
function Gr(s, a) {
|
|
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
|
-
at.prototype.clear =
|
|
649
|
-
function
|
|
648
|
+
at.prototype.clear = jr, at.prototype.delete = Wr, at.prototype.get = Br, at.prototype.has = Yr, at.prototype.set = Gr;
|
|
649
|
+
function Oe(s) {
|
|
650
650
|
var a = -1, l = s == null ? 0 : s.length;
|
|
651
651
|
for (this.__data__ = new at(); ++a < l; )
|
|
652
652
|
this.add(s[a]);
|
|
@@ -654,16 +654,16 @@ vr.exports;
|
|
|
654
654
|
function cr(s) {
|
|
655
655
|
return this.__data__.set(s, n), this;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Ce(s) {
|
|
658
658
|
return this.__data__.has(s);
|
|
659
659
|
}
|
|
660
|
-
|
|
661
|
-
function
|
|
662
|
-
var a = this.__data__ = new
|
|
660
|
+
Oe.prototype.add = Oe.prototype.push = cr, Oe.prototype.has = Ce;
|
|
661
|
+
function It(s) {
|
|
662
|
+
var a = this.__data__ = new q(s);
|
|
663
663
|
this.size = a.size;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
this.__data__ = new
|
|
665
|
+
function We() {
|
|
666
|
+
this.__data__ = new q(), this.size = 0;
|
|
667
667
|
}
|
|
668
668
|
function Xr(s) {
|
|
669
669
|
var a = this.__data__, l = a.delete(s);
|
|
@@ -675,124 +675,124 @@ vr.exports;
|
|
|
675
675
|
function Vr(s) {
|
|
676
676
|
return this.__data__.has(s);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function qr(s, a) {
|
|
679
679
|
var l = this.__data__;
|
|
680
|
-
if (l instanceof
|
|
681
|
-
var
|
|
682
|
-
if (!
|
|
683
|
-
return
|
|
684
|
-
l = this.__data__ = new at(
|
|
680
|
+
if (l instanceof q) {
|
|
681
|
+
var g = l.__data__;
|
|
682
|
+
if (!oe || g.length < e - 1)
|
|
683
|
+
return g.push([s, a]), this.size = ++l.size, this;
|
|
684
|
+
l = this.__data__ = new at(g);
|
|
685
685
|
}
|
|
686
686
|
return l.set(s, a), this.size = l.size, this;
|
|
687
687
|
}
|
|
688
|
-
|
|
689
|
-
function
|
|
690
|
-
var l =
|
|
688
|
+
It.prototype.clear = We, It.prototype.delete = Xr, It.prototype.get = Kr, It.prototype.has = Vr, It.prototype.set = qr;
|
|
689
|
+
function Jr(s, a) {
|
|
690
|
+
var l = Pe(s), g = !l && pr(s), O = !l && !g && De(s), M = !l && !g && !O && gr(s), D = l || g || O || M, P = D ? Te(s.length, String) : [], U = P.length;
|
|
691
691
|
for (var L in s)
|
|
692
692
|
et.call(s, L) && !(D && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
693
693
|
(L == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
694
694
|
O && (L == "offset" || L == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
695
|
-
|
|
696
|
-
an(L,
|
|
697
|
-
return
|
|
695
|
+
M && (L == "buffer" || L == "byteLength" || L == "byteOffset") || // Skip index properties.
|
|
696
|
+
an(L, U))) && P.push(L);
|
|
697
|
+
return P;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Re(s, a) {
|
|
700
700
|
for (var l = s.length; l--; )
|
|
701
701
|
if (fr(s[l][0], a))
|
|
702
702
|
return l;
|
|
703
703
|
return -1;
|
|
704
704
|
}
|
|
705
705
|
function Be(s, a, l) {
|
|
706
|
-
var
|
|
707
|
-
return
|
|
706
|
+
var g = a(s);
|
|
707
|
+
return Pe(s) ? g : zt(g, l(s));
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
return s == null ? s === void 0 ?
|
|
709
|
+
function ce(s) {
|
|
710
|
+
return s == null ? s === void 0 ? R : f : ht && ht in Object(s) ? xt(s) : dr(s);
|
|
711
711
|
}
|
|
712
712
|
function ur(s) {
|
|
713
|
-
return
|
|
713
|
+
return kt(s) && ce(s) == u;
|
|
714
714
|
}
|
|
715
|
-
function lr(s, a, l,
|
|
716
|
-
return s === a ? !0 : s == null || a == null || !
|
|
715
|
+
function lr(s, a, l, g, O) {
|
|
716
|
+
return s === a ? !0 : s == null || a == null || !kt(s) && !kt(a) ? s !== s && a !== a : Zr(s, a, l, g, lr, O);
|
|
717
717
|
}
|
|
718
|
-
function Zr(s, a, l,
|
|
719
|
-
var D =
|
|
720
|
-
|
|
721
|
-
var
|
|
722
|
-
if (
|
|
723
|
-
if (!
|
|
718
|
+
function Zr(s, a, l, g, O, M) {
|
|
719
|
+
var D = Pe(s), P = Pe(a), U = D ? d : bt(s), L = P ? d : bt(a);
|
|
720
|
+
U = U == u ? y : U, L = L == u ? y : L;
|
|
721
|
+
var J = U == y, ot = L == y, j = U == L;
|
|
722
|
+
if (j && De(s)) {
|
|
723
|
+
if (!De(a))
|
|
724
724
|
return !1;
|
|
725
|
-
D = !0,
|
|
725
|
+
D = !0, J = !1;
|
|
726
726
|
}
|
|
727
|
-
if (
|
|
728
|
-
return
|
|
727
|
+
if (j && !J)
|
|
728
|
+
return M || (M = new It()), D || gr(s) ? Ye(s, a, l, g, O, M) : rn(s, a, U, l, g, O, M);
|
|
729
729
|
if (!(l & i)) {
|
|
730
|
-
var Z =
|
|
731
|
-
if (Z ||
|
|
732
|
-
var
|
|
733
|
-
return
|
|
730
|
+
var Z = J && et.call(s, "__wrapped__"), G = ot && et.call(a, "__wrapped__");
|
|
731
|
+
if (Z || G) {
|
|
732
|
+
var Ht = Z ? s.value() : s, Ot = G ? a.value() : a;
|
|
733
|
+
return M || (M = new It()), O(Ht, Ot, l, g, M);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
return
|
|
736
|
+
return j ? (M || (M = new It()), nn(s, a, l, g, O, M)) : !1;
|
|
737
737
|
}
|
|
738
738
|
function Qr(s) {
|
|
739
739
|
if (!mr(s) || cn(s))
|
|
740
740
|
return !1;
|
|
741
|
-
var a = hr(s) ?
|
|
741
|
+
var a = hr(s) ? Me : st;
|
|
742
742
|
return a.test(rt(s));
|
|
743
743
|
}
|
|
744
744
|
function tn(s) {
|
|
745
|
-
return
|
|
745
|
+
return kt(s) && Xe(s.length) && !!$[ce(s)];
|
|
746
746
|
}
|
|
747
747
|
function en(s) {
|
|
748
748
|
if (!un(s))
|
|
749
|
-
return
|
|
749
|
+
return ae(s);
|
|
750
750
|
var a = [];
|
|
751
751
|
for (var l in Object(s))
|
|
752
752
|
et.call(s, l) && l != "constructor" && a.push(l);
|
|
753
753
|
return a;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
var D = l & i,
|
|
757
|
-
if (
|
|
755
|
+
function Ye(s, a, l, g, O, M) {
|
|
756
|
+
var D = l & i, P = s.length, U = a.length;
|
|
757
|
+
if (P != U && !(D && U > P))
|
|
758
758
|
return !1;
|
|
759
|
-
var L =
|
|
760
|
-
if (L &&
|
|
759
|
+
var L = M.get(s);
|
|
760
|
+
if (L && M.get(a))
|
|
761
761
|
return L == a;
|
|
762
|
-
var
|
|
763
|
-
for (
|
|
764
|
-
var Z = s[
|
|
765
|
-
if (
|
|
766
|
-
var
|
|
767
|
-
if (
|
|
768
|
-
if (
|
|
762
|
+
var J = -1, ot = !0, j = l & o ? new Oe() : void 0;
|
|
763
|
+
for (M.set(s, a), M.set(a, s); ++J < P; ) {
|
|
764
|
+
var Z = s[J], G = a[J];
|
|
765
|
+
if (g)
|
|
766
|
+
var Ht = D ? g(G, Z, J, a, s, M) : g(Z, G, J, s, a, M);
|
|
767
|
+
if (Ht !== void 0) {
|
|
768
|
+
if (Ht)
|
|
769
769
|
continue;
|
|
770
770
|
ot = !1;
|
|
771
771
|
break;
|
|
772
772
|
}
|
|
773
|
-
if (
|
|
774
|
-
if (!
|
|
775
|
-
if (!
|
|
776
|
-
return
|
|
773
|
+
if (j) {
|
|
774
|
+
if (!te(a, function(Ot, le) {
|
|
775
|
+
if (!_t(j, le) && (Z === Ot || O(Z, Ot, l, g, M)))
|
|
776
|
+
return j.push(le);
|
|
777
777
|
})) {
|
|
778
778
|
ot = !1;
|
|
779
779
|
break;
|
|
780
780
|
}
|
|
781
|
-
} else if (!(Z ===
|
|
781
|
+
} else if (!(Z === G || O(Z, G, l, g, M))) {
|
|
782
782
|
ot = !1;
|
|
783
783
|
break;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
return
|
|
786
|
+
return M.delete(s), M.delete(a), ot;
|
|
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)
|
|
792
792
|
return !1;
|
|
793
793
|
s = s.buffer, a = a.buffer;
|
|
794
794
|
case x:
|
|
795
|
-
return !(s.byteLength != a.byteLength || !
|
|
795
|
+
return !(s.byteLength != a.byteLength || !M(new ie(s), new ie(a)));
|
|
796
796
|
case m:
|
|
797
797
|
case b:
|
|
798
798
|
case w:
|
|
@@ -803,118 +803,118 @@ vr.exports;
|
|
|
803
803
|
case T:
|
|
804
804
|
return s == a + "";
|
|
805
805
|
case k:
|
|
806
|
-
var
|
|
807
|
-
case
|
|
808
|
-
var
|
|
809
|
-
if (
|
|
806
|
+
var P = ee;
|
|
807
|
+
case E:
|
|
808
|
+
var U = g & i;
|
|
809
|
+
if (P || (P = ct), s.size != a.size && !U)
|
|
810
810
|
return !1;
|
|
811
811
|
var L = D.get(s);
|
|
812
812
|
if (L)
|
|
813
813
|
return L == a;
|
|
814
|
-
|
|
815
|
-
var
|
|
816
|
-
return D.delete(s),
|
|
814
|
+
g |= o, D.set(s, a);
|
|
815
|
+
var J = Ye(P(s), P(a), g, O, M, D);
|
|
816
|
+
return D.delete(s), J;
|
|
817
817
|
case H:
|
|
818
818
|
if (je)
|
|
819
819
|
return je.call(s) == je.call(a);
|
|
820
820
|
}
|
|
821
821
|
return !1;
|
|
822
822
|
}
|
|
823
|
-
function nn(s, a, l,
|
|
824
|
-
var D = l & i,
|
|
825
|
-
if (
|
|
823
|
+
function nn(s, a, l, g, O, M) {
|
|
824
|
+
var D = l & i, P = ue(s), U = P.length, L = ue(a), J = L.length;
|
|
825
|
+
if (U != J && !D)
|
|
826
826
|
return !1;
|
|
827
|
-
for (var ot =
|
|
828
|
-
var
|
|
829
|
-
if (!(D ?
|
|
827
|
+
for (var ot = U; ot--; ) {
|
|
828
|
+
var j = P[ot];
|
|
829
|
+
if (!(D ? j in a : et.call(a, j)))
|
|
830
830
|
return !1;
|
|
831
831
|
}
|
|
832
|
-
var Z =
|
|
833
|
-
if (Z &&
|
|
832
|
+
var Z = M.get(s);
|
|
833
|
+
if (Z && M.get(a))
|
|
834
834
|
return Z == a;
|
|
835
|
-
var
|
|
836
|
-
|
|
837
|
-
for (var
|
|
838
|
-
|
|
839
|
-
var
|
|
840
|
-
if (
|
|
841
|
-
var Hn = D ?
|
|
842
|
-
if (!(Hn === void 0 ?
|
|
843
|
-
|
|
835
|
+
var G = !0;
|
|
836
|
+
M.set(s, a), M.set(a, s);
|
|
837
|
+
for (var Ht = D; ++ot < U; ) {
|
|
838
|
+
j = P[ot];
|
|
839
|
+
var Ot = s[j], le = a[j];
|
|
840
|
+
if (g)
|
|
841
|
+
var Hn = D ? g(le, Ot, j, a, s, M) : g(Ot, le, j, s, a, M);
|
|
842
|
+
if (!(Hn === void 0 ? Ot === le || O(Ot, le, l, g, M) : Hn)) {
|
|
843
|
+
G = !1;
|
|
844
844
|
break;
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
Ht || (Ht = j == "constructor");
|
|
847
847
|
}
|
|
848
|
-
if (
|
|
848
|
+
if (G && !Ht) {
|
|
849
849
|
var yr = s.constructor, Ir = a.constructor;
|
|
850
|
-
yr != Ir && "constructor" in s && "constructor" in a && !(typeof yr == "function" && yr instanceof yr && typeof Ir == "function" && Ir instanceof Ir) && (
|
|
850
|
+
yr != Ir && "constructor" in s && "constructor" in a && !(typeof yr == "function" && yr instanceof yr && typeof Ir == "function" && Ir instanceof Ir) && (G = !1);
|
|
851
851
|
}
|
|
852
|
-
return
|
|
852
|
+
return M.delete(s), M.delete(a), G;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
return Be(s,
|
|
854
|
+
function ue(s) {
|
|
855
|
+
return Be(s, Ke, sn);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function mt(s, a) {
|
|
858
858
|
var l = s.__data__;
|
|
859
859
|
return on(a) ? l[typeof a == "string" ? "string" : "hash"] : l.map;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
var l =
|
|
861
|
+
function Mt(s, a) {
|
|
862
|
+
var l = $t(s, a);
|
|
863
863
|
return Qr(l) ? l : void 0;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
var a = et.call(s,
|
|
865
|
+
function xt(s) {
|
|
866
|
+
var a = et.call(s, ht), l = s[ht];
|
|
867
867
|
try {
|
|
868
|
-
s[
|
|
869
|
-
var
|
|
868
|
+
s[ht] = void 0;
|
|
869
|
+
var g = !0;
|
|
870
870
|
} catch {
|
|
871
871
|
}
|
|
872
|
-
var O =
|
|
873
|
-
return
|
|
872
|
+
var O = se.call(s);
|
|
873
|
+
return g && (a ? s[ht] = l : delete s[ht]), O;
|
|
874
874
|
}
|
|
875
|
-
var sn =
|
|
876
|
-
return s == null ? [] : (s = Object(s),
|
|
877
|
-
return
|
|
875
|
+
var sn = xe ? function(s) {
|
|
876
|
+
return s == null ? [] : (s = Object(s), Qt(xe(s), function(a) {
|
|
877
|
+
return At.call(s, a);
|
|
878
878
|
}));
|
|
879
|
-
} : dn,
|
|
880
|
-
(
|
|
881
|
-
var a =
|
|
882
|
-
if (
|
|
883
|
-
switch (
|
|
879
|
+
} : dn, bt = ce;
|
|
880
|
+
(Le && bt(new Le(new ArrayBuffer(1))) != F || oe && bt(new oe()) != k || Ne && bt(Ne.resolve()) != v || He && bt(new He()) != E || Ue && bt(new Ue()) != V) && (bt = function(s) {
|
|
881
|
+
var a = ce(s), l = a == y ? s.constructor : void 0, g = l ? rt(l) : "";
|
|
882
|
+
if (g)
|
|
883
|
+
switch (g) {
|
|
884
884
|
case ar:
|
|
885
885
|
return F;
|
|
886
|
-
case
|
|
886
|
+
case Et:
|
|
887
887
|
return k;
|
|
888
888
|
case xr:
|
|
889
889
|
return v;
|
|
890
890
|
case Or:
|
|
891
|
-
return
|
|
891
|
+
return E;
|
|
892
892
|
case Cr:
|
|
893
893
|
return V;
|
|
894
894
|
}
|
|
895
895
|
return a;
|
|
896
896
|
});
|
|
897
897
|
function an(s, a) {
|
|
898
|
-
return a = a ?? c, !!a && (typeof s == "number" ||
|
|
898
|
+
return a = a ?? c, !!a && (typeof s == "number" || Kt.test(s)) && s > -1 && s % 1 == 0 && s < a;
|
|
899
899
|
}
|
|
900
900
|
function on(s) {
|
|
901
901
|
var a = typeof s;
|
|
902
902
|
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? s !== "__proto__" : s === null;
|
|
903
903
|
}
|
|
904
904
|
function cn(s) {
|
|
905
|
-
return !!
|
|
905
|
+
return !!ne && ne in s;
|
|
906
906
|
}
|
|
907
907
|
function un(s) {
|
|
908
908
|
var a = s && s.constructor, l = typeof a == "function" && a.prototype || gt;
|
|
909
909
|
return s === l;
|
|
910
910
|
}
|
|
911
911
|
function dr(s) {
|
|
912
|
-
return
|
|
912
|
+
return se.call(s);
|
|
913
913
|
}
|
|
914
914
|
function rt(s) {
|
|
915
915
|
if (s != null) {
|
|
916
916
|
try {
|
|
917
|
-
return
|
|
917
|
+
return Ft.call(s);
|
|
918
918
|
} catch {
|
|
919
919
|
}
|
|
920
920
|
try {
|
|
@@ -930,34 +930,34 @@ vr.exports;
|
|
|
930
930
|
var pr = ur(/* @__PURE__ */ function() {
|
|
931
931
|
return arguments;
|
|
932
932
|
}()) ? ur : function(s) {
|
|
933
|
-
return
|
|
934
|
-
},
|
|
933
|
+
return kt(s) && et.call(s, "callee") && !At.call(s, "callee");
|
|
934
|
+
}, Pe = Array.isArray;
|
|
935
935
|
function Ge(s) {
|
|
936
|
-
return s != null &&
|
|
936
|
+
return s != null && Xe(s.length) && !hr(s);
|
|
937
937
|
}
|
|
938
|
-
var
|
|
938
|
+
var De = Fe || fn;
|
|
939
939
|
function ln(s, a) {
|
|
940
940
|
return lr(s, a);
|
|
941
941
|
}
|
|
942
942
|
function hr(s) {
|
|
943
943
|
if (!mr(s))
|
|
944
944
|
return !1;
|
|
945
|
-
var a =
|
|
946
|
-
return a ==
|
|
945
|
+
var a = ce(s);
|
|
946
|
+
return a == I || a == _ || a == p || a == S;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Xe(s) {
|
|
949
949
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= c;
|
|
950
950
|
}
|
|
951
951
|
function mr(s) {
|
|
952
952
|
var a = typeof s;
|
|
953
953
|
return s != null && (a == "object" || a == "function");
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function kt(s) {
|
|
956
956
|
return s != null && typeof s == "object";
|
|
957
957
|
}
|
|
958
|
-
var gr =
|
|
959
|
-
function
|
|
960
|
-
return Ge(s) ?
|
|
958
|
+
var gr = Dt ? Ae(Dt) : tn;
|
|
959
|
+
function Ke(s) {
|
|
960
|
+
return Ge(s) ? Jr(s) : en(s);
|
|
961
961
|
}
|
|
962
962
|
function dn() {
|
|
963
963
|
return [];
|
|
@@ -968,43 +968,43 @@ vr.exports;
|
|
|
968
968
|
t.exports = ln;
|
|
969
969
|
})(vr, vr.exports);
|
|
970
970
|
var Zs = vr.exports;
|
|
971
|
-
const
|
|
971
|
+
const W = /* @__PURE__ */ Cn(Zs), Io = "add", Qs = "track", ti = "trackItems", bo = `${Qs}:changed`, ko = `${ti}:changed`, ei = "state", vo = `${ei}:changed`, ri = "bulk", Xn = `${ri}:edit`, Rn = "design", ni = `${Rn}:load`, si = `${Rn}:resize`, N = "add", ii = `${N}:text`, ai = `${N}:video`, oi = `${N}:audio`, _o = `${N}:placeholder`, ci = `${N}:image`, ui = `${N}:illustration`, li = `${N}:shape`, So = `${N}:mask`, wo = `${N}:transition`, di = `${N}:animation`, fi = `${N}:caption`, pi = `${N}:template`, hi = `${N}:items`, mi = `${N}:composition`, gi = `${N}:progressBar`, yi = `${N}:progressFrame`, Ii = `${N}:radialAudioBars`, bi = `${N}:linealAudioBars`, ki = `${N}:progressSquare`, vi = `${N}:waveAudioBars`, _i = `${N}:hillAudioBars`, Si = `${N}:rect`, Yt = "edit", wi = `${Yt}:object`, Ti = `${Yt}:replaceMedia`, To = `${Yt}:text`, Ao = `${Yt}:shape`, Eo = `${Yt}:templateItem`, Mo = `${Yt}:deleteTemplateItem`, Ai = `${Yt}:backgroundEditor`, xo = "enterEditMode", ze = "active", Oo = `${ze}:set`, Co = `${ze}:delete`, Ei = `${ze}:paste`, Ro = `${ze}:clone`, Mi = `${ze}:split`, Q = "layer", Po = `${Q}:locked`, Do = `${Q}:hidden`, zo = `${Q}:move`, xi = `${Q}:select`, $o = `${Q}:selection`, Fo = `${Q}:sendTo`, Lo = `${Q}:rename`, No = `${Q}:editingName`, Oi = `${Q}:copy`, Ho = `${Q}:paste`, Ci = `${Q}:clone`, Uo = `${Q}:split`, jo = `${Q}:cut`, Ri = `${Q}:delete`, Pi = `${Q}:replace`, Er = "history", Di = `${Er}:undo`, zi = `${Er}:redo`, Wo = `${Er}:reset`, ds = "scale", $i = `${ds}:changed`;
|
|
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]", b = "[object GeneratorFunction]", h = "[object Map]",
|
|
976
|
-
z[o] = z[c] = z[A] = z[
|
|
977
|
-
var
|
|
978
|
-
function
|
|
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]", b = "[object GeneratorFunction]", h = "[object Map]", I = "[object Number]", _ = "[object Object]", k = "[object Promise]", w = "[object RegExp]", f = "[object Set]", y = "[object String]", v = "[object Symbol]", S = "[object WeakMap]", A = "[object ArrayBuffer]", E = "[object DataView]", T = "[object Float32Array]", H = "[object Float64Array]", R = "[object Int8Array]", V = "[object Int16Array]", x = "[object Int32Array]", F = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", Gt = "[object Uint16Array]", Xt = "[object Uint32Array]", Ie = /[\\^$.*+?()[\]{}|]/g, be = /\w*$/, ke = /^\[object .+?Constructor\]$/, ve = /^(?:0|[1-9]\d*)$/, z = {};
|
|
976
|
+
z[o] = z[c] = z[A] = z[E] = z[u] = z[d] = z[T] = z[H] = z[R] = z[V] = z[x] = z[h] = z[I] = z[_] = z[w] = z[f] = z[y] = z[v] = z[F] = z[tt] = z[Gt] = z[Xt] = !0, z[p] = z[m] = z[S] = !1;
|
|
977
|
+
var _e = typeof dt == "object" && dt && dt.Object === Object && dt, Se = typeof self == "object" && self && self.Object === Object && self, st = _e || Se || Function("return this")(), Kt = r && !r.nodeType && r, $ = Kt && !0 && t && !t.nodeType && t, Vt = $ && $.exports === Kt;
|
|
978
|
+
function we(s, a) {
|
|
979
979
|
return s.set(a[0], a[1]), s;
|
|
980
980
|
}
|
|
981
981
|
function it(s, a) {
|
|
982
982
|
return s.add(a), s;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
for (var l = -1,
|
|
984
|
+
function qt(s, a) {
|
|
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
|
-
function
|
|
990
|
-
for (var l = -1,
|
|
989
|
+
function Jt(s, a) {
|
|
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
|
|
995
|
-
for (var O = -1,
|
|
994
|
+
function Rt(s, a, l, g) {
|
|
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
|
-
function
|
|
1000
|
-
for (var l = -1,
|
|
1001
|
-
|
|
1002
|
-
return
|
|
999
|
+
function Pt(s, a) {
|
|
1000
|
+
for (var l = -1, g = Array(s); ++l < s; )
|
|
1001
|
+
g[l] = a(l);
|
|
1002
|
+
return g;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function Zt(s, a) {
|
|
1005
1005
|
return s == null ? void 0 : s[a];
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function Dt(s) {
|
|
1008
1008
|
var a = !1;
|
|
1009
1009
|
if (s != null && typeof s.toString != "function")
|
|
1010
1010
|
try {
|
|
@@ -1013,45 +1013,45 @@ _r.exports;
|
|
|
1013
1013
|
}
|
|
1014
1014
|
return a;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function Qt(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
|
-
function
|
|
1022
|
+
function zt(s, a) {
|
|
1023
1023
|
return function(l) {
|
|
1024
1024
|
return s(a(l));
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function te(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
|
-
var
|
|
1034
|
-
var s = /[^.]+$/.exec(
|
|
1033
|
+
var Te = Array.prototype, Ae = Function.prototype, _t = Object.prototype, $t = st["__core-js_shared__"], ee = function() {
|
|
1034
|
+
var s = /[^.]+$/.exec($t && $t.keys && $t.keys.IE_PROTO || "");
|
|
1035
1035
|
return s ? "Symbol(src)_1." + s : "";
|
|
1036
|
-
}(),
|
|
1037
|
-
"^" +
|
|
1038
|
-
), gt =
|
|
1039
|
-
function
|
|
1036
|
+
}(), re = Ae.toString, ct = _t.hasOwnProperty, St = _t.toString, Ee = RegExp(
|
|
1037
|
+
"^" + re.call(ct).replace(Ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1038
|
+
), gt = Vt ? st.Buffer : void 0, wt = st.Symbol, Ft = st.Uint8Array, et = zt(Object.getPrototypeOf, Object), ne = Object.create, se = _t.propertyIsEnumerable, Me = Te.splice, Lt = Object.getOwnPropertySymbols, Tt = gt ? gt.isBuffer : void 0, ie = zt(Object.keys, Object), At = mt(st, "DataView"), yt = mt(st, "Map"), ht = mt(st, "Promise"), xe = mt(st, "Set"), Fe = mt(st, "WeakMap"), ae = mt(Object, "create"), Le = rt(At), oe = rt(yt), Ne = rt(ht), He = rt(xe), Ue = rt(Fe), Nt = wt ? wt.prototype : void 0, ar = Nt ? Nt.valueOf : void 0;
|
|
1039
|
+
function Et(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() {
|
|
1047
|
-
this.__data__ =
|
|
1047
|
+
this.__data__ = ae ? ae(null) : {};
|
|
1048
1048
|
}
|
|
1049
1049
|
function Or(s) {
|
|
1050
1050
|
return this.has(s) && delete this.__data__[s];
|
|
1051
1051
|
}
|
|
1052
1052
|
function Cr(s) {
|
|
1053
1053
|
var a = this.__data__;
|
|
1054
|
-
if (
|
|
1054
|
+
if (ae) {
|
|
1055
1055
|
var l = a[s];
|
|
1056
1056
|
return l === n ? void 0 : l;
|
|
1057
1057
|
}
|
|
@@ -1059,174 +1059,174 @@ _r.exports;
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function or(s) {
|
|
1061
1061
|
var a = this.__data__;
|
|
1062
|
-
return
|
|
1062
|
+
return ae ? a[s] !== void 0 : ct.call(a, s);
|
|
1063
1063
|
}
|
|
1064
1064
|
function je(s, a) {
|
|
1065
1065
|
var l = this.__data__;
|
|
1066
|
-
return l[s] =
|
|
1066
|
+
return l[s] = ae && a === void 0 ? n : a, this;
|
|
1067
1067
|
}
|
|
1068
|
-
|
|
1069
|
-
function
|
|
1068
|
+
Et.prototype.clear = xr, Et.prototype.delete = Or, Et.prototype.get = Cr, Et.prototype.has = or, Et.prototype.set = je;
|
|
1069
|
+
function Y(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
|
-
function
|
|
1076
|
+
function Rr() {
|
|
1077
1077
|
this.__data__ = [];
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
var a = this.__data__, l =
|
|
1079
|
+
function Pr(s) {
|
|
1080
|
+
var a = this.__data__, l = Ce(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() : Me.call(a, l, 1), !0;
|
|
1085
1085
|
}
|
|
1086
1086
|
function Dr(s) {
|
|
1087
|
-
var a = this.__data__, l =
|
|
1087
|
+
var a = this.__data__, l = Ce(a, s);
|
|
1088
1088
|
return l < 0 ? void 0 : a[l][1];
|
|
1089
1089
|
}
|
|
1090
1090
|
function zr(s) {
|
|
1091
|
-
return
|
|
1091
|
+
return Ce(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 = Ce(l, s);
|
|
1095
|
+
return g < 0 ? l.push([s, a]) : l[g][1] = a, this;
|
|
1096
1096
|
}
|
|
1097
|
-
|
|
1098
|
-
function
|
|
1097
|
+
Y.prototype.clear = Rr, Y.prototype.delete = Pr, Y.prototype.get = Dr, Y.prototype.has = zr, Y.prototype.set = $r;
|
|
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() {
|
|
1106
1106
|
this.__data__ = {
|
|
1107
|
-
hash: new
|
|
1108
|
-
map: new (
|
|
1109
|
-
string: new
|
|
1107
|
+
hash: new Et(),
|
|
1108
|
+
map: new (yt || Y)(),
|
|
1109
|
+
string: new Et()
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
1112
|
function Lr(s) {
|
|
1113
|
-
return
|
|
1113
|
+
return ue(this, s).delete(s);
|
|
1114
1114
|
}
|
|
1115
1115
|
function Nr(s) {
|
|
1116
|
-
return
|
|
1116
|
+
return ue(this, s).get(s);
|
|
1117
1117
|
}
|
|
1118
1118
|
function Hr(s) {
|
|
1119
|
-
return
|
|
1119
|
+
return ue(this, s).has(s);
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1121
|
+
function Ur(s, a) {
|
|
1122
|
+
return ue(this, s).set(s, a), this;
|
|
1123
1123
|
}
|
|
1124
|
-
|
|
1124
|
+
q.prototype.clear = Fr, q.prototype.delete = Lr, q.prototype.get = Nr, q.prototype.has = Hr, q.prototype.set = Ur;
|
|
1125
1125
|
function at(s) {
|
|
1126
|
-
this.__data__ = new
|
|
1126
|
+
this.__data__ = new Y(s);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
this.__data__ = new
|
|
1128
|
+
function jr() {
|
|
1129
|
+
this.__data__ = new Y();
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Wr(s) {
|
|
1132
1132
|
return this.__data__.delete(s);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function Br(s) {
|
|
1135
1135
|
return this.__data__.get(s);
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Yr(s) {
|
|
1138
1138
|
return this.__data__.has(s);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Gr(s, a) {
|
|
1141
1141
|
var l = this.__data__;
|
|
1142
|
-
if (l instanceof
|
|
1143
|
-
var
|
|
1144
|
-
if (!
|
|
1145
|
-
return
|
|
1146
|
-
l = this.__data__ = new
|
|
1142
|
+
if (l instanceof Y) {
|
|
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
|
-
at.prototype.clear =
|
|
1151
|
-
function
|
|
1152
|
-
var l = Ge(s) ||
|
|
1153
|
-
for (var
|
|
1154
|
-
ct.call(s,
|
|
1150
|
+
at.prototype.clear = jr, at.prototype.delete = Wr, at.prototype.get = Br, at.prototype.has = Yr, at.prototype.set = Gr;
|
|
1151
|
+
function Oe(s, a) {
|
|
1152
|
+
var l = Ge(s) || Pe(s) ? Pt(s.length, String) : [], g = l.length, O = !!g;
|
|
1153
|
+
for (var M in s)
|
|
1154
|
+
ct.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
|
-
(!(ct.call(s, a) && pr(
|
|
1158
|
+
var g = s[a];
|
|
1159
|
+
(!(ct.call(s, a) && pr(g, l)) || l === void 0 && !(a in s)) && (s[a] = l);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Ce(s, a) {
|
|
1162
1162
|
for (var l = s.length; l--; )
|
|
1163
1163
|
if (pr(s[l][0], a))
|
|
1164
1164
|
return l;
|
|
1165
1165
|
return -1;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return s &&
|
|
1167
|
+
function It(s, a) {
|
|
1168
|
+
return s && Ye(a, Ke(a), s);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var
|
|
1172
|
-
if (
|
|
1173
|
-
return
|
|
1174
|
-
if (!
|
|
1170
|
+
function We(s, a, l, g, O, M, D) {
|
|
1171
|
+
var P;
|
|
1172
|
+
if (g && (P = M ? g(s, O, M, D) : g(s)), P !== void 0)
|
|
1173
|
+
return P;
|
|
1174
|
+
if (!kt(s))
|
|
1175
1175
|
return s;
|
|
1176
|
-
var
|
|
1177
|
-
if (
|
|
1178
|
-
if (
|
|
1179
|
-
return en(s,
|
|
1176
|
+
var U = Ge(s);
|
|
1177
|
+
if (U) {
|
|
1178
|
+
if (P = sn(s), !a)
|
|
1179
|
+
return en(s, P);
|
|
1180
1180
|
} else {
|
|
1181
|
-
var L =
|
|
1181
|
+
var L = xt(s), J = L == m || L == b;
|
|
1182
1182
|
if (hr(s))
|
|
1183
|
-
return
|
|
1184
|
-
if (L ==
|
|
1185
|
-
if (
|
|
1186
|
-
return
|
|
1187
|
-
if (
|
|
1188
|
-
return rn(s,
|
|
1183
|
+
return Re(s, a);
|
|
1184
|
+
if (L == _ || L == o || J && !M) {
|
|
1185
|
+
if (Dt(s))
|
|
1186
|
+
return M ? s : {};
|
|
1187
|
+
if (P = bt(J ? {} : s), !a)
|
|
1188
|
+
return rn(s, It(P, s));
|
|
1189
1189
|
} else {
|
|
1190
1190
|
if (!z[L])
|
|
1191
|
-
return
|
|
1192
|
-
|
|
1191
|
+
return M ? s : {};
|
|
1192
|
+
P = an(s, L, We, a);
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
D || (D = new at());
|
|
1196
1196
|
var ot = D.get(s);
|
|
1197
1197
|
if (ot)
|
|
1198
1198
|
return ot;
|
|
1199
|
-
if (D.set(s,
|
|
1200
|
-
var
|
|
1201
|
-
return
|
|
1202
|
-
|
|
1203
|
-
}),
|
|
1199
|
+
if (D.set(s, P), !U)
|
|
1200
|
+
var j = l ? nn(s) : Ke(s);
|
|
1201
|
+
return qt(j || s, function(Z, G) {
|
|
1202
|
+
j && (G = Z, Z = s[G]), cr(P, G, We(Z, a, l, g, G, s, D));
|
|
1203
|
+
}), P;
|
|
1204
1204
|
}
|
|
1205
1205
|
function Xr(s) {
|
|
1206
|
-
return
|
|
1206
|
+
return kt(s) ? ne(s) : {};
|
|
1207
1207
|
}
|
|
1208
1208
|
function Kr(s, a, l) {
|
|
1209
|
-
var
|
|
1210
|
-
return Ge(s) ?
|
|
1209
|
+
var g = a(s);
|
|
1210
|
+
return Ge(s) ? g : Jt(g, l(s));
|
|
1211
1211
|
}
|
|
1212
1212
|
function Vr(s) {
|
|
1213
|
-
return
|
|
1213
|
+
return St.call(s);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1216
|
-
if (!
|
|
1215
|
+
function qr(s) {
|
|
1216
|
+
if (!kt(s) || un(s))
|
|
1217
1217
|
return !1;
|
|
1218
|
-
var a =
|
|
1218
|
+
var a = Xe(s) || Dt(s) ? Ee : ke;
|
|
1219
1219
|
return a.test(rt(s));
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function Jr(s) {
|
|
1222
1222
|
if (!dr(s))
|
|
1223
|
-
return
|
|
1223
|
+
return ie(s);
|
|
1224
1224
|
var a = [];
|
|
1225
1225
|
for (var l in Object(s))
|
|
1226
1226
|
ct.call(s, l) && l != "constructor" && a.push(l);
|
|
1227
1227
|
return a;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Re(s, a) {
|
|
1230
1230
|
if (a)
|
|
1231
1231
|
return s.slice();
|
|
1232
1232
|
var l = new s.constructor(s.length);
|
|
@@ -1234,23 +1234,23 @@ _r.exports;
|
|
|
1234
1234
|
}
|
|
1235
1235
|
function Be(s) {
|
|
1236
1236
|
var a = new s.constructor(s.byteLength);
|
|
1237
|
-
return new
|
|
1237
|
+
return new Ft(a).set(new Ft(s)), a;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function ce(s, a) {
|
|
1240
1240
|
var l = a ? Be(s.buffer) : s.buffer;
|
|
1241
1241
|
return new s.constructor(l, s.byteOffset, s.byteLength);
|
|
1242
1242
|
}
|
|
1243
1243
|
function ur(s, a, l) {
|
|
1244
|
-
var
|
|
1245
|
-
return
|
|
1244
|
+
var g = a ? l(Qt(s), !0) : Qt(s);
|
|
1245
|
+
return Rt(g, we, new s.constructor());
|
|
1246
1246
|
}
|
|
1247
1247
|
function lr(s) {
|
|
1248
|
-
var a = new s.constructor(s.source,
|
|
1248
|
+
var a = new s.constructor(s.source, be.exec(s));
|
|
1249
1249
|
return a.lastIndex = s.lastIndex, a;
|
|
1250
1250
|
}
|
|
1251
1251
|
function Zr(s, a, l) {
|
|
1252
|
-
var
|
|
1253
|
-
return
|
|
1252
|
+
var g = a ? l(te(s), !0) : te(s);
|
|
1253
|
+
return Rt(g, it, new s.constructor());
|
|
1254
1254
|
}
|
|
1255
1255
|
function Qr(s) {
|
|
1256
1256
|
return ar ? Object(ar.call(s)) : {};
|
|
@@ -1260,48 +1260,48 @@ _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
|
|
1268
|
+
function Ye(s, a, l, g) {
|
|
1269
1269
|
l || (l = {});
|
|
1270
|
-
for (var O = -1,
|
|
1271
|
-
var D = a[O],
|
|
1272
|
-
cr(l, D,
|
|
1270
|
+
for (var O = -1, M = a.length; ++O < M; ) {
|
|
1271
|
+
var D = a[O], P = void 0;
|
|
1272
|
+
cr(l, D, P === void 0 ? s[D] : P);
|
|
1273
1273
|
}
|
|
1274
1274
|
return l;
|
|
1275
1275
|
}
|
|
1276
1276
|
function rn(s, a) {
|
|
1277
|
-
return
|
|
1277
|
+
return Ye(s, Mt(s), a);
|
|
1278
1278
|
}
|
|
1279
1279
|
function nn(s) {
|
|
1280
|
-
return Kr(s,
|
|
1280
|
+
return Kr(s, Ke, Mt);
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function ue(s, a) {
|
|
1283
1283
|
var l = s.__data__;
|
|
1284
1284
|
return cn(a) ? l[typeof a == "string" ? "string" : "hash"] : l.map;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
var l =
|
|
1288
|
-
return
|
|
1289
|
-
}
|
|
1290
|
-
var
|
|
1291
|
-
(
|
|
1292
|
-
var a =
|
|
1293
|
-
if (
|
|
1294
|
-
switch (
|
|
1295
|
-
case Fe:
|
|
1296
|
-
return M;
|
|
1297
|
-
case ie:
|
|
1298
|
-
return h;
|
|
1286
|
+
function mt(s, a) {
|
|
1287
|
+
var l = Zt(s, a);
|
|
1288
|
+
return qr(l) ? l : void 0;
|
|
1289
|
+
}
|
|
1290
|
+
var Mt = Lt ? zt(Lt, Object) : dn, xt = Vr;
|
|
1291
|
+
(At && xt(new At(new ArrayBuffer(1))) != E || yt && xt(new yt()) != h || ht && xt(ht.resolve()) != k || xe && xt(new xe()) != f || Fe && xt(new Fe()) != S) && (xt = function(s) {
|
|
1292
|
+
var a = St.call(s), l = a == _ ? s.constructor : void 0, g = l ? rt(l) : void 0;
|
|
1293
|
+
if (g)
|
|
1294
|
+
switch (g) {
|
|
1299
1295
|
case Le:
|
|
1300
|
-
return
|
|
1296
|
+
return E;
|
|
1297
|
+
case oe:
|
|
1298
|
+
return h;
|
|
1301
1299
|
case Ne:
|
|
1302
|
-
return
|
|
1300
|
+
return k;
|
|
1303
1301
|
case He:
|
|
1304
|
-
return
|
|
1302
|
+
return f;
|
|
1303
|
+
case Ue:
|
|
1304
|
+
return S;
|
|
1305
1305
|
}
|
|
1306
1306
|
return a;
|
|
1307
1307
|
});
|
|
@@ -1309,10 +1309,10 @@ _r.exports;
|
|
|
1309
1309
|
var a = s.length, l = s.constructor(a);
|
|
1310
1310
|
return a && typeof s[0] == "string" && ct.call(s, "index") && (l.index = s.index, l.input = s.input), l;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function bt(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:
|
|
@@ -1320,49 +1320,49 @@ _r.exports;
|
|
|
1320
1320
|
case u:
|
|
1321
1321
|
case d:
|
|
1322
1322
|
return new O(+s);
|
|
1323
|
-
case
|
|
1324
|
-
return
|
|
1323
|
+
case E:
|
|
1324
|
+
return ce(s, g);
|
|
1325
1325
|
case T:
|
|
1326
1326
|
case H:
|
|
1327
|
-
case
|
|
1327
|
+
case R:
|
|
1328
1328
|
case V:
|
|
1329
1329
|
case x:
|
|
1330
1330
|
case F:
|
|
1331
1331
|
case tt:
|
|
1332
|
-
case Wt:
|
|
1333
1332
|
case Gt:
|
|
1334
|
-
|
|
1333
|
+
case Xt:
|
|
1334
|
+
return tn(s, g);
|
|
1335
1335
|
case h:
|
|
1336
|
-
return ur(s,
|
|
1337
|
-
case g:
|
|
1336
|
+
return ur(s, g, l);
|
|
1338
1337
|
case I:
|
|
1338
|
+
case y:
|
|
1339
1339
|
return new O(s);
|
|
1340
1340
|
case w:
|
|
1341
1341
|
return lr(s);
|
|
1342
1342
|
case f:
|
|
1343
|
-
return Zr(s,
|
|
1343
|
+
return Zr(s, g, l);
|
|
1344
1344
|
case v:
|
|
1345
1345
|
return Qr(s);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
function on(s, a) {
|
|
1349
|
-
return a = a ?? i, !!a && (typeof s == "number" ||
|
|
1349
|
+
return a = a ?? i, !!a && (typeof s == "number" || ve.test(s)) && s > -1 && s % 1 == 0 && s < a;
|
|
1350
1350
|
}
|
|
1351
1351
|
function cn(s) {
|
|
1352
1352
|
var a = typeof s;
|
|
1353
1353
|
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? s !== "__proto__" : s === null;
|
|
1354
1354
|
}
|
|
1355
1355
|
function un(s) {
|
|
1356
|
-
return !!
|
|
1356
|
+
return !!ee && ee in s;
|
|
1357
1357
|
}
|
|
1358
1358
|
function dr(s) {
|
|
1359
|
-
var a = s && s.constructor, l = typeof a == "function" && a.prototype ||
|
|
1359
|
+
var a = s && s.constructor, l = typeof a == "function" && a.prototype || _t;
|
|
1360
1360
|
return s === l;
|
|
1361
1361
|
}
|
|
1362
1362
|
function rt(s) {
|
|
1363
1363
|
if (s != null) {
|
|
1364
1364
|
try {
|
|
1365
|
-
return
|
|
1365
|
+
return re.call(s);
|
|
1366
1366
|
} catch {
|
|
1367
1367
|
}
|
|
1368
1368
|
try {
|
|
@@ -1373,38 +1373,38 @@ _r.exports;
|
|
|
1373
1373
|
return "";
|
|
1374
1374
|
}
|
|
1375
1375
|
function fr(s) {
|
|
1376
|
-
return
|
|
1376
|
+
return We(s, !0, !0);
|
|
1377
1377
|
}
|
|
1378
1378
|
function pr(s, a) {
|
|
1379
1379
|
return s === a || s !== s && a !== a;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return ln(s) && ct.call(s, "callee") && (!
|
|
1381
|
+
function Pe(s) {
|
|
1382
|
+
return ln(s) && ct.call(s, "callee") && (!se.call(s, "callee") || St.call(s) == o);
|
|
1383
1383
|
}
|
|
1384
1384
|
var Ge = Array.isArray;
|
|
1385
|
-
function
|
|
1386
|
-
return s != null && mr(s.length) && !
|
|
1385
|
+
function De(s) {
|
|
1386
|
+
return s != null && mr(s.length) && !Xe(s);
|
|
1387
1387
|
}
|
|
1388
1388
|
function ln(s) {
|
|
1389
|
-
return gr(s) &&
|
|
1389
|
+
return gr(s) && De(s);
|
|
1390
1390
|
}
|
|
1391
|
-
var hr =
|
|
1392
|
-
function
|
|
1393
|
-
var a =
|
|
1391
|
+
var hr = Tt || fn;
|
|
1392
|
+
function Xe(s) {
|
|
1393
|
+
var a = kt(s) ? St.call(s) : "";
|
|
1394
1394
|
return a == m || a == b;
|
|
1395
1395
|
}
|
|
1396
1396
|
function mr(s) {
|
|
1397
1397
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= i;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function kt(s) {
|
|
1400
1400
|
var a = typeof s;
|
|
1401
1401
|
return !!s && (a == "object" || a == "function");
|
|
1402
1402
|
}
|
|
1403
1403
|
function gr(s) {
|
|
1404
1404
|
return !!s && typeof s == "object";
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
1406
|
+
function Ke(s) {
|
|
1407
|
+
return De(s) ? Oe(s) : Jr(s);
|
|
1408
1408
|
}
|
|
1409
1409
|
function dn() {
|
|
1410
1410
|
return [];
|
|
@@ -1414,9 +1414,9 @@ _r.exports;
|
|
|
1414
1414
|
}
|
|
1415
1415
|
t.exports = fr;
|
|
1416
1416
|
})(_r, _r.exports);
|
|
1417
|
-
var
|
|
1418
|
-
const C = /* @__PURE__ */ Cn(
|
|
1419
|
-
function
|
|
1417
|
+
var Fi = _r.exports;
|
|
1418
|
+
const C = /* @__PURE__ */ Cn(Fi);
|
|
1419
|
+
function Li(t, r) {
|
|
1420
1420
|
return t.filter((n) => {
|
|
1421
1421
|
if (r.forEach((i) => {
|
|
1422
1422
|
n.items.includes(i) && (n.items = n.items.filter((o) => o !== i));
|
|
@@ -1431,38 +1431,38 @@ const K = (t) => Object.keys(t).reduce((r, e) => {
|
|
|
1431
1431
|
function nt(t, r, e) {
|
|
1432
1432
|
t.forEach((n) => {
|
|
1433
1433
|
const i = Object.values(r).filter(
|
|
1434
|
-
(
|
|
1434
|
+
(I) => n.items.includes(I.id)
|
|
1435
1435
|
), c = i.filter(
|
|
1436
|
-
(
|
|
1436
|
+
(I) => !e.includes(I.id)
|
|
1437
1437
|
).sort(
|
|
1438
|
-
(
|
|
1438
|
+
(I, _) => I.display.from - _.display.from
|
|
1439
1439
|
), u = i.sort(
|
|
1440
|
-
(
|
|
1440
|
+
(I, _) => I.display.from - _.display.from
|
|
1441
1441
|
), d = c[c.length - 1];
|
|
1442
1442
|
let p = (d == null ? void 0 : d.display.to) || 0;
|
|
1443
|
-
u.forEach((
|
|
1444
|
-
if (e.includes(
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1443
|
+
u.forEach((I) => {
|
|
1444
|
+
if (e.includes(I.id)) {
|
|
1445
|
+
const _ = I.display.to - I.display.from;
|
|
1446
|
+
I.display = {
|
|
1447
1447
|
from: p,
|
|
1448
|
-
to: p +
|
|
1449
|
-
}, p = p +
|
|
1448
|
+
to: p + _
|
|
1449
|
+
}, p = p + _;
|
|
1450
1450
|
}
|
|
1451
1451
|
});
|
|
1452
1452
|
const b = i.sort(
|
|
1453
|
-
(
|
|
1454
|
-
).map((
|
|
1453
|
+
(I, _) => I.display.from - _.display.from
|
|
1454
|
+
).map((I) => I.id);
|
|
1455
1455
|
let h = 0;
|
|
1456
|
-
b.forEach((
|
|
1457
|
-
const
|
|
1456
|
+
b.forEach((I) => {
|
|
1457
|
+
const _ = [];
|
|
1458
1458
|
let k = 0;
|
|
1459
|
-
if (
|
|
1459
|
+
if (_.forEach((w) => {
|
|
1460
1460
|
w.forEach((f) => {
|
|
1461
1461
|
f.type === "transition" && (k += f.duration);
|
|
1462
1462
|
});
|
|
1463
|
-
}), r[
|
|
1464
|
-
const w = r[
|
|
1465
|
-
r[
|
|
1463
|
+
}), r[I]) {
|
|
1464
|
+
const w = r[I].display.to - r[I].display.from;
|
|
1465
|
+
r[I].display = {
|
|
1466
1466
|
from: h - k,
|
|
1467
1467
|
to: h + w - k
|
|
1468
1468
|
}, h += w;
|
|
@@ -1470,96 +1470,96 @@ function nt(t, r, e) {
|
|
|
1470
1470
|
});
|
|
1471
1471
|
});
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Ni(t, r, e) {
|
|
1474
1474
|
const n = t.toId, i = e[n], o = r.find((c) => c.items.includes(n));
|
|
1475
1475
|
o && (o.magnetic || o.items.forEach((c) => {
|
|
1476
1476
|
const u = e[c];
|
|
1477
1477
|
u.display.from > i.display.from && (u.display.from = u.display.from + t.duration, u.display.to = u.display.to + t.duration);
|
|
1478
1478
|
}));
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
const e = C(t), n = r && r.length ? r : e.activeIds, i = n.map((
|
|
1482
|
-
(
|
|
1483
|
-
const v = e.transitionsMap[
|
|
1480
|
+
function Hi(t, r) {
|
|
1481
|
+
const e = C(t), n = r && r.length ? r : e.activeIds, i = n.map((y) => e.trackItemsMap[y]).filter((y) => !!y).map((y) => y.id), o = e.transitionIds.filter(
|
|
1482
|
+
(y) => {
|
|
1483
|
+
const v = e.transitionsMap[y];
|
|
1484
1484
|
return i.includes(v.fromId) || i.includes(v.toId);
|
|
1485
1485
|
}
|
|
1486
1486
|
);
|
|
1487
1487
|
i.push(...o);
|
|
1488
1488
|
const c = {}, u = e.trackItemIds, d = e.transitionIds, p = C(e.tracks), m = C(e.structure);
|
|
1489
|
-
i.forEach((
|
|
1490
|
-
var
|
|
1491
|
-
const v = e.trackItemsMap[
|
|
1489
|
+
i.forEach((y) => {
|
|
1490
|
+
var S;
|
|
1491
|
+
const v = e.trackItemsMap[y] || e.transitionsMap[y];
|
|
1492
1492
|
if (v.type === "template" || v.type === "composition") {
|
|
1493
|
-
const A = (
|
|
1493
|
+
const A = (S = e.structure.find(
|
|
1494
1494
|
(T) => T.id === v.id
|
|
1495
|
-
)) == null ? void 0 :
|
|
1495
|
+
)) == null ? void 0 : S.items;
|
|
1496
1496
|
i.push(...A);
|
|
1497
|
-
const
|
|
1497
|
+
const E = m.findIndex(
|
|
1498
1498
|
(T) => T.id === v.id
|
|
1499
1499
|
);
|
|
1500
|
-
m.splice(
|
|
1500
|
+
m.splice(E, 1);
|
|
1501
1501
|
}
|
|
1502
|
-
}), i.forEach((
|
|
1502
|
+
}), i.forEach((y) => {
|
|
1503
1503
|
m.forEach((v) => {
|
|
1504
|
-
v.items.includes(
|
|
1504
|
+
v.items.includes(y) && (v.items = v.items.filter((S) => S !== y));
|
|
1505
1505
|
});
|
|
1506
1506
|
});
|
|
1507
1507
|
const b = u.filter(
|
|
1508
|
-
(
|
|
1508
|
+
(y) => !i.includes(y)
|
|
1509
1509
|
);
|
|
1510
|
-
d.forEach((
|
|
1511
|
-
n.includes(
|
|
1510
|
+
d.forEach((y) => {
|
|
1511
|
+
n.includes(y) && n.length === 1 && (c[y] = C(e.transitionsMap[y]));
|
|
1512
1512
|
});
|
|
1513
1513
|
const h = d.filter(
|
|
1514
|
-
(
|
|
1515
|
-
),
|
|
1514
|
+
(y) => !i.includes(y) && !n.includes(y)
|
|
1515
|
+
), I = Object.fromEntries(
|
|
1516
1516
|
Object.entries(e.transitionsMap).filter(
|
|
1517
|
-
([
|
|
1517
|
+
([y]) => !i.includes(y)
|
|
1518
1518
|
)
|
|
1519
1519
|
);
|
|
1520
|
-
Object.keys(
|
|
1521
|
-
n.includes(
|
|
1520
|
+
Object.keys(I).forEach((y) => {
|
|
1521
|
+
n.includes(y) && (I[y].kind = "none");
|
|
1522
1522
|
});
|
|
1523
|
-
const
|
|
1523
|
+
const _ = Li(
|
|
1524
1524
|
e.tracks,
|
|
1525
1525
|
i
|
|
1526
1526
|
), k = Object.fromEntries(
|
|
1527
1527
|
Object.entries(e.trackItemsMap).filter(
|
|
1528
|
-
([
|
|
1528
|
+
([y]) => !i.includes(y)
|
|
1529
1529
|
)
|
|
1530
|
-
), w = p.filter((
|
|
1530
|
+
), w = p.filter((y) => y.magnetic);
|
|
1531
1531
|
nt(w, k, []);
|
|
1532
1532
|
const f = K(k);
|
|
1533
|
-
return Object.keys(c).forEach((
|
|
1534
|
-
|
|
1535
|
-
c[
|
|
1536
|
-
|
|
1533
|
+
return Object.keys(c).forEach((y) => {
|
|
1534
|
+
Ni(
|
|
1535
|
+
c[y],
|
|
1536
|
+
_,
|
|
1537
1537
|
k
|
|
1538
1538
|
);
|
|
1539
1539
|
}), {
|
|
1540
1540
|
trackItemIds: b,
|
|
1541
1541
|
activeIds: [],
|
|
1542
1542
|
trackItemsMap: k,
|
|
1543
|
-
tracks:
|
|
1543
|
+
tracks: _,
|
|
1544
1544
|
duration: f,
|
|
1545
1545
|
structure: m,
|
|
1546
1546
|
transitionIds: h,
|
|
1547
|
-
transitionsMap:
|
|
1547
|
+
transitionsMap: I
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
const
|
|
1550
|
+
const Ui = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1551
1551
|
let fs = (t = 21) => {
|
|
1552
1552
|
let r = "", e = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
1553
1553
|
for (; t--; )
|
|
1554
|
-
r +=
|
|
1554
|
+
r += Ui[e[t] & 63];
|
|
1555
1555
|
return r;
|
|
1556
1556
|
};
|
|
1557
|
-
function
|
|
1557
|
+
function pe(t = 16) {
|
|
1558
1558
|
const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", e = r.charAt(Math.floor(Math.random() * r.length));
|
|
1559
1559
|
let n = fs(t - 1);
|
|
1560
1560
|
return n = n.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), e + n;
|
|
1561
1561
|
}
|
|
1562
|
-
const
|
|
1562
|
+
const rr = (t) => {
|
|
1563
1563
|
const r = t.map((e) => new FontFace(e.fontFamily, `url(${e.url})`).load().catch((n) => n));
|
|
1564
1564
|
return r.length === 0 ? Promise.resolve(!0) : new Promise((e, n) => {
|
|
1565
1565
|
Promise.all(r).then((i) => {
|
|
@@ -1572,28 +1572,23 @@ const er = (t) => {
|
|
|
1572
1572
|
async function ji(t) {
|
|
1573
1573
|
const r = localStorage.getItem("DesignComboTemp");
|
|
1574
1574
|
if (!r) return {};
|
|
1575
|
-
const e =
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
fontFamily: p.details.fontFamily,
|
|
1580
|
-
url: p.details.fontUrl
|
|
1581
|
-
}
|
|
1582
|
-
]);
|
|
1583
|
-
const m = le();
|
|
1584
|
-
return e.trackItemsMap[m] = {
|
|
1585
|
-
...i[d],
|
|
1586
|
-
id: m,
|
|
1587
|
-
details: p.details
|
|
1588
|
-
}, e.trackItemIds.push(m), !0;
|
|
1589
|
-
});
|
|
1590
|
-
return await Promise.all(u), o.forEach((d) => {
|
|
1575
|
+
const e = C(t), n = C(JSON.parse(r)), i = n.trackItemsMap, o = n.activeIds, c = [];
|
|
1576
|
+
return o.forEach((u) => {
|
|
1577
|
+
const d = i[u];
|
|
1578
|
+
e.trackItemsMap[u] = d, e.trackItemIds.push(u);
|
|
1591
1579
|
const p = {
|
|
1592
|
-
|
|
1580
|
+
id: pe(),
|
|
1581
|
+
type: d.type,
|
|
1582
|
+
items: [u],
|
|
1593
1583
|
magnetic: !1,
|
|
1594
1584
|
static: !1
|
|
1595
1585
|
};
|
|
1596
|
-
c.push(p)
|
|
1586
|
+
c.push(p), (d.type === "text" || d.type === "caption") && rr([
|
|
1587
|
+
{
|
|
1588
|
+
fontFamily: d.details.fontFamily,
|
|
1589
|
+
url: d.details.fontUrl
|
|
1590
|
+
}
|
|
1591
|
+
]);
|
|
1597
1592
|
}), e.tracks = [...c, ...e.tracks], {
|
|
1598
1593
|
tracks: e.tracks,
|
|
1599
1594
|
trackItemIds: e.trackItemIds,
|
|
@@ -1624,22 +1619,23 @@ let Sr = {
|
|
|
1624
1619
|
radialAudioBars: ["audio", "radialAudioBars"],
|
|
1625
1620
|
progressFrame: ["audio", "progressFrame"],
|
|
1626
1621
|
progressBar: ["audio", "progressBar"],
|
|
1627
|
-
rect: ["rect"]
|
|
1622
|
+
rect: ["rect"],
|
|
1623
|
+
progressSquare: ["progressSquare"]
|
|
1628
1624
|
}
|
|
1629
1625
|
};
|
|
1630
|
-
const
|
|
1626
|
+
const Wi = (t) => {
|
|
1631
1627
|
const r = Object.fromEntries(
|
|
1632
1628
|
Object.entries(t).filter(([e, n]) => n !== void 0)
|
|
1633
1629
|
);
|
|
1634
1630
|
Sr = { ...Sr, ...r };
|
|
1635
|
-
},
|
|
1631
|
+
}, Pn = () => Sr.cors, Bi = () => Sr.acceptsMap, $e = (t) => new Promise((r, e) => {
|
|
1636
1632
|
const n = new Image();
|
|
1637
1633
|
n.onload = () => {
|
|
1638
1634
|
const o = n.width, c = n.height;
|
|
1639
1635
|
r({ width: o, height: c });
|
|
1640
1636
|
}, n.onerror = (o) => {
|
|
1641
1637
|
e(o);
|
|
1642
|
-
},
|
|
1638
|
+
}, Pn().image && (n.crossOrigin = "anonymous"), n.src = t;
|
|
1643
1639
|
}), ps = (t) => new Promise((r, e) => {
|
|
1644
1640
|
const n = new Audio();
|
|
1645
1641
|
n.preload = "auto", n.addEventListener("loadedmetadata", () => {
|
|
@@ -1647,7 +1643,7 @@ const Ui = (t) => {
|
|
|
1647
1643
|
r({ duration: o });
|
|
1648
1644
|
}), n.addEventListener("error", (o) => {
|
|
1649
1645
|
e(o);
|
|
1650
|
-
}), n.src = t,
|
|
1646
|
+
}), n.src = t, Pn().audio && (n.crossOrigin = "anonymous"), n.load();
|
|
1651
1647
|
}), Dn = (t) => new Promise((r, e) => {
|
|
1652
1648
|
const n = document.createElement("video");
|
|
1653
1649
|
n.preload = "auto", n.addEventListener("loadedmetadata", () => {
|
|
@@ -1655,8 +1651,8 @@ const Ui = (t) => {
|
|
|
1655
1651
|
r({ duration: o, width: c, height: u });
|
|
1656
1652
|
}), n.addEventListener("error", (o) => {
|
|
1657
1653
|
e(o);
|
|
1658
|
-
}), n.src = t,
|
|
1659
|
-
}),
|
|
1654
|
+
}), n.src = t, Pn().video && (n.crossOrigin = "anonymous"), n.load();
|
|
1655
|
+
}), Yi = async (t) => {
|
|
1660
1656
|
var i, o;
|
|
1661
1657
|
const r = t.duration, e = (i = t.details) == null ? void 0 : i.width, n = (o = t.details) == null ? void 0 : o.height;
|
|
1662
1658
|
return r && e && n ? { duration: r, width: e, height: n } : Dn(t.details.src);
|
|
@@ -1694,11 +1690,11 @@ async function Gi(t, r) {
|
|
|
1694
1690
|
const e = { ...t }, n = Object.keys(r)[0], i = Object.values(r)[0], o = e.trackItemsMap[n], c = { ...e.trackItemsMap[n] }, u = o.details;
|
|
1695
1691
|
if (!i.details.src) return {};
|
|
1696
1692
|
if (o.type === "image") {
|
|
1697
|
-
const d = await
|
|
1693
|
+
const d = await $e(i.details.src), { crop: p, newHeight: m, newWidth: b } = Kn(o, d);
|
|
1698
1694
|
i.details.crop = p, i.details.height = m, i.details.width = b;
|
|
1699
1695
|
} else if (o.type === "video") {
|
|
1700
|
-
const d = await Dn(i.details.src), p = e.trackItemsMap[n], { display: m, duration: b, trim: h } = Vn(p, d), { crop:
|
|
1701
|
-
i.details.crop =
|
|
1696
|
+
const d = await Dn(i.details.src), p = e.trackItemsMap[n], { display: m, duration: b, trim: h } = Vn(p, d), { crop: I, newHeight: _, newWidth: k } = Kn(o, d);
|
|
1697
|
+
i.details.crop = I, i.details.height = _, i.details.width = k, c.display = m, c.duration = b, c.trim = h;
|
|
1702
1698
|
} else if (o.type === "audio") {
|
|
1703
1699
|
const d = await ps(i.details.src), p = e.trackItemsMap[n], { display: m, duration: b, trim: h } = Vn(p, d);
|
|
1704
1700
|
c.display = m, c.duration = b, c.trim = h;
|
|
@@ -1710,11 +1706,11 @@ async function Gi(t, r) {
|
|
|
1710
1706
|
}
|
|
1711
1707
|
};
|
|
1712
1708
|
}
|
|
1713
|
-
function
|
|
1709
|
+
function Xi(t, r) {
|
|
1714
1710
|
const e = C(t), n = {}, i = r && r.length ? r : e.activeIds;
|
|
1715
1711
|
if (i.length === 0) return {};
|
|
1716
1712
|
i.forEach((c) => {
|
|
1717
|
-
const u = e.trackItemsMap[c], d =
|
|
1713
|
+
const u = e.trackItemsMap[c], d = pe();
|
|
1718
1714
|
e.trackItemsMap[d] = {
|
|
1719
1715
|
...C(u),
|
|
1720
1716
|
id: d
|
|
@@ -1724,7 +1720,7 @@ function Yi(t, r) {
|
|
|
1724
1720
|
);
|
|
1725
1721
|
n[p.id] ? n[p.id].items.push(d) : n[p.id] = {
|
|
1726
1722
|
...p,
|
|
1727
|
-
id:
|
|
1723
|
+
id: pe(),
|
|
1728
1724
|
items: [d],
|
|
1729
1725
|
static: !1,
|
|
1730
1726
|
magnetic: !1
|
|
@@ -1737,7 +1733,7 @@ function Yi(t, r) {
|
|
|
1737
1733
|
trackItemIds: e.trackItemIds
|
|
1738
1734
|
};
|
|
1739
1735
|
}
|
|
1740
|
-
function
|
|
1736
|
+
function Ki(t) {
|
|
1741
1737
|
const r = /#([0-9a-fA-F]{3,6})\b/g, e = /rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/g, n = /rgba\(\s*(\d+),\s*(\d+),\s*(\d+),\s*([0-9.]+)\s*\)/g;
|
|
1742
1738
|
function i(c) {
|
|
1743
1739
|
return c.length === 3 ? `#${c[0]}${c[0]}${c[1]}${c[1]}${c[2]}${c[2]}`.toUpperCase() : `#${c.toUpperCase()}`;
|
|
@@ -1781,10 +1777,10 @@ function gs(t) {
|
|
|
1781
1777
|
const n = t.parentElement;
|
|
1782
1778
|
return n ? gs(n) : null;
|
|
1783
1779
|
}
|
|
1784
|
-
function
|
|
1780
|
+
function Ve(t) {
|
|
1785
1781
|
return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(t);
|
|
1786
1782
|
}
|
|
1787
|
-
const
|
|
1783
|
+
const Vi = (t) => {
|
|
1788
1784
|
const r = `.${t.split(".").filter((o) => o.includes("fill:")).join(".")}`, e = {}, n = /\.([\w-]+)\s*\{\s*([^}]+)\s*\}/g;
|
|
1789
1785
|
let i;
|
|
1790
1786
|
for (; (i = n.exec(r)) !== null; ) {
|
|
@@ -1802,45 +1798,45 @@ function hn(t) {
|
|
|
1802
1798
|
}
|
|
1803
1799
|
return !1;
|
|
1804
1800
|
}
|
|
1805
|
-
function
|
|
1801
|
+
function qi(t, r, e = 300, n = 300) {
|
|
1806
1802
|
const i = [], c = new DOMParser().parseFromString(t, "image/svg+xml"), u = c.documentElement;
|
|
1807
1803
|
u.setAttribute("width", `${e}`), u.setAttribute("height", `${n}`);
|
|
1808
1804
|
const d = u.querySelectorAll("style"), p = {};
|
|
1809
1805
|
d.forEach((k) => {
|
|
1810
|
-
const w = k.textContent || "", f =
|
|
1806
|
+
const w = k.textContent || "", f = Vi(w);
|
|
1811
1807
|
Object.assign(p, f);
|
|
1812
|
-
const
|
|
1813
|
-
k.textContent =
|
|
1814
|
-
const v = Array.from(c.querySelectorAll("*")),
|
|
1808
|
+
const y = w.replace(/\.(st[\w-]+)/g, `.${r}-$1`).replace(/url\(#(.*?)\)/g, `url(#${r}-$1)`);
|
|
1809
|
+
k.textContent = y;
|
|
1810
|
+
const v = Array.from(c.querySelectorAll("*")), S = /* @__PURE__ */ new Set();
|
|
1815
1811
|
v.forEach((A) => {
|
|
1816
1812
|
if (hn(A)) return;
|
|
1817
1813
|
["fill", "stroke", "stop-color"].forEach((H) => {
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1814
|
+
const R = A.getAttribute(H);
|
|
1815
|
+
R && !["none", "transparent"].includes(R) && S.add(X(R));
|
|
1820
1816
|
});
|
|
1821
|
-
const
|
|
1822
|
-
if (
|
|
1823
|
-
const H = /fill\s*:\s*([^;]+);?/.exec(
|
|
1817
|
+
const E = A.getAttribute("style");
|
|
1818
|
+
if (E) {
|
|
1819
|
+
const H = /fill\s*:\s*([^;]+);?/.exec(E), R = /stroke\s*:\s*([^;]+);?/.exec(E), V = /stop-color\s*:\s*([^;]+);?/.exec(E);
|
|
1824
1820
|
if (H) {
|
|
1825
1821
|
const x = H[1].trim();
|
|
1826
|
-
x && !["none", "transparent"].includes(x) &&
|
|
1822
|
+
x && !["none", "transparent"].includes(x) && Ve(X(x)) && S.add(X(x));
|
|
1827
1823
|
}
|
|
1828
|
-
if (
|
|
1829
|
-
const x =
|
|
1830
|
-
x && !["none", "transparent"].includes(x) &&
|
|
1824
|
+
if (R) {
|
|
1825
|
+
const x = R[1].trim();
|
|
1826
|
+
x && !["none", "transparent"].includes(x) && Ve(X(x)) && S.add(X(x));
|
|
1831
1827
|
}
|
|
1832
1828
|
if (V) {
|
|
1833
1829
|
const x = V[1].trim();
|
|
1834
|
-
x && !["none", "transparent"].includes(x) &&
|
|
1830
|
+
x && !["none", "transparent"].includes(x) && Ve(X(x)) && S.add(X(x));
|
|
1835
1831
|
}
|
|
1836
1832
|
}
|
|
1837
1833
|
const T = A.getAttribute("class");
|
|
1838
1834
|
T && T.split(" ").forEach((H) => {
|
|
1839
|
-
const
|
|
1840
|
-
|
|
1835
|
+
const R = p[H];
|
|
1836
|
+
R != null && R.fill && !["none", "transparent"].includes(R.fill) && S.add(X(R.fill)), R != null && R.stroke && !["none", "transparent"].includes(R.stroke) && S.add(X(R.stroke));
|
|
1841
1837
|
});
|
|
1842
|
-
}), Array.from(
|
|
1843
|
-
|
|
1838
|
+
}), Array.from(S).forEach((A) => {
|
|
1839
|
+
Ve(A) && i.push(A);
|
|
1844
1840
|
});
|
|
1845
1841
|
});
|
|
1846
1842
|
const m = Array.from(c.querySelectorAll("*")), b = /* @__PURE__ */ new Set();
|
|
@@ -1848,34 +1844,34 @@ function Vi(t, r, e = 300, n = 300) {
|
|
|
1848
1844
|
if (hn(k)) return;
|
|
1849
1845
|
const w = k.getAttribute("class");
|
|
1850
1846
|
if (w) {
|
|
1851
|
-
const
|
|
1852
|
-
k.setAttribute("class",
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1847
|
+
const y = w.split(" ").map((v) => `${r}-${v}`).join(" ");
|
|
1848
|
+
k.setAttribute("class", y), y.split(" ").forEach((v) => {
|
|
1849
|
+
const S = p[v];
|
|
1850
|
+
S != null && S.fill && !["none", "transparent"].includes(S.fill) && b.add(X(S.fill)), S != null && S.stroke && !["none", "transparent"].includes(S.stroke) && b.add(X(S.stroke));
|
|
1855
1851
|
});
|
|
1856
1852
|
}
|
|
1857
|
-
["fill", "stroke", "stop-color"].forEach((
|
|
1858
|
-
const v = k.getAttribute(
|
|
1853
|
+
["fill", "stroke", "stop-color"].forEach((y) => {
|
|
1854
|
+
const v = k.getAttribute(y);
|
|
1859
1855
|
v && !["none", "transparent"].includes(v) && b.add(X(v));
|
|
1860
1856
|
});
|
|
1861
1857
|
const f = k.getAttribute("style");
|
|
1862
1858
|
if (f) {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
const A =
|
|
1859
|
+
const y = /fill\s*:\s*([^;]+);?/.exec(f), v = /stroke\s*:\s*([^;]+);?/.exec(f), S = /stop-color\s*:\s*([^;]+);?/.exec(f);
|
|
1860
|
+
if (y) {
|
|
1861
|
+
const A = y[1].trim();
|
|
1866
1862
|
A && !["none", "transparent"].includes(A) && b.add(X(A));
|
|
1867
1863
|
}
|
|
1868
1864
|
if (v) {
|
|
1869
1865
|
const A = v[1].trim();
|
|
1870
1866
|
A && !["none", "transparent"].includes(A) && b.add(X(A));
|
|
1871
1867
|
}
|
|
1872
|
-
if (
|
|
1873
|
-
const A =
|
|
1868
|
+
if (S) {
|
|
1869
|
+
const A = S[1].trim();
|
|
1874
1870
|
A && !["none", "transparent"].includes(A) && b.add(X(A));
|
|
1875
1871
|
}
|
|
1876
1872
|
}
|
|
1877
1873
|
}), b.forEach(
|
|
1878
|
-
(k) => !i.includes(k) &&
|
|
1874
|
+
(k) => !i.includes(k) && Ve(k) && i.push(k)
|
|
1879
1875
|
), Array.from(c.querySelectorAll("*")).forEach((k) => {
|
|
1880
1876
|
if (k.hasAttribute("id")) {
|
|
1881
1877
|
const w = k.getAttribute("id");
|
|
@@ -1901,12 +1897,12 @@ function Vi(t, r, e = 300, n = 300) {
|
|
|
1901
1897
|
!gs(k) && !k.getAttribute("class") && (k.setAttribute("fill", "#000000"), i.includes("#000000") || i.push("#000000"));
|
|
1902
1898
|
}), { serializer: new XMLSerializer().serializeToString(c), colors: i };
|
|
1903
1899
|
}
|
|
1904
|
-
const
|
|
1900
|
+
const nr = {
|
|
1905
1901
|
color: "#000000",
|
|
1906
1902
|
x: 0,
|
|
1907
1903
|
y: 0,
|
|
1908
1904
|
blur: 0
|
|
1909
|
-
},
|
|
1905
|
+
}, ft = (t, r) => {
|
|
1910
1906
|
let e = r != null && r.trim ? r.trim.to - r.trim.from : (r == null ? void 0 : r.duration) || 5e3;
|
|
1911
1907
|
const n = {
|
|
1912
1908
|
from: 0,
|
|
@@ -1953,7 +1949,7 @@ function Is(t, r) {
|
|
|
1953
1949
|
// No scaling for text/captions
|
|
1954
1950
|
};
|
|
1955
1951
|
}
|
|
1956
|
-
function
|
|
1952
|
+
function pt(t, r) {
|
|
1957
1953
|
const e = t.scaleMode, n = {
|
|
1958
1954
|
x: t.size.width / 2,
|
|
1959
1955
|
y: t.size.height / 2
|
|
@@ -1983,7 +1979,7 @@ function mt(t, r) {
|
|
|
1983
1979
|
};
|
|
1984
1980
|
}
|
|
1985
1981
|
const bs = async (t, r) => {
|
|
1986
|
-
const e = t.details.src, n = await
|
|
1982
|
+
const e = t.details.src, n = await Yi(t), i = pt(r, {
|
|
1987
1983
|
...n
|
|
1988
1984
|
}), o = ys(t.trim, { duration: n.duration }), c = {
|
|
1989
1985
|
width: n.width,
|
|
@@ -1998,7 +1994,7 @@ const bs = async (t, r) => {
|
|
|
1998
1994
|
// Default border width
|
|
1999
1995
|
borderColor: t.details.borderColor || "#000000",
|
|
2000
1996
|
// Default border color
|
|
2001
|
-
boxShadow: t.details.boxShadow ||
|
|
1997
|
+
boxShadow: t.details.boxShadow || nr,
|
|
2002
1998
|
top: t.details.top || i.top || "0px",
|
|
2003
1999
|
// Default top
|
|
2004
2000
|
left: t.details.left || i.left || "0px",
|
|
@@ -2019,7 +2015,7 @@ const bs = async (t, r) => {
|
|
|
2019
2015
|
name: "video",
|
|
2020
2016
|
details: c,
|
|
2021
2017
|
playbackRate: t.playbackRate || 1,
|
|
2022
|
-
display:
|
|
2018
|
+
display: ft(t.display, { duration: n.duration, trim: o }),
|
|
2023
2019
|
duration: n.duration
|
|
2024
2020
|
};
|
|
2025
2021
|
}, ks = async (t) => {
|
|
@@ -2028,7 +2024,7 @@ const bs = async (t, r) => {
|
|
|
2028
2024
|
id: r,
|
|
2029
2025
|
name: t.name || "audio",
|
|
2030
2026
|
type: "audio",
|
|
2031
|
-
display:
|
|
2027
|
+
display: ft(t.display, { duration: i, trim: o }),
|
|
2032
2028
|
trim: o,
|
|
2033
2029
|
playbackRate: t.playbackRate || 1,
|
|
2034
2030
|
details: {
|
|
@@ -2044,7 +2040,7 @@ const bs = async (t, r) => {
|
|
|
2044
2040
|
const e = t.id, n = {
|
|
2045
2041
|
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2046
2042
|
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2047
|
-
}, i = t.details, o =
|
|
2043
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2048
2044
|
return {
|
|
2049
2045
|
id: e,
|
|
2050
2046
|
name: t.type,
|
|
@@ -2077,12 +2073,12 @@ const bs = async (t, r) => {
|
|
|
2077
2073
|
},
|
|
2078
2074
|
metadata: {}
|
|
2079
2075
|
};
|
|
2080
|
-
},
|
|
2076
|
+
}, Zi = async (t, r) => {
|
|
2081
2077
|
var u, d;
|
|
2082
2078
|
const e = t.id, n = {
|
|
2083
2079
|
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2084
2080
|
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2085
|
-
}, i = t.details, o =
|
|
2081
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2086
2082
|
return {
|
|
2087
2083
|
id: e,
|
|
2088
2084
|
name: t.type,
|
|
@@ -2116,12 +2112,12 @@ const bs = async (t, r) => {
|
|
|
2116
2112
|
},
|
|
2117
2113
|
metadata: {}
|
|
2118
2114
|
};
|
|
2119
|
-
},
|
|
2115
|
+
}, Qi = async (t, r) => {
|
|
2120
2116
|
var u, d;
|
|
2121
2117
|
const e = t.id, n = {
|
|
2122
2118
|
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2123
2119
|
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2124
|
-
}, i = t.details, o =
|
|
2120
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2125
2121
|
return {
|
|
2126
2122
|
id: e,
|
|
2127
2123
|
name: t.type,
|
|
@@ -2150,12 +2146,50 @@ const bs = async (t, r) => {
|
|
|
2150
2146
|
},
|
|
2151
2147
|
metadata: {}
|
|
2152
2148
|
};
|
|
2149
|
+
}, ta = async (t, r) => {
|
|
2150
|
+
var u, d;
|
|
2151
|
+
const e = t.id, n = {
|
|
2152
|
+
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2153
|
+
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2154
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2155
|
+
return {
|
|
2156
|
+
id: e,
|
|
2157
|
+
name: t.type,
|
|
2158
|
+
type: t.type,
|
|
2159
|
+
display: c,
|
|
2160
|
+
details: {
|
|
2161
|
+
width: (i == null ? void 0 : i.width) || n.width,
|
|
2162
|
+
// Default width
|
|
2163
|
+
height: (i == null ? void 0 : i.height) || n.height,
|
|
2164
|
+
// Default height
|
|
2165
|
+
top: (i == null ? void 0 : i.top) || o.top,
|
|
2166
|
+
left: (i == null ? void 0 : i.left) || o.left,
|
|
2167
|
+
border: i.border || "none",
|
|
2168
|
+
// Default border
|
|
2169
|
+
borderRadius: i.borderRadius || 0,
|
|
2170
|
+
// Default border radius
|
|
2171
|
+
borderWidth: i.borderWidth || 0,
|
|
2172
|
+
// Default border width
|
|
2173
|
+
borderColor: i.borderColor || "#000000",
|
|
2174
|
+
// Default border color
|
|
2175
|
+
opacity: i.opacity || 100,
|
|
2176
|
+
// Default opacity
|
|
2177
|
+
strokeColors: (i == null ? void 0 : i.strokeColors) || ["#ff9800", "#ff5722"],
|
|
2178
|
+
strokeWidth: (i == null ? void 0 : i.strokeWidth) || 100,
|
|
2179
|
+
strokeBackground: (i == null ? void 0 : i.strokeBackground) || "#fff",
|
|
2180
|
+
flipX: (i == null ? void 0 : i.flipX) || !1,
|
|
2181
|
+
flipY: (i == null ? void 0 : i.flipY) || !1,
|
|
2182
|
+
rotate: (i == null ? void 0 : i.rotate) || "0deg",
|
|
2183
|
+
transform: (i == null ? void 0 : i.transform) || "none"
|
|
2184
|
+
},
|
|
2185
|
+
metadata: {}
|
|
2186
|
+
};
|
|
2153
2187
|
}, mn = async (t, r) => {
|
|
2154
2188
|
var c, u;
|
|
2155
2189
|
const e = t.id, n = {
|
|
2156
2190
|
width: ((c = t.details) == null ? void 0 : c.width) || r.size.width,
|
|
2157
2191
|
height: ((u = t.details) == null ? void 0 : u.height) || r.size.height
|
|
2158
|
-
}, i = t.details, o =
|
|
2192
|
+
}, i = t.details, o = pt(r, n);
|
|
2159
2193
|
return {
|
|
2160
2194
|
id: e,
|
|
2161
2195
|
name: t.type,
|
|
@@ -2211,11 +2245,11 @@ const bs = async (t, r) => {
|
|
|
2211
2245
|
}, i = Math.min(
|
|
2212
2246
|
r.size.width / n.width,
|
|
2213
2247
|
r.size.height / n.height
|
|
2214
|
-
), o = ((b = t.details) == null ? void 0 : b.rotate) || 0, c =
|
|
2248
|
+
), o = ((b = t.details) == null ? void 0 : b.rotate) || 0, c = pt(r, n), u = t.display;
|
|
2215
2249
|
let d = 1 / 0, p = 0;
|
|
2216
2250
|
e.forEach((h) => {
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2251
|
+
const I = t.trackItemsMap[h];
|
|
2252
|
+
I.display.from < d && (d = I.display.from), I.display.to > p && (p = I.display.to);
|
|
2219
2253
|
});
|
|
2220
2254
|
const m = t.trim || t.display || { from: d, to: p };
|
|
2221
2255
|
return {
|
|
@@ -2235,7 +2269,7 @@ const bs = async (t, r) => {
|
|
|
2235
2269
|
display: u || { from: d, to: p },
|
|
2236
2270
|
activeEdit: !1
|
|
2237
2271
|
};
|
|
2238
|
-
},
|
|
2272
|
+
}, ea = async (t, r) => {
|
|
2239
2273
|
var m;
|
|
2240
2274
|
const e = t.trackItemIds, n = t.size || {
|
|
2241
2275
|
width: t.details.width,
|
|
@@ -2243,7 +2277,7 @@ const bs = async (t, r) => {
|
|
|
2243
2277
|
}, i = Math.min(
|
|
2244
2278
|
r.size.width / n.width,
|
|
2245
2279
|
r.size.height / n.height
|
|
2246
|
-
), o = ((m = t.details) == null ? void 0 : m.rotate) || 0, c =
|
|
2280
|
+
), o = ((m = t.details) == null ? void 0 : m.rotate) || 0, c = pt(r, n), u = t.display;
|
|
2247
2281
|
let d = 1 / 0, p = 0;
|
|
2248
2282
|
return e.forEach((b) => {
|
|
2249
2283
|
const h = t.trackItemsMap[b];
|
|
@@ -2263,11 +2297,11 @@ const bs = async (t, r) => {
|
|
|
2263
2297
|
display: u || { from: d, to: p }
|
|
2264
2298
|
};
|
|
2265
2299
|
}, _s = async (t, r) => {
|
|
2266
|
-
const e = t.details, n =
|
|
2300
|
+
const e = t.details, n = $e(e.src), i = fetch(e.src), [o, c] = await Promise.all([
|
|
2267
2301
|
n,
|
|
2268
2302
|
i
|
|
2269
|
-
]), u = await c.text(), d =
|
|
2270
|
-
|
|
2303
|
+
]), u = await c.text(), d = pt(r, o), { serializer: p, colors: m } = qi(
|
|
2304
|
+
Ki(u),
|
|
2271
2305
|
t.id,
|
|
2272
2306
|
Number(e.width || o.width),
|
|
2273
2307
|
Number(e.height || o.height)
|
|
@@ -2276,7 +2310,7 @@ const bs = async (t, r) => {
|
|
|
2276
2310
|
id: t.id,
|
|
2277
2311
|
name: "illustration",
|
|
2278
2312
|
type: t.type,
|
|
2279
|
-
display:
|
|
2313
|
+
display: ft(t.display),
|
|
2280
2314
|
playbackRate: t.playbackRate || 1,
|
|
2281
2315
|
details: {
|
|
2282
2316
|
src: e.src || "",
|
|
@@ -2311,13 +2345,13 @@ const bs = async (t, r) => {
|
|
|
2311
2345
|
},
|
|
2312
2346
|
metadata: t.metadata || {}
|
|
2313
2347
|
};
|
|
2314
|
-
},
|
|
2315
|
-
const e = t.details, n =
|
|
2348
|
+
}, ra = async (t, r) => {
|
|
2349
|
+
const e = t.details, n = $e(e.src), [i] = await Promise.all([n]), o = pt(r, i);
|
|
2316
2350
|
return {
|
|
2317
2351
|
id: t.id,
|
|
2318
2352
|
name: "shape",
|
|
2319
2353
|
type: t.type,
|
|
2320
|
-
display:
|
|
2354
|
+
display: ft(t.display),
|
|
2321
2355
|
playbackRate: t.playbackRate || 1,
|
|
2322
2356
|
details: {
|
|
2323
2357
|
src: e.src || "",
|
|
@@ -2350,8 +2384,8 @@ const bs = async (t, r) => {
|
|
|
2350
2384
|
},
|
|
2351
2385
|
metadata: t.metadata || {}
|
|
2352
2386
|
};
|
|
2353
|
-
},
|
|
2354
|
-
const e = t.details, n =
|
|
2387
|
+
}, na = async (t, r) => {
|
|
2388
|
+
const e = t.details, n = pt(r, {
|
|
2355
2389
|
width: e.width,
|
|
2356
2390
|
height: e.height
|
|
2357
2391
|
});
|
|
@@ -2359,7 +2393,7 @@ const bs = async (t, r) => {
|
|
|
2359
2393
|
id: t.id,
|
|
2360
2394
|
name: "rect",
|
|
2361
2395
|
type: t.type,
|
|
2362
|
-
display:
|
|
2396
|
+
display: ft(t.display),
|
|
2363
2397
|
playbackRate: t.playbackRate || 1,
|
|
2364
2398
|
details: {
|
|
2365
2399
|
width: e.width || 100,
|
|
@@ -2387,7 +2421,7 @@ const bs = async (t, r) => {
|
|
|
2387
2421
|
rotate: e.rotate || "0deg",
|
|
2388
2422
|
visibility: e.visibility || "visible",
|
|
2389
2423
|
backgroundColor: e.backgroundColor || "#808080",
|
|
2390
|
-
boxShadow: e.boxShadow ||
|
|
2424
|
+
boxShadow: e.boxShadow || nr,
|
|
2391
2425
|
// Default box shadow
|
|
2392
2426
|
blur: e.blur || 0,
|
|
2393
2427
|
brightness: e.brightness || 100
|
|
@@ -2395,12 +2429,12 @@ const bs = async (t, r) => {
|
|
|
2395
2429
|
metadata: t.metadata || {}
|
|
2396
2430
|
};
|
|
2397
2431
|
}, Ss = async (t, r) => {
|
|
2398
|
-
const e = t.details, n = await
|
|
2432
|
+
const e = t.details, n = await $e(e.src), i = pt(r, n);
|
|
2399
2433
|
return {
|
|
2400
2434
|
id: t.id,
|
|
2401
2435
|
type: "image",
|
|
2402
2436
|
name: "image",
|
|
2403
|
-
display:
|
|
2437
|
+
display: ft(t.display),
|
|
2404
2438
|
playbackRate: t.playbackRate || 1,
|
|
2405
2439
|
details: {
|
|
2406
2440
|
src: e.src || "",
|
|
@@ -2417,7 +2451,7 @@ const bs = async (t, r) => {
|
|
|
2417
2451
|
// Default border
|
|
2418
2452
|
borderRadius: e.borderRadius || 0,
|
|
2419
2453
|
// Default border radius
|
|
2420
|
-
boxShadow: e.boxShadow ||
|
|
2454
|
+
boxShadow: e.boxShadow || nr,
|
|
2421
2455
|
// Default box shadow
|
|
2422
2456
|
top: e.top || i.top || "0px",
|
|
2423
2457
|
// Default top
|
|
@@ -2438,7 +2472,7 @@ const bs = async (t, r) => {
|
|
|
2438
2472
|
};
|
|
2439
2473
|
}, ws = async (t, r) => {
|
|
2440
2474
|
const e = t;
|
|
2441
|
-
e.details.fontUrl && await
|
|
2475
|
+
e.details.fontUrl && await rr([
|
|
2442
2476
|
{
|
|
2443
2477
|
fontFamily: e.details.fontFamily,
|
|
2444
2478
|
url: e.details.fontUrl
|
|
@@ -2455,7 +2489,7 @@ const bs = async (t, r) => {
|
|
|
2455
2489
|
id: n,
|
|
2456
2490
|
name: "caption",
|
|
2457
2491
|
type: "caption",
|
|
2458
|
-
display:
|
|
2492
|
+
display: ft(e.display),
|
|
2459
2493
|
details: {
|
|
2460
2494
|
...e.details,
|
|
2461
2495
|
...o,
|
|
@@ -2468,7 +2502,7 @@ const bs = async (t, r) => {
|
|
|
2468
2502
|
left: o.left || u.left,
|
|
2469
2503
|
borderWidth: i.borderWidth || 0,
|
|
2470
2504
|
borderColor: i.borderColor || "#000000",
|
|
2471
|
-
boxShadow: i.boxShadow ||
|
|
2505
|
+
boxShadow: i.boxShadow || nr,
|
|
2472
2506
|
words: i.words || [],
|
|
2473
2507
|
appearedColor: i.appearedColor || i.color,
|
|
2474
2508
|
activeColor: i.activeColor || i.color,
|
|
@@ -2477,7 +2511,7 @@ const bs = async (t, r) => {
|
|
|
2477
2511
|
metadata: t.metadata || {}
|
|
2478
2512
|
};
|
|
2479
2513
|
}, Ts = async (t, r) => {
|
|
2480
|
-
t.details.fontUrl && await
|
|
2514
|
+
t.details.fontUrl && await rr([
|
|
2481
2515
|
{
|
|
2482
2516
|
fontFamily: t.details.fontFamily,
|
|
2483
2517
|
url: t.details.fontUrl
|
|
@@ -2494,7 +2528,7 @@ const bs = async (t, r) => {
|
|
|
2494
2528
|
id: e,
|
|
2495
2529
|
name: "text",
|
|
2496
2530
|
type: "text",
|
|
2497
|
-
display:
|
|
2531
|
+
display: ft(t.display),
|
|
2498
2532
|
details: {
|
|
2499
2533
|
...t.details,
|
|
2500
2534
|
...i,
|
|
@@ -2507,7 +2541,7 @@ const bs = async (t, r) => {
|
|
|
2507
2541
|
left: i.left || c.left,
|
|
2508
2542
|
borderWidth: n.borderWidth || 0,
|
|
2509
2543
|
borderColor: n.borderColor || "#000000",
|
|
2510
|
-
boxShadow: n.boxShadow ||
|
|
2544
|
+
boxShadow: n.boxShadow || nr
|
|
2511
2545
|
},
|
|
2512
2546
|
metadata: {}
|
|
2513
2547
|
};
|
|
@@ -2555,7 +2589,7 @@ const bs = async (t, r) => {
|
|
|
2555
2589
|
transform: t.transform || "none",
|
|
2556
2590
|
skewX: t.skewX || 0,
|
|
2557
2591
|
skewY: t.skewY || 0
|
|
2558
|
-
}),
|
|
2592
|
+
}), sa = async (t, r) => {
|
|
2559
2593
|
switch (t.type) {
|
|
2560
2594
|
case "video":
|
|
2561
2595
|
return bs(t, r || {});
|
|
@@ -2581,7 +2615,7 @@ function Es(t, r) {
|
|
|
2581
2615
|
);
|
|
2582
2616
|
}
|
|
2583
2617
|
const Ms = (t = [], r = []) => t.length === 0 ? r.map((n) => ({
|
|
2584
|
-
id:
|
|
2618
|
+
id: pe(),
|
|
2585
2619
|
items: [n.id],
|
|
2586
2620
|
type: n.type,
|
|
2587
2621
|
accepts: ["text", "image", "video", "audio", "caption", "template"]
|
|
@@ -2592,9 +2626,9 @@ const Ms = (t = [], r = []) => t.length === 0 ? r.map((n) => ({
|
|
|
2592
2626
|
type: e.type || "text",
|
|
2593
2627
|
magnetic: e.magnetic || !1,
|
|
2594
2628
|
static: e.static || !1,
|
|
2595
|
-
id: e.id ||
|
|
2629
|
+
id: e.id || pe()
|
|
2596
2630
|
}));
|
|
2597
|
-
async function
|
|
2631
|
+
async function ia(t, r) {
|
|
2598
2632
|
var c, u, d;
|
|
2599
2633
|
const e = r.trackItemsMap, n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
2600
2634
|
for (const p in e) {
|
|
@@ -2611,8 +2645,8 @@ async function na(t, r) {
|
|
|
2611
2645
|
(b) => {
|
|
2612
2646
|
var h;
|
|
2613
2647
|
(h = b.details) != null && h.fonts && b.details.fonts.forEach(
|
|
2614
|
-
(
|
|
2615
|
-
n.add(JSON.stringify(
|
|
2648
|
+
(I) => {
|
|
2649
|
+
n.add(JSON.stringify(I));
|
|
2616
2650
|
}
|
|
2617
2651
|
);
|
|
2618
2652
|
}
|
|
@@ -2620,8 +2654,8 @@ async function na(t, r) {
|
|
|
2620
2654
|
(b) => {
|
|
2621
2655
|
var h;
|
|
2622
2656
|
(h = b.details) != null && h.fonts && b.details.fonts.forEach(
|
|
2623
|
-
(
|
|
2624
|
-
n.add(JSON.stringify(
|
|
2657
|
+
(I) => {
|
|
2658
|
+
n.add(JSON.stringify(I));
|
|
2625
2659
|
}
|
|
2626
2660
|
);
|
|
2627
2661
|
}
|
|
@@ -2629,8 +2663,8 @@ async function na(t, r) {
|
|
|
2629
2663
|
(b) => {
|
|
2630
2664
|
var h;
|
|
2631
2665
|
(h = b.details) != null && h.fonts && b.details.fonts.forEach(
|
|
2632
|
-
(
|
|
2633
|
-
n.add(JSON.stringify(
|
|
2666
|
+
(I) => {
|
|
2667
|
+
n.add(JSON.stringify(I));
|
|
2634
2668
|
}
|
|
2635
2669
|
);
|
|
2636
2670
|
}
|
|
@@ -2640,7 +2674,7 @@ async function na(t, r) {
|
|
|
2640
2674
|
details: m.details
|
|
2641
2675
|
});
|
|
2642
2676
|
}
|
|
2643
|
-
n.size > 0 && await
|
|
2677
|
+
n.size > 0 && await rr(
|
|
2644
2678
|
Array.from(n).map((p) => JSON.parse(p))
|
|
2645
2679
|
);
|
|
2646
2680
|
for (const [p, m] of i) {
|
|
@@ -2661,7 +2695,7 @@ async function na(t, r) {
|
|
|
2661
2695
|
duration: o
|
|
2662
2696
|
};
|
|
2663
2697
|
}
|
|
2664
|
-
function
|
|
2698
|
+
function aa(t) {
|
|
2665
2699
|
const r = C(t);
|
|
2666
2700
|
if (!r.activeIds.length) return;
|
|
2667
2701
|
const e = r.activeIds, n = [], i = {
|
|
@@ -2676,17 +2710,17 @@ function sa(t) {
|
|
|
2676
2710
|
n.filter((d) => o.has(d.id) ? !1 : (o.add(d.id), !0)), i.tracks = Array.from(o);
|
|
2677
2711
|
let u = JSON.stringify(i);
|
|
2678
2712
|
e.forEach((d) => {
|
|
2679
|
-
const p =
|
|
2713
|
+
const p = pe();
|
|
2680
2714
|
u = u.split(d).join(p);
|
|
2681
2715
|
}), localStorage.setItem("DesignComboTemp", u);
|
|
2682
2716
|
}
|
|
2683
|
-
function
|
|
2717
|
+
function oa(t, r) {
|
|
2684
2718
|
const e = C(t);
|
|
2685
2719
|
if (e.activeIds.length !== 1) return {};
|
|
2686
2720
|
const n = e.activeIds[0], i = C(e.trackItemsMap[n]);
|
|
2687
2721
|
if (r >= i.display.to || r <= i.display.from)
|
|
2688
2722
|
return {};
|
|
2689
|
-
const o =
|
|
2723
|
+
const o = pe(), c = {
|
|
2690
2724
|
...i,
|
|
2691
2725
|
display: {
|
|
2692
2726
|
from: i.display.from,
|
|
@@ -2734,10 +2768,10 @@ function ia(t, r) {
|
|
|
2734
2768
|
(h) => b[h] = e.transitionsMap[h]
|
|
2735
2769
|
), e.transitionsMap = b) : (e.transitionIds = e.transitionIds.map((h) => e.transitionsMap[h].fromId === c.id ? h.replace(c.id, o) : h), Object.keys(e.transitionsMap).forEach((h) => {
|
|
2736
2770
|
if (e.transitionsMap[h].fromId === c.id) {
|
|
2737
|
-
const
|
|
2738
|
-
b[
|
|
2771
|
+
const _ = h.replace(c.id, o);
|
|
2772
|
+
b[_] = {
|
|
2739
2773
|
...e.transitionsMap[h],
|
|
2740
|
-
id:
|
|
2774
|
+
id: _,
|
|
2741
2775
|
fromId: o
|
|
2742
2776
|
};
|
|
2743
2777
|
} else
|
|
@@ -2754,7 +2788,7 @@ function ia(t, r) {
|
|
|
2754
2788
|
transitionIds: e.transitionIds
|
|
2755
2789
|
};
|
|
2756
2790
|
}
|
|
2757
|
-
async function
|
|
2791
|
+
async function ca(t, r) {
|
|
2758
2792
|
const n = C(t).trackItemsMap, i = Object.keys(r);
|
|
2759
2793
|
if (!i.length) return {};
|
|
2760
2794
|
for (const c of i) {
|
|
@@ -2773,11 +2807,11 @@ async function aa(t, r) {
|
|
|
2773
2807
|
...n[c].metadata,
|
|
2774
2808
|
...u.metadata
|
|
2775
2809
|
} : n[c].metadata = u.metadata), u.display || u.playbackRate) {
|
|
2776
|
-
const d = u.playbackRate, p = n[c].playbackRate || 1, m = n[c].display,
|
|
2810
|
+
const d = u.playbackRate, p = n[c].playbackRate || 1, m = n[c].display, I = (m.to - m.from) * p / d, _ = {
|
|
2777
2811
|
from: m.from,
|
|
2778
|
-
to: m.from +
|
|
2812
|
+
to: m.from + I
|
|
2779
2813
|
};
|
|
2780
|
-
n[c].display =
|
|
2814
|
+
n[c].display = _, n[c].playbackRate = d;
|
|
2781
2815
|
}
|
|
2782
2816
|
u.animations && (n[c].animations = {
|
|
2783
2817
|
...n[c].animations,
|
|
@@ -2787,7 +2821,7 @@ async function aa(t, r) {
|
|
|
2787
2821
|
for (const c of i) {
|
|
2788
2822
|
const u = r[c];
|
|
2789
2823
|
if (n[c].type === "shape" && u.details.src) {
|
|
2790
|
-
const d = await
|
|
2824
|
+
const d = await $e(u.details.src);
|
|
2791
2825
|
n[c].details.width = d.width, n[c].details.height = d.height;
|
|
2792
2826
|
}
|
|
2793
2827
|
}
|
|
@@ -2797,11 +2831,11 @@ async function aa(t, r) {
|
|
|
2797
2831
|
duration: o
|
|
2798
2832
|
};
|
|
2799
2833
|
}
|
|
2800
|
-
async function
|
|
2834
|
+
async function ua(t, r) {
|
|
2801
2835
|
const e = C(t), n = Object.keys(r)[0], i = Object.values(r)[0], o = e.trackItemsMap[n], c = o.details;
|
|
2802
2836
|
if (!i.details.src) return {};
|
|
2803
2837
|
if (o.type === "image") {
|
|
2804
|
-
const u = await
|
|
2838
|
+
const u = await $e(i.details.src), d = o.details.width || 0, p = o.details.height || 0;
|
|
2805
2839
|
let m = u.width, b = u.height;
|
|
2806
2840
|
const h = u.width / u.height;
|
|
2807
2841
|
d / p > h ? (m = d, b = d / h) : (b = p, m = p * h), c.crop = {
|
|
@@ -2830,57 +2864,57 @@ async function oa(t, r) {
|
|
|
2830
2864
|
}
|
|
2831
2865
|
};
|
|
2832
2866
|
}
|
|
2833
|
-
function
|
|
2867
|
+
function la(t, r) {
|
|
2834
2868
|
const e = C(t);
|
|
2835
2869
|
return e.background.value = r.value, e.background.type = r.type || "color", {
|
|
2836
2870
|
...e
|
|
2837
2871
|
};
|
|
2838
2872
|
}
|
|
2839
|
-
async function
|
|
2873
|
+
async function da(t, r, e = {}) {
|
|
2840
2874
|
const n = C(t), i = r.trackItems.map(
|
|
2841
|
-
(
|
|
2875
|
+
(I) => sa(I, {
|
|
2842
2876
|
size: n.size
|
|
2843
2877
|
})
|
|
2844
|
-
), o = await Promise.all(i), c = Ms(r.tracks, r.trackItems), u = [], d = o.map((
|
|
2845
|
-
r.trackItems.forEach((
|
|
2846
|
-
if (
|
|
2878
|
+
), o = await Promise.all(i), c = Ms(r.tracks, r.trackItems), u = [], d = o.map((I) => I.id);
|
|
2879
|
+
r.trackItems.forEach((I) => {
|
|
2880
|
+
if (I.type !== "template") return;
|
|
2847
2881
|
n.trackItemsMap = {
|
|
2848
2882
|
...n.trackItemsMap,
|
|
2849
|
-
...
|
|
2883
|
+
...I.trackItemsMap
|
|
2850
2884
|
}, n.transitionsMap = {
|
|
2851
2885
|
...n.transitionsMap,
|
|
2852
|
-
...
|
|
2886
|
+
...I.transitionsMap
|
|
2853
2887
|
};
|
|
2854
|
-
const
|
|
2855
|
-
id:
|
|
2856
|
-
items:
|
|
2857
|
-
transitions:
|
|
2858
|
-
tracks:
|
|
2888
|
+
const _ = {
|
|
2889
|
+
id: I.id,
|
|
2890
|
+
items: I.trackItemIds,
|
|
2891
|
+
transitions: I.transitionsIds || [],
|
|
2892
|
+
tracks: I.tracks
|
|
2859
2893
|
};
|
|
2860
|
-
u.push(
|
|
2894
|
+
u.push(_);
|
|
2861
2895
|
});
|
|
2862
2896
|
const p = [], m = {};
|
|
2863
|
-
if (o.forEach((
|
|
2864
|
-
p.push(
|
|
2897
|
+
if (o.forEach((I) => {
|
|
2898
|
+
p.push(I.id), m[I.id] = I;
|
|
2865
2899
|
}), Es(
|
|
2866
2900
|
n.tracks,
|
|
2867
2901
|
c
|
|
2868
2902
|
))
|
|
2869
|
-
n.tracks.forEach((
|
|
2870
|
-
c.forEach((
|
|
2871
|
-
|
|
2872
|
-
[
|
|
2903
|
+
n.tracks.forEach((I) => {
|
|
2904
|
+
c.forEach((_) => {
|
|
2905
|
+
I.id === _.id && (I.magnetic && nt(
|
|
2906
|
+
[I],
|
|
2873
2907
|
n.trackItemsMap,
|
|
2874
2908
|
d
|
|
2875
|
-
),
|
|
2909
|
+
), I.items.push(...p));
|
|
2876
2910
|
});
|
|
2877
2911
|
});
|
|
2878
2912
|
else {
|
|
2879
|
-
const
|
|
2880
|
-
Math.max(
|
|
2913
|
+
const I = e.trackIndex || 0, _ = Math.min(
|
|
2914
|
+
Math.max(I, 0),
|
|
2881
2915
|
n.tracks.length
|
|
2882
2916
|
);
|
|
2883
|
-
n.tracks.splice(
|
|
2917
|
+
n.tracks.splice(_, 0, ...c);
|
|
2884
2918
|
}
|
|
2885
2919
|
n.trackItemsMap = {
|
|
2886
2920
|
...n.trackItemsMap,
|
|
@@ -2889,7 +2923,7 @@ async function ua(t, r, e = {}) {
|
|
|
2889
2923
|
...n.trackItemIds,
|
|
2890
2924
|
...p
|
|
2891
2925
|
], n.structure = [...n.structure, ...u];
|
|
2892
|
-
const h = n.tracks.filter((
|
|
2926
|
+
const h = n.tracks.filter((I) => I.magnetic);
|
|
2893
2927
|
return nt(h, n.trackItemsMap, d), n.duration = K(n.trackItemsMap), {
|
|
2894
2928
|
trackItemIds: n.trackItemIds,
|
|
2895
2929
|
trackItemsMap: n.trackItemsMap,
|
|
@@ -2900,7 +2934,7 @@ async function ua(t, r, e = {}) {
|
|
|
2900
2934
|
transitionsMap: n.transitionsMap
|
|
2901
2935
|
};
|
|
2902
2936
|
}
|
|
2903
|
-
function
|
|
2937
|
+
function vt(t, r, e = {}) {
|
|
2904
2938
|
const n = r.map((c) => c.id), i = [], o = {};
|
|
2905
2939
|
if (r.forEach((c) => {
|
|
2906
2940
|
i.push(c.id), o[c.id] = c;
|
|
@@ -2929,14 +2963,14 @@ function kt(t, r, e = {}) {
|
|
|
2929
2963
|
...i
|
|
2930
2964
|
], t;
|
|
2931
2965
|
}
|
|
2932
|
-
async function
|
|
2966
|
+
async function fa(t, r, e = {}) {
|
|
2933
2967
|
const n = C(t), i = [
|
|
2934
2968
|
Ss(r, {
|
|
2935
2969
|
size: n.size,
|
|
2936
2970
|
scaleMode: e.scaleMode,
|
|
2937
2971
|
scaleAspectRatio: e.scaleAspectRatio
|
|
2938
2972
|
})
|
|
2939
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2973
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e), d = u.tracks.filter((p) => p.magnetic);
|
|
2940
2974
|
return nt(d, u.trackItemsMap, c), u.duration = K(u.trackItemsMap), {
|
|
2941
2975
|
trackItemIds: u.trackItemIds,
|
|
2942
2976
|
trackItemsMap: u.trackItemsMap,
|
|
@@ -2944,8 +2978,8 @@ async function la(t, r, e = {}) {
|
|
|
2944
2978
|
duration: u.duration
|
|
2945
2979
|
};
|
|
2946
2980
|
}
|
|
2947
|
-
async function
|
|
2948
|
-
const n = C(t), i = [ks(r)], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2981
|
+
async function pa(t, r, e = {}) {
|
|
2982
|
+
const n = C(t), i = [ks(r)], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
2949
2983
|
u.duration = K(u.trackItemsMap);
|
|
2950
2984
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
2951
2985
|
return nt(d, u.trackItemsMap, c), {
|
|
@@ -2955,14 +2989,14 @@ async function da(t, r, e = {}) {
|
|
|
2955
2989
|
duration: u.duration
|
|
2956
2990
|
};
|
|
2957
2991
|
}
|
|
2958
|
-
async function
|
|
2992
|
+
async function ha(t, r, e = {}) {
|
|
2959
2993
|
const n = C(t), i = [
|
|
2960
2994
|
bs(r, {
|
|
2961
2995
|
size: n.size,
|
|
2962
2996
|
scaleMode: e.scaleMode,
|
|
2963
2997
|
scaleAspectRatio: e.scaleAspectRatio
|
|
2964
2998
|
})
|
|
2965
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2999
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
2966
3000
|
u.duration = K(u.trackItemsMap);
|
|
2967
3001
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
2968
3002
|
return nt(d, u.trackItemsMap, c), {
|
|
@@ -2972,12 +3006,12 @@ async function fa(t, r, e = {}) {
|
|
|
2972
3006
|
duration: u.duration
|
|
2973
3007
|
};
|
|
2974
3008
|
}
|
|
2975
|
-
async function
|
|
3009
|
+
async function ma(t, r, e = {}) {
|
|
2976
3010
|
const n = C(t), i = [
|
|
2977
3011
|
Ts(r, {
|
|
2978
3012
|
size: e.size
|
|
2979
3013
|
})
|
|
2980
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
3014
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
2981
3015
|
u.duration = K(u.trackItemsMap);
|
|
2982
3016
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
2983
3017
|
return nt(d, u.trackItemsMap, c), {
|
|
@@ -2987,14 +3021,14 @@ async function pa(t, r, e = {}) {
|
|
|
2987
3021
|
duration: u.duration
|
|
2988
3022
|
};
|
|
2989
3023
|
}
|
|
2990
|
-
async function
|
|
3024
|
+
async function ga(t, r, e = {}) {
|
|
2991
3025
|
const n = C(t), i = [
|
|
2992
|
-
|
|
3026
|
+
ra(r, {
|
|
2993
3027
|
size: n.size,
|
|
2994
3028
|
scaleMode: e.scaleMode,
|
|
2995
3029
|
scaleAspectRatio: e.scaleAspectRatio
|
|
2996
3030
|
})
|
|
2997
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
3031
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
2998
3032
|
u.duration = K(u.trackItemsMap);
|
|
2999
3033
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
3000
3034
|
return nt(d, u.trackItemsMap, c), {
|
|
@@ -3004,14 +3038,14 @@ async function ha(t, r, e = {}) {
|
|
|
3004
3038
|
duration: u.duration
|
|
3005
3039
|
};
|
|
3006
3040
|
}
|
|
3007
|
-
async function
|
|
3041
|
+
async function ya(t, r, e = {}) {
|
|
3008
3042
|
const n = C(t), i = [
|
|
3009
3043
|
_s(r, {
|
|
3010
3044
|
size: n.size,
|
|
3011
3045
|
scaleMode: e.scaleMode,
|
|
3012
3046
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3013
3047
|
})
|
|
3014
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
3048
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3015
3049
|
u.duration = K(u.trackItemsMap);
|
|
3016
3050
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
3017
3051
|
return nt(d, u.trackItemsMap, c), {
|
|
@@ -3021,40 +3055,47 @@ async function ma(t, r, e = {}) {
|
|
|
3021
3055
|
duration: u.duration
|
|
3022
3056
|
};
|
|
3023
3057
|
}
|
|
3024
|
-
async function
|
|
3025
|
-
const n = C(t), i = "composition", o = r.trackItemsMap, c = r.trackItemIds, u = r.tracks || [], { details:
|
|
3058
|
+
async function Ia(t, r, e = {}) {
|
|
3059
|
+
const n = C(t), i = "composition", o = r.trackItemsMap, c = r.trackItemIds, u = r.tracks || [], d = r.trackItemDetailsMap, { details: p, ...m } = await ea(r, {
|
|
3026
3060
|
size: n.size,
|
|
3027
3061
|
scaleMode: e.scaleMode,
|
|
3028
3062
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3029
|
-
}),
|
|
3030
|
-
id:
|
|
3063
|
+
}), b = {
|
|
3064
|
+
id: m.id,
|
|
3031
3065
|
items: c,
|
|
3032
3066
|
transitions: [],
|
|
3033
3067
|
tracks: u
|
|
3034
|
-
},
|
|
3035
|
-
...
|
|
3068
|
+
}, I = [{
|
|
3069
|
+
...m,
|
|
3036
3070
|
type: i,
|
|
3037
|
-
details:
|
|
3038
|
-
}],
|
|
3039
|
-
|
|
3040
|
-
...
|
|
3071
|
+
details: p
|
|
3072
|
+
}], _ = vt(n, I, e);
|
|
3073
|
+
_.trackItemsMap = {
|
|
3074
|
+
..._.trackItemsMap,
|
|
3041
3075
|
...o,
|
|
3042
|
-
[
|
|
3043
|
-
...
|
|
3076
|
+
[m.id]: {
|
|
3077
|
+
...m,
|
|
3044
3078
|
type: i,
|
|
3045
|
-
details:
|
|
3079
|
+
details: p
|
|
3046
3080
|
}
|
|
3047
|
-
},
|
|
3048
|
-
const
|
|
3049
|
-
return nt(
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3081
|
+
}, _.structure = [..._.structure, b], _.duration = K(_.trackItemsMap);
|
|
3082
|
+
const k = _.tracks.filter((w) => w.magnetic);
|
|
3083
|
+
return nt(k, _.trackItemsMap, [m.id]), d && Object.keys(d).forEach((w) => {
|
|
3084
|
+
_.trackItemsMap[w] = {
|
|
3085
|
+
..._.trackItemsMap[w],
|
|
3086
|
+
details: {
|
|
3087
|
+
...d[w].details
|
|
3088
|
+
}
|
|
3089
|
+
};
|
|
3090
|
+
}), {
|
|
3091
|
+
trackItemIds: _.trackItemIds,
|
|
3092
|
+
trackItemsMap: _.trackItemsMap,
|
|
3093
|
+
tracks: _.tracks,
|
|
3094
|
+
duration: _.duration,
|
|
3095
|
+
structure: _.structure
|
|
3055
3096
|
};
|
|
3056
3097
|
}
|
|
3057
|
-
async function
|
|
3098
|
+
async function de(t, r, e = {}, n) {
|
|
3058
3099
|
const i = C(t), o = (b) => b.display ? b.display : {
|
|
3059
3100
|
from: 0,
|
|
3060
3101
|
to: i.duration
|
|
@@ -3066,13 +3107,13 @@ async function Re(t, r, e = {}, n) {
|
|
|
3066
3107
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3067
3108
|
})
|
|
3068
3109
|
), n === "progress-frame" && c.push(
|
|
3069
|
-
|
|
3110
|
+
Zi(r, {
|
|
3070
3111
|
size: i.size,
|
|
3071
3112
|
scaleMode: e.scaleMode,
|
|
3072
3113
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3073
3114
|
})
|
|
3074
3115
|
), n === "radial-audio-bars" && (r.display = o(r), c.push(
|
|
3075
|
-
|
|
3116
|
+
Qi(r, {
|
|
3076
3117
|
size: i.size,
|
|
3077
3118
|
scaleMode: e.scaleMode,
|
|
3078
3119
|
scaleAspectRatio: e.scaleAspectRatio
|
|
@@ -3095,8 +3136,14 @@ async function Re(t, r, e = {}, n) {
|
|
|
3095
3136
|
scaleMode: e.scaleMode,
|
|
3096
3137
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3097
3138
|
})
|
|
3098
|
-
))
|
|
3099
|
-
|
|
3139
|
+
)), n === "progress-square" && c.push(
|
|
3140
|
+
ta(r, {
|
|
3141
|
+
size: i.size,
|
|
3142
|
+
scaleMode: e.scaleMode,
|
|
3143
|
+
scaleAspectRatio: e.scaleAspectRatio
|
|
3144
|
+
})
|
|
3145
|
+
);
|
|
3146
|
+
const u = await Promise.all(c), d = u.map((b) => b.id), p = vt(i, u, e);
|
|
3100
3147
|
p.duration = K(p.trackItemsMap);
|
|
3101
3148
|
const m = p.tracks.filter((b) => b.magnetic);
|
|
3102
3149
|
return nt(m, p.trackItemsMap, d), {
|
|
@@ -3106,12 +3153,12 @@ async function Re(t, r, e = {}, n) {
|
|
|
3106
3153
|
duration: p.duration
|
|
3107
3154
|
};
|
|
3108
3155
|
}
|
|
3109
|
-
async function
|
|
3156
|
+
async function ba(t, r, e = {}) {
|
|
3110
3157
|
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: b, ...h } = await vs(r, {
|
|
3111
3158
|
size: n.size,
|
|
3112
3159
|
scaleMode: e.scaleMode,
|
|
3113
3160
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3114
|
-
}),
|
|
3161
|
+
}), I = {
|
|
3115
3162
|
id: h.id,
|
|
3116
3163
|
items: c,
|
|
3117
3164
|
transitions: d,
|
|
@@ -3120,7 +3167,7 @@ async function ya(t, r, e = {}) {
|
|
|
3120
3167
|
...h,
|
|
3121
3168
|
type: i,
|
|
3122
3169
|
details: b
|
|
3123
|
-
}], w =
|
|
3170
|
+
}], w = vt(n, k, e);
|
|
3124
3171
|
w.transitionIds = [
|
|
3125
3172
|
...w.transitionIds,
|
|
3126
3173
|
...d
|
|
@@ -3137,10 +3184,10 @@ async function ya(t, r, e = {}) {
|
|
|
3137
3184
|
}
|
|
3138
3185
|
}, w.structure = [
|
|
3139
3186
|
...w.structure,
|
|
3140
|
-
|
|
3187
|
+
I,
|
|
3141
3188
|
...m
|
|
3142
3189
|
], w.duration = K(w.trackItemsMap);
|
|
3143
|
-
const f = w.tracks.filter((
|
|
3190
|
+
const f = w.tracks.filter((y) => y.magnetic);
|
|
3144
3191
|
return nt(f, w.trackItemsMap, [h.id]), {
|
|
3145
3192
|
trackItemIds: w.trackItemIds,
|
|
3146
3193
|
trackItemsMap: w.trackItemsMap,
|
|
@@ -3150,7 +3197,7 @@ async function ya(t, r, e = {}) {
|
|
|
3150
3197
|
transitionsMap: w.transitionsMap
|
|
3151
3198
|
};
|
|
3152
3199
|
}
|
|
3153
|
-
async function
|
|
3200
|
+
async function ka(t, r, e = {}) {
|
|
3154
3201
|
const n = C(t), i = r.map((b) => ws(b, {
|
|
3155
3202
|
size: e.size
|
|
3156
3203
|
})), o = await Promise.all(i), c = Ms(
|
|
@@ -3164,8 +3211,8 @@ async function Ia(t, r, e = {}) {
|
|
|
3164
3211
|
o
|
|
3165
3212
|
), u = [], d = {};
|
|
3166
3213
|
if (o.forEach((b) => {
|
|
3167
|
-
const { details: h, ...
|
|
3168
|
-
u.push(b.id), d[b.id] =
|
|
3214
|
+
const { details: h, ...I } = b;
|
|
3215
|
+
u.push(b.id), d[b.id] = I;
|
|
3169
3216
|
}), Es(
|
|
3170
3217
|
n.tracks,
|
|
3171
3218
|
c
|
|
@@ -3205,7 +3252,7 @@ async function Ia(t, r, e = {}) {
|
|
|
3205
3252
|
duration: n.duration
|
|
3206
3253
|
};
|
|
3207
3254
|
}
|
|
3208
|
-
async function
|
|
3255
|
+
async function va(t, r) {
|
|
3209
3256
|
const e = C(t), n = e.trackItemsMap[r.id], i = [];
|
|
3210
3257
|
if (!n) return {};
|
|
3211
3258
|
let o = n.animations || {};
|
|
@@ -3224,18 +3271,18 @@ async function ba(t, r) {
|
|
|
3224
3271
|
var u;
|
|
3225
3272
|
(u = c.details) != null && u.fonts && i.push(...c.details.fonts);
|
|
3226
3273
|
}
|
|
3227
|
-
), i.length > 0 && await
|
|
3274
|
+
), i.length > 0 && await rr(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, n.animations = o, {
|
|
3228
3275
|
trackItemsMap: e.trackItemsMap
|
|
3229
3276
|
};
|
|
3230
3277
|
}
|
|
3231
|
-
async function
|
|
3278
|
+
async function _a(t, r, e = {}) {
|
|
3232
3279
|
const n = C(t), i = [
|
|
3233
|
-
|
|
3280
|
+
na(r, {
|
|
3234
3281
|
size: n.size,
|
|
3235
3282
|
scaleMode: e.scaleMode,
|
|
3236
3283
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3237
3284
|
})
|
|
3238
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
3285
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3239
3286
|
u.duration = K(u.trackItemsMap);
|
|
3240
3287
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
3241
3288
|
return nt(d, u.trackItemsMap, c), {
|
|
@@ -3245,45 +3292,45 @@ async function ka(t, r, e = {}) {
|
|
|
3245
3292
|
duration: u.duration
|
|
3246
3293
|
};
|
|
3247
3294
|
}
|
|
3248
|
-
function
|
|
3249
|
-
const r =
|
|
3250
|
-
|
|
3251
|
-
), e =
|
|
3252
|
-
|
|
3253
|
-
), n =
|
|
3254
|
-
|
|
3255
|
-
), i =
|
|
3256
|
-
|
|
3257
|
-
), o =
|
|
3258
|
-
|
|
3259
|
-
), c =
|
|
3260
|
-
|
|
3261
|
-
), u =
|
|
3262
|
-
|
|
3263
|
-
), d =
|
|
3264
|
-
|
|
3295
|
+
function Sa(t) {
|
|
3296
|
+
const r = jt.pipe(
|
|
3297
|
+
Wt(({ key: f }) => f.startsWith(Xn))
|
|
3298
|
+
), e = jt.pipe(
|
|
3299
|
+
Wt(({ key: f }) => f.startsWith(Rn))
|
|
3300
|
+
), n = jt.pipe(
|
|
3301
|
+
Wt(({ key: f }) => f.startsWith(N))
|
|
3302
|
+
), i = jt.pipe(
|
|
3303
|
+
Wt(({ key: f }) => f.startsWith(Q))
|
|
3304
|
+
), o = jt.pipe(
|
|
3305
|
+
Wt(({ key: f }) => f.startsWith(Er))
|
|
3306
|
+
), c = jt.pipe(
|
|
3307
|
+
Wt(({ key: f }) => f.startsWith(ze))
|
|
3308
|
+
), u = jt.pipe(
|
|
3309
|
+
Wt(({ key: f }) => f.startsWith(Yt))
|
|
3310
|
+
), d = jt.pipe(
|
|
3311
|
+
Wt(({ key: f }) => f.startsWith(ds))
|
|
3265
3312
|
), p = r.subscribe(async (f) => {
|
|
3266
|
-
var
|
|
3313
|
+
var y;
|
|
3267
3314
|
if (f.key === Xn) {
|
|
3268
|
-
const { actions: v } = (
|
|
3269
|
-
v.forEach((
|
|
3270
|
-
Ns(
|
|
3315
|
+
const { actions: v } = (y = f.value) == null ? void 0 : y.payload;
|
|
3316
|
+
v.forEach((S) => {
|
|
3317
|
+
Ns(S.type, S.payload && { payload: S.payload });
|
|
3271
3318
|
});
|
|
3272
3319
|
}
|
|
3273
3320
|
}), m = e.subscribe(async (f) => {
|
|
3274
|
-
var
|
|
3321
|
+
var y, v;
|
|
3275
3322
|
if (f.key === ni) {
|
|
3276
|
-
const
|
|
3323
|
+
const S = (y = f.value) == null ? void 0 : y.payload, A = await ia(t.getState(), S);
|
|
3277
3324
|
t.updateState(A, {
|
|
3278
3325
|
kind: "design:load",
|
|
3279
3326
|
updateHistory: !1
|
|
3280
3327
|
});
|
|
3281
3328
|
}
|
|
3282
3329
|
if (f.key === si) {
|
|
3283
|
-
const
|
|
3330
|
+
const S = (v = f.value) == null ? void 0 : v.payload;
|
|
3284
3331
|
t.updateState(
|
|
3285
3332
|
{
|
|
3286
|
-
size:
|
|
3333
|
+
size: S
|
|
3287
3334
|
},
|
|
3288
3335
|
{
|
|
3289
3336
|
kind: "design:resize",
|
|
@@ -3292,12 +3339,12 @@ function va(t) {
|
|
|
3292
3339
|
);
|
|
3293
3340
|
}
|
|
3294
3341
|
}), b = o.subscribe((f) => {
|
|
3295
|
-
if (f.key ===
|
|
3296
|
-
if (f.key ===
|
|
3342
|
+
if (f.key === Di) return t.undo();
|
|
3343
|
+
if (f.key === zi) return t.redo();
|
|
3297
3344
|
}), h = d.subscribe((f) => {
|
|
3298
|
-
var
|
|
3299
|
-
if (f.key ===
|
|
3300
|
-
const v = (
|
|
3345
|
+
var y;
|
|
3346
|
+
if (f.key === $i) {
|
|
3347
|
+
const v = (y = f.value) == null ? void 0 : y.payload.scale;
|
|
3301
3348
|
t.updateState(
|
|
3302
3349
|
{
|
|
3303
3350
|
scale: v
|
|
@@ -3308,135 +3355,143 @@ function va(t) {
|
|
|
3308
3355
|
}
|
|
3309
3356
|
);
|
|
3310
3357
|
}
|
|
3311
|
-
}),
|
|
3312
|
-
var
|
|
3313
|
-
if (f.key ===
|
|
3314
|
-
const
|
|
3358
|
+
}), I = i.subscribe(async (f) => {
|
|
3359
|
+
var y, v, S, A;
|
|
3360
|
+
if (f.key === xi) {
|
|
3361
|
+
const E = ((y = f.value) == null ? void 0 : y.payload.trackItemIds) || [];
|
|
3315
3362
|
t.updateState(
|
|
3316
|
-
{ activeIds:
|
|
3363
|
+
{ activeIds: E },
|
|
3317
3364
|
{
|
|
3318
3365
|
kind: "update",
|
|
3319
3366
|
updateHistory: !1
|
|
3320
3367
|
}
|
|
3321
3368
|
);
|
|
3322
3369
|
}
|
|
3323
|
-
if (f.key ===
|
|
3324
|
-
const
|
|
3370
|
+
if (f.key === Oi && aa(t.getState()), f.key === Ri) {
|
|
3371
|
+
const E = (v = f.value) == null ? void 0 : v.payload.trackItemIds, T = Hi(t.getState(), E);
|
|
3325
3372
|
t.updateState(T, { updateHistory: !0, kind: "remove" });
|
|
3326
3373
|
}
|
|
3327
|
-
if (f.key ===
|
|
3328
|
-
const
|
|
3374
|
+
if (f.key === Ci) {
|
|
3375
|
+
const E = Xi(
|
|
3329
3376
|
t.getState(),
|
|
3330
|
-
(
|
|
3377
|
+
(S = f.value) == null ? void 0 : S.payload.trackItemIds
|
|
3331
3378
|
);
|
|
3332
|
-
t.updateState(
|
|
3379
|
+
t.updateState(E, {
|
|
3333
3380
|
updateHistory: !0,
|
|
3334
3381
|
kind: "update"
|
|
3335
3382
|
});
|
|
3336
3383
|
}
|
|
3337
3384
|
if (f.key === Pi) {
|
|
3338
|
-
const
|
|
3385
|
+
const E = (A = f.value) == null ? void 0 : A.payload, T = await Gi(t.getState(), E);
|
|
3339
3386
|
t.updateState(T, {
|
|
3340
3387
|
updateHistory: !0,
|
|
3341
3388
|
kind: "update:details"
|
|
3342
3389
|
});
|
|
3343
3390
|
}
|
|
3344
|
-
}),
|
|
3345
|
-
var H,
|
|
3346
|
-
const
|
|
3391
|
+
}), _ = n.subscribe(async (f) => {
|
|
3392
|
+
var H, R, V, x, F, tt, Gt, Xt, Ie, be, ke, ve, z, _e, Se, st, Kt, $, Vt, we, it, qt, Jt, Rt, Pt, Zt, Dt, Qt, zt, te, Te, Ae, _t, $t, ee, re, ct, St, Ee, gt, wt, Ft, et, ne, se, Me, Lt, Tt, ie, At, yt;
|
|
3393
|
+
const y = C(t.getState()), v = ((R = (H = f.value) == null ? void 0 : H.options) == null ? void 0 : R.isSelected) || !1, S = (x = (V = f.value) == null ? void 0 : V.options) == null ? void 0 : x.scaleMode, A = (tt = (F = f.value) == null ? void 0 : F.options) == null ? void 0 : tt.scaleAspectRatio, E = (Xt = (Gt = f.value) == null ? void 0 : Gt.options) == null ? void 0 : Xt.trackIndex;
|
|
3347
3394
|
let T = {};
|
|
3348
|
-
f.key === di ? T = await
|
|
3349
|
-
trackIndex:
|
|
3350
|
-
}) : f.key === fi ? T = await
|
|
3351
|
-
size:
|
|
3352
|
-
}) : f.key === ii ? T = await
|
|
3353
|
-
targetTrackIndex:
|
|
3395
|
+
f.key === di ? T = await va(y, (Ie = f.value) == null ? void 0 : Ie.payload) : f.key === hi ? T = await da(y, (be = f.value) == null ? void 0 : be.payload, {
|
|
3396
|
+
trackIndex: E
|
|
3397
|
+
}) : f.key === fi ? T = await ka(y, (ke = f.value) == null ? void 0 : ke.payload, {
|
|
3398
|
+
size: y.size
|
|
3399
|
+
}) : f.key === ii ? T = await ma(y, (ve = f.value) == null ? void 0 : ve.payload, {
|
|
3400
|
+
targetTrackIndex: E,
|
|
3354
3401
|
targetTrackId: (z = f.value) == null ? void 0 : z.options.targetTrackId,
|
|
3355
|
-
size:
|
|
3356
|
-
}) : f.key === pi ? T = await
|
|
3357
|
-
scaleMode:
|
|
3402
|
+
size: y.size
|
|
3403
|
+
}) : f.key === pi ? T = await ba(y, (_e = f.value) == null ? void 0 : _e.payload, {
|
|
3404
|
+
scaleMode: S,
|
|
3358
3405
|
scaleAspectRatio: A,
|
|
3359
|
-
targetTrackIndex:
|
|
3360
|
-
targetTrackId: (st = (
|
|
3361
|
-
}) : f.key === ui ? T = await
|
|
3362
|
-
scaleMode:
|
|
3406
|
+
targetTrackIndex: E,
|
|
3407
|
+
targetTrackId: (st = (Se = f.value) == null ? void 0 : Se.options) == null ? void 0 : st.targetTrackId
|
|
3408
|
+
}) : f.key === ui ? T = await ya(y, (Kt = f.value) == null ? void 0 : Kt.payload, {
|
|
3409
|
+
scaleMode: S,
|
|
3363
3410
|
scaleAspectRatio: A,
|
|
3364
|
-
targetTrackIndex:
|
|
3411
|
+
targetTrackIndex: E,
|
|
3365
3412
|
targetTrackId: ($ = f.value) == null ? void 0 : $.options.targetTrackId
|
|
3366
|
-
}) : f.key === li ? T = await
|
|
3367
|
-
scaleMode:
|
|
3368
|
-
scaleAspectRatio: A,
|
|
3369
|
-
targetTrackIndex: M,
|
|
3370
|
-
targetTrackId: (ve = f.value) == null ? void 0 : ve.options.targetTrackId
|
|
3371
|
-
}) : f.key === _i ? T = await ka(I, (it = f.value) == null ? void 0 : it.payload, {
|
|
3372
|
-
scaleMode: _,
|
|
3413
|
+
}) : f.key === li ? T = await ga(y, (Vt = f.value) == null ? void 0 : Vt.payload, {
|
|
3414
|
+
scaleMode: S,
|
|
3373
3415
|
scaleAspectRatio: A,
|
|
3374
|
-
targetTrackIndex:
|
|
3375
|
-
targetTrackId: (
|
|
3376
|
-
}) : f.key ===
|
|
3377
|
-
scaleMode:
|
|
3416
|
+
targetTrackIndex: E,
|
|
3417
|
+
targetTrackId: (we = f.value) == null ? void 0 : we.options.targetTrackId
|
|
3418
|
+
}) : f.key === Si ? T = await _a(y, (it = f.value) == null ? void 0 : it.payload, {
|
|
3419
|
+
scaleMode: S,
|
|
3378
3420
|
scaleAspectRatio: A,
|
|
3379
|
-
targetTrackIndex:
|
|
3380
|
-
targetTrackId: (Ot = f.value) == null ? void 0 : Ot.options.targetTrackId
|
|
3381
|
-
}) : f.key === oi ? T = await da(I, (Ct = f.value) == null ? void 0 : Ct.payload, {
|
|
3382
|
-
targetTrackIndex: M,
|
|
3383
|
-
targetTrackId: (Jt = f.value) == null ? void 0 : Jt.options.targetTrackId
|
|
3384
|
-
}) : f.key === ai ? T = await fa(I, (Pt = f.value) == null ? void 0 : Pt.payload, {
|
|
3385
|
-
scaleMode: _,
|
|
3386
|
-
scaleAspectRatio: A,
|
|
3387
|
-
targetTrackIndex: M,
|
|
3421
|
+
targetTrackIndex: E,
|
|
3388
3422
|
targetTrackId: (qt = f.value) == null ? void 0 : qt.options.targetTrackId
|
|
3389
|
-
}) : f.key ===
|
|
3390
|
-
scaleMode:
|
|
3423
|
+
}) : f.key === ci ? T = await fa(y, (Jt = f.value) == null ? void 0 : Jt.payload, {
|
|
3424
|
+
scaleMode: S,
|
|
3391
3425
|
scaleAspectRatio: A,
|
|
3392
|
-
targetTrackIndex:
|
|
3426
|
+
targetTrackIndex: E,
|
|
3427
|
+
targetTrackId: (Rt = f.value) == null ? void 0 : Rt.options.targetTrackId
|
|
3428
|
+
}) : f.key === oi ? T = await pa(y, (Pt = f.value) == null ? void 0 : Pt.payload, {
|
|
3429
|
+
targetTrackIndex: E,
|
|
3393
3430
|
targetTrackId: (Zt = f.value) == null ? void 0 : Zt.options.targetTrackId
|
|
3394
|
-
}) : f.key ===
|
|
3395
|
-
|
|
3396
|
-
|
|
3431
|
+
}) : f.key === ai ? T = await ha(y, (Dt = f.value) == null ? void 0 : Dt.payload, {
|
|
3432
|
+
scaleMode: S,
|
|
3433
|
+
scaleAspectRatio: A,
|
|
3434
|
+
targetTrackIndex: E,
|
|
3435
|
+
targetTrackId: (Qt = f.value) == null ? void 0 : Qt.options.targetTrackId
|
|
3436
|
+
}) : f.key === mi ? T = await Ia(y, (zt = f.value) == null ? void 0 : zt.payload, {
|
|
3437
|
+
scaleMode: S,
|
|
3438
|
+
scaleAspectRatio: A,
|
|
3439
|
+
targetTrackIndex: E,
|
|
3440
|
+
targetTrackId: (te = f.value) == null ? void 0 : te.options.targetTrackId
|
|
3441
|
+
}) : f.key === gi ? T = await de(
|
|
3442
|
+
y,
|
|
3443
|
+
(Te = f.value) == null ? void 0 : Te.payload,
|
|
3397
3444
|
{
|
|
3398
|
-
targetTrackIndex:
|
|
3399
|
-
targetTrackId: (
|
|
3445
|
+
targetTrackIndex: E,
|
|
3446
|
+
targetTrackId: (_t = (Ae = f.value) == null ? void 0 : Ae.options) == null ? void 0 : _t.targetTrackId
|
|
3400
3447
|
},
|
|
3401
3448
|
"progress-bar"
|
|
3402
|
-
) : f.key ===
|
|
3403
|
-
|
|
3404
|
-
(
|
|
3449
|
+
) : f.key === ki ? T = await de(
|
|
3450
|
+
y,
|
|
3451
|
+
($t = f.value) == null ? void 0 : $t.payload,
|
|
3405
3452
|
{
|
|
3406
|
-
targetTrackIndex:
|
|
3407
|
-
targetTrackId: (
|
|
3453
|
+
targetTrackIndex: E,
|
|
3454
|
+
targetTrackId: (re = (ee = f.value) == null ? void 0 : ee.options) == null ? void 0 : re.targetTrackId
|
|
3408
3455
|
},
|
|
3409
|
-
"progress-
|
|
3410
|
-
) : f.key ===
|
|
3411
|
-
|
|
3456
|
+
"progress-square"
|
|
3457
|
+
) : f.key === yi ? T = await de(
|
|
3458
|
+
y,
|
|
3412
3459
|
(ct = f.value) == null ? void 0 : ct.payload,
|
|
3413
3460
|
{
|
|
3414
|
-
targetTrackIndex:
|
|
3415
|
-
targetTrackId: (
|
|
3461
|
+
targetTrackIndex: E,
|
|
3462
|
+
targetTrackId: (Ee = (St = f.value) == null ? void 0 : St.options) == null ? void 0 : Ee.targetTrackId
|
|
3416
3463
|
},
|
|
3417
|
-
"
|
|
3418
|
-
) : f.key ===
|
|
3419
|
-
|
|
3464
|
+
"progress-frame"
|
|
3465
|
+
) : f.key === Ii ? T = await de(
|
|
3466
|
+
y,
|
|
3420
3467
|
(gt = f.value) == null ? void 0 : gt.payload,
|
|
3421
3468
|
{
|
|
3422
|
-
targetTrackIndex:
|
|
3423
|
-
targetTrackId: (
|
|
3469
|
+
targetTrackIndex: E,
|
|
3470
|
+
targetTrackId: (Ft = (wt = f.value) == null ? void 0 : wt.options) == null ? void 0 : Ft.targetTrackId
|
|
3424
3471
|
},
|
|
3425
|
-
"
|
|
3426
|
-
) : f.key ===
|
|
3427
|
-
|
|
3472
|
+
"radial-audio-bars"
|
|
3473
|
+
) : f.key === bi ? T = await de(
|
|
3474
|
+
y,
|
|
3428
3475
|
(et = f.value) == null ? void 0 : et.payload,
|
|
3429
3476
|
{
|
|
3430
|
-
targetTrackIndex:
|
|
3431
|
-
targetTrackId: (
|
|
3477
|
+
targetTrackIndex: E,
|
|
3478
|
+
targetTrackId: (se = (ne = f.value) == null ? void 0 : ne.options) == null ? void 0 : se.targetTrackId
|
|
3479
|
+
},
|
|
3480
|
+
"lineal-audio-bars"
|
|
3481
|
+
) : f.key === vi ? T = await de(
|
|
3482
|
+
y,
|
|
3483
|
+
(Me = f.value) == null ? void 0 : Me.payload,
|
|
3484
|
+
{
|
|
3485
|
+
targetTrackIndex: E,
|
|
3486
|
+
targetTrackId: (Tt = (Lt = f.value) == null ? void 0 : Lt.options) == null ? void 0 : Tt.targetTrackId
|
|
3432
3487
|
},
|
|
3433
3488
|
"wave-audio-bars"
|
|
3434
|
-
) : f.key ===
|
|
3435
|
-
|
|
3436
|
-
(
|
|
3489
|
+
) : f.key === _i && (T = await de(
|
|
3490
|
+
y,
|
|
3491
|
+
(ie = f.value) == null ? void 0 : ie.payload,
|
|
3437
3492
|
{
|
|
3438
|
-
targetTrackIndex:
|
|
3439
|
-
targetTrackId: (
|
|
3493
|
+
targetTrackIndex: E,
|
|
3494
|
+
targetTrackId: (yt = (At = f.value) == null ? void 0 : At.options) == null ? void 0 : yt.targetTrackId
|
|
3440
3495
|
},
|
|
3441
3496
|
"hill-audio-bars"
|
|
3442
3497
|
)), v && T.trackItemIds && (T.activeIds = T.trackItemIds), t.updateState(T, {
|
|
@@ -3444,15 +3499,15 @@ function va(t) {
|
|
|
3444
3499
|
kind: "add"
|
|
3445
3500
|
});
|
|
3446
3501
|
}), k = c.subscribe(async (f) => {
|
|
3447
|
-
var
|
|
3448
|
-
if (f.key ===
|
|
3449
|
-
const v = (
|
|
3450
|
-
Object.keys(
|
|
3502
|
+
var y;
|
|
3503
|
+
if (f.key === Mi) {
|
|
3504
|
+
const v = (y = f.value) == null ? void 0 : y.options.time, S = oa(t.getState(), v);
|
|
3505
|
+
Object.keys(S).length > 0 && t.updateState(S, {
|
|
3451
3506
|
updateHistory: !0,
|
|
3452
3507
|
kind: "update"
|
|
3453
3508
|
});
|
|
3454
3509
|
}
|
|
3455
|
-
if (f.key ===
|
|
3510
|
+
if (f.key === Ei) {
|
|
3456
3511
|
const v = await ji(t.getState());
|
|
3457
3512
|
t.updateState(v, {
|
|
3458
3513
|
updateHistory: !0,
|
|
@@ -3460,19 +3515,19 @@ function va(t) {
|
|
|
3460
3515
|
});
|
|
3461
3516
|
}
|
|
3462
3517
|
}), w = u.subscribe(async (f) => {
|
|
3463
|
-
var
|
|
3464
|
-
if (f.key ===
|
|
3465
|
-
const A = await
|
|
3518
|
+
var y, v, S;
|
|
3519
|
+
if (f.key === wi) {
|
|
3520
|
+
const A = await ca(
|
|
3466
3521
|
t.getState(),
|
|
3467
|
-
(
|
|
3522
|
+
(y = f.value) == null ? void 0 : y.payload
|
|
3468
3523
|
);
|
|
3469
3524
|
t.updateState(A, {
|
|
3470
3525
|
updateHistory: !0,
|
|
3471
3526
|
kind: "update:details"
|
|
3472
3527
|
});
|
|
3473
3528
|
}
|
|
3474
|
-
if (f.key ===
|
|
3475
|
-
const A = await
|
|
3529
|
+
if (f.key === Ti) {
|
|
3530
|
+
const A = await ua(
|
|
3476
3531
|
t.getState(),
|
|
3477
3532
|
(v = f.value) == null ? void 0 : v.payload
|
|
3478
3533
|
);
|
|
@@ -3481,8 +3536,8 @@ function va(t) {
|
|
|
3481
3536
|
kind: "update:details"
|
|
3482
3537
|
});
|
|
3483
3538
|
}
|
|
3484
|
-
if (f.key ===
|
|
3485
|
-
const A =
|
|
3539
|
+
if (f.key === Ai) {
|
|
3540
|
+
const A = la(t.getState(), (S = f.value) == null ? void 0 : S.payload);
|
|
3486
3541
|
t.updateState(A, {
|
|
3487
3542
|
updateHistory: !0,
|
|
3488
3543
|
kind: "update:details"
|
|
@@ -3491,11 +3546,11 @@ function va(t) {
|
|
|
3491
3546
|
});
|
|
3492
3547
|
return {
|
|
3493
3548
|
unsubscribe: () => {
|
|
3494
|
-
|
|
3549
|
+
_.unsubscribe(), k.unsubscribe(), w.unsubscribe(), b.unsubscribe(), I.unsubscribe(), m.unsubscribe(), h.unsubscribe(), p.unsubscribe();
|
|
3495
3550
|
}
|
|
3496
3551
|
};
|
|
3497
3552
|
}
|
|
3498
|
-
const
|
|
3553
|
+
const wa = { Date: !0, RegExp: !0, String: !0, Number: !0 };
|
|
3499
3554
|
function xs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
3500
3555
|
var u, d;
|
|
3501
3556
|
let i = [];
|
|
@@ -3510,9 +3565,9 @@ function xs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
|
3510
3565
|
});
|
|
3511
3566
|
continue;
|
|
3512
3567
|
}
|
|
3513
|
-
const h = r[p],
|
|
3514
|
-
m && h &&
|
|
3515
|
-
!(Number.isNaN(m) && Number.isNaN(h)) && !(
|
|
3568
|
+
const h = r[p], I = typeof m == "object" && typeof h == "object" && Array.isArray(m) === Array.isArray(h);
|
|
3569
|
+
m && h && I && !wa[(d = (u = Object.getPrototypeOf(m)) == null ? void 0 : u.constructor) == null ? void 0 : d.name] && (!e.cyclesFix || !n.includes(m)) ? i.push.apply(i, xs(m, h, e, e.cyclesFix ? n.concat([m]) : []).map((_) => (_.path.unshift(b), _))) : m !== h && // treat NaN values as equivalent
|
|
3570
|
+
!(Number.isNaN(m) && Number.isNaN(h)) && !(I && (isNaN(m) ? m + "" == h + "" : +m == +h)) && i.push({
|
|
3516
3571
|
path: [b],
|
|
3517
3572
|
type: "CHANGE",
|
|
3518
3573
|
value: h,
|
|
@@ -3528,7 +3583,7 @@ function xs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
|
3528
3583
|
});
|
|
3529
3584
|
return i;
|
|
3530
3585
|
}
|
|
3531
|
-
var zn = Symbol.for("immer-nothing"),
|
|
3586
|
+
var zn = Symbol.for("immer-nothing"), qe = Symbol.for("immer-draftable"), ut = Symbol.for("immer-state"), Os = process.env.NODE_ENV !== "production" ? [
|
|
3532
3587
|
// All error codes, starting by 0:
|
|
3533
3588
|
function(t) {
|
|
3534
3589
|
return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
|
|
@@ -3559,7 +3614,7 @@ var zn = Symbol.for("immer-nothing"), Ve = Symbol.for("immer-draftable"), ut = S
|
|
|
3559
3614
|
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
3560
3615
|
// See Patches.ts for additional errors
|
|
3561
3616
|
] : [];
|
|
3562
|
-
function
|
|
3617
|
+
function B(t, ...r) {
|
|
3563
3618
|
if (process.env.NODE_ENV !== "production") {
|
|
3564
3619
|
const e = Os[t], n = typeof e == "function" ? e.apply(null, r) : e;
|
|
3565
3620
|
throw new Error(`[Immer] ${n}`);
|
|
@@ -3568,59 +3623,59 @@ function W(t, ...r) {
|
|
|
3568
3623
|
`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
|
|
3569
3624
|
);
|
|
3570
3625
|
}
|
|
3571
|
-
var
|
|
3572
|
-
function
|
|
3626
|
+
var he = Object.getPrototypeOf;
|
|
3627
|
+
function me(t) {
|
|
3573
3628
|
return !!t && !!t[ut];
|
|
3574
3629
|
}
|
|
3575
|
-
function
|
|
3630
|
+
function Bt(t) {
|
|
3576
3631
|
var r;
|
|
3577
|
-
return t ? Cs(t) || Array.isArray(t) || !!t[
|
|
3632
|
+
return t ? Cs(t) || Array.isArray(t) || !!t[qe] || !!((r = t.constructor) != null && r[qe]) || sr(t) || ir(t) : !1;
|
|
3578
3633
|
}
|
|
3579
|
-
var
|
|
3634
|
+
var Ta = Object.prototype.constructor.toString();
|
|
3580
3635
|
function Cs(t) {
|
|
3581
3636
|
if (!t || typeof t != "object")
|
|
3582
3637
|
return !1;
|
|
3583
|
-
const r =
|
|
3638
|
+
const r = he(t);
|
|
3584
3639
|
if (r === null)
|
|
3585
3640
|
return !0;
|
|
3586
3641
|
const e = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
|
3587
|
-
return e === Object ? !0 : typeof e == "function" && Function.toString.call(e) ===
|
|
3642
|
+
return e === Object ? !0 : typeof e == "function" && Function.toString.call(e) === Ta;
|
|
3588
3643
|
}
|
|
3589
3644
|
function Je(t, r) {
|
|
3590
|
-
|
|
3645
|
+
ge(t) === 0 ? Reflect.ownKeys(t).forEach((e) => {
|
|
3591
3646
|
r(e, t[e], t);
|
|
3592
3647
|
}) : t.forEach((e, n) => r(n, e, t));
|
|
3593
3648
|
}
|
|
3594
|
-
function
|
|
3649
|
+
function ge(t) {
|
|
3595
3650
|
const r = t[ut];
|
|
3596
|
-
return r ? r.type_ : Array.isArray(t) ? 1 :
|
|
3651
|
+
return r ? r.type_ : Array.isArray(t) ? 1 : sr(t) ? 2 : ir(t) ? 3 : 0;
|
|
3597
3652
|
}
|
|
3598
|
-
function
|
|
3599
|
-
return
|
|
3653
|
+
function Ze(t, r) {
|
|
3654
|
+
return ge(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
|
|
3600
3655
|
}
|
|
3601
3656
|
function gn(t, r) {
|
|
3602
|
-
return
|
|
3657
|
+
return ge(t) === 2 ? t.get(r) : t[r];
|
|
3603
3658
|
}
|
|
3604
|
-
function
|
|
3605
|
-
const n =
|
|
3659
|
+
function Rs(t, r, e) {
|
|
3660
|
+
const n = ge(t);
|
|
3606
3661
|
n === 2 ? t.set(r, e) : n === 3 ? t.add(e) : t[r] = e;
|
|
3607
3662
|
}
|
|
3608
|
-
function
|
|
3663
|
+
function Aa(t, r) {
|
|
3609
3664
|
return t === r ? t !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
|
3610
3665
|
}
|
|
3611
|
-
function
|
|
3666
|
+
function sr(t) {
|
|
3612
3667
|
return t instanceof Map;
|
|
3613
3668
|
}
|
|
3614
|
-
function
|
|
3669
|
+
function ir(t) {
|
|
3615
3670
|
return t instanceof Set;
|
|
3616
3671
|
}
|
|
3617
|
-
function
|
|
3672
|
+
function fe(t) {
|
|
3618
3673
|
return t.copy_ || t.base_;
|
|
3619
3674
|
}
|
|
3620
3675
|
function Tn(t, r) {
|
|
3621
|
-
if (nr(t))
|
|
3622
|
-
return new Map(t);
|
|
3623
3676
|
if (sr(t))
|
|
3677
|
+
return new Map(t);
|
|
3678
|
+
if (ir(t))
|
|
3624
3679
|
return new Set(t);
|
|
3625
3680
|
if (Array.isArray(t))
|
|
3626
3681
|
return Array.prototype.slice.call(t);
|
|
@@ -3639,9 +3694,9 @@ function Tn(t, r) {
|
|
|
3639
3694
|
value: t[c]
|
|
3640
3695
|
});
|
|
3641
3696
|
}
|
|
3642
|
-
return Object.create(
|
|
3697
|
+
return Object.create(he(t), n);
|
|
3643
3698
|
} else {
|
|
3644
|
-
const n =
|
|
3699
|
+
const n = he(t);
|
|
3645
3700
|
if (n !== null && e)
|
|
3646
3701
|
return { ...t };
|
|
3647
3702
|
const i = Object.create(n);
|
|
@@ -3649,27 +3704,27 @@ function Tn(t, r) {
|
|
|
3649
3704
|
}
|
|
3650
3705
|
}
|
|
3651
3706
|
function $n(t, r = !1) {
|
|
3652
|
-
return Mr(t) ||
|
|
3707
|
+
return Mr(t) || me(t) || !Bt(t) || (ge(t) > 1 && (t.set = t.add = t.clear = t.delete = Ea), Object.freeze(t), r && Object.entries(t).forEach(([e, n]) => $n(n, !0))), t;
|
|
3653
3708
|
}
|
|
3654
|
-
function
|
|
3655
|
-
|
|
3709
|
+
function Ea() {
|
|
3710
|
+
B(2);
|
|
3656
3711
|
}
|
|
3657
3712
|
function Mr(t) {
|
|
3658
3713
|
return Object.isFrozen(t);
|
|
3659
3714
|
}
|
|
3660
3715
|
var An = {};
|
|
3661
|
-
function
|
|
3716
|
+
function ye(t) {
|
|
3662
3717
|
const r = An[t];
|
|
3663
|
-
return r ||
|
|
3718
|
+
return r || B(0, t), r;
|
|
3664
3719
|
}
|
|
3665
|
-
function
|
|
3720
|
+
function Ma(t, r) {
|
|
3666
3721
|
An[t] || (An[t] = r);
|
|
3667
3722
|
}
|
|
3668
|
-
var
|
|
3669
|
-
function
|
|
3670
|
-
return
|
|
3723
|
+
var Qe;
|
|
3724
|
+
function Ps() {
|
|
3725
|
+
return Qe;
|
|
3671
3726
|
}
|
|
3672
|
-
function
|
|
3727
|
+
function xa(t, r) {
|
|
3673
3728
|
return {
|
|
3674
3729
|
drafts_: [],
|
|
3675
3730
|
parent_: t,
|
|
@@ -3680,26 +3735,26 @@ function Ea(t, r) {
|
|
|
3680
3735
|
unfinalizedDrafts_: 0
|
|
3681
3736
|
};
|
|
3682
3737
|
}
|
|
3683
|
-
function
|
|
3684
|
-
r && (
|
|
3738
|
+
function qn(t, r) {
|
|
3739
|
+
r && (ye("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
|
|
3685
3740
|
}
|
|
3686
3741
|
function En(t) {
|
|
3687
|
-
Mn(t), t.drafts_.forEach(
|
|
3742
|
+
Mn(t), t.drafts_.forEach(Oa), t.drafts_ = null;
|
|
3688
3743
|
}
|
|
3689
3744
|
function Mn(t) {
|
|
3690
|
-
t ===
|
|
3745
|
+
t === Qe && (Qe = t.parent_);
|
|
3691
3746
|
}
|
|
3692
|
-
function
|
|
3693
|
-
return
|
|
3747
|
+
function Jn(t) {
|
|
3748
|
+
return Qe = xa(Qe, t);
|
|
3694
3749
|
}
|
|
3695
|
-
function
|
|
3750
|
+
function Oa(t) {
|
|
3696
3751
|
const r = t[ut];
|
|
3697
3752
|
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
|
3698
3753
|
}
|
|
3699
3754
|
function Zn(t, r) {
|
|
3700
3755
|
r.unfinalizedDrafts_ = r.drafts_.length;
|
|
3701
3756
|
const e = r.drafts_[0];
|
|
3702
|
-
return t !== void 0 && t !== e ? (e[ut].modified_ && (En(r),
|
|
3757
|
+
return t !== void 0 && t !== e ? (e[ut].modified_ && (En(r), B(4)), Bt(t) && (t = wr(r, t), r.parent_ || Tr(r, t)), r.patches_ && ye("Patches").generateReplacementPatches_(
|
|
3703
3758
|
e[ut].base_,
|
|
3704
3759
|
t,
|
|
3705
3760
|
r.patches_,
|
|
@@ -3726,7 +3781,7 @@ function wr(t, r, e) {
|
|
|
3726
3781
|
n.type_ === 3 && (o = new Set(i), i.clear(), c = !0), Je(
|
|
3727
3782
|
o,
|
|
3728
3783
|
(u, d) => Qn(t, n, i, u, d, e, c)
|
|
3729
|
-
), Tr(t, i, !1), e && t.patches_ &&
|
|
3784
|
+
), Tr(t, i, !1), e && t.patches_ && ye("Patches").generatePatches_(
|
|
3730
3785
|
n,
|
|
3731
3786
|
e,
|
|
3732
3787
|
t.patches_,
|
|
@@ -3736,15 +3791,15 @@ function wr(t, r, e) {
|
|
|
3736
3791
|
return n.copy_;
|
|
3737
3792
|
}
|
|
3738
3793
|
function Qn(t, r, e, n, i, o, c) {
|
|
3739
|
-
if (process.env.NODE_ENV !== "production" && i === e &&
|
|
3794
|
+
if (process.env.NODE_ENV !== "production" && i === e && B(5), me(i)) {
|
|
3740
3795
|
const u = o && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3741
|
-
!
|
|
3742
|
-
if (
|
|
3796
|
+
!Ze(r.assigned_, n) ? o.concat(n) : void 0, d = wr(t, i, u);
|
|
3797
|
+
if (Rs(e, n, d), me(d))
|
|
3743
3798
|
t.canAutoFreeze_ = !1;
|
|
3744
3799
|
else
|
|
3745
3800
|
return;
|
|
3746
3801
|
} else c && e.add(i);
|
|
3747
|
-
if (
|
|
3802
|
+
if (Bt(i) && !Mr(i)) {
|
|
3748
3803
|
if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
|
|
3749
3804
|
return;
|
|
3750
3805
|
wr(t, i), (!r || !r.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(e, n) && Tr(t, i);
|
|
@@ -3753,11 +3808,11 @@ function Qn(t, r, e, n, i, o, c) {
|
|
|
3753
3808
|
function Tr(t, r, e = !1) {
|
|
3754
3809
|
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && $n(r, e);
|
|
3755
3810
|
}
|
|
3756
|
-
function
|
|
3811
|
+
function Ca(t, r) {
|
|
3757
3812
|
const e = Array.isArray(t), n = {
|
|
3758
3813
|
type_: e ? 1 : 0,
|
|
3759
3814
|
// Track which produce call this is associated with.
|
|
3760
|
-
scope_: r ? r.scope_ :
|
|
3815
|
+
scope_: r ? r.scope_ : Ps(),
|
|
3761
3816
|
// True for both shallow and deep changes.
|
|
3762
3817
|
modified_: !1,
|
|
3763
3818
|
// Used during finalization.
|
|
@@ -3778,7 +3833,7 @@ function xa(t, r) {
|
|
|
3778
3833
|
isManual_: !1
|
|
3779
3834
|
};
|
|
3780
3835
|
let i = n, o = Fn;
|
|
3781
|
-
e && (i = [n], o =
|
|
3836
|
+
e && (i = [n], o = tr);
|
|
3782
3837
|
const { revoke: c, proxy: u } = Proxy.revocable(i, o);
|
|
3783
3838
|
return n.draft_ = u, n.revoke_ = c, u;
|
|
3784
3839
|
}
|
|
@@ -3786,27 +3841,27 @@ var Fn = {
|
|
|
3786
3841
|
get(t, r) {
|
|
3787
3842
|
if (r === ut)
|
|
3788
3843
|
return t;
|
|
3789
|
-
const e =
|
|
3790
|
-
if (!
|
|
3791
|
-
return
|
|
3844
|
+
const e = fe(t);
|
|
3845
|
+
if (!Ze(e, r))
|
|
3846
|
+
return Ra(t, e, r);
|
|
3792
3847
|
const n = e[r];
|
|
3793
|
-
return t.finalized_ || !
|
|
3848
|
+
return t.finalized_ || !Bt(n) ? n : n === yn(t.base_, r) ? (In(t), t.copy_[r] = On(n, t)) : n;
|
|
3794
3849
|
},
|
|
3795
3850
|
has(t, r) {
|
|
3796
|
-
return r in
|
|
3851
|
+
return r in fe(t);
|
|
3797
3852
|
},
|
|
3798
3853
|
ownKeys(t) {
|
|
3799
|
-
return Reflect.ownKeys(
|
|
3854
|
+
return Reflect.ownKeys(fe(t));
|
|
3800
3855
|
},
|
|
3801
3856
|
set(t, r, e) {
|
|
3802
|
-
const n = Ds(
|
|
3857
|
+
const n = Ds(fe(t), r);
|
|
3803
3858
|
if (n != null && n.set)
|
|
3804
3859
|
return n.set.call(t.draft_, e), !0;
|
|
3805
3860
|
if (!t.modified_) {
|
|
3806
|
-
const i = yn(
|
|
3861
|
+
const i = yn(fe(t), r), o = i == null ? void 0 : i[ut];
|
|
3807
3862
|
if (o && o.base_ === e)
|
|
3808
3863
|
return t.copy_[r] = e, t.assigned_[r] = !1, !0;
|
|
3809
|
-
if (
|
|
3864
|
+
if (Aa(e, i) && (e !== void 0 || Ze(t.base_, r)))
|
|
3810
3865
|
return !0;
|
|
3811
3866
|
In(t), xn(t);
|
|
3812
3867
|
}
|
|
@@ -3820,7 +3875,7 @@ var Fn = {
|
|
|
3820
3875
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
3821
3876
|
// the same guarantee in ES5 mode.
|
|
3822
3877
|
getOwnPropertyDescriptor(t, r) {
|
|
3823
|
-
const e =
|
|
3878
|
+
const e = fe(t), n = Reflect.getOwnPropertyDescriptor(e, r);
|
|
3824
3879
|
return n && {
|
|
3825
3880
|
writable: !0,
|
|
3826
3881
|
configurable: t.type_ !== 1 || r !== "length",
|
|
@@ -3829,31 +3884,31 @@ var Fn = {
|
|
|
3829
3884
|
};
|
|
3830
3885
|
},
|
|
3831
3886
|
defineProperty() {
|
|
3832
|
-
|
|
3887
|
+
B(11);
|
|
3833
3888
|
},
|
|
3834
3889
|
getPrototypeOf(t) {
|
|
3835
|
-
return
|
|
3890
|
+
return he(t.base_);
|
|
3836
3891
|
},
|
|
3837
3892
|
setPrototypeOf() {
|
|
3838
|
-
|
|
3893
|
+
B(12);
|
|
3839
3894
|
}
|
|
3840
|
-
},
|
|
3895
|
+
}, tr = {};
|
|
3841
3896
|
Je(Fn, (t, r) => {
|
|
3842
|
-
|
|
3897
|
+
tr[t] = function() {
|
|
3843
3898
|
return arguments[0] = arguments[0][0], r.apply(this, arguments);
|
|
3844
3899
|
};
|
|
3845
3900
|
});
|
|
3846
|
-
|
|
3847
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) &&
|
|
3901
|
+
tr.deleteProperty = function(t, r) {
|
|
3902
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && B(13), tr.set.call(this, t, r, void 0);
|
|
3848
3903
|
};
|
|
3849
|
-
|
|
3850
|
-
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) &&
|
|
3904
|
+
tr.set = function(t, r, e) {
|
|
3905
|
+
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && B(14), Fn.set.call(this, t[0], r, e, t[0]);
|
|
3851
3906
|
};
|
|
3852
3907
|
function yn(t, r) {
|
|
3853
3908
|
const e = t[ut];
|
|
3854
|
-
return (e ?
|
|
3909
|
+
return (e ? fe(e) : t)[r];
|
|
3855
3910
|
}
|
|
3856
|
-
function
|
|
3911
|
+
function Ra(t, r, e) {
|
|
3857
3912
|
var i;
|
|
3858
3913
|
const n = Ds(r, e);
|
|
3859
3914
|
return n ? "value" in n ? n.value : (
|
|
@@ -3865,12 +3920,12 @@ function Oa(t, r, e) {
|
|
|
3865
3920
|
function Ds(t, r) {
|
|
3866
3921
|
if (!(r in t))
|
|
3867
3922
|
return;
|
|
3868
|
-
let e =
|
|
3923
|
+
let e = he(t);
|
|
3869
3924
|
for (; e; ) {
|
|
3870
3925
|
const n = Object.getOwnPropertyDescriptor(e, r);
|
|
3871
3926
|
if (n)
|
|
3872
3927
|
return n;
|
|
3873
|
-
e =
|
|
3928
|
+
e = he(e);
|
|
3874
3929
|
}
|
|
3875
3930
|
}
|
|
3876
3931
|
function xn(t) {
|
|
@@ -3882,7 +3937,7 @@ function In(t) {
|
|
|
3882
3937
|
t.scope_.immer_.useStrictShallowCopy_
|
|
3883
3938
|
));
|
|
3884
3939
|
}
|
|
3885
|
-
var
|
|
3940
|
+
var Pa = class {
|
|
3886
3941
|
constructor(t) {
|
|
3887
3942
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, e, n) => {
|
|
3888
3943
|
if (typeof r == "function" && typeof e != "function") {
|
|
@@ -3893,25 +3948,25 @@ var Ca = class {
|
|
|
3893
3948
|
return c.produce(d, (m) => e.call(this, m, ...p));
|
|
3894
3949
|
};
|
|
3895
3950
|
}
|
|
3896
|
-
typeof e != "function" &&
|
|
3951
|
+
typeof e != "function" && B(6), n !== void 0 && typeof n != "function" && B(7);
|
|
3897
3952
|
let i;
|
|
3898
|
-
if (
|
|
3899
|
-
const o =
|
|
3953
|
+
if (Bt(r)) {
|
|
3954
|
+
const o = Jn(this), c = On(r, void 0);
|
|
3900
3955
|
let u = !0;
|
|
3901
3956
|
try {
|
|
3902
3957
|
i = e(c), u = !1;
|
|
3903
3958
|
} finally {
|
|
3904
3959
|
u ? En(o) : Mn(o);
|
|
3905
3960
|
}
|
|
3906
|
-
return
|
|
3961
|
+
return qn(o, n), Zn(i, o);
|
|
3907
3962
|
} else if (!r || typeof r != "object") {
|
|
3908
3963
|
if (i = e(r), i === void 0 && (i = r), i === zn && (i = void 0), this.autoFreeze_ && $n(i, !0), n) {
|
|
3909
3964
|
const o = [], c = [];
|
|
3910
|
-
|
|
3965
|
+
ye("Patches").generateReplacementPatches_(r, i, o, c), n(o, c);
|
|
3911
3966
|
}
|
|
3912
3967
|
return i;
|
|
3913
3968
|
} else
|
|
3914
|
-
|
|
3969
|
+
B(1, r);
|
|
3915
3970
|
}, this.produceWithPatches = (r, e) => {
|
|
3916
3971
|
if (typeof r == "function")
|
|
3917
3972
|
return (c, ...u) => this.produceWithPatches(c, (d) => r(d, ...u));
|
|
@@ -3922,15 +3977,15 @@ var Ca = class {
|
|
|
3922
3977
|
}, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
|
|
3923
3978
|
}
|
|
3924
3979
|
createDraft(t) {
|
|
3925
|
-
|
|
3926
|
-
const r =
|
|
3980
|
+
Bt(t) || B(8), me(t) && (t = Da(t));
|
|
3981
|
+
const r = Jn(this), e = On(t, void 0);
|
|
3927
3982
|
return e[ut].isManual_ = !0, Mn(r), e;
|
|
3928
3983
|
}
|
|
3929
3984
|
finishDraft(t, r) {
|
|
3930
3985
|
const e = t && t[ut];
|
|
3931
|
-
(!e || !e.isManual_) &&
|
|
3986
|
+
(!e || !e.isManual_) && B(9);
|
|
3932
3987
|
const { scope_: n } = e;
|
|
3933
|
-
return
|
|
3988
|
+
return qn(n, r), Zn(void 0, n);
|
|
3934
3989
|
}
|
|
3935
3990
|
/**
|
|
3936
3991
|
* Pass true to automatically freeze all copies created by Immer.
|
|
@@ -3958,22 +4013,22 @@ var Ca = class {
|
|
|
3958
4013
|
}
|
|
3959
4014
|
}
|
|
3960
4015
|
e > -1 && (r = r.slice(e + 1));
|
|
3961
|
-
const n =
|
|
3962
|
-
return
|
|
4016
|
+
const n = ye("Patches").applyPatches_;
|
|
4017
|
+
return me(t) ? n(t, r) : this.produce(
|
|
3963
4018
|
t,
|
|
3964
4019
|
(i) => n(i, r)
|
|
3965
4020
|
);
|
|
3966
4021
|
}
|
|
3967
4022
|
};
|
|
3968
4023
|
function On(t, r) {
|
|
3969
|
-
const e =
|
|
3970
|
-
return (r ? r.scope_ :
|
|
4024
|
+
const e = sr(t) ? ye("MapSet").proxyMap_(t, r) : ir(t) ? ye("MapSet").proxySet_(t, r) : Ca(t, r);
|
|
4025
|
+
return (r ? r.scope_ : Ps()).drafts_.push(e), e;
|
|
3971
4026
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
4027
|
+
function Da(t) {
|
|
4028
|
+
return me(t) || B(10, t), zs(t);
|
|
3974
4029
|
}
|
|
3975
4030
|
function zs(t) {
|
|
3976
|
-
if (!
|
|
4031
|
+
if (!Bt(t) || Mr(t))
|
|
3977
4032
|
return t;
|
|
3978
4033
|
const r = t[ut];
|
|
3979
4034
|
let e;
|
|
@@ -3984,7 +4039,7 @@ function zs(t) {
|
|
|
3984
4039
|
} else
|
|
3985
4040
|
e = Tn(t, !0);
|
|
3986
4041
|
return Je(e, (n, i) => {
|
|
3987
|
-
|
|
4042
|
+
Rs(e, n, zs(i));
|
|
3988
4043
|
}), r && (r.finalized_ = !1), e;
|
|
3989
4044
|
}
|
|
3990
4045
|
function ts() {
|
|
@@ -3999,201 +4054,201 @@ function ts() {
|
|
|
3999
4054
|
"Patching reserved attributes like __proto__, prototype and constructor is not allowed"
|
|
4000
4055
|
);
|
|
4001
4056
|
const r = "replace", e = "add", n = "remove";
|
|
4002
|
-
function i(h,
|
|
4057
|
+
function i(h, I, _, k) {
|
|
4003
4058
|
switch (h.type_) {
|
|
4004
4059
|
case 0:
|
|
4005
4060
|
case 2:
|
|
4006
4061
|
return c(
|
|
4007
4062
|
h,
|
|
4008
|
-
|
|
4009
|
-
|
|
4063
|
+
I,
|
|
4064
|
+
_,
|
|
4010
4065
|
k
|
|
4011
4066
|
);
|
|
4012
4067
|
case 1:
|
|
4013
|
-
return o(h,
|
|
4068
|
+
return o(h, I, _, k);
|
|
4014
4069
|
case 3:
|
|
4015
4070
|
return u(
|
|
4016
4071
|
h,
|
|
4017
|
-
|
|
4018
|
-
|
|
4072
|
+
I,
|
|
4073
|
+
_,
|
|
4019
4074
|
k
|
|
4020
4075
|
);
|
|
4021
4076
|
}
|
|
4022
4077
|
}
|
|
4023
|
-
function o(h,
|
|
4024
|
-
let { base_: w, assigned_: f } = h,
|
|
4025
|
-
|
|
4078
|
+
function o(h, I, _, k) {
|
|
4079
|
+
let { base_: w, assigned_: f } = h, y = h.copy_;
|
|
4080
|
+
y.length < w.length && ([w, y] = [y, w], [_, k] = [k, _]);
|
|
4026
4081
|
for (let v = 0; v < w.length; v++)
|
|
4027
|
-
if (f[v] &&
|
|
4028
|
-
const
|
|
4029
|
-
|
|
4082
|
+
if (f[v] && y[v] !== w[v]) {
|
|
4083
|
+
const S = I.concat([v]);
|
|
4084
|
+
_.push({
|
|
4030
4085
|
op: r,
|
|
4031
|
-
path:
|
|
4086
|
+
path: S,
|
|
4032
4087
|
// Need to maybe clone it, as it can in fact be the original value
|
|
4033
4088
|
// due to the base/copy inversion at the start of this function
|
|
4034
|
-
value: b(
|
|
4089
|
+
value: b(y[v])
|
|
4035
4090
|
}), k.push({
|
|
4036
4091
|
op: r,
|
|
4037
|
-
path:
|
|
4092
|
+
path: S,
|
|
4038
4093
|
value: b(w[v])
|
|
4039
4094
|
});
|
|
4040
4095
|
}
|
|
4041
|
-
for (let v = w.length; v <
|
|
4042
|
-
const
|
|
4043
|
-
|
|
4096
|
+
for (let v = w.length; v < y.length; v++) {
|
|
4097
|
+
const S = I.concat([v]);
|
|
4098
|
+
_.push({
|
|
4044
4099
|
op: e,
|
|
4045
|
-
path:
|
|
4100
|
+
path: S,
|
|
4046
4101
|
// Need to maybe clone it, as it can in fact be the original value
|
|
4047
4102
|
// due to the base/copy inversion at the start of this function
|
|
4048
|
-
value: b(
|
|
4103
|
+
value: b(y[v])
|
|
4049
4104
|
});
|
|
4050
4105
|
}
|
|
4051
|
-
for (let v =
|
|
4052
|
-
const
|
|
4106
|
+
for (let v = y.length - 1; w.length <= v; --v) {
|
|
4107
|
+
const S = I.concat([v]);
|
|
4053
4108
|
k.push({
|
|
4054
4109
|
op: n,
|
|
4055
|
-
path:
|
|
4110
|
+
path: S
|
|
4056
4111
|
});
|
|
4057
4112
|
}
|
|
4058
4113
|
}
|
|
4059
|
-
function c(h,
|
|
4114
|
+
function c(h, I, _, k) {
|
|
4060
4115
|
const { base_: w, copy_: f } = h;
|
|
4061
|
-
Je(h.assigned_, (
|
|
4062
|
-
const
|
|
4063
|
-
if (
|
|
4116
|
+
Je(h.assigned_, (y, v) => {
|
|
4117
|
+
const S = gn(w, y), A = gn(f, y), E = v ? Ze(w, y) ? r : e : n;
|
|
4118
|
+
if (S === A && E === r)
|
|
4064
4119
|
return;
|
|
4065
|
-
const T =
|
|
4066
|
-
|
|
4067
|
-
|
|
4120
|
+
const T = I.concat(y);
|
|
4121
|
+
_.push(E === n ? { op: E, path: T } : { op: E, path: T, value: A }), k.push(
|
|
4122
|
+
E === e ? { op: n, path: T } : E === n ? { op: e, path: T, value: b(S) } : { op: r, path: T, value: b(S) }
|
|
4068
4123
|
);
|
|
4069
4124
|
});
|
|
4070
4125
|
}
|
|
4071
|
-
function u(h,
|
|
4072
|
-
let { base_: w, copy_: f } = h,
|
|
4126
|
+
function u(h, I, _, k) {
|
|
4127
|
+
let { base_: w, copy_: f } = h, y = 0;
|
|
4073
4128
|
w.forEach((v) => {
|
|
4074
4129
|
if (!f.has(v)) {
|
|
4075
|
-
const
|
|
4076
|
-
|
|
4130
|
+
const S = I.concat([y]);
|
|
4131
|
+
_.push({
|
|
4077
4132
|
op: n,
|
|
4078
|
-
path:
|
|
4133
|
+
path: S,
|
|
4079
4134
|
value: v
|
|
4080
4135
|
}), k.unshift({
|
|
4081
4136
|
op: e,
|
|
4082
|
-
path:
|
|
4137
|
+
path: S,
|
|
4083
4138
|
value: v
|
|
4084
4139
|
});
|
|
4085
4140
|
}
|
|
4086
|
-
|
|
4087
|
-
}),
|
|
4141
|
+
y++;
|
|
4142
|
+
}), y = 0, f.forEach((v) => {
|
|
4088
4143
|
if (!w.has(v)) {
|
|
4089
|
-
const
|
|
4090
|
-
|
|
4144
|
+
const S = I.concat([y]);
|
|
4145
|
+
_.push({
|
|
4091
4146
|
op: e,
|
|
4092
|
-
path:
|
|
4147
|
+
path: S,
|
|
4093
4148
|
value: v
|
|
4094
4149
|
}), k.unshift({
|
|
4095
4150
|
op: n,
|
|
4096
|
-
path:
|
|
4151
|
+
path: S,
|
|
4097
4152
|
value: v
|
|
4098
4153
|
});
|
|
4099
4154
|
}
|
|
4100
|
-
|
|
4155
|
+
y++;
|
|
4101
4156
|
});
|
|
4102
4157
|
}
|
|
4103
|
-
function d(h,
|
|
4104
|
-
|
|
4158
|
+
function d(h, I, _, k) {
|
|
4159
|
+
_.push({
|
|
4105
4160
|
op: r,
|
|
4106
4161
|
path: [],
|
|
4107
|
-
value:
|
|
4162
|
+
value: I === zn ? void 0 : I
|
|
4108
4163
|
}), k.push({
|
|
4109
4164
|
op: r,
|
|
4110
4165
|
path: [],
|
|
4111
4166
|
value: h
|
|
4112
4167
|
});
|
|
4113
4168
|
}
|
|
4114
|
-
function p(h,
|
|
4115
|
-
return
|
|
4116
|
-
const { path: k, op: w } =
|
|
4169
|
+
function p(h, I) {
|
|
4170
|
+
return I.forEach((_) => {
|
|
4171
|
+
const { path: k, op: w } = _;
|
|
4117
4172
|
let f = h;
|
|
4118
4173
|
for (let A = 0; A < k.length - 1; A++) {
|
|
4119
|
-
const
|
|
4174
|
+
const E = ge(f);
|
|
4120
4175
|
let T = k[A];
|
|
4121
|
-
typeof T != "string" && typeof T != "number" && (T = "" + T), (
|
|
4176
|
+
typeof T != "string" && typeof T != "number" && (T = "" + T), (E === 0 || E === 1) && (T === "__proto__" || T === "constructor") && B(19), typeof f == "function" && T === "prototype" && B(19), f = gn(f, T), typeof f != "object" && B(18, k.join("/"));
|
|
4122
4177
|
}
|
|
4123
|
-
const
|
|
4178
|
+
const y = ge(f), v = m(_.value), S = k[k.length - 1];
|
|
4124
4179
|
switch (w) {
|
|
4125
4180
|
case r:
|
|
4126
|
-
switch (
|
|
4181
|
+
switch (y) {
|
|
4127
4182
|
case 2:
|
|
4128
|
-
return f.set(
|
|
4183
|
+
return f.set(S, v);
|
|
4129
4184
|
case 3:
|
|
4130
|
-
|
|
4185
|
+
B(16);
|
|
4131
4186
|
default:
|
|
4132
|
-
return f[
|
|
4187
|
+
return f[S] = v;
|
|
4133
4188
|
}
|
|
4134
4189
|
case e:
|
|
4135
|
-
switch (
|
|
4190
|
+
switch (y) {
|
|
4136
4191
|
case 1:
|
|
4137
|
-
return
|
|
4192
|
+
return S === "-" ? f.push(v) : f.splice(S, 0, v);
|
|
4138
4193
|
case 2:
|
|
4139
|
-
return f.set(
|
|
4194
|
+
return f.set(S, v);
|
|
4140
4195
|
case 3:
|
|
4141
4196
|
return f.add(v);
|
|
4142
4197
|
default:
|
|
4143
|
-
return f[
|
|
4198
|
+
return f[S] = v;
|
|
4144
4199
|
}
|
|
4145
4200
|
case n:
|
|
4146
|
-
switch (
|
|
4201
|
+
switch (y) {
|
|
4147
4202
|
case 1:
|
|
4148
|
-
return f.splice(
|
|
4203
|
+
return f.splice(S, 1);
|
|
4149
4204
|
case 2:
|
|
4150
|
-
return f.delete(
|
|
4205
|
+
return f.delete(S);
|
|
4151
4206
|
case 3:
|
|
4152
|
-
return f.delete(
|
|
4207
|
+
return f.delete(_.value);
|
|
4153
4208
|
default:
|
|
4154
|
-
return delete f[
|
|
4209
|
+
return delete f[S];
|
|
4155
4210
|
}
|
|
4156
4211
|
default:
|
|
4157
|
-
|
|
4212
|
+
B(17, w);
|
|
4158
4213
|
}
|
|
4159
4214
|
}), h;
|
|
4160
4215
|
}
|
|
4161
4216
|
function m(h) {
|
|
4162
|
-
if (!
|
|
4217
|
+
if (!Bt(h))
|
|
4163
4218
|
return h;
|
|
4164
4219
|
if (Array.isArray(h))
|
|
4165
4220
|
return h.map(m);
|
|
4166
|
-
if (
|
|
4221
|
+
if (sr(h))
|
|
4167
4222
|
return new Map(
|
|
4168
|
-
Array.from(h.entries()).map(([
|
|
4223
|
+
Array.from(h.entries()).map(([_, k]) => [_, m(k)])
|
|
4169
4224
|
);
|
|
4170
|
-
if (
|
|
4225
|
+
if (ir(h))
|
|
4171
4226
|
return new Set(Array.from(h).map(m));
|
|
4172
|
-
const
|
|
4173
|
-
for (const
|
|
4174
|
-
|
|
4175
|
-
return
|
|
4227
|
+
const I = Object.create(he(h));
|
|
4228
|
+
for (const _ in h)
|
|
4229
|
+
I[_] = m(h[_]);
|
|
4230
|
+
return Ze(h, qe) && (I[qe] = h[qe]), I;
|
|
4176
4231
|
}
|
|
4177
4232
|
function b(h) {
|
|
4178
|
-
return
|
|
4233
|
+
return me(h) ? m(h) : h;
|
|
4179
4234
|
}
|
|
4180
|
-
|
|
4235
|
+
Ma("Patches", {
|
|
4181
4236
|
applyPatches_: p,
|
|
4182
4237
|
generatePatches_: i,
|
|
4183
4238
|
generateReplacementPatches_: d
|
|
4184
4239
|
});
|
|
4185
4240
|
}
|
|
4186
|
-
var lt = new
|
|
4241
|
+
var lt = new Pa(), za = lt.produce;
|
|
4187
4242
|
lt.produceWithPatches.bind(
|
|
4188
4243
|
lt
|
|
4189
4244
|
);
|
|
4190
4245
|
lt.setAutoFreeze.bind(lt);
|
|
4191
4246
|
lt.setUseStrictShallowCopy.bind(lt);
|
|
4192
|
-
var
|
|
4247
|
+
var $a = lt.applyPatches.bind(lt);
|
|
4193
4248
|
lt.createDraft.bind(lt);
|
|
4194
4249
|
lt.finishDraft.bind(lt);
|
|
4195
|
-
var
|
|
4196
|
-
function
|
|
4250
|
+
var Fa = 9007199254740991, La = "[object Arguments]", Na = "[object Function]", Ha = "[object GeneratorFunction]", Ua = "[object Symbol]", ja = typeof dt == "object" && dt && dt.Object === Object && dt, Wa = typeof self == "object" && self && self.Object === Object && self, Ba = ja || Wa || Function("return this")();
|
|
4251
|
+
function Ya(t, r, e) {
|
|
4197
4252
|
switch (e.length) {
|
|
4198
4253
|
case 0:
|
|
4199
4254
|
return t.call(r);
|
|
@@ -4206,92 +4261,92 @@ function Ba(t, r, e) {
|
|
|
4206
4261
|
}
|
|
4207
4262
|
return t.apply(r, e);
|
|
4208
4263
|
}
|
|
4209
|
-
function
|
|
4264
|
+
function Ga(t, r) {
|
|
4210
4265
|
for (var e = -1, n = t ? t.length : 0, i = Array(n); ++e < n; )
|
|
4211
4266
|
i[e] = r(t[e], e, t);
|
|
4212
4267
|
return i;
|
|
4213
4268
|
}
|
|
4214
|
-
function
|
|
4269
|
+
function Xa(t, r) {
|
|
4215
4270
|
for (var e = -1, n = r.length, i = t.length; ++e < n; )
|
|
4216
4271
|
t[i + e] = r[e];
|
|
4217
4272
|
return t;
|
|
4218
4273
|
}
|
|
4219
|
-
var Ln = Object.prototype,
|
|
4220
|
-
function
|
|
4274
|
+
var Ln = Object.prototype, Ka = Ln.hasOwnProperty, Nn = Ln.toString, es = Ba.Symbol, Va = Ln.propertyIsEnumerable, rs = es ? es.isConcatSpreadable : void 0, ns = Math.max;
|
|
4275
|
+
function qa(t, r, e, n, i) {
|
|
4221
4276
|
var o = -1, c = t.length;
|
|
4222
|
-
for (e || (e =
|
|
4277
|
+
for (e || (e = to), i || (i = []); ++o < c; ) {
|
|
4223
4278
|
var u = t[o];
|
|
4224
|
-
e(u) ?
|
|
4279
|
+
e(u) ? Xa(i, u) : i[i.length] = u;
|
|
4225
4280
|
}
|
|
4226
4281
|
return i;
|
|
4227
4282
|
}
|
|
4228
|
-
function
|
|
4229
|
-
return t = Object(t),
|
|
4283
|
+
function Ja(t, r) {
|
|
4284
|
+
return t = Object(t), Za(t, r, function(e, n) {
|
|
4230
4285
|
return n in t;
|
|
4231
4286
|
});
|
|
4232
4287
|
}
|
|
4233
|
-
function
|
|
4288
|
+
function Za(t, r, e) {
|
|
4234
4289
|
for (var n = -1, i = r.length, o = {}; ++n < i; ) {
|
|
4235
4290
|
var c = r[n], u = t[c];
|
|
4236
4291
|
e(u, c) && (o[c] = u);
|
|
4237
4292
|
}
|
|
4238
4293
|
return o;
|
|
4239
4294
|
}
|
|
4240
|
-
function
|
|
4295
|
+
function Qa(t, r) {
|
|
4241
4296
|
return r = ns(r === void 0 ? t.length - 1 : r, 0), function() {
|
|
4242
4297
|
for (var e = arguments, n = -1, i = ns(e.length - r, 0), o = Array(i); ++n < i; )
|
|
4243
4298
|
o[n] = e[r + n];
|
|
4244
4299
|
n = -1;
|
|
4245
4300
|
for (var c = Array(r + 1); ++n < r; )
|
|
4246
4301
|
c[n] = e[n];
|
|
4247
|
-
return c[r] = o,
|
|
4302
|
+
return c[r] = o, Ya(t, this, c);
|
|
4248
4303
|
};
|
|
4249
4304
|
}
|
|
4250
|
-
function
|
|
4251
|
-
return
|
|
4305
|
+
function to(t) {
|
|
4306
|
+
return no(t) || ro(t) || !!(rs && t && t[rs]);
|
|
4252
4307
|
}
|
|
4253
|
-
function
|
|
4254
|
-
if (typeof t == "string" ||
|
|
4308
|
+
function eo(t) {
|
|
4309
|
+
if (typeof t == "string" || uo(t))
|
|
4255
4310
|
return t;
|
|
4256
4311
|
var r = t + "";
|
|
4257
4312
|
return r == "0" && 1 / t == -1 / 0 ? "-0" : r;
|
|
4258
4313
|
}
|
|
4259
|
-
function to(t) {
|
|
4260
|
-
return no(t) && Ya.call(t, "callee") && (!Xa.call(t, "callee") || Nn.call(t) == $a);
|
|
4261
|
-
}
|
|
4262
|
-
var eo = Array.isArray;
|
|
4263
4314
|
function ro(t) {
|
|
4264
|
-
return t
|
|
4265
|
-
}
|
|
4266
|
-
function no(t) {
|
|
4267
|
-
return $s(t) && ro(t);
|
|
4315
|
+
return io(t) && Ka.call(t, "callee") && (!Va.call(t, "callee") || Nn.call(t) == La);
|
|
4268
4316
|
}
|
|
4317
|
+
var no = Array.isArray;
|
|
4269
4318
|
function so(t) {
|
|
4270
|
-
|
|
4271
|
-
return r == Fa || r == La;
|
|
4319
|
+
return t != null && oo(t.length) && !ao(t);
|
|
4272
4320
|
}
|
|
4273
4321
|
function io(t) {
|
|
4274
|
-
return
|
|
4322
|
+
return $s(t) && so(t);
|
|
4275
4323
|
}
|
|
4276
4324
|
function ao(t) {
|
|
4325
|
+
var r = co(t) ? Nn.call(t) : "";
|
|
4326
|
+
return r == Na || r == Ha;
|
|
4327
|
+
}
|
|
4328
|
+
function oo(t) {
|
|
4329
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Fa;
|
|
4330
|
+
}
|
|
4331
|
+
function co(t) {
|
|
4277
4332
|
var r = typeof t;
|
|
4278
4333
|
return !!t && (r == "object" || r == "function");
|
|
4279
4334
|
}
|
|
4280
4335
|
function $s(t) {
|
|
4281
4336
|
return !!t && typeof t == "object";
|
|
4282
4337
|
}
|
|
4283
|
-
function
|
|
4284
|
-
return typeof t == "symbol" || $s(t) && Nn.call(t) ==
|
|
4338
|
+
function uo(t) {
|
|
4339
|
+
return typeof t == "symbol" || $s(t) && Nn.call(t) == Ua;
|
|
4285
4340
|
}
|
|
4286
|
-
var
|
|
4287
|
-
return t == null ? {} :
|
|
4288
|
-
}),
|
|
4289
|
-
const ss = /* @__PURE__ */ Cn(
|
|
4341
|
+
var lo = Qa(function(t, r) {
|
|
4342
|
+
return t == null ? {} : Ja(t, Ga(qa(r), eo));
|
|
4343
|
+
}), fo = lo;
|
|
4344
|
+
const ss = /* @__PURE__ */ Cn(fo), po = {
|
|
4290
4345
|
width: 1080,
|
|
4291
4346
|
height: 1920
|
|
4292
|
-
},
|
|
4293
|
-
size:
|
|
4294
|
-
fps:
|
|
4347
|
+
}, ho = 30, mo = {
|
|
4348
|
+
size: po,
|
|
4349
|
+
fps: ho,
|
|
4295
4350
|
tracks: [],
|
|
4296
4351
|
trackItemIds: [],
|
|
4297
4352
|
trackItemsMap: {},
|
|
@@ -4319,32 +4374,32 @@ const ss = /* @__PURE__ */ Cn(uo), lo = {
|
|
|
4319
4374
|
"trackItemIds",
|
|
4320
4375
|
"structure"
|
|
4321
4376
|
];
|
|
4322
|
-
class
|
|
4377
|
+
class Bo {
|
|
4323
4378
|
// Clean constructor with clear configuration interface
|
|
4324
4379
|
constructor(r, e) {
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4380
|
+
Ut(this, "stateSubject");
|
|
4381
|
+
Ut(this, "stateHistorySubject");
|
|
4382
|
+
Ut(this, "prevState");
|
|
4383
|
+
Ut(this, "background");
|
|
4384
|
+
Ut(this, "undos", []);
|
|
4385
|
+
Ut(this, "redos", []);
|
|
4386
|
+
Ut(this, "listener");
|
|
4332
4387
|
const n = Object.assign(
|
|
4333
4388
|
{},
|
|
4334
|
-
|
|
4389
|
+
mo,
|
|
4335
4390
|
r,
|
|
4336
4391
|
e != null && e.scale ? { scale: e.scale } : {}
|
|
4337
4392
|
);
|
|
4338
|
-
this.stateSubject = new
|
|
4393
|
+
this.stateSubject = new Gn(n), this.stateHistorySubject = new Gn({
|
|
4339
4394
|
handleRedo: !1,
|
|
4340
4395
|
handleUndo: !1
|
|
4341
|
-
}), this.background = n.background, this.prevState = n, (e != null && e.cors || e != null && e.acceptsMap) &&
|
|
4396
|
+
}), this.background = n.background, this.prevState = n, (e != null && e.cors || e != null && e.acceptsMap) && Wi({
|
|
4342
4397
|
cors: e.cors,
|
|
4343
4398
|
acceptsMap: e.acceptsMap
|
|
4344
4399
|
}), this.initListeners();
|
|
4345
4400
|
}
|
|
4346
4401
|
initListeners() {
|
|
4347
|
-
|
|
4402
|
+
Sa(this);
|
|
4348
4403
|
}
|
|
4349
4404
|
destroyListeners() {
|
|
4350
4405
|
this.listener && this.listener.unsubscribe();
|
|
@@ -4376,12 +4431,12 @@ class Uo {
|
|
|
4376
4431
|
...C(n),
|
|
4377
4432
|
...C(r)
|
|
4378
4433
|
};
|
|
4379
|
-
|
|
4434
|
+
W(n, i) || (e.updateHistory && this.updateHistory(i, e.kind), this.prevState = n, this.stateSubject.next(i));
|
|
4380
4435
|
}
|
|
4381
4436
|
// emit changes for design size
|
|
4382
4437
|
subscribeToUpdateStateDetails(r) {
|
|
4383
4438
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4384
|
-
(!
|
|
4439
|
+
(!W(e.size, this.prevState.size) || !W(e.background, this.prevState.background)) && r({
|
|
4385
4440
|
size: e.size,
|
|
4386
4441
|
background: e.background
|
|
4387
4442
|
});
|
|
@@ -4390,7 +4445,7 @@ class Uo {
|
|
|
4390
4445
|
// Selectively subscribe to scale changes
|
|
4391
4446
|
subscribeToScale(r) {
|
|
4392
4447
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4393
|
-
|
|
4448
|
+
W(e.scale, this.prevState.scale) || r({ scale: e.scale });
|
|
4394
4449
|
});
|
|
4395
4450
|
}
|
|
4396
4451
|
// Selectively subscribe to fps changes
|
|
@@ -4401,7 +4456,7 @@ class Uo {
|
|
|
4401
4456
|
}
|
|
4402
4457
|
subscribeToUpdateTrackItem(r) {
|
|
4403
4458
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4404
|
-
|
|
4459
|
+
W(e.trackItemsMap, this.prevState.trackItemsMap) || r({ trackItemsMap: e.trackItemsMap });
|
|
4405
4460
|
});
|
|
4406
4461
|
}
|
|
4407
4462
|
subscribeToUpdateAnimations(r) {
|
|
@@ -4409,7 +4464,7 @@ class Uo {
|
|
|
4409
4464
|
const n = Object.keys(e.trackItemsMap).filter(
|
|
4410
4465
|
(i) => {
|
|
4411
4466
|
const o = this.prevState.trackItemsMap[i], c = e.trackItemsMap[i];
|
|
4412
|
-
return o && c && !
|
|
4467
|
+
return o && c && !W(o.animations, c.animations);
|
|
4413
4468
|
}
|
|
4414
4469
|
);
|
|
4415
4470
|
r({ trackItemsMap: e.trackItemsMap, changedAnimationIds: n });
|
|
@@ -4417,14 +4472,14 @@ class Uo {
|
|
|
4417
4472
|
}
|
|
4418
4473
|
subscribeToUpdateTrackItemTiming(r) {
|
|
4419
4474
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4420
|
-
if (!
|
|
4475
|
+
if (!W(e.trackItemsMap, this.prevState.trackItemsMap)) {
|
|
4421
4476
|
const n = Object.keys(e.trackItemsMap).filter((o) => {
|
|
4422
4477
|
const c = this.prevState.trackItemsMap[o], u = e.trackItemsMap[o];
|
|
4423
|
-
return c && u && !
|
|
4478
|
+
return c && u && !W(c.trim, u.trim);
|
|
4424
4479
|
}), i = Object.keys(e.trackItemsMap).filter(
|
|
4425
4480
|
(o) => {
|
|
4426
4481
|
const c = this.prevState.trackItemsMap[o], u = e.trackItemsMap[o];
|
|
4427
|
-
return c && u && !
|
|
4482
|
+
return c && u && !W(c.display, u.display);
|
|
4428
4483
|
}
|
|
4429
4484
|
);
|
|
4430
4485
|
r({
|
|
@@ -4439,7 +4494,7 @@ class Uo {
|
|
|
4439
4494
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4440
4495
|
Object.keys(e.trackItemsMap).some((i) => {
|
|
4441
4496
|
const o = this.prevState.trackItemsMap[i], c = e.trackItemsMap[i];
|
|
4442
|
-
return o && c && !
|
|
4497
|
+
return o && c && !W(o.details, c.details);
|
|
4443
4498
|
}) && r({ trackItemsMap: e.trackItemsMap });
|
|
4444
4499
|
});
|
|
4445
4500
|
}
|
|
@@ -4464,13 +4519,13 @@ class Uo {
|
|
|
4464
4519
|
subscribeToAddOrRemoveItems(r) {
|
|
4465
4520
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4466
4521
|
const n = [...e.trackItemIds].sort(), i = [...this.prevState.trackItemIds].sort(), o = [...e.transitionIds].sort(), c = [...this.prevState.transitionIds].sort();
|
|
4467
|
-
(!
|
|
4522
|
+
(!W(n, i) || !W(o, c)) && r({ trackItemIds: e.trackItemIds });
|
|
4468
4523
|
});
|
|
4469
4524
|
}
|
|
4470
4525
|
// Selectively subscribe to activeIds changes
|
|
4471
4526
|
subscribeToActiveIds(r) {
|
|
4472
4527
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4473
|
-
|
|
4528
|
+
W(e.activeIds, this.prevState.activeIds) || r({ activeIds: e.activeIds });
|
|
4474
4529
|
});
|
|
4475
4530
|
}
|
|
4476
4531
|
subscribeToTracks(r) {
|
|
@@ -4487,7 +4542,7 @@ class Uo {
|
|
|
4487
4542
|
// Selectively subscribe to multiple track-related properties
|
|
4488
4543
|
subscribeToState(r) {
|
|
4489
4544
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4490
|
-
(!
|
|
4545
|
+
(!W(e.tracks, this.prevState.tracks) || !W(e.trackItemIds, this.prevState.trackItemIds) || !W(e.trackItemsMap, this.prevState.trackItemsMap) || !W(e.transitionIds, this.prevState.transitionIds) || !W(e.transitionsMap, this.prevState.transitionsMap) || !W(e.structure, this.prevState.structure)) && r({
|
|
4491
4546
|
tracks: e.tracks,
|
|
4492
4547
|
trackItemIds: e.trackItemIds,
|
|
4493
4548
|
trackItemsMap: e.trackItemsMap,
|
|
@@ -4515,7 +4570,7 @@ class Uo {
|
|
|
4515
4570
|
transitionsMap: u,
|
|
4516
4571
|
trackItemsMap: d,
|
|
4517
4572
|
structure: p
|
|
4518
|
-
}), b = [], h = [],
|
|
4573
|
+
}), b = [], h = [], I = [], _ = [], k = [], w = [];
|
|
4519
4574
|
e.forEach((x) => {
|
|
4520
4575
|
let F;
|
|
4521
4576
|
const tt = x.path.slice(1);
|
|
@@ -4531,41 +4586,41 @@ class Uo {
|
|
|
4531
4586
|
path: tt,
|
|
4532
4587
|
op: "add",
|
|
4533
4588
|
value: x.oldValue
|
|
4534
|
-
}, x.path.includes("trackItemIds") ?
|
|
4589
|
+
}, x.path.includes("trackItemIds") ? I.push(F) : x.path.includes("transitionIds") ? h.push(F) : x.path.includes("trackItemsMap") ? k.push(F) : x.path.includes("transitionsMap") ? _.push(F) : x.path.includes("tracks") ? b.push(F) : x.path.includes("structure") && w.push(F);
|
|
4535
4590
|
});
|
|
4536
4591
|
const f = this.applyPatch(
|
|
4537
4592
|
m.tracks,
|
|
4538
4593
|
b
|
|
4539
|
-
),
|
|
4594
|
+
), y = this.applyPatch(
|
|
4540
4595
|
m.transitionIds,
|
|
4541
4596
|
h
|
|
4542
4597
|
), v = this.applyPatch(
|
|
4543
4598
|
m.trackItemIds,
|
|
4544
|
-
|
|
4545
|
-
),
|
|
4599
|
+
I
|
|
4600
|
+
), S = this.applyPatch(
|
|
4546
4601
|
m.transitionsMap,
|
|
4547
|
-
|
|
4602
|
+
_
|
|
4548
4603
|
), A = this.applyPatch(
|
|
4549
4604
|
m.trackItemsMap,
|
|
4550
4605
|
k
|
|
4551
|
-
),
|
|
4606
|
+
), E = this.applyPatch(
|
|
4552
4607
|
m.structure,
|
|
4553
4608
|
w
|
|
4554
4609
|
), T = C({
|
|
4555
4610
|
tracks: f,
|
|
4556
|
-
transitionIds:
|
|
4611
|
+
transitionIds: y,
|
|
4557
4612
|
trackItemIds: v,
|
|
4558
|
-
transitionsMap:
|
|
4613
|
+
transitionsMap: S,
|
|
4559
4614
|
trackItemsMap: A,
|
|
4560
|
-
structure:
|
|
4561
|
-
}), H = C(this.getState()),
|
|
4615
|
+
structure: E
|
|
4616
|
+
}), H = C(this.getState()), R = { ...H, ...T };
|
|
4562
4617
|
this.prevState = H, this.redos.push({ redos: e, type: n });
|
|
4563
|
-
const V = K(
|
|
4564
|
-
this.stateSubject.next({ ...
|
|
4618
|
+
const V = K(R.trackItemsMap);
|
|
4619
|
+
this.stateSubject.next({ ...R, duration: V }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 }), this.updateState(R, { updateHistory: !1 });
|
|
4565
4620
|
}
|
|
4566
4621
|
applyPatch(r, e) {
|
|
4567
|
-
return e.reverse().reduce((n, i) =>
|
|
4568
|
-
|
|
4622
|
+
return e.reverse().reduce((n, i) => za(n, (o) => {
|
|
4623
|
+
$a(o, [i]);
|
|
4569
4624
|
}), r);
|
|
4570
4625
|
}
|
|
4571
4626
|
redo() {
|
|
@@ -4586,7 +4641,7 @@ class Uo {
|
|
|
4586
4641
|
transitionsMap: u,
|
|
4587
4642
|
trackItemsMap: d,
|
|
4588
4643
|
structure: p
|
|
4589
|
-
}), b = [], h = [],
|
|
4644
|
+
}), b = [], h = [], I = [], _ = [], k = [], w = [];
|
|
4590
4645
|
e.forEach((x) => {
|
|
4591
4646
|
let F;
|
|
4592
4647
|
const tt = x.path.slice(1);
|
|
@@ -4602,37 +4657,37 @@ class Uo {
|
|
|
4602
4657
|
path: tt,
|
|
4603
4658
|
op: "remove",
|
|
4604
4659
|
value: x.oldValue
|
|
4605
|
-
}, x.path.includes("trackItemIds") ?
|
|
4660
|
+
}, x.path.includes("trackItemIds") ? I.push(F) : x.path.includes("transitionIds") ? h.push(F) : x.path.includes("trackItemsMap") ? k.push(F) : x.path.includes("transitionsMap") ? _.push(F) : x.path.includes("structure") ? w.push(F) : b.push(F);
|
|
4606
4661
|
});
|
|
4607
4662
|
const f = this.applyPatch(
|
|
4608
4663
|
m.tracks,
|
|
4609
4664
|
b
|
|
4610
|
-
),
|
|
4665
|
+
), y = this.applyPatch(
|
|
4611
4666
|
m.transitionIds,
|
|
4612
4667
|
h
|
|
4613
4668
|
), v = this.applyPatch(
|
|
4614
4669
|
m.trackItemIds,
|
|
4615
|
-
|
|
4616
|
-
),
|
|
4670
|
+
I
|
|
4671
|
+
), S = this.applyPatch(
|
|
4617
4672
|
m.transitionsMap,
|
|
4618
|
-
|
|
4673
|
+
_
|
|
4619
4674
|
), A = this.applyPatch(
|
|
4620
4675
|
m.trackItemsMap,
|
|
4621
4676
|
k
|
|
4622
|
-
),
|
|
4677
|
+
), E = this.applyPatch(
|
|
4623
4678
|
m.structure,
|
|
4624
4679
|
w
|
|
4625
4680
|
), T = C({
|
|
4626
4681
|
tracks: f,
|
|
4627
|
-
transitionIds:
|
|
4682
|
+
transitionIds: y,
|
|
4628
4683
|
trackItemIds: v,
|
|
4629
|
-
transitionsMap:
|
|
4684
|
+
transitionsMap: S,
|
|
4630
4685
|
trackItemsMap: A,
|
|
4631
|
-
structure:
|
|
4632
|
-
}), H = C(this.getState()),
|
|
4686
|
+
structure: E
|
|
4687
|
+
}), H = C(this.getState()), R = { ...H, ...T };
|
|
4633
4688
|
this.prevState = H, this.undos.push({ undos: e, type: n });
|
|
4634
|
-
const V = K(
|
|
4635
|
-
this.stateSubject.next({ ...
|
|
4689
|
+
const V = K(R.trackItemsMap);
|
|
4690
|
+
this.stateSubject.next({ ...R, duration: V }), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 }), this.updateState(R, { updateHistory: !1 });
|
|
4636
4691
|
}
|
|
4637
4692
|
toJSON() {
|
|
4638
4693
|
const {
|
|
@@ -4656,77 +4711,78 @@ class Uo {
|
|
|
4656
4711
|
}
|
|
4657
4712
|
}
|
|
4658
4713
|
export {
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4714
|
+
Ro as ACTIVE_CLONE,
|
|
4715
|
+
Co as ACTIVE_DELETE,
|
|
4716
|
+
Ei as ACTIVE_PASTE,
|
|
4717
|
+
ze as ACTIVE_PREFIX,
|
|
4718
|
+
Oo as ACTIVE_SET,
|
|
4719
|
+
Mi as ACTIVE_SPLIT,
|
|
4665
4720
|
di as ADD_ANIMATION,
|
|
4666
4721
|
oi as ADD_AUDIO,
|
|
4667
4722
|
fi as ADD_CAPTIONS,
|
|
4668
4723
|
mi as ADD_COMPOSITION,
|
|
4669
|
-
|
|
4724
|
+
_i as ADD_HILL_AUDIO_BARS,
|
|
4670
4725
|
ui as ADD_ILLUSTRATION,
|
|
4671
4726
|
ci as ADD_IMAGE,
|
|
4672
4727
|
hi as ADD_ITEMS,
|
|
4673
4728
|
bi as ADD_LINEAL_AUDIO_BARS,
|
|
4674
|
-
|
|
4675
|
-
|
|
4729
|
+
So as ADD_MASK,
|
|
4730
|
+
_o as ADD_PLACEHOLDER,
|
|
4676
4731
|
N as ADD_PREFIX,
|
|
4677
4732
|
gi as ADD_PROGRESS_BAR,
|
|
4678
4733
|
yi as ADD_PROGRESS_FRAME,
|
|
4734
|
+
ki as ADD_PROGRESS_SQUARE,
|
|
4679
4735
|
Ii as ADD_RADIAL_AUDIO_BARS,
|
|
4680
|
-
|
|
4736
|
+
Si as ADD_RECT,
|
|
4681
4737
|
li as ADD_SHAPE,
|
|
4682
|
-
|
|
4738
|
+
Io as ADD_SUFFIX,
|
|
4683
4739
|
pi as ADD_TEMPLATE,
|
|
4684
4740
|
ii as ADD_TEXT,
|
|
4685
|
-
|
|
4741
|
+
wo as ADD_TRANSITION,
|
|
4686
4742
|
ai as ADD_VIDEO,
|
|
4687
|
-
|
|
4743
|
+
vi as ADD_WAVE_AUDIO_BARS,
|
|
4688
4744
|
ri as BULK_PREFIX,
|
|
4689
|
-
|
|
4745
|
+
Mo as DELETE_TEMPLATE_ITEM,
|
|
4690
4746
|
ni as DESIGN_LOAD,
|
|
4691
|
-
|
|
4747
|
+
Rn as DESIGN_PREFIX,
|
|
4692
4748
|
si as DESIGN_RESIZE,
|
|
4693
|
-
|
|
4749
|
+
Ai as EDIT_BACKGROUND_EDITOR,
|
|
4694
4750
|
Xn as EDIT_BULK,
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4751
|
+
wi as EDIT_OBJECT,
|
|
4752
|
+
Yt as EDIT_PREFIX,
|
|
4753
|
+
Ao as EDIT_SHAPE,
|
|
4754
|
+
Eo as EDIT_TEMPLATE_ITEM,
|
|
4755
|
+
To as EDIT_TEXT,
|
|
4756
|
+
xo as ENTER_EDIT_MODE,
|
|
4701
4757
|
Er as HISTORY_PREFIX,
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4758
|
+
zi as HISTORY_REDO,
|
|
4759
|
+
Wo as HISTORY_RESET,
|
|
4760
|
+
Di as HISTORY_UNDO,
|
|
4761
|
+
Ci as LAYER_CLONE,
|
|
4762
|
+
Oi as LAYER_COPY,
|
|
4763
|
+
jo as LAYER_CUT,
|
|
4764
|
+
Ri as LAYER_DELETE,
|
|
4765
|
+
No as LAYER_EDITING_NAME,
|
|
4766
|
+
Do as LAYER_HIDDEN,
|
|
4767
|
+
Po as LAYER_LOCKED,
|
|
4768
|
+
zo as LAYER_MOVE,
|
|
4769
|
+
Ho as LAYER_PASTE,
|
|
4714
4770
|
Q as LAYER_PREFIX,
|
|
4715
|
-
|
|
4771
|
+
Lo as LAYER_RENAME,
|
|
4716
4772
|
Pi as LAYER_REPLACE,
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4773
|
+
xi as LAYER_SELECT,
|
|
4774
|
+
$o as LAYER_SELECTION,
|
|
4775
|
+
Fo as LAYER_SEND_TO,
|
|
4776
|
+
Uo as LAYER_SPLIT,
|
|
4777
|
+
Ti as REPLACE_MEDIA,
|
|
4778
|
+
vo as STATE_CHANGED,
|
|
4723
4779
|
ei as STATE_PREFIX,
|
|
4724
|
-
|
|
4780
|
+
$i as TIMELINE_SCALE_CHANGED,
|
|
4725
4781
|
ds as TIMELINE_SCALE_PREFIX,
|
|
4726
|
-
|
|
4727
|
-
|
|
4782
|
+
bo as TRACKS_CHANGED,
|
|
4783
|
+
ko as TRACK_ITEMS_CHANGED,
|
|
4728
4784
|
ti as TRACK_ITEMS_PREFIX,
|
|
4729
4785
|
Qs as TRACK_PREFIX,
|
|
4730
|
-
|
|
4786
|
+
Bo as default,
|
|
4731
4787
|
Bi as getAcceptsMap
|
|
4732
4788
|
};
|