@thatopen/components 2.3.12 → 2.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ var Ao = Object.defineProperty;
2
2
  var Fo = (c, i, t) => i in c ? Ao(c, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[i] = t;
3
3
  var C = (c, i, t) => (Fo(c, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import * as D from "three";
5
- import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as _o, CylinderGeometry as Vt, BoxGeometry as Ut, BufferGeometry as $n, Float32BufferAttribute as Zn, OctahedronGeometry as Gi, Line as Ae, SphereGeometry as Po, TorusGeometry as Ii, PlaneGeometry as wo } from "three";
5
+ import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as Po, CylinderGeometry as Vt, BoxGeometry as Ut, BufferGeometry as $n, Float32BufferAttribute as Zn, OctahedronGeometry as Gi, Line as Ae, SphereGeometry as _o, TorusGeometry as Ii, PlaneGeometry as wo } from "three";
6
6
  import * as Qt from "@thatopen/fragments";
7
7
  import { FragmentsGroup as Mo, Serializer as Do } from "@thatopen/fragments";
8
8
  import * as z from "web-ifc";
@@ -739,10 +739,10 @@ class ea extends vn {
739
739
  }
740
740
  }
741
741
  const $t = /* @__PURE__ */ new ea();
742
- function Gt(c, i) {
742
+ function zt(c, i) {
743
743
  return i[c + 15] === 65535;
744
744
  }
745
- function zt(c, i) {
745
+ function kt(c, i) {
746
746
  return i[c + 6];
747
747
  }
748
748
  function Zt(c, i) {
@@ -770,44 +770,44 @@ class ia {
770
770
  }
771
771
  }
772
772
  const Ft = new ia();
773
- let _e, si;
773
+ let Pe, si;
774
774
  const ze = [], Wi = /* @__PURE__ */ new vn(() => new ae());
775
775
  function sa(c, i, t, e, s, n) {
776
- _e = Wi.getPrimitive(), si = Wi.getPrimitive(), ze.push(_e, si), Ft.setBuffer(c._roots[i]);
776
+ Pe = Wi.getPrimitive(), si = Wi.getPrimitive(), ze.push(Pe, si), Ft.setBuffer(c._roots[i]);
777
777
  const r = dn(0, c.geometry, t, e, s, n);
778
- Ft.clearBuffer(), Wi.releasePrimitive(_e), Wi.releasePrimitive(si), ze.pop(), ze.pop();
778
+ Ft.clearBuffer(), Wi.releasePrimitive(Pe), Wi.releasePrimitive(si), ze.pop(), ze.pop();
779
779
  const o = ze.length;
780
- return o > 0 && (si = ze[o - 1], _e = ze[o - 2]), r;
780
+ return o > 0 && (si = ze[o - 1], Pe = ze[o - 2]), r;
781
781
  }
782
782
  function dn(c, i, t, e, s = null, n = 0, r = 0) {
783
783
  const { float32Array: o, uint16Array: a, uint32Array: l } = Ft;
784
784
  let h = c * 2;
785
- if (Gt(h, a)) {
786
- const I = zt(c, l), u = Zt(h, a);
787
- return Nt(c, o, _e), e(I, u, !1, r, n + c, _e);
785
+ if (zt(h, a)) {
786
+ const I = kt(c, l), u = Zt(h, a);
787
+ return Nt(c, o, Pe), e(I, u, !1, r, n + c, Pe);
788
788
  } else {
789
789
  let b = function(N) {
790
790
  const { uint16Array: M, uint32Array: g } = Ft;
791
791
  let v = N * 2;
792
- for (; !Gt(v, M); )
792
+ for (; !zt(v, M); )
793
793
  N = jt(N), v = N * 2;
794
- return zt(N, g);
794
+ return kt(N, g);
795
795
  }, Y = function(N) {
796
796
  const { uint16Array: M, uint32Array: g } = Ft;
797
797
  let v = N * 2;
798
- for (; !Gt(v, M); )
798
+ for (; !zt(v, M); )
799
799
  N = qt(N, g), v = N * 2;
800
- return zt(N, g) + Zt(v, M);
800
+ return kt(N, g) + Zt(v, M);
801
801
  };
802
802
  const I = jt(c), u = qt(c, l);
803
803
  let d = I, E = u, T, p, m, F;
804
- if (s && (m = _e, F = si, Nt(d, o, m), Nt(E, o, F), T = s(m), p = s(F), p < T)) {
804
+ if (s && (m = Pe, F = si, Nt(d, o, m), Nt(E, o, F), T = s(m), p = s(F), p < T)) {
805
805
  d = u, E = I;
806
806
  const N = T;
807
807
  T = p, p = N, m = F;
808
808
  }
809
- m || (m = _e, Nt(d, o, m));
810
- const R = Gt(d * 2, a), S = t(m, R, T, r + 1, n + d);
809
+ m || (m = Pe, Nt(d, o, m));
810
+ const R = zt(d * 2, a), S = t(m, R, T, r + 1, n + d);
811
811
  let O;
812
812
  if (S === jn) {
813
813
  const N = b(d), g = Y(d) - N;
@@ -825,7 +825,7 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
825
825
  if (O)
826
826
  return !0;
827
827
  F = si, Nt(E, o, F);
828
- const y = Gt(E * 2, a), w = t(F, y, p, r + 1, n + E);
828
+ const y = zt(E * 2, a), w = t(F, y, p, r + 1, n + E);
829
829
  let L;
830
830
  if (w === jn) {
831
831
  const N = b(E), g = Y(E) - N;
@@ -994,8 +994,8 @@ function da(c, i, t, e, s) {
994
994
  }
995
995
  function En(c, i, t, e, s) {
996
996
  const { float32Array: n, uint16Array: r, uint32Array: o } = Ft, a = c * 2;
997
- if (Gt(a, r)) {
998
- const h = zt(c, o), f = Zt(a, r);
997
+ if (zt(a, r)) {
998
+ const h = kt(c, o), f = Zt(a, r);
999
999
  aa(i, t, e, h, f, s);
1000
1000
  } else {
1001
1001
  const h = jt(c);
@@ -1013,8 +1013,8 @@ function pa(c, i, t, e) {
1013
1013
  function pn(c, i, t, e) {
1014
1014
  const { float32Array: s, uint16Array: n, uint32Array: r } = Ft;
1015
1015
  let o = c * 2;
1016
- if (Gt(o, n)) {
1017
- const l = zt(c, r), h = Zt(o, n);
1016
+ if (zt(o, n)) {
1017
+ const l = kt(c, r), h = Zt(o, n);
1018
1018
  return ca(i, t, e, l, h);
1019
1019
  } else {
1020
1020
  const l = to(c, r), h = Ea[l], I = e.direction[h] >= 0;
@@ -1042,8 +1042,8 @@ function Ca(c, i, t, e) {
1042
1042
  function Cn(c, i, t, e, s = null) {
1043
1043
  const { float32Array: n, uint16Array: r, uint32Array: o } = Ft;
1044
1044
  let a = c * 2;
1045
- if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or), Gt(a, r)) {
1046
- const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = zt(c, o), T = Zt(a, r);
1045
+ if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or), zt(a, r)) {
1046
+ const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = kt(c, o), T = Zt(a, r);
1047
1047
  if (pi.copy(e).invert(), t.boundsTree)
1048
1048
  return Nt(c, n, Qi), Qi.matrix.copy(pi), Qi.needsUpdate = !0, t.boundsTree.shapecast({
1049
1049
  intersectsBounds: (m) => Qi.intersectsBox(m),
@@ -1157,8 +1157,8 @@ function Sa(c, i, t, e, s) {
1157
1157
  }
1158
1158
  function Tn(c, i, t, e, s) {
1159
1159
  const { float32Array: n, uint16Array: r, uint32Array: o } = Ft, a = c * 2;
1160
- if (Gt(a, r)) {
1161
- const h = zt(c, o), f = Zt(a, r);
1160
+ if (zt(a, r)) {
1161
+ const h = kt(c, o), f = Zt(a, r);
1162
1162
  ua(i, t, e, h, f, s);
1163
1163
  } else {
1164
1164
  const h = jt(c);
@@ -1176,8 +1176,8 @@ function Na(c, i, t, e) {
1176
1176
  function mn(c, i, t, e) {
1177
1177
  const { float32Array: s, uint16Array: n, uint32Array: r } = Ft;
1178
1178
  let o = c * 2;
1179
- if (Gt(o, n)) {
1180
- const l = zt(c, r), h = Zt(o, n);
1179
+ if (zt(o, n)) {
1180
+ const l = kt(c, r), h = Zt(o, n);
1181
1181
  return fa(i, t, e, l, h);
1182
1182
  } else {
1183
1183
  const l = to(c, r), h = Oa[l], I = e.direction[h] >= 0;
@@ -1205,8 +1205,8 @@ function ya(c, i, t, e) {
1205
1205
  function Rn(c, i, t, e, s = null) {
1206
1206
  const { float32Array: n, uint16Array: r, uint32Array: o } = Ft;
1207
1207
  let a = c * 2;
1208
- if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr), Gt(a, r)) {
1209
- const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = zt(c, o), T = Zt(a, r);
1208
+ if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr), zt(a, r)) {
1209
+ const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = kt(c, o), T = Zt(a, r);
1210
1210
  if (Ti.copy(e).invert(), t.boundsTree)
1211
1211
  return Nt(c, n, ts), ts.matrix.copy(Ti), ts.needsUpdate = !0, t.boundsTree.shapecast({
1212
1212
  intersectsBounds: (m) => ts.intersectsBox(m),
@@ -1230,12 +1230,12 @@ function Rn(c, i, t, e, s = null) {
1230
1230
  return Nt(h, n, Ji), !!(s.intersectsBox(Ji) && Rn(h, i, t, e, s) || (Nt(f, n, Ji), s.intersectsBox(Ji) && Rn(f, i, t, e, s)));
1231
1231
  }
1232
1232
  }
1233
- const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(), _a = /* @__PURE__ */ new Q(), Pa = /* @__PURE__ */ new Q(), wa = /* @__PURE__ */ new Q();
1233
+ const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(), Pa = /* @__PURE__ */ new Q(), _a = /* @__PURE__ */ new Q(), wa = /* @__PURE__ */ new Q();
1234
1234
  function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
1235
1235
  i.boundingBox || i.computeBoundingBox(), Qs.set(i.boundingBox.min, i.boundingBox.max, t), Qs.needsUpdate = !0;
1236
1236
  const o = c.geometry, a = o.attributes.position, l = o.index, h = i.attributes.position, f = i.index, I = $t.getPrimitive(), u = $t.getPrimitive();
1237
- let d = La, E = _a, T = null, p = null;
1238
- s && (T = Pa, p = wa);
1237
+ let d = La, E = Pa, T = null, p = null;
1238
+ s && (T = _a, p = wa);
1239
1239
  let m = 1 / 0, F = null, R = null;
1240
1240
  return es.copy(t).invert(), mi.matrix.copy(es), c.shapecast(
1241
1241
  {
@@ -1315,22 +1315,22 @@ function ba(c, i, t, e) {
1315
1315
  function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1316
1316
  let f, I;
1317
1317
  h ? (f = ps, I = wi) : (f = wi, I = ps);
1318
- const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S = Gt(F, E), O = Gt(R, m);
1318
+ const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S = zt(F, E), O = zt(R, m);
1319
1319
  let y = !1;
1320
1320
  if (O && S)
1321
1321
  h ? y = s(
1322
- zt(i, p),
1322
+ kt(i, p),
1323
1323
  Zt(i * 2, m),
1324
- zt(c, d),
1324
+ kt(c, d),
1325
1325
  Zt(c * 2, E),
1326
1326
  a,
1327
1327
  r + i,
1328
1328
  o,
1329
1329
  n + c
1330
1330
  ) : y = s(
1331
- zt(c, d),
1331
+ kt(c, d),
1332
1332
  Zt(c * 2, E),
1333
- zt(i, p),
1333
+ kt(i, p),
1334
1334
  Zt(i * 2, m),
1335
1335
  o,
1336
1336
  n + c,
@@ -1765,7 +1765,7 @@ class j {
1765
1765
  this.handlers.length = 0;
1766
1766
  }
1767
1767
  }
1768
- class Pe {
1768
+ class _e {
1769
1769
  constructor() {
1770
1770
  /** Triggers all the callbacks assigned to this event. */
1771
1771
  C(this, "trigger", async (i) => {
@@ -2542,8 +2542,8 @@ function qa(c) {
2542
2542
  while (Ct !== ft.edge);
2543
2543
  const Ht = n.length - 2;
2544
2544
  for (let Dt = 1, A = Ht; Dt <= A; Dt++) {
2545
- const X = n[0].vertex, k = n[Dt + 0].vertex, P = n[Dt + 1].vertex;
2546
- r.push(X.point.x, X.point.y, X.point.z), r.push(k.point.x, k.point.y, k.point.z), r.push(P.point.x, P.point.y, P.point.z);
2545
+ const X = n[0].vertex, k = n[Dt + 0].vertex, _ = n[Dt + 1].vertex;
2546
+ r.push(X.point.x, X.point.y, X.point.z), r.push(k.point.x, k.point.y, k.point.z), r.push(_.point.x, _.point.y, _.point.z);
2547
2547
  }
2548
2548
  }
2549
2549
  const o = new D.Vector3(), a = new D.Vector3(), l = new D.Vector3(), h = new D.Vector3(), f = new D.Vector3(), I = new D.Vector3(), u = new D.Vector3(), d = new D.Vector3();
@@ -2590,15 +2590,15 @@ class pr {
2590
2590
  return i.transparent && i.opacity < 1;
2591
2591
  }
2592
2592
  }
2593
- const _t = class _t {
2593
+ const Pt = class Pt {
2594
2594
  // Copied from three.js source
2595
2595
  // Original source: http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
2596
2596
  static create() {
2597
2597
  const i = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
2598
- return `${_t._lut[i & 255] + _t._lut[i >> 8 & 255] + _t._lut[i >> 16 & 255] + _t._lut[i >> 24 & 255]}-${_t._lut[t & 255]}${_t._lut[t >> 8 & 255]}-${_t._lut[t >> 16 & 15 | 64]}${_t._lut[t >> 24 & 255]}-${_t._lut[e & 63 | 128]}${_t._lut[e >> 8 & 255]}-${_t._lut[e >> 16 & 255]}${_t._lut[e >> 24 & 255]}${_t._lut[s & 255]}${_t._lut[s >> 8 & 255]}${_t._lut[s >> 16 & 255]}${_t._lut[s >> 24 & 255]}`.toLowerCase();
2598
+ return `${Pt._lut[i & 255] + Pt._lut[i >> 8 & 255] + Pt._lut[i >> 16 & 255] + Pt._lut[i >> 24 & 255]}-${Pt._lut[t & 255]}${Pt._lut[t >> 8 & 255]}-${Pt._lut[t >> 16 & 15 | 64]}${Pt._lut[t >> 24 & 255]}-${Pt._lut[e & 63 | 128]}${Pt._lut[e >> 8 & 255]}-${Pt._lut[e >> 16 & 255]}${Pt._lut[e >> 24 & 255]}${Pt._lut[s & 255]}${Pt._lut[s >> 8 & 255]}${Pt._lut[s >> 16 & 255]}${Pt._lut[s >> 24 & 255]}`.toLowerCase();
2599
2599
  }
2600
2600
  static validate(i) {
2601
- if (!_t._pattern.test(i))
2601
+ if (!Pt._pattern.test(i))
2602
2602
  throw new Error(
2603
2603
  `${i} is not a valid UUID v4.
2604
2604
 
@@ -2608,8 +2608,8 @@ const _t = class _t {
2608
2608
  );
2609
2609
  }
2610
2610
  };
2611
- C(_t, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
2612
- C(_t, "_lut", [
2611
+ C(Pt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
2612
+ C(Pt, "_lut", [
2613
2613
  "00",
2614
2614
  "01",
2615
2615
  "02",
@@ -2867,7 +2867,7 @@ C(_t, "_lut", [
2867
2867
  "fe",
2868
2868
  "ff"
2869
2869
  ]);
2870
- let oe = _t;
2870
+ let oe = Pt;
2871
2871
  class Th extends At {
2872
2872
  constructor(t, e) {
2873
2873
  super(t);
@@ -3137,7 +3137,7 @@ const Fs = class Fs {
3137
3137
  /**
3138
3138
  * The version of the @thatopen/components library.
3139
3139
  */
3140
- C(Fs, "release", "2.3.12");
3140
+ C(Fs, "release", "2.3.13");
3141
3141
  let Cs = Fs;
3142
3142
  class Qa extends xn {
3143
3143
  constructor() {
@@ -5296,7 +5296,7 @@ class lc {
5296
5296
  * meshes that are currently visible, and the ones that were visible
5297
5297
  * just before but not anymore.
5298
5298
  */
5299
- C(this, "onViewUpdated", new Pe());
5299
+ C(this, "onViewUpdated", new _e());
5300
5300
  /**
5301
5301
  * Whether this renderer is active or not. If not, it won't render anything.
5302
5302
  */
@@ -6438,7 +6438,7 @@ const xe = new yo(), bt = new Q(), Se = new Q(), Ot = new de(), Nr = {
6438
6438
  X: new Q(1, 0, 0),
6439
6439
  Y: new Q(0, 1, 0),
6440
6440
  Z: new Q(0, 0, 1)
6441
- }, un = { type: "change" }, yr = { type: "mouseDown" }, Lr = { type: "mouseUp", mode: null }, _r = { type: "objectChange" };
6441
+ }, un = { type: "change" }, yr = { type: "mouseDown" }, Lr = { type: "mouseUp", mode: null }, Pr = { type: "objectChange" };
6442
6442
  class pc extends In {
6443
6443
  constructor(i, t) {
6444
6444
  super(), t === void 0 && (console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'), t = document), this.isTransformControls = !0, this.visible = !1, this.domElement = t, this.domElement.style.touchAction = "none";
@@ -6503,7 +6503,7 @@ class pc extends In {
6503
6503
  let a = !1;
6504
6504
  t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(bt.copy(this.rotationAxis).cross(this.eye)) * o) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(Nr[t]), bt.copy(Nr[t]), n === "local" && bt.applyQuaternion(this.worldQuaternion), bt.cross(this.eye), bt.length() === 0 ? a = !0 : this.rotationAngle = this._offset.dot(bt.normalize()) * o), (t === "E" || a) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), n === "local" && t !== "E" && t !== "XYZE" ? (s.quaternion.copy(this._quaternionStart), s.quaternion.multiply(Ot.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), s.quaternion.copy(Ot.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), s.quaternion.multiply(this._quaternionStart).normalize());
6505
6505
  }
6506
- this.dispatchEvent(un), this.dispatchEvent(_r);
6506
+ this.dispatchEvent(un), this.dispatchEvent(Pr);
6507
6507
  }
6508
6508
  }
6509
6509
  pointerUp(i) {
@@ -6523,7 +6523,7 @@ class pc extends In {
6523
6523
  return this.object = void 0, this.visible = !1, this.axis = null, this;
6524
6524
  }
6525
6525
  reset() {
6526
- this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(_r), this.pointStart.copy(this.pointEnd));
6526
+ this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(Pr), this.pointStart.copy(this.pointEnd));
6527
6527
  }
6528
6528
  getRaycaster() {
6529
6529
  return xe;
@@ -6592,7 +6592,7 @@ function fn(c, i, t) {
6592
6592
  return e[s];
6593
6593
  return !1;
6594
6594
  }
6595
- const cs = new Lo(), mt = new Q(0, 1, 0), Pr = new Q(0, 0, 0), wr = new pe(), ls = new de(), Es = new de(), ue = new Q(), Mr = new pe(), _i = new Q(1, 0, 0), Be = new Q(0, 1, 0), Pi = new Q(0, 0, 1), hs = new Q(), Oi = new Q(), Ni = new Q();
6595
+ const cs = new Lo(), mt = new Q(0, 1, 0), _r = new Q(0, 0, 0), wr = new pe(), ls = new de(), Es = new de(), ue = new Q(), Mr = new pe(), Pi = new Q(1, 0, 0), Be = new Q(0, 1, 0), _i = new Q(0, 0, 1), hs = new Q(), Oi = new Q(), Ni = new Q();
6596
6596
  class Ac extends In {
6597
6597
  constructor() {
6598
6598
  super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
@@ -6602,7 +6602,7 @@ class Ac extends In {
6602
6602
  fog: !1,
6603
6603
  toneMapped: !1,
6604
6604
  transparent: !0
6605
- }), t = new _o({
6605
+ }), t = new Po({
6606
6606
  depthTest: !1,
6607
6607
  depthWrite: !1,
6608
6608
  fog: !1,
@@ -6740,7 +6740,7 @@ class Ac extends In {
6740
6740
  ]
6741
6741
  }, b = {
6742
6742
  XYZE: [
6743
- [new rt(new Po(0.25, 10, 8), e)]
6743
+ [new rt(new _o(0.25, 10, 8), e)]
6744
6744
  ],
6745
6745
  X: [
6746
6746
  [new rt(new Ii(0.5, 0.1, 4, 24), e), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]
@@ -6842,10 +6842,10 @@ class Ac extends In {
6842
6842
  r.visible = !0, r.rotation.set(0, 0, 0), r.position.copy(this.worldPosition);
6843
6843
  let o;
6844
6844
  if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), r.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), r.tag === "helper") {
6845
- r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Y" && (Ot.setFromEuler(cs.set(0, 0, Math.PI / 2)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Z" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "XYZE" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), mt.copy(this.rotationAxis), r.quaternion.setFromRotationMatrix(wr.lookAt(Pr, mt, Be)), r.quaternion.multiply(Ot), r.visible = this.dragging), this.axis === "E" && (r.visible = !1)) : r.name === "START" ? (r.position.copy(this.worldPositionStart), r.visible = this.dragging) : r.name === "END" ? (r.position.copy(this.worldPosition), r.visible = this.dragging) : r.name === "DELTA" ? (r.position.copy(this.worldPositionStart), r.quaternion.copy(this.worldQuaternionStart), bt.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), bt.applyQuaternion(this.worldQuaternionStart.clone().invert()), r.scale.copy(bt), r.visible = this.dragging) : (r.quaternion.copy(e), this.dragging ? r.position.copy(this.worldPositionStart) : r.position.copy(this.worldPosition), this.axis && (r.visible = this.axis.search(r.name) !== -1));
6845
+ r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Y" && (Ot.setFromEuler(cs.set(0, 0, Math.PI / 2)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Z" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "XYZE" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), mt.copy(this.rotationAxis), r.quaternion.setFromRotationMatrix(wr.lookAt(_r, mt, Be)), r.quaternion.multiply(Ot), r.visible = this.dragging), this.axis === "E" && (r.visible = !1)) : r.name === "START" ? (r.position.copy(this.worldPositionStart), r.visible = this.dragging) : r.name === "END" ? (r.position.copy(this.worldPosition), r.visible = this.dragging) : r.name === "DELTA" ? (r.position.copy(this.worldPositionStart), r.quaternion.copy(this.worldQuaternionStart), bt.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), bt.applyQuaternion(this.worldQuaternionStart.clone().invert()), r.scale.copy(bt), r.visible = this.dragging) : (r.quaternion.copy(e), this.dragging ? r.position.copy(this.worldPositionStart) : r.position.copy(this.worldPosition), this.axis && (r.visible = this.axis.search(r.name) !== -1));
6846
6846
  continue;
6847
6847
  }
6848
- r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Y" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Z" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XY" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "YZ" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XZ" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1)) : this.mode === "rotate" && (ls.copy(e), mt.copy(this.eye).applyQuaternion(Ot.copy(e).invert()), r.name.search("E") !== -1 && r.quaternion.setFromRotationMatrix(wr.lookAt(this.eye, Pr, Be)), r.name === "X" && (Ot.setFromAxisAngle(_i, Math.atan2(-mt.y, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Y" && (Ot.setFromAxisAngle(Be, Math.atan2(mt.x, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Z" && (Ot.setFromAxisAngle(Pi, Math.atan2(mt.y, mt.x)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot))), r.visible = r.visible && (r.name.indexOf("X") === -1 || this.showX), r.visible = r.visible && (r.name.indexOf("Y") === -1 || this.showY), r.visible = r.visible && (r.name.indexOf("Z") === -1 || this.showZ), r.visible = r.visible && (r.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), r.material._color = r.material._color || r.material.color.clone(), r.material._opacity = r.material._opacity || r.material.opacity, r.material.color.copy(r.material._color), r.material.opacity = r.material._opacity, this.enabled && this.axis && (r.name === this.axis || this.axis.split("").some(function(a) {
6848
+ r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Y" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Z" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XY" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "YZ" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XZ" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1)) : this.mode === "rotate" && (ls.copy(e), mt.copy(this.eye).applyQuaternion(Ot.copy(e).invert()), r.name.search("E") !== -1 && r.quaternion.setFromRotationMatrix(wr.lookAt(this.eye, _r, Be)), r.name === "X" && (Ot.setFromAxisAngle(Pi, Math.atan2(-mt.y, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Y" && (Ot.setFromAxisAngle(Be, Math.atan2(mt.x, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Z" && (Ot.setFromAxisAngle(_i, Math.atan2(mt.y, mt.x)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot))), r.visible = r.visible && (r.name.indexOf("X") === -1 || this.showX), r.visible = r.visible && (r.name.indexOf("Y") === -1 || this.showY), r.visible = r.visible && (r.name.indexOf("Z") === -1 || this.showZ), r.visible = r.visible && (r.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), r.material._color = r.material._color || r.material.color.clone(), r.material._opacity = r.material._opacity || r.material.opacity, r.material.color.copy(r.material._color), r.material.opacity = r.material._opacity, this.enabled && this.axis && (r.name === this.axis || this.axis.split("").some(function(a) {
6849
6849
  return r.name === a;
6850
6850
  })) && (r.material.color.setHex(16776960), r.material.opacity = 1);
6851
6851
  }
@@ -6861,7 +6861,7 @@ class Fc extends rt {
6861
6861
  }
6862
6862
  updateMatrixWorld(i) {
6863
6863
  let t = this.space;
6864
- switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(_i).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Oi.copy(Be).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Ni.copy(Pi).applyQuaternion(t === "local" ? this.worldQuaternion : Es), mt.copy(Oi), this.mode) {
6864
+ switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(Pi).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Oi.copy(Be).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Ni.copy(_i).applyQuaternion(t === "local" ? this.worldQuaternion : Es), mt.copy(Oi), this.mode) {
6865
6865
  case "translate":
6866
6866
  case "scale":
6867
6867
  switch (this.axis) {
@@ -7531,7 +7531,7 @@ class Lc {
7531
7531
  i.position.copy(t.position), i.quaternion.copy(t.quaternion), this._component.controls.mouseButtons.wheel = vt.ACTION.DOLLY, this.matchOrthoDistanceEnabled ? this._component.controls.distance = this.getDistance() : this._component.controls.distance = this._previousDistance, await this._component.controls.zoomTo(1), i.updateProjectionMatrix(), this._component.controls.camera = i, this.camera = i, this.current = "Perspective";
7532
7532
  }
7533
7533
  }
7534
- class _c extends xi {
7534
+ class Pc extends xi {
7535
7535
  constructor(t) {
7536
7536
  super(t);
7537
7537
  /**
@@ -7752,7 +7752,7 @@ const Dr = /* @__PURE__ */ new Map([
7752
7752
  forRelating: "DocumentRefForObjects"
7753
7753
  }
7754
7754
  ]
7755
- ]), Pc = {
7755
+ ]), _c = {
7756
7756
  103090709: "IFCPROJECT",
7757
7757
  4097777520: "IFCSITE",
7758
7758
  4031249490: "IFCBUILDING",
@@ -7893,7 +7893,7 @@ const Dr = /* @__PURE__ */ new Map([
7893
7893
  };
7894
7894
  class gh {
7895
7895
  getAll(i, t) {
7896
- const e = {}, s = Object.keys(Pc).map((n) => parseInt(n, 10));
7896
+ const e = {}, s = Object.keys(_c).map((n) => parseInt(n, 10));
7897
7897
  for (let n = 0; n < s.length; n++) {
7898
7898
  const r = s[n], o = i.GetLineIDsWithType(t, r), a = o.size();
7899
7899
  for (let l = 0; l < a; l++)
@@ -11292,7 +11292,7 @@ const Dc = {
11292
11292
  * @deprecated Use indexer.addEntitiesRelation instead. This will be removed in future releases.
11293
11293
  */
11294
11294
  addElementToPset(t, e, ...s) {
11295
- this.components.get(kt).addEntitiesRelation(
11295
+ this.components.get(Gt).addEntitiesRelation(
11296
11296
  t,
11297
11297
  e,
11298
11298
  { type: z.IFCRELDEFINESBYPROPERTIES, inv: "IsDefinedBy" },
@@ -11365,7 +11365,7 @@ const Dc = {
11365
11365
  */
11366
11366
  async saveToIfc(t, e) {
11367
11367
  const s = this.components.get(Nn), n = s.webIfc, r = await s.readIfcFile(e);
11368
- await this.components.get(kt).applyRelationChanges();
11368
+ await this.components.get(Gt).applyRelationChanges();
11369
11369
  const a = this.changeMap[t.uuid] ?? [];
11370
11370
  for (const h of a) {
11371
11371
  const f = await t.getProperties(h);
@@ -11959,8 +11959,8 @@ const vi = class vi extends At {
11959
11959
  * This UUID is used to register the component within the Components system.
11960
11960
  */
11961
11961
  C(vi, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
11962
- let kt = vi;
11963
- const _s = class _s extends At {
11962
+ let Gt = vi;
11963
+ const Ps = class Ps extends At {
11964
11964
  constructor(t) {
11965
11965
  super(t);
11966
11966
  /** {@link Disposable.onDisposed} */
@@ -11988,7 +11988,7 @@ const _s = class _s extends At {
11988
11988
  /** {@link Component.enabled} */
11989
11989
  C(this, "enabled", !0);
11990
11990
  C(this, "_loader", new Do());
11991
- this.components.add(_s.uuid, this);
11991
+ this.components.add(Ps.uuid, this);
11992
11992
  }
11993
11993
  /**
11994
11994
  * Getter for the meshes of all fragments in the FragmentsManager.
@@ -12037,7 +12037,7 @@ const _s = class _s extends At {
12037
12037
  e && (h.isStreamed = e.isStreamed || !1), o && (h.name = o);
12038
12038
  for (const f of h.items)
12039
12039
  f.group = h, this.list.set(f.id, f);
12040
- return r && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), l && this.components.get(kt).setRelationMap(h, l), this.onFragmentsLoaded.trigger(h), h;
12040
+ return r && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), l && this.components.get(Gt).setRelationMap(h, l), this.onFragmentsLoaded.trigger(h), h;
12041
12041
  }
12042
12042
  /**
12043
12043
  * Export the specified fragmentsgroup to binary data.
@@ -12184,8 +12184,8 @@ const _s = class _s extends At {
12184
12184
  * A unique identifier for the component.
12185
12185
  * This UUID is used to register the component within the Components system.
12186
12186
  */
12187
- C(_s, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
12188
- let Tt = _s;
12187
+ C(Ps, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
12188
+ let Tt = Ps;
12189
12189
  var us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12190
12190
  function vc(c) {
12191
12191
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
@@ -13732,42 +13732,42 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13732
13732
  A.pending_buf[A.pending++] = X >>> 8 & 255, A.pending_buf[A.pending++] = 255 & X;
13733
13733
  }
13734
13734
  function tt(A, X) {
13735
- var k, P, _ = A.max_chain_length, U = A.strstart, $ = A.prev_length, Z = A.nice_match, B = A.strstart > A.w_size - Y ? A.strstart - (A.w_size - Y) : 0, K = A.window, st = A.w_mask, J = A.prev, ct = A.strstart + b, Rt = K[U + $ - 1], dt = K[U + $];
13736
- A.prev_length >= A.good_match && (_ >>= 2), Z > A.lookahead && (Z = A.lookahead);
13735
+ var k, _, P = A.max_chain_length, U = A.strstart, $ = A.prev_length, Z = A.nice_match, B = A.strstart > A.w_size - Y ? A.strstart - (A.w_size - Y) : 0, K = A.window, st = A.w_mask, J = A.prev, ct = A.strstart + b, Rt = K[U + $ - 1], dt = K[U + $];
13736
+ A.prev_length >= A.good_match && (P >>= 2), Z > A.lookahead && (Z = A.lookahead);
13737
13737
  do
13738
13738
  if (K[(k = X) + $] === dt && K[k + $ - 1] === Rt && K[k] === K[U] && K[++k] === K[U + 1]) {
13739
13739
  U += 2, k++;
13740
13740
  do
13741
13741
  ;
13742
13742
  while (K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && U < ct);
13743
- if (P = b - (ct - U), U = ct - b, $ < P) {
13744
- if (A.match_start = X, Z <= ($ = P))
13743
+ if (_ = b - (ct - U), U = ct - b, $ < _) {
13744
+ if (A.match_start = X, Z <= ($ = _))
13745
13745
  break;
13746
13746
  Rt = K[U + $ - 1], dt = K[U + $];
13747
13747
  }
13748
13748
  }
13749
- while ((X = J[X & st]) > B && --_ != 0);
13749
+ while ((X = J[X & st]) > B && --P != 0);
13750
13750
  return $ <= A.lookahead ? $ : A.lookahead;
13751
13751
  }
13752
13752
  function St(A) {
13753
- var X, k, P, _, U, $, Z, B, K, st, J = A.w_size;
13753
+ var X, k, _, P, U, $, Z, B, K, st, J = A.w_size;
13754
13754
  do {
13755
- if (_ = A.window_size - A.lookahead - A.strstart, A.strstart >= J + (J - Y)) {
13756
- for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X = k = A.hash_size; P = A.head[--X], A.head[X] = J <= P ? P - J : 0, --k; )
13755
+ if (P = A.window_size - A.lookahead - A.strstart, A.strstart >= J + (J - Y)) {
13756
+ for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X = k = A.hash_size; _ = A.head[--X], A.head[X] = J <= _ ? _ - J : 0, --k; )
13757
13757
  ;
13758
- for (X = k = J; P = A.prev[--X], A.prev[X] = J <= P ? P - J : 0, --k; )
13758
+ for (X = k = J; _ = A.prev[--X], A.prev[X] = J <= _ ? _ - J : 0, --k; )
13759
13759
  ;
13760
- _ += J;
13760
+ P += J;
13761
13761
  }
13762
13762
  if (A.strm.avail_in === 0)
13763
13763
  break;
13764
- if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K = _, st = void 0, st = $.avail_in, K < st && (st = K), k = st === 0 ? 0 : ($.avail_in -= st, r.arraySet(Z, $.input, $.next_in, st, B), $.state.wrap === 1 ? $.adler = a($.adler, Z, st, B) : $.state.wrap === 2 && ($.adler = l($.adler, Z, st, B)), $.next_in += st, $.total_in += st, st), A.lookahead += k, A.lookahead + A.insert >= L)
13764
+ if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K = P, st = void 0, st = $.avail_in, K < st && (st = K), k = st === 0 ? 0 : ($.avail_in -= st, r.arraySet(Z, $.input, $.next_in, st, B), $.state.wrap === 1 ? $.adler = a($.adler, Z, st, B) : $.state.wrap === 2 && ($.adler = l($.adler, Z, st, B)), $.next_in += st, $.total_in += st, st), A.lookahead += k, A.lookahead + A.insert >= L)
13765
13765
  for (U = A.strstart - A.insert, A.ins_h = A.window[U], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + 1]) & A.hash_mask; A.insert && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + L - 1]) & A.hash_mask, A.prev[U & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = U, U++, A.insert--, !(A.lookahead + A.insert < L)); )
13766
13766
  ;
13767
13767
  } while (A.lookahead < Y && A.strm.avail_in !== 0);
13768
13768
  }
13769
13769
  function yt(A, X) {
13770
- for (var k, P; ; ) {
13770
+ for (var k, _; ; ) {
13771
13771
  if (A.lookahead < Y) {
13772
13772
  if (St(A), A.lookahead < Y && X === f)
13773
13773
  return g;
@@ -13775,21 +13775,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13775
13775
  break;
13776
13776
  }
13777
13777
  if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), k !== 0 && A.strstart - k <= A.w_size - Y && (A.match_length = tt(A, k)), A.match_length >= L)
13778
- if (P = o._tr_tally(A, A.strstart - A.match_start, A.match_length - L), A.lookahead -= A.match_length, A.match_length <= A.max_lazy_match && A.lookahead >= L) {
13778
+ if (_ = o._tr_tally(A, A.strstart - A.match_start, A.match_length - L), A.lookahead -= A.match_length, A.match_length <= A.max_lazy_match && A.lookahead >= L) {
13779
13779
  for (A.match_length--; A.strstart++, A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart, --A.match_length != 0; )
13780
13780
  ;
13781
13781
  A.strstart++;
13782
13782
  } else
13783
13783
  A.strstart += A.match_length, A.match_length = 0, A.ins_h = A.window[A.strstart], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + 1]) & A.hash_mask;
13784
13784
  else
13785
- P = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
13786
- if (P && (x(A, !1), A.strm.avail_out === 0))
13785
+ _ = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
13786
+ if (_ && (x(A, !1), A.strm.avail_out === 0))
13787
13787
  return g;
13788
13788
  }
13789
13789
  return A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
13790
13790
  }
13791
13791
  function at(A, X) {
13792
- for (var k, P, _; ; ) {
13792
+ for (var k, _, P; ; ) {
13793
13793
  if (A.lookahead < Y) {
13794
13794
  if (St(A), A.lookahead < Y && X === f)
13795
13795
  return g;
@@ -13797,20 +13797,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13797
13797
  break;
13798
13798
  }
13799
13799
  if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), A.prev_length = A.match_length, A.prev_match = A.match_start, A.match_length = L - 1, k !== 0 && A.prev_length < A.max_lazy_match && A.strstart - k <= A.w_size - Y && (A.match_length = tt(A, k), A.match_length <= 5 && (A.strategy === 1 || A.match_length === L && 4096 < A.strstart - A.match_start) && (A.match_length = L - 1)), A.prev_length >= L && A.match_length <= A.prev_length) {
13800
- for (_ = A.strstart + A.lookahead - L, P = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - L), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= _ && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
13800
+ for (P = A.strstart + A.lookahead - L, _ = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - L), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= P && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
13801
13801
  ;
13802
- if (A.match_available = 0, A.match_length = L - 1, A.strstart++, P && (x(A, !1), A.strm.avail_out === 0))
13802
+ if (A.match_available = 0, A.match_length = L - 1, A.strstart++, _ && (x(A, !1), A.strm.avail_out === 0))
13803
13803
  return g;
13804
13804
  } else if (A.match_available) {
13805
- if ((P = o._tr_tally(A, 0, A.window[A.strstart - 1])) && x(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
13805
+ if ((_ = o._tr_tally(A, 0, A.window[A.strstart - 1])) && x(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
13806
13806
  return g;
13807
13807
  } else
13808
13808
  A.match_available = 1, A.strstart++, A.lookahead--;
13809
13809
  }
13810
- return A.match_available && (P = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
13810
+ return A.match_available && (_ = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
13811
13811
  }
13812
- function It(A, X, k, P, _) {
13813
- this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain = P, this.func = _;
13812
+ function It(A, X, k, _, P) {
13813
+ this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain = _, this.func = P;
13814
13814
  }
13815
13815
  function ft() {
13816
13816
  this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = m, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new r.Buf16(2 * y), this.dyn_dtree = new r.Buf16(2 * (2 * S + 1)), this.bl_tree = new r.Buf16(2 * (2 * O + 1)), nt(this.dyn_ltree), nt(this.dyn_dtree), nt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new r.Buf16(w + 1), this.heap = new r.Buf16(2 * R + 1), nt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new r.Buf16(2 * R + 1), nt(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
@@ -13825,15 +13825,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13825
13825
  k.window_size = 2 * k.w_size, nt(k.head), k.max_lazy_match = n[k.level].max_lazy, k.good_match = n[k.level].good_length, k.nice_match = n[k.level].nice_length, k.max_chain_length = n[k.level].max_chain, k.strstart = 0, k.block_start = 0, k.lookahead = 0, k.insert = 0, k.match_length = k.prev_length = L - 1, k.match_available = 0, k.ins_h = 0;
13826
13826
  }(A.state), X;
13827
13827
  }
13828
- function Dt(A, X, k, P, _, U) {
13828
+ function Dt(A, X, k, _, P, U) {
13829
13829
  if (!A)
13830
13830
  return d;
13831
13831
  var $ = 1;
13832
- if (X === E && (X = 6), P < 0 ? ($ = 0, P = -P) : 15 < P && ($ = 2, P -= 16), _ < 1 || F < _ || k !== m || P < 8 || 15 < P || X < 0 || 9 < X || U < 0 || T < U)
13832
+ if (X === E && (X = 6), _ < 0 ? ($ = 0, _ = -_) : 15 < _ && ($ = 2, _ -= 16), P < 1 || F < P || k !== m || _ < 8 || 15 < _ || X < 0 || 9 < X || U < 0 || T < U)
13833
13833
  return et(A, d);
13834
- P === 8 && (P = 9);
13834
+ _ === 8 && (_ = 9);
13835
13835
  var Z = new ft();
13836
- return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits = P, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = _ + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + L - 1) / L), Z.window = new r.Buf8(2 * Z.w_size), Z.head = new r.Buf16(Z.hash_size), Z.prev = new r.Buf16(Z.w_size), Z.lit_bufsize = 1 << _ + 6, Z.pending_buf_size = 4 * Z.lit_bufsize, Z.pending_buf = new r.Buf8(Z.pending_buf_size), Z.d_buf = 1 * Z.lit_bufsize, Z.l_buf = 3 * Z.lit_bufsize, Z.level = X, Z.strategy = U, Z.method = k, Ht(A);
13836
+ return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits = _, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = P + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + L - 1) / L), Z.window = new r.Buf8(2 * Z.w_size), Z.head = new r.Buf16(Z.hash_size), Z.prev = new r.Buf16(Z.w_size), Z.lit_bufsize = 1 << P + 6, Z.pending_buf_size = 4 * Z.lit_bufsize, Z.pending_buf = new r.Buf8(Z.pending_buf_size), Z.d_buf = 1 * Z.lit_bufsize, Z.l_buf = 3 * Z.lit_bufsize, Z.level = X, Z.strategy = U, Z.method = k, Ht(A);
13837
13837
  }
13838
13838
  n = [new It(0, 0, 0, 0, function(A, X) {
13839
13839
  var k = 65535;
@@ -13845,8 +13845,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13845
13845
  break;
13846
13846
  }
13847
13847
  A.strstart += A.lookahead, A.lookahead = 0;
13848
- var P = A.block_start + k;
13849
- if ((A.strstart === 0 || A.strstart >= P) && (A.lookahead = A.strstart - P, A.strstart = P, x(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - Y && (x(A, !1), A.strm.avail_out === 0))
13848
+ var _ = A.block_start + k;
13849
+ if ((A.strstart === 0 || A.strstart >= _) && (A.lookahead = A.strstart - _, A.strstart = _, x(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - Y && (x(A, !1), A.strm.avail_out === 0))
13850
13850
  return g;
13851
13851
  }
13852
13852
  return A.insert = 0, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : (A.strstart > A.block_start && (x(A, !1), A.strm.avail_out), g);
@@ -13855,60 +13855,60 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13855
13855
  }, s.deflateInit2 = Dt, s.deflateReset = Ht, s.deflateResetKeep = Ct, s.deflateSetHeader = function(A, X) {
13856
13856
  return A && A.state ? A.state.wrap !== 2 ? d : (A.state.gzhead = X, u) : d;
13857
13857
  }, s.deflate = function(A, X) {
13858
- var k, P, _, U;
13858
+ var k, _, P, U;
13859
13859
  if (!A || !A.state || 5 < X || X < 0)
13860
13860
  return A ? et(A, d) : d;
13861
- if (P = A.state, !A.output || !A.input && A.avail_in !== 0 || P.status === 666 && X !== I)
13861
+ if (_ = A.state, !A.output || !A.input && A.avail_in !== 0 || _.status === 666 && X !== I)
13862
13862
  return et(A, A.avail_out === 0 ? -5 : d);
13863
- if (P.strm = A, k = P.last_flush, P.last_flush = X, P.status === N)
13864
- if (P.wrap === 2)
13865
- A.adler = 0, ot(P, 31), ot(P, 139), ot(P, 8), P.gzhead ? (ot(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), ot(P, 255 & P.gzhead.time), ot(P, P.gzhead.time >> 8 & 255), ot(P, P.gzhead.time >> 16 & 255), ot(P, P.gzhead.time >> 24 & 255), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (ot(P, 255 & P.gzhead.extra.length), ot(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (A.adler = l(A.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 3), P.status = M);
13863
+ if (_.strm = A, k = _.last_flush, _.last_flush = X, _.status === N)
13864
+ if (_.wrap === 2)
13865
+ A.adler = 0, ot(_, 31), ot(_, 139), ot(_, 8), _.gzhead ? (ot(_, (_.gzhead.text ? 1 : 0) + (_.gzhead.hcrc ? 2 : 0) + (_.gzhead.extra ? 4 : 0) + (_.gzhead.name ? 8 : 0) + (_.gzhead.comment ? 16 : 0)), ot(_, 255 & _.gzhead.time), ot(_, _.gzhead.time >> 8 & 255), ot(_, _.gzhead.time >> 16 & 255), ot(_, _.gzhead.time >> 24 & 255), ot(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), ot(_, 255 & _.gzhead.os), _.gzhead.extra && _.gzhead.extra.length && (ot(_, 255 & _.gzhead.extra.length), ot(_, _.gzhead.extra.length >> 8 & 255)), _.gzhead.hcrc && (A.adler = l(A.adler, _.pending_buf, _.pending, 0)), _.gzindex = 0, _.status = 69) : (ot(_, 0), ot(_, 0), ot(_, 0), ot(_, 0), ot(_, 0), ot(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), ot(_, 3), _.status = M);
13866
13866
  else {
13867
- var $ = m + (P.w_bits - 8 << 4) << 8;
13868
- $ |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, P.status = M, it(P, $), P.strstart !== 0 && (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), A.adler = 1;
13867
+ var $ = m + (_.w_bits - 8 << 4) << 8;
13868
+ $ |= (2 <= _.strategy || _.level < 2 ? 0 : _.level < 6 ? 1 : _.level === 6 ? 2 : 3) << 6, _.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, _.status = M, it(_, $), _.strstart !== 0 && (it(_, A.adler >>> 16), it(_, 65535 & A.adler)), A.adler = 1;
13869
13869
  }
13870
- if (P.status === 69)
13871
- if (P.gzhead.extra) {
13872
- for (_ = P.pending; P.gzindex < (65535 & P.gzhead.extra.length) && (P.pending !== P.pending_buf_size || (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), V(A), _ = P.pending, P.pending !== P.pending_buf_size)); )
13873
- ot(P, 255 & P.gzhead.extra[P.gzindex]), P.gzindex++;
13874
- P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), P.gzindex === P.gzhead.extra.length && (P.gzindex = 0, P.status = 73);
13870
+ if (_.status === 69)
13871
+ if (_.gzhead.extra) {
13872
+ for (P = _.pending; _.gzindex < (65535 & _.gzhead.extra.length) && (_.pending !== _.pending_buf_size || (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending !== _.pending_buf_size)); )
13873
+ ot(_, 255 & _.gzhead.extra[_.gzindex]), _.gzindex++;
13874
+ _.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), _.gzindex === _.gzhead.extra.length && (_.gzindex = 0, _.status = 73);
13875
13875
  } else
13876
- P.status = 73;
13877
- if (P.status === 73)
13878
- if (P.gzhead.name) {
13879
- _ = P.pending;
13876
+ _.status = 73;
13877
+ if (_.status === 73)
13878
+ if (_.gzhead.name) {
13879
+ P = _.pending;
13880
13880
  do {
13881
- if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), V(A), _ = P.pending, P.pending === P.pending_buf_size)) {
13881
+ if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending === _.pending_buf_size)) {
13882
13882
  U = 1;
13883
13883
  break;
13884
13884
  }
13885
- U = P.gzindex < P.gzhead.name.length ? 255 & P.gzhead.name.charCodeAt(P.gzindex++) : 0, ot(P, U);
13885
+ U = _.gzindex < _.gzhead.name.length ? 255 & _.gzhead.name.charCodeAt(_.gzindex++) : 0, ot(_, U);
13886
13886
  } while (U !== 0);
13887
- P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), U === 0 && (P.gzindex = 0, P.status = 91);
13887
+ _.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), U === 0 && (_.gzindex = 0, _.status = 91);
13888
13888
  } else
13889
- P.status = 91;
13890
- if (P.status === 91)
13891
- if (P.gzhead.comment) {
13892
- _ = P.pending;
13889
+ _.status = 91;
13890
+ if (_.status === 91)
13891
+ if (_.gzhead.comment) {
13892
+ P = _.pending;
13893
13893
  do {
13894
- if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), V(A), _ = P.pending, P.pending === P.pending_buf_size)) {
13894
+ if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending === _.pending_buf_size)) {
13895
13895
  U = 1;
13896
13896
  break;
13897
13897
  }
13898
- U = P.gzindex < P.gzhead.comment.length ? 255 & P.gzhead.comment.charCodeAt(P.gzindex++) : 0, ot(P, U);
13898
+ U = _.gzindex < _.gzhead.comment.length ? 255 & _.gzhead.comment.charCodeAt(_.gzindex++) : 0, ot(_, U);
13899
13899
  } while (U !== 0);
13900
- P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), U === 0 && (P.status = 103);
13900
+ _.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), U === 0 && (_.status = 103);
13901
13901
  } else
13902
- P.status = 103;
13903
- if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && V(A), P.pending + 2 <= P.pending_buf_size && (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), A.adler = 0, P.status = M)) : P.status = M), P.pending !== 0) {
13902
+ _.status = 103;
13903
+ if (_.status === 103 && (_.gzhead.hcrc ? (_.pending + 2 > _.pending_buf_size && V(A), _.pending + 2 <= _.pending_buf_size && (ot(_, 255 & A.adler), ot(_, A.adler >> 8 & 255), A.adler = 0, _.status = M)) : _.status = M), _.pending !== 0) {
13904
13904
  if (V(A), A.avail_out === 0)
13905
- return P.last_flush = -1, u;
13905
+ return _.last_flush = -1, u;
13906
13906
  } else if (A.avail_in === 0 && W(X) <= W(k) && X !== I)
13907
13907
  return et(A, -5);
13908
- if (P.status === 666 && A.avail_in !== 0)
13908
+ if (_.status === 666 && A.avail_in !== 0)
13909
13909
  return et(A, -5);
13910
- if (A.avail_in !== 0 || P.lookahead !== 0 || X !== f && P.status !== 666) {
13911
- var Z = P.strategy === 2 ? function(B, K) {
13910
+ if (A.avail_in !== 0 || _.lookahead !== 0 || X !== f && _.status !== 666) {
13911
+ var Z = _.strategy === 2 ? function(B, K) {
13912
13912
  for (var st; ; ) {
13913
13913
  if (B.lookahead === 0 && (St(B), B.lookahead === 0)) {
13914
13914
  if (K === f)
@@ -13919,7 +13919,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13919
13919
  return g;
13920
13920
  }
13921
13921
  return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
13922
- }(P, X) : P.strategy === 3 ? function(B, K) {
13922
+ }(_, X) : _.strategy === 3 ? function(B, K) {
13923
13923
  for (var st, J, ct, Rt, dt = B.window; ; ) {
13924
13924
  if (B.lookahead <= b) {
13925
13925
  if (St(B), B.lookahead <= b && K === f)
@@ -13938,24 +13938,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13938
13938
  return g;
13939
13939
  }
13940
13940
  return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
13941
- }(P, X) : n[P.level].func(P, X);
13942
- if (Z !== q && Z !== G || (P.status = 666), Z === g || Z === q)
13943
- return A.avail_out === 0 && (P.last_flush = -1), u;
13944
- if (Z === v && (X === 1 ? o._tr_align(P) : X !== 5 && (o._tr_stored_block(P, 0, 0, !1), X === 3 && (nt(P.head), P.lookahead === 0 && (P.strstart = 0, P.block_start = 0, P.insert = 0))), V(A), A.avail_out === 0))
13945
- return P.last_flush = -1, u;
13941
+ }(_, X) : n[_.level].func(_, X);
13942
+ if (Z !== q && Z !== G || (_.status = 666), Z === g || Z === q)
13943
+ return A.avail_out === 0 && (_.last_flush = -1), u;
13944
+ if (Z === v && (X === 1 ? o._tr_align(_) : X !== 5 && (o._tr_stored_block(_, 0, 0, !1), X === 3 && (nt(_.head), _.lookahead === 0 && (_.strstart = 0, _.block_start = 0, _.insert = 0))), V(A), A.avail_out === 0))
13945
+ return _.last_flush = -1, u;
13946
13946
  }
13947
- return X !== I ? u : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), ot(P, A.adler >> 16 & 255), ot(P, A.adler >> 24 & 255), ot(P, 255 & A.total_in), ot(P, A.total_in >> 8 & 255), ot(P, A.total_in >> 16 & 255), ot(P, A.total_in >> 24 & 255)) : (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), V(A), 0 < P.wrap && (P.wrap = -P.wrap), P.pending !== 0 ? u : 1);
13947
+ return X !== I ? u : _.wrap <= 0 ? 1 : (_.wrap === 2 ? (ot(_, 255 & A.adler), ot(_, A.adler >> 8 & 255), ot(_, A.adler >> 16 & 255), ot(_, A.adler >> 24 & 255), ot(_, 255 & A.total_in), ot(_, A.total_in >> 8 & 255), ot(_, A.total_in >> 16 & 255), ot(_, A.total_in >> 24 & 255)) : (it(_, A.adler >>> 16), it(_, 65535 & A.adler)), V(A), 0 < _.wrap && (_.wrap = -_.wrap), _.pending !== 0 ? u : 1);
13948
13948
  }, s.deflateEnd = function(A) {
13949
13949
  var X;
13950
13950
  return A && A.state ? (X = A.state.status) !== N && X !== 69 && X !== 73 && X !== 91 && X !== 103 && X !== M && X !== 666 ? et(A, d) : (A.state = null, X === M ? et(A, -3) : u) : d;
13951
13951
  }, s.deflateSetDictionary = function(A, X) {
13952
- var k, P, _, U, $, Z, B, K, st = X.length;
13952
+ var k, _, P, U, $, Z, B, K, st = X.length;
13953
13953
  if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !== N || k.lookahead)
13954
13954
  return d;
13955
13955
  for (U === 1 && (A.adler = a(A.adler, X, st, 0)), k.wrap = 0, st >= k.w_size && (U === 0 && (nt(k.head), k.strstart = 0, k.block_start = 0, k.insert = 0), K = new r.Buf8(k.w_size), r.arraySet(K, X, st - k.w_size, k.w_size, 0), X = K, st = k.w_size), $ = A.avail_in, Z = A.next_in, B = A.input, A.avail_in = st, A.next_in = 0, A.input = X, St(k); k.lookahead >= L; ) {
13956
- for (P = k.strstart, _ = k.lookahead - (L - 1); k.ins_h = (k.ins_h << k.hash_shift ^ k.window[P + L - 1]) & k.hash_mask, k.prev[P & k.w_mask] = k.head[k.ins_h], k.head[k.ins_h] = P, P++, --_; )
13956
+ for (_ = k.strstart, P = k.lookahead - (L - 1); k.ins_h = (k.ins_h << k.hash_shift ^ k.window[_ + L - 1]) & k.hash_mask, k.prev[_ & k.w_mask] = k.head[k.ins_h], k.head[k.ins_h] = _, _++, --P; )
13957
13957
  ;
13958
- k.strstart = P, k.lookahead = L - 1, St(k);
13958
+ k.strstart = _, k.lookahead = L - 1, St(k);
13959
13959
  }
13960
13960
  return k.strstart += k.lookahead, k.block_start = k.strstart, k.insert = k.lookahead, k.lookahead = 0, k.match_length = k.prev_length = L - 1, k.match_available = 0, A.next_in = Z, A.input = B, A.avail_in = $, k.wrap = U, u;
13961
13961
  }, s.deflateInfo = "pako deflate (from Nodeca project)";
@@ -14093,7 +14093,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14093
14093
  s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(N) {
14094
14094
  return O(N, 15);
14095
14095
  }, s.inflateInit2 = O, s.inflate = function(N, M) {
14096
- var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, k, P, _ = 0, U = new n.Buf8(4), $ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
14096
+ var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, k, _, P = 0, U = new n.Buf8(4), $ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
14097
14097
  if (!N || !N.state || !N.output || !N.input && N.avail_in !== 0)
14098
14098
  return u;
14099
14099
  (g = N.state).mode === 12 && (g.mode = 13), et = N.next_out, q = N.output, nt = N.avail_out, G = N.next_in, v = N.input, W = N.avail_in, V = g.hold, x = g.bits, ot = W, it = nt, X = I;
@@ -14304,7 +14304,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14304
14304
  g.have = 0, g.mode = 19;
14305
14305
  case 19:
14306
14306
  for (; g.have < g.nlen + g.ndist; ) {
14307
- for (; It = (_ = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
14307
+ for (; It = (P = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
14308
14308
  if (W === 0)
14309
14309
  break t;
14310
14310
  W--, V += v[G++] << x, x += 8;
@@ -14313,7 +14313,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14313
14313
  V >>>= at, x -= at, g.lens[g.have++] = ft;
14314
14314
  else {
14315
14315
  if (ft === 16) {
14316
- for (P = at + 2; x < P; ) {
14316
+ for (_ = at + 2; x < _; ) {
14317
14317
  if (W === 0)
14318
14318
  break t;
14319
14319
  W--, V += v[G++] << x, x += 8;
@@ -14324,14 +14324,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14324
14324
  }
14325
14325
  A = g.lens[g.have - 1], tt = 3 + (3 & V), V >>>= 2, x -= 2;
14326
14326
  } else if (ft === 17) {
14327
- for (P = at + 3; x < P; ) {
14327
+ for (_ = at + 3; x < _; ) {
14328
14328
  if (W === 0)
14329
14329
  break t;
14330
14330
  W--, V += v[G++] << x, x += 8;
14331
14331
  }
14332
14332
  x -= at, A = 0, tt = 3 + (7 & (V >>>= at)), V >>>= 3, x -= 3;
14333
14333
  } else {
14334
- for (P = at + 7; x < P; ) {
14334
+ for (_ = at + 7; x < _; ) {
14335
14335
  if (W === 0)
14336
14336
  break t;
14337
14337
  W--, V += v[G++] << x, x += 8;
@@ -14369,13 +14369,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14369
14369
  N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, a(N, it), et = N.next_out, q = N.output, nt = N.avail_out, G = N.next_in, v = N.input, W = N.avail_in, V = g.hold, x = g.bits, g.mode === 12 && (g.back = -1);
14370
14370
  break;
14371
14371
  }
14372
- for (g.back = 0; It = (_ = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
14372
+ for (g.back = 0; It = (P = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
14373
14373
  if (W === 0)
14374
14374
  break t;
14375
14375
  W--, V += v[G++] << x, x += 8;
14376
14376
  }
14377
14377
  if (It && !(240 & It)) {
14378
- for (Ct = at, Ht = It, Dt = ft; It = (_ = g.lencode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & _, !(Ct + (at = _ >>> 24) <= x); ) {
14378
+ for (Ct = at, Ht = It, Dt = ft; It = (P = g.lencode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & P, !(Ct + (at = P >>> 24) <= x); ) {
14379
14379
  if (W === 0)
14380
14380
  break t;
14381
14381
  W--, V += v[G++] << x, x += 8;
@@ -14397,7 +14397,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14397
14397
  g.extra = 15 & It, g.mode = 22;
14398
14398
  case 22:
14399
14399
  if (g.extra) {
14400
- for (P = g.extra; x < P; ) {
14400
+ for (_ = g.extra; x < _; ) {
14401
14401
  if (W === 0)
14402
14402
  break t;
14403
14403
  W--, V += v[G++] << x, x += 8;
@@ -14406,13 +14406,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14406
14406
  }
14407
14407
  g.was = g.length, g.mode = 23;
14408
14408
  case 23:
14409
- for (; It = (_ = g.distcode[V & (1 << g.distbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
14409
+ for (; It = (P = g.distcode[V & (1 << g.distbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
14410
14410
  if (W === 0)
14411
14411
  break t;
14412
14412
  W--, V += v[G++] << x, x += 8;
14413
14413
  }
14414
14414
  if (!(240 & It)) {
14415
- for (Ct = at, Ht = It, Dt = ft; It = (_ = g.distcode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & _, !(Ct + (at = _ >>> 24) <= x); ) {
14415
+ for (Ct = at, Ht = It, Dt = ft; It = (P = g.distcode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & P, !(Ct + (at = P >>> 24) <= x); ) {
14416
14416
  if (W === 0)
14417
14417
  break t;
14418
14418
  W--, V += v[G++] << x, x += 8;
@@ -14426,7 +14426,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14426
14426
  g.offset = ft, g.extra = 15 & It, g.mode = 24;
14427
14427
  case 24:
14428
14428
  if (g.extra) {
14429
- for (P = g.extra; x < P; ) {
14429
+ for (_ = g.extra; x < _; ) {
14430
14430
  if (W === 0)
14431
14431
  break t;
14432
14432
  W--, V += v[G++] << x, x += 8;
@@ -14560,9 +14560,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14560
14560
  e.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
14561
14561
  }, {}], 52: [function(t, e, s) {
14562
14562
  var n = t("../utils/common"), r = 0, o = 1;
14563
- function a(_) {
14564
- for (var U = _.length; 0 <= --U; )
14565
- _[U] = 0;
14563
+ function a(P) {
14564
+ for (var U = P.length; 0 <= --U; )
14565
+ P[U] = 0;
14566
14566
  }
14567
14567
  var l = 0, h = 29, f = 256, I = f + 1 + h, u = 30, d = 19, E = 2 * I + 1, T = 15, p = 16, m = 7, F = 256, R = 16, S = 17, O = 18, y = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], w = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], L = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], b = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Y = new Array(2 * (I + 2));
14568
14568
  a(Y);
@@ -14575,78 +14575,78 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14575
14575
  var v = new Array(h);
14576
14576
  a(v);
14577
14577
  var q, G, et, W = new Array(u);
14578
- function nt(_, U, $, Z, B) {
14579
- this.static_tree = _, this.extra_bits = U, this.extra_base = $, this.elems = Z, this.max_length = B, this.has_stree = _ && _.length;
14578
+ function nt(P, U, $, Z, B) {
14579
+ this.static_tree = P, this.extra_bits = U, this.extra_base = $, this.elems = Z, this.max_length = B, this.has_stree = P && P.length;
14580
14580
  }
14581
- function V(_, U) {
14582
- this.dyn_tree = _, this.max_code = 0, this.stat_desc = U;
14581
+ function V(P, U) {
14582
+ this.dyn_tree = P, this.max_code = 0, this.stat_desc = U;
14583
14583
  }
14584
- function x(_) {
14585
- return _ < 256 ? M[_] : M[256 + (_ >>> 7)];
14584
+ function x(P) {
14585
+ return P < 256 ? M[P] : M[256 + (P >>> 7)];
14586
14586
  }
14587
- function ot(_, U) {
14588
- _.pending_buf[_.pending++] = 255 & U, _.pending_buf[_.pending++] = U >>> 8 & 255;
14587
+ function ot(P, U) {
14588
+ P.pending_buf[P.pending++] = 255 & U, P.pending_buf[P.pending++] = U >>> 8 & 255;
14589
14589
  }
14590
- function it(_, U, $) {
14591
- _.bi_valid > p - $ ? (_.bi_buf |= U << _.bi_valid & 65535, ot(_, _.bi_buf), _.bi_buf = U >> p - _.bi_valid, _.bi_valid += $ - p) : (_.bi_buf |= U << _.bi_valid & 65535, _.bi_valid += $);
14590
+ function it(P, U, $) {
14591
+ P.bi_valid > p - $ ? (P.bi_buf |= U << P.bi_valid & 65535, ot(P, P.bi_buf), P.bi_buf = U >> p - P.bi_valid, P.bi_valid += $ - p) : (P.bi_buf |= U << P.bi_valid & 65535, P.bi_valid += $);
14592
14592
  }
14593
- function tt(_, U, $) {
14594
- it(_, $[2 * U], $[2 * U + 1]);
14593
+ function tt(P, U, $) {
14594
+ it(P, $[2 * U], $[2 * U + 1]);
14595
14595
  }
14596
- function St(_, U) {
14597
- for (var $ = 0; $ |= 1 & _, _ >>>= 1, $ <<= 1, 0 < --U; )
14596
+ function St(P, U) {
14597
+ for (var $ = 0; $ |= 1 & P, P >>>= 1, $ <<= 1, 0 < --U; )
14598
14598
  ;
14599
14599
  return $ >>> 1;
14600
14600
  }
14601
- function yt(_, U, $) {
14601
+ function yt(P, U, $) {
14602
14602
  var Z, B, K = new Array(T + 1), st = 0;
14603
14603
  for (Z = 1; Z <= T; Z++)
14604
14604
  K[Z] = st = st + $[Z - 1] << 1;
14605
14605
  for (B = 0; B <= U; B++) {
14606
- var J = _[2 * B + 1];
14607
- J !== 0 && (_[2 * B] = St(K[J]++, J));
14606
+ var J = P[2 * B + 1];
14607
+ J !== 0 && (P[2 * B] = St(K[J]++, J));
14608
14608
  }
14609
14609
  }
14610
- function at(_) {
14610
+ function at(P) {
14611
14611
  var U;
14612
14612
  for (U = 0; U < I; U++)
14613
- _.dyn_ltree[2 * U] = 0;
14613
+ P.dyn_ltree[2 * U] = 0;
14614
14614
  for (U = 0; U < u; U++)
14615
- _.dyn_dtree[2 * U] = 0;
14615
+ P.dyn_dtree[2 * U] = 0;
14616
14616
  for (U = 0; U < d; U++)
14617
- _.bl_tree[2 * U] = 0;
14618
- _.dyn_ltree[2 * F] = 1, _.opt_len = _.static_len = 0, _.last_lit = _.matches = 0;
14617
+ P.bl_tree[2 * U] = 0;
14618
+ P.dyn_ltree[2 * F] = 1, P.opt_len = P.static_len = 0, P.last_lit = P.matches = 0;
14619
14619
  }
14620
- function It(_) {
14621
- 8 < _.bi_valid ? ot(_, _.bi_buf) : 0 < _.bi_valid && (_.pending_buf[_.pending++] = _.bi_buf), _.bi_buf = 0, _.bi_valid = 0;
14620
+ function It(P) {
14621
+ 8 < P.bi_valid ? ot(P, P.bi_buf) : 0 < P.bi_valid && (P.pending_buf[P.pending++] = P.bi_buf), P.bi_buf = 0, P.bi_valid = 0;
14622
14622
  }
14623
- function ft(_, U, $, Z) {
14623
+ function ft(P, U, $, Z) {
14624
14624
  var B = 2 * U, K = 2 * $;
14625
- return _[B] < _[K] || _[B] === _[K] && Z[U] <= Z[$];
14625
+ return P[B] < P[K] || P[B] === P[K] && Z[U] <= Z[$];
14626
14626
  }
14627
- function Ct(_, U, $) {
14628
- for (var Z = _.heap[$], B = $ << 1; B <= _.heap_len && (B < _.heap_len && ft(U, _.heap[B + 1], _.heap[B], _.depth) && B++, !ft(U, Z, _.heap[B], _.depth)); )
14629
- _.heap[$] = _.heap[B], $ = B, B <<= 1;
14630
- _.heap[$] = Z;
14627
+ function Ct(P, U, $) {
14628
+ for (var Z = P.heap[$], B = $ << 1; B <= P.heap_len && (B < P.heap_len && ft(U, P.heap[B + 1], P.heap[B], P.depth) && B++, !ft(U, Z, P.heap[B], P.depth)); )
14629
+ P.heap[$] = P.heap[B], $ = B, B <<= 1;
14630
+ P.heap[$] = Z;
14631
14631
  }
14632
- function Ht(_, U, $) {
14632
+ function Ht(P, U, $) {
14633
14633
  var Z, B, K, st, J = 0;
14634
- if (_.last_lit !== 0)
14635
- for (; Z = _.pending_buf[_.d_buf + 2 * J] << 8 | _.pending_buf[_.d_buf + 2 * J + 1], B = _.pending_buf[_.l_buf + J], J++, Z === 0 ? tt(_, B, U) : (tt(_, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(_, B -= v[K], st), tt(_, K = x(--Z), $), (st = w[K]) !== 0 && it(_, Z -= W[K], st)), J < _.last_lit; )
14634
+ if (P.last_lit !== 0)
14635
+ for (; Z = P.pending_buf[P.d_buf + 2 * J] << 8 | P.pending_buf[P.d_buf + 2 * J + 1], B = P.pending_buf[P.l_buf + J], J++, Z === 0 ? tt(P, B, U) : (tt(P, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(P, B -= v[K], st), tt(P, K = x(--Z), $), (st = w[K]) !== 0 && it(P, Z -= W[K], st)), J < P.last_lit; )
14636
14636
  ;
14637
- tt(_, F, U);
14637
+ tt(P, F, U);
14638
14638
  }
14639
- function Dt(_, U) {
14639
+ function Dt(P, U) {
14640
14640
  var $, Z, B, K = U.dyn_tree, st = U.stat_desc.static_tree, J = U.stat_desc.has_stree, ct = U.stat_desc.elems, Rt = -1;
14641
- for (_.heap_len = 0, _.heap_max = E, $ = 0; $ < ct; $++)
14642
- K[2 * $] !== 0 ? (_.heap[++_.heap_len] = Rt = $, _.depth[$] = 0) : K[2 * $ + 1] = 0;
14643
- for (; _.heap_len < 2; )
14644
- K[2 * (B = _.heap[++_.heap_len] = Rt < 2 ? ++Rt : 0)] = 1, _.depth[B] = 0, _.opt_len--, J && (_.static_len -= st[2 * B + 1]);
14645
- for (U.max_code = Rt, $ = _.heap_len >> 1; 1 <= $; $--)
14646
- Ct(_, K, $);
14647
- for (B = ct; $ = _.heap[1], _.heap[1] = _.heap[_.heap_len--], Ct(_, K, 1), Z = _.heap[1], _.heap[--_.heap_max] = $, _.heap[--_.heap_max] = Z, K[2 * B] = K[2 * $] + K[2 * Z], _.depth[B] = (_.depth[$] >= _.depth[Z] ? _.depth[$] : _.depth[Z]) + 1, K[2 * $ + 1] = K[2 * Z + 1] = B, _.heap[1] = B++, Ct(_, K, 1), 2 <= _.heap_len; )
14641
+ for (P.heap_len = 0, P.heap_max = E, $ = 0; $ < ct; $++)
14642
+ K[2 * $] !== 0 ? (P.heap[++P.heap_len] = Rt = $, P.depth[$] = 0) : K[2 * $ + 1] = 0;
14643
+ for (; P.heap_len < 2; )
14644
+ K[2 * (B = P.heap[++P.heap_len] = Rt < 2 ? ++Rt : 0)] = 1, P.depth[B] = 0, P.opt_len--, J && (P.static_len -= st[2 * B + 1]);
14645
+ for (U.max_code = Rt, $ = P.heap_len >> 1; 1 <= $; $--)
14646
+ Ct(P, K, $);
14647
+ for (B = ct; $ = P.heap[1], P.heap[1] = P.heap[P.heap_len--], Ct(P, K, 1), Z = P.heap[1], P.heap[--P.heap_max] = $, P.heap[--P.heap_max] = Z, K[2 * B] = K[2 * $] + K[2 * Z], P.depth[B] = (P.depth[$] >= P.depth[Z] ? P.depth[$] : P.depth[Z]) + 1, K[2 * $ + 1] = K[2 * Z + 1] = B, P.heap[1] = B++, Ct(P, K, 1), 2 <= P.heap_len; )
14648
14648
  ;
14649
- _.heap[--_.heap_max] = _.heap[1], function(dt, Wt) {
14649
+ P.heap[--P.heap_max] = P.heap[1], function(dt, Wt) {
14650
14650
  var hi, ce, ui, Lt, Vi, Hs, Ce = Wt.dyn_tree, Hn = Wt.max_code, mo = Wt.stat_desc.static_tree, Ro = Wt.stat_desc.has_stree, go = Wt.stat_desc.extra_bits, Wn = Wt.stat_desc.extra_base, fi = Wt.stat_desc.max_length, Yi = 0;
14651
14651
  for (Lt = 0; Lt <= T; Lt++)
14652
14652
  dt.bl_count[Lt] = 0;
@@ -14662,33 +14662,33 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14662
14662
  for (ce = dt.bl_count[Lt]; ce !== 0; )
14663
14663
  Hn < (ui = dt.heap[--hi]) || (Ce[2 * ui + 1] !== Lt && (dt.opt_len += (Lt - Ce[2 * ui + 1]) * Ce[2 * ui], Ce[2 * ui + 1] = Lt), ce--);
14664
14664
  }
14665
- }(_, U), yt(K, Rt, _.bl_count);
14665
+ }(P, U), yt(K, Rt, P.bl_count);
14666
14666
  }
14667
- function A(_, U, $) {
14667
+ function A(P, U, $) {
14668
14668
  var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
14669
14669
  for (st === 0 && (ct = 138, Rt = 3), U[2 * ($ + 1) + 1] = 65535, Z = 0; Z <= $; Z++)
14670
- B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? _.bl_tree[2 * B] += J : B !== 0 ? (B !== K && _.bl_tree[2 * B]++, _.bl_tree[2 * R]++) : J <= 10 ? _.bl_tree[2 * S]++ : _.bl_tree[2 * O]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
14670
+ B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? P.bl_tree[2 * B] += J : B !== 0 ? (B !== K && P.bl_tree[2 * B]++, P.bl_tree[2 * R]++) : J <= 10 ? P.bl_tree[2 * S]++ : P.bl_tree[2 * O]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
14671
14671
  }
14672
- function X(_, U, $) {
14672
+ function X(P, U, $) {
14673
14673
  var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
14674
14674
  for (st === 0 && (ct = 138, Rt = 3), Z = 0; Z <= $; Z++)
14675
14675
  if (B = st, st = U[2 * (Z + 1) + 1], !(++J < ct && B === st)) {
14676
14676
  if (J < Rt)
14677
- for (; tt(_, B, _.bl_tree), --J != 0; )
14677
+ for (; tt(P, B, P.bl_tree), --J != 0; )
14678
14678
  ;
14679
14679
  else
14680
- B !== 0 ? (B !== K && (tt(_, B, _.bl_tree), J--), tt(_, R, _.bl_tree), it(_, J - 3, 2)) : J <= 10 ? (tt(_, S, _.bl_tree), it(_, J - 3, 3)) : (tt(_, O, _.bl_tree), it(_, J - 11, 7));
14680
+ B !== 0 ? (B !== K && (tt(P, B, P.bl_tree), J--), tt(P, R, P.bl_tree), it(P, J - 3, 2)) : J <= 10 ? (tt(P, S, P.bl_tree), it(P, J - 3, 3)) : (tt(P, O, P.bl_tree), it(P, J - 11, 7));
14681
14681
  K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4);
14682
14682
  }
14683
14683
  }
14684
14684
  a(W);
14685
14685
  var k = !1;
14686
- function P(_, U, $, Z) {
14687
- it(_, (l << 1) + (Z ? 1 : 0), 3), function(B, K, st, J) {
14686
+ function _(P, U, $, Z) {
14687
+ it(P, (l << 1) + (Z ? 1 : 0), 3), function(B, K, st, J) {
14688
14688
  It(B), ot(B, st), ot(B, ~st), n.arraySet(B.pending_buf, B.window, K, st, B.pending), B.pending += st;
14689
- }(_, U, $);
14689
+ }(P, U, $);
14690
14690
  }
14691
- s._tr_init = function(_) {
14691
+ s._tr_init = function(P) {
14692
14692
  k || (function() {
14693
14693
  var U, $, Z, B, K, st = new Array(T + 1);
14694
14694
  for (B = Z = 0; B < h - 1; B++)
@@ -14713,10 +14713,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14713
14713
  for (yt(Y, I + 1, st), U = 0; U < u; U++)
14714
14714
  N[2 * U + 1] = 5, N[2 * U] = St(U, 5);
14715
14715
  q = new nt(Y, y, f + 1, I, T), G = new nt(N, w, 0, u, T), et = new nt(new Array(0), L, 0, d, m);
14716
- }(), k = !0), _.l_desc = new V(_.dyn_ltree, q), _.d_desc = new V(_.dyn_dtree, G), _.bl_desc = new V(_.bl_tree, et), _.bi_buf = 0, _.bi_valid = 0, at(_);
14717
- }, s._tr_stored_block = P, s._tr_flush_block = function(_, U, $, Z) {
14716
+ }(), k = !0), P.l_desc = new V(P.dyn_ltree, q), P.d_desc = new V(P.dyn_dtree, G), P.bl_desc = new V(P.bl_tree, et), P.bi_buf = 0, P.bi_valid = 0, at(P);
14717
+ }, s._tr_stored_block = _, s._tr_flush_block = function(P, U, $, Z) {
14718
14718
  var B, K, st = 0;
14719
- 0 < _.level ? (_.strm.data_type === 2 && (_.strm.data_type = function(J) {
14719
+ 0 < P.level ? (P.strm.data_type === 2 && (P.strm.data_type = function(J) {
14720
14720
  var ct, Rt = 4093624447;
14721
14721
  for (ct = 0; ct <= 31; ct++, Rt >>>= 1)
14722
14722
  if (1 & Rt && J.dyn_ltree[2 * ct] !== 0)
@@ -14727,23 +14727,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14727
14727
  if (J.dyn_ltree[2 * ct] !== 0)
14728
14728
  return o;
14729
14729
  return r;
14730
- }(_)), Dt(_, _.l_desc), Dt(_, _.d_desc), st = function(J) {
14730
+ }(P)), Dt(P, P.l_desc), Dt(P, P.d_desc), st = function(J) {
14731
14731
  var ct;
14732
14732
  for (A(J, J.dyn_ltree, J.l_desc.max_code), A(J, J.dyn_dtree, J.d_desc.max_code), Dt(J, J.bl_desc), ct = d - 1; 3 <= ct && J.bl_tree[2 * b[ct] + 1] === 0; ct--)
14733
14733
  ;
14734
14734
  return J.opt_len += 3 * (ct + 1) + 5 + 5 + 4, ct;
14735
- }(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $, Z) : _.strategy === 4 || K === B ? (it(_, 2 + (Z ? 1 : 0), 3), Ht(_, Y, N)) : (it(_, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
14735
+ }(P), B = P.opt_len + 3 + 7 >>> 3, (K = P.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? _(P, U, $, Z) : P.strategy === 4 || K === B ? (it(P, 2 + (Z ? 1 : 0), 3), Ht(P, Y, N)) : (it(P, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
14736
14736
  var Wt;
14737
14737
  for (it(J, ct - 257, 5), it(J, Rt - 1, 5), it(J, dt - 4, 4), Wt = 0; Wt < dt; Wt++)
14738
14738
  it(J, J.bl_tree[2 * b[Wt] + 1], 3);
14739
14739
  X(J, J.dyn_ltree, ct - 1), X(J, J.dyn_dtree, Rt - 1);
14740
- }(_, _.l_desc.max_code + 1, _.d_desc.max_code + 1, st + 1), Ht(_, _.dyn_ltree, _.dyn_dtree)), at(_), Z && It(_);
14741
- }, s._tr_tally = function(_, U, $) {
14742
- return _.pending_buf[_.d_buf + 2 * _.last_lit] = U >>> 8 & 255, _.pending_buf[_.d_buf + 2 * _.last_lit + 1] = 255 & U, _.pending_buf[_.l_buf + _.last_lit] = 255 & $, _.last_lit++, U === 0 ? _.dyn_ltree[2 * $]++ : (_.matches++, U--, _.dyn_ltree[2 * (g[$] + f + 1)]++, _.dyn_dtree[2 * x(U)]++), _.last_lit === _.lit_bufsize - 1;
14743
- }, s._tr_align = function(_) {
14744
- it(_, 2, 3), tt(_, F, Y), function(U) {
14740
+ }(P, P.l_desc.max_code + 1, P.d_desc.max_code + 1, st + 1), Ht(P, P.dyn_ltree, P.dyn_dtree)), at(P), Z && It(P);
14741
+ }, s._tr_tally = function(P, U, $) {
14742
+ return P.pending_buf[P.d_buf + 2 * P.last_lit] = U >>> 8 & 255, P.pending_buf[P.d_buf + 2 * P.last_lit + 1] = 255 & U, P.pending_buf[P.l_buf + P.last_lit] = 255 & $, P.last_lit++, U === 0 ? P.dyn_ltree[2 * $]++ : (P.matches++, U--, P.dyn_ltree[2 * (g[$] + f + 1)]++, P.dyn_dtree[2 * x(U)]++), P.last_lit === P.lit_bufsize - 1;
14743
+ }, s._tr_align = function(P) {
14744
+ it(P, 2, 3), tt(P, F, Y), function(U) {
14745
14745
  U.bi_valid === 16 ? (ot(U, U.bi_buf), U.bi_buf = 0, U.bi_valid = 0) : 8 <= U.bi_valid && (U.pending_buf[U.pending++] = 255 & U.bi_buf, U.bi_buf >>= 8, U.bi_valid -= 8);
14746
- }(_);
14746
+ }(P);
14747
14747
  };
14748
14748
  }, { "../utils/common": 41 }], 53: [function(t, e, s) {
14749
14749
  e.exports = function() {
@@ -14892,11 +14892,11 @@ Gn.validate = function(c, i) {
14892
14892
  a += c[n];
14893
14893
  if (a = a.trim(), a[a.length - 1] === "/" && (a = a.substring(0, a.length - 1), n--), !Wc(a)) {
14894
14894
  let f;
14895
- return a.trim().length === 0 ? f = "Invalid space after '<'." : f = "Tag '" + a + "' is an invalid name.", Pt("InvalidTag", f, xt(c, n));
14895
+ return a.trim().length === 0 ? f = "Invalid space after '<'." : f = "Tag '" + a + "' is an invalid name.", _t("InvalidTag", f, xt(c, n));
14896
14896
  }
14897
14897
  const l = Yc(c, n);
14898
14898
  if (l === !1)
14899
- return Pt("InvalidAttr", "Attributes for '" + a + "' have open quote.", xt(c, n));
14899
+ return _t("InvalidAttr", "Attributes for '" + a + "' have open quote.", xt(c, n));
14900
14900
  let h = l.value;
14901
14901
  if (n = l.index, h[h.length - 1] === "/") {
14902
14902
  const f = n - h.length;
@@ -14905,18 +14905,18 @@ Gn.validate = function(c, i) {
14905
14905
  if (I === !0)
14906
14906
  e = !0;
14907
14907
  else
14908
- return Pt(I.err.code, I.err.msg, xt(c, f + I.err.line));
14908
+ return _t(I.err.code, I.err.msg, xt(c, f + I.err.line));
14909
14909
  } else if (o)
14910
14910
  if (l.tagClosed) {
14911
14911
  if (h.trim().length > 0)
14912
- return Pt("InvalidTag", "Closing tag '" + a + "' can't have attributes or invalid starting.", xt(c, r));
14912
+ return _t("InvalidTag", "Closing tag '" + a + "' can't have attributes or invalid starting.", xt(c, r));
14913
14913
  if (t.length === 0)
14914
- return Pt("InvalidTag", "Closing tag '" + a + "' has not been opened.", xt(c, r));
14914
+ return _t("InvalidTag", "Closing tag '" + a + "' has not been opened.", xt(c, r));
14915
14915
  {
14916
14916
  const f = t.pop();
14917
14917
  if (a !== f.tagName) {
14918
14918
  let I = xt(c, f.tagStartPos);
14919
- return Pt(
14919
+ return _t(
14920
14920
  "InvalidTag",
14921
14921
  "Expected closing tag '" + f.tagName + "' (opened in line " + I.line + ", col " + I.col + ") instead of closing tag '" + a + "'.",
14922
14922
  xt(c, r)
@@ -14925,13 +14925,13 @@ Gn.validate = function(c, i) {
14925
14925
  t.length == 0 && (s = !0);
14926
14926
  }
14927
14927
  } else
14928
- return Pt("InvalidTag", "Closing tag '" + a + "' doesn't have proper closing.", xt(c, n));
14928
+ return _t("InvalidTag", "Closing tag '" + a + "' doesn't have proper closing.", xt(c, n));
14929
14929
  else {
14930
14930
  const f = Br(h, i);
14931
14931
  if (f !== !0)
14932
- return Pt(f.err.code, f.err.msg, xt(c, n - h.length + f.err.line));
14932
+ return _t(f.err.code, f.err.msg, xt(c, n - h.length + f.err.line));
14933
14933
  if (s === !0)
14934
- return Pt("InvalidXml", "Multiple possible root nodes found.", xt(c, n));
14934
+ return _t("InvalidXml", "Multiple possible root nodes found.", xt(c, n));
14935
14935
  i.unpairedTags.indexOf(a) !== -1 || t.push({ tagName: a, tagStartPos: r }), e = !0;
14936
14936
  }
14937
14937
  for (n++; n < c.length; n++)
@@ -14947,24 +14947,24 @@ Gn.validate = function(c, i) {
14947
14947
  else if (c[n] === "&") {
14948
14948
  const f = kc(c, n);
14949
14949
  if (f == -1)
14950
- return Pt("InvalidChar", "char '&' is not expected.", xt(c, n));
14950
+ return _t("InvalidChar", "char '&' is not expected.", xt(c, n));
14951
14951
  n = f;
14952
14952
  } else if (s === !0 && !vr(c[n]))
14953
- return Pt("InvalidXml", "Extra text at the end", xt(c, n));
14953
+ return _t("InvalidXml", "Extra text at the end", xt(c, n));
14954
14954
  c[n] === "<" && n--;
14955
14955
  }
14956
14956
  } else {
14957
14957
  if (vr(c[n]))
14958
14958
  continue;
14959
- return Pt("InvalidChar", "char '" + c[n] + "' is not expected.", xt(c, n));
14959
+ return _t("InvalidChar", "char '" + c[n] + "' is not expected.", xt(c, n));
14960
14960
  }
14961
14961
  if (e) {
14962
14962
  if (t.length == 1)
14963
- return Pt("InvalidTag", "Unclosed tag '" + t[0].tagName + "'.", xt(c, t[0].tagStartPos));
14963
+ return _t("InvalidTag", "Unclosed tag '" + t[0].tagName + "'.", xt(c, t[0].tagStartPos));
14964
14964
  if (t.length > 0)
14965
- return Pt("InvalidXml", "Invalid '" + JSON.stringify(t.map((n) => n.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
14965
+ return _t("InvalidXml", "Invalid '" + JSON.stringify(t.map((n) => n.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
14966
14966
  } else
14967
- return Pt("InvalidXml", "Start tag expected.", 1);
14967
+ return _t("InvalidXml", "Start tag expected.", 1);
14968
14968
  return !0;
14969
14969
  };
14970
14970
  function vr(c) {
@@ -14977,7 +14977,7 @@ function Ur(c, i) {
14977
14977
  if (c[i] == "?" || c[i] == " ") {
14978
14978
  const e = c.substr(t, i - t);
14979
14979
  if (i > 5 && e === "xml")
14980
- return Pt("InvalidXml", "XML declaration allowed only at the start of the document.", xt(c, i));
14980
+ return _t("InvalidXml", "XML declaration allowed only at the start of the document.", xt(c, i));
14981
14981
  if (c[i] == "?" && c[i + 1] == ">") {
14982
14982
  i++;
14983
14983
  break;
@@ -15032,18 +15032,18 @@ function Br(c, i) {
15032
15032
  const t = zn.getAllMatches(c, Gc), e = {};
15033
15033
  for (let s = 0; s < t.length; s++) {
15034
15034
  if (t[s][1].length === 0)
15035
- return Pt("InvalidAttr", "Attribute '" + t[s][2] + "' has no space in starting.", yi(t[s]));
15035
+ return _t("InvalidAttr", "Attribute '" + t[s][2] + "' has no space in starting.", yi(t[s]));
15036
15036
  if (t[s][3] !== void 0 && t[s][4] === void 0)
15037
- return Pt("InvalidAttr", "Attribute '" + t[s][2] + "' is without value.", yi(t[s]));
15037
+ return _t("InvalidAttr", "Attribute '" + t[s][2] + "' is without value.", yi(t[s]));
15038
15038
  if (t[s][3] === void 0 && !i.allowBooleanAttributes)
15039
- return Pt("InvalidAttr", "boolean attribute '" + t[s][2] + "' is not allowed.", yi(t[s]));
15039
+ return _t("InvalidAttr", "boolean attribute '" + t[s][2] + "' is not allowed.", yi(t[s]));
15040
15040
  const n = t[s][2];
15041
15041
  if (!Hc(n))
15042
- return Pt("InvalidAttr", "Attribute '" + n + "' is an invalid name.", yi(t[s]));
15042
+ return _t("InvalidAttr", "Attribute '" + n + "' is an invalid name.", yi(t[s]));
15043
15043
  if (!e.hasOwnProperty(n))
15044
15044
  e[n] = 1;
15045
15045
  else
15046
- return Pt("InvalidAttr", "Attribute '" + n + "' is repeated.", yi(t[s]));
15046
+ return _t("InvalidAttr", "Attribute '" + n + "' is repeated.", yi(t[s]));
15047
15047
  }
15048
15048
  return !0;
15049
15049
  }
@@ -15071,7 +15071,7 @@ function kc(c, i) {
15071
15071
  }
15072
15072
  return i;
15073
15073
  }
15074
- function Pt(c, i, t) {
15074
+ function _t(c, i, t) {
15075
15075
  return {
15076
15076
  err: {
15077
15077
  code: c,
@@ -15308,7 +15308,7 @@ function El(c, i, t, e, s, n, r) {
15308
15308
  if (c !== void 0 && (this.options.trimValues && !e && (c = c.trim()), c.length > 0)) {
15309
15309
  r || (c = this.replaceEntitiesValue(c));
15310
15310
  const o = this.options.tagValueProcessor(i, c, t, s, n);
15311
- return o == null ? c : typeof o != typeof c || o !== c ? o : this.options.trimValues ? _n(c, this.options.parseTagValue, this.options.numberParseOptions) : c.trim() === c ? _n(c, this.options.parseTagValue, this.options.numberParseOptions) : c;
15311
+ return o == null ? c : typeof o != typeof c || o !== c ? o : this.options.trimValues ? Pn(c, this.options.parseTagValue, this.options.numberParseOptions) : c.trim() === c ? Pn(c, this.options.parseTagValue, this.options.numberParseOptions) : c;
15312
15312
  }
15313
15313
  }
15314
15314
  function pl(c) {
@@ -15331,7 +15331,7 @@ function Tl(c, i, t) {
15331
15331
  if (this.options.transformAttributeName && (l = this.options.transformAttributeName(l)), l === "__proto__" && (l = "#__proto__"), a !== void 0) {
15332
15332
  this.options.trimValues && (a = a.trim()), a = this.replaceEntitiesValue(a);
15333
15333
  const h = this.options.attributeValueProcessor(o, a, i);
15334
- h == null ? n[l] = a : typeof h != typeof a || h !== a ? n[l] = h : n[l] = _n(
15334
+ h == null ? n[l] = a : typeof h != typeof a || h !== a ? n[l] = h : n[l] = Pn(
15335
15335
  a,
15336
15336
  this.options.parseAttributeValue,
15337
15337
  this.options.numberParseOptions
@@ -15546,7 +15546,7 @@ function Ol(c, i, t) {
15546
15546
  n && ((n && n.tagName) === i && n.tagExp[n.tagExp.length - 1] !== "/" && s++, t = n.closeIndex);
15547
15547
  }
15548
15548
  }
15549
- function _n(c, i, t) {
15549
+ function Pn(c, i, t) {
15550
15550
  if (i && typeof c == "string") {
15551
15551
  const e = c.trim();
15552
15552
  return e === "true" ? !0 : e === "false" ? !1 : fl(c, t);
@@ -15570,8 +15570,8 @@ function Io(c, i, t) {
15570
15570
  continue;
15571
15571
  if (r[o]) {
15572
15572
  let l = Io(r[o], i, a);
15573
- const h = Pl(l, i);
15574
- r[":@"] ? _l(l, r[":@"], a, i) : Object.keys(l).length === 1 && l[i.textNodeName] !== void 0 && !i.alwaysCreateTextNode ? l = l[i.textNodeName] : Object.keys(l).length === 0 && (i.alwaysCreateTextNode ? l[i.textNodeName] = "" : l = ""), s[o] !== void 0 && s.hasOwnProperty(o) ? (Array.isArray(s[o]) || (s[o] = [s[o]]), s[o].push(l)) : i.isArray(o, a, h) ? s[o] = [l] : s[o] = l;
15573
+ const h = _l(l, i);
15574
+ r[":@"] ? Pl(l, r[":@"], a, i) : Object.keys(l).length === 1 && l[i.textNodeName] !== void 0 && !i.alwaysCreateTextNode ? l = l[i.textNodeName] : Object.keys(l).length === 0 && (i.alwaysCreateTextNode ? l[i.textNodeName] = "" : l = ""), s[o] !== void 0 && s.hasOwnProperty(o) ? (Array.isArray(s[o]) || (s[o] = [s[o]]), s[o].push(l)) : i.isArray(o, a, h) ? s[o] = [l] : s[o] = l;
15575
15575
  }
15576
15576
  }
15577
15577
  }
@@ -15585,7 +15585,7 @@ function Ll(c) {
15585
15585
  return e;
15586
15586
  }
15587
15587
  }
15588
- function _l(c, i, t, e) {
15588
+ function Pl(c, i, t, e) {
15589
15589
  if (i) {
15590
15590
  const s = Object.keys(i), n = s.length;
15591
15591
  for (let r = 0; r < n; r++) {
@@ -15594,7 +15594,7 @@ function _l(c, i, t, e) {
15594
15594
  }
15595
15595
  }
15596
15596
  }
15597
- function Pl(c, i) {
15597
+ function _l(c, i) {
15598
15598
  const { textNodeName: t } = i, e = Object.keys(c).length;
15599
15599
  return !!(e === 0 || e === 1 && (c[t] || typeof c[t] == "boolean" || c[t] === 0));
15600
15600
  }
@@ -15862,7 +15862,7 @@ var Co = {
15862
15862
  XMLValidator: Zl,
15863
15863
  XMLBuilder: ql
15864
15864
  };
15865
- class Pn {
15865
+ class _n {
15866
15866
  /**
15867
15867
  * Constructs a new BCF Topic Comment instance.
15868
15868
  * @param components - The Components instance.
@@ -16084,7 +16084,7 @@ const Ie = class Ie {
16084
16084
  * ```
16085
16085
  */
16086
16086
  createComment(i, t) {
16087
- const e = new Pn(this._components, i);
16087
+ const e = new _n(this._components, i);
16088
16088
  return e.viewpoint = t, e.topic = this, this.comments.set(e.guid, e), e;
16089
16089
  }
16090
16090
  createLabelTags(i = this._managerVersion) {
@@ -16610,9 +16610,9 @@ ${o}
16610
16610
  Comment: r,
16611
16611
  Viewpoint: o
16612
16612
  } = t;
16613
- if (!(e && s && n && (Pn || o)))
16613
+ if (!(e && s && n && (_n || o)))
16614
16614
  return null;
16615
- const a = this.components.get(ie), l = new Pn(this.components, r ?? "");
16615
+ const a = this.components.get(ie), l = new _n(this.components, r ?? "");
16616
16616
  return l.guid = e, l.date = new Date(s), l.author = n, l.viewpoint = o != null && o.Guid ? a.list.get(o.Guid) : void 0, l.modifiedAuthor = t.ModifiedAuthor, l.modifiedDate = t.ModifiedDate ? new Date(t.ModifiedDate) : void 0, l;
16617
16617
  }
16618
16618
  getMarkupComments(t, e) {
@@ -17093,7 +17093,7 @@ const ee = class ee extends At {
17093
17093
  };
17094
17094
  C(ee, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
17095
17095
  let wn = ee;
17096
- const Ps = class Ps {
17096
+ const _s = class _s {
17097
17097
  constructor(i) {
17098
17098
  /**
17099
17099
  * Event used to notify the progress when performing a query on an IFC file.
@@ -17125,7 +17125,7 @@ const Ps = class Ps {
17125
17125
  * @param data the data of the query to import as a serializable object.
17126
17126
  */
17127
17127
  static import(i, t) {
17128
- const e = Ps.importers.get(t.type);
17128
+ const e = _s.importers.get(t.type);
17129
17129
  return e ? e(i, t) : (console.warn("Invalid query data:.", t), null);
17130
17130
  }
17131
17131
  /**
@@ -17331,8 +17331,8 @@ const Ps = class Ps {
17331
17331
  /**
17332
17332
  * The list of functions to import the queries. If you create your own custom query, you should add its importer here. See the other queries provided by the library for reference.
17333
17333
  */
17334
- C(Ps, "importers", /* @__PURE__ */ new Map());
17335
- let se = Ps;
17334
+ C(_s, "importers", /* @__PURE__ */ new Map());
17335
+ let se = _s;
17336
17336
  class Yr {
17337
17337
  constructor(i) {
17338
17338
  /**
@@ -17498,7 +17498,7 @@ const Ms = class Ms extends se {
17498
17498
  * {@link IfcFinderQuery.items}
17499
17499
  */
17500
17500
  get items() {
17501
- const t = this.components.get(kt), e = this.components.get(Tt), s = [];
17501
+ const t = this.components.get(Gt), e = this.components.get(Tt), s = [];
17502
17502
  for (const n in this.ids) {
17503
17503
  const r = e.groups.get(n);
17504
17504
  if (!r) {
@@ -17883,7 +17883,7 @@ const bs = class bs extends At {
17883
17883
  */
17884
17884
  async bySpatialStructure(t, e = {}) {
17885
17885
  var l, h;
17886
- const s = this.components.get(kt), n = s.relationMaps[t.uuid];
17886
+ const s = this.components.get(Gt), n = s.relationMaps[t.uuid];
17887
17887
  if (!n)
17888
17888
  throw new Error(
17889
17889
  `Classifier: model relations of ${t.name || t.uuid} have to exists to group by spatial structure.`
@@ -18156,22 +18156,22 @@ const xs = class xs extends At {
18156
18156
  * Event triggered when geometry is streamed.
18157
18157
  * Contains the streamed geometry data and its buffer.
18158
18158
  */
18159
- C(this, "onGeometryStreamed", new Pe());
18159
+ C(this, "onGeometryStreamed", new _e());
18160
18160
  /**
18161
18161
  * Event triggered when assets are streamed.
18162
18162
  * Contains the streamed assets.
18163
18163
  */
18164
- C(this, "onAssetStreamed", new Pe());
18164
+ C(this, "onAssetStreamed", new _e());
18165
18165
  /**
18166
18166
  * Event triggered to indicate the progress of the streaming process.
18167
18167
  * Contains the progress percentage.
18168
18168
  */
18169
- C(this, "onProgress", new Pe());
18169
+ C(this, "onProgress", new _e());
18170
18170
  /**
18171
18171
  * Event triggered when the IFC file is loaded.
18172
18172
  * Contains the loaded IFC file data.
18173
18173
  */
18174
- C(this, "onIfcLoaded", new Pe());
18174
+ C(this, "onIfcLoaded", new _e());
18175
18175
  /** {@link Disposable.onDisposed} */
18176
18176
  C(this, "onDisposed", new j());
18177
18177
  /**
@@ -18425,17 +18425,17 @@ class eh extends At {
18425
18425
  * An event that is triggered when properties are streamed from the IFC file.
18426
18426
  * The event provides the type of the IFC entity and the corresponding data.
18427
18427
  */
18428
- C(this, "onPropertiesStreamed", new Pe());
18428
+ C(this, "onPropertiesStreamed", new _e());
18429
18429
  /**
18430
18430
  * An event that is triggered to indicate the progress of the streaming process.
18431
18431
  * The event provides a number between 0 and 1 representing the progress percentage.
18432
18432
  */
18433
- C(this, "onProgress", new Pe());
18433
+ C(this, "onProgress", new _e());
18434
18434
  /**
18435
18435
  * An event that is triggered when indices are streamed from the IFC file.
18436
18436
  * The event provides a map of indices, where the key is the entity type and the value is another map of indices.
18437
18437
  */
18438
- C(this, "onIndicesStreamed", new Pe());
18438
+ C(this, "onIndicesStreamed", new _e());
18439
18439
  /** {@link Disposable.onDisposed} */
18440
18440
  C(this, "onDisposed", new j());
18441
18441
  /** {@link Component.enabled} */
@@ -18525,7 +18525,7 @@ class eh extends At {
18525
18525
  r / e.size > n && (n = Math.round(n * 100) / 100, await this.onProgress.trigger(n), n += 0.01);
18526
18526
  }
18527
18527
  await this.onProgress.trigger(1);
18528
- const a = await this.components.get(kt).processFromWebIfc(this.webIfc, 0);
18528
+ const a = await this.components.get(Gt).processFromWebIfc(this.webIfc, 0);
18529
18529
  await this.onIndicesStreamed.trigger(a);
18530
18530
  }
18531
18531
  cleanUp() {
@@ -18748,7 +18748,7 @@ class To {
18748
18748
  throw new Error(
18749
18749
  "Viewpoint: the world's camera need controls to set the viewpoint."
18750
18750
  );
18751
- t instanceof _c && t.projection.set(this.projection);
18751
+ t instanceof Pc && t.projection.set(this.projection);
18752
18752
  const e = new D.Vector3(
18753
18753
  this.camera.position.x,
18754
18754
  this.camera.position.y,
@@ -19849,7 +19849,7 @@ class oh extends ks {
19849
19849
  const E = await t.getProperties(d);
19850
19850
  !E || !this.evalSystem(E) || !this.evalValue(u) || !this.evalURI(u) || a.push(I);
19851
19851
  }
19852
- const l = this.components.get(kt);
19852
+ const l = this.components.get(Gt);
19853
19853
  for (const f of a) {
19854
19854
  const I = l.getEntitiesWithRelation(
19855
19855
  t,
@@ -19916,7 +19916,7 @@ class oh extends ks {
19916
19916
  }
19917
19917
  async getSystems(t, e) {
19918
19918
  var f;
19919
- const s = [], n = this.components.get(kt), r = n.getEntityRelations(
19919
+ const s = [], n = this.components.get(Gt), r = n.getEntityRelations(
19920
19920
  t,
19921
19921
  e,
19922
19922
  "HasAssociations"
@@ -20079,7 +20079,7 @@ class ah extends ks {
20079
20079
  var l, h, f, I;
20080
20080
  if (!this.predefinedType)
20081
20081
  return null;
20082
- const n = this.components.get(kt), r = typeof this.predefinedType.parameter == "string" && this.predefinedType.parameter === "USERDEFINED";
20082
+ const n = this.components.get(Gt), r = typeof this.predefinedType.parameter == "string" && this.predefinedType.parameter === "USERDEFINED";
20083
20083
  let o = (l = e.PredefinedType) == null ? void 0 : l.value;
20084
20084
  if (o === "USERDEFINED" && !r) {
20085
20085
  const d = Object.keys(e).find(
@@ -20119,6 +20119,7 @@ class ch extends ks {
20119
20119
  C(this, "value");
20120
20120
  C(this, "dataType");
20121
20121
  C(this, "uri");
20122
+ // These are defined by the IDS specification
20122
20123
  C(this, "_unsupportedTypes", [
20123
20124
  z.IFCCOMPLEXPROPERTY,
20124
20125
  z.IFCPHYSICALCOMPLEXQUANTITY
@@ -20163,7 +20164,7 @@ class ch extends ks {
20163
20164
  }
20164
20165
  }
20165
20166
  }
20166
- const a = this.components.get(kt);
20167
+ const a = this.components.get(Gt);
20167
20168
  for (const f of o) {
20168
20169
  const I = a.getEntitiesWithRelation(
20169
20170
  t,
@@ -20263,9 +20264,34 @@ class ch extends ks {
20263
20264
  (e) => e.endsWith("Value") || e.endsWith("Values")
20264
20265
  );
20265
20266
  }
20266
- // IFCPROPERTYSET from type must be get as well
20267
+ async getPsetProps(t, e, s) {
20268
+ const n = structuredClone(e), r = [], o = n[s];
20269
+ if (!o)
20270
+ return r;
20271
+ for (const { value: a } of o) {
20272
+ const l = await t.getProperties(a);
20273
+ l && r.push(l);
20274
+ }
20275
+ return n[s] = r, n;
20276
+ }
20277
+ async getTypePsets(t, e) {
20278
+ const s = [], r = this.components.get(Gt).getEntityRelations(t, e, "IsTypedBy");
20279
+ if (!(r && r[0]))
20280
+ return s;
20281
+ const o = await t.getProperties(r[0]);
20282
+ if (!(o && "HasPropertySets" in o && Array.isArray(o.HasPropertySets)))
20283
+ return s;
20284
+ for (const { value: a } of o.HasPropertySets) {
20285
+ const l = await t.getProperties(a);
20286
+ if (!(l && "HasProperties" in l && Array.isArray(l.HasProperties)))
20287
+ continue;
20288
+ const h = await this.getPsetProps(t, l, "HasProperties");
20289
+ s.push(h);
20290
+ }
20291
+ return s;
20292
+ }
20267
20293
  async getPsets(t, e) {
20268
- const s = [], r = this.components.get(kt).getEntityRelations(
20294
+ const s = await this.getTypePsets(t, e), r = this.components.get(Gt).getEntityRelations(
20269
20295
  t,
20270
20296
  e,
20271
20297
  "IsDefinedBy"
@@ -20279,12 +20305,8 @@ class ch extends ks {
20279
20305
  const l = this.getItemsAttrName(a.type);
20280
20306
  if (!l)
20281
20307
  continue;
20282
- const h = structuredClone(a), f = [];
20283
- for (const { value: I } of h[l]) {
20284
- const u = await t.getProperties(I);
20285
- u && f.push(u);
20286
- }
20287
- h[l] = f, s.push(h);
20308
+ const h = await this.getPsetProps(t, a, l);
20309
+ s.push(h);
20288
20310
  }
20289
20311
  return s;
20290
20312
  }
@@ -20626,7 +20648,7 @@ C(ri, "uuid", "9f0b9f78-9b2e-481a-b766-2fbfd01f342c"), C(ri, "xmlParser", new Co
20626
20648
  }));
20627
20649
  let $r = ri;
20628
20650
  export {
20629
- Pe as AsyncEvent,
20651
+ _e as AsyncEvent,
20630
20652
  Mt as BCFTopics,
20631
20653
  Kl as BCFTopicsConfigManager,
20632
20654
  xn as Base,
@@ -20637,7 +20659,7 @@ export {
20637
20659
  wn as BoundingBoxer,
20638
20660
  Bi as Classifier,
20639
20661
  Sn as Clipper,
20640
- Pn as Comment,
20662
+ _n as Comment,
20641
20663
  At as Component,
20642
20664
  ph as ComponentWithUI,
20643
20665
  Cs as Components,
@@ -20665,7 +20687,7 @@ export {
20665
20687
  gs as IfcBasicQuery,
20666
20688
  gh as IfcCategories,
20667
20689
  ms as IfcCategoryMap,
20668
- Pc as IfcElements,
20690
+ _c as IfcElements,
20669
20691
  Gr as IfcFinder,
20670
20692
  se as IfcFinderQuery,
20671
20693
  Yn as IfcFragmentSettings,
@@ -20676,7 +20698,7 @@ export {
20676
20698
  eh as IfcPropertiesTiler,
20677
20699
  oi as IfcPropertiesUtils,
20678
20700
  As as IfcPropertyQuery,
20679
- kt as IfcRelationsIndexer,
20701
+ Gt as IfcRelationsIndexer,
20680
20702
  Jl as IfcStreamingSettings,
20681
20703
  pr as MaterialsUtils,
20682
20704
  Wr as MeasurementUtils,
@@ -20686,7 +20708,7 @@ export {
20686
20708
  Hr as MiniMaps,
20687
20709
  fc as Mouse,
20688
20710
  Nc as OrbitMode,
20689
- _c as OrthoPerspectiveCamera,
20711
+ Pc as OrthoPerspectiveCamera,
20690
20712
  yc as PlanMode,
20691
20713
  Lc as ProjectionManager,
20692
20714
  th as PropertiesStreamingSettings,