@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.mjs
CHANGED
|
@@ -2035,7 +2035,7 @@ const LA = ({ r, g: t, b: e, alpha: n }) => {
|
|
|
2035
2035
|
e === void 0 && (e = 0);
|
|
2036
2036
|
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 };
|
|
2037
2037
|
return n !== void 0 && (a.alpha = n), a;
|
|
2038
|
-
}, Ov = Math.pow(29, 3) / Math.pow(3, 3), Iv = Math.pow(6, 3) / Math.pow(29, 3),
|
|
2038
|
+
}, 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 };
|
|
2039
2039
|
let Vl = (r) => Math.pow(r, 3) > Iv ? Math.pow(r, 3) : (116 * r - 16) / Ov;
|
|
2040
2040
|
const Vv = ({ l: r, a: t, b: e, alpha: n }) => {
|
|
2041
2041
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
@@ -2269,7 +2269,7 @@ const Bl = (r) => Math.max(r / jv, 0), HQ = ({ i: r, t, p: e, alpha: n }) => {
|
|
|
2269
2269
|
let zl = (r) => Math.pow(r, 3) > Bh ? Math.pow(r, 3) : (116 * r - 16) / zo;
|
|
2270
2270
|
const Fh = ({ l: r, a: t, b: e, alpha: n }) => {
|
|
2271
2271
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2272
|
-
let s = (r + 16) / 116, a = t / 500 + s, o = s - e / 200, l = { mode: "xyz50", x: zl(a) *
|
|
2272
|
+
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 };
|
|
2273
2273
|
return n !== void 0 && (l.alpha = n), l;
|
|
2274
2274
|
}, J5 = ({ x: r, y: t, z: e, alpha: n }) => {
|
|
2275
2275
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
@@ -2280,7 +2280,7 @@ const Fh = ({ l: r, a: t, b: e, alpha: n }) => {
|
|
|
2280
2280
|
return s !== void 0 && (a.alpha = s), a;
|
|
2281
2281
|
}, Wl = (r) => r > Bh ? Math.cbrt(r) : (zo * r + 16) / 116, Nh = ({ x: r, y: t, z: e, alpha: n }) => {
|
|
2282
2282
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2283
|
-
let s = Wl(r /
|
|
2283
|
+
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) };
|
|
2284
2284
|
return n !== void 0 && (l.alpha = n), l;
|
|
2285
2285
|
}, Xv = (r) => {
|
|
2286
2286
|
let t = Nh(t0(r));
|
|
@@ -2313,16 +2313,16 @@ const jh = { mode: "lch", toMode: { lab: ur, rgb: (r) => Kv(ur(r)) }, fromMode:
|
|
|
2313
2313
|
e === void 0 && (e = 0);
|
|
2314
2314
|
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 };
|
|
2315
2315
|
return n !== void 0 && (s.alpha = n), s;
|
|
2316
|
-
}, Jv = (r, t, e) => 4 * r / (r + 15 * t + 3 * e), tx = (r, t, e) => 9 * t / (r + 15 * t + 3 * e), $A = Jv(
|
|
2316
|
+
}, 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 }) => {
|
|
2317
2317
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2318
|
-
let s = JA(t /
|
|
2318
|
+
let s = JA(t / p1.Y), a = Jv(r, t, e), o = tx(r, t, e);
|
|
2319
2319
|
!isFinite(a) || !isFinite(o) ? s = a = o = 0 : (a = 13 * s * (a - $A), o = 13 * s * (o - YA));
|
|
2320
2320
|
let l = { mode: "luv", l: s, u: a, v: o };
|
|
2321
2321
|
return n !== void 0 && (l.alpha = n), l;
|
|
2322
|
-
}, tH = (r, t, e) => 4 * r / (r + 15 * t + 3 * e), eH = (r, t, e) => 9 * t / (r + 15 * t + 3 * e), iH = tH(
|
|
2322
|
+
}, 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 }) => {
|
|
2323
2323
|
if (r === void 0 && (r = 0), r === 0) return { mode: "xyz50", x: 0, y: 0, z: 0 };
|
|
2324
2324
|
t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2325
|
-
let s = t / (13 * r) + iH, a = e / (13 * r) + rH, o =
|
|
2325
|
+
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 };
|
|
2326
2326
|
return n !== void 0 && (h.alpha = n), h;
|
|
2327
2327
|
}, 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 }) => {
|
|
2328
2328
|
r === void 0 && (r = 0), t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
@@ -2823,7 +2823,7 @@ function ux(r, t, e) {
|
|
|
2823
2823
|
let o = Math.sin(a), l = 1 - Math.cos(a);
|
|
2824
2824
|
return t && ([o, l] = [l, o]), { x: o, y: l };
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function m2(r, ...t) {
|
|
2827
2827
|
const e = { [r.name]: r }, n = Object.getOwnPropertyDescriptor(e, r.name);
|
|
2828
2828
|
if (n) for (let s = t.length - 1; s >= 0; s--) t[s](e, r.name, n);
|
|
2829
2829
|
}
|
|
@@ -2850,7 +2850,7 @@ function e1(r) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
};
|
|
2852
2852
|
}
|
|
2853
|
-
|
|
2853
|
+
m2(JH, e1());
|
|
2854
2854
|
function* JH(r, t, e, n, s, a) {
|
|
2855
2855
|
const o = typeof n == "number" ? n : 1e-3;
|
|
2856
2856
|
a = typeof n == "number" ? a : s;
|
|
@@ -2987,7 +2987,7 @@ function hx(r, t = 0, e = 1) {
|
|
|
2987
2987
|
return Nt(t, e, r);
|
|
2988
2988
|
}
|
|
2989
2989
|
var EM = gM(), AM = yM(), HM = vM(), MM = _M(), wM = $h(), CM = SM(), DM = xM(), Tx = LM(), OM = bM();
|
|
2990
|
-
|
|
2990
|
+
m2(nr, e1());
|
|
2991
2991
|
function* nr(r, t, e) {
|
|
2992
2992
|
const n = Si(), s = n.time(), a = n.time() + r;
|
|
2993
2993
|
for (t(0, 0); a > n.fixed; ) {
|
|
@@ -2998,7 +2998,7 @@ function* nr(r, t, e) {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
new t3();
|
|
3000
3000
|
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 || {});
|
|
3001
|
-
|
|
3001
|
+
m2(Ko, e1());
|
|
3002
3002
|
function* Ko(r, ...t) {
|
|
3003
3003
|
let e = true;
|
|
3004
3004
|
typeof r == "boolean" ? e = r : t.push(r);
|
|
@@ -3014,27 +3014,27 @@ function* Ko(r, ...t) {
|
|
|
3014
3014
|
}
|
|
3015
3015
|
n.time(Math.max(a, o));
|
|
3016
3016
|
}
|
|
3017
|
-
|
|
3017
|
+
m2(Jt, e1());
|
|
3018
3018
|
function* Jt(...r) {
|
|
3019
3019
|
for (const t of r) yield t;
|
|
3020
3020
|
yield* Ko(...r);
|
|
3021
3021
|
}
|
|
3022
|
-
|
|
3022
|
+
m2(IM, e1());
|
|
3023
3023
|
function* IM(...r) {
|
|
3024
3024
|
for (const t of r) yield t;
|
|
3025
3025
|
yield* Ko(false, ...r);
|
|
3026
3026
|
}
|
|
3027
|
-
|
|
3027
|
+
m2(VM, e1());
|
|
3028
3028
|
function* VM(...r) {
|
|
3029
3029
|
for (const t of r) "next" in t ? yield* t : t();
|
|
3030
3030
|
}
|
|
3031
|
-
|
|
3031
|
+
m2(Ft, e1());
|
|
3032
3032
|
function* Ft(r = 0, t) {
|
|
3033
3033
|
const e = Si(), n = Xh().framesToSeconds(1), s = e.time() + r;
|
|
3034
3034
|
for (; s - n > e.fixed; ) yield;
|
|
3035
3035
|
e.time(s), t && (yield* t);
|
|
3036
3036
|
}
|
|
3037
|
-
|
|
3037
|
+
m2(Yi, e1());
|
|
3038
3038
|
function* Yi(r, t) {
|
|
3039
3039
|
yield* Ft(r), "next" in t ? yield* t : t();
|
|
3040
3040
|
}
|
|
@@ -3062,7 +3062,7 @@ yield* loop(10, () => rect().opacity(0).opacity(1, 1));
|
|
|
3062
3062
|
// ^ iteration count
|
|
3063
3063
|
\`\`\`
|
|
3064
3064
|
`;
|
|
3065
|
-
|
|
3065
|
+
m2(kM, e1());
|
|
3066
3066
|
function* kM(r, t) {
|
|
3067
3067
|
if (typeof r != "number" && (t = r, r = 1 / 0), r === 1 / 0 && Si().parent === null) {
|
|
3068
3068
|
Te().error({ message: "Tried to execute an infinite loop in the main thread.", remarks: PM, stack: new Error().stack });
|
|
@@ -3073,7 +3073,7 @@ function* kM(r, t) {
|
|
|
3073
3073
|
n ? yield* n : yield;
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
|
|
3076
|
+
m2(RM, e1());
|
|
3077
3077
|
function* RM(r, t) {
|
|
3078
3078
|
const e = Si(), n = Xh().framesToSeconds(1), s = e.time() + r;
|
|
3079
3079
|
let a = 0;
|
|
@@ -3101,7 +3101,7 @@ function qQ(r, t) {
|
|
|
3101
3101
|
let e;
|
|
3102
3102
|
return typeof r == "string" ? (e = t(), Va(e, r)) : (e = r(), Va(e, e)), e;
|
|
3103
3103
|
}
|
|
3104
|
-
|
|
3104
|
+
m2(BM, e1());
|
|
3105
3105
|
function* BM(r, ...t) {
|
|
3106
3106
|
for (const e of t) yield e, yield* Ft(r);
|
|
3107
3107
|
yield* Ko(...t);
|
|
@@ -3304,7 +3304,7 @@ var cr = class extends s1 {
|
|
|
3304
3304
|
function NM(r, t) {
|
|
3305
3305
|
return new FM(r, t).toSignal();
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3307
|
+
function C2(r, t = t4, e) {
|
|
3308
3308
|
return new cr(r, t, e).toSignal();
|
|
3309
3309
|
}
|
|
3310
3310
|
var Qx = class Gi {
|
|
@@ -3540,7 +3540,7 @@ Ze.topLeft = new Ze(-1, -1);
|
|
|
3540
3540
|
Ze.topRight = new Ze(1, -1);
|
|
3541
3541
|
Ze.bottomLeft = new Ze(-1, 1);
|
|
3542
3542
|
Ze.bottomRight = new Ze(1, 1);
|
|
3543
|
-
var Z = Ze, mn = class
|
|
3543
|
+
var Z = Ze, mn = class T2 {
|
|
3544
3544
|
constructor(t, e, n, s, a, o) {
|
|
3545
3545
|
if (this.values = new Float32Array(6), arguments.length === 0) {
|
|
3546
3546
|
this.values = new Float32Array([1, 0, 0, 1, 0, 0]);
|
|
@@ -3554,7 +3554,7 @@ var Z = Ze, mn = class h2 {
|
|
|
3554
3554
|
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;
|
|
3555
3555
|
return;
|
|
3556
3556
|
}
|
|
3557
|
-
if (t instanceof
|
|
3557
|
+
if (t instanceof T2) {
|
|
3558
3558
|
this.values = t.values;
|
|
3559
3559
|
return;
|
|
3560
3560
|
}
|
|
@@ -3575,13 +3575,13 @@ var Z = Ze, mn = class h2 {
|
|
|
3575
3575
|
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;
|
|
3576
3576
|
}
|
|
3577
3577
|
static fromRotation(t) {
|
|
3578
|
-
return
|
|
3578
|
+
return T2.identity.rotate(t);
|
|
3579
3579
|
}
|
|
3580
3580
|
static fromTranslation(t) {
|
|
3581
|
-
return
|
|
3581
|
+
return T2.identity.translate(new Z(t));
|
|
3582
3582
|
}
|
|
3583
3583
|
static fromScaling(t) {
|
|
3584
|
-
return
|
|
3584
|
+
return T2.identity.scale(new Z(t));
|
|
3585
3585
|
}
|
|
3586
3586
|
get x() {
|
|
3587
3587
|
return new Z(this.values[0], this.values[1]);
|
|
@@ -3649,7 +3649,7 @@ var Z = Ze, mn = class h2 {
|
|
|
3649
3649
|
get inverse() {
|
|
3650
3650
|
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];
|
|
3651
3651
|
let l = t * s - e * n;
|
|
3652
|
-
return l ? (l = 1 / l, new
|
|
3652
|
+
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;
|
|
3653
3653
|
}
|
|
3654
3654
|
get determinant() {
|
|
3655
3655
|
return this.values[0] * this.values[3] - this.values[1] * this.values[2];
|
|
@@ -3665,32 +3665,32 @@ var Z = Ze, mn = class h2 {
|
|
|
3665
3665
|
}
|
|
3666
3666
|
mul(t) {
|
|
3667
3667
|
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];
|
|
3668
|
-
return new
|
|
3668
|
+
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);
|
|
3669
3669
|
}
|
|
3670
3670
|
rotate(t, e = true) {
|
|
3671
3671
|
e && (t *= $i);
|
|
3672
3672
|
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);
|
|
3673
|
-
return new
|
|
3673
|
+
return new T2(n * T + a * h, s * T + o * h, n * -h + a * T, s * -h + o * T, l, u);
|
|
3674
3674
|
}
|
|
3675
3675
|
scale(t) {
|
|
3676
3676
|
const e = new Z(t);
|
|
3677
|
-
return new
|
|
3677
|
+
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]);
|
|
3678
3678
|
}
|
|
3679
3679
|
mulScalar(t) {
|
|
3680
|
-
return new
|
|
3680
|
+
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);
|
|
3681
3681
|
}
|
|
3682
3682
|
translate(t) {
|
|
3683
3683
|
const e = new Z(t);
|
|
3684
|
-
return new
|
|
3684
|
+
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]);
|
|
3685
3685
|
}
|
|
3686
3686
|
add(t) {
|
|
3687
|
-
return new
|
|
3687
|
+
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]);
|
|
3688
3688
|
}
|
|
3689
3689
|
sub(t) {
|
|
3690
|
-
return new
|
|
3690
|
+
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]);
|
|
3691
3691
|
}
|
|
3692
3692
|
toSymbol() {
|
|
3693
|
-
return
|
|
3693
|
+
return T2.symbol;
|
|
3694
3694
|
}
|
|
3695
3695
|
toUniform(t, e) {
|
|
3696
3696
|
t.uniformMatrix3x2fv(e, false, this.values);
|
|
@@ -3706,7 +3706,7 @@ mn.symbol = Symbol.for("@twick/core/types/Matrix2D");
|
|
|
3706
3706
|
mn.identity = new mn(1, 0, 0, 1, 0, 0);
|
|
3707
3707
|
mn.zero = new mn(0, 0, 0, 0, 0, 0);
|
|
3708
3708
|
var w5 = mn;
|
|
3709
|
-
function
|
|
3709
|
+
function m1(r, t) {
|
|
3710
3710
|
const e = new w5(t);
|
|
3711
3711
|
return new Z(r.x * e.scaleX + r.y * e.skewY + e.translateX, r.x * e.skewX + r.y * e.scaleY + e.translateY);
|
|
3712
3712
|
}
|
|
@@ -3818,10 +3818,10 @@ var mx = class n2 {
|
|
|
3818
3818
|
return new n2(Math.floor(this.x), Math.floor(this.y), Math.ceil(this.width + 1), Math.ceil(this.height + 1));
|
|
3819
3819
|
}
|
|
3820
3820
|
transform(t) {
|
|
3821
|
-
return new n2(
|
|
3821
|
+
return new n2(m1(this.position, t), Ti(this.size, t));
|
|
3822
3822
|
}
|
|
3823
3823
|
transformCorners(t) {
|
|
3824
|
-
return this.corners.map((e) =>
|
|
3824
|
+
return this.corners.map((e) => m1(e, t));
|
|
3825
3825
|
}
|
|
3826
3826
|
expand(t) {
|
|
3827
3827
|
const e = new dx(t), n = new n2(this);
|
|
@@ -3863,13 +3863,13 @@ function UM(r) {
|
|
|
3863
3863
|
const t = r >> 16 & 255, e = r >> 8 & 255, n = r & 255;
|
|
3864
3864
|
return [t / 255, e / 255, n / 255, 1];
|
|
3865
3865
|
}
|
|
3866
|
-
var gx = class
|
|
3866
|
+
var gx = class x2 {
|
|
3867
3867
|
constructor(t) {
|
|
3868
|
-
if (this.symbol =
|
|
3868
|
+
if (this.symbol = x2.symbol, t == null) {
|
|
3869
3869
|
this.r = 0, this.g = 0, this.b = 0, this.a = 1;
|
|
3870
3870
|
return;
|
|
3871
3871
|
}
|
|
3872
|
-
if (t instanceof
|
|
3872
|
+
if (t instanceof x2) {
|
|
3873
3873
|
this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a;
|
|
3874
3874
|
return;
|
|
3875
3875
|
}
|
|
@@ -3895,14 +3895,14 @@ var gx = class v2 {
|
|
|
3895
3895
|
throw new Error(`Invalid color value provided: ${t}`);
|
|
3896
3896
|
}
|
|
3897
3897
|
static lerp(t, e, n, s = "lch") {
|
|
3898
|
-
const a = t instanceof
|
|
3899
|
-
return new
|
|
3898
|
+
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;
|
|
3899
|
+
return new x2({ r: y * 255, g: c * 255, b: Q * 255, a: ye(0, 1, g) });
|
|
3900
3900
|
}
|
|
3901
3901
|
static createLerp(t = "lch") {
|
|
3902
|
-
return (e, n, s) =>
|
|
3902
|
+
return (e, n, s) => x2.lerp(e, n, s, t);
|
|
3903
3903
|
}
|
|
3904
|
-
static createSignal(t, e =
|
|
3905
|
-
return new cr(t, e, void 0, (n) => n instanceof
|
|
3904
|
+
static createSignal(t, e = x2.lerp) {
|
|
3905
|
+
return new cr(t, e, void 0, (n) => n instanceof x2 ? n : new x2(n)).toSignal();
|
|
3906
3906
|
}
|
|
3907
3907
|
toSymbol() {
|
|
3908
3908
|
return this.symbol;
|
|
@@ -3928,7 +3928,7 @@ var gx = class v2 {
|
|
|
3928
3928
|
return PH({ mode: "rgb", r: this.r, g: this.g, b: this.b, alpha: this.a });
|
|
3929
3929
|
}
|
|
3930
3930
|
lerp(t, e, n = "lch") {
|
|
3931
|
-
return
|
|
3931
|
+
return x2.lerp(this, t, e, n);
|
|
3932
3932
|
}
|
|
3933
3933
|
};
|
|
3934
3934
|
gx.symbol = Symbol.for("@twick/core/types/Color");
|
|
@@ -4006,12 +4006,12 @@ yield* all(
|
|
|
4006
4006
|
);
|
|
4007
4007
|
\`\`\`
|
|
4008
4008
|
`;
|
|
4009
|
-
|
|
4009
|
+
m2(vx, e1());
|
|
4010
4010
|
function* vx() {
|
|
4011
4011
|
}
|
|
4012
4012
|
var Jl = class {
|
|
4013
4013
|
constructor(r) {
|
|
4014
|
-
this.runner = r, this.children = [], this.time =
|
|
4014
|
+
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;
|
|
4015
4015
|
}
|
|
4016
4016
|
get fixed() {
|
|
4017
4017
|
return this.fixedTime;
|
|
@@ -4052,7 +4052,7 @@ var Jl = class {
|
|
|
4052
4052
|
function KM(r) {
|
|
4053
4053
|
return typeof (r == null ? void 0 : r.then) == "function";
|
|
4054
4054
|
}
|
|
4055
|
-
|
|
4055
|
+
m2(xx, e1());
|
|
4056
4056
|
function* xx(r, t) {
|
|
4057
4057
|
const e = Xh(), n = r();
|
|
4058
4058
|
Va(n, "root");
|
|
@@ -4232,7 +4232,7 @@ void main() {
|
|
|
4232
4232
|
}
|
|
4233
4233
|
get(r, t) {
|
|
4234
4234
|
var e;
|
|
4235
|
-
return (e = this.signals)[r] ?? (e[r] =
|
|
4235
|
+
return (e = this.signals)[r] ?? (e[r] = C2(this.variables[r] ?? t)), () => this.signals[r]();
|
|
4236
4236
|
}
|
|
4237
4237
|
updateSignals(r) {
|
|
4238
4238
|
this.variables = r, Object.keys(r).map((t) => {
|
|
@@ -4241,7 +4241,7 @@ void main() {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
}, lw = class {
|
|
4243
4243
|
constructor(r) {
|
|
4244
|
-
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,
|
|
4244
|
+
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;
|
|
4245
4245
|
}
|
|
4246
4246
|
get firstFrame() {
|
|
4247
4247
|
return this.cache.current.firstFrame;
|
|
@@ -5344,10 +5344,10 @@ class j2 {
|
|
|
5344
5344
|
}
|
|
5345
5345
|
j2.none = new j2("", /* @__PURE__ */ Object.create(null), 0, 8);
|
|
5346
5346
|
const as = /* @__PURE__ */ new WeakMap(), KQ = /* @__PURE__ */ new WeakMap();
|
|
5347
|
-
var
|
|
5347
|
+
var c1;
|
|
5348
5348
|
(function(r) {
|
|
5349
5349
|
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";
|
|
5350
|
-
})(
|
|
5350
|
+
})(c1 || (c1 = {}));
|
|
5351
5351
|
class z1 {
|
|
5352
5352
|
constructor(t, e, n, s, a) {
|
|
5353
5353
|
if (this.type = t, this.children = e, this.positions = n, this.length = s, this.props = null, a && a.length) {
|
|
@@ -5387,8 +5387,8 @@ class z1 {
|
|
|
5387
5387
|
return qw(this, t, e);
|
|
5388
5388
|
}
|
|
5389
5389
|
iterate(t) {
|
|
5390
|
-
let { enter: e, leave: n, from: s = 0, to: a = this.length } = t, o = t.mode || 0, l = (o &
|
|
5391
|
-
for (let u = this.cursor(o |
|
|
5390
|
+
let { enter: e, leave: n, from: s = 0, to: a = this.length } = t, o = t.mode || 0, l = (o & c1.IncludeAnonymous) > 0;
|
|
5391
|
+
for (let u = this.cursor(o | c1.IncludeAnonymous); ; ) {
|
|
5392
5392
|
let h = false;
|
|
5393
5393
|
if (u.from <= a && u.to >= s && (!l && u.type.isAnonymous || e(u) !== false)) {
|
|
5394
5394
|
if (u.firstChild()) continue;
|
|
@@ -5498,7 +5498,7 @@ function C5(r, t, e, n) {
|
|
|
5498
5498
|
if (!o) return r;
|
|
5499
5499
|
r = o;
|
|
5500
5500
|
}
|
|
5501
|
-
let a = n ? 0 :
|
|
5501
|
+
let a = n ? 0 : c1.IgnoreOverlays;
|
|
5502
5502
|
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);
|
|
5503
5503
|
for (; ; ) {
|
|
5504
5504
|
let o = r.enter(t, e, a);
|
|
@@ -5560,20 +5560,20 @@ class N2 extends bx {
|
|
|
5560
5560
|
for (let l = this; ; ) {
|
|
5561
5561
|
for (let { children: u, positions: h } = l._tree, T = e > 0 ? u.length : -1; t != T; t += e) {
|
|
5562
5562
|
let f = u[t], d = h[t] + l.from;
|
|
5563
|
-
if (!(!(a &
|
|
5563
|
+
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))) {
|
|
5564
5564
|
if (f instanceof hr) {
|
|
5565
|
-
if (a &
|
|
5565
|
+
if (a & c1.ExcludeBuffers) continue;
|
|
5566
5566
|
let p = f.findChild(0, f.buffer.length, e, n - d, s);
|
|
5567
5567
|
if (p > -1) return new Ji(new zw(l, f, t, d), null, p);
|
|
5568
|
-
} else if (a &
|
|
5568
|
+
} else if (a & c1.IncludeAnonymous || !f.type.isAnonymous || Jh(f)) {
|
|
5569
5569
|
let p;
|
|
5570
|
-
if (!(a &
|
|
5570
|
+
if (!(a & c1.IgnoreMounts) && (p = f5.get(f)) && !p.overlay) return new N2(p.tree, d, t, l);
|
|
5571
5571
|
let g = new N2(f, d, t, l);
|
|
5572
|
-
return a &
|
|
5572
|
+
return a & c1.IncludeAnonymous || !g.type.isAnonymous ? g : g.nextChild(e < 0 ? f.children.length - 1 : 0, e, n, s, a);
|
|
5573
5573
|
}
|
|
5574
5574
|
}
|
|
5575
5575
|
}
|
|
5576
|
-
if (a &
|
|
5576
|
+
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;
|
|
5577
5577
|
}
|
|
5578
5578
|
}
|
|
5579
5579
|
get firstChild() {
|
|
@@ -5593,8 +5593,8 @@ class N2 extends bx {
|
|
|
5593
5593
|
}
|
|
5594
5594
|
enter(t, e, n = 0) {
|
|
5595
5595
|
let s;
|
|
5596
|
-
if (!(n &
|
|
5597
|
-
let a = t - this.from, o = n &
|
|
5596
|
+
if (!(n & c1.IgnoreOverlays) && (s = f5.get(this._tree)) && s.overlay) {
|
|
5597
|
+
let a = t - this.from, o = n & c1.EnterBracketed && s.bracketed;
|
|
5598
5598
|
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);
|
|
5599
5599
|
}
|
|
5600
5600
|
return this.nextChild(0, 1, t, e, n);
|
|
@@ -5682,7 +5682,7 @@ class Ji extends bx {
|
|
|
5682
5682
|
return this.type.prop(t);
|
|
5683
5683
|
}
|
|
5684
5684
|
enter(t, e, n = 0) {
|
|
5685
|
-
if (n &
|
|
5685
|
+
if (n & c1.ExcludeBuffers) return null;
|
|
5686
5686
|
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);
|
|
5687
5687
|
return a < 0 ? null : new Ji(this.context, this, a);
|
|
5688
5688
|
}
|
|
@@ -5752,7 +5752,7 @@ class tc {
|
|
|
5752
5752
|
return this.type.name;
|
|
5753
5753
|
}
|
|
5754
5754
|
constructor(t, e = 0) {
|
|
5755
|
-
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = e & ~
|
|
5755
|
+
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = e & ~c1.EnterBracketed, t instanceof N2) this.yieldNode(t);
|
|
5756
5756
|
else {
|
|
5757
5757
|
this._tree = t.context.parent, this.buffer = t.context;
|
|
5758
5758
|
for (let n = t._parent; n; n = n._parent) this.stack.unshift(n.index);
|
|
@@ -5791,12 +5791,12 @@ class tc {
|
|
|
5791
5791
|
return this.enterChild(-1, t, -2);
|
|
5792
5792
|
}
|
|
5793
5793
|
enter(t, e, n = this.mode) {
|
|
5794
|
-
return this.buffer ? n &
|
|
5794
|
+
return this.buffer ? n & c1.ExcludeBuffers ? false : this.enterChild(1, t, e) : this.yield(this._tree.enter(t, e, n));
|
|
5795
5795
|
}
|
|
5796
5796
|
parent() {
|
|
5797
|
-
if (!this.buffer) return this.yieldNode(this.mode &
|
|
5797
|
+
if (!this.buffer) return this.yieldNode(this.mode & c1.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
5798
5798
|
if (this.stack.length) return this.yieldBuf(this.stack.pop());
|
|
5799
|
-
let t = this.mode &
|
|
5799
|
+
let t = this.mode & c1.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
5800
5800
|
return this.buffer = null, this.yieldNode(t);
|
|
5801
5801
|
}
|
|
5802
5802
|
sibling(t) {
|
|
@@ -5827,7 +5827,7 @@ class tc {
|
|
|
5827
5827
|
} else ({ index: e, _parent: n } = this._tree);
|
|
5828
5828
|
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) {
|
|
5829
5829
|
let l = n._tree.children[a];
|
|
5830
|
-
if (this.mode &
|
|
5830
|
+
if (this.mode & c1.IncludeAnonymous || l instanceof hr || !l.type.isAnonymous || Jh(l)) return false;
|
|
5831
5831
|
}
|
|
5832
5832
|
return true;
|
|
5833
5833
|
}
|
|
@@ -6477,9 +6477,9 @@ function e3(r, t, e = true, n = true) {
|
|
|
6477
6477
|
return Yw(r, t, e, n);
|
|
6478
6478
|
}
|
|
6479
6479
|
const ic = /\r\n?|\n/;
|
|
6480
|
-
var
|
|
6480
|
+
var A2 = function(r) {
|
|
6481
6481
|
return r[r.Simple = 0] = "Simple", r[r.TrackDel = 1] = "TrackDel", r[r.TrackBefore = 2] = "TrackBefore", r[r.TrackAfter = 3] = "TrackAfter", r;
|
|
6482
|
-
}(
|
|
6482
|
+
}(A2 || (A2 = {}));
|
|
6483
6483
|
class mi {
|
|
6484
6484
|
constructor(t) {
|
|
6485
6485
|
this.sections = t;
|
|
@@ -6523,7 +6523,7 @@ class mi {
|
|
|
6523
6523
|
mapDesc(t, e = false) {
|
|
6524
6524
|
return t.empty ? this : nc(this, t, e);
|
|
6525
6525
|
}
|
|
6526
|
-
mapPos(t, e = -1, n =
|
|
6526
|
+
mapPos(t, e = -1, n = A2.Simple) {
|
|
6527
6527
|
let s = 0, a = 0;
|
|
6528
6528
|
for (let o = 0; o < this.sections.length; ) {
|
|
6529
6529
|
let l = this.sections[o++], u = this.sections[o++], h = s + l;
|
|
@@ -6531,7 +6531,7 @@ class mi {
|
|
|
6531
6531
|
if (h > t) return a + (t - s);
|
|
6532
6532
|
a += l;
|
|
6533
6533
|
} else {
|
|
6534
|
-
if (n !=
|
|
6534
|
+
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;
|
|
6535
6535
|
if (h > t || h == t && e < 0 && !l) return t == s || e < 0 ? a : a + u;
|
|
6536
6536
|
a += u;
|
|
6537
6537
|
}
|
|
@@ -7425,7 +7425,7 @@ class e4 {
|
|
|
7425
7425
|
}
|
|
7426
7426
|
e4.prototype.startSide = e4.prototype.endSide = 0;
|
|
7427
7427
|
e4.prototype.point = false;
|
|
7428
|
-
e4.prototype.mapMode =
|
|
7428
|
+
e4.prototype.mapMode = A2.TrackDel;
|
|
7429
7429
|
function rT(r, t) {
|
|
7430
7430
|
return r == t || r.constructor == t.constructor && r.eq(t);
|
|
7431
7431
|
}
|
|
@@ -7891,9 +7891,9 @@ for (var j1 = 0; j1 < 10; j1++) yn[48 + j1] = yn[96 + j1] = String(j1);
|
|
|
7891
7891
|
for (var j1 = 1; j1 <= 24; j1++) yn[j1 + 111] = "F" + j1;
|
|
7892
7892
|
for (var j1 = 65; j1 <= 90; j1++) yn[j1] = String.fromCharCode(j1 + 32), Qc[j1] = String.fromCharCode(j1);
|
|
7893
7893
|
for (var r9 in yn) Qc.hasOwnProperty(r9) || (Qc[r9] = yn[r9]);
|
|
7894
|
-
let
|
|
7895
|
-
const pc = /Edge\/(\d+)/.exec(
|
|
7896
|
-
var Bt = { mac: hd || /Mac/.test(
|
|
7894
|
+
let H2 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, dc = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
7895
|
+
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);
|
|
7896
|
+
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" };
|
|
7897
7897
|
function sT(r, t) {
|
|
7898
7898
|
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];
|
|
7899
7899
|
return t;
|
|
@@ -8025,11 +8025,11 @@ class r0 extends i2 {
|
|
|
8025
8025
|
return super.range(t, e);
|
|
8026
8026
|
}
|
|
8027
8027
|
}
|
|
8028
|
-
r0.prototype.mapMode =
|
|
8028
|
+
r0.prototype.mapMode = A2.TrackBefore;
|
|
8029
8029
|
r0.prototype.point = true;
|
|
8030
8030
|
class i4 extends i2 {
|
|
8031
8031
|
constructor(t, e, n, s, a, o) {
|
|
8032
|
-
super(e, n, a, t), this.block = s, this.isReplace = o, this.mapMode = s ? e <= 0 ?
|
|
8032
|
+
super(e, n, a, t), this.block = s, this.isReplace = o, this.mapMode = s ? e <= 0 ? A2.TrackBefore : A2.TrackAfter : A2.TrackDel;
|
|
8033
8033
|
}
|
|
8034
8034
|
get type() {
|
|
8035
8035
|
return this.startSide != this.endSide ? U2.WidgetRange : this.startSide <= 0 ? U2.WidgetBefore : U2.WidgetAfter;
|
|
@@ -8683,7 +8683,7 @@ class Na {
|
|
|
8683
8683
|
}
|
|
8684
8684
|
}
|
|
8685
8685
|
const RC = [];
|
|
8686
|
-
class
|
|
8686
|
+
class g1 {
|
|
8687
8687
|
constructor(t, e, n = 0) {
|
|
8688
8688
|
this.dom = t, this.length = e, this.flags = n, this.parent = null, t.cmTile = this;
|
|
8689
8689
|
}
|
|
@@ -8771,7 +8771,7 @@ class m1 {
|
|
|
8771
8771
|
return t.cmTile;
|
|
8772
8772
|
}
|
|
8773
8773
|
}
|
|
8774
|
-
class i7 extends
|
|
8774
|
+
class i7 extends g1 {
|
|
8775
8775
|
constructor(t) {
|
|
8776
8776
|
super(t, 0), this._children = [];
|
|
8777
8777
|
}
|
|
@@ -8818,7 +8818,7 @@ class r7 extends i7 {
|
|
|
8818
8818
|
nearest(t) {
|
|
8819
8819
|
for (; ; ) {
|
|
8820
8820
|
if (!t) return null;
|
|
8821
|
-
let e =
|
|
8821
|
+
let e = g1.get(t);
|
|
8822
8822
|
if (e && this.owns(e)) return e;
|
|
8823
8823
|
t = t.parentNode;
|
|
8824
8824
|
}
|
|
@@ -8924,7 +8924,7 @@ function FC(r, t) {
|
|
|
8924
8924
|
let e = r.coordsIn(0, 1), n = t.coordsIn(0, 1);
|
|
8925
8925
|
return e && n && n.top < e.bottom;
|
|
8926
8926
|
}
|
|
8927
|
-
class
|
|
8927
|
+
class Q2 extends i7 {
|
|
8928
8928
|
constructor(t, e) {
|
|
8929
8929
|
super(t), this.mark = e;
|
|
8930
8930
|
}
|
|
@@ -8932,11 +8932,11 @@ class f2 extends i7 {
|
|
|
8932
8932
|
return this.mark.attrs;
|
|
8933
8933
|
}
|
|
8934
8934
|
static of(t, e) {
|
|
8935
|
-
let n = new
|
|
8935
|
+
let n = new Q2(e || document.createElement(t.tagName), t);
|
|
8936
8936
|
return e || (n.flags |= 4), n;
|
|
8937
8937
|
}
|
|
8938
8938
|
}
|
|
8939
|
-
class Wr extends
|
|
8939
|
+
class Wr extends g1 {
|
|
8940
8940
|
constructor(t, e) {
|
|
8941
8941
|
super(t, e.length), this.text = e;
|
|
8942
8942
|
}
|
|
@@ -8964,7 +8964,7 @@ class Wr extends m1 {
|
|
|
8964
8964
|
return e || (n.flags |= 2), n;
|
|
8965
8965
|
}
|
|
8966
8966
|
}
|
|
8967
|
-
class n4 extends
|
|
8967
|
+
class n4 extends g1 {
|
|
8968
8968
|
constructor(t, e, n, s) {
|
|
8969
8969
|
super(t, e, s), this.widget = n;
|
|
8970
8970
|
}
|
|
@@ -9006,7 +9006,7 @@ class n4 extends m1 {
|
|
|
9006
9006
|
return a || (a = t.toDOM(e), t.editable || (a.contentEditable = "false")), new n4(a, n, t, s);
|
|
9007
9007
|
}
|
|
9008
9008
|
}
|
|
9009
|
-
class Ua extends
|
|
9009
|
+
class Ua extends g1 {
|
|
9010
9010
|
constructor(t) {
|
|
9011
9011
|
let e = document.createElement("img");
|
|
9012
9012
|
e.className = "cm-widgetBuffer", e.setAttribute("aria-hidden", "true"), super(e, 0, t);
|
|
@@ -9074,18 +9074,18 @@ class jC {
|
|
|
9074
9074
|
let s = n;
|
|
9075
9075
|
for (let l = e.marks.length - 1; l >= 0; l--) {
|
|
9076
9076
|
let u = e.marks[l], h = s.lastChild;
|
|
9077
|
-
if (h instanceof
|
|
9077
|
+
if (h instanceof Q2 && h.mark.eq(u.mark)) h.dom != u.dom && h.setDOM(a9(u.dom)), s = h;
|
|
9078
9078
|
else {
|
|
9079
9079
|
if (this.cache.reused.get(u)) {
|
|
9080
|
-
let f =
|
|
9080
|
+
let f = g1.get(u.dom);
|
|
9081
9081
|
f && f.setDOM(a9(u.dom));
|
|
9082
9082
|
}
|
|
9083
|
-
let T =
|
|
9083
|
+
let T = Q2.of(u.mark, u.dom);
|
|
9084
9084
|
s.append(T), s = T;
|
|
9085
9085
|
}
|
|
9086
9086
|
this.cache.reused.set(u, 2);
|
|
9087
9087
|
}
|
|
9088
|
-
let a =
|
|
9088
|
+
let a = g1.get(t.text);
|
|
9089
9089
|
a && this.cache.reused.set(a, 2);
|
|
9090
9090
|
let o = new Wr(t.text, t.text.nodeValue);
|
|
9091
9091
|
o.flags |= 8, s.append(o);
|
|
@@ -9129,9 +9129,9 @@ class jC {
|
|
|
9129
9129
|
let s = this.curLine;
|
|
9130
9130
|
for (let a = t.length - 1; a >= 0; a--) {
|
|
9131
9131
|
let o = t[a], l;
|
|
9132
|
-
if (e > 0 && (l = s.lastChild) && l instanceof
|
|
9132
|
+
if (e > 0 && (l = s.lastChild) && l instanceof Q2 && l.mark.eq(o)) s = l, e--;
|
|
9133
9133
|
else {
|
|
9134
|
-
let u =
|
|
9134
|
+
let u = Q2.of(o, (n = this.cache.find(Q2, (h) => h.mark.eq(o))) === null || n === void 0 ? void 0 : n.dom);
|
|
9135
9135
|
s.append(u), s = u, e = 0;
|
|
9136
9136
|
}
|
|
9137
9137
|
}
|
|
@@ -9199,7 +9199,7 @@ class GC {
|
|
|
9199
9199
|
return this.textOff = e, n;
|
|
9200
9200
|
}
|
|
9201
9201
|
}
|
|
9202
|
-
const ja = [n4, Ln, Wr,
|
|
9202
|
+
const ja = [n4, Ln, Wr, Q2, Ua, sr, r7];
|
|
9203
9203
|
for (let r = 0; r < ja.length; r++) ja[r].bucket = r;
|
|
9204
9204
|
class zC {
|
|
9205
9205
|
constructor(t) {
|
|
@@ -9270,13 +9270,13 @@ class WC {
|
|
|
9270
9270
|
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;
|
|
9271
9271
|
else if (o.isLine()) o.flags &= -2, this.cache.reused.set(o, 1), this.builder.addLine(o);
|
|
9272
9272
|
else if (o instanceof Ua) this.cache.add(o);
|
|
9273
|
-
else if (o instanceof
|
|
9273
|
+
else if (o instanceof Q2) this.builder.ensureLine(null), this.builder.addMark(o, s, a), this.cache.reused.set(o, 1), a = s.length;
|
|
9274
9274
|
else return false;
|
|
9275
9275
|
this.openWidget = false;
|
|
9276
9276
|
}, enter: (o) => {
|
|
9277
|
-
o.isLine() ? this.builder.addLineStart(o.attrs, this.cache.maybeReuse(o)) : (this.cache.add(o), o instanceof
|
|
9277
|
+
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;
|
|
9278
9278
|
}, leave: (o) => {
|
|
9279
|
-
o.isLine() ? s.length && (s.length = a = 0) : o instanceof
|
|
9279
|
+
o.isLine() ? s.length && (s.length = a = 0) : o instanceof Q2 && (s.shift(), a = Math.min(a, s.length));
|
|
9280
9280
|
}, break: () => {
|
|
9281
9281
|
this.builder.addBreak(), this.openWidget = false;
|
|
9282
9282
|
} }), this.text.skip(t);
|
|
@@ -9310,9 +9310,9 @@ class WC {
|
|
|
9310
9310
|
getCompositionContext(t) {
|
|
9311
9311
|
let e = [], n = null;
|
|
9312
9312
|
for (let s = t.parentNode; ; s = s.parentNode) {
|
|
9313
|
-
let a =
|
|
9313
|
+
let a = g1.get(s);
|
|
9314
9314
|
if (s == this.view.contentDOM) break;
|
|
9315
|
-
a instanceof
|
|
9315
|
+
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));
|
|
9316
9316
|
}
|
|
9317
9317
|
return { line: n, marks: e };
|
|
9318
9318
|
}
|
|
@@ -9337,12 +9337,12 @@ function KC(r) {
|
|
|
9337
9337
|
let t = [];
|
|
9338
9338
|
for (let e = r.parents.length; e > 1; e--) {
|
|
9339
9339
|
let n = e == r.parents.length ? r.tile : r.parents[e].tile;
|
|
9340
|
-
n instanceof
|
|
9340
|
+
n instanceof Q2 && t.push(n.mark);
|
|
9341
9341
|
}
|
|
9342
9342
|
return t;
|
|
9343
9343
|
}
|
|
9344
9344
|
function a9(r) {
|
|
9345
|
-
let t =
|
|
9345
|
+
let t = g1.get(r);
|
|
9346
9346
|
return t && t.setDOM(r.cloneNode()), r;
|
|
9347
9347
|
}
|
|
9348
9348
|
class bn extends t7 {
|
|
@@ -9490,7 +9490,7 @@ class gd {
|
|
|
9490
9490
|
o < 0 ? a = t : a = t.nextSibling;
|
|
9491
9491
|
}
|
|
9492
9492
|
if (a == n.dom.firstChild) return s;
|
|
9493
|
-
for (; a && !
|
|
9493
|
+
for (; a && !g1.get(a); ) a = a.nextSibling;
|
|
9494
9494
|
if (!a) return s + n.length;
|
|
9495
9495
|
for (let o = 0, l = s; ; o++) {
|
|
9496
9496
|
let u = n.children[o];
|
|
@@ -9650,10 +9650,10 @@ function gL(r, t) {
|
|
|
9650
9650
|
if (!e.focusNode) return null;
|
|
9651
9651
|
let n = Xx(e.focusNode, e.focusOffset), s = $x(e.focusNode, e.focusOffset), a = n || s;
|
|
9652
9652
|
if (s && n && s.node != n.node) {
|
|
9653
|
-
let l =
|
|
9653
|
+
let l = g1.get(s.node);
|
|
9654
9654
|
if (!l || l.isText() && l.text != s.node.nodeValue) a = s;
|
|
9655
9655
|
else if (r.docView.lastCompositionAfterCursor) {
|
|
9656
|
-
let u =
|
|
9656
|
+
let u = g1.get(n.node);
|
|
9657
9657
|
!u || u.isText() && u.text != n.node.nodeValue || (a = s);
|
|
9658
9658
|
}
|
|
9659
9659
|
}
|
|
@@ -9939,12 +9939,12 @@ class hD {
|
|
|
9939
9939
|
this.findPointBefore(n, s);
|
|
9940
9940
|
let a = this.text.length;
|
|
9941
9941
|
this.readNode(s);
|
|
9942
|
-
let o =
|
|
9942
|
+
let o = g1.get(s), l = s.nextSibling;
|
|
9943
9943
|
if (l == e) {
|
|
9944
9944
|
o != null && o.breakAfter && !l && n != this.view.contentDOM && this.lineBreak();
|
|
9945
9945
|
break;
|
|
9946
9946
|
}
|
|
9947
|
-
let u =
|
|
9947
|
+
let u = g1.get(l);
|
|
9948
9948
|
(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;
|
|
9949
9949
|
}
|
|
9950
9950
|
return this.findPointBefore(n, e), this;
|
|
@@ -9960,7 +9960,7 @@ class hD {
|
|
|
9960
9960
|
}
|
|
9961
9961
|
}
|
|
9962
9962
|
readNode(t) {
|
|
9963
|
-
let e =
|
|
9963
|
+
let e = g1.get(t), n = e && e.overrideDOMText;
|
|
9964
9964
|
if (n != null) {
|
|
9965
9965
|
this.findPointInside(t, n.length);
|
|
9966
9966
|
for (let s = n.iter(); !s.next().done; ) s.lineBreak ? this.lineBreak() : this.append(s.value);
|
|
@@ -9983,7 +9983,7 @@ function TD(r, t, e) {
|
|
|
9983
9983
|
function fD(r, t) {
|
|
9984
9984
|
let e;
|
|
9985
9985
|
for (; !(r == t || !r); r = r.nextSibling) {
|
|
9986
|
-
let n =
|
|
9986
|
+
let n = g1.get(r);
|
|
9987
9987
|
if (!(n != null && n.isWidget())) return false;
|
|
9988
9988
|
n && (e || (e = [])).push(n);
|
|
9989
9989
|
}
|
|
@@ -10275,7 +10275,7 @@ function ED(r, t) {
|
|
|
10275
10275
|
function AD(r, t) {
|
|
10276
10276
|
if (!t.bubbles) return true;
|
|
10277
10277
|
if (t.defaultPrevented) return false;
|
|
10278
|
-
for (let e = t.target, n; e != r.contentDOM; e = e.parentNode) if (!e || e.nodeType == 11 || (n =
|
|
10278
|
+
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;
|
|
10279
10279
|
return true;
|
|
10280
10280
|
}
|
|
10281
10281
|
const r3 = /* @__PURE__ */ Object.create(null), G2 = /* @__PURE__ */ Object.create(null), SL = Bt.ie && Bt.ie_version < 15 || Bt.ios && Bt.webkit_version < 604;
|
|
@@ -10584,7 +10584,7 @@ var qe = function(r) {
|
|
|
10584
10584
|
return r[r.ByPos = 0] = "ByPos", r[r.ByHeight = 1] = "ByHeight", r[r.ByPosNoHeight = 2] = "ByPosNoHeight", r;
|
|
10585
10585
|
}(qe || (qe = {}));
|
|
10586
10586
|
const ma = 1e-3;
|
|
10587
|
-
class
|
|
10587
|
+
class u2 {
|
|
10588
10588
|
constructor(t, e, n = 2) {
|
|
10589
10589
|
this.length = t, this.height = e, this.flags = n;
|
|
10590
10590
|
}
|
|
@@ -10598,7 +10598,7 @@ class l2 {
|
|
|
10598
10598
|
this.height != t && (Math.abs(this.height - t) > ma && (_n = true), this.height = t);
|
|
10599
10599
|
}
|
|
10600
10600
|
replace(t, e, n) {
|
|
10601
|
-
return
|
|
10601
|
+
return u2.of(n);
|
|
10602
10602
|
}
|
|
10603
10603
|
decomposeLeft(t, e) {
|
|
10604
10604
|
e.push(this);
|
|
@@ -10618,7 +10618,7 @@ class l2 {
|
|
|
10618
10618
|
return a.updateHeight(n, 0);
|
|
10619
10619
|
}
|
|
10620
10620
|
static empty() {
|
|
10621
|
-
return new
|
|
10621
|
+
return new S2(0, 0, 0);
|
|
10622
10622
|
}
|
|
10623
10623
|
static of(t) {
|
|
10624
10624
|
if (t.length == 1) return t[0];
|
|
@@ -10638,15 +10638,15 @@ class l2 {
|
|
|
10638
10638
|
l && (a += l.size);
|
|
10639
10639
|
}
|
|
10640
10640
|
let o = 0;
|
|
10641
|
-
return t[e - 1] == null ? (o = 1, e--) : t[e] == null && (o = 1, n++), new RD(
|
|
10641
|
+
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)));
|
|
10642
10642
|
}
|
|
10643
10643
|
}
|
|
10644
10644
|
function za(r, t) {
|
|
10645
10645
|
return r == t ? r : (r.constructor != t.constructor && (_n = true), t);
|
|
10646
10646
|
}
|
|
10647
|
-
|
|
10647
|
+
u2.prototype.size = 1;
|
|
10648
10648
|
const kD = i2.replace({});
|
|
10649
|
-
class CL extends
|
|
10649
|
+
class CL extends u2 {
|
|
10650
10650
|
constructor(t, e, n) {
|
|
10651
10651
|
super(t, e), this.deco = n, this.spaceAbove = 0;
|
|
10652
10652
|
}
|
|
@@ -10674,7 +10674,7 @@ class CL extends l2 {
|
|
|
10674
10674
|
return `block(${this.length})`;
|
|
10675
10675
|
}
|
|
10676
10676
|
}
|
|
10677
|
-
class
|
|
10677
|
+
class S2 extends CL {
|
|
10678
10678
|
constructor(t, e, n) {
|
|
10679
10679
|
super(t, e, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0, this.spaceAbove = n;
|
|
10680
10680
|
}
|
|
@@ -10683,7 +10683,7 @@ class _2 extends CL {
|
|
|
10683
10683
|
}
|
|
10684
10684
|
replace(t, e, n) {
|
|
10685
10685
|
let s = n[0];
|
|
10686
|
-
return n.length == 1 && (s instanceof
|
|
10686
|
+
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);
|
|
10687
10687
|
}
|
|
10688
10688
|
updateHeight(t, e = 0, n = false, s) {
|
|
10689
10689
|
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;
|
|
@@ -10692,7 +10692,7 @@ class _2 extends CL {
|
|
|
10692
10692
|
return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
|
|
10693
10693
|
}
|
|
10694
10694
|
}
|
|
10695
|
-
class F1 extends
|
|
10695
|
+
class F1 extends u2 {
|
|
10696
10696
|
constructor(t) {
|
|
10697
10697
|
super(t, 0);
|
|
10698
10698
|
}
|
|
@@ -10746,7 +10746,7 @@ class F1 extends l2 {
|
|
|
10746
10746
|
let a = n[0];
|
|
10747
10747
|
a instanceof F1 ? n[0] = new F1(t + a.length) : n.unshift(new F1(t - 1), null);
|
|
10748
10748
|
}
|
|
10749
|
-
return
|
|
10749
|
+
return u2.of(n);
|
|
10750
10750
|
}
|
|
10751
10751
|
decomposeLeft(t, e) {
|
|
10752
10752
|
e.push(new F1(t - 1), null);
|
|
@@ -10763,11 +10763,11 @@ class F1 extends l2 {
|
|
|
10763
10763
|
o.length && o.push(null);
|
|
10764
10764
|
let f = s.heights[s.index++], d = 0;
|
|
10765
10765
|
f < 0 && (d = -f, f = s.heights[s.index++]), u == -1 ? u = f : Math.abs(f - u) >= ma && (u = -2);
|
|
10766
|
-
let p = new
|
|
10766
|
+
let p = new S2(T, f, d);
|
|
10767
10767
|
p.outdated = false, o.push(p), l += T + 1;
|
|
10768
10768
|
}
|
|
10769
10769
|
l <= a && o.push(null, new F1(a - l).updateHeight(t, l));
|
|
10770
|
-
let h =
|
|
10770
|
+
let h = u2.of(o);
|
|
10771
10771
|
return (u < 0 || Math.abs(h.height - this.height) >= ma || Math.abs(u - this.heightMetrics(t, e).perLine) >= ma) && (_n = true), za(this, h);
|
|
10772
10772
|
} else (n || this.outdated) && (this.setHeight(t.heightForGap(e, e + this.length)), this.outdated = false);
|
|
10773
10773
|
return this;
|
|
@@ -10776,7 +10776,7 @@ class F1 extends l2 {
|
|
|
10776
10776
|
return `gap(${this.length})`;
|
|
10777
10777
|
}
|
|
10778
10778
|
}
|
|
10779
|
-
class RD extends
|
|
10779
|
+
class RD extends u2 {
|
|
10780
10780
|
constructor(t, e, n) {
|
|
10781
10781
|
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;
|
|
10782
10782
|
}
|
|
@@ -10813,7 +10813,7 @@ class RD extends l2 {
|
|
|
10813
10813
|
let l = a.length;
|
|
10814
10814
|
this.decomposeRight(e, a), Cd(a, l);
|
|
10815
10815
|
}
|
|
10816
|
-
return
|
|
10816
|
+
return u2.of(a);
|
|
10817
10817
|
}
|
|
10818
10818
|
decomposeLeft(t, e) {
|
|
10819
10819
|
let n = this.left.length;
|
|
@@ -10826,7 +10826,7 @@ class RD extends l2 {
|
|
|
10826
10826
|
t < n && this.left.decomposeRight(t, e), this.break && t < s && e.push(null), e.push(this.right);
|
|
10827
10827
|
}
|
|
10828
10828
|
balanced(t, e) {
|
|
10829
|
-
return t.size > 2 * e.size || e.size > 2 * t.size ?
|
|
10829
|
+
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);
|
|
10830
10830
|
}
|
|
10831
10831
|
updateHeight(t, e = 0, n = false, s) {
|
|
10832
10832
|
let { left: a, right: o } = this, l = e + a.length + this.break, u = null;
|
|
@@ -10851,7 +10851,7 @@ class fT {
|
|
|
10851
10851
|
span(t, e) {
|
|
10852
10852
|
if (this.lineStart > -1) {
|
|
10853
10853
|
let n = Math.min(e, this.lineEnd), s = this.nodes[this.nodes.length - 1];
|
|
10854
|
-
s instanceof
|
|
10854
|
+
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);
|
|
10855
10855
|
}
|
|
10856
10856
|
this.pos = e;
|
|
10857
10857
|
}
|
|
@@ -10867,7 +10867,7 @@ class fT {
|
|
|
10867
10867
|
enterLine() {
|
|
10868
10868
|
if (this.lineStart > -1) return;
|
|
10869
10869
|
let { from: t, to: e } = this.oracle.doc.lineAt(this.pos);
|
|
10870
|
-
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
|
|
10870
|
+
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;
|
|
10871
10871
|
}
|
|
10872
10872
|
blankContent(t, e) {
|
|
10873
10873
|
let n = new F1(e - t);
|
|
@@ -10876,8 +10876,8 @@ class fT {
|
|
|
10876
10876
|
ensureLine() {
|
|
10877
10877
|
this.enterLine();
|
|
10878
10878
|
let t = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
|
|
10879
|
-
if (t instanceof
|
|
10880
|
-
let e = new
|
|
10879
|
+
if (t instanceof S2) return t;
|
|
10880
|
+
let e = new S2(0, -1, 0);
|
|
10881
10881
|
return this.nodes.push(e), e;
|
|
10882
10882
|
}
|
|
10883
10883
|
addBlock(t) {
|
|
@@ -10891,9 +10891,9 @@ class fT {
|
|
|
10891
10891
|
}
|
|
10892
10892
|
finish(t) {
|
|
10893
10893
|
let e = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
|
|
10894
|
-
this.lineStart > -1 && !(e instanceof
|
|
10894
|
+
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));
|
|
10895
10895
|
let n = t;
|
|
10896
|
-
for (let s of this.nodes) s instanceof
|
|
10896
|
+
for (let s of this.nodes) s instanceof S2 && s.updateHeight(this.oracle, n), n += s ? s.length : 1;
|
|
10897
10897
|
return this.nodes;
|
|
10898
10898
|
}
|
|
10899
10899
|
static build(t, e, n, s) {
|
|
@@ -10971,7 +10971,7 @@ class Dd {
|
|
|
10971
10971
|
constructor(t) {
|
|
10972
10972
|
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;
|
|
10973
10973
|
let e = t.facet(cT).some((n) => typeof n != "function" && n.class == "cm-lineWrapping");
|
|
10974
|
-
this.heightOracle = new VD(e), this.stateDeco = Id(t), this.heightMap =
|
|
10974
|
+
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)]);
|
|
10975
10975
|
for (let n = 0; n < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); n++) ;
|
|
10976
10976
|
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = i2.set(this.lineGaps.map((n) => n.draw(this, false))), this.computeVisibleRanges();
|
|
10977
10977
|
}
|
|
@@ -11034,7 +11034,7 @@ class Dd {
|
|
|
11034
11034
|
y > 0 && c > 0 ? T = Math.max(y, c) : y < 0 && c < 0 && (T = Math.min(y, c)), wd();
|
|
11035
11035
|
for (let L of this.viewports) {
|
|
11036
11036
|
let _ = L.from == this.viewport.from ? x : t.docView.measureVisibleLineHeights(L);
|
|
11037
|
-
this.heightMap = (o ?
|
|
11037
|
+
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, _));
|
|
11038
11038
|
}
|
|
11039
11039
|
_n && (h |= 2);
|
|
11040
11040
|
}
|
|
@@ -11429,7 +11429,7 @@ class XD {
|
|
|
11429
11429
|
}
|
|
11430
11430
|
function Vd(r, t, e) {
|
|
11431
11431
|
for (; t; ) {
|
|
11432
|
-
let n =
|
|
11432
|
+
let n = g1.get(t);
|
|
11433
11433
|
if (n && n.parent == r) return n;
|
|
11434
11434
|
let s = t.parentNode;
|
|
11435
11435
|
t = s != r.dom ? s : e > 0 ? t.nextSibling : t.previousSibling;
|
|
@@ -11923,7 +11923,7 @@ class Ee {
|
|
|
11923
11923
|
}
|
|
11924
11924
|
static findFromDOM(t) {
|
|
11925
11925
|
var e;
|
|
11926
|
-
let n = t.querySelector(".cm-content"), s = n &&
|
|
11926
|
+
let n = t.querySelector(".cm-content"), s = n && g1.get(n) || g1.get(t);
|
|
11927
11927
|
return ((e = s == null ? void 0 : s.root) === null || e === void 0 ? void 0 : e.view) || null;
|
|
11928
11928
|
}
|
|
11929
11929
|
}
|
|
@@ -11986,7 +11986,7 @@ class Sn extends e4 {
|
|
|
11986
11986
|
}
|
|
11987
11987
|
Sn.prototype.elementClass = "";
|
|
11988
11988
|
Sn.prototype.toDOM = void 0;
|
|
11989
|
-
Sn.prototype.mapMode =
|
|
11989
|
+
Sn.prototype.mapMode = A2.TrackBefore;
|
|
11990
11990
|
Sn.prototype.startSide = Sn.prototype.endSide = -1;
|
|
11991
11991
|
Sn.prototype.point = true;
|
|
11992
11992
|
let tO = 0;
|
|
@@ -12173,7 +12173,7 @@ class V3 {
|
|
|
12173
12173
|
V3.setState = S1.define();
|
|
12174
12174
|
function Nd(r, t, e) {
|
|
12175
12175
|
let n = r.facet(An), s = Cc(r).topNode;
|
|
12176
|
-
if (!n || n.allowsNesting) for (let a = s; a; a = a.enter(t, e,
|
|
12176
|
+
if (!n || n.allowsNesting) for (let a = s; a; a = a.enter(t, e, c1.ExcludeBuffers | c1.EnterBracketed)) a.type.isTop && (s = a);
|
|
12177
12177
|
return s;
|
|
12178
12178
|
}
|
|
12179
12179
|
function Cc(r) {
|
|
@@ -20730,7 +20730,7 @@ var q1 = {};
|
|
|
20730
20730
|
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" };
|
|
20731
20731
|
}(r.TexConstant || (r.TexConstant = {}));
|
|
20732
20732
|
})(q1);
|
|
20733
|
-
var
|
|
20733
|
+
var g2 = {}, z3 = {};
|
|
20734
20734
|
(function(r) {
|
|
20735
20735
|
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 };
|
|
20736
20736
|
function t(o, l, u, h) {
|
|
@@ -20803,8 +20803,8 @@ var On = b && b.__assign || function() {
|
|
|
20803
20803
|
}, M7 = b && b.__importDefault || function(r) {
|
|
20804
20804
|
return r && r.__esModule ? r : { default: r };
|
|
20805
20805
|
};
|
|
20806
|
-
Object.defineProperty(
|
|
20807
|
-
var IT = pk(Ut), bt = M7(Ge), A1 = M7(_e), w7 = M7(r2()), VT = q1,
|
|
20806
|
+
Object.defineProperty(g2, "__esModule", { value: true });
|
|
20807
|
+
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 };
|
|
20808
20808
|
Vt.Open = function(r, t) {
|
|
20809
20809
|
r.Push(r.itemFactory.create("open"));
|
|
20810
20810
|
};
|
|
@@ -20926,7 +20926,7 @@ Vt.MoveRoot = function(r, t, e) {
|
|
|
20926
20926
|
n = parseInt(n, 10) / 15 + "em", n.substr(0, 1) !== "-" && (n = "+" + n), r.stack.global[e] = n;
|
|
20927
20927
|
};
|
|
20928
20928
|
Vt.Accent = function(r, t, e, n) {
|
|
20929
|
-
var s = r.ParseArg(t), a = On(On({},
|
|
20929
|
+
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;
|
|
20930
20930
|
bt.default.setAttribute(u, "stretchy", !!n);
|
|
20931
20931
|
var h = bt.default.isEmbellished(s) ? bt.default.getCoreMO(s) : s;
|
|
20932
20932
|
(bt.default.isType(h, "mo") || bt.default.getProperty(h, "movablelimits")) && bt.default.setProperties(h, { movablelimits: false });
|
|
@@ -20937,23 +20937,23 @@ Vt.Accent = function(r, t, e, n) {
|
|
|
20937
20937
|
};
|
|
20938
20938
|
Vt.UnderOver = function(r, t, e, n) {
|
|
20939
20939
|
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);
|
|
20940
|
-
r.Push(
|
|
20940
|
+
r.Push(f1.default.underOver(r, l, a, o, n));
|
|
20941
20941
|
};
|
|
20942
20942
|
Vt.Overset = function(r, t) {
|
|
20943
20943
|
var e = r.ParseArg(t), n = r.ParseArg(t);
|
|
20944
|
-
|
|
20944
|
+
f1.default.checkMovableLimits(n), e.isKind("mo") && bt.default.setAttribute(e, "accent", false);
|
|
20945
20945
|
var s = r.create("node", "mover", [n, e]);
|
|
20946
20946
|
r.Push(s);
|
|
20947
20947
|
};
|
|
20948
20948
|
Vt.Underset = function(r, t) {
|
|
20949
20949
|
var e = r.ParseArg(t), n = r.ParseArg(t);
|
|
20950
|
-
|
|
20950
|
+
f1.default.checkMovableLimits(n), e.isKind("mo") && bt.default.setAttribute(e, "accent", false);
|
|
20951
20951
|
var s = r.create("node", "munder", [n, e], { accentunder: false });
|
|
20952
20952
|
r.Push(s);
|
|
20953
20953
|
};
|
|
20954
20954
|
Vt.Overunderset = function(r, t) {
|
|
20955
20955
|
var e = r.ParseArg(t), n = r.ParseArg(t), s = r.ParseArg(t);
|
|
20956
|
-
|
|
20956
|
+
f1.default.checkMovableLimits(s), e.isKind("mo") && bt.default.setAttribute(e, "accent", false), n.isKind("mo") && bt.default.setAttribute(n, "accent", false);
|
|
20957
20957
|
var a = r.create("node", "munderover", [s, n, e], { accent: false, accentunder: false });
|
|
20958
20958
|
r.Push(a);
|
|
20959
20959
|
};
|
|
@@ -20978,7 +20978,7 @@ Vt.MmlToken = function(r, t) {
|
|
|
20978
20978
|
var u = n.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);
|
|
20979
20979
|
if (!u) throw new A1.default("InvalidMathMLAttr", "Invalid MathML attribute: %1", n);
|
|
20980
20980
|
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);
|
|
20981
|
-
var h =
|
|
20981
|
+
var h = f1.default.MmlFilterAttribute(r, u[1], u[2].replace(/^(['"])(.*)\1$/, "$2"));
|
|
20982
20982
|
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);
|
|
20983
20983
|
}
|
|
20984
20984
|
o.length && (a["mjx-keep-attrs"] = o.join(" "));
|
|
@@ -20996,7 +20996,7 @@ Vt.Phantom = function(r, t, e, n) {
|
|
|
20996
20996
|
r.Push(a);
|
|
20997
20997
|
};
|
|
20998
20998
|
Vt.Smash = function(r, t) {
|
|
20999
|
-
var e =
|
|
20999
|
+
var e = f1.default.trimSpaces(r.GetBrackets(t, "")), n = r.create("node", "mpadded", [r.ParseArg(t)]);
|
|
21000
21000
|
switch (e) {
|
|
21001
21001
|
case "b":
|
|
21002
21002
|
bt.default.setAttribute(n, "depth", 0);
|
|
@@ -21057,14 +21057,14 @@ Vt.BuildRel = function(r, t) {
|
|
|
21057
21057
|
r.Push(a);
|
|
21058
21058
|
};
|
|
21059
21059
|
Vt.HBox = function(r, t, e, n) {
|
|
21060
|
-
r.PushAll(
|
|
21060
|
+
r.PushAll(f1.default.internalMath(r, r.GetArgument(t), e, n));
|
|
21061
21061
|
};
|
|
21062
21062
|
Vt.FBox = function(r, t) {
|
|
21063
|
-
var e =
|
|
21063
|
+
var e = f1.default.internalMath(r, r.GetArgument(t)), n = r.create("node", "menclose", e, { notation: "box" });
|
|
21064
21064
|
r.Push(n);
|
|
21065
21065
|
};
|
|
21066
21066
|
Vt.FrameBox = function(r, t) {
|
|
21067
|
-
var e = r.GetBrackets(t), n = r.GetBrackets(t) || "c", s =
|
|
21067
|
+
var e = r.GetBrackets(t), n = r.GetBrackets(t) || "c", s = f1.default.internalMath(r, r.GetArgument(t));
|
|
21068
21068
|
e && (s = [r.create("node", "mpadded", s, { width: e, "data-align": (0, mk.lookup)(n, { l: "left", r: "right" }, "center") })]);
|
|
21069
21069
|
var a = r.create("node", "TeXAtom", [r.create("node", "menclose", s, { notation: "box" })], { texClass: Yn.TEXCLASS.ORD });
|
|
21070
21070
|
r.Push(a);
|
|
@@ -21101,7 +21101,7 @@ Vt.Entry = function(r, t) {
|
|
|
21101
21101
|
}
|
|
21102
21102
|
var p = a.substr(r.i, u - r.i);
|
|
21103
21103
|
if (!p.match(/^\s*\\text[^a-zA-Z]/) || l !== p.replace(/\s+$/, "").length - 1) {
|
|
21104
|
-
var g =
|
|
21104
|
+
var g = f1.default.internalMath(r, f1.default.trimSpaces(p), 0);
|
|
21105
21105
|
r.PushAll(g), r.i = u;
|
|
21106
21106
|
}
|
|
21107
21107
|
}
|
|
@@ -21113,7 +21113,7 @@ Vt.CrLaTeX = function(r, t, e) {
|
|
|
21113
21113
|
e === void 0 && (e = false);
|
|
21114
21114
|
var n;
|
|
21115
21115
|
if (!e && (r.string.charAt(r.i) === "*" && r.i++, r.string.charAt(r.i) === "[")) {
|
|
21116
|
-
var s = r.GetBrackets(t, ""), a = OT(
|
|
21116
|
+
var s = r.GetBrackets(t, ""), a = OT(f1.default.matchDimen(s), 2), o = a[0], l = a[1];
|
|
21117
21117
|
if (s && !o) throw new A1.default("BracketMustBeDimension", "Bracket argument to %1 must be a dimension", r.currentCS);
|
|
21118
21118
|
n = o + l;
|
|
21119
21119
|
}
|
|
@@ -21148,7 +21148,7 @@ Vt.BeginEnd = function(r, t) {
|
|
|
21148
21148
|
}
|
|
21149
21149
|
r.stack.env.closing = e;
|
|
21150
21150
|
}
|
|
21151
|
-
|
|
21151
|
+
f1.default.checkMaxMacros(r, false), r.parse("environment", [r, e]);
|
|
21152
21152
|
};
|
|
21153
21153
|
Vt.Array = function(r, t, e, n, s, a, o, l, u) {
|
|
21154
21154
|
s || (s = r.GetArgument("\\begin{" + t.getName() + "}"));
|
|
@@ -21159,13 +21159,13 @@ Vt.Array = function(r, t, e, n, s, a, o, l, u) {
|
|
|
21159
21159
|
};
|
|
21160
21160
|
Vt.AlignedArray = function(r, t) {
|
|
21161
21161
|
var e = r.GetBrackets("\\begin{" + t.getName() + "}"), n = Vt.Array(r, t);
|
|
21162
|
-
return
|
|
21162
|
+
return f1.default.setArrayAlign(n, e);
|
|
21163
21163
|
};
|
|
21164
21164
|
Vt.Equation = function(r, t, e) {
|
|
21165
|
-
return r.Push(t),
|
|
21165
|
+
return r.Push(t), f1.default.checkEqnEnv(r), r.itemFactory.create("equation", e).setProperty("name", t.getName());
|
|
21166
21166
|
};
|
|
21167
21167
|
Vt.EqnArray = function(r, t, e, n, s, a) {
|
|
21168
|
-
r.Push(t), n &&
|
|
21168
|
+
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");
|
|
21169
21169
|
var o = r.itemFactory.create("eqnarray", t.getName(), e, n, r.stack.global);
|
|
21170
21170
|
return o.arraydef = { displaystyle: true, columnalign: s, columnspacing: a || "1em", rowspacing: "3pt", side: r.options.tagSide, minlabelspacing: r.options.tagIndent }, o;
|
|
21171
21171
|
};
|
|
@@ -21185,7 +21185,7 @@ Vt.HandleRef = function(r, t, e) {
|
|
|
21185
21185
|
s || (r.tags.refUpdate || (r.tags.redo = true), s = new sb.Label());
|
|
21186
21186
|
var a = s.tag;
|
|
21187
21187
|
e && (a = r.tags.formatTag(a));
|
|
21188
|
-
var o = r.create("node", "mrow",
|
|
21188
|
+
var o = r.create("node", "mrow", f1.default.internalMath(r, a), { href: r.tags.formatUrl(s.id, r.options.baseURL), class: "MathJax_ref" });
|
|
21189
21189
|
r.Push(o);
|
|
21190
21190
|
};
|
|
21191
21191
|
Vt.Macro = function(r, t, e, n, s) {
|
|
@@ -21196,15 +21196,15 @@ Vt.Macro = function(r, t, e, n, s) {
|
|
|
21196
21196
|
a.push(o ?? s);
|
|
21197
21197
|
}
|
|
21198
21198
|
for (var l = a.length; l < n; l++) a.push(r.GetArgument(t));
|
|
21199
|
-
e =
|
|
21199
|
+
e = f1.default.substituteArgs(r, a, e);
|
|
21200
21200
|
}
|
|
21201
|
-
r.string =
|
|
21201
|
+
r.string = f1.default.addArgs(r, e, r.string.slice(r.i)), r.i = 0, f1.default.checkMaxMacros(r);
|
|
21202
21202
|
};
|
|
21203
21203
|
Vt.MathChoice = function(r, t) {
|
|
21204
21204
|
var e = r.ParseArg(t), n = r.ParseArg(t), s = r.ParseArg(t), a = r.ParseArg(t);
|
|
21205
21205
|
r.Push(r.create("node", "MathChoice", [e, n, s, a]));
|
|
21206
21206
|
};
|
|
21207
|
-
|
|
21207
|
+
g2.default = Vt;
|
|
21208
21208
|
var h3 = {}, vk = b && b.__read || function(r, t) {
|
|
21209
21209
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
21210
21210
|
if (!e) return r;
|
|
@@ -21299,7 +21299,7 @@ var bk = b && b.__createBinding || (Object.create ? function(r, t, e, n) {
|
|
|
21299
21299
|
return _k(t, r), t;
|
|
21300
21300
|
}, PT = b && b.__importDefault || function(r) {
|
|
21301
21301
|
return r && r.__esModule ? r : { default: r };
|
|
21302
|
-
}, T3 = Sk(zt), mt = q1, kT = PT(
|
|
21302
|
+
}, T3 = Sk(zt), mt = q1, kT = PT(g2), Lr = PT(h3), Ek = PT(ze()), Zt = Gt, f2 = z3;
|
|
21303
21303
|
new T3.RegExpMap("letter", Lr.default.variable, /[a-z]/i);
|
|
21304
21304
|
new T3.RegExpMap("digit", Lr.default.digit, /[0-9.,]/);
|
|
21305
21305
|
new T3.RegExpMap("command", Lr.default.controlSequence, /^\\/);
|
|
@@ -21308,8 +21308,8 @@ new T3.CharacterMap("mathchar0mi", Lr.default.mathchar0mi, { alpha: "α", beta:
|
|
|
21308
21308
|
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 }] });
|
|
21309
21309
|
new T3.CharacterMap("mathchar7", Lr.default.mathchar7, { Gamma: "Γ", Delta: "Δ", Theta: "Θ", Lambda: "Λ", Xi: "Ξ", Pi: "Π", Sigma: "Σ", Upsilon: "Υ", Phi: "Φ", Psi: "Ψ", Omega: "Ω", _: "_", "#": "#", $: "$", "%": "%", "&": "&", And: "&" });
|
|
21310
21310
|
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": "]" });
|
|
21311
|
-
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",
|
|
21312
|
-
new T3.EnvironmentMap("environment", Lr.default.environment, { array: ["AlignedArray"], equation: ["Equation", null, true], eqnarray: ["EqnArray", null, true, true, "rcl", Ek.default.cols(0,
|
|
21311
|
+
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);
|
|
21312
|
+
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);
|
|
21313
21313
|
new T3.CharacterMap("not_remap", null, { "←": "↚", "→": "↛", "↔": "↮", "⇐": "⇍", "⇒": "⇏", "⇔": "⇎", "∈": "∉", "∋": "∌", "∣": "∤", "∥": "∦", "∼": "≁", "~": "≁", "≃": "≄", "≅": "≇", "≈": "≉", "≍": "≭", "=": "≠", "≡": "≢", "<": "≮", ">": "≯", "≤": "≰", "≥": "≱", "≲": "≴", "≳": "≵", "≶": "≸", "≷": "≹", "≺": "⊀", "≻": "⊁", "⊂": "⊄", "⊃": "⊅", "⊆": "⊈", "⊇": "⊉", "⊢": "⊬", "⊨": "⊭", "⊩": "⊮", "⊫": "⊯", "≼": "⋠", "≽": "⋡", "⊑": "⋢", "⊒": "⋣", "⊲": "⋪", "⊳": "⋫", "⊴": "⋬", "⊵": "⋭", "∃": "∄" });
|
|
21314
21314
|
var Ak = b && b.__extends || /* @__PURE__ */ function() {
|
|
21315
21315
|
var r = function(t, e) {
|
|
@@ -21496,7 +21496,7 @@ var RT = {}, Zk = {};
|
|
|
21496
21496
|
return o && o.__esModule ? o : { default: o };
|
|
21497
21497
|
};
|
|
21498
21498
|
Object.defineProperty(r, "__esModule", { value: true }), r.ActionConfiguration = r.ActionMethods = void 0;
|
|
21499
|
-
var e = Qe, n = t(r2()), s = zt, a = t(
|
|
21499
|
+
var e = Qe, n = t(r2()), s = zt, a = t(g2);
|
|
21500
21500
|
r.ActionMethods = {}, r.ActionMethods.Macro = a.default.Macro, r.ActionMethods.Toggle = function(o, l) {
|
|
21501
21501
|
for (var u = [], h; (h = o.GetArgument(l)) !== "\\endtoggle"; ) u.push(new n.default(h, o.stack.env, o.configuration).mml());
|
|
21502
21502
|
o.Push(o.create("node", "maction", u, { actiontype: "toggle" }));
|
|
@@ -21625,7 +21625,7 @@ var Jn = {};
|
|
|
21625
21625
|
return y && y.__esModule ? y : { default: y };
|
|
21626
21626
|
};
|
|
21627
21627
|
Object.defineProperty(r, "__esModule", { value: true }), r.NEW_OPS = r.AmsMethods = void 0;
|
|
21628
|
-
var s = n(ze()), a = n(h3), o = n(Ge), l = q1, u = n(r2()), h = n(_e), T = s3, f = n(
|
|
21628
|
+
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;
|
|
21629
21629
|
r.AmsMethods = {}, r.AmsMethods.AmsEqnArray = function(y, c, Q, m, v, x, L) {
|
|
21630
21630
|
var _ = y.GetBrackets("\\begin{" + c.getName() + "}"), S = f.default.EqnArray(y, c, Q, m, v, x, L);
|
|
21631
21631
|
return s.default.setArrayAlign(S, _);
|
|
@@ -21987,7 +21987,7 @@ var zT = {}, Lb = b && b.__importDefault || function(r) {
|
|
|
21987
21987
|
return r && r.__esModule ? r : { default: r };
|
|
21988
21988
|
};
|
|
21989
21989
|
Object.defineProperty(zT, "__esModule", { value: true });
|
|
21990
|
-
var gR = Lb(
|
|
21990
|
+
var gR = Lb(g2), U9 = Gt, yR = Lb(_e), O7 = {};
|
|
21991
21991
|
O7.Macro = gR.default.Macro;
|
|
21992
21992
|
O7.Braket = function(r, t, e, n, s, a) {
|
|
21993
21993
|
var o = r.GetNext();
|
|
@@ -22592,7 +22592,7 @@ var PR = {}, KT = {};
|
|
|
22592
22592
|
return g && g.__esModule ? g : { default: g };
|
|
22593
22593
|
}, n;
|
|
22594
22594
|
Object.defineProperty(r, "__esModule", { value: true }), r.CasesConfiguration = r.CasesMethods = r.CasesTags = r.CasesBeginItem = void 0;
|
|
22595
|
-
var s = Qe, a = zt, o = e(ze()), l = e(
|
|
22595
|
+
var s = Qe, a = zt, o = e(ze()), l = e(g2), u = e(_e), h = Ut, T = In, f = KT, d = function(g) {
|
|
22596
22596
|
t(y, g);
|
|
22597
22597
|
function y() {
|
|
22598
22598
|
return g !== null && g.apply(this, arguments) || this;
|
|
@@ -22663,7 +22663,7 @@ var F5 = {}, kR = b && b.__values || function(r) {
|
|
|
22663
22663
|
};
|
|
22664
22664
|
Object.defineProperty(F5, "__esModule", { value: true });
|
|
22665
22665
|
F5.CenternotConfiguration = F5.filterCenterOver = void 0;
|
|
22666
|
-
var RR = Qe, gm = XT(r2()), ym = XT(Ge), BR = zt, FR = XT(
|
|
22666
|
+
var RR = Qe, gm = XT(r2()), ym = XT(Ge), BR = zt, FR = XT(g2);
|
|
22667
22667
|
new BR.CommandMap("centernot", { centerOver: "CenterOver", centernot: ["Macro", "\\centerOver{#1}{{⧸}}", 1] }, { CenterOver: function(r, t) {
|
|
22668
22668
|
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" })]);
|
|
22669
22669
|
r.configuration.addNode("centerOver", s), r.Push(a);
|
|
@@ -22989,61 +22989,61 @@ var tB = b && b.__createBinding || (Object.create ? function(r, t, e, n) {
|
|
|
22989
22989
|
return r && r.__esModule ? r : { default: r };
|
|
22990
22990
|
};
|
|
22991
22991
|
Object.defineProperty(C0, "__esModule", { value: true });
|
|
22992
|
-
var rB = R7(_e), nB = iB(zt), sB = R7(
|
|
22992
|
+
var rB = R7(_e), nB = iB(zt), sB = R7(g2), $r = R7(ze()), d1 = R7(e6), D2 = {};
|
|
22993
22993
|
D2.NewCommand = function(r, t) {
|
|
22994
|
-
var e =
|
|
22995
|
-
|
|
22994
|
+
var e = d1.default.GetCsNameArgument(r, t), n = d1.default.GetArgCount(r, t), s = r.GetBrackets(t), a = r.GetArgument(t);
|
|
22995
|
+
d1.default.addMacro(r, e, D2.Macro, [a, n, s]);
|
|
22996
22996
|
};
|
|
22997
22997
|
D2.NewEnvironment = function(r, t) {
|
|
22998
|
-
var e = $r.default.trimSpaces(r.GetArgument(t)), n =
|
|
22999
|
-
|
|
22998
|
+
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);
|
|
22999
|
+
d1.default.addEnvironment(r, e, D2.BeginEnv, [true, a, o, n, s]);
|
|
23000
23000
|
};
|
|
23001
23001
|
D2.MacroDef = function(r, t) {
|
|
23002
|
-
var e =
|
|
23003
|
-
n instanceof Array ?
|
|
23002
|
+
var e = d1.default.GetCSname(r, t), n = d1.default.GetTemplate(r, t, "\\" + e), s = r.GetArgument(t);
|
|
23003
|
+
n instanceof Array ? d1.default.addMacro(r, e, D2.MacroWithTemplate, [s].concat(n)) : d1.default.addMacro(r, e, D2.Macro, [s, n]);
|
|
23004
23004
|
};
|
|
23005
23005
|
D2.Let = function(r, t) {
|
|
23006
|
-
var e =
|
|
23006
|
+
var e = d1.default.GetCSname(r, t), n = r.GetNext();
|
|
23007
23007
|
n === "=" && (r.i++, n = r.GetNext());
|
|
23008
23008
|
var s = r.configuration.handlers;
|
|
23009
23009
|
if (n === "\\") {
|
|
23010
|
-
t =
|
|
23010
|
+
t = d1.default.GetCSname(r, t);
|
|
23011
23011
|
var a = s.get("delimiter").lookup("\\" + t);
|
|
23012
23012
|
if (a) {
|
|
23013
|
-
|
|
23013
|
+
d1.default.addDelimiter(r, "\\" + e, a.char, a.attributes);
|
|
23014
23014
|
return;
|
|
23015
23015
|
}
|
|
23016
23016
|
var o = s.get("macro").applicable(t);
|
|
23017
23017
|
if (!o) return;
|
|
23018
23018
|
if (o instanceof nB.MacroMap) {
|
|
23019
23019
|
var l = o.lookup(t);
|
|
23020
|
-
|
|
23020
|
+
d1.default.addMacro(r, e, l.func, l.args, l.symbol);
|
|
23021
23021
|
return;
|
|
23022
23022
|
}
|
|
23023
23023
|
a = o.lookup(t);
|
|
23024
|
-
var u =
|
|
23024
|
+
var u = d1.default.disassembleSymbol(e, a), h = function(f, d) {
|
|
23025
23025
|
for (var p = [], g = 2; g < arguments.length; g++) p[g - 2] = arguments[g];
|
|
23026
|
-
var y =
|
|
23026
|
+
var y = d1.default.assembleSymbol(p);
|
|
23027
23027
|
return o.parser(f, y);
|
|
23028
23028
|
};
|
|
23029
|
-
|
|
23029
|
+
d1.default.addMacro(r, e, h, u);
|
|
23030
23030
|
return;
|
|
23031
23031
|
}
|
|
23032
23032
|
r.i++;
|
|
23033
23033
|
var T = s.get("delimiter").lookup(n);
|
|
23034
23034
|
if (T) {
|
|
23035
|
-
|
|
23035
|
+
d1.default.addDelimiter(r, "\\" + e, T.char, T.attributes);
|
|
23036
23036
|
return;
|
|
23037
23037
|
}
|
|
23038
|
-
|
|
23038
|
+
d1.default.addMacro(r, e, D2.Macro, [n]);
|
|
23039
23039
|
};
|
|
23040
23040
|
D2.MacroWithTemplate = function(r, t, e, n) {
|
|
23041
23041
|
for (var s = [], a = 4; a < arguments.length; a++) s[a - 4] = arguments[a];
|
|
23042
23042
|
var o = parseInt(n, 10);
|
|
23043
23043
|
if (o) {
|
|
23044
23044
|
var l = [];
|
|
23045
|
-
if (r.GetNext(), s[0] && !
|
|
23046
|
-
for (var u = 0; u < o; u++) l.push(
|
|
23045
|
+
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);
|
|
23046
|
+
for (var u = 0; u < o; u++) l.push(d1.default.GetParameter(r, t, s[u + 1]));
|
|
23047
23047
|
e = $r.default.substituteArgs(r, l, e);
|
|
23048
23048
|
}
|
|
23049
23049
|
r.string = $r.default.addArgs(r, e, r.string.slice(r.i)), r.i = 0, $r.default.checkMaxMacros(r);
|
|
@@ -23424,7 +23424,7 @@ function zb() {
|
|
|
23424
23424
|
return Q && Q.__esModule ? Q : { default: Q };
|
|
23425
23425
|
};
|
|
23426
23426
|
Object.defineProperty(r, "__esModule", { value: true }), r.MathtoolsMethods = void 0;
|
|
23427
|
-
var a = s(ze()), o = Jn, l = s(
|
|
23427
|
+
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();
|
|
23428
23428
|
r.MathtoolsMethods = { MtMatrix: function(Q, m, v, x) {
|
|
23429
23429
|
var L = Q.GetBrackets("\\begin{".concat(m.getName(), "}"), "c");
|
|
23430
23430
|
return r.MathtoolsMethods.Array(Q, m, v, x, L);
|
|
@@ -23883,7 +23883,7 @@ var GB = function() {
|
|
|
23883
23883
|
}, r;
|
|
23884
23884
|
}();
|
|
23885
23885
|
j7.mhchemParser = GB;
|
|
23886
|
-
function
|
|
23886
|
+
function c2(r) {
|
|
23887
23887
|
var t, e, n = {};
|
|
23888
23888
|
for (t in r) for (e in r[t]) {
|
|
23889
23889
|
var s = e.split("|");
|
|
@@ -24081,7 +24081,7 @@ var Tt = { go: function(r, t) {
|
|
|
24081
24081
|
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;
|
|
24082
24082
|
}, "9,9": function(r, t) {
|
|
24083
24083
|
return Tt.go(t, "9,9");
|
|
24084
|
-
} }, stateMachines: { tex: { transitions:
|
|
24084
|
+
} }, 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) {
|
|
24085
24085
|
var e;
|
|
24086
24086
|
if ((r.d || "").match(/^[1-9][0-9]*$/)) {
|
|
24087
24087
|
var n = r.d;
|
|
@@ -24158,27 +24158,27 @@ var Tt = { go: function(r, t) {
|
|
|
24158
24158
|
r.rq = t;
|
|
24159
24159
|
}, operator: function(r, t, e) {
|
|
24160
24160
|
return { type_: "operator", kind_: e || t };
|
|
24161
|
-
} } }, a: { transitions:
|
|
24161
|
+
} } }, 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) {
|
|
24162
24162
|
if (r.text_) {
|
|
24163
24163
|
var t = { type_: "text", p1: r.text_ };
|
|
24164
24164
|
for (var e in r) delete r[e];
|
|
24165
24165
|
return t;
|
|
24166
24166
|
}
|
|
24167
|
-
} } }, pq: { transitions:
|
|
24167
|
+
} } }, 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) {
|
|
24168
24168
|
return { type_: "state of aggregation subscript", p1: Tt.go(t, "o") };
|
|
24169
24169
|
}, "color-output": function(r, t) {
|
|
24170
24170
|
return { type_: "color", color1: t[0], color2: Tt.go(t[1], "pq") };
|
|
24171
|
-
} } }, bd: { transitions:
|
|
24171
|
+
} } }, 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) {
|
|
24172
24172
|
return { type_: "color", color1: t[0], color2: Tt.go(t[1], "bd") };
|
|
24173
|
-
} } }, oxidation: { transitions:
|
|
24173
|
+
} } }, oxidation: { transitions: c2({ empty: { "*": { action_: "roman-numeral" } }, "pm-operator": { "*": { action_: { type_: "o=+p1", option: "\\pm" } } }, else: { "*": { action_: "o=" } } }), actions: { "roman-numeral": function(r) {
|
|
24174
24174
|
return { type_: "roman numeral", p1: r.o || "" };
|
|
24175
|
-
} } }, "tex-math": { transitions:
|
|
24175
|
+
} } }, "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) {
|
|
24176
24176
|
if (r.o) {
|
|
24177
24177
|
var t = { type_: "tex-math", p1: r.o };
|
|
24178
24178
|
for (var e in r) delete r[e];
|
|
24179
24179
|
return t;
|
|
24180
24180
|
}
|
|
24181
|
-
} } }, "tex-math tight": { transitions:
|
|
24181
|
+
} } }, "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) {
|
|
24182
24182
|
r.o = (r.o || "") + "{" + t + "}";
|
|
24183
24183
|
}, output: function(r) {
|
|
24184
24184
|
if (r.o) {
|
|
@@ -24186,9 +24186,9 @@ var Tt = { go: function(r, t) {
|
|
|
24186
24186
|
for (var e in r) delete r[e];
|
|
24187
24187
|
return t;
|
|
24188
24188
|
}
|
|
24189
|
-
} } }, "9,9": { transitions:
|
|
24189
|
+
} } }, "9,9": { transitions: c2({ empty: { "*": { action_: [] } }, ",": { "*": { action_: "comma" } }, else: { "*": { action_: "copy" } } }), actions: { comma: function() {
|
|
24190
24190
|
return { type_: "commaDecimal" };
|
|
24191
|
-
} } }, pu: { transitions:
|
|
24191
|
+
} } }, 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) {
|
|
24192
24192
|
var e = [];
|
|
24193
24193
|
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;
|
|
24194
24194
|
}, "number^": function(r, t) {
|
|
@@ -24209,7 +24209,7 @@ var Tt = { go: function(r, t) {
|
|
|
24209
24209
|
} else t = Tt.go(r.d, "pu-2");
|
|
24210
24210
|
for (var a in r) delete r[a];
|
|
24211
24211
|
return t;
|
|
24212
|
-
} } }, "pu-2": { transitions:
|
|
24212
|
+
} } }, "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() {
|
|
24213
24213
|
return { type_: "tight cdot" };
|
|
24214
24214
|
}, "^(-1)": function(r, t) {
|
|
24215
24215
|
r.rm += "^{" + t + "}";
|
|
@@ -24223,7 +24223,7 @@ var Tt = { go: function(r, t) {
|
|
|
24223
24223
|
}
|
|
24224
24224
|
for (var n in r) delete r[n];
|
|
24225
24225
|
return t;
|
|
24226
|
-
} } }, "pu-9,9": { transitions:
|
|
24226
|
+
} } }, "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() {
|
|
24227
24227
|
return { type_: "commaDecimal" };
|
|
24228
24228
|
}, "output-0": function(r) {
|
|
24229
24229
|
var t = [];
|
|
@@ -24496,7 +24496,7 @@ var Tt = { go: function(r, t) {
|
|
|
24496
24496
|
};
|
|
24497
24497
|
Object.defineProperty(nf, "__esModule", { value: true });
|
|
24498
24498
|
nf.MhchemConfiguration = void 0;
|
|
24499
|
-
var zB = Qe, WB = zt, qB = qb(_e), ZB = qb(
|
|
24499
|
+
var zB = Qe, WB = zt, qB = qb(_e), ZB = qb(g2), KB = Jn, XB = j7, G7 = {};
|
|
24500
24500
|
G7.Macro = ZB.default.Macro;
|
|
24501
24501
|
G7.xArrow = KB.AmsMethods.xArrow;
|
|
24502
24502
|
G7.Machine = function(r, t, e) {
|
|
@@ -24619,7 +24619,7 @@ var uf = {}, oF = b && b.__read || function(r, t) {
|
|
|
24619
24619
|
return r && r.__esModule ? r : { default: r };
|
|
24620
24620
|
};
|
|
24621
24621
|
Object.defineProperty(uf, "__esModule", { value: true });
|
|
24622
|
-
var cf = I0(
|
|
24622
|
+
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})$/;
|
|
24623
24623
|
Oe.Quantity = function(r, t, e, n, s, a, o) {
|
|
24624
24624
|
e === void 0 && (e = "("), n === void 0 && (n = ")"), s === void 0 && (s = false), a === void 0 && (a = ""), o === void 0 && (o = "");
|
|
24625
24625
|
var l = s ? r.GetStar() : false, u = r.GetNext(), h = r.i, T = null;
|
|
@@ -24951,7 +24951,7 @@ var gF = {};
|
|
|
24951
24951
|
return d && d.__esModule ? d : { default: d };
|
|
24952
24952
|
};
|
|
24953
24953
|
Object.defineProperty(r, "__esModule", { value: true }), r.SetOptionsConfiguration = r.SetOptionsUtil = void 0;
|
|
24954
|
-
var n = Qe, s = zt, a = e(_e), o = e(ze()), l = s3, u = e(
|
|
24954
|
+
var n = Qe, s = zt, a = e(_e), o = e(ze()), l = s3, u = e(g2), h = M1;
|
|
24955
24955
|
r.SetOptionsUtil = { filterPackage: function(d, p) {
|
|
24956
24956
|
if (p !== "tex" && !n.ConfigurationHandler.get(p)) throw new a.default("NotAPackage", "Not a defined package: %1", p);
|
|
24957
24957
|
var g = d.options.setoptions, y = g.allowOptions[p];
|
|
@@ -25045,7 +25045,7 @@ var ff = {}, i6 = {}, t_ = b && b.__importDefault || function(r) {
|
|
|
25045
25045
|
};
|
|
25046
25046
|
Object.defineProperty(i6, "__esModule", { value: true });
|
|
25047
25047
|
i6.TextMacrosMethods = void 0;
|
|
25048
|
-
var xF = t_(r2()), LF = Qr, k4 = t_(
|
|
25048
|
+
var xF = t_(r2()), LF = Qr, k4 = t_(g2);
|
|
25049
25049
|
i6.TextMacrosMethods = { Comment: function(r, t) {
|
|
25050
25050
|
for (; r.i < r.string.length && r.string.charAt(r.i) !== `
|
|
25051
25051
|
`; ) r.i++;
|
|
@@ -25806,7 +25806,7 @@ var lN = function() {
|
|
|
25806
25806
|
}, r;
|
|
25807
25807
|
}();
|
|
25808
25808
|
Y7.AbstractWrapper = lN;
|
|
25809
|
-
var
|
|
25809
|
+
var d2 = {}, go = b && b.__assign || function() {
|
|
25810
25810
|
return go = Object.assign || function(r) {
|
|
25811
25811
|
for (var t, e = 1, n = arguments.length; e < n; e++) {
|
|
25812
25812
|
t = arguments[e];
|
|
@@ -25841,12 +25841,12 @@ var Q2 = {}, go = b && b.__assign || function() {
|
|
|
25841
25841
|
} };
|
|
25842
25842
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25843
25843
|
};
|
|
25844
|
-
Object.defineProperty(
|
|
25845
|
-
|
|
25844
|
+
Object.defineProperty(d2, "__esModule", { value: true });
|
|
25845
|
+
d2.FontData = d2.NOSTRETCH = d2.H = d2.V = void 0;
|
|
25846
25846
|
var Gm = M1;
|
|
25847
|
-
|
|
25848
|
-
|
|
25849
|
-
|
|
25847
|
+
d2.V = 1;
|
|
25848
|
+
d2.H = 2;
|
|
25849
|
+
d2.NOSTRETCH = { dir: 0 };
|
|
25850
25850
|
var uN = function() {
|
|
25851
25851
|
function r(t) {
|
|
25852
25852
|
var e, n, s, a;
|
|
@@ -25994,7 +25994,7 @@ var uN = function() {
|
|
|
25994
25994
|
return n[e];
|
|
25995
25995
|
}, 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;
|
|
25996
25996
|
}();
|
|
25997
|
-
|
|
25997
|
+
d2.FontData = uN;
|
|
25998
25998
|
var cN = b && b.__extends || /* @__PURE__ */ function() {
|
|
25999
25999
|
var r = function(t, e) {
|
|
26000
26000
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
|
|
@@ -26057,7 +26057,7 @@ var cN = b && b.__extends || /* @__PURE__ */ function() {
|
|
|
26057
26057
|
};
|
|
26058
26058
|
Object.defineProperty($7, "__esModule", { value: true });
|
|
26059
26059
|
$7.CommonWrapper = void 0;
|
|
26060
|
-
var dN = Y7, Wm = Gt, pN = Ye, w6 = fN(z3), qm = qn, C6 = Q3, Zm =
|
|
26060
|
+
var dN = Y7, Wm = Gt, pN = Ye, w6 = fN(z3), qm = qn, C6 = Q3, Zm = d2, Km = 2 / 18;
|
|
26061
26061
|
function Xm(r, t) {
|
|
26062
26062
|
return r ? t < Km ? 0 : Km : t;
|
|
26063
26063
|
}
|
|
@@ -26960,7 +26960,7 @@ var I6 = {}, Pn = {}, wN = b && b.__extends || /* @__PURE__ */ function() {
|
|
|
26960
26960
|
}, Ws;
|
|
26961
26961
|
Object.defineProperty(Pn, "__esModule", { value: true });
|
|
26962
26962
|
Pn.CommonMoMixin = Pn.DirectionVH = void 0;
|
|
26963
|
-
var eg = Q3, ON = Ye, IN =
|
|
26963
|
+
var eg = Q3, ON = Ye, IN = d2;
|
|
26964
26964
|
Pn.DirectionVH = (Ws = {}, Ws[1] = "v", Ws[2] = "h", Ws);
|
|
26965
26965
|
function VN(r) {
|
|
26966
26966
|
return function(t) {
|
|
@@ -31013,8 +31013,8 @@ var g8 = {}, r1 = {};
|
|
|
31013
31013
|
throw new TypeError(T ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
31014
31014
|
};
|
|
31015
31015
|
Object.defineProperty(r, "__esModule", { value: true }), r.AddPaths = r.SVGFontData = void 0;
|
|
31016
|
-
var o =
|
|
31017
|
-
s(
|
|
31016
|
+
var o = d2;
|
|
31017
|
+
s(d2, r);
|
|
31018
31018
|
var l = function(h) {
|
|
31019
31019
|
t(T, h);
|
|
31020
31020
|
function T() {
|
|
@@ -31322,7 +31322,7 @@ ul.texVariant = (0, oG.AddPaths)(lG.texVariant, { 710: "1 561Q-3 563 -6 577T-12
|
|
|
31322
31322
|
var T_ = {};
|
|
31323
31323
|
(function(r) {
|
|
31324
31324
|
Object.defineProperty(r, "__esModule", { value: true }), r.delimiters = r.VSIZES = r.HDW3 = r.HDW2 = r.HDW1 = void 0;
|
|
31325
|
-
var t =
|
|
31325
|
+
var t = d2;
|
|
31326
31326
|
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];
|
|
31327
31327
|
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 };
|
|
31328
31328
|
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 };
|
|
@@ -31633,12 +31633,12 @@ var qG = (() => {
|
|
|
31633
31633
|
(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;
|
|
31634
31634
|
for (var o1 of at) M.bufferSubData(M.ARRAY_BUFFER, $t, o1.Ra), $t += 4 * o1.Ra.length;
|
|
31635
31635
|
console.assert($t == 4 * qt);
|
|
31636
|
-
for (var
|
|
31636
|
+
for (var v2 of at) M.bufferSubData(M.ARRAY_BUFFER, $t, v2.mb), $t += 4 * v2.mb.length;
|
|
31637
31637
|
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;
|
|
31638
31638
|
for (var Y3 of at) M.bufferSubData(M.ELEMENT_ARRAY_BUFFER, o1, Y3.indices), o1 += 2 * Y3.indices.length;
|
|
31639
|
-
console.assert(o1 == 2 * Me), Y3 = 0,
|
|
31639
|
+
console.assert(o1 == 2 * Me), Y3 = 0, v2 = true, $t = o1 = 0;
|
|
31640
31640
|
for (const de of at) {
|
|
31641
|
-
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),
|
|
31641
|
+
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;
|
|
31642
31642
|
const ki = -2 / G;
|
|
31643
31643
|
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;
|
|
31644
31644
|
}
|
|
@@ -31689,7 +31689,7 @@ var qG = (() => {
|
|
|
31689
31689
|
return "rgba(" + ((16711680 & ht) >>> 16) + "," + ((65280 & ht) >>> 8) + "," + ((255 & ht) >>> 0) + "," + ((4278190080 & ht) >>> 24) / 255 + ")";
|
|
31690
31690
|
}
|
|
31691
31691
|
function O() {
|
|
31692
|
-
0 < o1.length && (u.Ab(le.drawWidth(), le.drawHeight(), o1,
|
|
31692
|
+
0 < o1.length && (u.Ab(le.drawWidth(), le.drawHeight(), o1, v2, Y3), o1 = [], Y3 = v2 = 0, le.reset(512, 512));
|
|
31693
31693
|
for (const ht of $t) {
|
|
31694
31694
|
for (const Pt of ht.ja) Pt();
|
|
31695
31695
|
ht.ja = [];
|
|
@@ -31716,8 +31716,8 @@ var qG = (() => {
|
|
|
31716
31716
|
}, addPath: function(ht, Pt, pe, me, ne, xe, Le) {
|
|
31717
31717
|
var Se = this.pa, V2 = Se.addPath;
|
|
31718
31718
|
ht = ht.pa;
|
|
31719
|
-
const
|
|
31720
|
-
|
|
31719
|
+
const v1 = new DOMMatrix();
|
|
31720
|
+
v1.a = Pt, v1.b = pe, v1.c = me, v1.d = ne, v1.e = xe, v1.f = Le, V2.call(Se, ht, v1);
|
|
31721
31721
|
}, fillRule: function(ht) {
|
|
31722
31722
|
this.Ta = ht;
|
|
31723
31723
|
}, moveTo: function(ht, Pt) {
|
|
@@ -31775,9 +31775,9 @@ var qG = (() => {
|
|
|
31775
31775
|
var Le = xe.lb;
|
|
31776
31776
|
const V2 = xe.Za;
|
|
31777
31777
|
var Se = xe.$a;
|
|
31778
|
-
const
|
|
31778
|
+
const v1 = xe.Pa;
|
|
31779
31779
|
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);
|
|
31780
|
-
for (let m3 = 0, C1 =
|
|
31780
|
+
for (let m3 = 0, C1 = v1.length; m3 < C1; m3++) Le = v1[m3], ne.addColorStop(Le.stop, M(Le.color));
|
|
31781
31781
|
this.Ua = ne, this.za = null;
|
|
31782
31782
|
}
|
|
31783
31783
|
switch (me) {
|
|
@@ -31789,7 +31789,7 @@ var qG = (() => {
|
|
|
31789
31789
|
}
|
|
31790
31790
|
} });
|
|
31791
31791
|
const $t = /* @__PURE__ */ new Set();
|
|
31792
|
-
let le = null, o1 = [],
|
|
31792
|
+
let le = null, o1 = [], v2 = 0, Y3 = 0;
|
|
31793
31793
|
var de = e.CanvasRenderer = nt.extend("Renderer", { __construct: function(ht) {
|
|
31794
31794
|
this.__parent.__construct.call(this), this.oa = [1, 0, 0, 1, 0, 0], this.ha = ht.getContext("2d"), this.Sa = ht, this.ja = [];
|
|
31795
31795
|
}, save: function() {
|
|
@@ -31817,17 +31817,17 @@ var qG = (() => {
|
|
|
31817
31817
|
}, _getMatrix: function(ht) {
|
|
31818
31818
|
const Pt = this.oa, pe = Pt.length - 6;
|
|
31819
31819
|
for (let me = 0; 6 > me; ++me) ht[me] = Pt[pe + me];
|
|
31820
|
-
}, _drawImageMesh: function(ht, Pt, pe, me, ne, xe, Le, Se, V2,
|
|
31820
|
+
}, _drawImageMesh: function(ht, Pt, pe, me, ne, xe, Le, Se, V2, v1) {
|
|
31821
31821
|
var m3 = this.ha.canvas.width, C1 = this.ha.canvas.height;
|
|
31822
|
-
const pQ = V2 - Le, mQ =
|
|
31823
|
-
Le = Math.max(Le, 0), Se = Math.max(Se, 0), V2 = Math.min(V2, m3),
|
|
31824
|
-
const T6 = V2 - Le, f6 =
|
|
31822
|
+
const pQ = V2 - Le, mQ = v1 - Se;
|
|
31823
|
+
Le = Math.max(Le, 0), Se = Math.max(Se, 0), V2 = Math.min(V2, m3), v1 = Math.min(v1, C1);
|
|
31824
|
+
const T6 = V2 - Le, f6 = v1 - Se;
|
|
31825
31825
|
if (console.assert(T6 <= Math.min(pQ, m3)), console.assert(f6 <= Math.min(mQ, C1)), !(0 >= T6 || 0 >= f6)) {
|
|
31826
|
-
V2 = T6 < pQ || f6 < mQ, m3 =
|
|
31827
|
-
var _r = Math.ceil(T6 *
|
|
31828
|
-
C1 = u.Mb(), _r > C1 && (
|
|
31826
|
+
V2 = T6 < pQ || f6 < mQ, m3 = v1 = 1;
|
|
31827
|
+
var _r = Math.ceil(T6 * v1), Sr = Math.ceil(f6 * m3);
|
|
31828
|
+
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));
|
|
31829
31829
|
var gQ = C1 & 65535, yQ = C1 >> 16;
|
|
31830
|
-
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:
|
|
31830
|
+
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;
|
|
31831
31831
|
var H4 = this.ha, UE = C(Pt);
|
|
31832
31832
|
this.ja.push(function() {
|
|
31833
31833
|
H4.save(), H4.resetTransform(), H4.globalCompositeOperation = UE, H4.globalAlpha = pe, H4.drawImage(u.canvas(), gQ, yQ, _r, Sr, Le, Se, T6, f6), H4.restore();
|
|
@@ -32099,7 +32099,7 @@ var qG = (() => {
|
|
|
32099
32099
|
return this.fromWireType(I[C >> 2]);
|
|
32100
32100
|
}
|
|
32101
32101
|
var A4 = {}, z0 = {};
|
|
32102
|
-
function
|
|
32102
|
+
function y2(C, M, O) {
|
|
32103
32103
|
function V(et) {
|
|
32104
32104
|
et = O(et), et.length !== C.length && U0("Mismatched type converter count");
|
|
32105
32105
|
for (var ut = 0; ut < C.length; ++ut) p3(C[ut], et[ut]);
|
|
@@ -32603,7 +32603,7 @@ var qG = (() => {
|
|
|
32603
32603
|
var M = G0[C];
|
|
32604
32604
|
delete G0[C];
|
|
32605
32605
|
var O = M.Oa, V = M.ra, B = M.ab, j = B.map((nt) => nt.Ib).concat(B.map((nt) => nt.Tb));
|
|
32606
|
-
|
|
32606
|
+
y2([C], j, (nt) => {
|
|
32607
32607
|
var et = {};
|
|
32608
32608
|
return B.forEach((ut, tt) => {
|
|
32609
32609
|
var gt = nt[tt], Ct = ut.Gb, Dt = ut.Hb, G = nt[tt + B.length], at = ut.Sb, qt = ut.Ub;
|
|
@@ -32641,15 +32641,15 @@ var qG = (() => {
|
|
|
32641
32641
|
var G = Ot(gt);
|
|
32642
32642
|
_l(G, function() {
|
|
32643
32643
|
X3(`Cannot construct ${gt} due to unbound types`, [V]);
|
|
32644
|
-
}),
|
|
32644
|
+
}), y2([C, M, O], V ? [V] : [], function(at) {
|
|
32645
32645
|
if (at = at[0], V) var qt = at.ca, Me = qt.ma;
|
|
32646
32646
|
else Me = Pi.prototype;
|
|
32647
32647
|
at = It(G, function() {
|
|
32648
32648
|
if (Object.getPrototypeOf(this) !== $t) throw new oe("Use 'new' to construct " + gt);
|
|
32649
32649
|
if (le.sa === void 0) throw new oe(gt + " has no accessible constructor");
|
|
32650
|
-
var
|
|
32651
|
-
if (
|
|
32652
|
-
return
|
|
32650
|
+
var v2 = le.sa[arguments.length];
|
|
32651
|
+
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!`);
|
|
32652
|
+
return v2.apply(this, arguments);
|
|
32653
32653
|
});
|
|
32654
32654
|
var $t = Object.create(Me, { constructor: { value: at } });
|
|
32655
32655
|
at.prototype = $t;
|
|
@@ -32660,7 +32660,7 @@ var qG = (() => {
|
|
|
32660
32660
|
});
|
|
32661
32661
|
}, j: function(C, M, O, V, B, j, nt) {
|
|
32662
32662
|
var et = K0(O, V);
|
|
32663
|
-
M = Re(M), j = K1(B, j),
|
|
32663
|
+
M = Re(M), j = K1(B, j), y2([], [C], function(ut) {
|
|
32664
32664
|
function tt() {
|
|
32665
32665
|
X3(`Cannot call ${gt} due to unbound types`, et);
|
|
32666
32666
|
}
|
|
@@ -32668,13 +32668,13 @@ var qG = (() => {
|
|
|
32668
32668
|
var gt = `${ut.name}.${M}`;
|
|
32669
32669
|
M.startsWith("@@") && (M = Symbol[M.substring(2)]);
|
|
32670
32670
|
var Ct = ut.ca.constructor;
|
|
32671
|
-
return Ct[M] === void 0 ? (tt.va = O - 1, Ct[M] = tt) : (bl(Ct, M, gt), Ct[M].ga[O - 1] = tt),
|
|
32671
|
+
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) {
|
|
32672
32672
|
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);
|
|
32673
32673
|
return [];
|
|
32674
32674
|
}), [];
|
|
32675
32675
|
});
|
|
32676
32676
|
}, x: function(C, M, O, V, B, j, nt, et) {
|
|
32677
|
-
M = Re(M), j = K1(B, j),
|
|
32677
|
+
M = Re(M), j = K1(B, j), y2([], [C], function(ut) {
|
|
32678
32678
|
ut = ut[0];
|
|
32679
32679
|
var tt = `${ut.name}.${M}`, gt = { get() {
|
|
32680
32680
|
X3(`Cannot access ${tt} due to unbound types`, [O]);
|
|
@@ -32683,7 +32683,7 @@ var qG = (() => {
|
|
|
32683
32683
|
X3(`Cannot access ${tt} due to unbound types`, [O]);
|
|
32684
32684
|
} : () => {
|
|
32685
32685
|
Lt(`${tt} is a read-only property`);
|
|
32686
|
-
}, Object.defineProperty(ut.ca.constructor, M, gt),
|
|
32686
|
+
}, Object.defineProperty(ut.ca.constructor, M, gt), y2([], [O], function(Ct) {
|
|
32687
32687
|
Ct = Ct[0];
|
|
32688
32688
|
var Dt = { get() {
|
|
32689
32689
|
return Ct.fromWireType(j(V));
|
|
@@ -32696,19 +32696,19 @@ var qG = (() => {
|
|
|
32696
32696
|
});
|
|
32697
32697
|
}, s: function(C, M, O, V, B, j) {
|
|
32698
32698
|
var nt = K0(M, O);
|
|
32699
|
-
B = K1(V, B),
|
|
32699
|
+
B = K1(V, B), y2([], [C], function(et) {
|
|
32700
32700
|
et = et[0];
|
|
32701
32701
|
var ut = `constructor ${et.name}`;
|
|
32702
32702
|
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!`);
|
|
32703
32703
|
return et.ca.sa[M - 1] = () => {
|
|
32704
32704
|
X3(`Cannot construct ${et.name} due to unbound types`, nt);
|
|
32705
|
-
},
|
|
32705
|
+
}, y2([], nt, function(tt) {
|
|
32706
32706
|
return tt.splice(1, 0, null), et.ca.sa[M - 1] = Z0(ut, tt, null, B, j), [];
|
|
32707
32707
|
}), [];
|
|
32708
32708
|
});
|
|
32709
32709
|
}, a: function(C, M, O, V, B, j, nt, et) {
|
|
32710
32710
|
var ut = K0(O, V);
|
|
32711
|
-
M = Re(M), j = K1(B, j),
|
|
32711
|
+
M = Re(M), j = K1(B, j), y2([], [C], function(tt) {
|
|
32712
32712
|
function gt() {
|
|
32713
32713
|
X3(`Cannot call ${Ct} due to unbound types`, ut);
|
|
32714
32714
|
}
|
|
@@ -32716,12 +32716,12 @@ var qG = (() => {
|
|
|
32716
32716
|
var Ct = `${tt.name}.${M}`;
|
|
32717
32717
|
M.startsWith("@@") && (M = Symbol[M.substring(2)]), et && tt.ca.gb.push(M);
|
|
32718
32718
|
var Dt = tt.ca.ma, G = Dt[M];
|
|
32719
|
-
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),
|
|
32719
|
+
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) {
|
|
32720
32720
|
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, [];
|
|
32721
32721
|
}), [];
|
|
32722
32722
|
});
|
|
32723
32723
|
}, e: function(C, M, O, V, B, j, nt, et, ut, tt) {
|
|
32724
|
-
M = Re(M), B = K1(V, B),
|
|
32724
|
+
M = Re(M), B = K1(V, B), y2([], [C], function(gt) {
|
|
32725
32725
|
gt = gt[0];
|
|
32726
32726
|
var Ct = `${gt.name}.${M}`, Dt = { get() {
|
|
32727
32727
|
X3(`Cannot access ${Ct} due to unbound types`, [O, nt]);
|
|
@@ -32730,7 +32730,7 @@ var qG = (() => {
|
|
|
32730
32730
|
X3(`Cannot access ${Ct} due to unbound types`, [O, nt]);
|
|
32731
32731
|
} : () => {
|
|
32732
32732
|
Lt(Ct + " is a read-only property");
|
|
32733
|
-
}, Object.defineProperty(gt.ca.ma, M, Dt),
|
|
32733
|
+
}, Object.defineProperty(gt.ca.ma, M, Dt), y2([], ut ? [O, nt] : [O], function(G) {
|
|
32734
32734
|
var at = G[0], qt = { get() {
|
|
32735
32735
|
var $t = nQ(this, gt, Ct + " getter");
|
|
32736
32736
|
return at.fromWireType(B(j, $t));
|
|
@@ -32775,7 +32775,7 @@ var qG = (() => {
|
|
|
32775
32775
|
var nt = K0(M, O);
|
|
32776
32776
|
C = Re(C), B = K1(V, B), _l(C, function() {
|
|
32777
32777
|
X3(`Cannot call ${C} due to unbound types`, nt);
|
|
32778
|
-
}, M - 1),
|
|
32778
|
+
}, M - 1), y2([], nt, function(et) {
|
|
32779
32779
|
return iQ(C, Z0(C, [et[0], null].concat(et.slice(1)), null, B, j), M - 1), [];
|
|
32780
32780
|
});
|
|
32781
32781
|
}, l: function(C, M, O, V, B) {
|
|
@@ -33301,7 +33301,7 @@ class p_ {
|
|
|
33301
33301
|
t[Ne.AUDIO] = null, t[Ne.VIDEO] = null, t[Ne.AUDIOVIDEO] = null;
|
|
33302
33302
|
}
|
|
33303
33303
|
}
|
|
33304
|
-
function
|
|
33304
|
+
function h1(r) {
|
|
33305
33305
|
return r.sn !== "initSegment";
|
|
33306
33306
|
}
|
|
33307
33307
|
class Tu extends p_ {
|
|
@@ -33368,7 +33368,7 @@ class Tu extends p_ {
|
|
|
33368
33368
|
this._programDateTime = t;
|
|
33369
33369
|
}
|
|
33370
33370
|
get ref() {
|
|
33371
|
-
return
|
|
33371
|
+
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;
|
|
33372
33372
|
}
|
|
33373
33373
|
addStart(t) {
|
|
33374
33374
|
this.setStart(this.start + t);
|
|
@@ -33429,7 +33429,7 @@ function oz(r, t) {
|
|
|
33429
33429
|
e && (e.enumerable = true, Object.defineProperty(r, t, e));
|
|
33430
33430
|
}
|
|
33431
33431
|
const Rg = Math.pow(2, 32) - 1, lz = [].push, g_ = { video: 1, audio: 2, id3: 3, text: 4 };
|
|
33432
|
-
function
|
|
33432
|
+
function x1(r) {
|
|
33433
33433
|
return String.fromCharCode.apply(null, r);
|
|
33434
33434
|
}
|
|
33435
33435
|
function y_(r, t) {
|
|
@@ -33461,7 +33461,7 @@ function ae(r, t) {
|
|
|
33461
33461
|
if (!t.length) return e;
|
|
33462
33462
|
const n = r.byteLength;
|
|
33463
33463
|
for (let s = 0; s < n; ) {
|
|
33464
|
-
const a = Yt(r, s), o =
|
|
33464
|
+
const a = Yt(r, s), o = x1(r.subarray(s + 4, s + 8)), l = a > 1 ? s + a : n;
|
|
33465
33465
|
if (o === t[0]) if (t.length === 1) e.push(r.subarray(s + 8, l));
|
|
33466
33466
|
else {
|
|
33467
33467
|
const u = ae(r.subarray(s + 8, l), t.slice(1));
|
|
@@ -33503,7 +33503,7 @@ function x_(r) {
|
|
|
33503
33503
|
l = h[0];
|
|
33504
33504
|
const T = Yt(h, l === 0 ? 12 : 20), f = ae(a, ["mdia", "hdlr"])[0];
|
|
33505
33505
|
if (f) {
|
|
33506
|
-
const d =
|
|
33506
|
+
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);
|
|
33507
33507
|
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 };
|
|
33508
33508
|
}
|
|
33509
33509
|
}
|
|
@@ -33515,7 +33515,7 @@ function x_(r) {
|
|
|
33515
33515
|
}), t;
|
|
33516
33516
|
}
|
|
33517
33517
|
function hz(r) {
|
|
33518
|
-
const t = r.subarray(8), e = t.subarray(86), n =
|
|
33518
|
+
const t = r.subarray(8), e = t.subarray(86), n = x1(t.subarray(4, 8));
|
|
33519
33519
|
let s = n, a;
|
|
33520
33520
|
const o = n === "enca" || n === "encv";
|
|
33521
33521
|
if (o) {
|
|
@@ -33523,10 +33523,10 @@ function hz(r) {
|
|
|
33523
33523
|
ae(h, ["sinf"]).forEach((f) => {
|
|
33524
33524
|
const d = ae(f, ["schm"])[0];
|
|
33525
33525
|
if (d) {
|
|
33526
|
-
const p =
|
|
33526
|
+
const p = x1(d.subarray(4, 8));
|
|
33527
33527
|
if (p === "cbcs" || p === "cenc") {
|
|
33528
33528
|
const g = ae(f, ["frma"])[0];
|
|
33529
|
-
g && (s =
|
|
33529
|
+
g && (s = x1(g));
|
|
33530
33530
|
}
|
|
33531
33531
|
}
|
|
33532
33532
|
});
|
|
@@ -33658,7 +33658,7 @@ function L_(r, t) {
|
|
|
33658
33658
|
function b_(r) {
|
|
33659
33659
|
const t = ae(r, ["schm"])[0];
|
|
33660
33660
|
if (t) {
|
|
33661
|
-
const e =
|
|
33661
|
+
const e = x1(t.subarray(4, 8));
|
|
33662
33662
|
if (e === "cbcs" || e === "cenc") {
|
|
33663
33663
|
const n = ae(r, ["schi", "tenc"])[0];
|
|
33664
33664
|
if (n) return n;
|
|
@@ -33847,17 +33847,17 @@ function gz(r) {
|
|
|
33847
33847
|
const t = r[0];
|
|
33848
33848
|
let e = "", n = "", s = 0, a = 0, o = 0, l = 0, u = 0, h = 0;
|
|
33849
33849
|
if (t === 0) {
|
|
33850
|
-
for (;
|
|
33851
|
-
for (e +=
|
|
33852
|
-
n +=
|
|
33850
|
+
for (; x1(r.subarray(h, h + 1)) !== "\0"; ) e += x1(r.subarray(h, h + 1)), h += 1;
|
|
33851
|
+
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;
|
|
33852
|
+
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;
|
|
33853
33853
|
} else if (t === 1) {
|
|
33854
33854
|
h += 4, s = Yt(r, h), h += 4;
|
|
33855
33855
|
const f = Yt(r, h);
|
|
33856
33856
|
h += 4;
|
|
33857
33857
|
const d = Yt(r, h);
|
|
33858
|
-
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;
|
|
33859
|
-
for (e +=
|
|
33860
|
-
n +=
|
|
33858
|
+
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;
|
|
33859
|
+
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;
|
|
33860
|
+
n += x1(r.subarray(h, h + 1)), h += 1;
|
|
33861
33861
|
}
|
|
33862
33862
|
const T = r.subarray(h, r.byteLength);
|
|
33863
33863
|
return { schemeIdUri: e, value: n, timeScale: s, presentationTime: o, presentationTimeDelta: a, eventDuration: l, id: u, payload: T };
|
|
@@ -34689,7 +34689,7 @@ function Kz(r) {
|
|
|
34689
34689
|
function Qh(r) {
|
|
34690
34690
|
return r === 0 && navigator.onLine === false;
|
|
34691
34691
|
}
|
|
34692
|
-
var N1 = { DoNothing: 0, SendAlternateToPenaltyBox: 2, RemoveAlternatePermanently: 3, RetryRequest: 5 },
|
|
34692
|
+
var N1 = { DoNothing: 0, SendAlternateToPenaltyBox: 2, RemoveAlternatePermanently: 3, RetryRequest: 5 }, b2 = { None: 0, MoveAllAlternatesMatchingHost: 1, MoveAllAlternatesMatchingHDCP: 2, MoveAllAlternatesMatchingKey: 4 };
|
|
34693
34693
|
class Xz extends q2 {
|
|
34694
34694
|
constructor(t) {
|
|
34695
34695
|
super("error-controller", t.logger), this.hls = void 0, this.playlistError = 0, this.hls = t, this.registerListeners();
|
|
@@ -34776,18 +34776,18 @@ class Xz extends q2 {
|
|
|
34776
34776
|
if (a) {
|
|
34777
34777
|
const u = s.loadLevelObj;
|
|
34778
34778
|
if (u && (a.type === ue.AUDIO_TRACK && u.hasAudioGroup(a.groupId) || a.type === ue.SUBTITLE_TRACK && u.hasSubtitleGroup(a.groupId))) {
|
|
34779
|
-
e.errorAction = this.getPlaylistRetryOrSwitchAction(e, s.loadLevel), e.errorAction.action = N1.SendAlternateToPenaltyBox, e.errorAction.flags =
|
|
34779
|
+
e.errorAction = this.getPlaylistRetryOrSwitchAction(e, s.loadLevel), e.errorAction.action = N1.SendAlternateToPenaltyBox, e.errorAction.flags = b2.MoveAllAlternatesMatchingHost;
|
|
34780
34780
|
return;
|
|
34781
34781
|
}
|
|
34782
34782
|
}
|
|
34783
34783
|
return;
|
|
34784
34784
|
case q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:
|
|
34785
|
-
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34785
|
+
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags: b2.MoveAllAlternatesMatchingHDCP };
|
|
34786
34786
|
return;
|
|
34787
34787
|
case q.KEY_SYSTEM_SESSION_UPDATE_FAILED:
|
|
34788
34788
|
case q.KEY_SYSTEM_STATUS_INTERNAL_ERROR:
|
|
34789
34789
|
case q.KEY_SYSTEM_NO_SESSION:
|
|
34790
|
-
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34790
|
+
e.errorAction = { action: N1.SendAlternateToPenaltyBox, flags: b2.MoveAllAlternatesMatchingKey };
|
|
34791
34791
|
return;
|
|
34792
34792
|
case q.BUFFER_ADD_CODEC_ERROR:
|
|
34793
34793
|
case q.REMUX_ALLOC_ERROR:
|
|
@@ -34811,13 +34811,13 @@ class Xz extends q2 {
|
|
|
34811
34811
|
}
|
|
34812
34812
|
getPlaylistRetryOrSwitchAction(t, e) {
|
|
34813
34813
|
const n = this.hls, s = Xg(n.config.playlistLoadPolicy, t), a = this.playlistError++;
|
|
34814
|
-
if (Ao(s, a, Eo(t), t.response)) return { action: N1.RetryRequest, flags:
|
|
34814
|
+
if (Ao(s, a, Eo(t), t.response)) return { action: N1.RetryRequest, flags: b2.None, retryConfig: s, retryCount: a };
|
|
34815
34815
|
const l = this.getLevelSwitchAction(t, e);
|
|
34816
34816
|
return s && (l.retryConfig = s, l.retryCount = a), l;
|
|
34817
34817
|
}
|
|
34818
34818
|
getFragRetryOrSwitchAction(t) {
|
|
34819
34819
|
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);
|
|
34820
|
-
if (s && (t.details !== q.FRAG_GAP && s.fragmentError++, !I_(t) && Ao(l, u, Eo(t), t.response))) return { action: N1.RetryRequest, flags:
|
|
34820
|
+
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 };
|
|
34821
34821
|
const h = this.getLevelSwitchAction(t, n);
|
|
34822
34822
|
return l && (h.retryConfig = l, h.retryCount = u), h;
|
|
34823
34823
|
}
|
|
@@ -34852,9 +34852,9 @@ class Xz extends q2 {
|
|
|
34852
34852
|
break;
|
|
34853
34853
|
}
|
|
34854
34854
|
}
|
|
34855
|
-
if (T > -1 && n.loadLevel !== T) return t.levelRetry = true, this.playlistError = 0, { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34855
|
+
if (T > -1 && n.loadLevel !== T) return t.levelRetry = true, this.playlistError = 0, { action: N1.SendAlternateToPenaltyBox, flags: b2.None, nextAutoLevel: T };
|
|
34856
34856
|
}
|
|
34857
|
-
return { action: N1.SendAlternateToPenaltyBox, flags:
|
|
34857
|
+
return { action: N1.SendAlternateToPenaltyBox, flags: b2.MoveAllAlternatesMatchingHost };
|
|
34858
34858
|
}
|
|
34859
34859
|
onErrorOut(t, e) {
|
|
34860
34860
|
var n;
|
|
@@ -34875,10 +34875,10 @@ class Xz extends q2 {
|
|
|
34875
34875
|
if (!n) return;
|
|
34876
34876
|
const { flags: s } = n, a = n.nextAutoLevel;
|
|
34877
34877
|
switch (s) {
|
|
34878
|
-
case
|
|
34878
|
+
case b2.None:
|
|
34879
34879
|
this.switchLevel(t, a);
|
|
34880
34880
|
break;
|
|
34881
|
-
case
|
|
34881
|
+
case b2.MoveAllAlternatesMatchingHDCP: {
|
|
34882
34882
|
const u = this.getVariantLevelIndex(t.frag), h = e.levels[u], T = h == null ? void 0 : h.attrs["HDCP-LEVEL"];
|
|
34883
34883
|
if (n.hdcpLevel = T, T === "NONE") this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");
|
|
34884
34884
|
else if (T) {
|
|
@@ -34886,7 +34886,7 @@ class Xz extends q2 {
|
|
|
34886
34886
|
break;
|
|
34887
34887
|
}
|
|
34888
34888
|
}
|
|
34889
|
-
case
|
|
34889
|
+
case b2.MoveAllAlternatesMatchingKey: {
|
|
34890
34890
|
const u = t.decryptdata;
|
|
34891
34891
|
if (u) {
|
|
34892
34892
|
const h = this.hls.levels, T = h.length;
|
|
@@ -34914,10 +34914,10 @@ class Xz extends q2 {
|
|
|
34914
34914
|
}
|
|
34915
34915
|
}
|
|
34916
34916
|
function cn(r) {
|
|
34917
|
-
const t = { action: N1.DoNothing, flags:
|
|
34917
|
+
const t = { action: N1.DoNothing, flags: b2.None };
|
|
34918
34918
|
return r && (t.resolved = true), t;
|
|
34919
34919
|
}
|
|
34920
|
-
var
|
|
34920
|
+
var L1 = { NOT_LOADED: "NOT_LOADED", APPENDING: "APPENDING", PARTIAL: "PARTIAL", OK: "OK" };
|
|
34921
34921
|
class $z {
|
|
34922
34922
|
constructor(t) {
|
|
34923
34923
|
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();
|
|
@@ -35032,7 +35032,7 @@ class $z {
|
|
|
35032
35032
|
}
|
|
35033
35033
|
getState(t) {
|
|
35034
35034
|
const e = j4(t), n = this.fragments[e];
|
|
35035
|
-
return n ? n.buffered ? Xs(n) ?
|
|
35035
|
+
return n ? n.buffered ? Xs(n) ? L1.PARTIAL : L1.OK : L1.APPENDING : L1.NOT_LOADED;
|
|
35036
35036
|
}
|
|
35037
35037
|
isTimeBuffered(t, e, n) {
|
|
35038
35038
|
let s, a;
|
|
@@ -36539,10 +36539,10 @@ function wo(r, t) {
|
|
|
36539
36539
|
const h = (u - l) / 1e3 - (a.start - s.start);
|
|
36540
36540
|
K_(h, r);
|
|
36541
36541
|
}
|
|
36542
|
-
function
|
|
36543
|
-
|
|
36542
|
+
function o2(r, t, e) {
|
|
36543
|
+
p2(r, t, e), r.addEventListener(t, e);
|
|
36544
36544
|
}
|
|
36545
|
-
function
|
|
36545
|
+
function p2(r, t, e) {
|
|
36546
36546
|
r.removeEventListener(t, e);
|
|
36547
36547
|
}
|
|
36548
36548
|
const wW = { toString: function(r) {
|
|
@@ -36642,14 +36642,14 @@ class Mf extends V_ {
|
|
|
36642
36642
|
}
|
|
36643
36643
|
onMediaAttached(t, e) {
|
|
36644
36644
|
const n = this.media = this.mediaBuffer = e.media;
|
|
36645
|
-
|
|
36645
|
+
o2(n, "seeking", this.onMediaSeeking), o2(n, "ended", this.onMediaEnded);
|
|
36646
36646
|
const s = this.config;
|
|
36647
36647
|
this.levels && s.autoStartLoad && this.state === it.STOPPED && this.startLoad(s.startPosition);
|
|
36648
36648
|
}
|
|
36649
36649
|
onMediaDetaching(t, e) {
|
|
36650
36650
|
const n = !!e.transferMedia, s = this.media;
|
|
36651
36651
|
if (s !== null) {
|
|
36652
|
-
if (s.ended && (this.log("MSE detaching and video ended, reset startPosition"), this.startPosition = this.lastCurrentTime = 0),
|
|
36652
|
+
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) {
|
|
36653
36653
|
this.resetLoadingState(), this.resetTransmuxer();
|
|
36654
36654
|
return;
|
|
36655
36655
|
}
|
|
@@ -36697,10 +36697,10 @@ class Mf extends V_ {
|
|
|
36697
36697
|
clearTrackerIfNeeded(t) {
|
|
36698
36698
|
var e;
|
|
36699
36699
|
const { fragmentTracker: n } = this;
|
|
36700
|
-
if (n.getState(t) ===
|
|
36700
|
+
if (n.getState(t) === L1.APPENDING) {
|
|
36701
36701
|
const a = t.type, o = this.getFwdBufferInfo(this.mediaBuffer, a), l = Math.max(t.duration, o ? o.len : this.config.maxBufferLength), u = this.backtrackFragment;
|
|
36702
36702
|
((u ? t.sn - u.sn : 0) === 1 || this.reduceMaxBufferLength(l, t.duration)) && n.removeFragment(t);
|
|
36703
|
-
} 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) ===
|
|
36703
|
+
} 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));
|
|
36704
36704
|
}
|
|
36705
36705
|
checkLiveUpdate(t) {
|
|
36706
36706
|
if (t.updated && !t.live) {
|
|
@@ -36760,7 +36760,7 @@ class Mf extends V_ {
|
|
|
36760
36760
|
}
|
|
36761
36761
|
fragBufferedComplete(t, e) {
|
|
36762
36762
|
const n = this.mediaBuffer ? this.mediaBuffer : this.media;
|
|
36763
|
-
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)"})`),
|
|
36763
|
+
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)) {
|
|
36764
36764
|
var s;
|
|
36765
36765
|
if (t.type !== Mt.SUBTITLE) {
|
|
36766
36766
|
const o = t.elementaryStreams;
|
|
@@ -36794,11 +36794,11 @@ class Mf extends V_ {
|
|
|
36794
36794
|
}), this.hls.trigger(w.KEY_LOADING, { frag: t }), this.fragCurrent === null) return this.log("context changed in KEY_LOADING"), Promise.resolve(null);
|
|
36795
36795
|
} else t.encrypted || (l = this.keyLoader.loadClear(t, o.encryptedFragments, this.startFragRequested), l && this.log("[eme] blocking frag load until media-keys acquired"));
|
|
36796
36796
|
const u = this.fragPrevious;
|
|
36797
|
-
if (
|
|
36797
|
+
if (h1(t) && (!u || t.sn !== u.sn)) {
|
|
36798
36798
|
const d = this.shouldLoadParts(e.details, t.end);
|
|
36799
36799
|
d !== this.loadingParts && (this.log(`LL-Part loading ${d ? "ON" : "OFF"} loading sn ${u == null ? void 0 : u.sn}->${t.sn}`), this.loadingParts = d);
|
|
36800
36800
|
}
|
|
36801
|
-
if (n = Math.max(t.start, n || 0), this.loadingParts &&
|
|
36801
|
+
if (n = Math.max(t.start, n || 0), this.loadingParts && h1(t)) {
|
|
36802
36802
|
const d = o.partList;
|
|
36803
36803
|
if (d && s) {
|
|
36804
36804
|
n > o.fragmentEnd && o.fragmentHint && (t = o.fragmentHint);
|
|
@@ -36811,7 +36811,7 @@ class Mf extends V_ {
|
|
|
36811
36811
|
} else if (!t.url || this.loadedEndOfParts(d, n)) return Promise.resolve(null);
|
|
36812
36812
|
}
|
|
36813
36813
|
}
|
|
36814
|
-
if (
|
|
36814
|
+
if (h1(t) && this.loadingParts) {
|
|
36815
36815
|
var h;
|
|
36816
36816
|
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;
|
|
36817
36817
|
} else if (!t.url) return Promise.resolve(null);
|
|
@@ -36956,7 +36956,7 @@ class Mf extends V_ {
|
|
|
36956
36956
|
}
|
|
36957
36957
|
isLoopLoading(t, e) {
|
|
36958
36958
|
const n = this.fragmentTracker.getState(t);
|
|
36959
|
-
return (n ===
|
|
36959
|
+
return (n === L1.OK || n === L1.PARTIAL && !!t.gap) && this.nextLoadPosition > e;
|
|
36960
36960
|
}
|
|
36961
36961
|
getNextFragmentLoopLoading(t, e, n, s, a) {
|
|
36962
36962
|
let o = null;
|
|
@@ -37046,9 +37046,9 @@ class Mf extends V_ {
|
|
|
37046
37046
|
} else d = o[o.length - 1];
|
|
37047
37047
|
if (d) {
|
|
37048
37048
|
const g = d.sn - n.startSN, y = this.fragmentTracker.getState(d);
|
|
37049
|
-
if ((y ===
|
|
37049
|
+
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) {
|
|
37050
37050
|
const Q = o[g + 1];
|
|
37051
|
-
d.sn < l && this.fragmentTracker.getState(Q) !==
|
|
37051
|
+
d.sn < l && this.fragmentTracker.getState(Q) !== L1.OK ? d = Q : d = null;
|
|
37052
37052
|
}
|
|
37053
37053
|
}
|
|
37054
37054
|
return d;
|
|
@@ -37084,7 +37084,7 @@ class Mf extends V_ {
|
|
|
37084
37084
|
return (t = this.hls) != null && t.hasEnoughToStart && e ? n = e.currentTime : this.nextLoadPosition >= 0 && (n = this.nextLoadPosition), n;
|
|
37085
37085
|
}
|
|
37086
37086
|
handleFragLoadAborted(t, e) {
|
|
37087
|
-
this.transmuxer && t.type === this.playlistType &&
|
|
37087
|
+
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));
|
|
37088
37088
|
}
|
|
37089
37089
|
resetFragmentLoading(t) {
|
|
37090
37090
|
(!this.fragCurrent || !this.fragContextChanged(t) && this.state !== it.FRAG_LOADING_WAITING_RETRY) && (this.state = it.IDLE);
|
|
@@ -37109,8 +37109,8 @@ class Mf extends V_ {
|
|
|
37109
37109
|
this.state = it.ERROR;
|
|
37110
37110
|
return;
|
|
37111
37111
|
}
|
|
37112
|
-
const { action: u, flags: h, retryCount: T = 0, retryConfig: f } = l, d = !!f, p = d && u === N1.RetryRequest, g = d && !l.resolved && h ===
|
|
37113
|
-
if (!p && g &&
|
|
37112
|
+
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;
|
|
37113
|
+
if (!p && g && h1(s) && !s.endList && y && !I_(e)) this.resetFragmentErrors(t), this.treatAsGap(s), l.resolved = true;
|
|
37114
37114
|
else if ((p || g) && T < f.maxNumRetry) {
|
|
37115
37115
|
var c;
|
|
37116
37116
|
const Q = Qh((c = e.response) == null ? void 0 : c.code), m = _f(f, T);
|
|
@@ -37564,7 +37564,7 @@ function Of(r) {
|
|
|
37564
37564
|
if (sS(n)) return eq(n);
|
|
37565
37565
|
}
|
|
37566
37566
|
}
|
|
37567
|
-
let
|
|
37567
|
+
let E2 = function(r) {
|
|
37568
37568
|
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;
|
|
37569
37569
|
}({});
|
|
37570
37570
|
function w3(r = "", t = 9e4) {
|
|
@@ -37592,11 +37592,11 @@ class If {
|
|
|
37592
37592
|
this.cachedData && (t = W2(this.cachedData, t), this.cachedData = null);
|
|
37593
37593
|
let n = K5(t, 0), s = n ? n.length : 0, a;
|
|
37594
37594
|
const o = this._audioTrack, l = this._id3Track, u = n ? Of(n) : void 0, h = t.length;
|
|
37595
|
-
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:
|
|
37595
|
+
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; ) {
|
|
37596
37596
|
if (this.canParse(t, s)) {
|
|
37597
37597
|
const T = this.appendFrame(o, t, s);
|
|
37598
37598
|
T ? (this.frameIndex++, this.lastPTS = T.sample.pts, s += T.length, a = s) : s = h;
|
|
37599
|
-
} else jW(t, s) ? (n = K5(t, s), l.samples.push({ pts: this.lastPTS, dts: this.lastPTS, data: n, type:
|
|
37599
|
+
} 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++;
|
|
37600
37600
|
if (s === h && a !== h) {
|
|
37601
37601
|
const T = t.slice(a);
|
|
37602
37602
|
this.cachedData ? this.cachedData = W2(this.cachedData, T) : this.cachedData = T;
|
|
@@ -37804,10 +37804,10 @@ class Tq {
|
|
|
37804
37804
|
let u = o.eventDuration === 4294967295 ? Number.POSITIVE_INFINITY : o.eventDuration / o.timeScale;
|
|
37805
37805
|
u <= 1e-3 && (u = Number.POSITIVE_INFINITY);
|
|
37806
37806
|
const h = o.payload;
|
|
37807
|
-
n.samples.push({ data: h, len: h.byteLength, dts: l, pts: l, type:
|
|
37807
|
+
n.samples.push({ data: h, len: h.byteLength, dts: l, pts: l, type: E2.emsg, duration: u });
|
|
37808
37808
|
} else if (this.config.enableEmsgKLVMetadata && o.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")) {
|
|
37809
37809
|
const l = by(o, e);
|
|
37810
|
-
n.samples.push({ data: o.payload, len: o.payload.byteLength, dts: l, pts: l, type:
|
|
37810
|
+
n.samples.push({ data: o.payload, len: o.payload.byteLength, dts: l, pts: l, type: E2.misbklv, duration: Number.POSITIVE_INFINITY });
|
|
37811
37811
|
}
|
|
37812
37812
|
});
|
|
37813
37813
|
}
|
|
@@ -38547,7 +38547,7 @@ class Ki {
|
|
|
38547
38547
|
this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");
|
|
38548
38548
|
return;
|
|
38549
38549
|
}
|
|
38550
|
-
const n = ke({}, e, { type: this._videoTrack ?
|
|
38550
|
+
const n = ke({}, e, { type: this._videoTrack ? E2.emsg : E2.audioId3, duration: Number.POSITIVE_INFINITY });
|
|
38551
38551
|
t.samples.push(n);
|
|
38552
38552
|
}
|
|
38553
38553
|
}
|
|
@@ -38881,7 +38881,7 @@ class xa extends q2 {
|
|
|
38881
38881
|
let e = false;
|
|
38882
38882
|
const n = t[0].pts, s = t.reduce((a, o) => {
|
|
38883
38883
|
let l = o.pts, u = l - a;
|
|
38884
|
-
return u < -4294967296 && (e = true, l =
|
|
38884
|
+
return u < -4294967296 && (e = true, l = _2(l, n), u = l - a), u > 0 ? a : l;
|
|
38885
38885
|
}, n);
|
|
38886
38886
|
return e && this.debug("PTS rollover detected"), s;
|
|
38887
38887
|
}
|
|
@@ -38904,7 +38904,7 @@ class xa extends q2 {
|
|
|
38904
38904
|
} else I === -1 && (this.warn(`No keyframe found out of ${v} video samples`), g = false);
|
|
38905
38905
|
if (this.ISGenerated) {
|
|
38906
38906
|
if (x && L) {
|
|
38907
|
-
const R = this.getVideoStartPts(e.samples), X = (
|
|
38907
|
+
const R = this.getVideoStartPts(e.samples), X = (_2(t.samples[0].pts, R) - R) / e.inputTimeScale;
|
|
38908
38908
|
y += Math.max(0, X), c += Math.max(0, -X);
|
|
38909
38909
|
}
|
|
38910
38910
|
if (x) {
|
|
@@ -38920,7 +38920,7 @@ class xa extends q2 {
|
|
|
38920
38920
|
}
|
|
38921
38921
|
computeInitPts(t, e, n, s) {
|
|
38922
38922
|
const a = Math.round(n * e);
|
|
38923
|
-
let o =
|
|
38923
|
+
let o = _2(t, a);
|
|
38924
38924
|
if (o < a + e) for (this.log(`Adjusting PTS for rollover in timeline near ${(a - o) / e} ${s}`); o < a + e; ) o += 8589934592;
|
|
38925
38925
|
return o - a;
|
|
38926
38926
|
}
|
|
@@ -38940,7 +38940,7 @@ class xa extends q2 {
|
|
|
38940
38940
|
}
|
|
38941
38941
|
if (e.sps && e.pps && o.length) {
|
|
38942
38942
|
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) {
|
|
38943
|
-
const c = this.getVideoStartPts(o), Q =
|
|
38943
|
+
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");
|
|
38944
38944
|
p = Math.min(p, m), d = Math.min(d, v);
|
|
38945
38945
|
} else T = false;
|
|
38946
38946
|
this.videoTrackConfig = { width: e.width, height: e.height, pixelRatio: e.pixelRatio };
|
|
@@ -38951,13 +38951,13 @@ class xa extends q2 {
|
|
|
38951
38951
|
const a = t.inputTimeScale, o = t.samples, l = [], u = o.length, h = this._initPTS, T = h.baseTime * a / h.timescale;
|
|
38952
38952
|
let f = this.nextVideoTs, d = 8, p = this.videoSampleDuration, g, y, c = Number.POSITIVE_INFINITY, Q = Number.NEGATIVE_INFINITY, m = false;
|
|
38953
38953
|
if (!n || f === null) {
|
|
38954
|
-
const N = T + e * a, K = o[0].pts -
|
|
38954
|
+
const N = T + e * a, K = o[0].pts - _2(o[0].dts, o[0].pts);
|
|
38955
38955
|
W4 && f !== null && Math.abs(N - K - (f + T)) < 15e3 ? n = true : f = N - K - T;
|
|
38956
38956
|
}
|
|
38957
38957
|
const v = f + T;
|
|
38958
38958
|
for (let N = 0; N < u; N++) {
|
|
38959
38959
|
const K = o[N];
|
|
38960
|
-
K.pts =
|
|
38960
|
+
K.pts = _2(K.pts, v), K.dts = _2(K.dts, v), K.dts < o[N > 0 ? N - 1 : N].dts && (m = true);
|
|
38961
38961
|
}
|
|
38962
38962
|
m && o.sort(function(N, K) {
|
|
38963
38963
|
const J = N.dts - K.dts, ft = N.pts - K.pts;
|
|
@@ -39061,8 +39061,8 @@ class xa extends q2 {
|
|
|
39061
39061
|
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;
|
|
39062
39062
|
let y = t.samples, c = d ? 0 : 8, Q = this.nextAudioTs || -1;
|
|
39063
39063
|
const m = f.baseTime * o / f.timescale, v = m + e * o;
|
|
39064
|
-
if (this.isAudioContiguous = n = n || y.length && Q > 0 && (s && Math.abs(v - (Q + m)) < 9e3 || Math.abs(
|
|
39065
|
-
X.pts =
|
|
39064
|
+
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) {
|
|
39065
|
+
X.pts = _2(X.pts, v);
|
|
39066
39066
|
}), !n || Q < 0) {
|
|
39067
39067
|
const X = y.length;
|
|
39068
39068
|
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;
|
|
@@ -39117,7 +39117,7 @@ class xa extends q2 {
|
|
|
39117
39117
|
return this.isAudioContiguous = true, F;
|
|
39118
39118
|
}
|
|
39119
39119
|
}
|
|
39120
|
-
function
|
|
39120
|
+
function _2(r, t) {
|
|
39121
39121
|
let e;
|
|
39122
39122
|
if (t === null) return r;
|
|
39123
39123
|
for (t < r ? e = -8589934592 : e = 8589934592; Math.abs(r - t) > 4294967296; ) r += e;
|
|
@@ -39133,7 +39133,7 @@ function QS(r, t, e, n) {
|
|
|
39133
39133
|
const a = r.inputTimeScale;
|
|
39134
39134
|
for (let l = 0; l < s; l++) {
|
|
39135
39135
|
const u = r.samples[l];
|
|
39136
|
-
u.pts =
|
|
39136
|
+
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;
|
|
39137
39137
|
}
|
|
39138
39138
|
const o = r.samples;
|
|
39139
39139
|
return r.samples = [], { samples: o };
|
|
@@ -39144,7 +39144,7 @@ function dS(r, t, e) {
|
|
|
39144
39144
|
const s = r.inputTimeScale;
|
|
39145
39145
|
for (let o = 0; o < n; o++) {
|
|
39146
39146
|
const l = r.samples[o];
|
|
39147
|
-
l.pts =
|
|
39147
|
+
l.pts = _2(l.pts - e.baseTime * s / e.timescale, t * s) / s;
|
|
39148
39148
|
}
|
|
39149
39149
|
r.samples.sort((o, l) => o.pts - l.pts);
|
|
39150
39150
|
const a = r.samples;
|
|
@@ -39618,7 +39618,7 @@ class Cq extends Mf {
|
|
|
39618
39618
|
return;
|
|
39619
39619
|
}
|
|
39620
39620
|
let m = ((t = this.mainFragLoading) == null ? void 0 : t.frag) || null;
|
|
39621
|
-
if (!this.audioOnly && this.startFragRequested && m &&
|
|
39621
|
+
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))) {
|
|
39622
39622
|
if (Q.start > m.end) {
|
|
39623
39623
|
const x = this.fragmentTracker.getFragAtPos(c, Mt.MAIN);
|
|
39624
39624
|
x && x.end > m.end && (m = x, this.mainFragLoading = { frag: x, targetBufferTime: null });
|
|
@@ -39718,7 +39718,7 @@ class Cq extends Mf {
|
|
|
39718
39718
|
n && (this.mediaBuffer = n.buffer || null);
|
|
39719
39719
|
}
|
|
39720
39720
|
onFragLoading(t, e) {
|
|
39721
|
-
!this.audioOnly && e.frag.type === Mt.MAIN &&
|
|
39721
|
+
!this.audioOnly && e.frag.type === Mt.MAIN && h1(e.frag) && (this.mainFragLoading = e, this.state === it.IDLE && this.tick());
|
|
39722
39722
|
}
|
|
39723
39723
|
onFragBuffered(t, e) {
|
|
39724
39724
|
const { frag: n, part: s } = e;
|
|
@@ -39730,7 +39730,7 @@ class Cq extends Mf {
|
|
|
39730
39730
|
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"}`);
|
|
39731
39731
|
return;
|
|
39732
39732
|
}
|
|
39733
|
-
if (
|
|
39733
|
+
if (h1(n)) {
|
|
39734
39734
|
this.fragPrevious = n;
|
|
39735
39735
|
const a = this.switchingTrack;
|
|
39736
39736
|
a && (this.bufferedTrack = a, this.switchingTrack = null, this.hls.trigger(w.AUDIO_TRACK_SWITCHED, we({}, a)));
|
|
@@ -39827,9 +39827,9 @@ class Cq extends Mf {
|
|
|
39827
39827
|
}
|
|
39828
39828
|
loadFragment(t, e, n) {
|
|
39829
39829
|
const s = this.fragmentTracker.getState(t);
|
|
39830
|
-
if (this.switchingTrack || s ===
|
|
39830
|
+
if (this.switchingTrack || s === L1.NOT_LOADED || s === L1.PARTIAL) {
|
|
39831
39831
|
var a;
|
|
39832
|
-
if (!
|
|
39832
|
+
if (!h1(t)) this._loadInitSegment(t, e);
|
|
39833
39833
|
else if ((a = e.details) != null && a.live && !this.initPTS[t.cc]) {
|
|
39834
39834
|
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;
|
|
39835
39835
|
const o = this.mainDetails;
|
|
@@ -41010,7 +41010,7 @@ class Rf {
|
|
|
41010
41010
|
return a;
|
|
41011
41011
|
}
|
|
41012
41012
|
}
|
|
41013
|
-
const kq = { MANIFEST: "m", AUDIO: "a", VIDEO: "v", MUXED: "av", INIT: "i", CAPTION: "c", TIMED_TEXT: "tt", KEY: "k", OTHER: "o" },
|
|
41013
|
+
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;
|
|
41014
41014
|
class j3 {
|
|
41015
41015
|
constructor(t, e) {
|
|
41016
41016
|
Array.isArray(t) && (t = t.map((n) => n instanceof j3 ? n : new j3(n))), this.value = t, this.params = e;
|
|
@@ -41246,14 +41246,14 @@ class DZ {
|
|
|
41246
41246
|
this.initialized || (this.initialized = true), this.buffering = false;
|
|
41247
41247
|
}, this.applyPlaylistData = (s) => {
|
|
41248
41248
|
try {
|
|
41249
|
-
this.apply(s, { ot:
|
|
41249
|
+
this.apply(s, { ot: h2.MANIFEST, su: !this.initialized });
|
|
41250
41250
|
} catch (a) {
|
|
41251
41251
|
this.hls.logger.warn("Could not generate manifest CMCD data.", a);
|
|
41252
41252
|
}
|
|
41253
41253
|
}, this.applyFragmentData = (s) => {
|
|
41254
41254
|
try {
|
|
41255
41255
|
const { frag: a, part: o } = s, l = this.hls.levels[a.level], u = this.getObjectType(a), h = { d: (o || a).duration * 1e3, ot: u };
|
|
41256
|
-
(u ===
|
|
41256
|
+
(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));
|
|
41257
41257
|
const T = o ? this.getNextPart(o) : this.getNextFrag(a);
|
|
41258
41258
|
T != null && T.url && T.url !== a.url && (h.nor = T.url), this.apply(s, h);
|
|
41259
41259
|
} catch (a) {
|
|
@@ -41290,7 +41290,7 @@ class DZ {
|
|
|
41290
41290
|
}
|
|
41291
41291
|
apply(t, e = {}) {
|
|
41292
41292
|
ke(e, this.createData());
|
|
41293
|
-
const n = e.ot ===
|
|
41293
|
+
const n = e.ot === h2.INIT || e.ot === h2.VIDEO || e.ot === h2.MUXED;
|
|
41294
41294
|
this.starved && n && (e.bs = true, e.su = true, this.starved = false), e.su == null && (e.su = this.buffering);
|
|
41295
41295
|
const { includeKeys: s } = this;
|
|
41296
41296
|
s && (e = Object.keys(e).reduce((o, l) => (s.includes(l) && (o[l] = e[l]), o), {}));
|
|
@@ -41318,15 +41318,15 @@ class DZ {
|
|
|
41318
41318
|
}
|
|
41319
41319
|
getObjectType(t) {
|
|
41320
41320
|
const { type: e } = t;
|
|
41321
|
-
if (e === "subtitle") return
|
|
41322
|
-
if (t.sn === "initSegment") return
|
|
41323
|
-
if (e === "audio") return
|
|
41324
|
-
if (e === "main") return this.hls.audioTracks.length ?
|
|
41321
|
+
if (e === "subtitle") return h2.TIMED_TEXT;
|
|
41322
|
+
if (t.sn === "initSegment") return h2.INIT;
|
|
41323
|
+
if (e === "audio") return h2.AUDIO;
|
|
41324
|
+
if (e === "main") return this.hls.audioTracks.length ? h2.VIDEO : h2.MUXED;
|
|
41325
41325
|
}
|
|
41326
41326
|
getTopBandwidth(t) {
|
|
41327
41327
|
let e = 0, n;
|
|
41328
41328
|
const s = this.hls;
|
|
41329
|
-
if (t ===
|
|
41329
|
+
if (t === h2.AUDIO) n = s.audioTracks;
|
|
41330
41330
|
else {
|
|
41331
41331
|
const a = s.maxAutoLevel, o = a > -1 ? a + 1 : s.levels.length;
|
|
41332
41332
|
n = s.levels.slice(0, o);
|
|
@@ -41336,7 +41336,7 @@ class DZ {
|
|
|
41336
41336
|
}), e > 0 ? e : NaN;
|
|
41337
41337
|
}
|
|
41338
41338
|
getBufferLength(t) {
|
|
41339
|
-
const e = this.media, n = t ===
|
|
41339
|
+
const e = this.media, n = t === h2.AUDIO ? this.audioBuffer : this.videoBuffer;
|
|
41340
41340
|
return !n || !e ? NaN : ee.bufferInfo(n, e.currentTime, this.config.maxBufferHole).len * 1e3;
|
|
41341
41341
|
}
|
|
41342
41342
|
createPlaylistLoader() {
|
|
@@ -41445,7 +41445,7 @@ class IZ extends q2 {
|
|
|
41445
41445
|
}
|
|
41446
41446
|
onError(t, e) {
|
|
41447
41447
|
const { errorAction: n } = e;
|
|
41448
|
-
if ((n == null ? void 0 : n.action) === N1.SendAlternateToPenaltyBox && n.flags ===
|
|
41448
|
+
if ((n == null ? void 0 : n.action) === N1.SendAlternateToPenaltyBox && n.flags === b2.MoveAllAlternatesMatchingHost) {
|
|
41449
41449
|
const s = this.levels;
|
|
41450
41450
|
let a = this._pathwayPriority, o = this.pathwayId;
|
|
41451
41451
|
if (e.context) {
|
|
@@ -41614,7 +41614,7 @@ class Tn extends q2 {
|
|
|
41614
41614
|
}
|
|
41615
41615
|
let u;
|
|
41616
41616
|
try {
|
|
41617
|
-
const p =
|
|
41617
|
+
const p = x1(new Uint8Array(s)), g = Hf(JSON.parse(p).sinf), y = b_(g);
|
|
41618
41618
|
if (!y) throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");
|
|
41619
41619
|
u = new Uint8Array(y.subarray(8, 24));
|
|
41620
41620
|
} catch (p) {
|
|
@@ -41673,7 +41673,7 @@ class Tn extends q2 {
|
|
|
41673
41673
|
const u = (h) => {
|
|
41674
41674
|
const T = h.shift();
|
|
41675
41675
|
this.getMediaKeysPromise(T, s, a).then((f) => o({ keySystem: T, mediaKeys: f })).catch((f) => {
|
|
41676
|
-
h.length ? u(h) : f instanceof
|
|
41676
|
+
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));
|
|
41677
41677
|
});
|
|
41678
41678
|
};
|
|
41679
41679
|
u(t);
|
|
@@ -41772,10 +41772,10 @@ class Tn extends q2 {
|
|
|
41772
41772
|
return l.catch((u) => this.handleError(u, t.frag)), this.keyIdToKeySessionPromise[n] = l, l;
|
|
41773
41773
|
}
|
|
41774
41774
|
return o.catch((l) => {
|
|
41775
|
-
if (l instanceof
|
|
41775
|
+
if (l instanceof L2) {
|
|
41776
41776
|
const u = we({}, l.data);
|
|
41777
41777
|
this.getKeyStatus(e) === "internal-error" && (u.decryptdata = e);
|
|
41778
|
-
const h = new
|
|
41778
|
+
const h = new L2(u, l.message);
|
|
41779
41779
|
this.handleError(h, t.frag);
|
|
41780
41780
|
}
|
|
41781
41781
|
}), o;
|
|
@@ -41784,7 +41784,7 @@ class Tn extends q2 {
|
|
|
41784
41784
|
if (!this.hls) throw new Error("invalid state");
|
|
41785
41785
|
}
|
|
41786
41786
|
handleError(t, e) {
|
|
41787
|
-
if (this.hls) if (t instanceof
|
|
41787
|
+
if (this.hls) if (t instanceof L2) {
|
|
41788
41788
|
e && (t.data.frag = e);
|
|
41789
41789
|
const n = t.data.decryptdata;
|
|
41790
41790
|
this.error(`${t.message}${n ? ` (${U1(n.keyId || [])})` : ""}`), this.hls.trigger(w.ERROR, t.data);
|
|
@@ -41799,7 +41799,7 @@ class Tn extends q2 {
|
|
|
41799
41799
|
return n;
|
|
41800
41800
|
}
|
|
41801
41801
|
getKeySystemSelectionPromise(t) {
|
|
41802
|
-
if (t.length || (t = c5(this.config)), t.length === 0) throw new
|
|
41802
|
+
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 })}`);
|
|
41803
41803
|
return this.attemptKeySystemAccess(t);
|
|
41804
41804
|
}
|
|
41805
41805
|
attemptSetMediaKeys(t, e) {
|
|
@@ -41866,14 +41866,14 @@ class Tn extends q2 {
|
|
|
41866
41866
|
}, 1e3)), this.log(`No status for keyId ${l} (${je(c)}).`);
|
|
41867
41867
|
}
|
|
41868
41868
|
};
|
|
41869
|
-
|
|
41869
|
+
o2(t.mediaKeysSession, "message", T), o2(t.mediaKeysSession, "keystatuseschange", d);
|
|
41870
41870
|
const p = new Promise((g, y) => {
|
|
41871
41871
|
h.on("error", y), h.on("resolved", g);
|
|
41872
41872
|
});
|
|
41873
41873
|
return t.mediaKeysSession.generateRequest(e, n).then(() => {
|
|
41874
41874
|
this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${u}`);
|
|
41875
41875
|
}).catch((g) => {
|
|
41876
|
-
throw new
|
|
41876
|
+
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}`);
|
|
41877
41877
|
}).then(() => p).catch((g) => (h.removeAllListeners(), this.removeSession(t).then(() => {
|
|
41878
41878
|
throw g;
|
|
41879
41879
|
}))).then(() => (h.removeAllListeners(), t));
|
|
@@ -41900,9 +41900,9 @@ class Tn extends q2 {
|
|
|
41900
41900
|
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) => {
|
|
41901
41901
|
o(d.data);
|
|
41902
41902
|
}, onError: (d, p, g, y) => {
|
|
41903
|
-
l(new
|
|
41903
|
+
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})`));
|
|
41904
41904
|
}, onTimeout: (d, p, g) => {
|
|
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: { url: u.url, data: void 0 } }, `"${t}" certificate request timed out (${a})`));
|
|
41906
41906
|
}, onAbort: (d, p, g) => {
|
|
41907
41907
|
l(new Error("aborted"));
|
|
41908
41908
|
} };
|
|
@@ -41914,13 +41914,13 @@ class Tn extends q2 {
|
|
|
41914
41914
|
t.setServerCertificate(n).then((o) => {
|
|
41915
41915
|
this.log(`setServerCertificate ${o ? "success" : "not supported by CDM"} (${n.byteLength}) on "${e}"`), s(t);
|
|
41916
41916
|
}).catch((o) => {
|
|
41917
|
-
a(new
|
|
41917
|
+
a(new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED, error: o, fatal: true }, o.message));
|
|
41918
41918
|
});
|
|
41919
41919
|
});
|
|
41920
41920
|
}
|
|
41921
41921
|
renewLicense(t, e) {
|
|
41922
41922
|
return this.requestLicense(t, new Uint8Array(e)).then((n) => this.updateKeySession(t, new Uint8Array(n)).catch((s) => {
|
|
41923
|
-
throw new
|
|
41923
|
+
throw new L2({ type: kt.KEY_SYSTEM_ERROR, details: q.KEY_SYSTEM_SESSION_UPDATE_FAILED, decryptdata: t.decryptdata, error: s, fatal: false }, s.message);
|
|
41924
41924
|
}));
|
|
41925
41925
|
}
|
|
41926
41926
|
unpackPlayReadyKeyMessage(t, e) {
|
|
@@ -41971,7 +41971,7 @@ class Tn extends q2 {
|
|
|
41971
41971
|
s(u);
|
|
41972
41972
|
} else {
|
|
41973
41973
|
const u = n.errorRetry, h = u ? u.maxNumRetry : 0;
|
|
41974
|
-
if (this._requestLicenseFailureCount++, this._requestLicenseFailureCount > h || l.status >= 400 && l.status < 500) a(new
|
|
41974
|
+
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})`));
|
|
41975
41975
|
else {
|
|
41976
41976
|
const T = h - this._requestLicenseFailureCount + 1;
|
|
41977
41977
|
this.warn(`Retrying license request, ${T} attempts left`), this.requestLicense(t, e).then(s, a);
|
|
@@ -41988,13 +41988,13 @@ class Tn extends q2 {
|
|
|
41988
41988
|
onMediaAttached(t, e) {
|
|
41989
41989
|
if (!this.config.emeEnabled) return;
|
|
41990
41990
|
const n = e.media;
|
|
41991
|
-
this.media = n,
|
|
41991
|
+
this.media = n, o2(n, "encrypted", this.onMediaEncrypted), o2(n, "waitingforkey", this.onWaitingForKey);
|
|
41992
41992
|
const s = this.mediaResolved;
|
|
41993
41993
|
s ? s() : this.mediaKeys = n.mediaKeys;
|
|
41994
41994
|
}
|
|
41995
41995
|
onMediaDetached() {
|
|
41996
41996
|
const t = this.media;
|
|
41997
|
-
t && (
|
|
41997
|
+
t && (p2(t, "encrypted", this.onMediaEncrypted), p2(t, "waitingforkey", this.onWaitingForKey), this.media = null, this.mediaKeys = null);
|
|
41998
41998
|
}
|
|
41999
41999
|
_clear() {
|
|
42000
42000
|
var t;
|
|
@@ -42051,14 +42051,14 @@ function VZ(r, t) {
|
|
|
42051
42051
|
if (r.keyId && t.mediaKeysSession.keyStatuses.has(r.keyId)) return t.mediaKeysSession.keyStatuses.get(r.keyId);
|
|
42052
42052
|
if (r.matches(t.decryptdata)) return t.keyStatus;
|
|
42053
42053
|
}
|
|
42054
|
-
class
|
|
42054
|
+
class L2 extends Error {
|
|
42055
42055
|
constructor(t, e) {
|
|
42056
42056
|
super(e), this.data = void 0, t.error || (t.error = new Error(e)), this.data = t, t.err = t.error;
|
|
42057
42057
|
}
|
|
42058
42058
|
}
|
|
42059
42059
|
function Py(r, t) {
|
|
42060
42060
|
const e = r === "output-restricted", n = e ? q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED : q.KEY_SYSTEM_STATUS_INTERNAL_ERROR;
|
|
42061
|
-
return new
|
|
42061
|
+
return new L2({ type: kt.KEY_SYSTEM_ERROR, details: n, fatal: false, decryptdata: t }, e ? "HDCP level output restricted" : `key status changed to "${r}"`);
|
|
42062
42062
|
}
|
|
42063
42063
|
class PZ {
|
|
42064
42064
|
constructor(t) {
|
|
@@ -43068,11 +43068,11 @@ Schedule: ${u.map((y) => X2(y))} pos: ${this.timelinePos}`), T.length && this.lo
|
|
|
43068
43068
|
t && this.removeMediaListeners(t);
|
|
43069
43069
|
}
|
|
43070
43070
|
removeMediaListeners(t) {
|
|
43071
|
-
|
|
43071
|
+
p2(t, "play", this.onPlay), p2(t, "pause", this.onPause), p2(t, "seeking", this.onSeeking), p2(t, "timeupdate", this.onTimeupdate);
|
|
43072
43072
|
}
|
|
43073
43073
|
onMediaAttaching(t, e) {
|
|
43074
43074
|
const n = this.media = e.media;
|
|
43075
|
-
|
|
43075
|
+
o2(n, "seeking", this.onSeeking), o2(n, "timeupdate", this.onTimeupdate), o2(n, "play", this.onPlay), o2(n, "pause", this.onPause);
|
|
43076
43076
|
}
|
|
43077
43077
|
onMediaAttached(t, e) {
|
|
43078
43078
|
const n = this.effectivePlayingItem, s = this.detachedData;
|
|
@@ -44037,7 +44037,7 @@ class ZZ extends Mf {
|
|
|
44037
44037
|
}
|
|
44038
44038
|
onSubtitleFragProcessed(t, e) {
|
|
44039
44039
|
const { frag: n, success: s } = e;
|
|
44040
|
-
if (this.fragContextChanged(n) || (
|
|
44040
|
+
if (this.fragContextChanged(n) || (h1(n) && (this.fragPrevious = n), this.state = it.IDLE), !s) return;
|
|
44041
44041
|
const a = this.tracksBuffered[this.currentTrackId];
|
|
44042
44042
|
if (!a) return;
|
|
44043
44043
|
let o;
|
|
@@ -44150,14 +44150,14 @@ class ZZ extends Mf {
|
|
|
44150
44150
|
} else g = f[d - 1];
|
|
44151
44151
|
if (g = this.filterReplacedPrimary(g, n.details), !g) return;
|
|
44152
44152
|
const c = g.sn - h.startSN, Q = f[c - 1];
|
|
44153
|
-
if (Q && Q.cc === g.cc && this.fragmentTracker.getState(Q) ===
|
|
44153
|
+
if (Q && Q.cc === g.cc && this.fragmentTracker.getState(Q) === L1.NOT_LOADED && (g = Q), this.fragmentTracker.getState(g) === L1.NOT_LOADED) {
|
|
44154
44154
|
const m = this.mapToInitFragWhenRequired(g);
|
|
44155
44155
|
m && this.loadFragment(m, n, l);
|
|
44156
44156
|
}
|
|
44157
44157
|
}
|
|
44158
44158
|
}
|
|
44159
44159
|
loadFragment(t, e, n) {
|
|
44160
|
-
|
|
44160
|
+
h1(t) ? super.loadFragment(t, e, n) : this._loadInitSegment(t, e);
|
|
44161
44161
|
}
|
|
44162
44162
|
get mediaBufferTimeRanges() {
|
|
44163
44163
|
return new KZ(this.tracksBuffered[this.currentTrackId] || []);
|
|
@@ -44940,7 +44940,7 @@ function QK(r, t, e, n, s, a, o) {
|
|
|
44940
44940
|
}
|
|
44941
44941
|
m = v - e.presentationOffset;
|
|
44942
44942
|
}
|
|
44943
|
-
const x = c.endTime - c.startTime, L =
|
|
44943
|
+
const x = c.endTime - c.startTime, L = _2((c.startTime + m - p) * 9e4, s * 9e4) / 9e4;
|
|
44944
44944
|
c.startTime = Math.max(L, 0), c.endTime = Math.max(L + x, 0);
|
|
44945
44945
|
const _ = c.text.trim();
|
|
44946
44946
|
c.text = decodeURIComponent(encodeURIComponent(_)), c.id || (c.id = Uf(c.startTime, c.endTime, _)), c.endTime > 0 && h.push(c);
|
|
@@ -45615,12 +45615,12 @@ class FK extends V_ {
|
|
|
45615
45615
|
onMediaAttached(t, e) {
|
|
45616
45616
|
this.setInterval(BK), this.mediaSource = e.mediaSource;
|
|
45617
45617
|
const n = this.media = e.media;
|
|
45618
|
-
|
|
45618
|
+
o2(n, "playing", this.onMediaPlaying), o2(n, "waiting", this.onMediaWaiting), o2(n, "ended", this.onMediaEnded);
|
|
45619
45619
|
}
|
|
45620
45620
|
onMediaDetaching(t, e) {
|
|
45621
45621
|
this.clearInterval();
|
|
45622
45622
|
const { media: n } = this;
|
|
45623
|
-
n && (
|
|
45623
|
+
n && (p2(n, "playing", this.onMediaPlaying), p2(n, "waiting", this.onMediaWaiting), p2(n, "ended", this.onMediaEnded), this.media = null), this.mediaSource = void 0;
|
|
45624
45624
|
}
|
|
45625
45625
|
onBufferAppended(t, e) {
|
|
45626
45626
|
this.buffered = e.timeRanges;
|
|
@@ -45893,7 +45893,7 @@ class UK {
|
|
|
45893
45893
|
const o = Hh();
|
|
45894
45894
|
if (o) for (let l = 0; l < a.length; l++) {
|
|
45895
45895
|
const u = a[l].type;
|
|
45896
|
-
if (u ===
|
|
45896
|
+
if (u === E2.emsg && !n || !s) continue;
|
|
45897
45897
|
const h = nS(a[l].data), T = a[l].pts;
|
|
45898
45898
|
let f = T + a[l].duration;
|
|
45899
45899
|
f > la && (f = la), f - T <= 0 && (f = T + NK);
|
|
@@ -45921,7 +45921,7 @@ class UK {
|
|
|
45921
45921
|
const { config: { enableEmsgMetadataCues: l, enableID3MetadataCues: u } } = o;
|
|
45922
45922
|
if (a && (l || u)) {
|
|
45923
45923
|
let h;
|
|
45924
|
-
s === "audio" ? h = (T) => T.type ===
|
|
45924
|
+
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);
|
|
45925
45925
|
}
|
|
45926
45926
|
}
|
|
45927
45927
|
onLevelUpdated(t, { details: e }) {
|
|
@@ -45990,7 +45990,7 @@ class UK {
|
|
|
45990
45990
|
else if (l) {
|
|
45991
45991
|
let P = Q.attr[D];
|
|
45992
45992
|
cW(D) && (P = d_(P));
|
|
45993
|
-
const F = Du(l, m, _, { key: D, data: P },
|
|
45993
|
+
const F = Du(l, m, _, { key: D, data: P }, E2.dateRange);
|
|
45994
45994
|
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));
|
|
45995
45995
|
}
|
|
45996
45996
|
}
|
|
@@ -46463,7 +46463,7 @@ class ZK extends Mf {
|
|
|
46463
46463
|
this.backtrackFragment && this.backtrackFragment.start > l.end && (this.backtrackFragment = null);
|
|
46464
46464
|
const d = this.backtrackFragment ? this.backtrackFragment.start : l.end;
|
|
46465
46465
|
let p = this.getNextFragment(d, h);
|
|
46466
|
-
if (this.couldBacktrack && !this.fragPrevious && p &&
|
|
46466
|
+
if (this.couldBacktrack && !this.fragPrevious && p && h1(p) && this.fragmentTracker.getState(p) !== L1.OK) {
|
|
46467
46467
|
var g;
|
|
46468
46468
|
const c = ((g = this.backtrackFragment) != null ? g : p).sn - h.startSN, Q = h.fragments[c - 1];
|
|
46469
46469
|
Q && p.cc === Q.cc && (p = Q, this.fragmentTracker.removeFragment(Q));
|
|
@@ -46479,7 +46479,7 @@ class ZK extends Mf {
|
|
|
46479
46479
|
}
|
|
46480
46480
|
loadFragment(t, e, n) {
|
|
46481
46481
|
const s = this.fragmentTracker.getState(t);
|
|
46482
|
-
s ===
|
|
46482
|
+
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);
|
|
46483
46483
|
}
|
|
46484
46484
|
getBufferedFrag(t) {
|
|
46485
46485
|
return this.fragmentTracker.getBufferedFrag(t, Mt.MAIN);
|
|
@@ -46535,11 +46535,11 @@ class ZK extends Mf {
|
|
|
46535
46535
|
onMediaAttached(t, e) {
|
|
46536
46536
|
super.onMediaAttached(t, e);
|
|
46537
46537
|
const n = e.media;
|
|
46538
|
-
|
|
46538
|
+
o2(n, "playing", this.onMediaPlaying), o2(n, "seeked", this.onMediaSeeked);
|
|
46539
46539
|
}
|
|
46540
46540
|
onMediaDetaching(t, e) {
|
|
46541
46541
|
const { media: n } = this;
|
|
46542
|
-
n && (
|
|
46542
|
+
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);
|
|
46543
46543
|
}
|
|
46544
46544
|
onManifestLoading() {
|
|
46545
46545
|
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;
|
|
@@ -46670,7 +46670,7 @@ class ZK extends Mf {
|
|
|
46670
46670
|
return;
|
|
46671
46671
|
}
|
|
46672
46672
|
const l = s ? s.stats : n.stats;
|
|
46673
|
-
this.fragLastKbps = Math.round(8 * l.total / (l.buffering.end - l.loading.first)),
|
|
46673
|
+
this.fragLastKbps = Math.round(8 * l.total / (l.buffering.end - l.loading.first)), h1(n) && (this.fragPrevious = n), this.fragBufferedComplete(n, s);
|
|
46674
46674
|
}
|
|
46675
46675
|
const o = this.media;
|
|
46676
46676
|
o && (!this._hasEnoughToStart && ee.getBuffered(o).length && (this._hasEnoughToStart = true, this.seekToStartPos()), a && this.tick());
|
|
@@ -46818,7 +46818,7 @@ class ZK extends Mf {
|
|
|
46818
46818
|
}
|
|
46819
46819
|
}
|
|
46820
46820
|
logMuxedErr(t) {
|
|
46821
|
-
this.warn(`${
|
|
46821
|
+
this.warn(`${h1(t) ? "Media" : "Init"} segment with muxed audiovideo where only video expected: ${t.url}`);
|
|
46822
46822
|
}
|
|
46823
46823
|
_bufferInitSegment(t, e, n, s) {
|
|
46824
46824
|
if (this.state !== it.PARSING) return;
|
|
@@ -46959,7 +46959,7 @@ class KK extends q2 {
|
|
|
46959
46959
|
if (this.emeController && this.config.emeEnabled && !this.emeController.getSelectedKeySystemFormats().length) {
|
|
46960
46960
|
if (e.length) for (let s = 0, a = e.length; s < a; s++) {
|
|
46961
46961
|
const o = e[s];
|
|
46962
|
-
if (t.cc <= o.cc && (!
|
|
46962
|
+
if (t.cc <= o.cc && (!h1(t) || !h1(o) || t.sn < o.sn) || !n && s == a - 1) return this.emeController.selectKeySystemFormat(o).then((l) => {
|
|
46963
46963
|
if (!this.emeController) return;
|
|
46964
46964
|
o.setKeyFormat(l);
|
|
46965
46965
|
const u = va(l);
|
|
@@ -47021,7 +47021,7 @@ class KK extends q2 {
|
|
|
47021
47021
|
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;
|
|
47022
47022
|
}
|
|
47023
47023
|
}
|
|
47024
|
-
if (!t.decryptdata.keyId && !
|
|
47024
|
+
if (!t.decryptdata.keyId && !h1(e)) return Promise.resolve(n);
|
|
47025
47025
|
const a = this.emeController.loadKey(n);
|
|
47026
47026
|
return (t.keyLoadPromise = a.then((o) => (t.mediaKeySessionContext = o, n))).catch((o) => {
|
|
47027
47027
|
throw t.keyLoadPromise = null, "data" in o && (o.data.frag = e), o;
|
|
@@ -47289,7 +47289,7 @@ class O3 {
|
|
|
47289
47289
|
return w;
|
|
47290
47290
|
}
|
|
47291
47291
|
static get MetadataSchema() {
|
|
47292
|
-
return
|
|
47292
|
+
return E2;
|
|
47293
47293
|
}
|
|
47294
47294
|
static get ErrorTypes() {
|
|
47295
47295
|
return kt;
|
|
@@ -50311,7 +50311,7 @@ var iv = { invert: { name: "invert" }, sepia: { name: "sepia" }, grayscale: { na
|
|
|
50311
50311
|
return this.props.default;
|
|
50312
50312
|
}
|
|
50313
50313
|
constructor(r) {
|
|
50314
|
-
this.props = { name: "invert", default: 0, unit: "%", scale: 100, transform: false, ...r, value: r.value ?? r.default ?? 0 }, this.value =
|
|
50314
|
+
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);
|
|
50315
50315
|
}
|
|
50316
50316
|
isActive() {
|
|
50317
50317
|
return this.value() !== this.props.default;
|
|
@@ -50555,7 +50555,7 @@ function b1(r, t) {
|
|
|
50555
50555
|
function V1(r, t) {
|
|
50556
50556
|
r.lineTo(t.x, t.y);
|
|
50557
50557
|
}
|
|
50558
|
-
function
|
|
50558
|
+
function M2(r, t) {
|
|
50559
50559
|
if (!(t.length < 2)) {
|
|
50560
50560
|
b1(r, t[0]);
|
|
50561
50561
|
for (const e of t.slice(1)) V1(r, e);
|
|
@@ -50712,7 +50712,7 @@ function nv(r, t) {
|
|
|
50712
50712
|
}
|
|
50713
50713
|
var Oh = class extends cr {
|
|
50714
50714
|
constructor(r, t, e) {
|
|
50715
|
-
super(r, t4, t), this.highlighter = e, this.progress =
|
|
50715
|
+
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) });
|
|
50716
50716
|
}
|
|
50717
50717
|
*tweener(r, t, e) {
|
|
50718
50718
|
let n = QX;
|
|
@@ -50756,7 +50756,7 @@ var Oh = class extends cr {
|
|
|
50756
50756
|
}
|
|
50757
50757
|
*replaceTween(r, t, e) {
|
|
50758
50758
|
let n = this.get();
|
|
50759
|
-
const [s, a] = nv(r, n.fragments), o =
|
|
50759
|
+
const [s, a] = nv(r, n.fragments), o = C2(0), l = { progress: o, fragments: [$K(s[a], t)] };
|
|
50760
50760
|
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();
|
|
50761
50761
|
}
|
|
50762
50762
|
*editTween(r, t) {
|
|
@@ -50766,12 +50766,12 @@ var Oh = class extends cr {
|
|
|
50766
50766
|
}
|
|
50767
50767
|
*appendTween(r, t) {
|
|
50768
50768
|
let e = this.get();
|
|
50769
|
-
const n =
|
|
50769
|
+
const n = C2(0), s = { progress: n, fragments: [tv(r)] };
|
|
50770
50770
|
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();
|
|
50771
50771
|
}
|
|
50772
50772
|
*prependTween(r, t) {
|
|
50773
50773
|
let e = this.get();
|
|
50774
|
-
const n =
|
|
50774
|
+
const n = C2(0), s = { progress: n, fragments: [tv(r)] };
|
|
50775
50775
|
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();
|
|
50776
50776
|
}
|
|
50777
50777
|
parse(r) {
|
|
@@ -50992,7 +50992,7 @@ var pl = class {
|
|
|
50992
50992
|
return { position: t.position, tangent: t.tangent, normal: t.tangent.perpendicular };
|
|
50993
50993
|
}
|
|
50994
50994
|
transformPoints(r) {
|
|
50995
|
-
return this.points.map((t) =>
|
|
50995
|
+
return this.points.map((t) => m1(t, r));
|
|
50996
50996
|
}
|
|
50997
50997
|
tangent(r) {
|
|
50998
50998
|
return this.curve.evalDerivative(r).normalized;
|
|
@@ -51028,7 +51028,7 @@ var pl = class {
|
|
|
51028
51028
|
}
|
|
51029
51029
|
};
|
|
51030
51030
|
k([Gn(() => document.createElementNS("http://www.w3.org/2000/svg", "path"))], iE, "el", 2);
|
|
51031
|
-
var _i = iE,
|
|
51031
|
+
var _i = iE, l2 = class extends pl {
|
|
51032
51032
|
constructor(r, t) {
|
|
51033
51033
|
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];
|
|
51034
51034
|
}
|
|
@@ -51046,7 +51046,7 @@ var _i = iE, o2 = class extends pl {
|
|
|
51046
51046
|
function mX(r, t, e, n) {
|
|
51047
51047
|
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);
|
|
51048
51048
|
let h = new Z(r.left + a, r.top), T = new Z(r.right - o, r.top);
|
|
51049
|
-
return en(s, new
|
|
51049
|
+
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;
|
|
51050
51050
|
}
|
|
51051
51051
|
function en(r, t) {
|
|
51052
51052
|
r.segments.push(t), r.arcLength += t.arcLength;
|
|
@@ -51081,7 +51081,7 @@ function Aa() {
|
|
|
51081
51081
|
}
|
|
51082
51082
|
var Xt = class {
|
|
51083
51083
|
constructor({ children: r, spawner: t, key: e, ...n }) {
|
|
51084
|
-
this.compositeOverride =
|
|
51084
|
+
this.compositeOverride = C2(0), this.stateStack = [], this.realChildren = [], this.hasSpawnedChildren = false, this.parent = C2(null), this.properties = qS(this);
|
|
51085
51085
|
const s = Aa();
|
|
51086
51086
|
[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);
|
|
51087
51087
|
}
|
|
@@ -51096,7 +51096,7 @@ var Xt = class {
|
|
|
51096
51096
|
return new Z(r.m41, r.m42);
|
|
51097
51097
|
}
|
|
51098
51098
|
setAbsolutePosition(r) {
|
|
51099
|
-
this.position(nn(r, (t) =>
|
|
51099
|
+
this.position(nn(r, (t) => m1(new Z(t), this.worldToParent())));
|
|
51100
51100
|
}
|
|
51101
51101
|
getAbsoluteRotation() {
|
|
51102
51102
|
const r = this.localToWorld();
|
|
@@ -51399,7 +51399,7 @@ var Xt = class {
|
|
|
51399
51399
|
const n = r.corners;
|
|
51400
51400
|
for (const a of t) {
|
|
51401
51401
|
const o = a.fullCacheBBox(), l = a.localToParent();
|
|
51402
|
-
n.push(...o.corners.map((u) =>
|
|
51402
|
+
n.push(...o.corners.map((u) => m1(u, l)));
|
|
51403
51403
|
}
|
|
51404
51404
|
return he.fromPoints(...n).addSpacing(e);
|
|
51405
51405
|
}
|
|
@@ -51468,7 +51468,7 @@ var Xt = class {
|
|
|
51468
51468
|
}
|
|
51469
51469
|
drawOverlay(r, t) {
|
|
51470
51470
|
const e = this.cacheBBox().transformCorners(t), n = this.getCacheBBox().transformCorners(t);
|
|
51471
|
-
r.strokeStyle = "white", r.lineWidth = 1, r.beginPath(),
|
|
51471
|
+
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();
|
|
51472
51472
|
}
|
|
51473
51473
|
transformContext(r) {
|
|
51474
51474
|
const t = this.localToParent();
|
|
@@ -51476,7 +51476,7 @@ var Xt = class {
|
|
|
51476
51476
|
}
|
|
51477
51477
|
hit(r) {
|
|
51478
51478
|
let t = null;
|
|
51479
|
-
const e =
|
|
51479
|
+
const e = m1(r, this.localToParent().inverse()), n = this.children();
|
|
51480
51480
|
for (let s = n.length - 1; s >= 0 && (t = n[s].hit(e), !t); s--) ;
|
|
51481
51481
|
return t;
|
|
51482
51482
|
}
|
|
@@ -51727,8 +51727,8 @@ var At = class extends Xt {
|
|
|
51727
51727
|
await this.drawChildren(r);
|
|
51728
51728
|
}
|
|
51729
51729
|
drawOverlay(r, t) {
|
|
51730
|
-
const e = this.computedSize(), n = e.mul(this.offset()).scale(0.5), s =
|
|
51731
|
-
r.beginPath(),
|
|
51730
|
+
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);
|
|
51731
|
+
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();
|
|
51732
51732
|
}
|
|
51733
51733
|
getOriginDelta(r) {
|
|
51734
51734
|
const t = this.computedSize().scale(0.5), e = this.offset().mul(t);
|
|
@@ -51781,7 +51781,7 @@ var At = class extends Xt {
|
|
|
51781
51781
|
super.dispose(), (r = this.sizeLockCounter) == null || r.context.dispose(), this.element && (this.element.remove(), this.element.innerHTML = ""), this.element = null, this.styles = null;
|
|
51782
51782
|
}
|
|
51783
51783
|
hit(r) {
|
|
51784
|
-
const t =
|
|
51784
|
+
const t = m1(r, this.localToParent().inverse());
|
|
51785
51785
|
return this.cacheBBox().includes(t) ? super.hit(r) ?? this : null;
|
|
51786
51786
|
}
|
|
51787
51787
|
};
|
|
@@ -51850,7 +51850,7 @@ function Di(r) {
|
|
|
51850
51850
|
const n = x4(t, e);
|
|
51851
51851
|
n.parser = (s) => new Z(s), n.getter = function() {
|
|
51852
51852
|
const s = this.computedSize().getOriginOffset(r);
|
|
51853
|
-
return
|
|
51853
|
+
return m1(s, this.localToParent());
|
|
51854
51854
|
}, n.setter = function(s) {
|
|
51855
51855
|
return this.position(nn(s, (a) => {
|
|
51856
51856
|
const o = this.getOriginDelta(r);
|
|
@@ -51864,7 +51864,7 @@ r6(At.prototype, (r) => {
|
|
|
51864
51864
|
});
|
|
51865
51865
|
var a1 = class extends At {
|
|
51866
51866
|
constructor(r) {
|
|
51867
|
-
super(r), this.rippleStrength =
|
|
51867
|
+
super(r), this.rippleStrength = C2(0);
|
|
51868
51868
|
}
|
|
51869
51869
|
rippleSize() {
|
|
51870
51870
|
return cx(this.rippleStrength(), 0, 50);
|
|
@@ -51915,7 +51915,7 @@ k([vt()], a1.prototype, "rippleSize", 1);
|
|
|
51915
51915
|
k([vt()], a1.prototype, "getPath", 1);
|
|
51916
51916
|
k([e1()], a1.prototype, "ripple", 1);
|
|
51917
51917
|
a1 = k([R1("Shape")], a1);
|
|
51918
|
-
var
|
|
51918
|
+
var y1 = class extends a1 {
|
|
51919
51919
|
constructor(r) {
|
|
51920
51920
|
super(r), this.canHaveSubpath = false;
|
|
51921
51921
|
}
|
|
@@ -51999,18 +51999,18 @@ var g1 = class extends a1 {
|
|
|
51999
51999
|
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();
|
|
52000
52000
|
}
|
|
52001
52001
|
};
|
|
52002
|
-
k([dt(false), ot()],
|
|
52003
|
-
k([dt(0), ot()],
|
|
52004
|
-
k([dt(0), ot()],
|
|
52005
|
-
k([dt(false), ot()],
|
|
52006
|
-
k([dt(1), ot()],
|
|
52007
|
-
k([dt(0), ot()],
|
|
52008
|
-
k([dt(false), ot()],
|
|
52009
|
-
k([dt(24), ot()],
|
|
52010
|
-
k([vt()],
|
|
52011
|
-
k([vt()],
|
|
52012
|
-
|
|
52013
|
-
var
|
|
52002
|
+
k([dt(false), ot()], y1.prototype, "closed", 2);
|
|
52003
|
+
k([dt(0), ot()], y1.prototype, "start", 2);
|
|
52004
|
+
k([dt(0), ot()], y1.prototype, "startOffset", 2);
|
|
52005
|
+
k([dt(false), ot()], y1.prototype, "startArrow", 2);
|
|
52006
|
+
k([dt(1), ot()], y1.prototype, "end", 2);
|
|
52007
|
+
k([dt(0), ot()], y1.prototype, "endOffset", 2);
|
|
52008
|
+
k([dt(false), ot()], y1.prototype, "endArrow", 2);
|
|
52009
|
+
k([dt(24), ot()], y1.prototype, "arrowSize", 2);
|
|
52010
|
+
k([vt()], y1.prototype, "arcLength", 1);
|
|
52011
|
+
k([vt()], y1.prototype, "curveDrawingInfo", 1);
|
|
52012
|
+
y1 = k([R1("Curve")], y1);
|
|
52013
|
+
var Q1 = class extends y1 {
|
|
52014
52014
|
constructor(r) {
|
|
52015
52015
|
super(r);
|
|
52016
52016
|
}
|
|
@@ -52039,18 +52039,21 @@ var f1 = class extends g1 {
|
|
|
52039
52039
|
return rv(r, a, e, n, s), r;
|
|
52040
52040
|
}
|
|
52041
52041
|
};
|
|
52042
|
-
k([ml("radius")],
|
|
52043
|
-
k([dt(false), ot()],
|
|
52044
|
-
k([dt(0.6), ot()],
|
|
52045
|
-
k([vt()],
|
|
52046
|
-
|
|
52047
|
-
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",
|
|
52042
|
+
k([ml("radius")], Q1.prototype, "radius", 2);
|
|
52043
|
+
k([dt(false), ot()], Q1.prototype, "smoothCorners", 2);
|
|
52044
|
+
k([dt(0.6), ot()], Q1.prototype, "cornerSharpness", 2);
|
|
52045
|
+
k([vt()], Q1.prototype, "profile", 1);
|
|
52046
|
+
Q1 = k([R1("Rect")], Q1);
|
|
52047
|
+
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 {
|
|
52048
52048
|
constructor(r) {
|
|
52049
|
-
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);
|
|
52049
|
+
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);
|
|
52050
52050
|
}
|
|
52051
52051
|
isPlaying() {
|
|
52052
52052
|
return this.playing();
|
|
52053
52053
|
}
|
|
52054
|
+
isActiveAtGlobalTime(r) {
|
|
52055
|
+
return this.clipStart === void 0 ? true : r < this.clipStart ? false : this.clipEnd === void 0 ? true : r < this.clipEnd;
|
|
52056
|
+
}
|
|
52054
52057
|
getCurrentTime() {
|
|
52055
52058
|
return this.clampTime(this.time());
|
|
52056
52059
|
}
|
|
@@ -52073,12 +52076,24 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52073
52076
|
}
|
|
52074
52077
|
}
|
|
52075
52078
|
dispose() {
|
|
52076
|
-
this.playing(false)
|
|
52079
|
+
this.playing(false);
|
|
52080
|
+
try {
|
|
52081
|
+
this.mediaElement().pause();
|
|
52082
|
+
} catch {
|
|
52083
|
+
}
|
|
52084
|
+
this.time.save(), this.remove(), super.dispose();
|
|
52077
52085
|
}
|
|
52078
52086
|
completion() {
|
|
52079
52087
|
return this.clampTime(this.time()) / this.getDuration();
|
|
52080
52088
|
}
|
|
52081
52089
|
syncToCurrentTime(r, t) {
|
|
52090
|
+
if (r !== void 0 && !this.isActiveAtGlobalTime(r)) {
|
|
52091
|
+
this.playing(false);
|
|
52092
|
+
try {
|
|
52093
|
+
this.mediaElement().pause();
|
|
52094
|
+
} catch {
|
|
52095
|
+
}
|
|
52096
|
+
}
|
|
52082
52097
|
let e;
|
|
52083
52098
|
r !== void 0 && this.clipStart !== void 0 ? e = this.trimStart + (r - this.clipStart) * this.playbackRate() : e = r ?? this.time();
|
|
52084
52099
|
const n = this.setCurrentTime(e, { skipCollectPromise: (t == null ? void 0 : t.waitForSeek) ?? true });
|
|
@@ -52124,14 +52139,14 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52124
52139
|
}
|
|
52125
52140
|
amplify(r, t) {
|
|
52126
52141
|
const e = `${this.src()}/${this.key}`;
|
|
52127
|
-
if (
|
|
52128
|
-
|
|
52142
|
+
if (T1.amplificationPool[e]) {
|
|
52143
|
+
T1.amplificationPool[e].gainNode.gain.value = t;
|
|
52129
52144
|
return;
|
|
52130
52145
|
}
|
|
52131
52146
|
const n = new AudioContext(), s = n.createMediaElementSource(r), a = n.createGain();
|
|
52132
|
-
if (a.gain.value = t, s.connect(a), a.connect(n.destination),
|
|
52147
|
+
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;
|
|
52133
52148
|
const o = () => {
|
|
52134
|
-
|
|
52149
|
+
T1.amplificationPool[e].audioContext.resume(), window.removeEventListener("click", o);
|
|
52135
52150
|
};
|
|
52136
52151
|
window.addEventListener("click", o);
|
|
52137
52152
|
}
|
|
@@ -52233,7 +52248,13 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52233
52248
|
this.time(() => this.clampTime(n + (t() - e) * this.playbackRate()));
|
|
52234
52249
|
}
|
|
52235
52250
|
pause() {
|
|
52236
|
-
this.playing(false), this.time.save()
|
|
52251
|
+
this.playing(false), this.time.save();
|
|
52252
|
+
try {
|
|
52253
|
+
this.mediaElement().pause();
|
|
52254
|
+
return;
|
|
52255
|
+
} catch {
|
|
52256
|
+
}
|
|
52257
|
+
setTimeout(() => {
|
|
52237
52258
|
try {
|
|
52238
52259
|
this.mediaElement().pause();
|
|
52239
52260
|
} catch {
|
|
@@ -52248,8 +52269,8 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52248
52269
|
super.collectAsyncResources(), this.seekedMedia(), this.setVolume(this.volume);
|
|
52249
52270
|
}
|
|
52250
52271
|
autoPlayBasedOnTwick() {
|
|
52251
|
-
const r = this.view().playbackState(), t = r === Y1.Playing || r === Y1.Presenting || r === Y1.Rendering;
|
|
52252
|
-
|
|
52272
|
+
const r = this.view().playbackState(), t = r === Y1.Playing || r === Y1.Presenting || r === Y1.Rendering, e = this.view().globalTime(), n = t && this.isActiveAtGlobalTime(e);
|
|
52273
|
+
n && !this.playing() ? (r === Y1.Rendering && this.playing(true), this.play()) : !n && this.playing() && this.pause();
|
|
52253
52274
|
}
|
|
52254
52275
|
getErrorReason(r) {
|
|
52255
52276
|
let t;
|
|
@@ -52275,21 +52296,39 @@ var yX = "\nThe `playbackRate` of a `Video` cannot be reactive.\n\nMake sure to
|
|
|
52275
52296
|
return typeof navigator > "u" ? false : /iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
52276
52297
|
}
|
|
52277
52298
|
};
|
|
52278
|
-
|
|
52279
|
-
k([dt(""), ot()],
|
|
52280
|
-
k([dt(false), ot()],
|
|
52281
|
-
k([dt(1), ot()],
|
|
52282
|
-
k([dt(0), ot()],
|
|
52283
|
-
k([dt(false), ot()],
|
|
52284
|
-
k([dt(true), ot()],
|
|
52285
|
-
k([dt(false), ot()],
|
|
52286
|
-
k([vt()],
|
|
52287
|
-
k([vt()],
|
|
52288
|
-
|
|
52289
|
-
var
|
|
52299
|
+
T1.amplificationPool = {};
|
|
52300
|
+
k([dt(""), ot()], T1.prototype, "src", 2);
|
|
52301
|
+
k([dt(false), ot()], T1.prototype, "loop", 2);
|
|
52302
|
+
k([dt(1), ot()], T1.prototype, "playbackRate", 2);
|
|
52303
|
+
k([dt(0), ot()], T1.prototype, "time", 2);
|
|
52304
|
+
k([dt(false), ot()], T1.prototype, "playing", 2);
|
|
52305
|
+
k([dt(true), ot()], T1.prototype, "awaitCanPlay", 2);
|
|
52306
|
+
k([dt(false), ot()], T1.prototype, "allowVolumeAmplificationInPreview", 2);
|
|
52307
|
+
k([vt()], T1.prototype, "completion", 1);
|
|
52308
|
+
k([vt()], T1.prototype, "amplify", 1);
|
|
52309
|
+
T1 = k([R1("Media")], T1);
|
|
52310
|
+
var a2 = class extends T1 {
|
|
52290
52311
|
constructor(r) {
|
|
52291
52312
|
super(r);
|
|
52292
52313
|
}
|
|
52314
|
+
dispose() {
|
|
52315
|
+
try {
|
|
52316
|
+
const r = this.src(), t = /* @__PURE__ */ new Set([`${this.key}/${r || "pending"}`, `${this.key}/pending`]);
|
|
52317
|
+
r && r !== "undefined" && t.add(`${this.key}/${r}`);
|
|
52318
|
+
for (const e of t) {
|
|
52319
|
+
const n = a2.pool[e];
|
|
52320
|
+
if (n) {
|
|
52321
|
+
try {
|
|
52322
|
+
n.pause(), n.currentTime = 0;
|
|
52323
|
+
} catch {
|
|
52324
|
+
}
|
|
52325
|
+
delete a2.pool[e];
|
|
52326
|
+
}
|
|
52327
|
+
}
|
|
52328
|
+
} catch {
|
|
52329
|
+
}
|
|
52330
|
+
super.dispose();
|
|
52331
|
+
}
|
|
52293
52332
|
mediaElement() {
|
|
52294
52333
|
return this.audio();
|
|
52295
52334
|
}
|
|
@@ -52301,12 +52340,12 @@ var C2 = class extends h1 {
|
|
|
52301
52340
|
}
|
|
52302
52341
|
audio() {
|
|
52303
52342
|
const r = this.src(), t = `${this.key}/${r || "pending"}`;
|
|
52304
|
-
let e =
|
|
52305
|
-
if (!e) e = document.createElement("audio"), e.crossOrigin = "anonymous", r && r !== "undefined" && (e.src = r),
|
|
52343
|
+
let e = a2.pool[t];
|
|
52344
|
+
if (!e) e = document.createElement("audio"), e.crossOrigin = "anonymous", r && r !== "undefined" && (e.src = r), a2.pool[t] = e;
|
|
52306
52345
|
else if (r && r !== "undefined" && e.src !== r) {
|
|
52307
|
-
e.src = r, delete
|
|
52346
|
+
e.src = r, delete a2.pool[t];
|
|
52308
52347
|
const s = `${this.key}/${r}`;
|
|
52309
|
-
|
|
52348
|
+
a2.pool[s] = e;
|
|
52310
52349
|
}
|
|
52311
52350
|
return (!r || r === "undefined") && s1.collectPromise(new Promise((s) => {
|
|
52312
52351
|
const a = () => {
|
|
@@ -52340,12 +52379,12 @@ var C2 = class extends h1 {
|
|
|
52340
52379
|
t === Y1.Playing || t === Y1.Presenting ? this.fastSeekedAudio() : this.seekedAudio(), r.save(), r.restore(), await this.drawChildren(r);
|
|
52341
52380
|
}
|
|
52342
52381
|
};
|
|
52343
|
-
|
|
52344
|
-
k([vt()],
|
|
52345
|
-
k([vt()],
|
|
52346
|
-
k([vt()],
|
|
52347
|
-
|
|
52348
|
-
var Zf = class extends
|
|
52382
|
+
a2.pool = {};
|
|
52383
|
+
k([vt()], a2.prototype, "audio", 1);
|
|
52384
|
+
k([vt()], a2.prototype, "seekedAudio", 1);
|
|
52385
|
+
k([vt()], a2.prototype, "fastSeekedAudio", 1);
|
|
52386
|
+
a2 = k([R1("Audio")], a2);
|
|
52387
|
+
var Zf = class extends y1 {
|
|
52349
52388
|
profile() {
|
|
52350
52389
|
const r = this.segment();
|
|
52351
52390
|
return { segments: [r], arcLength: r.arcLength, minSin: 0 };
|
|
@@ -52360,12 +52399,12 @@ var Zf = class extends g1 {
|
|
|
52360
52399
|
return r.position = r.position.sub(this.segment().getBBox().center), r;
|
|
52361
52400
|
}
|
|
52362
52401
|
drawOverlay(r, t) {
|
|
52363
|
-
const e = this.computedSize(), n = this.childrenBBox().transformCorners(t), s = e.mul(this.offset()).scale(0.5), a =
|
|
52402
|
+
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);
|
|
52364
52403
|
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;
|
|
52365
52404
|
for (const l of [o.startPoint, o.endPoint]) b1(r, l), r.beginPath(), bi(r, l, 4), r.closePath(), r.stroke(), r.fill();
|
|
52366
52405
|
r.fillStyle = "black";
|
|
52367
52406
|
for (const l of o.controlPoints) b1(r, l), r.beginPath(), bi(r, l, 4), r.closePath(), r.fill(), r.stroke();
|
|
52368
|
-
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
52407
|
+
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, n), r.closePath(), r.stroke();
|
|
52369
52408
|
}
|
|
52370
52409
|
};
|
|
52371
52410
|
k([vt()], Zf.prototype, "childrenBBox", 1);
|
|
@@ -52426,7 +52465,7 @@ function LX(r, t, e) {
|
|
|
52426
52465
|
const l = r.at(-1), u = r.at(-2);
|
|
52427
52466
|
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;
|
|
52428
52467
|
}
|
|
52429
|
-
var o3 = class extends
|
|
52468
|
+
var o3 = class extends Q1 {
|
|
52430
52469
|
constructor(r) {
|
|
52431
52470
|
super({ composite: true, fontFamily: "Roboto", fontSize: 48, lineHeight: "120%", textWrap: false, fontStyle: "normal", ...r }), this.view2D = this, o3.shadowRoot.append(this.element), this.applyFlex();
|
|
52432
52471
|
}
|
|
@@ -52510,7 +52549,7 @@ function bX(r, t, e, n, s = false) {
|
|
|
52510
52549
|
e -= Math.PI * 2 * T;
|
|
52511
52550
|
}
|
|
52512
52551
|
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);
|
|
52513
|
-
return n && Vh(a, new
|
|
52552
|
+
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;
|
|
52514
52553
|
}
|
|
52515
52554
|
function Vh(r, t) {
|
|
52516
52555
|
r.segments.push(t), r.arcLength += t.arcLength;
|
|
@@ -52528,13 +52567,13 @@ function Kf(r, t, e) {
|
|
|
52528
52567
|
}
|
|
52529
52568
|
let s = r[0];
|
|
52530
52569
|
for (let o = 2; o < r.length; o++) {
|
|
52531
|
-
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
|
|
52570
|
+
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);
|
|
52532
52571
|
_.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));
|
|
52533
52572
|
}
|
|
52534
|
-
const a = new
|
|
52573
|
+
const a = new l2(s, r[r.length - 1]);
|
|
52535
52574
|
return a.arcLength > 0 && (n.segments.push(a), n.arcLength += a.arcLength), n;
|
|
52536
52575
|
}
|
|
52537
|
-
var gr = class extends
|
|
52576
|
+
var gr = class extends y1 {
|
|
52538
52577
|
constructor(r) {
|
|
52539
52578
|
super(r);
|
|
52540
52579
|
}
|
|
@@ -52577,7 +52616,7 @@ k([vt()], gr.prototype, "profile", 1);
|
|
|
52577
52616
|
gr = k([R1("Circle")], gr);
|
|
52578
52617
|
var l3 = class extends a1 {
|
|
52579
52618
|
constructor(r) {
|
|
52580
|
-
super({ fontFamily: "monospace", ...r }), this.oldSelection = null, this.selectionProgress =
|
|
52619
|
+
super({ fontFamily: "monospace", ...r }), this.oldSelection = null, this.selectionProgress = C2(null);
|
|
52581
52620
|
}
|
|
52582
52621
|
static createSignal(r, t) {
|
|
52583
52622
|
return new Oh(r, void 0, t).toSignal();
|
|
@@ -52749,7 +52788,7 @@ property to \`null\`:
|
|
|
52749
52788
|
|
|
52750
52789
|
[Learn more](https://motioncanvas.io/docs/media#images) about working with
|
|
52751
52790
|
images.
|
|
52752
|
-
`, k1 = class extends
|
|
52791
|
+
`, k1 = class extends Q1 {
|
|
52753
52792
|
constructor(r) {
|
|
52754
52793
|
super(r), "src" in r || Te().warn({ message: "No source specified for the image", remarks: _X, inspect: this.key });
|
|
52755
52794
|
}
|
|
@@ -52854,7 +52893,7 @@ var B0 = class extends Xt {
|
|
|
52854
52893
|
}
|
|
52855
52894
|
points() {
|
|
52856
52895
|
const r = !this.startHandle.isInitial() || !this.endHandle.isInitial(), t = r ? this.startHandle() : Z.zero, e = r ? this.endHandle() : Z.zero;
|
|
52857
|
-
return { position: this.position(), startHandle:
|
|
52896
|
+
return { position: this.position(), startHandle: m1(t, this.localToParent()), endHandle: m1(e, this.localToParent()), auto: { start: this.startHandleAuto(), end: this.endHandleAuto() } };
|
|
52858
52897
|
}
|
|
52859
52898
|
getDefaultEndHandle() {
|
|
52860
52899
|
return this.startHandle().flipped;
|
|
@@ -52908,7 +52947,7 @@ function EX(r, t) {
|
|
|
52908
52947
|
const e = [];
|
|
52909
52948
|
let n = null;
|
|
52910
52949
|
for (const s of r.segments) {
|
|
52911
|
-
if (!(s instanceof
|
|
52950
|
+
if (!(s instanceof l2)) return null;
|
|
52912
52951
|
e.push(s.from), n = s.to;
|
|
52913
52952
|
}
|
|
52914
52953
|
return n && e.push(n), !Number.isNaN(t) && t > 0 && SX(e, t), e;
|
|
@@ -52996,7 +53035,7 @@ function MX(r, t, e, n) {
|
|
|
52996
53035
|
function Tv(r, t) {
|
|
52997
53036
|
for (let e = r.length; e < t.length; e++) {
|
|
52998
53037
|
const n = t[e].segments[0].getPoint(0).position;
|
|
52999
|
-
r.push({ arcLength: 0, closed: false, minSin: 0, segments: [new
|
|
53038
|
+
r.push({ arcLength: 0, closed: false, minSin: 0, segments: [new l2(n, n)] });
|
|
53000
53039
|
}
|
|
53001
53040
|
}
|
|
53002
53041
|
function wX(r, t, e, n) {
|
|
@@ -53059,9 +53098,9 @@ If you did this intentionally, and want to disable this message, set the
|
|
|
53059
53098
|
\`\`\`tsx
|
|
53060
53099
|
<Line stroke="#fff" lineWidth={8} points={null} />
|
|
53061
53100
|
\`\`\`
|
|
53062
|
-
`, u3 = class extends
|
|
53101
|
+
`, u3 = class extends y1 {
|
|
53063
53102
|
constructor(r) {
|
|
53064
|
-
super(r), this.tweenedPoints =
|
|
53103
|
+
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 });
|
|
53065
53104
|
}
|
|
53066
53105
|
static rotatePoints(r, t, e) {
|
|
53067
53106
|
if (e) {
|
|
@@ -53135,14 +53174,14 @@ If you did this intentionally, and want to disable this message, set the
|
|
|
53135
53174
|
return e;
|
|
53136
53175
|
}
|
|
53137
53176
|
drawOverlay(r, t) {
|
|
53138
|
-
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a =
|
|
53177
|
+
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a = m1(s, t);
|
|
53139
53178
|
r.fillStyle = "white", r.strokeStyle = "black", r.lineWidth = 1;
|
|
53140
|
-
const o = new Path2D(), u = (this.tweenedPoints() ?? this.parsedPoints()).map((h) =>
|
|
53179
|
+
const o = new Path2D(), u = (this.tweenedPoints() ?? this.parsedPoints()).map((h) => m1(h, t));
|
|
53141
53180
|
if (u.length > 0) {
|
|
53142
53181
|
b1(o, u[0]);
|
|
53143
53182
|
for (const h of u) V1(o, h), r.beginPath(), bi(r, h, 4), r.closePath(), r.fill(), r.stroke();
|
|
53144
53183
|
}
|
|
53145
|
-
r.strokeStyle = "white", r.stroke(o), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
53184
|
+
r.strokeStyle = "white", r.stroke(o), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, e), r.closePath(), r.stroke();
|
|
53146
53185
|
}
|
|
53147
53186
|
parsePoints(r) {
|
|
53148
53187
|
return r ? r.map((t) => new Z(_1(t))) : this.children().map((t) => t.position());
|
|
@@ -53185,13 +53224,13 @@ function Qv(r) {
|
|
|
53185
53224
|
if (o === "m") n = $2(a, 0, l, n), s = n;
|
|
53186
53225
|
else if (o === "l") {
|
|
53187
53226
|
const u = $2(a, 0, l, n);
|
|
53188
|
-
si(t, new
|
|
53227
|
+
si(t, new l2(n, u)), n = u;
|
|
53189
53228
|
} else if (o === "h") {
|
|
53190
53229
|
const u = i5(a, 0), h = l ? n.addX(u) : new Z(u, n.y);
|
|
53191
|
-
si(t, new
|
|
53230
|
+
si(t, new l2(n, h)), n = h;
|
|
53192
53231
|
} else if (o === "v") {
|
|
53193
53232
|
const u = i5(a, 0), h = l ? n.addY(u) : new Z(n.x, u);
|
|
53194
|
-
si(t, new
|
|
53233
|
+
si(t, new l2(n, h)), n = h;
|
|
53195
53234
|
} else if (o === "q") {
|
|
53196
53235
|
const u = $2(a, 0, l, n), h = $2(a, 2, l, n);
|
|
53197
53236
|
si(t, new _5(n, u, h)), n = h;
|
|
@@ -53209,14 +53248,14 @@ function Qv(r) {
|
|
|
53209
53248
|
si(t, new sE(n, u, h, T, f, d)), n = d;
|
|
53210
53249
|
} else if (o === "z") {
|
|
53211
53250
|
if (!s || n.equals(s)) continue;
|
|
53212
|
-
si(t, new
|
|
53251
|
+
si(t, new l2(n, s)), n = s;
|
|
53213
53252
|
}
|
|
53214
53253
|
}
|
|
53215
53254
|
return IX(t), t;
|
|
53216
53255
|
}
|
|
53217
|
-
var dn = class extends
|
|
53256
|
+
var dn = class extends y1 {
|
|
53218
53257
|
constructor(r) {
|
|
53219
|
-
super(r), this.currentProfile =
|
|
53258
|
+
super(r), this.currentProfile = C2(null), this.canHaveSubpath = true;
|
|
53220
53259
|
}
|
|
53221
53260
|
profile() {
|
|
53222
53261
|
return this.currentProfile() ?? Qv(this.data());
|
|
@@ -53247,7 +53286,7 @@ var dn = class extends g1 {
|
|
|
53247
53286
|
});
|
|
53248
53287
|
}
|
|
53249
53288
|
drawOverlay(r, t) {
|
|
53250
|
-
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a =
|
|
53289
|
+
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a = m1(s, t), o = this.profile().segments;
|
|
53251
53290
|
r.lineWidth = 1, r.strokeStyle = "white", r.fillStyle = "white", r.save(), r.setTransform(t);
|
|
53252
53291
|
let l = null, u = new Path2D();
|
|
53253
53292
|
for (const h of o) {
|
|
@@ -53255,13 +53294,13 @@ var dn = class extends g1 {
|
|
|
53255
53294
|
const [, T] = h.draw(u, 0, 1, l == null);
|
|
53256
53295
|
l = T.position;
|
|
53257
53296
|
}
|
|
53258
|
-
r.stroke(u), r.restore(), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
53297
|
+
r.stroke(u), r.restore(), r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, e), r.closePath(), r.stroke();
|
|
53259
53298
|
}
|
|
53260
53299
|
};
|
|
53261
53300
|
k([ot()], dn.prototype, "data", 2);
|
|
53262
53301
|
k([vt()], dn.prototype, "profile", 1);
|
|
53263
53302
|
k([e1()], dn.prototype, "tweenData", 1);
|
|
53264
|
-
var yl = class extends
|
|
53303
|
+
var yl = class extends y1 {
|
|
53265
53304
|
constructor(r) {
|
|
53266
53305
|
super(r);
|
|
53267
53306
|
}
|
|
@@ -53317,7 +53356,7 @@ k([w1("p0")], vl.prototype, "p0", 2);
|
|
|
53317
53356
|
k([w1("p1")], vl.prototype, "p1", 2);
|
|
53318
53357
|
k([w1("p2")], vl.prototype, "p2", 2);
|
|
53319
53358
|
k([vt()], vl.prototype, "segment", 1);
|
|
53320
|
-
var Io = class extends
|
|
53359
|
+
var Io = class extends y1 {
|
|
53321
53360
|
constructor(r) {
|
|
53322
53361
|
super(r);
|
|
53323
53362
|
}
|
|
@@ -53325,18 +53364,18 @@ var Io = class extends g1 {
|
|
|
53325
53364
|
return he.fromPoints(this.from(), this.to());
|
|
53326
53365
|
}
|
|
53327
53366
|
profile() {
|
|
53328
|
-
const r = new
|
|
53367
|
+
const r = new l2(this.from(), this.to());
|
|
53329
53368
|
return { arcLength: r.arcLength, minSin: 1, segments: [r] };
|
|
53330
53369
|
}
|
|
53331
53370
|
drawOverlay(r, t) {
|
|
53332
|
-
const e = this.childrenBBox().transformCorners(t), s = this.computedSize().mul(this.offset()).scale(0.5), a =
|
|
53333
|
-
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(),
|
|
53371
|
+
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);
|
|
53372
|
+
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();
|
|
53334
53373
|
}
|
|
53335
53374
|
};
|
|
53336
53375
|
k([w1("from")], Io.prototype, "from", 2);
|
|
53337
53376
|
k([w1("to")], Io.prototype, "to", 2);
|
|
53338
53377
|
Io = k([R1("Ray")], Io);
|
|
53339
|
-
var f4 = class extends
|
|
53378
|
+
var f4 = class extends Q1 {
|
|
53340
53379
|
constructor(r) {
|
|
53341
53380
|
super(r), this.currentTime = 0, this.lastTime = 0;
|
|
53342
53381
|
const t = Si().time, e = t();
|
|
@@ -53399,7 +53438,7 @@ as children to the spline using the \`Knot\` component:
|
|
|
53399
53438
|
<Knot y={100} startHandle={[-100, 50]} />
|
|
53400
53439
|
</Spline>
|
|
53401
53440
|
\`\`\`
|
|
53402
|
-
`, s6 = class extends
|
|
53441
|
+
`, s6 = class extends y1 {
|
|
53403
53442
|
constructor(r) {
|
|
53404
53443
|
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 });
|
|
53405
53444
|
}
|
|
@@ -53435,7 +53474,7 @@ as children to the spline using the \`Knot\` component:
|
|
|
53435
53474
|
return he.fromBBoxes(...r);
|
|
53436
53475
|
}
|
|
53437
53476
|
drawOverlay(r, t) {
|
|
53438
|
-
const e = this.computedSize(), n = this.childrenBBox().transformCorners(t), s = e.mul(this.offset()).scale(0.5), a =
|
|
53477
|
+
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;
|
|
53439
53478
|
r.lineWidth = 1, r.strokeStyle = "white", r.fillStyle = "white";
|
|
53440
53479
|
const l = new Path2D();
|
|
53441
53480
|
for (let u = 0; u < o.length; u++) {
|
|
@@ -53450,7 +53489,7 @@ as children to the spline using the \`Knot\` component:
|
|
|
53450
53489
|
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";
|
|
53451
53490
|
for (const y of [f, d]) y.magnitude > 0 && (b1(r, y), r.beginPath(), bi(r, y, 4), r.closePath(), r.fill(), r.stroke());
|
|
53452
53491
|
}
|
|
53453
|
-
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(),
|
|
53492
|
+
r.lineWidth = 1, r.beginPath(), n6(r, a), r.stroke(), r.beginPath(), M2(r, n), r.closePath(), r.stroke();
|
|
53454
53493
|
}
|
|
53455
53494
|
isKnot(r) {
|
|
53456
53495
|
return r instanceof B0;
|
|
@@ -53652,7 +53691,7 @@ var _4 = class ge extends a1 {
|
|
|
53652
53691
|
yield { id: l || "path", type: dn, props: { data: u, tweenAlignPath: true, ...ge.getMatrixTransformation(h), ...o } };
|
|
53653
53692
|
} else if (t.tagName === "rect") {
|
|
53654
53693
|
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);
|
|
53655
|
-
yield { id: l || "rect", type:
|
|
53694
|
+
yield { id: l || "rect", type: Q1, props: { width: u, height: h, radius: [T, f], ...ge.getMatrixTransformation(g), ...o } };
|
|
53656
53695
|
} else if (["circle", "ellipse"].includes(t.tagName)) {
|
|
53657
53696
|
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);
|
|
53658
53697
|
yield { id: l || t.tagName, type: gr, props: { size: T, ...o, ...ge.getMatrixTransformation(f) } };
|
|
@@ -53678,7 +53717,7 @@ k([Gn(() => {
|
|
|
53678
53717
|
const r = document.createElement("div");
|
|
53679
53718
|
return o3.shadowRoot.appendChild(r), r;
|
|
53680
53719
|
})], _4, "containerElement", 2);
|
|
53681
|
-
var uE = Symbol("Txt"),
|
|
53720
|
+
var uE = Symbol("Txt"), w2 = class extends a1 {
|
|
53682
53721
|
constructor({ children: r, ...t }) {
|
|
53683
53722
|
super(t), r && this.text(r);
|
|
53684
53723
|
}
|
|
@@ -53718,7 +53757,7 @@ var uE = Symbol("Txt"), M2 = class extends a1 {
|
|
|
53718
53757
|
super.applyFlex(), this.element.style.display = "inline";
|
|
53719
53758
|
}
|
|
53720
53759
|
updateLayout() {
|
|
53721
|
-
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 = "",
|
|
53760
|
+
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));
|
|
53722
53761
|
else for (const t of this.text().split("")) this.element.appendChild(document.createTextNode(t));
|
|
53723
53762
|
else if (this.styles.whiteSpace === "pre") {
|
|
53724
53763
|
this.element.innerText = "";
|
|
@@ -53728,18 +53767,18 @@ var uE = Symbol("Txt"), M2 = class extends a1 {
|
|
|
53728
53767
|
} else this.element.innerText = this.text();
|
|
53729
53768
|
}
|
|
53730
53769
|
};
|
|
53731
|
-
k([dt(""), Gf(lx), ot()],
|
|
53732
|
-
k([vt()],
|
|
53770
|
+
k([dt(""), Gf(lx), ot()], w2.prototype, "text", 2);
|
|
53771
|
+
k([vt()], w2.prototype, "parentTxt", 1);
|
|
53733
53772
|
k([Gn(() => {
|
|
53734
53773
|
try {
|
|
53735
53774
|
return new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
53736
53775
|
} catch {
|
|
53737
53776
|
return null;
|
|
53738
53777
|
}
|
|
53739
|
-
})],
|
|
53740
|
-
|
|
53778
|
+
})], w2, "segmenter", 2);
|
|
53779
|
+
w2 = k([R1("TxtLeaf")], w2);
|
|
53741
53780
|
["fill", "stroke", "lineWidth", "strokeFirst", "lineCap", "lineJoin", "lineDash", "lineDashOffset"].forEach((r) => {
|
|
53742
|
-
|
|
53781
|
+
w2.prototype[`get${Zr(r)}`] = function() {
|
|
53743
53782
|
var t;
|
|
53744
53783
|
return ((t = this.parentTxt()) == null ? void 0 : t[r]()) ?? this[r].context.getInitial();
|
|
53745
53784
|
};
|
|
@@ -53762,9 +53801,9 @@ var pv, mv, Ue = class extends (mv = a1, pv = uE, mv) {
|
|
|
53762
53801
|
let e = null;
|
|
53763
53802
|
for (let n = 0; n < t.length; n++) {
|
|
53764
53803
|
const s = t[n];
|
|
53765
|
-
e === null && s instanceof
|
|
53804
|
+
e === null && s instanceof w2 ? e = s : s.parent(null);
|
|
53766
53805
|
}
|
|
53767
|
-
e === null ? (e = new
|
|
53806
|
+
e === null ? (e = new w2({ text: r }), e.parent(this)) : e.text(r), this.setParsedChildren([e]);
|
|
53768
53807
|
}
|
|
53769
53808
|
setChildren(r) {
|
|
53770
53809
|
this.children.context.raw() !== r && (typeof r == "string" ? this.text(r) : super.setChildren(r));
|
|
@@ -53773,7 +53812,7 @@ var pv, mv, Ue = class extends (mv = a1, pv = uE, mv) {
|
|
|
53773
53812
|
var h;
|
|
53774
53813
|
yield (h = document.fonts) == null ? void 0 : h.ready;
|
|
53775
53814
|
const s = this.children();
|
|
53776
|
-
(s.length !== 1 || !(s[0] instanceof
|
|
53815
|
+
(s.length !== 1 || !(s[0] instanceof w2)) && this.text.save();
|
|
53777
53816
|
const a = this.childAs(0), o = a.text.context.raw(), l = this.size.context.raw();
|
|
53778
53817
|
a.text(r);
|
|
53779
53818
|
const u = this.size();
|
|
@@ -53794,7 +53833,7 @@ var pv, mv, Ue = class extends (mv = a1, pv = uE, mv) {
|
|
|
53794
53833
|
}
|
|
53795
53834
|
parseChildren(r) {
|
|
53796
53835
|
const t = [], e = Array.isArray(r) ? r : [r];
|
|
53797
|
-
for (const n of e) n instanceof Ue || n instanceof
|
|
53836
|
+
for (const n of e) n instanceof Ue || n instanceof w2 ? t.push(n) : typeof n == "string" && t.push(new w2({ text: n }));
|
|
53798
53837
|
return t;
|
|
53799
53838
|
}
|
|
53800
53839
|
applyFlex() {
|
|
@@ -54158,10 +54197,29 @@ async function WX(r, t, e, n) {
|
|
|
54158
54197
|
}
|
|
54159
54198
|
return a.getNextFrame();
|
|
54160
54199
|
}
|
|
54161
|
-
var
|
|
54200
|
+
var u1 = class extends T1 {
|
|
54162
54201
|
constructor(r) {
|
|
54163
54202
|
super(r), this.detectedFileType = "unknown", this.fileTypeWasDetected = false, this.lastFrame = null;
|
|
54164
54203
|
}
|
|
54204
|
+
dispose() {
|
|
54205
|
+
var r;
|
|
54206
|
+
try {
|
|
54207
|
+
const t = this.src(), e = /* @__PURE__ */ new Set([`${this.key}/${t || "pending"}`, `${this.key}/pending`]);
|
|
54208
|
+
t && t !== "undefined" && (e.add(`${this.key}/${t}`), e.add(`${this.key}/${t}_no_cors`));
|
|
54209
|
+
for (const n of e) {
|
|
54210
|
+
const s = (r = u1.pool) == null ? void 0 : r[n];
|
|
54211
|
+
if (s) {
|
|
54212
|
+
try {
|
|
54213
|
+
s.pause(), s.currentTime = 0;
|
|
54214
|
+
} catch {
|
|
54215
|
+
}
|
|
54216
|
+
delete u1.pool[n];
|
|
54217
|
+
}
|
|
54218
|
+
}
|
|
54219
|
+
} catch {
|
|
54220
|
+
}
|
|
54221
|
+
super.dispose();
|
|
54222
|
+
}
|
|
54165
54223
|
createVideoElement(r, t) {
|
|
54166
54224
|
const e = document.createElement("video");
|
|
54167
54225
|
if (e.crossOrigin = "anonymous", r && r !== "undefined") {
|
|
@@ -54178,7 +54236,7 @@ var L1 = class extends h1 {
|
|
|
54178
54236
|
if (s && (s.code === 4 || s.code === 2)) {
|
|
54179
54237
|
e.removeEventListener("error", n);
|
|
54180
54238
|
const a = `${t}_no_cors`;
|
|
54181
|
-
let o =
|
|
54239
|
+
let o = u1.pool[a];
|
|
54182
54240
|
if (!o) {
|
|
54183
54241
|
o = document.createElement("video"), o.crossOrigin = null;
|
|
54184
54242
|
try {
|
|
@@ -54189,9 +54247,9 @@ var L1 = class extends h1 {
|
|
|
54189
54247
|
} catch {
|
|
54190
54248
|
o.src = r;
|
|
54191
54249
|
}
|
|
54192
|
-
|
|
54250
|
+
u1.pool[a] = o;
|
|
54193
54251
|
}
|
|
54194
|
-
|
|
54252
|
+
u1.pool[t] = o;
|
|
54195
54253
|
}
|
|
54196
54254
|
};
|
|
54197
54255
|
e.addEventListener("error", n, { once: true });
|
|
@@ -54225,8 +54283,8 @@ var L1 = class extends h1 {
|
|
|
54225
54283
|
}
|
|
54226
54284
|
video() {
|
|
54227
54285
|
const r = this.src(), t = this.getCacheKey(r);
|
|
54228
|
-
let e =
|
|
54229
|
-
if (!e) e = this.createVideoElement(r, t),
|
|
54286
|
+
let e = u1.pool[t];
|
|
54287
|
+
if (!e) e = this.createVideoElement(r, t), u1.pool[t] = e;
|
|
54230
54288
|
else if (r && r !== "undefined") {
|
|
54231
54289
|
const s = (l) => {
|
|
54232
54290
|
try {
|
|
@@ -54272,8 +54330,8 @@ var L1 = class extends h1 {
|
|
|
54272
54330
|
const r = this.video(), t = this.clampTime(this.time()), e = this.getDuration();
|
|
54273
54331
|
if (r.playbackRate = this.playbackRate(), this.lastFrame && this.lastTime === t) return this.lastFrame;
|
|
54274
54332
|
const n = this.view().fps() / this.playbackRate();
|
|
54275
|
-
if (!
|
|
54276
|
-
const s = await
|
|
54333
|
+
if (!u1.imageCommunication) throw new Error("ServerSeekedVideo can only be used with HMR.");
|
|
54334
|
+
const s = await u1.imageCommunication.getFrame(this.key, r.src, t, e, n);
|
|
54277
54335
|
return this.lastFrame = s, this.lastTime = t, s;
|
|
54278
54336
|
}
|
|
54279
54337
|
async seekFunction() {
|
|
@@ -54344,15 +54402,15 @@ var L1 = class extends h1 {
|
|
|
54344
54402
|
})());
|
|
54345
54403
|
}
|
|
54346
54404
|
};
|
|
54347
|
-
|
|
54348
|
-
|
|
54349
|
-
k([dt(1), ot()],
|
|
54350
|
-
k([dt(true), ot()],
|
|
54351
|
-
k([dt(null), ot()],
|
|
54352
|
-
k([vt()],
|
|
54353
|
-
k([vt()],
|
|
54354
|
-
k([vt()],
|
|
54355
|
-
|
|
54405
|
+
u1.pool = {};
|
|
54406
|
+
u1.imageCommunication = null;
|
|
54407
|
+
k([dt(1), ot()], u1.prototype, "alpha", 2);
|
|
54408
|
+
k([dt(true), ot()], u1.prototype, "smoothing", 2);
|
|
54409
|
+
k([dt(null), ot()], u1.prototype, "decoder", 2);
|
|
54410
|
+
k([vt()], u1.prototype, "video", 1);
|
|
54411
|
+
k([vt()], u1.prototype, "seekedVideo", 1);
|
|
54412
|
+
k([vt()], u1.prototype, "fastSeekedVideo", 1);
|
|
54413
|
+
u1 = k([R1("Video")], u1);
|
|
54356
54414
|
var qX = class extends lw {
|
|
54357
54415
|
constructor(r) {
|
|
54358
54416
|
super(r), this.view = null, this.registeredNodes = /* @__PURE__ */ new Map(), this.nodeCounters = /* @__PURE__ */ new Map(), this.assetHash = Date.now().toString(), this.recreateView();
|
|
@@ -54400,7 +54458,7 @@ var qX = class extends lw {
|
|
|
54400
54458
|
});
|
|
54401
54459
|
}
|
|
54402
54460
|
transformMousePosition(r, t) {
|
|
54403
|
-
return
|
|
54461
|
+
return m1(new Z(r, t), this.getView().localToParent().inverse());
|
|
54404
54462
|
}
|
|
54405
54463
|
registerNode(r, t) {
|
|
54406
54464
|
var a;
|
|
@@ -54416,19 +54474,24 @@ var qX = class extends lw {
|
|
|
54416
54474
|
for (const r of this.registeredNodes.values()) !r.parent() && r !== this.view && (yield r);
|
|
54417
54475
|
}
|
|
54418
54476
|
getMediaAssets() {
|
|
54419
|
-
const t = this.playback.state === Y1.Rendering, e = Array.from(this.registeredNodes.values()).filter((l) => l instanceof
|
|
54420
|
-
|
|
54421
|
-
const
|
|
54422
|
-
|
|
54423
|
-
|
|
54424
|
-
|
|
54425
|
-
|
|
54426
|
-
|
|
54477
|
+
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);
|
|
54478
|
+
if (t) {
|
|
54479
|
+
const l = this.getView().globalTime();
|
|
54480
|
+
e.forEach((u) => {
|
|
54481
|
+
var T;
|
|
54482
|
+
const h = u.src();
|
|
54483
|
+
h && h !== "undefined" && !u.isPlaying() && ((T = u.isActiveAtGlobalTime) == null ? void 0 : T.call(u, l)) !== false && u.playing(true);
|
|
54484
|
+
}), n.forEach((u) => {
|
|
54485
|
+
var T;
|
|
54486
|
+
const h = u.src();
|
|
54487
|
+
h && h !== "undefined" && !u.isPlaying() && ((T = u.isActiveAtGlobalTime) == null ? void 0 : T.call(u, l)) !== false && u.playing(true);
|
|
54488
|
+
});
|
|
54489
|
+
}
|
|
54427
54490
|
const s = e.filter((l) => l.isPlaying()), a = n.filter((l) => l.isPlaying()), o = [];
|
|
54428
54491
|
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;
|
|
54429
54492
|
}
|
|
54430
54493
|
async syncAllMediaToCurrentTime(r) {
|
|
54431
|
-
const t = this.playback.time, n = Array.from(this.registeredNodes.values()).filter((s) => s instanceof
|
|
54494
|
+
const t = this.playback.time, n = Array.from(this.registeredNodes.values()).filter((s) => s instanceof T1).map((s) => {
|
|
54432
54495
|
try {
|
|
54433
54496
|
return s.syncToCurrentTime(t, { waitForSeek: r });
|
|
54434
54497
|
} catch (a) {
|
|
@@ -54442,11 +54505,11 @@ var qX = class extends lw {
|
|
|
54442
54505
|
}
|
|
54443
54506
|
}
|
|
54444
54507
|
stopAllMedia() {
|
|
54445
|
-
const r = Array.from(this.registeredNodes.values()).filter((t) => t instanceof
|
|
54508
|
+
const r = Array.from(this.registeredNodes.values()).filter((t) => t instanceof T1).filter((t) => t.isPlaying());
|
|
54446
54509
|
for (const t of r) t.dispose();
|
|
54447
54510
|
}
|
|
54448
54511
|
adjustVolume(r) {
|
|
54449
|
-
const t = Array.from(this.registeredNodes.values()).filter((e) => e instanceof
|
|
54512
|
+
const t = Array.from(this.registeredNodes.values()).filter((e) => e instanceof T1);
|
|
54450
54513
|
for (const e of t) e.setVolume(e.getVolume() * r);
|
|
54451
54514
|
}
|
|
54452
54515
|
recreateView() {
|
|
@@ -54468,7 +54531,7 @@ const YX = { name: "audio", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54468
54531
|
const n = fe();
|
|
54469
54532
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54470
54533
|
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;
|
|
54471
|
-
yield r().add(ce(
|
|
54534
|
+
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();
|
|
54472
54535
|
} };
|
|
54473
54536
|
function JX({ t: r, s: t, e }) {
|
|
54474
54537
|
const n = r.split(" "), s = e - t, a = n.join("").length;
|
|
@@ -54501,7 +54564,7 @@ const F0 = (r) => {
|
|
|
54501
54564
|
const o = fe();
|
|
54502
54565
|
r().add(ce(Ue, { ref: o, ...n, text: a.t, opacity: 0 }));
|
|
54503
54566
|
const l = fe(), u = fe(), h = new t2({ ...F0(n.colors.bgColor ?? "#444444"), a: (n == null ? void 0 : n.bgOpacity) ?? 1 });
|
|
54504
|
-
r().add(ce(
|
|
54567
|
+
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 });
|
|
54505
54568
|
}
|
|
54506
54569
|
return { refs: s };
|
|
54507
54570
|
}, *animateWords({ words: r, refs: t }) {
|
|
@@ -54929,15 +54992,15 @@ const P$ = { name: "circle", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54929
54992
|
var a;
|
|
54930
54993
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54931
54994
|
const n = fe(), s = fe();
|
|
54932
|
-
yield r().add(ce(
|
|
54995
|
+
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());
|
|
54933
54996
|
} }, mE = { name: "rect", *create({ containerRef: r, element: t, view: e }) {
|
|
54934
54997
|
const n = fe();
|
|
54935
|
-
yield* Ft(t == null ? void 0 : t.s), a6(`RectElement: ${JSON.stringify(t)}`), yield r().add(ce(
|
|
54998
|
+
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();
|
|
54936
54999
|
} }, k$ = 2, R$ = { name: "arrow", *create({ containerRef: r, element: t, view: e }) {
|
|
54937
55000
|
var Q, m, v, x, L, _, S, E;
|
|
54938
55001
|
const n = fe();
|
|
54939
55002
|
yield* Ft((t == null ? void 0 : t.s) ?? 0), a6(`ArrowElement: ${t == null ? void 0 : t.id}`);
|
|
54940
|
-
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(
|
|
55003
|
+
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);
|
|
54941
55004
|
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();
|
|
54942
55005
|
} }, B$ = { name: "line", *create(r) {
|
|
54943
55006
|
yield* mE.create(r);
|
|
@@ -54945,11 +55008,11 @@ const P$ = { name: "circle", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54945
55008
|
var u, h, T;
|
|
54946
55009
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54947
55010
|
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;
|
|
54948
|
-
yield r().add(ce(
|
|
55011
|
+
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());
|
|
54949
55012
|
} }, F$ = { name: "scene", *create({ containerRef: r, element: t, view: e }) {
|
|
54950
55013
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54951
55014
|
const n = fe();
|
|
54952
|
-
a6(`SceneElement: ${JSON.stringify(t)}`), yield r().add(ce(
|
|
55015
|
+
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();
|
|
54953
55016
|
} }, N$ = { name: "text", *create({ containerRef: r, element: t, view: e }) {
|
|
54954
55017
|
var a, o, l, u, h, T, f, d, p, g, y, c;
|
|
54955
55018
|
const n = fe(), s = ((a = t.props) == null ? void 0 : a.backgroundColor) != null && t.props.backgroundColor !== "";
|
|
@@ -54957,12 +55020,12 @@ const P$ = { name: "circle", *create({ containerRef: r, element: t, view: e }) {
|
|
|
54957
55020
|
const Q = fe(), m = fe(), v = fe();
|
|
54958
55021
|
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`));
|
|
54959
55022
|
const x = new t2({ ...F0(t.props.backgroundColor), a: ((u = t.props) == null ? void 0 : u.backgroundOpacity) ?? 1 }), L = 20;
|
|
54960
|
-
yield r().add(ce(
|
|
55023
|
+
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();
|
|
54961
55024
|
} 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();
|
|
54962
55025
|
} }, U$ = { name: "emoji", *create({ containerRef: r, element: t, view: e }) {
|
|
54963
55026
|
yield* Ft(t == null ? void 0 : t.s);
|
|
54964
55027
|
const n = fe(), s = fe();
|
|
54965
|
-
yield r().add(ce(
|
|
55028
|
+
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());
|
|
54966
55029
|
} };
|
|
54967
55030
|
class j$ {
|
|
54968
55031
|
constructor() {
|
|
@@ -55024,7 +55087,7 @@ function* X$({ view: r, track: t }) {
|
|
|
55024
55087
|
let e = 0;
|
|
55025
55088
|
for (const n of t.elements) {
|
|
55026
55089
|
const s = fe();
|
|
55027
|
-
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(
|
|
55090
|
+
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();
|
|
55028
55091
|
}
|
|
55029
55092
|
}
|
|
55030
55093
|
function* $$({ view: r, track: t }) {
|
|
@@ -55037,7 +55100,7 @@ function* $$({ view: r, track: t }) {
|
|
|
55037
55100
|
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 };
|
|
55038
55101
|
yield* Ft((l == null ? void 0 : l.s) - e);
|
|
55039
55102
|
const H = fe();
|
|
55040
|
-
s == null || s.rectProps, n().add(ce(
|
|
55103
|
+
s == null || s.rectProps, n().add(ce(Q1, { ref: H, ...c, x: S.x, y: S.y, layout: true }, l.id));
|
|
55041
55104
|
const D = { ...A, ...h ? { wordsMs: h } : {} }, I = fE(d ?? "");
|
|
55042
55105
|
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();
|
|
55043
55106
|
}
|
|
@@ -55077,7 +55140,7 @@ const Ev = (r, t) => {
|
|
|
55077
55140
|
}, eY = ZX("scene", function* (r) {
|
|
55078
55141
|
var n;
|
|
55079
55142
|
const t = H5().variables.get("input", null)(), e = H5().variables.get("playerId", null)();
|
|
55080
|
-
if (t) if (yield r.add(ce(
|
|
55143
|
+
if (t) if (yield r.add(ce(Q1, { fill: t.backgroundColor ?? hE, size: "100%" })), t.tracks) {
|
|
55081
55144
|
const s = [];
|
|
55082
55145
|
for (const a of t.tracks) switch (a.type) {
|
|
55083
55146
|
case r5.VIDEO:
|