@twick/live-player 0.15.30 → 0.15.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +584 -521
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +584 -521
- package/dist/index.mjs.map +1 -1
- package/dist/internal-B6KRB6EV-BvBtLd70.mjs.map +1 -1
- package/dist/internal-B6KRB6EV-DXLdD4g5.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2037,7 +2037,7 @@ const LA = ({ r, g: t, b: e, alpha: n }) => {
|
|
|
2037
2037
|
e === void 0 && (e = 0);
|
|
2038
2038
|
let a = { mode: s, l: r, a: t ? t * Math.cos(e / 180 * Math.PI) : 0, b: t ? t * Math.sin(e / 180 * Math.PI) : 0 };
|
|
2039
2039
|
return n !== void 0 && (a.alpha = n), a;
|
|
2040
|
-
}, Ov = Math.pow(29, 3) / Math.pow(3, 3), Iv = Math.pow(6, 3) / Math.pow(29, 3),
|
|
2040
|
+
}, Ov = Math.pow(29, 3) / Math.pow(3, 3), Iv = Math.pow(6, 3) / Math.pow(29, 3), p1 = { X: 0.3457 / 0.3585, Y: 1, Z: (1 - 0.3457 - 0.3585) / 0.3585 }, rn = { X: 0.3127 / 0.329, Y: 1, Z: (1 - 0.3127 - 0.329) / 0.329 };
|
|
2041
2041
|
let Vl = (r) => Math.pow(r, 3) > Iv ? Math.pow(r, 3) : (116 * r - 16) / Ov;
|
|
2042
2042
|
const Vv = ({ l: r, a: t, b: e, alpha: n }) => {
|
|
2043
2043
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
@@ -2271,7 +2271,7 @@ const Bl = (r) => Math.max(r / jv, 0), HQ = ({ i: r, t, p: e, alpha: n }) => {
|
|
|
2271
2271
|
let zl = (r) => Math.pow(r, 3) > Bh ? Math.pow(r, 3) : (116 * r - 16) / zo;
|
|
2272
2272
|
const Fh = ({ l: r, a: t, b: e, alpha: n }) => {
|
|
2273
2273
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2274
|
-
let s = (r + 16) / 116, a = t / 500 + s, o = s - e / 200, l = { mode: "xyz50", x: zl(a) *
|
|
2274
|
+
let s = (r + 16) / 116, a = t / 500 + s, o = s - e / 200, l = { mode: "xyz50", x: zl(a) * p1.X, y: zl(s) * p1.Y, z: zl(o) * p1.Z };
|
|
2275
2275
|
return n !== void 0 && (l.alpha = n), l;
|
|
2276
2276
|
}, J5 = ({ x: r, y: t, z: e, alpha: n }) => {
|
|
2277
2277
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
@@ -2282,7 +2282,7 @@ const Fh = ({ l: r, a: t, b: e, alpha: n }) => {
|
|
|
2282
2282
|
return s !== void 0 && (a.alpha = s), a;
|
|
2283
2283
|
}, Wl = (r) => r > Bh ? Math.cbrt(r) : (zo * r + 16) / 116, Nh = ({ x: r, y: t, z: e, alpha: n }) => {
|
|
2284
2284
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2285
|
-
let s = Wl(r /
|
|
2285
|
+
let s = Wl(r / p1.X), a = Wl(t / p1.Y), o = Wl(e / p1.Z), l = { mode: "lab", l: 116 * a - 16, a: 500 * (s - a), b: 200 * (a - o) };
|
|
2286
2286
|
return n !== void 0 && (l.alpha = n), l;
|
|
2287
2287
|
}, Xv = (r) => {
|
|
2288
2288
|
let t = Nh(t0(r));
|
|
@@ -2315,16 +2315,16 @@ const jh = { mode: "lch", toMode: { lab: ur, rgb: (r) => Kv(ur(r)) }, fromMode:
|
|
|
2315
2315
|
e === void 0 && (e = 0);
|
|
2316
2316
|
let s = { mode: "luv", l: r, u: t ? t * Math.cos(e / 180 * Math.PI) : 0, v: t ? t * Math.sin(e / 180 * Math.PI) : 0 };
|
|
2317
2317
|
return n !== void 0 && (s.alpha = n), s;
|
|
2318
|
-
}, Jv = (r, t, e) => 4 * r / (r + 15 * t + 3 * e), tx = (r, t, e) => 9 * t / (r + 15 * t + 3 * e), $A = Jv(
|
|
2318
|
+
}, Jv = (r, t, e) => 4 * r / (r + 15 * t + 3 * e), tx = (r, t, e) => 9 * t / (r + 15 * t + 3 * e), $A = Jv(p1.X, p1.Y, p1.Z), YA = tx(p1.X, p1.Y, p1.Z), JA = (r) => r <= Bh ? zo * r : 116 * Math.cbrt(r) - 16, zu = ({ x: r, y: t, z: e, alpha: n }) => {
|
|
2319
2319
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2320
|
-
let s = JA(t /
|
|
2320
|
+
let s = JA(t / p1.Y), a = Jv(r, t, e), o = tx(r, t, e);
|
|
2321
2321
|
!isFinite(a) || !isFinite(o) ? s = a = o = 0 : (a = 13 * s * (a - $A), o = 13 * s * (o - YA));
|
|
2322
2322
|
let l = { mode: "luv", l: s, u: a, v: o };
|
|
2323
2323
|
return n !== void 0 && (l.alpha = n), l;
|
|
2324
|
-
}, tH = (r, t, e) => 4 * r / (r + 15 * t + 3 * e), eH = (r, t, e) => 9 * t / (r + 15 * t + 3 * e), iH = tH(
|
|
2324
|
+
}, tH = (r, t, e) => 4 * r / (r + 15 * t + 3 * e), eH = (r, t, e) => 9 * t / (r + 15 * t + 3 * e), iH = tH(p1.X, p1.Y, p1.Z), rH = eH(p1.X, p1.Y, p1.Z), Wu = ({ l: r, u: t, v: e, alpha: n }) => {
|
|
2325
2325
|
if (r === void 0 && (r = 0), r === 0) return { mode: "xyz50", x: 0, y: 0, z: 0 };
|
|
2326
2326
|
t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2327
|
-
let s = t / (13 * r) + iH, a = e / (13 * r) + rH, o =
|
|
2327
|
+
let s = t / (13 * r) + iH, a = e / (13 * r) + rH, o = p1.Y * (r <= 8 ? r / zo : Math.pow((r + 16) / 116, 3)), l = o * (9 * s) / (4 * a), u = o * (12 - 3 * s - 20 * a) / (4 * a), h = { mode: "xyz50", x: l, y: o, z: u };
|
|
2328
2328
|
return n !== void 0 && (h.alpha = n), h;
|
|
2329
2329
|
}, nH = (r) => $v(zu(t0(r))), sH = (r) => J5(Wu(Yv(r))), aH = { mode: "lchuv", toMode: { luv: Yv, rgb: sH }, fromMode: { rgb: nH, luv: $v }, channels: ["l", "c", "h", "alpha"], parse: ["--lchuv"], serialize: "--lchuv", ranges: { l: [0, 100], c: [0, 176.956], h: [0, 360] }, interpolate: { h: { use: _t, fixup: Ai }, c: _t, l: _t, alpha: { use: _t, fixup: H1 } }, difference: { h: Ro }, average: { h: Hi } }, oH = { ...Nn, mode: "lrgb", toMode: { rgb: jn }, fromMode: { rgb: Un }, parse: ["srgb-linear"], serialize: "srgb-linear" }, lH = { mode: "luv", toMode: { xyz50: Wu, rgb: (r) => J5(Wu(r)) }, fromMode: { xyz50: zu, rgb: (r) => zu(t0(r)) }, channels: ["l", "u", "v", "alpha"], parse: ["--luv"], serialize: "--luv", ranges: { l: [0, 100], u: [-84.936, 175.042], v: [-125.882, 87.243] }, interpolate: { l: _t, u: _t, v: _t, alpha: { use: _t, fixup: H1 } } }, ex = ({ r, g: t, b: e, alpha: n }) => {
|
|
2330
2330
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
@@ -2825,7 +2825,7 @@ function ux(r, t, e) {
|
|
|
2825
2825
|
let o = Math.sin(a), l = 1 - Math.cos(a);
|
|
2826
2826
|
return t && ([o, l] = [l, o]), { x: o, y: l };
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function m2(r, ...t) {
|
|
2829
2829
|
const e = { [r.name]: r }, n = Object.getOwnPropertyDescriptor(e, r.name);
|
|
2830
2830
|
if (n) for (let s = t.length - 1; s >= 0; s--) t[s](e, r.name, n);
|
|
2831
2831
|
}
|
|
@@ -2852,7 +2852,7 @@ function e1(r) {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
};
|
|
2854
2854
|
}
|
|
2855
|
-
|
|
2855
|
+
m2(JH, e1());
|
|
2856
2856
|
function* JH(r, t, e, n, s, a) {
|
|
2857
2857
|
const o = typeof n == "number" ? n : 1e-3;
|
|
2858
2858
|
a = typeof n == "number" ? a : s;
|
|
@@ -2989,7 +2989,7 @@ function hx(r, t = 0, e = 1) {
|
|
|
2989
2989
|
return Nt(t, e, r);
|
|
2990
2990
|
}
|
|
2991
2991
|
var EM = gM(), AM = yM(), HM = vM(), MM = _M(), wM = $h(), CM = SM(), DM = xM(), Tx = LM(), OM = bM();
|
|
2992
|
-
|
|
2992
|
+
m2(nr, e1());
|
|
2993
2993
|
function* nr(r, t, e) {
|
|
2994
2994
|
const n = Si(), s = n.time(), a = n.time() + r;
|
|
2995
2995
|
for (t(0, 0); a > n.fixed; ) {
|
|
@@ -3000,7 +3000,7 @@ function* nr(r, t, e) {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
new t3();
|
|
3002
3002
|
var c3 = ((r) => (r[r.Middle = 3] = "Middle", r[r.Top = 5] = "Top", r[r.Bottom = 9] = "Bottom", r[r.Left = 18] = "Left", r[r.Right = 34] = "Right", r[r.TopLeft = 20] = "TopLeft", r[r.TopRight = 36] = "TopRight", r[r.BottomLeft = 24] = "BottomLeft", r[r.BottomRight = 40] = "BottomRight", r))(c3 || {});
|
|
3003
|
-
|
|
3003
|
+
m2(Ko, e1());
|
|
3004
3004
|
function* Ko(r, ...t) {
|
|
3005
3005
|
let e = true;
|
|
3006
3006
|
typeof r == "boolean" ? e = r : t.push(r);
|
|
@@ -3016,27 +3016,27 @@ function* Ko(r, ...t) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
n.time(Math.max(a, o));
|
|
3018
3018
|
}
|
|
3019
|
-
|
|
3019
|
+
m2(Jt, e1());
|
|
3020
3020
|
function* Jt(...r) {
|
|
3021
3021
|
for (const t of r) yield t;
|
|
3022
3022
|
yield* Ko(...r);
|
|
3023
3023
|
}
|
|
3024
|
-
|
|
3024
|
+
m2(IM, e1());
|
|
3025
3025
|
function* IM(...r) {
|
|
3026
3026
|
for (const t of r) yield t;
|
|
3027
3027
|
yield* Ko(false, ...r);
|
|
3028
3028
|
}
|
|
3029
|
-
|
|
3029
|
+
m2(VM, e1());
|
|
3030
3030
|
function* VM(...r) {
|
|
3031
3031
|
for (const t of r) "next" in t ? yield* t : t();
|
|
3032
3032
|
}
|
|
3033
|
-
|
|
3033
|
+
m2(Ft, e1());
|
|
3034
3034
|
function* Ft(r = 0, t) {
|
|
3035
3035
|
const e = Si(), n = Xh().framesToSeconds(1), s = e.time() + r;
|
|
3036
3036
|
for (; s - n > e.fixed; ) yield;
|
|
3037
3037
|
e.time(s), t && (yield* t);
|
|
3038
3038
|
}
|
|
3039
|
-
|
|
3039
|
+
m2(Yi, e1());
|
|
3040
3040
|
function* Yi(r, t) {
|
|
3041
3041
|
yield* Ft(r), "next" in t ? yield* t : t();
|
|
3042
3042
|
}
|
|
@@ -3064,7 +3064,7 @@ yield* loop(10, () => rect().opacity(0).opacity(1, 1));
|
|
|
3064
3064
|
// ^ iteration count
|
|
3065
3065
|
\`\`\`
|
|
3066
3066
|
`;
|
|
3067
|
-
|
|
3067
|
+
m2(kM, e1());
|
|
3068
3068
|
function* kM(r, t) {
|
|
3069
3069
|
if (typeof r != "number" && (t = r, r = 1 / 0), r === 1 / 0 && Si().parent === null) {
|
|
3070
3070
|
Te().error({ message: "Tried to execute an infinite loop in the main thread.", remarks: PM, stack: new Error().stack });
|
|
@@ -3075,7 +3075,7 @@ function* kM(r, t) {
|
|
|
3075
3075
|
n ? yield* n : yield;
|
|
3076
3076
|
}
|
|
3077
3077
|
}
|
|
3078
|
-
|
|
3078
|
+
m2(RM, e1());
|
|
3079
3079
|
function* RM(r, t) {
|
|
3080
3080
|
const e = Si(), n = Xh().framesToSeconds(1), s = e.time() + r;
|
|
3081
3081
|
let a = 0;
|
|
@@ -3103,7 +3103,7 @@ function qQ(r, t) {
|
|
|
3103
3103
|
let e;
|
|
3104
3104
|
return typeof r == "string" ? (e = t(), Va(e, r)) : (e = r(), Va(e, e)), e;
|
|
3105
3105
|
}
|
|
3106
|
-
|
|
3106
|
+
m2(BM, e1());
|
|
3107
3107
|
function* BM(r, ...t) {
|
|
3108
3108
|
for (const e of t) yield e, yield* Ft(r);
|
|
3109
3109
|
yield* Ko(...t);
|
|
@@ -3306,7 +3306,7 @@ var cr = class extends s1 {
|
|
|
3306
3306
|
function NM(r, t) {
|
|
3307
3307
|
return new FM(r, t).toSignal();
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function C2(r, t = t4, e) {
|
|
3310
3310
|
return new cr(r, t, e).toSignal();
|
|
3311
3311
|
}
|
|
3312
3312
|
var Qx = class Gi {
|
|
@@ -3542,7 +3542,7 @@ Ze.topLeft = new Ze(-1, -1);
|
|
|
3542
3542
|
Ze.topRight = new Ze(1, -1);
|
|
3543
3543
|
Ze.bottomLeft = new Ze(-1, 1);
|
|
3544
3544
|
Ze.bottomRight = new Ze(1, 1);
|
|
3545
|
-
var Z = Ze, mn = class
|
|
3545
|
+
var Z = Ze, mn = class T2 {
|
|
3546
3546
|
constructor(t, e, n, s, a, o) {
|
|
3547
3547
|
if (this.values = new Float32Array(6), arguments.length === 0) {
|
|
3548
3548
|
this.values = new Float32Array([1, 0, 0, 1, 0, 0]);
|
|
@@ -3556,7 +3556,7 @@ var Z = Ze, mn = class h2 {
|
|
|
3556
3556
|
this.values[0] = t.m11, this.values[1] = t.m12, this.values[2] = t.m21, this.values[3] = t.m22, this.values[4] = t.m41, this.values[5] = t.m42;
|
|
3557
3557
|
return;
|
|
3558
3558
|
}
|
|
3559
|
-
if (t instanceof
|
|
3559
|
+
if (t instanceof T2) {
|
|
3560
3560
|
this.values = t.values;
|
|
3561
3561
|
return;
|
|
3562
3562
|
}
|
|
@@ -3577,13 +3577,13 @@ var Z = Ze, mn = class h2 {
|
|
|
3577
3577
|
this.values[0] = l.x, this.values[1] = l.y, this.values[2] = u.x, this.values[3] = u.y, this.values[4] = h.x, this.values[5] = h.y;
|
|
3578
3578
|
}
|
|
3579
3579
|
static fromRotation(t) {
|
|
3580
|
-
return
|
|
3580
|
+
return T2.identity.rotate(t);
|
|
3581
3581
|
}
|
|
3582
3582
|
static fromTranslation(t) {
|
|
3583
|
-
return
|
|
3583
|
+
return T2.identity.translate(new Z(t));
|
|
3584
3584
|
}
|
|
3585
3585
|
static fromScaling(t) {
|
|
3586
|
-
return
|
|
3586
|
+
return T2.identity.scale(new Z(t));
|
|
3587
3587
|
}
|
|
3588
3588
|
get x() {
|
|
3589
3589
|
return new Z(this.values[0], this.values[1]);
|
|
@@ -3651,7 +3651,7 @@ var Z = Ze, mn = class h2 {
|
|
|
3651
3651
|
get inverse() {
|
|
3652
3652
|
const t = this.values[0], e = this.values[1], n = this.values[2], s = this.values[3], a = this.values[4], o = this.values[5];
|
|
3653
3653
|
let l = t * s - e * n;
|
|
3654
|
-
return l ? (l = 1 / l, new
|
|
3654
|
+
return l ? (l = 1 / l, new T2(s * l, -e * l, -n * l, t * l, (n * o - s * a) * l, (e * a - t * o) * l)) : null;
|
|
3655
3655
|
}
|
|
3656
3656
|
get determinant() {
|
|
3657
3657
|
return this.values[0] * this.values[3] - this.values[1] * this.values[2];
|
|
@@ -3667,32 +3667,32 @@ var Z = Ze, mn = class h2 {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
mul(t) {
|
|
3669
3669
|
const e = this.values[0], n = this.values[1], s = this.values[2], a = this.values[3], o = this.values[4], l = this.values[5], u = t.values[0], h = t.values[1], T = t.values[2], f = t.values[3], d = t.values[4], p = t.values[5];
|
|
3670
|
-
return new
|
|
3670
|
+
return new T2(e * u + s * h, n * u + a * h, e * T + s * f, n * T + a * f, e * d + s * p + o, n * d + a * p + l);
|
|
3671
3671
|
}
|
|
3672
3672
|
rotate(t, e = true) {
|
|
3673
3673
|
e && (t *= $i);
|
|
3674
3674
|
const n = this.values[0], s = this.values[1], a = this.values[2], o = this.values[3], l = this.values[4], u = this.values[5], h = Math.sin(t), T = Math.cos(t);
|
|
3675
|
-
return new
|
|
3675
|
+
return new T2(n * T + a * h, s * T + o * h, n * -h + a * T, s * -h + o * T, l, u);
|
|
3676
3676
|
}
|
|
3677
3677
|
scale(t) {
|
|
3678
3678
|
const e = new Z(t);
|
|
3679
|
-
return new
|
|
3679
|
+
return new T2(this.values[0] * e.x, this.values[1] * e.x, this.values[2] * e.y, this.values[3] * e.y, this.values[4], this.values[5]);
|
|
3680
3680
|
}
|
|
3681
3681
|
mulScalar(t) {
|
|
3682
|
-
return new
|
|
3682
|
+
return new T2(this.values[0] * t, this.values[1] * t, this.values[2] * t, this.values[3] * t, this.values[4] * t, this.values[5] * t);
|
|
3683
3683
|
}
|
|
3684
3684
|
translate(t) {
|
|
3685
3685
|
const e = new Z(t);
|
|
3686
|
-
return new
|
|
3686
|
+
return new T2(this.values[0], this.values[1], this.values[2], this.values[3], this.values[0] * e.x + this.values[2] * e.y + this.values[4], this.values[1] * e.x + this.values[3] * e.y + this.values[5]);
|
|
3687
3687
|
}
|
|
3688
3688
|
add(t) {
|
|
3689
|
-
return new
|
|
3689
|
+
return new T2(this.values[0] + t.values[0], this.values[1] + t.values[1], this.values[2] + t.values[2], this.values[3] + t.values[3], this.values[4] + t.values[4], this.values[5] + t.values[5]);
|
|
3690
3690
|
}
|
|
3691
3691
|
sub(t) {
|
|
3692
|
-
return new
|
|
3692
|
+
return new T2(this.values[0] - t.values[0], this.values[1] - t.values[1], this.values[2] - t.values[2], this.values[3] - t.values[3], this.values[4] - t.values[4], this.values[5] - t.values[5]);
|
|
3693
3693
|
}
|
|
3694
3694
|
toSymbol() {
|
|
3695
|
-
return
|
|
3695
|
+
return T2.symbol;
|
|
3696
3696
|
}
|
|
3697
3697
|
toUniform(t, e) {
|
|
3698
3698
|
t.uniformMatrix3x2fv(e, false, this.values);
|
|
@@ -3708,7 +3708,7 @@ mn.symbol = Symbol.for("@twick/core/types/Matrix2D");
|
|
|
3708
3708
|
mn.identity = new mn(1, 0, 0, 1, 0, 0);
|
|
3709
3709
|
mn.zero = new mn(0, 0, 0, 0, 0, 0);
|
|
3710
3710
|
var w5 = mn;
|
|
3711
|
-
function
|
|
3711
|
+
function m1(r, t) {
|
|
3712
3712
|
const e = new w5(t);
|
|
3713
3713
|
return new Z(r.x * e.scaleX + r.y * e.skewY + e.translateX, r.x * e.skewX + r.y * e.scaleY + e.translateY);
|
|
3714
3714
|
}
|
|
@@ -3820,10 +3820,10 @@ var mx = class n2 {
|
|
|
3820
3820
|
return new n2(Math.floor(this.x), Math.floor(this.y), Math.ceil(this.width + 1), Math.ceil(this.height + 1));
|
|
3821
3821
|
}
|
|
3822
3822
|
transform(t) {
|
|
3823
|
-
return new n2(
|
|
3823
|
+
return new n2(m1(this.position, t), Ti(this.size, t));
|
|
3824
3824
|
}
|
|
3825
3825
|
transformCorners(t) {
|
|
3826
|
-
return this.corners.map((e) =>
|
|
3826
|
+
return this.corners.map((e) => m1(e, t));
|
|
3827
3827
|
}
|
|
3828
3828
|
expand(t) {
|
|
3829
3829
|
const e = new dx(t), n = new n2(this);
|
|
@@ -3865,13 +3865,13 @@ function UM(r) {
|
|
|
3865
3865
|
const t = r >> 16 & 255, e = r >> 8 & 255, n = r & 255;
|
|
3866
3866
|
return [t / 255, e / 255, n / 255, 1];
|
|
3867
3867
|
}
|
|
3868
|
-
var gx = class
|
|
3868
|
+
var gx = class x2 {
|
|
3869
3869
|
constructor(t) {
|
|
3870
|
-
if (this.symbol =
|
|
3870
|
+
if (this.symbol = x2.symbol, t == null) {
|
|
3871
3871
|
this.r = 0, this.g = 0, this.b = 0, this.a = 1;
|
|
3872
3872
|
return;
|
|
3873
3873
|
}
|
|
3874
|
-
if (t instanceof
|
|
3874
|
+
if (t instanceof x2) {
|
|
3875
3875
|
this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a;
|
|
3876
3876
|
return;
|
|
3877
3877
|
}
|
|
@@ -3897,14 +3897,14 @@ var gx = class v2 {
|
|
|
3897
3897
|
throw new Error(`Invalid color value provided: ${t}`);
|
|
3898
3898
|
}
|
|
3899
3899
|
static lerp(t, e, n, s = "lch") {
|
|
3900
|
-
const a = t instanceof
|
|
3901
|
-
return new
|
|
3900
|
+
const a = t instanceof x2 ? t : new x2(t ?? void 0), o = e instanceof x2 ? e : new x2(e ?? void 0), l = { mode: "rgb", r: a.r, g: a.g, b: a.b }, u = { mode: "rgb", r: o.r, g: o.g, b: o.b }, f = FH([l, u], s ?? "lch")(n), p = E5("rgb")(f), g = a.a + (o.a - a.a) * n, y = p ? ye(0, 1, p.r) : 0, c = p ? ye(0, 1, p.g) : 0, Q = p ? ye(0, 1, p.b) : 0;
|
|
3901
|
+
return new x2({ r: y * 255, g: c * 255, b: Q * 255, a: ye(0, 1, g) });
|
|
3902
3902
|
}
|
|
3903
3903
|
static createLerp(t = "lch") {
|
|
3904
|
-
return (e, n, s) =>
|
|
3904
|
+
return (e, n, s) => x2.lerp(e, n, s, t);
|
|
3905
3905
|
}
|
|
3906
|
-
static createSignal(t, e =
|
|
3907
|
-
return new cr(t, e, void 0, (n) => n instanceof
|
|
3906
|
+
static createSignal(t, e = x2.lerp) {
|
|
3907
|
+
return new cr(t, e, void 0, (n) => n instanceof x2 ? n : new x2(n)).toSignal();
|
|
3908
3908
|
}
|
|
3909
3909
|
toSymbol() {
|
|
3910
3910
|
return this.symbol;
|
|
@@ -3930,7 +3930,7 @@ var gx = class v2 {
|
|
|
3930
3930
|
return PH({ mode: "rgb", r: this.r, g: this.g, b: this.b, alpha: this.a });
|
|
3931
3931
|
}
|
|
3932
3932
|
lerp(t, e, n = "lch") {
|
|
3933
|
-
return
|
|
3933
|
+
return x2.lerp(this, t, e, n);
|
|
3934
3934
|
}
|
|
3935
3935
|
};
|
|
3936
3936
|
gx.symbol = Symbol.for("@twick/core/types/Color");
|
|
@@ -4008,12 +4008,12 @@ yield* all(
|
|
|
4008
4008
|
);
|
|
4009
4009
|
\`\`\`
|
|
4010
4010
|
`;
|
|
4011
|
-
|
|
4011
|
+
m2(vx, e1());
|
|
4012
4012
|
function* vx() {
|
|
4013
4013
|
}
|
|
4014
4014
|
var Jl = class {
|
|
4015
4015
|
constructor(r) {
|
|
4016
|
-
this.runner = r, this.children = [], this.time =
|
|
4016
|
+
this.runner = r, this.children = [], this.time = C2(0), this.parent = null, this.isCanceled = false, this.isPaused = false, this.fixedTime = 0, this.queue = [], this.runner.task && (Te().error({ message: `The generator "${fx(this.runner)}" is already being executed by another thread.`, remarks: ZM }), this.runner = vx()), this.runner.task = this;
|
|
4017
4017
|
}
|
|
4018
4018
|
get fixed() {
|
|
4019
4019
|
return this.fixedTime;
|
|
@@ -4054,7 +4054,7 @@ var Jl = class {
|
|
|
4054
4054
|
function KM(r) {
|
|
4055
4055
|
return typeof (r == null ? void 0 : r.then) == "function";
|
|
4056
4056
|
}
|
|
4057
|
-
|
|
4057
|
+
m2(xx, e1());
|
|
4058
4058
|
function* xx(r, t) {
|
|
4059
4059
|
const e = Xh(), n = r();
|
|
4060
4060
|
Va(n, "root");
|
|
@@ -4234,7 +4234,7 @@ void main() {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
get(r, t) {
|
|
4236
4236
|
var e;
|
|
4237
|
-
return (e = this.signals)[r] ?? (e[r] =
|
|
4237
|
+
return (e = this.signals)[r] ?? (e[r] = C2(this.variables[r] ?? t)), () => this.signals[r]();
|
|
4238
4238
|
}
|
|
4239
4239
|
updateSignals(r) {
|
|
4240
4240
|
this.variables = r, Object.keys(r).map((t) => {
|
|
@@ -4243,7 +4243,7 @@ void main() {
|
|
|
4243
4243
|
}
|
|
4244
4244
|
}, lw = class {
|
|
4245
4245
|
constructor(r) {
|
|
4246
|
-
this.cache = new Zu({ firstFrame: 0, transitionDuration: 0, duration: 0, lastFrame: 0 }), this.reloaded = new t3(), this.recalculated = new t3(), this.thread = new Zu(null), this.renderLifecycle = new t3(), this.afterReset = new t3(), this.lifecycleEvents = new XM(this), this.previousScene = null, this.runner = null, this.state = 0, this.cached = false, this.counters = {}, this.name = r.name, this.size = r.size, this.resolutionScale = r.resolutionScale, this.logger = r.logger, this.playback = r.playback, this.runnerFactory = r.config, this.creationStack = r.stack, this.experimentalFeatures = r.experimentalFeatures ?? false,
|
|
4246
|
+
this.cache = new Zu({ firstFrame: 0, transitionDuration: 0, duration: 0, lastFrame: 0 }), this.reloaded = new t3(), this.recalculated = new t3(), this.thread = new Zu(null), this.renderLifecycle = new t3(), this.afterReset = new t3(), this.lifecycleEvents = new XM(this), this.previousScene = null, this.runner = null, this.state = 0, this.cached = false, this.counters = {}, this.name = r.name, this.size = r.size, this.resolutionScale = r.resolutionScale, this.logger = r.logger, this.playback = r.playback, this.runnerFactory = r.config, this.creationStack = r.stack, this.experimentalFeatures = r.experimentalFeatures ?? false, m2(this.runnerFactory, e1(this.name)), this.variables = new ow(this), this.shaders = new sw(this, r.sharedWebGLContext), this.slides = new aw(this), this.previousOnTop = false;
|
|
4247
4247
|
}
|
|
4248
4248
|
get firstFrame() {
|
|
4249
4249
|
return this.cache.current.firstFrame;
|
|
@@ -5346,10 +5346,10 @@ class j2 {
|
|
|
5346
5346
|
}
|
|
5347
5347
|
j2.none = new j2("", /* @__PURE__ */ Object.create(null), 0, 8);
|
|
5348
5348
|
const as = /* @__PURE__ */ new WeakMap(), KQ = /* @__PURE__ */ new WeakMap();
|
|
5349
|
-
var
|
|
5349
|
+
var c1;
|
|
5350
5350
|
(function(r) {
|
|
5351
5351
|
r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays", r[r.EnterBracketed = 16] = "EnterBracketed";
|
|
5352
|
-
})(
|
|
5352
|
+
})(c1 || (c1 = {}));
|
|
5353
5353
|
class z1 {
|
|
5354
5354
|
constructor(t, e, n, s, a) {
|
|
5355
5355
|
if (this.type = t, this.children = e, this.positions = n, this.length = s, this.props = null, a && a.length) {
|
|
@@ -5389,8 +5389,8 @@ class z1 {
|
|
|
5389
5389
|
return qw(this, t, e);
|
|
5390
5390
|
}
|
|
5391
5391
|
iterate(t) {
|
|
5392
|
-
let { enter: e, leave: n, from: s = 0, to: a = this.length } = t, o = t.mode || 0, l = (o &
|
|
5393
|
-
for (let u = this.cursor(o |
|
|
5392
|
+
let { enter: e, leave: n, from: s = 0, to: a = this.length } = t, o = t.mode || 0, l = (o & c1.IncludeAnonymous) > 0;
|
|
5393
|
+
for (let u = this.cursor(o | c1.IncludeAnonymous); ; ) {
|
|
5394
5394
|
let h = false;
|
|
5395
5395
|
if (u.from <= a && u.to >= s && (!l && u.type.isAnonymous || e(u) !== false)) {
|
|
5396
5396
|
if (u.firstChild()) continue;
|
|
@@ -5500,7 +5500,7 @@ function C5(r, t, e, n) {
|
|
|
5500
5500
|
if (!o) return r;
|
|
5501
5501
|
r = o;
|
|
5502
5502
|
}
|
|
5503
|
-
let a = n ? 0 :
|
|
5503
|
+
let a = n ? 0 : c1.IgnoreOverlays;
|
|
5504
5504
|
if (n) for (let o = r, l = o.parent; l; o = l, l = o.parent) o instanceof N2 && o.index < 0 && ((s = l.enter(t, e, a)) === null || s === void 0 ? void 0 : s.from) != o.from && (r = l);
|
|
5505
5505
|
for (; ; ) {
|
|
5506
5506
|
let o = r.enter(t, e, a);
|
|
@@ -5562,20 +5562,20 @@ class N2 extends bx {
|
|
|
5562
5562
|
for (let l = this; ; ) {
|
|
5563
5563
|
for (let { children: u, positions: h } = l._tree, T = e > 0 ? u.length : -1; t != T; t += e) {
|
|
5564
5564
|
let f = u[t], d = h[t] + l.from;
|
|
5565
|
-
if (!(!(a &
|
|
5565
|
+
if (!(!(a & c1.EnterBracketed && f instanceof z1 && ((o = f5.get(f)) === null || o === void 0 ? void 0 : o.overlay) === null && (d >= n || d + f.length <= n)) && !Lx(s, n, d, d + f.length))) {
|
|
5566
5566
|
if (f instanceof hr) {
|
|
5567
|
-
if (a &
|
|
5567
|
+
if (a & c1.ExcludeBuffers) continue;
|
|
5568
5568
|
let p = f.findChild(0, f.buffer.length, e, n - d, s);
|
|
5569
5569
|
if (p > -1) return new Ji(new zw(l, f, t, d), null, p);
|
|
5570
|
-
} else if (a &
|
|
5570
|
+
} else if (a & c1.IncludeAnonymous || !f.type.isAnonymous || Jh(f)) {
|
|
5571
5571
|
let p;
|
|
5572
|
-
if (!(a &
|
|
5572
|
+
if (!(a & c1.IgnoreMounts) && (p = f5.get(f)) && !p.overlay) return new N2(p.tree, d, t, l);
|
|
5573
5573
|
let g = new N2(f, d, t, l);
|
|
5574
|
-
return a &
|
|
5574
|
+
return a & c1.IncludeAnonymous || !g.type.isAnonymous ? g : g.nextChild(e < 0 ? f.children.length - 1 : 0, e, n, s, a);
|
|
5575
5575
|
}
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
5578
|
-
if (a &
|
|
5578
|
+
if (a & c1.IncludeAnonymous || !l.type.isAnonymous || (l.index >= 0 ? t = l.index + e : t = e < 0 ? -1 : l._parent._tree.children.length, l = l._parent, !l)) return null;
|
|
5579
5579
|
}
|
|
5580
5580
|
}
|
|
5581
5581
|
get firstChild() {
|
|
@@ -5595,8 +5595,8 @@ class N2 extends bx {
|
|
|
5595
5595
|
}
|
|
5596
5596
|
enter(t, e, n = 0) {
|
|
5597
5597
|
let s;
|
|
5598
|
-
if (!(n &
|
|
5599
|
-
let a = t - this.from, o = n &
|
|
5598
|
+
if (!(n & c1.IgnoreOverlays) && (s = f5.get(this._tree)) && s.overlay) {
|
|
5599
|
+
let a = t - this.from, o = n & c1.EnterBracketed && s.bracketed;
|
|
5600
5600
|
for (let { from: l, to: u } of s.overlay) if ((e > 0 || o ? l <= a : l < a) && (e < 0 || o ? u >= a : u > a)) return new N2(s.tree, s.overlay[0].from + this.from, -1, this);
|
|
5601
5601
|
}
|
|
5602
5602
|
return this.nextChild(0, 1, t, e, n);
|
|
@@ -5684,7 +5684,7 @@ class Ji extends bx {
|
|
|
5684
5684
|
return this.type.prop(t);
|
|
5685
5685
|
}
|
|
5686
5686
|
enter(t, e, n = 0) {
|
|
5687
|
-
if (n &
|
|
5687
|
+
if (n & c1.ExcludeBuffers) return null;
|
|
5688
5688
|
let { buffer: s } = this.context, a = s.findChild(this.index + 4, s.buffer[this.index + 3], e > 0 ? 1 : -1, t - this.context.start, e);
|
|
5689
5689
|
return a < 0 ? null : new Ji(this.context, this, a);
|
|
5690
5690
|
}
|
|
@@ -5754,7 +5754,7 @@ class tc {
|
|
|
5754
5754
|
return this.type.name;
|
|
5755
5755
|
}
|
|
5756
5756
|
constructor(t, e = 0) {
|
|
5757
|
-
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = e & ~
|
|
5757
|
+
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = e & ~c1.EnterBracketed, t instanceof N2) this.yieldNode(t);
|
|
5758
5758
|
else {
|
|
5759
5759
|
this._tree = t.context.parent, this.buffer = t.context;
|
|
5760
5760
|
for (let n = t._parent; n; n = n._parent) this.stack.unshift(n.index);
|
|
@@ -5793,12 +5793,12 @@ class tc {
|
|
|
5793
5793
|
return this.enterChild(-1, t, -2);
|
|
5794
5794
|
}
|
|
5795
5795
|
enter(t, e, n = this.mode) {
|
|
5796
|
-
return this.buffer ? n &
|
|
5796
|
+
return this.buffer ? n & c1.ExcludeBuffers ? false : this.enterChild(1, t, e) : this.yield(this._tree.enter(t, e, n));
|
|
5797
5797
|
}
|
|
5798
5798
|
parent() {
|
|
5799
|
-
if (!this.buffer) return this.yieldNode(this.mode &
|
|
5799
|
+
if (!this.buffer) return this.yieldNode(this.mode & c1.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
5800
5800
|
if (this.stack.length) return this.yieldBuf(this.stack.pop());
|
|
5801
|
-
let t = this.mode &
|
|
5801
|
+
let t = this.mode & c1.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
5802
5802
|
return this.buffer = null, this.yieldNode(t);
|
|
5803
5803
|
}
|
|
5804
5804
|
sibling(t) {
|
|
@@ -5829,7 +5829,7 @@ class tc {
|
|
|
5829
5829
|
} else ({ index: e, _parent: n } = this._tree);
|
|
5830
5830
|
for (; n; { index: e, _parent: n } = n) if (e > -1) for (let a = e + t, o = t < 0 ? -1 : n._tree.children.length; a != o; a += t) {
|
|
5831
5831
|
let l = n._tree.children[a];
|
|
5832
|
-
if (this.mode &
|
|
5832
|
+
if (this.mode & c1.IncludeAnonymous || l instanceof hr || !l.type.isAnonymous || Jh(l)) return false;
|
|
5833
5833
|
}
|
|
5834
5834
|
return true;
|
|
5835
5835
|
}
|
|
@@ -6479,9 +6479,9 @@ function e3(r, t, e = true, n = true) {
|
|
|
6479
6479
|
return Yw(r, t, e, n);
|
|
6480
6480
|
}
|
|
6481
6481
|
const ic = /\r\n?|\n/;
|
|
6482
|
-
var
|
|
6482
|
+
var A2 = function(r) {
|
|
6483
6483
|
return r[r.Simple = 0] = "Simple", r[r.TrackDel = 1] = "TrackDel", r[r.TrackBefore = 2] = "TrackBefore", r[r.TrackAfter = 3] = "TrackAfter", r;
|
|
6484
|
-
}(
|
|
6484
|
+
}(A2 || (A2 = {}));
|
|
6485
6485
|
class mi {
|
|
6486
6486
|
constructor(t) {
|
|
6487
6487
|
this.sections = t;
|
|
@@ -6525,7 +6525,7 @@ class mi {
|
|
|
6525
6525
|
mapDesc(t, e = false) {
|
|
6526
6526
|
return t.empty ? this : nc(this, t, e);
|
|
6527
6527
|
}
|
|
6528
|
-
mapPos(t, e = -1, n =
|
|
6528
|
+
mapPos(t, e = -1, n = A2.Simple) {
|
|
6529
6529
|
let s = 0, a = 0;
|
|
6530
6530
|
for (let o = 0; o < this.sections.length; ) {
|
|
6531
6531
|
let l = this.sections[o++], u = this.sections[o++], h = s + l;
|
|
@@ -6533,7 +6533,7 @@ class mi {
|
|
|
6533
6533
|
if (h > t) return a + (t - s);
|
|
6534
6534
|
a += l;
|
|
6535
6535
|
} else {
|
|
6536
|
-
if (n !=
|
|
6536
|
+
if (n != A2.Simple && h >= t && (n == A2.TrackDel && s < t && h > t || n == A2.TrackBefore && s < t || n == A2.TrackAfter && h > t)) return null;
|
|
6537
6537
|
if (h > t || h == t && e < 0 && !l) return t == s || e < 0 ? a : a + u;
|
|
6538
6538
|
a += u;
|
|
6539
6539
|
}
|
|
@@ -7427,7 +7427,7 @@ class e4 {
|
|
|
7427
7427
|
}
|
|
7428
7428
|
e4.prototype.startSide = e4.prototype.endSide = 0;
|
|
7429
7429
|
e4.prototype.point = false;
|
|
7430
|
-
e4.prototype.mapMode =
|
|
7430
|
+
e4.prototype.mapMode = A2.TrackDel;
|
|
7431
7431
|
function rT(r, t) {
|
|
7432
7432
|
return r == t || r.constructor == t.constructor && r.eq(t);
|
|
7433
7433
|
}
|
|
@@ -7893,9 +7893,9 @@ for (var j1 = 0; j1 < 10; j1++) yn[48 + j1] = yn[96 + j1] = String(j1);
|
|
|
7893
7893
|
for (var j1 = 1; j1 <= 24; j1++) yn[j1 + 111] = "F" + j1;
|
|
7894
7894
|
for (var j1 = 65; j1 <= 90; j1++) yn[j1] = String.fromCharCode(j1 + 32), Qc[j1] = String.fromCharCode(j1);
|
|
7895
7895
|
for (var r9 in yn) Qc.hasOwnProperty(r9) || (Qc[r9] = yn[r9]);
|
|
7896
|
-
let
|
|
7897
|
-
const pc = /Edge\/(\d+)/.exec(
|
|
7898
|
-
var Bt = { mac: hd || /Mac/.test(
|
|
7896
|
+
let H2 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, dc = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
7897
|
+
const pc = /Edge\/(\d+)/.exec(H2.userAgent), zx = /MSIE \d/.test(H2.userAgent), mc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(H2.userAgent), Jo = !!(zx || mc || pc), cd = !Jo && /gecko\/(\d+)/i.test(H2.userAgent), n9 = !Jo && /Chrome\/(\d+)/.exec(H2.userAgent), mC = "webkitFontSmoothing" in dc.documentElement.style, gc = !Jo && /Apple Computer/.test(H2.vendor), hd = gc && (/Mobile\/\w+/.test(H2.userAgent) || H2.maxTouchPoints > 2);
|
|
7898
|
+
var Bt = { mac: hd || /Mac/.test(H2.platform), ie: Jo, ie_version: zx ? dc.documentMode || 6 : mc ? +mc[1] : pc ? +pc[1] : 0, gecko: cd, gecko_version: cd ? +(/Firefox\/(\d+)/.exec(H2.userAgent) || [0, 0])[1] : 0, chrome: !!n9, chrome_version: n9 ? +n9[1] : 0, ios: hd, android: /Android\b/.test(H2.userAgent), webkit_version: mC ? +(/\bAppleWebKit\/(\d+)/.exec(H2.userAgent) || [0, 0])[1] : 0, safari: gc, safari_version: gc ? +(/\bVersion\/(\d+(\.\d+)?)/.exec(H2.userAgent) || [0, 0])[1] : 0, tabSize: dc.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" };
|
|
7899
7899
|
function sT(r, t) {
|
|
7900
7900
|
for (let e in r) e == "class" && t.class ? t.class += " " + r.class : e == "style" && t.style ? t.style += ";" + r.style : t[e] = r[e];
|
|
7901
7901
|
return t;
|
|
@@ -8027,11 +8027,11 @@ class r0 extends i2 {
|
|
|
8027
8027
|
return super.range(t, e);
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
8030
|
-
r0.prototype.mapMode =
|
|
8030
|
+
r0.prototype.mapMode = A2.TrackBefore;
|
|
8031
8031
|
r0.prototype.point = true;
|
|
8032
8032
|
class i4 extends i2 {
|
|
8033
8033
|
constructor(t, e, n, s, a, o) {
|
|
8034
|
-
super(e, n, a, t), this.block = s, this.isReplace = o, this.mapMode = s ? e <= 0 ?
|
|
8034
|
+
super(e, n, a, t), this.block = s, this.isReplace = o, this.mapMode = s ? e <= 0 ? A2.TrackBefore : A2.TrackAfter : A2.TrackDel;
|
|
8035
8035
|
}
|
|
8036
8036
|
get type() {
|
|
8037
8037
|
return this.startSide != this.endSide ? U2.WidgetRange : this.startSide <= 0 ? U2.WidgetBefore : U2.WidgetAfter;
|
|
@@ -8685,7 +8685,7 @@ class Na {
|
|
|
8685
8685
|
}
|
|
8686
8686
|
}
|
|
8687
8687
|
const RC = [];
|
|
8688
|
-
class
|
|
8688
|
+
class g1 {
|
|
8689
8689
|
constructor(t, e, n = 0) {
|
|
8690
8690
|
this.dom = t, this.length = e, this.flags = n, this.parent = null, t.cmTile = this;
|
|
8691
8691
|
}
|
|
@@ -8773,7 +8773,7 @@ class m1 {
|
|
|
8773
8773
|
return t.cmTile;
|
|
8774
8774
|
}
|
|
8775
8775
|
}
|
|
8776
|
-
class i7 extends
|
|
8776
|
+
class i7 extends g1 {
|
|
8777
8777
|
constructor(t) {
|
|
8778
8778
|
super(t, 0), this._children = [];
|
|
8779
8779
|
}
|
|
@@ -8820,7 +8820,7 @@ class r7 extends i7 {
|
|
|
8820
8820
|
nearest(t) {
|
|
8821
8821
|
for (; ; ) {
|
|
8822
8822
|
if (!t) return null;
|
|
8823
|
-
let e =
|
|
8823
|
+
let e = g1.get(t);
|
|
8824
8824
|
if (e && this.owns(e)) return e;
|
|
8825
8825
|
t = t.parentNode;
|
|
8826
8826
|
}
|
|
@@ -8926,7 +8926,7 @@ function FC(r, t) {
|
|
|
8926
8926
|
let e = r.coordsIn(0, 1), n = t.coordsIn(0, 1);
|
|
8927
8927
|
return e && n && n.top < e.bottom;
|
|
8928
8928
|
}
|
|
8929
|
-
class
|
|
8929
|
+
class Q2 extends i7 {
|
|
8930
8930
|
constructor(t, e) {
|
|
8931
8931
|
super(t), this.mark = e;
|
|
8932
8932
|
}
|
|
@@ -8934,11 +8934,11 @@ class f2 extends i7 {
|
|
|
8934
8934
|
return this.mark.attrs;
|
|
8935
8935
|
}
|
|
8936
8936
|
static of(t, e) {
|
|
8937
|
-
let n = new
|
|
8937
|
+
let n = new Q2(e || document.createElement(t.tagName), t);
|
|
8938
8938
|
return e || (n.flags |= 4), n;
|
|
8939
8939
|
}
|
|
8940
8940
|
}
|
|
8941
|
-
class Wr extends
|
|
8941
|
+
class Wr extends g1 {
|
|
8942
8942
|
constructor(t, e) {
|
|
8943
8943
|
super(t, e.length), this.text = e;
|
|
8944
8944
|
}
|
|
@@ -8966,7 +8966,7 @@ class Wr extends m1 {
|
|
|
8966
8966
|
return e || (n.flags |= 2), n;
|
|
8967
8967
|
}
|
|
8968
8968
|
}
|
|
8969
|
-
class n4 extends
|
|
8969
|
+
class n4 extends g1 {
|
|
8970
8970
|
constructor(t, e, n, s) {
|
|
8971
8971
|
super(t, e, s), this.widget = n;
|
|
8972
8972
|
}
|
|
@@ -9008,7 +9008,7 @@ class n4 extends m1 {
|
|
|
9008
9008
|
return a || (a = t.toDOM(e), t.editable || (a.contentEditable = "false")), new n4(a, n, t, s);
|
|
9009
9009
|
}
|
|
9010
9010
|
}
|
|
9011
|
-
class Ua extends
|
|
9011
|
+
class Ua extends g1 {
|
|
9012
9012
|
constructor(t) {
|
|
9013
9013
|
let e = document.createElement("img");
|
|
9014
9014
|
e.className = "cm-widgetBuffer", e.setAttribute("aria-hidden", "true"), super(e, 0, t);
|
|
@@ -9076,18 +9076,18 @@ class jC {
|
|
|
9076
9076
|
let s = n;
|
|
9077
9077
|
for (let l = e.marks.length - 1; l >= 0; l--) {
|
|
9078
9078
|
let u = e.marks[l], h = s.lastChild;
|
|
9079
|
-
if (h instanceof
|
|
9079
|
+
if (h instanceof Q2 && h.mark.eq(u.mark)) h.dom != u.dom && h.setDOM(a9(u.dom)), s = h;
|
|
9080
9080
|
else {
|
|
9081
9081
|
if (this.cache.reused.get(u)) {
|
|
9082
|
-
let f =
|
|
9082
|
+
let f = g1.get(u.dom);
|
|
9083
9083
|
f && f.setDOM(a9(u.dom));
|
|
9084
9084
|
}
|
|
9085
|
-
let T =
|
|
9085
|
+
let T = Q2.of(u.mark, u.dom);
|
|
9086
9086
|
s.append(T), s = T;
|
|
9087
9087
|
}
|
|
9088
9088
|
this.cache.reused.set(u, 2);
|
|
9089
9089
|
}
|
|
9090
|
-
let a =
|
|
9090
|
+
let a = g1.get(t.text);
|
|
9091
9091
|
a && this.cache.reused.set(a, 2);
|
|
9092
9092
|
let o = new Wr(t.text, t.text.nodeValue);
|
|
9093
9093
|
o.flags |= 8, s.append(o);
|
|
@@ -9131,9 +9131,9 @@ class jC {
|
|
|
9131
9131
|
let s = this.curLine;
|
|
9132
9132
|
for (let a = t.length - 1; a >= 0; a--) {
|
|
9133
9133
|
let o = t[a], l;
|
|
9134
|
-
if (e > 0 && (l = s.lastChild) && l instanceof
|
|
9134
|
+
if (e > 0 && (l = s.lastChild) && l instanceof Q2 && l.mark.eq(o)) s = l, e--;
|
|
9135
9135
|
else {
|
|
9136
|
-
let u =
|
|
9136
|
+
let u = Q2.of(o, (n = this.cache.find(Q2, (h) => h.mark.eq(o))) === null || n === void 0 ? void 0 : n.dom);
|
|
9137
9137
|
s.append(u), s = u, e = 0;
|
|
9138
9138
|
}
|
|
9139
9139
|
}
|
|
@@ -9201,7 +9201,7 @@ class GC {
|
|
|
9201
9201
|
return this.textOff = e, n;
|
|
9202
9202
|
}
|
|
9203
9203
|
}
|
|
9204
|
-
const ja = [n4, Ln, Wr,
|
|
9204
|
+
const ja = [n4, Ln, Wr, Q2, Ua, sr, r7];
|
|
9205
9205
|
for (let r = 0; r < ja.length; r++) ja[r].bucket = r;
|
|
9206
9206
|
class zC {
|
|
9207
9207
|
constructor(t) {
|
|
@@ -9272,13 +9272,13 @@ class WC {
|
|
|
9272
9272
|
else if (o.isText()) this.builder.ensureLine(null), !l && u == o.length ? this.builder.addText(o.text, s, a, this.cache.reuse(o)) : (this.cache.add(o), this.builder.addText(o.text.slice(l, u), s, a)), a = s.length;
|
|
9273
9273
|
else if (o.isLine()) o.flags &= -2, this.cache.reused.set(o, 1), this.builder.addLine(o);
|
|
9274
9274
|
else if (o instanceof Ua) this.cache.add(o);
|
|
9275
|
-
else if (o instanceof
|
|
9275
|
+
else if (o instanceof Q2) this.builder.ensureLine(null), this.builder.addMark(o, s, a), this.cache.reused.set(o, 1), a = s.length;
|
|
9276
9276
|
else return false;
|
|
9277
9277
|
this.openWidget = false;
|
|
9278
9278
|
}, enter: (o) => {
|
|
9279
|
-
o.isLine() ? this.builder.addLineStart(o.attrs, this.cache.maybeReuse(o)) : (this.cache.add(o), o instanceof
|
|
9279
|
+
o.isLine() ? this.builder.addLineStart(o.attrs, this.cache.maybeReuse(o)) : (this.cache.add(o), o instanceof Q2 && s.unshift(o.mark)), this.openWidget = false;
|
|
9280
9280
|
}, leave: (o) => {
|
|
9281
|
-
o.isLine() ? s.length && (s.length = a = 0) : o instanceof
|
|
9281
|
+
o.isLine() ? s.length && (s.length = a = 0) : o instanceof Q2 && (s.shift(), a = Math.min(a, s.length));
|
|
9282
9282
|
}, break: () => {
|
|
9283
9283
|
this.builder.addBreak(), this.openWidget = false;
|
|
9284
9284
|
} }), this.text.skip(t);
|
|
@@ -9312,9 +9312,9 @@ class WC {
|
|
|
9312
9312
|
getCompositionContext(t) {
|
|
9313
9313
|
let e = [], n = null;
|
|
9314
9314
|
for (let s = t.parentNode; ; s = s.parentNode) {
|
|
9315
|
-
let a =
|
|
9315
|
+
let a = g1.get(s);
|
|
9316
9316
|
if (s == this.view.contentDOM) break;
|
|
9317
|
-
a instanceof
|
|
9317
|
+
a instanceof Q2 ? e.push(a) : a != null && a.isLine() ? n = a : s.nodeName == "DIV" && !n && s != this.view.contentDOM ? n = new Ln(s, mL) : e.push(Q2.of(new i0({ tagName: s.nodeName.toLowerCase(), attributes: yC(s) }), s));
|
|
9318
9318
|
}
|
|
9319
9319
|
return { line: n, marks: e };
|
|
9320
9320
|
}
|
|
@@ -9339,12 +9339,12 @@ function KC(r) {
|
|
|
9339
9339
|
let t = [];
|
|
9340
9340
|
for (let e = r.parents.length; e > 1; e--) {
|
|
9341
9341
|
let n = e == r.parents.length ? r.tile : r.parents[e].tile;
|
|
9342
|
-
n instanceof
|
|
9342
|
+
n instanceof Q2 && t.push(n.mark);
|
|
9343
9343
|
}
|
|
9344
9344
|
return t;
|
|
9345
9345
|
}
|
|
9346
9346
|
function a9(r) {
|
|
9347
|
-
let t =
|
|
9347
|
+
let t = g1.get(r);
|
|
9348
9348
|
return t && t.setDOM(r.cloneNode()), r;
|
|
9349
9349
|
}
|
|
9350
9350
|
class bn extends t7 {
|
|
@@ -9492,7 +9492,7 @@ class gd {
|
|
|
9492
9492
|
o < 0 ? a = t : a = t.nextSibling;
|
|
9493
9493
|
}
|
|
9494
9494
|
if (a == n.dom.firstChild) return s;
|
|
9495
|
-
for (; a && !
|
|
9495
|
+
for (; a && !g1.get(a); ) a = a.nextSibling;
|
|
9496
9496
|
if (!a) return s + n.length;
|
|
9497
9497
|
for (let o = 0, l = s; ; o++) {
|
|
9498
9498
|
let u = n.children[o];
|
|
@@ -9652,10 +9652,10 @@ function gL(r, t) {
|
|
|
9652
9652
|
if (!e.focusNode) return null;
|
|
9653
9653
|
let n = Xx(e.focusNode, e.focusOffset), s = $x(e.focusNode, e.focusOffset), a = n || s;
|
|
9654
9654
|
if (s && n && s.node != n.node) {
|
|
9655
|
-
let l =
|
|
9655
|
+
let l = g1.get(s.node);
|
|
9656
9656
|
if (!l || l.isText() && l.text != s.node.nodeValue) a = s;
|
|
9657
9657
|
else if (r.docView.lastCompositionAfterCursor) {
|
|
9658
|
-
let u =
|
|
9658
|
+
let u = g1.get(n.node);
|
|
9659
9659
|
!u || u.isText() && u.text != n.node.nodeValue || (a = s);
|
|
9660
9660
|
}
|
|
9661
9661
|
}
|
|
@@ -9941,12 +9941,12 @@ class hD {
|
|
|
9941
9941
|
this.findPointBefore(n, s);
|
|
9942
9942
|
let a = this.text.length;
|
|
9943
9943
|
this.readNode(s);
|
|
9944
|
-
let o =
|
|
9944
|
+
let o = g1.get(s), l = s.nextSibling;
|
|
9945
9945
|
if (l == e) {
|
|
9946
9946
|
o != null && o.breakAfter && !l && n != this.view.contentDOM && this.lineBreak();
|
|
9947
9947
|
break;
|
|
9948
9948
|
}
|
|
9949
|
-
let u =
|
|
9949
|
+
let u = g1.get(l);
|
|
9950
9950
|
(o && u ? o.breakAfter : (o ? o.breakAfter : Ba(s)) || Ba(l) && (s.nodeName != "BR" || o != null && o.isWidget()) && this.text.length > a) && !fD(l, e) && this.lineBreak(), s = l;
|
|
9951
9951
|
}
|
|
9952
9952
|
return this.findPointBefore(n, e), this;
|
|
@@ -9962,7 +9962,7 @@ class hD {
|
|
|
9962
9962
|
}
|
|
9963
9963
|
}
|
|
9964
9964
|
readNode(t) {
|
|
9965
|
-
let e =
|
|
9965
|
+
let e = g1.get(t), n = e && e.overrideDOMText;
|
|
9966
9966
|
if (n != null) {
|
|
9967
9967
|
this.findPointInside(t, n.length);
|
|
9968
9968
|
for (let s = n.iter(); !s.next().done; ) s.lineBreak ? this.lineBreak() : this.append(s.value);
|
|
@@ -9985,7 +9985,7 @@ function TD(r, t, e) {
|
|
|
9985
9985
|
function fD(r, t) {
|
|
9986
9986
|
let e;
|
|
9987
9987
|
for (; !(r == t || !r); r = r.nextSibling) {
|
|
9988
|
-
let n =
|
|
9988
|
+
let n = g1.get(r);
|
|
9989
9989
|
if (!(n != null && n.isWidget())) return false;
|
|
9990
9990
|
n && (e || (e = [])).push(n);
|
|
9991
9991
|
}
|
|
@@ -10277,7 +10277,7 @@ function ED(r, t) {
|
|
|
10277
10277
|
function AD(r, t) {
|
|
10278
10278
|
if (!t.bubbles) return true;
|
|
10279
10279
|
if (t.defaultPrevented) return false;
|
|
10280
|
-
for (let e = t.target, n; e != r.contentDOM; e = e.parentNode) if (!e || e.nodeType == 11 || (n =
|
|
10280
|
+
for (let e = t.target, n; e != r.contentDOM; e = e.parentNode) if (!e || e.nodeType == 11 || (n = g1.get(e)) && n.isWidget() && !n.isHidden && n.widget.ignoreEvent(t)) return false;
|
|
10281
10281
|
return true;
|
|
10282
10282
|
}
|
|
10283
10283
|
const r3 = /* @__PURE__ */ Object.create(null), G2 = /* @__PURE__ */ Object.create(null), SL = Bt.ie && Bt.ie_version < 15 || Bt.ios && Bt.webkit_version < 604;
|
|
@@ -10586,7 +10586,7 @@ var qe = function(r) {
|
|
|
10586
10586
|
return r[r.ByPos = 0] = "ByPos", r[r.ByHeight = 1] = "ByHeight", r[r.ByPosNoHeight = 2] = "ByPosNoHeight", r;
|
|
10587
10587
|
}(qe || (qe = {}));
|
|
10588
10588
|
const ma = 1e-3;
|
|
10589
|
-
class
|
|
10589
|
+
class u2 {
|
|
10590
10590
|
constructor(t, e, n = 2) {
|
|
10591
10591
|
this.length = t, this.height = e, this.flags = n;
|
|
10592
10592
|
}
|
|
@@ -10600,7 +10600,7 @@ class l2 {
|
|
|
10600
10600
|
this.height != t && (Math.abs(this.height - t) > ma && (_n = true), this.height = t);
|
|
10601
10601
|
}
|
|
10602
10602
|
replace(t, e, n) {
|
|
10603
|
-
return
|
|
10603
|
+
return u2.of(n);
|
|
10604
10604
|
}
|
|
10605
10605
|
decomposeLeft(t, e) {
|
|
10606
10606
|
e.push(this);
|
|
@@ -10620,7 +10620,7 @@ class l2 {
|
|
|
10620
10620
|
return a.updateHeight(n, 0);
|
|
10621
10621
|
}
|
|
10622
10622
|
static empty() {
|
|
10623
|
-
return new
|
|
10623
|
+
return new S2(0, 0, 0);
|
|
10624
10624
|
}
|
|
10625
10625
|
static of(t) {
|
|
10626
10626
|
if (t.length == 1) return t[0];
|
|
@@ -10640,15 +10640,15 @@ class l2 {
|
|
|
10640
10640
|
l && (a += l.size);
|
|
10641
10641
|
}
|
|
10642
10642
|
let o = 0;
|
|
10643
|
-
return t[e - 1] == null ? (o = 1, e--) : t[e] == null && (o = 1, n++), new RD(
|
|
10643
|
+
return t[e - 1] == null ? (o = 1, e--) : t[e] == null && (o = 1, n++), new RD(u2.of(t.slice(0, e)), o, u2.of(t.slice(n)));
|
|
10644
10644
|
}
|
|
10645
10645
|
}
|
|
10646
10646
|
function za(r, t) {
|
|
10647
10647
|
return r == t ? r : (r.constructor != t.constructor && (_n = true), t);
|
|
10648
10648
|
}
|
|
10649
|
-
|
|
10649
|
+
u2.prototype.size = 1;
|
|
10650
10650
|
const kD = i2.replace({});
|
|
10651
|
-
class CL extends
|
|
10651
|
+
class CL extends u2 {
|
|
10652
10652
|
constructor(t, e, n) {
|
|
10653
10653
|
super(t, e), this.deco = n, this.spaceAbove = 0;
|
|
10654
10654
|
}
|
|
@@ -10676,7 +10676,7 @@ class CL extends l2 {
|
|
|
10676
10676
|
return `block(${this.length})`;
|
|
10677
10677
|
}
|
|
10678
10678
|
}
|
|
10679
|
-
class
|
|
10679
|
+
class S2 extends CL {
|
|
10680
10680
|
constructor(t, e, n) {
|
|
10681
10681
|
super(t, e, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0, this.spaceAbove = n;
|
|
10682
10682
|
}
|
|
@@ -10685,7 +10685,7 @@ class _2 extends CL {
|
|
|
10685
10685
|
}
|
|
10686
10686
|
replace(t, e, n) {
|
|
10687
10687
|
let s = n[0];
|
|
10688
|
-
return n.length == 1 && (s instanceof
|
|
10688
|
+
return n.length == 1 && (s instanceof S2 || s instanceof F1 && s.flags & 4) && Math.abs(this.length - s.length) < 10 ? (s instanceof F1 ? s = new S2(s.length, this.height, this.spaceAbove) : s.height = this.height, this.outdated || (s.outdated = false), s) : u2.of(n);
|
|
10689
10689
|
}
|
|
10690
10690
|
updateHeight(t, e = 0, n = false, s) {
|
|
10691
10691
|
return s && s.from <= e && s.more ? this.setMeasuredHeight(s) : (n || this.outdated) && (this.spaceAbove = 0, this.setHeight(Math.max(this.widgetHeight, t.heightForLine(this.length - this.collapsed)) + this.breaks * t.lineHeight)), this.outdated = false, this;
|
|
@@ -10694,7 +10694,7 @@ class _2 extends CL {
|
|
|
10694
10694
|
return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
|
|
10695
10695
|
}
|
|
10696
10696
|
}
|
|
10697
|
-
class F1 extends
|
|
10697
|
+
class F1 extends u2 {
|
|
10698
10698
|
constructor(t) {
|
|
10699
10699
|
super(t, 0);
|
|
10700
10700
|
}
|
|
@@ -10748,7 +10748,7 @@ class F1 extends l2 {
|
|
|
10748
10748
|
let a = n[0];
|
|
10749
10749
|
a instanceof F1 ? n[0] = new F1(t + a.length) : n.unshift(new F1(t - 1), null);
|
|
10750
10750
|
}
|
|
10751
|
-
return
|
|
10751
|
+
return u2.of(n);
|
|
10752
10752
|
}
|
|
10753
10753
|
decomposeLeft(t, e) {
|
|
10754
10754
|
e.push(new F1(t - 1), null);
|
|
@@ -10765,11 +10765,11 @@ class F1 extends l2 {
|
|
|
10765
10765
|
o.length && o.push(null);
|
|
10766
10766
|
let f = s.heights[s.index++], d = 0;
|
|
10767
10767
|
f < 0 && (d = -f, f = s.heights[s.index++]), u == -1 ? u = f : Math.abs(f - u) >= ma && (u = -2);
|
|
10768
|
-
let p = new
|
|
10768
|
+
let p = new S2(T, f, d);
|
|
10769
10769
|
p.outdated = false, o.push(p), l += T + 1;
|
|
10770
10770
|
}
|
|
10771
10771
|
l <= a && o.push(null, new F1(a - l).updateHeight(t, l));
|
|
10772
|
-
let h =
|
|
10772
|
+
let h = u2.of(o);
|
|
10773
10773
|
return (u < 0 || Math.abs(h.height - this.height) >= ma || Math.abs(u - this.heightMetrics(t, e).perLine) >= ma) && (_n = true), za(this, h);
|
|
10774
10774
|
} else (n || this.outdated) && (this.setHeight(t.heightForGap(e, e + this.length)), this.outdated = false);
|
|
10775
10775
|
return this;
|
|
@@ -10778,7 +10778,7 @@ class F1 extends l2 {
|
|
|
10778
10778
|
return `gap(${this.length})`;
|
|
10779
10779
|
}
|
|
10780
10780
|
}
|
|
10781
|
-
class RD extends
|
|
10781
|
+
class RD extends u2 {
|
|
10782
10782
|
constructor(t, e, n) {
|
|
10783
10783
|
super(t.length + e + n.length, t.height + n.height, e | (t.outdated || n.outdated ? 2 : 0)), this.left = t, this.right = n, this.size = t.size + n.size;
|
|
10784
10784
|
}
|
|
@@ -10815,7 +10815,7 @@ class RD extends l2 {
|
|
|
10815
10815
|
let l = a.length;
|
|
10816
10816
|
this.decomposeRight(e, a), Cd(a, l);
|
|
10817
10817
|
}
|
|
10818
|
-
return
|
|
10818
|
+
return u2.of(a);
|
|
10819
10819
|
}
|
|
10820
10820
|
decomposeLeft(t, e) {
|
|
10821
10821
|
let n = this.left.length;
|
|
@@ -10828,7 +10828,7 @@ class RD extends l2 {
|
|
|
10828
10828
|
t < n && this.left.decomposeRight(t, e), this.break && t < s && e.push(null), e.push(this.right);
|
|
10829
10829
|
}
|
|
10830
10830
|
balanced(t, e) {
|
|
10831
|
-
return t.size > 2 * e.size || e.size > 2 * t.size ?
|
|
10831
|
+
return t.size > 2 * e.size || e.size > 2 * t.size ? u2.of(this.break ? [t, null, e] : [t, e]) : (this.left = za(this.left, t), this.right = za(this.right, e), this.setHeight(t.height + e.height), this.outdated = t.outdated || e.outdated, this.size = t.size + e.size, this.length = t.length + this.break + e.length, this);
|
|
10832
10832
|
}
|
|
10833
10833
|
updateHeight(t, e = 0, n = false, s) {
|
|
10834
10834
|
let { left: a, right: o } = this, l = e + a.length + this.break, u = null;
|
|
@@ -10853,7 +10853,7 @@ class fT {
|
|
|
10853
10853
|
span(t, e) {
|
|
10854
10854
|
if (this.lineStart > -1) {
|
|
10855
10855
|
let n = Math.min(e, this.lineEnd), s = this.nodes[this.nodes.length - 1];
|
|
10856
|
-
s instanceof
|
|
10856
|
+
s instanceof S2 ? s.length += n - this.pos : (n > this.pos || !this.isCovered) && this.nodes.push(new S2(n - this.pos, -1, 0)), this.writtenTo = n, e > n && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
|
|
10857
10857
|
}
|
|
10858
10858
|
this.pos = e;
|
|
10859
10859
|
}
|
|
@@ -10869,7 +10869,7 @@ class fT {
|
|
|
10869
10869
|
enterLine() {
|
|
10870
10870
|
if (this.lineStart > -1) return;
|
|
10871
10871
|
let { from: t, to: e } = this.oracle.doc.lineAt(this.pos);
|
|
10872
|
-
this.lineStart = t, this.lineEnd = e, this.writtenTo < t && ((this.writtenTo < t - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, t - 1)), this.nodes.push(null)), this.pos > t && this.nodes.push(new
|
|
10872
|
+
this.lineStart = t, this.lineEnd = e, this.writtenTo < t && ((this.writtenTo < t - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, t - 1)), this.nodes.push(null)), this.pos > t && this.nodes.push(new S2(this.pos - t, -1, 0)), this.writtenTo = this.pos;
|
|
10873
10873
|
}
|
|
10874
10874
|
blankContent(t, e) {
|
|
10875
10875
|
let n = new F1(e - t);
|
|
@@ -10878,8 +10878,8 @@ class fT {
|
|
|
10878
10878
|
ensureLine() {
|
|
10879
10879
|
this.enterLine();
|
|
10880
10880
|
let t = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
|
|
10881
|
-
if (t instanceof
|
|
10882
|
-
let e = new
|
|
10881
|
+
if (t instanceof S2) return t;
|
|
10882
|
+
let e = new S2(0, -1, 0);
|
|
10883
10883
|
return this.nodes.push(e), e;
|
|
10884
10884
|
}
|
|
10885
10885
|
addBlock(t) {
|
|
@@ -10893,9 +10893,9 @@ class fT {
|
|
|
10893
10893
|
}
|
|
10894
10894
|
finish(t) {
|
|
10895
10895
|
let e = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
|
|
10896
|
-
this.lineStart > -1 && !(e instanceof
|
|
10896
|
+
this.lineStart > -1 && !(e instanceof S2) && !this.isCovered ? this.nodes.push(new S2(0, -1, 0)) : (this.writtenTo < this.pos || e == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
|
|
10897
10897
|
let n = t;
|
|
10898
|
-
for (let s of this.nodes) s instanceof
|
|
10898
|
+
for (let s of this.nodes) s instanceof S2 && s.updateHeight(this.oracle, n), n += s ? s.length : 1;
|
|
10899
10899
|
return this.nodes;
|
|
10900
10900
|
}
|
|
10901
10901
|
static build(t, e, n, s) {
|
|
@@ -10973,7 +10973,7 @@ class Dd {
|
|
|
10973
10973
|
constructor(t) {
|
|
10974
10974
|
this.state = t, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = true, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = false, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Od, this.scrollTarget = null, this.printing = false, this.mustMeasureContent = true, this.defaultTextDirection = E1.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = false;
|
|
10975
10975
|
let e = t.facet(cT).some((n) => typeof n != "function" && n.class == "cm-lineWrapping");
|
|
10976
|
-
this.heightOracle = new VD(e), this.stateDeco = Id(t), this.heightMap =
|
|
10976
|
+
this.heightOracle = new VD(e), this.stateDeco = Id(t), this.heightMap = u2.empty().applyChanges(this.stateDeco, Pe.empty, this.heightOracle.setDoc(t.doc), [new B2(0, 0, 0, t.doc.length)]);
|
|
10977
10977
|
for (let n = 0; n < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); n++) ;
|
|
10978
10978
|
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = i2.set(this.lineGaps.map((n) => n.draw(this, false))), this.computeVisibleRanges();
|
|
10979
10979
|
}
|
|
@@ -11036,7 +11036,7 @@ class Dd {
|
|
|
11036
11036
|
y > 0 && c > 0 ? T = Math.max(y, c) : y < 0 && c < 0 && (T = Math.min(y, c)), wd();
|
|
11037
11037
|
for (let L of this.viewports) {
|
|
11038
11038
|
let _ = L.from == this.viewport.from ? x : t.docView.measureVisibleLineHeights(L);
|
|
11039
|
-
this.heightMap = (o ?
|
|
11039
|
+
this.heightMap = (o ? u2.empty().applyChanges(this.stateDeco, Pe.empty, this.heightOracle, [new B2(0, 0, 0, t.state.doc.length)]) : this.heightMap).updateHeight(s, 0, o, new PD(L.from, _));
|
|
11040
11040
|
}
|
|
11041
11041
|
_n && (h |= 2);
|
|
11042
11042
|
}
|
|
@@ -11431,7 +11431,7 @@ class XD {
|
|
|
11431
11431
|
}
|
|
11432
11432
|
function Vd(r, t, e) {
|
|
11433
11433
|
for (; t; ) {
|
|
11434
|
-
let n =
|
|
11434
|
+
let n = g1.get(t);
|
|
11435
11435
|
if (n && n.parent == r) return n;
|
|
11436
11436
|
let s = t.parentNode;
|
|
11437
11437
|
t = s != r.dom ? s : e > 0 ? t.nextSibling : t.previousSibling;
|
|
@@ -11925,7 +11925,7 @@ class Ee {
|
|
|
11925
11925
|
}
|
|
11926
11926
|
static findFromDOM(t) {
|
|
11927
11927
|
var e;
|
|
11928
|
-
let n = t.querySelector(".cm-content"), s = n &&
|
|
11928
|
+
let n = t.querySelector(".cm-content"), s = n && g1.get(n) || g1.get(t);
|
|
11929
11929
|
return ((e = s == null ? void 0 : s.root) === null || e === void 0 ? void 0 : e.view) || null;
|
|
11930
11930
|
}
|
|
11931
11931
|
}
|
|
@@ -11988,7 +11988,7 @@ class Sn extends e4 {
|
|
|
11988
11988
|
}
|
|
11989
11989
|
Sn.prototype.elementClass = "";
|
|
11990
11990
|
Sn.prototype.toDOM = void 0;
|
|
11991
|
-
Sn.prototype.mapMode =
|
|
11991
|
+
Sn.prototype.mapMode = A2.TrackBefore;
|
|
11992
11992
|
Sn.prototype.startSide = Sn.prototype.endSide = -1;
|
|
11993
11993
|
Sn.prototype.point = true;
|
|
11994
11994
|
let tO = 0;
|
|
@@ -12175,7 +12175,7 @@ class V3 {
|
|
|
12175
12175
|
V3.setState = S1.define();
|
|
12176
12176
|
function Nd(r, t, e) {
|
|
12177
12177
|
let n = r.facet(An), s = Cc(r).topNode;
|
|
12178
|
-
if (!n || n.allowsNesting) for (let a = s; a; a = a.enter(t, e,
|
|
12178
|
+
if (!n || n.allowsNesting) for (let a = s; a; a = a.enter(t, e, c1.ExcludeBuffers | c1.EnterBracketed)) a.type.isTop && (s = a);
|
|
12179
12179
|
return s;
|
|
12180
12180
|
}
|
|
12181
12181
|
function Cc(r) {
|
|
@@ -20732,7 +20732,7 @@ var q1 = {};
|
|
|
20732
20732
|
t.Variant = { NORMAL: "normal", BOLD: "bold", ITALIC: "italic", BOLDITALIC: "bold-italic", DOUBLESTRUCK: "double-struck", FRAKTUR: "fraktur", BOLDFRAKTUR: "bold-fraktur", SCRIPT: "script", BOLDSCRIPT: "bold-script", SANSSERIF: "sans-serif", BOLDSANSSERIF: "bold-sans-serif", SANSSERIFITALIC: "sans-serif-italic", SANSSERIFBOLDITALIC: "sans-serif-bold-italic", MONOSPACE: "monospace", INITIAL: "inital", TAILED: "tailed", LOOPED: "looped", STRETCHED: "stretched", CALLIGRAPHIC: "-tex-calligraphic", BOLDCALLIGRAPHIC: "-tex-bold-calligraphic", OLDSTYLE: "-tex-oldstyle", BOLDOLDSTYLE: "-tex-bold-oldstyle", MATHITALIC: "-tex-mathit" }, t.Form = { PREFIX: "prefix", INFIX: "infix", POSTFIX: "postfix" }, t.LineBreak = { AUTO: "auto", NEWLINE: "newline", NOBREAK: "nobreak", GOODBREAK: "goodbreak", BADBREAK: "badbreak" }, t.LineBreakStyle = { BEFORE: "before", AFTER: "after", DUPLICATE: "duplicate", INFIXLINBREAKSTYLE: "infixlinebreakstyle" }, t.IndentAlign = { LEFT: "left", CENTER: "center", RIGHT: "right", AUTO: "auto", ID: "id", INDENTALIGN: "indentalign" }, t.IndentShift = { INDENTSHIFT: "indentshift" }, t.LineThickness = { THIN: "thin", MEDIUM: "medium", THICK: "thick" }, t.Notation = { LONGDIV: "longdiv", ACTUARIAL: "actuarial", PHASORANGLE: "phasorangle", RADICAL: "radical", BOX: "box", ROUNDEDBOX: "roundedbox", CIRCLE: "circle", LEFT: "left", RIGHT: "right", TOP: "top", BOTTOM: "bottom", UPDIAGONALSTRIKE: "updiagonalstrike", DOWNDIAGONALSTRIKE: "downdiagonalstrike", VERTICALSTRIKE: "verticalstrike", HORIZONTALSTRIKE: "horizontalstrike", NORTHEASTARROW: "northeastarrow", MADRUWB: "madruwb", UPDIAGONALARROW: "updiagonalarrow" }, t.Align = { TOP: "top", BOTTOM: "bottom", CENTER: "center", BASELINE: "baseline", AXIS: "axis", LEFT: "left", RIGHT: "right" }, t.Lines = { NONE: "none", SOLID: "solid", DASHED: "dashed" }, t.Side = { LEFT: "left", RIGHT: "right", LEFTOVERLAP: "leftoverlap", RIGHTOVERLAP: "rightoverlap" }, t.Width = { AUTO: "auto", FIT: "fit" }, t.Actiontype = { TOGGLE: "toggle", STATUSLINE: "statusline", TOOLTIP: "tooltip", INPUT: "input" }, t.Overflow = { LINBREAK: "linebreak", SCROLL: "scroll", ELIDE: "elide", TRUNCATE: "truncate", SCALE: "scale" }, t.Unit = { EM: "em", EX: "ex", PX: "px", IN: "in", CM: "cm", MM: "mm", PT: "pt", PC: "pc" };
|
|
20733
20733
|
}(r.TexConstant || (r.TexConstant = {}));
|
|
20734
20734
|
})(q1);
|
|
20735
|
-
var
|
|
20735
|
+
var g2 = {}, z3 = {};
|
|
20736
20736
|
(function(r) {
|
|
20737
20737
|
Object.defineProperty(r, "__esModule", { value: true }), r.px = r.emRounded = r.em = r.percent = r.length2em = r.MATHSPACE = r.RELUNITS = r.UNITS = r.BIGDIMEN = void 0, r.BIGDIMEN = 1e6, r.UNITS = { px: 1, in: 96, cm: 96 / 2.54, mm: 96 / 25.4 }, r.RELUNITS = { em: 1, ex: 0.431, pt: 1 / 10, pc: 12 / 10, mu: 1 / 18 }, r.MATHSPACE = { veryverythinmathspace: 1 / 18, verythinmathspace: 2 / 18, thinmathspace: 3 / 18, mediummathspace: 4 / 18, thickmathspace: 5 / 18, verythickmathspace: 6 / 18, veryverythickmathspace: 7 / 18, negativeveryverythinmathspace: -1 / 18, negativeverythinmathspace: -2 / 18, negativethinmathspace: -3 / 18, negativemediummathspace: -4 / 18, negativethickmathspace: -5 / 18, negativeverythickmathspace: -6 / 18, negativeveryverythickmathspace: -7 / 18, thin: 0.04, medium: 0.06, thick: 0.1, normal: 1, big: 2, small: 1 / Math.sqrt(2), infinity: r.BIGDIMEN };
|
|
20738
20738
|
function t(o, l, u, h) {
|
|
@@ -20805,8 +20805,8 @@ var On = b && b.__assign || function() {
|
|
|
20805
20805
|
}, M7 = b && b.__importDefault || function(r) {
|
|
20806
20806
|
return r && r.__esModule ? r : { default: r };
|
|
20807
20807
|
};
|
|
20808
|
-
Object.defineProperty(
|
|
20809
|
-
var IT = pk(Ut), bt = M7(Ge), A1 = M7(_e), w7 = M7(r2()), VT = q1,
|
|
20808
|
+
Object.defineProperty(g2, "__esModule", { value: true });
|
|
20809
|
+
var IT = pk(Ut), bt = M7(Ge), A1 = M7(_e), w7 = M7(r2()), VT = q1, f1 = M7(ze()), Yn = Gt, sb = Mi, ab = z3, $c = Wn, mk = M1, Vt = {}, gk = 1.2 / 0.85, yk = { fontfamily: 1, fontsize: 1, fontweight: 1, fontstyle: 1, color: 1, background: 1, id: 1, class: 1, href: 1, style: 1 };
|
|
20810
20810
|
Vt.Open = function(r, t) {
|
|
20811
20811
|
r.Push(r.itemFactory.create("open"));
|
|
20812
20812
|
};
|
|
@@ -20928,7 +20928,7 @@ Vt.MoveRoot = function(r, t, e) {
|
|
|
20928
20928
|
n = parseInt(n, 10) / 15 + "em", n.substr(0, 1) !== "-" && (n = "+" + n), r.stack.global[e] = n;
|
|
20929
20929
|
};
|
|
20930
20930
|
Vt.Accent = function(r, t, e, n) {
|
|
20931
|
-
var s = r.ParseArg(t), a = On(On({},
|
|
20931
|
+
var s = r.ParseArg(t), a = On(On({}, f1.default.getFontDef(r)), { accent: true, mathaccent: true }), o = bt.default.createEntity(e), l = r.create("token", "mo", a, o), u = l;
|
|
20932
20932
|
bt.default.setAttribute(u, "stretchy", !!n);
|
|
20933
20933
|
var h = bt.default.isEmbellished(s) ? bt.default.getCoreMO(s) : s;
|
|
20934
20934
|
(bt.default.isType(h, "mo") || bt.default.getProperty(h, "movablelimits")) && bt.default.setProperties(h, { movablelimits: false });
|
|
@@ -20939,23 +20939,23 @@ Vt.Accent = function(r, t, e, n) {
|
|
|
20939
20939
|
};
|
|
20940
20940
|
Vt.UnderOver = function(r, t, e, n) {
|
|
20941
20941
|
var s = bt.default.createEntity(e), a = r.create("token", "mo", { stretchy: true, accent: true }, s), o = t.charAt(1) === "o" ? "over" : "under", l = r.ParseArg(t);
|
|
20942
|
-
r.Push(
|
|
20942
|
+
r.Push(f1.default.underOver(r, l, a, o, n));
|
|
20943
20943
|
};
|
|
20944
20944
|
Vt.Overset = function(r, t) {
|
|
20945
20945
|
var e = r.ParseArg(t), n = r.ParseArg(t);
|
|
20946
|
-
|
|
20946
|
+
f1.default.checkMovableLimits(n), e.isKind("mo") && bt.default.setAttribute(e, "accent", false);
|
|
20947
20947
|
var s = r.create("node", "mover", [n, e]);
|
|
20948
20948
|
r.Push(s);
|
|
20949
20949
|
};
|
|
20950
20950
|
Vt.Underset = function(r, t) {
|
|
20951
20951
|
var e = r.ParseArg(t), n = r.ParseArg(t);
|
|
20952
|
-
|
|
20952
|
+
f1.default.checkMovableLimits(n), e.isKind("mo") && bt.default.setAttribute(e, "accent", false);
|
|
20953
20953
|
var s = r.create("node", "munder", [n, e], { accentunder: false });
|
|
20954
20954
|
r.Push(s);
|
|
20955
20955
|
};
|
|
20956
20956
|
Vt.Overunderset = function(r, t) {
|
|
20957
20957
|
var e = r.ParseArg(t), n = r.ParseArg(t), s = r.ParseArg(t);
|
|
20958
|
-
|
|
20958
|
+
f1.default.checkMovableLimits(s), e.isKind("mo") && bt.default.setAttribute(e, "accent", false), n.isKind("mo") && bt.default.setAttribute(n, "accent", false);
|
|
20959
20959
|
var a = r.create("node", "munderover", [s, n, e], { accent: false, accentunder: false });
|
|
20960
20960
|
r.Push(a);
|
|
20961
20961
|
};
|
|
@@ -20980,7 +20980,7 @@ Vt.MmlToken = function(r, t) {
|
|
|
20980
20980
|
var u = n.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);
|
|
20981
20981
|
if (!u) throw new A1.default("InvalidMathMLAttr", "Invalid MathML attribute: %1", n);
|
|
20982
20982
|
if (!l.attributes.hasDefault(u[1]) && !yk[u[1]]) throw new A1.default("UnknownAttrForElement", "%1 is not a recognized attribute for %2", u[1], e);
|
|
20983
|
-
var h =
|
|
20983
|
+
var h = f1.default.MmlFilterAttribute(r, u[1], u[2].replace(/^(['"])(.*)\1$/, "$2"));
|
|
20984
20984
|
h && (h.toLowerCase() === "true" ? h = true : h.toLowerCase() === "false" && (h = false), a[u[1]] = h, o.push(u[1])), n = n.substr(u[0].length);
|
|
20985
20985
|
}
|
|
20986
20986
|
o.length && (a["mjx-keep-attrs"] = o.join(" "));
|
|
@@ -20998,7 +20998,7 @@ Vt.Phantom = function(r, t, e, n) {
|
|
|
20998
20998
|
r.Push(a);
|
|
20999
20999
|
};
|
|
21000
21000
|
Vt.Smash = function(r, t) {
|
|
21001
|
-
var e =
|
|
21001
|
+
var e = f1.default.trimSpaces(r.GetBrackets(t, "")), n = r.create("node", "mpadded", [r.ParseArg(t)]);
|
|
21002
21002
|
switch (e) {
|
|
21003
21003
|
case "b":
|
|
21004
21004
|
bt.default.setAttribute(n, "depth", 0);
|
|
@@ -21059,14 +21059,14 @@ Vt.BuildRel = function(r, t) {
|
|
|
21059
21059
|
r.Push(a);
|
|
21060
21060
|
};
|
|
21061
21061
|
Vt.HBox = function(r, t, e, n) {
|
|
21062
|
-
r.PushAll(
|
|
21062
|
+
r.PushAll(f1.default.internalMath(r, r.GetArgument(t), e, n));
|
|
21063
21063
|
};
|
|
21064
21064
|
Vt.FBox = function(r, t) {
|
|
21065
|
-
var e =
|
|
21065
|
+
var e = f1.default.internalMath(r, r.GetArgument(t)), n = r.create("node", "menclose", e, { notation: "box" });
|
|
21066
21066
|
r.Push(n);
|
|
21067
21067
|
};
|
|
21068
21068
|
Vt.FrameBox = function(r, t) {
|
|
21069
|
-
var e = r.GetBrackets(t), n = r.GetBrackets(t) || "c", s =
|
|
21069
|
+
var e = r.GetBrackets(t), n = r.GetBrackets(t) || "c", s = f1.default.internalMath(r, r.GetArgument(t));
|
|
21070
21070
|
e && (s = [r.create("node", "mpadded", s, { width: e, "data-align": (0, mk.lookup)(n, { l: "left", r: "right" }, "center") })]);
|
|
21071
21071
|
var a = r.create("node", "TeXAtom", [r.create("node", "menclose", s, { notation: "box" })], { texClass: Yn.TEXCLASS.ORD });
|
|
21072
21072
|
r.Push(a);
|
|
@@ -21103,7 +21103,7 @@ Vt.Entry = function(r, t) {
|
|
|
21103
21103
|
}
|
|
21104
21104
|
var p = a.substr(r.i, u - r.i);
|
|
21105
21105
|
if (!p.match(/^\s*\\text[^a-zA-Z]/) || l !== p.replace(/\s+$/, "").length - 1) {
|
|
21106
|
-
var g =
|
|
21106
|
+
var g = f1.default.internalMath(r, f1.default.trimSpaces(p), 0);
|
|
21107
21107
|
r.PushAll(g), r.i = u;
|
|
21108
21108
|
}
|
|
21109
21109
|
}
|
|
@@ -21115,7 +21115,7 @@ Vt.CrLaTeX = function(r, t, e) {
|
|
|
21115
21115
|
e === void 0 && (e = false);
|
|
21116
21116
|
var n;
|
|
21117
21117
|
if (!e && (r.string.charAt(r.i) === "*" && r.i++, r.string.charAt(r.i) === "[")) {
|
|
21118
|
-
var s = r.GetBrackets(t, ""), a = OT(
|
|
21118
|
+
var s = r.GetBrackets(t, ""), a = OT(f1.default.matchDimen(s), 2), o = a[0], l = a[1];
|
|
21119
21119
|
if (s && !o) throw new A1.default("BracketMustBeDimension", "Bracket argument to %1 must be a dimension", r.currentCS);
|
|
21120
21120
|
n = o + l;
|
|
21121
21121
|
}
|
|
@@ -21150,7 +21150,7 @@ Vt.BeginEnd = function(r, t) {
|
|
|
21150
21150
|
}
|
|
21151
21151
|
r.stack.env.closing = e;
|
|
21152
21152
|
}
|
|
21153
|
-
|
|
21153
|
+
f1.default.checkMaxMacros(r, false), r.parse("environment", [r, e]);
|
|
21154
21154
|
};
|
|
21155
21155
|
Vt.Array = function(r, t, e, n, s, a, o, l, u) {
|
|
21156
21156
|
s || (s = r.GetArgument("\\begin{" + t.getName() + "}"));
|
|
@@ -21161,13 +21161,13 @@ Vt.Array = function(r, t, e, n, s, a, o, l, u) {
|
|
|
21161
21161
|
};
|
|
21162
21162
|
Vt.AlignedArray = function(r, t) {
|
|
21163
21163
|
var e = r.GetBrackets("\\begin{" + t.getName() + "}"), n = Vt.Array(r, t);
|
|
21164
|
-
return
|
|
21164
|
+
return f1.default.setArrayAlign(n, e);
|
|
21165
21165
|
};
|
|
21166
21166
|
Vt.Equation = function(r, t, e) {
|
|
21167
|
-
return r.Push(t),
|
|
21167
|
+
return r.Push(t), f1.default.checkEqnEnv(r), r.itemFactory.create("equation", e).setProperty("name", t.getName());
|
|
21168
21168
|
};
|
|
21169
21169
|
Vt.EqnArray = function(r, t, e, n, s, a) {
|
|
21170
|
-
r.Push(t), n &&
|
|
21170
|
+
r.Push(t), n && f1.default.checkEqnEnv(r), s = s.replace(/[^clr]/g, "").split("").join(" "), s = s.replace(/l/g, "left").replace(/r/g, "right").replace(/c/g, "center");
|
|
21171
21171
|
var o = r.itemFactory.create("eqnarray", t.getName(), e, n, r.stack.global);
|
|
21172
21172
|
return o.arraydef = { displaystyle: true, columnalign: s, columnspacing: a || "1em", rowspacing: "3pt", side: r.options.tagSide, minlabelspacing: r.options.tagIndent }, o;
|
|
21173
21173
|
};
|
|
@@ -21187,7 +21187,7 @@ Vt.HandleRef = function(r, t, e) {
|
|
|
21187
21187
|
s || (r.tags.refUpdate || (r.tags.redo = true), s = new sb.Label());
|
|
21188
21188
|
var a = s.tag;
|
|
21189
21189
|
e && (a = r.tags.formatTag(a));
|
|
21190
|
-
var o = r.create("node", "mrow",
|
|
21190
|
+
var o = r.create("node", "mrow", f1.default.internalMath(r, a), { href: r.tags.formatUrl(s.id, r.options.baseURL), class: "MathJax_ref" });
|
|
21191
21191
|
r.Push(o);
|
|
21192
21192
|
};
|
|
21193
21193
|
Vt.Macro = function(r, t, e, n, s) {
|
|
@@ -21198,15 +21198,15 @@ Vt.Macro = function(r, t, e, n, s) {
|
|
|
21198
21198
|
a.push(o ?? s);
|
|
21199
21199
|
}
|
|
21200
21200
|
for (var l = a.length; l < n; l++) a.push(r.GetArgument(t));
|
|
21201
|
-
e =
|
|
21201
|
+
e = f1.default.substituteArgs(r, a, e);
|
|
21202
21202
|
}
|
|
21203
|
-
r.string =
|
|
21203
|
+
r.string = f1.default.addArgs(r, e, r.string.slice(r.i)), r.i = 0, f1.default.checkMaxMacros(r);
|
|
21204
21204
|
};
|
|
21205
21205
|
Vt.MathChoice = function(r, t) {
|
|
21206
21206
|
var e = r.ParseArg(t), n = r.ParseArg(t), s = r.ParseArg(t), a = r.ParseArg(t);
|
|
21207
21207
|
r.Push(r.create("node", "MathChoice", [e, n, s, a]));
|
|
21208
21208
|
};
|
|
21209
|
-
|
|
21209
|
+
g2.default = Vt;
|
|
21210
21210
|
var h3 = {}, vk = b && b.__read || function(r, t) {
|
|
21211
21211
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
21212
21212
|
if (!e) return r;
|
|
@@ -21301,7 +21301,7 @@ var bk = b && b.__createBinding || (Object.create ? function(r, t, e, n) {
|
|
|
21301
21301
|
return _k(t, r), t;
|
|
21302
21302
|
}, PT = b && b.__importDefault || function(r) {
|
|
21303
21303
|
return r && r.__esModule ? r : { default: r };
|
|
21304
|
-
}, T3 = Sk(zt), mt = q1, kT = PT(
|
|
21304
|
+
}, T3 = Sk(zt), mt = q1, kT = PT(g2), Lr = PT(h3), Ek = PT(ze()), Zt = Gt, f2 = z3;
|
|
21305
21305
|
new T3.RegExpMap("letter", Lr.default.variable, /[a-z]/i);
|
|
21306
21306
|
new T3.RegExpMap("digit", Lr.default.digit, /[0-9.,]/);
|
|
21307
21307
|
new T3.RegExpMap("command", Lr.default.controlSequence, /^\\/);
|
|
@@ -21310,8 +21310,8 @@ new T3.CharacterMap("mathchar0mi", Lr.default.mathchar0mi, { alpha: "α", beta:
|
|
|
21310
21310
|
new T3.CharacterMap("mathchar0mo", Lr.default.mathchar0mo, { surd: "√", coprod: ["∐", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigvee: ["⋁", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigwedge: ["⋀", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], biguplus: ["⨄", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigcap: ["⋂", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigcup: ["⋃", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], int: ["∫", { texClass: Zt.TEXCLASS.OP }], intop: ["∫", { texClass: Zt.TEXCLASS.OP, movesupsub: true, movablelimits: true }], iint: ["∬", { texClass: Zt.TEXCLASS.OP }], iiint: ["∭", { texClass: Zt.TEXCLASS.OP }], prod: ["∏", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], sum: ["∑", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigotimes: ["⨂", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigoplus: ["⨁", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], bigodot: ["⨀", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], oint: ["∮", { texClass: Zt.TEXCLASS.OP }], bigsqcup: ["⨆", { texClass: Zt.TEXCLASS.OP, movesupsub: true }], smallint: ["∫", { largeop: false }], triangleleft: "◃", triangleright: "▹", bigtriangleup: "△", bigtriangledown: "▽", wedge: "∧", land: "∧", vee: "∨", lor: "∨", cap: "∩", cup: "∪", ddagger: "‡", dagger: "†", sqcap: "⊓", sqcup: "⊔", uplus: "⊎", amalg: "⨿", diamond: "⋄", bullet: "∙", wr: "≀", div: "÷", divsymbol: "÷", odot: ["⊙", { largeop: false }], oslash: ["⊘", { largeop: false }], otimes: ["⊗", { largeop: false }], ominus: ["⊖", { largeop: false }], oplus: ["⊕", { largeop: false }], mp: "∓", pm: "±", circ: "∘", bigcirc: "◯", setminus: "∖", cdot: "⋅", ast: "∗", times: "×", star: "⋆", propto: "∝", sqsubseteq: "⊑", sqsupseteq: "⊒", parallel: "∥", mid: "∣", dashv: "⊣", vdash: "⊢", leq: "≤", le: "≤", geq: "≥", ge: "≥", lt: "<", gt: ">", succ: "≻", prec: "≺", approx: "≈", succeq: "⪰", preceq: "⪯", supset: "⊃", subset: "⊂", supseteq: "⊇", subseteq: "⊆", in: "∈", ni: "∋", notin: "∉", owns: "∋", gg: "≫", ll: "≪", sim: "∼", simeq: "≃", perp: "⊥", equiv: "≡", asymp: "≍", smile: "⌣", frown: "⌢", ne: "≠", neq: "≠", cong: "≅", doteq: "≐", bowtie: "⋈", models: "⊨", notChar: "⧸", Leftrightarrow: "⇔", Leftarrow: "⇐", Rightarrow: "⇒", leftrightarrow: "↔", leftarrow: "←", gets: "←", rightarrow: "→", to: ["→", { accent: false }], mapsto: "↦", leftharpoonup: "↼", leftharpoondown: "↽", rightharpoonup: "⇀", rightharpoondown: "⇁", nearrow: "↗", searrow: "↘", nwarrow: "↖", swarrow: "↙", rightleftharpoons: "⇌", hookrightarrow: "↪", hookleftarrow: "↩", longleftarrow: "⟵", Longleftarrow: "⟸", longrightarrow: "⟶", Longrightarrow: "⟹", Longleftrightarrow: "⟺", longleftrightarrow: "⟷", longmapsto: "⟼", ldots: "…", cdots: "⋯", vdots: "⋮", ddots: "⋱", dotsc: "…", dotsb: "⋯", dotsm: "⋯", dotsi: "⋯", dotso: "…", ldotp: [".", { texClass: Zt.TEXCLASS.PUNCT }], cdotp: ["⋅", { texClass: Zt.TEXCLASS.PUNCT }], colon: [":", { texClass: Zt.TEXCLASS.PUNCT }] });
|
|
21311
21311
|
new T3.CharacterMap("mathchar7", Lr.default.mathchar7, { Gamma: "Γ", Delta: "Δ", Theta: "Θ", Lambda: "Λ", Xi: "Ξ", Pi: "Π", Sigma: "Σ", Upsilon: "Υ", Phi: "Φ", Psi: "Ψ", Omega: "Ω", _: "_", "#": "#", $: "$", "%": "%", "&": "&", And: "&" });
|
|
21312
21312
|
new T3.DelimiterMap("delimiter", Lr.default.delimiter, { "(": "(", ")": ")", "[": "[", "]": "]", "<": "⟨", ">": "⟩", "\\lt": "⟨", "\\gt": "⟩", "/": "/", "|": ["|", { texClass: Zt.TEXCLASS.ORD }], ".": "", "\\\\": "\\", "\\lmoustache": "⎰", "\\rmoustache": "⎱", "\\lgroup": "⟮", "\\rgroup": "⟯", "\\arrowvert": "⏐", "\\Arrowvert": "‖", "\\bracevert": "⎪", "\\Vert": ["‖", { texClass: Zt.TEXCLASS.ORD }], "\\|": ["‖", { texClass: Zt.TEXCLASS.ORD }], "\\vert": ["|", { texClass: Zt.TEXCLASS.ORD }], "\\uparrow": "↑", "\\downarrow": "↓", "\\updownarrow": "↕", "\\Uparrow": "⇑", "\\Downarrow": "⇓", "\\Updownarrow": "⇕", "\\backslash": "\\", "\\rangle": "⟩", "\\langle": "⟨", "\\rbrace": "}", "\\lbrace": "{", "\\}": "}", "\\{": "{", "\\rceil": "⌉", "\\lceil": "⌈", "\\rfloor": "⌋", "\\lfloor": "⌊", "\\lbrack": "[", "\\rbrack": "]" });
|
|
21313
|
-
new T3.CommandMap("macros", { displaystyle: ["SetStyle", "D", true, 0], textstyle: ["SetStyle", "T", false, 0], scriptstyle: ["SetStyle", "S", false, 1], scriptscriptstyle: ["SetStyle", "SS", false, 2], rm: ["SetFont", mt.TexConstant.Variant.NORMAL], mit: ["SetFont", mt.TexConstant.Variant.ITALIC], oldstyle: ["SetFont", mt.TexConstant.Variant.OLDSTYLE], cal: ["SetFont", mt.TexConstant.Variant.CALLIGRAPHIC], it: ["SetFont", mt.TexConstant.Variant.MATHITALIC], bf: ["SetFont", mt.TexConstant.Variant.BOLD], bbFont: ["SetFont", mt.TexConstant.Variant.DOUBLESTRUCK], scr: ["SetFont", mt.TexConstant.Variant.SCRIPT], frak: ["SetFont", mt.TexConstant.Variant.FRAKTUR], sf: ["SetFont", mt.TexConstant.Variant.SANSSERIF], tt: ["SetFont", mt.TexConstant.Variant.MONOSPACE], mathrm: ["MathFont", mt.TexConstant.Variant.NORMAL], mathup: ["MathFont", mt.TexConstant.Variant.NORMAL], mathnormal: ["MathFont", ""], mathbf: ["MathFont", mt.TexConstant.Variant.BOLD], mathbfup: ["MathFont", mt.TexConstant.Variant.BOLD], mathit: ["MathFont", mt.TexConstant.Variant.MATHITALIC], mathbfit: ["MathFont", mt.TexConstant.Variant.BOLDITALIC], mathbb: ["MathFont", mt.TexConstant.Variant.DOUBLESTRUCK], Bbb: ["MathFont", mt.TexConstant.Variant.DOUBLESTRUCK], mathfrak: ["MathFont", mt.TexConstant.Variant.FRAKTUR], mathbffrak: ["MathFont", mt.TexConstant.Variant.BOLDFRAKTUR], mathscr: ["MathFont", mt.TexConstant.Variant.SCRIPT], mathbfscr: ["MathFont", mt.TexConstant.Variant.BOLDSCRIPT], mathsf: ["MathFont", mt.TexConstant.Variant.SANSSERIF], mathsfup: ["MathFont", mt.TexConstant.Variant.SANSSERIF], mathbfsf: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], mathbfsfup: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], mathsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFITALIC], mathbfsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFBOLDITALIC], mathtt: ["MathFont", mt.TexConstant.Variant.MONOSPACE], mathcal: ["MathFont", mt.TexConstant.Variant.CALLIGRAPHIC], mathbfcal: ["MathFont", mt.TexConstant.Variant.BOLDCALLIGRAPHIC], symrm: ["MathFont", mt.TexConstant.Variant.NORMAL], symup: ["MathFont", mt.TexConstant.Variant.NORMAL], symnormal: ["MathFont", ""], symbf: ["MathFont", mt.TexConstant.Variant.BOLD], symbfup: ["MathFont", mt.TexConstant.Variant.BOLD], symit: ["MathFont", mt.TexConstant.Variant.ITALIC], symbfit: ["MathFont", mt.TexConstant.Variant.BOLDITALIC], symbb: ["MathFont", mt.TexConstant.Variant.DOUBLESTRUCK], symfrak: ["MathFont", mt.TexConstant.Variant.FRAKTUR], symbffrak: ["MathFont", mt.TexConstant.Variant.BOLDFRAKTUR], symscr: ["MathFont", mt.TexConstant.Variant.SCRIPT], symbfscr: ["MathFont", mt.TexConstant.Variant.BOLDSCRIPT], symsf: ["MathFont", mt.TexConstant.Variant.SANSSERIF], symsfup: ["MathFont", mt.TexConstant.Variant.SANSSERIF], symbfsf: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], symbfsfup: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], symsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFITALIC], symbfsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFBOLDITALIC], symtt: ["MathFont", mt.TexConstant.Variant.MONOSPACE], symcal: ["MathFont", mt.TexConstant.Variant.CALLIGRAPHIC], symbfcal: ["MathFont", mt.TexConstant.Variant.BOLDCALLIGRAPHIC], textrm: ["HBox", null, mt.TexConstant.Variant.NORMAL], textup: ["HBox", null, mt.TexConstant.Variant.NORMAL], textnormal: ["HBox"], textit: ["HBox", null, mt.TexConstant.Variant.ITALIC], textbf: ["HBox", null, mt.TexConstant.Variant.BOLD], textsf: ["HBox", null, mt.TexConstant.Variant.SANSSERIF], texttt: ["HBox", null, mt.TexConstant.Variant.MONOSPACE], tiny: ["SetSize", 0.5], Tiny: ["SetSize", 0.6], scriptsize: ["SetSize", 0.7], small: ["SetSize", 0.85], normalsize: ["SetSize", 1], large: ["SetSize", 1.2], Large: ["SetSize", 1.44], LARGE: ["SetSize", 1.73], huge: ["SetSize", 2.07], Huge: ["SetSize", 2.49], arcsin: "NamedFn", arccos: "NamedFn", arctan: "NamedFn", arg: "NamedFn", cos: "NamedFn", cosh: "NamedFn", cot: "NamedFn", coth: "NamedFn", csc: "NamedFn", deg: "NamedFn", det: "NamedOp", dim: "NamedFn", exp: "NamedFn", gcd: "NamedOp", hom: "NamedFn", inf: "NamedOp", ker: "NamedFn", lg: "NamedFn", lim: "NamedOp", liminf: ["NamedOp", "lim inf"], limsup: ["NamedOp", "lim sup"], ln: "NamedFn", log: "NamedFn", max: "NamedOp", min: "NamedOp", Pr: "NamedOp", sec: "NamedFn", sin: "NamedFn", sinh: "NamedFn", sup: "NamedOp", tan: "NamedFn", tanh: "NamedFn", limits: ["Limits", 1], nolimits: ["Limits", 0], overline: ["UnderOver", "2015"], underline: ["UnderOver", "2015"], overbrace: ["UnderOver", "23DE", 1], underbrace: ["UnderOver", "23DF", 1], overparen: ["UnderOver", "23DC"], underparen: ["UnderOver", "23DD"], overrightarrow: ["UnderOver", "2192"], underrightarrow: ["UnderOver", "2192"], overleftarrow: ["UnderOver", "2190"], underleftarrow: ["UnderOver", "2190"], overleftrightarrow: ["UnderOver", "2194"], underleftrightarrow: ["UnderOver", "2194"], overset: "Overset", underset: "Underset", overunderset: "Overunderset", stackrel: ["Macro", "\\mathrel{\\mathop{#2}\\limits^{#1}}", 2], stackbin: ["Macro", "\\mathbin{\\mathop{#2}\\limits^{#1}}", 2], over: "Over", overwithdelims: "Over", atop: "Over", atopwithdelims: "Over", above: "Over", abovewithdelims: "Over", brace: ["Over", "{", "}"], brack: ["Over", "[", "]"], choose: ["Over", "(", ")"], frac: "Frac", sqrt: "Sqrt", root: "Root", uproot: ["MoveRoot", "upRoot"], leftroot: ["MoveRoot", "leftRoot"], left: "LeftRight", right: "LeftRight", middle: "LeftRight", llap: "Lap", rlap: "Lap", raise: "RaiseLower", lower: "RaiseLower", moveleft: "MoveLeftRight", moveright: "MoveLeftRight", ",": ["Spacer",
|
|
21314
|
-
new T3.EnvironmentMap("environment", Lr.default.environment, { array: ["AlignedArray"], equation: ["Equation", null, true], eqnarray: ["EqnArray", null, true, true, "rcl", Ek.default.cols(0,
|
|
21313
|
+
new T3.CommandMap("macros", { displaystyle: ["SetStyle", "D", true, 0], textstyle: ["SetStyle", "T", false, 0], scriptstyle: ["SetStyle", "S", false, 1], scriptscriptstyle: ["SetStyle", "SS", false, 2], rm: ["SetFont", mt.TexConstant.Variant.NORMAL], mit: ["SetFont", mt.TexConstant.Variant.ITALIC], oldstyle: ["SetFont", mt.TexConstant.Variant.OLDSTYLE], cal: ["SetFont", mt.TexConstant.Variant.CALLIGRAPHIC], it: ["SetFont", mt.TexConstant.Variant.MATHITALIC], bf: ["SetFont", mt.TexConstant.Variant.BOLD], bbFont: ["SetFont", mt.TexConstant.Variant.DOUBLESTRUCK], scr: ["SetFont", mt.TexConstant.Variant.SCRIPT], frak: ["SetFont", mt.TexConstant.Variant.FRAKTUR], sf: ["SetFont", mt.TexConstant.Variant.SANSSERIF], tt: ["SetFont", mt.TexConstant.Variant.MONOSPACE], mathrm: ["MathFont", mt.TexConstant.Variant.NORMAL], mathup: ["MathFont", mt.TexConstant.Variant.NORMAL], mathnormal: ["MathFont", ""], mathbf: ["MathFont", mt.TexConstant.Variant.BOLD], mathbfup: ["MathFont", mt.TexConstant.Variant.BOLD], mathit: ["MathFont", mt.TexConstant.Variant.MATHITALIC], mathbfit: ["MathFont", mt.TexConstant.Variant.BOLDITALIC], mathbb: ["MathFont", mt.TexConstant.Variant.DOUBLESTRUCK], Bbb: ["MathFont", mt.TexConstant.Variant.DOUBLESTRUCK], mathfrak: ["MathFont", mt.TexConstant.Variant.FRAKTUR], mathbffrak: ["MathFont", mt.TexConstant.Variant.BOLDFRAKTUR], mathscr: ["MathFont", mt.TexConstant.Variant.SCRIPT], mathbfscr: ["MathFont", mt.TexConstant.Variant.BOLDSCRIPT], mathsf: ["MathFont", mt.TexConstant.Variant.SANSSERIF], mathsfup: ["MathFont", mt.TexConstant.Variant.SANSSERIF], mathbfsf: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], mathbfsfup: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], mathsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFITALIC], mathbfsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFBOLDITALIC], mathtt: ["MathFont", mt.TexConstant.Variant.MONOSPACE], mathcal: ["MathFont", mt.TexConstant.Variant.CALLIGRAPHIC], mathbfcal: ["MathFont", mt.TexConstant.Variant.BOLDCALLIGRAPHIC], symrm: ["MathFont", mt.TexConstant.Variant.NORMAL], symup: ["MathFont", mt.TexConstant.Variant.NORMAL], symnormal: ["MathFont", ""], symbf: ["MathFont", mt.TexConstant.Variant.BOLD], symbfup: ["MathFont", mt.TexConstant.Variant.BOLD], symit: ["MathFont", mt.TexConstant.Variant.ITALIC], symbfit: ["MathFont", mt.TexConstant.Variant.BOLDITALIC], symbb: ["MathFont", mt.TexConstant.Variant.DOUBLESTRUCK], symfrak: ["MathFont", mt.TexConstant.Variant.FRAKTUR], symbffrak: ["MathFont", mt.TexConstant.Variant.BOLDFRAKTUR], symscr: ["MathFont", mt.TexConstant.Variant.SCRIPT], symbfscr: ["MathFont", mt.TexConstant.Variant.BOLDSCRIPT], symsf: ["MathFont", mt.TexConstant.Variant.SANSSERIF], symsfup: ["MathFont", mt.TexConstant.Variant.SANSSERIF], symbfsf: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], symbfsfup: ["MathFont", mt.TexConstant.Variant.BOLDSANSSERIF], symsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFITALIC], symbfsfit: ["MathFont", mt.TexConstant.Variant.SANSSERIFBOLDITALIC], symtt: ["MathFont", mt.TexConstant.Variant.MONOSPACE], symcal: ["MathFont", mt.TexConstant.Variant.CALLIGRAPHIC], symbfcal: ["MathFont", mt.TexConstant.Variant.BOLDCALLIGRAPHIC], textrm: ["HBox", null, mt.TexConstant.Variant.NORMAL], textup: ["HBox", null, mt.TexConstant.Variant.NORMAL], textnormal: ["HBox"], textit: ["HBox", null, mt.TexConstant.Variant.ITALIC], textbf: ["HBox", null, mt.TexConstant.Variant.BOLD], textsf: ["HBox", null, mt.TexConstant.Variant.SANSSERIF], texttt: ["HBox", null, mt.TexConstant.Variant.MONOSPACE], tiny: ["SetSize", 0.5], Tiny: ["SetSize", 0.6], scriptsize: ["SetSize", 0.7], small: ["SetSize", 0.85], normalsize: ["SetSize", 1], large: ["SetSize", 1.2], Large: ["SetSize", 1.44], LARGE: ["SetSize", 1.73], huge: ["SetSize", 2.07], Huge: ["SetSize", 2.49], arcsin: "NamedFn", arccos: "NamedFn", arctan: "NamedFn", arg: "NamedFn", cos: "NamedFn", cosh: "NamedFn", cot: "NamedFn", coth: "NamedFn", csc: "NamedFn", deg: "NamedFn", det: "NamedOp", dim: "NamedFn", exp: "NamedFn", gcd: "NamedOp", hom: "NamedFn", inf: "NamedOp", ker: "NamedFn", lg: "NamedFn", lim: "NamedOp", liminf: ["NamedOp", "lim inf"], limsup: ["NamedOp", "lim sup"], ln: "NamedFn", log: "NamedFn", max: "NamedOp", min: "NamedOp", Pr: "NamedOp", sec: "NamedFn", sin: "NamedFn", sinh: "NamedFn", sup: "NamedOp", tan: "NamedFn", tanh: "NamedFn", limits: ["Limits", 1], nolimits: ["Limits", 0], overline: ["UnderOver", "2015"], underline: ["UnderOver", "2015"], overbrace: ["UnderOver", "23DE", 1], underbrace: ["UnderOver", "23DF", 1], overparen: ["UnderOver", "23DC"], underparen: ["UnderOver", "23DD"], overrightarrow: ["UnderOver", "2192"], underrightarrow: ["UnderOver", "2192"], overleftarrow: ["UnderOver", "2190"], underleftarrow: ["UnderOver", "2190"], overleftrightarrow: ["UnderOver", "2194"], underleftrightarrow: ["UnderOver", "2194"], overset: "Overset", underset: "Underset", overunderset: "Overunderset", stackrel: ["Macro", "\\mathrel{\\mathop{#2}\\limits^{#1}}", 2], stackbin: ["Macro", "\\mathbin{\\mathop{#2}\\limits^{#1}}", 2], over: "Over", overwithdelims: "Over", atop: "Over", atopwithdelims: "Over", above: "Over", abovewithdelims: "Over", brace: ["Over", "{", "}"], brack: ["Over", "[", "]"], choose: ["Over", "(", ")"], frac: "Frac", sqrt: "Sqrt", root: "Root", uproot: ["MoveRoot", "upRoot"], leftroot: ["MoveRoot", "leftRoot"], left: "LeftRight", right: "LeftRight", middle: "LeftRight", llap: "Lap", rlap: "Lap", raise: "RaiseLower", lower: "RaiseLower", moveleft: "MoveLeftRight", moveright: "MoveLeftRight", ",": ["Spacer", f2.MATHSPACE.thinmathspace], ":": ["Spacer", f2.MATHSPACE.mediummathspace], ">": ["Spacer", f2.MATHSPACE.mediummathspace], ";": ["Spacer", f2.MATHSPACE.thickmathspace], "!": ["Spacer", f2.MATHSPACE.negativethinmathspace], enspace: ["Spacer", 0.5], quad: ["Spacer", 1], qquad: ["Spacer", 2], thinspace: ["Spacer", f2.MATHSPACE.thinmathspace], negthinspace: ["Spacer", f2.MATHSPACE.negativethinmathspace], hskip: "Hskip", hspace: "Hskip", kern: "Hskip", mskip: "Hskip", mspace: "Hskip", mkern: "Hskip", rule: "rule", Rule: ["Rule"], Space: ["Rule", "blank"], nonscript: "Nonscript", big: ["MakeBig", Zt.TEXCLASS.ORD, 0.85], Big: ["MakeBig", Zt.TEXCLASS.ORD, 1.15], bigg: ["MakeBig", Zt.TEXCLASS.ORD, 1.45], Bigg: ["MakeBig", Zt.TEXCLASS.ORD, 1.75], bigl: ["MakeBig", Zt.TEXCLASS.OPEN, 0.85], Bigl: ["MakeBig", Zt.TEXCLASS.OPEN, 1.15], biggl: ["MakeBig", Zt.TEXCLASS.OPEN, 1.45], Biggl: ["MakeBig", Zt.TEXCLASS.OPEN, 1.75], bigr: ["MakeBig", Zt.TEXCLASS.CLOSE, 0.85], Bigr: ["MakeBig", Zt.TEXCLASS.CLOSE, 1.15], biggr: ["MakeBig", Zt.TEXCLASS.CLOSE, 1.45], Biggr: ["MakeBig", Zt.TEXCLASS.CLOSE, 1.75], bigm: ["MakeBig", Zt.TEXCLASS.REL, 0.85], Bigm: ["MakeBig", Zt.TEXCLASS.REL, 1.15], biggm: ["MakeBig", Zt.TEXCLASS.REL, 1.45], Biggm: ["MakeBig", Zt.TEXCLASS.REL, 1.75], mathord: ["TeXAtom", Zt.TEXCLASS.ORD], mathop: ["TeXAtom", Zt.TEXCLASS.OP], mathopen: ["TeXAtom", Zt.TEXCLASS.OPEN], mathclose: ["TeXAtom", Zt.TEXCLASS.CLOSE], mathbin: ["TeXAtom", Zt.TEXCLASS.BIN], mathrel: ["TeXAtom", Zt.TEXCLASS.REL], mathpunct: ["TeXAtom", Zt.TEXCLASS.PUNCT], mathinner: ["TeXAtom", Zt.TEXCLASS.INNER], vcenter: ["TeXAtom", Zt.TEXCLASS.VCENTER], buildrel: "BuildRel", hbox: ["HBox", 0], text: "HBox", mbox: ["HBox", 0], fbox: "FBox", boxed: ["Macro", "\\fbox{$\\displaystyle{#1}$}", 1], framebox: "FrameBox", strut: "Strut", mathstrut: ["Macro", "\\vphantom{(}"], phantom: "Phantom", vphantom: ["Phantom", 1, 0], hphantom: ["Phantom", 0, 1], smash: "Smash", acute: ["Accent", "00B4"], grave: ["Accent", "0060"], ddot: ["Accent", "00A8"], tilde: ["Accent", "007E"], bar: ["Accent", "00AF"], breve: ["Accent", "02D8"], check: ["Accent", "02C7"], hat: ["Accent", "005E"], vec: ["Accent", "2192"], dot: ["Accent", "02D9"], widetilde: ["Accent", "007E", 1], widehat: ["Accent", "005E", 1], matrix: "Matrix", array: "Matrix", pmatrix: ["Matrix", "(", ")"], cases: ["Matrix", "{", "", "left left", null, ".1em", null, true], eqalign: ["Matrix", null, null, "right left", (0, f2.em)(f2.MATHSPACE.thickmathspace), ".5em", "D"], displaylines: ["Matrix", null, null, "center", null, ".5em", "D"], cr: "Cr", "\\": "CrLaTeX", newline: ["CrLaTeX", true], hline: ["HLine", "solid"], hdashline: ["HLine", "dashed"], eqalignno: ["Matrix", null, null, "right left", (0, f2.em)(f2.MATHSPACE.thickmathspace), ".5em", "D", null, "right"], leqalignno: ["Matrix", null, null, "right left", (0, f2.em)(f2.MATHSPACE.thickmathspace), ".5em", "D", null, "left"], hfill: "HFill", hfil: "HFill", hfilll: "HFill", bmod: ["Macro", '\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'], pmod: ["Macro", "\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}", 1], mod: ["Macro", "\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1", 1], pod: ["Macro", "\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)", 1], iff: ["Macro", "\\;\\Longleftrightarrow\\;"], skew: ["Macro", "{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}", 3], pmb: ["Macro", "\\rlap{#1}\\kern1px{#1}", 1], TeX: ["Macro", "T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"], LaTeX: ["Macro", "L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"], " ": ["Macro", "\\text{ }"], not: "Not", dots: "Dots", space: "Tilde", " ": "Tilde", begin: "BeginEnd", end: "BeginEnd", label: "HandleLabel", ref: "HandleRef", nonumber: "HandleNoTag", mathchoice: "MathChoice", mmlToken: "MmlToken" }, kT.default);
|
|
21314
|
+
new T3.EnvironmentMap("environment", Lr.default.environment, { array: ["AlignedArray"], equation: ["Equation", null, true], eqnarray: ["EqnArray", null, true, true, "rcl", Ek.default.cols(0, f2.MATHSPACE.thickmathspace), ".5em"] }, kT.default);
|
|
21315
21315
|
new T3.CharacterMap("not_remap", null, { "←": "↚", "→": "↛", "↔": "↮", "⇐": "⇍", "⇒": "⇏", "⇔": "⇎", "∈": "∉", "∋": "∌", "∣": "∤", "∥": "∦", "∼": "≁", "~": "≁", "≃": "≄", "≅": "≇", "≈": "≉", "≍": "≭", "=": "≠", "≡": "≢", "<": "≮", ">": "≯", "≤": "≰", "≥": "≱", "≲": "≴", "≳": "≵", "≶": "≸", "≷": "≹", "≺": "⊀", "≻": "⊁", "⊂": "⊄", "⊃": "⊅", "⊆": "⊈", "⊇": "⊉", "⊢": "⊬", "⊨": "⊭", "⊩": "⊮", "⊫": "⊯", "≼": "⋠", "≽": "⋡", "⊑": "⋢", "⊒": "⋣", "⊲": "⋪", "⊳": "⋫", "⊴": "⋬", "⊵": "⋭", "∃": "∄" });
|
|
21316
21316
|
var Ak = b && b.__extends || /* @__PURE__ */ function() {
|
|
21317
21317
|
var r = function(t, e) {
|
|
@@ -21498,7 +21498,7 @@ var RT = {}, Zk = {};
|
|
|
21498
21498
|
return o && o.__esModule ? o : { default: o };
|
|
21499
21499
|
};
|
|
21500
21500
|
Object.defineProperty(r, "__esModule", { value: true }), r.ActionConfiguration = r.ActionMethods = void 0;
|
|
21501
|
-
var e = Qe, n = t(r2()), s = zt, a = t(
|
|
21501
|
+
var e = Qe, n = t(r2()), s = zt, a = t(g2);
|
|
21502
21502
|
r.ActionMethods = {}, r.ActionMethods.Macro = a.default.Macro, r.ActionMethods.Toggle = function(o, l) {
|
|
21503
21503
|
for (var u = [], h; (h = o.GetArgument(l)) !== "\\endtoggle"; ) u.push(new n.default(h, o.stack.env, o.configuration).mml());
|
|
21504
21504
|
o.Push(o.create("node", "maction", u, { actiontype: "toggle" }));
|
|
@@ -21627,7 +21627,7 @@ var Jn = {};
|
|
|
21627
21627
|
return y && y.__esModule ? y : { default: y };
|
|
21628
21628
|
};
|
|
21629
21629
|
Object.defineProperty(r, "__esModule", { value: true }), r.NEW_OPS = r.AmsMethods = void 0;
|
|
21630
|
-
var s = n(ze()), a = n(h3), o = n(Ge), l = q1, u = n(r2()), h = n(_e), T = s3, f = n(
|
|
21630
|
+
var s = n(ze()), a = n(h3), o = n(Ge), l = q1, u = n(r2()), h = n(_e), T = s3, f = n(g2), d = Gt;
|
|
21631
21631
|
r.AmsMethods = {}, r.AmsMethods.AmsEqnArray = function(y, c, Q, m, v, x, L) {
|
|
21632
21632
|
var _ = y.GetBrackets("\\begin{" + c.getName() + "}"), S = f.default.EqnArray(y, c, Q, m, v, x, L);
|
|
21633
21633
|
return s.default.setArrayAlign(S, _);
|
|
@@ -21989,7 +21989,7 @@ var zT = {}, Lb = b && b.__importDefault || function(r) {
|
|
|
21989
21989
|
return r && r.__esModule ? r : { default: r };
|
|
21990
21990
|
};
|
|
21991
21991
|
Object.defineProperty(zT, "__esModule", { value: true });
|
|
21992
|
-
var gR = Lb(
|
|
21992
|
+
var gR = Lb(g2), U9 = Gt, yR = Lb(_e), O7 = {};
|
|
21993
21993
|
O7.Macro = gR.default.Macro;
|
|
21994
21994
|
O7.Braket = function(r, t, e, n, s, a) {
|
|
21995
21995
|
var o = r.GetNext();
|
|
@@ -22594,7 +22594,7 @@ var PR = {}, KT = {};
|
|
|
22594
22594
|
return g && g.__esModule ? g : { default: g };
|
|
22595
22595
|
}, n;
|
|
22596
22596
|
Object.defineProperty(r, "__esModule", { value: true }), r.CasesConfiguration = r.CasesMethods = r.CasesTags = r.CasesBeginItem = void 0;
|
|
22597
|
-
var s = Qe, a = zt, o = e(ze()), l = e(
|
|
22597
|
+
var s = Qe, a = zt, o = e(ze()), l = e(g2), u = e(_e), h = Ut, T = In, f = KT, d = function(g) {
|
|
22598
22598
|
t(y, g);
|
|
22599
22599
|
function y() {
|
|
22600
22600
|
return g !== null && g.apply(this, arguments) || this;
|
|
@@ -22665,7 +22665,7 @@ var F5 = {}, kR = b && b.__values || function(r) {
|
|
|
22665
22665
|
};
|
|
22666
22666
|
Object.defineProperty(F5, "__esModule", { value: true });
|
|
22667
22667
|
F5.CenternotConfiguration = F5.filterCenterOver = void 0;
|
|
22668
|
-
var RR = Qe, gm = XT(r2()), ym = XT(Ge), BR = zt, FR = XT(
|
|
22668
|
+
var RR = Qe, gm = XT(r2()), ym = XT(Ge), BR = zt, FR = XT(g2);
|
|
22669
22669
|
new BR.CommandMap("centernot", { centerOver: "CenterOver", centernot: ["Macro", "\\centerOver{#1}{{⧸}}", 1] }, { CenterOver: function(r, t) {
|
|
22670
22670
|
var e = "{" + r.GetArgument(t) + "}", n = r.ParseArg(t), s = new gm.default(e, r.stack.env, r.configuration).mml(), a = r.create("node", "TeXAtom", [new gm.default(e, r.stack.env, r.configuration).mml(), r.create("node", "mpadded", [r.create("node", "mpadded", [n], { width: 0, lspace: "-.5width" }), r.create("node", "mphantom", [s])], { width: 0, lspace: "-.5width" })]);
|
|
22671
22671
|
r.configuration.addNode("centerOver", s), r.Push(a);
|
|
@@ -22991,61 +22991,61 @@ var tB = b && b.__createBinding || (Object.create ? function(r, t, e, n) {
|
|
|
22991
22991
|
return r && r.__esModule ? r : { default: r };
|
|
22992
22992
|
};
|
|
22993
22993
|
Object.defineProperty(C0, "__esModule", { value: true });
|
|
22994
|
-
var rB = R7(_e), nB = iB(zt), sB = R7(
|
|
22994
|
+
var rB = R7(_e), nB = iB(zt), sB = R7(g2), $r = R7(ze()), d1 = R7(e6), D2 = {};
|
|
22995
22995
|
D2.NewCommand = function(r, t) {
|
|
22996
|
-
var e =
|
|
22997
|
-
|
|
22996
|
+
var e = d1.default.GetCsNameArgument(r, t), n = d1.default.GetArgCount(r, t), s = r.GetBrackets(t), a = r.GetArgument(t);
|
|
22997
|
+
d1.default.addMacro(r, e, D2.Macro, [a, n, s]);
|
|
22998
22998
|
};
|
|
22999
22999
|
D2.NewEnvironment = function(r, t) {
|
|
23000
|
-
var e = $r.default.trimSpaces(r.GetArgument(t)), n =
|
|
23001
|
-
|
|
23000
|
+
var e = $r.default.trimSpaces(r.GetArgument(t)), n = d1.default.GetArgCount(r, t), s = r.GetBrackets(t), a = r.GetArgument(t), o = r.GetArgument(t);
|
|
23001
|
+
d1.default.addEnvironment(r, e, D2.BeginEnv, [true, a, o, n, s]);
|
|
23002
23002
|
};
|
|
23003
23003
|
D2.MacroDef = function(r, t) {
|
|
23004
|
-
var e =
|
|
23005
|
-
n instanceof Array ?
|
|
23004
|
+
var e = d1.default.GetCSname(r, t), n = d1.default.GetTemplate(r, t, "\\" + e), s = r.GetArgument(t);
|
|
23005
|
+
n instanceof Array ? d1.default.addMacro(r, e, D2.MacroWithTemplate, [s].concat(n)) : d1.default.addMacro(r, e, D2.Macro, [s, n]);
|
|
23006
23006
|
};
|
|
23007
23007
|
D2.Let = function(r, t) {
|
|
23008
|
-
var e =
|
|
23008
|
+
var e = d1.default.GetCSname(r, t), n = r.GetNext();
|
|
23009
23009
|
n === "=" && (r.i++, n = r.GetNext());
|
|
23010
23010
|
var s = r.configuration.handlers;
|
|
23011
23011
|
if (n === "\\") {
|
|
23012
|
-
t =
|
|
23012
|
+
t = d1.default.GetCSname(r, t);
|
|
23013
23013
|
var a = s.get("delimiter").lookup("\\" + t);
|
|
23014
23014
|
if (a) {
|
|
23015
|
-
|
|
23015
|
+
d1.default.addDelimiter(r, "\\" + e, a.char, a.attributes);
|
|
23016
23016
|
return;
|
|
23017
23017
|
}
|
|
23018
23018
|
var o = s.get("macro").applicable(t);
|
|
23019
23019
|
if (!o) return;
|
|
23020
23020
|
if (o instanceof nB.MacroMap) {
|
|
23021
23021
|
var l = o.lookup(t);
|
|
23022
|
-
|
|
23022
|
+
d1.default.addMacro(r, e, l.func, l.args, l.symbol);
|
|
23023
23023
|
return;
|
|
23024
23024
|
}
|
|
23025
23025
|
a = o.lookup(t);
|
|
23026
|
-
var u =
|
|
23026
|
+
var u = d1.default.disassembleSymbol(e, a), h = function(f, d) {
|
|
23027
23027
|
for (var p = [], g = 2; g < arguments.length; g++) p[g - 2] = arguments[g];
|
|
23028
|
-
var y =
|
|
23028
|
+
var y = d1.default.assembleSymbol(p);
|
|
23029
23029
|
return o.parser(f, y);
|
|
23030
23030
|
};
|
|
23031
|
-
|
|
23031
|
+
d1.default.addMacro(r, e, h, u);
|
|
23032
23032
|
return;
|
|
23033
23033
|
}
|
|
23034
23034
|
r.i++;
|
|
23035
23035
|
var T = s.get("delimiter").lookup(n);
|
|
23036
23036
|
if (T) {
|
|
23037
|
-
|
|
23037
|
+
d1.default.addDelimiter(r, "\\" + e, T.char, T.attributes);
|
|
23038
23038
|
return;
|
|
23039
23039
|
}
|
|
23040
|
-
|
|
23040
|
+
d1.default.addMacro(r, e, D2.Macro, [n]);
|
|
23041
23041
|
};
|
|
23042
23042
|
D2.MacroWithTemplate = function(r, t, e, n) {
|
|
23043
23043
|
for (var s = [], a = 4; a < arguments.length; a++) s[a - 4] = arguments[a];
|
|
23044
23044
|
var o = parseInt(n, 10);
|
|
23045
23045
|
if (o) {
|
|
23046
23046
|
var l = [];
|
|
23047
|
-
if (r.GetNext(), s[0] && !
|
|
23048
|
-
for (var u = 0; u < o; u++) l.push(
|
|
23047
|
+
if (r.GetNext(), s[0] && !d1.default.MatchParam(r, s[0])) throw new rB.default("MismatchUseDef", "Use of %1 doesn't match its definition", t);
|
|
23048
|
+
for (var u = 0; u < o; u++) l.push(d1.default.GetParameter(r, t, s[u + 1]));
|
|
23049
23049
|
e = $r.default.substituteArgs(r, l, e);
|
|
23050
23050
|
}
|
|
23051
23051
|
r.string = $r.default.addArgs(r, e, r.string.slice(r.i)), r.i = 0, $r.default.checkMaxMacros(r);
|
|
@@ -23426,7 +23426,7 @@ function zb() {
|
|
|
23426
23426
|
return Q && Q.__esModule ? Q : { default: Q };
|
|
23427
23427
|
};
|
|
23428
23428
|
Object.defineProperty(r, "__esModule", { value: true }), r.MathtoolsMethods = void 0;
|
|
23429
|
-
var a = s(ze()), o = Jn, l = s(
|
|
23429
|
+
var a = s(ze()), o = Jn, l = s(g2), u = s(r2()), h = s(_e), T = s(Ge), f = Gt, d = z3, p = M1, g = s(e6), y = s(C0), c = Gb();
|
|
23430
23430
|
r.MathtoolsMethods = { MtMatrix: function(Q, m, v, x) {
|
|
23431
23431
|
var L = Q.GetBrackets("\\begin{".concat(m.getName(), "}"), "c");
|
|
23432
23432
|
return r.MathtoolsMethods.Array(Q, m, v, x, L);
|
|
@@ -23885,7 +23885,7 @@ var GB = function() {
|
|
|
23885
23885
|
}, r;
|
|
23886
23886
|
}();
|
|
23887
23887
|
j7.mhchemParser = GB;
|
|
23888
|
-
function
|
|
23888
|
+
function c2(r) {
|
|
23889
23889
|
var t, e, n = {};
|
|
23890
23890
|
for (t in r) for (e in r[t]) {
|
|
23891
23891
|
var s = e.split("|");
|
|
@@ -24083,7 +24083,7 @@ var Tt = { go: function(r, t) {
|
|
|
24083
24083
|
return n[1] = n[1].replace(/\$/g, ""), e.push({ type_: "frac", p1: n[1], p2: n[2] }), n[3] && (n[3] = n[3].replace(/\$/g, ""), e.push({ type_: "tex-math", p1: n[3] })), e;
|
|
24084
24084
|
}, "9,9": function(r, t) {
|
|
24085
24085
|
return Tt.go(t, "9,9");
|
|
24086
|
-
} }, stateMachines: { tex: { transitions:
|
|
24086
|
+
} }, stateMachines: { tex: { transitions: c2({ empty: { 0: { action_: "copy" } }, "\\ce{(...)}": { 0: { action_: [{ type_: "write", option: "{" }, "ce", { type_: "write", option: "}" }] } }, "\\pu{(...)}": { 0: { action_: [{ type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, else: { 0: { action_: "copy" } } }), actions: {} }, ce: { transitions: c2({ empty: { "*": { action_: "output" } }, else: { "0|1|2": { action_: "beginsWithBond=false", revisit: true, toContinue: true } }, oxidation$: { 0: { action_: "oxidation-output" } }, CMT: { r: { action_: "rdt=", nextState: "rt" }, rd: { action_: "rqt=", nextState: "rdt" } }, arrowUpDown: { "0|1|2|as": { action_: ["sb=false", "output", "operator"], nextState: "1" } }, uprightEntities: { "0|1|2": { action_: ["o=", "output"], nextState: "1" } }, orbital: { "0|1|2|3": { action_: "o=", nextState: "o" } }, "->": { "0|1|2|3": { action_: "r=", nextState: "r" }, "a|as": { action_: ["output", "r="], nextState: "r" }, "*": { action_: ["output", "r="], nextState: "r" } }, "+": { o: { action_: "d= kv", nextState: "d" }, "d|D": { action_: "d=", nextState: "d" }, q: { action_: "d=", nextState: "qd" }, "qd|qD": { action_: "d=", nextState: "qd" }, dq: { action_: ["output", "d="], nextState: "d" }, 3: { action_: ["sb=false", "output", "operator"], nextState: "0" } }, amount: { "0|2": { action_: "a=", nextState: "a" } }, "pm-operator": { "0|1|2|a|as": { action_: ["sb=false", "output", { type_: "operator", option: "\\pm" }], nextState: "0" } }, operator: { "0|1|2|a|as": { action_: ["sb=false", "output", "operator"], nextState: "0" } }, "-$": { "o|q": { action_: ["charge or bond", "output"], nextState: "qd" }, d: { action_: "d=", nextState: "d" }, D: { action_: ["output", { type_: "bond", option: "-" }], nextState: "3" }, q: { action_: "d=", nextState: "qd" }, qd: { action_: "d=", nextState: "qd" }, "qD|dq": { action_: ["output", { type_: "bond", option: "-" }], nextState: "3" } }, "-9": { "3|o": { action_: ["output", { type_: "insert", option: "hyphen" }], nextState: "3" } }, "- orbital overlap": { o: { action_: ["output", { type_: "insert", option: "hyphen" }], nextState: "2" }, d: { action_: ["output", { type_: "insert", option: "hyphen" }], nextState: "2" } }, "-": { "0|1|2": { action_: [{ type_: "output", option: 1 }, "beginsWithBond=true", { type_: "bond", option: "-" }], nextState: "3" }, 3: { action_: { type_: "bond", option: "-" } }, a: { action_: ["output", { type_: "insert", option: "hyphen" }], nextState: "2" }, as: { action_: [{ type_: "output", option: 2 }, { type_: "bond", option: "-" }], nextState: "3" }, b: { action_: "b=" }, o: { action_: { type_: "- after o/d", option: false }, nextState: "2" }, q: { action_: { type_: "- after o/d", option: false }, nextState: "2" }, "d|qd|dq": { action_: { type_: "- after o/d", option: true }, nextState: "2" }, "D|qD|p": { action_: ["output", { type_: "bond", option: "-" }], nextState: "3" } }, amount2: { "1|3": { action_: "a=", nextState: "a" } }, letters: { "0|1|2|3|a|as|b|p|bp|o": { action_: "o=", nextState: "o" }, "q|dq": { action_: ["output", "o="], nextState: "o" }, "d|D|qd|qD": { action_: "o after d", nextState: "o" } }, digits: { o: { action_: "q=", nextState: "q" }, "d|D": { action_: "q=", nextState: "dq" }, q: { action_: ["output", "o="], nextState: "o" }, a: { action_: "o=", nextState: "o" } }, "space A": { "b|p|bp": { action_: [] } }, space: { a: { action_: [], nextState: "as" }, 0: { action_: "sb=false" }, "1|2": { action_: "sb=true" }, "r|rt|rd|rdt|rdq": { action_: "output", nextState: "0" }, "*": { action_: ["output", "sb=true"], nextState: "1" } }, "1st-level escape": { "1|2": { action_: ["output", { type_: "insert+p1", option: "1st-level escape" }] }, "*": { action_: ["output", { type_: "insert+p1", option: "1st-level escape" }], nextState: "0" } }, "[(...)]": { "r|rt": { action_: "rd=", nextState: "rd" }, "rd|rdt": { action_: "rq=", nextState: "rdq" } }, "...": { "o|d|D|dq|qd|qD": { action_: ["output", { type_: "bond", option: "..." }], nextState: "3" }, "*": { action_: [{ type_: "output", option: 1 }, { type_: "insert", option: "ellipsis" }], nextState: "1" } }, ". __* ": { "*": { action_: ["output", { type_: "insert", option: "addition compound" }], nextState: "1" } }, "state of aggregation $": { "*": { action_: ["output", "state of aggregation"], nextState: "1" } }, "{[(": { "a|as|o": { action_: ["o=", "output", "parenthesisLevel++"], nextState: "2" }, "0|1|2|3": { action_: ["o=", "output", "parenthesisLevel++"], nextState: "2" }, "*": { action_: ["output", "o=", "output", "parenthesisLevel++"], nextState: "2" } }, ")]}": { "0|1|2|3|b|p|bp|o": { action_: ["o=", "parenthesisLevel--"], nextState: "o" }, "a|as|d|D|q|qd|qD|dq": { action_: ["output", "o=", "parenthesisLevel--"], nextState: "o" } }, ", ": { "*": { action_: ["output", "comma"], nextState: "0" } }, "^_": { "*": { action_: [] } }, "^{(...)}|^($...$)": { "0|1|2|as": { action_: "b=", nextState: "b" }, p: { action_: "b=", nextState: "bp" }, "3|o": { action_: "d= kv", nextState: "D" }, q: { action_: "d=", nextState: "qD" }, "d|D|qd|qD|dq": { action_: ["output", "d="], nextState: "D" } }, "^a|^\\x{}{}|^\\x{}|^\\x|'": { "0|1|2|as": { action_: "b=", nextState: "b" }, p: { action_: "b=", nextState: "bp" }, "3|o": { action_: "d= kv", nextState: "d" }, q: { action_: "d=", nextState: "qd" }, "d|qd|D|qD": { action_: "d=" }, dq: { action_: ["output", "d="], nextState: "d" } }, "_{(state of aggregation)}$": { "d|D|q|qd|qD|dq": { action_: ["output", "q="], nextState: "q" } }, "_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x": { "0|1|2|as": { action_: "p=", nextState: "p" }, b: { action_: "p=", nextState: "bp" }, "3|o": { action_: "q=", nextState: "q" }, "d|D": { action_: "q=", nextState: "dq" }, "q|qd|qD|dq": { action_: ["output", "q="], nextState: "q" } }, "=<>": { "0|1|2|3|a|as|o|q|d|D|qd|qD|dq": { action_: [{ type_: "output", option: 2 }, "bond"], nextState: "3" } }, "#": { "0|1|2|3|a|as|o": { action_: [{ type_: "output", option: 2 }, { type_: "bond", option: "#" }], nextState: "3" } }, "{}^": { "*": { action_: [{ type_: "output", option: 1 }, { type_: "insert", option: "tinySkip" }], nextState: "1" } }, "{}": { "*": { action_: { type_: "output", option: 1 }, nextState: "1" } }, "{...}": { "0|1|2|3|a|as|b|p|bp": { action_: "o=", nextState: "o" }, "o|d|D|q|qd|qD|dq": { action_: ["output", "o="], nextState: "o" } }, "$...$": { a: { action_: "a=" }, "0|1|2|3|as|b|p|bp|o": { action_: "o=", nextState: "o" }, "as|o": { action_: "o=" }, "q|d|D|qd|qD|dq": { action_: ["output", "o="], nextState: "o" } }, "\\bond{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "bond"], nextState: "3" } }, "\\frac{(...)}": { "*": { action_: [{ type_: "output", option: 1 }, "frac-output"], nextState: "3" } }, "\\overset{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "overset-output"], nextState: "3" } }, "\\underset{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "underset-output"], nextState: "3" } }, "\\underbrace{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "underbrace-output"], nextState: "3" } }, "\\color{(...)}{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "color-output"], nextState: "3" } }, "\\color{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "color0-output"] } }, "\\ce{(...)}": { "*": { action_: [{ type_: "output", option: 2 }, "ce"], nextState: "3" } }, "\\,": { "*": { action_: [{ type_: "output", option: 1 }, "copy"], nextState: "1" } }, "\\pu{(...)}": { "*": { action_: ["output", { type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }], nextState: "3" } }, "\\x{}{}|\\x{}|\\x": { "0|1|2|3|a|as|b|p|bp|o|c0": { action_: ["o=", "output"], nextState: "3" }, "*": { action_: ["output", "o=", "output"], nextState: "3" } }, others: { "*": { action_: [{ type_: "output", option: 1 }, "copy"], nextState: "3" } }, else2: { a: { action_: "a to o", nextState: "o", revisit: true }, as: { action_: ["output", "sb=true"], nextState: "1", revisit: true }, "r|rt|rd|rdt|rdq": { action_: ["output"], nextState: "0", revisit: true }, "*": { action_: ["output", "copy"], nextState: "3" } } }), actions: { "o after d": function(r, t) {
|
|
24087
24087
|
var e;
|
|
24088
24088
|
if ((r.d || "").match(/^[1-9][0-9]*$/)) {
|
|
24089
24089
|
var n = r.d;
|
|
@@ -24160,27 +24160,27 @@ var Tt = { go: function(r, t) {
|
|
|
24160
24160
|
r.rq = t;
|
|
24161
24161
|
}, operator: function(r, t, e) {
|
|
24162
24162
|
return { type_: "operator", kind_: e || t };
|
|
24163
|
-
} } }, a: { transitions:
|
|
24163
|
+
} } }, a: { transitions: c2({ empty: { "*": { action_: [] } }, "1/2$": { 0: { action_: "1/2" } }, else: { 0: { action_: [], nextState: "1", revisit: true } }, "${(...)}$__$(...)$": { "*": { action_: "tex-math tight", nextState: "1" } }, ",": { "*": { action_: { type_: "insert", option: "commaDecimal" } } }, else2: { "*": { action_: "copy" } } }), actions: {} }, o: { transitions: c2({ empty: { "*": { action_: [] } }, "1/2$": { 0: { action_: "1/2" } }, else: { 0: { action_: [], nextState: "1", revisit: true } }, letters: { "*": { action_: "rm" } }, "\\ca": { "*": { action_: { type_: "insert", option: "circa" } } }, "\\pu{(...)}": { "*": { action_: [{ type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, "\\x{}{}|\\x{}|\\x": { "*": { action_: "copy" } }, "${(...)}$__$(...)$": { "*": { action_: "tex-math" } }, "{(...)}": { "*": { action_: [{ type_: "write", option: "{" }, "text", { type_: "write", option: "}" }] } }, else2: { "*": { action_: "copy" } } }), actions: {} }, text: { transitions: c2({ empty: { "*": { action_: "output" } }, "{...}": { "*": { action_: "text=" } }, "${(...)}$__$(...)$": { "*": { action_: "tex-math" } }, "\\greek": { "*": { action_: ["output", "rm"] } }, "\\pu{(...)}": { "*": { action_: ["output", { type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, "\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: ["output", "copy"] } }, else: { "*": { action_: "text=" } } }), actions: { output: function(r) {
|
|
24164
24164
|
if (r.text_) {
|
|
24165
24165
|
var t = { type_: "text", p1: r.text_ };
|
|
24166
24166
|
for (var e in r) delete r[e];
|
|
24167
24167
|
return t;
|
|
24168
24168
|
}
|
|
24169
|
-
} } }, pq: { transitions:
|
|
24169
|
+
} } }, pq: { transitions: c2({ empty: { "*": { action_: [] } }, "state of aggregation $": { "*": { action_: "state of aggregation" } }, i$: { 0: { action_: [], nextState: "!f", revisit: true } }, "(KV letters),": { 0: { action_: "rm", nextState: "0" } }, formula$: { 0: { action_: [], nextState: "f", revisit: true } }, "1/2$": { 0: { action_: "1/2" } }, else: { 0: { action_: [], nextState: "!f", revisit: true } }, "${(...)}$__$(...)$": { "*": { action_: "tex-math" } }, "{(...)}": { "*": { action_: "text" } }, "a-z": { f: { action_: "tex-math" } }, letters: { "*": { action_: "rm" } }, "-9.,9": { "*": { action_: "9,9" } }, ",": { "*": { action_: { type_: "insert+p1", option: "comma enumeration S" } } }, "\\color{(...)}{(...)}": { "*": { action_: "color-output" } }, "\\color{(...)}": { "*": { action_: "color0-output" } }, "\\ce{(...)}": { "*": { action_: "ce" } }, "\\pu{(...)}": { "*": { action_: [{ type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, "\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "copy" } }, else2: { "*": { action_: "copy" } } }), actions: { "state of aggregation": function(r, t) {
|
|
24170
24170
|
return { type_: "state of aggregation subscript", p1: Tt.go(t, "o") };
|
|
24171
24171
|
}, "color-output": function(r, t) {
|
|
24172
24172
|
return { type_: "color", color1: t[0], color2: Tt.go(t[1], "pq") };
|
|
24173
|
-
} } }, bd: { transitions:
|
|
24173
|
+
} } }, bd: { transitions: c2({ empty: { "*": { action_: [] } }, x$: { 0: { action_: [], nextState: "!f", revisit: true } }, formula$: { 0: { action_: [], nextState: "f", revisit: true } }, else: { 0: { action_: [], nextState: "!f", revisit: true } }, "-9.,9 no missing 0": { "*": { action_: "9,9" } }, ".": { "*": { action_: { type_: "insert", option: "electron dot" } } }, "a-z": { f: { action_: "tex-math" } }, x: { "*": { action_: { type_: "insert", option: "KV x" } } }, letters: { "*": { action_: "rm" } }, "'": { "*": { action_: { type_: "insert", option: "prime" } } }, "${(...)}$__$(...)$": { "*": { action_: "tex-math" } }, "{(...)}": { "*": { action_: "text" } }, "\\color{(...)}{(...)}": { "*": { action_: "color-output" } }, "\\color{(...)}": { "*": { action_: "color0-output" } }, "\\ce{(...)}": { "*": { action_: "ce" } }, "\\pu{(...)}": { "*": { action_: [{ type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, "\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "copy" } }, else2: { "*": { action_: "copy" } } }), actions: { "color-output": function(r, t) {
|
|
24174
24174
|
return { type_: "color", color1: t[0], color2: Tt.go(t[1], "bd") };
|
|
24175
|
-
} } }, oxidation: { transitions:
|
|
24175
|
+
} } }, oxidation: { transitions: c2({ empty: { "*": { action_: "roman-numeral" } }, "pm-operator": { "*": { action_: { type_: "o=+p1", option: "\\pm" } } }, else: { "*": { action_: "o=" } } }), actions: { "roman-numeral": function(r) {
|
|
24176
24176
|
return { type_: "roman numeral", p1: r.o || "" };
|
|
24177
|
-
} } }, "tex-math": { transitions:
|
|
24177
|
+
} } }, "tex-math": { transitions: c2({ empty: { "*": { action_: "output" } }, "\\ce{(...)}": { "*": { action_: ["output", "ce"] } }, "\\pu{(...)}": { "*": { action_: ["output", { type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, "{...}|\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "o=" } }, else: { "*": { action_: "o=" } } }), actions: { output: function(r) {
|
|
24178
24178
|
if (r.o) {
|
|
24179
24179
|
var t = { type_: "tex-math", p1: r.o };
|
|
24180
24180
|
for (var e in r) delete r[e];
|
|
24181
24181
|
return t;
|
|
24182
24182
|
}
|
|
24183
|
-
} } }, "tex-math tight": { transitions:
|
|
24183
|
+
} } }, "tex-math tight": { transitions: c2({ empty: { "*": { action_: "output" } }, "\\ce{(...)}": { "*": { action_: ["output", "ce"] } }, "\\pu{(...)}": { "*": { action_: ["output", { type_: "write", option: "{" }, "pu", { type_: "write", option: "}" }] } }, "{...}|\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "o=" } }, "-|+": { "*": { action_: "tight operator" } }, else: { "*": { action_: "o=" } } }), actions: { "tight operator": function(r, t) {
|
|
24184
24184
|
r.o = (r.o || "") + "{" + t + "}";
|
|
24185
24185
|
}, output: function(r) {
|
|
24186
24186
|
if (r.o) {
|
|
@@ -24188,9 +24188,9 @@ var Tt = { go: function(r, t) {
|
|
|
24188
24188
|
for (var e in r) delete r[e];
|
|
24189
24189
|
return t;
|
|
24190
24190
|
}
|
|
24191
|
-
} } }, "9,9": { transitions:
|
|
24191
|
+
} } }, "9,9": { transitions: c2({ empty: { "*": { action_: [] } }, ",": { "*": { action_: "comma" } }, else: { "*": { action_: "copy" } } }), actions: { comma: function() {
|
|
24192
24192
|
return { type_: "commaDecimal" };
|
|
24193
|
-
} } }, pu: { transitions:
|
|
24193
|
+
} } }, pu: { transitions: c2({ empty: { "*": { action_: "output" } }, space$: { "*": { action_: ["output", "space"] } }, "{[(|)]}": { "0|a": { action_: "copy" } }, "(-)(9)^(-9)": { 0: { action_: "number^", nextState: "a" } }, "(-)(9.,9)(e)(99)": { 0: { action_: "enumber", nextState: "a" } }, space: { "0|a": { action_: [] } }, "pm-operator": { "0|a": { action_: { type_: "operator", option: "\\pm" }, nextState: "0" } }, operator: { "0|a": { action_: "copy", nextState: "0" } }, "//": { d: { action_: "o=", nextState: "/" } }, "/": { d: { action_: "o=", nextState: "/" } }, "{...}|else": { "0|d": { action_: "d=", nextState: "d" }, a: { action_: ["space", "d="], nextState: "d" }, "/|q": { action_: "q=", nextState: "q" } } }), actions: { enumber: function(r, t) {
|
|
24194
24194
|
var e = [];
|
|
24195
24195
|
return t[0] === "+-" || t[0] === "+/-" ? e.push("\\pm ") : t[0] && e.push(t[0]), t[1] && (Tt.concatArray(e, Tt.go(t[1], "pu-9,9")), t[2] && (t[2].match(/[,.]/) ? Tt.concatArray(e, Tt.go(t[2], "pu-9,9")) : e.push(t[2])), (t[3] || t[4]) && (t[3] === "e" || t[4] === "*" ? e.push({ type_: "cdot" }) : e.push({ type_: "times" }))), t[5] && e.push("10^{" + t[5] + "}"), e;
|
|
24196
24196
|
}, "number^": function(r, t) {
|
|
@@ -24211,7 +24211,7 @@ var Tt = { go: function(r, t) {
|
|
|
24211
24211
|
} else t = Tt.go(r.d, "pu-2");
|
|
24212
24212
|
for (var a in r) delete r[a];
|
|
24213
24213
|
return t;
|
|
24214
|
-
} } }, "pu-2": { transitions:
|
|
24214
|
+
} } }, "pu-2": { transitions: c2({ empty: { "*": { action_: "output" } }, "*": { "*": { action_: ["output", "cdot"], nextState: "0" } }, "\\x": { "*": { action_: "rm=" } }, space: { "*": { action_: ["output", "space"], nextState: "0" } }, "^{(...)}|^(-1)": { 1: { action_: "^(-1)" } }, "-9.,9": { 0: { action_: "rm=", nextState: "0" }, 1: { action_: "^(-1)", nextState: "0" } }, "{...}|else": { "*": { action_: "rm=", nextState: "1" } } }), actions: { cdot: function() {
|
|
24215
24215
|
return { type_: "tight cdot" };
|
|
24216
24216
|
}, "^(-1)": function(r, t) {
|
|
24217
24217
|
r.rm += "^{" + t + "}";
|
|
@@ -24225,7 +24225,7 @@ var Tt = { go: function(r, t) {
|
|
|
24225
24225
|
}
|
|
24226
24226
|
for (var n in r) delete r[n];
|
|
24227
24227
|
return t;
|
|
24228
|
-
} } }, "pu-9,9": { transitions:
|
|
24228
|
+
} } }, "pu-9,9": { transitions: c2({ empty: { 0: { action_: "output-0" }, o: { action_: "output-o" } }, ",": { 0: { action_: ["output-0", "comma"], nextState: "o" } }, ".": { 0: { action_: ["output-0", "copy"], nextState: "o" } }, else: { "*": { action_: "text=" } } }), actions: { comma: function() {
|
|
24229
24229
|
return { type_: "commaDecimal" };
|
|
24230
24230
|
}, "output-0": function(r) {
|
|
24231
24231
|
var t = [];
|
|
@@ -24498,7 +24498,7 @@ var Tt = { go: function(r, t) {
|
|
|
24498
24498
|
};
|
|
24499
24499
|
Object.defineProperty(nf, "__esModule", { value: true });
|
|
24500
24500
|
nf.MhchemConfiguration = void 0;
|
|
24501
|
-
var zB = Qe, WB = zt, qB = qb(_e), ZB = qb(
|
|
24501
|
+
var zB = Qe, WB = zt, qB = qb(_e), ZB = qb(g2), KB = Jn, XB = j7, G7 = {};
|
|
24502
24502
|
G7.Macro = ZB.default.Macro;
|
|
24503
24503
|
G7.xArrow = KB.AmsMethods.xArrow;
|
|
24504
24504
|
G7.Machine = function(r, t, e) {
|
|
@@ -24621,7 +24621,7 @@ var uf = {}, oF = b && b.__read || function(r, t) {
|
|
|
24621
24621
|
return r && r.__esModule ? r : { default: r };
|
|
24622
24622
|
};
|
|
24623
24623
|
Object.defineProperty(uf, "__esModule", { value: true });
|
|
24624
|
-
var cf = I0(
|
|
24624
|
+
var cf = I0(g2), P1 = I0(r2()), Vn = I0(_e), hf = Gt, y5 = I0(ze()), oh = I0(Ge), lF = $n, Oe = {}, Zb = { "(": ")", "[": "]", "{": "}", "|": "|" }, Kb = /^(b|B)i(g{1,2})$/;
|
|
24625
24625
|
Oe.Quantity = function(r, t, e, n, s, a, o) {
|
|
24626
24626
|
e === void 0 && (e = "("), n === void 0 && (n = ")"), s === void 0 && (s = false), a === void 0 && (a = ""), o === void 0 && (o = "");
|
|
24627
24627
|
var l = s ? r.GetStar() : false, u = r.GetNext(), h = r.i, T = null;
|
|
@@ -24953,7 +24953,7 @@ var gF = {};
|
|
|
24953
24953
|
return d && d.__esModule ? d : { default: d };
|
|
24954
24954
|
};
|
|
24955
24955
|
Object.defineProperty(r, "__esModule", { value: true }), r.SetOptionsConfiguration = r.SetOptionsUtil = void 0;
|
|
24956
|
-
var n = Qe, s = zt, a = e(_e), o = e(ze()), l = s3, u = e(
|
|
24956
|
+
var n = Qe, s = zt, a = e(_e), o = e(ze()), l = s3, u = e(g2), h = M1;
|
|
24957
24957
|
r.SetOptionsUtil = { filterPackage: function(d, p) {
|
|
24958
24958
|
if (p !== "tex" && !n.ConfigurationHandler.get(p)) throw new a.default("NotAPackage", "Not a defined package: %1", p);
|
|
24959
24959
|
var g = d.options.setoptions, y = g.allowOptions[p];
|
|
@@ -25047,7 +25047,7 @@ var ff = {}, i6 = {}, t_ = b && b.__importDefault || function(r) {
|
|
|
25047
25047
|
};
|
|
25048
25048
|
Object.defineProperty(i6, "__esModule", { value: true });
|
|
25049
25049
|
i6.TextMacrosMethods = void 0;
|
|
25050
|
-
var xF = t_(r2()), LF = Qr, k4 = t_(
|
|
25050
|
+
var xF = t_(r2()), LF = Qr, k4 = t_(g2);
|
|
25051
25051
|
i6.TextMacrosMethods = { Comment: function(r, t) {
|
|
25052
25052
|
for (; r.i < r.string.length && r.string.charAt(r.i) !== `
|
|
25053
25053
|
`; ) r.i++;
|
|
@@ -25808,7 +25808,7 @@ var lN = function() {
|
|
|
25808
25808
|
}, r;
|
|
25809
25809
|
}();
|
|
25810
25810
|
Y7.AbstractWrapper = lN;
|
|
25811
|
-
var
|
|
25811
|
+
var d2 = {}, go = b && b.__assign || function() {
|
|
25812
25812
|
return go = Object.assign || function(r) {
|
|
25813
25813
|
for (var t, e = 1, n = arguments.length; e < n; e++) {
|
|
25814
25814
|
t = arguments[e];
|
|
@@ -25843,12 +25843,12 @@ var Q2 = {}, go = b && b.__assign || function() {
|
|
|
25843
25843
|
} };
|
|
25844
25844
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25845
25845
|
};
|
|
25846
|
-
Object.defineProperty(
|
|
25847
|
-
|
|
25846
|
+
Object.defineProperty(d2, "__esModule", { value: true });
|
|
25847
|
+
d2.FontData = d2.NOSTRETCH = d2.H = d2.V = void 0;
|
|
25848
25848
|
var Gm = M1;
|
|
25849
|
-
|
|
25850
|
-
|
|
25851
|
-
|
|
25849
|
+
d2.V = 1;
|
|
25850
|
+
d2.H = 2;
|
|
25851
|
+
d2.NOSTRETCH = { dir: 0 };
|
|
25852
25852
|
var uN = function() {
|
|
25853
25853
|
function r(t) {
|
|
25854
25854
|
var e, n, s, a;
|
|
@@ -25996,7 +25996,7 @@ var uN = function() {
|
|
|
25996
25996
|
return n[e];
|
|
25997
25997
|
}, r.OPTIONS = { unknownFamily: "serif" }, r.JAX = "common", r.NAME = "", r.defaultVariants = [["normal"], ["bold", "normal"], ["italic", "normal"], ["bold-italic", "italic", "bold"], ["double-struck", "bold"], ["fraktur", "normal"], ["bold-fraktur", "bold", "fraktur"], ["script", "italic"], ["bold-script", "bold-italic", "script"], ["sans-serif", "normal"], ["bold-sans-serif", "bold", "sans-serif"], ["sans-serif-italic", "italic", "sans-serif"], ["sans-serif-bold-italic", "bold-italic", "bold-sans-serif"], ["monospace", "normal"]], r.defaultCssFonts = { normal: ["unknown", false, false], bold: ["unknown", false, true], italic: ["unknown", true, false], "bold-italic": ["unknown", true, true], "double-struck": ["unknown", false, true], fraktur: ["unknown", false, false], "bold-fraktur": ["unknown", false, true], script: ["cursive", false, false], "bold-script": ["cursive", false, true], "sans-serif": ["sans-serif", false, false], "bold-sans-serif": ["sans-serif", false, true], "sans-serif-italic": ["sans-serif", true, false], "sans-serif-bold-italic": ["sans-serif", true, true], monospace: ["monospace", false, false] }, r.defaultCssFamilyPrefix = "", r.VariantSmp = { bold: [119808, 119834, 120488, 120514, 120782], italic: [119860, 119886, 120546, 120572], "bold-italic": [119912, 119938, 120604, 120630], script: [119964, 119990], "bold-script": [120016, 120042], fraktur: [120068, 120094], "double-struck": [120120, 120146, , , 120792], "bold-fraktur": [120172, 120198], "sans-serif": [120224, 120250, , , 120802], "bold-sans-serif": [120276, 120302, 120662, 120688, 120812], "sans-serif-italic": [120328, 120354], "sans-serif-bold-italic": [120380, 120406, 120720, 120746], monospace: [120432, 120458, , , 120822] }, r.SmpRanges = [[0, 65, 90], [1, 97, 122], [2, 913, 937], [3, 945, 969], [4, 48, 57]], r.SmpRemap = { 119893: 8462, 119965: 8492, 119968: 8496, 119969: 8497, 119971: 8459, 119972: 8464, 119975: 8466, 119976: 8499, 119981: 8475, 119994: 8495, 119996: 8458, 120004: 8500, 120070: 8493, 120075: 8460, 120076: 8465, 120085: 8476, 120093: 8488, 120122: 8450, 120127: 8461, 120133: 8469, 120135: 8473, 120136: 8474, 120137: 8477, 120145: 8484 }, r.SmpRemapGreekU = { 8711: 25, 1012: 17 }, r.SmpRemapGreekL = { 977: 27, 981: 29, 982: 31, 1008: 28, 1009: 30, 1013: 26, 8706: 25 }, r.defaultAccentMap = { 768: "ˋ", 769: "ˊ", 770: "ˆ", 771: "˜", 772: "ˉ", 774: "˘", 775: "˙", 776: "¨", 778: "˚", 780: "ˇ", 8594: "⃗", 8242: "'", 8243: "''", 8244: "'''", 8245: "`", 8246: "``", 8247: "```", 8279: "''''", 8400: "↼", 8401: "⇀", 8406: "←", 8417: "↔", 8432: "*", 8411: "...", 8412: "....", 8428: "⇁", 8429: "↽", 8430: "←", 8431: "→" }, r.defaultMoMap = { 45: "−" }, r.defaultMnMap = { 45: "−" }, r.defaultParams = { x_height: 0.442, quad: 1, num1: 0.676, num2: 0.394, num3: 0.444, denom1: 0.686, denom2: 0.345, sup1: 0.413, sup2: 0.363, sup3: 0.289, sub1: 0.15, sub2: 0.247, sup_drop: 0.386, sub_drop: 0.05, delim1: 2.39, delim2: 1, axis_height: 0.25, rule_thickness: 0.06, big_op_spacing1: 0.111, big_op_spacing2: 0.167, big_op_spacing3: 0.2, big_op_spacing4: 0.6, big_op_spacing5: 0.1, surd_height: 0.075, scriptspace: 0.05, nulldelimiterspace: 0.12, delimiterfactor: 901, delimitershortfall: 0.3, min_rule_thickness: 1.25, separation_factor: 1.75, extra_ic: 0.033 }, r.defaultDelimiters = {}, r.defaultChars = {}, r.defaultSizeVariants = [], r.defaultStretchVariants = [], r;
|
|
25998
25998
|
}();
|
|
25999
|
-
|
|
25999
|
+
d2.FontData = uN;
|
|
26000
26000
|
var cN = b && b.__extends || /* @__PURE__ */ function() {
|
|
26001
26001
|
var r = function(t, e) {
|
|
26002
26002
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
|
|
@@ -26059,7 +26059,7 @@ var cN = b && b.__extends || /* @__PURE__ */ function() {
|
|
|
26059
26059
|
};
|
|
26060
26060
|
Object.defineProperty($7, "__esModule", { value: true });
|
|
26061
26061
|
$7.CommonWrapper = void 0;
|
|
26062
|
-
var dN = Y7, Wm = Gt, pN = Ye, w6 = fN(z3), qm = qn, C6 = Q3, Zm =
|
|
26062
|
+
var dN = Y7, Wm = Gt, pN = Ye, w6 = fN(z3), qm = qn, C6 = Q3, Zm = d2, Km = 2 / 18;
|
|
26063
26063
|
function Xm(r, t) {
|
|
26064
26064
|
return r ? t < Km ? 0 : Km : t;
|
|
26065
26065
|
}
|
|
@@ -26962,7 +26962,7 @@ var I6 = {}, Pn = {}, wN = b && b.__extends || /* @__PURE__ */ function() {
|
|
|
26962
26962
|
}, Ws;
|
|
26963
26963
|
Object.defineProperty(Pn, "__esModule", { value: true });
|
|
26964
26964
|
Pn.CommonMoMixin = Pn.DirectionVH = void 0;
|
|
26965
|
-
var eg = Q3, ON = Ye, IN =
|
|
26965
|
+
var eg = Q3, ON = Ye, IN = d2;
|
|
26966
26966
|
Pn.DirectionVH = (Ws = {}, Ws[1] = "v", Ws[2] = "h", Ws);
|
|
26967
26967
|
function VN(r) {
|
|
26968
26968
|
return function(t) {
|
|
@@ -31015,8 +31015,8 @@ var g8 = {}, r1 = {};
|
|
|
31015
31015
|
throw new TypeError(T ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
31016
31016
|
};
|
|
31017
31017
|
Object.defineProperty(r, "__esModule", { value: true }), r.AddPaths = r.SVGFontData = void 0;
|
|
31018
|
-
var o =
|
|
31019
|
-
s(
|
|
31018
|
+
var o = d2;
|
|
31019
|
+
s(d2, r);
|
|
31020
31020
|
var l = function(h) {
|
|
31021
31021
|
t(T, h);
|
|
31022
31022
|
function T() {
|
|
@@ -31324,7 +31324,7 @@ ul.texVariant = (0, oG.AddPaths)(lG.texVariant, { 710: "1 561Q-3 563 -6 577T-12
|
|
|
31324
31324
|
var T_ = {};
|
|
31325
31325
|
(function(r) {
|
|
31326
31326
|
Object.defineProperty(r, "__esModule", { value: true }), r.delimiters = r.VSIZES = r.HDW3 = r.HDW2 = r.HDW1 = void 0;
|
|
31327
|
-
var t =
|
|
31327
|
+
var t = d2;
|
|
31328
31328
|
r.HDW1 = [0.75, 0.25, 0.875], r.HDW2 = [0.85, 0.349, 0.667], r.HDW3 = [0.583, 0.082, 0.5], r.VSIZES = [1, 1.2, 1.8, 2.4, 3];
|
|
31329
31329
|
var e = { c: 47, dir: t.V, sizes: r.VSIZES }, n = { c: 175, dir: t.H, sizes: [0.5], stretch: [0, 175], HDW: [0.59, -0.544, 0.5] }, s = { c: 710, dir: t.H, sizes: [0.5, 0.556, 1, 1.444, 1.889] }, a = { c: 732, dir: t.H, sizes: [0.5, 0.556, 1, 1.444, 1.889] }, o = { c: 8211, dir: t.H, sizes: [0.5], stretch: [0, 8211], HDW: [0.285, -0.248, 0.5] }, l = { c: 8592, dir: t.H, sizes: [1], stretch: [8592, 8722], HDW: r.HDW3 }, u = { c: 8594, dir: t.H, sizes: [1], stretch: [0, 8722, 8594], HDW: r.HDW3 }, h = { c: 8596, dir: t.H, sizes: [1], stretch: [8592, 8722, 8594], HDW: r.HDW3 }, T = { c: 8612, dir: t.H, stretch: [8592, 8722, 8739], HDW: r.HDW3, min: 1.278 }, f = { c: 8614, dir: t.H, sizes: [1], stretch: [8739, 8722, 8594], HDW: r.HDW3 }, d = { c: 8656, dir: t.H, sizes: [1], stretch: [8656, 61], HDW: r.HDW3 }, p = { c: 8658, dir: t.H, sizes: [1], stretch: [0, 61, 8658], HDW: r.HDW3 }, g = { c: 8660, dir: t.H, sizes: [1], stretch: [8656, 61, 8658], HDW: r.HDW3 }, y = { c: 8722, dir: t.H, sizes: [0.778], stretch: [0, 8722], HDW: r.HDW3 }, c = { c: 8739, dir: t.V, sizes: [1], stretch: [0, 8739], HDW: [0.627, 0.015, 0.333] }, Q = { c: 9180, dir: t.H, sizes: [0.778, 1], schar: [8994, 8994], variants: [5, 0], stretch: [57680, 57684, 57681], HDW: [0.32, 0.2, 0.5] }, m = { c: 9181, dir: t.H, sizes: [0.778, 1], schar: [8995, 8995], variants: [5, 0], stretch: [57682, 57684, 57683], HDW: [0.32, 0.2, 0.5] }, v = { c: 9182, dir: t.H, stretch: [57680, 57684, 57681, 57685], HDW: [0.32, 0.2, 0.5], min: 1.8 }, x = { c: 9183, dir: t.H, stretch: [57682, 57684, 57683, 57686], HDW: [0.32, 0.2, 0.5], min: 1.8 }, L = { c: 10216, dir: t.V, sizes: r.VSIZES }, _ = { c: 10217, dir: t.V, sizes: r.VSIZES }, S = { c: 10502, dir: t.H, stretch: [8656, 61, 8739], HDW: r.HDW3, min: 1.278 }, E = { c: 10503, dir: t.H, stretch: [8872, 61, 8658], HDW: r.HDW3, min: 1.278 };
|
|
31330
31330
|
r.delimiters = { 40: { dir: t.V, sizes: r.VSIZES, stretch: [9115, 9116, 9117], HDW: [0.85, 0.349, 0.875] }, 41: { dir: t.V, sizes: r.VSIZES, stretch: [9118, 9119, 9120], HDW: [0.85, 0.349, 0.875] }, 45: y, 47: e, 61: { dir: t.H, sizes: [0.778], stretch: [0, 61], HDW: r.HDW3 }, 91: { dir: t.V, sizes: r.VSIZES, stretch: [9121, 9122, 9123], HDW: r.HDW2 }, 92: { dir: t.V, sizes: r.VSIZES }, 93: { dir: t.V, sizes: r.VSIZES, stretch: [9124, 9125, 9126], HDW: r.HDW2 }, 94: s, 95: o, 123: { dir: t.V, sizes: r.VSIZES, stretch: [9127, 9130, 9129, 9128], HDW: [0.85, 0.349, 0.889] }, 124: { dir: t.V, sizes: [1], stretch: [0, 8739], HDW: [0.75, 0.25, 0.333] }, 125: { dir: t.V, sizes: r.VSIZES, stretch: [9131, 9130, 9133, 9132], HDW: [0.85, 0.349, 0.889] }, 126: a, 175: n, 710: s, 713: n, 732: a, 770: s, 771: a, 818: o, 8211: o, 8212: o, 8213: o, 8214: { dir: t.V, sizes: [0.602, 1], schar: [0, 8741], variants: [1, 0], stretch: [0, 8741], HDW: [0.602, 0, 0.556] }, 8215: o, 8254: n, 8407: u, 8592: l, 8593: { dir: t.V, sizes: [0.888], stretch: [8593, 9168], HDW: [0.6, 0, 0.667] }, 8594: u, 8595: { dir: t.V, sizes: [0.888], stretch: [0, 9168, 8595], HDW: [0.6, 0, 0.667] }, 8596: h, 8597: { dir: t.V, sizes: [1.044], stretch: [8593, 9168, 8595], HDW: r.HDW1 }, 8606: { dir: t.H, sizes: [1], stretch: [8606, 8722], HDW: r.HDW3 }, 8608: { dir: t.H, sizes: [1], stretch: [0, 8722, 8608], HDW: r.HDW3 }, 8612: T, 8613: { dir: t.V, stretch: [8593, 9168, 8869], HDW: r.HDW1, min: 1.555 }, 8614: f, 8615: { dir: t.V, stretch: [8868, 9168, 8595], HDW: r.HDW1, min: 1.555 }, 8624: { dir: t.V, sizes: [0.722], stretch: [8624, 9168], HDW: r.HDW1 }, 8625: { dir: t.V, sizes: [0.722], stretch: [8625, 9168], HDW: r.HDW1 }, 8636: { dir: t.H, sizes: [1], stretch: [8636, 8722], HDW: r.HDW3 }, 8637: { dir: t.H, sizes: [1], stretch: [8637, 8722], HDW: r.HDW3 }, 8638: { dir: t.V, sizes: [0.888], stretch: [8638, 9168], HDW: r.HDW1 }, 8639: { dir: t.V, sizes: [0.888], stretch: [8639, 9168], HDW: r.HDW1 }, 8640: { dir: t.H, sizes: [1], stretch: [0, 8722, 8640], HDW: r.HDW3 }, 8641: { dir: t.H, sizes: [1], stretch: [0, 8722, 8641], HDW: r.HDW3 }, 8642: { dir: t.V, sizes: [0.888], stretch: [0, 9168, 8642], HDW: r.HDW1 }, 8643: { dir: t.V, sizes: [0.888], stretch: [0, 9168, 8643], HDW: r.HDW1 }, 8656: d, 8657: { dir: t.V, sizes: [0.888], stretch: [8657, 8214], HDW: [0.599, 0, 0.778] }, 8658: p, 8659: { dir: t.V, sizes: [0.888], stretch: [0, 8214, 8659], HDW: [0.6, 0, 0.778] }, 8660: g, 8661: { dir: t.V, sizes: [1.044], stretch: [8657, 8214, 8659], HDW: [0.75, 0.25, 0.778] }, 8666: { dir: t.H, sizes: [1], stretch: [8666, 8801], HDW: [0.464, -0.036, 0.5] }, 8667: { dir: t.H, sizes: [1], stretch: [0, 8801, 8667], HDW: [0.464, -0.036, 0.5] }, 8722: y, 8725: e, 8730: { dir: t.V, sizes: r.VSIZES, stretch: [57345, 57344, 9143], fullExt: [0.65, 2.3], HDW: [0.85, 0.35, 1.056] }, 8739: c, 8741: { dir: t.V, sizes: [1], stretch: [0, 8741], HDW: [0.627, 0.015, 0.556] }, 8968: { dir: t.V, sizes: r.VSIZES, stretch: [9121, 9122], HDW: r.HDW2 }, 8969: { dir: t.V, sizes: r.VSIZES, stretch: [9124, 9125], HDW: r.HDW2 }, 8970: { dir: t.V, sizes: r.VSIZES, stretch: [0, 9122, 9123], HDW: r.HDW2 }, 8971: { dir: t.V, sizes: r.VSIZES, stretch: [0, 9125, 9126], HDW: r.HDW2 }, 8978: Q, 8994: Q, 8995: m, 9001: L, 9002: _, 9130: { dir: t.V, sizes: [0.32], stretch: [9130, 9130, 9130], HDW: [0.29, 0.015, 0.889] }, 9135: o, 9136: { dir: t.V, sizes: [0.989], stretch: [9127, 9130, 9133], HDW: [0.75, 0.25, 0.889] }, 9137: { dir: t.V, sizes: [0.989], stretch: [9131, 9130, 9129], HDW: [0.75, 0.25, 0.889] }, 9140: { dir: t.H, stretch: [9484, 8722, 9488], HDW: r.HDW3, min: 1 }, 9141: { dir: t.H, stretch: [9492, 8722, 9496], HDW: r.HDW3, min: 1 }, 9168: { dir: t.V, sizes: [0.602, 1], schar: [0, 8739], variants: [1, 0], stretch: [0, 8739], HDW: [0.602, 0, 0.333] }, 9180: Q, 9181: m, 9182: v, 9183: x, 9184: { dir: t.H, stretch: [714, 713, 715], HDW: [0.59, -0.544, 0.5], min: 1 }, 9185: { dir: t.H, stretch: [715, 713, 714], HDW: [0.59, -0.544, 0.5], min: 1 }, 9472: o, 10072: c, 10216: L, 10217: _, 10222: { dir: t.V, sizes: [0.989], stretch: [9127, 9130, 9129], HDW: [0.75, 0.25, 0.889] }, 10223: { dir: t.V, sizes: [0.989], stretch: [9131, 9130, 9133], HDW: [0.75, 0.25, 0.889] }, 10229: l, 10230: u, 10231: h, 10232: d, 10233: p, 10234: g, 10235: T, 10236: f, 10237: S, 10238: E, 10502: S, 10503: E, 10574: { dir: t.H, stretch: [8636, 8722, 8640], HDW: r.HDW3, min: 2 }, 10575: { dir: t.V, stretch: [8638, 9168, 8642], HDW: r.HDW1, min: 1.776 }, 10576: { dir: t.H, stretch: [8637, 8722, 8641], HDW: r.HDW3, min: 2 }, 10577: { dir: t.V, stretch: [8639, 9168, 8643], HDW: r.HDW1, min: 0.5 }, 10586: { dir: t.H, stretch: [8636, 8722, 8739], HDW: r.HDW3, min: 1.278 }, 10587: { dir: t.H, stretch: [8739, 8722, 8640], HDW: r.HDW3, min: 1.278 }, 10588: { dir: t.V, stretch: [8638, 9168, 8869], HDW: r.HDW1, min: 1.556 }, 10589: { dir: t.V, stretch: [8868, 9168, 8642], HDW: r.HDW1, min: 1.556 }, 10590: { dir: t.H, stretch: [8637, 8722, 8739], HDW: r.HDW3, min: 1.278 }, 10591: { dir: t.H, stretch: [8739, 8722, 8641], HDW: r.HDW3, min: 1.278 }, 10592: { dir: t.V, stretch: [8639, 9168, 8869], HDW: r.HDW1, min: 1.776 }, 10593: { dir: t.V, stretch: [8868, 9168, 8643], HDW: r.HDW1, min: 1.776 }, 12296: L, 12297: _, 65079: v, 65080: x };
|
|
@@ -31635,12 +31635,12 @@ var qG = (() => {
|
|
|
31635
31635
|
(M.canvas.width != $t || M.canvas.height != le) && (M.canvas.width = $t, M.canvas.height = le), M.viewport(0, le - G, Dt, G), M.disable(M.SCISSOR_TEST), M.clearColor(0, 0, 0, 0), M.clear(M.COLOR_BUFFER_BIT), M.enable(M.SCISSOR_TEST), at.sort((de, ki) => ki.jb - de.jb), $t = gt.push(qt), nt != $t && (M.bufferData(M.ARRAY_BUFFER, 8 * $t, M.DYNAMIC_DRAW), nt = $t), $t = 0;
|
|
31636
31636
|
for (var o1 of at) M.bufferSubData(M.ARRAY_BUFFER, $t, o1.Ra), $t += 4 * o1.Ra.length;
|
|
31637
31637
|
console.assert($t == 4 * qt);
|
|
31638
|
-
for (var
|
|
31638
|
+
for (var v2 of at) M.bufferSubData(M.ARRAY_BUFFER, $t, v2.mb), $t += 4 * v2.mb.length;
|
|
31639
31639
|
console.assert($t == 8 * qt), $t = Ct.push(Me), et != $t && (M.bufferData(M.ELEMENT_ARRAY_BUFFER, 2 * $t, M.DYNAMIC_DRAW), et = $t), o1 = 0;
|
|
31640
31640
|
for (var Y3 of at) M.bufferSubData(M.ELEMENT_ARRAY_BUFFER, o1, Y3.indices), o1 += 2 * Y3.indices.length;
|
|
31641
|
-
console.assert(o1 == 2 * Me), Y3 = 0,
|
|
31641
|
+
console.assert(o1 == 2 * Me), Y3 = 0, v2 = true, $t = o1 = 0;
|
|
31642
31642
|
for (const de of at) {
|
|
31643
|
-
de.image.Ma != Y3 && (M.bindTexture(M.TEXTURE_2D, de.image.rb || null), Y3 = de.image.Ma), de.Pb ? (M.scissor(de.Va, le - de.Wa - de.cb, de.$b, de.cb),
|
|
31643
|
+
de.image.Ma != Y3 && (M.bindTexture(M.TEXTURE_2D, de.image.rb || null), Y3 = de.image.Ma), de.Pb ? (M.scissor(de.Va, le - de.Wa - de.cb, de.$b, de.cb), v2 = true) : v2 && (M.scissor(0, le - G, Dt, G), v2 = false), at = 2 / Dt;
|
|
31644
31644
|
const ki = -2 / G;
|
|
31645
31645
|
M.uniform4f(B, de.xa[0] * at * de.Ga, de.xa[1] * ki * de.Ha, de.xa[2] * at * de.Ga, de.xa[3] * ki * de.Ha), M.uniform2f(j, de.xa[4] * at * de.Ga + at * (de.Va - de.Nb * de.Ga) - 1, de.xa[5] * ki * de.Ha + ki * (de.Wa - de.Ob * de.Ha) + 1), M.vertexAttribPointer(0, 2, M.FLOAT, false, 0, $t), M.vertexAttribPointer(1, 2, M.FLOAT, false, 0, $t + 4 * qt), M.drawElements(M.TRIANGLES, de.indices.length, M.UNSIGNED_SHORT, o1), $t += 4 * de.Ra.length, o1 += 2 * de.indices.length;
|
|
31646
31646
|
}
|
|
@@ -31691,7 +31691,7 @@ var qG = (() => {
|
|
|
31691
31691
|
return "rgba(" + ((16711680 & ht) >>> 16) + "," + ((65280 & ht) >>> 8) + "," + ((255 & ht) >>> 0) + "," + ((4278190080 & ht) >>> 24) / 255 + ")";
|
|
31692
31692
|
}
|
|
31693
31693
|
function O() {
|
|
31694
|
-
0 < o1.length && (u.Ab(le.drawWidth(), le.drawHeight(), o1,
|
|
31694
|
+
0 < o1.length && (u.Ab(le.drawWidth(), le.drawHeight(), o1, v2, Y3), o1 = [], Y3 = v2 = 0, le.reset(512, 512));
|
|
31695
31695
|
for (const ht of $t) {
|
|
31696
31696
|
for (const Pt of ht.ja) Pt();
|
|
31697
31697
|
ht.ja = [];
|
|
@@ -31718,8 +31718,8 @@ var qG = (() => {
|
|
|
31718
31718
|
}, addPath: function(ht, Pt, pe, me, ne, xe, Le) {
|
|
31719
31719
|
var Se = this.pa, V2 = Se.addPath;
|
|
31720
31720
|
ht = ht.pa;
|
|
31721
|
-
const
|
|
31722
|
-
|
|
31721
|
+
const v1 = new DOMMatrix();
|
|
31722
|
+
v1.a = Pt, v1.b = pe, v1.c = me, v1.d = ne, v1.e = xe, v1.f = Le, V2.call(Se, ht, v1);
|
|
31723
31723
|
}, fillRule: function(ht) {
|
|
31724
31724
|
this.Ta = ht;
|
|
31725
31725
|
}, moveTo: function(ht, Pt) {
|
|
@@ -31777,9 +31777,9 @@ var qG = (() => {
|
|
|
31777
31777
|
var Le = xe.lb;
|
|
31778
31778
|
const V2 = xe.Za;
|
|
31779
31779
|
var Se = xe.$a;
|
|
31780
|
-
const
|
|
31780
|
+
const v1 = xe.Pa;
|
|
31781
31781
|
xe.Kb ? (xe = V2 - ne, Se -= Le, ne = ht.createRadialGradient(ne, Le, 0, ne, Le, Math.sqrt(xe * xe + Se * Se))) : ne = ht.createLinearGradient(ne, Le, V2, Se);
|
|
31782
|
-
for (let m3 = 0, C1 =
|
|
31782
|
+
for (let m3 = 0, C1 = v1.length; m3 < C1; m3++) Le = v1[m3], ne.addColorStop(Le.stop, M(Le.color));
|
|
31783
31783
|
this.Ua = ne, this.za = null;
|
|
31784
31784
|
}
|
|
31785
31785
|
switch (me) {
|
|
@@ -31791,7 +31791,7 @@ var qG = (() => {
|
|
|
31791
31791
|
}
|
|
31792
31792
|
} });
|
|
31793
31793
|
const $t = /* @__PURE__ */ new Set();
|
|
31794
|
-
let le = null, o1 = [],
|
|
31794
|
+
let le = null, o1 = [], v2 = 0, Y3 = 0;
|
|
31795
31795
|
var de = e.CanvasRenderer = nt.extend("Renderer", { __construct: function(ht) {
|
|
31796
31796
|
this.__parent.__construct.call(this), this.oa = [1, 0, 0, 1, 0, 0], this.ha = ht.getContext("2d"), this.Sa = ht, this.ja = [];
|
|
31797
31797
|
}, save: function() {
|
|
@@ -31819,17 +31819,17 @@ var qG = (() => {
|
|
|
31819
31819
|
}, _getMatrix: function(ht) {
|
|
31820
31820
|
const Pt = this.oa, pe = Pt.length - 6;
|
|
31821
31821
|
for (let me = 0; 6 > me; ++me) ht[me] = Pt[pe + me];
|
|
31822
|
-
}, _drawImageMesh: function(ht, Pt, pe, me, ne, xe, Le, Se, V2,
|
|
31822
|
+
}, _drawImageMesh: function(ht, Pt, pe, me, ne, xe, Le, Se, V2, v1) {
|
|
31823
31823
|
var m3 = this.ha.canvas.width, C1 = this.ha.canvas.height;
|
|
31824
|
-
const pQ = V2 - Le, mQ =
|
|
31825
|
-
Le = Math.max(Le, 0), Se = Math.max(Se, 0), V2 = Math.min(V2, m3),
|
|
31826
|
-
const T6 = V2 - Le, f6 =
|
|
31824
|
+
const pQ = V2 - Le, mQ = v1 - Se;
|
|
31825
|
+
Le = Math.max(Le, 0), Se = Math.max(Se, 0), V2 = Math.min(V2, m3), v1 = Math.min(v1, C1);
|
|
31826
|
+
const T6 = V2 - Le, f6 = v1 - Se;
|
|
31827
31827
|
if (console.assert(T6 <= Math.min(pQ, m3)), console.assert(f6 <= Math.min(mQ, C1)), !(0 >= T6 || 0 >= f6)) {
|
|
31828
|
-
V2 = T6 < pQ || f6 < mQ, m3 =
|
|
31829
|
-
var _r = Math.ceil(T6 *
|
|
31830
|
-
C1 = u.Mb(), _r > C1 && (
|
|
31828
|
+
V2 = T6 < pQ || f6 < mQ, m3 = v1 = 1;
|
|
31829
|
+
var _r = Math.ceil(T6 * v1), Sr = Math.ceil(f6 * m3);
|
|
31830
|
+
C1 = u.Mb(), _r > C1 && (v1 *= C1 / _r, _r = C1), Sr > C1 && (m3 *= C1 / Sr, Sr = C1), le || (le = new e.DynamicRectanizer(C1), le.reset(512, 512)), C1 = le.addRect(_r, Sr), 0 > C1 && (O(), $t.add(this), C1 = le.addRect(_r, Sr), console.assert(0 <= C1));
|
|
31831
31831
|
var gQ = C1 & 65535, yQ = C1 >> 16;
|
|
31832
|
-
o1.push({ xa: this.oa.slice(this.oa.length - 6), image: ht, Va: gQ, Wa: yQ, Nb: Le, Ob: Se, $b: _r, cb: Sr, Ga:
|
|
31832
|
+
o1.push({ xa: this.oa.slice(this.oa.length - 6), image: ht, Va: gQ, Wa: yQ, Nb: Le, Ob: Se, $b: _r, cb: Sr, Ga: v1, Ha: m3, Ra: new Float32Array(me), mb: new Float32Array(ne), indices: new Uint16Array(xe), Pb: V2, jb: ht.Ma << 1 | (V2 ? 1 : 0) }), v2 += me.length, Y3 += xe.length;
|
|
31833
31833
|
var H4 = this.ha, UE = C(Pt);
|
|
31834
31834
|
this.ja.push(function() {
|
|
31835
31835
|
H4.save(), H4.resetTransform(), H4.globalCompositeOperation = UE, H4.globalAlpha = pe, H4.drawImage(u.canvas(), gQ, yQ, _r, Sr, Le, Se, T6, f6), H4.restore();
|
|
@@ -32101,7 +32101,7 @@ var qG = (() => {
|
|
|
32101
32101
|
return this.fromWireType(I[C >> 2]);
|
|
32102
32102
|
}
|
|
32103
32103
|
var A4 = {}, z0 = {};
|
|
32104
|
-
function
|
|
32104
|
+
function y2(C, M, O) {
|
|
32105
32105
|
function V(et) {
|
|
32106
32106
|
et = O(et), et.length !== C.length && U0("Mismatched type converter count");
|
|
32107
32107
|
for (var ut = 0; ut < C.length; ++ut) p3(C[ut], et[ut]);
|
|
@@ -32605,7 +32605,7 @@ var qG = (() => {
|
|
|
32605
32605
|
var M = G0[C];
|
|
32606
32606
|
delete G0[C];
|
|
32607
32607
|
var O = M.Oa, V = M.ra, B = M.ab, j = B.map((nt) => nt.Ib).concat(B.map((nt) => nt.Tb));
|
|
32608
|
-
|
|
32608
|
+
y2([C], j, (nt) => {
|
|
32609
32609
|
var et = {};
|
|
32610
32610
|
return B.forEach((ut, tt) => {
|
|
32611
32611
|
var gt = nt[tt], Ct = ut.Gb, Dt = ut.Hb, G = nt[tt + B.length], at = ut.Sb, qt = ut.Ub;
|
|
@@ -32643,15 +32643,15 @@ var qG = (() => {
|
|
|
32643
32643
|
var G = Ot(gt);
|
|
32644
32644
|
_l(G, function() {
|
|
32645
32645
|
X3(`Cannot construct ${gt} due to unbound types`, [V]);
|
|
32646
|
-
}),
|
|
32646
|
+
}), y2([C, M, O], V ? [V] : [], function(at) {
|
|
32647
32647
|
if (at = at[0], V) var qt = at.ca, Me = qt.ma;
|
|
32648
32648
|
else Me = Pi.prototype;
|
|
32649
32649
|
at = It(G, function() {
|
|
32650
32650
|
if (Object.getPrototypeOf(this) !== $t) throw new oe("Use 'new' to construct " + gt);
|
|
32651
32651
|
if (le.sa === void 0) throw new oe(gt + " has no accessible constructor");
|
|
32652
|
-
var
|
|
32653
|
-
if (
|
|
32654
|
-
return
|
|
32652
|
+
var v2 = le.sa[arguments.length];
|
|
32653
|
+
if (v2 === void 0) throw new oe(`Tried to invoke ctor of ${gt} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(le.sa).toString()}) parameters instead!`);
|
|
32654
|
+
return v2.apply(this, arguments);
|
|
32655
32655
|
});
|
|
32656
32656
|
var $t = Object.create(Me, { constructor: { value: at } });
|
|
32657
32657
|
at.prototype = $t;
|
|
@@ -32662,7 +32662,7 @@ var qG = (() => {
|
|
|
32662
32662
|
});
|
|
32663
32663
|
}, j: function(C, M, O, V, B, j, nt) {
|
|
32664
32664
|
var et = K0(O, V);
|
|
32665
|
-
M = Re(M), j = K1(B, j),
|
|
32665
|
+
M = Re(M), j = K1(B, j), y2([], [C], function(ut) {
|
|
32666
32666
|
function tt() {
|
|
32667
32667
|
X3(`Cannot call ${gt} due to unbound types`, et);
|
|
32668
32668
|
}
|
|
@@ -32670,13 +32670,13 @@ var qG = (() => {
|
|
|
32670
32670
|
var gt = `${ut.name}.${M}`;
|
|
32671
32671
|
M.startsWith("@@") && (M = Symbol[M.substring(2)]);
|
|
32672
32672
|
var Ct = ut.ca.constructor;
|
|
32673
|
-
return Ct[M] === void 0 ? (tt.va = O - 1, Ct[M] = tt) : (bl(Ct, M, gt), Ct[M].ga[O - 1] = tt),
|
|
32673
|
+
return Ct[M] === void 0 ? (tt.va = O - 1, Ct[M] = tt) : (bl(Ct, M, gt), Ct[M].ga[O - 1] = tt), y2([], et, function(Dt) {
|
|
32674
32674
|
if (Dt = Z0(gt, [Dt[0], null].concat(Dt.slice(1)), null, j, nt), Ct[M].ga === void 0 ? (Dt.va = O - 1, Ct[M] = Dt) : Ct[M].ga[O - 1] = Dt, ut.ca.Ca) for (const G of ut.ca.Ca) G.constructor.hasOwnProperty(M) || (G.constructor[M] = Dt);
|
|
32675
32675
|
return [];
|
|
32676
32676
|
}), [];
|
|
32677
32677
|
});
|
|
32678
32678
|
}, x: function(C, M, O, V, B, j, nt, et) {
|
|
32679
|
-
M = Re(M), j = K1(B, j),
|
|
32679
|
+
M = Re(M), j = K1(B, j), y2([], [C], function(ut) {
|
|
32680
32680
|
ut = ut[0];
|
|
32681
32681
|
var tt = `${ut.name}.${M}`, gt = { get() {
|
|
32682
32682
|
X3(`Cannot access ${tt} due to unbound types`, [O]);
|
|
@@ -32685,7 +32685,7 @@ var qG = (() => {
|
|
|
32685
32685
|
X3(`Cannot access ${tt} due to unbound types`, [O]);
|
|
32686
32686
|
} : () => {
|
|
32687
32687
|
Lt(`${tt} is a read-only property`);
|
|
32688
|
-
}, Object.defineProperty(ut.ca.constructor, M, gt),
|
|
32688
|
+
}, Object.defineProperty(ut.ca.constructor, M, gt), y2([], [O], function(Ct) {
|
|
32689
32689
|
Ct = Ct[0];
|
|
32690
32690
|
var Dt = { get() {
|
|
32691
32691
|
return Ct.fromWireType(j(V));
|
|
@@ -32698,19 +32698,19 @@ var qG = (() => {
|
|
|
32698
32698
|
});
|
|
32699
32699
|
}, s: function(C, M, O, V, B, j) {
|
|
32700
32700
|
var nt = K0(M, O);
|
|
32701
|
-
B = K1(V, B),
|
|
32701
|
+
B = K1(V, B), y2([], [C], function(et) {
|
|
32702
32702
|
et = et[0];
|
|
32703
32703
|
var ut = `constructor ${et.name}`;
|
|
32704
32704
|
if (et.ca.sa === void 0 && (et.ca.sa = []), et.ca.sa[M - 1] !== void 0) throw new oe(`Cannot register multiple constructors with identical number of parameters (${M - 1}) for class '${et.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
32705
32705
|
return et.ca.sa[M - 1] = () => {
|
|
32706
32706
|
X3(`Cannot construct ${et.name} due to unbound types`, nt);
|
|
32707
|
-
},
|
|
32707
|
+
}, y2([], nt, function(tt) {
|
|
32708
32708
|
return tt.splice(1, 0, null), et.ca.sa[M - 1] = Z0(ut, tt, null, B, j), [];
|
|
32709
32709
|
}), [];
|
|
32710
32710
|
});
|
|
32711
32711
|
}, a: function(C, M, O, V, B, j, nt, et) {
|
|
32712
32712
|
var ut = K0(O, V);
|
|
32713
|
-
M = Re(M), j = K1(B, j),
|
|
32713
|
+
M = Re(M), j = K1(B, j), y2([], [C], function(tt) {
|
|
32714
32714
|
function gt() {
|
|
32715
32715
|
X3(`Cannot call ${Ct} due to unbound types`, ut);
|
|
32716
32716
|
}
|
|
@@ -32718,12 +32718,12 @@ var qG = (() => {
|
|
|
32718
32718
|
var Ct = `${tt.name}.${M}`;
|
|
32719
32719
|
M.startsWith("@@") && (M = Symbol[M.substring(2)]), et && tt.ca.gb.push(M);
|
|
32720
32720
|
var Dt = tt.ca.ma, G = Dt[M];
|
|
32721
|
-
return G === void 0 || G.ga === void 0 && G.className !== tt.name && G.va === O - 2 ? (gt.va = O - 2, gt.className = tt.name, Dt[M] = gt) : (bl(Dt, M, Ct), Dt[M].ga[O - 2] = gt),
|
|
32721
|
+
return G === void 0 || G.ga === void 0 && G.className !== tt.name && G.va === O - 2 ? (gt.va = O - 2, gt.className = tt.name, Dt[M] = gt) : (bl(Dt, M, Ct), Dt[M].ga[O - 2] = gt), y2([], ut, function(at) {
|
|
32722
32722
|
return at = Z0(Ct, at, tt, j, nt), Dt[M].ga === void 0 ? (at.va = O - 2, Dt[M] = at) : Dt[M].ga[O - 2] = at, [];
|
|
32723
32723
|
}), [];
|
|
32724
32724
|
});
|
|
32725
32725
|
}, e: function(C, M, O, V, B, j, nt, et, ut, tt) {
|
|
32726
|
-
M = Re(M), B = K1(V, B),
|
|
32726
|
+
M = Re(M), B = K1(V, B), y2([], [C], function(gt) {
|
|
32727
32727
|
gt = gt[0];
|
|
32728
32728
|
var Ct = `${gt.name}.${M}`, Dt = { get() {
|
|
32729
32729
|
X3(`Cannot access ${Ct} due to unbound types`, [O, nt]);
|
|
@@ -32732,7 +32732,7 @@ var qG = (() => {
|
|
|
32732
32732
|
X3(`Cannot access ${Ct} due to unbound types`, [O, nt]);
|
|
32733
32733
|
} : () => {
|
|
32734
32734
|
Lt(Ct + " is a read-only property");
|
|
32735
|
-
}, Object.defineProperty(gt.ca.ma, M, Dt),
|
|
32735
|
+
}, Object.defineProperty(gt.ca.ma, M, Dt), y2([], ut ? [O, nt] : [O], function(G) {
|
|
32736
32736
|
var at = G[0], qt = { get() {
|
|
32737
32737
|
var $t = nQ(this, gt, Ct + " getter");
|
|
32738
32738
|
return at.fromWireType(B(j, $t));
|
|
@@ -32777,7 +32777,7 @@ var qG = (() => {
|
|
|
32777
32777
|
var nt = K0(M, O);
|
|
32778
32778
|
C = Re(C), B = K1(V, B), _l(C, function() {
|
|
32779
32779
|
X3(`Cannot call ${C} due to unbound types`, nt);
|
|
32780
|
-
}, M - 1),
|
|
32780
|
+
}, M - 1), y2([], nt, function(et) {
|
|
32781
32781
|
return iQ(C, Z0(C, [et[0], null].concat(et.slice(1)), null, B, j), M - 1), [];
|
|
32782
32782
|
});
|
|
32783
32783
|
}, l: function(C, M, O, V, B) {
|
|
@@ -33303,7 +33303,7 @@ class p_ {
|
|
|
33303
33303
|
t[Ne.AUDIO] = null, t[Ne.VIDEO] = null, t[Ne.AUDIOVIDEO] = null;
|
|
33304
33304
|
}
|
|
33305
33305
|
}
|
|
33306
|
-
function
|
|
33306
|
+
function h1(r) {
|
|
33307
33307
|
return r.sn !== "initSegment";
|
|
33308
33308
|
}
|
|
33309
33309
|
class Tu extends p_ {
|
|
@@ -33370,7 +33370,7 @@ class Tu extends p_ {
|
|
|
33370
33370
|
this._programDateTime = t;
|
|
33371
33371
|
}
|
|
33372
33372
|
get ref() {
|
|
33373
|
-
return
|
|
33373
|
+
return h1(this) ? (this._ref || (this._ref = { base: this.base, start: this.start, duration: this.duration, sn: this.sn, programDateTime: this.programDateTime }), this._ref) : null;
|
|
33374
33374
|
}
|
|
33375
33375
|
addStart(t) {
|
|
33376
33376
|
this.setStart(this.start + t);
|
|
@@ -33431,7 +33431,7 @@ function oz(r, t) {
|
|
|
33431
33431
|
e && (e.enumerable = true, Object.defineProperty(r, t, e));
|
|
33432
33432
|
}
|
|
33433
33433
|
const Rg = Math.pow(2, 32) - 1, lz = [].push, g_ = { video: 1, audio: 2, id3: 3, text: 4 };
|
|
33434
|
-
function
|
|
33434
|
+
function x1(r) {
|
|
33435
33435
|
return String.fromCharCode.apply(null, r);
|
|
33436
33436
|
}
|
|
33437
33437
|
function y_(r, t) {
|
|
@@ -33463,7 +33463,7 @@ function ae(r, t) {
|
|
|
33463
33463
|
if (!t.length) return e;
|
|
33464
33464
|
const n = r.byteLength;
|
|
33465
33465
|
for (let s = 0; s < n; ) {
|
|
33466
|
-
const a = Yt(r, s), o =
|
|
33466
|
+
const a = Yt(r, s), o = x1(r.subarray(s + 4, s + 8)), l = a > 1 ? s + a : n;
|
|
33467
33467
|
if (o === t[0]) if (t.length === 1) e.push(r.subarray(s + 8, l));
|
|
33468
33468
|
else {
|
|
33469
33469
|
const u = ae(r.subarray(s + 8, l), t.slice(1));
|
|
@@ -33505,7 +33505,7 @@ function x_(r) {
|
|
|
33505
33505
|
l = h[0];
|
|
33506
33506
|
const T = Yt(h, l === 0 ? 12 : 20), f = ae(a, ["mdia", "hdlr"])[0];
|
|
33507
33507
|
if (f) {
|
|
33508
|
-
const d =
|
|
33508
|
+
const d = x1(f.subarray(8, 12)), p = { soun: Ne.AUDIO, vide: Ne.VIDEO }[d], g = ae(a, ["mdia", "minf", "stbl", "stsd"])[0], y = hz(g);
|
|
33509
33509
|
p ? (t[u] = { timescale: T, type: p, stsd: y }, t[p] = we({ timescale: T, id: u }, y)) : t[u] = { timescale: T, type: d, stsd: y };
|
|
33510
33510
|
}
|
|
33511
33511
|
}
|
|
@@ -33517,7 +33517,7 @@ function x_(r) {
|
|
|
33517
33517
|
}), t;
|
|
33518
33518
|
}
|
|
33519
33519
|
function hz(r) {
|
|
33520
|
-
const t = r.subarray(8), e = t.subarray(86), n =
|
|
33520
|
+
const t = r.subarray(8), e = t.subarray(86), n = x1(t.subarray(4, 8));
|
|
33521
33521
|
let s = n, a;
|
|
33522
33522
|
const o = n === "enca" || n === "encv";
|
|
33523
33523
|
if (o) {
|
|
@@ -33525,10 +33525,10 @@ function hz(r) {
|
|
|
33525
33525
|
ae(h, ["sinf"]).forEach((f) => {
|
|
33526
33526
|
const d = ae(f, ["schm"])[0];
|
|
33527
33527
|
if (d) {
|
|
33528
|
-
const p =
|
|
33528
|
+
const p = x1(d.subarray(4, 8));
|
|
33529
33529
|
if (p === "cbcs" || p === "cenc") {
|
|
33530
33530
|
const g = ae(f, ["frma"])[0];
|
|
33531
|
-
g && (s =
|
|
33531
|
+
g && (s = x1(g));
|
|
33532
33532
|
}
|
|
33533
33533
|
}
|
|
33534
33534
|
});
|
|
@@ -33660,7 +33660,7 @@ function L_(r, t) {
|
|
|
33660
33660
|
function b_(r) {
|
|
33661
33661
|
const t = ae(r, ["schm"])[0];
|
|
33662
33662
|
if (t) {
|
|
33663
|
-
const e =
|
|
33663
|
+
const e = x1(t.subarray(4, 8));
|
|
33664
33664
|
if (e === "cbcs" || e === "cenc") {
|
|
33665
33665
|
const n = ae(r, ["schi", "tenc"])[0];
|
|
33666
33666
|
if (n) return n;
|
|
@@ -33849,17 +33849,17 @@ function gz(r) {
|
|
|
33849
33849
|
const t = r[0];
|
|
33850
33850
|
let e = "", n = "", s = 0, a = 0, o = 0, l = 0, u = 0, h = 0;
|
|
33851
33851
|
if (t === 0) {
|
|
33852
|
-
for (;
|
|
33853
|
-
for (e +=
|
|
33854
|
-
n +=
|
|
33852
|
+
for (; x1(r.subarray(h, h + 1)) !== "\0"; ) e += x1(r.subarray(h, h + 1)), h += 1;
|
|
33853
|
+
for (e += x1(r.subarray(h, h + 1)), h += 1; x1(r.subarray(h, h + 1)) !== "\0"; ) n += x1(r.subarray(h, h + 1)), h += 1;
|
|
33854
|
+
n += x1(r.subarray(h, h + 1)), h += 1, s = Yt(r, 12), a = Yt(r, 16), l = Yt(r, 20), u = Yt(r, 24), h = 28;
|
|
33855
33855
|
} else if (t === 1) {
|
|
33856
33856
|
h += 4, s = Yt(r, h), h += 4;
|
|
33857
33857
|
const f = Yt(r, h);
|
|
33858
33858
|
h += 4;
|
|
33859
33859
|
const d = Yt(r, h);
|
|
33860
|
-
for (h += 4, o = 2 ** 32 * f + d, ZG(o) || (o = Number.MAX_SAFE_INTEGER, De.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")), l = Yt(r, h), h += 4, u = Yt(r, h), h += 4;
|
|
33861
|
-
for (e +=
|
|
33862
|
-
n +=
|
|
33860
|
+
for (h += 4, o = 2 ** 32 * f + d, ZG(o) || (o = Number.MAX_SAFE_INTEGER, De.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")), l = Yt(r, h), h += 4, u = Yt(r, h), h += 4; x1(r.subarray(h, h + 1)) !== "\0"; ) e += x1(r.subarray(h, h + 1)), h += 1;
|
|
33861
|
+
for (e += x1(r.subarray(h, h + 1)), h += 1; x1(r.subarray(h, h + 1)) !== "\0"; ) n += x1(r.subarray(h, h + 1)), h += 1;
|
|
33862
|
+
n += x1(r.subarray(h, h + 1)), h += 1;
|
|
33863
33863
|
}
|
|
33864
33864
|
const T = r.subarray(h, r.byteLength);
|
|
33865
33865
|
return { schemeIdUri: e, value: n, timeScale: s, presentationTime: o, presentationTimeDelta: a, eventDuration: l, id: u, payload: T };
|
|
@@ -34691,7 +34691,7 @@ function Kz(r) {
|
|
|
34691
34691
|
function Qh(r) {
|
|
34692
34692
|
return r === 0 && navigator.onLine === false;
|
|
34693
34693
|
}
|
|
34694
|
-
var N1 = { DoNothing: 0, SendAlternateToPenaltyBox: 2, RemoveAlternatePermanently: 3, RetryRequest: 5 },
|
|
34694
|
+
var N1 = { DoNothing: 0, SendAlternateToPenaltyBox: 2, RemoveAlternatePermanently: 3, RetryRequest: 5 }, b2 = { None: 0, MoveAllAlternatesMatchingHost: 1, MoveAllAlternatesMatchingHDCP: 2, MoveAllAlternatesMatchingKey: 4 };
|
|
34695
34695
|
class Xz extends q2 {
|
|
34696
34696
|
constructor(t) {
|
|
34697
34697
|
super("error-controller", t.logger), this.hls = void 0, this.playlistError = 0, this.hls = t, this.registerListeners();
|
|
@@ -34778,18 +34778,18 @@ class Xz extends q2 {
|
|
|
34778
34778
|
if (a) {
|
|
34779
34779
|
const u = s.loadLevelObj;
|
|
34780
34780
|
if (u && (a.type === ue.AUDIO_TRACK && u.hasAudioGroup(a.groupId) || a.type === ue.SUBTITLE_TRACK && u.hasSubtitleGroup(a.groupId))) {
|
|
34781
|
-
e.errorAction = this.getPlaylistRetryOrSwitchAction(e, s.loadLevel), e.errorAction.action = N1.SendAlternateToPenaltyBox, e.errorAction.flags =
|
|
34781
|
+
e.errorAction = this.getPlaylistRetryOrSwitchAction(e, s.loadLevel), e.errorAction.action = N1.SendAlternateToPenaltyBox, e.errorAction.flags = b2.MoveAllAlternatesMatchingHost;
|
|
34782
34782
|
return;
|
|
34783
34783
|
}
|
|
34784
34784
|
}
|
|
34785
34785
|
return;
|
|
34786
34786
|
case q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:
|
|
34787
|
-
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34787
|
+
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags: b2.MoveAllAlternatesMatchingHDCP };
|
|
34788
34788
|
return;
|
|
34789
34789
|
case q.KEY_SYSTEM_SESSION_UPDATE_FAILED:
|
|
34790
34790
|
case q.KEY_SYSTEM_STATUS_INTERNAL_ERROR:
|
|
34791
34791
|
case q.KEY_SYSTEM_NO_SESSION:
|
|
34792
|
-
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34792
|
+
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags: b2.MoveAllAlternatesMatchingKey };
|
|
34793
34793
|
return;
|
|
34794
34794
|
case q.BUFFER_ADD_CODEC_ERROR:
|
|
34795
34795
|
case q.REMUX_ALLOC_ERROR:
|
|
@@ -34813,13 +34813,13 @@ class Xz extends q2 {
|
|
|
34813
34813
|
}
|
|
34814
34814
|
getPlaylistRetryOrSwitchAction(t, e) {
|
|
34815
34815
|
const n = this.hls, s = Xg(n.config.playlistLoadPolicy, t), a = this.playlistError++;
|
|
34816
|
-
if (Ao(s, a, Eo(t), t.response)) return { action: N1.RetryRequest, flags:
|
|
34816
|
+
if (Ao(s, a, Eo(t), t.response)) return { action: N1.RetryRequest, flags: b2.None, retryConfig: s, retryCount: a };
|
|
34817
34817
|
const l = this.getLevelSwitchAction(t, e);
|
|
34818
34818
|
return s && (l.retryConfig = s, l.retryCount = a), l;
|
|
34819
34819
|
}
|
|
34820
34820
|
getFragRetryOrSwitchAction(t) {
|
|
34821
34821
|
const e = this.hls, n = this.getVariantLevelIndex(t.frag), s = e.levels[n], { fragLoadPolicy: a, keyLoadPolicy: o } = e.config, l = Xg(O_(t) ? o : a, t), u = e.levels.reduce((T, f) => T + f.fragmentError, 0);
|
|
34822
|
-
if (s && (t.details !== q.FRAG_GAP && s.fragmentError++, !I_(t) && Ao(l, u, Eo(t), t.response))) return { action: N1.RetryRequest, flags:
|
|
34822
|
+
if (s && (t.details !== q.FRAG_GAP && s.fragmentError++, !I_(t) && Ao(l, u, Eo(t), t.response))) return { action: N1.RetryRequest, flags: b2.None, retryConfig: l, retryCount: u };
|
|
34823
34823
|
const h = this.getLevelSwitchAction(t, n);
|
|
34824
34824
|
return l && (h.retryConfig = l, h.retryCount = u), h;
|
|
34825
34825
|
}
|
|
@@ -34854,9 +34854,9 @@ class Xz extends q2 {
|
|
|
34854
34854
|
break;
|
|
34855
34855
|
}
|
|
34856
34856
|
}
|
|
34857
|
-
if (T > -1 && n.loadLevel !== T) return t.levelRetry = true, this.playlistError = 0, { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34857
|
+
if (T > -1 && n.loadLevel !== T) return t.levelRetry = true, this.playlistError = 0, { action: N1.SendAlternateToPenaltyBox, flags: b2.None, nextAutoLevel: T };
|
|
34858
34858
|
}
|
|
34859
|
-
return { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34859
|
+
return { action: N1.SendAlternateToPenaltyBox, flags: b2.MoveAllAlternatesMatchingHost };
|
|
34860
34860
|
}
|
|
34861
34861
|
onErrorOut(t, e) {
|
|
34862
34862
|
var n;
|
|
@@ -34877,10 +34877,10 @@ class Xz extends q2 {
|
|
|
34877
34877
|
if (!n) return;
|
|
34878
34878
|
const { flags: s } = n, a = n.nextAutoLevel;
|
|
34879
34879
|
switch (s) {
|
|
34880
|
-
case
|
|
34880
|
+
case b2.None:
|
|
34881
34881
|
this.switchLevel(t, a);
|
|
34882
34882
|
break;
|
|
34883
|
-
case
|
|
34883
|
+
case b2.MoveAllAlternatesMatchingHDCP: {
|
|
34884
34884
|
const u = this.getVariantLevelIndex(t.frag), h = e.levels[u], T = h == null ? void 0 : h.attrs["HDCP-LEVEL"];
|
|
34885
34885
|
if (n.hdcpLevel = T, T === "NONE") this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");
|
|
34886
34886
|
else if (T) {
|
|
@@ -34888,7 +34888,7 @@ class Xz extends q2 {
|
|
|
34888
34888
|
break;
|
|
34889
34889
|
}
|
|
34890
34890
|
}
|
|
34891
|
-
case
|
|
34891
|
+
case b2.MoveAllAlternatesMatchingKey: {
|
|
34892
34892
|
const u = t.decryptdata;
|
|
34893
34893
|
if (u) {
|
|
34894
34894
|
const h = this.hls.levels, T = h.length;
|
|
@@ -34916,10 +34916,10 @@ class Xz extends q2 {
|
|
|
34916
34916
|
}
|
|
34917
34917
|
}
|
|
34918
34918
|
function cn(r) {
|
|
34919
|
-
const t = { action: N1.DoNothing, flags:
|
|
34919
|
+
const t = { action: N1.DoNothing, flags: b2.None };
|
|
34920
34920
|
return r && (t.resolved = true), t;
|
|
34921
34921
|
}
|
|
34922
|
-
var
|
|
34922
|
+
var L1 = { NOT_LOADED: "NOT_LOADED", APPENDING: "APPENDING", PARTIAL: "PARTIAL", OK: "OK" };
|
|
34923
34923
|
class $z {
|
|
34924
34924
|
constructor(t) {
|
|
34925
34925
|
this.activePartLists = /* @__PURE__ */ Object.create(null), this.endListFragments = /* @__PURE__ */ Object.create(null), this.fragments = /* @__PURE__ */ Object.create(null), this.timeRanges = /* @__PURE__ */ Object.create(null), this.bufferPadding = 0.2, this.hls = void 0, this.hasGaps = false, this.hls = t, this._registerListeners();
|
|
@@ -35034,7 +35034,7 @@ class $z {
|
|
|
35034
35034
|
}
|
|
35035
35035
|
getState(t) {
|
|
35036
35036
|
const e = j4(t), n = this.fragments[e];
|
|
35037
|
-
return n ? n.buffered ? Xs(n) ?
|
|
35037
|
+
return n ? n.buffered ? Xs(n) ? L1.PARTIAL : L1.OK : L1.APPENDING : L1.NOT_LOADED;
|
|
35038
35038
|
}
|
|
35039
35039
|
isTimeBuffered(t, e, n) {
|
|
35040
35040
|
let s, a;
|
|
@@ -36541,10 +36541,10 @@ function wo(r, t) {
|
|
|
36541
36541
|
const h = (u - l) / 1e3 - (a.start - s.start);
|
|
36542
36542
|
K_(h, r);
|
|
36543
36543
|
}
|
|
36544
|
-
function
|
|
36545
|
-
|
|
36544
|
+
function o2(r, t, e) {
|
|
36545
|
+
p2(r, t, e), r.addEventListener(t, e);
|
|
36546
36546
|
}
|
|
36547
|
-
function
|
|
36547
|
+
function p2(r, t, e) {
|
|
36548
36548
|
r.removeEventListener(t, e);
|
|
36549
36549
|
}
|
|
36550
36550
|
const wW = { toString: function(r) {
|
|
@@ -36644,14 +36644,14 @@ class Mf extends V_ {
|
|
|
36644
36644
|
}
|
|
36645
36645
|
onMediaAttached(t, e) {
|
|
36646
36646
|
const n = this.media = this.mediaBuffer = e.media;
|
|
36647
|
-
|
|
36647
|
+
o2(n, "seeking", this.onMediaSeeking), o2(n, "ended", this.onMediaEnded);
|
|
36648
36648
|
const s = this.config;
|
|
36649
36649
|
this.levels && s.autoStartLoad && this.state === it.STOPPED && this.startLoad(s.startPosition);
|
|
36650
36650
|
}
|
|
36651
36651
|
onMediaDetaching(t, e) {
|
|
36652
36652
|
const n = !!e.transferMedia, s = this.media;
|
|
36653
36653
|
if (s !== null) {
|
|
36654
|
-
if (s.ended && (this.log("MSE detaching and video ended, reset startPosition"), this.startPosition = this.lastCurrentTime = 0),
|
|
36654
|
+
if (s.ended && (this.log("MSE detaching and video ended, reset startPosition"), this.startPosition = this.lastCurrentTime = 0), p2(s, "seeking", this.onMediaSeeking), p2(s, "ended", this.onMediaEnded), this.keyLoader && !n && this.keyLoader.detach(), this.media = this.mediaBuffer = null, this.loopSn = void 0, n) {
|
|
36655
36655
|
this.resetLoadingState(), this.resetTransmuxer();
|
|
36656
36656
|
return;
|
|
36657
36657
|
}
|
|
@@ -36699,10 +36699,10 @@ class Mf extends V_ {
|
|
|
36699
36699
|
clearTrackerIfNeeded(t) {
|
|
36700
36700
|
var e;
|
|
36701
36701
|
const { fragmentTracker: n } = this;
|
|
36702
|
-
if (n.getState(t) ===
|
|
36702
|
+
if (n.getState(t) === L1.APPENDING) {
|
|
36703
36703
|
const a = t.type, o = this.getFwdBufferInfo(this.mediaBuffer, a), l = Math.max(t.duration, o ? o.len : this.config.maxBufferLength), u = this.backtrackFragment;
|
|
36704
36704
|
((u ? t.sn - u.sn : 0) === 1 || this.reduceMaxBufferLength(l, t.duration)) && n.removeFragment(t);
|
|
36705
|
-
} else ((e = this.mediaBuffer) == null ? void 0 : e.buffered.length) === 0 ? n.removeAllFragments() : n.hasParts(t.type) && (n.detectPartialFragments({ frag: t, part: null, stats: t.stats, id: t.type }), n.getState(t) ===
|
|
36705
|
+
} else ((e = this.mediaBuffer) == null ? void 0 : e.buffered.length) === 0 ? n.removeAllFragments() : n.hasParts(t.type) && (n.detectPartialFragments({ frag: t, part: null, stats: t.stats, id: t.type }), n.getState(t) === L1.PARTIAL && n.removeFragment(t));
|
|
36706
36706
|
}
|
|
36707
36707
|
checkLiveUpdate(t) {
|
|
36708
36708
|
if (t.updated && !t.live) {
|
|
@@ -36762,7 +36762,7 @@ class Mf extends V_ {
|
|
|
36762
36762
|
}
|
|
36763
36763
|
fragBufferedComplete(t, e) {
|
|
36764
36764
|
const n = this.mediaBuffer ? this.mediaBuffer : this.media;
|
|
36765
|
-
if (this.log(`Buffered ${t.type} sn: ${t.sn}${e ? " part: " + e.index : ""} of ${this.fragInfo(t, false, e)} > buffer:${n ? wW.toString(ee.getBuffered(n)) : "(detached)"})`),
|
|
36765
|
+
if (this.log(`Buffered ${t.type} sn: ${t.sn}${e ? " part: " + e.index : ""} of ${this.fragInfo(t, false, e)} > buffer:${n ? wW.toString(ee.getBuffered(n)) : "(detached)"})`), h1(t)) {
|
|
36766
36766
|
var s;
|
|
36767
36767
|
if (t.type !== Mt.SUBTITLE) {
|
|
36768
36768
|
const o = t.elementaryStreams;
|
|
@@ -36796,11 +36796,11 @@ class Mf extends V_ {
|
|
|
36796
36796
|
}), this.hls.trigger(w.KEY_LOADING, { frag: t }), this.fragCurrent === null) return this.log("context changed in KEY_LOADING"), Promise.resolve(null);
|
|
36797
36797
|
} else t.encrypted || (l = this.keyLoader.loadClear(t, o.encryptedFragments, this.startFragRequested), l && this.log("[eme] blocking frag load until media-keys acquired"));
|
|
36798
36798
|
const u = this.fragPrevious;
|
|
36799
|
-
if (
|
|
36799
|
+
if (h1(t) && (!u || t.sn !== u.sn)) {
|
|
36800
36800
|
const d = this.shouldLoadParts(e.details, t.end);
|
|
36801
36801
|
d !== this.loadingParts && (this.log(`LL-Part loading ${d ? "ON" : "OFF"} loading sn ${u == null ? void 0 : u.sn}->${t.sn}`), this.loadingParts = d);
|
|
36802
36802
|
}
|
|
36803
|
-
if (n = Math.max(t.start, n || 0), this.loadingParts &&
|
|
36803
|
+
if (n = Math.max(t.start, n || 0), this.loadingParts && h1(t)) {
|
|
36804
36804
|
const d = o.partList;
|
|
36805
36805
|
if (d && s) {
|
|
36806
36806
|
n > o.fragmentEnd && o.fragmentHint && (t = o.fragmentHint);
|
|
@@ -36813,7 +36813,7 @@ class Mf extends V_ {
|
|
|
36813
36813
|
} else if (!t.url || this.loadedEndOfParts(d, n)) return Promise.resolve(null);
|
|
36814
36814
|
}
|
|
36815
36815
|
}
|
|
36816
|
-
if (
|
|
36816
|
+
if (h1(t) && this.loadingParts) {
|
|
36817
36817
|
var h;
|
|
36818
36818
|
this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(h = o.partList) == null ? void 0 : h.filter((d) => d.loaded).map((d) => `[${d.start}-${d.end}]`)}`), this.loadingParts = false;
|
|
36819
36819
|
} else if (!t.url) return Promise.resolve(null);
|
|
@@ -36958,7 +36958,7 @@ class Mf extends V_ {
|
|
|
36958
36958
|
}
|
|
36959
36959
|
isLoopLoading(t, e) {
|
|
36960
36960
|
const n = this.fragmentTracker.getState(t);
|
|
36961
|
-
return (n ===
|
|
36961
|
+
return (n === L1.OK || n === L1.PARTIAL && !!t.gap) && this.nextLoadPosition > e;
|
|
36962
36962
|
}
|
|
36963
36963
|
getNextFragmentLoopLoading(t, e, n, s, a) {
|
|
36964
36964
|
let o = null;
|
|
@@ -37048,9 +37048,9 @@ class Mf extends V_ {
|
|
|
37048
37048
|
} else d = o[o.length - 1];
|
|
37049
37049
|
if (d) {
|
|
37050
37050
|
const g = d.sn - n.startSN, y = this.fragmentTracker.getState(d);
|
|
37051
|
-
if ((y ===
|
|
37051
|
+
if ((y === L1.OK || y === L1.PARTIAL && d.gap) && (a = d), a && d.sn === a.sn && (!f || T[0].fragment.sn > d.sn || !n.live) && d.level === a.level) {
|
|
37052
37052
|
const Q = o[g + 1];
|
|
37053
|
-
d.sn < l && this.fragmentTracker.getState(Q) !==
|
|
37053
|
+
d.sn < l && this.fragmentTracker.getState(Q) !== L1.OK ? d = Q : d = null;
|
|
37054
37054
|
}
|
|
37055
37055
|
}
|
|
37056
37056
|
return d;
|
|
@@ -37086,7 +37086,7 @@ class Mf extends V_ {
|
|
|
37086
37086
|
return (t = this.hls) != null && t.hasEnoughToStart && e ? n = e.currentTime : this.nextLoadPosition >= 0 && (n = this.nextLoadPosition), n;
|
|
37087
37087
|
}
|
|
37088
37088
|
handleFragLoadAborted(t, e) {
|
|
37089
|
-
this.transmuxer && t.type === this.playlistType &&
|
|
37089
|
+
this.transmuxer && t.type === this.playlistType && h1(t) && t.stats.aborted && (this.log(`Fragment ${t.sn}${e ? " part " + e.index : ""} of ${this.playlistLabel()} ${t.level} was aborted`), this.resetFragmentLoading(t));
|
|
37090
37090
|
}
|
|
37091
37091
|
resetFragmentLoading(t) {
|
|
37092
37092
|
(!this.fragCurrent || !this.fragContextChanged(t) && this.state !== it.FRAG_LOADING_WAITING_RETRY) && (this.state = it.IDLE);
|
|
@@ -37111,8 +37111,8 @@ class Mf extends V_ {
|
|
|
37111
37111
|
this.state = it.ERROR;
|
|
37112
37112
|
return;
|
|
37113
37113
|
}
|
|
37114
|
-
const { action: u, flags: h, retryCount: T = 0, retryConfig: f } = l, d = !!f, p = d && u === N1.RetryRequest, g = d && !l.resolved && h ===
|
|
37115
|
-
if (!p && g &&
|
|
37114
|
+
const { action: u, flags: h, retryCount: T = 0, retryConfig: f } = l, d = !!f, p = d && u === N1.RetryRequest, g = d && !l.resolved && h === b2.MoveAllAlternatesMatchingHost, y = (n = this.hls.latestLevelDetails) == null ? void 0 : n.live;
|
|
37115
|
+
if (!p && g && h1(s) && !s.endList && y && !I_(e)) this.resetFragmentErrors(t), this.treatAsGap(s), l.resolved = true;
|
|
37116
37116
|
else if ((p || g) && T < f.maxNumRetry) {
|
|
37117
37117
|
var c;
|
|
37118
37118
|
const Q = Qh((c = e.response) == null ? void 0 : c.code), m = _f(f, T);
|
|
@@ -37566,7 +37566,7 @@ function Of(r) {
|
|
|
37566
37566
|
if (sS(n)) return eq(n);
|
|
37567
37567
|
}
|
|
37568
37568
|
}
|
|
37569
|
-
let
|
|
37569
|
+
let E2 = function(r) {
|
|
37570
37570
|
return r.audioId3 = "org.id3", r.dateRange = "com.apple.quicktime.HLS", r.emsg = "https://aomedia.org/emsg/ID3", r.misbklv = "urn:misb:KLV:bin:1910.1", r;
|
|
37571
37571
|
}({});
|
|
37572
37572
|
function w3(r = "", t = 9e4) {
|
|
@@ -37594,11 +37594,11 @@ class If {
|
|
|
37594
37594
|
this.cachedData && (t = W2(this.cachedData, t), this.cachedData = null);
|
|
37595
37595
|
let n = K5(t, 0), s = n ? n.length : 0, a;
|
|
37596
37596
|
const o = this._audioTrack, l = this._id3Track, u = n ? Of(n) : void 0, h = t.length;
|
|
37597
|
-
for ((this.basePTS === null || this.frameIndex === 0 && St(u)) && (this.basePTS = iq(u, e, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), n && n.length > 0 && l.samples.push({ pts: this.lastPTS, dts: this.lastPTS, data: n, type:
|
|
37597
|
+
for ((this.basePTS === null || this.frameIndex === 0 && St(u)) && (this.basePTS = iq(u, e, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), n && n.length > 0 && l.samples.push({ pts: this.lastPTS, dts: this.lastPTS, data: n, type: E2.audioId3, duration: Number.POSITIVE_INFINITY }); s < h; ) {
|
|
37598
37598
|
if (this.canParse(t, s)) {
|
|
37599
37599
|
const T = this.appendFrame(o, t, s);
|
|
37600
37600
|
T ? (this.frameIndex++, this.lastPTS = T.sample.pts, s += T.length, a = s) : s = h;
|
|
37601
|
-
} else jW(t, s) ? (n = K5(t, s), l.samples.push({ pts: this.lastPTS, dts: this.lastPTS, data: n, type:
|
|
37601
|
+
} else jW(t, s) ? (n = K5(t, s), l.samples.push({ pts: this.lastPTS, dts: this.lastPTS, data: n, type: E2.audioId3, duration: Number.POSITIVE_INFINITY }), s += n.length, a = s) : s++;
|
|
37602
37602
|
if (s === h && a !== h) {
|
|
37603
37603
|
const T = t.slice(a);
|
|
37604
37604
|
this.cachedData ? this.cachedData = W2(this.cachedData, T) : this.cachedData = T;
|
|
@@ -37806,10 +37806,10 @@ class Tq {
|
|
|
37806
37806
|
let u = o.eventDuration === 4294967295 ? Number.POSITIVE_INFINITY : o.eventDuration / o.timeScale;
|
|
37807
37807
|
u <= 1e-3 && (u = Number.POSITIVE_INFINITY);
|
|
37808
37808
|
const h = o.payload;
|
|
37809
|
-
n.samples.push({ data: h, len: h.byteLength, dts: l, pts: l, type:
|
|
37809
|
+
n.samples.push({ data: h, len: h.byteLength, dts: l, pts: l, type: E2.emsg, duration: u });
|
|
37810
37810
|
} else if (this.config.enableEmsgKLVMetadata && o.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")) {
|
|
37811
37811
|
const l = by(o, e);
|
|
37812
|
-
n.samples.push({ data: o.payload, len: o.payload.byteLength, dts: l, pts: l, type:
|
|
37812
|
+
n.samples.push({ data: o.payload, len: o.payload.byteLength, dts: l, pts: l, type: E2.misbklv, duration: Number.POSITIVE_INFINITY });
|
|
37813
37813
|
}
|
|
37814
37814
|
});
|
|
37815
37815
|
}
|
|
@@ -38549,7 +38549,7 @@ class Ki {
|
|
|
38549
38549
|
this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");
|
|
38550
38550
|
return;
|
|
38551
38551
|
}
|
|
38552
|
-
const n = ke({}, e, { type: this._videoTrack ?
|
|
38552
|
+
const n = ke({}, e, { type: this._videoTrack ? E2.emsg : E2.audioId3, duration: Number.POSITIVE_INFINITY });
|
|
38553
38553
|
t.samples.push(n);
|
|
38554
38554
|
}
|
|
38555
38555
|
}
|
|
@@ -38883,7 +38883,7 @@ class xa extends q2 {
|
|
|
38883
38883
|
let e = false;
|
|
38884
38884
|
const n = t[0].pts, s = t.reduce((a, o) => {
|
|
38885
38885
|
let l = o.pts, u = l - a;
|
|
38886
|
-
return u < -4294967296 && (e = true, l =
|
|
38886
|
+
return u < -4294967296 && (e = true, l = _2(l, n), u = l - a), u > 0 ? a : l;
|
|
38887
38887
|
}, n);
|
|
38888
38888
|
return e && this.debug("PTS rollover detected"), s;
|
|
38889
38889
|
}
|
|
@@ -38906,7 +38906,7 @@ class xa extends q2 {
|
|
|
38906
38906
|
} else I === -1 && (this.warn(`No keyframe found out of ${v} video samples`), g = false);
|
|
38907
38907
|
if (this.ISGenerated) {
|
|
38908
38908
|
if (x && L) {
|
|
38909
|
-
const R = this.getVideoStartPts(e.samples), X = (
|
|
38909
|
+
const R = this.getVideoStartPts(e.samples), X = (_2(t.samples[0].pts, R) - R) / e.inputTimeScale;
|
|
38910
38910
|
y += Math.max(0, X), c += Math.max(0, -X);
|
|
38911
38911
|
}
|
|
38912
38912
|
if (x) {
|
|
@@ -38922,7 +38922,7 @@ class xa extends q2 {
|
|
|
38922
38922
|
}
|
|
38923
38923
|
computeInitPts(t, e, n, s) {
|
|
38924
38924
|
const a = Math.round(n * e);
|
|
38925
|
-
let o =
|
|
38925
|
+
let o = _2(t, a);
|
|
38926
38926
|
if (o < a + e) for (this.log(`Adjusting PTS for rollover in timeline near ${(a - o) / e} ${s}`); o < a + e; ) o += 8589934592;
|
|
38927
38927
|
return o - a;
|
|
38928
38928
|
}
|
|
@@ -38942,7 +38942,7 @@ class xa extends q2 {
|
|
|
38942
38942
|
}
|
|
38943
38943
|
if (e.sps && e.pps && o.length) {
|
|
38944
38944
|
if (e.timescale = e.inputTimeScale, u.video = { id: "main", container: "video/mp4", codec: e.codec, initSegment: z.initSegment([e]), metadata: { width: e.width, height: e.height } }, T) if (y = e.id, g = e.inputTimeScale, !h || g !== h.timescale) {
|
|
38945
|
-
const c = this.getVideoStartPts(o), Q =
|
|
38945
|
+
const c = this.getVideoStartPts(o), Q = _2(o[0].dts, c), m = this.computeInitPts(Q, g, n, "video"), v = this.computeInitPts(c, g, n, "video");
|
|
38946
38946
|
p = Math.min(p, m), d = Math.min(d, v);
|
|
38947
38947
|
} else T = false;
|
|
38948
38948
|
this.videoTrackConfig = { width: e.width, height: e.height, pixelRatio: e.pixelRatio };
|
|
@@ -38953,13 +38953,13 @@ class xa extends q2 {
|
|
|
38953
38953
|
const a = t.inputTimeScale, o = t.samples, l = [], u = o.length, h = this._initPTS, T = h.baseTime * a / h.timescale;
|
|
38954
38954
|
let f = this.nextVideoTs, d = 8, p = this.videoSampleDuration, g, y, c = Number.POSITIVE_INFINITY, Q = Number.NEGATIVE_INFINITY, m = false;
|
|
38955
38955
|
if (!n || f === null) {
|
|
38956
|
-
const N = T + e * a, K = o[0].pts -
|
|
38956
|
+
const N = T + e * a, K = o[0].pts - _2(o[0].dts, o[0].pts);
|
|
38957
38957
|
W4 && f !== null && Math.abs(N - K - (f + T)) < 15e3 ? n = true : f = N - K - T;
|
|
38958
38958
|
}
|
|
38959
38959
|
const v = f + T;
|
|
38960
38960
|
for (let N = 0; N < u; N++) {
|
|
38961
38961
|
const K = o[N];
|
|
38962
|
-
K.pts =
|
|
38962
|
+
K.pts = _2(K.pts, v), K.dts = _2(K.dts, v), K.dts < o[N > 0 ? N - 1 : N].dts && (m = true);
|
|
38963
38963
|
}
|
|
38964
38964
|
m && o.sort(function(N, K) {
|
|
38965
38965
|
const J = N.dts - K.dts, ft = N.pts - K.pts;
|
|
@@ -39063,8 +39063,8 @@ class xa extends q2 {
|
|
|
39063
39063
|
const o = t.inputTimeScale, l = t.samplerate ? t.samplerate : o, u = o / l, h = this.getSamplesPerFrame(t), T = h * u, f = this._initPTS, d = t.segmentCodec === "mp3" && this.typeSupported.mpeg, p = [], g = a !== void 0;
|
|
39064
39064
|
let y = t.samples, c = d ? 0 : 8, Q = this.nextAudioTs || -1;
|
|
39065
39065
|
const m = f.baseTime * o / f.timescale, v = m + e * o;
|
|
39066
|
-
if (this.isAudioContiguous = n = n || y.length && Q > 0 && (s && Math.abs(v - (Q + m)) < 9e3 || Math.abs(
|
|
39067
|
-
X.pts =
|
|
39066
|
+
if (this.isAudioContiguous = n = n || y.length && Q > 0 && (s && Math.abs(v - (Q + m)) < 9e3 || Math.abs(_2(y[0].pts, v) - (Q + m)) < 20 * T), y.forEach(function(X) {
|
|
39067
|
+
X.pts = _2(X.pts, v);
|
|
39068
39068
|
}), !n || Q < 0) {
|
|
39069
39069
|
const X = y.length;
|
|
39070
39070
|
if (y = y.filter((st) => st.pts >= 0), X !== y.length && this.warn(`Removed ${y.length - X} of ${X} samples (initPTS ${m} / ${o})`), !y.length) return;
|
|
@@ -39119,7 +39119,7 @@ class xa extends q2 {
|
|
|
39119
39119
|
return this.isAudioContiguous = true, F;
|
|
39120
39120
|
}
|
|
39121
39121
|
}
|
|
39122
|
-
function
|
|
39122
|
+
function _2(r, t) {
|
|
39123
39123
|
let e;
|
|
39124
39124
|
if (t === null) return r;
|
|
39125
39125
|
for (t < r ? e = -8589934592 : e = 8589934592; Math.abs(r - t) > 4294967296; ) r += e;
|
|
@@ -39135,7 +39135,7 @@ function QS(r, t, e, n) {
|
|
|
39135
39135
|
const a = r.inputTimeScale;
|
|
39136
39136
|
for (let l = 0; l < s; l++) {
|
|
39137
39137
|
const u = r.samples[l];
|
|
39138
|
-
u.pts =
|
|
39138
|
+
u.pts = _2(u.pts - e.baseTime * a / e.timescale, t * a) / a, u.dts = _2(u.dts - n.baseTime * a / n.timescale, t * a) / a;
|
|
39139
39139
|
}
|
|
39140
39140
|
const o = r.samples;
|
|
39141
39141
|
return r.samples = [], { samples: o };
|
|
@@ -39146,7 +39146,7 @@ function dS(r, t, e) {
|
|
|
39146
39146
|
const s = r.inputTimeScale;
|
|
39147
39147
|
for (let o = 0; o < n; o++) {
|
|
39148
39148
|
const l = r.samples[o];
|
|
39149
|
-
l.pts =
|
|
39149
|
+
l.pts = _2(l.pts - e.baseTime * s / e.timescale, t * s) / s;
|
|
39150
39150
|
}
|
|
39151
39151
|
r.samples.sort((o, l) => o.pts - l.pts);
|
|
39152
39152
|
const a = r.samples;
|
|
@@ -39620,7 +39620,7 @@ class Cq extends Mf {
|
|
|
39620
39620
|
return;
|
|
39621
39621
|
}
|
|
39622
39622
|
let m = ((t = this.mainFragLoading) == null ? void 0 : t.frag) || null;
|
|
39623
|
-
if (!this.audioOnly && this.startFragRequested && m &&
|
|
39623
|
+
if (!this.audioOnly && this.startFragRequested && m && h1(Q) && !Q.endList && (!u.live || !this.loadingParts && c < this.hls.liveSyncPosition) && (this.fragmentTracker.getState(m) === L1.OK && (this.mainFragLoading = m = null), m && h1(m))) {
|
|
39624
39624
|
if (Q.start > m.end) {
|
|
39625
39625
|
const x = this.fragmentTracker.getFragAtPos(c, Mt.MAIN);
|
|
39626
39626
|
x && x.end > m.end && (m = x, this.mainFragLoading = { frag: x, targetBufferTime: null });
|
|
@@ -39720,7 +39720,7 @@ class Cq extends Mf {
|
|
|
39720
39720
|
n && (this.mediaBuffer = n.buffer || null);
|
|
39721
39721
|
}
|
|
39722
39722
|
onFragLoading(t, e) {
|
|
39723
|
-
!this.audioOnly && e.frag.type === Mt.MAIN &&
|
|
39723
|
+
!this.audioOnly && e.frag.type === Mt.MAIN && h1(e.frag) && (this.mainFragLoading = e, this.state === it.IDLE && this.tick());
|
|
39724
39724
|
}
|
|
39725
39725
|
onFragBuffered(t, e) {
|
|
39726
39726
|
const { frag: n, part: s } = e;
|
|
@@ -39732,7 +39732,7 @@ class Cq extends Mf {
|
|
|
39732
39732
|
this.warn(`Fragment ${n.sn}${s ? " p: " + s.index : ""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack ? this.switchingTrack.name : "false"}`);
|
|
39733
39733
|
return;
|
|
39734
39734
|
}
|
|
39735
|
-
if (
|
|
39735
|
+
if (h1(n)) {
|
|
39736
39736
|
this.fragPrevious = n;
|
|
39737
39737
|
const a = this.switchingTrack;
|
|
39738
39738
|
a && (this.bufferedTrack = a, this.switchingTrack = null, this.hls.trigger(w.AUDIO_TRACK_SWITCHED, we({}, a)));
|
|
@@ -39829,9 +39829,9 @@ class Cq extends Mf {
|
|
|
39829
39829
|
}
|
|
39830
39830
|
loadFragment(t, e, n) {
|
|
39831
39831
|
const s = this.fragmentTracker.getState(t);
|
|
39832
|
-
if (this.switchingTrack || s ===
|
|
39832
|
+
if (this.switchingTrack || s === L1.NOT_LOADED || s === L1.PARTIAL) {
|
|
39833
39833
|
var a;
|
|
39834
|
-
if (!
|
|
39834
|
+
if (!h1(t)) this._loadInitSegment(t, e);
|
|
39835
39835
|
else if ((a = e.details) != null && a.live && !this.initPTS[t.cc]) {
|
|
39836
39836
|
this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`), this.state = it.WAITING_INIT_PTS;
|
|
39837
39837
|
const o = this.mainDetails;
|
|
@@ -41012,7 +41012,7 @@ class Rf {
|
|
|
41012
41012
|
return a;
|
|
41013
41013
|
}
|
|
41014
41014
|
}
|
|
41015
|
-
const kq = { MANIFEST: "m", AUDIO: "a", VIDEO: "v", MUXED: "av", INIT: "i", CAPTION: "c", TIMED_TEXT: "tt", KEY: "k", OTHER: "o" },
|
|
41015
|
+
const kq = { MANIFEST: "m", AUDIO: "a", VIDEO: "v", MUXED: "av", INIT: "i", CAPTION: "c", TIMED_TEXT: "tt", KEY: "k", OTHER: "o" }, h2 = kq, Rq = { HLS: "h" }, Bq = Rq;
|
|
41016
41016
|
class j3 {
|
|
41017
41017
|
constructor(t, e) {
|
|
41018
41018
|
Array.isArray(t) && (t = t.map((n) => n instanceof j3 ? n : new j3(n))), this.value = t, this.params = e;
|
|
@@ -41248,14 +41248,14 @@ class DZ {
|
|
|
41248
41248
|
this.initialized || (this.initialized = true), this.buffering = false;
|
|
41249
41249
|
}, this.applyPlaylistData = (s) => {
|
|
41250
41250
|
try {
|
|
41251
|
-
this.apply(s, { ot:
|
|
41251
|
+
this.apply(s, { ot: h2.MANIFEST, su: !this.initialized });
|
|
41252
41252
|
} catch (a) {
|
|
41253
41253
|
this.hls.logger.warn("Could not generate manifest CMCD data.", a);
|
|
41254
41254
|
}
|
|
41255
41255
|
}, this.applyFragmentData = (s) => {
|
|
41256
41256
|
try {
|
|
41257
41257
|
const { frag: a, part: o } = s, l = this.hls.levels[a.level], u = this.getObjectType(a), h = { d: (o || a).duration * 1e3, ot: u };
|
|
41258
|
-
(u ===
|
|
41258
|
+
(u === h2.VIDEO || u === h2.AUDIO || u == h2.MUXED) && (h.br = l.bitrate / 1e3, h.tb = this.getTopBandwidth(u) / 1e3, h.bl = this.getBufferLength(u));
|
|
41259
41259
|
const T = o ? this.getNextPart(o) : this.getNextFrag(a);
|
|
41260
41260
|
T != null && T.url && T.url !== a.url && (h.nor = T.url), this.apply(s, h);
|
|
41261
41261
|
} catch (a) {
|
|
@@ -41292,7 +41292,7 @@ class DZ {
|
|
|
41292
41292
|
}
|
|
41293
41293
|
apply(t, e = {}) {
|
|
41294
41294
|
ke(e, this.createData());
|
|
41295
|
-
const n = e.ot ===
|
|
41295
|
+
const n = e.ot === h2.INIT || e.ot === h2.VIDEO || e.ot === h2.MUXED;
|
|
41296
41296
|
this.starved && n && (e.bs = true, e.su = true, this.starved = false), e.su == null && (e.su = this.buffering);
|
|
41297
41297
|
const { includeKeys: s } = this;
|
|
41298
41298
|
s && (e = Object.keys(e).reduce((o, l) => (s.includes(l) && (o[l] = e[l]), o), {}));
|
|
@@ -41320,15 +41320,15 @@ class DZ {
|
|
|
41320
41320
|
}
|
|
41321
41321
|
getObjectType(t) {
|
|
41322
41322
|
const { type: e } = t;
|
|
41323
|
-
if (e === "subtitle") return
|
|
41324
|
-
if (t.sn === "initSegment") return
|
|
41325
|
-
if (e === "audio") return
|
|
41326
|
-
if (e === "main") return this.hls.audioTracks.length ?
|
|
41323
|
+
if (e === "subtitle") return h2.TIMED_TEXT;
|
|
41324
|
+
if (t.sn === "initSegment") return h2.INIT;
|
|
41325
|
+
if (e === "audio") return h2.AUDIO;
|
|
41326
|
+
if (e === "main") return this.hls.audioTracks.length ? h2.VIDEO : h2.MUXED;
|
|
41327
41327
|
}
|
|
41328
41328
|
getTopBandwidth(t) {
|
|
41329
41329
|
let e = 0, n;
|
|
41330
41330
|
const s = this.hls;
|
|
41331
|
-
if (t ===
|
|
41331
|
+
if (t === h2.AUDIO) n = s.audioTracks;
|
|
41332
41332
|
else {
|
|
41333
41333
|
const a = s.maxAutoLevel, o = a > -1 ? a + 1 : s.levels.length;
|
|
41334
41334
|
n = s.levels.slice(0, o);
|
|
@@ -41338,7 +41338,7 @@ class DZ {
|
|
|
41338
41338
|
}), e > 0 ? e : NaN;
|
|
41339
41339
|
}
|
|
41340
41340
|
getBufferLength(t) {
|
|
41341
|
-
const e = this.media, n = t ===
|
|
41341
|
+
const e = this.media, n = t === h2.AUDIO ? this.audioBuffer : this.videoBuffer;
|
|
41342
41342
|
return !n || !e ? NaN : ee.bufferInfo(n, e.currentTime, this.config.maxBufferHole).len * 1e3;
|
|
41343
41343
|
}
|
|
41344
41344
|
createPlaylistLoader() {
|
|
@@ -41447,7 +41447,7 @@ class IZ extends q2 {
|
|
|
41447
41447
|
}
|
|
41448
41448
|
onError(t, e) {
|
|
41449
41449
|
const { errorAction: n } = e;
|
|
41450
|
-
if ((n == null ? void 0 : n.action) === N1.SendAlternateToPenaltyBox && n.flags ===
|
|
41450
|
+
if ((n == null ? void 0 : n.action) === N1.SendAlternateToPenaltyBox && n.flags === b2.MoveAllAlternatesMatchingHost) {
|
|
41451
41451
|
const s = this.levels;
|
|
41452
41452
|
let a = this._pathwayPriority, o = this.pathwayId;
|
|
41453
41453
|
if (e.context) {
|
|
@@ -41616,7 +41616,7 @@ class Tn extends q2 {
|
|
|
41616
41616
|
}
|
|
41617
41617
|
let u;
|
|
41618
41618
|
try {
|
|
41619
|
-
const p =
|
|
41619
|
+
const p = x1(new Uint8Array(s)), g = Hf(JSON.parse(p).sinf), y = b_(g);
|
|
41620
41620
|
if (!y) throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");
|
|
41621
41621
|
u = new Uint8Array(y.subarray(8, 24));
|
|
41622
41622
|
} catch (p) {
|
|
@@ -41675,7 +41675,7 @@ class Tn extends q2 {
|
|
|
41675
41675
|
const u = (h) => {
|
|
41676
41676
|
const T = h.shift();
|
|
41677
41677
|
this.getMediaKeysPromise(T, s, a).then((f) => o({ keySystem: T, mediaKeys: f })).catch((f) => {
|
|
41678
|
-
h.length ? u(h) : f instanceof
|
|
41678
|
+
h.length ? u(h) : f instanceof L2 ? l(f) : l(new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_NO_ACCESS, error: f, fatal: true }, f.message));
|
|
41679
41679
|
});
|
|
41680
41680
|
};
|
|
41681
41681
|
u(t);
|
|
@@ -41774,10 +41774,10 @@ class Tn extends q2 {
|
|
|
41774
41774
|
return l.catch((u) => this.handleError(u, t.frag)), this.keyIdToKeySessionPromise[n] = l, l;
|
|
41775
41775
|
}
|
|
41776
41776
|
return o.catch((l) => {
|
|
41777
|
-
if (l instanceof
|
|
41777
|
+
if (l instanceof L2) {
|
|
41778
41778
|
const u = we({}, l.data);
|
|
41779
41779
|
this.getKeyStatus(e) === "internal-error" && (u.decryptdata = e);
|
|
41780
|
-
const h = new
|
|
41780
|
+
const h = new L2(u, l.message);
|
|
41781
41781
|
this.handleError(h, t.frag);
|
|
41782
41782
|
}
|
|
41783
41783
|
}), o;
|
|
@@ -41786,7 +41786,7 @@ class Tn extends q2 {
|
|
|
41786
41786
|
if (!this.hls) throw new Error("invalid state");
|
|
41787
41787
|
}
|
|
41788
41788
|
handleError(t, e) {
|
|
41789
|
-
if (this.hls) if (t instanceof
|
|
41789
|
+
if (this.hls) if (t instanceof L2) {
|
|
41790
41790
|
e && (t.data.frag = e);
|
|
41791
41791
|
const n = t.data.decryptdata;
|
|
41792
41792
|
this.error(`${t.message}${n ? ` (${U1(n.keyId || [])})` : ""}`), this.hls.trigger(w.ERROR, t.data);
|
|
@@ -41801,7 +41801,7 @@ class Tn extends q2 {
|
|
|
41801
41801
|
return n;
|
|
41802
41802
|
}
|
|
41803
41803
|
getKeySystemSelectionPromise(t) {
|
|
41804
|
-
if (t.length || (t = c5(this.config)), t.length === 0) throw new
|
|
41804
|
+
if (t.length || (t = c5(this.config)), t.length === 0) throw new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_NO_CONFIGURED_LICENSE, fatal: true }, `Missing key-system license configuration options ${je({ drmSystems: this.config.drmSystems })}`);
|
|
41805
41805
|
return this.attemptKeySystemAccess(t);
|
|
41806
41806
|
}
|
|
41807
41807
|
attemptSetMediaKeys(t, e) {
|
|
@@ -41868,14 +41868,14 @@ class Tn extends q2 {
|
|
|
41868
41868
|
}, 1e3)), this.log(`No status for keyId ${l} (${je(c)}).`);
|
|
41869
41869
|
}
|
|
41870
41870
|
};
|
|
41871
|
-
|
|
41871
|
+
o2(t.mediaKeysSession, "message", T), o2(t.mediaKeysSession, "keystatuseschange", d);
|
|
41872
41872
|
const p = new Promise((g, y) => {
|
|
41873
41873
|
h.on("error", y), h.on("resolved", g);
|
|
41874
41874
|
});
|
|
41875
41875
|
return t.mediaKeysSession.generateRequest(e, n).then(() => {
|
|
41876
41876
|
this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${u}`);
|
|
41877
41877
|
}).catch((g) => {
|
|
41878
|
-
throw new
|
|
41878
|
+
throw new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_NO_SESSION, error: g, decryptdata: t.decryptdata, fatal: false }, `Error generating key-session request: ${g}`);
|
|
41879
41879
|
}).then(() => p).catch((g) => (h.removeAllListeners(), this.removeSession(t).then(() => {
|
|
41880
41880
|
throw g;
|
|
41881
41881
|
}))).then(() => (h.removeAllListeners(), t));
|
|
@@ -41902,9 +41902,9 @@ class Tn extends q2 {
|
|
|
41902
41902
|
const u = { responseType: "arraybuffer", url: a }, h = e.certLoadPolicy.default, T = { loadPolicy: h, timeout: h.maxLoadTimeMs, maxRetry: 0, retryDelay: 0, maxRetryDelay: 0 }, f = { onSuccess: (d, p, g, y) => {
|
|
41903
41903
|
o(d.data);
|
|
41904
41904
|
}, onError: (d, p, g, y) => {
|
|
41905
|
-
l(new
|
|
41905
|
+
l(new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED, fatal: true, networkDetails: g, response: we({ url: u.url, data: void 0 }, d) }, `"${t}" certificate request failed (${a}). Status: ${d.code} (${d.text})`));
|
|
41906
41906
|
}, onTimeout: (d, p, g) => {
|
|
41907
|
-
l(new
|
|
41907
|
+
l(new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED, fatal: true, networkDetails: g, response: { url: u.url, data: void 0 } }, `"${t}" certificate request timed out (${a})`));
|
|
41908
41908
|
}, onAbort: (d, p, g) => {
|
|
41909
41909
|
l(new Error("aborted"));
|
|
41910
41910
|
} };
|
|
@@ -41916,13 +41916,13 @@ class Tn extends q2 {
|
|
|
41916
41916
|
t.setServerCertificate(n).then((o) => {
|
|
41917
41917
|
this.log(`setServerCertificate ${o ? "success" : "not supported by CDM"} (${n.byteLength}) on "${e}"`), s(t);
|
|
41918
41918
|
}).catch((o) => {
|
|
41919
|
-
a(new
|
|
41919
|
+
a(new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED, error: o, fatal: true }, o.message));
|
|
41920
41920
|
});
|
|
41921
41921
|
});
|
|
41922
41922
|
}
|
|
41923
41923
|
renewLicense(t, e) {
|
|
41924
41924
|
return this.requestLicense(t, new Uint8Array(e)).then((n) => this.updateKeySession(t, new Uint8Array(n)).catch((s) => {
|
|
41925
|
-
throw new
|
|
41925
|
+
throw new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_SESSION_UPDATE_FAILED, decryptdata: t.decryptdata, error: s, fatal: false }, s.message);
|
|
41926
41926
|
}));
|
|
41927
41927
|
}
|
|
41928
41928
|
unpackPlayReadyKeyMessage(t, e) {
|
|
@@ -41973,7 +41973,7 @@ class Tn extends q2 {
|
|
|
41973
41973
|
s(u);
|
|
41974
41974
|
} else {
|
|
41975
41975
|
const u = n.errorRetry, h = u ? u.maxNumRetry : 0;
|
|
41976
|
-
if (this._requestLicenseFailureCount++, this._requestLicenseFailureCount > h || l.status >= 400 && l.status < 500) a(new
|
|
41976
|
+
if (this._requestLicenseFailureCount++, this._requestLicenseFailureCount > h || l.status >= 400 && l.status < 500) a(new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_LICENSE_REQUEST_FAILED, decryptdata: t.decryptdata, fatal: true, networkDetails: l, response: { url: o, data: void 0, code: l.status, text: l.statusText } }, `License Request XHR failed (${o}). Status: ${l.status} (${l.statusText})`));
|
|
41977
41977
|
else {
|
|
41978
41978
|
const T = h - this._requestLicenseFailureCount + 1;
|
|
41979
41979
|
this.warn(`Retrying license request, ${T} attempts left`), this.requestLicense(t, e).then(s, a);
|
|
@@ -41990,13 +41990,13 @@ class Tn extends q2 {
|
|
|
41990
41990
|
onMediaAttached(t, e) {
|
|
41991
41991
|
if (!this.config.emeEnabled) return;
|
|
41992
41992
|
const n = e.media;
|
|
41993
|
-
this.media = n,
|
|
41993
|
+
this.media = n, o2(n, "encrypted", this.onMediaEncrypted), o2(n, "waitingforkey", this.onWaitingForKey);
|
|
41994
41994
|
const s = this.mediaResolved;
|
|
41995
41995
|
s ? s() : this.mediaKeys = n.mediaKeys;
|
|
41996
41996
|
}
|
|
41997
41997
|
onMediaDetached() {
|
|
41998
41998
|
const t = this.media;
|
|
41999
|
-
t && (
|
|
41999
|
+
t && (p2(t, "encrypted", this.onMediaEncrypted), p2(t, "waitingforkey", this.onWaitingForKey), this.media = null, this.mediaKeys = null);
|
|
42000
42000
|
}
|
|
42001
42001
|
_clear() {
|
|
42002
42002
|
var t;
|
|
@@ -42053,14 +42053,14 @@ function VZ(r, t) {
|
|
|
42053
42053
|
if (r.keyId && t.mediaKeysSession.keyStatuses.has(r.keyId)) return t.mediaKeysSession.keyStatuses.get(r.keyId);
|
|
42054
42054
|
if (r.matches(t.decryptdata)) return t.keyStatus;
|
|
42055
42055
|
}
|
|
42056
|
-
class
|
|
42056
|
+
class L2 extends Error {
|
|
42057
42057
|
constructor(t, e) {
|
|
42058
42058
|
super(e), this.data = void 0, t.error || (t.error = new Error(e)), this.data = t, t.err = t.error;
|
|
42059
42059
|
}
|
|
42060
42060
|
}
|
|
42061
42061
|
function Py(r, t) {
|
|
42062
42062
|
const e = r === "output-restricted", n = e ? q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED : q.KEY_SYSTEM_STATUS_INTERNAL_ERROR;
|
|
42063
|
-
return new
|
|
42063
|
+
return new L2({ type: kt.KEY_SYSTEM_ERROR, details: n, fatal: false, decryptdata: t }, e ? "HDCP level output restricted" : `key status changed to "${r}"`);
|
|
42064
42064
|
}
|
|
42065
42065
|
class PZ {
|
|
42066
42066
|
constructor(t) {
|
|
@@ -43070,11 +43070,11 @@ Schedule: ${u.map((y) => X2(y))} pos: ${this.timelinePos}`), T.length && this.lo
|
|
|
43070
43070
|
t && this.removeMediaListeners(t);
|
|
43071
43071
|
}
|
|
43072
43072
|
removeMediaListeners(t) {
|
|
43073
|
-
|
|
43073
|
+
p2(t, "play", this.onPlay), p2(t, "pause", this.onPause), p2(t, "seeking", this.onSeeking), p2(t, "timeupdate", this.onTimeupdate);
|
|
43074
43074
|
}
|
|
43075
43075
|
onMediaAttaching(t, e) {
|
|
43076
43076
|
const n = this.media = e.media;
|
|
43077
|
-
|
|
43077
|
+
o2(n, "seeking", this.onSeeking), o2(n, "timeupdate", this.onTimeupdate), o2(n, "play", this.onPlay), o2(n, "pause", this.onPause);
|
|
43078
43078
|
}
|
|
43079
43079
|
onMediaAttached(t, e) {
|
|
43080
43080
|
const n = this.effectivePlayingItem, s = this.detachedData;
|
|
@@ -44039,7 +44039,7 @@ class ZZ extends Mf {
|
|
|
44039
44039
|
}
|
|
44040
44040
|
onSubtitleFragProcessed(t, e) {
|
|
44041
44041
|
const { frag: n, success: s } = e;
|
|
44042
|
-
if (this.fragContextChanged(n) || (
|
|
44042
|
+
if (this.fragContextChanged(n) || (h1(n) && (this.fragPrevious = n), this.state = it.IDLE), !s) return;
|
|
44043
44043
|
const a = this.tracksBuffered[this.currentTrackId];
|
|
44044
44044
|
if (!a) return;
|
|
44045
44045
|
let o;
|
|
@@ -44152,14 +44152,14 @@ class ZZ extends Mf {
|
|
|
44152
44152
|
} else g = f[d - 1];
|
|
44153
44153
|
if (g = this.filterReplacedPrimary(g, n.details), !g) return;
|
|
44154
44154
|
const c = g.sn - h.startSN, Q = f[c - 1];
|
|
44155
|
-
if (Q && Q.cc === g.cc && this.fragmentTracker.getState(Q) ===
|
|
44155
|
+
if (Q && Q.cc === g.cc && this.fragmentTracker.getState(Q) === L1.NOT_LOADED && (g = Q), this.fragmentTracker.getState(g) === L1.NOT_LOADED) {
|
|
44156
44156
|
const m = this.mapToInitFragWhenRequired(g);
|
|
44157
44157
|
m && this.loadFragment(m, n, l);
|
|
44158
44158
|
}
|
|
44159
44159
|
}
|
|
44160
44160
|
}
|
|
44161
44161
|
loadFragment(t, e, n) {
|
|
44162
|
-
|
|
44162
|
+
h1(t) ? super.loadFragment(t, e, n) : this._loadInitSegment(t, e);
|
|
44163
44163
|
}
|
|
44164
44164
|
get mediaBufferTimeRanges() {
|
|
44165
44165
|
return new KZ(this.tracksBuffered[this.currentTrackId] || []);
|
|
@@ -44942,7 +44942,7 @@ function QK(r, t, e, n, s, a, o) {
|
|
|
44942
44942
|
}
|
|
44943
44943
|
m = v - e.presentationOffset;
|
|
44944
44944
|
}
|
|
44945
|
-
const x = c.endTime - c.startTime, L =
|
|
44945
|
+
const x = c.endTime - c.startTime, L = _2((c.startTime + m - p) * 9e4, s * 9e4) / 9e4;
|
|
44946
44946
|
c.startTime = Math.max(L, 0), c.endTime = Math.max(L + x, 0);
|
|
44947
44947
|
const _ = c.text.trim();
|
|
44948
44948
|
c.text = decodeURIComponent(encodeURIComponent(_)), c.id || (c.id = Uf(c.startTime, c.endTime, _)), c.endTime > 0 && h.push(c);
|
|
@@ -45617,12 +45617,12 @@ class FK extends V_ {
|
|
|
45617
45617
|
onMediaAttached(t, e) {
|
|
45618
45618
|
this.setInterval(BK), this.mediaSource = e.mediaSource;
|
|
45619
45619
|
const n = this.media = e.media;
|
|
45620
|
-
|
|
45620
|
+
o2(n, "playing", this.onMediaPlaying), o2(n, "waiting", this.onMediaWaiting), o2(n, "ended", this.onMediaEnded);
|
|
45621
45621
|
}
|
|
45622
45622
|
onMediaDetaching(t, e) {
|
|
45623
45623
|
this.clearInterval();
|
|
45624
45624
|
const { media: n } = this;
|
|
45625
|
-
n && (
|
|
45625
|
+
n && (p2(n, "playing", this.onMediaPlaying), p2(n, "waiting", this.onMediaWaiting), p2(n, "ended", this.onMediaEnded), this.media = null), this.mediaSource = void 0;
|
|
45626
45626
|
}
|
|
45627
45627
|
onBufferAppended(t, e) {
|
|
45628
45628
|
this.buffered = e.timeRanges;
|
|
@@ -45895,7 +45895,7 @@ class UK {
|
|
|
45895
45895
|
const o = Hh();
|
|
45896
45896
|
if (o) for (let l = 0; l < a.length; l++) {
|
|
45897
45897
|
const u = a[l].type;
|
|
45898
|
-
if (u ===
|
|
45898
|
+
if (u === E2.emsg && !n || !s) continue;
|
|
45899
45899
|
const h = nS(a[l].data), T = a[l].pts;
|
|
45900
45900
|
let f = T + a[l].duration;
|
|
45901
45901
|
f > la && (f = la), f - T <= 0 && (f = T + NK);
|
|
@@ -45923,7 +45923,7 @@ class UK {
|
|
|
45923
45923
|
const { config: { enableEmsgMetadataCues: l, enableID3MetadataCues: u } } = o;
|
|
45924
45924
|
if (a && (l || u)) {
|
|
45925
45925
|
let h;
|
|
45926
|
-
s === "audio" ? h = (T) => T.type ===
|
|
45926
|
+
s === "audio" ? h = (T) => T.type === E2.audioId3 && u : s === "video" ? h = (T) => T.type === E2.emsg && l : h = (T) => T.type === E2.audioId3 && u || T.type === E2.emsg && l, Sh(a, e, n, h);
|
|
45927
45927
|
}
|
|
45928
45928
|
}
|
|
45929
45929
|
onLevelUpdated(t, { details: e }) {
|
|
@@ -45992,7 +45992,7 @@ class UK {
|
|
|
45992
45992
|
else if (l) {
|
|
45993
45993
|
let P = Q.attr[D];
|
|
45994
45994
|
cW(D) && (P = d_(P));
|
|
45995
|
-
const F = Du(l, m, _, { key: D, data: P },
|
|
45995
|
+
const F = Du(l, m, _, { key: D, data: P }, E2.dateRange);
|
|
45996
45996
|
F && (F.id = c, this.id3Track.addCue(F), x[D] = F, o && (D === "X-ASSET-LIST" || D === "X-ASSET-URL") && F.addEventListener("enter", this.onEventCueEnter));
|
|
45997
45997
|
}
|
|
45998
45998
|
}
|
|
@@ -46465,7 +46465,7 @@ class ZK extends Mf {
|
|
|
46465
46465
|
this.backtrackFragment && this.backtrackFragment.start > l.end && (this.backtrackFragment = null);
|
|
46466
46466
|
const d = this.backtrackFragment ? this.backtrackFragment.start : l.end;
|
|
46467
46467
|
let p = this.getNextFragment(d, h);
|
|
46468
|
-
if (this.couldBacktrack && !this.fragPrevious && p &&
|
|
46468
|
+
if (this.couldBacktrack && !this.fragPrevious && p && h1(p) && this.fragmentTracker.getState(p) !== L1.OK) {
|
|
46469
46469
|
var g;
|
|
46470
46470
|
const c = ((g = this.backtrackFragment) != null ? g : p).sn - h.startSN, Q = h.fragments[c - 1];
|
|
46471
46471
|
Q && p.cc === Q.cc && (p = Q, this.fragmentTracker.removeFragment(Q));
|
|
@@ -46481,7 +46481,7 @@ class ZK extends Mf {
|
|
|
46481
46481
|
}
|
|
46482
46482
|
loadFragment(t, e, n) {
|
|
46483
46483
|
const s = this.fragmentTracker.getState(t);
|
|
46484
|
-
s ===
|
|
46484
|
+
s === L1.NOT_LOADED || s === L1.PARTIAL ? h1(t) ? this.bitrateTest ? (this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`), this._loadBitrateTestFrag(t, e)) : super.loadFragment(t, e, n) : this._loadInitSegment(t, e) : this.clearTrackerIfNeeded(t);
|
|
46485
46485
|
}
|
|
46486
46486
|
getBufferedFrag(t) {
|
|
46487
46487
|
return this.fragmentTracker.getBufferedFrag(t, Mt.MAIN);
|
|
@@ -46537,11 +46537,11 @@ class ZK extends Mf {
|
|
|
46537
46537
|
onMediaAttached(t, e) {
|
|
46538
46538
|
super.onMediaAttached(t, e);
|
|
46539
46539
|
const n = e.media;
|
|
46540
|
-
|
|
46540
|
+
o2(n, "playing", this.onMediaPlaying), o2(n, "seeked", this.onMediaSeeked);
|
|
46541
46541
|
}
|
|
46542
46542
|
onMediaDetaching(t, e) {
|
|
46543
46543
|
const { media: n } = this;
|
|
46544
|
-
n && (
|
|
46544
|
+
n && (p2(n, "playing", this.onMediaPlaying), p2(n, "seeked", this.onMediaSeeked)), this.videoBuffer = null, this.fragPlaying = null, super.onMediaDetaching(t, e), !e.transferMedia && (this._hasEnoughToStart = false);
|
|
46545
46545
|
}
|
|
46546
46546
|
onManifestLoading() {
|
|
46547
46547
|
super.onManifestLoading(), this.log("Trigger BUFFER_RESET"), this.hls.trigger(w.BUFFER_RESET, void 0), this.couldBacktrack = false, this.fragLastKbps = 0, this.fragPlaying = this.backtrackFragment = null, this.altAudio = 0, this.audioOnly = false;
|
|
@@ -46672,7 +46672,7 @@ class ZK extends Mf {
|
|
|
46672
46672
|
return;
|
|
46673
46673
|
}
|
|
46674
46674
|
const l = s ? s.stats : n.stats;
|
|
46675
|
-
this.fragLastKbps = Math.round(8 * l.total / (l.buffering.end - l.loading.first)),
|
|
46675
|
+
this.fragLastKbps = Math.round(8 * l.total / (l.buffering.end - l.loading.first)), h1(n) && (this.fragPrevious = n), this.fragBufferedComplete(n, s);
|
|
46676
46676
|
}
|
|
46677
46677
|
const o = this.media;
|
|
46678
46678
|
o && (!this._hasEnoughToStart && ee.getBuffered(o).length && (this._hasEnoughToStart = true, this.seekToStartPos()), a && this.tick());
|
|
@@ -46820,7 +46820,7 @@ class ZK extends Mf {
|
|
|
46820
46820
|
}
|
|
46821
46821
|
}
|
|
46822
46822
|
logMuxedErr(t) {
|
|
46823
|
-
this.warn(`${
|
|
46823
|
+
this.warn(`${h1(t) ? "Media" : "Init"} segment with muxed audiovideo where only video expected: ${t.url}`);
|
|
46824
46824
|
}
|
|
46825
46825
|
_bufferInitSegment(t, e, n, s) {
|
|
46826
46826
|
if (this.state !== it.PARSING) return;
|
|
@@ -46961,7 +46961,7 @@ class KK extends q2 {
|
|
|
46961
46961
|
if (this.emeController && this.config.emeEnabled && !this.emeController.getSelectedKeySystemFormats().length) {
|
|
46962
46962
|
if (e.length) for (let s = 0, a = e.length; s < a; s++) {
|
|
46963
46963
|
const o = e[s];
|
|
46964
|
-
if (t.cc <= o.cc && (!
|
|
46964
|
+
if (t.cc <= o.cc && (!h1(t) || !h1(o) || t.sn < o.sn) || !n && s == a - 1) return this.emeController.selectKeySystemFormat(o).then((l) => {
|
|
46965
46965
|
if (!this.emeController) return;
|
|
46966
46966
|
o.setKeyFormat(l);
|
|
46967
46967
|
const u = va(l);
|
|
@@ -47023,7 +47023,7 @@ class KK extends q2 {
|
|
|
47023
47023
|
l.some((u) => u !== 0) ? (this.log(`Using keyId found in init segment ${U1(l)}`), or.setKeyIdForUri(t.decryptdata.uri, l)) : (l = or.addKeyIdForUri(t.decryptdata.uri), this.log(`Generating keyId to patch media ${U1(l)}`)), t.decryptdata.keyId = l;
|
|
47024
47024
|
}
|
|
47025
47025
|
}
|
|
47026
|
-
if (!t.decryptdata.keyId && !
|
|
47026
|
+
if (!t.decryptdata.keyId && !h1(e)) return Promise.resolve(n);
|
|
47027
47027
|
const a = this.emeController.loadKey(n);
|
|
47028
47028
|
return (t.keyLoadPromise = a.then((o) => (t.mediaKeySessionContext = o, n))).catch((o) => {
|
|
47029
47029
|
throw t.keyLoadPromise = null, "data" in o && (o.data.frag = e), o;
|
|
@@ -47291,7 +47291,7 @@ class O3 {
|
|
|
47291
47291
|
return w;
|
|
47292
47292
|
}
|
|
47293
47293
|
static get MetadataSchema() {
|
|
47294
|
-
return
|
|
47294
|
+
return E2;
|
|
47295
47295
|
}
|
|
47296
47296
|
static get ErrorTypes() {
|
|
47297
47297
|
return kt;
|
|
@@ -50313,7 +50313,7 @@ var iv = { invert: { name: "invert" }, sepia: { name: "sepia" }, grayscale: { na
|
|
|
50313
50313
|
return this.props.default;
|
|
50314
50314
|
}
|
|
50315
50315
|
constructor(r) {
|
|
50316
|
-
this.props = { name: "invert", default: 0, unit: "%", scale: 100, transform: false, ...r, value: r.value ?? r.default ?? 0 }, this.value =
|
|
50316
|
+
this.props = { name: "invert", default: 0, unit: "%", scale: 100, transform: false, ...r, value: r.value ?? r.default ?? 0 }, this.value = C2(this.props.value, Nt, this);
|
|
50317
50317
|
}
|
|
50318
50318
|
isActive() {
|
|
50319
50319
|
return this.value() !== this.props.default;
|
|
@@ -50557,7 +50557,7 @@ function b1(r, t) {
|
|
|
50557
50557
|
function V1(r, t) {
|
|
50558
50558
|
r.lineTo(t.x, t.y);
|
|
50559
50559
|
}
|
|
50560
|
-
function
|
|
50560
|
+
function M2(r, t) {
|
|
50561
50561
|
if (!(t.length < 2)) {
|
|
50562
50562
|
b1(r, t[0]);
|
|
50563
50563
|
for (const e of t.slice(1)) V1(r, e);
|
|
@@ -50714,7 +50714,7 @@ function nv(r, t) {
|
|
|
50714
50714
|
}
|
|
50715
50715
|
var Oh = class extends cr {
|
|
50716
50716
|
constructor(r, t, e) {
|
|
50717
|
-
super(r, t4, t), this.highlighter = e, this.progress =
|
|
50717
|
+
super(r, t4, t), this.highlighter = e, this.progress = C2(0), Object.defineProperty(this.invokable, "edit", { value: this.edit.bind(this) }), Object.defineProperty(this.invokable, "append", { value: this.append.bind(this) }), Object.defineProperty(this.invokable, "prepend", { value: this.prepend.bind(this) }), Object.defineProperty(this.invokable, "insert", { value: this.insert.bind(this) }), Object.defineProperty(this.invokable, "remove", { value: this.remove.bind(this) }), Object.defineProperty(this.invokable, "replace", { value: this.replace.bind(this) });
|
|
50718
50718
|
}
|
|
50719
50719
|
*tweener(r, t, e) {
|
|
50720
50720
|
let n = QX;
|
|
@@ -50758,7 +50758,7 @@ var Oh = class extends cr {
|
|
|
50758
50758
|
}
|
|
50759
50759
|
*replaceTween(r, t, e) {
|
|
50760
50760
|
let n = this.get();
|
|
50761
|
-
const [s, a] = nv(r, n.fragments), o =
|
|
50761
|
+
const [s, a] = nv(r, n.fragments), o = C2(0), l = { progress: o, fragments: [$K(s[a], t)] };
|
|
50762
50762
|
s[a] = l, this.set({ progress: n.progress, fragments: s }), yield* o(1, e), n = this.get(), this.set({ progress: n.progress, fragments: n.fragments.map((u) => u === l ? t : u) }), o.context.dispose();
|
|
50763
50763
|
}
|
|
50764
50764
|
*editTween(r, t) {
|
|
@@ -50768,12 +50768,12 @@ var Oh = class extends cr {
|
|
|
50768
50768
|
}
|
|
50769
50769
|
*appendTween(r, t) {
|
|
50770
50770
|
let e = this.get();
|
|
50771
|
-
const n =
|
|
50771
|
+
const n = C2(0), s = { progress: n, fragments: [tv(r)] };
|
|
50772
50772
|
this.set({ progress: e.progress, fragments: [...e.fragments, s] }), yield* n(1, t), e = this.get(), this.set({ progress: e.progress, fragments: e.fragments.map((a) => a === s ? r : a) }), n.context.dispose();
|
|
50773
50773
|
}
|
|
50774
50774
|
*prependTween(r, t) {
|
|
50775
50775
|
let e = this.get();
|
|
50776
|
-
const n =
|
|
50776
|
+
const n = C2(0), s = { progress: n, fragments: [tv(r)] };
|
|
50777
50777
|
this.set({ progress: e.progress, fragments: [s, ...e.fragments] }), yield* n(1, t), e = this.get(), this.set({ progress: e.progress, fragments: e.fragments.map((a) => a === s ? r : a) }), n.context.dispose();
|
|
50778
50778
|
}
|
|
50779
50779
|
parse(r) {
|
|
@@ -50994,7 +50994,7 @@ var pl = class {
|
|
|
50994
50994
|
return { position: t.position, tangent: t.tangent, normal: t.tangent.perpendicular };
|
|
50995
50995
|
}
|
|
50996
50996
|
transformPoints(r) {
|
|
50997
|
-
return this.points.map((t) =>
|
|
50997
|
+
return this.points.map((t) => m1(t, r));
|
|
50998
50998
|
}
|
|
50999
50999
|
tangent(r) {
|
|
51000
51000
|
return this.curve.evalDerivative(r).normalized;
|
|
@@ -51030,7 +51030,7 @@ var pl = class {
|
|
|
51030
51030
|
}
|
|
51031
51031
|
};
|
|
51032
51032
|
k([Gn(() => document.createElementNS("http://www.w3.org/2000/svg", "path"))], iE, "el", 2);
|
|
51033
|
-
var _i = iE,
|
|
51033
|
+
var _i = iE, l2 = class extends pl {
|
|
51034
51034
|
constructor(r, t) {
|
|
51035
51035
|
super(), this.from = r, this.to = t, this.vector = t.sub(r), this.length = this.vector.magnitude, this.normal = this.vector.perpendicular.normalized.safe, this.points = [r, t];
|
|
51036
51036
|
}
|
|
@@ -51048,7 +51048,7 @@ var _i = iE, o2 = class extends pl {
|
|
|
51048
51048
|
function mX(r, t, e, n) {
|
|
51049
51049
|
const s = { arcLength: 0, segments: [], minSin: 1 }, a = er(t.top, t.right, t.left, r), o = er(t.right, t.top, t.bottom, r), l = er(t.bottom, t.left, t.right, r), u = er(t.left, t.bottom, t.top, r);
|
|
51050
51050
|
let h = new Z(r.left + a, r.top), T = new Z(r.right - o, r.top);
|
|
51051
|
-
return en(s, new
|
|
51051
|
+
return en(s, new l2(h, T)), h = new Z(r.right, r.top + o), T = new Z(r.right, r.bottom - l), o > 0 && ua(s, h.addX(-o), o, Z.down, Z.right, e, n), en(s, new l2(h, T)), h = new Z(r.right - l, r.bottom), T = new Z(r.left + u, r.bottom), l > 0 && ua(s, h.addY(-l), l, Z.right, Z.up, e, n), en(s, new l2(h, T)), h = new Z(r.left, r.bottom - u), T = new Z(r.left, r.top + a), u > 0 && ua(s, h.addX(u), u, Z.up, Z.left, e, n), en(s, new l2(h, T)), h = new Z(r.left + a, r.top), a > 0 && ua(s, h.addY(a), a, Z.left, Z.down, e, n), s;
|
|
51052
51052
|
}
|
|
51053
51053
|
function en(r, t) {
|
|
51054
51054
|
r.segments.push(t), r.arcLength += t.arcLength;
|
|
@@ -51083,7 +51083,7 @@ function Aa() {
|
|
|
51083
51083
|
}
|
|
51084
51084
|
var Xt = class {
|
|
51085
51085
|
constructor({ children: r, spawner: t, key: e, ...n }) {
|
|
51086
|
-
this.compositeOverride =
|
|
51086
|
+
this.compositeOverride = C2(0), this.stateStack = [], this.realChildren = [], this.hasSpawnedChildren = false, this.parent = C2(null), this.properties = qS(this);
|
|
51087
51087
|
const s = Aa();
|
|
51088
51088
|
[this.key, this.unregister] = s.registerNode(this, e), this.view2D = s.getView(), this.creationStack = new Error().stack, jf(this, n), t && Te().warn({ message: "Node.spawner() has been deprecated.", remarks: "Use <code>Node.children()</code> instead.", inspect: this.key, stack: new Error().stack }), this.children(t ?? r);
|
|
51089
51089
|
}
|
|
@@ -51098,7 +51098,7 @@ var Xt = class {
|
|
|
51098
51098
|
return new Z(r.m41, r.m42);
|
|
51099
51099
|
}
|
|
51100
51100
|
setAbsolutePosition(r) {
|
|
51101
|
-
this.position(nn(r, (t) =>
|
|
51101
|
+
this.position(nn(r, (t) => m1(new Z(t), this.worldToParent())));
|
|
51102
51102
|
}
|
|
51103
51103
|
getAbsoluteRotation() {
|
|
51104
51104
|
const r = this.localToWorld();
|
|
@@ -51401,7 +51401,7 @@ var Xt = class {
|
|
|
51401
51401
|
const n = r.corners;
|
|
51402
51402
|
for (const a of t) {
|
|
51403
51403
|
const o = a.fullCacheBBox(), l = a.localToParent();
|
|
51404
|
-
n.push(...o.corners.map((u) =>
|
|
51404
|
+
n.push(...o.corners.map((u) => m1(u, l)));
|
|
51405
51405
|
}
|
|
51406
51406
|
return he.fromPoints(...n).addSpacing(e);
|
|
51407
51407
|
}
|
|
@@ -51470,7 +51470,7 @@ var Xt = class {
|
|
|
51470
51470
|
}
|
|
51471
51471
|
drawOverlay(r, t) {
|
|
51472
51472
|
const e = this.cacheBBox().transformCorners(t), n = this.getCacheBBox().transformCorners(t);
|
|
51473
|
-
r.strokeStyle = "white", r.lineWidth = 1, r.beginPath(),
|
|
51473
|
+
r.strokeStyle = "white", r.lineWidth = 1, r.beginPath(), M2(r, e), r.closePath(), r.stroke(), r.strokeStyle = "blue", r.beginPath(), M2(r, n), r.closePath(), r.stroke();
|
|
51474
51474
|
}
|
|
51475
51475
|
transformContext(r) {
|
|
51476
51476
|
const t = this.localToParent();
|
|
@@ -51478,7 +51478,7 @@ var Xt = class {
|
|
|
51478
51478
|
}
|
|
51479
51479
|
hit(r) {
|
|
51480
51480
|
let t = null;
|
|
51481
|
-
const e =
|
|
51481
|
+
const e = m1(r, this.localToParent().inverse()), n = this.children();
|
|
51482
51482
|
for (let s = n.length - 1; s >= 0 && (t = n[s].hit(e), !t); s--) ;
|
|
51483
51483
|
return t;
|
|
51484
51484
|
}
|
|
@@ -51729,8 +51729,8 @@ var At = class extends Xt {
|
|
|
51729
51729
|
await this.drawChildren(r);
|
|
51730
51730
|
}
|
|
51731
51731
|
drawOverlay(r, t) {
|
|
51732
|
-
const e = this.computedSize(), n = e.mul(this.offset()).scale(0.5), s =
|
|
51733
|
-
r.beginPath(),
|
|
51732
|
+
const e = this.computedSize(), n = e.mul(this.offset()).scale(0.5), s = m1(n, t), a = he.fromSizeCentered(e), o = a.transformCorners(t), l = a.addSpacing(this.padding().scale(-1)).transformCorners(t), u = a.addSpacing(this.margin()).transformCorners(t);
|
|
51733
|
+
r.beginPath(), M2(r, u), M2(r, o), r.closePath(), r.fillStyle = "rgba(255,193,125,0.6)", r.fill("evenodd"), r.beginPath(), M2(r, o), M2(r, l), r.closePath(), r.fillStyle = "rgba(180,255,147,0.6)", r.fill("evenodd"), r.beginPath(), M2(r, o), r.closePath(), r.lineWidth = 1, r.strokeStyle = "white", r.stroke(), r.beginPath(), n6(r, s), r.stroke();
|
|
51734
51734
|
}
|
|
51735
51735
|
getOriginDelta(r) {
|
|
51736
51736
|
const t = this.computedSize().scale(0.5), e = this.offset().mul(t);
|
|
@@ -51783,7 +51783,7 @@ var At = class extends Xt {
|
|
|
51783
51783
|
super.dispose(), (r = this.sizeLockCounter) == null || r.context.dispose(), this.element && (this.element.remove(), this.element.innerHTML = ""), this.element = null, this.styles = null;
|
|
51784
51784
|
}
|
|
51785
51785
|
hit(r) {
|
|
51786
|
-
const t =
|
|
51786
|
+
const t = m1(r, this.localToParent().inverse());
|
|
51787
51787
|
return this.cacheBBox().includes(t) ? super.hit(r) ?? this : null;
|
|
51788
51788
|
}
|
|
51789
51789
|
};
|
|
@@ -51852,7 +51852,7 @@ function Di(r) {
|
|
|
51852
51852
|
const n = x4(t, e);
|
|
51853
51853
|
n.parser = (s) => new Z(s), n.getter = function() {
|
|
51854
51854
|
const s = this.computedSize().getOriginOffset(r);
|
|
51855
|
-
return
|
|
51855
|
+
return m1(s, this.localToParent());
|
|
51856
51856
|
}, n.setter = function(s) {
|
|
51857
51857
|
return this.position(nn(s, (a) => {
|
|
51858
51858
|
const o = this.getOriginDelta(r);
|
|
@@ -51866,7 +51866,7 @@ r6(At.prototype, (r) => {
|
|
|
51866
51866
|
});
|
|
51867
51867
|
var a1 = class extends At {
|
|
51868
51868
|
constructor(r) {
|
|
51869
|
-
super(r), this.rippleStrength =
|
|
51869
|
+
super(r), this.rippleStrength = C2(0);
|
|
51870
51870
|
}
|
|
51871
51871
|
rippleSize() {
|
|
51872
51872
|
return cx(this.rippleStrength(), 0, 50);
|
|
@@ -51917,7 +51917,7 @@ k([vt()], a1.prototype, "rippleSize", 1);
|
|
|
51917
51917
|
k([vt()], a1.prototype, "getPath", 1);
|
|
51918
51918
|
k([e1()], a1.prototype, "ripple", 1);
|
|
51919
51919
|
a1 = k([R1("Shape")], a1);
|
|
51920
|
-
var
|
|
51920
|
+
var y1 = class extends a1 {
|
|
51921
51921
|
constructor(r) {
|
|
51922
51922
|
super(r), this.canHaveSubpath = false;
|
|
51923
51923
|
}
|
|
@@ -52001,18 +52001,18 @@ var g1 = class extends a1 {
|
|
|
52001
52001
|
b1(r, a), V1(r, a.add(e.add(s).scale(n))), V1(r, a.add(e.sub(s).scale(n))), V1(r, a), r.closePath();
|
|
52002
52002
|
}
|
|
52003
52003
|
};
|
|
52004
|
-
k([dt(false), ot()],
|
|
52005
|
-
k([dt(0), ot()],
|
|
52006
|
-
k([dt(0), ot()],
|
|
52007
|
-
k([dt(false), ot()],
|
|
52008
|
-
k([dt(1), ot()],
|
|
52009
|
-
k([dt(0), ot()],
|
|
52010
|
-
k([dt(false), ot()],
|
|
52011
|
-
k([dt(24), ot()],
|
|
52012
|
-
k([vt()],
|
|
52013
|
-
k([vt()],
|
|
52014
|
-
|
|
52015
|
-
var
|
|
52004
|
+
k([dt(false), ot()], y1.prototype, "closed", 2);
|
|
52005
|
+
k([dt(0), ot()], y1.prototype, "start", 2);
|
|
52006
|
+
k([dt(0), ot()], y1.prototype, "startOffset", 2);
|
|
52007
|
+
k([dt(false), ot()], y1.prototype, "startArrow", 2);
|
|
52008
|
+
k([dt(1), ot()], y1.prototype, "end", 2);
|
|
52009
|
+
k([dt(0), ot()], y1.prototype, "endOffset", 2);
|
|
52010
|
+
k([dt(false), ot()], y1.prototype, "endArrow", 2);
|
|
52011
|
+
k([dt(24), ot()], y1.prototype, "arrowSize", 2);
|
|
52012
|
+
k([vt()], y1.prototype, "arcLength", 1);
|
|
52013
|
+
k([vt()], y1.prototype, "curveDrawingInfo", 1);
|
|
52014
|
+
y1 = k([R1("Curve")], y1);
|
|
52015
|
+
var Q1 = class extends y1 {
|
|
52016
52016
|
constructor(r) {
|
|
52017
52017
|
super(r);
|
|
52018
52018
|
}
|
|
@@ -52041,18 +52041,21 @@ var f1 = class extends g1 {
|
|
|
52041
52041
|
return rv(r, a, e, n, s), r;
|
|
52042
52042
|
}
|
|
52043
52043
|
};
|
|
52044
|
-
k([ml("radius")],
|
|
52045
|
-
k([dt(false), ot()],
|
|
52046
|
-
k([dt(0.6), ot()],
|
|
52047
|
-
k([vt()],
|
|
52048
|
-
|
|
52049
|
-
var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to use a concrete value and not a function:\n\n```ts wrong\nvideo.playbackRate(() => 7);\n```\n\n```ts correct\nvideo.playbackRate(7);\n```\n\nIf you're using a signal, extract its value before passing it to the property:\n\n```ts wrong\nvideo.playbackRate(mySignal);\n```\n\n```ts correct\nvideo.playbackRate(mySignal());\n```\n",
|
|
52044
|
+
k([ml("radius")], Q1.prototype, "radius", 2);
|
|
52045
|
+
k([dt(false), ot()], Q1.prototype, "smoothCorners", 2);
|
|
52046
|
+
k([dt(0.6), ot()], Q1.prototype, "cornerSharpness", 2);
|
|
52047
|
+
k([vt()], Q1.prototype, "profile", 1);
|
|
52048
|
+
Q1 = k([R1("Rect")], Q1);
|
|
52049
|
+
var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to use a concrete value and not a function:\n\n```ts wrong\nvideo.playbackRate(() => 7);\n```\n\n```ts correct\nvideo.playbackRate(7);\n```\n\nIf you're using a signal, extract its value before passing it to the property:\n\n```ts wrong\nvideo.playbackRate(mySignal);\n```\n\n```ts correct\nvideo.playbackRate(mySignal());\n```\n", T1 = class extends Q1 {
|
|
52050
52050
|
constructor(r) {
|
|
52051
|
-
super(r), this.lastTime = -1, this.isSchedulingPlay = false, this.trimStart = 0, this.awaitCanPlay() || setTimeout(() => this.scheduleSeek(this.time()), 0), r.play && this.play(), this.volume = r.volume ?? 1, this.clipStart = r.clipStart, this.trimStart = r.trimStart ?? 0, this.awaitCanPlay() || this.setVolume(this.volume);
|
|
52051
|
+
super(r), this.lastTime = -1, this.isSchedulingPlay = false, this.trimStart = 0, this.awaitCanPlay() || setTimeout(() => this.scheduleSeek(this.time()), 0), r.play && this.play(), this.volume = r.volume ?? 1, this.clipStart = r.clipStart, this.clipEnd = r.clipEnd, this.trimStart = r.trimStart ?? 0, this.awaitCanPlay() || this.setVolume(this.volume);
|
|
52052
52052
|
}
|
|
52053
52053
|
isPlaying() {
|
|
52054
52054
|
return this.playing();
|
|
52055
52055
|
}
|
|
52056
|
+
isActiveAtGlobalTime(r) {
|
|
52057
|
+
return this.clipStart === void 0 ? true : r < this.clipStart ? false : this.clipEnd === void 0 ? true : r < this.clipEnd;
|
|
52058
|
+
}
|
|
52056
52059
|
getCurrentTime() {
|
|
52057
52060
|
return this.clampTime(this.time());
|
|
52058
52061
|
}
|
|
@@ -52075,12 +52078,24 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52075
52078
|
}
|
|
52076
52079
|
}
|
|
52077
52080
|
dispose() {
|
|
52078
|
-
this.playing(false)
|
|
52081
|
+
this.playing(false);
|
|
52082
|
+
try {
|
|
52083
|
+
this.mediaElement().pause();
|
|
52084
|
+
} catch {
|
|
52085
|
+
}
|
|
52086
|
+
this.time.save(), this.remove(), super.dispose();
|
|
52079
52087
|
}
|
|
52080
52088
|
completion() {
|
|
52081
52089
|
return this.clampTime(this.time()) / this.getDuration();
|
|
52082
52090
|
}
|
|
52083
52091
|
syncToCurrentTime(r, t) {
|
|
52092
|
+
if (r !== void 0 && !this.isActiveAtGlobalTime(r)) {
|
|
52093
|
+
this.playing(false);
|
|
52094
|
+
try {
|
|
52095
|
+
this.mediaElement().pause();
|
|
52096
|
+
} catch {
|
|
52097
|
+
}
|
|
52098
|
+
}
|
|
52084
52099
|
let e;
|
|
52085
52100
|
r !== void 0 && this.clipStart !== void 0 ? e = this.trimStart + (r - this.clipStart) * this.playbackRate() : e = r ?? this.time();
|
|
52086
52101
|
const n = this.setCurrentTime(e, { skipCollectPromise: (t == null ? void 0 : t.waitForSeek) ?? true });
|
|
@@ -52126,14 +52141,14 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52126
52141
|
}
|
|
52127
52142
|
amplify(r, t) {
|
|
52128
52143
|
const e = `${this.src()}/${this.key}`;
|
|
52129
|
-
if (
|
|
52130
|
-
|
|
52144
|
+
if (T1.amplificationPool[e]) {
|
|
52145
|
+
T1.amplificationPool[e].gainNode.gain.value = t;
|
|
52131
52146
|
return;
|
|
52132
52147
|
}
|
|
52133
52148
|
const n = new AudioContext(), s = n.createMediaElementSource(r), a = n.createGain();
|
|
52134
|
-
if (a.gain.value = t, s.connect(a), a.connect(n.destination),
|
|
52149
|
+
if (a.gain.value = t, s.connect(a), a.connect(n.destination), T1.amplificationPool[e] = { audioContext: n, sourceNode: s, gainNode: a }, typeof window > "u" || n.state !== "suspended") return;
|
|
52135
52150
|
const o = () => {
|
|
52136
|
-
|
|
52151
|
+
T1.amplificationPool[e].audioContext.resume(), window.removeEventListener("click", o);
|
|
52137
52152
|
};
|
|
52138
52153
|
window.addEventListener("click", o);
|
|
52139
52154
|
}
|
|
@@ -52235,7 +52250,13 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52235
52250
|
this.time(() => this.clampTime(n + (t() - e) * this.playbackRate()));
|
|
52236
52251
|
}
|
|
52237
52252
|
pause() {
|
|
52238
|
-
this.playing(false), this.time.save()
|
|
52253
|
+
this.playing(false), this.time.save();
|
|
52254
|
+
try {
|
|
52255
|
+
this.mediaElement().pause();
|
|
52256
|
+
return;
|
|
52257
|
+
} catch {
|
|
52258
|
+
}
|
|
52259
|
+
setTimeout(() => {
|
|
52239
52260
|
try {
|
|
52240
52261
|
this.mediaElement().pause();
|
|
52241
52262
|
} catch {
|
|
@@ -52250,8 +52271,8 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52250
52271
|
super.collectAsyncResources(), this.seekedMedia(), this.setVolume(this.volume);
|
|
52251
52272
|
}
|
|
52252
52273
|
autoPlayBasedOnTwick() {
|
|
52253
|
-
const r = this.view().playbackState(), t = r === Y1.Playing || r === Y1.Presenting || r === Y1.Rendering;
|
|
52254
|
-
|
|
52274
|
+
const r = this.view().playbackState(), t = r === Y1.Playing || r === Y1.Presenting || r === Y1.Rendering, e = this.view().globalTime(), n = t && this.isActiveAtGlobalTime(e);
|
|
52275
|
+
n && !this.playing() ? (r === Y1.Rendering && this.playing(true), this.play()) : !n && this.playing() && this.pause();
|
|
52255
52276
|
}
|
|
52256
52277
|
getErrorReason(r) {
|
|
52257
52278
|
let t;
|
|
@@ -52277,21 +52298,39 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52277
52298
|
return typeof navigator > "u" ? false : /iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
52278
52299
|
}
|
|
52279
52300
|
};
|
|
52280
|
-
|
|
52281
|
-
k([dt(""), ot()],
|
|
52282
|
-
k([dt(false), ot()],
|
|
52283
|
-
k([dt(1), ot()],
|
|
52284
|
-
k([dt(0), ot()],
|
|
52285
|
-
k([dt(false), ot()],
|
|
52286
|
-
k([dt(true), ot()],
|
|
52287
|
-
k([dt(false), ot()],
|
|
52288
|
-
k([vt()],
|
|
52289
|
-
k([vt()],
|
|
52290
|
-
|
|
52291
|
-
var
|
|
52301
|
+
T1.amplificationPool = {};
|
|
52302
|
+
k([dt(""), ot()], T1.prototype, "src", 2);
|
|
52303
|
+
k([dt(false), ot()], T1.prototype, "loop", 2);
|
|
52304
|
+
k([dt(1), ot()], T1.prototype, "playbackRate", 2);
|
|
52305
|
+
k([dt(0), ot()], T1.prototype, "time", 2);
|
|
52306
|
+
k([dt(false), ot()], T1.prototype, "playing", 2);
|
|
52307
|
+
k([dt(true), ot()], T1.prototype, "awaitCanPlay", 2);
|
|
52308
|
+
k([dt(false), ot()], T1.prototype, "allowVolumeAmplificationInPreview", 2);
|
|
52309
|
+
k([vt()], T1.prototype, "completion", 1);
|
|
52310
|
+
k([vt()], T1.prototype, "amplify", 1);
|
|
52311
|
+
T1 = k([R1("Media")], T1);
|
|
52312
|
+
var a2 = class extends T1 {
|
|
52292
52313
|
constructor(r) {
|
|
52293
52314
|
super(r);
|
|
52294
52315
|
}
|
|
52316
|
+
dispose() {
|
|
52317
|
+
try {
|
|
52318
|
+
const r = this.src(), t = /* @__PURE__ */ new Set([`${this.key}/${r || "pending"}`, `${this.key}/pending`]);
|
|
52319
|
+
r && r !== "undefined" && t.add(`${this.key}/${r}`);
|
|
52320
|
+
for (const e of t) {
|
|
52321
|
+
const n = a2.pool[e];
|
|
52322
|
+
if (n) {
|
|
52323
|
+
try {
|
|
52324
|
+
n.pause(), n.currentTime = 0;
|
|
52325
|
+
} catch {
|
|
52326
|
+
}
|
|
52327
|
+
delete a2.pool[e];
|
|
52328
|
+
}
|
|
52329
|
+
}
|
|
52330
|
+
} catch {
|
|
52331
|
+
}
|
|
52332
|
+
super.dispose();
|
|
52333
|
+
}
|
|
52295
52334
|
mediaElement() {
|
|
52296
52335
|
return this.audio();
|
|
52297
52336
|
}
|
|
@@ -52303,12 +52342,12 @@ var C2 = class extends h1 {
|
|
|
52303
52342
|
}
|
|
52304
52343
|
audio() {
|
|
52305
52344
|
const r = this.src(), t = `${this.key}/${r || "pending"}`;
|
|
52306
|
-
let e =
|
|
52307
|
-
if (!e) e = document.createElement("audio"), e.crossOrigin = "anonymous", r && r !== "undefined" && (e.src = r),
|
|
52345
|
+
let e = a2.pool[t];
|
|
52346
|
+
if (!e) e = document.createElement("audio"), e.crossOrigin = "anonymous", r && r !== "undefined" && (e.src = r), a2.pool[t] = e;
|
|
52308
52347
|
else if (r && r !== "undefined" && e.src !== r) {
|
|
52309
|
-
e.src = r, delete
|
|
52348
|
+
e.src = r, delete a2.pool[t];
|
|
52310
52349
|
const s = `${this.key}/${r}`;
|
|
52311
|
-
|
|
52350
|
+
a2.pool[s] = e;
|
|
52312
52351
|
}
|
|
52313
52352
|
return (!r || r === "undefined") && s1.collectPromise(new Promise((s) => {
|
|
52314
52353
|
const a = () => {
|
|
@@ -52342,12 +52381,12 @@ var C2 = class extends h1 {
|
|
|
52342
52381
|
t === Y1.Playing || t === Y1.Presenting ? this.fastSeekedAudio() : this.seekedAudio(), r.save(), r.restore(), await this.drawChildren(r);
|
|
52343
52382
|
}
|
|
52344
52383
|
};
|
|
52345
|
-
|
|
52346
|
-
k([vt()],
|
|
52347
|
-
k([vt()],
|
|
52348
|
-
k([vt()],
|
|
52349
|
-
|
|
52350
|
-
var Zf = class extends
|
|
52384
|
+
a2.pool = {};
|
|
52385
|
+
k([vt()], a2.prototype, "audio", 1);
|
|
52386
|
+
k([vt()], a2.prototype, "seekedAudio", 1);
|
|
52387
|
+
k([vt()], a2.prototype, "fastSeekedAudio", 1);
|
|
52388
|
+
a2 = k([R1("Audio")], a2);
|
|
52389
|
+
var Zf = class extends y1 {
|
|
52351
52390
|
profile() {
|
|
52352
52391
|
const r = this.segment();
|
|
52353
52392
|
return { segments: [r], arcLength: r.arcLength, minSin: 0 };
|
|
@@ -52362,12 +52401,12 @@ var Zf = class extends g1 {
|
|
|
52362
52401
|
return r.position = r.position.sub(this.segment().getBBox().center), r;
|
|
52363
52402
|
}
|
|
52364
52403
|
drawOverlay(r, t) {
|
|
52365
|
-
const e = this.computedSize(), n = this.childrenBBox().transformCorners(t), s = e.mul(this.offset()).scale(0.5), a =
|
|
52404
|
+
const e = this.computedSize(), n = this.childrenBBox().transformCorners(t), s = e.mul(this.offset()).scale(0.5), a = m1(s, t), o = this.overlayInfo(t);
|
|
52366
52405
|
r.lineWidth = 1, r.strokeStyle = "white", r.fillStyle = "white", r.stroke(o.curve), r.fillStyle = "white", r.globalAlpha = 0.5, r.beginPath(), r.stroke(o.handleLines), r.globalAlpha = 1, r.lineWidth = 2;
|
|
52367
52406
|
for (const l of [o.startPoint, o.endPoint]) b1(r, l), r.beginPath(), bi(r, l, 4), r.closePath(), r.stroke(), r.fill();
|
|
52368
52407
|
r.fillStyle = "black";
|
|
52369
52408
|
for (const l of o.controlPoints) b1(r, l), r.beginPath(), bi(r, l, 4), r.closePath(), r.fill(), r.stroke();
|
|
52370
|
-
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
52409
|
+
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, n), r.closePath(), r.stroke();
|
|
52371
52410
|
}
|
|
52372
52411
|
};
|
|
52373
52412
|
k([vt()], Zf.prototype, "childrenBBox", 1);
|
|
@@ -52428,7 +52467,7 @@ function LX(r, t, e) {
|
|
|
52428
52467
|
const l = r.at(-1), u = r.at(-2);
|
|
52429
52468
|
return r.length > 2 && (!t && l.auto.start === 1 && l.auto.end === 1 ? q4(n, u.position, u.endHandle, l.position) : q4(n, u.position, u.endHandle, l.startHandle, l.position)), t && q4(n, l.position, l.endHandle, a.startHandle, a.position), xX(n), n;
|
|
52430
52469
|
}
|
|
52431
|
-
var o3 = class extends
|
|
52470
|
+
var o3 = class extends Q1 {
|
|
52432
52471
|
constructor(r) {
|
|
52433
52472
|
super({ composite: true, fontFamily: "Roboto", fontSize: 48, lineHeight: "120%", textWrap: false, fontStyle: "normal", ...r }), this.view2D = this, o3.shadowRoot.append(this.element), this.applyFlex();
|
|
52434
52473
|
}
|
|
@@ -52512,7 +52551,7 @@ function bX(r, t, e, n, s = false) {
|
|
|
52512
52551
|
e -= Math.PI * 2 * T;
|
|
52513
52552
|
}
|
|
52514
52553
|
const o = (t + e) / 2, l = r.mul(Z.fromRadians(t)), u = r.mul(Z.fromRadians(e)), h = r.mul(Z.fromRadians(o)).scale(s ? -1 : 1);
|
|
52515
|
-
return n && Vh(a, new
|
|
52554
|
+
return n && Vh(a, new l2(Z.zero, l)), av(a, r, l, h, t, o, s), av(a, r, h, u, o, e, s), n && Vh(a, new l2(u, Z.zero)), a;
|
|
52516
52555
|
}
|
|
52517
52556
|
function Vh(r, t) {
|
|
52518
52557
|
r.segments.push(t), r.arcLength += t.arcLength;
|
|
@@ -52530,13 +52569,13 @@ function Kf(r, t, e) {
|
|
|
52530
52569
|
}
|
|
52531
52570
|
let s = r[0];
|
|
52532
52571
|
for (let o = 2; o < r.length; o++) {
|
|
52533
|
-
const l = r[o - 2], u = r[o - 1], h = r[o], T = l.sub(u), f = h.sub(u), d = T.normalized.safe, p = f.normalized.safe, g = Math.acos(ye(-1, 1, d.dot(p))), y = Math.tan(g / 2), c = Math.sin(g / 2), Q = Math.min(t, y * T.magnitude * (o === 2 ? 1 : 0.5), y * f.magnitude * (o === r.length - 1 ? 1 : 0.5)), m = c === 0 ? 0 : Q / c, v = y === 0 ? 0 : Q / y, x = d.add(p).scale(1 / 2).normalized.safe.scale(m).add(u), L = d.perpendicular.dot(p) < 0, _ = new
|
|
52572
|
+
const l = r[o - 2], u = r[o - 1], h = r[o], T = l.sub(u), f = h.sub(u), d = T.normalized.safe, p = f.normalized.safe, g = Math.acos(ye(-1, 1, d.dot(p))), y = Math.tan(g / 2), c = Math.sin(g / 2), Q = Math.min(t, y * T.magnitude * (o === 2 ? 1 : 0.5), y * f.magnitude * (o === r.length - 1 ? 1 : 0.5)), m = c === 0 ? 0 : Q / c, v = y === 0 ? 0 : Q / y, x = d.add(p).scale(1 / 2).normalized.safe.scale(m).add(u), L = d.perpendicular.dot(p) < 0, _ = new l2(s, u.add(d.scale(v))), S = new JS(x, Q, d.perpendicular.scale(L ? 1 : -1), p.perpendicular.scale(L ? -1 : 1), L);
|
|
52534
52573
|
_.arcLength > 0 && (n.segments.push(_), n.arcLength += _.arcLength), S.arcLength > 0 && (n.segments.push(S), n.arcLength += S.arcLength), n.minSin = Math.min(n.minSin, Math.abs(c)), s = u.add(p.scale(v));
|
|
52535
52574
|
}
|
|
52536
|
-
const a = new
|
|
52575
|
+
const a = new l2(s, r[r.length - 1]);
|
|
52537
52576
|
return a.arcLength > 0 && (n.segments.push(a), n.arcLength += a.arcLength), n;
|
|
52538
52577
|
}
|
|
52539
|
-
var gr = class extends
|
|
52578
|
+
var gr = class extends y1 {
|
|
52540
52579
|
constructor(r) {
|
|
52541
52580
|
super(r);
|
|
52542
52581
|
}
|
|
@@ -52579,7 +52618,7 @@ k([vt()], gr.prototype, "profile", 1);
|
|
|
52579
52618
|
gr = k([R1("Circle")], gr);
|
|
52580
52619
|
var l3 = class extends a1 {
|
|
52581
52620
|
constructor(r) {
|
|
52582
|
-
super({ fontFamily: "monospace", ...r }), this.oldSelection = null, this.selectionProgress =
|
|
52621
|
+
super({ fontFamily: "monospace", ...r }), this.oldSelection = null, this.selectionProgress = C2(null);
|
|
52583
52622
|
}
|
|
52584
52623
|
static createSignal(r, t) {
|
|
52585
52624
|
return new Oh(r, void 0, t).toSignal();
|
|
@@ -52751,7 +52790,7 @@ property to \`null\`:
|
|
|
52751
52790
|
|
|
52752
52791
|
[Learn more](https://motioncanvas.io/docs/media#images) about working with
|
|
52753
52792
|
images.
|
|
52754
|
-
`, k1 = class extends
|
|
52793
|
+
`, k1 = class extends Q1 {
|
|
52755
52794
|
constructor(r) {
|
|
52756
52795
|
super(r), "src" in r || Te().warn({ message: "No source specified for the image", remarks: _X, inspect: this.key });
|
|
52757
52796
|
}
|
|
@@ -52856,7 +52895,7 @@ var B0 = class extends Xt {
|
|
|
52856
52895
|
}
|
|
52857
52896
|
points() {
|
|
52858
52897
|
const r = !this.startHandle.isInitial() || !this.endHandle.isInitial(), t = r ? this.startHandle() : Z.zero, e = r ? this.endHandle() : Z.zero;
|
|
52859
|
-
return { position: this.position(), startHandle:
|
|
52898
|
+
return { position: this.position(), startHandle: m1(t, this.localToParent()), endHandle: m1(e, this.localToParent()), auto: { start: this.startHandleAuto(), end: this.endHandleAuto() } };
|
|
52860
52899
|
}
|
|
52861
52900
|
getDefaultEndHandle() {
|
|
52862
52901
|
return this.startHandle().flipped;
|
|
@@ -52910,7 +52949,7 @@ function EX(r, t) {
|
|
|
52910
52949
|
const e = [];
|
|
52911
52950
|
let n = null;
|
|
52912
52951
|
for (const s of r.segments) {
|
|
52913
|
-
if (!(s instanceof
|
|
52952
|
+
if (!(s instanceof l2)) return null;
|
|
52914
52953
|
e.push(s.from), n = s.to;
|
|
52915
52954
|
}
|
|
52916
52955
|
return n && e.push(n), !Number.isNaN(t) && t > 0 && SX(e, t), e;
|
|
@@ -52998,7 +53037,7 @@ function MX(r, t, e, n) {
|
|
|
52998
53037
|
function Tv(r, t) {
|
|
52999
53038
|
for (let e = r.length; e < t.length; e++) {
|
|
53000
53039
|
const n = t[e].segments[0].getPoint(0).position;
|
|
53001
|
-
r.push({ arcLength: 0, closed: false, minSin: 0, segments: [new
|
|
53040
|
+
r.push({ arcLength: 0, closed: false, minSin: 0, segments: [new l2(n, n)] });
|
|
53002
53041
|
}
|
|
53003
53042
|
}
|
|
53004
53043
|
function wX(r, t, e, n) {
|
|
@@ -53061,9 +53100,9 @@ If you did this intentionally, and want to disable this message, set the
|
|
|
53061
53100
|
\`\`\`tsx
|
|
53062
53101
|
<Line stroke="#fff" lineWidth={8} points={null} />
|
|
53063
53102
|
\`\`\`
|
|
53064
|
-
`, u3 = class extends
|
|
53103
|
+
`, u3 = class extends y1 {
|
|
53065
53104
|
constructor(r) {
|
|
53066
|
-
super(r), this.tweenedPoints =
|
|
53105
|
+
super(r), this.tweenedPoints = C2(null), r.children === void 0 && r.points === void 0 && Te().warn({ message: "No points specified for the line", remarks: OX, inspect: this.key });
|
|
53067
53106
|
}
|
|
53068
53107
|
static rotatePoints(r, t, e) {
|
|
53069
53108
|
if (e) {
|
|
@@ -53137,14 +53176,14 @@ If you did this intentionally, and want to disable this message, set the
|
|
|
53137
53176
|
return e;
|
|
53138
53177
|
}
|
|
53139
53178
|
drawOverlay(r, t) {
|
|
53140
|
-
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a =
|
|
53179
|
+
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a = m1(s, t);
|
|
53141
53180
|
r.fillStyle = "white", r.strokeStyle = "black", r.lineWidth = 1;
|
|
53142
|
-
const o = new Path2D(), u = (this.tweenedPoints() ?? this.parsedPoints()).map((h) =>
|
|
53181
|
+
const o = new Path2D(), u = (this.tweenedPoints() ?? this.parsedPoints()).map((h) => m1(h, t));
|
|
53143
53182
|
if (u.length > 0) {
|
|
53144
53183
|
b1(o, u[0]);
|
|
53145
53184
|
for (const h of u) V1(o, h), r.beginPath(), bi(r, h, 4), r.closePath(), r.fill(), r.stroke();
|
|
53146
53185
|
}
|
|
53147
|
-
r.strokeStyle = "white", r.stroke(o), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
53186
|
+
r.strokeStyle = "white", r.stroke(o), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, e), r.closePath(), r.stroke();
|
|
53148
53187
|
}
|
|
53149
53188
|
parsePoints(r) {
|
|
53150
53189
|
return r ? r.map((t) => new Z(_1(t))) : this.children().map((t) => t.position());
|
|
@@ -53187,13 +53226,13 @@ function Qv(r) {
|
|
|
53187
53226
|
if (o === "m") n = $2(a, 0, l, n), s = n;
|
|
53188
53227
|
else if (o === "l") {
|
|
53189
53228
|
const u = $2(a, 0, l, n);
|
|
53190
|
-
si(t, new
|
|
53229
|
+
si(t, new l2(n, u)), n = u;
|
|
53191
53230
|
} else if (o === "h") {
|
|
53192
53231
|
const u = i5(a, 0), h = l ? n.addX(u) : new Z(u, n.y);
|
|
53193
|
-
si(t, new
|
|
53232
|
+
si(t, new l2(n, h)), n = h;
|
|
53194
53233
|
} else if (o === "v") {
|
|
53195
53234
|
const u = i5(a, 0), h = l ? n.addY(u) : new Z(n.x, u);
|
|
53196
|
-
si(t, new
|
|
53235
|
+
si(t, new l2(n, h)), n = h;
|
|
53197
53236
|
} else if (o === "q") {
|
|
53198
53237
|
const u = $2(a, 0, l, n), h = $2(a, 2, l, n);
|
|
53199
53238
|
si(t, new _5(n, u, h)), n = h;
|
|
@@ -53211,14 +53250,14 @@ function Qv(r) {
|
|
|
53211
53250
|
si(t, new sE(n, u, h, T, f, d)), n = d;
|
|
53212
53251
|
} else if (o === "z") {
|
|
53213
53252
|
if (!s || n.equals(s)) continue;
|
|
53214
|
-
si(t, new
|
|
53253
|
+
si(t, new l2(n, s)), n = s;
|
|
53215
53254
|
}
|
|
53216
53255
|
}
|
|
53217
53256
|
return IX(t), t;
|
|
53218
53257
|
}
|
|
53219
|
-
var dn = class extends
|
|
53258
|
+
var dn = class extends y1 {
|
|
53220
53259
|
constructor(r) {
|
|
53221
|
-
super(r), this.currentProfile =
|
|
53260
|
+
super(r), this.currentProfile = C2(null), this.canHaveSubpath = true;
|
|
53222
53261
|
}
|
|
53223
53262
|
profile() {
|
|
53224
53263
|
return this.currentProfile() ?? Qv(this.data());
|
|
@@ -53249,7 +53288,7 @@ var dn = class extends g1 {
|
|
|
53249
53288
|
});
|
|
53250
53289
|
}
|
|
53251
53290
|
drawOverlay(r, t) {
|
|
53252
|
-
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a =
|
|
53291
|
+
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a = m1(s, t), o = this.profile().segments;
|
|
53253
53292
|
r.lineWidth = 1, r.strokeStyle = "white", r.fillStyle = "white", r.save(), r.setTransform(t);
|
|
53254
53293
|
let l = null, u = new Path2D();
|
|
53255
53294
|
for (const h of o) {
|
|
@@ -53257,13 +53296,13 @@ var dn = class extends g1 {
|
|
|
53257
53296
|
const [, T] = h.draw(u, 0, 1, l == null);
|
|
53258
53297
|
l = T.position;
|
|
53259
53298
|
}
|
|
53260
|
-
r.stroke(u), r.restore(), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
53299
|
+
r.stroke(u), r.restore(), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, e), r.closePath(), r.stroke();
|
|
53261
53300
|
}
|
|
53262
53301
|
};
|
|
53263
53302
|
k([ot()], dn.prototype, "data", 2);
|
|
53264
53303
|
k([vt()], dn.prototype, "profile", 1);
|
|
53265
53304
|
k([e1()], dn.prototype, "tweenData", 1);
|
|
53266
|
-
var yl = class extends
|
|
53305
|
+
var yl = class extends y1 {
|
|
53267
53306
|
constructor(r) {
|
|
53268
53307
|
super(r);
|
|
53269
53308
|
}
|
|
@@ -53319,7 +53358,7 @@ k([w1("p0")], vl.prototype, "p0", 2);
|
|
|
53319
53358
|
k([w1("p1")], vl.prototype, "p1", 2);
|
|
53320
53359
|
k([w1("p2")], vl.prototype, "p2", 2);
|
|
53321
53360
|
k([vt()], vl.prototype, "segment", 1);
|
|
53322
|
-
var Io = class extends
|
|
53361
|
+
var Io = class extends y1 {
|
|
53323
53362
|
constructor(r) {
|
|
53324
53363
|
super(r);
|
|
53325
53364
|
}
|
|
@@ -53327,18 +53366,18 @@ var Io = class extends g1 {
|
|
|
53327
53366
|
return he.fromPoints(this.from(), this.to());
|
|
53328
53367
|
}
|
|
53329
53368
|
profile() {
|
|
53330
|
-
const r = new
|
|
53369
|
+
const r = new l2(this.from(), this.to());
|
|
53331
53370
|
return { arcLength: r.arcLength, minSin: 1, segments: [r] };
|
|
53332
53371
|
}
|
|
53333
53372
|
drawOverlay(r, t) {
|
|
53334
|
-
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a =
|
|
53335
|
-
r.fillStyle = "white", r.strokeStyle = "black", r.lineWidth = 1, r.beginPath(), bi(r, o, 4), r.fill(), r.stroke(), r.beginPath(), bi(r, l, 4), r.fill(), r.stroke(), r.strokeStyle = "white", r.beginPath(),
|
|
53373
|
+
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a = m1(s, t), o = m1(this.from(), t), l = m1(this.to(), t);
|
|
53374
|
+
r.fillStyle = "white", r.strokeStyle = "black", r.lineWidth = 1, r.beginPath(), bi(r, o, 4), r.fill(), r.stroke(), r.beginPath(), bi(r, l, 4), r.fill(), r.stroke(), r.strokeStyle = "white", r.beginPath(), M2(r, [o, l]), r.stroke(), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, e), r.closePath(), r.stroke();
|
|
53336
53375
|
}
|
|
53337
53376
|
};
|
|
53338
53377
|
k([w1("from")], Io.prototype, "from", 2);
|
|
53339
53378
|
k([w1("to")], Io.prototype, "to", 2);
|
|
53340
53379
|
Io = k([R1("Ray")], Io);
|
|
53341
|
-
var f4 = class extends
|
|
53380
|
+
var f4 = class extends Q1 {
|
|
53342
53381
|
constructor(r) {
|
|
53343
53382
|
super(r), this.currentTime = 0, this.lastTime = 0;
|
|
53344
53383
|
const t = Si().time, e = t();
|
|
@@ -53401,7 +53440,7 @@ as children to the spline using the \`Knot\` component:
|
|
|
53401
53440
|
<Knot y={100} startHandle={[-100, 50]} />
|
|
53402
53441
|
</Spline>
|
|
53403
53442
|
\`\`\`
|
|
53404
|
-
`, s6 = class extends
|
|
53443
|
+
`, s6 = class extends y1 {
|
|
53405
53444
|
constructor(r) {
|
|
53406
53445
|
super(r), (r.children === void 0 || !Array.isArray(r.children) || r.children.length < 2) && (r.points === void 0 || r.points.length < 2) && r.spawner === void 0 && Te().warn({ message: "Insufficient number of knots specified for spline. A spline needs at least two knots.", remarks: VX, inspect: this.key });
|
|
53407
53446
|
}
|
|
@@ -53437,7 +53476,7 @@ as children to the spline using the \`Knot\` component:
|
|
|
53437
53476
|
return he.fromBBoxes(...r);
|
|
53438
53477
|
}
|
|
53439
53478
|
drawOverlay(r, t) {
|
|
53440
|
-
const e = this.computedSize(), n = this.childrenBBox().transformCorners(t), s = e.mul(this.offset()).scale(0.5), a =
|
|
53479
|
+
const e = this.computedSize(), n = this.childrenBBox().transformCorners(t), s = e.mul(this.offset()).scale(0.5), a = m1(s, t), o = this.profile().segments;
|
|
53441
53480
|
r.lineWidth = 1, r.strokeStyle = "white", r.fillStyle = "white";
|
|
53442
53481
|
const l = new Path2D();
|
|
53443
53482
|
for (let u = 0; u < o.length; u++) {
|
|
@@ -53452,7 +53491,7 @@ as children to the spline using the \`Knot\` component:
|
|
|
53452
53491
|
r.globalAlpha = 0.5, b1(g, T), V1(g, f), h instanceof _i ? (b1(g, d), V1(g, p), r.beginPath(), r.stroke(g)) : (V1(g, d), r.beginPath(), r.stroke(g)), r.globalAlpha = 1, r.lineWidth = 2, b1(r, T), r.beginPath(), bi(r, T, 4), r.closePath(), r.stroke(), r.fill(), u === o.length - 1 && p !== void 0 && (b1(r, p), r.beginPath(), bi(r, p, 4), r.closePath(), r.stroke(), r.fill()), r.fillStyle = "black";
|
|
53453
53492
|
for (const y of [f, d]) y.magnitude > 0 && (b1(r, y), r.beginPath(), bi(r, y, 4), r.closePath(), r.fill(), r.stroke());
|
|
53454
53493
|
}
|
|
53455
|
-
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
53494
|
+
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, n), r.closePath(), r.stroke();
|
|
53456
53495
|
}
|
|
53457
53496
|
isKnot(r) {
|
|
53458
53497
|
return r instanceof B0;
|
|
@@ -53654,7 +53693,7 @@ var _4 = class ge extends a1 {
|
|
|
53654
53693
|
yield { id: l || "path", type: dn, props: { data: u, tweenAlignPath: true, ...ge.getMatrixTransformation(h), ...o } };
|
|
53655
53694
|
} else if (t.tagName === "rect") {
|
|
53656
53695
|
const u = ge.parseNumberAttribute(t, "width"), h = ge.parseNumberAttribute(t, "height"), T = ge.parseNumberAttribute(t, "rx"), f = ge.parseNumberAttribute(t, "ry"), p = new he(0, 0, u, h).center, g = a.translate(p.x, p.y);
|
|
53657
|
-
yield { id: l || "rect", type:
|
|
53696
|
+
yield { id: l || "rect", type: Q1, props: { width: u, height: h, radius: [T, f], ...ge.getMatrixTransformation(g), ...o } };
|
|
53658
53697
|
} else if (["circle", "ellipse"].includes(t.tagName)) {
|
|
53659
53698
|
const u = ge.parseNumberAttribute(t, "cx"), h = ge.parseNumberAttribute(t, "cy"), T = t.tagName === "circle" ? ge.parseNumberAttribute(t, "r") * 2 : [ge.parseNumberAttribute(t, "rx") * 2, ge.parseNumberAttribute(t, "ry") * 2], f = a.translate(u, h);
|
|
53660
53699
|
yield { id: l || t.tagName, type: gr, props: { size: T, ...o, ...ge.getMatrixTransformation(f) } };
|
|
@@ -53680,7 +53719,7 @@ k([Gn(() => {
|
|
|
53680
53719
|
const r = document.createElement("div");
|
|
53681
53720
|
return o3.shadowRoot.appendChild(r), r;
|
|
53682
53721
|
})], _4, "containerElement", 2);
|
|
53683
|
-
var uE = Symbol("Txt"),
|
|
53722
|
+
var uE = Symbol("Txt"), w2 = class extends a1 {
|
|
53684
53723
|
constructor({ children: r, ...t }) {
|
|
53685
53724
|
super(t), r && this.text(r);
|
|
53686
53725
|
}
|
|
@@ -53720,7 +53759,7 @@ var uE = Symbol("Txt"), M2 = class extends a1 {
|
|
|
53720
53759
|
super.applyFlex(), this.element.style.display = "inline";
|
|
53721
53760
|
}
|
|
53722
53761
|
updateLayout() {
|
|
53723
|
-
if (this.applyFont(), this.applyFlex(), this.justifyContent.isInitial() && (this.element.style.justifyContent = this.styles.getPropertyValue("text-align")), this.styles.whiteSpace !== "nowrap" && this.styles.whiteSpace !== "pre") if (this.element.innerText = "",
|
|
53762
|
+
if (this.applyFont(), this.applyFlex(), this.justifyContent.isInitial() && (this.element.style.justifyContent = this.styles.getPropertyValue("text-align")), this.styles.whiteSpace !== "nowrap" && this.styles.whiteSpace !== "pre") if (this.element.innerText = "", w2.segmenter) for (const t of w2.segmenter.segment(this.text())) this.element.appendChild(document.createTextNode(t.segment));
|
|
53724
53763
|
else for (const t of this.text().split("")) this.element.appendChild(document.createTextNode(t));
|
|
53725
53764
|
else if (this.styles.whiteSpace === "pre") {
|
|
53726
53765
|
this.element.innerText = "";
|
|
@@ -53730,18 +53769,18 @@ var uE = Symbol("Txt"), M2 = class extends a1 {
|
|
|
53730
53769
|
} else this.element.innerText = this.text();
|
|
53731
53770
|
}
|
|
53732
53771
|
};
|
|
53733
|
-
k([dt(""), Gf(lx), ot()],
|
|
53734
|
-
k([vt()],
|
|
53772
|
+
k([dt(""), Gf(lx), ot()], w2.prototype, "text", 2);
|
|
53773
|
+
k([vt()], w2.prototype, "parentTxt", 1);
|
|
53735
53774
|
k([Gn(() => {
|
|
53736
53775
|
try {
|
|
53737
53776
|
return new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
53738
53777
|
} catch {
|
|
53739
53778
|
return null;
|
|
53740
53779
|
}
|
|
53741
|
-
})],
|
|
53742
|
-
|
|
53780
|
+
})], w2, "segmenter", 2);
|
|
53781
|
+
w2 = k([R1("TxtLeaf")], w2);
|
|
53743
53782
|
["fill", "stroke", "lineWidth", "strokeFirst", "lineCap", "lineJoin", "lineDash", "lineDashOffset"].forEach((r) => {
|
|
53744
|
-
|
|
53783
|
+
w2.prototype[`get${Zr(r)}`] = function() {
|
|
53745
53784
|
var t;
|
|
53746
53785
|
return ((t = this.parentTxt()) == null ? void 0 : t[r]()) ?? this[r].context.getInitial();
|
|
53747
53786
|
};
|
|
@@ -53764,9 +53803,9 @@ var pv, mv, Ue = class extends (mv = a1, pv = uE, mv) {
|
|
|
53764
53803
|
let e = null;
|
|
53765
53804
|
for (let n = 0; n < t.length; n++) {
|
|
53766
53805
|
const s = t[n];
|
|
53767
|
-
e === null && s instanceof
|
|
53806
|
+
e === null && s instanceof w2 ? e = s : s.parent(null);
|
|
53768
53807
|
}
|
|
53769
|
-
e === null ? (e = new
|
|
53808
|
+
e === null ? (e = new w2({ text: r }), e.parent(this)) : e.text(r), this.setParsedChildren([e]);
|
|
53770
53809
|
}
|
|
53771
53810
|
setChildren(r) {
|
|
53772
53811
|
this.children.context.raw() !== r && (typeof r == "string" ? this.text(r) : super.setChildren(r));
|
|
@@ -53775,7 +53814,7 @@ var pv, mv, Ue = class extends (mv = a1, pv = uE, mv) {
|
|
|
53775
53814
|
var h;
|
|
53776
53815
|
yield (h = document.fonts) == null ? void 0 : h.ready;
|
|
53777
53816
|
const s = this.children();
|
|
53778
|
-
(s.length !== 1 || !(s[0] instanceof
|
|
53817
|
+
(s.length !== 1 || !(s[0] instanceof w2)) && this.text.save();
|
|
53779
53818
|
const a = this.childAs(0), o = a.text.context.raw(), l = this.size.context.raw();
|
|
53780
53819
|
a.text(r);
|
|
53781
53820
|
const u = this.size();
|
|
@@ -53796,7 +53835,7 @@ var pv, mv, Ue = class extends (mv = a1, pv = uE, mv) {
|
|
|
53796
53835
|
}
|
|
53797
53836
|
parseChildren(r) {
|
|
53798
53837
|
const t = [], e = Array.isArray(r) ? r : [r];
|
|
53799
|
-
for (const n of e) n instanceof Ue || n instanceof
|
|
53838
|
+
for (const n of e) n instanceof Ue || n instanceof w2 ? t.push(n) : typeof n == "string" && t.push(new w2({ text: n }));
|
|
53800
53839
|
return t;
|
|
53801
53840
|
}
|
|
53802
53841
|
applyFlex() {
|
|
@@ -54160,10 +54199,29 @@ async function WX(r, t, e, n) {
|
|
|
54160
54199
|
}
|
|
54161
54200
|
return a.getNextFrame();
|
|
54162
54201
|
}
|
|
54163
|
-
var
|
|
54202
|
+
var u1 = class extends T1 {
|
|
54164
54203
|
constructor(r) {
|
|
54165
54204
|
super(r), this.detectedFileType = "unknown", this.fileTypeWasDetected = false, this.lastFrame = null;
|
|
54166
54205
|
}
|
|
54206
|
+
dispose() {
|
|
54207
|
+
var r;
|
|
54208
|
+
try {
|
|
54209
|
+
const t = this.src(), e = /* @__PURE__ */ new Set([`${this.key}/${t || "pending"}`, `${this.key}/pending`]);
|
|
54210
|
+
t && t !== "undefined" && (e.add(`${this.key}/${t}`), e.add(`${this.key}/${t}_no_cors`));
|
|
54211
|
+
for (const n of e) {
|
|
54212
|
+
const s = (r = u1.pool) == null ? void 0 : r[n];
|
|
54213
|
+
if (s) {
|
|
54214
|
+
try {
|
|
54215
|
+
s.pause(), s.currentTime = 0;
|
|
54216
|
+
} catch {
|
|
54217
|
+
}
|
|
54218
|
+
delete u1.pool[n];
|
|
54219
|
+
}
|
|
54220
|
+
}
|
|
54221
|
+
} catch {
|
|
54222
|
+
}
|
|
54223
|
+
super.dispose();
|
|
54224
|
+
}
|
|
54167
54225
|
createVideoElement(r, t) {
|
|
54168
54226
|
const e = document.createElement("video");
|
|
54169
54227
|
if (e.crossOrigin = "anonymous", r && r !== "undefined") {
|
|
@@ -54180,7 +54238,7 @@ var L1 = class extends h1 {
|
|
|
54180
54238
|
if (s && (s.code === 4 || s.code === 2)) {
|
|
54181
54239
|
e.removeEventListener("error", n);
|
|
54182
54240
|
const a = `${t}_no_cors`;
|
|
54183
|
-
let o =
|
|
54241
|
+
let o = u1.pool[a];
|
|
54184
54242
|
if (!o) {
|
|
54185
54243
|
o = document.createElement("video"), o.crossOrigin = null;
|
|
54186
54244
|
try {
|
|
@@ -54191,9 +54249,9 @@ var L1 = class extends h1 {
|
|
|
54191
54249
|
} catch {
|
|
54192
54250
|
o.src = r;
|
|
54193
54251
|
}
|
|
54194
|
-
|
|
54252
|
+
u1.pool[a] = o;
|
|
54195
54253
|
}
|
|
54196
|
-
|
|
54254
|
+
u1.pool[t] = o;
|
|
54197
54255
|
}
|
|
54198
54256
|
};
|
|
54199
54257
|
e.addEventListener("error", n, { once: true });
|
|
@@ -54227,8 +54285,8 @@ var L1 = class extends h1 {
|
|
|
54227
54285
|
}
|
|
54228
54286
|
video() {
|
|
54229
54287
|
const r = this.src(), t = this.getCacheKey(r);
|
|
54230
|
-
let e =
|
|
54231
|
-
if (!e) e = this.createVideoElement(r, t),
|
|
54288
|
+
let e = u1.pool[t];
|
|
54289
|
+
if (!e) e = this.createVideoElement(r, t), u1.pool[t] = e;
|
|
54232
54290
|
else if (r && r !== "undefined") {
|
|
54233
54291
|
const s = (l) => {
|
|
54234
54292
|
try {
|
|
@@ -54274,8 +54332,8 @@ var L1 = class extends h1 {
|
|
|
54274
54332
|
const r = this.video(), t = this.clampTime(this.time()), e = this.getDuration();
|
|
54275
54333
|
if (r.playbackRate = this.playbackRate(), this.lastFrame && this.lastTime === t) return this.lastFrame;
|
|
54276
54334
|
const n = this.view().fps() / this.playbackRate();
|
|
54277
|
-
if (!
|
|
54278
|
-
const s = await
|
|
54335
|
+
if (!u1.imageCommunication) throw new Error("ServerSeekedVideo can only be used with HMR.");
|
|
54336
|
+
const s = await u1.imageCommunication.getFrame(this.key, r.src, t, e, n);
|
|
54279
54337
|
return this.lastFrame = s, this.lastTime = t, s;
|
|
54280
54338
|
}
|
|
54281
54339
|
async seekFunction() {
|
|
@@ -54346,15 +54404,15 @@ var L1 = class extends h1 {
|
|
|
54346
54404
|
})());
|
|
54347
54405
|
}
|
|
54348
54406
|
};
|
|
54349
|
-
|
|
54350
|
-
|
|
54351
|
-
k([dt(1), ot()],
|
|
54352
|
-
k([dt(true), ot()],
|
|
54353
|
-
k([dt(null), ot()],
|
|
54354
|
-
k([vt()],
|
|
54355
|
-
k([vt()],
|
|
54356
|
-
k([vt()],
|
|
54357
|
-
|
|
54407
|
+
u1.pool = {};
|
|
54408
|
+
u1.imageCommunication = null;
|
|
54409
|
+
k([dt(1), ot()], u1.prototype, "alpha", 2);
|
|
54410
|
+
k([dt(true), ot()], u1.prototype, "smoothing", 2);
|
|
54411
|
+
k([dt(null), ot()], u1.prototype, "decoder", 2);
|
|
54412
|
+
k([vt()], u1.prototype, "video", 1);
|
|
54413
|
+
k([vt()], u1.prototype, "seekedVideo", 1);
|
|
54414
|
+
k([vt()], u1.prototype, "fastSeekedVideo", 1);
|
|
54415
|
+
u1 = k([R1("Video")], u1);
|
|
54358
54416
|
var qX = class extends lw {
|
|
54359
54417
|
constructor(r) {
|
|
54360
54418
|
super(r), this.view = null, this.registeredNodes = /* @__PURE__ */ new Map(), this.nodeCounters = /* @__PURE__ */ new Map(), this.assetHash = Date.now().toString(), this.recreateView();
|
|
@@ -54402,7 +54460,7 @@ var qX = class extends lw {
|
|
|
54402
54460
|
});
|
|
54403
54461
|
}
|
|
54404
54462
|
transformMousePosition(r, t) {
|
|
54405
|
-
return
|
|
54463
|
+
return m1(new Z(r, t), this.getView().localToParent().inverse());
|
|
54406
54464
|
}
|
|
54407
54465
|
registerNode(r, t) {
|
|
54408
54466
|
var a;
|
|
@@ -54418,19 +54476,24 @@ var qX = class extends lw {
|
|
|
54418
54476
|
for (const r of this.registeredNodes.values()) !r.parent() && r !== this.view && (yield r);
|
|
54419
54477
|
}
|
|
54420
54478
|
getMediaAssets() {
|
|
54421
|
-
const t = this.playback.state === Y1.Rendering, e = Array.from(this.registeredNodes.values()).filter((l) => l instanceof
|
|
54422
|
-
|
|
54423
|
-
const
|
|
54424
|
-
|
|
54425
|
-
|
|
54426
|
-
|
|
54427
|
-
|
|
54428
|
-
|
|
54479
|
+
const t = this.playback.state === Y1.Rendering, e = Array.from(this.registeredNodes.values()).filter((l) => l instanceof u1), n = Array.from(this.registeredNodes.values()).filter((l) => l instanceof a2);
|
|
54480
|
+
if (t) {
|
|
54481
|
+
const l = this.getView().globalTime();
|
|
54482
|
+
e.forEach((u) => {
|
|
54483
|
+
var T;
|
|
54484
|
+
const h = u.src();
|
|
54485
|
+
h && h !== "undefined" && !u.isPlaying() && ((T = u.isActiveAtGlobalTime) == null ? void 0 : T.call(u, l)) !== false && u.playing(true);
|
|
54486
|
+
}), n.forEach((u) => {
|
|
54487
|
+
var T;
|
|
54488
|
+
const h = u.src();
|
|
54489
|
+
h && h !== "undefined" && !u.isPlaying() && ((T = u.isActiveAtGlobalTime) == null ? void 0 : T.call(u, l)) !== false && u.playing(true);
|
|
54490
|
+
});
|
|
54491
|
+
}
|
|
54429
54492
|
const s = e.filter((l) => l.isPlaying()), a = n.filter((l) => l.isPlaying()), o = [];
|
|
54430
54493
|
return o.push(...s.map((l) => ({ key: l.key, type: "video", src: l.src(), decoder: l.decoder(), playbackRate: typeof l.playbackRate == "function" ? l.playbackRate() : l.playbackRate, volume: l.getVolume(), currentTime: l.getCurrentTime(), duration: l.getDuration() }))), o.push(...a.map((l) => ({ key: l.key, type: "audio", src: l.src(), playbackRate: typeof l.playbackRate == "function" ? l.playbackRate() : l.playbackRate, volume: l.getVolume(), currentTime: l.getCurrentTime(), duration: l.getDuration() }))), o;
|
|
54431
54494
|
}
|
|
54432
54495
|
async syncAllMediaToCurrentTime(r) {
|
|
54433
|
-
const t = this.playback.time, n = Array.from(this.registeredNodes.values()).filter((s) => s instanceof
|
|
54496
|
+
const t = this.playback.time, n = Array.from(this.registeredNodes.values()).filter((s) => s instanceof T1).map((s) => {
|
|
54434
54497
|
try {
|
|
54435
54498
|
return s.syncToCurrentTime(t, { waitForSeek: r });
|
|
54436
54499
|
} catch (a) {
|
|
@@ -54444,11 +54507,11 @@ var qX = class extends lw {
|
|
|
54444
54507
|
}
|
|
54445
54508
|
}
|
|
54446
54509
|
stopAllMedia() {
|
|
54447
|
-
const r = Array.from(this.registeredNodes.values()).filter((t) => t instanceof
|
|
54510
|
+
const r = Array.from(this.registeredNodes.values()).filter((t) => t instanceof T1).filter((t) => t.isPlaying());
|
|
54448
54511
|
for (const t of r) t.dispose();
|
|
54449
54512
|
}
|
|
54450
54513
|
adjustVolume(r) {
|
|
54451
|
-
const t = Array.from(this.registeredNodes.values()).filter((e) => e instanceof
|
|
54514
|
+
const t = Array.from(this.registeredNodes.values()).filter((e) => e instanceof T1);
|
|
54452
54515
|
for (const e of t) e.setVolume(e.getVolume() * r);
|
|
54453
54516
|
}
|
|
54454
54517
|
recreateView() {
|
|
@@ -54470,7 +54533,7 @@ const YX = { name: "audio", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54470
54533
|
const n = fe();
|
|
54471
54534
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54472
54535
|
const s = ((l = t.props) == null ? void 0 : l.time) ?? 0, a = ((u = t.props) == null ? void 0 : u.playbackRate) ?? 1, o = (s + (e.globalTime() - t.s)) * a;
|
|
54473
|
-
yield r().add(ce(
|
|
54536
|
+
yield r().add(ce(a2, { ref: n, play: true, ...t.props, time: o, clipStart: t.s, clipEnd: t.e, trimStart: s }, t.id)), yield* Ft(Math.max(0, t.e - t.s)), yield n().pause(), yield n().remove(), yield n().dispose();
|
|
54474
54537
|
} };
|
|
54475
54538
|
function JX({ t: r, s: t, e }) {
|
|
54476
54539
|
const n = r.split(" "), s = e - t, a = n.join("").length;
|
|
@@ -54503,7 +54566,7 @@ const F0 = (r) => {
|
|
|
54503
54566
|
const o = fe();
|
|
54504
54567
|
r().add(ce(Ue, { ref: o, ...n, text: a.t, opacity: 0 }));
|
|
54505
54568
|
const l = fe(), u = fe(), h = new t2({ ...F0(n.colors.bgColor ?? "#444444"), a: (n == null ? void 0 : n.bgOpacity) ?? 1 });
|
|
54506
|
-
r().add(ce(
|
|
54569
|
+
r().add(ce(Q1, { ref: l, fill: h, width: o().width() + (n.bgOffsetWidth ?? 20), height: o().height() + (n.bgOffsetHeight ?? 8), margin: n.bgMargin ?? [0, -5], radius: n.bgRadius ?? 10, padding: n.bgPadding ?? [0, 10], opacity: 0, alignItems: "center", justifyContent: "center", layout: true, children: ce(Ue, { ref: u, ...n, text: a.t }) })), o().remove(), s.push({ textRef: u, bgRef: l });
|
|
54507
54570
|
}
|
|
54508
54571
|
return { refs: s };
|
|
54509
54572
|
}, *animateWords({ words: r, refs: t }) {
|
|
@@ -54931,15 +54994,15 @@ const P$ = { name: "circle", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54931
54994
|
var a;
|
|
54932
54995
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54933
54996
|
const n = fe(), s = fe();
|
|
54934
|
-
yield r().add(ce(
|
|
54997
|
+
yield r().add(ce(Q1, { ref: n, ...t.frame, children: ce(k1, { ref: s, ...t.props }, `child-${t.id}`) }, t.id)), n() && (yield o6({ elementRef: s, containerSize: n().size(), elementSize: s().size(), objectFit: t.objectFit }), (a = t == null ? void 0 : t.props) != null && a.mediaFilter && dE(s, t.props.mediaFilter), yield* Jt(yr({ elementRef: s, containerRef: n, element: t, view: e }), QE({ containerRef: n, elementRef: s, element: t }), Ft(Math.max(0, t.e - t.s))), yield s().remove(), yield n().remove());
|
|
54935
54998
|
} }, mE = { name: "rect", *create({ containerRef: r, element: t, view: e }) {
|
|
54936
54999
|
const n = fe();
|
|
54937
|
-
yield* Ft(t == null ? void 0 : t.s), a6(`RectElement: ${JSON.stringify(t)}`), yield r().add(ce(
|
|
55000
|
+
yield* Ft(t == null ? void 0 : t.s), a6(`RectElement: ${JSON.stringify(t)}`), yield r().add(ce(Q1, { ref: n, ...t.props }, t.id)), yield* Jt(yr({ elementRef: n, element: t, view: e }), Ft(Math.max(0, t.e - t.s))), yield n().remove();
|
|
54938
55001
|
} }, k$ = 2, R$ = { name: "arrow", *create({ containerRef: r, element: t, view: e }) {
|
|
54939
55002
|
var Q, m, v, x, L, _, S, E;
|
|
54940
55003
|
const n = fe();
|
|
54941
55004
|
yield* Ft((t == null ? void 0 : t.s) ?? 0), a6(`ArrowElement: ${t == null ? void 0 : t.id}`);
|
|
54942
|
-
const s = ((Q = t == null ? void 0 : t.props) == null ? void 0 : Q.width) ?? 220, a = ((m = t == null ? void 0 : t.props) == null ? void 0 : m.height) ?? 14, o = ((v = t == null ? void 0 : t.props) == null ? void 0 : v.fill) ?? "#f59e0b", l = ((x = t == null ? void 0 : t.props) == null ? void 0 : x.radius) ?? 4, u = ((L = t == null ? void 0 : t.props) == null ? void 0 : L.rotation) ?? 0, h = ((_ = t == null ? void 0 : t.props) == null ? void 0 : _.opacity) ?? 1, T = ((S = t == null ? void 0 : t.props) == null ? void 0 : S.x) ?? 0, f = ((E = t == null ? void 0 : t.props) == null ? void 0 : E.y) ?? 0, d = 1.8 * 1.3, p = a * d, g = s - p * 0.5 + k$, y = s, c = ce(At, { ref: n, x: T, y: f, rotation: u, opacity: h, children: [ce(
|
|
55005
|
+
const s = ((Q = t == null ? void 0 : t.props) == null ? void 0 : Q.width) ?? 220, a = ((m = t == null ? void 0 : t.props) == null ? void 0 : m.height) ?? 14, o = ((v = t == null ? void 0 : t.props) == null ? void 0 : v.fill) ?? "#f59e0b", l = ((x = t == null ? void 0 : t.props) == null ? void 0 : x.radius) ?? 4, u = ((L = t == null ? void 0 : t.props) == null ? void 0 : L.rotation) ?? 0, h = ((_ = t == null ? void 0 : t.props) == null ? void 0 : _.opacity) ?? 1, T = ((S = t == null ? void 0 : t.props) == null ? void 0 : S.x) ?? 0, f = ((E = t == null ? void 0 : t.props) == null ? void 0 : E.y) ?? 0, d = 1.8 * 1.3, p = a * d, g = s - p * 0.5 + k$, y = s, c = ce(At, { ref: n, x: T, y: f, rotation: u, opacity: h, children: [ce(Q1, { x: -y / 2 + g / 2, y: 0, width: g, height: a, fill: o, radius: l }), ce(yl, { x: y / 2 - p * 0.25, y: 0, width: p, height: p, sides: 3, fill: o, rotation: 90 })] }, t == null ? void 0 : t.id);
|
|
54943
55006
|
yield r().add(c), yield* Jt(yr({ elementRef: n, element: t, view: e }), Ft(Math.max(0, ((t == null ? void 0 : t.e) ?? 0) - ((t == null ? void 0 : t.s) ?? 0)))), yield n().remove();
|
|
54944
55007
|
} }, B$ = { name: "line", *create(r) {
|
|
54945
55008
|
yield* mE.create(r);
|
|
@@ -54947,11 +55010,11 @@ const P$ = { name: "circle", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54947
55010
|
var u, h, T;
|
|
54948
55011
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54949
55012
|
const n = fe(), s = fe(), a = ((u = t.props) == null ? void 0 : u.time) ?? 0, o = ((h = t.props) == null ? void 0 : h.playbackRate) ?? 1, l = (a + (e.globalTime() - t.s)) * o;
|
|
54950
|
-
yield r().add(ce(
|
|
55013
|
+
yield r().add(ce(Q1, { ref: n, ...t.frame, children: ce(u1, { ref: s, play: true, ...t.props, time: l, clipStart: t.s, clipEnd: t.e, trimStart: a }, `child-${t.id}`) }, t.id)), n() && (yield o6({ elementRef: s, containerSize: n().size(), elementSize: s().size(), objectFit: t.objectFit }), (T = t == null ? void 0 : t.props) != null && T.mediaFilter && dE(s, t.props.mediaFilter), yield* Jt(yr({ elementRef: s, containerRef: n, element: t, view: e }), QE({ containerRef: n, elementRef: s, element: t }), Ft(Math.max(0, t.e - t.s))), yield s().pause(), yield s().remove(), yield s().dispose(), yield n().remove());
|
|
54951
55014
|
} }, F$ = { name: "scene", *create({ containerRef: r, element: t, view: e }) {
|
|
54952
55015
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54953
55016
|
const n = fe();
|
|
54954
|
-
a6(`SceneElement: ${JSON.stringify(t)}`), yield r().add(ce(
|
|
55017
|
+
a6(`SceneElement: ${JSON.stringify(t)}`), yield r().add(ce(Q1, { ref: n, fill: t.backgroundColor ?? hE, size: "100%" })), t.type === xv.IMAGE ? yield* pE.create({ containerRef: r, element: t, view: e }) : t.type === xv.VIDEO && (yield* gE.create({ containerRef: r, element: t, view: e })), yield n().remove();
|
|
54955
55018
|
} }, N$ = { name: "text", *create({ containerRef: r, element: t, view: e }) {
|
|
54956
55019
|
var a, o, l, u, h, T, f, d, p, g, y, c;
|
|
54957
55020
|
const n = fe(), s = ((a = t.props) == null ? void 0 : a.backgroundColor) != null && t.props.backgroundColor !== "";
|
|
@@ -54959,12 +55022,12 @@ const P$ = { name: "circle", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54959
55022
|
const Q = fe(), m = fe(), v = fe();
|
|
54960
55023
|
yield r().add(ce(Ue, { ref: Q, text: t.t, textWrap: ((o = t.props) == null ? void 0 : o.textWrap) ?? true, textAlign: ((l = t.props) == null ? void 0 : l.textAlign) ?? "center", opacity: 0, ...t.props }, `${t.id}-measure`));
|
|
54961
55024
|
const x = new t2({ ...F0(t.props.backgroundColor), a: ((u = t.props) == null ? void 0 : u.backgroundOpacity) ?? 1 }), L = 20;
|
|
54962
|
-
yield r().add(ce(
|
|
55025
|
+
yield r().add(ce(Q1, { ref: m, fill: x, width: Q().width() + L, height: Q().height() + 4, padding: [0, L / 2], alignItems: "center", justifyContent: "center", layout: true, x: (h = t.props) == null ? void 0 : h.x, y: (T = t.props) == null ? void 0 : T.y, rotation: (f = t.props) == null ? void 0 : f.rotation, opacity: (d = t.props) == null ? void 0 : d.opacity, children: ce(Ue, { ref: v, text: t.t, textWrap: ((p = t.props) == null ? void 0 : p.textWrap) ?? true, textAlign: ((g = t.props) == null ? void 0 : g.textAlign) ?? "center", ...t.props }) }, t.id)), Q().remove(), yield* Jt(yr({ elementRef: m, element: t, view: e }), Sv({ elementRef: v, element: t }), Ft(Math.max(0, t.e - t.s))), yield m().remove();
|
|
54963
55026
|
} else yield r().add(ce(Ue, { ref: n, text: t.t, textWrap: ((y = t.props) == null ? void 0 : y.textWrap) ?? true, textAlign: ((c = t.props) == null ? void 0 : c.textAlign) ?? "center", ...t.props }, t.id)), yield* Jt(yr({ elementRef: n, element: t, view: e }), Sv({ elementRef: n, element: t }), Ft(Math.max(0, t.e - t.s))), yield n().remove();
|
|
54964
55027
|
} }, U$ = { name: "emoji", *create({ containerRef: r, element: t, view: e }) {
|
|
54965
55028
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54966
55029
|
const n = fe(), s = fe();
|
|
54967
|
-
yield r().add(ce(
|
|
55030
|
+
yield r().add(ce(Q1, { ref: n, ...t.frame, children: ce(k1, { ref: s, ...t.props }, `child-${t.id}`) }, t.id)), n() && (yield o6({ elementRef: s, containerSize: n().size(), elementSize: s().size(), objectFit: t.objectFit }), yield* Jt(yr({ elementRef: s, containerRef: n, element: t, view: e }), Ft(Math.max(0, t.e - t.s))), yield s().remove(), yield n().remove());
|
|
54968
55031
|
} };
|
|
54969
55032
|
class j$ {
|
|
54970
55033
|
constructor() {
|
|
@@ -55026,7 +55089,7 @@ function* X$({ view: r, track: t }) {
|
|
|
55026
55089
|
let e = 0;
|
|
55027
55090
|
for (const n of t.elements) {
|
|
55028
55091
|
const s = fe();
|
|
55029
|
-
yield* Ft((n == null ? void 0 : n.s) - e), e = n == null ? void 0 : n.e, a6(`Adding audio element ${n.id}`), r.add(ce(
|
|
55092
|
+
yield* Ft((n == null ? void 0 : n.s) - e), e = n == null ? void 0 : n.e, a6(`Adding audio element ${n.id}`), r.add(ce(a2, { ref: s, ...n.props }, n.id)), yield* Ft(Math.max(0, n.e - n.s)), yield s().playing(false), yield s().remove();
|
|
55030
55093
|
}
|
|
55031
55094
|
}
|
|
55032
55095
|
function* $$({ view: r, track: t }) {
|
|
@@ -55039,7 +55102,7 @@ function* $$({ view: r, track: t }) {
|
|
|
55039
55102
|
const u = l.props ?? {}, { wordsMs: h, ...T } = u, f = (T == null ? void 0 : T.useTrackDefaults) ?? true, d = f ? (s == null ? void 0 : s.capStyle) ?? a : (T == null ? void 0 : T.capStyle) ?? (s == null ? void 0 : s.capStyle) ?? a, p = vv[d] || vv[a] || {}, g = p.word || {}, y = p.rect || {}, c = { ...y, justifyContent: y.justifyContent, alignItems: y.alignItems, ...(s == null ? void 0 : s.rectProps) ?? {} }, Q = f || T == null ? void 0 : T.colors, m = s == null ? void 0 : s.colors, v = Q ?? m ?? KX, x = f || T == null ? void 0 : T.font, L = s == null ? void 0 : s.font, _ = x ?? L ?? XX, S = { ...g, ...s, ...f ? {} : T }, E = S == null ? void 0 : S.bgOpacity, A = { ...S, colors: v, stroke: v.outlineColor, font: _, fontFamily: _.family, fontSize: _.size, fontWeight: _.weight, fill: v.text, bgColor: v.bgColor, bgOpacity: E ?? (s == null ? void 0 : s.bgOpacity) ?? 1 };
|
|
55040
55103
|
yield* Ft((l == null ? void 0 : l.s) - e);
|
|
55041
55104
|
const H = fe();
|
|
55042
|
-
s == null || s.rectProps, n().add(ce(
|
|
55105
|
+
s == null || s.rectProps, n().add(ce(Q1, { ref: H, ...c, x: S.x, y: S.y, layout: true }, l.id));
|
|
55043
55106
|
const D = { ...A, ...h ? { wordsMs: h } : {} }, I = fE(d ?? "");
|
|
55044
55107
|
I != null && I.preparePhraseContainer && I.preparePhraseContainer({ phraseRef: H, phraseProps: A }), yield* (o = s2.get("caption")) == null ? void 0 : o.create({ containerRef: H, caption: { ...l, t: l.t ?? "", capStyle: f ? s == null ? void 0 : s.capStyle : (u == null ? void 0 : u.capStyle) ?? (s == null ? void 0 : s.capStyle), props: D }, view: r }), e = l.e, yield H().remove();
|
|
55045
55108
|
}
|
|
@@ -55079,7 +55142,7 @@ const Ev = (r, t) => {
|
|
|
55079
55142
|
}, eY = ZX("scene", function* (r) {
|
|
55080
55143
|
var n;
|
|
55081
55144
|
const t = H5().variables.get("input", null)(), e = H5().variables.get("playerId", null)();
|
|
55082
|
-
if (t) if (yield r.add(ce(
|
|
55145
|
+
if (t) if (yield r.add(ce(Q1, { fill: t.backgroundColor ?? hE, size: "100%" })), t.tracks) {
|
|
55083
55146
|
const s = [];
|
|
55084
55147
|
for (const a of t.tracks) switch (a.type) {
|
|
55085
55148
|
case r5.VIDEO:
|