@mlightcad/mtext-renderer 0.10.8 → 0.10.9

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.
@@ -76,8 +76,8 @@ var P1 = Fc((L) => {
76
76
  return null;
77
77
  const s = (c) => {
78
78
  if (c.endsWith("%")) {
79
- const l = Number.parseFloat(c.slice(0, -1));
80
- return ta(l / 100 * 255);
79
+ const f = Number.parseFloat(c.slice(0, -1));
80
+ return ta(f / 100 * 255);
81
81
  }
82
82
  const u = Number.parseFloat(c);
83
83
  return ta(u);
@@ -238,11 +238,11 @@ var P1 = Fc((L) => {
238
238
  }, o = (h) => {
239
239
  let c = "", u = h;
240
240
  for (; e.hasData; ) {
241
- const [l, f] = s();
242
- if (!(u && l === " ")) {
243
- if (u = !1, !f && l === ";")
241
+ const [f, l] = s();
242
+ if (!(u && f === " ")) {
243
+ if (u = !1, !l && f === ";")
244
244
  break;
245
- c += l;
245
+ c += f;
246
246
  }
247
247
  }
248
248
  return c;
@@ -547,11 +547,11 @@ var P1 = Fc((L) => {
547
547
  const u = t.peek();
548
548
  if (u === "r" || u === "c") {
549
549
  t.consume(1);
550
- const l = h();
551
- o.push(u + l.toString());
550
+ const f = h();
551
+ o.push(u + f.toString());
552
552
  } else {
553
- const l = h();
554
- isNaN(l) ? t.consume(1) : o.push(l);
553
+ const f = h();
554
+ isNaN(f) ? t.consume(1) : o.push(f);
555
555
  }
556
556
  }
557
557
  break;
@@ -621,18 +621,18 @@ var P1 = Fc((L) => {
621
621
  return [se.WRAP_AT_DIMLINE, null];
622
622
  case "S": {
623
623
  this.inStackContext = !0;
624
- const l = this.parseStacking();
625
- return this.inStackContext = !1, l;
624
+ const f = this.parseStacking();
625
+ return this.inStackContext = !1, f;
626
626
  }
627
627
  case "m":
628
628
  case "M":
629
629
  if (this.scanner.peek() === "+") {
630
630
  this.scanner.consume(1);
631
- const l = this.extractMifCode(this.mifCodeLength);
632
- if (l) {
633
- this.scanner.consume(l.length);
634
- const f = this.mifDecoder(l);
635
- return a ? [e, a] : [e, f];
631
+ const f = this.extractMifCode(this.mifCodeLength);
632
+ if (f) {
633
+ this.scanner.consume(f.length);
634
+ const l = this.mifDecoder(f);
635
+ return a ? [e, a] : [e, l];
636
636
  }
637
637
  this.scanner.consume(-1);
638
638
  }
@@ -641,11 +641,11 @@ var P1 = Fc((L) => {
641
641
  case "U":
642
642
  if (this.scanner.peek() === "+") {
643
643
  this.scanner.consume(1);
644
- const l = this.scanner.tail.match(/^[0-9A-Fa-f]{4,8}/);
645
- if (l) {
646
- const f = l[0];
647
- this.scanner.consume(f.length);
648
- const p = parseInt(f, 16);
644
+ const f = this.scanner.tail.match(/^[0-9A-Fa-f]{4,8}/);
645
+ if (f) {
646
+ const l = f[0];
647
+ this.scanner.consume(l.length);
648
+ const p = parseInt(l, 16);
649
649
  let g = "";
650
650
  try {
651
651
  g = String.fromCodePoint(p);
@@ -661,26 +661,26 @@ var P1 = Fc((L) => {
661
661
  default:
662
662
  if (u)
663
663
  try {
664
- const l = this.parseProperties(u);
665
- if (this.yieldPropertyCommands && l)
666
- return [se.PROPERTIES_CHANGED, l];
664
+ const f = this.parseProperties(u);
665
+ if (this.yieldPropertyCommands && f)
666
+ return [se.PROPERTIES_CHANGED, f];
667
667
  continue;
668
668
  } catch {
669
- const l = this.scanner.tail.slice(c, this.scanner.currentIndex);
670
- a += l;
669
+ const f = this.scanner.tail.slice(c, this.scanner.currentIndex);
670
+ a += f;
671
671
  }
672
672
  }
673
673
  continue;
674
674
  }
675
675
  if (h === "%" && this.scanner.peek(1) === "%") {
676
- const u = this.scanner.peek(2).toLowerCase(), l = Cc[u];
677
- if (l) {
678
- this.scanner.consume(3), a += l;
676
+ const u = this.scanner.peek(2).toLowerCase(), f = Cc[u];
677
+ if (f) {
678
+ this.scanner.consume(3), a += f;
679
679
  continue;
680
680
  } else {
681
- const f = [u, this.scanner.peek(3), this.scanner.peek(4)];
682
- if (f.every((p) => p >= "0" && p <= "9")) {
683
- const p = Number.parseInt(f.join(""), 10);
681
+ const l = [u, this.scanner.peek(3), this.scanner.peek(4)];
682
+ if (l.every((p) => p >= "0" && p <= "9")) {
683
+ const p = Number.parseInt(l.join(""), 10);
684
684
  this.scanner.consume(5), a += String.fromCharCode(p);
685
685
  } else
686
686
  this.scanner.consume(3);
@@ -701,11 +701,11 @@ var P1 = Fc((L) => {
701
701
  if (this.scanner.consume(1), this.yieldPropertyCommands) {
702
702
  const u = this.ctxStack.current;
703
703
  this.popCtx();
704
- const l = this.getPropertyChanges(u, this.ctxStack.current);
705
- if (Object.keys(l).length > 0)
704
+ const f = this.getPropertyChanges(u, this.ctxStack.current);
705
+ if (Object.keys(f).length > 0)
706
706
  return [
707
707
  se.PROPERTIES_CHANGED,
708
- { command: void 0, changes: l, depth: this.ctxStack.depth }
708
+ { command: void 0, changes: f, depth: this.ctxStack.depth }
709
709
  ];
710
710
  } else
711
711
  this.popCtx();
@@ -715,15 +715,15 @@ var P1 = Fc((L) => {
715
715
  if (!this.inStackContext && h === "^") {
716
716
  const u = this.scanner.peek(1);
717
717
  if (u) {
718
- const l = u.charCodeAt(0);
719
- if (this.scanner.consume(2), l === 32)
718
+ const f = u.charCodeAt(0);
719
+ if (this.scanner.consume(2), f === 32)
720
720
  a += "^";
721
721
  else {
722
- if (l === 73)
722
+ if (f === 73)
723
723
  return a ? [e, a] : [se.TABULATOR, null];
724
- if (l === 74)
724
+ if (f === 74)
725
725
  return a ? [e, a] : [se.NEW_PARAGRAPH, null];
726
- if (l === 77)
726
+ if (f === 77)
727
727
  continue;
728
728
  a += "▯";
729
729
  }
@@ -1495,8 +1495,8 @@ var P1 = Fc((L) => {
1495
1495
  return this.multiplyMatrices(e, this);
1496
1496
  }
1497
1497
  multiplyMatrices(e, t) {
1498
- const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[3], h = r[6], c = r[1], u = r[4], l = r[7], f = r[2], p = r[5], g = r[8], m = i[0], x = i[3], v = i[6], w = i[1], b = i[4], S = i[7], T = i[2], B = i[5], M = i[8];
1499
- return s[0] = a * m + o * w + h * T, s[3] = a * x + o * b + h * B, s[6] = a * v + o * S + h * M, s[1] = c * m + u * w + l * T, s[4] = c * x + u * b + l * B, s[7] = c * v + u * S + l * M, s[2] = f * m + p * w + g * T, s[5] = f * x + p * b + g * B, s[8] = f * v + p * S + g * M, this;
1498
+ const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[3], h = r[6], c = r[1], u = r[4], f = r[7], l = r[2], p = r[5], g = r[8], m = i[0], x = i[3], v = i[6], w = i[1], b = i[4], S = i[7], T = i[2], B = i[5], M = i[8];
1499
+ return s[0] = a * m + o * w + h * T, s[3] = a * x + o * b + h * B, s[6] = a * v + o * S + h * M, s[1] = c * m + u * w + f * T, s[4] = c * x + u * b + f * B, s[7] = c * v + u * S + f * M, s[2] = l * m + p * w + g * T, s[5] = l * x + p * b + g * B, s[8] = l * v + p * S + g * M, this;
1500
1500
  }
1501
1501
  multiplyScalar(e) {
1502
1502
  const t = this.elements;
@@ -1507,10 +1507,10 @@ var P1 = Fc((L) => {
1507
1507
  return t * a * u - t * o * c - r * s * u + r * o * h + i * s * c - i * a * h;
1508
1508
  }
1509
1509
  invert() {
1510
- const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], a = e[4], o = e[5], h = e[6], c = e[7], u = e[8], l = u * a - o * c, f = o * h - u * s, p = c * s - a * h, g = t * l + r * f + i * p;
1510
+ const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], a = e[4], o = e[5], h = e[6], c = e[7], u = e[8], f = u * a - o * c, l = o * h - u * s, p = c * s - a * h, g = t * f + r * l + i * p;
1511
1511
  if (g === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
1512
1512
  const m = 1 / g;
1513
- return e[0] = l * m, e[1] = (i * c - u * r) * m, e[2] = (o * r - i * a) * m, e[3] = f * m, e[4] = (u * t - i * h) * m, e[5] = (i * s - o * t) * m, e[6] = p * m, e[7] = (r * h - c * t) * m, e[8] = (a * t - r * s) * m, this;
1513
+ return e[0] = f * m, e[1] = (i * c - u * r) * m, e[2] = (o * r - i * a) * m, e[3] = l * m, e[4] = (u * t - i * h) * m, e[5] = (i * s - o * t) * m, e[6] = p * m, e[7] = (r * h - c * t) * m, e[8] = (a * t - r * s) * m, this;
1514
1514
  }
1515
1515
  transpose() {
1516
1516
  let e;
@@ -2020,16 +2020,16 @@ var P1 = Fc((L) => {
2020
2020
  }
2021
2021
  setAxisAngleFromRotationMatrix(e) {
2022
2022
  let t, r, i, s;
2023
- const h = e.elements, c = h[0], u = h[4], l = h[8], f = h[1], p = h[5], g = h[9], m = h[2], x = h[6], v = h[10];
2024
- if (Math.abs(u - f) < 0.01 && Math.abs(l - m) < 0.01 && Math.abs(g - x) < 0.01) {
2025
- if (Math.abs(u + f) < 0.1 && Math.abs(l + m) < 0.1 && Math.abs(g + x) < 0.1 && Math.abs(c + p + v - 3) < 0.1)
2023
+ const h = e.elements, c = h[0], u = h[4], f = h[8], l = h[1], p = h[5], g = h[9], m = h[2], x = h[6], v = h[10];
2024
+ if (Math.abs(u - l) < 0.01 && Math.abs(f - m) < 0.01 && Math.abs(g - x) < 0.01) {
2025
+ if (Math.abs(u + l) < 0.1 && Math.abs(f + m) < 0.1 && Math.abs(g + x) < 0.1 && Math.abs(c + p + v - 3) < 0.1)
2026
2026
  return this.set(1, 0, 0, 0), this;
2027
2027
  t = Math.PI;
2028
- const b = (c + 1) / 2, S = (p + 1) / 2, T = (v + 1) / 2, B = (u + f) / 4, M = (l + m) / 4, _ = (g + x) / 4;
2028
+ const b = (c + 1) / 2, S = (p + 1) / 2, T = (v + 1) / 2, B = (u + l) / 4, M = (f + m) / 4, _ = (g + x) / 4;
2029
2029
  return b > S && b > T ? b < 0.01 ? (r = 0, i = 0.707106781, s = 0.707106781) : (r = Math.sqrt(b), i = B / r, s = M / r) : S > T ? S < 0.01 ? (r = 0.707106781, i = 0, s = 0.707106781) : (i = Math.sqrt(S), r = B / i, s = _ / i) : T < 0.01 ? (r = 0.707106781, i = 0.707106781, s = 0) : (s = Math.sqrt(T), r = M / s, i = _ / s), this.set(r, i, s, t), this;
2030
2030
  }
2031
- let w = Math.sqrt((x - g) * (x - g) + (l - m) * (l - m) + (f - u) * (f - u));
2032
- return Math.abs(w) < 1e-3 && (w = 1), this.x = (x - g) / w, this.y = (l - m) / w, this.z = (f - u) / w, this.w = Math.acos((c + p + v - 1) / 2), this;
2031
+ let w = Math.sqrt((x - g) * (x - g) + (f - m) * (f - m) + (l - u) * (l - u));
2032
+ return Math.abs(w) < 1e-3 && (w = 1), this.x = (x - g) / w, this.y = (f - m) / w, this.z = (l - u) / w, this.w = Math.acos((c + p + v - 1) / 2), this;
2033
2033
  }
2034
2034
  setFromMatrixPosition(e) {
2035
2035
  const t = e.elements;
@@ -2114,34 +2114,34 @@ var P1 = Fc((L) => {
2114
2114
  this.isQuaternion = !0, this._x = e, this._y = t, this._z = r, this._w = i;
2115
2115
  }
2116
2116
  static slerpFlat(e, t, r, i, s, a, o) {
2117
- let h = r[i + 0], c = r[i + 1], u = r[i + 2], l = r[i + 3];
2118
- const f = s[a + 0], p = s[a + 1], g = s[a + 2], m = s[a + 3];
2117
+ let h = r[i + 0], c = r[i + 1], u = r[i + 2], f = r[i + 3];
2118
+ const l = s[a + 0], p = s[a + 1], g = s[a + 2], m = s[a + 3];
2119
2119
  if (o === 0) {
2120
- e[t + 0] = h, e[t + 1] = c, e[t + 2] = u, e[t + 3] = l;
2120
+ e[t + 0] = h, e[t + 1] = c, e[t + 2] = u, e[t + 3] = f;
2121
2121
  return;
2122
2122
  }
2123
2123
  if (o === 1) {
2124
- e[t + 0] = f, e[t + 1] = p, e[t + 2] = g, e[t + 3] = m;
2124
+ e[t + 0] = l, e[t + 1] = p, e[t + 2] = g, e[t + 3] = m;
2125
2125
  return;
2126
2126
  }
2127
- if (l !== m || h !== f || c !== p || u !== g) {
2127
+ if (f !== m || h !== l || c !== p || u !== g) {
2128
2128
  let x = 1 - o;
2129
- const v = h * f + c * p + u * g + l * m, w = v >= 0 ? 1 : -1, b = 1 - v * v;
2129
+ const v = h * l + c * p + u * g + f * m, w = v >= 0 ? 1 : -1, b = 1 - v * v;
2130
2130
  if (b > Number.EPSILON) {
2131
2131
  const T = Math.sqrt(b), B = Math.atan2(T, v * w);
2132
2132
  x = Math.sin(x * B) / T, o = Math.sin(o * B) / T;
2133
2133
  }
2134
2134
  const S = o * w;
2135
- if (h = h * x + f * S, c = c * x + p * S, u = u * x + g * S, l = l * x + m * S, x === 1 - o) {
2136
- const T = 1 / Math.sqrt(h * h + c * c + u * u + l * l);
2137
- h *= T, c *= T, u *= T, l *= T;
2135
+ if (h = h * x + l * S, c = c * x + p * S, u = u * x + g * S, f = f * x + m * S, x === 1 - o) {
2136
+ const T = 1 / Math.sqrt(h * h + c * c + u * u + f * f);
2137
+ h *= T, c *= T, u *= T, f *= T;
2138
2138
  }
2139
2139
  }
2140
- e[t] = h, e[t + 1] = c, e[t + 2] = u, e[t + 3] = l;
2140
+ e[t] = h, e[t + 1] = c, e[t + 2] = u, e[t + 3] = f;
2141
2141
  }
2142
2142
  static multiplyQuaternionsFlat(e, t, r, i, s, a) {
2143
- const o = r[i], h = r[i + 1], c = r[i + 2], u = r[i + 3], l = s[a], f = s[a + 1], p = s[a + 2], g = s[a + 3];
2144
- return e[t] = o * g + u * l + h * p - c * f, e[t + 1] = h * g + u * f + c * l - o * p, e[t + 2] = c * g + u * p + o * f - h * l, e[t + 3] = u * g - o * l - h * f - c * p, e;
2143
+ const o = r[i], h = r[i + 1], c = r[i + 2], u = r[i + 3], f = s[a], l = s[a + 1], p = s[a + 2], g = s[a + 3];
2144
+ return e[t] = o * g + u * f + h * p - c * l, e[t + 1] = h * g + u * l + c * f - o * p, e[t + 2] = c * g + u * p + o * l - h * f, e[t + 3] = u * g - o * f - h * l - c * p, e;
2145
2145
  }
2146
2146
  get x() {
2147
2147
  return this._x;
@@ -2177,25 +2177,25 @@ var P1 = Fc((L) => {
2177
2177
  return this._x = e.x, this._y = e.y, this._z = e.z, this._w = e.w, this._onChangeCallback(), this;
2178
2178
  }
2179
2179
  setFromEuler(e, t = !0) {
2180
- const r = e._x, i = e._y, s = e._z, a = e._order, o = Math.cos, h = Math.sin, c = o(r / 2), u = o(i / 2), l = o(s / 2), f = h(r / 2), p = h(i / 2), g = h(s / 2);
2180
+ const r = e._x, i = e._y, s = e._z, a = e._order, o = Math.cos, h = Math.sin, c = o(r / 2), u = o(i / 2), f = o(s / 2), l = h(r / 2), p = h(i / 2), g = h(s / 2);
2181
2181
  switch (a) {
2182
2182
  case "XYZ":
2183
- this._x = f * u * l + c * p * g, this._y = c * p * l - f * u * g, this._z = c * u * g + f * p * l, this._w = c * u * l - f * p * g;
2183
+ this._x = l * u * f + c * p * g, this._y = c * p * f - l * u * g, this._z = c * u * g + l * p * f, this._w = c * u * f - l * p * g;
2184
2184
  break;
2185
2185
  case "YXZ":
2186
- this._x = f * u * l + c * p * g, this._y = c * p * l - f * u * g, this._z = c * u * g - f * p * l, this._w = c * u * l + f * p * g;
2186
+ this._x = l * u * f + c * p * g, this._y = c * p * f - l * u * g, this._z = c * u * g - l * p * f, this._w = c * u * f + l * p * g;
2187
2187
  break;
2188
2188
  case "ZXY":
2189
- this._x = f * u * l - c * p * g, this._y = c * p * l + f * u * g, this._z = c * u * g + f * p * l, this._w = c * u * l - f * p * g;
2189
+ this._x = l * u * f - c * p * g, this._y = c * p * f + l * u * g, this._z = c * u * g + l * p * f, this._w = c * u * f - l * p * g;
2190
2190
  break;
2191
2191
  case "ZYX":
2192
- this._x = f * u * l - c * p * g, this._y = c * p * l + f * u * g, this._z = c * u * g - f * p * l, this._w = c * u * l + f * p * g;
2192
+ this._x = l * u * f - c * p * g, this._y = c * p * f + l * u * g, this._z = c * u * g - l * p * f, this._w = c * u * f + l * p * g;
2193
2193
  break;
2194
2194
  case "YZX":
2195
- this._x = f * u * l + c * p * g, this._y = c * p * l + f * u * g, this._z = c * u * g - f * p * l, this._w = c * u * l - f * p * g;
2195
+ this._x = l * u * f + c * p * g, this._y = c * p * f + l * u * g, this._z = c * u * g - l * p * f, this._w = c * u * f - l * p * g;
2196
2196
  break;
2197
2197
  case "XZY":
2198
- this._x = f * u * l - c * p * g, this._y = c * p * l - f * u * g, this._z = c * u * g + f * p * l, this._w = c * u * l + f * p * g;
2198
+ this._x = l * u * f - c * p * g, this._y = c * p * f - l * u * g, this._z = c * u * g + l * p * f, this._w = c * u * f + l * p * g;
2199
2199
  break;
2200
2200
  default:
2201
2201
  console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: " + a);
@@ -2207,18 +2207,18 @@ var P1 = Fc((L) => {
2207
2207
  return this._x = e.x * i, this._y = e.y * i, this._z = e.z * i, this._w = Math.cos(r), this._onChangeCallback(), this;
2208
2208
  }
2209
2209
  setFromRotationMatrix(e) {
2210
- const t = e.elements, r = t[0], i = t[4], s = t[8], a = t[1], o = t[5], h = t[9], c = t[2], u = t[6], l = t[10], f = r + o + l;
2211
- if (f > 0) {
2212
- const p = 0.5 / Math.sqrt(f + 1);
2210
+ const t = e.elements, r = t[0], i = t[4], s = t[8], a = t[1], o = t[5], h = t[9], c = t[2], u = t[6], f = t[10], l = r + o + f;
2211
+ if (l > 0) {
2212
+ const p = 0.5 / Math.sqrt(l + 1);
2213
2213
  this._w = 0.25 / p, this._x = (u - h) * p, this._y = (s - c) * p, this._z = (a - i) * p;
2214
- } else if (r > o && r > l) {
2215
- const p = 2 * Math.sqrt(1 + r - o - l);
2214
+ } else if (r > o && r > f) {
2215
+ const p = 2 * Math.sqrt(1 + r - o - f);
2216
2216
  this._w = (u - h) / p, this._x = 0.25 * p, this._y = (i + a) / p, this._z = (s + c) / p;
2217
- } else if (o > l) {
2218
- const p = 2 * Math.sqrt(1 + o - r - l);
2217
+ } else if (o > f) {
2218
+ const p = 2 * Math.sqrt(1 + o - r - f);
2219
2219
  this._w = (s - c) / p, this._x = (i + a) / p, this._y = 0.25 * p, this._z = (h + u) / p;
2220
2220
  } else {
2221
- const p = 2 * Math.sqrt(1 + l - r - o);
2221
+ const p = 2 * Math.sqrt(1 + f - r - o);
2222
2222
  this._w = (a - i) / p, this._x = (s + c) / p, this._y = (h + u) / p, this._z = 0.25 * p;
2223
2223
  }
2224
2224
  return this._onChangeCallback(), this;
@@ -2280,8 +2280,8 @@ var P1 = Fc((L) => {
2280
2280
  const p = 1 - t;
2281
2281
  return this._w = p * a + t * this._w, this._x = p * r + t * this._x, this._y = p * i + t * this._y, this._z = p * s + t * this._z, this.normalize(), this;
2282
2282
  }
2283
- const c = Math.sqrt(h), u = Math.atan2(c, o), l = Math.sin((1 - t) * u) / c, f = Math.sin(t * u) / c;
2284
- return this._w = a * l + this._w * f, this._x = r * l + this._x * f, this._y = i * l + this._y * f, this._z = s * l + this._z * f, this._onChangeCallback(), this;
2283
+ const c = Math.sqrt(h), u = Math.atan2(c, o), f = Math.sin((1 - t) * u) / c, l = Math.sin(t * u) / c;
2284
+ return this._w = a * f + this._w * l, this._x = r * f + this._x * l, this._y = i * f + this._y * l, this._z = s * f + this._z * l, this._onChangeCallback(), this;
2285
2285
  }
2286
2286
  slerpQuaternions(e, t, r) {
2287
2287
  return this.copy(e).slerp(t, r);
@@ -2420,8 +2420,8 @@ var P1 = Fc((L) => {
2420
2420
  return this.x = (s[0] * t + s[4] * r + s[8] * i + s[12]) * a, this.y = (s[1] * t + s[5] * r + s[9] * i + s[13]) * a, this.z = (s[2] * t + s[6] * r + s[10] * i + s[14]) * a, this;
2421
2421
  }
2422
2422
  applyQuaternion(e) {
2423
- const t = this.x, r = this.y, i = this.z, s = e.x, a = e.y, o = e.z, h = e.w, c = 2 * (a * i - o * r), u = 2 * (o * t - s * i), l = 2 * (s * r - a * t);
2424
- return this.x = t + h * c + a * l - o * u, this.y = r + h * u + o * c - s * l, this.z = i + h * l + s * u - a * c, this;
2423
+ const t = this.x, r = this.y, i = this.z, s = e.x, a = e.y, o = e.z, h = e.w, c = 2 * (a * i - o * r), u = 2 * (o * t - s * i), f = 2 * (s * r - a * t);
2424
+ return this.x = t + h * c + a * f - o * u, this.y = r + h * u + o * c - s * f, this.z = i + h * f + s * u - a * c, this;
2425
2425
  }
2426
2426
  project(e) {
2427
2427
  return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix);
@@ -2874,22 +2874,22 @@ var P1 = Fc((L) => {
2874
2874
  distanceSqToSegment(e, t, r, i) {
2875
2875
  Si.copy(e).add(t).multiplyScalar(0.5), mn.copy(t).sub(e).normalize(), St.copy(this.origin).sub(Si);
2876
2876
  const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(mn), o = St.dot(this.direction), h = -St.dot(mn), c = St.lengthSq(), u = Math.abs(1 - a * a);
2877
- let l, f, p, g;
2877
+ let f, l, p, g;
2878
2878
  if (u > 0)
2879
- if (l = a * h - o, f = a * o - h, g = s * u, l >= 0)
2880
- if (f >= -g)
2881
- if (f <= g) {
2879
+ if (f = a * h - o, l = a * o - h, g = s * u, f >= 0)
2880
+ if (l >= -g)
2881
+ if (l <= g) {
2882
2882
  const m = 1 / u;
2883
- l *= m, f *= m, p = l * (l + a * f + 2 * o) + f * (a * l + f + 2 * h) + c;
2883
+ f *= m, l *= m, p = f * (f + a * l + 2 * o) + l * (a * f + l + 2 * h) + c;
2884
2884
  } else
2885
- f = s, l = Math.max(0, -(a * f + o)), p = -l * l + f * (f + 2 * h) + c;
2885
+ l = s, f = Math.max(0, -(a * l + o)), p = -f * f + l * (l + 2 * h) + c;
2886
2886
  else
2887
- f = -s, l = Math.max(0, -(a * f + o)), p = -l * l + f * (f + 2 * h) + c;
2887
+ l = -s, f = Math.max(0, -(a * l + o)), p = -f * f + l * (l + 2 * h) + c;
2888
2888
  else
2889
- f <= -g ? (l = Math.max(0, -(-a * s + o)), f = l > 0 ? -s : Math.min(Math.max(-s, -h), s), p = -l * l + f * (f + 2 * h) + c) : f <= g ? (l = 0, f = Math.min(Math.max(-s, -h), s), p = f * (f + 2 * h) + c) : (l = Math.max(0, -(a * s + o)), f = l > 0 ? s : Math.min(Math.max(-s, -h), s), p = -l * l + f * (f + 2 * h) + c);
2889
+ l <= -g ? (f = Math.max(0, -(-a * s + o)), l = f > 0 ? -s : Math.min(Math.max(-s, -h), s), p = -f * f + l * (l + 2 * h) + c) : l <= g ? (f = 0, l = Math.min(Math.max(-s, -h), s), p = l * (l + 2 * h) + c) : (f = Math.max(0, -(a * s + o)), l = f > 0 ? s : Math.min(Math.max(-s, -h), s), p = -f * f + l * (l + 2 * h) + c);
2890
2890
  else
2891
- f = a > 0 ? -s : s, l = Math.max(0, -(a * f + o)), p = -l * l + f * (f + 2 * h) + c;
2892
- return r && r.copy(this.origin).addScaledVector(this.direction, l), i && i.copy(Si).addScaledVector(mn, f), p;
2891
+ l = a > 0 ? -s : s, f = Math.max(0, -(a * l + o)), p = -f * f + l * (l + 2 * h) + c;
2892
+ return r && r.copy(this.origin).addScaledVector(this.direction, f), i && i.copy(Si).addScaledVector(mn, l), p;
2893
2893
  }
2894
2894
  intersectSphere(e, t) {
2895
2895
  ot.subVectors(e.center, this.origin);
@@ -2918,8 +2918,8 @@ var P1 = Fc((L) => {
2918
2918
  }
2919
2919
  intersectBox(e, t) {
2920
2920
  let r, i, s, a, o, h;
2921
- const c = 1 / this.direction.x, u = 1 / this.direction.y, l = 1 / this.direction.z, f = this.origin;
2922
- return c >= 0 ? (r = (e.min.x - f.x) * c, i = (e.max.x - f.x) * c) : (r = (e.max.x - f.x) * c, i = (e.min.x - f.x) * c), u >= 0 ? (s = (e.min.y - f.y) * u, a = (e.max.y - f.y) * u) : (s = (e.max.y - f.y) * u, a = (e.min.y - f.y) * u), r > a || s > i || ((s > r || isNaN(r)) && (r = s), (a < i || isNaN(i)) && (i = a), l >= 0 ? (o = (e.min.z - f.z) * l, h = (e.max.z - f.z) * l) : (o = (e.max.z - f.z) * l, h = (e.min.z - f.z) * l), r > h || o > i) || ((o > r || r !== r) && (r = o), (h < i || i !== i) && (i = h), i < 0) ? null : this.at(r >= 0 ? r : i, t);
2921
+ const c = 1 / this.direction.x, u = 1 / this.direction.y, f = 1 / this.direction.z, l = this.origin;
2922
+ return c >= 0 ? (r = (e.min.x - l.x) * c, i = (e.max.x - l.x) * c) : (r = (e.max.x - l.x) * c, i = (e.min.x - l.x) * c), u >= 0 ? (s = (e.min.y - l.y) * u, a = (e.max.y - l.y) * u) : (s = (e.max.y - l.y) * u, a = (e.min.y - l.y) * u), r > a || s > i || ((s > r || isNaN(r)) && (r = s), (a < i || isNaN(i)) && (i = a), f >= 0 ? (o = (e.min.z - l.z) * f, h = (e.max.z - l.z) * f) : (o = (e.max.z - l.z) * f, h = (e.min.z - l.z) * f), r > h || o > i) || ((o > r || r !== r) && (r = o), (h < i || i !== i) && (i = h), i < 0) ? null : this.at(r >= 0 ? r : i, t);
2923
2923
  }
2924
2924
  intersectsBox(e) {
2925
2925
  return this.intersectBox(e, ot) !== null;
@@ -2955,7 +2955,7 @@ var P1 = Fc((L) => {
2955
2955
  }
2956
2956
  }
2957
2957
  class Fe {
2958
- constructor(e, t, r, i, s, a, o, h, c, u, l, f, p, g, m, x) {
2958
+ constructor(e, t, r, i, s, a, o, h, c, u, f, l, p, g, m, x) {
2959
2959
  Fe.prototype.isMatrix4 = !0, this.elements = [
2960
2960
  1,
2961
2961
  0,
@@ -2973,11 +2973,11 @@ var P1 = Fc((L) => {
2973
2973
  0,
2974
2974
  0,
2975
2975
  1
2976
- ], e !== void 0 && this.set(e, t, r, i, s, a, o, h, c, u, l, f, p, g, m, x);
2976
+ ], e !== void 0 && this.set(e, t, r, i, s, a, o, h, c, u, f, l, p, g, m, x);
2977
2977
  }
2978
- set(e, t, r, i, s, a, o, h, c, u, l, f, p, g, m, x) {
2978
+ set(e, t, r, i, s, a, o, h, c, u, f, l, p, g, m, x) {
2979
2979
  const v = this.elements;
2980
- return v[0] = e, v[4] = t, v[8] = r, v[12] = i, v[1] = s, v[5] = a, v[9] = o, v[13] = h, v[2] = c, v[6] = u, v[10] = l, v[14] = f, v[3] = p, v[7] = g, v[11] = m, v[15] = x, this;
2980
+ return v[0] = e, v[4] = t, v[8] = r, v[12] = i, v[1] = s, v[5] = a, v[9] = o, v[13] = h, v[2] = c, v[6] = u, v[10] = f, v[14] = l, v[3] = p, v[7] = g, v[11] = m, v[15] = x, this;
2981
2981
  }
2982
2982
  identity() {
2983
2983
  return this.set(
@@ -3059,25 +3059,25 @@ var P1 = Fc((L) => {
3059
3059
  return t[0] = r[0] * i, t[1] = r[1] * i, t[2] = r[2] * i, t[3] = 0, t[4] = r[4] * s, t[5] = r[5] * s, t[6] = r[6] * s, t[7] = 0, t[8] = r[8] * a, t[9] = r[9] * a, t[10] = r[10] * a, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
3060
3060
  }
3061
3061
  makeRotationFromEuler(e) {
3062
- const t = this.elements, r = e.x, i = e.y, s = e.z, a = Math.cos(r), o = Math.sin(r), h = Math.cos(i), c = Math.sin(i), u = Math.cos(s), l = Math.sin(s);
3062
+ const t = this.elements, r = e.x, i = e.y, s = e.z, a = Math.cos(r), o = Math.sin(r), h = Math.cos(i), c = Math.sin(i), u = Math.cos(s), f = Math.sin(s);
3063
3063
  if (e.order === "XYZ") {
3064
- const f = a * u, p = a * l, g = o * u, m = o * l;
3065
- t[0] = h * u, t[4] = -h * l, t[8] = c, t[1] = p + g * c, t[5] = f - m * c, t[9] = -o * h, t[2] = m - f * c, t[6] = g + p * c, t[10] = a * h;
3064
+ const l = a * u, p = a * f, g = o * u, m = o * f;
3065
+ t[0] = h * u, t[4] = -h * f, t[8] = c, t[1] = p + g * c, t[5] = l - m * c, t[9] = -o * h, t[2] = m - l * c, t[6] = g + p * c, t[10] = a * h;
3066
3066
  } else if (e.order === "YXZ") {
3067
- const f = h * u, p = h * l, g = c * u, m = c * l;
3068
- t[0] = f + m * o, t[4] = g * o - p, t[8] = a * c, t[1] = a * l, t[5] = a * u, t[9] = -o, t[2] = p * o - g, t[6] = m + f * o, t[10] = a * h;
3067
+ const l = h * u, p = h * f, g = c * u, m = c * f;
3068
+ t[0] = l + m * o, t[4] = g * o - p, t[8] = a * c, t[1] = a * f, t[5] = a * u, t[9] = -o, t[2] = p * o - g, t[6] = m + l * o, t[10] = a * h;
3069
3069
  } else if (e.order === "ZXY") {
3070
- const f = h * u, p = h * l, g = c * u, m = c * l;
3071
- t[0] = f - m * o, t[4] = -a * l, t[8] = g + p * o, t[1] = p + g * o, t[5] = a * u, t[9] = m - f * o, t[2] = -a * c, t[6] = o, t[10] = a * h;
3070
+ const l = h * u, p = h * f, g = c * u, m = c * f;
3071
+ t[0] = l - m * o, t[4] = -a * f, t[8] = g + p * o, t[1] = p + g * o, t[5] = a * u, t[9] = m - l * o, t[2] = -a * c, t[6] = o, t[10] = a * h;
3072
3072
  } else if (e.order === "ZYX") {
3073
- const f = a * u, p = a * l, g = o * u, m = o * l;
3074
- t[0] = h * u, t[4] = g * c - p, t[8] = f * c + m, t[1] = h * l, t[5] = m * c + f, t[9] = p * c - g, t[2] = -c, t[6] = o * h, t[10] = a * h;
3073
+ const l = a * u, p = a * f, g = o * u, m = o * f;
3074
+ t[0] = h * u, t[4] = g * c - p, t[8] = l * c + m, t[1] = h * f, t[5] = m * c + l, t[9] = p * c - g, t[2] = -c, t[6] = o * h, t[10] = a * h;
3075
3075
  } else if (e.order === "YZX") {
3076
- const f = a * h, p = a * c, g = o * h, m = o * c;
3077
- t[0] = h * u, t[4] = m - f * l, t[8] = g * l + p, t[1] = l, t[5] = a * u, t[9] = -o * u, t[2] = -c * u, t[6] = p * l + g, t[10] = f - m * l;
3076
+ const l = a * h, p = a * c, g = o * h, m = o * c;
3077
+ t[0] = h * u, t[4] = m - l * f, t[8] = g * f + p, t[1] = f, t[5] = a * u, t[9] = -o * u, t[2] = -c * u, t[6] = p * f + g, t[10] = l - m * f;
3078
3078
  } else if (e.order === "XZY") {
3079
- const f = a * h, p = a * c, g = o * h, m = o * c;
3080
- t[0] = h * u, t[4] = -l, t[8] = c * u, t[1] = f * l + m, t[5] = a * u, t[9] = p * l - g, t[2] = g * l - p, t[6] = o * u, t[10] = m * l + f;
3079
+ const l = a * h, p = a * c, g = o * h, m = o * c;
3080
+ t[0] = h * u, t[4] = -f, t[8] = c * u, t[1] = l * f + m, t[5] = a * u, t[9] = p * f - g, t[2] = g * f - p, t[6] = o * u, t[10] = m * f + l;
3081
3081
  }
3082
3082
  return t[3] = 0, t[7] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
3083
3083
  }
@@ -3095,16 +3095,16 @@ var P1 = Fc((L) => {
3095
3095
  return this.multiplyMatrices(e, this);
3096
3096
  }
3097
3097
  multiplyMatrices(e, t) {
3098
- const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[4], h = r[8], c = r[12], u = r[1], l = r[5], f = r[9], p = r[13], g = r[2], m = r[6], x = r[10], v = r[14], w = r[3], b = r[7], S = r[11], T = r[15], B = i[0], M = i[4], _ = i[8], D = i[12], N = i[1], G = i[5], ee = i[9], Y = i[13], Z = i[2], Q = i[6], K = i[10], ne = i[14], ae = i[3], ie = i[7], he = i[11], W = i[15];
3099
- return s[0] = a * B + o * N + h * Z + c * ae, s[4] = a * M + o * G + h * Q + c * ie, s[8] = a * _ + o * ee + h * K + c * he, s[12] = a * D + o * Y + h * ne + c * W, s[1] = u * B + l * N + f * Z + p * ae, s[5] = u * M + l * G + f * Q + p * ie, s[9] = u * _ + l * ee + f * K + p * he, s[13] = u * D + l * Y + f * ne + p * W, s[2] = g * B + m * N + x * Z + v * ae, s[6] = g * M + m * G + x * Q + v * ie, s[10] = g * _ + m * ee + x * K + v * he, s[14] = g * D + m * Y + x * ne + v * W, s[3] = w * B + b * N + S * Z + T * ae, s[7] = w * M + b * G + S * Q + T * ie, s[11] = w * _ + b * ee + S * K + T * he, s[15] = w * D + b * Y + S * ne + T * W, this;
3098
+ const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[4], h = r[8], c = r[12], u = r[1], f = r[5], l = r[9], p = r[13], g = r[2], m = r[6], x = r[10], v = r[14], w = r[3], b = r[7], S = r[11], T = r[15], B = i[0], M = i[4], _ = i[8], D = i[12], N = i[1], G = i[5], ee = i[9], Y = i[13], Z = i[2], Q = i[6], K = i[10], ne = i[14], ae = i[3], ie = i[7], he = i[11], W = i[15];
3099
+ return s[0] = a * B + o * N + h * Z + c * ae, s[4] = a * M + o * G + h * Q + c * ie, s[8] = a * _ + o * ee + h * K + c * he, s[12] = a * D + o * Y + h * ne + c * W, s[1] = u * B + f * N + l * Z + p * ae, s[5] = u * M + f * G + l * Q + p * ie, s[9] = u * _ + f * ee + l * K + p * he, s[13] = u * D + f * Y + l * ne + p * W, s[2] = g * B + m * N + x * Z + v * ae, s[6] = g * M + m * G + x * Q + v * ie, s[10] = g * _ + m * ee + x * K + v * he, s[14] = g * D + m * Y + x * ne + v * W, s[3] = w * B + b * N + S * Z + T * ae, s[7] = w * M + b * G + S * Q + T * ie, s[11] = w * _ + b * ee + S * K + T * he, s[15] = w * D + b * Y + S * ne + T * W, this;
3100
3100
  }
3101
3101
  multiplyScalar(e) {
3102
3102
  const t = this.elements;
3103
3103
  return t[0] *= e, t[4] *= e, t[8] *= e, t[12] *= e, t[1] *= e, t[5] *= e, t[9] *= e, t[13] *= e, t[2] *= e, t[6] *= e, t[10] *= e, t[14] *= e, t[3] *= e, t[7] *= e, t[11] *= e, t[15] *= e, this;
3104
3104
  }
3105
3105
  determinant() {
3106
- const e = this.elements, t = e[0], r = e[4], i = e[8], s = e[12], a = e[1], o = e[5], h = e[9], c = e[13], u = e[2], l = e[6], f = e[10], p = e[14], g = e[3], m = e[7], x = e[11], v = e[15];
3107
- return g * (+s * h * l - i * c * l - s * o * f + r * c * f + i * o * p - r * h * p) + m * (+t * h * p - t * c * f + s * a * f - i * a * p + i * c * u - s * h * u) + x * (+t * c * l - t * o * p - s * a * l + r * a * p + s * o * u - r * c * u) + v * (-i * o * u - t * h * l + t * o * f + i * a * l - r * a * f + r * h * u);
3106
+ const e = this.elements, t = e[0], r = e[4], i = e[8], s = e[12], a = e[1], o = e[5], h = e[9], c = e[13], u = e[2], f = e[6], l = e[10], p = e[14], g = e[3], m = e[7], x = e[11], v = e[15];
3107
+ return g * (+s * h * f - i * c * f - s * o * l + r * c * l + i * o * p - r * h * p) + m * (+t * h * p - t * c * l + s * a * l - i * a * p + i * c * u - s * h * u) + x * (+t * c * f - t * o * p - s * a * f + r * a * p + s * o * u - r * c * u) + v * (-i * o * u - t * h * f + t * o * l + i * a * f - r * a * l + r * h * u);
3108
3108
  }
3109
3109
  transpose() {
3110
3110
  const e = this.elements;
@@ -3116,10 +3116,10 @@ var P1 = Fc((L) => {
3116
3116
  return e.isVector3 ? (i[12] = e.x, i[13] = e.y, i[14] = e.z) : (i[12] = e, i[13] = t, i[14] = r), this;
3117
3117
  }
3118
3118
  invert() {
3119
- const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], a = e[4], o = e[5], h = e[6], c = e[7], u = e[8], l = e[9], f = e[10], p = e[11], g = e[12], m = e[13], x = e[14], v = e[15], w = l * x * c - m * f * c + m * h * p - o * x * p - l * h * v + o * f * v, b = g * f * c - u * x * c - g * h * p + a * x * p + u * h * v - a * f * v, S = u * m * c - g * l * c + g * o * p - a * m * p - u * o * v + a * l * v, T = g * l * h - u * m * h - g * o * f + a * m * f + u * o * x - a * l * x, B = t * w + r * b + i * S + s * T;
3119
+ const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], a = e[4], o = e[5], h = e[6], c = e[7], u = e[8], f = e[9], l = e[10], p = e[11], g = e[12], m = e[13], x = e[14], v = e[15], w = f * x * c - m * l * c + m * h * p - o * x * p - f * h * v + o * l * v, b = g * l * c - u * x * c - g * h * p + a * x * p + u * h * v - a * l * v, S = u * m * c - g * f * c + g * o * p - a * m * p - u * o * v + a * f * v, T = g * f * h - u * m * h - g * o * l + a * m * l + u * o * x - a * f * x, B = t * w + r * b + i * S + s * T;
3120
3120
  if (B === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
3121
3121
  const M = 1 / B;
3122
- return e[0] = w * M, e[1] = (m * f * s - l * x * s - m * i * p + r * x * p + l * i * v - r * f * v) * M, e[2] = (o * x * s - m * h * s + m * i * c - r * x * c - o * i * v + r * h * v) * M, e[3] = (l * h * s - o * f * s - l * i * c + r * f * c + o * i * p - r * h * p) * M, e[4] = b * M, e[5] = (u * x * s - g * f * s + g * i * p - t * x * p - u * i * v + t * f * v) * M, e[6] = (g * h * s - a * x * s - g * i * c + t * x * c + a * i * v - t * h * v) * M, e[7] = (a * f * s - u * h * s + u * i * c - t * f * c - a * i * p + t * h * p) * M, e[8] = S * M, e[9] = (g * l * s - u * m * s - g * r * p + t * m * p + u * r * v - t * l * v) * M, e[10] = (a * m * s - g * o * s + g * r * c - t * m * c - a * r * v + t * o * v) * M, e[11] = (u * o * s - a * l * s - u * r * c + t * l * c + a * r * p - t * o * p) * M, e[12] = T * M, e[13] = (u * m * i - g * l * i + g * r * f - t * m * f - u * r * x + t * l * x) * M, e[14] = (g * o * i - a * m * i - g * r * h + t * m * h + a * r * x - t * o * x) * M, e[15] = (a * l * i - u * o * i + u * r * h - t * l * h - a * r * f + t * o * f) * M, this;
3122
+ return e[0] = w * M, e[1] = (m * l * s - f * x * s - m * i * p + r * x * p + f * i * v - r * l * v) * M, e[2] = (o * x * s - m * h * s + m * i * c - r * x * c - o * i * v + r * h * v) * M, e[3] = (f * h * s - o * l * s - f * i * c + r * l * c + o * i * p - r * h * p) * M, e[4] = b * M, e[5] = (u * x * s - g * l * s + g * i * p - t * x * p - u * i * v + t * l * v) * M, e[6] = (g * h * s - a * x * s - g * i * c + t * x * c + a * i * v - t * h * v) * M, e[7] = (a * l * s - u * h * s + u * i * c - t * l * c - a * i * p + t * h * p) * M, e[8] = S * M, e[9] = (g * f * s - u * m * s - g * r * p + t * m * p + u * r * v - t * f * v) * M, e[10] = (a * m * s - g * o * s + g * r * c - t * m * c - a * r * v + t * o * v) * M, e[11] = (u * o * s - a * f * s - u * r * c + t * f * c + a * r * p - t * o * p) * M, e[12] = T * M, e[13] = (u * m * i - g * f * i + g * r * l - t * m * l - u * r * x + t * f * x) * M, e[14] = (g * o * i - a * m * i - g * r * h + t * m * h + a * r * x - t * o * x) * M, e[15] = (a * f * i - u * o * i + u * r * h - t * f * h - a * r * l + t * o * l) * M, this;
3123
3123
  }
3124
3124
  scale(e) {
3125
3125
  const t = this.elements, r = e.x, i = e.y, s = e.z;
@@ -3291,19 +3291,19 @@ var P1 = Fc((L) => {
3291
3291
  ), this;
3292
3292
  }
3293
3293
  compose(e, t, r) {
3294
- const i = this.elements, s = t._x, a = t._y, o = t._z, h = t._w, c = s + s, u = a + a, l = o + o, f = s * c, p = s * u, g = s * l, m = a * u, x = a * l, v = o * l, w = h * c, b = h * u, S = h * l, T = r.x, B = r.y, M = r.z;
3295
- return i[0] = (1 - (m + v)) * T, i[1] = (p + S) * T, i[2] = (g - b) * T, i[3] = 0, i[4] = (p - S) * B, i[5] = (1 - (f + v)) * B, i[6] = (x + w) * B, i[7] = 0, i[8] = (g + b) * M, i[9] = (x - w) * M, i[10] = (1 - (f + m)) * M, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, this;
3294
+ const i = this.elements, s = t._x, a = t._y, o = t._z, h = t._w, c = s + s, u = a + a, f = o + o, l = s * c, p = s * u, g = s * f, m = a * u, x = a * f, v = o * f, w = h * c, b = h * u, S = h * f, T = r.x, B = r.y, M = r.z;
3295
+ return i[0] = (1 - (m + v)) * T, i[1] = (p + S) * T, i[2] = (g - b) * T, i[3] = 0, i[4] = (p - S) * B, i[5] = (1 - (l + v)) * B, i[6] = (x + w) * B, i[7] = 0, i[8] = (g + b) * M, i[9] = (x - w) * M, i[10] = (1 - (l + m)) * M, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, this;
3296
3296
  }
3297
3297
  decompose(e, t, r) {
3298
3298
  const i = this.elements;
3299
3299
  let s = ar.set(i[0], i[1], i[2]).length();
3300
3300
  const a = ar.set(i[4], i[5], i[6]).length(), o = ar.set(i[8], i[9], i[10]).length();
3301
3301
  this.determinant() < 0 && (s = -s), e.x = i[12], e.y = i[13], e.z = i[14], We.copy(this);
3302
- const c = 1 / s, u = 1 / a, l = 1 / o;
3303
- return We.elements[0] *= c, We.elements[1] *= c, We.elements[2] *= c, We.elements[4] *= u, We.elements[5] *= u, We.elements[6] *= u, We.elements[8] *= l, We.elements[9] *= l, We.elements[10] *= l, t.setFromRotationMatrix(We), r.x = s, r.y = a, r.z = o, this;
3302
+ const c = 1 / s, u = 1 / a, f = 1 / o;
3303
+ return We.elements[0] *= c, We.elements[1] *= c, We.elements[2] *= c, We.elements[4] *= u, We.elements[5] *= u, We.elements[6] *= u, We.elements[8] *= f, We.elements[9] *= f, We.elements[10] *= f, t.setFromRotationMatrix(We), r.x = s, r.y = a, r.z = o, this;
3304
3304
  }
3305
3305
  makePerspective(e, t, r, i, s, a, o = pn) {
3306
- const h = this.elements, c = 2 * s / (t - e), u = 2 * s / (r - i), l = (t + e) / (t - e), f = (r + i) / (r - i);
3306
+ const h = this.elements, c = 2 * s / (t - e), u = 2 * s / (r - i), f = (t + e) / (t - e), l = (r + i) / (r - i);
3307
3307
  let p, g;
3308
3308
  if (o === pn)
3309
3309
  p = -(a + s) / (a - s), g = -2 * a * s / (a - s);
@@ -3311,18 +3311,18 @@ var P1 = Fc((L) => {
3311
3311
  p = -a / (a - s), g = -a * s / (a - s);
3312
3312
  else
3313
3313
  throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: " + o);
3314
- return h[0] = c, h[4] = 0, h[8] = l, h[12] = 0, h[1] = 0, h[5] = u, h[9] = f, h[13] = 0, h[2] = 0, h[6] = 0, h[10] = p, h[14] = g, h[3] = 0, h[7] = 0, h[11] = -1, h[15] = 0, this;
3314
+ return h[0] = c, h[4] = 0, h[8] = f, h[12] = 0, h[1] = 0, h[5] = u, h[9] = l, h[13] = 0, h[2] = 0, h[6] = 0, h[10] = p, h[14] = g, h[3] = 0, h[7] = 0, h[11] = -1, h[15] = 0, this;
3315
3315
  }
3316
3316
  makeOrthographic(e, t, r, i, s, a, o = pn) {
3317
- const h = this.elements, c = 1 / (t - e), u = 1 / (r - i), l = 1 / (a - s), f = (t + e) * c, p = (r + i) * u;
3317
+ const h = this.elements, c = 1 / (t - e), u = 1 / (r - i), f = 1 / (a - s), l = (t + e) * c, p = (r + i) * u;
3318
3318
  let g, m;
3319
3319
  if (o === pn)
3320
- g = (a + s) * l, m = -2 * l;
3320
+ g = (a + s) * f, m = -2 * f;
3321
3321
  else if (o === pa)
3322
- g = s * l, m = -1 * l;
3322
+ g = s * f, m = -1 * f;
3323
3323
  else
3324
3324
  throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: " + o);
3325
- return h[0] = 2 * c, h[4] = 0, h[8] = 0, h[12] = -f, h[1] = 0, h[5] = 2 * u, h[9] = 0, h[13] = -p, h[2] = 0, h[6] = 0, h[10] = m, h[14] = -g, h[3] = 0, h[7] = 0, h[11] = 0, h[15] = 1, this;
3325
+ return h[0] = 2 * c, h[4] = 0, h[8] = 0, h[12] = -l, h[1] = 0, h[5] = 2 * u, h[9] = 0, h[13] = -p, h[2] = 0, h[6] = 0, h[10] = m, h[14] = -g, h[3] = 0, h[7] = 0, h[11] = 0, h[15] = 1, this;
3326
3326
  }
3327
3327
  equals(e) {
3328
3328
  const t = this.elements, r = e.elements;
@@ -3379,25 +3379,25 @@ var P1 = Fc((L) => {
3379
3379
  return this._x = e._x, this._y = e._y, this._z = e._z, this._order = e._order, this._onChangeCallback(), this;
3380
3380
  }
3381
3381
  setFromRotationMatrix(e, t = this._order, r = !0) {
3382
- const i = e.elements, s = i[0], a = i[4], o = i[8], h = i[1], c = i[5], u = i[9], l = i[2], f = i[6], p = i[10];
3382
+ const i = e.elements, s = i[0], a = i[4], o = i[8], h = i[1], c = i[5], u = i[9], f = i[2], l = i[6], p = i[10];
3383
3383
  switch (t) {
3384
3384
  case "XYZ":
3385
- this._y = Math.asin(X(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(-u, p), this._z = Math.atan2(-a, s)) : (this._x = Math.atan2(f, c), this._z = 0);
3385
+ this._y = Math.asin(X(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(-u, p), this._z = Math.atan2(-a, s)) : (this._x = Math.atan2(l, c), this._z = 0);
3386
3386
  break;
3387
3387
  case "YXZ":
3388
- this._x = Math.asin(-X(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._y = Math.atan2(o, p), this._z = Math.atan2(h, c)) : (this._y = Math.atan2(-l, s), this._z = 0);
3388
+ this._x = Math.asin(-X(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._y = Math.atan2(o, p), this._z = Math.atan2(h, c)) : (this._y = Math.atan2(-f, s), this._z = 0);
3389
3389
  break;
3390
3390
  case "ZXY":
3391
- this._x = Math.asin(X(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._y = Math.atan2(-l, p), this._z = Math.atan2(-a, c)) : (this._y = 0, this._z = Math.atan2(h, s));
3391
+ this._x = Math.asin(X(l, -1, 1)), Math.abs(l) < 0.9999999 ? (this._y = Math.atan2(-f, p), this._z = Math.atan2(-a, c)) : (this._y = 0, this._z = Math.atan2(h, s));
3392
3392
  break;
3393
3393
  case "ZYX":
3394
- this._y = Math.asin(-X(l, -1, 1)), Math.abs(l) < 0.9999999 ? (this._x = Math.atan2(f, p), this._z = Math.atan2(h, s)) : (this._x = 0, this._z = Math.atan2(-a, c));
3394
+ this._y = Math.asin(-X(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._x = Math.atan2(l, p), this._z = Math.atan2(h, s)) : (this._x = 0, this._z = Math.atan2(-a, c));
3395
3395
  break;
3396
3396
  case "YZX":
3397
- this._z = Math.asin(X(h, -1, 1)), Math.abs(h) < 0.9999999 ? (this._x = Math.atan2(-u, c), this._y = Math.atan2(-l, s)) : (this._x = 0, this._y = Math.atan2(o, p));
3397
+ this._z = Math.asin(X(h, -1, 1)), Math.abs(h) < 0.9999999 ? (this._x = Math.atan2(-u, c), this._y = Math.atan2(-f, s)) : (this._x = 0, this._y = Math.atan2(o, p));
3398
3398
  break;
3399
3399
  case "XZY":
3400
- this._z = Math.asin(-X(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(f, c), this._y = Math.atan2(o, s)) : (this._x = Math.atan2(-u, p), this._y = 0);
3400
+ this._z = Math.asin(-X(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(l, c), this._y = Math.atan2(o, s)) : (this._x = Math.atan2(-u, p), this._y = 0);
3401
3401
  break;
3402
3402
  default:
3403
3403
  console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: " + t);
@@ -3707,8 +3707,8 @@ var P1 = Fc((L) => {
3707
3707
  const h = o.shapes;
3708
3708
  if (Array.isArray(h))
3709
3709
  for (let c = 0, u = h.length; c < u; c++) {
3710
- const l = h[c];
3711
- s(e.shapes, l);
3710
+ const f = h[c];
3711
+ s(e.shapes, f);
3712
3712
  }
3713
3713
  else
3714
3714
  s(e.shapes, h);
@@ -3735,8 +3735,8 @@ var P1 = Fc((L) => {
3735
3735
  }
3736
3736
  }
3737
3737
  if (t) {
3738
- const o = a(e.geometries), h = a(e.materials), c = a(e.textures), u = a(e.images), l = a(e.shapes), f = a(e.skeletons), p = a(e.animations), g = a(e.nodes);
3739
- o.length > 0 && (r.geometries = o), h.length > 0 && (r.materials = h), c.length > 0 && (r.textures = c), u.length > 0 && (r.images = u), l.length > 0 && (r.shapes = l), f.length > 0 && (r.skeletons = f), p.length > 0 && (r.animations = p), g.length > 0 && (r.nodes = g);
3738
+ const o = a(e.geometries), h = a(e.materials), c = a(e.textures), u = a(e.images), f = a(e.shapes), l = a(e.skeletons), p = a(e.animations), g = a(e.nodes);
3739
+ o.length > 0 && (r.geometries = o), h.length > 0 && (r.materials = h), c.length > 0 && (r.textures = c), u.length > 0 && (r.images = u), f.length > 0 && (r.shapes = f), l.length > 0 && (r.skeletons = l), p.length > 0 && (r.animations = p), g.length > 0 && (r.nodes = g);
3740
3740
  }
3741
3741
  return r.object = i, r;
3742
3742
  function a(o) {
@@ -3777,10 +3777,10 @@ var P1 = Fc((L) => {
3777
3777
  // based on: http://www.blackpawn.com/texts/pointinpoly/default.html
3778
3778
  static getBarycoord(e, t, r, i, s) {
3779
3779
  Ve.subVectors(i, t), ct.subVectors(r, t), ki.subVectors(e, t);
3780
- const a = Ve.dot(Ve), o = Ve.dot(ct), h = Ve.dot(ki), c = ct.dot(ct), u = ct.dot(ki), l = a * c - o * o;
3781
- if (l === 0)
3780
+ const a = Ve.dot(Ve), o = Ve.dot(ct), h = Ve.dot(ki), c = ct.dot(ct), u = ct.dot(ki), f = a * c - o * o;
3781
+ if (f === 0)
3782
3782
  return s.set(0, 0, 0), null;
3783
- const f = 1 / l, p = (c * h - o * u) * f, g = (a * u - o * h) * f;
3783
+ const l = 1 / f, p = (c * h - o * u) * l, g = (a * u - o * h) * l;
3784
3784
  return s.set(1 - p - g, g, p);
3785
3785
  }
3786
3786
  static containsPoint(e, t, r, i) {
@@ -3845,11 +3845,11 @@ var P1 = Fc((L) => {
3845
3845
  if (h <= 0 && c <= 0)
3846
3846
  return t.copy(r);
3847
3847
  Ai.subVectors(e, i);
3848
- const u = cr.dot(Ai), l = ur.dot(Ai);
3849
- if (u >= 0 && l <= u)
3848
+ const u = cr.dot(Ai), f = ur.dot(Ai);
3849
+ if (u >= 0 && f <= u)
3850
3850
  return t.copy(i);
3851
- const f = h * l - u * c;
3852
- if (f <= 0 && h >= 0 && u <= 0)
3851
+ const l = h * f - u * c;
3852
+ if (l <= 0 && h >= 0 && u <= 0)
3853
3853
  return a = h / (h - u), t.copy(r).addScaledVector(cr, a);
3854
3854
  Mi.subVectors(e, s);
3855
3855
  const p = cr.dot(Mi), g = ur.dot(Mi);
@@ -3858,11 +3858,11 @@ var P1 = Fc((L) => {
3858
3858
  const m = p * c - h * g;
3859
3859
  if (m <= 0 && c >= 0 && g <= 0)
3860
3860
  return o = c / (c - g), t.copy(r).addScaledVector(ur, o);
3861
- const x = u * g - p * l;
3862
- if (x <= 0 && l - u >= 0 && p - g >= 0)
3863
- return Ta.subVectors(s, i), o = (l - u) / (l - u + (p - g)), t.copy(i).addScaledVector(Ta, o);
3864
- const v = 1 / (x + m + f);
3865
- return a = m * v, o = f * v, t.copy(r).addScaledVector(cr, a).addScaledVector(ur, o);
3861
+ const x = u * g - p * f;
3862
+ if (x <= 0 && f - u >= 0 && p - g >= 0)
3863
+ return Ta.subVectors(s, i), o = (f - u) / (f - u + (p - g)), t.copy(i).addScaledVector(Ta, o);
3864
+ const v = 1 / (x + m + l);
3865
+ return a = m * v, o = l * v, t.copy(r).addScaledVector(cr, a).addScaledVector(ur, o);
3866
3866
  }
3867
3867
  equals(e) {
3868
3868
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
@@ -4142,16 +4142,16 @@ var P1 = Fc((L) => {
4142
4142
  if (o === a)
4143
4143
  h = 0, c = 0;
4144
4144
  else {
4145
- const l = a - o;
4146
- switch (c = u <= 0.5 ? l / (a + o) : l / (2 - a - o), a) {
4145
+ const f = a - o;
4146
+ switch (c = u <= 0.5 ? f / (a + o) : f / (2 - a - o), a) {
4147
4147
  case r:
4148
- h = (i - s) / l + (i < s ? 6 : 0);
4148
+ h = (i - s) / f + (i < s ? 6 : 0);
4149
4149
  break;
4150
4150
  case i:
4151
- h = (s - r) / l + 2;
4151
+ h = (s - r) / f + 2;
4152
4152
  break;
4153
4153
  case s:
4154
- h = (r - i) / l + 4;
4154
+ h = (r - i) / f + 4;
4155
4155
  break;
4156
4156
  }
4157
4157
  h /= 6;
@@ -4612,11 +4612,11 @@ var P1 = Fc((L) => {
4612
4612
  const a = this.getAttribute("tangent"), o = [], h = [];
4613
4613
  for (let _ = 0; _ < r.count; _++)
4614
4614
  o[_] = new E(), h[_] = new E();
4615
- const c = new E(), u = new E(), l = new E(), f = new q(), p = new q(), g = new q(), m = new E(), x = new E();
4615
+ const c = new E(), u = new E(), f = new E(), l = new q(), p = new q(), g = new q(), m = new E(), x = new E();
4616
4616
  function v(_, D, N) {
4617
- c.fromBufferAttribute(r, _), u.fromBufferAttribute(r, D), l.fromBufferAttribute(r, N), f.fromBufferAttribute(s, _), p.fromBufferAttribute(s, D), g.fromBufferAttribute(s, N), u.sub(c), l.sub(c), p.sub(f), g.sub(f);
4617
+ c.fromBufferAttribute(r, _), u.fromBufferAttribute(r, D), f.fromBufferAttribute(r, N), l.fromBufferAttribute(s, _), p.fromBufferAttribute(s, D), g.fromBufferAttribute(s, N), u.sub(c), f.sub(c), p.sub(l), g.sub(l);
4618
4618
  const G = 1 / (p.x * g.y - g.x * p.y);
4619
- isFinite(G) && (m.copy(u).multiplyScalar(g.y).addScaledVector(l, -p.y).multiplyScalar(G), x.copy(l).multiplyScalar(p.x).addScaledVector(u, -g.x).multiplyScalar(G), o[_].add(m), o[D].add(m), o[N].add(m), h[_].add(x), h[D].add(x), h[N].add(x));
4619
+ isFinite(G) && (m.copy(u).multiplyScalar(g.y).addScaledVector(f, -p.y).multiplyScalar(G), x.copy(f).multiplyScalar(p.x).addScaledVector(u, -g.x).multiplyScalar(G), o[_].add(m), o[D].add(m), o[N].add(m), h[_].add(x), h[D].add(x), h[N].add(x));
4620
4620
  }
4621
4621
  let w = this.groups;
4622
4622
  w.length === 0 && (w = [{
@@ -4653,17 +4653,17 @@ var P1 = Fc((L) => {
4653
4653
  if (r === void 0)
4654
4654
  r = new Ye(new Float32Array(t.count * 3), 3), this.setAttribute("normal", r);
4655
4655
  else
4656
- for (let f = 0, p = r.count; f < p; f++)
4657
- r.setXYZ(f, 0, 0, 0);
4658
- const i = new E(), s = new E(), a = new E(), o = new E(), h = new E(), c = new E(), u = new E(), l = new E();
4656
+ for (let l = 0, p = r.count; l < p; l++)
4657
+ r.setXYZ(l, 0, 0, 0);
4658
+ const i = new E(), s = new E(), a = new E(), o = new E(), h = new E(), c = new E(), u = new E(), f = new E();
4659
4659
  if (e)
4660
- for (let f = 0, p = e.count; f < p; f += 3) {
4661
- const g = e.getX(f + 0), m = e.getX(f + 1), x = e.getX(f + 2);
4662
- i.fromBufferAttribute(t, g), s.fromBufferAttribute(t, m), a.fromBufferAttribute(t, x), u.subVectors(a, s), l.subVectors(i, s), u.cross(l), o.fromBufferAttribute(r, g), h.fromBufferAttribute(r, m), c.fromBufferAttribute(r, x), o.add(u), h.add(u), c.add(u), r.setXYZ(g, o.x, o.y, o.z), r.setXYZ(m, h.x, h.y, h.z), r.setXYZ(x, c.x, c.y, c.z);
4660
+ for (let l = 0, p = e.count; l < p; l += 3) {
4661
+ const g = e.getX(l + 0), m = e.getX(l + 1), x = e.getX(l + 2);
4662
+ i.fromBufferAttribute(t, g), s.fromBufferAttribute(t, m), a.fromBufferAttribute(t, x), u.subVectors(a, s), f.subVectors(i, s), u.cross(f), o.fromBufferAttribute(r, g), h.fromBufferAttribute(r, m), c.fromBufferAttribute(r, x), o.add(u), h.add(u), c.add(u), r.setXYZ(g, o.x, o.y, o.z), r.setXYZ(m, h.x, h.y, h.z), r.setXYZ(x, c.x, c.y, c.z);
4663
4663
  }
4664
4664
  else
4665
- for (let f = 0, p = t.count; f < p; f += 3)
4666
- i.fromBufferAttribute(t, f + 0), s.fromBufferAttribute(t, f + 1), a.fromBufferAttribute(t, f + 2), u.subVectors(a, s), l.subVectors(i, s), u.cross(l), r.setXYZ(f + 0, u.x, u.y, u.z), r.setXYZ(f + 1, u.x, u.y, u.z), r.setXYZ(f + 2, u.x, u.y, u.z);
4665
+ for (let l = 0, p = t.count; l < p; l += 3)
4666
+ i.fromBufferAttribute(t, l + 0), s.fromBufferAttribute(t, l + 1), a.fromBufferAttribute(t, l + 2), u.subVectors(a, s), f.subVectors(i, s), u.cross(f), r.setXYZ(l + 0, u.x, u.y, u.z), r.setXYZ(l + 1, u.x, u.y, u.z), r.setXYZ(l + 2, u.x, u.y, u.z);
4667
4667
  this.normalizeNormals(), r.needsUpdate = !0;
4668
4668
  }
4669
4669
  }
@@ -4674,14 +4674,14 @@ var P1 = Fc((L) => {
4674
4674
  }
4675
4675
  toNonIndexed() {
4676
4676
  function e(o, h) {
4677
- const c = o.array, u = o.itemSize, l = o.normalized, f = new c.constructor(h.length * u);
4677
+ const c = o.array, u = o.itemSize, f = o.normalized, l = new c.constructor(h.length * u);
4678
4678
  let p = 0, g = 0;
4679
4679
  for (let m = 0, x = h.length; m < x; m++) {
4680
4680
  o.isInterleavedBufferAttribute ? p = h[m] * o.data.stride + o.offset : p = h[m] * u;
4681
4681
  for (let v = 0; v < u; v++)
4682
- f[g++] = c[p++];
4682
+ l[g++] = c[p++];
4683
4683
  }
4684
- return new Ye(f, u, l);
4684
+ return new Ye(l, u, f);
4685
4685
  }
4686
4686
  if (this.index === null)
4687
4687
  return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
@@ -4693,8 +4693,8 @@ var P1 = Fc((L) => {
4693
4693
  const s = this.morphAttributes;
4694
4694
  for (const o in s) {
4695
4695
  const h = [], c = s[o];
4696
- for (let u = 0, l = c.length; u < l; u++) {
4697
- const f = c[u], p = e(f, r);
4696
+ for (let u = 0, f = c.length; u < f; u++) {
4697
+ const l = c[u], p = e(l, r);
4698
4698
  h.push(p);
4699
4699
  }
4700
4700
  t.morphAttributes[o] = h;
@@ -4736,8 +4736,8 @@ var P1 = Fc((L) => {
4736
4736
  let s = !1;
4737
4737
  for (const h in this.morphAttributes) {
4738
4738
  const c = this.morphAttributes[h], u = [];
4739
- for (let l = 0, f = c.length; l < f; l++) {
4740
- const p = c[l];
4739
+ for (let f = 0, l = c.length; f < l; f++) {
4740
+ const p = c[f];
4741
4741
  u.push(p.toJSON(e.data));
4742
4742
  }
4743
4743
  u.length > 0 && (i[h] = u, s = !0);
@@ -4767,16 +4767,16 @@ var P1 = Fc((L) => {
4767
4767
  }
4768
4768
  const s = e.morphAttributes;
4769
4769
  for (const c in s) {
4770
- const u = [], l = s[c];
4771
- for (let f = 0, p = l.length; f < p; f++)
4772
- u.push(l[f].clone(t));
4770
+ const u = [], f = s[c];
4771
+ for (let l = 0, p = f.length; l < p; l++)
4772
+ u.push(f[l].clone(t));
4773
4773
  this.morphAttributes[c] = u;
4774
4774
  }
4775
4775
  this.morphTargetsRelative = e.morphTargetsRelative;
4776
4776
  const a = e.groups;
4777
4777
  for (let c = 0, u = a.length; c < u; c++) {
4778
- const l = a[c];
4779
- this.addGroup(l.start, l.count, l.materialIndex);
4778
+ const f = a[c];
4779
+ this.addGroup(f.start, f.count, f.materialIndex);
4780
4780
  }
4781
4781
  const o = e.boundingBox;
4782
4782
  o !== null && (this.boundingBox = o.clone());
@@ -4815,8 +4815,8 @@ var P1 = Fc((L) => {
4815
4815
  if (s && o) {
4816
4816
  En.set(0, 0, 0);
4817
4817
  for (let h = 0, c = s.length; h < c; h++) {
4818
- const u = o[h], l = s[h];
4819
- u !== 0 && (Ui.fromBufferAttribute(l, e), a ? En.addScaledVector(Ui, u) : En.addScaledVector(Ui.sub(t), u));
4818
+ const u = o[h], f = s[h];
4819
+ u !== 0 && (Ui.fromBufferAttribute(f, e), a ? En.addScaledVector(Ui, u) : En.addScaledVector(Ui.sub(t), u));
4820
4820
  }
4821
4821
  t.add(En);
4822
4822
  }
@@ -4828,37 +4828,37 @@ var P1 = Fc((L) => {
4828
4828
  }
4829
4829
  _computeIntersections(e, t, r) {
4830
4830
  let i;
4831
- const s = this.geometry, a = this.material, o = s.index, h = s.attributes.position, c = s.attributes.uv, u = s.attributes.uv1, l = s.attributes.normal, f = s.groups, p = s.drawRange;
4831
+ const s = this.geometry, a = this.material, o = s.index, h = s.attributes.position, c = s.attributes.uv, u = s.attributes.uv1, f = s.attributes.normal, l = s.groups, p = s.drawRange;
4832
4832
  if (o !== null)
4833
4833
  if (Array.isArray(a))
4834
- for (let g = 0, m = f.length; g < m; g++) {
4835
- const x = f[g], v = a[x.materialIndex], w = Math.max(x.start, p.start), b = Math.min(o.count, Math.min(x.start + x.count, p.start + p.count));
4834
+ for (let g = 0, m = l.length; g < m; g++) {
4835
+ const x = l[g], v = a[x.materialIndex], w = Math.max(x.start, p.start), b = Math.min(o.count, Math.min(x.start + x.count, p.start + p.count));
4836
4836
  for (let S = w, T = b; S < T; S += 3) {
4837
4837
  const B = o.getX(S), M = o.getX(S + 1), _ = o.getX(S + 2);
4838
- i = Mn(this, v, e, r, c, u, l, B, M, _), i && (i.faceIndex = Math.floor(S / 3), i.face.materialIndex = x.materialIndex, t.push(i));
4838
+ i = Mn(this, v, e, r, c, u, f, B, M, _), i && (i.faceIndex = Math.floor(S / 3), i.face.materialIndex = x.materialIndex, t.push(i));
4839
4839
  }
4840
4840
  }
4841
4841
  else {
4842
4842
  const g = Math.max(0, p.start), m = Math.min(o.count, p.start + p.count);
4843
4843
  for (let x = g, v = m; x < v; x += 3) {
4844
4844
  const w = o.getX(x), b = o.getX(x + 1), S = o.getX(x + 2);
4845
- i = Mn(this, a, e, r, c, u, l, w, b, S), i && (i.faceIndex = Math.floor(x / 3), t.push(i));
4845
+ i = Mn(this, a, e, r, c, u, f, w, b, S), i && (i.faceIndex = Math.floor(x / 3), t.push(i));
4846
4846
  }
4847
4847
  }
4848
4848
  else if (h !== void 0)
4849
4849
  if (Array.isArray(a))
4850
- for (let g = 0, m = f.length; g < m; g++) {
4851
- const x = f[g], v = a[x.materialIndex], w = Math.max(x.start, p.start), b = Math.min(h.count, Math.min(x.start + x.count, p.start + p.count));
4850
+ for (let g = 0, m = l.length; g < m; g++) {
4851
+ const x = l[g], v = a[x.materialIndex], w = Math.max(x.start, p.start), b = Math.min(h.count, Math.min(x.start + x.count, p.start + p.count));
4852
4852
  for (let S = w, T = b; S < T; S += 3) {
4853
4853
  const B = S, M = S + 1, _ = S + 2;
4854
- i = Mn(this, v, e, r, c, u, l, B, M, _), i && (i.faceIndex = Math.floor(S / 3), i.face.materialIndex = x.materialIndex, t.push(i));
4854
+ i = Mn(this, v, e, r, c, u, f, B, M, _), i && (i.faceIndex = Math.floor(S / 3), i.face.materialIndex = x.materialIndex, t.push(i));
4855
4855
  }
4856
4856
  }
4857
4857
  else {
4858
4858
  const g = Math.max(0, p.start), m = Math.min(h.count, p.start + p.count);
4859
4859
  for (let x = g, v = m; x < v; x += 3) {
4860
4860
  const w = x, b = x + 1, S = x + 2;
4861
- i = Mn(this, a, e, r, c, u, l, w, b, S), i && (i.faceIndex = Math.floor(x / 3), t.push(i));
4861
+ i = Mn(this, a, e, r, c, u, f, w, b, S), i && (i.faceIndex = Math.floor(x / 3), t.push(i));
4862
4862
  }
4863
4863
  }
4864
4864
  }
@@ -4878,16 +4878,16 @@ var P1 = Fc((L) => {
4878
4878
  n.getVertexPosition(o, Cn), n.getVertexPosition(h, Tn), n.getVertexPosition(c, kn);
4879
4879
  const u = su(n, e, t, r, Cn, Tn, kn, Aa);
4880
4880
  if (u) {
4881
- const l = new E();
4882
- Xe.getBarycoord(Aa, Cn, Tn, kn, l), i && (u.uv = Xe.getInterpolatedAttribute(i, o, h, c, l, new q())), s && (u.uv1 = Xe.getInterpolatedAttribute(s, o, h, c, l, new q())), a && (u.normal = Xe.getInterpolatedAttribute(a, o, h, c, l, new E()), u.normal.dot(r.direction) > 0 && u.normal.multiplyScalar(-1));
4883
- const f = {
4881
+ const f = new E();
4882
+ Xe.getBarycoord(Aa, Cn, Tn, kn, f), i && (u.uv = Xe.getInterpolatedAttribute(i, o, h, c, f, new q())), s && (u.uv1 = Xe.getInterpolatedAttribute(s, o, h, c, f, new q())), a && (u.normal = Xe.getInterpolatedAttribute(a, o, h, c, f, new E()), u.normal.dot(r.direction) > 0 && u.normal.multiplyScalar(-1));
4883
+ const l = {
4884
4884
  a: o,
4885
4885
  b: h,
4886
4886
  c,
4887
4887
  normal: new E(),
4888
4888
  materialIndex: 0
4889
4889
  };
4890
- Xe.getNormal(Cn, Tn, kn, f.normal), u.face = f, u.barycoord = l;
4890
+ Xe.getNormal(Cn, Tn, kn, l.normal), u.face = l, u.barycoord = f;
4891
4891
  }
4892
4892
  return u;
4893
4893
  }
@@ -4922,7 +4922,7 @@ var P1 = Fc((L) => {
4922
4922
  const r = this.geometry, i = this.matrixWorld, s = e.params.Line.threshold, a = r.drawRange;
4923
4923
  if (r.boundingSphere === null && r.computeBoundingSphere(), _n.copy(r.boundingSphere), _n.applyMatrix4(i), _n.radius += s, e.ray.intersectsSphere(_n) === !1) return;
4924
4924
  Ma.copy(i).invert(), Lr.copy(e.ray).applyMatrix4(Ma);
4925
- const o = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), h = o * o, c = this.isLineSegments ? 2 : 1, u = r.index, f = r.attributes.position;
4925
+ const o = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), h = o * o, c = this.isLineSegments ? 2 : 1, u = r.index, l = r.attributes.position;
4926
4926
  if (u !== null) {
4927
4927
  const p = Math.max(0, a.start), g = Math.min(u.count, a.start + a.count);
4928
4928
  for (let m = p, x = g - 1; m < x; m += c) {
@@ -4934,7 +4934,7 @@ var P1 = Fc((L) => {
4934
4934
  v && t.push(v);
4935
4935
  }
4936
4936
  } else {
4937
- const p = Math.max(0, a.start), g = Math.min(f.count, a.start + a.count);
4937
+ const p = Math.max(0, a.start), g = Math.min(l.count, a.start + a.count);
4938
4938
  for (let m = p, x = g - 1; m < x; m += c) {
4939
4939
  const v = Bn(this, e, Lr, h, m, m + 1);
4940
4940
  v && t.push(v);
@@ -5067,7 +5067,7 @@ var P1 = Fc((L) => {
5067
5067
  }
5068
5068
  if (i = h, r[i] === a)
5069
5069
  return i / (s - 1);
5070
- const u = r[i], f = r[i + 1] - u, p = (a - u) / f;
5070
+ const u = r[i], l = r[i + 1] - u, p = (a - u) / l;
5071
5071
  return (i + p) / (s - 1);
5072
5072
  }
5073
5073
  // Returns a unit vector tangent at t
@@ -5092,8 +5092,8 @@ var P1 = Fc((L) => {
5092
5092
  }
5093
5093
  s[0] = new E(), a[0] = new E();
5094
5094
  let c = Number.MAX_VALUE;
5095
- const u = Math.abs(i[0].x), l = Math.abs(i[0].y), f = Math.abs(i[0].z);
5096
- u <= c && (c = u, r.set(1, 0, 0)), l <= c && (c = l, r.set(0, 1, 0)), f <= c && r.set(0, 0, 1), o.crossVectors(i[0], r).normalize(), s[0].crossVectors(i[0], o), a[0].crossVectors(i[0], s[0]);
5095
+ const u = Math.abs(i[0].x), f = Math.abs(i[0].y), l = Math.abs(i[0].z);
5096
+ u <= c && (c = u, r.set(1, 0, 0)), f <= c && (c = f, r.set(0, 1, 0)), l <= c && r.set(0, 0, 1), o.crossVectors(i[0], r).normalize(), s[0].crossVectors(i[0], o), a[0].crossVectors(i[0], s[0]);
5097
5097
  for (let p = 1; p <= e; p++) {
5098
5098
  if (s[p] = s[p - 1].clone(), a[p] = a[p - 1].clone(), o.crossVectors(i[p - 1], i[p]), o.length() > Number.EPSILON) {
5099
5099
  o.normalize();
@@ -5148,8 +5148,8 @@ var P1 = Fc((L) => {
5148
5148
  const o = this.aStartAngle + e * s;
5149
5149
  let h = this.aX + this.xRadius * Math.cos(o), c = this.aY + this.yRadius * Math.sin(o);
5150
5150
  if (this.aRotation !== 0) {
5151
- const u = Math.cos(this.aRotation), l = Math.sin(this.aRotation), f = h - this.aX, p = c - this.aY;
5152
- h = f * u - p * l + this.aX, c = f * l + p * u + this.aY;
5151
+ const u = Math.cos(this.aRotation), f = Math.sin(this.aRotation), l = h - this.aX, p = c - this.aY;
5152
+ h = l * u - p * f + this.aX, c = l * f + p * u + this.aY;
5153
5153
  }
5154
5154
  return r.set(h, c);
5155
5155
  }
@@ -5178,9 +5178,9 @@ var P1 = Fc((L) => {
5178
5178
  initCatmullRom: function(s, a, o, h, c) {
5179
5179
  i(a, o, c * (o - s), c * (h - a));
5180
5180
  },
5181
- initNonuniformCatmullRom: function(s, a, o, h, c, u, l) {
5182
- let f = (a - s) / c - (o - s) / (c + u) + (o - a) / u, p = (o - a) / u - (h - a) / (u + l) + (h - o) / l;
5183
- f *= u, p *= u, i(a, o, f, p);
5181
+ initNonuniformCatmullRom: function(s, a, o, h, c, u, f) {
5182
+ let l = (a - s) / c - (o - s) / (c + u) + (o - a) / u, p = (o - a) / u - (h - a) / (u + f) + (h - o) / f;
5183
+ l *= u, p *= u, i(a, o, l, p);
5184
5184
  },
5185
5185
  calc: function(s) {
5186
5186
  const a = s * s, o = a * s;
@@ -5199,12 +5199,12 @@ var P1 = Fc((L) => {
5199
5199
  this.closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / s) + 1) * s : h === 0 && o === s - 1 && (o = s - 2, h = 1);
5200
5200
  let c, u;
5201
5201
  this.closed || o > 0 ? c = i[(o - 1) % s] : (Ln.subVectors(i[0], i[1]).add(i[0]), c = Ln);
5202
- const l = i[o % s], f = i[(o + 1) % s];
5202
+ const f = i[o % s], l = i[(o + 1) % s];
5203
5203
  if (this.closed || o + 2 < s ? u = i[(o + 2) % s] : (Ln.subVectors(i[s - 1], i[s - 2]).add(i[s - 1]), u = Ln), this.curveType === "centripetal" || this.curveType === "chordal") {
5204
5204
  const p = this.curveType === "chordal" ? 0.5 : 0.25;
5205
- let g = Math.pow(c.distanceToSquared(l), p), m = Math.pow(l.distanceToSquared(f), p), x = Math.pow(f.distanceToSquared(u), p);
5206
- m < 1e-4 && (m = 1), g < 1e-4 && (g = m), x < 1e-4 && (x = m), Ii.initNonuniformCatmullRom(c.x, l.x, f.x, u.x, g, m, x), zi.initNonuniformCatmullRom(c.y, l.y, f.y, u.y, g, m, x), Pi.initNonuniformCatmullRom(c.z, l.z, f.z, u.z, g, m, x);
5207
- } else this.curveType === "catmullrom" && (Ii.initCatmullRom(c.x, l.x, f.x, u.x, this.tension), zi.initCatmullRom(c.y, l.y, f.y, u.y, this.tension), Pi.initCatmullRom(c.z, l.z, f.z, u.z, this.tension));
5205
+ let g = Math.pow(c.distanceToSquared(f), p), m = Math.pow(f.distanceToSquared(l), p), x = Math.pow(l.distanceToSquared(u), p);
5206
+ m < 1e-4 && (m = 1), g < 1e-4 && (g = m), x < 1e-4 && (x = m), Ii.initNonuniformCatmullRom(c.x, f.x, l.x, u.x, g, m, x), zi.initNonuniformCatmullRom(c.y, f.y, l.y, u.y, g, m, x), Pi.initNonuniformCatmullRom(c.z, f.z, l.z, u.z, g, m, x);
5207
+ } else this.curveType === "catmullrom" && (Ii.initCatmullRom(c.x, f.x, l.x, u.x, this.tension), zi.initCatmullRom(c.y, f.y, l.y, u.y, this.tension), Pi.initCatmullRom(c.z, f.z, l.z, u.z, this.tension));
5208
5208
  return r.set(
5209
5209
  Ii.calc(h),
5210
5210
  zi.calc(h),
@@ -5424,10 +5424,10 @@ var P1 = Fc((L) => {
5424
5424
  super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = e;
5425
5425
  }
5426
5426
  getPoint(e, t = new q()) {
5427
- const r = t, i = this.points, s = (i.length - 1) * e, a = Math.floor(s), o = s - a, h = i[a === 0 ? a : a - 1], c = i[a], u = i[a > i.length - 2 ? i.length - 1 : a + 1], l = i[a > i.length - 3 ? i.length - 1 : a + 2];
5427
+ const r = t, i = this.points, s = (i.length - 1) * e, a = Math.floor(s), o = s - a, h = i[a === 0 ? a : a - 1], c = i[a], u = i[a > i.length - 2 ? i.length - 1 : a + 1], f = i[a > i.length - 3 ? i.length - 1 : a + 2];
5428
5428
  return r.set(
5429
- Ra(o, h.x, c.x, u.x, l.x),
5430
- Ra(o, h.y, c.y, u.y, l.y)
5429
+ Ra(o, h.x, c.x, u.x, f.x),
5430
+ Ra(o, h.y, c.y, u.y, f.y)
5431
5431
  ), r;
5432
5432
  }
5433
5433
  copy(e) {
@@ -5628,8 +5628,8 @@ var P1 = Fc((L) => {
5628
5628
  absellipse(e, t, r, i, s, a, o, h) {
5629
5629
  const c = new Wr(e, t, r, i, s, a, o, h);
5630
5630
  if (this.curves.length > 0) {
5631
- const l = c.getPoint(0);
5632
- l.equals(this.currentPoint) || this.lineTo(l.x, l.y);
5631
+ const f = c.getPoint(0);
5632
+ f.equals(this.currentPoint) || this.lineTo(f.x, f.y);
5633
5633
  }
5634
5634
  this.curves.push(c);
5635
5635
  const u = c.getPoint(1);
@@ -5695,11 +5695,11 @@ var P1 = Fc((L) => {
5695
5695
  let s = fh(n, 0, i, t, !0);
5696
5696
  const a = [];
5697
5697
  if (!s || s.next === s.prev) return a;
5698
- let o, h, c, u, l, f, p;
5698
+ let o, h, c, u, f, l, p;
5699
5699
  if (r && (s = Tu(n, e, s, t)), n.length > 80 * t) {
5700
5700
  o = c = n[0], h = u = n[1];
5701
5701
  for (let g = t; g < i; g += t)
5702
- l = n[g], f = n[g + 1], l < o && (o = l), f < h && (h = f), l > c && (c = l), f > u && (u = f);
5702
+ f = n[g], l = n[g + 1], f < o && (o = f), l < h && (h = l), f > c && (c = f), l > u && (u = l);
5703
5703
  p = Math.max(c - o, u - h), p = p !== 0 ? 32767 / p : 0;
5704
5704
  }
5705
5705
  return Vr(s, a, t, o, h, p, 0), a;
@@ -5744,10 +5744,10 @@ var P1 = Fc((L) => {
5744
5744
  function wu(n) {
5745
5745
  const e = n.prev, t = n, r = n.next;
5746
5746
  if (ce(e, t, r) >= 0) return !1;
5747
- const i = e.x, s = t.x, a = r.x, o = e.y, h = t.y, c = r.y, u = i < s ? i < a ? i : a : s < a ? s : a, l = o < h ? o < c ? o : c : h < c ? h : c, f = i > s ? i > a ? i : a : s > a ? s : a, p = o > h ? o > c ? o : c : h > c ? h : c;
5747
+ const i = e.x, s = t.x, a = r.x, o = e.y, h = t.y, c = r.y, u = i < s ? i < a ? i : a : s < a ? s : a, f = o < h ? o < c ? o : c : h < c ? h : c, l = i > s ? i > a ? i : a : s > a ? s : a, p = o > h ? o > c ? o : c : h > c ? h : c;
5748
5748
  let g = r.next;
5749
5749
  for (; g !== e; ) {
5750
- if (g.x >= u && g.x <= f && g.y >= l && g.y <= p && dr(i, o, s, h, a, c, g.x, g.y) && ce(g.prev, g, g.next) >= 0) return !1;
5750
+ if (g.x >= u && g.x <= l && g.y >= f && g.y <= p && dr(i, o, s, h, a, c, g.x, g.y) && ce(g.prev, g, g.next) >= 0) return !1;
5751
5751
  g = g.next;
5752
5752
  }
5753
5753
  return !0;
@@ -5755,18 +5755,18 @@ var P1 = Fc((L) => {
5755
5755
  function Su(n, e, t, r) {
5756
5756
  const i = n.prev, s = n, a = n.next;
5757
5757
  if (ce(i, s, a) >= 0) return !1;
5758
- const o = i.x, h = s.x, c = a.x, u = i.y, l = s.y, f = a.y, p = o < h ? o < c ? o : c : h < c ? h : c, g = u < l ? u < f ? u : f : l < f ? l : f, m = o > h ? o > c ? o : c : h > c ? h : c, x = u > l ? u > f ? u : f : l > f ? l : f, v = gs(p, g, e, t, r), w = gs(m, x, e, t, r);
5758
+ const o = i.x, h = s.x, c = a.x, u = i.y, f = s.y, l = a.y, p = o < h ? o < c ? o : c : h < c ? h : c, g = u < f ? u < l ? u : l : f < l ? f : l, m = o > h ? o > c ? o : c : h > c ? h : c, x = u > f ? u > l ? u : l : f > l ? f : l, v = gs(p, g, e, t, r), w = gs(m, x, e, t, r);
5759
5759
  let b = n.prevZ, S = n.nextZ;
5760
5760
  for (; b && b.z >= v && S && S.z <= w; ) {
5761
- if (b.x >= p && b.x <= m && b.y >= g && b.y <= x && b !== i && b !== a && dr(o, u, h, l, c, f, b.x, b.y) && ce(b.prev, b, b.next) >= 0 || (b = b.prevZ, S.x >= p && S.x <= m && S.y >= g && S.y <= x && S !== i && S !== a && dr(o, u, h, l, c, f, S.x, S.y) && ce(S.prev, S, S.next) >= 0)) return !1;
5761
+ if (b.x >= p && b.x <= m && b.y >= g && b.y <= x && b !== i && b !== a && dr(o, u, h, f, c, l, b.x, b.y) && ce(b.prev, b, b.next) >= 0 || (b = b.prevZ, S.x >= p && S.x <= m && S.y >= g && S.y <= x && S !== i && S !== a && dr(o, u, h, f, c, l, S.x, S.y) && ce(S.prev, S, S.next) >= 0)) return !1;
5762
5762
  S = S.nextZ;
5763
5763
  }
5764
5764
  for (; b && b.z >= v; ) {
5765
- if (b.x >= p && b.x <= m && b.y >= g && b.y <= x && b !== i && b !== a && dr(o, u, h, l, c, f, b.x, b.y) && ce(b.prev, b, b.next) >= 0) return !1;
5765
+ if (b.x >= p && b.x <= m && b.y >= g && b.y <= x && b !== i && b !== a && dr(o, u, h, f, c, l, b.x, b.y) && ce(b.prev, b, b.next) >= 0) return !1;
5766
5766
  b = b.prevZ;
5767
5767
  }
5768
5768
  for (; S && S.z <= w; ) {
5769
- if (S.x >= p && S.x <= m && S.y >= g && S.y <= x && S !== i && S !== a && dr(o, u, h, l, c, f, S.x, S.y) && ce(S.prev, S, S.next) >= 0) return !1;
5769
+ if (S.x >= p && S.x <= m && S.y >= g && S.y <= x && S !== i && S !== a && dr(o, u, h, f, c, l, S.x, S.y) && ce(S.prev, S, S.next) >= 0) return !1;
5770
5770
  S = S.nextZ;
5771
5771
  }
5772
5772
  return !0;
@@ -5818,18 +5818,18 @@ var P1 = Fc((L) => {
5818
5818
  const s = n.x, a = n.y;
5819
5819
  do {
5820
5820
  if (a <= t.y && a >= t.next.y && t.next.y !== t.y) {
5821
- const f = t.x + (a - t.y) * (t.next.x - t.x) / (t.next.y - t.y);
5822
- if (f <= s && f > r && (r = f, i = t.x < t.next.x ? t : t.next, f === s))
5821
+ const l = t.x + (a - t.y) * (t.next.x - t.x) / (t.next.y - t.y);
5822
+ if (l <= s && l > r && (r = l, i = t.x < t.next.x ? t : t.next, l === s))
5823
5823
  return i;
5824
5824
  }
5825
5825
  t = t.next;
5826
5826
  } while (t !== e);
5827
5827
  if (!i) return null;
5828
5828
  const o = i, h = i.x, c = i.y;
5829
- let u = 1 / 0, l;
5829
+ let u = 1 / 0, f;
5830
5830
  t = i;
5831
5831
  do
5832
- s >= t.x && t.x >= h && s !== t.x && dr(a < c ? s : r, a, h, c, a < c ? r : s, a, t.x, t.y) && (l = Math.abs(a - t.y) / (s - t.x), qr(t, n) && (l < u || l === u && (t.x > i.x || t.x === i.x && Mu(i, t))) && (i = t, u = l)), t = t.next;
5832
+ s >= t.x && t.x >= h && s !== t.x && dr(a < c ? s : r, a, h, c, a < c ? r : s, a, t.x, t.y) && (f = Math.abs(a - t.y) / (s - t.x), qr(t, n) && (f < u || f === u && (t.x > i.x || t.x === i.x && Mu(i, t))) && (i = t, u = f)), t = t.next;
5833
5833
  while (t !== o);
5834
5834
  return i;
5835
5835
  }
@@ -5979,9 +5979,9 @@ var P1 = Fc((L) => {
5979
5979
  c(e[u]), this.addGroup(o, h, u), o += h, h = 0;
5980
5980
  this.setIndex(r), this.setAttribute("position", new $t(i, 3)), this.setAttribute("normal", new $t(s, 3)), this.setAttribute("uv", new $t(a, 2));
5981
5981
  function c(u) {
5982
- const l = i.length / 3, f = u.extractPoints(t);
5983
- let p = f.shape;
5984
- const g = f.holes;
5982
+ const f = i.length / 3, l = u.extractPoints(t);
5983
+ let p = l.shape;
5984
+ const g = l.holes;
5985
5985
  Rt.isClockWise(p) === !1 && (p = p.reverse());
5986
5986
  for (let x = 0, v = g.length; x < v; x++) {
5987
5987
  const w = g[x];
@@ -5997,7 +5997,7 @@ var P1 = Fc((L) => {
5997
5997
  i.push(w.x, w.y, 0), s.push(0, 0, 1), a.push(w.x, w.y);
5998
5998
  }
5999
5999
  for (let x = 0, v = m.length; x < v; x++) {
6000
- const w = m[x], b = w[0] + l, S = w[1] + l, T = w[2] + l;
6000
+ const w = m[x], b = w[0] + f, S = w[1] + f, T = w[2] + f;
6001
6001
  r.push(b, S, T), h += 3;
6002
6002
  }
6003
6003
  }
@@ -6060,14 +6060,14 @@ var P1 = Fc((L) => {
6060
6060
  return h ? h(u) : u;
6061
6061
  }, this.setURLModifier = function(u) {
6062
6062
  return h = u, this;
6063
- }, this.addHandler = function(u, l) {
6064
- return c.push(u, l), this;
6063
+ }, this.addHandler = function(u, f) {
6064
+ return c.push(u, f), this;
6065
6065
  }, this.removeHandler = function(u) {
6066
- const l = c.indexOf(u);
6067
- return l !== -1 && c.splice(l, 2), this;
6066
+ const f = c.indexOf(u);
6067
+ return f !== -1 && c.splice(f, 2), this;
6068
6068
  }, this.getHandler = function(u) {
6069
- for (let l = 0, f = c.length; l < f; l += 2) {
6070
- const p = c[l], g = c[l + 1];
6069
+ for (let f = 0, l = c.length; f < l; f += 2) {
6070
+ const p = c[f], g = c[f + 1];
6071
6071
  if (p.global && (p.lastIndex = 0), p.test(u))
6072
6072
  return g;
6073
6073
  }
@@ -6146,13 +6146,13 @@ var P1 = Fc((L) => {
6146
6146
  if (c.status === 200 || c.status === 0) {
6147
6147
  if (c.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || c.body === void 0 || c.body.getReader === void 0)
6148
6148
  return c;
6149
- const u = lt[e], l = c.body.getReader(), f = c.headers.get("X-File-Size") || c.headers.get("Content-Length"), p = f ? parseInt(f) : 0, g = p !== 0;
6149
+ const u = lt[e], f = c.body.getReader(), l = c.headers.get("X-File-Size") || c.headers.get("Content-Length"), p = l ? parseInt(l) : 0, g = p !== 0;
6150
6150
  let m = 0;
6151
6151
  const x = new ReadableStream({
6152
6152
  start(v) {
6153
6153
  w();
6154
6154
  function w() {
6155
- l.read().then(({ done: b, value: S }) => {
6155
+ f.read().then(({ done: b, value: S }) => {
6156
6156
  if (b)
6157
6157
  v.close();
6158
6158
  else {
@@ -6187,7 +6187,7 @@ var P1 = Fc((L) => {
6187
6187
  if (o === void 0)
6188
6188
  return c.text();
6189
6189
  {
6190
- const l = /charset="?([^;"\s]*)"?/i.exec(o), f = l && l[1] ? l[1].toLowerCase() : void 0, p = new TextDecoder(f);
6190
+ const f = /charset="?([^;"\s]*)"?/i.exec(o), l = f && f[1] ? f[1].toLowerCase() : void 0, p = new TextDecoder(l);
6191
6191
  return c.arrayBuffer().then((g) => p.decode(g));
6192
6192
  }
6193
6193
  }
@@ -6195,8 +6195,8 @@ var P1 = Fc((L) => {
6195
6195
  Pa.add(e, c);
6196
6196
  const u = lt[e];
6197
6197
  delete lt[e];
6198
- for (let l = 0, f = u.length; l < f; l++) {
6199
- const p = u[l];
6198
+ for (let f = 0, l = u.length; f < l; f++) {
6199
+ const p = u[f];
6200
6200
  p.onLoad && p.onLoad(c);
6201
6201
  }
6202
6202
  }).catch((c) => {
@@ -6204,8 +6204,8 @@ var P1 = Fc((L) => {
6204
6204
  if (u === void 0)
6205
6205
  throw this.manager.itemError(e), c;
6206
6206
  delete lt[e];
6207
- for (let l = 0, f = u.length; l < f; l++) {
6208
- const p = u[l];
6207
+ for (let f = 0, l = u.length; f < l; f++) {
6208
+ const p = u[f];
6209
6209
  p.onError && p.onError(c);
6210
6210
  }
6211
6211
  this.manager.itemError(e);
@@ -6278,31 +6278,31 @@ var P1 = Fc((L) => {
6278
6278
  return o = s[0], h = new yr(), h.curves = o.curves, c.push(h), c;
6279
6279
  let u = !i(s[0].getPoints());
6280
6280
  u = e ? !u : u;
6281
- const l = [], f = [];
6281
+ const f = [], l = [];
6282
6282
  let p = [], g = 0, m;
6283
- f[g] = void 0, p[g] = [];
6283
+ l[g] = void 0, p[g] = [];
6284
6284
  for (let v = 0, w = s.length; v < w; v++)
6285
- o = s[v], m = o.getPoints(), a = i(m), a = e ? !a : a, a ? (!u && f[g] && g++, f[g] = { s: new yr(), p: m }, f[g].s.curves = o.curves, u && g++, p[g] = []) : p[g].push({ h: o, p: m[0] });
6286
- if (!f[0]) return t(s);
6287
- if (f.length > 1) {
6285
+ o = s[v], m = o.getPoints(), a = i(m), a = e ? !a : a, a ? (!u && l[g] && g++, l[g] = { s: new yr(), p: m }, l[g].s.curves = o.curves, u && g++, p[g] = []) : p[g].push({ h: o, p: m[0] });
6286
+ if (!l[0]) return t(s);
6287
+ if (l.length > 1) {
6288
6288
  let v = !1, w = 0;
6289
- for (let b = 0, S = f.length; b < S; b++)
6290
- l[b] = [];
6291
- for (let b = 0, S = f.length; b < S; b++) {
6289
+ for (let b = 0, S = l.length; b < S; b++)
6290
+ f[b] = [];
6291
+ for (let b = 0, S = l.length; b < S; b++) {
6292
6292
  const T = p[b];
6293
6293
  for (let B = 0; B < T.length; B++) {
6294
6294
  const M = T[B];
6295
6295
  let _ = !0;
6296
- for (let D = 0; D < f.length; D++)
6297
- r(M.p, f[D].p) && (b !== D && w++, _ ? (_ = !1, l[D].push(M)) : v = !0);
6298
- _ && l[b].push(M);
6296
+ for (let D = 0; D < l.length; D++)
6297
+ r(M.p, l[D].p) && (b !== D && w++, _ ? (_ = !1, f[D].push(M)) : v = !0);
6298
+ _ && f[b].push(M);
6299
6299
  }
6300
6300
  }
6301
- w > 0 && v === !1 && (p = l);
6301
+ w > 0 && v === !1 && (p = f);
6302
6302
  }
6303
6303
  let x;
6304
- for (let v = 0, w = f.length; v < w; v++) {
6305
- h = f[v].s, c.push(h), x = p[v];
6304
+ for (let v = 0, w = l.length; v < w; v++) {
6305
+ h = l[v].s, c.push(h), x = p[v];
6306
6306
  for (let b = 0, S = x.length; b < S; b++)
6307
6307
  h.holes.push(x[b].h);
6308
6308
  }
@@ -7114,9 +7114,9 @@ var P1 = Fc((L) => {
7114
7114
  var u = Ss(n, Ya);
7115
7115
  switch (u) {
7116
7116
  case 16:
7117
- var l = et[o - 1];
7117
+ var f = et[o - 1];
7118
7118
  for (h = tt(n, 2, 3); h; --h)
7119
- et[o++] = l;
7119
+ et[o++] = f;
7120
7120
  break;
7121
7121
  case 17:
7122
7122
  for (h = tt(n, 3, 3); h; --h)
@@ -7202,23 +7202,23 @@ var P1 = Fc((L) => {
7202
7202
  this.addPoint(null, n);
7203
7203
  };
7204
7204
  Pt.prototype.addBezier = function(n, e, t, r, i, s, a, o) {
7205
- var h = [n, e], c = [t, r], u = [i, s], l = [a, o];
7205
+ var h = [n, e], c = [t, r], u = [i, s], f = [a, o];
7206
7206
  this.addPoint(n, e), this.addPoint(a, o);
7207
- for (var f = 0; f <= 1; f++) {
7208
- var p = 6 * h[f] - 12 * c[f] + 6 * u[f], g = -3 * h[f] + 9 * c[f] - 9 * u[f] + 3 * l[f], m = 3 * c[f] - 3 * h[f];
7207
+ for (var l = 0; l <= 1; l++) {
7208
+ var p = 6 * h[l] - 12 * c[l] + 6 * u[l], g = -3 * h[l] + 9 * c[l] - 9 * u[l] + 3 * f[l], m = 3 * c[l] - 3 * h[l];
7209
7209
  if (g === 0) {
7210
7210
  if (p === 0)
7211
7211
  continue;
7212
7212
  var x = -m / p;
7213
- 0 < x && x < 1 && (f === 0 && this.addX(fr(h[f], c[f], u[f], l[f], x)), f === 1 && this.addY(fr(h[f], c[f], u[f], l[f], x)));
7213
+ 0 < x && x < 1 && (l === 0 && this.addX(fr(h[l], c[l], u[l], f[l], x)), l === 1 && this.addY(fr(h[l], c[l], u[l], f[l], x)));
7214
7214
  continue;
7215
7215
  }
7216
7216
  var v = Math.pow(p, 2) - 4 * m * g;
7217
7217
  if (!(v < 0)) {
7218
7218
  var w = (-p + Math.sqrt(v)) / (2 * g);
7219
- 0 < w && w < 1 && (f === 0 && this.addX(fr(h[f], c[f], u[f], l[f], w)), f === 1 && this.addY(fr(h[f], c[f], u[f], l[f], w)));
7219
+ 0 < w && w < 1 && (l === 0 && this.addX(fr(h[l], c[l], u[l], f[l], w)), l === 1 && this.addY(fr(h[l], c[l], u[l], f[l], w)));
7220
7220
  var b = (-p - Math.sqrt(v)) / (2 * g);
7221
- 0 < b && b < 1 && (f === 0 && this.addX(fr(h[f], c[f], u[f], l[f], b)), f === 1 && this.addY(fr(h[f], c[f], u[f], l[f], b)));
7221
+ 0 < b && b < 1 && (l === 0 && this.addX(fr(h[l], c[l], u[l], f[l], b)), l === 1 && this.addY(fr(h[l], c[l], u[l], f[l], b)));
7222
7222
  }
7223
7223
  }
7224
7224
  };
@@ -7686,8 +7686,8 @@ var P1 = Fc((L) => {
7686
7686
  a.type === "TABLE" ? (i.push(e.length), e = e.concat([0, 0]), r.push(c)) : e = e.concat(c);
7687
7687
  }
7688
7688
  for (var u = 0; u < r.length; u += 1) {
7689
- var l = i[u], f = e.length;
7690
- H.argument(f < 65536, "Table " + n.tableName + " too big."), e[l] = f >> 8, e[l + 1] = f & 255, e = e.concat(r[u]);
7689
+ var f = i[u], l = e.length;
7690
+ H.argument(l < 65536, "Table " + n.tableName + " too big."), e[f] = l >> 8, e[f + 1] = l & 255, e = e.concat(r[u]);
7691
7691
  }
7692
7692
  return e;
7693
7693
  };
@@ -8194,9 +8194,9 @@ var P1 = Fc((L) => {
8194
8194
  n.length = e.parseUShort(), n.language = e.parseUShort();
8195
8195
  var s;
8196
8196
  n.segCount = s = e.parseUShort() >> 1, e.skip("uShort", 3), n.glyphIndexMap = {};
8197
- for (var a = new P.Parser(t, r + i + 14), o = new P.Parser(t, r + i + 16 + s * 2), h = new P.Parser(t, r + i + 16 + s * 4), c = new P.Parser(t, r + i + 16 + s * 6), u = r + i + 16 + s * 8, l = 0; l < s - 1; l += 1)
8198
- for (var f = void 0, p = a.parseUShort(), g = o.parseUShort(), m = h.parseShort(), x = c.parseUShort(), v = g; v <= p; v += 1)
8199
- x !== 0 ? (u = c.offset + c.relativeOffset - 2, u += x, u += (v - g) * 2, f = P.getUShort(t, u), f !== 0 && (f = f + m & 65535)) : f = v + m & 65535, n.glyphIndexMap[v] = f;
8197
+ for (var a = new P.Parser(t, r + i + 14), o = new P.Parser(t, r + i + 16 + s * 2), h = new P.Parser(t, r + i + 16 + s * 4), c = new P.Parser(t, r + i + 16 + s * 6), u = r + i + 16 + s * 8, f = 0; f < s - 1; f += 1)
8198
+ for (var l = void 0, p = a.parseUShort(), g = o.parseUShort(), m = h.parseShort(), x = c.parseUShort(), v = g; v <= p; v += 1)
8199
+ x !== 0 ? (u = c.offset + c.relativeOffset - 2, u += x, u += (v - g) * 2, l = P.getUShort(t, u), l !== 0 && (l = l + m & 65535)) : l = v + m & 65535, n.glyphIndexMap[v] = l;
8200
8200
  }
8201
8201
  function Sl(n, e) {
8202
8202
  var t = {};
@@ -8278,14 +8278,14 @@ var P1 = Fc((L) => {
8278
8278
  });
8279
8279
  }
8280
8280
  Cl(s);
8281
- var h = s.segments.length, c = 0, u = [], l = [], f = [], p = [], g = [], m = [];
8281
+ var h = s.segments.length, c = 0, u = [], f = [], l = [], p = [], g = [], m = [];
8282
8282
  for (t = 0; t < h; t += 1) {
8283
8283
  var x = s.segments[t];
8284
- x.end <= 65535 && x.start <= 65535 ? (u = u.concat({ name: "end_" + t, type: "USHORT", value: x.end }), l = l.concat({ name: "start_" + t, type: "USHORT", value: x.start }), f = f.concat({ name: "idDelta_" + t, type: "SHORT", value: x.delta }), p = p.concat({ name: "idRangeOffset_" + t, type: "USHORT", value: x.offset }), x.glyphId !== void 0 && (g = g.concat({ name: "glyph_" + t, type: "USHORT", value: x.glyphId }))) : c += 1, !e && x.glyphIndex !== void 0 && (m = m.concat({ name: "cmap12Start_" + t, type: "ULONG", value: x.start }), m = m.concat({ name: "cmap12End_" + t, type: "ULONG", value: x.end }), m = m.concat({ name: "cmap12Glyph_" + t, type: "ULONG", value: x.glyphIndex }));
8284
+ x.end <= 65535 && x.start <= 65535 ? (u = u.concat({ name: "end_" + t, type: "USHORT", value: x.end }), f = f.concat({ name: "start_" + t, type: "USHORT", value: x.start }), l = l.concat({ name: "idDelta_" + t, type: "SHORT", value: x.delta }), p = p.concat({ name: "idRangeOffset_" + t, type: "USHORT", value: x.offset }), x.glyphId !== void 0 && (g = g.concat({ name: "glyph_" + t, type: "USHORT", value: x.glyphId }))) : c += 1, !e && x.glyphIndex !== void 0 && (m = m.concat({ name: "cmap12Start_" + t, type: "ULONG", value: x.start }), m = m.concat({ name: "cmap12End_" + t, type: "ULONG", value: x.end }), m = m.concat({ name: "cmap12Glyph_" + t, type: "ULONG", value: x.glyphIndex }));
8285
8285
  }
8286
- if (s.segCountX2 = (h - c) * 2, s.searchRange = Math.pow(2, Math.floor(Math.log(h - c) / Math.log(2))) * 2, s.entrySelector = Math.log(s.searchRange / 2) / Math.log(2), s.rangeShift = s.segCountX2 - s.searchRange, s.fields = s.fields.concat(u), s.fields.push({ name: "reservedPad", type: "USHORT", value: 0 }), s.fields = s.fields.concat(l), s.fields = s.fields.concat(f), s.fields = s.fields.concat(p), s.fields = s.fields.concat(g), s.cmap4Length = 14 + // Subtable header
8286
+ if (s.segCountX2 = (h - c) * 2, s.searchRange = Math.pow(2, Math.floor(Math.log(h - c) / Math.log(2))) * 2, s.entrySelector = Math.log(s.searchRange / 2) / Math.log(2), s.rangeShift = s.segCountX2 - s.searchRange, s.fields = s.fields.concat(u), s.fields.push({ name: "reservedPad", type: "USHORT", value: 0 }), s.fields = s.fields.concat(f), s.fields = s.fields.concat(l), s.fields = s.fields.concat(p), s.fields = s.fields.concat(g), s.cmap4Length = 14 + // Subtable header
8287
8287
  u.length * 2 + 2 + // reservedPad
8288
- l.length * 2 + f.length * 2 + p.length * 2 + g.length * 2, !e) {
8288
+ f.length * 2 + l.length * 2 + p.length * 2 + g.length * 2, !e) {
8289
8289
  var v = 16 + // Subtable header
8290
8290
  m.length * 4;
8291
8291
  s.cmap12Offset = 12 + 2 * 2 + 4 + s.cmap4Length, s.fields = s.fields.concat([
@@ -9574,21 +9574,21 @@ var P1 = Fc((L) => {
9574
9574
  var c = 1 / (this.path.unitsPerEm || 1e3) * t;
9575
9575
  o === void 0 && (o = c), h === void 0 && (h = c);
9576
9576
  }
9577
- for (var u = new me(), l = 0; l < s.length; l += 1) {
9578
- var f = s[l];
9579
- f.type === "M" ? u.moveTo(n + f.x * o, e + -f.y * h) : f.type === "L" ? u.lineTo(n + f.x * o, e + -f.y * h) : f.type === "Q" ? u.quadraticCurveTo(
9580
- n + f.x1 * o,
9581
- e + -f.y1 * h,
9582
- n + f.x * o,
9583
- e + -f.y * h
9584
- ) : f.type === "C" ? u.curveTo(
9585
- n + f.x1 * o,
9586
- e + -f.y1 * h,
9587
- n + f.x2 * o,
9588
- e + -f.y2 * h,
9589
- n + f.x * o,
9590
- e + -f.y * h
9591
- ) : f.type === "Z" && u.closePath();
9577
+ for (var u = new me(), f = 0; f < s.length; f += 1) {
9578
+ var l = s[f];
9579
+ l.type === "M" ? u.moveTo(n + l.x * o, e + -l.y * h) : l.type === "L" ? u.lineTo(n + l.x * o, e + -l.y * h) : l.type === "Q" ? u.quadraticCurveTo(
9580
+ n + l.x1 * o,
9581
+ e + -l.y1 * h,
9582
+ n + l.x * o,
9583
+ e + -l.y * h
9584
+ ) : l.type === "C" ? u.curveTo(
9585
+ n + l.x1 * o,
9586
+ e + -l.y1 * h,
9587
+ n + l.x2 * o,
9588
+ e + -l.y2 * h,
9589
+ n + l.x * o,
9590
+ e + -l.y * h
9591
+ ) : l.type === "Z" && u.closePath();
9592
9592
  }
9593
9593
  return u;
9594
9594
  };
@@ -9619,10 +9619,10 @@ var P1 = Fc((L) => {
9619
9619
  this.getPath(e, t, r, i).draw(n);
9620
9620
  };
9621
9621
  Ne.prototype.drawPoints = function(n, e, t, r) {
9622
- function i(l, f, p, g) {
9622
+ function i(f, l, p, g) {
9623
9623
  n.beginPath();
9624
- for (var m = 0; m < l.length; m += 1)
9625
- n.moveTo(f + l[m].x * g, p + l[m].y * g), n.arc(f + l[m].x * g, p + l[m].y * g, 2, 0, Math.PI * 2, !1);
9624
+ for (var m = 0; m < f.length; m += 1)
9625
+ n.moveTo(l + f[m].x * g, p + f[m].y * g), n.arc(l + f[m].x * g, p + f[m].y * g, 2, 0, Math.PI * 2, !1);
9626
9626
  n.closePath(), n.fill();
9627
9627
  }
9628
9628
  e = e !== void 0 ? e : 0, t = t !== void 0 ? t : 0, r = r !== void 0 ? r : 24;
@@ -9723,9 +9723,9 @@ var P1 = Fc((L) => {
9723
9723
  o = a + r[s];
9724
9724
  } else
9725
9725
  o = e + 2;
9726
- for (var l = 0; l < r.length - 1; l += 1) {
9727
- var f = P.getBytes(n, a + r[l], a + r[l + 1]);
9728
- t && (f = t(f)), i.push(f);
9726
+ for (var f = 0; f < r.length - 1; f += 1) {
9727
+ var l = P.getBytes(n, a + r[f], a + r[f + 1]);
9728
+ t && (l = t(l)), i.push(l);
9729
9729
  }
9730
9730
  return { objects: i, startOffset: e, endOffset: o };
9731
9731
  }
@@ -9871,8 +9871,8 @@ var P1 = Fc((L) => {
9871
9871
  if (h !== 0 && c !== 0) {
9872
9872
  var u = Ph(n, c + e, h, r);
9873
9873
  if (o._defaultWidthX = u.defaultWidthX, o._nominalWidthX = u.nominalWidthX, u.subrs !== 0) {
9874
- var l = c + u.subrs, f = Et(n, l + e);
9875
- o._subrs = f.objects, o._subrsBias = ks(o._subrs);
9874
+ var f = c + u.subrs, l = Et(n, f + e);
9875
+ o._subrs = l.objects, o._subrsBias = ks(o._subrs);
9876
9876
  }
9877
9877
  o._privateDict = u;
9878
9878
  }
@@ -9896,7 +9896,7 @@ var P1 = Fc((L) => {
9896
9896
  else if (h === 2)
9897
9897
  for (; o.length <= t; ) {
9898
9898
  i = a.parseSID(), s = a.parseCard16();
9899
- for (var l = 0; l <= s; l += 1)
9899
+ for (var f = 0; f <= s; f += 1)
9900
9900
  o.push(Nr(r, i)), i += 1;
9901
9901
  }
9902
9902
  else
@@ -9912,14 +9912,14 @@ var P1 = Fc((L) => {
9912
9912
  var c = s.parseCard8();
9913
9913
  r = 1;
9914
9914
  for (var u = 0; u < c; u += 1)
9915
- for (var l = s.parseCard8(), f = s.parseCard8(), p = l; p <= l + f; p += 1)
9915
+ for (var f = s.parseCard8(), l = s.parseCard8(), p = f; p <= f + l; p += 1)
9916
9916
  i[p] = r, r += 1;
9917
9917
  } else
9918
9918
  throw new Error("Unknown encoding format " + a);
9919
9919
  return new si(i, t);
9920
9920
  }
9921
9921
  function ro(n, e, t) {
9922
- var r, i, s, a, o = new me(), h = [], c = 0, u = !1, l = !1, f = 0, p = 0, g, m, x, v;
9922
+ var r, i, s, a, o = new me(), h = [], c = 0, u = !1, f = !1, l = 0, p = 0, g, m, x, v;
9923
9923
  if (n.isCIDFont) {
9924
9924
  var w = n.tables.cff.topDict._fdSelect[e.index], b = n.tables.cff.topDict._fdArray[w];
9925
9925
  g = b._subrs, m = b._subrsBias, x = b._defaultWidthX, v = b._nominalWidthX;
@@ -9927,7 +9927,7 @@ var P1 = Fc((L) => {
9927
9927
  g = n.tables.cff.topDict._subrs, m = n.tables.cff.topDict._subrsBias, x = n.tables.cff.topDict._defaultWidthX, v = n.tables.cff.topDict._nominalWidthX;
9928
9928
  var S = x;
9929
9929
  function T(_, D) {
9930
- l && o.closePath(), o.moveTo(_, D), l = !0;
9930
+ f && o.closePath(), o.moveTo(_, D), f = !0;
9931
9931
  }
9932
9932
  function B() {
9933
9933
  var _;
@@ -9944,23 +9944,23 @@ var P1 = Fc((L) => {
9944
9944
  B();
9945
9945
  break;
9946
9946
  case 4:
9947
- h.length > 1 && !u && (S = h.shift() + v, u = !0), p += h.pop(), T(f, p);
9947
+ h.length > 1 && !u && (S = h.shift() + v, u = !0), p += h.pop(), T(l, p);
9948
9948
  break;
9949
9949
  case 5:
9950
9950
  for (; h.length > 0; )
9951
- f += h.shift(), p += h.shift(), o.lineTo(f, p);
9951
+ l += h.shift(), p += h.shift(), o.lineTo(l, p);
9952
9952
  break;
9953
9953
  case 6:
9954
- for (; h.length > 0 && (f += h.shift(), o.lineTo(f, p), h.length !== 0); )
9955
- p += h.shift(), o.lineTo(f, p);
9954
+ for (; h.length > 0 && (l += h.shift(), o.lineTo(l, p), h.length !== 0); )
9955
+ p += h.shift(), o.lineTo(l, p);
9956
9956
  break;
9957
9957
  case 7:
9958
- for (; h.length > 0 && (p += h.shift(), o.lineTo(f, p), h.length !== 0); )
9959
- f += h.shift(), o.lineTo(f, p);
9958
+ for (; h.length > 0 && (p += h.shift(), o.lineTo(l, p), h.length !== 0); )
9959
+ l += h.shift(), o.lineTo(l, p);
9960
9960
  break;
9961
9961
  case 8:
9962
9962
  for (; h.length > 0; )
9963
- r = f + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), f = s + h.shift(), p = a + h.shift(), o.curveTo(r, i, s, a, f, p);
9963
+ r = l + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), l = s + h.shift(), p = a + h.shift(), o.curveTo(r, i, s, a, l, p);
9964
9964
  break;
9965
9965
  case 10:
9966
9966
  Y = h.pop() + m, Z = g[Y], Z && M(Z);
@@ -9970,23 +9970,23 @@ var P1 = Fc((L) => {
9970
9970
  case 12:
9971
9971
  switch ($ = _[W], W += 1, $) {
9972
9972
  case 35:
9973
- r = f + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a + h.shift(), ne = Q + h.shift(), ae = K + h.shift(), ie = ne + h.shift(), he = ae + h.shift(), f = ie + h.shift(), p = he + h.shift(), h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, f, p);
9973
+ r = l + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a + h.shift(), ne = Q + h.shift(), ae = K + h.shift(), ie = ne + h.shift(), he = ae + h.shift(), l = ie + h.shift(), p = he + h.shift(), h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, l, p);
9974
9974
  break;
9975
9975
  case 34:
9976
- r = f + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a, ne = Q + h.shift(), ae = a, ie = ne + h.shift(), he = p, f = ie + h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, f, p);
9976
+ r = l + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a, ne = Q + h.shift(), ae = a, ie = ne + h.shift(), he = p, l = ie + h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, l, p);
9977
9977
  break;
9978
9978
  case 36:
9979
- r = f + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a, ne = Q + h.shift(), ae = a, ie = ne + h.shift(), he = ae + h.shift(), f = ie + h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, f, p);
9979
+ r = l + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a, ne = Q + h.shift(), ae = a, ie = ne + h.shift(), he = ae + h.shift(), l = ie + h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, l, p);
9980
9980
  break;
9981
9981
  case 37:
9982
- r = f + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a + h.shift(), ne = Q + h.shift(), ae = K + h.shift(), ie = ne + h.shift(), he = ae + h.shift(), Math.abs(ie - f) > Math.abs(he - p) ? f = ie + h.shift() : p = he + h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, f, p);
9982
+ r = l + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), Q = s + h.shift(), K = a + h.shift(), ne = Q + h.shift(), ae = K + h.shift(), ie = ne + h.shift(), he = ae + h.shift(), Math.abs(ie - l) > Math.abs(he - p) ? l = ie + h.shift() : p = he + h.shift(), o.curveTo(r, i, s, a, Q, K), o.curveTo(ne, ae, ie, he, l, p);
9983
9983
  break;
9984
9984
  default:
9985
9985
  console.log("Glyph " + e.index + ": unknown operator 1200" + $), h.length = 0;
9986
9986
  }
9987
9987
  break;
9988
9988
  case 14:
9989
- h.length > 0 && !u && (S = h.shift() + v, u = !0), l && (o.closePath(), l = !1);
9989
+ h.length > 0 && !u && (S = h.shift() + v, u = !0), f && (o.closePath(), f = !1);
9990
9990
  break;
9991
9991
  case 18:
9992
9992
  B();
@@ -9996,31 +9996,31 @@ var P1 = Fc((L) => {
9996
9996
  B(), W += c + 7 >> 3;
9997
9997
  break;
9998
9998
  case 21:
9999
- h.length > 2 && !u && (S = h.shift() + v, u = !0), p += h.pop(), f += h.pop(), T(f, p);
9999
+ h.length > 2 && !u && (S = h.shift() + v, u = !0), p += h.pop(), l += h.pop(), T(l, p);
10000
10000
  break;
10001
10001
  case 22:
10002
- h.length > 1 && !u && (S = h.shift() + v, u = !0), f += h.pop(), T(f, p);
10002
+ h.length > 1 && !u && (S = h.shift() + v, u = !0), l += h.pop(), T(l, p);
10003
10003
  break;
10004
10004
  case 23:
10005
10005
  B();
10006
10006
  break;
10007
10007
  case 24:
10008
10008
  for (; h.length > 2; )
10009
- r = f + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), f = s + h.shift(), p = a + h.shift(), o.curveTo(r, i, s, a, f, p);
10010
- f += h.shift(), p += h.shift(), o.lineTo(f, p);
10009
+ r = l + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), l = s + h.shift(), p = a + h.shift(), o.curveTo(r, i, s, a, l, p);
10010
+ l += h.shift(), p += h.shift(), o.lineTo(l, p);
10011
10011
  break;
10012
10012
  case 25:
10013
10013
  for (; h.length > 6; )
10014
- f += h.shift(), p += h.shift(), o.lineTo(f, p);
10015
- r = f + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), f = s + h.shift(), p = a + h.shift(), o.curveTo(r, i, s, a, f, p);
10014
+ l += h.shift(), p += h.shift(), o.lineTo(l, p);
10015
+ r = l + h.shift(), i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), l = s + h.shift(), p = a + h.shift(), o.curveTo(r, i, s, a, l, p);
10016
10016
  break;
10017
10017
  case 26:
10018
- for (h.length % 2 && (f += h.shift()); h.length > 0; )
10019
- r = f, i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), f = s, p = a + h.shift(), o.curveTo(r, i, s, a, f, p);
10018
+ for (h.length % 2 && (l += h.shift()); h.length > 0; )
10019
+ r = l, i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), l = s, p = a + h.shift(), o.curveTo(r, i, s, a, l, p);
10020
10020
  break;
10021
10021
  case 27:
10022
10022
  for (h.length % 2 && (p += h.shift()); h.length > 0; )
10023
- r = f + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), f = s + h.shift(), p = a, o.curveTo(r, i, s, a, f, p);
10023
+ r = l + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), l = s + h.shift(), p = a, o.curveTo(r, i, s, a, l, p);
10024
10024
  break;
10025
10025
  case 28:
10026
10026
  D = _[W], N = _[W + 1], h.push((D << 24 | N << 16) >> 16), W += 2;
@@ -10029,12 +10029,12 @@ var P1 = Fc((L) => {
10029
10029
  Y = h.pop() + n.gsubrsBias, Z = n.gsubrs[Y], Z && M(Z);
10030
10030
  break;
10031
10031
  case 30:
10032
- for (; h.length > 0 && (r = f, i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), f = s + h.shift(), p = a + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, f, p), h.length !== 0); )
10033
- r = f + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), p = a + h.shift(), f = s + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, f, p);
10032
+ for (; h.length > 0 && (r = l, i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), l = s + h.shift(), p = a + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, l, p), h.length !== 0); )
10033
+ r = l + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), p = a + h.shift(), l = s + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, l, p);
10034
10034
  break;
10035
10035
  case 31:
10036
- for (; h.length > 0 && (r = f + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), p = a + h.shift(), f = s + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, f, p), h.length !== 0); )
10037
- r = f, i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), f = s + h.shift(), p = a + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, f, p);
10036
+ for (; h.length > 0 && (r = l + h.shift(), i = p, s = r + h.shift(), a = i + h.shift(), p = a + h.shift(), l = s + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, l, p), h.length !== 0); )
10037
+ r = l, i = p + h.shift(), s = r + h.shift(), a = i + h.shift(), l = s + h.shift(), p = a + (h.length === 1 ? h.shift() : 0), o.curveTo(r, i, s, a, l, p);
10038
10038
  break;
10039
10039
  default:
10040
10040
  $ < 32 ? console.log("Glyph " + e.index + ": unknown operator " + $) : $ < 247 ? h.push($ - 139) : $ < 251 ? (D = _[W], W += 1, h.push(($ - 247) * 256 + D + 108)) : $ < 255 ? (D = _[W], W += 1, h.push(-($ - 251) * 256 - D - 108)) : (D = _[W], N = _[W + 1], G = _[W + 2], ee = _[W + 3], W += 4, h.push((D << 24 | N << 16 | G << 8 | ee) / 65536));
@@ -10055,17 +10055,17 @@ var P1 = Fc((L) => {
10055
10055
  var c = a.parseCard16(), u = a.parseCard16();
10056
10056
  if (u !== 0)
10057
10057
  throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID " + u);
10058
- for (var l, f = 0; f < c; f++) {
10059
- if (s = a.parseCard8(), l = a.parseCard16(), s >= r)
10058
+ for (var f, l = 0; l < c; l++) {
10059
+ if (s = a.parseCard8(), f = a.parseCard16(), s >= r)
10060
10060
  throw new Error("CFF table CID Font FDSelect has bad FD index value " + s + " (FD count " + r + ")");
10061
- if (l > t)
10062
- throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID " + l);
10063
- for (; u < l; u++)
10061
+ if (f > t)
10062
+ throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID " + f);
10063
+ for (; u < f; u++)
10064
10064
  i.push(s);
10065
- u = l;
10065
+ u = f;
10066
10066
  }
10067
- if (l !== t)
10068
- throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID " + l);
10067
+ if (f !== t)
10068
+ throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID " + f);
10069
10069
  } else
10070
10070
  throw new Error("CFF Table CID Font FDSelect table has unsupported format " + o);
10071
10071
  return i;
@@ -10079,12 +10079,12 @@ var P1 = Fc((L) => {
10079
10079
  throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + c.length);
10080
10080
  var u = c[0];
10081
10081
  if (t.tables.cff.topDict = u, u._privateDict && (t.defaultWidthX = u._privateDict.defaultWidthX, t.nominalWidthX = u._privateDict.nominalWidthX), u.ros[0] !== void 0 && u.ros[1] !== void 0 && (t.isCIDFont = !0), t.isCIDFont) {
10082
- var l = u.fdArray, f = u.fdSelect;
10083
- if (l === 0 || f === 0)
10082
+ var f = u.fdArray, l = u.fdSelect;
10083
+ if (f === 0 || l === 0)
10084
10084
  throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
10085
- l += e;
10086
- var p = Et(n, l), g = to(n, e, p.objects, o.objects);
10087
- u._fdArray = g, f += e, u._fdSelect = ql(n, f, t.numGlyphs, g.length);
10085
+ f += e;
10086
+ var p = Et(n, f), g = to(n, e, p.objects, o.objects);
10087
+ u._fdArray = g, l += e, u._fdSelect = ql(n, l, t.numGlyphs, g.length);
10088
10088
  }
10089
10089
  var m = e + u.private[1], x = Ph(n, m, u.private[0], o.objects);
10090
10090
  if (t.defaultWidthX = x.defaultWidthX, t.nominalWidthX = x.nominalWidthX, x.subrs !== 0) {
@@ -10191,8 +10191,8 @@ var P1 = Fc((L) => {
10191
10191
  else if (h.type === "L")
10192
10192
  a = Math.round(h.x - r), o = Math.round(h.y - i), e.push({ name: "dx", type: "NUMBER", value: a }), e.push({ name: "dy", type: "NUMBER", value: o }), e.push({ name: "rlineto", type: "OP", value: 5 }), r = Math.round(h.x), i = Math.round(h.y);
10193
10193
  else if (h.type === "C") {
10194
- var l = Math.round(h.x1 - r), f = Math.round(h.y1 - i), p = Math.round(h.x2 - h.x1), g = Math.round(h.y2 - h.y1);
10195
- a = Math.round(h.x - h.x2), o = Math.round(h.y - h.y2), e.push({ name: "dx1", type: "NUMBER", value: l }), e.push({ name: "dy1", type: "NUMBER", value: f }), e.push({ name: "dx2", type: "NUMBER", value: p }), e.push({ name: "dy2", type: "NUMBER", value: g }), e.push({ name: "dx", type: "NUMBER", value: a }), e.push({ name: "dy", type: "NUMBER", value: o }), e.push({ name: "rrcurveto", type: "OP", value: 8 }), r = Math.round(h.x), i = Math.round(h.y);
10194
+ var f = Math.round(h.x1 - r), l = Math.round(h.y1 - i), p = Math.round(h.x2 - h.x1), g = Math.round(h.y2 - h.y1);
10195
+ a = Math.round(h.x - h.x2), o = Math.round(h.y - h.y2), e.push({ name: "dx1", type: "NUMBER", value: f }), e.push({ name: "dy1", type: "NUMBER", value: l }), e.push({ name: "dx2", type: "NUMBER", value: p }), e.push({ name: "dy2", type: "NUMBER", value: g }), e.push({ name: "dx", type: "NUMBER", value: a }), e.push({ name: "dy", type: "NUMBER", value: o }), e.push({ name: "rrcurveto", type: "OP", value: 8 }), r = Math.round(h.x), i = Math.round(h.y);
10196
10196
  }
10197
10197
  }
10198
10198
  return e.push({ name: "endchar", type: "OP", value: 14 }), e;
@@ -10239,8 +10239,8 @@ var P1 = Fc((L) => {
10239
10239
  t.header = Yl(), t.nameIndex = Zl([e.postScriptName]);
10240
10240
  var u = no(i, c);
10241
10241
  t.topDictIndex = io(u), t.globalSubrIndex = $l(), t.charsets = jl(a, c), t.charStringsIndex = Kl(n), t.privateDict = ef(s, c), t.stringIndex = Jl(c);
10242
- var l = t.header.sizeOf() + t.nameIndex.sizeOf() + t.topDictIndex.sizeOf() + t.stringIndex.sizeOf() + t.globalSubrIndex.sizeOf();
10243
- return i.charset = l, i.encoding = 0, i.charStrings = i.charset + t.charsets.sizeOf(), i.private[1] = i.charStrings + t.charStringsIndex.sizeOf(), u = no(i, c), t.topDictIndex = io(u), t;
10242
+ var f = t.header.sizeOf() + t.nameIndex.sizeOf() + t.topDictIndex.sizeOf() + t.stringIndex.sizeOf() + t.globalSubrIndex.sizeOf();
10243
+ return i.charset = f, i.encoding = 0, i.charStrings = i.charset + t.charsets.sizeOf(), i.private[1] = i.charStrings + t.charStringsIndex.sizeOf(), u = no(i, c), t.topDictIndex = io(u), t;
10244
10244
  }
10245
10245
  var Hh = { parse: Xl, make: tf };
10246
10246
  function rf(n, e) {
@@ -11093,7 +11093,7 @@ var P1 = Fc((L) => {
11093
11093
  }
11094
11094
  function xf(n, e, t) {
11095
11095
  for (var r = {}, i = new P.Parser(n, e), s = i.parseUShort(), a = i.parseUShort(), o = i.offset + i.parseUShort(), h = 0; h < a; h++) {
11096
- var c = i.parseUShort(), u = i.parseUShort(), l = i.parseUShort(), f = i.parseUShort(), p = Zh[f] || f, g = i.parseUShort(), m = i.parseUShort(), x = yf(c, l, t), v = jh(c, u, l);
11096
+ var c = i.parseUShort(), u = i.parseUShort(), f = i.parseUShort(), l = i.parseUShort(), p = Zh[l] || l, g = i.parseUShort(), m = i.parseUShort(), x = yf(c, f, t), v = jh(c, u, f);
11097
11097
  if (v !== void 0 && x !== void 0) {
11098
11098
  var w = void 0;
11099
11099
  if (v === Es ? w = wr.UTF16(n, o + m, g) : w = wr.MACSTRING(n, o + m, g, v), w) {
@@ -11149,13 +11149,13 @@ var P1 = Fc((L) => {
11149
11149
  throw new Error('Name table entry "' + a + '" does not exist, see nameTableNames for complete list.');
11150
11150
  i[t] = n[a], r.push(t);
11151
11151
  }
11152
- for (var h = Vi(Jh), c = Vi($h), u = [], l = [], f = 0; f < r.length; f++) {
11153
- t = r[f];
11152
+ for (var h = Vi(Jh), c = Vi($h), u = [], f = [], l = 0; l < r.length; l++) {
11153
+ t = r[l];
11154
11154
  var p = i[t];
11155
11155
  for (var g in p) {
11156
11156
  var m = p[g], x = 1, v = h[g], w = gf[v], b = jh(x, w, v), S = U.MACSTRING(m, b);
11157
11157
  S === void 0 && (x = 0, v = e.indexOf(g), v < 0 && (v = e.length, e.push(g)), w = 4, S = U.UTF16(m));
11158
- var T = ao(S, l);
11158
+ var T = ao(S, f);
11159
11159
  u.push(so(
11160
11160
  x,
11161
11161
  w,
@@ -11166,7 +11166,7 @@ var P1 = Fc((L) => {
11166
11166
  ));
11167
11167
  var B = c[g];
11168
11168
  if (B !== void 0) {
11169
- var M = U.UTF16(m), _ = ao(M, l);
11169
+ var M = U.UTF16(m), _ = ao(M, f);
11170
11170
  u.push(so(
11171
11171
  3,
11172
11172
  1,
@@ -11187,7 +11187,7 @@ var P1 = Fc((L) => {
11187
11187
  { name: "stringOffset", type: "USHORT", value: 6 + u.length * 12 }
11188
11188
  ]), N = 0; N < u.length; N++)
11189
11189
  D.fields.push({ name: "record_" + N, type: "RECORD", value: u[N] });
11190
- return D.fields.push({ name: "strings", type: "LITERAL", value: l }), D;
11190
+ return D.fields.push({ name: "strings", type: "LITERAL", value: f }), D;
11191
11191
  }
11192
11192
  var Qh = { parse: xf, make: wf }, As = [
11193
11193
  { begin: 0, end: 127 },
@@ -11849,8 +11849,8 @@ var P1 = Fc((L) => {
11849
11849
  for (r.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), i.push({ name: o.tableName + " table", type: "RECORD", value: o }), s += h, H.argument(!isNaN(s), "Something went wrong calculating the offset."); s % 4 !== 0; )
11850
11850
  s += 1, i.push({ name: "padding", type: "BYTE", value: 0 });
11851
11851
  }
11852
- return r.sort(function(u, l) {
11853
- return u.value.tag > l.value.tag ? 1 : -1;
11852
+ return r.sort(function(u, f) {
11853
+ return u.value.tag > f.value.tag ? 1 : -1;
11854
11854
  }), e.fields = e.fields.concat(r), e.fields = e.fields.concat(i), e;
11855
11855
  }
11856
11856
  function co(n, e, t) {
@@ -11869,7 +11869,7 @@ var P1 = Fc((L) => {
11869
11869
  return e / n.length;
11870
11870
  }
11871
11871
  function Lf(n) {
11872
- for (var e = [], t = [], r = [], i = [], s = [], a = [], o = [], h, c = 0, u = 0, l = 0, f = 0, p = 0, g = 0; g < n.glyphs.length; g += 1) {
11872
+ for (var e = [], t = [], r = [], i = [], s = [], a = [], o = [], h, c = 0, u = 0, f = 0, l = 0, p = 0, g = 0; g < n.glyphs.length; g += 1) {
11873
11873
  var m = n.glyphs.get(g), x = m.unicode | 0;
11874
11874
  if (isNaN(m.advanceWidth))
11875
11875
  throw new Error("Glyph " + m.name + " (" + g + "): advanceWidth is not a number.");
@@ -11878,9 +11878,9 @@ var P1 = Fc((L) => {
11878
11878
  if (v < 32)
11879
11879
  u |= 1 << v;
11880
11880
  else if (v < 64)
11881
- l |= 1 << v - 32;
11881
+ f |= 1 << v - 32;
11882
11882
  else if (v < 96)
11883
- f |= 1 << v - 64;
11883
+ l |= 1 << v - 64;
11884
11884
  else if (v < 123)
11885
11885
  p |= 1 << v - 96;
11886
11886
  else
@@ -11925,8 +11925,8 @@ var P1 = Fc((L) => {
11925
11925
  usFirstCharIndex: h,
11926
11926
  usLastCharIndex: c,
11927
11927
  ulUnicodeRange1: u,
11928
- ulUnicodeRange2: l,
11929
- ulUnicodeRange3: f,
11928
+ ulUnicodeRange2: f,
11929
+ ulUnicodeRange3: l,
11930
11930
  ulUnicodeRange4: p,
11931
11931
  // See http://typophile.com/node/13081 for more info on vertical metrics.
11932
11932
  // We get metrics for typical characters (such as "x" for xHeight).
@@ -12161,8 +12161,8 @@ var P1 = Fc((L) => {
12161
12161
  subtables: [],
12162
12162
  markFilteringSet: void 0
12163
12163
  };
12164
- var l = c.length;
12165
- return c.push(o), h.push(l), [o];
12164
+ var f = c.length;
12165
+ return c.push(o), h.push(f), [o];
12166
12166
  }
12167
12167
  }
12168
12168
  return a;
@@ -12239,7 +12239,7 @@ var P1 = Fc((L) => {
12239
12239
  }
12240
12240
  break;
12241
12241
  case 2:
12242
- var l = this.getGlyphClass(a.classDef1, e), f = this.getGlyphClass(a.classDef2, t), p = a.classRecords[l][f];
12242
+ var f = this.getGlyphClass(a.classDef1, e), l = this.getGlyphClass(a.classDef2, t), p = a.classRecords[f][l];
12243
12243
  return p.value1 && p.value1.xAdvance || 0;
12244
12244
  }
12245
12245
  }
@@ -12290,10 +12290,10 @@ var P1 = Fc((L) => {
12290
12290
  for (var a = i[s].subtables, o = 0; o < a.length; o++) {
12291
12291
  var h = a[o], c = this.expandCoverage(h.coverage), u = void 0;
12292
12292
  if (h.substFormat === 1) {
12293
- var l = h.deltaGlyphId;
12293
+ var f = h.deltaGlyphId;
12294
12294
  for (u = 0; u < c.length; u++) {
12295
- var f = c[u];
12296
- r.push({ sub: f, by: f + l });
12295
+ var l = c[u];
12296
+ r.push({ sub: l, by: l + f });
12297
12297
  }
12298
12298
  } else {
12299
12299
  var p = h.substitute;
@@ -12308,8 +12308,8 @@ var P1 = Fc((L) => {
12308
12308
  for (var a = i[s].subtables, o = 0; o < a.length; o++) {
12309
12309
  var h = a[o], c = this.expandCoverage(h.coverage), u = void 0;
12310
12310
  for (u = 0; u < c.length; u++) {
12311
- var l = c[u], f = h.sequences[u];
12312
- r.push({ sub: l, by: f });
12311
+ var f = c[u], l = h.sequences[u];
12312
+ r.push({ sub: f, by: l });
12313
12313
  }
12314
12314
  }
12315
12315
  return r;
@@ -12317,18 +12317,18 @@ var P1 = Fc((L) => {
12317
12317
  Le.prototype.getAlternates = function(n, e, t) {
12318
12318
  for (var r = [], i = this.getLookupTables(e, t, n, 3), s = 0; s < i.length; s++)
12319
12319
  for (var a = i[s].subtables, o = 0; o < a.length; o++)
12320
- for (var h = a[o], c = this.expandCoverage(h.coverage), u = h.alternateSets, l = 0; l < c.length; l++)
12321
- r.push({ sub: c[l], by: u[l] });
12320
+ for (var h = a[o], c = this.expandCoverage(h.coverage), u = h.alternateSets, f = 0; f < c.length; f++)
12321
+ r.push({ sub: c[f], by: u[f] });
12322
12322
  return r;
12323
12323
  };
12324
12324
  Le.prototype.getLigatures = function(n, e, t) {
12325
12325
  for (var r = [], i = this.getLookupTables(e, t, n, 4), s = 0; s < i.length; s++)
12326
12326
  for (var a = i[s].subtables, o = 0; o < a.length; o++)
12327
- for (var h = a[o], c = this.expandCoverage(h.coverage), u = h.ligatureSets, l = 0; l < c.length; l++)
12328
- for (var f = c[l], p = u[l], g = 0; g < p.length; g++) {
12327
+ for (var h = a[o], c = this.expandCoverage(h.coverage), u = h.ligatureSets, f = 0; f < c.length; f++)
12328
+ for (var l = c[f], p = u[f], g = 0; g < p.length; g++) {
12329
12329
  var m = p[g];
12330
12330
  r.push({
12331
- sub: [f].concat(m.components),
12331
+ sub: [l].concat(m.components),
12332
12332
  by: m.ligGlyph
12333
12333
  });
12334
12334
  }
@@ -12381,8 +12381,8 @@ var P1 = Fc((L) => {
12381
12381
  components: o
12382
12382
  }, c = this.binSearch(s.coverage.glyphs, a);
12383
12383
  if (c >= 0) {
12384
- for (var u = s.ligatureSets[c], l = 0; l < u.length; l++)
12385
- if (Rf(u[l].components, o))
12384
+ for (var u = s.ligatureSets[c], f = 0; f < u.length; f++)
12385
+ if (Rf(u[f].components, o))
12386
12386
  return;
12387
12387
  u.push(h);
12388
12388
  } else
@@ -12450,7 +12450,7 @@ var P1 = Fc((L) => {
12450
12450
  i = [];
12451
12451
  for (var u = 0; u < c; u += 1)
12452
12452
  if (s = r.parseByte(), i.push(s), (s & 8) > 0)
12453
- for (var l = r.parseByte(), f = 0; f < l; f += 1)
12453
+ for (var f = r.parseByte(), l = 0; l < f; l += 1)
12454
12454
  i.push(s), u += 1;
12455
12455
  if (H.argument(i.length === c, "Bad flags."), a.length > 0) {
12456
12456
  var p = [], g;
@@ -12750,8 +12750,8 @@ var P1 = Fc((L) => {
12750
12750
  };
12751
12751
  nn.prototype.setRelative = function(n, e, t, r, i) {
12752
12752
  r = r || this;
12753
- var s = i ? e.xo : e.x, a = i ? e.yo : e.y, o = s + t * r.x, h = a + t * r.y, c = r.normalSlope, u = this.slope, l = n.x, f = n.y;
12754
- n.x = (u * l - c * o + h - f) / (u - c), n.y = u * (n.x - l) + f;
12753
+ var s = i ? e.xo : e.x, a = i ? e.yo : e.y, o = s + t * r.x, h = a + t * r.y, c = r.normalSlope, u = this.slope, f = n.x, l = n.y;
12754
+ n.x = (u * f - c * o + h - l) / (u - c), n.y = u * (n.x - f) + l;
12755
12755
  };
12756
12756
  nn.prototype.touch = function(n) {
12757
12757
  n.xTouched = !0, n.yTouched = !0;
@@ -12839,11 +12839,11 @@ var P1 = Fc((L) => {
12839
12839
  var h = e.font;
12840
12840
  a = [], s = [];
12841
12841
  for (var c = 0; c < i.length; c++) {
12842
- var u = i[c], l = h.glyphs.get(u.glyphIndex);
12843
- o = new Bt("glyf", l.instructions), L.DEBUG && (console.log("---EXEC COMP " + c + "---"), o.step = -1), _s(l, o, t, r);
12844
- for (var f = Math.round(u.dx * t), p = Math.round(u.dy * r), g = o.gZone, m = o.contours, x = 0; x < g.length; x++) {
12842
+ var u = i[c], f = h.glyphs.get(u.glyphIndex);
12843
+ o = new Bt("glyf", f.instructions), L.DEBUG && (console.log("---EXEC COMP " + c + "---"), o.step = -1), _s(f, o, t, r);
12844
+ for (var l = Math.round(u.dx * t), p = Math.round(u.dy * r), g = o.gZone, m = o.contours, x = 0; x < g.length; x++) {
12845
12845
  var v = g[x];
12846
- v.xTouched = v.yTouched = !1, v.xo = v.x = v.x + f, v.yo = v.y = v.y + p;
12846
+ v.xTouched = v.yTouched = !1, v.xo = v.x = v.x + l, v.yo = v.y = v.y + p;
12847
12847
  }
12848
12848
  var w = a.length;
12849
12849
  a.push.apply(a, g);
@@ -12865,8 +12865,8 @@ var P1 = Fc((L) => {
12865
12865
  h.lastPointOfContour,
12866
12866
  h.onCurve
12867
12867
  );
12868
- for (var u, l, f = 0; f < s; f++)
12869
- h = a[f], u || (u = h, o.push(f)), h.lastPointOfContour ? (h.nextPointOnContour = u, u.prevPointOnContour = h, u = void 0) : (l = a[f + 1], h.nextPointOnContour = l, l.prevPointOnContour = h);
12868
+ for (var u, f, l = 0; l < s; l++)
12869
+ h = a[l], u || (u = h, o.push(l)), h.lastPointOfContour ? (h.nextPointOnContour = u, u.prevPointOnContour = h, u = void 0) : (f = a[l + 1], h.nextPointOnContour = f, f.prevPointOnContour = h);
12870
12870
  if (!e.inhibitGridFit) {
12871
12871
  if (L.DEBUG) {
12872
12872
  console.log("PROCESSING GLYPH", e.stack);
@@ -12961,9 +12961,9 @@ var P1 = Fc((L) => {
12961
12961
  n.fv = n.pv, L.DEBUG && console.log(n.step, "SFVTPV[]");
12962
12962
  }
12963
12963
  function Qf(n) {
12964
- var e = n.stack, t = e.pop(), r = e.pop(), i = e.pop(), s = e.pop(), a = e.pop(), o = n.z0, h = n.z1, c = o[t], u = o[r], l = h[i], f = h[s], p = n.z2[a];
12964
+ var e = n.stack, t = e.pop(), r = e.pop(), i = e.pop(), s = e.pop(), a = e.pop(), o = n.z0, h = n.z1, c = o[t], u = o[r], f = h[i], l = h[s], p = n.z2[a];
12965
12965
  L.DEBUG && console.log("ISECT[], ", t, r, i, s, a);
12966
- var g = c.x, m = c.y, x = u.x, v = u.y, w = l.x, b = l.y, S = f.x, T = f.y, B = (g - x) * (b - T) - (m - v) * (w - S), M = g * v - m * x, _ = w * T - b * S;
12966
+ var g = c.x, m = c.y, x = u.x, v = u.y, w = f.x, b = f.y, S = l.x, T = l.y, B = (g - x) * (b - T) - (m - v) * (w - S), M = g * v - m * x, _ = w * T - b * S;
12967
12967
  p.x = (M * (w - S) - _ * (g - x)) / B, p.y = (M * (b - T) - _ * (m - v)) / B;
12968
12968
  }
12969
12969
  function Kf(n) {
@@ -13118,8 +13118,8 @@ var P1 = Fc((L) => {
13118
13118
  }
13119
13119
  function wo(n, e) {
13120
13120
  for (var t = e.stack, r = n ? e.rp1 : e.rp2, i = (n ? e.z0 : e.z1)[r], s = e.fv, a = e.pv, o = e.loop, h = e.z2; o--; ) {
13121
- var c = t.pop(), u = h[c], l = a.distance(i, i, !1, !0);
13122
- s.setRelative(u, u, l, a), s.touch(u), L.DEBUG && console.log(
13121
+ var c = t.pop(), u = h[c], f = a.distance(i, i, !1, !0);
13122
+ s.setRelative(u, u, f, a), s.touch(u), L.DEBUG && console.log(
13123
13123
  e.step,
13124
13124
  (e.loop > 1 ? "loop " + (e.loop - o) + ": " : "") + "SHP[" + (n ? "rp1" : "rp2") + "]",
13125
13125
  c
@@ -13149,8 +13149,8 @@ var P1 = Fc((L) => {
13149
13149
  default:
13150
13150
  throw new Error("Invalid zone");
13151
13151
  }
13152
- for (var c, u = a.distance(i, i, !1, !0), l = h.length - 2, f = 0; f < l; f++)
13153
- c = h[f], s.setRelative(c, c, u, a);
13152
+ for (var c, u = a.distance(i, i, !1, !0), f = h.length - 2, l = 0; l < f; l++)
13153
+ c = h[l], s.setRelative(c, c, u, a);
13154
13154
  }
13155
13155
  function S0(n) {
13156
13156
  for (var e = n.stack, t = n.loop, r = n.fv, i = e.pop() / 64, s = n.z2; t--; ) {
@@ -13166,7 +13166,7 @@ var P1 = Fc((L) => {
13166
13166
  }
13167
13167
  function F0(n) {
13168
13168
  for (var e = n.stack, t = n.rp1, r = n.rp2, i = n.loop, s = n.z0[t], a = n.z1[r], o = n.fv, h = n.dpv, c = n.z2; i--; ) {
13169
- var u = e.pop(), l = c[u];
13169
+ var u = e.pop(), f = c[u];
13170
13170
  L.DEBUG && console.log(
13171
13171
  n.step,
13172
13172
  (n.loop > 1 ? "loop " + (n.loop - i) + ": " : "") + "IP[]",
@@ -13174,7 +13174,7 @@ var P1 = Fc((L) => {
13174
13174
  t,
13175
13175
  "<->",
13176
13176
  r
13177
- ), o.interpolate(l, s, a, h), o.touch(l);
13177
+ ), o.interpolate(f, s, a, h), o.touch(f);
13178
13178
  }
13179
13179
  n.loop = 1;
13180
13180
  }
@@ -13315,11 +13315,11 @@ var P1 = Fc((L) => {
13315
13315
  var t = e.stack, r = t.pop(), i = e.fv, s = e.pv, a = e.ppem, o = e.deltaBase + (n - 1) * 16, h = e.deltaShift, c = e.z0;
13316
13316
  L.DEBUG && console.log(e.step, "DELTAP[" + n + "]", r, t);
13317
13317
  for (var u = 0; u < r; u++) {
13318
- var l = t.pop(), f = t.pop(), p = o + ((f & 240) >> 4);
13318
+ var f = t.pop(), l = t.pop(), p = o + ((l & 240) >> 4);
13319
13319
  if (p === a) {
13320
- var g = (f & 15) - 8;
13321
- g >= 0 && g++, L.DEBUG && console.log(e.step, "DELTAPFIX", l, "by", g * h);
13322
- var m = c[l];
13320
+ var g = (l & 15) - 8;
13321
+ g >= 0 && g++, L.DEBUG && console.log(e.step, "DELTAPFIX", f, "by", g * h);
13322
+ var m = c[f];
13323
13323
  i.setRelative(m, m, g * h, s);
13324
13324
  }
13325
13325
  }
@@ -13378,10 +13378,10 @@ var P1 = Fc((L) => {
13378
13378
  for (var o = 0; o < r; o++) {
13379
13379
  var h = t.pop(), c = t.pop(), u = s + ((c & 240) >> 4);
13380
13380
  if (u === i) {
13381
- var l = (c & 15) - 8;
13382
- l >= 0 && l++;
13383
- var f = l * a;
13384
- L.DEBUG && console.log(e.step, "DELTACFIX", h, "by", f), e.cvt[h] += f;
13381
+ var f = (c & 15) - 8;
13382
+ f >= 0 && f++;
13383
+ var l = f * a;
13384
+ L.DEBUG && console.log(e.step, "DELTACFIX", h, "by", l), e.cvt[h] += l;
13385
13385
  }
13386
13386
  }
13387
13387
  }
@@ -13524,8 +13524,8 @@ var P1 = Fc((L) => {
13524
13524
  e.ip = t;
13525
13525
  }
13526
13526
  function z(n, e, t, r, i, s) {
13527
- var a = s.stack, o = n && a.pop(), h = a.pop(), c = s.rp0, u = s.z0[c], l = s.z1[h], f = s.minDis, p = s.fv, g = s.dpv, m, x, v, w;
13528
- x = m = g.distance(l, u, !0, !0), v = x >= 0 ? 1 : -1, x = Math.abs(x), n && (w = s.cvt[o], r && Math.abs(x - w) < s.cvCutIn && (x = w)), t && x < f && (x = f), r && (x = s.round(x)), p.setRelative(l, u, v * x, g), p.touch(l), L.DEBUG && console.log(
13527
+ var a = s.stack, o = n && a.pop(), h = a.pop(), c = s.rp0, u = s.z0[c], f = s.z1[h], l = s.minDis, p = s.fv, g = s.dpv, m, x, v, w;
13528
+ x = m = g.distance(f, u, !0, !0), v = x >= 0 ? 1 : -1, x = Math.abs(x), n && (w = s.cvt[o], r && Math.abs(x - w) < s.cvCutIn && (x = w)), t && x < l && (x = l), r && (x = s.round(x)), p.setRelative(f, u, v * x, g), p.touch(f), L.DEBUG && console.log(
13529
13529
  s.step,
13530
13530
  (n ? "MIRP[" : "MDRP[") + (e ? "M" : "m") + (t ? ">" : "_") + (r ? "R" : "_") + (i === 0 ? "Gr" : i === 1 ? "Bl" : i === 2 ? "Wh" : "") + "]",
13531
13531
  n ? o + "(" + s.cvt[o] + "," + w + ")" : "",
@@ -14409,18 +14409,18 @@ var P1 = Fc((L) => {
14409
14409
  var c = new Je(h, 0), u = $i(
14410
14410
  e.backtrackCoverage,
14411
14411
  c
14412
- ), l = r.length === e.inputCoverage.length && o.length === e.lookaheadCoverage.length && u.length === e.backtrackCoverage.length, f = [];
14413
- if (l)
14412
+ ), f = r.length === e.inputCoverage.length && o.length === e.lookaheadCoverage.length && u.length === e.backtrackCoverage.length, l = [];
14413
+ if (f)
14414
14414
  for (var p = 0; p < e.lookupRecords.length; p++)
14415
14415
  for (var g = e.lookupRecords[p], m = g.lookupListIndex, x = this.getLookupByIndex(m), v = 0; v < x.subtables.length; v++) {
14416
14416
  var w = x.subtables[v], b = this.getLookupMethod(x, w), S = this.getSubstitutionType(x, w);
14417
14417
  if (S === "12")
14418
14418
  for (var T = 0; T < r.length; T++) {
14419
14419
  var B = n.get(T), M = b(B);
14420
- M && f.push(M);
14420
+ M && l.push(M);
14421
14421
  }
14422
14422
  }
14423
- return f;
14423
+ return l;
14424
14424
  }
14425
14425
  function Sp(n, e) {
14426
14426
  var t = n.current, r = an(t, e.coverage);
@@ -14550,38 +14550,38 @@ var P1 = Fc((L) => {
14550
14550
  );
14551
14551
  for (var i = this.getFeatureLookups(r), s = [].concat(e.context), a = 0; a < i.length; a++)
14552
14552
  for (var o = i[a], h = this.getLookupSubtables(o), c = 0; c < h.length; c++) {
14553
- var u = h[c], l = this.getSubstitutionType(o, u), f = this.getLookupMethod(o, u), p = void 0;
14554
- switch (l) {
14553
+ var u = h[c], f = this.getSubstitutionType(o, u), l = this.getLookupMethod(o, u), p = void 0;
14554
+ switch (f) {
14555
14555
  case "11":
14556
- p = f(e.current), p && s.splice(t, 1, new Zt({
14556
+ p = l(e.current), p && s.splice(t, 1, new Zt({
14557
14557
  id: 11,
14558
14558
  tag: n.tag,
14559
14559
  substitution: p
14560
14560
  }));
14561
14561
  break;
14562
14562
  case "12":
14563
- p = f(e.current), p && s.splice(t, 1, new Zt({
14563
+ p = l(e.current), p && s.splice(t, 1, new Zt({
14564
14564
  id: 12,
14565
14565
  tag: n.tag,
14566
14566
  substitution: p
14567
14567
  }));
14568
14568
  break;
14569
14569
  case "63":
14570
- p = f(e), Array.isArray(p) && p.length && s.splice(t, 1, new Zt({
14570
+ p = l(e), Array.isArray(p) && p.length && s.splice(t, 1, new Zt({
14571
14571
  id: 63,
14572
14572
  tag: n.tag,
14573
14573
  substitution: p
14574
14574
  }));
14575
14575
  break;
14576
14576
  case "41":
14577
- p = f(e), p && s.splice(t, 1, new Zt({
14577
+ p = l(e), p && s.splice(t, 1, new Zt({
14578
14578
  id: 41,
14579
14579
  tag: n.tag,
14580
14580
  substitution: p
14581
14581
  }));
14582
14582
  break;
14583
14583
  case "21":
14584
- p = f(e.current), p && s.splice(t, 1, new Zt({
14584
+ p = l(e.current), p && s.splice(t, 1, new Zt({
14585
14585
  id: 21,
14586
14586
  tag: n.tag,
14587
14587
  substitution: p
@@ -14758,15 +14758,15 @@ var P1 = Fc((L) => {
14758
14758
  break;
14759
14759
  }
14760
14760
  if (r.indexOf(u) !== -1) {
14761
- var l = e.query.lookupFeature({
14761
+ var f = e.query.lookupFeature({
14762
14762
  tag: u,
14763
14763
  script: t,
14764
14764
  contextParams: s
14765
14765
  });
14766
- if (l instanceof Error)
14767
- return console.info(l.message);
14768
- l.forEach(function(f, p) {
14769
- f instanceof Zt && (Hs(f, i, p), s.context[p] = f.substitution);
14766
+ if (f instanceof Error)
14767
+ return console.info(f.message);
14768
+ f.forEach(function(l, p) {
14769
+ l instanceof Zt && (Hs(l, i, p), s.context[p] = l.substitution);
14770
14770
  });
14771
14771
  }
14772
14772
  }
@@ -15010,8 +15010,8 @@ var P1 = Fc((L) => {
15010
15010
  });
15011
15011
  };
15012
15012
  re.prototype.stringToGlyphs = function(n, e) {
15013
- var t = this, r = new Qe(), i = function(l) {
15014
- return t.charToGlyphIndex(l.char);
15013
+ var t = this, r = new Qe(), i = function(f) {
15014
+ return t.charToGlyphIndex(f.char);
15015
15015
  };
15016
15016
  r.registerModifier("glyphIndex", null, i);
15017
15017
  var s = e ? this.updateFeatures(e.features) : this.defaultRenderOptions.features;
@@ -15054,10 +15054,10 @@ var P1 = Fc((L) => {
15054
15054
  h = this.position.getKerningTables(c, i.language);
15055
15055
  }
15056
15056
  for (var u = 0; u < o.length; u += 1) {
15057
- var l = o[u];
15058
- if (s.call(this, l, e, t, r, i), l.advanceWidth && (e += l.advanceWidth * a), i.kerning && u < o.length - 1) {
15059
- var f = h ? this.position.getKerningValue(h, l.index, o[u + 1].index) : this.getKerningValue(l, o[u + 1]);
15060
- e += f * a;
15057
+ var f = o[u];
15058
+ if (s.call(this, f, e, t, r, i), f.advanceWidth && (e += f.advanceWidth * a), i.kerning && u < o.length - 1) {
15059
+ var l = h ? this.position.getKerningValue(h, f.index, o[u + 1].index) : this.getKerningValue(f, o[u + 1]);
15060
+ e += l * a;
15061
15061
  }
15062
15062
  i.letterSpacing ? e += i.letterSpacing * r : i.tracking && (e += i.tracking / 1e3 * r);
15063
15063
  }
@@ -15251,11 +15251,11 @@ var P1 = Fc((L) => {
15251
15251
  H.argument(i === 65536, "Unsupported fvar table version.");
15252
15252
  var s = r.parseOffset16();
15253
15253
  r.skip("uShort", 1);
15254
- for (var a = r.parseUShort(), o = r.parseUShort(), h = r.parseUShort(), c = r.parseUShort(), u = [], l = 0; l < a; l++)
15255
- u.push(Zp(n, e + s + l * o, t));
15256
- for (var f = [], p = e + s + a * o, g = 0; g < h; g++)
15257
- f.push($p(n, p + g * c, u, t));
15258
- return { axes: u, instances: f };
15254
+ for (var a = r.parseUShort(), o = r.parseUShort(), h = r.parseUShort(), c = r.parseUShort(), u = [], f = 0; f < a; f++)
15255
+ u.push(Zp(n, e + s + f * o, t));
15256
+ for (var l = [], p = e + s + a * o, g = 0; g < h; g++)
15257
+ l.push($p(n, p + g * c, u, t));
15258
+ return { axes: u, instances: l };
15259
15259
  }
15260
15260
  var Kp = { make: jp, parse: Qp }, ed = function() {
15261
15261
  return {
@@ -15497,7 +15497,7 @@ var P1 = Fc((L) => {
15497
15497
  a = P.getUShort(s, 12), o = md(s, a);
15498
15498
  } else
15499
15499
  throw new Error("Unsupported OpenType signature " + h);
15500
- for (var u, l, f, p, g, m, x, v, w, b, S, T, B = 0; B < a; B += 1) {
15500
+ for (var u, f, l, p, g, m, x, v, w, b, S, T, B = 0; B < a; B += 1) {
15501
15501
  var M = o[B], _ = void 0;
15502
15502
  switch (M.tag) {
15503
15503
  case "cmap":
@@ -15507,7 +15507,7 @@ var P1 = Fc((L) => {
15507
15507
  _ = de(s, M), T = new P.Parser(_.data, _.offset), i.tables.cvt = T.parseShortList(M.length / 2);
15508
15508
  break;
15509
15509
  case "fvar":
15510
- l = M;
15510
+ f = M;
15511
15511
  break;
15512
15512
  case "fpgm":
15513
15513
  _ = de(s, M), T = new P.Parser(_.data, _.offset), i.tables.fpgm = T.parseByteList(M.length);
@@ -15540,7 +15540,7 @@ var P1 = Fc((L) => {
15540
15540
  _ = de(s, M), T = new P.Parser(_.data, _.offset), i.tables.prep = T.parseByteList(M.length);
15541
15541
  break;
15542
15542
  case "glyf":
15543
- f = M;
15543
+ l = M;
15544
15544
  break;
15545
15545
  case "loca":
15546
15546
  w = M;
@@ -15566,8 +15566,8 @@ var P1 = Fc((L) => {
15566
15566
  }
15567
15567
  }
15568
15568
  var D = de(s, b);
15569
- if (i.tables.name = Qh.parse(D.data, D.offset, r), i.names = i.tables.name, f && w) {
15570
- var N = t === 0, G = de(s, w), ee = yd.parse(G.data, G.offset, i.numGlyphs, N), Y = de(s, f);
15569
+ if (i.tables.name = Qh.parse(D.data, D.offset, r), i.names = i.tables.name, l && w) {
15570
+ var N = t === 0, G = de(s, w), ee = yd.parse(G.data, G.offset, i.numGlyphs, N), Y = de(s, l);
15571
15571
  i.glyphs = ac.parse(Y.data, Y.offset, ee, i, e);
15572
15572
  } else if (u) {
15573
15573
  var Z = de(s, u);
@@ -15592,8 +15592,8 @@ var P1 = Fc((L) => {
15592
15592
  var ie = de(s, m);
15593
15593
  i.tables.gsub = ec.parse(ie.data, ie.offset);
15594
15594
  }
15595
- if (l) {
15596
- var he = de(s, l);
15595
+ if (f) {
15596
+ var he = de(s, f);
15597
15597
  i.tables.fvar = Kp.parse(he.data, he.offset, i.names);
15598
15598
  }
15599
15599
  if (S) {
@@ -15606,30 +15606,30 @@ var P1 = Fc((L) => {
15606
15606
  const t = n[0].index !== null, r = new Set(Object.keys(n[0].attributes)), i = new Set(Object.keys(n[0].morphAttributes)), s = {}, a = {}, o = n[0].morphTargetsRelative, h = new ze();
15607
15607
  let c = 0;
15608
15608
  for (let u = 0; u < n.length; ++u) {
15609
- const l = n[u];
15610
- let f = 0;
15611
- if (t !== (l.index !== null))
15609
+ const f = n[u];
15610
+ let l = 0;
15611
+ if (t !== (f.index !== null))
15612
15612
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + u + ". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."), null;
15613
- for (const p in l.attributes) {
15613
+ for (const p in f.attributes) {
15614
15614
  if (!r.has(p))
15615
15615
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + u + '. All geometries must have compatible attributes; make sure "' + p + '" attribute exists among all geometries, or in none of them.'), null;
15616
- s[p] === void 0 && (s[p] = []), s[p].push(l.attributes[p]), f++;
15616
+ s[p] === void 0 && (s[p] = []), s[p].push(f.attributes[p]), l++;
15617
15617
  }
15618
- if (f !== r.size)
15618
+ if (l !== r.size)
15619
15619
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + u + ". Make sure all geometries have the same number of attributes."), null;
15620
- if (o !== l.morphTargetsRelative)
15620
+ if (o !== f.morphTargetsRelative)
15621
15621
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + u + ". .morphTargetsRelative must be consistent throughout all geometries."), null;
15622
- for (const p in l.morphAttributes) {
15622
+ for (const p in f.morphAttributes) {
15623
15623
  if (!i.has(p))
15624
15624
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + u + ". .morphAttributes must be consistent throughout all geometries."), null;
15625
- a[p] === void 0 && (a[p] = []), a[p].push(l.morphAttributes[p]);
15625
+ a[p] === void 0 && (a[p] = []), a[p].push(f.morphAttributes[p]);
15626
15626
  }
15627
15627
  if (e) {
15628
15628
  let p;
15629
15629
  if (t)
15630
- p = l.index.count;
15631
- else if (l.attributes.position !== void 0)
15632
- p = l.attributes.position.count;
15630
+ p = f.index.count;
15631
+ else if (f.attributes.position !== void 0)
15632
+ p = f.attributes.position.count;
15633
15633
  else
15634
15634
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + u + ". The geometry must have either an index or a position attribute"), null;
15635
15635
  h.addGroup(c, p, u), c += p;
@@ -15637,29 +15637,29 @@ var P1 = Fc((L) => {
15637
15637
  }
15638
15638
  if (t) {
15639
15639
  let u = 0;
15640
- const l = [];
15641
- for (let f = 0; f < n.length; ++f) {
15642
- const p = n[f].index;
15640
+ const f = [];
15641
+ for (let l = 0; l < n.length; ++l) {
15642
+ const p = n[l].index;
15643
15643
  for (let g = 0; g < p.count; ++g)
15644
- l.push(p.getX(g) + u);
15645
- u += n[f].attributes.position.count;
15644
+ f.push(p.getX(g) + u);
15645
+ u += n[l].attributes.position.count;
15646
15646
  }
15647
- h.setIndex(l);
15647
+ h.setIndex(f);
15648
15648
  }
15649
15649
  for (const u in s) {
15650
- const l = Ro(s[u]);
15651
- if (!l)
15650
+ const f = Ro(s[u]);
15651
+ if (!f)
15652
15652
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the " + u + " attribute."), null;
15653
- h.setAttribute(u, l);
15653
+ h.setAttribute(u, f);
15654
15654
  }
15655
15655
  for (const u in a) {
15656
- const l = a[u][0].length;
15657
- if (l === 0) break;
15656
+ const f = a[u][0].length;
15657
+ if (f === 0) break;
15658
15658
  h.morphAttributes = h.morphAttributes || {}, h.morphAttributes[u] = [];
15659
- for (let f = 0; f < l; ++f) {
15659
+ for (let l = 0; l < f; ++l) {
15660
15660
  const p = [];
15661
15661
  for (let m = 0; m < a[u].length; ++m)
15662
- p.push(a[u][m][f]);
15662
+ p.push(a[u][m][l]);
15663
15663
  const g = Ro(p);
15664
15664
  if (!g)
15665
15665
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the " + u + " morphAttribute."), null;
@@ -15687,11 +15687,11 @@ var P1 = Fc((L) => {
15687
15687
  for (let c = 0; c < n.length; ++c) {
15688
15688
  const u = n[c];
15689
15689
  if (u.isInterleavedBufferAttribute) {
15690
- const l = h / t;
15691
- for (let f = 0, p = u.count; f < p; f++)
15690
+ const f = h / t;
15691
+ for (let l = 0, p = u.count; l < p; l++)
15692
15692
  for (let g = 0; g < t; g++) {
15693
- const m = u.getComponent(f, g);
15694
- o.setComponent(f + l, g, m);
15693
+ const m = u.getComponent(l, g);
15694
+ o.setComponent(l + f, g, m);
15695
15695
  }
15696
15696
  } else
15697
15697
  a.set(u.array, h);
@@ -15703,7 +15703,7 @@ var P1 = Fc((L) => {
15703
15703
  e = Math.max(e, Number.EPSILON);
15704
15704
  const t = {}, r = n.getIndex(), i = n.getAttribute("position"), s = r ? r.count : i.count;
15705
15705
  let a = 0;
15706
- const o = Object.keys(n.attributes), h = {}, c = {}, u = [], l = ["getX", "getY", "getZ", "getW"], f = ["setX", "setY", "setZ", "setW"];
15706
+ const o = Object.keys(n.attributes), h = {}, c = {}, u = [], f = ["getX", "getY", "getZ", "getW"], l = ["setX", "setY", "setZ", "setW"];
15707
15707
  for (let w = 0, b = o.length; w < b; w++) {
15708
15708
  const S = o[w], T = n.attributes[S];
15709
15709
  h[S] = new T.constructor(
@@ -15724,7 +15724,7 @@ var P1 = Fc((L) => {
15724
15724
  for (let T = 0, B = o.length; T < B; T++) {
15725
15725
  const M = o[T], _ = n.getAttribute(M), D = _.itemSize;
15726
15726
  for (let N = 0; N < D; N++)
15727
- S += `${~~(_[l[N]](b) * m + x)},`;
15727
+ S += `${~~(_[f[N]](b) * m + x)},`;
15728
15728
  }
15729
15729
  if (S in t)
15730
15730
  u.push(t[S]);
@@ -15732,7 +15732,7 @@ var P1 = Fc((L) => {
15732
15732
  for (let T = 0, B = o.length; T < B; T++) {
15733
15733
  const M = o[T], _ = n.getAttribute(M), D = n.morphAttributes[M], N = _.itemSize, G = h[M], ee = c[M];
15734
15734
  for (let Y = 0; Y < N; Y++) {
15735
- const Z = l[Y], Q = f[Y];
15735
+ const Z = f[Y], Q = l[Y];
15736
15736
  if (G[Q](a, _[Z](b)), D)
15737
15737
  for (let K = 0, ne = D.length; K < ne; K++)
15738
15738
  ee[K][Q](a, D[K][Z](b));
@@ -15813,8 +15813,8 @@ var P1 = Fc((L) => {
15813
15813
  `)
15814
15814
  o = 0, h -= s;
15815
15815
  else {
15816
- const l = Sd(u, i, o, h, t);
15817
- o += l.offsetX, a.push(l.path);
15816
+ const f = Sd(u, i, o, h, t);
15817
+ o += f.offsetX, a.push(f.path);
15818
15818
  }
15819
15819
  }
15820
15820
  return a;
@@ -15826,7 +15826,7 @@ var P1 = Fc((L) => {
15826
15826
  return;
15827
15827
  }
15828
15828
  const a = new yh();
15829
- let o, h, c, u, l, f, p, g;
15829
+ let o, h, c, u, f, l, p, g;
15830
15830
  if (s.o) {
15831
15831
  const m = s._cachedOutline || (s._cachedOutline = s.o.split(" "));
15832
15832
  for (let x = 0, v = m.length; x < v; )
@@ -15838,10 +15838,10 @@ var P1 = Fc((L) => {
15838
15838
  o = m[x++] * e + t, h = m[x++] * e + r, a.lineTo(o, h);
15839
15839
  break;
15840
15840
  case "q":
15841
- c = m[x++] * e + t, u = m[x++] * e + r, l = m[x++] * e + t, f = m[x++] * e + r, a.quadraticCurveTo(l, f, c, u);
15841
+ c = m[x++] * e + t, u = m[x++] * e + r, f = m[x++] * e + t, l = m[x++] * e + r, a.quadraticCurveTo(f, l, c, u);
15842
15842
  break;
15843
15843
  case "b":
15844
- c = m[x++] * e + t, u = m[x++] * e + r, l = m[x++] * e + t, f = m[x++] * e + r, p = m[x++] * e + t, g = m[x++] * e + r, a.bezierCurveTo(l, f, p, g, c, u);
15844
+ c = m[x++] * e + t, u = m[x++] * e + r, f = m[x++] * e + t, l = m[x++] * e + r, p = m[x++] * e + t, g = m[x++] * e + r, a.bezierCurveTo(f, l, p, g, c, u);
15845
15845
  break;
15846
15846
  }
15847
15847
  }
@@ -15903,9 +15903,9 @@ var P1 = Fc((L) => {
15903
15903
  `)
15904
15904
  h = 0, c -= a;
15905
15905
  else {
15906
- const l = Td(u, s, h, c, t);
15907
- if (!l) continue;
15908
- r === "tb" ? (h = 0, c += t.ascender * s) : h += l.offsetX, o.push(l.path);
15906
+ const f = Td(u, s, h, c, t);
15907
+ if (!f) continue;
15908
+ r === "tb" ? (h = 0, c += t.ascender * s) : h += f.offsetX, o.push(f.path);
15909
15909
  }
15910
15910
  return o;
15911
15911
  }
@@ -15923,19 +15923,19 @@ var P1 = Fc((L) => {
15923
15923
  let h = 0;
15924
15924
  for (; h < o.length; ) {
15925
15925
  const c = o[h++];
15926
- let u, l, f, p, g, m, x, v;
15926
+ let u, f, l, p, g, m, x, v;
15927
15927
  switch (c) {
15928
15928
  case "m":
15929
- u = parseFloat(o[h++]) * e + t, l = parseFloat(o[h++]) * e + r, a.moveTo(u, l);
15929
+ u = parseFloat(o[h++]) * e + t, f = parseFloat(o[h++]) * e + r, a.moveTo(u, f);
15930
15930
  break;
15931
15931
  case "l":
15932
- u = parseFloat(o[h++]) * e + t, l = parseFloat(o[h++]) * e + r, a.lineTo(u, l);
15932
+ u = parseFloat(o[h++]) * e + t, f = parseFloat(o[h++]) * e + r, a.lineTo(u, f);
15933
15933
  break;
15934
15934
  case "q":
15935
- f = parseFloat(o[h++]) * e + t, p = parseFloat(o[h++]) * e + r, g = parseFloat(o[h++]) * e + t, m = parseFloat(o[h++]) * e + r, a.quadraticCurveTo(g, m, f, p);
15935
+ l = parseFloat(o[h++]) * e + t, p = parseFloat(o[h++]) * e + r, g = parseFloat(o[h++]) * e + t, m = parseFloat(o[h++]) * e + r, a.quadraticCurveTo(g, m, l, p);
15936
15936
  break;
15937
15937
  case "b":
15938
- f = parseFloat(o[h++]) * e + t, p = parseFloat(o[h++]) * e + r, g = parseFloat(o[h++]) * e + t, m = parseFloat(o[h++]) * e + r, x = parseFloat(o[h++]) * e + t, v = parseFloat(o[h++]) * e + r, a.bezierCurveTo(g, m, x, v, f, p);
15938
+ l = parseFloat(o[h++]) * e + t, p = parseFloat(o[h++]) * e + r, g = parseFloat(o[h++]) * e + t, m = parseFloat(o[h++]) * e + r, x = parseFloat(o[h++]) * e + t, v = parseFloat(o[h++]) * e + r, a.bezierCurveTo(g, m, x, v, l, p);
15939
15939
  break;
15940
15940
  }
15941
15941
  }
@@ -15946,8 +15946,8 @@ var P1 = Fc((L) => {
15946
15946
  let t = !1;
15947
15947
  const { x: r, y: i } = n, s = e.length;
15948
15948
  for (let a = 0, o = s - 1; a < s; o = a++) {
15949
- const h = e[a].x, c = e[a].y, u = e[o].x, l = e[o].y;
15950
- c > i != l > i && r < (u - h) * (i - c) / (l - c) + h && (t = !t);
15949
+ const h = e[a].x, c = e[a].y, u = e[o].x, f = e[o].y;
15950
+ c > i != f > i && r < (u - h) * (i - c) / (f - c) + h && (t = !t);
15951
15951
  }
15952
15952
  return t;
15953
15953
  }
@@ -16031,20 +16031,20 @@ var P1 = Fc((L) => {
16031
16031
  for (const x of s[m.idx]) g.push({ idx: x, d: m.d + 1 });
16032
16032
  }
16033
16033
  }
16034
- const u = [], l = /* @__PURE__ */ new Set();
16035
- function f(p) {
16034
+ const u = [], f = /* @__PURE__ */ new Set();
16035
+ function l(p) {
16036
16036
  const g = Do(t[p], !0);
16037
- l.add(p);
16037
+ f.add(p);
16038
16038
  for (const m of s[p])
16039
- if (!l.has(m) && h[m] === h[p] + 1) {
16039
+ if (!f.has(m) && h[m] === h[p] + 1) {
16040
16040
  const x = Do(t[m], !1);
16041
- g.holes.push(x), l.add(m);
16041
+ g.holes.push(x), f.add(m);
16042
16042
  }
16043
16043
  u.push(g);
16044
16044
  }
16045
- for (const p of a) f(p);
16045
+ for (const p of a) l(p);
16046
16046
  for (let p = 0; p < o; p++)
16047
- l.has(p) || f(p);
16047
+ f.has(p) || l(p);
16048
16048
  return u;
16049
16049
  }
16050
16050
  class Ld {
@@ -16572,9 +16572,9 @@ var P1 = Fc((L) => {
16572
16572
  if (c > 0) {
16573
16573
  const u = e.readBytes(c);
16574
16574
  if (u.length === c) {
16575
- const l = u.indexOf(0);
16576
- let f = 0;
16577
- l >= 0 && l < u.length && (f = l + 1), f < u.length && (a[h] = u.subarray(f));
16575
+ const f = u.indexOf(0);
16576
+ let l = 0;
16577
+ f >= 0 && f < u.length && (l = f + 1), l < u.length && (a[h] = u.subarray(l));
16578
16578
  }
16579
16579
  }
16580
16580
  } catch {
@@ -16844,7 +16844,7 @@ var P1 = Fc((L) => {
16844
16844
  const { strokeWidth: t = "0.5%", strokeColor: r = "black", isAutoFit: i = !1 } = e;
16845
16845
  let s, a;
16846
16846
  if (i) {
16847
- const o = this.bbox, h = 0.2, c = o.maxX - o.minX, u = o.maxY - o.minY, l = c === 0 ? u : c, f = u === 0 ? c : u, p = o.minX - l * h, g = o.maxX + l * h, m = o.minY - f * h, x = o.maxY + f * h;
16847
+ const o = this.bbox, h = 0.2, c = o.maxX - o.minX, u = o.maxY - o.minY, f = c === 0 ? u : c, l = u === 0 ? c : u, p = o.minX - f * h, g = o.maxX + f * h, m = o.minY - l * h, x = o.maxY + l * h;
16848
16848
  a = this.polylines.map((v) => {
16849
16849
  let w = "";
16850
16850
  return v.forEach((b, S) => {
@@ -16856,8 +16856,8 @@ var P1 = Fc((L) => {
16856
16856
  s = "0 0 20 20", a = this.polylines.map((o) => {
16857
16857
  let h = "";
16858
16858
  return o.forEach((c, u) => {
16859
- const l = c.x + 5, f = -c.y + 15;
16860
- h += u === 0 ? `M ${l} ${f} ` : `L ${l} ${f} `;
16859
+ const f = c.x + 5, l = -c.y + 15;
16860
+ h += u === 0 ? `M ${f} ${l} ` : `L ${f} ${l} `;
16861
16861
  }), `<path d="${h}" stroke="${r}" stroke-width="${t}" fill="none"/>`;
16862
16862
  }).join("");
16863
16863
  return `<svg width="100%" height="100%" viewBox="${s}" preserveAspectRatio="xMidYMid meet">${a}</svg>`;
@@ -16937,13 +16937,13 @@ var P1 = Fc((L) => {
16937
16937
  var i;
16938
16938
  const s = e.bbox, a = s.maxY - s.minY, o = s.maxX - s.minX, h = a > 0 ? t / a : 1, c = o > 0 ? r / o : 1, u = (i = e.lastPoint) == null ? void 0 : i.clone();
16939
16939
  u && (u.x *= c, u.y *= h);
16940
- const l = e.polylines.map(
16941
- (f) => f.map((p) => {
16940
+ const f = e.polylines.map(
16941
+ (l) => l.map((p) => {
16942
16942
  const g = p.clone();
16943
16943
  return g.x *= c, g.y *= h, g;
16944
16944
  })
16945
16945
  );
16946
- return new Gr(u, l);
16946
+ return new Gr(u, f);
16947
16947
  }
16948
16948
  /**
16949
16949
  * Parses the shape of a character.
@@ -17127,7 +17127,7 @@ var P1 = Fc((L) => {
17127
17127
  let s = t;
17128
17128
  const a = e[++s] * r.scale, o = Ce.byteToSByte(e[++s]), h = (o & 112) >> 4;
17129
17129
  let c = o & 7;
17130
- const u = o < 0, l = Math.PI / 4 * h, f = r.currentPoint.clone().subtract(new le(Math.cos(l) * a, Math.sin(l) * a)), p = jr.fromOctant(f, a, h, c, u);
17130
+ const u = o < 0, f = Math.PI / 4 * h, l = r.currentPoint.clone().subtract(new le(Math.cos(f) * a, Math.sin(f) * a)), p = jr.fromOctant(l, a, h, c, u);
17131
17131
  if (r.isPenDown) {
17132
17132
  const g = p.tessellate();
17133
17133
  r.currentPolyline.pop(), r.currentPolyline.push(...g.slice());
@@ -17136,13 +17136,13 @@ var P1 = Fc((L) => {
17136
17136
  }
17137
17137
  handleFractionalArc(e, t, r) {
17138
17138
  let i = t;
17139
- const s = e[++i], a = e[++i], o = e[++i], h = e[++i], c = (o * 255 + h) * r.scale, u = Ce.byteToSByte(e[++i]), l = (u & 112) >> 4;
17140
- let f = u & 7;
17141
- f === 0 && (f = 8), a !== 0 && f--;
17139
+ const s = e[++i], a = e[++i], o = e[++i], h = e[++i], c = (o * 255 + h) * r.scale, u = Ce.byteToSByte(e[++i]), f = (u & 112) >> 4;
17140
+ let l = u & 7;
17141
+ l === 0 && (l = 8), a !== 0 && l--;
17142
17142
  const p = Math.PI / 4;
17143
- let g = p * f, m = Nd, x = 1;
17143
+ let g = p * l, m = Nd, x = 1;
17144
17144
  u < 0 && (m = -m, g = -g, x = -1);
17145
- let v = p * l, w = v + g;
17145
+ let v = p * f, w = v + g;
17146
17146
  v += p * s / 256 * x, w += p * a / 256 * x;
17147
17147
  const b = r.currentPoint.clone().subtract(new le(c * Math.cos(v), c * Math.sin(v)));
17148
17148
  if (r.currentPoint = b.clone().add(new le(c * Math.cos(w), c * Math.sin(w))), r.isPenDown) {
@@ -17405,10 +17405,10 @@ var P1 = Fc((L) => {
17405
17405
  var qs = {};
17406
17406
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
17407
17407
  qs.read = function(n, e, t, r, i) {
17408
- var s, a, o = i * 8 - r - 1, h = (1 << o) - 1, c = h >> 1, u = -7, l = t ? i - 1 : 0, f = t ? -1 : 1, p = n[e + l];
17409
- for (l += f, s = p & (1 << -u) - 1, p >>= -u, u += o; u > 0; s = s * 256 + n[e + l], l += f, u -= 8)
17408
+ var s, a, o = i * 8 - r - 1, h = (1 << o) - 1, c = h >> 1, u = -7, f = t ? i - 1 : 0, l = t ? -1 : 1, p = n[e + f];
17409
+ for (f += l, s = p & (1 << -u) - 1, p >>= -u, u += o; u > 0; s = s * 256 + n[e + f], f += l, u -= 8)
17410
17410
  ;
17411
- for (a = s & (1 << -u) - 1, s >>= -u, u += r; u > 0; a = a * 256 + n[e + l], l += f, u -= 8)
17411
+ for (a = s & (1 << -u) - 1, s >>= -u, u += r; u > 0; a = a * 256 + n[e + f], f += l, u -= 8)
17412
17412
  ;
17413
17413
  if (s === 0)
17414
17414
  s = 1 - c;
@@ -17420,8 +17420,8 @@ var P1 = Fc((L) => {
17420
17420
  return (p ? -1 : 1) * a * Math.pow(2, s - r);
17421
17421
  };
17422
17422
  qs.write = function(n, e, t, r, i, s) {
17423
- var a, o, h, c = s * 8 - i - 1, u = (1 << c) - 1, l = u >> 1, f = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = r ? 0 : s - 1, g = r ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
17424
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (o = isNaN(e) ? 1 : 0, a = u) : (a = Math.floor(Math.log(e) / Math.LN2), e * (h = Math.pow(2, -a)) < 1 && (a--, h *= 2), a + l >= 1 ? e += f / h : e += f * Math.pow(2, 1 - l), e * h >= 2 && (a++, h /= 2), a + l >= u ? (o = 0, a = u) : a + l >= 1 ? (o = (e * h - 1) * Math.pow(2, i), a = a + l) : (o = e * Math.pow(2, l - 1) * Math.pow(2, i), a = 0)); i >= 8; n[t + p] = o & 255, p += g, o /= 256, i -= 8)
17423
+ var a, o, h, c = s * 8 - i - 1, u = (1 << c) - 1, f = u >> 1, l = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = r ? 0 : s - 1, g = r ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
17424
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (o = isNaN(e) ? 1 : 0, a = u) : (a = Math.floor(Math.log(e) / Math.LN2), e * (h = Math.pow(2, -a)) < 1 && (a--, h *= 2), a + f >= 1 ? e += l / h : e += l * Math.pow(2, 1 - f), e * h >= 2 && (a++, h /= 2), a + f >= u ? (o = 0, a = u) : a + f >= 1 ? (o = (e * h - 1) * Math.pow(2, i), a = a + f) : (o = e * Math.pow(2, f - 1) * Math.pow(2, i), a = 0)); i >= 8; n[t + p] = o & 255, p += g, o /= 256, i -= 8)
17425
17425
  ;
17426
17426
  for (a = a << i | o, c += i; c > 0; n[t + p] = a & 255, p += g, a /= 256, c -= 8)
17427
17427
  ;
@@ -17475,14 +17475,14 @@ var P1 = Fc((L) => {
17475
17475
  throw new TypeError(
17476
17476
  'The "string" argument must be of type string. Received type number'
17477
17477
  );
17478
- return l(F);
17478
+ return f(F);
17479
17479
  }
17480
17480
  return h(F, d, y);
17481
17481
  }
17482
17482
  o.poolSize = 8192;
17483
17483
  function h(F, d, y) {
17484
17484
  if (typeof F == "string")
17485
- return f(F, d);
17485
+ return l(F, d);
17486
17486
  if (ArrayBuffer.isView(F))
17487
17487
  return g(F);
17488
17488
  if (F == null)
@@ -17525,15 +17525,15 @@ var P1 = Fc((L) => {
17525
17525
  o.alloc = function(F, d, y) {
17526
17526
  return u(F, d, y);
17527
17527
  };
17528
- function l(F) {
17528
+ function f(F) {
17529
17529
  return c(F), a(F < 0 ? 0 : v(F) | 0);
17530
17530
  }
17531
17531
  o.allocUnsafe = function(F) {
17532
- return l(F);
17532
+ return f(F);
17533
17533
  }, o.allocUnsafeSlow = function(F) {
17534
- return l(F);
17534
+ return f(F);
17535
17535
  };
17536
- function f(F, d) {
17536
+ function l(F, d) {
17537
17537
  if ((typeof d != "string" || d === "") && (d = "utf8"), !o.isEncoding(d))
17538
17538
  throw new TypeError("Unknown encoding: " + d);
17539
17539
  var y = b(F, d) | 0, C = a(y), k = C.write(F, d);
@@ -18360,7 +18360,7 @@ var P1 = Fc((L) => {
18360
18360
  var w;
18361
18361
  switch (this.encoding) {
18362
18362
  case "utf16le":
18363
- this.text = l, this.end = f, w = 4;
18363
+ this.text = f, this.end = l, w = 4;
18364
18364
  break;
18365
18365
  case "utf8":
18366
18366
  this.fillLast = h, w = 4;
@@ -18425,7 +18425,7 @@ var P1 = Fc((L) => {
18425
18425
  var w = v && v.length ? this.write(v) : "";
18426
18426
  return this.lastNeed ? w + "�" : w;
18427
18427
  }
18428
- function l(v, w) {
18428
+ function f(v, w) {
18429
18429
  if ((v.length - w) % 2 === 0) {
18430
18430
  var b = v.toString("utf16le", w);
18431
18431
  if (b) {
@@ -18437,7 +18437,7 @@ var P1 = Fc((L) => {
18437
18437
  }
18438
18438
  return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = v[v.length - 1], v.toString("utf16le", w, v.length - 1);
18439
18439
  }
18440
- function f(v) {
18440
+ function l(v) {
18441
18441
  var w = v && v.length ? this.write(v) : "";
18442
18442
  if (this.lastNeed) {
18443
18443
  var b = this.lastTotal - this.lastNeed;
@@ -18512,22 +18512,22 @@ var P1 = Fc((L) => {
18512
18512
  function a(c, u) {
18513
18513
  }
18514
18514
  a.prototype.write = function(c) {
18515
- for (var u = n.alloc(c.length * 3), l = 0, f = 0; f < c.length; f++) {
18516
- var p = c.charCodeAt(f);
18517
- p < 128 ? u[l++] = p : p < 2048 ? (u[l++] = 192 + (p >>> 6), u[l++] = 128 + (p & 63)) : (u[l++] = 224 + (p >>> 12), u[l++] = 128 + (p >>> 6 & 63), u[l++] = 128 + (p & 63));
18515
+ for (var u = n.alloc(c.length * 3), f = 0, l = 0; l < c.length; l++) {
18516
+ var p = c.charCodeAt(l);
18517
+ p < 128 ? u[f++] = p : p < 2048 ? (u[f++] = 192 + (p >>> 6), u[f++] = 128 + (p & 63)) : (u[f++] = 224 + (p >>> 12), u[f++] = 128 + (p >>> 6 & 63), u[f++] = 128 + (p & 63));
18518
18518
  }
18519
- return u.slice(0, l);
18519
+ return u.slice(0, f);
18520
18520
  }, a.prototype.end = function() {
18521
18521
  };
18522
18522
  function o(c, u) {
18523
18523
  this.acc = 0, this.contBytes = 0, this.accBytes = 0, this.defaultCharUnicode = u.defaultCharUnicode;
18524
18524
  }
18525
18525
  o.prototype.write = function(c) {
18526
- for (var u = this.acc, l = this.contBytes, f = this.accBytes, p = "", g = 0; g < c.length; g++) {
18526
+ for (var u = this.acc, f = this.contBytes, l = this.accBytes, p = "", g = 0; g < c.length; g++) {
18527
18527
  var m = c[g];
18528
- (m & 192) !== 128 ? (l > 0 && (p += this.defaultCharUnicode, l = 0), m < 128 ? p += String.fromCharCode(m) : m < 224 ? (u = m & 31, l = 1, f = 1) : m < 240 ? (u = m & 15, l = 2, f = 1) : p += this.defaultCharUnicode) : l > 0 ? (u = u << 6 | m & 63, l--, f++, l === 0 && (f === 2 && u < 128 && u > 0 ? p += this.defaultCharUnicode : f === 3 && u < 2048 ? p += this.defaultCharUnicode : p += String.fromCharCode(u))) : p += this.defaultCharUnicode;
18528
+ (m & 192) !== 128 ? (f > 0 && (p += this.defaultCharUnicode, f = 0), m < 128 ? p += String.fromCharCode(m) : m < 224 ? (u = m & 31, f = 1, l = 1) : m < 240 ? (u = m & 15, f = 2, l = 1) : p += this.defaultCharUnicode) : f > 0 ? (u = u << 6 | m & 63, f--, l++, f === 0 && (l === 2 && u < 128 && u > 0 ? p += this.defaultCharUnicode : l === 3 && u < 2048 ? p += this.defaultCharUnicode : p += String.fromCharCode(u))) : p += this.defaultCharUnicode;
18529
18529
  }
18530
- return this.acc = u, this.contBytes = l, this.accBytes = f, p;
18530
+ return this.acc = u, this.contBytes = f, this.accBytes = l, p;
18531
18531
  }, o.prototype.end = function() {
18532
18532
  var c = 0;
18533
18533
  return this.contBytes > 0 && (c += this.defaultCharUnicode), c;
@@ -18562,19 +18562,19 @@ var P1 = Fc((L) => {
18562
18562
  this.isLE = u.isLE, this.highSurrogate = 0;
18563
18563
  }
18564
18564
  t.prototype.write = function(c) {
18565
- for (var u = n.from(c, "ucs2"), l = n.alloc(u.length * 2), f = this.isLE ? l.writeUInt32LE : l.writeUInt32BE, p = 0, g = 0; g < u.length; g += 2) {
18565
+ for (var u = n.from(c, "ucs2"), f = n.alloc(u.length * 2), l = this.isLE ? f.writeUInt32LE : f.writeUInt32BE, p = 0, g = 0; g < u.length; g += 2) {
18566
18566
  var m = u.readUInt16LE(g), x = m >= 55296 && m < 56320, v = m >= 56320 && m < 57344;
18567
18567
  if (this.highSurrogate)
18568
18568
  if (x || !v)
18569
- f.call(l, this.highSurrogate, p), p += 4;
18569
+ l.call(f, this.highSurrogate, p), p += 4;
18570
18570
  else {
18571
18571
  var w = (this.highSurrogate - 55296 << 10 | m - 56320) + 65536;
18572
- f.call(l, w, p), p += 4, this.highSurrogate = 0;
18572
+ l.call(f, w, p), p += 4, this.highSurrogate = 0;
18573
18573
  continue;
18574
18574
  }
18575
- x ? this.highSurrogate = m : (f.call(l, m, p), p += 4, this.highSurrogate = 0);
18575
+ x ? this.highSurrogate = m : (l.call(f, m, p), p += 4, this.highSurrogate = 0);
18576
18576
  }
18577
- return p < l.length && (l = l.slice(0, p)), l;
18577
+ return p < f.length && (f = f.slice(0, p)), f;
18578
18578
  }, t.prototype.end = function() {
18579
18579
  if (this.highSurrogate) {
18580
18580
  var c = n.alloc(4);
@@ -18587,26 +18587,26 @@ var P1 = Fc((L) => {
18587
18587
  r.prototype.write = function(c) {
18588
18588
  if (c.length === 0)
18589
18589
  return "";
18590
- var u = 0, l = 0, f = n.alloc(c.length + 4), p = 0, g = this.isLE, m = this.overflow, x = this.badChar;
18590
+ var u = 0, f = 0, l = n.alloc(c.length + 4), p = 0, g = this.isLE, m = this.overflow, x = this.badChar;
18591
18591
  if (m.length > 0) {
18592
18592
  for (; u < c.length && m.length < 4; u++)
18593
18593
  m.push(c[u]);
18594
- m.length === 4 && (g ? l = m[u] | m[u + 1] << 8 | m[u + 2] << 16 | m[u + 3] << 24 : l = m[u + 3] | m[u + 2] << 8 | m[u + 1] << 16 | m[u] << 24, m.length = 0, p = i(f, p, l, x));
18594
+ m.length === 4 && (g ? f = m[u] | m[u + 1] << 8 | m[u + 2] << 16 | m[u + 3] << 24 : f = m[u + 3] | m[u + 2] << 8 | m[u + 1] << 16 | m[u] << 24, m.length = 0, p = i(l, p, f, x));
18595
18595
  }
18596
18596
  for (; u < c.length - 3; u += 4)
18597
- g ? l = c[u] | c[u + 1] << 8 | c[u + 2] << 16 | c[u + 3] << 24 : l = c[u + 3] | c[u + 2] << 8 | c[u + 1] << 16 | c[u] << 24, p = i(f, p, l, x);
18597
+ g ? f = c[u] | c[u + 1] << 8 | c[u + 2] << 16 | c[u + 3] << 24 : f = c[u + 3] | c[u + 2] << 8 | c[u + 1] << 16 | c[u] << 24, p = i(l, p, f, x);
18598
18598
  for (; u < c.length; u++)
18599
18599
  m.push(c[u]);
18600
- return f.slice(0, p).toString("ucs2");
18600
+ return l.slice(0, p).toString("ucs2");
18601
18601
  };
18602
- function i(c, u, l, f) {
18603
- if ((l < 0 || l > 1114111) && (l = f), l >= 65536) {
18604
- l -= 65536;
18605
- var p = 55296 | l >> 10;
18602
+ function i(c, u, f, l) {
18603
+ if ((f < 0 || f > 1114111) && (f = l), f >= 65536) {
18604
+ f -= 65536;
18605
+ var p = 55296 | f >> 10;
18606
18606
  c[u++] = p & 255, c[u++] = p >> 8;
18607
- var l = 56320 | l & 1023;
18607
+ var f = 56320 | f & 1023;
18608
18608
  }
18609
- return c[u++] = l & 255, c[u++] = l >> 8, u;
18609
+ return c[u++] = f & 255, c[u++] = f >> 8, u;
18610
18610
  }
18611
18611
  r.prototype.end = function() {
18612
18612
  this.overflow.length = 0;
@@ -18632,35 +18632,35 @@ var P1 = Fc((L) => {
18632
18632
  return "";
18633
18633
  var u = h(this.initialBufs, this.options.defaultEncoding);
18634
18634
  this.decoder = this.iconv.getDecoder(u, this.options);
18635
- for (var l = "", f = 0; f < this.initialBufs.length; f++)
18636
- l += this.decoder.write(this.initialBufs[f]);
18637
- return this.initialBufs.length = this.initialBufsLen = 0, l;
18635
+ for (var f = "", l = 0; l < this.initialBufs.length; l++)
18636
+ f += this.decoder.write(this.initialBufs[l]);
18637
+ return this.initialBufs.length = this.initialBufsLen = 0, f;
18638
18638
  }
18639
18639
  return this.decoder.write(c);
18640
18640
  }, o.prototype.end = function() {
18641
18641
  if (!this.decoder) {
18642
18642
  var c = h(this.initialBufs, this.options.defaultEncoding);
18643
18643
  this.decoder = this.iconv.getDecoder(c, this.options);
18644
- for (var u = "", l = 0; l < this.initialBufs.length; l++)
18645
- u += this.decoder.write(this.initialBufs[l]);
18646
- var f = this.decoder.end();
18647
- return f && (u += f), this.initialBufs.length = this.initialBufsLen = 0, u;
18644
+ for (var u = "", f = 0; f < this.initialBufs.length; f++)
18645
+ u += this.decoder.write(this.initialBufs[f]);
18646
+ var l = this.decoder.end();
18647
+ return l && (u += l), this.initialBufs.length = this.initialBufsLen = 0, u;
18648
18648
  }
18649
18649
  return this.decoder.end();
18650
18650
  };
18651
18651
  function h(c, u) {
18652
- var l = [], f = 0, p = 0, g = 0, m = 0, x = 0;
18652
+ var f = [], l = 0, p = 0, g = 0, m = 0, x = 0;
18653
18653
  e:
18654
18654
  for (var v = 0; v < c.length; v++)
18655
18655
  for (var w = c[v], b = 0; b < w.length; b++)
18656
- if (l.push(w[b]), l.length === 4) {
18657
- if (f === 0) {
18658
- if (l[0] === 255 && l[1] === 254 && l[2] === 0 && l[3] === 0)
18656
+ if (f.push(w[b]), f.length === 4) {
18657
+ if (l === 0) {
18658
+ if (f[0] === 255 && f[1] === 254 && f[2] === 0 && f[3] === 0)
18659
18659
  return "utf-32le";
18660
- if (l[0] === 0 && l[1] === 0 && l[2] === 254 && l[3] === 255)
18660
+ if (f[0] === 0 && f[1] === 0 && f[2] === 254 && f[3] === 255)
18661
18661
  return "utf-32be";
18662
18662
  }
18663
- if ((l[0] !== 0 || l[1] > 16) && g++, (l[3] !== 0 || l[2] > 16) && p++, l[0] === 0 && l[1] === 0 && (l[2] !== 0 || l[3] !== 0) && x++, (l[0] !== 0 || l[1] !== 0) && l[2] === 0 && l[3] === 0 && m++, l.length = 0, f++, f >= 100)
18663
+ if ((f[0] !== 0 || f[1] > 16) && g++, (f[3] !== 0 || f[2] > 16) && p++, f[0] === 0 && f[1] === 0 && (f[2] !== 0 || f[3] !== 0) && x++, (f[0] !== 0 || f[1] !== 0) && f[2] === 0 && f[3] === 0 && m++, f.length = 0, l++, l >= 100)
18664
18664
  break e;
18665
18665
  }
18666
18666
  return x - g > m - p ? "utf-32be" : x - g < m - p ? "utf-32le" : u || "utf-32le";
@@ -18680,8 +18680,8 @@ var P1 = Fc((L) => {
18680
18680
  }
18681
18681
  t.prototype.write = function(h) {
18682
18682
  for (var c = n.from(h, "ucs2"), u = 0; u < c.length; u += 2) {
18683
- var l = c[u];
18684
- c[u] = c[u + 1], c[u + 1] = l;
18683
+ var f = c[u];
18684
+ c[u] = c[u + 1], c[u + 1] = f;
18685
18685
  }
18686
18686
  return c;
18687
18687
  }, t.prototype.end = function() {
@@ -18692,10 +18692,10 @@ var P1 = Fc((L) => {
18692
18692
  r.prototype.write = function(h) {
18693
18693
  if (h.length == 0)
18694
18694
  return "";
18695
- var c = n.alloc(h.length + 1), u = 0, l = 0;
18696
- for (this.overflowByte !== -1 && (c[0] = h[0], c[1] = this.overflowByte, u = 1, l = 2); u < h.length - 1; u += 2, l += 2)
18697
- c[l] = h[u + 1], c[l + 1] = h[u];
18698
- return this.overflowByte = u == h.length - 1 ? h[h.length - 1] : -1, c.slice(0, l).toString("ucs2");
18695
+ var c = n.alloc(h.length + 1), u = 0, f = 0;
18696
+ for (this.overflowByte !== -1 && (c[0] = h[0], c[1] = this.overflowByte, u = 1, f = 2); u < h.length - 1; u += 2, f += 2)
18697
+ c[f] = h[u + 1], c[f + 1] = h[u];
18698
+ return this.overflowByte = u == h.length - 1 ? h[h.length - 1] : -1, c.slice(0, f).toString("ucs2");
18699
18699
  }, r.prototype.end = function() {
18700
18700
  this.overflowByte = -1;
18701
18701
  }, Gn.utf16 = i;
@@ -18720,8 +18720,8 @@ var P1 = Fc((L) => {
18720
18720
  return "";
18721
18721
  var c = o(this.initialBufs, this.options.defaultEncoding);
18722
18722
  this.decoder = this.iconv.getDecoder(c, this.options);
18723
- for (var u = "", l = 0; l < this.initialBufs.length; l++)
18724
- u += this.decoder.write(this.initialBufs[l]);
18723
+ for (var u = "", f = 0; f < this.initialBufs.length; f++)
18724
+ u += this.decoder.write(this.initialBufs[f]);
18725
18725
  return this.initialBufs.length = this.initialBufsLen = 0, u;
18726
18726
  }
18727
18727
  return this.decoder.write(h);
@@ -18731,25 +18731,25 @@ var P1 = Fc((L) => {
18731
18731
  this.decoder = this.iconv.getDecoder(h, this.options);
18732
18732
  for (var c = "", u = 0; u < this.initialBufs.length; u++)
18733
18733
  c += this.decoder.write(this.initialBufs[u]);
18734
- var l = this.decoder.end();
18735
- return l && (c += l), this.initialBufs.length = this.initialBufsLen = 0, c;
18734
+ var f = this.decoder.end();
18735
+ return f && (c += f), this.initialBufs.length = this.initialBufsLen = 0, c;
18736
18736
  }
18737
18737
  return this.decoder.end();
18738
18738
  };
18739
18739
  function o(h, c) {
18740
- var u = [], l = 0, f = 0, p = 0;
18740
+ var u = [], f = 0, l = 0, p = 0;
18741
18741
  e:
18742
18742
  for (var g = 0; g < h.length; g++)
18743
18743
  for (var m = h[g], x = 0; x < m.length; x++)
18744
18744
  if (u.push(m[x]), u.length === 2) {
18745
- if (l === 0) {
18745
+ if (f === 0) {
18746
18746
  if (u[0] === 255 && u[1] === 254) return "utf-16le";
18747
18747
  if (u[0] === 254 && u[1] === 255) return "utf-16be";
18748
18748
  }
18749
- if (u[0] === 0 && u[1] !== 0 && p++, u[0] !== 0 && u[1] === 0 && f++, u.length = 0, l++, l >= 100)
18749
+ if (u[0] === 0 && u[1] !== 0 && p++, u[0] !== 0 && u[1] === 0 && l++, u.length = 0, f++, f >= 100)
18750
18750
  break e;
18751
18751
  }
18752
- return p > f ? "utf-16be" : p < f ? "utf-16le" : c || "utf-16le";
18752
+ return p > l ? "utf-16be" : p < l ? "utf-16le" : c || "utf-16le";
18753
18753
  }
18754
18754
  return Gn;
18755
18755
  }
@@ -18802,21 +18802,21 @@ var P1 = Fc((L) => {
18802
18802
  }, i.prototype.end = function() {
18803
18803
  var m = "";
18804
18804
  return this.inBase64 && this.base64Accum.length > 0 && (m = this.iconv.decode(n.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", m;
18805
- }, Rr.utf7imap = l;
18806
- function l(m, x) {
18805
+ }, Rr.utf7imap = f;
18806
+ function f(m, x) {
18807
18807
  this.iconv = x;
18808
18808
  }
18809
- l.prototype.encoder = f, l.prototype.decoder = p, l.prototype.bomAware = !0;
18810
- function f(m, x) {
18809
+ f.prototype.encoder = l, f.prototype.decoder = p, f.prototype.bomAware = !0;
18810
+ function l(m, x) {
18811
18811
  this.iconv = x.iconv, this.inBase64 = !1, this.base64Accum = n.alloc(6), this.base64AccumIdx = 0;
18812
18812
  }
18813
- f.prototype.write = function(m) {
18813
+ l.prototype.write = function(m) {
18814
18814
  for (var x = this.inBase64, v = this.base64Accum, w = this.base64AccumIdx, b = n.alloc(m.length * 5 + 10), S = 0, T = 0; T < m.length; T++) {
18815
18815
  var B = m.charCodeAt(T);
18816
18816
  B >= 32 && B <= 126 ? (x && (w > 0 && (S += b.write(v.slice(0, w).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), S), w = 0), b[S++] = c, x = !1), x || (b[S++] = B, B === u && (b[S++] = c))) : (x || (b[S++] = u, x = !0), x && (v[w++] = B >> 8, v[w++] = B & 255, w == v.length && (S += b.write(v.toString("base64").replace(/\//g, ","), S), w = 0)));
18817
18817
  }
18818
18818
  return this.inBase64 = x, this.base64AccumIdx = w, b.slice(0, S);
18819
- }, f.prototype.end = function() {
18819
+ }, l.prototype.end = function() {
18820
18820
  var m = n.alloc(10), x = 0;
18821
18821
  return this.inBase64 && (this.base64AccumIdx > 0 && (x += m.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), x), this.base64AccumIdx = 0), m[x++] = c, this.inBase64 = !1), m.slice(0, x);
18822
18822
  };
@@ -19503,17 +19503,17 @@ var P1 = Fc((L) => {
19503
19503
  ss._dbcs = h;
19504
19504
  for (var e = -1, t = -2, r = -10, i = -1e3, s = new Array(256), a = -1, o = 0; o < 256; o++)
19505
19505
  s[o] = e;
19506
- function h(f, p) {
19507
- if (this.encodingName = f.encodingName, !f)
19506
+ function h(l, p) {
19507
+ if (this.encodingName = l.encodingName, !l)
19508
19508
  throw new Error("DBCS codec is called without the data.");
19509
- if (!f.table)
19509
+ if (!l.table)
19510
19510
  throw new Error("Encoding '" + this.encodingName + "' has no data.");
19511
- var g = f.table();
19511
+ var g = l.table();
19512
19512
  this.decodeTables = [], this.decodeTables[0] = s.slice(0), this.decodeTableSeq = [];
19513
19513
  for (var m = 0; m < g.length; m++)
19514
19514
  this._addDecodeChunk(g[m]);
19515
- if (typeof f.gb18030 == "function") {
19516
- this.gb18030 = f.gb18030();
19515
+ if (typeof l.gb18030 == "function") {
19516
+ this.gb18030 = l.gb18030();
19517
19517
  var x = this.decodeTables.length;
19518
19518
  this.decodeTables.push(s.slice(0));
19519
19519
  var v = this.decodeTables.length;
@@ -19540,23 +19540,23 @@ var P1 = Fc((L) => {
19540
19540
  }
19541
19541
  this.defaultCharUnicode = p.defaultCharUnicode, this.encodeTable = [], this.encodeTableSeq = [];
19542
19542
  var D = {};
19543
- if (f.encodeSkipVals)
19544
- for (var m = 0; m < f.encodeSkipVals.length; m++) {
19545
- var N = f.encodeSkipVals[m];
19543
+ if (l.encodeSkipVals)
19544
+ for (var m = 0; m < l.encodeSkipVals.length; m++) {
19545
+ var N = l.encodeSkipVals[m];
19546
19546
  if (typeof N == "number")
19547
19547
  D[N] = !0;
19548
19548
  else
19549
19549
  for (var S = N.from; S <= N.to; S++)
19550
19550
  D[S] = !0;
19551
19551
  }
19552
- if (this._fillEncodeTable(0, 0, D), f.encodeAdd)
19553
- for (var G in f.encodeAdd)
19554
- Object.prototype.hasOwnProperty.call(f.encodeAdd, G) && this._setEncodeChar(G.charCodeAt(0), f.encodeAdd[G]);
19552
+ if (this._fillEncodeTable(0, 0, D), l.encodeAdd)
19553
+ for (var G in l.encodeAdd)
19554
+ Object.prototype.hasOwnProperty.call(l.encodeAdd, G) && this._setEncodeChar(G.charCodeAt(0), l.encodeAdd[G]);
19555
19555
  this.defCharSB = this.encodeTable[0][p.defaultCharSingleByte.charCodeAt(0)], this.defCharSB === e && (this.defCharSB = this.encodeTable[0]["?"]), this.defCharSB === e && (this.defCharSB = 63);
19556
19556
  }
19557
- h.prototype.encoder = c, h.prototype.decoder = u, h.prototype._getDecodeTrieNode = function(f) {
19558
- for (var p = []; f > 0; f >>>= 8)
19559
- p.push(f & 255);
19557
+ h.prototype.encoder = c, h.prototype.decoder = u, h.prototype._getDecodeTrieNode = function(l) {
19558
+ for (var p = []; l > 0; l >>>= 8)
19559
+ p.push(l & 255);
19560
19560
  p.length == 0 && p.push(0);
19561
19561
  for (var g = this.decodeTables[0], m = p.length - 1; m > 0; m--) {
19562
19562
  var x = g[p[m]];
@@ -19565,14 +19565,14 @@ var P1 = Fc((L) => {
19565
19565
  else if (x <= i)
19566
19566
  g = this.decodeTables[i - x];
19567
19567
  else
19568
- throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + f.toString(16));
19568
+ throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + l.toString(16));
19569
19569
  }
19570
19570
  return g;
19571
- }, h.prototype._addDecodeChunk = function(f) {
19572
- var p = parseInt(f[0], 16), g = this._getDecodeTrieNode(p);
19571
+ }, h.prototype._addDecodeChunk = function(l) {
19572
+ var p = parseInt(l[0], 16), g = this._getDecodeTrieNode(p);
19573
19573
  p = p & 255;
19574
- for (var m = 1; m < f.length; m++) {
19575
- var x = f[m];
19574
+ for (var m = 1; m < l.length; m++) {
19575
+ var x = l[m];
19576
19576
  if (typeof x == "string")
19577
19577
  for (var v = 0; v < x.length; ) {
19578
19578
  var w = x.charCodeAt(v++);
@@ -19581,7 +19581,7 @@ var P1 = Fc((L) => {
19581
19581
  if (b >= 56320 && b < 57344)
19582
19582
  g[p++] = 65536 + (w - 55296) * 1024 + (b - 56320);
19583
19583
  else
19584
- throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + f[0]);
19584
+ throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + l[0]);
19585
19585
  } else if (w > 4080 && w <= 4095) {
19586
19586
  for (var S = 4095 - w + 2, T = [], B = 0; B < S; B++)
19587
19587
  T.push(x.charCodeAt(v++));
@@ -19593,26 +19593,26 @@ var P1 = Fc((L) => {
19593
19593
  for (var M = g[p - 1] + 1, v = 0; v < x; v++)
19594
19594
  g[p++] = M++;
19595
19595
  else
19596
- throw new Error("Incorrect type '" + typeof x + "' given in " + this.encodingName + " at chunk " + f[0]);
19596
+ throw new Error("Incorrect type '" + typeof x + "' given in " + this.encodingName + " at chunk " + l[0]);
19597
19597
  }
19598
19598
  if (p > 255)
19599
- throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + f[0] + ": too long" + p);
19600
- }, h.prototype._getEncodeBucket = function(f) {
19601
- var p = f >> 8;
19599
+ throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + l[0] + ": too long" + p);
19600
+ }, h.prototype._getEncodeBucket = function(l) {
19601
+ var p = l >> 8;
19602
19602
  return this.encodeTable[p] === void 0 && (this.encodeTable[p] = s.slice(0)), this.encodeTable[p];
19603
- }, h.prototype._setEncodeChar = function(f, p) {
19604
- var g = this._getEncodeBucket(f), m = f & 255;
19603
+ }, h.prototype._setEncodeChar = function(l, p) {
19604
+ var g = this._getEncodeBucket(l), m = l & 255;
19605
19605
  g[m] <= r ? this.encodeTableSeq[r - g[m]][a] = p : g[m] == e && (g[m] = p);
19606
- }, h.prototype._setEncodeSequence = function(f, p) {
19607
- var g = f[0], m = this._getEncodeBucket(g), x = g & 255, v;
19606
+ }, h.prototype._setEncodeSequence = function(l, p) {
19607
+ var g = l[0], m = this._getEncodeBucket(g), x = g & 255, v;
19608
19608
  m[x] <= r ? v = this.encodeTableSeq[r - m[x]] : (v = {}, m[x] !== e && (v[a] = m[x]), m[x] = r - this.encodeTableSeq.length, this.encodeTableSeq.push(v));
19609
- for (var w = 1; w < f.length - 1; w++) {
19609
+ for (var w = 1; w < l.length - 1; w++) {
19610
19610
  var b = v[g];
19611
19611
  typeof b == "object" ? v = b : (v = v[g] = {}, b !== void 0 && (v[a] = b));
19612
19612
  }
19613
- g = f[f.length - 1], v[g] = p;
19614
- }, h.prototype._fillEncodeTable = function(f, p, g) {
19615
- for (var m = this.decodeTables[f], x = !1, v = {}, w = 0; w < 256; w++) {
19613
+ g = l[l.length - 1], v[g] = p;
19614
+ }, h.prototype._fillEncodeTable = function(l, p, g) {
19615
+ for (var m = this.decodeTables[l], x = !1, v = {}, w = 0; w < 256; w++) {
19616
19616
  var b = m[w], S = p + w;
19617
19617
  if (!g[S])
19618
19618
  if (b >= 0)
@@ -19627,14 +19627,14 @@ var P1 = Fc((L) => {
19627
19627
  }
19628
19628
  return x;
19629
19629
  };
19630
- function c(f, p) {
19630
+ function c(l, p) {
19631
19631
  this.leadSurrogate = -1, this.seqObj = void 0, this.encodeTable = p.encodeTable, this.encodeTableSeq = p.encodeTableSeq, this.defaultCharSingleByte = p.defCharSB, this.gb18030 = p.gb18030;
19632
19632
  }
19633
- c.prototype.write = function(f) {
19634
- for (var p = n.alloc(f.length * (this.gb18030 ? 4 : 3)), g = this.leadSurrogate, m = this.seqObj, x = -1, v = 0, w = 0; ; ) {
19633
+ c.prototype.write = function(l) {
19634
+ for (var p = n.alloc(l.length * (this.gb18030 ? 4 : 3)), g = this.leadSurrogate, m = this.seqObj, x = -1, v = 0, w = 0; ; ) {
19635
19635
  if (x === -1) {
19636
- if (v == f.length) break;
19637
- var b = f.charCodeAt(v++);
19636
+ if (v == l.length) break;
19637
+ var b = l.charCodeAt(v++);
19638
19638
  } else {
19639
19639
  var b = x;
19640
19640
  x = -1;
@@ -19664,7 +19664,7 @@ var P1 = Fc((L) => {
19664
19664
  continue;
19665
19665
  }
19666
19666
  if (S == e && this.gb18030) {
19667
- var M = l(this.gb18030.uChars, b);
19667
+ var M = f(this.gb18030.uChars, b);
19668
19668
  if (M != -1) {
19669
19669
  var S = this.gb18030.gbChars[M] + (b - this.gb18030.uChars[M]);
19670
19670
  p[w++] = 129 + Math.floor(S / 12600), S = S % 12600, p[w++] = 48 + Math.floor(S / 1260), S = S % 1260, p[w++] = 129 + Math.floor(S / 10), S = S % 10, p[w++] = 48 + S;
@@ -19677,28 +19677,28 @@ var P1 = Fc((L) => {
19677
19677
  return this.seqObj = m, this.leadSurrogate = g, p.slice(0, w);
19678
19678
  }, c.prototype.end = function() {
19679
19679
  if (!(this.leadSurrogate === -1 && this.seqObj === void 0)) {
19680
- var f = n.alloc(10), p = 0;
19680
+ var l = n.alloc(10), p = 0;
19681
19681
  if (this.seqObj) {
19682
19682
  var g = this.seqObj[a];
19683
- g !== void 0 && (g < 256 ? f[p++] = g : (f[p++] = g >> 8, f[p++] = g & 255)), this.seqObj = void 0;
19683
+ g !== void 0 && (g < 256 ? l[p++] = g : (l[p++] = g >> 8, l[p++] = g & 255)), this.seqObj = void 0;
19684
19684
  }
19685
- return this.leadSurrogate !== -1 && (f[p++] = this.defaultCharSingleByte, this.leadSurrogate = -1), f.slice(0, p);
19685
+ return this.leadSurrogate !== -1 && (l[p++] = this.defaultCharSingleByte, this.leadSurrogate = -1), l.slice(0, p);
19686
19686
  }
19687
- }, c.prototype.findIdx = l;
19688
- function u(f, p) {
19687
+ }, c.prototype.findIdx = f;
19688
+ function u(l, p) {
19689
19689
  this.nodeIdx = 0, this.prevBytes = [], this.decodeTables = p.decodeTables, this.decodeTableSeq = p.decodeTableSeq, this.defaultCharUnicode = p.defaultCharUnicode, this.gb18030 = p.gb18030;
19690
19690
  }
19691
- u.prototype.write = function(f) {
19692
- for (var p = n.alloc(f.length * 2), g = this.nodeIdx, m = this.prevBytes, x = this.prevBytes.length, v = -this.prevBytes.length, w, b = 0, S = 0; b < f.length; b++) {
19693
- var T = b >= 0 ? f[b] : m[b + x], w = this.decodeTables[g][T];
19691
+ u.prototype.write = function(l) {
19692
+ for (var p = n.alloc(l.length * 2), g = this.nodeIdx, m = this.prevBytes, x = this.prevBytes.length, v = -this.prevBytes.length, w, b = 0, S = 0; b < l.length; b++) {
19693
+ var T = b >= 0 ? l[b] : m[b + x], w = this.decodeTables[g][T];
19694
19694
  if (!(w >= 0)) if (w === e)
19695
19695
  w = this.defaultCharUnicode.charCodeAt(0), b = v;
19696
19696
  else if (w === t) {
19697
19697
  if (b >= 3)
19698
- var B = (f[b - 3] - 129) * 12600 + (f[b - 2] - 48) * 1260 + (f[b - 1] - 129) * 10 + (T - 48);
19698
+ var B = (l[b - 3] - 129) * 12600 + (l[b - 2] - 48) * 1260 + (l[b - 1] - 129) * 10 + (T - 48);
19699
19699
  else
19700
- var B = (m[b - 3 + x] - 129) * 12600 + ((b - 2 >= 0 ? f[b - 2] : m[b - 2 + x]) - 48) * 1260 + ((b - 1 >= 0 ? f[b - 1] : m[b - 1 + x]) - 129) * 10 + (T - 48);
19701
- var M = l(this.gb18030.gbChars, B);
19700
+ var B = (m[b - 3 + x] - 129) * 12600 + ((b - 2 >= 0 ? l[b - 2] : m[b - 2 + x]) - 48) * 1260 + ((b - 1 >= 0 ? l[b - 1] : m[b - 1 + x]) - 129) * 10 + (T - 48);
19701
+ var M = f(this.gb18030.gbChars, B);
19702
19702
  w = this.gb18030.uChars[M] + B - this.gb18030.gbChars[M];
19703
19703
  } else if (w <= i) {
19704
19704
  g = i - w;
@@ -19716,21 +19716,21 @@ var P1 = Fc((L) => {
19716
19716
  }
19717
19717
  p[S++] = w & 255, p[S++] = w >> 8, g = 0, v = b + 1;
19718
19718
  }
19719
- return this.nodeIdx = g, this.prevBytes = v >= 0 ? Array.prototype.slice.call(f, v) : m.slice(v + x).concat(Array.prototype.slice.call(f)), p.slice(0, S).toString("ucs2");
19719
+ return this.nodeIdx = g, this.prevBytes = v >= 0 ? Array.prototype.slice.call(l, v) : m.slice(v + x).concat(Array.prototype.slice.call(l)), p.slice(0, S).toString("ucs2");
19720
19720
  }, u.prototype.end = function() {
19721
- for (var f = ""; this.prevBytes.length > 0; ) {
19722
- f += this.defaultCharUnicode;
19721
+ for (var l = ""; this.prevBytes.length > 0; ) {
19722
+ l += this.defaultCharUnicode;
19723
19723
  var p = this.prevBytes.slice(1);
19724
- this.prevBytes = [], this.nodeIdx = 0, p.length > 0 && (f += this.write(p));
19724
+ this.prevBytes = [], this.nodeIdx = 0, p.length > 0 && (l += this.write(p));
19725
19725
  }
19726
- return this.prevBytes = [], this.nodeIdx = 0, f;
19726
+ return this.prevBytes = [], this.nodeIdx = 0, l;
19727
19727
  };
19728
- function l(f, p) {
19729
- if (f[0] > p)
19728
+ function f(l, p) {
19729
+ if (l[0] > p)
19730
19730
  return -1;
19731
- for (var g = 0, m = f.length; g < m - 1; ) {
19731
+ for (var g = 0, m = l.length; g < m - 1; ) {
19732
19732
  var x = g + (m - g + 1 >> 1);
19733
- f[x] <= p ? g = x : m = x;
19733
+ l[x] <= p ? g = x : m = x;
19734
19734
  }
19735
19735
  return g;
19736
19736
  }
@@ -28345,12 +28345,12 @@ var P1 = Fc((L) => {
28345
28345
  var e = Nt.Buffer, t = Xs, r = vc, i = n.exports;
28346
28346
  i.encodings = null, i.defaultCharUnicode = "�", i.defaultCharSingleByte = "?", i.encode = function(o, h, c) {
28347
28347
  o = "" + (o || "");
28348
- var u = i.getEncoder(h, c), l = u.write(o), f = u.end();
28349
- return f && f.length > 0 ? e.concat([l, f]) : l;
28348
+ var u = i.getEncoder(h, c), f = u.write(o), l = u.end();
28349
+ return l && l.length > 0 ? e.concat([f, l]) : f;
28350
28350
  }, i.decode = function(o, h, c) {
28351
28351
  typeof o == "string" && (i.skipDecodeWarning || (console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"), i.skipDecodeWarning = !0), o = e.from("" + (o || ""), "binary"));
28352
- var u = i.getDecoder(h, c), l = u.write(o), f = u.end();
28353
- return f ? l + f : l;
28352
+ var u = i.getDecoder(h, c), f = u.write(o), l = u.end();
28353
+ return l ? f + l : f;
28354
28354
  }, i.encodingExists = function(o) {
28355
28355
  try {
28356
28356
  return i.getCodec(o), !0;
@@ -28363,21 +28363,21 @@ var P1 = Fc((L) => {
28363
28363
  i.encodings = { __proto__: null }, r(i.encodings, h);
28364
28364
  }
28365
28365
  for (var c = i._canonicalizeEncoding(o), u = {}; ; ) {
28366
- var l = i._codecDataCache[c];
28367
- if (l)
28368
- return l;
28369
- var f = i.encodings[c];
28370
- switch (typeof f) {
28366
+ var f = i._codecDataCache[c];
28367
+ if (f)
28368
+ return f;
28369
+ var l = i.encodings[c];
28370
+ switch (typeof l) {
28371
28371
  case "string":
28372
- c = f;
28372
+ c = l;
28373
28373
  break;
28374
28374
  case "object":
28375
- for (var p in f)
28376
- u[p] = f[p];
28377
- u.encodingName || (u.encodingName = c), c = f.type;
28375
+ for (var p in l)
28376
+ u[p] = l[p];
28377
+ u.encodingName || (u.encodingName = c), c = l.type;
28378
28378
  break;
28379
28379
  case "function":
28380
- return u.encodingName || (u.encodingName = c), l = new f(u, i), i._codecDataCache[u.encodingName] = l, l;
28380
+ return u.encodingName || (u.encodingName = c), f = new l(u, i), i._codecDataCache[u.encodingName] = f, f;
28381
28381
  default:
28382
28382
  throw new Error("Encoding not recognized: '" + o + "' (searched as: '" + c + "')");
28383
28383
  }
@@ -28393,10 +28393,10 @@ var P1 = Fc((L) => {
28393
28393
  }, i.enableStreamingAPI = function(o) {
28394
28394
  if (!i.supportsStreams) {
28395
28395
  var h = b1()(o);
28396
- i.IconvLiteEncoderStream = h.IconvLiteEncoderStream, i.IconvLiteDecoderStream = h.IconvLiteDecoderStream, i.encodeStream = function(u, l) {
28397
- return new i.IconvLiteEncoderStream(i.getEncoder(u, l), l);
28398
- }, i.decodeStream = function(u, l) {
28399
- return new i.IconvLiteDecoderStream(i.getDecoder(u, l), l);
28396
+ i.IconvLiteEncoderStream = h.IconvLiteEncoderStream, i.IconvLiteDecoderStream = h.IconvLiteDecoderStream, i.encodeStream = function(u, f) {
28397
+ return new i.IconvLiteEncoderStream(i.getEncoder(u, f), f);
28398
+ }, i.decodeStream = function(u, f) {
28399
+ return new i.IconvLiteDecoderStream(i.getDecoder(u, f), f);
28400
28400
  }, i.supportsStreams = !0;
28401
28401
  }
28402
28402
  };
@@ -28997,35 +28997,35 @@ var P1 = Fc((L) => {
28997
28997
  }
28998
28998
  function Ko(n, e, t) {
28999
28999
  const r = [];
29000
- if (n.filter((f) => f.char !== Zn).forEach((f) => {
29000
+ if (n.filter((l) => l.char !== Zn).forEach((l) => {
29001
29001
  const p = _1(
29002
- new Ee().copy(f.box).applyMatrix4(e)
29002
+ new Ee().copy(l.box).applyMatrix4(e)
29003
29003
  );
29004
29004
  p && r.push({
29005
29005
  type: ye.CHAR,
29006
29006
  box: p,
29007
- char: f.char,
29007
+ char: l.char,
29008
29008
  children: []
29009
29009
  });
29010
29010
  }), t !== ye.STACK)
29011
29011
  return r;
29012
- const i = (f) => f.type === ye.CHAR && f.char.trim().length === 0, s = (f) => f.type === ye.CHAR && f.char.trim().length > 0, a = r.findIndex(s);
29012
+ const i = (l) => l.type === ye.CHAR && l.char.trim().length === 0, s = (l) => l.type === ye.CHAR && l.char.trim().length > 0, a = r.findIndex(s);
29013
29013
  if (a < 0) return r;
29014
29014
  let o = -1;
29015
- for (let f = r.length - 1; f >= 0; f--)
29016
- if (s(r[f])) {
29017
- o = f;
29015
+ for (let l = r.length - 1; l >= 0; l--)
29016
+ if (s(r[l])) {
29017
+ o = l;
29018
29018
  break;
29019
29019
  }
29020
29020
  const h = r.slice(0, a).filter(i), c = r.slice(o + 1).filter(i), u = r.slice(a, o + 1).filter(s);
29021
29021
  if (u.length === 0) return [...h, ...c];
29022
- const l = new Ee().copy(u[0].box);
29023
- return u.slice(1).forEach((f) => l.union(f.box)), [
29022
+ const f = new Ee().copy(u[0].box);
29023
+ return u.slice(1).forEach((l) => f.union(l.box)), [
29024
29024
  ...h,
29025
29025
  {
29026
29026
  type: ye.STACK,
29027
29027
  char: "",
29028
- box: l,
29028
+ box: f,
29029
29029
  children: u
29030
29030
  },
29031
29031
  ...c
@@ -29160,6 +29160,19 @@ var P1 = Fc((L) => {
29160
29160
  get currentFontSize() {
29161
29161
  return this._currentContext.fontSize;
29162
29162
  }
29163
+ /**
29164
+ * The drawing-space text height used for layout calculations.
29165
+ *
29166
+ * `currentFontSize` includes a font-specific scale factor so glyph outlines
29167
+ * from different font formats render at comparable visual sizes. That scale
29168
+ * must not leak into CAD layout metrics such as line height and attachment
29169
+ * offsets, otherwise middle/bottom aligned text shifts vertically depending
29170
+ * on the active font.
29171
+ */
29172
+ get currentLayoutFontSize() {
29173
+ const e = this._currentContext.fontScaleFactor || 1;
29174
+ return this._currentContext.fontSize / e;
29175
+ }
29163
29176
  /**
29164
29177
  * The height of current line of texts
29165
29178
  */
@@ -29524,7 +29537,7 @@ var P1 = Fc((L) => {
29524
29537
  );
29525
29538
  }
29526
29539
  processStack(e, t, r, i, s) {
29527
- const [a, o, h] = e, c = this._hOffset, u = this._vOffset, l = this._currentContext.charTrackingFactor.value, f = this._currentContext.fontSize, p = this._currentContext.fontSizeScaleFactor;
29540
+ const [a, o, h] = e, c = this._hOffset, u = this._vOffset, f = this._currentContext.charTrackingFactor.value, l = this.currentLayoutFontSize, p = this._currentContext.fontSizeScaleFactor;
29528
29541
  this._hOffset = c, this._currentContext.charTrackingFactor = { value: 1, isRelative: !1 };
29529
29542
  let g = 0;
29530
29543
  for (let b = 0; b < a.length; b++) {
@@ -29542,8 +29555,8 @@ var P1 = Fc((L) => {
29542
29555
  if (this._currentContext.fontSizeScaleFactor = p * 0.7, this.calcuateLineParams(), a && !o) {
29543
29556
  const b = [], S = [], T = [], B = [];
29544
29557
  this._hOffset = c, this._vOffset = this.convertTopAlignedVOffset(
29545
- u + f * 0.1,
29546
- this.currentFontSize
29558
+ u + l * 0.1,
29559
+ this.currentLayoutFontSize
29547
29560
  );
29548
29561
  for (let M = 0; M < a.length; M++)
29549
29562
  this.processChar(
@@ -29557,8 +29570,8 @@ var P1 = Fc((L) => {
29557
29570
  } else if (!a && o) {
29558
29571
  const b = [], S = [], T = [], B = [];
29559
29572
  this._hOffset = c, this._vOffset = this.convertTopAlignedVOffset(
29560
- u - f * 0.6,
29561
- this.currentFontSize
29573
+ u - l * 0.6,
29574
+ this.currentLayoutFontSize
29562
29575
  );
29563
29576
  for (let M = 0; M < o.length; M++)
29564
29577
  this.processChar(
@@ -29574,8 +29587,8 @@ var P1 = Fc((L) => {
29574
29587
  } else {
29575
29588
  const b = [], S = [], T = [], B = [];
29576
29589
  this._hOffset = c + v, this._vOffset = this.convertTopAlignedVOffset(
29577
- u + this.currentFontSize * 0.3,
29578
- this.currentFontSize
29590
+ u + this.currentLayoutFontSize * 0.3,
29591
+ this.currentLayoutFontSize
29579
29592
  );
29580
29593
  for (let G = 0; G < a.length; G++)
29581
29594
  this.processChar(
@@ -29594,8 +29607,8 @@ var P1 = Fc((L) => {
29594
29607
  );
29595
29608
  const M = [], _ = [], D = [], N = [];
29596
29609
  this._hOffset = c + w, this._vOffset = this.convertTopAlignedVOffset(
29597
- u - this.currentFontSize * 0.6,
29598
- this.currentFontSize
29610
+ u - this.currentLayoutFontSize * 0.6,
29611
+ this.currentLayoutFontSize
29599
29612
  );
29600
29613
  for (let G = 0; G < o.length; G++)
29601
29614
  this.processChar(
@@ -29608,10 +29621,10 @@ var P1 = Fc((L) => {
29608
29621
  if (t.push(...M), r.push(..._), i.push(...D), s.push(...N), h === "/" || h === "#") {
29609
29622
  const G = new ze(), ee = new Float32Array([
29610
29623
  c,
29611
- u - this.currentFontSize * 0.8 + this.defaultFontSize * Wn,
29624
+ u - this.currentLayoutFontSize * 0.8 + this.defaultFontSize * Wn,
29612
29625
  0,
29613
29626
  c + x,
29614
- u - this.currentFontSize * 0.8 + this.defaultFontSize * Wn,
29627
+ u - this.currentLayoutFontSize * 0.8 + this.defaultFontSize * Wn,
29615
29628
  0
29616
29629
  ]);
29617
29630
  G.setAttribute(
@@ -29622,13 +29635,13 @@ var P1 = Fc((L) => {
29622
29635
  this._hOffset = c + x;
29623
29636
  }
29624
29637
  this._vOffset = u, this._currentContext.charTrackingFactor = {
29625
- value: l,
29638
+ value: f,
29626
29639
  isRelative: !1
29627
29640
  };
29628
29641
  }
29629
29642
  recordStackDivider(e, t, r, i, s) {
29630
29643
  if (this._options.collectCharBoxes === !1) return;
29631
- const a = t - this.currentFontSize * 0.8 + this.defaultFontSize * Wn, o = new Ee(
29644
+ const a = t - this.currentLayoutFontSize * 0.8 + this.defaultFontSize * Wn, o = new Ee(
29632
29645
  new E(e, a, 0),
29633
29646
  new E(e + r, a, 0)
29634
29647
  );
@@ -29653,11 +29666,11 @@ var P1 = Fc((L) => {
29653
29666
  }
29654
29667
  processBlank(e, t) {
29655
29668
  if (this._options.collectCharBoxes !== !1) {
29656
- const r = this._hOffset, i = this.flowDirection == Mt.BOTTOM_TO_TOP ? this._vOffset : this._vOffset - this.defaultFontSize, s = new Ee(
29669
+ const r = this._hOffset, i = this.flowDirection == Mt.BOTTOM_TO_TOP ? this._vOffset : this._vOffset - this.currentLayoutFontSize, s = new Ee(
29657
29670
  new E(r, i, 0),
29658
29671
  new E(
29659
29672
  r + this._currentContext.blankWidth,
29660
- i + this.currentFontSize,
29673
+ i + this.currentLayoutFontSize,
29661
29674
  0
29662
29675
  )
29663
29676
  );
@@ -29723,8 +29736,8 @@ var P1 = Fc((L) => {
29723
29736
  }
29724
29737
  const c = this.fontManager.getFontType(this.currentFont);
29725
29738
  this._currentContext.bold && c === "mesh" && o.scale(1.06, 1.06, 1), this.hOffset > (this.maxLineWidth || 1 / 0) && (this.recordVisualLineBreak(i, s), this.advanceToNextLine(!1));
29726
- const u = this.hOffset, l = this.flowDirection == Mt.BOTTOM_TO_TOP ? this.vOffset : this.vOffset - this.defaultFontSize, f = a.width * this.currentWidthFactor, p = this.currentFontSize;
29727
- if (o.translate(u, l, 0), this.currentHorizontalAlignment == fe.DISTRIBUTED ? this._hOffset += a.width * this.currentWidthFactor : this._hOffset += a.width * this.currentWordSpace * this.currentWidthFactor, t.push(o), this._lineHasRenderableChar = !0, this._options.collectCharBoxes !== !1) {
29739
+ const u = this.hOffset, f = this.flowDirection == Mt.BOTTOM_TO_TOP ? this.vOffset : this.vOffset - this.currentLayoutFontSize, l = a.width * this.currentWidthFactor, p = this.currentLayoutFontSize;
29740
+ if (o.translate(u, f, 0), this.currentHorizontalAlignment == fe.DISTRIBUTED ? this._hOffset += a.width * this.currentWidthFactor : this._hOffset += a.width * this.currentWordSpace * this.currentWidthFactor, t.push(o), this._lineHasRenderableChar = !0, this._options.collectCharBoxes !== !1) {
29728
29741
  o.userData.char = e, o.boundingBox || o.computeBoundingBox();
29729
29742
  const x = new Ee().copy(o.boundingBox);
29730
29743
  o instanceof mr ? (this._lastCharBoxTarget = "mesh", i.push({
@@ -29741,7 +29754,7 @@ var P1 = Fc((L) => {
29741
29754
  }
29742
29755
  const g = p * 0.05, m = 1e-3;
29743
29756
  if (this._currentContext.underline) {
29744
- const x = new ze(), v = l - g;
29757
+ const x = new ze(), v = f - g;
29745
29758
  x.setAttribute(
29746
29759
  "position",
29747
29760
  new Ye(
@@ -29749,7 +29762,7 @@ var P1 = Fc((L) => {
29749
29762
  u,
29750
29763
  v,
29751
29764
  m,
29752
- u + f,
29765
+ u + l,
29753
29766
  v,
29754
29767
  m
29755
29768
  ]),
@@ -29758,7 +29771,7 @@ var P1 = Fc((L) => {
29758
29771
  ), x.setIndex(null), x.userData = { isDecoration: !0 }, r.push(x);
29759
29772
  }
29760
29773
  if (this._currentContext.overline) {
29761
- const x = new ze(), v = l + p + g;
29774
+ const x = new ze(), v = f + p + g;
29762
29775
  x.setAttribute(
29763
29776
  "position",
29764
29777
  new Ye(
@@ -29766,7 +29779,7 @@ var P1 = Fc((L) => {
29766
29779
  u,
29767
29780
  v,
29768
29781
  m,
29769
- u + f,
29782
+ u + l,
29770
29783
  v,
29771
29784
  m
29772
29785
  ]),
@@ -29775,7 +29788,7 @@ var P1 = Fc((L) => {
29775
29788
  ), x.setIndex(null), x.userData = { isDecoration: !0 }, r.push(x);
29776
29789
  }
29777
29790
  if (this._currentContext.strikeThrough) {
29778
- const x = new ze(), v = l + p / 2 - p * 0.2;
29791
+ const x = new ze(), v = f + p / 2 - p * 0.2;
29779
29792
  x.setAttribute(
29780
29793
  "position",
29781
29794
  new Ye(
@@ -29783,7 +29796,7 @@ var P1 = Fc((L) => {
29783
29796
  u,
29784
29797
  v,
29785
29798
  m,
29786
- u + f,
29799
+ u + l,
29787
29800
  v,
29788
29801
  m
29789
29802
  ]),
@@ -29800,10 +29813,10 @@ var P1 = Fc((L) => {
29800
29813
  }
29801
29814
  changeFont(e) {
29802
29815
  let t = e;
29803
- this._options.removeFontExtension && (t = e.replace(/\.(ttf|otf|woff|shx)$/, "")), this._currentContext.fontFace.family = this.fontManager.findAndReplaceFont(t), this._currentContext.blankWidth = this.calculateBlankWidthForFont(
29816
+ this._options.removeFontExtension && (t = e.replace(/\.(ttf|otf|woff|shx)$/, "")), this._currentContext.fontFace.family = this.fontManager.findAndReplaceFont(t), this.calcuateLineParams(), this._currentContext.blankWidth = this.calculateBlankWidthForFont(
29804
29817
  this._currentContext.fontFace.family,
29805
- this._currentContext.fontSize
29806
- ), this.calcuateLineParams();
29818
+ this.currentLayoutFontSize
29819
+ );
29807
29820
  }
29808
29821
  /**
29809
29822
  * Calcuate font size, line space, line height and other parameters.
@@ -29837,16 +29850,16 @@ var P1 = Fc((L) => {
29837
29850
  }
29838
29851
  countFinalCharBoxes(e, t, r) {
29839
29852
  const i = [...e, ...t].filter(
29840
- (l) => l.char !== Zn
29853
+ (f) => f.char !== Zn
29841
29854
  );
29842
29855
  if (r !== ye.STACK)
29843
29856
  return i.length;
29844
- const s = (l) => l.type === ye.CHAR && l.char.trim().length === 0, a = (l) => l.type === ye.CHAR && l.char.trim().length > 0, o = i.findIndex(a);
29857
+ const s = (f) => f.type === ye.CHAR && f.char.trim().length === 0, a = (f) => f.type === ye.CHAR && f.char.trim().length > 0, o = i.findIndex(a);
29845
29858
  if (o < 0) return i.filter(s).length;
29846
29859
  let h = -1;
29847
- for (let l = i.length - 1; l >= 0; l--)
29848
- if (a(i[l])) {
29849
- h = l;
29860
+ for (let f = i.length - 1; f >= 0; f--)
29861
+ if (a(i[f])) {
29862
+ h = f;
29850
29863
  break;
29851
29864
  }
29852
29865
  const c = i.slice(0, o).filter(s), u = i.slice(h + 1).filter(s);
@@ -29881,10 +29894,10 @@ var P1 = Fc((L) => {
29881
29894
  var c, u;
29882
29895
  const h = (u = (c = a.userData) == null ? void 0 : c.layout) == null ? void 0 : u.chars;
29883
29896
  if (h && h.length > 0) {
29884
- const l = new E(o, 0, 0);
29885
- h.forEach((f) => {
29897
+ const f = new E(o, 0, 0);
29898
+ h.forEach((l) => {
29886
29899
  var p;
29887
- return (p = f.box) == null ? void 0 : p.translate(l);
29900
+ return (p = l.box) == null ? void 0 : p.translate(f);
29888
29901
  });
29889
29902
  }
29890
29903
  };
@@ -29943,17 +29956,17 @@ var P1 = Fc((L) => {
29943
29956
  o
29944
29957
  ), c = this.styleManager.getLineBasicMaterial(
29945
29958
  o
29946
- ), u = this._options.collectCharBoxes !== !1, l = e.filter((p) => p instanceof mr);
29947
- if (l.length > 0) {
29948
- const p = l.length > 1 ? Oo(l) : l[0], g = new Hr(p, h);
29959
+ ), u = this._options.collectCharBoxes !== !1, f = e.filter((p) => p instanceof mr);
29960
+ if (f.length > 0) {
29961
+ const p = f.length > 1 ? Oo(f) : f[0], g = new Hr(p, h);
29949
29962
  g.userData.bboxIntersectionCheck = !0, g.userData.charBoxType = s, u && r.length > 0 && (g.userData.layout = { chars: r.slice() }), a.add(g);
29950
29963
  }
29951
- const f = [
29964
+ const l = [
29952
29965
  ...t,
29953
29966
  ...e.filter((p) => !(p instanceof mr))
29954
29967
  ];
29955
- if (f.length > 0) {
29956
- const p = f.length > 1 ? Oo(f) : f[0], g = new au(p, c);
29968
+ if (l.length > 0) {
29969
+ const p = l.length > 1 ? Oo(l) : l[0], g = new au(p, c);
29957
29970
  g.userData.bboxIntersectionCheck = !0, g.userData.charBoxType = s, u && i.length > 0 && (g.userData.layout = { chars: i.slice() }), a.add(g);
29958
29971
  }
29959
29972
  return a.children.length === 1 ? a.children[0] : a;
@@ -30127,49 +30140,57 @@ var P1 = Fc((L) => {
30127
30140
  * @returns The created Three.js object, or undefined if creation fails
30128
30141
  */
30129
30142
  loadMText(e, t) {
30130
- const { object: r, height: i } = this.createMTextGroup(e, t);
30143
+ const { object: r, height: i } = this.createMTextGroup(
30144
+ e,
30145
+ t
30146
+ );
30131
30147
  if (!r)
30132
30148
  return;
30133
30149
  r.matrix.decompose(qt, us, cs), e.position && (qt.x += e.position.x, qt.y += e.position.y, r.matrix.compose(qt, us, cs));
30134
- let s = e.width;
30150
+ let s = e.width, a = i;
30151
+ r.updateWorldMatrix(!0, !0);
30152
+ const o = new Ee().setFromObject(r);
30153
+ if (!o.isEmpty()) {
30154
+ const p = o.max.y - o.min.y;
30155
+ Number.isFinite(p) && p > 0 && (a = p);
30156
+ }
30135
30157
  if (!Number.isFinite(s)) {
30136
- r.updateWorldMatrix(!0, !0);
30137
- const l = new Ee().setFromObject(r), f = l.max.x - l.min.x;
30138
- s = Number.isFinite(f) && f > 0 ? f : 0;
30158
+ const p = o.max.x - o.min.x;
30159
+ s = Number.isFinite(p) && p > 0 ? p : 0;
30139
30160
  }
30140
- const a = this.calculateAnchorPoint(
30161
+ const h = this.calculateAnchorPoint(
30141
30162
  s,
30142
- i,
30163
+ a,
30143
30164
  e.attachmentPoint,
30144
30165
  e.drawingDirection
30145
- ), o = (l) => {
30146
- if (!l || l.length === 0) return;
30147
- const f = new E(a.x, a.y, 0), p = (g) => {
30148
- var m;
30149
- (m = g.box) == null || m.translate(f), g.children && g.children.length > 0 && g.children.forEach(p);
30166
+ ), c = (p) => {
30167
+ if (!p || p.length === 0) return;
30168
+ const g = new E(h.x, h.y, 0), m = (x) => {
30169
+ var v;
30170
+ (v = x.box) == null || v.translate(g), x.children && x.children.length > 0 && x.children.forEach(m);
30150
30171
  };
30151
- l.forEach(p);
30152
- }, h = (l) => {
30153
- !l || l.length === 0 || l.forEach((f) => {
30154
- f.y += a.y;
30172
+ p.forEach(m);
30173
+ }, u = (p) => {
30174
+ !p || p.length === 0 || p.forEach((g) => {
30175
+ g.y += h.y;
30155
30176
  });
30156
30177
  };
30157
- r.traverse((l) => {
30158
- var f, p, g;
30159
- "geometry" in l ? l.geometry.translate(a.x, a.y, 0) : o(
30160
- (p = (f = l.userData) == null ? void 0 : f.layout) == null ? void 0 : p.chars
30161
- ), h(
30162
- (g = l.userData) == null ? void 0 : g.lineLayouts
30163
- ), l.layers.enableAll();
30178
+ r.traverse((p) => {
30179
+ var g, m, x;
30180
+ "geometry" in p ? p.geometry.translate(h.x, h.y, 0) : c(
30181
+ (m = (g = p.userData) == null ? void 0 : g.layout) == null ? void 0 : m.chars
30182
+ ), u(
30183
+ (x = p.userData) == null ? void 0 : x.lineLayouts
30184
+ ), p.layers.enableAll();
30164
30185
  });
30165
- let c = e.rotation || 0;
30186
+ let f = e.rotation || 0;
30166
30187
  if (e.directionVector) {
30167
- const l = e.directionVector, f = new E(l.x, l.y, l.z), p = f.clone().cross(th), g = th.angleTo(f);
30168
- c = p.z > 0 ? -g : g;
30188
+ const p = e.directionVector, g = new E(p.x, p.y, p.z), m = g.clone().cross(th), x = th.angleTo(g);
30189
+ f = m.z > 0 ? -x : x;
30169
30190
  }
30170
30191
  r.matrix.compose(qt, us, cs);
30171
- const u = e.position ? qt.clone().sub(e.position) : qt;
30172
- return ls.makeTranslation(-u.x, -u.y, 0), eh.makeRotationZ(c), r.matrix.multiply(ls), r.matrix.multiply(eh), r.matrix.multiply(ls.invert()), r.matrix.decompose(r.position, r.quaternion, r.scale), r;
30192
+ const l = e.position ? qt.clone().sub(e.position) : qt;
30193
+ return ls.makeTranslation(-l.x, -l.y, 0), eh.makeRotationZ(f), r.matrix.multiply(ls), r.matrix.multiply(eh), r.matrix.multiply(ls.invert()), r.matrix.decompose(r.position, r.quaternion, r.scale), r;
30173
30194
  }
30174
30195
  /**
30175
30196
  * Creates a group of text elements from MText data.
@@ -30210,7 +30231,7 @@ var P1 = Fc((L) => {
30210
30231
  j.MiddleCenter,
30211
30232
  j.MiddleRight
30212
30233
  ].includes(e.attachmentPoint) ? a = _t.MIDDLE : a = _t.BOTTOM);
30213
- const o = e.height || t.fixedTextHeight || 0, h = e.widthFactor || t.widthFactor || 1, c = e.lineSpaceFactor || 0.3, u = e.drawingDirection ?? Mt.LEFT_TO_RIGHT, l = {
30234
+ const o = e.height || t.fixedTextHeight || 0, h = e.widthFactor || t.widthFactor || 1, c = e.lineSpaceFactor || 0.3, u = e.drawingDirection ?? Mt.LEFT_TO_RIGHT, f = {
30214
30235
  fontSize: o,
30215
30236
  widthFactor: h,
30216
30237
  lineSpaceFactor: c,
@@ -30221,21 +30242,21 @@ var P1 = Fc((L) => {
30221
30242
  byLayerColor: this._colorSettings.byLayerColor,
30222
30243
  removeFontExtension: !0,
30223
30244
  collectCharBoxes: e.collectCharBoxes ?? !0
30224
- }, f = new Qr();
30225
- f.fontFace.family = t.font, f.capHeight = {
30245
+ }, l = new Qr();
30246
+ l.fontFace.family = t.font, l.capHeight = {
30226
30247
  value: o,
30227
30248
  isRelative: !1
30228
- }, f.widthFactor = {
30249
+ }, l.widthFactor = {
30229
30250
  value: h,
30230
30251
  isRelative: !1
30231
- }, f.align = a, f.paragraph.align = s;
30252
+ }, l.align = a, l.paragraph.align = s;
30232
30253
  const p = new O1(
30233
30254
  t,
30234
30255
  this._colorSettings,
30235
30256
  this.styleManager,
30236
30257
  this.fontManager,
30237
- l
30238
- ), m = new Lc(e.text, f, {
30258
+ f
30259
+ ), m = new Lc(e.text, l, {
30239
30260
  resetParagraphParameters: !0,
30240
30261
  yieldPropertyCommands: !0
30241
30262
  }).parse();
@@ -30295,29 +30316,29 @@ var P1 = Fc((L) => {
30295
30316
  * @param boxes - Array to store the calculated bounding boxes
30296
30317
  */
30297
30318
  getLayout(e, t, r) {
30298
- var o, h, c, u, l;
30319
+ var o, h, c, u, f;
30299
30320
  e.updateWorldMatrix(!1, !1);
30300
30321
  const i = (h = (o = e.userData) == null ? void 0 : o.layout) == null ? void 0 : h.chars, s = (c = e.userData) == null ? void 0 : c.lineLayouts;
30301
- if (s && s.length > 0 && s.forEach((f) => {
30302
- Ur.set(0, f.y, 0).applyMatrix4(e.matrixWorld), pt.set(0, f.y - f.height / 2, 0).applyMatrix4(e.matrixWorld), dt.set(0, f.y + f.height / 2, 0).applyMatrix4(e.matrixWorld), r.push({
30322
+ if (s && s.length > 0 && s.forEach((l) => {
30323
+ Ur.set(0, l.y, 0).applyMatrix4(e.matrixWorld), pt.set(0, l.y - l.height / 2, 0).applyMatrix4(e.matrixWorld), dt.set(0, l.y + l.height / 2, 0).applyMatrix4(e.matrixWorld), r.push({
30303
30324
  y: Ur.y,
30304
30325
  height: Math.abs(dt.y - pt.y),
30305
- breakIndex: f.breakIndex
30326
+ breakIndex: l.breakIndex
30306
30327
  });
30307
30328
  }), i && i.length > 0) {
30308
- const f = (u = e.userData) == null ? void 0 : u.charBoxType, p = Ko(
30329
+ const l = (u = e.userData) == null ? void 0 : u.charBoxType, p = Ko(
30309
30330
  i,
30310
30331
  e.matrixWorld,
30311
- f
30332
+ l
30312
30333
  );
30313
30334
  t.push(...p);
30314
30335
  return;
30315
30336
  }
30316
30337
  if (e instanceof jn || e instanceof Hr) {
30317
- const f = e.geometry;
30318
- if (!((l = f.userData) != null && l.isDecoration)) {
30319
- f.boundingBox === null && f.computeBoundingBox();
30320
- const p = new Ee().copy(f.boundingBox);
30338
+ const l = e.geometry;
30339
+ if (!((f = l.userData) != null && f.isDecoration)) {
30340
+ l.boundingBox === null && l.computeBoundingBox();
30341
+ const p = new Ee().copy(l.boundingBox);
30321
30342
  p.applyMatrix4(e.matrixWorld), t.push({
30322
30343
  type: ye.CHAR,
30323
30344
  box: p,
@@ -30327,39 +30348,39 @@ var P1 = Fc((L) => {
30327
30348
  }
30328
30349
  }
30329
30350
  const a = e.children;
30330
- for (let f = 0, p = a.length; f < p; f++)
30331
- this.getLayout(a[f], t, r);
30351
+ for (let l = 0, p = a.length; l < p; l++)
30352
+ this.getLayout(a[l], t, r);
30332
30353
  }
30333
30354
  updateBoxFromObject(e, t) {
30334
30355
  var a, o, h, c, u;
30335
30356
  e.updateWorldMatrix(!1, !1);
30336
30357
  const r = (a = e.userData) == null ? void 0 : a.lineLayouts;
30337
- r && r.length > 0 && r.forEach((l) => {
30338
- pt.set(0, l.y - l.height / 2, 0).applyMatrix4(e.matrixWorld), dt.set(0, l.y + l.height / 2, 0).applyMatrix4(e.matrixWorld), t.hasLine = !0, t.minX = Math.min(t.minX, pt.x, dt.x), t.maxX = Math.max(t.maxX, pt.x, dt.x), t.minY = Math.min(t.minY, pt.y, dt.y), t.maxY = Math.max(t.maxY, pt.y, dt.y), t.minZ = Math.min(t.minZ, pt.z, dt.z), t.maxZ = Math.max(t.maxZ, pt.z, dt.z);
30358
+ r && r.length > 0 && r.forEach((f) => {
30359
+ pt.set(0, f.y - f.height / 2, 0).applyMatrix4(e.matrixWorld), dt.set(0, f.y + f.height / 2, 0).applyMatrix4(e.matrixWorld), t.hasLine = !0, t.minX = Math.min(t.minX, pt.x, dt.x), t.maxX = Math.max(t.maxX, pt.x, dt.x), t.minY = Math.min(t.minY, pt.y, dt.y), t.maxY = Math.max(t.maxY, pt.y, dt.y), t.minZ = Math.min(t.minZ, pt.z, dt.z), t.maxZ = Math.max(t.maxZ, pt.z, dt.z);
30339
30360
  });
30340
30361
  const i = (h = (o = e.userData) == null ? void 0 : o.layout) == null ? void 0 : h.chars;
30341
30362
  if (i && i.length > 0) {
30342
- const l = (c = e.userData) == null ? void 0 : c.charBoxType;
30363
+ const f = (c = e.userData) == null ? void 0 : c.charBoxType;
30343
30364
  Ko(
30344
30365
  i,
30345
30366
  e.matrixWorld,
30346
- l
30367
+ f
30347
30368
  ).forEach((p) => {
30348
30369
  p.box && this.box.union(p.box);
30349
30370
  });
30350
30371
  return;
30351
30372
  }
30352
30373
  if (e instanceof jn || e instanceof Hr) {
30353
- const l = e.geometry;
30354
- if (!((u = l.userData) != null && u.isDecoration)) {
30355
- l.boundingBox === null && l.computeBoundingBox();
30356
- const f = new Ee().copy(l.boundingBox);
30357
- f.applyMatrix4(e.matrixWorld), this.box.union(f);
30374
+ const f = e.geometry;
30375
+ if (!((u = f.userData) != null && u.isDecoration)) {
30376
+ f.boundingBox === null && f.computeBoundingBox();
30377
+ const l = new Ee().copy(f.boundingBox);
30378
+ l.applyMatrix4(e.matrixWorld), this.box.union(l);
30358
30379
  }
30359
30380
  }
30360
30381
  const s = e.children;
30361
- for (let l = 0, f = s.length; l < f; l++)
30362
- this.updateBoxFromObject(s[l], t);
30382
+ for (let f = 0, l = s.length; f < l; f++)
30383
+ this.updateBoxFromObject(s[f], t);
30363
30384
  }
30364
30385
  /**
30365
30386
  * Remove the specified object from its parent and release geometry and material resource used
@@ -30533,8 +30554,8 @@ var P1 = Fc((L) => {
30533
30554
  if (r instanceof Hr || r instanceof jn) {
30534
30555
  const h = r.geometry, c = r.material;
30535
30556
  if (h instanceof ze) {
30536
- const u = r.matrixWorld.clone(), l = new E(), f = new zt(), p = new E();
30537
- u.decompose(l, f, p);
30557
+ const u = r.matrixWorld.clone(), f = new E(), l = new zt(), p = new E();
30558
+ u.decompose(f, l, p);
30538
30559
  const g = {};
30539
30560
  h.attributes && Object.keys(h.attributes).forEach((w) => {
30540
30561
  const b = h.attributes[w], B = new Uint8Array(
@@ -30575,15 +30596,15 @@ var P1 = Fc((L) => {
30575
30596
  const v = {
30576
30597
  type: r instanceof Hr ? "mesh" : "line",
30577
30598
  position: {
30578
- x: l.x,
30579
- y: l.y,
30580
- z: l.z
30581
- },
30582
- rotation: {
30583
30599
  x: f.x,
30584
30600
  y: f.y,
30585
- z: f.z,
30586
- w: f.w
30601
+ z: f.z
30602
+ },
30603
+ rotation: {
30604
+ x: l.x,
30605
+ y: l.y,
30606
+ z: l.z,
30607
+ w: l.w
30587
30608
  },
30588
30609
  scale: {
30589
30610
  x: p.x,