@designcombo/video 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SharedSystems-C-xrqDs6.js → SharedSystems-c89R2YB4.js} +1 -1
- package/dist/{WebGLRenderer-DA5apB9s.js → WebGLRenderer-yczU8Q7o.js} +2 -2
- package/dist/{WebGPURenderer-uG2zGI9E.js → WebGPURenderer-Dm2y598C.js} +2 -2
- package/dist/{browserAll-DBeYf_Ix.js → browserAll-hKruQd3x.js} +2 -2
- package/dist/{index-BsY0yXsw.js → index-CmsRjoEr.js} +231 -200
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +46 -46
- package/dist/studio.d.ts +1 -0
- package/dist/{webworkerAll-BNQ2PT3I.js → webworkerAll-BQqf01s5.js} +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ var of = (i) => {
|
|
|
11
11
|
const s = new hf(t.byteLength);
|
|
12
12
|
return new Uint8Array(s).set(new Uint8Array(t)), s.fileStart = e, s;
|
|
13
13
|
}
|
|
14
|
-
}, uf = /* @__PURE__ */ ((i) => (i[i.BIG_ENDIAN = 1] = "BIG_ENDIAN", i[i.LITTLE_ENDIAN = 2] = "LITTLE_ENDIAN", i))(uf || {}), cs, wr,
|
|
14
|
+
}, uf = /* @__PURE__ */ ((i) => (i[i.BIG_ENDIAN = 1] = "BIG_ENDIAN", i[i.LITTLE_ENDIAN = 2] = "LITTLE_ENDIAN", i))(uf || {}), cs, wr, Y, bt = (Y = class {
|
|
15
15
|
/**
|
|
16
16
|
* DataStream reads scalars, arrays and structs of data from an ArrayBuffer.
|
|
17
17
|
* It's like a file-like DataView on steroids.
|
|
@@ -140,13 +140,13 @@ var of = (i) => {
|
|
|
140
140
|
readInt32Array(i, t) {
|
|
141
141
|
i = i === void 0 ? this.byteLength - this.position / 4 : i;
|
|
142
142
|
const e = new Int32Array(i);
|
|
143
|
-
return
|
|
143
|
+
return Y.memcpy(
|
|
144
144
|
e.buffer,
|
|
145
145
|
0,
|
|
146
146
|
this.buffer,
|
|
147
147
|
this.byteOffset + this.position,
|
|
148
148
|
i * e.BYTES_PER_ELEMENT
|
|
149
|
-
),
|
|
149
|
+
), Y.arrayToNative(e, t ?? this.endianness), this.position += e.byteLength, e;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* Reads an Int16Array of desired length and endianness from the DataStream.
|
|
@@ -158,13 +158,13 @@ var of = (i) => {
|
|
|
158
158
|
readInt16Array(i, t) {
|
|
159
159
|
i = i === void 0 ? this.byteLength - this.position / 2 : i;
|
|
160
160
|
const e = new Int16Array(i);
|
|
161
|
-
return
|
|
161
|
+
return Y.memcpy(
|
|
162
162
|
e.buffer,
|
|
163
163
|
0,
|
|
164
164
|
this.buffer,
|
|
165
165
|
this.byteOffset + this.position,
|
|
166
166
|
i * e.BYTES_PER_ELEMENT
|
|
167
|
-
),
|
|
167
|
+
), Y.arrayToNative(e, t ?? this.endianness), this.position += e.byteLength, e;
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* Reads an Int8Array of desired length from the DataStream.
|
|
@@ -176,7 +176,7 @@ var of = (i) => {
|
|
|
176
176
|
readInt8Array(i) {
|
|
177
177
|
i = i === void 0 ? this.byteLength - this.position : i;
|
|
178
178
|
const t = new Int8Array(i);
|
|
179
|
-
return
|
|
179
|
+
return Y.memcpy(
|
|
180
180
|
t.buffer,
|
|
181
181
|
0,
|
|
182
182
|
this.buffer,
|
|
@@ -194,13 +194,13 @@ var of = (i) => {
|
|
|
194
194
|
readUint32Array(i, t) {
|
|
195
195
|
i = i === void 0 ? this.byteLength - this.position / 4 : i;
|
|
196
196
|
const e = new Uint32Array(i);
|
|
197
|
-
return
|
|
197
|
+
return Y.memcpy(
|
|
198
198
|
e.buffer,
|
|
199
199
|
0,
|
|
200
200
|
this.buffer,
|
|
201
201
|
this.byteOffset + this.position,
|
|
202
202
|
i * e.BYTES_PER_ELEMENT
|
|
203
|
-
),
|
|
203
|
+
), Y.arrayToNative(e, t ?? this.endianness), this.position += e.byteLength, e;
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* Reads a Uint16Array of desired length and endianness from the DataStream.
|
|
@@ -212,13 +212,13 @@ var of = (i) => {
|
|
|
212
212
|
readUint16Array(i, t) {
|
|
213
213
|
i = i === void 0 ? this.byteLength - this.position / 2 : i;
|
|
214
214
|
const e = new Uint16Array(i);
|
|
215
|
-
return
|
|
215
|
+
return Y.memcpy(
|
|
216
216
|
e.buffer,
|
|
217
217
|
0,
|
|
218
218
|
this.buffer,
|
|
219
219
|
this.byteOffset + this.position,
|
|
220
220
|
i * e.BYTES_PER_ELEMENT
|
|
221
|
-
),
|
|
221
|
+
), Y.arrayToNative(e, t ?? this.endianness), this.position += e.byteLength, e;
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* Reads a Uint8Array of desired length from the DataStream.
|
|
@@ -230,7 +230,7 @@ var of = (i) => {
|
|
|
230
230
|
readUint8Array(i) {
|
|
231
231
|
i = i === void 0 ? this.byteLength - this.position : i;
|
|
232
232
|
const t = new Uint8Array(i);
|
|
233
|
-
return
|
|
233
|
+
return Y.memcpy(
|
|
234
234
|
t.buffer,
|
|
235
235
|
0,
|
|
236
236
|
this.buffer,
|
|
@@ -248,13 +248,13 @@ var of = (i) => {
|
|
|
248
248
|
readFloat64Array(i, t) {
|
|
249
249
|
i = i === void 0 ? this.byteLength - this.position / 8 : i;
|
|
250
250
|
const e = new Float64Array(i);
|
|
251
|
-
return
|
|
251
|
+
return Y.memcpy(
|
|
252
252
|
e.buffer,
|
|
253
253
|
0,
|
|
254
254
|
this.buffer,
|
|
255
255
|
this.byteOffset + this.position,
|
|
256
256
|
i * e.BYTES_PER_ELEMENT
|
|
257
|
-
),
|
|
257
|
+
), Y.arrayToNative(e, t ?? this.endianness), this.position += e.byteLength, e;
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* Reads a Float32Array of desired length and endianness from the DataStream.
|
|
@@ -266,13 +266,13 @@ var of = (i) => {
|
|
|
266
266
|
readFloat32Array(i, t) {
|
|
267
267
|
i = i === void 0 ? this.byteLength - this.position / 4 : i;
|
|
268
268
|
const e = new Float32Array(i);
|
|
269
|
-
return
|
|
269
|
+
return Y.memcpy(
|
|
270
270
|
e.buffer,
|
|
271
271
|
0,
|
|
272
272
|
this.buffer,
|
|
273
273
|
this.byteOffset + this.position,
|
|
274
274
|
i * e.BYTES_PER_ELEMENT
|
|
275
|
-
),
|
|
275
|
+
), Y.arrayToNative(e, t ?? this.endianness), this.position += e.byteLength, e;
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
278
|
* Reads a 32-bit int from the DataStream with the desired endianness.
|
|
@@ -399,7 +399,7 @@ var of = (i) => {
|
|
|
399
399
|
* @return The converted typed array.
|
|
400
400
|
*/
|
|
401
401
|
static arrayToNative(i, t) {
|
|
402
|
-
return t ===
|
|
402
|
+
return t === Y.ENDIANNESS ? i : this.flipArrayEndianness(i);
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* Converts native endianness array to desired endianness in-place.
|
|
@@ -410,7 +410,7 @@ var of = (i) => {
|
|
|
410
410
|
* @return The converted typed array.
|
|
411
411
|
*/
|
|
412
412
|
static nativeToEndian(i, t) {
|
|
413
|
-
return t &&
|
|
413
|
+
return t && Y.ENDIANNESS === 2 ? i : this.flipArrayEndianness(i);
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* Flips typed array endianness in-place.
|
|
@@ -509,7 +509,7 @@ var of = (i) => {
|
|
|
509
509
|
*/
|
|
510
510
|
writeInt32Array(i, t) {
|
|
511
511
|
if (this._realloc(i.length * 4), i instanceof Int32Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
512
|
-
|
|
512
|
+
Y.memcpy(
|
|
513
513
|
this._buffer,
|
|
514
514
|
this.byteOffset + this.position,
|
|
515
515
|
i.buffer,
|
|
@@ -529,7 +529,7 @@ var of = (i) => {
|
|
|
529
529
|
*/
|
|
530
530
|
writeInt16Array(i, t) {
|
|
531
531
|
if (this._realloc(i.length * 2), i instanceof Int16Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
532
|
-
|
|
532
|
+
Y.memcpy(
|
|
533
533
|
this._buffer,
|
|
534
534
|
this.byteOffset + this.position,
|
|
535
535
|
i.buffer,
|
|
@@ -548,7 +548,7 @@ var of = (i) => {
|
|
|
548
548
|
*/
|
|
549
549
|
writeInt8Array(i) {
|
|
550
550
|
if (this._realloc(i.length * 1), i instanceof Int8Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
551
|
-
|
|
551
|
+
Y.memcpy(
|
|
552
552
|
this._buffer,
|
|
553
553
|
this.byteOffset + this.position,
|
|
554
554
|
i.buffer,
|
|
@@ -568,7 +568,7 @@ var of = (i) => {
|
|
|
568
568
|
*/
|
|
569
569
|
writeUint32Array(i, t) {
|
|
570
570
|
if (this._realloc(i.length * 4), i instanceof Uint32Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
571
|
-
|
|
571
|
+
Y.memcpy(
|
|
572
572
|
this._buffer,
|
|
573
573
|
this.byteOffset + this.position,
|
|
574
574
|
i.buffer,
|
|
@@ -588,7 +588,7 @@ var of = (i) => {
|
|
|
588
588
|
*/
|
|
589
589
|
writeUint16Array(i, t) {
|
|
590
590
|
if (this._realloc(i.length * 2), i instanceof Uint16Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
591
|
-
|
|
591
|
+
Y.memcpy(
|
|
592
592
|
this._buffer,
|
|
593
593
|
this.byteOffset + this.position,
|
|
594
594
|
i.buffer,
|
|
@@ -607,7 +607,7 @@ var of = (i) => {
|
|
|
607
607
|
*/
|
|
608
608
|
writeUint8Array(i) {
|
|
609
609
|
if (this._realloc(i.length * 1), i instanceof Uint8Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
610
|
-
|
|
610
|
+
Y.memcpy(
|
|
611
611
|
this._buffer,
|
|
612
612
|
this.byteOffset + this.position,
|
|
613
613
|
i.buffer,
|
|
@@ -627,7 +627,7 @@ var of = (i) => {
|
|
|
627
627
|
*/
|
|
628
628
|
writeFloat64Array(i, t) {
|
|
629
629
|
if (this._realloc(i.length * 8), i instanceof Float64Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
630
|
-
|
|
630
|
+
Y.memcpy(
|
|
631
631
|
this._buffer,
|
|
632
632
|
this.byteOffset + this.position,
|
|
633
633
|
i.buffer,
|
|
@@ -647,7 +647,7 @@ var of = (i) => {
|
|
|
647
647
|
*/
|
|
648
648
|
writeFloat32Array(i, t) {
|
|
649
649
|
if (this._realloc(i.length * 4), i instanceof Float32Array && this.byteOffset + this.position % i.BYTES_PER_ELEMENT === 0)
|
|
650
|
-
|
|
650
|
+
Y.memcpy(
|
|
651
651
|
this._buffer,
|
|
652
652
|
this.byteOffset + this.position,
|
|
653
653
|
i.buffer,
|
|
@@ -1381,7 +1381,7 @@ var of = (i) => {
|
|
|
1381
1381
|
mapInt32Array(i, t) {
|
|
1382
1382
|
this._realloc(i * 4);
|
|
1383
1383
|
const e = new Int32Array(this._buffer, this.byteOffset + this.position, i);
|
|
1384
|
-
return
|
|
1384
|
+
return Y.arrayToNative(e, t ?? this.endianness), this.position += i * 4, e;
|
|
1385
1385
|
}
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Maps an Int16Array into the DataStream buffer, swizzling it to native
|
|
@@ -1399,7 +1399,7 @@ var of = (i) => {
|
|
|
1399
1399
|
mapInt16Array(i, t) {
|
|
1400
1400
|
this._realloc(i * 2);
|
|
1401
1401
|
const e = new Int16Array(this._buffer, this.byteOffset + this.position, i);
|
|
1402
|
-
return
|
|
1402
|
+
return Y.arrayToNative(e, t ?? this.endianness), this.position += i * 2, e;
|
|
1403
1403
|
}
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Maps an Int8Array into the DataStream buffer.
|
|
@@ -1432,7 +1432,7 @@ var of = (i) => {
|
|
|
1432
1432
|
mapUint32Array(i, t) {
|
|
1433
1433
|
this._realloc(i * 4);
|
|
1434
1434
|
const e = new Uint32Array(this._buffer, this.byteOffset + this.position, i);
|
|
1435
|
-
return
|
|
1435
|
+
return Y.arrayToNative(e, t ?? this.endianness), this.position += i * 4, e;
|
|
1436
1436
|
}
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Maps a Uint16Array into the DataStream buffer, swizzling it to native
|
|
@@ -1450,7 +1450,7 @@ var of = (i) => {
|
|
|
1450
1450
|
mapUint16Array(i, t) {
|
|
1451
1451
|
this._realloc(i * 2);
|
|
1452
1452
|
const e = new Uint16Array(this._buffer, this.byteOffset + this.position, i);
|
|
1453
|
-
return
|
|
1453
|
+
return Y.arrayToNative(e, t ?? this.endianness), this.position += i * 2, e;
|
|
1454
1454
|
}
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Maps a Float64Array into the DataStream buffer, swizzling it to native
|
|
@@ -1468,7 +1468,7 @@ var of = (i) => {
|
|
|
1468
1468
|
mapFloat64Array(i, t) {
|
|
1469
1469
|
this._realloc(i * 8);
|
|
1470
1470
|
const e = new Float64Array(this._buffer, this.byteOffset + this.position, i);
|
|
1471
|
-
return
|
|
1471
|
+
return Y.arrayToNative(e, t ?? this.endianness), this.position += i * 8, e;
|
|
1472
1472
|
}
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Maps a Float32Array into the DataStream buffer, swizzling it to native
|
|
@@ -1486,11 +1486,11 @@ var of = (i) => {
|
|
|
1486
1486
|
mapFloat32Array(i, t) {
|
|
1487
1487
|
this._realloc(i * 4);
|
|
1488
1488
|
const e = new Float32Array(this._buffer, this.byteOffset + this.position, i);
|
|
1489
|
-
return
|
|
1489
|
+
return Y.arrayToNative(e, t ?? this.endianness), this.position += i * 4, e;
|
|
1490
1490
|
}
|
|
1491
1491
|
}, cs = /* @__PURE__ */ new WeakSet(), wr = function(i) {
|
|
1492
1492
|
return Array.isArray(i) && i.length === 3 && i[0] === "[]";
|
|
1493
|
-
},
|
|
1493
|
+
}, Y.ENDIANNESS = new Int8Array(new Int16Array([1]).buffer)[0] > 0 ? 2 : 1, Y);
|
|
1494
1494
|
function Au(i) {
|
|
1495
1495
|
const t = [];
|
|
1496
1496
|
for (let e = 0; e < i.length; e++)
|
|
@@ -7269,7 +7269,7 @@ function I_(i) {
|
|
|
7269
7269
|
}
|
|
7270
7270
|
var cp = (i) => {
|
|
7271
7271
|
throw TypeError(i);
|
|
7272
|
-
}, hp = (i, t, e) => t.has(i) || cp("Cannot " + e),
|
|
7272
|
+
}, hp = (i, t, e) => t.has(i) || cp("Cannot " + e), X = (i, t, e) => (hp(i, t, "read from private field"), e ? e.call(i) : t.get(i)), Ht = (i, t, e) => t.has(i) ? cp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Mt = (i, t, e, s) => (hp(i, t, "write to private field"), t.set(i, e), e);
|
|
7273
7273
|
const up = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHUobil7aWYobj09PSIvIilyZXR1cm57cGFyZW50Om51bGwsbmFtZToiIn07Y29uc3QgZT1uLnNwbGl0KCIvIikuZmlsdGVyKGk9PmkubGVuZ3RoPjApO2lmKGUubGVuZ3RoPT09MCl0aHJvdyBFcnJvcigiSW52YWxpZCBwYXRoIik7Y29uc3QgYT1lW2UubGVuZ3RoLTFdLHI9Ii8iK2Uuc2xpY2UoMCwtMSkuam9pbigiLyIpO3JldHVybntuYW1lOmEscGFyZW50OnJ9fWFzeW5jIGZ1bmN0aW9uIHcobixlKXtjb25zdHtwYXJlbnQ6YSxuYW1lOnJ9PXUobik7aWYoYT09bnVsbClyZXR1cm4gYXdhaXQgbmF2aWdhdG9yLnN0b3JhZ2UuZ2V0RGlyZWN0b3J5KCk7Y29uc3QgaT1hLnNwbGl0KCIvIikuZmlsdGVyKHQ9PnQubGVuZ3RoPjApO3RyeXtsZXQgdD1hd2FpdCBuYXZpZ2F0b3Iuc3RvcmFnZS5nZXREaXJlY3RvcnkoKTtmb3IoY29uc3QgcyBvZiBpKXQ9YXdhaXQgdC5nZXREaXJlY3RvcnlIYW5kbGUocyx7Y3JlYXRlOmUuY3JlYXRlfSk7aWYoZS5pc0ZpbGUpcmV0dXJuIGF3YWl0IHQuZ2V0RmlsZUhhbmRsZShyLHtjcmVhdGU6ZS5jcmVhdGV9KX1jYXRjaCh0KXtpZih0Lm5hbWU9PT0iTm90Rm91bmRFcnJvciIpcmV0dXJuIG51bGw7dGhyb3cgdH19Y29uc3QgZj17fTtzZWxmLm9ubWVzc2FnZT1hc3luYyBuPT57dmFyIGk7Y29uc3R7ZXZ0VHlwZTplLGFyZ3M6YX09bi5kYXRhO2xldCByPWZbYS5maWxlSWRdO3RyeXtsZXQgdDtjb25zdCBzPVtdO2lmKGU9PT0icmVnaXN0ZXIiKXtjb25zdCBsPWF3YWl0IHcoYS5maWxlUGF0aCx7Y3JlYXRlOiEwLGlzRmlsZTohMH0pO2lmKGw9PW51bGwpdGhyb3cgRXJyb3IoYG5vdCBmb3VuZCBmaWxlOiAke2EuZmlsZUlkfWApO3I9YXdhaXQgbC5jcmVhdGVTeW5jQWNjZXNzSGFuZGxlKHttb2RlOmEubW9kZX0pLGZbYS5maWxlSWRdPXJ9ZWxzZSBpZihlPT09ImNsb3NlIilhd2FpdCByLmNsb3NlKCksZGVsZXRlIGZbYS5maWxlSWRdO2Vsc2UgaWYoZT09PSJ0cnVuY2F0ZSIpYXdhaXQgci50cnVuY2F0ZShhLm5ld1NpemUpO2Vsc2UgaWYoZT09PSJ3cml0ZSIpe2NvbnN0e2RhdGE6bCxvcHRzOm99PW4uZGF0YS5hcmdzO3Q9YXdhaXQgci53cml0ZShsLG8pfWVsc2UgaWYoZT09PSJyZWFkIil7Y29uc3R7b2Zmc2V0Omwsc2l6ZTpvfT1uLmRhdGEuYXJncyxnPW5ldyBVaW50OEFycmF5KG8pLGQ9YXdhaXQgci5yZWFkKGcse2F0Omx9KSxjPWcuYnVmZmVyO3Q9ZD09PW8/YzooKGk9Yy50cmFuc2Zlcik9PW51bGw/dm9pZCAwOmkuY2FsbChjLGQpKT8/Yy5zbGljZSgwLGQpLHMucHVzaCh0KX1lbHNlIGU9PT0iZ2V0U2l6ZSI/dD1hd2FpdCByLmdldFNpemUoKTplPT09ImZsdXNoIiYmYXdhaXQgci5mbHVzaCgpO3NlbGYucG9zdE1lc3NhZ2Uoe2V2dFR5cGU6ImNhbGxiYWNrIixjYklkOm4uZGF0YS5jYklkLHJldHVyblZhbDp0fSxzKX1jYXRjaCh0KXtjb25zdCBzPXQ7c2VsZi5wb3N0TWVzc2FnZSh7ZXZ0VHlwZToidGhyb3dFcnJvciIsY2JJZDpuLmRhdGEuY2JJZCxlcnJNc2c6cy5uYW1lKyI6ICIrcy5tZXNzYWdlK2AKYCtKU09OLnN0cmluZ2lmeShuLmRhdGEpfSl9fX0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPW9wZnMtd29ya2VyLUY0UldscWNfLmpzLm1hcAo=", k_ = (i) => Uint8Array.from(atob(i), (t) => t.charCodeAt(0)), Pu = typeof self < "u" && self.Blob && new Blob([k_(up)], { type: "text/javascript;charset=utf-8" });
|
|
7274
7274
|
function F_(i) {
|
|
7275
7275
|
let t;
|
|
@@ -7423,30 +7423,30 @@ const E_ = class dp {
|
|
|
7423
7423
|
return "dir";
|
|
7424
7424
|
}
|
|
7425
7425
|
get name() {
|
|
7426
|
-
return
|
|
7426
|
+
return X(this, Gs);
|
|
7427
7427
|
}
|
|
7428
7428
|
get path() {
|
|
7429
|
-
return
|
|
7429
|
+
return X(this, ae);
|
|
7430
7430
|
}
|
|
7431
7431
|
get parent() {
|
|
7432
|
-
return
|
|
7432
|
+
return X(this, Bi) == null ? null : ri(X(this, Bi));
|
|
7433
7433
|
}
|
|
7434
7434
|
/**
|
|
7435
7435
|
* Creates the directory.
|
|
7436
7436
|
* return A promise that resolves when the directory is created.
|
|
7437
7437
|
*/
|
|
7438
7438
|
async create() {
|
|
7439
|
-
return await Ae(
|
|
7439
|
+
return await Ae(X(this, ae), {
|
|
7440
7440
|
create: !0,
|
|
7441
7441
|
isFile: !1
|
|
7442
|
-
}), ri(
|
|
7442
|
+
}), ri(X(this, ae));
|
|
7443
7443
|
}
|
|
7444
7444
|
/**
|
|
7445
7445
|
* Checks if the directory exists.
|
|
7446
7446
|
* return A promise that resolves to true if the directory exists, otherwise false.
|
|
7447
7447
|
*/
|
|
7448
7448
|
async exists() {
|
|
7449
|
-
return await Ae(
|
|
7449
|
+
return await Ae(X(this, ae), {
|
|
7450
7450
|
create: !1,
|
|
7451
7451
|
isFile: !1
|
|
7452
7452
|
}) instanceof FileSystemDirectoryHandle;
|
|
@@ -7463,7 +7463,7 @@ const E_ = class dp {
|
|
|
7463
7463
|
console.warn(s);
|
|
7464
7464
|
}
|
|
7465
7465
|
try {
|
|
7466
|
-
await bh(
|
|
7466
|
+
await bh(X(this, ae));
|
|
7467
7467
|
} catch (e) {
|
|
7468
7468
|
console.warn(e);
|
|
7469
7469
|
}
|
|
@@ -7473,14 +7473,14 @@ const E_ = class dp {
|
|
|
7473
7473
|
* return A promise that resolves to an array of objects representing the children.
|
|
7474
7474
|
*/
|
|
7475
7475
|
async children() {
|
|
7476
|
-
const t = await Ae(
|
|
7476
|
+
const t = await Ae(X(this, ae), {
|
|
7477
7477
|
create: !1,
|
|
7478
7478
|
isFile: !1
|
|
7479
7479
|
});
|
|
7480
7480
|
if (t == null) return [];
|
|
7481
7481
|
const e = [];
|
|
7482
7482
|
for await (const s of t.values())
|
|
7483
|
-
e.push((s.kind === "file" ? $e : ri)(wh(
|
|
7483
|
+
e.push((s.kind === "file" ? $e : ri)(wh(X(this, ae), s.name)));
|
|
7484
7484
|
return e;
|
|
7485
7485
|
}
|
|
7486
7486
|
async copyTo(t) {
|
|
@@ -7549,19 +7549,19 @@ const B_ = class pp {
|
|
|
7549
7549
|
Ht(this, Gt), Ht(this, zi), Ht(this, Hs), Ht(this, Oi), Ht(this, Ws), Ht(this, ge, 0), Ht(this, Vs, async () => {
|
|
7550
7550
|
}), Ht(this, $s, /* @__PURE__ */ (() => {
|
|
7551
7551
|
let n = null;
|
|
7552
|
-
return () => (Mt(this, ge,
|
|
7552
|
+
return () => (Mt(this, ge, X(this, ge) + 1), n != null || (n = new Promise(async (o, a) => {
|
|
7553
7553
|
try {
|
|
7554
7554
|
const l = await M_(
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7555
|
+
X(this, Ws),
|
|
7556
|
+
X(this, Gt),
|
|
7557
|
+
X(this, Oi)
|
|
7558
7558
|
);
|
|
7559
7559
|
Mt(this, Vs, async () => {
|
|
7560
7560
|
n != null && (n = null, Mt(this, ge, 0), await l.close().catch(console.error));
|
|
7561
7561
|
}), o([
|
|
7562
7562
|
l,
|
|
7563
7563
|
async () => {
|
|
7564
|
-
Mt(this, ge,
|
|
7564
|
+
Mt(this, ge, X(this, ge) - 1), !(X(this, ge) > 0) && (n = null, await l.close());
|
|
7565
7565
|
}
|
|
7566
7566
|
]);
|
|
7567
7567
|
} catch (l) {
|
|
@@ -7581,23 +7581,23 @@ const B_ = class pp {
|
|
|
7581
7581
|
return "file";
|
|
7582
7582
|
}
|
|
7583
7583
|
get path() {
|
|
7584
|
-
return
|
|
7584
|
+
return X(this, Gt);
|
|
7585
7585
|
}
|
|
7586
7586
|
get name() {
|
|
7587
|
-
return
|
|
7587
|
+
return X(this, Hs);
|
|
7588
7588
|
}
|
|
7589
7589
|
get parent() {
|
|
7590
|
-
return
|
|
7590
|
+
return X(this, zi) == null ? null : ri(X(this, zi));
|
|
7591
7591
|
}
|
|
7592
7592
|
/**
|
|
7593
7593
|
* Random write to file
|
|
7594
7594
|
*/
|
|
7595
7595
|
async createWriter() {
|
|
7596
|
-
if (
|
|
7597
|
-
if (
|
|
7596
|
+
if (X(this, Oi) === "read-only") throw Error("file is read-only");
|
|
7597
|
+
if (X(this, je)) throw Error("Other writer have not been closed");
|
|
7598
7598
|
Mt(this, je, !0);
|
|
7599
7599
|
try {
|
|
7600
|
-
const t = new TextEncoder(), [e, s] = await
|
|
7600
|
+
const t = new TextEncoder(), [e, s] = await X(this, $s).call(this);
|
|
7601
7601
|
let r = await e.getSize(), n = !1;
|
|
7602
7602
|
return {
|
|
7603
7603
|
write: async (o, a = {}) => {
|
|
@@ -7626,7 +7626,7 @@ const B_ = class pp {
|
|
|
7626
7626
|
* Random access to file
|
|
7627
7627
|
*/
|
|
7628
7628
|
async createReader() {
|
|
7629
|
-
const [t, e] = await
|
|
7629
|
+
const [t, e] = await X(this, $s).call(this);
|
|
7630
7630
|
let s = !1, r = 0;
|
|
7631
7631
|
return {
|
|
7632
7632
|
read: async (n, o = {}) => {
|
|
@@ -7647,7 +7647,7 @@ const B_ = class pp {
|
|
|
7647
7647
|
return new TextDecoder().decode(await this.arrayBuffer());
|
|
7648
7648
|
}
|
|
7649
7649
|
async arrayBuffer() {
|
|
7650
|
-
const t = await Ae(
|
|
7650
|
+
const t = await Ae(X(this, Gt), { create: !1, isFile: !0 });
|
|
7651
7651
|
return t == null ? new ArrayBuffer(0) : (await t.getFile()).arrayBuffer();
|
|
7652
7652
|
}
|
|
7653
7653
|
async stream() {
|
|
@@ -7660,25 +7660,25 @@ const B_ = class pp {
|
|
|
7660
7660
|
}
|
|
7661
7661
|
async getOriginFile() {
|
|
7662
7662
|
var t;
|
|
7663
|
-
return (t = await Ae(
|
|
7663
|
+
return (t = await Ae(X(this, Gt), { create: !1, isFile: !0 })) == null ? void 0 : t.getFile();
|
|
7664
7664
|
}
|
|
7665
7665
|
async getSize() {
|
|
7666
|
-
const t = await Ae(
|
|
7666
|
+
const t = await Ae(X(this, Gt), { create: !1, isFile: !0 });
|
|
7667
7667
|
return t == null ? 0 : (await t.getFile()).size;
|
|
7668
7668
|
}
|
|
7669
7669
|
async exists() {
|
|
7670
|
-
return await Ae(
|
|
7670
|
+
return await Ae(X(this, Gt), {
|
|
7671
7671
|
create: !1,
|
|
7672
7672
|
isFile: !0
|
|
7673
7673
|
}) instanceof FileSystemFileHandle;
|
|
7674
7674
|
}
|
|
7675
7675
|
async remove(t = {}) {
|
|
7676
7676
|
if (t.force === !0) {
|
|
7677
|
-
await
|
|
7677
|
+
await X(this, Vs).call(this), await bh(X(this, Gt)), Th.delete(X(this, Gt));
|
|
7678
7678
|
return;
|
|
7679
7679
|
}
|
|
7680
|
-
if (
|
|
7681
|
-
await bh(
|
|
7680
|
+
if (X(this, ge) > 0) throw Error("exists unclosed reader/writer");
|
|
7681
|
+
await bh(X(this, Gt));
|
|
7682
7682
|
}
|
|
7683
7683
|
async copyTo(t) {
|
|
7684
7684
|
if (t instanceof pp)
|
|
@@ -7805,7 +7805,7 @@ class G_ {
|
|
|
7805
7805
|
`);
|
|
7806
7806
|
}
|
|
7807
7807
|
}
|
|
7808
|
-
const oe = new G_(),
|
|
7808
|
+
const oe = new G_(), W = {
|
|
7809
7809
|
debug: oe.debug,
|
|
7810
7810
|
info: oe.info,
|
|
7811
7811
|
warn: oe.warn,
|
|
@@ -7816,16 +7816,16 @@ const oe = new G_(), X = {
|
|
|
7816
7816
|
*/
|
|
7817
7817
|
setLogLevel: (i) => {
|
|
7818
7818
|
const t = i;
|
|
7819
|
-
t ===
|
|
7819
|
+
t === W.debug ? oe.setThreshold(
|
|
7820
7820
|
0
|
|
7821
7821
|
/* DEBUG */
|
|
7822
|
-
) : t ===
|
|
7822
|
+
) : t === W.info ? oe.setThreshold(
|
|
7823
7823
|
1
|
|
7824
7824
|
/* INFO */
|
|
7825
|
-
) : t ===
|
|
7825
|
+
) : t === W.warn ? oe.setThreshold(
|
|
7826
7826
|
2
|
|
7827
7827
|
/* WARN */
|
|
7828
|
-
) : t ===
|
|
7828
|
+
) : t === W.error && oe.setThreshold(
|
|
7829
7829
|
3
|
|
7830
7830
|
/* ERROR */
|
|
7831
7831
|
);
|
|
@@ -8998,7 +8998,7 @@ class Pe extends Sb {
|
|
|
8998
8998
|
this.left = (t - this.width) / 2, this.top = (e - this.height) / 2;
|
|
8999
8999
|
}
|
|
9000
9000
|
destroy() {
|
|
9001
|
-
this.destroyed || (this.destroyed = !0,
|
|
9001
|
+
this.destroyed || (this.destroyed = !0, W.info("BaseClip destroy"), super.destroy(), this.lastVf?.close(), this.lastVf = null);
|
|
9002
9002
|
}
|
|
9003
9003
|
}
|
|
9004
9004
|
let Uc = null;
|
|
@@ -9115,7 +9115,7 @@ class Wt extends Pe {
|
|
|
9115
9115
|
sampleRate: it.sampleRate
|
|
9116
9116
|
}));
|
|
9117
9117
|
const e = performance.now(), s = t instanceof ReadableStream ? await Ib(t, Wt.ctx) : t;
|
|
9118
|
-
|
|
9118
|
+
W.info("Audio clip decoded complete:", performance.now() - e), this._meta.duration = s[0].length / it.sampleRate * 1e6, this.chan0Buf = s[0], this.chan1Buf = s[1] ?? this.chan0Buf, W.info(
|
|
9119
9119
|
"Audio clip convert to AudioData, time:",
|
|
9120
9120
|
performance.now() - e
|
|
9121
9121
|
);
|
|
@@ -9192,7 +9192,7 @@ class Wt extends Pe {
|
|
|
9192
9192
|
* Destroy instance and release resources
|
|
9193
9193
|
*/
|
|
9194
9194
|
destroy() {
|
|
9195
|
-
this.chan0Buf = new Float32Array(0), this.chan1Buf = new Float32Array(0),
|
|
9195
|
+
this.chan0Buf = new Float32Array(0), this.chan1Buf = new Float32Array(0), W.info("---- audioclip destroy ----"), super.destroy();
|
|
9196
9196
|
}
|
|
9197
9197
|
toJSON(t = !1) {
|
|
9198
9198
|
return {
|
|
@@ -9475,7 +9475,7 @@ const kh = (i) => {
|
|
|
9475
9475
|
},
|
|
9476
9476
|
test: () => !0,
|
|
9477
9477
|
load: async () => {
|
|
9478
|
-
await import("./browserAll-
|
|
9478
|
+
await import("./browserAll-hKruQd3x.js");
|
|
9479
9479
|
}
|
|
9480
9480
|
}, Fb = {
|
|
9481
9481
|
extension: {
|
|
@@ -9485,7 +9485,7 @@ const kh = (i) => {
|
|
|
9485
9485
|
},
|
|
9486
9486
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
9487
9487
|
load: async () => {
|
|
9488
|
-
await import("./webworkerAll-
|
|
9488
|
+
await import("./webworkerAll-BQqf01s5.js");
|
|
9489
9489
|
}
|
|
9490
9490
|
};
|
|
9491
9491
|
class St {
|
|
@@ -9934,7 +9934,7 @@ class K {
|
|
|
9934
9934
|
}
|
|
9935
9935
|
}
|
|
9936
9936
|
const Bc = new K();
|
|
9937
|
-
class
|
|
9937
|
+
class V {
|
|
9938
9938
|
/**
|
|
9939
9939
|
* @param a - x scale
|
|
9940
9940
|
* @param b - y skew
|
|
@@ -10433,7 +10433,7 @@ class W {
|
|
|
10433
10433
|
* @returns A copy of this matrix. Good for chaining method calls.
|
|
10434
10434
|
*/
|
|
10435
10435
|
clone() {
|
|
10436
|
-
const t = new
|
|
10436
|
+
const t = new V();
|
|
10437
10437
|
return t.a = this.a, t.b = this.b, t.c = this.c, t.d = this.d, t.tx = this.tx, t.ty = this.ty, t;
|
|
10438
10438
|
}
|
|
10439
10439
|
/**
|
|
@@ -10565,7 +10565,7 @@ class W {
|
|
|
10565
10565
|
return Bb.identity();
|
|
10566
10566
|
}
|
|
10567
10567
|
}
|
|
10568
|
-
const Bb = new
|
|
10568
|
+
const Bb = new V(), zb = new V(), Oe = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], De = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], Le = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Ne = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], Fh = [], vp = [], ys = Math.sign;
|
|
10569
10569
|
function Ob() {
|
|
10570
10570
|
for (let i = 0; i < 16; i++) {
|
|
10571
10571
|
const t = [];
|
|
@@ -10580,7 +10580,7 @@ function Ob() {
|
|
|
10580
10580
|
}
|
|
10581
10581
|
}
|
|
10582
10582
|
for (let i = 0; i < 16; i++) {
|
|
10583
|
-
const t = new
|
|
10583
|
+
const t = new V();
|
|
10584
10584
|
t.set(Oe[i], De[i], Le[i], Ne[i], 0, 0), vp.push(t);
|
|
10585
10585
|
}
|
|
10586
10586
|
}
|
|
@@ -11655,14 +11655,14 @@ class au extends Kt {
|
|
|
11655
11655
|
}
|
|
11656
11656
|
}
|
|
11657
11657
|
au.extension = O.TextureSource;
|
|
11658
|
-
const Hu = new
|
|
11658
|
+
const Hu = new V();
|
|
11659
11659
|
class Nb {
|
|
11660
11660
|
/**
|
|
11661
11661
|
* @param texture - observed texture
|
|
11662
11662
|
* @param clampMargin - Changes frame clamping, 0.5 by default. Use -0.5 for extra border.
|
|
11663
11663
|
*/
|
|
11664
11664
|
constructor(t, e) {
|
|
11665
|
-
this.mapCoord = new
|
|
11665
|
+
this.mapCoord = new V(), this.uClampFrame = new Float32Array(4), this.uClampOffset = new Float32Array(2), this._textureID = -1, this._updateID = 0, this.clampOffset = 0, typeof e > "u" ? this.clampMargin = t.width < 10 ? 0 : 0.5 : this.clampMargin = e, this.isSimple = !1, this.texture = t;
|
|
11666
11666
|
}
|
|
11667
11667
|
/** Texture property. */
|
|
11668
11668
|
get texture() {
|
|
@@ -11806,7 +11806,7 @@ function Gb(i, t, e) {
|
|
|
11806
11806
|
} else
|
|
11807
11807
|
i.minX = -t._x * s, i.maxX = i.minX + s, i.minY = -t._y * r, i.maxY = i.minY + r;
|
|
11808
11808
|
}
|
|
11809
|
-
const Wu = new
|
|
11809
|
+
const Wu = new V();
|
|
11810
11810
|
class te {
|
|
11811
11811
|
/**
|
|
11812
11812
|
* Creates a new Bounds object.
|
|
@@ -13685,7 +13685,7 @@ const n2 = {
|
|
|
13685
13685
|
s[r].getChildrenByLabel(i, !0, e);
|
|
13686
13686
|
return e;
|
|
13687
13687
|
}
|
|
13688
|
-
}, Et = Yt.getPool(
|
|
13688
|
+
}, Et = Yt.getPool(V), xe = Yt.getPool(te), a2 = new V(), l2 = {
|
|
13689
13689
|
getFastGlobalBounds(i, t) {
|
|
13690
13690
|
t || (t = new te()), t.clear(), this._getGlobalBoundsRecursive(!!i, t, this.parentRenderLayer), t.isValid || t.set(0, 0, 0, 0);
|
|
13691
13691
|
const e = this.renderGroup || this.parentRenderGroup;
|
|
@@ -13725,7 +13725,7 @@ const n2 = {
|
|
|
13725
13725
|
function Fp(i, t, e) {
|
|
13726
13726
|
e.clear();
|
|
13727
13727
|
let s, r;
|
|
13728
|
-
return i.parent ? t ? s = i.parent.worldTransform : (r = Et.get().identity(), s = lu(i, r)) : s =
|
|
13728
|
+
return i.parent ? t ? s = i.parent.worldTransform : (r = Et.get().identity(), s = lu(i, r)) : s = V.IDENTITY, Mp(i, e, s, t), r && Et.return(r), e.isValid || e.set(0, 0, 0, 0), e;
|
|
13729
13729
|
}
|
|
13730
13730
|
function Mp(i, t, e, s) {
|
|
13731
13731
|
if (!i.visible || !i.measurable)
|
|
@@ -13744,7 +13744,7 @@ function Mp(i, t, e, s) {
|
|
|
13744
13744
|
if (o) {
|
|
13745
13745
|
for (let a = 0; a < i.effects.length; a++)
|
|
13746
13746
|
i.effects[a].addBounds?.(t);
|
|
13747
|
-
n.addBounds(t,
|
|
13747
|
+
n.addBounds(t, V.IDENTITY), xe.return(t);
|
|
13748
13748
|
}
|
|
13749
13749
|
s || Et.return(r);
|
|
13750
13750
|
}
|
|
@@ -13776,7 +13776,7 @@ const c2 = {
|
|
|
13776
13776
|
t *= e.alpha, e = e.parent;
|
|
13777
13777
|
return t;
|
|
13778
13778
|
},
|
|
13779
|
-
getGlobalTransform(i = new
|
|
13779
|
+
getGlobalTransform(i = new V(), t) {
|
|
13780
13780
|
if (t)
|
|
13781
13781
|
return i.copyFrom(this.worldTransform);
|
|
13782
13782
|
this.updateLocalTransform();
|
|
@@ -13795,7 +13795,7 @@ const c2 = {
|
|
|
13795
13795
|
}
|
|
13796
13796
|
};
|
|
13797
13797
|
function Ep(i, t, e) {
|
|
13798
|
-
return t.clear(), e || (e =
|
|
13798
|
+
return t.clear(), e || (e = V.IDENTITY), Up(i, t, e, i, !0), t.isValid || t.set(0, 0, 0, 0), t;
|
|
13799
13799
|
}
|
|
13800
13800
|
function Up(i, t, e, s, r) {
|
|
13801
13801
|
let n;
|
|
@@ -13820,7 +13820,7 @@ function Up(i, t, e, s, r) {
|
|
|
13820
13820
|
if (a) {
|
|
13821
13821
|
for (let l = 0; l < i.effects.length; l++)
|
|
13822
13822
|
i.effects[l].addLocalBounds?.(t, s);
|
|
13823
|
-
o.addBounds(t,
|
|
13823
|
+
o.addBounds(t, V.IDENTITY), xe.return(t);
|
|
13824
13824
|
}
|
|
13825
13825
|
Et.return(n);
|
|
13826
13826
|
}
|
|
@@ -13832,7 +13832,7 @@ function Rp(i, t) {
|
|
|
13832
13832
|
}
|
|
13833
13833
|
return t.didChange;
|
|
13834
13834
|
}
|
|
13835
|
-
const h2 = new
|
|
13835
|
+
const h2 = new V(), u2 = {
|
|
13836
13836
|
_localBoundsCacheId: -1,
|
|
13837
13837
|
_localBoundsCacheData: null,
|
|
13838
13838
|
_setWidth(i, t) {
|
|
@@ -14017,7 +14017,7 @@ const mi = new y2();
|
|
|
14017
14017
|
ls.register(mi);
|
|
14018
14018
|
class x2 {
|
|
14019
14019
|
constructor() {
|
|
14020
|
-
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new
|
|
14020
|
+
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new V(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = { list: [], index: 0 }, this.structureDidChange = !0, this.instructionSet = new Bp(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
|
|
14021
14021
|
}
|
|
14022
14022
|
init(t) {
|
|
14023
14023
|
this.root = t, t._onRender && this.addOnRender(t), t.didChange = !0;
|
|
@@ -14135,14 +14135,14 @@ class x2 {
|
|
|
14135
14135
|
* @returns {Matrix} The inverse of the world transform matrix.
|
|
14136
14136
|
*/
|
|
14137
14137
|
get inverseWorldTransform() {
|
|
14138
|
-
return (this._matrixDirty & 1) === 0 ? this._inverseWorldTransform : (this._matrixDirty &= -2, this._inverseWorldTransform || (this._inverseWorldTransform = new
|
|
14138
|
+
return (this._matrixDirty & 1) === 0 ? this._inverseWorldTransform : (this._matrixDirty &= -2, this._inverseWorldTransform || (this._inverseWorldTransform = new V()), this._inverseWorldTransform.copyFrom(this.worldTransform).invert());
|
|
14139
14139
|
}
|
|
14140
14140
|
/**
|
|
14141
14141
|
* Returns the inverse of the texture offset transform matrix.
|
|
14142
14142
|
* @returns {Matrix} The inverse of the texture offset transform matrix.
|
|
14143
14143
|
*/
|
|
14144
14144
|
get textureOffsetInverseTransform() {
|
|
14145
|
-
return (this._matrixDirty & 2) === 0 ? this._textureOffsetInverseTransform : (this._matrixDirty &= -3, this._textureOffsetInverseTransform || (this._textureOffsetInverseTransform = new
|
|
14145
|
+
return (this._matrixDirty & 2) === 0 ? this._textureOffsetInverseTransform : (this._matrixDirty &= -3, this._textureOffsetInverseTransform || (this._textureOffsetInverseTransform = new V()), this._textureOffsetInverseTransform.copyFrom(this.inverseWorldTransform).translate(
|
|
14146
14146
|
-this._textureBounds.x,
|
|
14147
14147
|
-this._textureBounds.y
|
|
14148
14148
|
));
|
|
@@ -14157,7 +14157,7 @@ class x2 {
|
|
|
14157
14157
|
return this._inverseParentTextureTransform;
|
|
14158
14158
|
this._matrixDirty &= -5;
|
|
14159
14159
|
const t = this._parentCacheAsTextureRenderGroup;
|
|
14160
|
-
return t ? (this._inverseParentTextureTransform || (this._inverseParentTextureTransform = new
|
|
14160
|
+
return t ? (this._inverseParentTextureTransform || (this._inverseParentTextureTransform = new V()), this._inverseParentTextureTransform.copyFrom(this.worldTransform).prepend(t.inverseWorldTransform).translate(
|
|
14161
14161
|
-t._textureBounds.x,
|
|
14162
14162
|
-t._textureBounds.y
|
|
14163
14163
|
)) : this.worldTransform;
|
|
@@ -14179,7 +14179,7 @@ function v2(i, t, e = {}) {
|
|
|
14179
14179
|
const Gc = new St(null), _s = new St(null), Hc = new St(null, 1, 1), bs = new St(null), ed = 1, _2 = 2, Wc = 4;
|
|
14180
14180
|
class lt extends ie {
|
|
14181
14181
|
constructor(t = {}) {
|
|
14182
|
-
super(), this.uid = dt("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new
|
|
14182
|
+
super(), this.uid = dt("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new V(), this.relativeGroupTransform = new V(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new St(this, 0, 0), this._scale = Hc, this._pivot = _s, this._origin = bs, this._skew = Gc, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didContainerChangeTick = 0, this._didViewChangeTick = 0, this._didLocalTransformChangeId = -1, this.effects = [], v2(this, t, {
|
|
14183
14183
|
children: !0,
|
|
14184
14184
|
parent: !0,
|
|
14185
14185
|
effects: !0
|
|
@@ -14289,7 +14289,7 @@ class lt extends ie {
|
|
|
14289
14289
|
if (this.renderGroup)
|
|
14290
14290
|
return;
|
|
14291
14291
|
const t = this.parentRenderGroup;
|
|
14292
|
-
t?.removeChild(this), this.renderGroup = Yt.get(x2, this), this.groupTransform =
|
|
14292
|
+
t?.removeChild(this), this.renderGroup = Yt.get(x2, this), this.groupTransform = V.IDENTITY, t?.addChild(this), this._updateIsSimple();
|
|
14293
14293
|
}
|
|
14294
14294
|
/**
|
|
14295
14295
|
* This will disable the render group for this container.
|
|
@@ -14319,7 +14319,7 @@ class lt extends ie {
|
|
|
14319
14319
|
* @see {@link Container#localTransform} For local space transform
|
|
14320
14320
|
*/
|
|
14321
14321
|
get worldTransform() {
|
|
14322
|
-
return this._worldTransform || (this._worldTransform = new
|
|
14322
|
+
return this._worldTransform || (this._worldTransform = new V()), this.renderGroup ? this._worldTransform.copyFrom(this.renderGroup.worldTransform) : this.parentRenderGroup && this._worldTransform.appendFrom(this.relativeGroupTransform, this.parentRenderGroup.worldTransform), this._worldTransform;
|
|
14323
14323
|
}
|
|
14324
14324
|
/**
|
|
14325
14325
|
* The position of the container on the x axis relative to the local coordinates of the parent.
|
|
@@ -18676,13 +18676,13 @@ async function _w(i) {
|
|
|
18676
18676
|
for (let n = 0; n < t.length; n++) {
|
|
18677
18677
|
const o = t[n];
|
|
18678
18678
|
if (o === "webgpu" && await vw()) {
|
|
18679
|
-
const { WebGPURenderer: a } = await import("./WebGPURenderer-
|
|
18679
|
+
const { WebGPURenderer: a } = await import("./WebGPURenderer-Dm2y598C.js");
|
|
18680
18680
|
e = a, s = { ...i, ...i.webgpu };
|
|
18681
18681
|
break;
|
|
18682
18682
|
} else if (o === "webgl" && xw(
|
|
18683
18683
|
i.failIfMajorPerformanceCaveat ?? um.defaultOptions.failIfMajorPerformanceCaveat
|
|
18684
18684
|
)) {
|
|
18685
|
-
const { WebGLRenderer: a } = await import("./WebGLRenderer-
|
|
18685
|
+
const { WebGLRenderer: a } = await import("./WebGLRenderer-yczU8Q7o.js");
|
|
18686
18686
|
e = a, s = { ...i, ...i.webgl };
|
|
18687
18687
|
break;
|
|
18688
18688
|
} else if (o === "canvas")
|
|
@@ -19671,7 +19671,7 @@ const cd = [{ offset: 0, color: "white" }, { offset: 1, color: "black" }], du =
|
|
|
19671
19671
|
addressMode: this._wrapMode
|
|
19672
19672
|
})
|
|
19673
19673
|
});
|
|
19674
|
-
const f = Math.sqrt(n * n + o * o), m = Math.atan2(o, n), g = new
|
|
19674
|
+
const f = Math.sqrt(n * n + o * o), m = Math.atan2(o, n), g = new V();
|
|
19675
19675
|
g.scale(f / c, 1), g.rotate(m), g.translate(t, e), this.textureSpace === "local" && g.scale(c, c), this.transform = g;
|
|
19676
19676
|
}
|
|
19677
19677
|
/**
|
|
@@ -19704,7 +19704,7 @@ const cd = [{ offset: 0, color: "white" }, { offset: 1, color: "black" }], du =
|
|
|
19704
19704
|
addressMode: this._wrapMode
|
|
19705
19705
|
})
|
|
19706
19706
|
});
|
|
19707
|
-
const y = new
|
|
19707
|
+
const y = new V();
|
|
19708
19708
|
y.scale(1 / f, 1 / f), y.translate(u, d), this.textureSpace === "local" && y.scale(e, e), this.transform = y;
|
|
19709
19709
|
}
|
|
19710
19710
|
/** Destroys the gradient, releasing resources. This will also destroy the internal texture. */
|
|
@@ -19781,7 +19781,7 @@ const dd = {
|
|
|
19781
19781
|
};
|
|
19782
19782
|
class yr {
|
|
19783
19783
|
constructor(t, e) {
|
|
19784
|
-
this.uid = dt("fillPattern"), this._tick = 0, this.transform = new
|
|
19784
|
+
this.uid = dt("fillPattern"), this._tick = 0, this.transform = new V(), this.texture = t, this.transform.scale(
|
|
19785
19785
|
1 / t.frame.width,
|
|
19786
19786
|
1 / t.frame.height
|
|
19787
19787
|
), e && (t.source.style.addressModeU = dd[e].addressModeU, t.source.style.addressModeV = dd[e].addressModeV);
|
|
@@ -22013,7 +22013,7 @@ function Cm(i, t, e, s, r) {
|
|
|
22013
22013
|
i[u] = n * f + a * m + c, i[u + 1] = o * f + l * m + h, u += s;
|
|
22014
22014
|
}
|
|
22015
22015
|
}
|
|
22016
|
-
const S1 = new
|
|
22016
|
+
const S1 = new V();
|
|
22017
22017
|
class Am {
|
|
22018
22018
|
constructor() {
|
|
22019
22019
|
this.packAsQuad = !1, this.batcherName = "default", this.topology = "triangle-list", this.applyTransform = !0, this.roundPixels = 0, this._batcher = null, this._batch = null;
|
|
@@ -22186,7 +22186,7 @@ function k1(i, t, e, s, r, n) {
|
|
|
22186
22186
|
);
|
|
22187
22187
|
for (let B = 1; B < m - 1; ++B) {
|
|
22188
22188
|
_ = i[(B - 1) * 2], b = i[(B - 1) * 2 + 1], T = i[B * 2], w = i[B * 2 + 1], A = i[(B + 1) * 2], k = i[(B + 1) * 2 + 1], S = -(b - w), C = _ - T, H = Math.sqrt(S * S + C * C), S /= H, C /= H, S *= y, C *= y, U = -(w - k), R = T - A, H = Math.sqrt(U * U + R * R), U /= H, R /= H, U *= y, R *= y;
|
|
22189
|
-
const q = T - _, mt = b - w, tt = T - A, xt = k - w, Tt = q * tt + mt * xt, D = mt * tt - xt * q,
|
|
22189
|
+
const q = T - _, mt = b - w, tt = T - A, xt = k - w, Tt = q * tt + mt * xt, D = mt * tt - xt * q, $ = D < 0;
|
|
22190
22190
|
if (Math.abs(D) < 1e-3 * Math.abs(Tt)) {
|
|
22191
22191
|
f.push(
|
|
22192
22192
|
T - S * M,
|
|
@@ -22212,8 +22212,8 @@ function k1(i, t, e, s, r, n) {
|
|
|
22212
22212
|
));
|
|
22213
22213
|
continue;
|
|
22214
22214
|
}
|
|
22215
|
-
const at = (-S + _) * (-C + w) - (-S + T) * (-C + b), vt = (-U + A) * (-R + w) - (-U + T) * (-R + k), Ke = (q * vt - tt * at) / D, be = (xt * at - mt * vt) / D, re = (Ke - T) * (Ke - T) + (be - w) * (be - w), Rt = T + (Ke - T) * M, Zt = w + (be - w) * M, Ue = T - (Ke - T) * P, Re = w - (be - w) * P, cg = Math.min(q * q + mt * mt, tt * tt + xt * xt), Tu =
|
|
22216
|
-
re <= hg ? a.join === "bevel" || re / x > v ? (
|
|
22215
|
+
const at = (-S + _) * (-C + w) - (-S + T) * (-C + b), vt = (-U + A) * (-R + w) - (-U + T) * (-R + k), Ke = (q * vt - tt * at) / D, be = (xt * at - mt * vt) / D, re = (Ke - T) * (Ke - T) + (be - w) * (be - w), Rt = T + (Ke - T) * M, Zt = w + (be - w) * M, Ue = T - (Ke - T) * P, Re = w - (be - w) * P, cg = Math.min(q * q + mt * mt, tt * tt + xt * xt), Tu = $ ? M : P, hg = cg + Tu * Tu * x;
|
|
22216
|
+
re <= hg ? a.join === "bevel" || re / x > v ? ($ ? (f.push(Rt, Zt), f.push(T + S * P, w + C * P), f.push(Rt, Zt), f.push(T + U * P, w + R * P)) : (f.push(T - S * M, w - C * M), f.push(Ue, Re), f.push(T - U * M, w - R * M), f.push(Ue, Re)), g += 2) : a.join === "round" ? $ ? (f.push(Rt, Zt), f.push(T + S * P, w + C * P), g += Be(
|
|
22217
22217
|
T,
|
|
22218
22218
|
w,
|
|
22219
22219
|
T + S * P,
|
|
@@ -22231,7 +22231,7 @@ function k1(i, t, e, s, r, n) {
|
|
|
22231
22231
|
w - R * M,
|
|
22232
22232
|
f,
|
|
22233
22233
|
!1
|
|
22234
|
-
) + 4, f.push(T - U * M, w - R * M), f.push(Ue, Re)) : (f.push(Rt, Zt), f.push(Ue, Re)) : (f.push(T - S * M, w - C * M), f.push(T + S * P, w + C * P), a.join === "round" ?
|
|
22234
|
+
) + 4, f.push(T - U * M, w - R * M), f.push(Ue, Re)) : (f.push(Rt, Zt), f.push(Ue, Re)) : (f.push(T - S * M, w - C * M), f.push(T + S * P, w + C * P), a.join === "round" ? $ ? g += Be(
|
|
22235
22235
|
T,
|
|
22236
22236
|
w,
|
|
22237
22237
|
T + S * P,
|
|
@@ -22249,7 +22249,7 @@ function k1(i, t, e, s, r, n) {
|
|
|
22249
22249
|
w - R * M,
|
|
22250
22250
|
f,
|
|
22251
22251
|
!1
|
|
22252
|
-
) + 2 : a.join === "miter" && re / x <= v && (
|
|
22252
|
+
) + 2 : a.join === "miter" && re / x <= v && ($ ? (f.push(Ue, Re), f.push(Ue, Re)) : (f.push(Rt, Zt), f.push(Rt, Zt)), g += 2), f.push(T - U * M, w - R * M), f.push(T + U * P, w + R * P), g += 2);
|
|
22253
22253
|
}
|
|
22254
22254
|
_ = i[(m - 2) * 2], b = i[(m - 2) * 2 + 1], T = i[(m - 1) * 2], w = i[(m - 1) * 2 + 1], S = -(b - w), C = _ - T, H = Math.sqrt(S * S + C * C), S /= H, C /= H, S *= y, C *= y, f.push(T - S * M, w - C * M), f.push(T + S * P, w + C * P), u || (a.cap === "round" ? g += Be(
|
|
22255
22255
|
T - S * (M - P) * 0.5,
|
|
@@ -22328,7 +22328,7 @@ const M1 = [], P1 = {
|
|
|
22328
22328
|
const a = s / e;
|
|
22329
22329
|
r[n++] = a, r[n++] = a + 1, r[n++] = a + 2;
|
|
22330
22330
|
}
|
|
22331
|
-
}, R1 = new
|
|
22331
|
+
}, R1 = new V(), B1 = new G();
|
|
22332
22332
|
function z1(i, t, e, s) {
|
|
22333
22333
|
const r = t.matrix ? i.copyFrom(t.matrix).invert() : i.identity();
|
|
22334
22334
|
if (t.textureSpace === "local") {
|
|
@@ -22344,7 +22344,7 @@ function z1(i, t, e, s) {
|
|
|
22344
22344
|
const vr = {};
|
|
22345
22345
|
At.handleByMap(O.ShapeBuilder, vr);
|
|
22346
22346
|
At.add(E1, P1, U1, os, C1, A1);
|
|
22347
|
-
const O1 = new G(), D1 = new
|
|
22347
|
+
const O1 = new G(), D1 = new V();
|
|
22348
22348
|
function L1(i, t) {
|
|
22349
22349
|
const { geometryData: e, batches: s } = t;
|
|
22350
22350
|
s.length = 0, e.indices.length = 0, e.vertices.length = 0, e.uvs.length = 0;
|
|
@@ -23820,9 +23820,9 @@ function ar(i, t) {
|
|
|
23820
23820
|
...c
|
|
23821
23821
|
} : null;
|
|
23822
23822
|
}
|
|
23823
|
-
const xT = new K(), Ld = new
|
|
23823
|
+
const xT = new K(), Ld = new V(), gu = class ce extends ie {
|
|
23824
23824
|
constructor() {
|
|
23825
|
-
super(...arguments), this.uid = dt("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this._activePath = new ve(), this._transform = new
|
|
23825
|
+
super(...arguments), this.uid = dt("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this._activePath = new ve(), this._transform = new V(), this._fillStyle = { ...ce.defaultFillStyle }, this._strokeStyle = { ...ce.defaultStrokeStyle }, this._stateStack = [], this._tick = 0, this._bounds = new te(), this._boundsDirty = !0;
|
|
23826
23826
|
}
|
|
23827
23827
|
/**
|
|
23828
23828
|
* Creates a new GraphicsContext object that is a clone of this instance, copying all properties,
|
|
@@ -24302,10 +24302,10 @@ const xT = new K(), Ld = new W(), gu = class ce extends ie {
|
|
|
24302
24302
|
return this._transform.scale(t, e), this;
|
|
24303
24303
|
}
|
|
24304
24304
|
setTransform(t, e, s, r, n, o) {
|
|
24305
|
-
return t instanceof
|
|
24305
|
+
return t instanceof V ? (this._transform.set(t.a, t.b, t.c, t.d, t.tx, t.ty), this) : (this._transform.set(t, e, s, r, n, o), this);
|
|
24306
24306
|
}
|
|
24307
24307
|
transform(t, e, s, r, n, o) {
|
|
24308
|
-
return t instanceof
|
|
24308
|
+
return t instanceof V ? (this._transform.append(t), this) : (Ld.set(t, e, s, r, n, o), this._transform.append(Ld), this);
|
|
24309
24309
|
}
|
|
24310
24310
|
/**
|
|
24311
24311
|
* Applies a translation transformation to the graphics context, moving the origin by the specified amounts.
|
|
@@ -24883,7 +24883,7 @@ function lr(i, t, e, s = 0) {
|
|
|
24883
24883
|
return pt.shared.setValue(i.color).setAlpha(i.alpha ?? 1).toHexa();
|
|
24884
24884
|
if (i.fill) {
|
|
24885
24885
|
if (i.fill instanceof yr) {
|
|
24886
|
-
const r = i.fill, n = t.createPattern(r.texture.source.resource, "repeat"), o = r.transform.copyTo(
|
|
24886
|
+
const r = i.fill, n = t.createPattern(r.texture.source.resource, "repeat"), o = r.transform.copyTo(V.shared);
|
|
24887
24887
|
return o.scale(
|
|
24888
24888
|
r.texture.frame.width,
|
|
24889
24889
|
r.texture.frame.height
|
|
@@ -24932,7 +24932,7 @@ function lr(i, t, e, s = 0) {
|
|
|
24932
24932
|
return c;
|
|
24933
24933
|
}
|
|
24934
24934
|
} else {
|
|
24935
|
-
const r = t.createPattern(i.texture.source.resource, "repeat"), n = i.matrix.copyTo(
|
|
24935
|
+
const r = t.createPattern(i.texture.source.resource, "repeat"), n = i.matrix.copyTo(V.shared);
|
|
24936
24936
|
return n.scale(i.texture.frame.width, i.texture.frame.height), r.setTransform(n), r;
|
|
24937
24937
|
}
|
|
24938
24938
|
return st("FillStyle not recognised", i), "red";
|
|
@@ -29349,7 +29349,7 @@ class Xe extends Pe {
|
|
|
29349
29349
|
this.textStyle = o, this.ready = (async () => {
|
|
29350
29350
|
await this.refreshCaptions();
|
|
29351
29351
|
const a = { ...this._meta };
|
|
29352
|
-
return
|
|
29352
|
+
return W.info("CaptionClip ready:", a), a;
|
|
29353
29353
|
})();
|
|
29354
29354
|
}
|
|
29355
29355
|
/**
|
|
@@ -29451,7 +29451,7 @@ class Xe extends Pe {
|
|
|
29451
29451
|
target: this.renderTexture
|
|
29452
29452
|
});
|
|
29453
29453
|
} catch (T) {
|
|
29454
|
-
|
|
29454
|
+
W.warn("CaptionClip: Could not render captions during refresh", T);
|
|
29455
29455
|
}
|
|
29456
29456
|
this._meta.width = g, this._meta.height = p, this._meta.duration = 1 / 0;
|
|
29457
29457
|
const y = this.opts.videoWidth, x = this.opts.videoHeight, v = this.opts.bottomOffset, _ = x - p - v, b = (y - g) / 2;
|
|
@@ -29590,7 +29590,7 @@ class Xe extends Pe {
|
|
|
29590
29590
|
}
|
|
29591
29591
|
destroy() {
|
|
29592
29592
|
if (!this.destroyed) {
|
|
29593
|
-
|
|
29593
|
+
W.info("Caption destroy");
|
|
29594
29594
|
try {
|
|
29595
29595
|
this.wordTexts.forEach((t) => {
|
|
29596
29596
|
t != null && !t.destroyed && t.destroy({ children: !0 });
|
|
@@ -29727,38 +29727,58 @@ let yi = class Ce extends Pe {
|
|
|
29727
29727
|
* const imgClip = await Image.fromUrl('path/to/image.png');
|
|
29728
29728
|
*/
|
|
29729
29729
|
static async fromUrl(t, e) {
|
|
29730
|
-
|
|
29731
|
-
|
|
29732
|
-
|
|
29733
|
-
|
|
29734
|
-
|
|
29735
|
-
else if (r instanceof HTMLImageElement) {
|
|
29736
|
-
const a = new OffscreenCanvas(r.width, r.height), l = a.getContext("2d");
|
|
29737
|
-
if (l == null)
|
|
29738
|
-
throw new Error("Failed to create 2d context");
|
|
29739
|
-
l.drawImage(r, 0, 0), n = await createImageBitmap(a);
|
|
29740
|
-
} else if (r instanceof ImageBitmap)
|
|
29741
|
-
n = await createImageBitmap(r);
|
|
29742
|
-
else {
|
|
29743
|
-
const a = await fetch(t);
|
|
29744
|
-
if (!a.ok)
|
|
29730
|
+
let s = null, r = null;
|
|
29731
|
+
if (t.startsWith("blob:"))
|
|
29732
|
+
try {
|
|
29733
|
+
const o = await fetch(t);
|
|
29734
|
+
if (!o.ok)
|
|
29745
29735
|
throw new Error(
|
|
29746
|
-
`Failed to fetch image: ${
|
|
29736
|
+
`Failed to fetch image: ${o.status} ${o.statusText}`
|
|
29747
29737
|
);
|
|
29748
|
-
const
|
|
29749
|
-
|
|
29738
|
+
const a = await o.blob();
|
|
29739
|
+
r = await createImageBitmap(a);
|
|
29740
|
+
try {
|
|
29741
|
+
s = L.from(r);
|
|
29742
|
+
} catch (l) {
|
|
29743
|
+
W.warn("Failed to create Pixi texture from bitmap:", l);
|
|
29744
|
+
}
|
|
29745
|
+
} catch (o) {
|
|
29746
|
+
throw W.error(`Failed to load blob image from ${t}`, o), o;
|
|
29750
29747
|
}
|
|
29751
|
-
|
|
29752
|
-
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29748
|
+
else {
|
|
29749
|
+
try {
|
|
29750
|
+
if (s = await Wi.load(t), s) {
|
|
29751
|
+
const o = s.source?.resource?.source;
|
|
29752
|
+
if (o instanceof HTMLCanvasElement || o instanceof OffscreenCanvas)
|
|
29753
|
+
r = await createImageBitmap(o);
|
|
29754
|
+
else if (o instanceof HTMLImageElement) {
|
|
29755
|
+
const a = new OffscreenCanvas(o.width, o.height), l = a.getContext("2d");
|
|
29756
|
+
if (l == null)
|
|
29757
|
+
throw new Error("Failed to create 2d context");
|
|
29758
|
+
l.drawImage(o, 0, 0), r = await createImageBitmap(a);
|
|
29759
|
+
} else o instanceof ImageBitmap && (r = await createImageBitmap(o));
|
|
29760
|
+
}
|
|
29761
|
+
} catch (o) {
|
|
29762
|
+
W.warn(
|
|
29763
|
+
`Failed to load texture via Assets.load for ${t}, using fallback`,
|
|
29764
|
+
o
|
|
29756
29765
|
);
|
|
29757
|
-
|
|
29758
|
-
|
|
29766
|
+
}
|
|
29767
|
+
if (!r)
|
|
29768
|
+
try {
|
|
29769
|
+
const o = await fetch(t);
|
|
29770
|
+
if (!o.ok)
|
|
29771
|
+
throw new Error(
|
|
29772
|
+
`Failed to fetch image: ${o.status} ${o.statusText}`
|
|
29773
|
+
);
|
|
29774
|
+
const a = await o.blob();
|
|
29775
|
+
r = await createImageBitmap(a);
|
|
29776
|
+
} catch (o) {
|
|
29777
|
+
throw W.error(`Failed to load image from ${t}`, o), o;
|
|
29778
|
+
}
|
|
29759
29779
|
}
|
|
29760
|
-
const
|
|
29761
|
-
return
|
|
29780
|
+
const n = new Ce(r, e || t);
|
|
29781
|
+
return s && (n.pixiTexture = s), n;
|
|
29762
29782
|
}
|
|
29763
29783
|
/**
|
|
29764
29784
|
* Get the PixiJS Texture (if available)
|
|
@@ -29819,7 +29839,7 @@ let yi = class Ce extends Pe {
|
|
|
29819
29839
|
duration: this.frames.reduce((r, n) => r + (n.duration ?? 0), 0),
|
|
29820
29840
|
width: s.codedWidth,
|
|
29821
29841
|
height: s.codedHeight
|
|
29822
|
-
},
|
|
29842
|
+
}, W.info("Image ready:", this._meta);
|
|
29823
29843
|
}
|
|
29824
29844
|
tickInterceptor = async (t, e) => e;
|
|
29825
29845
|
async tick(t) {
|
|
@@ -29876,7 +29896,7 @@ let yi = class Ce extends Pe {
|
|
|
29876
29896
|
e !== -1 && this.effects.splice(e, 1);
|
|
29877
29897
|
}
|
|
29878
29898
|
destroy() {
|
|
29879
|
-
|
|
29899
|
+
W.info("Image destroy"), this.img?.close(), this.frames.forEach((t) => t.close()), this.pixiTexture = null, super.destroy();
|
|
29880
29900
|
}
|
|
29881
29901
|
toJSON(t = !1) {
|
|
29882
29902
|
return {
|
|
@@ -29906,11 +29926,9 @@ let yi = class Ce extends Pe {
|
|
|
29906
29926
|
`Failed to fetch image from ${t.src}: ${s.status} ${s.statusText}. Make sure the file exists in the public directory.`
|
|
29907
29927
|
);
|
|
29908
29928
|
const r = await s.blob();
|
|
29909
|
-
|
|
29910
|
-
|
|
29911
|
-
|
|
29912
|
-
);
|
|
29913
|
-
e = new Ce(await createImageBitmap(r), t.src);
|
|
29929
|
+
r.type.startsWith("image/") || W.warn(
|
|
29930
|
+
`Image blob has unexpected type: ${r.type}. Attempting to load anyway.`
|
|
29931
|
+
), e = new Ce(await createImageBitmap(r), t.src);
|
|
29914
29932
|
} catch (s) {
|
|
29915
29933
|
throw s instanceof Error && s.message.includes("could not be decoded") ? new Error(
|
|
29916
29934
|
`Failed to decode image from ${t.src}. The image may be corrupted, in an unsupported format, or there may be CORS issues.`
|
|
@@ -30078,7 +30096,7 @@ function fh(i) {
|
|
|
30078
30096
|
class kt extends Pe {
|
|
30079
30097
|
type = "Video";
|
|
30080
30098
|
insId = bu++;
|
|
30081
|
-
logger =
|
|
30099
|
+
logger = W.create(`Video id:${this.insId},`);
|
|
30082
30100
|
ready;
|
|
30083
30101
|
_meta = {
|
|
30084
30102
|
// microseconds
|
|
@@ -30643,15 +30661,15 @@ async function Qd(i, t = {}) {
|
|
|
30643
30661
|
d.mp4boxFile,
|
|
30644
30662
|
d.info
|
|
30645
30663
|
);
|
|
30646
|
-
if (s.video = g ?? null, s.audio = p ?? null, g == null && p == null &&
|
|
30664
|
+
if (s.video = g ?? null, s.audio = p ?? null, g == null && p == null && W.error("Video no video and audio track"), p != null) {
|
|
30647
30665
|
const { supported: y } = await AudioDecoder.isConfigSupported(p);
|
|
30648
|
-
y ||
|
|
30666
|
+
y || W.error(`Video audio codec is not supported: ${p.codec}`);
|
|
30649
30667
|
}
|
|
30650
30668
|
if (g != null) {
|
|
30651
30669
|
const { supported: y } = await VideoDecoder.isConfigSupported(g);
|
|
30652
|
-
y ||
|
|
30670
|
+
y || W.error(`Video video codec is not supported: ${g.codec}`);
|
|
30653
30671
|
}
|
|
30654
|
-
|
|
30672
|
+
W.info(
|
|
30655
30673
|
"mp4BoxFile moov ready",
|
|
30656
30674
|
{
|
|
30657
30675
|
...d.info,
|
|
@@ -30679,7 +30697,7 @@ async function Qd(i, t = {}) {
|
|
|
30679
30697
|
throw Error("Video stream is done, but not emit ready");
|
|
30680
30698
|
if (u == null)
|
|
30681
30699
|
throw Error("Video stream not contain any sample");
|
|
30682
|
-
return Kh(r),
|
|
30700
|
+
return Kh(r), W.info("mp4 stream parsed"), {
|
|
30683
30701
|
videoSamples: r,
|
|
30684
30702
|
audioSamples: n,
|
|
30685
30703
|
decoderConf: s,
|
|
@@ -30764,12 +30782,12 @@ class Jm {
|
|
|
30764
30782
|
if (s) {
|
|
30765
30783
|
const r = this.samples.slice(this.videoDecCursorIdx, e);
|
|
30766
30784
|
if (r[0]?.is_idr !== !0)
|
|
30767
|
-
|
|
30785
|
+
W.warn("First sample not idr frame");
|
|
30768
30786
|
else {
|
|
30769
30787
|
const n = performance.now(), o = await jm(r, this.localFileReader), a = performance.now() - n;
|
|
30770
30788
|
if (a > 1e3) {
|
|
30771
30789
|
const l = r[0], c = r.at(-1), h = c.offset + c.size - l.offset;
|
|
30772
|
-
|
|
30790
|
+
W.warn(
|
|
30773
30791
|
`Read video samples time cost: ${Math.round(
|
|
30774
30792
|
a
|
|
30775
30793
|
)}ms, file chunk size: ${h}`
|
|
@@ -30780,7 +30798,7 @@ class Jm {
|
|
|
30780
30798
|
onDecodingError: (l) => {
|
|
30781
30799
|
if (this.downgradeSoftDecode)
|
|
30782
30800
|
throw l;
|
|
30783
|
-
this.outputFrameCnt === 0 && (this.downgradeSoftDecode = !0,
|
|
30801
|
+
this.outputFrameCnt === 0 && (this.downgradeSoftDecode = !0, W.warn("Downgrade to software decode"), this.reset());
|
|
30784
30802
|
}
|
|
30785
30803
|
}), this.inputChunkCnt += o.length;
|
|
30786
30804
|
}
|
|
@@ -30818,13 +30836,13 @@ class Jm {
|
|
|
30818
30836
|
},
|
|
30819
30837
|
error: (s) => {
|
|
30820
30838
|
if (s.message.includes("Codec reclaimed due to inactivity")) {
|
|
30821
|
-
this.decoder = null,
|
|
30839
|
+
this.decoder = null, W.warn(s.message);
|
|
30822
30840
|
return;
|
|
30823
30841
|
}
|
|
30824
30842
|
const r = `VideoFinder VideoDecoder err: ${s.message}, config: ${JSON.stringify(e)}, state: ${JSON.stringify(
|
|
30825
30843
|
this.getState()
|
|
30826
30844
|
)}`;
|
|
30827
|
-
throw
|
|
30845
|
+
throw W.error(r), Error(r);
|
|
30828
30846
|
}
|
|
30829
30847
|
}), this.decoder.configure(e);
|
|
30830
30848
|
};
|
|
@@ -30999,7 +31017,7 @@ function VS(i, t, e) {
|
|
|
30999
31017
|
inputCnt: s,
|
|
31000
31018
|
outputCnt: r
|
|
31001
31019
|
})}`;
|
|
31002
|
-
throw
|
|
31020
|
+
throw W.error(d), Error(d);
|
|
31003
31021
|
}
|
|
31004
31022
|
return {
|
|
31005
31023
|
decode(h) {
|
|
@@ -31190,9 +31208,9 @@ async function KS(i, t, e, s, r, n) {
|
|
|
31190
31208
|
let l = 0;
|
|
31191
31209
|
qh(c(), a, {
|
|
31192
31210
|
onDecodingError: (h) => {
|
|
31193
|
-
|
|
31211
|
+
W.warn("thumbnailsByKeyFrame", h), l === 0 ? qh(c(!0), a, {
|
|
31194
31212
|
onDecodingError: (u) => {
|
|
31195
|
-
o.close(),
|
|
31213
|
+
o.close(), W.error("thumbnailsByKeyFrame retry soft deocde", u);
|
|
31196
31214
|
}
|
|
31197
31215
|
}) : (n(null, !0), o.close());
|
|
31198
31216
|
}
|
|
@@ -31216,7 +31234,7 @@ async function KS(i, t, e, s, r, n) {
|
|
|
31216
31234
|
inputCnt: a.length
|
|
31217
31235
|
}
|
|
31218
31236
|
)}`;
|
|
31219
|
-
throw
|
|
31237
|
+
throw W.error(m), Error(m);
|
|
31220
31238
|
}
|
|
31221
31239
|
});
|
|
31222
31240
|
return s.addEventListener("abort", () => {
|
|
@@ -31605,7 +31623,7 @@ class de extends Pe {
|
|
|
31605
31623
|
}
|
|
31606
31624
|
destroy() {
|
|
31607
31625
|
if (!this.destroyed) {
|
|
31608
|
-
|
|
31626
|
+
W.info("Text destroy");
|
|
31609
31627
|
try {
|
|
31610
31628
|
this.pixiText != null && this.pixiText.destroyed !== !0 && this.pixiText.destroy({ children: !0 });
|
|
31611
31629
|
} catch {
|
|
@@ -32114,7 +32132,7 @@ function sC(i) {
|
|
|
32114
32132
|
output: (s) => {
|
|
32115
32133
|
t.push(s);
|
|
32116
32134
|
},
|
|
32117
|
-
error:
|
|
32135
|
+
error: W.error
|
|
32118
32136
|
});
|
|
32119
32137
|
return e.configure(i), {
|
|
32120
32138
|
decode: async (s) => {
|
|
@@ -32146,7 +32164,7 @@ function rC(i, t) {
|
|
|
32146
32164
|
t(tC(o));
|
|
32147
32165
|
},
|
|
32148
32166
|
error: (o) => {
|
|
32149
|
-
|
|
32167
|
+
W.error("AudioEncoder error:", o, ", config:", e);
|
|
32150
32168
|
}
|
|
32151
32169
|
});
|
|
32152
32170
|
s.configure(e);
|
|
@@ -32181,7 +32199,7 @@ function nC(i, t, e) {
|
|
|
32181
32199
|
i[Math.floor(s / o) - n] *= n / r;
|
|
32182
32200
|
}
|
|
32183
32201
|
function yk(i, t) {
|
|
32184
|
-
|
|
32202
|
+
W.info("mixinMP4AndAudio, opts:", {
|
|
32185
32203
|
volume: t.volume,
|
|
32186
32204
|
loop: t.loop
|
|
32187
32205
|
});
|
|
@@ -39733,7 +39751,7 @@ function og({ name: i, renderer: t }) {
|
|
|
39733
39751
|
);
|
|
39734
39752
|
if (!e) {
|
|
39735
39753
|
const D = Object.keys(si).find(
|
|
39736
|
-
(
|
|
39754
|
+
($) => $.toLowerCase() === i.toLowerCase()
|
|
39737
39755
|
);
|
|
39738
39756
|
D && (e = si[D]);
|
|
39739
39757
|
}
|
|
@@ -39747,12 +39765,12 @@ function og({ name: i, renderer: t }) {
|
|
|
39747
39765
|
i.replace(/([A-Z])/g, "_$1").toLowerCase().replace(/^_/, ""),
|
|
39748
39766
|
i.replace(/_/g, "")
|
|
39749
39767
|
];
|
|
39750
|
-
for (const
|
|
39768
|
+
for (const $ of D) {
|
|
39751
39769
|
if (e = ii.find(
|
|
39752
|
-
(vt) => vt.name.toLowerCase() ===
|
|
39770
|
+
(vt) => vt.name.toLowerCase() === $.toLowerCase()
|
|
39753
39771
|
), e) break;
|
|
39754
39772
|
const at = Object.keys(si).find(
|
|
39755
|
-
(vt) => vt.toLowerCase() ===
|
|
39773
|
+
(vt) => vt.toLowerCase() === $.toLowerCase()
|
|
39756
39774
|
);
|
|
39757
39775
|
if (at) {
|
|
39758
39776
|
e = si[at];
|
|
@@ -39761,10 +39779,10 @@ function og({ name: i, renderer: t }) {
|
|
|
39761
39779
|
}
|
|
39762
39780
|
}
|
|
39763
39781
|
if (!e) {
|
|
39764
|
-
const D = ii.length,
|
|
39782
|
+
const D = ii.length, $ = ii.slice(0, 5).map((vt) => vt.name).join(", "), at = Object.keys(si).slice(0, 3).join(", ");
|
|
39765
39783
|
throw console.error(
|
|
39766
39784
|
`Transition not found: "${i}". Available in gl-transitions (${D} total):`,
|
|
39767
|
-
|
|
39785
|
+
$ + "..."
|
|
39768
39786
|
), console.error("Available locally:", at + "..."), new Error(
|
|
39769
39787
|
`Transition "${i}" not found in gl-transitions library or local definitions`
|
|
39770
39788
|
);
|
|
@@ -39778,12 +39796,12 @@ function og({ name: i, renderer: t }) {
|
|
|
39778
39796
|
c = document.createElement("canvas"), c.width = 256, c.height = 256;
|
|
39779
39797
|
const D = c.getContext("2d");
|
|
39780
39798
|
if (D) {
|
|
39781
|
-
const
|
|
39782
|
-
for (let at = 0; at <
|
|
39799
|
+
const $ = D.createImageData(256, 256);
|
|
39800
|
+
for (let at = 0; at < $.data.length; at += 4) {
|
|
39783
39801
|
const vt = Math.random();
|
|
39784
|
-
|
|
39802
|
+
$.data[at] = vt * 255, $.data[at + 1] = vt * 255, $.data[at + 2] = vt * 255, $.data[at + 3] = 255;
|
|
39785
39803
|
}
|
|
39786
|
-
D.putImageData(
|
|
39804
|
+
D.putImageData($, 0, 0);
|
|
39787
39805
|
}
|
|
39788
39806
|
}
|
|
39789
39807
|
let h = e.glsl || e.fragment;
|
|
@@ -39884,13 +39902,13 @@ function og({ name: i, renderer: t }) {
|
|
|
39884
39902
|
resources: xt
|
|
39885
39903
|
});
|
|
39886
39904
|
return s.filters = [Tt], {
|
|
39887
|
-
render({ width: D, height:
|
|
39888
|
-
if ((s.width !== D || s.height !==
|
|
39889
|
-
if (c.width !== D || c.height !==
|
|
39890
|
-
c.width = D, c.height =
|
|
39905
|
+
render({ width: D, height: $, from: at, to: vt, progress: Ke }) {
|
|
39906
|
+
if ((s.width !== D || s.height !== $) && (s.setSize({ width: D, height: $ }), r.resize(D, $)), at instanceof L ? Tt.resources.from = at.source : (n.resource = at, n.update(), Tt.resources.from = n), vt instanceof L ? Tt.resources.to = vt.source : (o.resource = vt, o.update(), Tt.resources.to = o), a && l && c) {
|
|
39907
|
+
if (c.width !== D || c.height !== $) {
|
|
39908
|
+
c.width = D, c.height = $;
|
|
39891
39909
|
const be = c.getContext("2d");
|
|
39892
39910
|
if (be) {
|
|
39893
|
-
const re = be.createImageData(D,
|
|
39911
|
+
const re = be.createImageData(D, $);
|
|
39894
39912
|
for (let Rt = 0; Rt < re.data.length; Rt += 4) {
|
|
39895
39913
|
const Zt = Math.random();
|
|
39896
39914
|
re.data[Rt] = Zt * 255, re.data[Rt + 1] = Zt * 255, re.data[Rt + 2] = Zt * 255, re.data[Rt + 3] = 255;
|
|
@@ -39905,7 +39923,7 @@ function og({ name: i, renderer: t }) {
|
|
|
39905
39923
|
target: r,
|
|
39906
39924
|
clear: !1,
|
|
39907
39925
|
width: D,
|
|
39908
|
-
height:
|
|
39926
|
+
height: $
|
|
39909
39927
|
}), r;
|
|
39910
39928
|
},
|
|
39911
39929
|
destroy() {
|
|
@@ -39937,7 +39955,7 @@ class _k extends nu {
|
|
|
39937
39955
|
numberOfChannels: it.channelCount
|
|
39938
39956
|
})).supported) ?? !1;
|
|
39939
39957
|
}
|
|
39940
|
-
logger =
|
|
39958
|
+
logger = W.create(`id:${$I++},`);
|
|
39941
39959
|
destroyed = !1;
|
|
39942
39960
|
sprites = [];
|
|
39943
39961
|
canvas;
|
|
@@ -40288,13 +40306,13 @@ function YI(i) {
|
|
|
40288
40306
|
B = new ft();
|
|
40289
40307
|
const q = gt(j.color) ?? 0, mt = j.alpha ?? 0.5, tt = j.distance ?? 0, xt = j.angle ?? 0, Tt = Math.cos(xt) * tt, D = Math.sin(xt) * tt;
|
|
40290
40308
|
if (H > 0) {
|
|
40291
|
-
const
|
|
40309
|
+
const $ = Math.min(H, k / 2, S / 2);
|
|
40292
40310
|
B.roundRect(
|
|
40293
40311
|
-k / 2 + Tt,
|
|
40294
40312
|
-S / 2 + D,
|
|
40295
40313
|
k,
|
|
40296
40314
|
S,
|
|
40297
|
-
|
|
40315
|
+
$
|
|
40298
40316
|
);
|
|
40299
40317
|
} else
|
|
40300
40318
|
B.rect(
|
|
@@ -40369,9 +40387,9 @@ function YI(i) {
|
|
|
40369
40387
|
});
|
|
40370
40388
|
let D = a.get(C.id);
|
|
40371
40389
|
D || (D = new Ft(), D.label = `TransitionSprite_${C.id}`, a.set(C.id, D), p.addChild(D)), D.texture = Tt, D.visible = !0, D.x = 0, D.y = 0, D.width = t.renderer.width, D.height = t.renderer.height, D.anchor.set(0, 0), D.zIndex = C.zIndex, A = !0;
|
|
40372
|
-
const
|
|
40373
|
-
if (
|
|
40374
|
-
const at =
|
|
40390
|
+
const $ = n.get(C);
|
|
40391
|
+
if ($) {
|
|
40392
|
+
const at = $.getRoot();
|
|
40375
40393
|
at && (at.visible = !1);
|
|
40376
40394
|
}
|
|
40377
40395
|
if (tt) {
|
|
@@ -40472,8 +40490,8 @@ function YI(i) {
|
|
|
40472
40490
|
progress: P,
|
|
40473
40491
|
width: tt,
|
|
40474
40492
|
height: xt
|
|
40475
|
-
}),
|
|
40476
|
-
|
|
40493
|
+
}), $ = new Ft(D);
|
|
40494
|
+
$.width = tt, $.height = xt, y.addChild($);
|
|
40477
40495
|
}
|
|
40478
40496
|
}
|
|
40479
40497
|
}
|
|
@@ -40600,7 +40618,7 @@ class me extends ft {
|
|
|
40600
40618
|
};
|
|
40601
40619
|
}
|
|
40602
40620
|
const nf = {
|
|
40603
|
-
delta: new
|
|
40621
|
+
delta: new V()
|
|
40604
40622
|
};
|
|
40605
40623
|
class ZI extends lt {
|
|
40606
40624
|
group;
|
|
@@ -42496,8 +42514,11 @@ class bk extends nu {
|
|
|
42496
42514
|
/**
|
|
42497
42515
|
* Update studio dimensions
|
|
42498
42516
|
*/
|
|
42517
|
+
setSize(t, e) {
|
|
42518
|
+
this.updateDimensions(t, e);
|
|
42519
|
+
}
|
|
42499
42520
|
updateDimensions(t, e) {
|
|
42500
|
-
this.opts.width = t, this.opts.height = e, this.artboardBg && this.artboardBg.clear().rect(0, 0, t, e).fill({ color:
|
|
42521
|
+
this.opts.width = t, this.opts.height = e, this.artboardBg && this.artboardBg.clear().rect(0, 0, t, e).fill({ color: 0 }), this.artboardMask && this.artboardMask.clear().rect(0, 0, t, e).fill({ color: 16777215 }), this.transFromTexture && this.transFromTexture.resize(t, e), this.transToTexture && this.transToTexture.resize(t, e), this.transBgGraphics && this.transBgGraphics.clear().rect(0, 0, t, e).fill({ color: 0, alpha: 0 }), this.updateArtboardLayout(), this.updateFrame(this.currentTime);
|
|
42501
42522
|
}
|
|
42502
42523
|
handleResize = () => {
|
|
42503
42524
|
this.destroyed || !this.pixiApp || this.updateArtboardLayout();
|
|
@@ -42574,7 +42595,9 @@ class bk extends nu {
|
|
|
42574
42595
|
const e = typeof t == "string" ? this.getClipById(t) : t;
|
|
42575
42596
|
if (!e) return;
|
|
42576
42597
|
const s = (this.opts.width - e.width) / 2, r = (this.opts.height - e.height) / 2;
|
|
42577
|
-
|
|
42598
|
+
if (this.getClipById(e.id))
|
|
42599
|
+
return this.updateClip(e.id, { left: s, top: r });
|
|
42600
|
+
e.left = s, e.top = r;
|
|
42578
42601
|
}
|
|
42579
42602
|
/**
|
|
42580
42603
|
* Centers object horizontally in the studio
|
|
@@ -42583,7 +42606,9 @@ class bk extends nu {
|
|
|
42583
42606
|
const e = typeof t == "string" ? this.getClipById(t) : t;
|
|
42584
42607
|
if (!e) return;
|
|
42585
42608
|
const s = (this.opts.width - e.width) / 2;
|
|
42586
|
-
|
|
42609
|
+
if (this.getClipById(e.id))
|
|
42610
|
+
return this.updateClip(e.id, { left: s });
|
|
42611
|
+
e.left = s;
|
|
42587
42612
|
}
|
|
42588
42613
|
/**
|
|
42589
42614
|
* Centers object vertically in the studio
|
|
@@ -42592,7 +42617,9 @@ class bk extends nu {
|
|
|
42592
42617
|
const e = typeof t == "string" ? this.getClipById(t) : t;
|
|
42593
42618
|
if (!e) return;
|
|
42594
42619
|
const s = (this.opts.height - e.height) / 2;
|
|
42595
|
-
|
|
42620
|
+
if (this.getClipById(e.id))
|
|
42621
|
+
return this.updateClip(e.id, { top: s });
|
|
42622
|
+
e.top = s;
|
|
42596
42623
|
}
|
|
42597
42624
|
/**
|
|
42598
42625
|
* Scale clip to fit within the studio dimensions while maintaining aspect ratio
|
|
@@ -42606,7 +42633,9 @@ class bk extends nu {
|
|
|
42606
42633
|
this.opts.width / r,
|
|
42607
42634
|
this.opts.height / n
|
|
42608
42635
|
), a = r * o, l = n * o;
|
|
42609
|
-
|
|
42636
|
+
if (this.getClipById(e.id))
|
|
42637
|
+
return this.updateClip(e.id, { width: a, height: l });
|
|
42638
|
+
e.width = a, e.height = l;
|
|
42610
42639
|
}
|
|
42611
42640
|
/**
|
|
42612
42641
|
* Scale clip to fill the studio dimensions while maintaining aspect ratio
|
|
@@ -42620,7 +42649,9 @@ class bk extends nu {
|
|
|
42620
42649
|
this.opts.width / r,
|
|
42621
42650
|
this.opts.height / n
|
|
42622
42651
|
), a = r * o, l = n * o;
|
|
42623
|
-
|
|
42652
|
+
if (this.getClipById(e.id))
|
|
42653
|
+
return this.updateClip(e.id, { width: a, height: l });
|
|
42654
|
+
e.width = a, e.height = l;
|
|
42624
42655
|
}
|
|
42625
42656
|
async updateClips(t) {
|
|
42626
42657
|
this.suspendRendering(), await this.timeline.updateClips(t), this.resumeRendering(), this.updateFrame(this.currentTime);
|
|
@@ -43234,7 +43265,7 @@ export {
|
|
|
43234
43265
|
ju as J,
|
|
43235
43266
|
Ft as K,
|
|
43236
43267
|
G2 as L,
|
|
43237
|
-
|
|
43268
|
+
V as M,
|
|
43238
43269
|
j2 as N,
|
|
43239
43270
|
ls as O,
|
|
43240
43271
|
K as P,
|
|
@@ -43267,7 +43298,7 @@ export {
|
|
|
43267
43298
|
it as aE,
|
|
43268
43299
|
_k as aF,
|
|
43269
43300
|
bk as aG,
|
|
43270
|
-
|
|
43301
|
+
W as aH,
|
|
43271
43302
|
Js as aI,
|
|
43272
43303
|
ts as aJ,
|
|
43273
43304
|
QI as aK,
|