manim-web 0.3.3 → 0.3.4

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 CHANGED
@@ -2344,7 +2344,7 @@ function Mo(s, t, e, i, r) {
2344
2344
  (s[2] ?? 0) * a + (t[2] ?? 0) * 3 * o * r + (e[2] ?? 0) * 3 * n * h + (i[2] ?? 0) * l
2345
2345
  ];
2346
2346
  }
2347
- class B extends st {
2347
+ class I extends st {
2348
2348
  /**
2349
2349
  * Array of cubic Bezier control points in 3D.
2350
2350
  * Each point is [x, y, z].
@@ -2376,7 +2376,7 @@ class B extends st {
2376
2376
  * linewidth_px = strokeWidth * 0.01 * (rendererWidth / frameWidth)
2377
2377
  */
2378
2378
  static _toLinewidth(t) {
2379
- return t * 0.01 * (B._rendererWidth / B._frameWidth);
2379
+ return t * 0.01 * (I._rendererWidth / I._frameWidth);
2380
2380
  }
2381
2381
  /**
2382
2382
  * When true, VMobjects use GPU Bezier SDF shaders for stroke rendering
@@ -2405,10 +2405,10 @@ class B extends st {
2405
2405
  * Get the shared BezierRenderer, creating it if needed.
2406
2406
  */
2407
2407
  static _getBezierRenderer() {
2408
- return B._sharedBezierRenderer || (B._sharedBezierRenderer = new Is({
2409
- resolution: [B._rendererWidth, B._rendererHeight],
2408
+ return I._sharedBezierRenderer || (I._sharedBezierRenderer = new Is({
2409
+ resolution: [I._rendererWidth, I._rendererHeight],
2410
2410
  pixelRatio: typeof window < "u" ? Math.min(window.devicePixelRatio, 2) : 1
2411
- })), B._sharedBezierRenderer;
2411
+ })), I._sharedBezierRenderer;
2412
2412
  }
2413
2413
  constructor() {
2414
2414
  super(), this.fillOpacity = 0.5, this._style.fillOpacity = 0.5, this._style.strokeOpacity = 1;
@@ -2418,7 +2418,7 @@ class B extends st {
2418
2418
  * Returns the per-instance override if set, otherwise the class-level default.
2419
2419
  */
2420
2420
  get shaderCurves() {
2421
- return this._useShaderCurvesOverride ?? B.useShaderCurves;
2421
+ return this._useShaderCurvesOverride ?? I.useShaderCurves;
2422
2422
  }
2423
2423
  /**
2424
2424
  * Enable or disable shader-based Bezier curve rendering for this instance.
@@ -2698,7 +2698,7 @@ class B extends st {
2698
2698
  const n = new Array(r.length).fill(-1);
2699
2699
  for (let h = 0; h < r.length; h++)
2700
2700
  for (let l = 0; l < r.length; l++)
2701
- if (h !== l && B._pointInPolygon(r[h][0], r[l])) {
2701
+ if (h !== l && I._pointInPolygon(r[h][0], r[l])) {
2702
2702
  n[h] = l;
2703
2703
  break;
2704
2704
  }
@@ -2748,7 +2748,7 @@ class B extends st {
2748
2748
  _sampleBezierOutline(t, e) {
2749
2749
  const i = [];
2750
2750
  for (let r = 0; r + 3 < t.length; r += 3) {
2751
- const n = t[r], o = t[r + 1], a = t[r + 2], h = t[r + 3], l = B._isNearlyLinear(n, o, a, h) ? 1 : e, c = r === 0 ? 0 : 1;
2751
+ const n = t[r], o = t[r + 1], a = t[r + 2], h = t[r + 3], l = I._isNearlyLinear(n, o, a, h) ? 1 : e, c = r === 0 ? 0 : 1;
2752
2752
  for (let u = c; u <= l; u++) {
2753
2753
  const d = u / l, f = Mo(n, o, a, h, d);
2754
2754
  i.push([f[0], f[1]]);
@@ -2778,10 +2778,10 @@ class B extends st {
2778
2778
  const t = new S.Group();
2779
2779
  return this._strokeMaterial = new Ui({
2780
2780
  color: new S.Color(this.color).getHex(),
2781
- linewidth: B._toLinewidth(this.strokeWidth),
2781
+ linewidth: I._toLinewidth(this.strokeWidth),
2782
2782
  opacity: this._opacity,
2783
2783
  transparent: this._opacity < 1,
2784
- resolution: new S.Vector2(B._rendererWidth, B._rendererHeight),
2784
+ resolution: new S.Vector2(I._rendererWidth, I._rendererHeight),
2785
2785
  dashed: !1
2786
2786
  }), this._fillMaterial = new S.MeshBasicMaterial({
2787
2787
  color: new S.Color(this._style.fillColor || this.color),
@@ -2945,19 +2945,19 @@ class B extends st {
2945
2945
  }
2946
2946
  const u = c < 0 ? 1 : -1, d = [];
2947
2947
  for (let m = 0; m < r; m++) {
2948
- const _ = h[(m - 1 + r) % r], y = h[m], x = h[(m + 1) % r], w = y[0] - _[0], M = y[1] - _[1], C = x[0] - y[0], P = x[1] - y[1], R = Math.sqrt(w * w + M * M) || 1, O = Math.sqrt(C * C + P * P) || 1, z = u * (-M / R), I = u * (w / R), W = u * (-P / O), H = u * (C / O);
2949
- let N = z + W, q = I + H;
2948
+ const _ = h[(m - 1 + r) % r], y = h[m], x = h[(m + 1) % r], w = y[0] - _[0], M = y[1] - _[1], C = x[0] - y[0], P = x[1] - y[1], R = Math.sqrt(w * w + M * M) || 1, O = Math.sqrt(C * C + P * P) || 1, z = u * (-M / R), B = u * (w / R), W = u * (-P / O), H = u * (C / O);
2949
+ let N = z + W, q = B + H;
2950
2950
  const rt = Math.sqrt(N * N + q * q);
2951
- rt > 1e-10 ? (N /= rt, q /= rt) : (N = z, q = I);
2952
- const ht = z * N + I * q, ot = (ht > 0.1 ? l / ht : l * 2) + 5e-3;
2951
+ rt > 1e-10 ? (N /= rt, q /= rt) : (N = z, q = B);
2952
+ const ht = z * N + B * q, ot = (ht > 0.1 ? l / ht : l * 2) + 5e-3;
2953
2953
  d.push(y[0] + N * ot, y[1] + q * ot, y[2]);
2954
2954
  }
2955
2955
  for (let m = 0; m < r; m++) {
2956
- const _ = h[(m - 1 + r) % r], y = h[m], x = h[(m + 1) % r], w = y[0] - _[0], M = y[1] - _[1], C = x[0] - y[0], P = x[1] - y[1], R = Math.sqrt(w * w + M * M) || 1, O = Math.sqrt(C * C + P * P) || 1, z = u * (-M / R), I = u * (w / R), W = u * (-P / O), H = u * (C / O);
2957
- let N = z + W, q = I + H;
2956
+ const _ = h[(m - 1 + r) % r], y = h[m], x = h[(m + 1) % r], w = y[0] - _[0], M = y[1] - _[1], C = x[0] - y[0], P = x[1] - y[1], R = Math.sqrt(w * w + M * M) || 1, O = Math.sqrt(C * C + P * P) || 1, z = u * (-M / R), B = u * (w / R), W = u * (-P / O), H = u * (C / O);
2957
+ let N = z + W, q = B + H;
2958
2958
  const rt = Math.sqrt(N * N + q * q);
2959
- rt > 1e-10 ? (N /= rt, q /= rt) : (N = z, q = I);
2960
- const ht = z * N + I * q, ot = ht > 0.1 ? l / ht : l * 2;
2959
+ rt > 1e-10 ? (N /= rt, q /= rt) : (N = z, q = B);
2960
+ const ht = z * N + B * q, ot = ht > 0.1 ? l / ht : l * 2;
2961
2961
  d.push(y[0] - N * ot, y[1] - q * ot, y[2]);
2962
2962
  }
2963
2963
  const f = [];
@@ -3001,7 +3001,7 @@ class B extends st {
3001
3001
  this._cachedBezierMesh && (this._cachedBezierMesh.geometry.dispose(), t.remove(this._cachedBezierMesh), this._cachedBezierMesh = null);
3002
3002
  return;
3003
3003
  }
3004
- const i = B._getBezierRenderer(), r = Is.extractSegments(
3004
+ const i = I._getBezierRenderer(), r = Is.extractSegments(
3005
3005
  e,
3006
3006
  this.strokeWidth,
3007
3007
  void 0,
@@ -3040,7 +3040,7 @@ class B extends st {
3040
3040
  _sampleBezierPath(t, e = 4) {
3041
3041
  const i = [];
3042
3042
  for (let r = 0; r + 3 < t.length; r += 3) {
3043
- const n = t[r], o = t[r + 1], a = t[r + 2], h = t[r + 3], l = B._isNearlyLinear(n, o, a, h) ? 1 : e;
3043
+ const n = t[r], o = t[r + 1], a = t[r + 2], h = t[r + 3], l = I._isNearlyLinear(n, o, a, h) ? 1 : e;
3044
3044
  for (let c = 0; c <= l; c++) {
3045
3045
  const u = c / l, d = Mo(n, o, a, h, u);
3046
3046
  (c === 0 || i.length === 0 || Math.abs(d[0] - i[i.length - 1][0]) > 1e-4 || Math.abs(d[1] - i[i.length - 1][1]) > 1e-4) && i.push(d);
@@ -3062,9 +3062,9 @@ class B extends st {
3062
3062
  * Sync material properties to Three.js
3063
3063
  */
3064
3064
  _syncMaterialToThree() {
3065
- this._strokeMaterial && (this._strokeMaterial.color.set(this.color), this._strokeMaterial.opacity = this._opacity, this._strokeMaterial.transparent = this._opacity < 1, this._strokeMaterial.linewidth = B._toLinewidth(this.strokeWidth), this._strokeMaterial.resolution.set(B._rendererWidth, B._rendererHeight)), this._fillMaterial && (this._fillMaterial.color.set(this._style.fillColor || this.color), this._fillMaterial.opacity = this._opacity * this.fillOpacity), this._strokeMeshMaterial && (this._strokeMeshMaterial.color.set(this.color), this._strokeMeshMaterial.opacity = this._opacity, this._strokeMeshMaterial.transparent = this._opacity < 1), B._sharedBezierRenderer && B._sharedBezierRenderer.updateResolution(
3066
- B._rendererWidth,
3067
- B._rendererHeight,
3065
+ this._strokeMaterial && (this._strokeMaterial.color.set(this.color), this._strokeMaterial.opacity = this._opacity, this._strokeMaterial.transparent = this._opacity < 1, this._strokeMaterial.linewidth = I._toLinewidth(this.strokeWidth), this._strokeMaterial.resolution.set(I._rendererWidth, I._rendererHeight)), this._fillMaterial && (this._fillMaterial.color.set(this._style.fillColor || this.color), this._fillMaterial.opacity = this._opacity * this.fillOpacity), this._strokeMeshMaterial && (this._strokeMeshMaterial.color.set(this.color), this._strokeMeshMaterial.opacity = this._opacity, this._strokeMeshMaterial.transparent = this._opacity < 1), I._sharedBezierRenderer && I._sharedBezierRenderer.updateResolution(
3066
+ I._rendererWidth,
3067
+ I._rendererHeight,
3068
3068
  typeof window < "u" ? Math.min(window.devicePixelRatio, 2) : 1
3069
3069
  ), this._geometryDirty && this._threeObject instanceof S.Group && (this._updateGeometry(this._threeObject), this._geometryDirty = !1);
3070
3070
  }
@@ -3072,7 +3072,7 @@ class B extends st {
3072
3072
  * Create a copy of this VMobject
3073
3073
  */
3074
3074
  _createCopy() {
3075
- const t = new B();
3075
+ const t = new I();
3076
3076
  return t._points3D = this._points3D.map((e) => [...e]), t._visiblePointCount = this._visiblePointCount, t;
3077
3077
  }
3078
3078
  /**
@@ -3115,7 +3115,7 @@ class B extends st {
3115
3115
  this._cachedLine2Array = [], this._cachedFillMesh = null, this._cachedBezierMesh && (this._cachedBezierMesh.geometry.dispose(), this._cachedBezierMesh = null), this._cachedStrokeMesh && (this._cachedStrokeMesh.geometry.dispose(), this._cachedStrokeMesh = null), this._strokeMeshMaterial?.dispose(), this._strokeMeshMaterial = null, super.dispose();
3116
3116
  }
3117
3117
  }
3118
- class Mt extends B {
3118
+ class Mt extends I {
3119
3119
  /**
3120
3120
  * Create a new VGroup containing the given mobjects.
3121
3121
  * Accepts both VMobjects and general Mobjects (e.g., Axes, Group).
@@ -3148,7 +3148,7 @@ class Mt extends B {
3148
3148
  */
3149
3149
  add(...t) {
3150
3150
  for (const e of t)
3151
- e instanceof B ? this._addSingleVMobject(e) : super.add(e);
3151
+ e instanceof I ? this._addSingleVMobject(e) : super.add(e);
3152
3152
  return this;
3153
3153
  }
3154
3154
  /**
@@ -3315,7 +3315,7 @@ class Mt extends B {
3315
3315
  setFillOpacity(t) {
3316
3316
  super.setFillOpacity(t);
3317
3317
  for (const e of this.children)
3318
- e instanceof B && e.setFillOpacity(t);
3318
+ e instanceof I && e.setFillOpacity(t);
3319
3319
  return this;
3320
3320
  }
3321
3321
  /**
@@ -3325,7 +3325,7 @@ class Mt extends B {
3325
3325
  */
3326
3326
  setFill(t, e) {
3327
3327
  for (const i of this.children)
3328
- i instanceof B && (t !== void 0 && i.setColor(t), e !== void 0 && i.setFillOpacity(e));
3328
+ i instanceof I && (t !== void 0 && i.setColor(t), e !== void 0 && i.setFillOpacity(e));
3329
3329
  return this;
3330
3330
  }
3331
3331
  /**
@@ -3337,7 +3337,7 @@ class Mt extends B {
3337
3337
  */
3338
3338
  setStroke(t, e, i) {
3339
3339
  for (const r of this.children)
3340
- r instanceof B && (t !== void 0 && r.setColor(t), e !== void 0 && r.setStrokeWidth(e), i !== void 0 && r.setOpacity(i));
3340
+ r instanceof I && (t !== void 0 && r.setColor(t), e !== void 0 && r.setStrokeWidth(e), i !== void 0 && r.setOpacity(i));
3341
3341
  return this;
3342
3342
  }
3343
3343
  /**
@@ -3395,7 +3395,7 @@ class Mt extends B {
3395
3395
  getCombinedPoints() {
3396
3396
  const t = [];
3397
3397
  for (const e of this.children)
3398
- e instanceof B && t.push(...e.getPoints());
3398
+ e instanceof I && t.push(...e.getPoints());
3399
3399
  return t;
3400
3400
  }
3401
3401
  /**
@@ -3466,7 +3466,7 @@ class Mt extends B {
3466
3466
  get points() {
3467
3467
  const t = [];
3468
3468
  for (const e of this.children)
3469
- e instanceof B && t.push(...e.points);
3469
+ e instanceof I && t.push(...e.points);
3470
3470
  return t;
3471
3471
  }
3472
3472
  /**
@@ -3591,7 +3591,7 @@ class Yr extends Mt {
3591
3591
  return typeof e == "string" && t._dict.has(e) ? t._dict.get(e) : t[e];
3592
3592
  },
3593
3593
  set(t, e, i) {
3594
- return typeof e == "string" && i instanceof B ? (t.set(e, i), !0) : (t[e] = i, !0);
3594
+ return typeof e == "string" && i instanceof I ? (t.set(e, i), !0) : (t[e] = i, !0);
3595
3595
  },
3596
3596
  has(t, e) {
3597
3597
  return typeof e == "string" && t._dict.has(e) || e in t;
@@ -3657,7 +3657,7 @@ class Yr extends Mt {
3657
3657
  return this.get(t);
3658
3658
  }
3659
3659
  }
3660
- class x0 extends B {
3660
+ class x0 extends I {
3661
3661
  /**
3662
3662
  * Create a VectorizedPoint at the given location.
3663
3663
  * @param location - The point location as [x, y, z], defaults to [0, 0, 0]
@@ -4063,7 +4063,7 @@ class Of {
4063
4063
  t.parentElement && t.parentElement.removeChild(t), this._renderer.dispose();
4064
4064
  }
4065
4065
  }
4066
- class ea extends B {
4066
+ class ea extends I {
4067
4067
  _camera;
4068
4068
  _baseFrameWidth;
4069
4069
  _baseFrameHeight;
@@ -4671,13 +4671,13 @@ function cn(s) {
4671
4671
  style: { ...s.style },
4672
4672
  children: []
4673
4673
  };
4674
- s instanceof B && (t.points2D = s.points.map((e) => ({ x: e.x, y: e.y })), t.points3D = s.getPoints().map((e) => [...e]), t.visiblePointCount = s._visiblePointCount ?? null);
4674
+ s instanceof I && (t.points2D = s.points.map((e) => ({ x: e.x, y: e.y })), t.points3D = s.getPoints().map((e) => [...e]), t.visiblePointCount = s._visiblePointCount ?? null);
4675
4675
  for (const e of s.children)
4676
4676
  t.children.push(cn(e));
4677
4677
  return t;
4678
4678
  }
4679
4679
  function un(s, t) {
4680
- s.position.set(t.position[0], t.position[1], t.position[2]), s.rotation.set(t.rotation[0], t.rotation[1], t.rotation[2], t.rotation[3]), s.scaleVector.set(t.scale[0], t.scale[1], t.scale[2]), s.color = t.color, s.setOpacity(t.opacity), s.strokeWidth = t.strokeWidth, s.fillOpacity = t.fillOpacity, s.setStyle(t.style), s instanceof B && (t.points3D && t.points3D.length > 0 ? s.setPoints(t.points3D) : t.points2D && t.points2D.length > 0 && s.setPoints(t.points2D), t.visiblePointCount !== void 0 && (s._visiblePointCount = t.visiblePointCount, s._geometryDirty = !0));
4680
+ s.position.set(t.position[0], t.position[1], t.position[2]), s.rotation.set(t.rotation[0], t.rotation[1], t.rotation[2], t.rotation[3]), s.scaleVector.set(t.scale[0], t.scale[1], t.scale[2]), s.color = t.color, s.setOpacity(t.opacity), s.strokeWidth = t.strokeWidth, s.fillOpacity = t.fillOpacity, s.setStyle(t.style), s instanceof I && (t.points3D && t.points3D.length > 0 ? s.setPoints(t.points3D) : t.points2D && t.points2D.length > 0 && s.setPoints(t.points2D), t.visiblePointCount !== void 0 && (s._visiblePointCount = t.visiblePointCount, s._geometryDirty = !0));
4681
4681
  const e = Math.min(s.children.length, t.children.length);
4682
4682
  for (let i = 0; i < e; i++)
4683
4683
  un(s.children[i], t.children[i]);
@@ -5229,7 +5229,7 @@ class vs {
5229
5229
  };
5230
5230
  this._camera = new Ef(d);
5231
5231
  const f = this._renderer.width / this._renderer.height;
5232
- this._camera.setAspectRatio(f), B._rendererWidth = this._renderer.width, B._rendererHeight = this._renderer.height, B._frameWidth = o, this._mobjects = /* @__PURE__ */ new Set(), this._stateManager = new Wf(
5232
+ this._camera.setAspectRatio(f), I._rendererWidth = this._renderer.width, I._rendererHeight = this._renderer.height, I._frameWidth = o, this._mobjects = /* @__PURE__ */ new Set(), this._stateManager = new Wf(
5233
5233
  () => Array.from(this._mobjects)
5234
5234
  ), this._render();
5235
5235
  }
@@ -5644,7 +5644,7 @@ class vs {
5644
5644
  resize(t, e) {
5645
5645
  this._renderer.resize(t, e);
5646
5646
  const i = t / e;
5647
- return this._camera.setAspectRatio(i), B._rendererWidth = t, B._rendererHeight = e, this._render(), this;
5647
+ return this._camera.setAspectRatio(i), I._rendererWidth = t, I._rendererHeight = e, this._render(), this;
5648
5648
  }
5649
5649
  /**
5650
5650
  * Get the canvas element.
@@ -6155,7 +6155,7 @@ class w0 extends vs {
6155
6155
  groupSelected() {
6156
6156
  const t = this.selection.getSelectedArray();
6157
6157
  if (t.length < 2) return;
6158
- const e = t.filter((r) => r instanceof B);
6158
+ const e = t.filter((r) => r instanceof I);
6159
6159
  if (e.length < 2) return;
6160
6160
  this.saveState(), this.selection.deselectAll();
6161
6161
  for (const r of e)
@@ -7015,7 +7015,7 @@ class ip {
7015
7015
  this._controls.dispose();
7016
7016
  }
7017
7017
  }
7018
- class _e extends B {
7018
+ class _e extends I {
7019
7019
  _start;
7020
7020
  _end;
7021
7021
  constructor(t = {}) {
@@ -7131,7 +7131,7 @@ class _e extends B {
7131
7131
  });
7132
7132
  }
7133
7133
  }
7134
- class dn extends B {
7134
+ class dn extends I {
7135
7135
  constructor(t, e, i, r) {
7136
7136
  super(), this.color = i, this.strokeWidth = r, this.fillOpacity = 0;
7137
7137
  const n = e[0] - t[0], o = e[1] - t[1], a = e[2] - t[2];
@@ -7146,7 +7146,7 @@ class dn extends B {
7146
7146
  return new dn([0, 0, 0], [1, 0, 0], this.color, this.strokeWidth);
7147
7147
  }
7148
7148
  }
7149
- class Ns extends B {
7149
+ class Ns extends I {
7150
7150
  constructor(t, e, i, r) {
7151
7151
  super(), this.color = r, this.fillOpacity = 1, this.strokeWidth = 0;
7152
7152
  const n = (a, h, l, c) => {
@@ -7338,13 +7338,13 @@ class k0 extends ze {
7338
7338
  const N = Math.sqrt(g * g + p * p);
7339
7339
  g /= N, p /= N;
7340
7340
  }
7341
- const _ = r - u * this._tipLength, y = n - d * this._tipLength, x = o - f * this._tipLength, w = t + u * this._tipLength, M = e + d * this._tipLength, C = i + f * this._tipLength, P = [_ + g * this._tipWidth, y + p * this._tipWidth, x + m * this._tipWidth], R = [_ - g * this._tipWidth, y - p * this._tipWidth, x - m * this._tipWidth], O = [w + g * this._tipWidth, M + p * this._tipWidth, C + m * this._tipWidth], z = [w - g * this._tipWidth, M - p * this._tipWidth, C - m * this._tipWidth], I = new dn(
7341
+ const _ = r - u * this._tipLength, y = n - d * this._tipLength, x = o - f * this._tipLength, w = t + u * this._tipLength, M = e + d * this._tipLength, C = i + f * this._tipLength, P = [_ + g * this._tipWidth, y + p * this._tipWidth, x + m * this._tipWidth], R = [_ - g * this._tipWidth, y - p * this._tipWidth, x - m * this._tipWidth], O = [w + g * this._tipWidth, M + p * this._tipWidth, C + m * this._tipWidth], z = [w - g * this._tipWidth, M - p * this._tipWidth, C - m * this._tipWidth], B = new dn(
7342
7342
  [w, M, C],
7343
7343
  [_, y, x],
7344
7344
  this._color,
7345
7345
  this._strokeWidth
7346
7346
  );
7347
- this.add(I);
7347
+ this.add(B);
7348
7348
  const W = new Ns([r, n, o], P, R, this._color);
7349
7349
  this.add(W);
7350
7350
  const H = new Ns([t, e, i], z, O, this._color);
@@ -7387,7 +7387,7 @@ class xx extends Qs {
7387
7387
  });
7388
7388
  }
7389
7389
  }
7390
- class ve extends B {
7390
+ class ve extends I {
7391
7391
  _width;
7392
7392
  _height;
7393
7393
  _centerPoint;
@@ -8305,7 +8305,7 @@ class dh extends xt {
8305
8305
  return this._frame;
8306
8306
  }
8307
8307
  }
8308
- class oa extends B {
8308
+ class oa extends I {
8309
8309
  _radius;
8310
8310
  _numPoints;
8311
8311
  _centerPoint;
@@ -8404,7 +8404,7 @@ class oa extends B {
8404
8404
  });
8405
8405
  }
8406
8406
  }
8407
- class fn extends B {
8407
+ class fn extends I {
8408
8408
  _vertices;
8409
8409
  _closed;
8410
8410
  constructor(t) {
@@ -8622,7 +8622,7 @@ class Tx extends pn {
8622
8622
  super({ ...t, numSides: 5 });
8623
8623
  }
8624
8624
  }
8625
- class mn extends B {
8625
+ class mn extends I {
8626
8626
  _radius;
8627
8627
  _startAngle;
8628
8628
  _angle;
@@ -8833,7 +8833,7 @@ class To extends mn {
8833
8833
  });
8834
8834
  }
8835
8835
  }
8836
- class T0 extends B {
8836
+ class T0 extends I {
8837
8837
  _width;
8838
8838
  _height;
8839
8839
  _centerPoint;
@@ -8946,7 +8946,7 @@ class T0 extends B {
8946
8946
  });
8947
8947
  }
8948
8948
  }
8949
- class C0 extends B {
8949
+ class C0 extends I {
8950
8950
  _innerRadius;
8951
8951
  _outerRadius;
8952
8952
  _centerPoint;
@@ -9036,7 +9036,7 @@ class C0 extends B {
9036
9036
  });
9037
9037
  }
9038
9038
  }
9039
- class P0 extends B {
9039
+ class P0 extends I {
9040
9040
  _innerRadius;
9041
9041
  _outerRadius;
9042
9042
  _startAngle;
@@ -9063,7 +9063,7 @@ class P0 extends B {
9063
9063
  */
9064
9064
  _generatePoints() {
9065
9065
  const [t, e, i] = this._centerPoint, r = [], n = Math.max(1, Math.ceil(Math.abs(this._angle) / (Math.PI / 2) * (this._numComponents / 4))), o = this._angle / n, a = 4 / 3 * Math.tan(o / 4), h = (p, m, _, y) => {
9066
- const x = t + p * Math.cos(m), w = e + p * Math.sin(m), M = t + p * Math.cos(_), C = e + p * Math.sin(_), P = -Math.sin(m), R = Math.cos(m), O = x + a * p * P, z = w + a * p * R, I = -Math.sin(_), W = Math.cos(_), H = M - a * p * I, N = C - a * p * W;
9066
+ const x = t + p * Math.cos(m), w = e + p * Math.sin(m), M = t + p * Math.cos(_), C = e + p * Math.sin(_), P = -Math.sin(m), R = Math.cos(m), O = x + a * p * P, z = w + a * p * R, B = -Math.sin(_), W = Math.cos(_), H = M - a * p * B, N = C - a * p * W;
9067
9067
  y && r.push([x, w, i]), r.push([O, z, i]), r.push([H, N, i]), r.push([M, C, i]);
9068
9068
  }, l = (p, m) => {
9069
9069
  const _ = m[0] - p[0], y = m[1] - p[1];
@@ -9159,7 +9159,7 @@ class P0 extends B {
9159
9159
  });
9160
9160
  }
9161
9161
  }
9162
- class A0 extends B {
9162
+ class A0 extends I {
9163
9163
  _radius;
9164
9164
  _startAngle;
9165
9165
  _angle;
@@ -9192,7 +9192,7 @@ class A0 extends B {
9192
9192
  const l = h[0] - t, c = h[1] - e;
9193
9193
  r.push([t + l / 3, e + c / 3, i]), r.push([t + 2 * l / 3, e + 2 * c / 3, i]), r.push([...h]);
9194
9194
  for (let p = 0; p < n; p++) {
9195
- const m = this._startAngle + p * o, _ = this._startAngle + (p + 1) * o, y = t + this._radius * Math.cos(m), x = e + this._radius * Math.sin(m), w = t + this._radius * Math.cos(_), M = e + this._radius * Math.sin(_), C = -Math.sin(m), P = Math.cos(m), R = y + a * this._radius * C, O = x + a * this._radius * P, z = -Math.sin(_), I = Math.cos(_), W = w - a * this._radius * z, H = M - a * this._radius * I;
9195
+ const m = this._startAngle + p * o, _ = this._startAngle + (p + 1) * o, y = t + this._radius * Math.cos(m), x = e + this._radius * Math.sin(m), w = t + this._radius * Math.cos(_), M = e + this._radius * Math.sin(_), C = -Math.sin(m), P = Math.cos(m), R = y + a * this._radius * C, O = x + a * this._radius * P, z = -Math.sin(_), B = Math.cos(_), W = w - a * this._radius * z, H = M - a * this._radius * B;
9196
9196
  r.push([R, O, i]), r.push([W, H, i]), r.push([w, M, i]);
9197
9197
  }
9198
9198
  const u = this._startAngle + this._angle, d = [
@@ -9272,7 +9272,7 @@ class A0 extends B {
9272
9272
  });
9273
9273
  }
9274
9274
  }
9275
- class D0 extends B {
9275
+ class D0 extends I {
9276
9276
  _vertices;
9277
9277
  _arcConfigs;
9278
9278
  constructor(t) {
@@ -9320,8 +9320,8 @@ class D0 extends B {
9320
9320
  i > 0 && (m = -m, _ = -_);
9321
9321
  const y = o + g * m, x = a + g * _, w = Math.atan2(t[1] - x, t[0] - y), M = Math.max(1, Math.ceil(Math.abs(i) / (Math.PI / 2) * (r / 4))), C = i / M, P = 4 / 3 * Math.tan(C / 4);
9322
9322
  for (let R = 0; R < M; R++) {
9323
- const O = w + R * C, z = w + (R + 1) * C, I = y + f * Math.cos(O), W = x + f * Math.sin(O), H = y + f * Math.cos(z), N = x + f * Math.sin(z), q = -Math.sin(O), rt = Math.cos(O), ht = I + P * f * q, ot = W + P * f * rt, pt = -Math.sin(z), mt = Math.cos(z), it = H - P * f * pt, at = N - P * f * mt;
9324
- R === 0 && n.push([I, W, h]), n.push([ht, ot, h]), n.push([it, at, h]), n.push([H, N, h]);
9323
+ const O = w + R * C, z = w + (R + 1) * C, B = y + f * Math.cos(O), W = x + f * Math.sin(O), H = y + f * Math.cos(z), N = x + f * Math.sin(z), q = -Math.sin(O), rt = Math.cos(O), ht = B + P * f * q, ot = W + P * f * rt, pt = -Math.sin(z), mt = Math.cos(z), it = H - P * f * pt, at = N - P * f * mt;
9324
+ R === 0 && n.push([B, W, h]), n.push([ht, ot, h]), n.push([it, at, h]), n.push([H, N, h]);
9325
9325
  }
9326
9326
  return n;
9327
9327
  }
@@ -9350,7 +9350,7 @@ class D0 extends B {
9350
9350
  });
9351
9351
  }
9352
9352
  }
9353
- class R0 extends B {
9353
+ class R0 extends I {
9354
9354
  _startPoint;
9355
9355
  _endPoint;
9356
9356
  _angle;
@@ -9388,11 +9388,11 @@ class R0 extends B {
9388
9388
  const bt = y + wt * P, Z = y + (wt + 1) * P, Q = m + u * Math.cos(bt), J = _ + u * Math.sin(bt), kt = m + u * Math.cos(Z), Ut = _ + u * Math.sin(Z), le = -Math.sin(bt), ie = Math.cos(bt), Zt = Q + R * u * le, De = J + R * u * ie, ri = -Math.sin(Z), Kt = Math.cos(Z), Xt = kt - R * u * ri, Rt = Ut - R * u * Kt;
9389
9389
  wt === 0 && t.push([Q, J, o]), t.push([Zt, De, o]), t.push([Xt, Rt, o]), t.push([kt, Ut, o]);
9390
9390
  }
9391
- const O = y + M, z = m + u * Math.cos(O), I = _ + u * Math.sin(O), W = y + this._angle, H = this._angle > 0 ? -Math.sin(W) : Math.sin(W), N = this._angle > 0 ? Math.cos(W) : -Math.cos(W), q = Math.sqrt(H * H + N * N), rt = H / q, ot = -(N / q), pt = rt, mt = z + ot * this._tipWidth, it = I + pt * this._tipWidth, at = z - ot * this._tipWidth, vt = I - pt * this._tipWidth, nt = (wt, bt) => {
9391
+ const O = y + M, z = m + u * Math.cos(O), B = _ + u * Math.sin(O), W = y + this._angle, H = this._angle > 0 ? -Math.sin(W) : Math.sin(W), N = this._angle > 0 ? Math.cos(W) : -Math.cos(W), q = Math.sqrt(H * H + N * N), rt = H / q, ot = -(N / q), pt = rt, mt = z + ot * this._tipWidth, it = B + pt * this._tipWidth, at = z - ot * this._tipWidth, vt = B - pt * this._tipWidth, nt = (wt, bt) => {
9392
9392
  const Z = bt[0] - wt[0], Q = bt[1] - wt[1], J = bt[2] - wt[2];
9393
9393
  t.push([wt[0] + Z / 3, wt[1] + Q / 3, wt[2] + J / 3]), t.push([wt[0] + 2 * Z / 3, wt[1] + 2 * Q / 3, wt[2] + 2 * J / 3]), t.push([...bt]);
9394
9394
  };
9395
- nt([z, I, o], [mt, it, o]), nt([mt, it, o], [i[0], i[1], o]), nt([i[0], i[1], o], [at, vt, o]), nt([at, vt, o], [z, I, o]), this.setPoints3D(t);
9395
+ nt([z, B, o], [mt, it, o]), nt([mt, it, o], [i[0], i[1], o]), nt([i[0], i[1], o], [at, vt, o]), nt([at, vt, o], [z, B, o]), this.setPoints3D(t);
9396
9396
  }
9397
9397
  /**
9398
9398
  * Get the start point
@@ -9458,7 +9458,7 @@ class R0 extends B {
9458
9458
  });
9459
9459
  }
9460
9460
  }
9461
- class L0 extends B {
9461
+ class L0 extends I {
9462
9462
  _startPoint;
9463
9463
  _endPoint;
9464
9464
  _angle;
@@ -9491,7 +9491,7 @@ class L0 extends B {
9491
9491
  const c = Math.abs(this._angle) / 2, u = l / Math.sin(c), d = u * Math.cos(c), f = 2 * l;
9492
9492
  let g = -h / f, p = a / f;
9493
9493
  this._angle > 0 && (g = -g, p = -p);
9494
- const m = r + d * g, _ = n + d * p, y = Math.atan2(e[1] - _, e[0] - m), x = (this._angle > 0 ? 1 : -1) * (this._tipLength / u), w = (this._angle > 0 ? -1 : 1) * (this._tipLength / u), M = y + x, C = y + this._angle + w, P = C - M, R = m + u * Math.cos(M), O = _ + u * Math.sin(M), z = this._angle > 0 ? Math.sin(y) : -Math.sin(y), I = this._angle > 0 ? -Math.cos(y) : Math.cos(y), W = Math.sqrt(z * z + I * I), H = z / W, q = -(I / W), rt = H, ht = R + q * this._tipWidth, ot = O + rt * this._tipWidth, pt = R - q * this._tipWidth, mt = O - rt * this._tipWidth, it = (Rt, ce, Re) => {
9494
+ const m = r + d * g, _ = n + d * p, y = Math.atan2(e[1] - _, e[0] - m), x = (this._angle > 0 ? 1 : -1) * (this._tipLength / u), w = (this._angle > 0 ? -1 : 1) * (this._tipLength / u), M = y + x, C = y + this._angle + w, P = C - M, R = m + u * Math.cos(M), O = _ + u * Math.sin(M), z = this._angle > 0 ? Math.sin(y) : -Math.sin(y), B = this._angle > 0 ? -Math.cos(y) : Math.cos(y), W = Math.sqrt(z * z + B * B), H = z / W, q = -(B / W), rt = H, ht = R + q * this._tipWidth, ot = O + rt * this._tipWidth, pt = R - q * this._tipWidth, mt = O - rt * this._tipWidth, it = (Rt, ce, Re) => {
9495
9495
  const is = ce[0] - Rt[0], ss = ce[1] - Rt[1], xi = ce[2] - Rt[2];
9496
9496
  Re && t.push([...Rt]), t.push([Rt[0] + is / 3, Rt[1] + ss / 3, Rt[2] + xi / 3]), t.push([Rt[0] + 2 * is / 3, Rt[1] + 2 * ss / 3, Rt[2] + 2 * xi / 3]), t.push([...ce]);
9497
9497
  };
@@ -9610,7 +9610,7 @@ class O0 extends mn {
9610
9610
  });
9611
9611
  }
9612
9612
  }
9613
- class aa extends B {
9613
+ class aa extends I {
9614
9614
  _start;
9615
9615
  _end;
9616
9616
  _dashLength;
@@ -9805,7 +9805,7 @@ class E0 extends ze {
9805
9805
  l
9806
9806
  );
9807
9807
  if (c.length >= 2) {
9808
- const u = new B();
9808
+ const u = new I();
9809
9809
  u.setPoints3D(c), u.color = this._dashColor, u.strokeWidth = this._dashStrokeWidth, u.fillOpacity = 0, this._dashSegments.push(u), this.add(u);
9810
9810
  }
9811
9811
  o += r, a++;
@@ -9935,7 +9935,7 @@ class E0 extends ze {
9935
9935
  });
9936
9936
  }
9937
9937
  }
9938
- class Wr extends B {
9938
+ class Wr extends I {
9939
9939
  _controlPoints;
9940
9940
  constructor(t) {
9941
9941
  super();
@@ -10273,7 +10273,7 @@ class B0 extends ve {
10273
10273
  });
10274
10274
  }
10275
10275
  }
10276
- class I0 extends B {
10276
+ class I0 extends I {
10277
10277
  _targetMobject;
10278
10278
  _buff;
10279
10279
  _cornerRadius;
@@ -10315,16 +10315,16 @@ class I0 extends B {
10315
10315
  */
10316
10316
  _generateRoundedCornerPoints(t, e, i, r, n, o) {
10317
10317
  const a = [], h = 0.5522847498, l = t - r + o, c = e + n - o, u = t + r - o, d = e + n - o, f = t + r - o, g = e - n + o, p = t - r + o, m = e - n + o, _ = (x, w, M, C) => {
10318
- const P = Math.cos(M), R = Math.sin(M), O = Math.cos(M + Math.PI / 2), z = Math.sin(M + Math.PI / 2), I = [x + o * P, w + o * R, i], W = [x + o * O, w + o * z, i], H = [
10319
- I[0] - h * o * R,
10320
- I[1] + h * o * P,
10318
+ const P = Math.cos(M), R = Math.sin(M), O = Math.cos(M + Math.PI / 2), z = Math.sin(M + Math.PI / 2), B = [x + o * P, w + o * R, i], W = [x + o * O, w + o * z, i], H = [
10319
+ B[0] - h * o * R,
10320
+ B[1] + h * o * P,
10321
10321
  i
10322
10322
  ], N = [
10323
10323
  W[0] + h * o * z,
10324
10324
  W[1] - h * o * O,
10325
10325
  i
10326
10326
  ];
10327
- C && a.push([...I]), a.push([...H], [...N], [...W]);
10327
+ C && a.push([...B]), a.push([...H], [...N], [...W]);
10328
10328
  }, y = (x, w) => {
10329
10329
  const M = w[0] - x[0], C = w[1] - x[1], P = w[2] - x[2];
10330
10330
  a.push([x[0] + M / 3, x[1] + C / 3, x[2] + P / 3]), a.push([x[0] + 2 * M / 3, x[1] + 2 * C / 3, x[2] + 2 * P / 3]), a.push([...w]);
@@ -10466,7 +10466,7 @@ class W0 extends _e {
10466
10466
  });
10467
10467
  }
10468
10468
  }
10469
- class U0 extends B {
10469
+ class U0 extends I {
10470
10470
  _targetMobject;
10471
10471
  _scale;
10472
10472
  _line1;
@@ -10542,7 +10542,7 @@ class U0 extends B {
10542
10542
  });
10543
10543
  }
10544
10544
  }
10545
- class ha extends B {
10545
+ class ha extends I {
10546
10546
  _width;
10547
10547
  _height;
10548
10548
  _cornerRadius;
@@ -10565,10 +10565,10 @@ class ha extends B {
10565
10565
  */
10566
10566
  _generatePoints() {
10567
10567
  const t = [], e = this._width / 2, i = this._height / 2, r = this._cornerRadius, [n, o, a] = this._centerPoint, h = 4 / 3 * Math.tan(Math.PI / 8), l = (C, P, R) => {
10568
- const O = P[0] - C[0], z = P[1] - C[1], I = P[2] - C[2];
10569
- t.push([C[0] + O / 3, C[1] + z / 3, C[2] + I / 3]), t.push([C[0] + 2 * O / 3, C[1] + 2 * z / 3, C[2] + 2 * I / 3]), t.push([...P]);
10568
+ const O = P[0] - C[0], z = P[1] - C[1], B = P[2] - C[2];
10569
+ t.push([C[0] + O / 3, C[1] + z / 3, C[2] + B / 3]), t.push([C[0] + 2 * O / 3, C[1] + 2 * z / 3, C[2] + 2 * B / 3]), t.push([...P]);
10570
10570
  }, c = (C, P, R) => {
10571
- const O = R, z = R + Math.PI / 2, I = C + r * Math.cos(O), W = P + r * Math.sin(O), H = C + r * Math.cos(z), N = P + r * Math.sin(z), q = -Math.sin(O), rt = Math.cos(O), ht = I + h * r * q, ot = W + h * r * rt, pt = -Math.sin(z), mt = Math.cos(z), it = H - h * r * pt, at = N - h * r * mt;
10571
+ const O = R, z = R + Math.PI / 2, B = C + r * Math.cos(O), W = P + r * Math.sin(O), H = C + r * Math.cos(z), N = P + r * Math.sin(z), q = -Math.sin(O), rt = Math.cos(O), ht = B + h * r * q, ot = W + h * r * rt, pt = -Math.sin(z), mt = Math.cos(z), it = H - h * r * pt, at = N - h * r * mt;
10572
10572
  t.push([ht, ot, a]), t.push([it, at, a]), t.push([H, N, a]);
10573
10573
  }, u = n - e + r, d = o + i - r, f = n + e - r, g = o + i - r, p = n + e - r, m = o - i + r, _ = n - e + r, y = o - i + r, x = n - e, w = o + i - r, M = Math.PI;
10574
10574
  t.push([x, w, a]), c(u, d, M), l(
@@ -10648,7 +10648,7 @@ class ha extends B {
10648
10648
  });
10649
10649
  }
10650
10650
  }
10651
- class j0 extends B {
10651
+ class j0 extends I {
10652
10652
  _numPoints;
10653
10653
  _outerRadius;
10654
10654
  _innerRadius;
@@ -10754,7 +10754,7 @@ function op(s, t) {
10754
10754
  [s, t] = [t, s % t];
10755
10755
  return s;
10756
10756
  }
10757
- class N0 extends B {
10757
+ class N0 extends I {
10758
10758
  _numVertices;
10759
10759
  _density;
10760
10760
  _radius;
@@ -10829,7 +10829,7 @@ class N0 extends B {
10829
10829
  const f = r / h;
10830
10830
  for (let m = 0; m < f; m++)
10831
10831
  u.push(d), d = (d + n) % r;
10832
- const g = l(u), p = new B();
10832
+ const g = l(u), p = new I();
10833
10833
  p.color = this.color, p.fillOpacity = this.fillOpacity, p.strokeWidth = this.strokeWidth, p.setPoints3D(g), this.add(p);
10834
10834
  }
10835
10835
  }
@@ -10900,7 +10900,7 @@ class N0 extends B {
10900
10900
  });
10901
10901
  }
10902
10902
  }
10903
- class G0 extends B {
10903
+ class G0 extends I {
10904
10904
  _outerShape;
10905
10905
  _innerShape;
10906
10906
  constructor(t) {
@@ -10954,7 +10954,7 @@ class G0 extends B {
10954
10954
  });
10955
10955
  }
10956
10956
  }
10957
- class V0 extends B {
10957
+ class V0 extends I {
10958
10958
  _inputPoints;
10959
10959
  _hullVertices;
10960
10960
  constructor(t) {
@@ -11089,7 +11089,7 @@ class V0 extends B {
11089
11089
  });
11090
11090
  }
11091
11091
  }
11092
- class H0 extends B {
11092
+ class H0 extends I {
11093
11093
  _vertex;
11094
11094
  _startAngle;
11095
11095
  _angleValue;
@@ -11242,7 +11242,7 @@ class H0 extends B {
11242
11242
  return n._label = this._label, n;
11243
11243
  }
11244
11244
  }
11245
- class q0 extends B {
11245
+ class q0 extends I {
11246
11246
  _vertex;
11247
11247
  _size;
11248
11248
  _angle1;
@@ -11325,7 +11325,7 @@ class q0 extends B {
11325
11325
  );
11326
11326
  }
11327
11327
  }
11328
- class X0 extends B {
11328
+ class X0 extends I {
11329
11329
  _width;
11330
11330
  _height;
11331
11331
  _angle;
@@ -11417,7 +11417,7 @@ class X0 extends B {
11417
11417
  });
11418
11418
  }
11419
11419
  }
11420
- class Y0 extends B {
11420
+ class Y0 extends I {
11421
11421
  _vmobject;
11422
11422
  _t;
11423
11423
  _length;
@@ -11929,13 +11929,13 @@ function Js(s) {
11929
11929
  const pp = (3 + 16 * ui) * ui, mp = (2 + 12 * ui) * ui, gp = (9 + 64 * ui) * ui * ui, ns = Js(4), ph = Js(8), mh = Js(12), gh = Js(16), re = Js(4);
11930
11930
  function _p(s, t, e, i, r, n, o) {
11931
11931
  let a, h, l, c, u, d, f, g, p, m, _, y, x, w, M, C, P, R;
11932
- const O = s - r, z = e - r, I = t - n, W = i - n;
11933
- w = O * W, d = se * O, f = d - (d - O), g = O - f, d = se * W, p = d - (d - W), m = W - p, M = g * m - (w - f * p - g * p - f * m), C = I * z, d = se * I, f = d - (d - I), g = I - f, d = se * z, p = d - (d - z), m = z - p, P = g * m - (C - f * p - g * p - f * m), _ = M - P, u = M - _, ns[0] = M - (_ + u) + (u - P), y = w + _, u = y - w, x = w - (y - u) + (_ - u), _ = x - C, u = x - _, ns[1] = x - (_ + u) + (u - C), R = y + _, u = R - y, ns[2] = y - (R - u) + (_ - u), ns[3] = R;
11932
+ const O = s - r, z = e - r, B = t - n, W = i - n;
11933
+ w = O * W, d = se * O, f = d - (d - O), g = O - f, d = se * W, p = d - (d - W), m = W - p, M = g * m - (w - f * p - g * p - f * m), C = B * z, d = se * B, f = d - (d - B), g = B - f, d = se * z, p = d - (d - z), m = z - p, P = g * m - (C - f * p - g * p - f * m), _ = M - P, u = M - _, ns[0] = M - (_ + u) + (u - P), y = w + _, u = y - w, x = w - (y - u) + (_ - u), _ = x - C, u = x - _, ns[1] = x - (_ + u) + (u - C), R = y + _, u = R - y, ns[2] = y - (R - u) + (_ - u), ns[3] = R;
11934
11934
  let H = fp(4, ns), N = mp * o;
11935
- if (H >= N || -H >= N || (u = s - O, a = s - (O + u) + (u - r), u = e - z, l = e - (z + u) + (u - r), u = t - I, h = t - (I + u) + (u - n), u = i - W, c = i - (W + u) + (u - n), a === 0 && h === 0 && l === 0 && c === 0) || (N = gp * o + dp * Math.abs(H), H += O * c + W * a - (I * l + z * h), H >= N || -H >= N)) return H;
11935
+ if (H >= N || -H >= N || (u = s - O, a = s - (O + u) + (u - r), u = e - z, l = e - (z + u) + (u - r), u = t - B, h = t - (B + u) + (u - n), u = i - W, c = i - (W + u) + (u - n), a === 0 && h === 0 && l === 0 && c === 0) || (N = gp * o + dp * Math.abs(H), H += O * c + W * a - (B * l + z * h), H >= N || -H >= N)) return H;
11936
11936
  w = a * W, d = se * a, f = d - (d - a), g = a - f, d = se * W, p = d - (d - W), m = W - p, M = g * m - (w - f * p - g * p - f * m), C = h * z, d = se * h, f = d - (d - h), g = h - f, d = se * z, p = d - (d - z), m = z - p, P = g * m - (C - f * p - g * p - f * m), _ = M - P, u = M - _, re[0] = M - (_ + u) + (u - P), y = w + _, u = y - w, x = w - (y - u) + (_ - u), _ = x - C, u = x - _, re[1] = x - (_ + u) + (u - C), R = y + _, u = R - y, re[2] = y - (R - u) + (_ - u), re[3] = R;
11937
11937
  const q = qn(4, ns, 4, re, ph);
11938
- w = O * c, d = se * O, f = d - (d - O), g = O - f, d = se * c, p = d - (d - c), m = c - p, M = g * m - (w - f * p - g * p - f * m), C = I * l, d = se * I, f = d - (d - I), g = I - f, d = se * l, p = d - (d - l), m = l - p, P = g * m - (C - f * p - g * p - f * m), _ = M - P, u = M - _, re[0] = M - (_ + u) + (u - P), y = w + _, u = y - w, x = w - (y - u) + (_ - u), _ = x - C, u = x - _, re[1] = x - (_ + u) + (u - C), R = y + _, u = R - y, re[2] = y - (R - u) + (_ - u), re[3] = R;
11938
+ w = O * c, d = se * O, f = d - (d - O), g = O - f, d = se * c, p = d - (d - c), m = c - p, M = g * m - (w - f * p - g * p - f * m), C = B * l, d = se * B, f = d - (d - B), g = B - f, d = se * l, p = d - (d - l), m = l - p, P = g * m - (C - f * p - g * p - f * m), _ = M - P, u = M - _, re[0] = M - (_ + u) + (u - P), y = w + _, u = y - w, x = w - (y - u) + (_ - u), _ = x - C, u = x - _, re[1] = x - (_ + u) + (u - C), R = y + _, u = R - y, re[2] = y - (R - u) + (_ - u), re[3] = R;
11939
11939
  const rt = qn(q, ph, 4, re, mh);
11940
11940
  w = a * c, d = se * a, f = d - (d - a), g = a - f, d = se * c, p = d - (d - c), m = c - p, M = g * m - (w - f * p - g * p - f * m), C = h * l, d = se * h, f = d - (d - h), g = h - f, d = se * l, p = d - (d - l), m = l - p, P = g * m - (C - f * p - g * p - f * m), _ = M - P, u = M - _, re[0] = M - (_ + u) + (u - P), y = w + _, u = y - w, x = w - (y - u) + (_ - u), _ = x - C, u = x - _, re[1] = x - (_ + u) + (u - C), R = y + _, u = R - y, re[2] = y - (R - u) + (_ - u), re[3] = R;
11941
11941
  const ht = qn(rt, mh, 4, re, gh);
@@ -12778,7 +12778,7 @@ var vr = {
12778
12778
  xor: Lp,
12779
12779
  difference: Op
12780
12780
  };
12781
- class gn extends B {
12781
+ class gn extends I {
12782
12782
  _resultVertices = [];
12783
12783
  /** Control-point counts per subpath (for multi-polygon results) */
12784
12784
  _subpathLengths = [];
@@ -13193,7 +13193,7 @@ function Rh(s, t) {
13193
13193
  return o < 1e-10 ? [1, 0, 0] : [i / o, r / o, n / o];
13194
13194
  }
13195
13195
  const Pt = 1 / 100;
13196
- class ca extends B {
13196
+ class ca extends I {
13197
13197
  _glyph;
13198
13198
  _glyphFontSize;
13199
13199
  /** Whether skeleton computation was requested */
@@ -16240,7 +16240,7 @@ function jh(s, t, e) {
16240
16240
  R = h.length % 2 !== 0, R && !c && (w = h.shift() + _), l += h.length >> 1, h.length = 0, c = !0;
16241
16241
  }
16242
16242
  function P(R) {
16243
- for (var O, z, I, W, H, N, q, rt, ht, ot, pt, mt, it = 0; it < R.length; ) {
16243
+ for (var O, z, B, W, H, N, q, rt, ht, ot, pt, mt, it = 0; it < R.length; ) {
16244
16244
  var at = R[it];
16245
16245
  switch (it += 1, at) {
16246
16246
  case 1:
@@ -16344,7 +16344,7 @@ function jh(s, t, e) {
16344
16344
  i = d, r = f + h.shift(), n = i + h.shift(), o = r + h.shift(), d = n + h.shift(), f = o + (h.length === 1 ? h.shift() : 0), a.curveTo(i, r, n, o, d, f);
16345
16345
  break;
16346
16346
  default:
16347
- at < 32 ? console.log("Glyph " + t.index + ": unknown operator " + at) : at < 247 ? h.push(at - 139) : at < 251 ? (O = R[it], it += 1, h.push((at - 247) * 256 + O + 108)) : at < 255 ? (O = R[it], it += 1, h.push(-(at - 251) * 256 - O - 108)) : (O = R[it], z = R[it + 1], I = R[it + 2], W = R[it + 3], it += 4, h.push((O << 24 | z << 16 | I << 8 | W) / 65536));
16347
+ at < 32 ? console.log("Glyph " + t.index + ": unknown operator " + at) : at < 247 ? h.push(at - 139) : at < 251 ? (O = R[it], it += 1, h.push((at - 247) * 256 + O + 108)) : at < 255 ? (O = R[it], it += 1, h.push(-(at - 251) * 256 - O - 108)) : (O = R[it], z = R[it + 1], B = R[it + 2], W = R[it + 3], it += 4, h.push((O << 24 | z << 16 | B << 8 | W) / 65536));
16348
16348
  }
16349
16349
  }
16350
16350
  }
@@ -17485,8 +17485,8 @@ function lm(s, t) {
17485
17485
  }
17486
17486
  }
17487
17487
  }
17488
- c.sort(function(I, W) {
17489
- return I.platformID - W.platformID || I.encodingID - W.encodingID || I.languageID - W.languageID || I.nameID - W.nameID;
17488
+ c.sort(function(B, W) {
17489
+ return B.platformID - W.platformID || B.encodingID - W.encodingID || B.languageID - W.languageID || B.nameID - W.nameID;
17490
17490
  });
17491
17491
  for (var O = new K.Table("name", [
17492
17492
  { name: "format", type: "USHORT", value: 0 },
@@ -18252,8 +18252,8 @@ function xm(s) {
18252
18252
  // Use space as the default character, if available.
18253
18253
  usBreakChar: s.hasChar(" ") ? 32 : 0
18254
18254
  // Use space as the break character, if available.
18255
- }, s.tables.os2)), R = vc.make(s.glyphs), O = rc.make(s.glyphs), z = s.getEnglishName("fontFamily"), I = s.getEnglishName("fontSubfamily"), W = z + " " + I, H = s.getEnglishName("postScriptName");
18256
- H || (H = z.replace(/\s/g, "") + "-" + I);
18255
+ }, s.tables.os2)), R = vc.make(s.glyphs), O = rc.make(s.glyphs), z = s.getEnglishName("fontFamily"), B = s.getEnglishName("fontSubfamily"), W = z + " " + B, H = s.getEnglishName("postScriptName");
18256
+ H || (H = z.replace(/\s/g, "") + "-" + B);
18257
18257
  var N = {};
18258
18258
  for (var q in s.names)
18259
18259
  N[q] = s.names[q];
@@ -18262,7 +18262,7 @@ function xm(s) {
18262
18262
  version: s.getEnglishName("version"),
18263
18263
  fullName: W,
18264
18264
  familyName: z,
18265
- weightName: I,
18265
+ weightName: B,
18266
18266
  postScriptName: H,
18267
18267
  unitsPerEm: s.unitsPerEm,
18268
18268
  fontBBox: [0, x.yMin, x.ascender, x.advanceWidthMax]
@@ -21897,7 +21897,7 @@ function wa(s, t) {
21897
21897
  }
21898
21898
  var O = Gt(n, x);
21899
21899
  if (r.tables.name = Mc.parse(O.data, O.offset, i), r.names = r.tables.name, d && y) {
21900
- var z = e === 0, I = Gt(n, y), W = r2.parse(I.data, I.offset, r.numGlyphs, z), H = Gt(n, d);
21900
+ var z = e === 0, B = Gt(n, y), W = r2.parse(B.data, B.offset, r.numGlyphs, z), H = Gt(n, d);
21901
21901
  r.glyphs = Ec.parse(H.data, H.offset, W, r, t);
21902
21902
  } else if (c) {
21903
21903
  var N = Gt(n, c);
@@ -22036,7 +22036,7 @@ async function f2(s) {
22036
22036
  });
22037
22037
  return vl.set(s, { familyName: e, loadPromise: r }), await r, e;
22038
22038
  }
22039
- class Te extends B {
22039
+ class Te extends I {
22040
22040
  _text;
22041
22041
  _fontSize;
22042
22042
  _fontFamily;
@@ -27541,13 +27541,13 @@ var su = function(t) {
27541
27541
  else
27542
27542
  throw new Error(`Correct katexImagesData or update code here to support
27543
27543
  ` + P + " children.");
27544
- for (var I = 0; I < P; I++) {
27545
- var W = new Ii(x[I]), H = new mi([W], {
27544
+ for (var B = 0; B < P; B++) {
27545
+ var W = new Ii(x[B]), H = new mi([W], {
27546
27546
  width: "400em",
27547
27547
  height: V(C),
27548
27548
  viewBox: "0 0 " + a + " " + M,
27549
- preserveAspectRatio: O[I] + " slice"
27550
- }), N = E.makeSvgSpan([R[I]], [H], e);
27549
+ preserveAspectRatio: O[B] + " slice"
27550
+ }), N = E.makeSvgSpan([R[B]], [H], e);
27551
27551
  if (P === 1)
27552
27552
  return {
27553
27553
  span: N,
@@ -28480,7 +28480,7 @@ var Rs = function(t, e, i) {
28480
28480
  }
28481
28481
  var P = p + x + w, R = Math.max(0, Math.ceil((e - P) / (M * _))), O = P + R * M * _, z = r.fontMetrics().axisHeight;
28482
28482
  i && (z *= r.sizeMultiplier);
28483
- var I = O / 2 - z, W = [];
28483
+ var B = O / 2 - z, W = [];
28484
28484
  if (u.length > 0) {
28485
28485
  var H = O - p - x, N = Math.round(O * 1e3), q = U2(u, Math.round(H * 1e3)), rt = new Ii(u, q), ht = (d / 1e3).toFixed(3) + "em", ot = (N / 1e3).toFixed(3) + "em", pt = new mi([rt], {
28486
28486
  width: ht,
@@ -28503,7 +28503,7 @@ var Rs = function(t, e, i) {
28503
28503
  }
28504
28504
  var vt = r.havingBaseStyle(ct.TEXT), nt = E.makeVList({
28505
28505
  positionType: "bottom",
28506
- positionData: I,
28506
+ positionData: B,
28507
28507
  children: W
28508
28508
  }, vt);
28509
28509
  return La(E.makeSpan(["delimsizing", "mult"], [nt], vt), ct.TEXT, r, o);
@@ -29215,8 +29215,8 @@ var ii = function(t, e) {
29215
29215
  var O = Tt(M[r], e);
29216
29216
  P < O.depth && (P = O.depth), C < O.height && (C = O.height), R[r] = O;
29217
29217
  }
29218
- var z = t.rowGaps[i], I = 0;
29219
- z && (I = It(z, e), I > 0 && (I += y, P < I && (P = I), I = 0)), t.addJot && (P += p), R.height = C, R.depth = P, x += C, R.pos = x, x += P + I, h[i] = R, w(o[i + 1]);
29218
+ var z = t.rowGaps[i], B = 0;
29219
+ z && (B = It(z, e), B > 0 && (B += y, P < B && (P = B), B = 0)), t.addJot && (P += p), R.height = C, R.depth = P, x += C, R.pos = x, x += P + B, h[i] = R, w(o[i + 1]);
29220
29220
  }
29221
29221
  var W = x / 2 + e.fontMetrics().axisHeight, H = t.cols || [], N = [], q, rt, ht = [];
29222
29222
  if (t.tags && t.tags.some((Xt) => Xt))
@@ -34123,17 +34123,12 @@ function gy(s, t, e, i, r, n, o, a, h) {
34123
34123
  const q = Math.sqrt(y);
34124
34124
  l *= q, c *= q;
34125
34125
  }
34126
- const x = a === h ? -1 : 1, w = l * l * _ * _ + c * c * m * m, M = Math.max(0, (l * l * c * c - w) / w), C = x * Math.sqrt(M), P = C * l * _ / c, R = -C * c * m / l, O = d * P - f * R + (s + e) / 2, z = f * P + d * R + (t + i) / 2, I = Jl(1, 0, (m - P) / l, (_ - R) / c);
34127
- let W = Jl(
34128
- (m - P) / l,
34129
- (_ - R) / c,
34130
- (-m - P) / l,
34131
- (-_ - R) / c
34132
- );
34126
+ const x = a === h ? -1 : 1, w = l * l * _ * _ + c * c * m * m, M = Math.max(0, (l * l * c * c - w) / w), C = x * Math.sqrt(M), P = C * l * _ / c, R = -C * c * m / l, O = d * P - f * R + (s + e) / 2, z = f * P + d * R + (t + i) / 2, B = Jl(1, 0, (m - P) / l, (_ - R) / c);
34127
+ let W = Jl((m - P) / l, (_ - R) / c, (-m - P) / l, (-_ - R) / c);
34133
34128
  h === 0 && W > 0 && (W -= 2 * Math.PI), h === 1 && W < 0 && (W += 2 * Math.PI);
34134
34129
  const H = Math.max(1, Math.ceil(Math.abs(W) / (Math.PI / 2))), N = W / H;
34135
34130
  for (let q = 0; q < H; q++) {
34136
- const rt = I + q * N, ht = rt + N, ot = Math.sin(N) * (Math.sqrt(4 + 3 * Math.tan(N / 2) ** 2) - 1) / 3, pt = Math.cos(rt), mt = Math.sin(rt), it = Math.cos(ht), at = Math.sin(ht), vt = O + l * d * pt - c * f * mt, nt = z + l * f * pt + c * d * mt, wt = O + l * d * it - c * f * at, bt = z + l * f * it + c * d * at, Z = -l * d * mt - c * f * pt, Q = -l * f * mt + c * d * pt, J = -l * d * at - c * f * it, kt = -l * f * at + c * d * it, Ut = vt + ot * Z, le = nt + ot * Q, ie = wt - ot * J, Zt = bt - ot * kt;
34131
+ const rt = B + q * N, ht = rt + N, ot = Math.sin(N) * (Math.sqrt(4 + 3 * Math.tan(N / 2) ** 2) - 1) / 3, pt = Math.cos(rt), mt = Math.sin(rt), it = Math.cos(ht), at = Math.sin(ht), vt = O + l * d * pt - c * f * mt, nt = z + l * f * pt + c * d * mt, wt = O + l * d * it - c * f * at, bt = z + l * f * it + c * d * at, Z = -l * d * mt - c * f * pt, Q = -l * f * mt + c * d * pt, J = -l * d * at - c * f * it, kt = -l * f * at + c * d * it, Ut = vt + ot * Z, le = nt + ot * Q, ie = wt - ot * J, Zt = bt - ot * kt;
34137
34132
  u.push([Ut, le], [ie, Zt], [wt, bt]);
34138
34133
  }
34139
34134
  return u;
@@ -34159,64 +34154,89 @@ function _y(s, t = {}) {
34159
34154
  let u = 1;
34160
34155
  c && (u = 1 / (c.split(/\s+/).map(Number)[2] || 1e3));
34161
34156
  const d = n * u;
34162
- function f(g, p, m) {
34163
- const _ = g.tagName.toLowerCase();
34164
- if (_ === "defs") return;
34165
- let y = p, x = m;
34166
- const w = g.getAttribute("transform");
34167
- if (w) {
34168
- const M = w.match(/translate\s*\(\s*([^,\s]+)[\s,]+([^)]+)\)/);
34169
- M && (y += parseFloat(M[1]) || 0, x += parseFloat(M[2]) || 0);
34170
- }
34171
- if (_ === "path") {
34172
- const M = g.getAttribute("d");
34173
- if (M) {
34174
- const C = yo(M, y, x, d, o, e, i, r);
34175
- C && a.add(C);
34176
- }
34177
- } else if (_ === "use") {
34178
- const C = (g.getAttribute("xlink:href") || g.getAttribute("href") || "").replace(/^#/, ""), P = h.get(C), R = parseFloat(g.getAttribute("x") || "0"), O = parseFloat(g.getAttribute("y") || "0");
34157
+ function f(g, p, m, _) {
34158
+ const y = g.tagName.toLowerCase();
34159
+ if (y === "defs") return;
34160
+ let x = p, w = m, M = _;
34161
+ const C = g.getAttribute("transform");
34162
+ if (C) {
34163
+ const P = /(translate|scale)\s*\(([^)]*)\)/g;
34164
+ let R;
34165
+ for (; (R = P.exec(C)) !== null; ) {
34166
+ const O = R[1], z = R[2].split(/[\s,]+/).filter(Boolean).map(Number);
34167
+ O === "translate" ? (x += M * (z[0] || 0), w += M * (z[1] || 0)) : O === "scale" && (M *= z[0] || 1);
34168
+ }
34169
+ }
34170
+ if (y === "path") {
34171
+ const P = g.getAttribute("d");
34179
34172
  if (P) {
34180
- const z = yo(
34173
+ const R = yo(
34181
34174
  P,
34182
- y + R,
34183
- x + O,
34175
+ x,
34176
+ w,
34177
+ M,
34184
34178
  d,
34185
34179
  o,
34186
34180
  e,
34187
34181
  i,
34188
34182
  r
34189
34183
  );
34190
- z && a.add(z);
34184
+ R && a.add(R);
34191
34185
  }
34192
- } else if (_ === "rect") {
34193
- const M = parseFloat(g.getAttribute("x") || "0"), C = parseFloat(g.getAttribute("y") || "0"), P = parseFloat(g.getAttribute("width") || "0"), R = parseFloat(g.getAttribute("height") || "0");
34194
- if (P > 0 && R > 0) {
34195
- const O = `M${M},${C} L${M + P},${C} L${M + P},${C + R} L${M},${C + R} Z`, z = yo(O, y, x, d, o, e, i, r);
34196
- z && a.add(z);
34186
+ } else if (y === "use") {
34187
+ const R = (g.getAttribute("xlink:href") || g.getAttribute("href") || "").replace(/^#/, ""), O = h.get(R), z = parseFloat(g.getAttribute("x") || "0"), B = parseFloat(g.getAttribute("y") || "0");
34188
+ if (O) {
34189
+ const W = yo(
34190
+ O,
34191
+ x + M * z,
34192
+ w + M * B,
34193
+ M,
34194
+ d,
34195
+ o,
34196
+ e,
34197
+ i,
34198
+ r
34199
+ );
34200
+ W && a.add(W);
34201
+ }
34202
+ } else if (y === "rect") {
34203
+ const P = parseFloat(g.getAttribute("x") || "0"), R = parseFloat(g.getAttribute("y") || "0"), O = parseFloat(g.getAttribute("width") || "0"), z = parseFloat(g.getAttribute("height") || "0");
34204
+ if (O > 0 && z > 0) {
34205
+ const B = `M${P},${R} L${P + O},${R} L${P + O},${R + z} L${P},${R + z} Z`, W = yo(
34206
+ B,
34207
+ x,
34208
+ w,
34209
+ M,
34210
+ d,
34211
+ o,
34212
+ e,
34213
+ i,
34214
+ r
34215
+ );
34216
+ W && a.add(W);
34197
34217
  }
34198
34218
  }
34199
- for (const M of g.children)
34200
- f(M, y, x);
34219
+ for (const P of g.children)
34220
+ f(P, x, w, M);
34201
34221
  }
34202
- return f(s, 0, 0), a;
34222
+ return f(s, 0, 0, 1), a;
34203
34223
  }
34204
- function yo(s, t, e, i, r, n, o, a) {
34205
- const h = my(s);
34206
- if (h.length === 0) return null;
34207
- const l = [], c = [];
34208
- for (const d of h) {
34209
- const f = l.length;
34210
- for (const [p, m] of d) {
34211
- const _ = (p + t) * i, y = r ? -(m + e) * i : (m + e) * i;
34212
- l.push([_, y, 0]);
34224
+ function yo(s, t, e, i, r, n, o, a, h) {
34225
+ const l = my(s);
34226
+ if (l.length === 0) return null;
34227
+ const c = [], u = [];
34228
+ for (const f of l) {
34229
+ const g = c.length;
34230
+ for (const [m, _] of f) {
34231
+ const y = (t + i * m) * r, x = n ? -(e + i * _) * r : (e + i * _) * r;
34232
+ c.push([y, x, 0]);
34213
34233
  }
34214
- const g = l.length - f;
34215
- g > 0 && c.push(g);
34234
+ const p = c.length - g;
34235
+ p > 0 && u.push(p);
34216
34236
  }
34217
- if (l.length < 2) return null;
34218
- const u = new B();
34219
- return u.setColor(n), u.strokeWidth = o, u.fillOpacity = a, u.setPoints3D(l), c.length > 1 && (u.getSubpaths = () => [...c]), u;
34237
+ if (c.length < 2) return null;
34238
+ const d = new I();
34239
+ return d.setColor(o), d.strokeWidth = a, d.fillOpacity = h, d.setPoints3D(c), u.length > 1 && (d.getSubpaths = () => [...u]), d;
34220
34240
  }
34221
34241
  let hi = null, Or = null;
34222
34242
  async function Uu() {
@@ -34831,7 +34851,7 @@ class ae extends st {
34831
34851
  this._renderState.texture && this._renderState.texture.dispose(), this._renderState.mesh && (this._renderState.mesh.geometry.dispose(), this._renderState.mesh.material.dispose()), super.dispose();
34832
34852
  }
34833
34853
  }
34834
- class ln extends B {
34854
+ class ln extends I {
34835
34855
  _xRange;
34836
34856
  _length;
34837
34857
  _includeTicks;
@@ -34877,7 +34897,7 @@ class ln extends B {
34877
34897
  for (let u = t; u <= e + c; u += i) {
34878
34898
  const d = Math.round(u / i) * i;
34879
34899
  if (d < t - c || d > e + c) continue;
34880
- const f = this._numberToX(d), p = h.has(Math.round(d * 1e9) / 1e9) ? l : this._tickSize, m = new B();
34900
+ const f = this._numberToX(d), p = h.has(Math.round(d * 1e9) / 1e9) ? l : this._tickSize, m = new I();
34881
34901
  m.color = this.color, m.strokeWidth = this.strokeWidth, m.fillOpacity = 0, m.setPoints3D([
34882
34902
  [f, -p, 0],
34883
34903
  [f, -p / 3, 0],
@@ -35039,7 +35059,7 @@ class ln extends B {
35039
35059
  });
35040
35060
  }
35041
35061
  }
35042
- class Ga extends B {
35062
+ class Ga extends I {
35043
35063
  _func;
35044
35064
  _xRange;
35045
35065
  _discontinuities;
@@ -35299,7 +35319,7 @@ class Va extends ze {
35299
35319
  */
35300
35320
  _addTips(t) {
35301
35321
  const e = this._xLength / 2, i = this._yLength / 2, r = this._tipLength * 0.6, n = this._numberToVisualY(0), o = this._numberToVisualX(0), a = (c, u, d) => {
35302
- const f = new B();
35322
+ const f = new I();
35303
35323
  f.color = t, f.fillOpacity = 1, f.strokeWidth = 0;
35304
35324
  const g = (m, _, y, x) => {
35305
35325
  const w = y[0] - _[0], M = y[1] - _[1], C = y[2] - _[2];
@@ -35506,11 +35526,11 @@ class Va extends ze {
35506
35526
  for (let f = l; f < c - r * 1e-3; f += r) {
35507
35527
  const g = u(f);
35508
35528
  if (!isFinite(g) || isNaN(g)) continue;
35509
- const p = this.coordsToPoint(f, 0), m = this.coordsToPoint(f + r, 0), _ = this.coordsToPoint(f + r, g), y = this.coordsToPoint(f, g), x = new B();
35529
+ const p = this.coordsToPoint(f, 0), m = this.coordsToPoint(f + r, 0), _ = this.coordsToPoint(f + r, g), y = this.coordsToPoint(f, g), x = new I();
35510
35530
  x.color = h, x.fillColor = n, x.fillOpacity = o, x.strokeWidth = a;
35511
35531
  const w = [], M = (C, P, R) => {
35512
- const O = P[0] - C[0], z = P[1] - C[1], I = P[2] - C[2];
35513
- R && w.push([...C]), w.push([C[0] + O / 3, C[1] + z / 3, C[2] + I / 3]), w.push([C[0] + 2 * O / 3, C[1] + 2 * z / 3, C[2] + 2 * I / 3]), w.push([...P]);
35532
+ const O = P[0] - C[0], z = P[1] - C[1], B = P[2] - C[2];
35533
+ R && w.push([...C]), w.push([C[0] + O / 3, C[1] + z / 3, C[2] + B / 3]), w.push([C[0] + 2 * O / 3, C[1] + 2 * z / 3, C[2] + 2 * B / 3]), w.push([...P]);
35514
35534
  };
35515
35535
  M(p, y, !0), M(y, _, !1), M(_, m, !1), M(m, p, !1), x.setPoints3D(w), d.add(x);
35516
35536
  }
@@ -35529,7 +35549,7 @@ class Va extends ze {
35529
35549
  color: n = "#888888",
35530
35550
  opacity: o = 0.5,
35531
35551
  strokeWidth: a = 0
35532
- } = i, [h, l] = e, c = 100, u = (l - h) / c, d = t.getFunction(), f = new B();
35552
+ } = i, [h, l] = e, c = 100, u = (l - h) / c, d = t.getFunction(), f = new I();
35533
35553
  f.color = n, f.fillColor = n, f.fillOpacity = o, f.strokeWidth = a;
35534
35554
  const g = [];
35535
35555
  for (let y = 0; y <= c; y++) {
@@ -35580,7 +35600,7 @@ class Va extends ze {
35580
35600
  strokeWidth: h = 2
35581
35601
  } = t, l = new Yr();
35582
35602
  if (e.length >= 2) {
35583
- const c = new B();
35603
+ const c = new I();
35584
35604
  c.color = r, c.fillOpacity = 0, c.strokeWidth = h;
35585
35605
  const u = [];
35586
35606
  for (let d = 0; d < e.length - 1; d++) {
@@ -35689,7 +35709,7 @@ class ju extends Va {
35689
35709
  for (let O = 1; O <= this._fadedLineRatio; O++) {
35690
35710
  const z = Math.round(R / i) * i + O * C;
35691
35711
  if (z > g + c) break;
35692
- const [I] = this.coordsToPoint(z, 0), W = I - this.position.x, H = new _e({
35712
+ const [B] = this.coordsToPoint(z, 0), W = B - this.position.x, H = new _e({
35693
35713
  start: [W, -y, 0],
35694
35714
  end: [W, y, 0],
35695
35715
  color: x,
@@ -35702,7 +35722,7 @@ class ju extends Va {
35702
35722
  for (let O = 1; O <= this._fadedLineRatio; O++) {
35703
35723
  const z = Math.round(R / o) * o + O * P;
35704
35724
  if (z > m + c) break;
35705
- const [, I] = this.coordsToPoint(0, z), W = I - this.position.y, H = new _e({
35725
+ const [, B] = this.coordsToPoint(0, z), W = B - this.position.y, H = new _e({
35706
35726
  start: [-_, W, 0],
35707
35727
  end: [_, W, 0],
35708
35728
  color: x,
@@ -35772,7 +35792,7 @@ class ju extends Va {
35772
35792
  });
35773
35793
  }
35774
35794
  }
35775
- class Nu extends B {
35795
+ class Nu extends I {
35776
35796
  _func;
35777
35797
  _xRange;
35778
35798
  _yRange;
@@ -36094,7 +36114,7 @@ class Nu extends B {
36094
36114
  });
36095
36115
  }
36096
36116
  }
36097
- class Gu extends B {
36117
+ class Gu extends I {
36098
36118
  _func;
36099
36119
  _tRange;
36100
36120
  _numSamples;
@@ -37179,9 +37199,9 @@ class Zo extends Mt {
37179
37199
  e.setColor(t);
37180
37200
  else
37181
37201
  for (const e of this.children)
37182
- if (e instanceof B && e.setColor(t), e instanceof Mt)
37202
+ if (e instanceof I && e.setColor(t), e instanceof Mt)
37183
37203
  for (const i of e.children)
37184
- i instanceof B && i.setColor(t);
37204
+ i instanceof I && i.setColor(t);
37185
37205
  return this._markDirty(), this;
37186
37206
  }
37187
37207
  /**
@@ -37219,7 +37239,7 @@ class Zo extends Mt {
37219
37239
  */
37220
37240
  _restyleChildren(t) {
37221
37241
  const e = (i) => {
37222
- if (i instanceof B && (i.fillOpacity = this._svgFillOpacity, i.strokeWidth = this._svgStrokeWidth, i.setColor(this._color), i._style.fillOpacity = this._svgFillOpacity, i._style.strokeWidth = this._svgStrokeWidth), "children" in i)
37242
+ if (i instanceof I && (i.fillOpacity = this._svgFillOpacity, i.strokeWidth = this._svgStrokeWidth, i.setColor(this._color), i._style.fillOpacity = this._svgFillOpacity, i._style.strokeWidth = this._svgStrokeWidth), "children" in i)
37223
37243
  for (const r of i.children)
37224
37244
  e(r);
37225
37245
  };
@@ -37230,7 +37250,7 @@ class Zo extends Mt {
37230
37250
  */
37231
37251
  _scaleToTarget() {
37232
37252
  const t = [], e = (u) => {
37233
- if (u instanceof B && !(u instanceof Mt) && t.push(u), "children" in u)
37253
+ if (u instanceof I && !(u instanceof Mt) && t.push(u), "children" in u)
37234
37254
  for (const d of u.children)
37235
37255
  e(d);
37236
37256
  };
@@ -37269,7 +37289,7 @@ class Zo extends Mt {
37269
37289
  this._restyleChildren(i.vmobjectGroup);
37270
37290
  const n = [];
37271
37291
  for (const h of [...i.vmobjectGroup.children])
37272
- h instanceof B && n.push(h);
37292
+ h instanceof I && n.push(h);
37273
37293
  const o = [];
37274
37294
  for (const h of t) {
37275
37295
  const l = await Hr(h, {
@@ -37280,7 +37300,7 @@ class Zo extends Mt {
37280
37300
  });
37281
37301
  let c = 0;
37282
37302
  for (const u of l.vmobjectGroup.children)
37283
- u instanceof B && c++;
37303
+ u instanceof I && c++;
37284
37304
  o.push(c);
37285
37305
  }
37286
37306
  let a = 0;
@@ -37313,7 +37333,7 @@ class Zo extends Mt {
37313
37333
  setColor(t) {
37314
37334
  this._color = t;
37315
37335
  for (const e of this.children)
37316
- e instanceof B && e.setColor(t);
37336
+ e instanceof I && e.setColor(t);
37317
37337
  return this._markDirty(), this;
37318
37338
  }
37319
37339
  getLatex() {
@@ -37358,7 +37378,7 @@ class Zu extends ae {
37358
37378
  }
37359
37379
  }
37360
37380
  const i0 = 1 / 100, Fr = 2;
37361
- class Qe extends B {
37381
+ class Qe extends I {
37362
37382
  _value;
37363
37383
  _numDecimalPlaces;
37364
37384
  _showEllipsis;
@@ -40087,7 +40107,7 @@ class hr extends Mt {
40087
40107
  * Create a bracket shape as a VMobject
40088
40108
  */
40089
40109
  _createBracketShape(t, e, i) {
40090
- const r = new B();
40110
+ const r = new I();
40091
40111
  r.color = this._bracketColor, r.strokeWidth = this._bracketStrokeWidth, r.fillOpacity = 0;
40092
40112
  const n = i / 2, o = i * 0.08, a = [];
40093
40113
  switch (t) {
@@ -40155,7 +40175,7 @@ class hr extends Mt {
40155
40175
  const t = new Mt();
40156
40176
  for (const e of this._entries)
40157
40177
  for (const i of e)
40158
- i instanceof B && t.add(i);
40178
+ i instanceof I && t.add(i);
40159
40179
  return t;
40160
40180
  }
40161
40181
  /**
@@ -40746,7 +40766,7 @@ class Nx extends Ts {
40746
40766
  }
40747
40767
  }
40748
40768
  function Ay(s) {
40749
- if (s instanceof B) {
40769
+ if (s instanceof I) {
40750
40770
  const r = s.getPoints();
40751
40771
  if (r.length > 0) return r;
40752
40772
  }
@@ -40763,7 +40783,7 @@ function Ay(s) {
40763
40783
  [t[0] - e / 2, t[1] + i / 2, t[2]]
40764
40784
  ];
40765
40785
  }
40766
- class An extends B {
40786
+ class An extends I {
40767
40787
  /** The mobject this brace is attached to */
40768
40788
  mobject;
40769
40789
  /** The direction the brace points */
@@ -40840,7 +40860,7 @@ class An extends B {
40840
40860
  J[0] + a[0] * kt + h[0] * Ut,
40841
40861
  J[1] + a[1] * kt + h[1] * Ut,
40842
40862
  J[2]
40843
- ], P = C(t, m, l), R = C(P, y, 0), O = C(e, -m, l), z = C(O, -y, 0), I = C(t, m * 0.3, l * 0.85), W = C(t, m * 0.78, l * 1), H = C(P, y / 3, 0), N = C(P, y * 2 / 3, 0), q = C(R, _ * 0.55, u * 0.05), rt = [
40863
+ ], P = C(t, m, l), R = C(P, y, 0), O = C(e, -m, l), z = C(O, -y, 0), B = C(t, m * 0.3, l * 0.85), W = C(t, m * 0.78, l * 1), H = C(P, y / 3, 0), N = C(P, y * 2 / 3, 0), q = C(R, _ * 0.55, u * 0.05), rt = [
40844
40864
  this._tipPoint[0] - a[0] * _ * 0.02 - h[0] * u * 0.45,
40845
40865
  this._tipPoint[1] - a[1] * _ * 0.02 - h[1] * u * 0.45,
40846
40866
  this._tipPoint[2]
@@ -40850,7 +40870,7 @@ class An extends B {
40850
40870
  this._tipPoint[2]
40851
40871
  ], ot = C(z, -_ * 0.55, u * 0.05), pt = C(z, y / 3, 0), mt = C(z, y * 2 / 3, 0), it = C(e, -m * 0.78, l * 1), at = C(e, -m * 0.3, l * 0.85), vt = [
40852
40872
  [...t],
40853
- I,
40873
+ B,
40854
40874
  W,
40855
40875
  P,
40856
40876
  H,
@@ -41029,7 +41049,7 @@ class An extends B {
41029
41049
  });
41030
41050
  }
41031
41051
  }
41032
- class hd extends B {
41052
+ class hd extends I {
41033
41053
  _start;
41034
41054
  _end;
41035
41055
  _direction;
@@ -41091,7 +41111,7 @@ class hd extends B {
41091
41111
  J[0] + a[0] * kt + h[0] * Ut,
41092
41112
  J[1] + a[1] * kt + h[1] * Ut,
41093
41113
  J[2]
41094
- ], P = C(t, p, l), R = C(P, _, 0), O = C(e, -p, l), z = C(O, -_, 0), I = C(t, p * 0.3, l * 0.85), W = C(t, p * 0.78, l * 1), H = C(P, _ / 3, 0), N = C(P, _ * 2 / 3, 0), q = C(R, m * 0.55, y * 0.05), rt = [
41114
+ ], P = C(t, p, l), R = C(P, _, 0), O = C(e, -p, l), z = C(O, -_, 0), B = C(t, p * 0.3, l * 0.85), W = C(t, p * 0.78, l * 1), H = C(P, _ / 3, 0), N = C(P, _ * 2 / 3, 0), q = C(R, m * 0.55, y * 0.05), rt = [
41095
41115
  this._tipPoint[0] - a[0] * m * 0.02 - h[0] * y * 0.45,
41096
41116
  this._tipPoint[1] - a[1] * m * 0.02 - h[1] * y * 0.45,
41097
41117
  this._tipPoint[2]
@@ -41101,7 +41121,7 @@ class hd extends B {
41101
41121
  this._tipPoint[2]
41102
41122
  ], ot = C(z, -m * 0.55, y * 0.05), pt = C(z, _ / 3, 0), mt = C(z, _ * 2 / 3, 0), it = C(e, -p * 0.78, l * 1), at = C(e, -p * 0.3, l * 0.85), vt = [
41103
41123
  [...t],
41104
- I,
41124
+ B,
41105
41125
  W,
41106
41126
  P,
41107
41127
  H,
@@ -41243,7 +41263,7 @@ class hd extends B {
41243
41263
  });
41244
41264
  }
41245
41265
  }
41246
- class ld extends B {
41266
+ class ld extends I {
41247
41267
  _arc;
41248
41268
  _direction;
41249
41269
  _buff;
@@ -41583,9 +41603,9 @@ function Dy(s, t, e, i, r, n, o, a, h) {
41583
41603
  (-p - M) / n
41584
41604
  );
41585
41605
  h === 0 && O > 0 ? O -= 2 * Math.PI : h === 1 && O < 0 && (O += 2 * Math.PI);
41586
- const z = Math.max(1, Math.ceil(Math.abs(O) / (Math.PI / 2))), I = O / z;
41606
+ const z = Math.max(1, Math.ceil(Math.abs(O) / (Math.PI / 2))), B = O / z;
41587
41607
  for (let W = 0; W < z; W++) {
41588
- const H = R + W * I, N = H + I, q = Math.sin(I) * (Math.sqrt(4 + 3 * Math.tan(I / 2) ** 2) - 1) / 3, rt = Math.cos(H), ht = Math.sin(H), ot = Math.cos(N), pt = Math.sin(N), mt = C + r * c * rt - n * u * ht, it = P + r * u * rt + n * c * ht, at = C + r * c * ot - n * u * pt, vt = P + r * u * ot + n * c * pt, nt = -r * c * ht - n * u * rt, wt = -r * u * ht + n * c * rt, bt = -r * c * pt - n * u * ot, Z = -r * u * pt + n * c * ot, Q = mt + q * nt, J = it + q * wt, kt = at - q * bt, Ut = vt - q * Z;
41608
+ const H = R + W * B, N = H + B, q = Math.sin(B) * (Math.sqrt(4 + 3 * Math.tan(B / 2) ** 2) - 1) / 3, rt = Math.cos(H), ht = Math.sin(H), ot = Math.cos(N), pt = Math.sin(N), mt = C + r * c * rt - n * u * ht, it = P + r * u * rt + n * c * ht, at = C + r * c * ot - n * u * pt, vt = P + r * u * ot + n * c * pt, nt = -r * c * ht - n * u * rt, wt = -r * u * ht + n * c * rt, bt = -r * c * pt - n * u * ot, Z = -r * u * pt + n * c * ot, Q = mt + q * nt, J = it + q * wt, kt = at - q * bt, Ut = vt - q * Z;
41589
41609
  l.push([Q, J], [kt, Ut], [at, vt]);
41590
41610
  }
41591
41611
  return l;
@@ -41596,10 +41616,10 @@ function s0(s, t, e, i) {
41596
41616
  return s * i - t * e < 0 && (o = -o), o;
41597
41617
  }
41598
41618
  function Xi(s, t, e, i, r) {
41599
- const n = new B();
41619
+ const n = new I();
41600
41620
  return n.setColor(t), n.strokeWidth = e, i && (n.fillColor = i), n.fillOpacity = r ?? 0, n.setPoints3D(s), n;
41601
41621
  }
41602
- class ud extends B {
41622
+ class ud extends I {
41603
41623
  _pathData;
41604
41624
  constructor(t) {
41605
41625
  super(), this._pathData = t.pathData, this.setColor(t.color ?? St), this.strokeWidth = t.strokeWidth ?? _t, t.fillColor && (this.fillColor = t.fillColor), this.fillOpacity = t.fillOpacity ?? 0;
@@ -41706,7 +41726,7 @@ class $a extends Mt {
41706
41726
  C${_ + M * x},${y - w} ${_ + x},${y - M * w} ${_ + x},${y}
41707
41727
  Z`, P = Ti(C);
41708
41728
  for (const R of P) {
41709
- const O = R.map((I) => [I[0], I[1], 0]), z = Xi(
41729
+ const O = R.map((B) => [B[0], B[1], 0]), z = Xi(
41710
41730
  O,
41711
41731
  m.getAttribute("stroke") || e,
41712
41732
  parseFloat(m.getAttribute("stroke-width") || String(i))
@@ -41772,7 +41792,7 @@ class $a extends Mt {
41772
41792
  * Get all subpaths as individual VMobjects.
41773
41793
  */
41774
41794
  getSubpaths() {
41775
- return this.children.filter((t) => t instanceof B);
41795
+ return this.children.filter((t) => t instanceof I);
41776
41796
  }
41777
41797
  _createCopy() {
41778
41798
  return new $a({
@@ -41908,10 +41928,10 @@ function Oy(s, t, e, i, r, n) {
41908
41928
  const O = o.get(x) ?? [];
41909
41929
  if (O.length === 0) return;
41910
41930
  const z = d.get(x) - 1;
41911
- let I = w;
41931
+ let B = w;
41912
41932
  for (const W of O) {
41913
41933
  const H = d.get(W), N = (M - w) * H / z;
41914
- m(W, I, I + N), I += N;
41934
+ m(W, B, B + N), B += N;
41915
41935
  }
41916
41936
  }
41917
41937
  const _ = i * 2;
@@ -44307,7 +44327,7 @@ class yd extends Mt {
44307
44327
  fillOpacity: n,
44308
44328
  strokeWidth: this._outline.strokeWidth * 0.5,
44309
44329
  center: [P, R, m + 1e-3]
44310
- }), I = {
44330
+ }), B = {
44311
44331
  rectangle: z,
44312
44332
  proportion: M
44313
44333
  };
@@ -44317,9 +44337,9 @@ class yd extends Mt {
44317
44337
  fontSize: a,
44318
44338
  color: h
44319
44339
  });
44320
- W.moveTo([P, R, m + 0.02]), I.label = W, this.add(W);
44340
+ W.moveTo([P, R, m + 0.02]), B.label = W, this.add(W);
44321
44341
  }
44322
- x.push(I), this.add(z), y -= C;
44342
+ x.push(B), this.add(z), y -= C;
44323
44343
  }
44324
44344
  return this._subdivisions.set(t, x), this;
44325
44345
  }
@@ -44813,7 +44833,7 @@ class Xy extends xt {
44813
44833
  * half fades in the fill.
44814
44834
  */
44815
44835
  begin() {
44816
- if (super.begin(), this._useDashReveal = this.mobject instanceof B && this._hasLine2Children(), this._useDashReveal) {
44836
+ if (super.begin(), this._useDashReveal = this.mobject instanceof I && this._hasLine2Children(), this._useDashReveal) {
44817
44837
  const t = this.mobject;
44818
44838
  this._originalFillOpacity = t.fillOpacity, this._hasFill = this._originalFillOpacity > 0, this._hasFill && t.setFillOpacity(0), this._line2Children = [], this._line2TotalLengths = [], this.mobject.getThreeObject().traverse((i) => {
44819
44839
  if (i instanceof gt) {
@@ -44908,7 +44928,7 @@ class Yy extends xt {
44908
44928
  }), t;
44909
44929
  }
44910
44930
  begin() {
44911
- if (super.begin(), this._useDashReveal = this.mobject instanceof B && this._hasLine2Children(), this._useDashReveal) {
44931
+ if (super.begin(), this._useDashReveal = this.mobject instanceof I && this._hasLine2Children(), this._useDashReveal) {
44912
44932
  const t = this.mobject;
44913
44933
  this._originalFillOpacity = t.fillOpacity, t.setFillOpacity(0), this.mobject.getThreeObject().traverse((i) => {
44914
44934
  if (i instanceof gt) {
@@ -44974,7 +44994,7 @@ class $y extends xt {
44974
44994
  }), t;
44975
44995
  }
44976
44996
  begin() {
44977
- super.begin(), this._useDashReveal = this.mobject instanceof B && this._hasLine2Children(), this._useDashReveal && this.mobject.getThreeObject().traverse((e) => {
44997
+ super.begin(), this._useDashReveal = this.mobject instanceof I && this._hasLine2Children(), this._useDashReveal && this.mobject.getThreeObject().traverse((e) => {
44978
44998
  if (e instanceof gt) {
44979
44999
  const i = e.material;
44980
45000
  i.dashed = !0, i.dashScale = 1, e.computeLineDistances();
@@ -45051,7 +45071,7 @@ class xd extends xt {
45051
45071
  this._useRevealProgress = !0, this.mobject.setRevealProgress(this._reverse ? 1 : 0);
45052
45072
  return;
45053
45073
  }
45054
- this._useDashReveal = this.mobject instanceof B && this._hasLine2Children(), this._useDashReveal ? this.mobject.getThreeObject().traverse((e) => {
45074
+ this._useDashReveal = this.mobject instanceof I && this._hasLine2Children(), this._useDashReveal ? this.mobject.getThreeObject().traverse((e) => {
45055
45075
  if (e instanceof gt) {
45056
45076
  const i = e.material;
45057
45077
  i.dashed = !0, i.dashScale = 1, e.computeLineDistances();
@@ -45090,7 +45110,7 @@ class xd extends xt {
45090
45110
  let c = null;
45091
45111
  if ("getSkeletonPath" in l && typeof l.getSkeletonPath == "function" && (c = l.getSkeletonPath()), c && c.length >= 4) {
45092
45112
  h.visible = !1;
45093
- const u = new B();
45113
+ const u = new I();
45094
45114
  u.setColor(a.color || "#ffffff"), u.strokeWidth = a.strokeWidth ?? 2, u.fillOpacity = 0, u.setPoints3D(c);
45095
45115
  const d = u.getThreeObject();
45096
45116
  i.add(d);
@@ -45353,7 +45373,7 @@ class Ln extends xt {
45353
45373
  */
45354
45374
  begin() {
45355
45375
  super.begin();
45356
- const t = this.mobject instanceof B, e = this.target instanceof B;
45376
+ const t = this.mobject instanceof I, e = this.target instanceof I;
45357
45377
  if (t && e) {
45358
45378
  const i = this.mobject, r = this.target;
45359
45379
  if (i.getPoints().length === 0 && r.getPoints().length === 0) {
@@ -46049,7 +46069,7 @@ class g4 extends xt {
46049
46069
  * Store the original points at animation start
46050
46070
  */
46051
46071
  begin() {
46052
- super.begin(), this.mobject instanceof B ? (this._isVMobject = !0, this._originalPoints = this.mobject.getPoints()) : (this._isVMobject = !1, this._originalPoints = null);
46072
+ super.begin(), this.mobject instanceof I ? (this._isVMobject = !0, this._originalPoints = this.mobject.getPoints()) : (this._isVMobject = !1, this._originalPoints = null);
46053
46073
  }
46054
46074
  /**
46055
46075
  * Apply the homotopy at the given progress value
@@ -46088,7 +46108,7 @@ class _4 extends xt {
46088
46108
  * Store the original points at animation start
46089
46109
  */
46090
46110
  begin() {
46091
- super.begin(), this.mobject instanceof B ? (this._isVMobject = !0, this._originalPoints = this.mobject.getPoints()) : (this._isVMobject = !1, this._originalPoints = null);
46111
+ super.begin(), this.mobject instanceof I ? (this._isVMobject = !0, this._originalPoints = this.mobject.getPoints()) : (this._isVMobject = !1, this._originalPoints = null);
46092
46112
  }
46093
46113
  /**
46094
46114
  * Apply the complex homotopy at the given progress value
@@ -46224,7 +46244,7 @@ class y4 extends xt {
46224
46244
  * Store the original points at animation start
46225
46245
  */
46226
46246
  begin() {
46227
- if (super.begin(), this.mobject instanceof B)
46247
+ if (super.begin(), this.mobject instanceof I)
46228
46248
  this._isVMobject = !0, this._originalPoints = this.mobject.getPoints();
46229
46249
  else {
46230
46250
  this._isVMobject = !1, this._originalPoints = null;
@@ -46820,7 +46840,7 @@ class P4 extends xt {
46820
46840
  super(t, {
46821
46841
  duration: e.duration ?? 1,
46822
46842
  rateFunc: e.rateFunc ?? ji
46823
- }), this.flashColor = e.color ?? ti, this.timeWidth = e.timeWidth ?? 0.2, this.flashStrokeWidth = e.strokeWidth ?? _t * 1.5, this._isVMobject = t instanceof B;
46843
+ }), this.flashColor = e.color ?? ti, this.timeWidth = e.timeWidth ?? 0.2, this.flashStrokeWidth = e.strokeWidth ?? _t * 1.5, this._isVMobject = t instanceof I;
46824
46844
  }
46825
46845
  begin() {
46826
46846
  super.begin();
@@ -46923,7 +46943,7 @@ class A4 extends xt {
46923
46943
  super(t, {
46924
46944
  duration: e.duration ?? 1,
46925
46945
  rateFunc: e.rateFunc ?? ji
46926
- }), this.direction = e.direction ?? "horizontal", this.amplitude = e.amplitude ?? 0.2, this.wavelength = e.wavelength ?? 1.5, this.speed = e.speed ?? 1, this.ripples = e.ripples ?? !1, this._isVMobject = t instanceof B;
46946
+ }), this.direction = e.direction ?? "horizontal", this.amplitude = e.amplitude ?? 0.2, this.wavelength = e.wavelength ?? 1.5, this.speed = e.speed ?? 1, this.ripples = e.ripples ?? !1, this._isVMobject = t instanceof I;
46927
46947
  }
46928
46948
  begin() {
46929
46949
  if (super.begin(), this._originalPosition.copy(this.mobject.position), this._center = this.mobject.getCenter(), this._isVMobject) {
@@ -47126,7 +47146,7 @@ class L4 extends xt {
47126
47146
  }), t;
47127
47147
  }
47128
47148
  begin() {
47129
- super.begin(), this._useDashReveal = this.mobject instanceof B && this._hasLine2Children(), this._useDashReveal ? this.mobject.getThreeObject().traverse((e) => {
47149
+ super.begin(), this._useDashReveal = this.mobject instanceof I && this._hasLine2Children(), this._useDashReveal ? this.mobject.getThreeObject().traverse((e) => {
47130
47150
  if (e instanceof gt) {
47131
47151
  const i = e.material;
47132
47152
  i.dashed = !0, i.dashScale = 1, e.computeLineDistances();
@@ -48465,12 +48485,12 @@ function j4() {
48465
48485
  this.renderNextFrame();
48466
48486
  return c.call(this.imageParts, null) >= 0 ? this.renderNextFrame() : this.finishRendering();
48467
48487
  }, p.prototype.finishRendering = function() {
48468
- var m, _, y, x, w, M, C, P, R, O, z, I, W, H, N, q;
48488
+ var m, _, y, x, w, M, C, P, R, O, z, B, W, H, N, q;
48469
48489
  for (P = 0, H = this.imageParts, w = 0, R = H.length; w < R; w++)
48470
48490
  _ = H[w], P += (_.data.length - 1) * _.pageSize + _.cursor;
48471
- for (P += _.pageSize - _.cursor, this.log("rendering finished - filesize " + Math.round(P / 1e3) + "kb"), m = new Uint8Array(P), I = 0, N = this.imageParts, M = 0, O = N.length; M < O; M++)
48491
+ for (P += _.pageSize - _.cursor, this.log("rendering finished - filesize " + Math.round(P / 1e3) + "kb"), m = new Uint8Array(P), B = 0, N = this.imageParts, M = 0, O = N.length; M < O; M++)
48472
48492
  for (_ = N[M], q = _.data, y = C = 0, z = q.length; C < z; y = ++C)
48473
- W = q[y], m.set(W, I), y === _.data.length - 1 ? I += _.cursor : I += _.pageSize;
48493
+ W = q[y], m.set(W, B), y === _.data.length - 1 ? B += _.cursor : B += _.pageSize;
48474
48494
  return x = new Blob([m], { type: "image/gif" }), this.emit("finished", x, m);
48475
48495
  }, p.prototype.renderNextFrame = function() {
48476
48496
  var m, _, y;
@@ -49182,7 +49202,7 @@ export {
49182
49202
  x4 as UpdateFromFunc,
49183
49203
  Yr as VDict,
49184
49204
  Mt as VGroup,
49185
- B as VMobject,
49205
+ I as VMobject,
49186
49206
  ud as VMobjectFromSVGPath,
49187
49207
  Cn as ValueTracker,
49188
49208
  Qu as Variable,