iflow-engine-base 2.1.4 → 2.1.5

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.
Files changed (45) hide show
  1. package/dist/bim-engine-sdk.es.js +412 -389
  2. package/dist/bim-engine-sdk.es.js.map +1 -1
  3. package/dist/bim-engine-sdk.umd.js +2 -2
  4. package/dist/bim-engine-sdk.umd.js.map +1 -1
  5. package/dist/iflow-engine-base.css +1 -1
  6. package/dist/index.d.ts +4 -1
  7. package/dist/model1/info~/info.json +1 -0
  8. package/dist/model1/lod0~/instances.json +1 -0
  9. package/dist/model1/lod0~/nodes.json +1 -0
  10. package/dist/model1/lod0~/primitives/0.glb +0 -0
  11. package/dist/model1/lod0~/primitives/1.glb +0 -0
  12. package/dist/model1/lod0~/primitives/10.glb +0 -0
  13. package/dist/model1/lod0~/primitives/11.glb +0 -0
  14. package/dist/model1/lod0~/primitives/12.glb +0 -0
  15. package/dist/model1/lod0~/primitives/13.glb +0 -0
  16. package/dist/model1/lod0~/primitives/14.glb +0 -0
  17. package/dist/model1/lod0~/primitives/15.glb +0 -0
  18. package/dist/model1/lod0~/primitives/16.glb +0 -0
  19. package/dist/model1/lod0~/primitives/17.glb +0 -0
  20. package/dist/model1/lod0~/primitives/18.glb +0 -0
  21. package/dist/model1/lod0~/primitives/19.glb +0 -0
  22. package/dist/model1/lod0~/primitives/2.glb +0 -0
  23. package/dist/model1/lod0~/primitives/20.glb +0 -0
  24. package/dist/model1/lod0~/primitives/21.glb +0 -0
  25. package/dist/model1/lod0~/primitives/22.glb +0 -0
  26. package/dist/model1/lod0~/primitives/23.glb +0 -0
  27. package/dist/model1/lod0~/primitives/24.glb +0 -0
  28. package/dist/model1/lod0~/primitives/25.glb +0 -0
  29. package/dist/model1/lod0~/primitives/26.glb +0 -0
  30. package/dist/model1/lod0~/primitives/27.glb +0 -0
  31. package/dist/model1/lod0~/primitives/28.glb +0 -0
  32. package/dist/model1/lod0~/primitives/29.glb +0 -0
  33. package/dist/model1/lod0~/primitives/3.glb +0 -0
  34. package/dist/model1/lod0~/primitives/30.glb +0 -0
  35. package/dist/model1/lod0~/primitives/31.glb +0 -0
  36. package/dist/model1/lod0~/primitives/4.glb +0 -0
  37. package/dist/model1/lod0~/primitives/5.glb +0 -0
  38. package/dist/model1/lod0~/primitives/6.glb +0 -0
  39. package/dist/model1/lod0~/primitives/7.glb +0 -0
  40. package/dist/model1/lod0~/primitives/8.glb +0 -0
  41. package/dist/model1/lod0~/primitives/9.glb +0 -0
  42. package/dist/model4/info +0 -0
  43. package/dist/model4/lod0 +0 -0
  44. package/dist/model4/property +0 -0
  45. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as M from "three";
2
- import { Controls as Ya, Vector3 as J, MOUSE as gn, TOUCH as dn, Quaternion as Ni, Spherical as vr, Vector2 as de, Ray as rr, Plane as Xi, MathUtils as or, Mesh as ar, OrthographicCamera as Vo, BufferGeometry as Zi, Float32BufferAttribute as br, ShaderMaterial as tt, UniformsUtils as nt, WebGLRenderTarget as Vn, HalfFloatType as _t, NoBlending as ze, Clock as Ka, Color as st, Matrix4 as Me, DataTexture as lr, RepeatWrapping as vt, MeshNormalMaterial as Ho, AddEquation as fn, ZeroFactor as pn, DstAlphaFactor as Bs, DstColorFactor as Ns, CustomBlending as jo, DepthTexture as Go, DepthStencilFormat as Wo, UnsignedInt248Type as Xo, NearestFilter as xn, RGBAFormat as $a, UnsignedByteType as Ja, RedFormat as Qa, FloatType as Ci, RawShaderMaterial as el, ColorManagement as Fi, SRGBTransfer as tl, LinearToneMapping as nl, ReinhardToneMapping as il, CineonToneMapping as sl, ACESFilmicToneMapping as rl, AgXToneMapping as ol, NeutralToneMapping as al, CustomToneMapping as ll, Loader as Zo, FileLoader as Ui, SRGBColorSpace as Lt, LinearSRGBColorSpace as rt, BufferAttribute as ut, InterleavedBuffer as qo, InterleavedBufferAttribute as Yo, TrianglesDrawMode as cl, TriangleFanDrawMode as Fs, TriangleStripDrawMode as Ko, LoaderUtils as Nn, MeshPhysicalMaterial as ft, SpotLight as hl, PointLight as ul, DirectionalLight as dl, InstancedMesh as fl, InstancedBufferAttribute as pl, Object3D as $o, TextureLoader as ml, ImageBitmapLoader as gl, LinearMipmapLinearFilter as Jo, NearestMipmapLinearFilter as yl, LinearMipmapNearestFilter as wl, NearestMipmapNearestFilter as xl, LinearFilter as Hn, MirroredRepeatWrapping as _l, ClampToEdgeWrapping as vl, PointsMaterial as bl, Material as ns, LineBasicMaterial as Ml, MeshStandardMaterial as Qo, DoubleSide as qi, MeshBasicMaterial as On, PropertyBinding as Sl, SkinnedMesh as Tl, LineSegments as El, Line as Al, LineLoop as Cl, Points as Pl, Group as is, PerspectiveCamera as Rl, Skeleton as Dl, AnimationClip as kl, Bone as Il, InterpolateDiscrete as Ll, InterpolateLinear as ea, Texture as Mr, VectorKeyframeTrack as Sr, NumberKeyframeTrack as Tr, QuaternionKeyframeTrack as Er, FrontSide as Us, Interpolant as zl, Box3 as ot, Sphere as Ol, DataTextureLoader as Bl, DataUtils as qn, Line3 as Ke, Triangle as Ve, BackSide as Nl, REVISION as ta, Vector4 as en, Matrix3 as Fl } from "three";
2
+ import { Controls as Ya, Vector3 as J, MOUSE as gn, TOUCH as dn, Quaternion as Ni, Spherical as vr, Vector2 as de, Ray as rr, Plane as Xi, MathUtils as or, Mesh as ar, OrthographicCamera as Vo, BufferGeometry as Zi, Float32BufferAttribute as br, ShaderMaterial as tt, UniformsUtils as nt, WebGLRenderTarget as Vn, HalfFloatType as _t, NoBlending as ze, Clock as Ka, Color as st, Matrix4 as Me, DataTexture as lr, RepeatWrapping as vt, MeshNormalMaterial as Ho, AddEquation as fn, ZeroFactor as pn, DstAlphaFactor as Bs, DstColorFactor as Ns, CustomBlending as jo, DepthTexture as Go, DepthStencilFormat as Wo, UnsignedInt248Type as Xo, NearestFilter as xn, RGBAFormat as $a, UnsignedByteType as Ja, RedFormat as Qa, FloatType as Ci, RawShaderMaterial as el, ColorManagement as Fi, SRGBTransfer as tl, LinearToneMapping as nl, ReinhardToneMapping as il, CineonToneMapping as sl, ACESFilmicToneMapping as rl, AgXToneMapping as ol, NeutralToneMapping as al, CustomToneMapping as ll, Loader as Zo, FileLoader as Ui, SRGBColorSpace as Lt, LinearSRGBColorSpace as rt, BufferAttribute as ut, InterleavedBuffer as qo, InterleavedBufferAttribute as Yo, TrianglesDrawMode as cl, TriangleFanDrawMode as Fs, TriangleStripDrawMode as Ko, LoaderUtils as Nn, MeshPhysicalMaterial as ft, SpotLight as hl, PointLight as ul, DirectionalLight as dl, InstancedMesh as fl, InstancedBufferAttribute as pl, Object3D as $o, TextureLoader as ml, ImageBitmapLoader as gl, LinearMipmapLinearFilter as Jo, NearestMipmapLinearFilter as yl, LinearMipmapNearestFilter as wl, NearestMipmapNearestFilter as xl, LinearFilter as Hn, MirroredRepeatWrapping as _l, ClampToEdgeWrapping as vl, PointsMaterial as bl, Material as ns, LineBasicMaterial as Ml, MeshStandardMaterial as Qo, DoubleSide as qi, MeshBasicMaterial as On, PropertyBinding as Sl, SkinnedMesh as Tl, LineSegments as El, Line as Al, LineLoop as Cl, Points as Pl, Group as is, PerspectiveCamera as Dl, Skeleton as Rl, AnimationClip as kl, Bone as Il, InterpolateDiscrete as Ll, InterpolateLinear as ea, Texture as Mr, VectorKeyframeTrack as Sr, NumberKeyframeTrack as Tr, QuaternionKeyframeTrack as Er, FrontSide as Us, Interpolant as zl, Box3 as ot, Sphere as Ol, DataTextureLoader as Bl, DataUtils as qn, Line3 as Ke, Triangle as Ve, BackSide as Nl, REVISION as ta, Vector4 as en, Matrix3 as Fl } from "three";
3
3
  class Ul {
4
4
  engine;
5
5
  scene;
@@ -1144,7 +1144,7 @@ function hr(o) {
1144
1144
  Z: I[0].Z * 0.5 + I[1].Z * 0.5
1145
1145
  });
1146
1146
  });
1147
- let E = [...v[2].map((I) => I[0]), ...C], P = "face", A = [], R = [], z = 10;
1147
+ let E = [...v[2].map((I) => I[0]), ...C], P = "face", A = [], D = [], z = 10;
1148
1148
  if (E.forEach((I) => {
1149
1149
  if (I != null) {
1150
1150
  let U = new M.Vector3(I.X, I.Z, -I.Y), F = o.worldToScreen.worldToScreen(U), K = Math.sqrt(Math.pow(F.x - g.offsetX, 2) + Math.pow(F.y - g.offsetY, 2));
@@ -1159,7 +1159,7 @@ function hr(o) {
1159
1159
  let U = new M.Vector3(I[0].X, I[0].Z, -I[0].Y), F = new M.Vector3(I[1].X, I[1].Z, -I[1].Y), K = o.worldToScreen.worldToScreen(U), H = o.worldToScreen.worldToScreen(F), Y = T(new M.Vector2(g.offsetX, g.offsetY), K, H);
1160
1160
  if (Y < z) {
1161
1161
  let N = k(new M.Vector2(g.offsetX, g.offsetY), K, H), O = b(N, U, F);
1162
- R.push({
1162
+ D.push({
1163
1163
  distance: Y,
1164
1164
  point: O,
1165
1165
  pointxy: o.worldToScreen.worldToScreen(O),
@@ -1168,7 +1168,7 @@ function hr(o) {
1168
1168
  });
1169
1169
  }
1170
1170
  }
1171
- }), R.length > 0 && (R.sort((I, U) => I.distance - U.distance), P = "line")), P == "point" && e.options.showCatch) {
1171
+ }), D.length > 0 && (D.sort((I, U) => I.distance - U.distance), P = "line")), P == "point" && e.options.showCatch) {
1172
1172
  const I = new Fe(o.camera, o.renderer, o.scene).worldToScreen(A[0].point);
1173
1173
  o.catchSvg.innerHTML = "";
1174
1174
  const U = I.x + o.reactBoundingClientRect.left, F = I.y + o.reactBoundingClientRect.top;
@@ -1176,11 +1176,11 @@ function hr(o) {
1176
1176
  const K = document.createElementNS("http://www.w3.org/2000/svg", "polygon");
1177
1177
  K.setAttribute("class", "catchPoint"), K.setAttribute("points", `${U},${F - 8} ${U - 7},${F + 4} ${U + 7},${F + 4}`), o.catchSvg.appendChild(K), y[0].point = A[0].point;
1178
1178
  } else if (P == "line" && e.options.showCatch) {
1179
- o.worldToScreen.worldToScreen(R[0].point);
1180
- const I = R[0].start, U = R[0].end;
1179
+ o.worldToScreen.worldToScreen(D[0].point);
1180
+ const I = D[0].start, U = D[0].end;
1181
1181
  o.catchSvg.innerHTML = "";
1182
1182
  const F = document.createElementNS("http://www.w3.org/2000/svg", "line");
1183
- F.setAttribute("class", "catchLine"), F.setAttribute("x1", (I.x + o.reactBoundingClientRect.left).toString()), F.setAttribute("y1", (I.y + o.reactBoundingClientRect.top).toString()), F.setAttribute("x2", (U.x + o.reactBoundingClientRect.left).toString()), F.setAttribute("y2", (U.y + o.reactBoundingClientRect.top).toString()), F.setAttribute("stroke", "rgb(8, 223, 215)"), F.setAttribute("stroke-width", "2"), o.catchSvg.appendChild(F), y[0].point = R[0].point;
1183
+ F.setAttribute("class", "catchLine"), F.setAttribute("x1", (I.x + o.reactBoundingClientRect.left).toString()), F.setAttribute("y1", (I.y + o.reactBoundingClientRect.top).toString()), F.setAttribute("x2", (U.x + o.reactBoundingClientRect.left).toString()), F.setAttribute("y2", (U.y + o.reactBoundingClientRect.top).toString()), F.setAttribute("stroke", "rgb(8, 223, 215)"), F.setAttribute("stroke-width", "2"), o.catchSvg.appendChild(F), y[0].point = D[0].point;
1184
1184
  } else if (P == "face" && e.options.showCatch) {
1185
1185
  let I = y[0].point.clone(), U = y[0].normal || (y[0].face ? y[0].face.normal : null);
1186
1186
  const F = (U ? U.clone() : new M.Vector3(0, 0, 1)).normalize(), K = Math.abs(F.y) < 0.9 ? new M.Vector3(0, 1, 0) : new M.Vector3(1, 0, 0), H = new M.Vector3().crossVectors(F, K).normalize(), Y = new M.Vector3().crossVectors(F, H).normalize(), N = 0.05, ee = [
@@ -1464,7 +1464,7 @@ class Pi extends tn {
1464
1464
  this.material.dispose(), this._fsQuad.dispose();
1465
1465
  }
1466
1466
  }
1467
- class Rr extends tn {
1467
+ class Dr extends tn {
1468
1468
  /**
1469
1469
  * Constructs a new mask pass.
1470
1470
  *
@@ -1596,7 +1596,7 @@ class cc {
1596
1596
  }
1597
1597
  this.swapBuffers();
1598
1598
  }
1599
- Rr !== void 0 && (r instanceof Rr ? n = !0 : r instanceof lc && (n = !1));
1599
+ Dr !== void 0 && (r instanceof Dr ? n = !0 : r instanceof lc && (n = !1));
1600
1600
  }
1601
1601
  }
1602
1602
  this.renderer.setRenderTarget(t);
@@ -2329,13 +2329,13 @@ class sa {
2329
2329
  const r = 0.5 * (Math.sqrt(3) - 1), a = (e + t) * r, l = Math.floor(e + a), h = Math.floor(t + a), c = (3 - Math.sqrt(3)) / 6, d = (l + h) * c, m = l - d, p = h - d, f = e - m, u = t - p;
2330
2330
  let g, y;
2331
2331
  f > u ? (g = 1, y = 0) : (g = 0, y = 1);
2332
- const w = f - g + c, x = u - y + c, _ = f - 1 + 2 * c, v = u - 1 + 2 * c, C = l & 255, E = h & 255, P = this.perm[C + this.perm[E]] % 12, A = this.perm[C + g + this.perm[E + y]] % 12, R = this.perm[C + 1 + this.perm[E + 1]] % 12;
2332
+ const w = f - g + c, x = u - y + c, _ = f - 1 + 2 * c, v = u - 1 + 2 * c, C = l & 255, E = h & 255, P = this.perm[C + this.perm[E]] % 12, A = this.perm[C + g + this.perm[E + y]] % 12, D = this.perm[C + 1 + this.perm[E + 1]] % 12;
2333
2333
  let z = 0.5 - f * f - u * u;
2334
2334
  z < 0 ? n = 0 : (z *= z, n = z * z * this._dot(this.grad3[P], f, u));
2335
2335
  let T = 0.5 - w * w - x * x;
2336
2336
  T < 0 ? i = 0 : (T *= T, i = T * T * this._dot(this.grad3[A], w, x));
2337
2337
  let k = 0.5 - _ * _ - v * v;
2338
- return k < 0 ? s = 0 : (k *= k, s = k * k * this._dot(this.grad3[R], _, v)), 70 * (n + i + s);
2338
+ return k < 0 ? s = 0 : (k *= k, s = k * k * this._dot(this.grad3[D], _, v)), 70 * (n + i + s);
2339
2339
  }
2340
2340
  /**
2341
2341
  * A 3D simplex noise method.
@@ -2348,9 +2348,9 @@ class sa {
2348
2348
  noise3d(e, t, n) {
2349
2349
  let i, s, r, a;
2350
2350
  const h = (e + t + n) * 0.3333333333333333, c = Math.floor(e + h), d = Math.floor(t + h), m = Math.floor(n + h), p = 1 / 6, f = (c + d + m) * p, u = c - f, g = d - f, y = m - f, w = e - u, x = t - g, _ = n - y;
2351
- let v, C, E, P, A, R;
2352
- w >= x ? x >= _ ? (v = 1, C = 0, E = 0, P = 1, A = 1, R = 0) : w >= _ ? (v = 1, C = 0, E = 0, P = 1, A = 0, R = 1) : (v = 0, C = 0, E = 1, P = 1, A = 0, R = 1) : x < _ ? (v = 0, C = 0, E = 1, P = 0, A = 1, R = 1) : w < _ ? (v = 0, C = 1, E = 0, P = 0, A = 1, R = 1) : (v = 0, C = 1, E = 0, P = 1, A = 1, R = 0);
2353
- const z = w - v + p, T = x - C + p, k = _ - E + p, b = w - P + 2 * p, I = x - A + 2 * p, U = _ - R + 2 * p, F = w - 1 + 3 * p, K = x - 1 + 3 * p, H = _ - 1 + 3 * p, Y = c & 255, N = d & 255, O = m & 255, te = this.perm[Y + this.perm[N + this.perm[O]]] % 12, ee = this.perm[Y + v + this.perm[N + C + this.perm[O + E]]] % 12, q = this.perm[Y + P + this.perm[N + A + this.perm[O + R]]] % 12, ce = this.perm[Y + 1 + this.perm[N + 1 + this.perm[O + 1]]] % 12;
2351
+ let v, C, E, P, A, D;
2352
+ w >= x ? x >= _ ? (v = 1, C = 0, E = 0, P = 1, A = 1, D = 0) : w >= _ ? (v = 1, C = 0, E = 0, P = 1, A = 0, D = 1) : (v = 0, C = 0, E = 1, P = 1, A = 0, D = 1) : x < _ ? (v = 0, C = 0, E = 1, P = 0, A = 1, D = 1) : w < _ ? (v = 0, C = 1, E = 0, P = 0, A = 1, D = 1) : (v = 0, C = 1, E = 0, P = 1, A = 1, D = 0);
2353
+ const z = w - v + p, T = x - C + p, k = _ - E + p, b = w - P + 2 * p, I = x - A + 2 * p, U = _ - D + 2 * p, F = w - 1 + 3 * p, K = x - 1 + 3 * p, H = _ - 1 + 3 * p, Y = c & 255, N = d & 255, O = m & 255, te = this.perm[Y + this.perm[N + this.perm[O]]] % 12, ee = this.perm[Y + v + this.perm[N + C + this.perm[O + E]]] % 12, q = this.perm[Y + P + this.perm[N + A + this.perm[O + D]]] % 12, ce = this.perm[Y + 1 + this.perm[N + 1 + this.perm[O + 1]]] % 12;
2354
2354
  let pe = 0.6 - w * w - x * x - _ * _;
2355
2355
  pe < 0 ? i = 0 : (pe *= pe, i = pe * pe * this._dot3(this.grad3[te], w, x, _));
2356
2356
  let se = 0.6 - z * z - T * T - k * k;
@@ -2372,13 +2372,13 @@ class sa {
2372
2372
  noise4d(e, t, n, i) {
2373
2373
  const s = this.grad4, r = this.simplex, a = this.perm, l = (Math.sqrt(5) - 1) / 4, h = (5 - Math.sqrt(5)) / 20;
2374
2374
  let c, d, m, p, f;
2375
- const u = (e + t + n + i) * l, g = Math.floor(e + u), y = Math.floor(t + u), w = Math.floor(n + u), x = Math.floor(i + u), _ = (g + y + w + x) * h, v = g - _, C = y - _, E = w - _, P = x - _, A = e - v, R = t - C, z = n - E, T = i - P, k = A > R ? 32 : 0, b = A > z ? 16 : 0, I = R > z ? 8 : 0, U = A > T ? 4 : 0, F = R > T ? 2 : 0, K = z > T ? 1 : 0, H = k + b + I + U + F + K, Y = r[H][0] >= 3 ? 1 : 0, N = r[H][1] >= 3 ? 1 : 0, O = r[H][2] >= 3 ? 1 : 0, te = r[H][3] >= 3 ? 1 : 0, ee = r[H][0] >= 2 ? 1 : 0, q = r[H][1] >= 2 ? 1 : 0, ce = r[H][2] >= 2 ? 1 : 0, pe = r[H][3] >= 2 ? 1 : 0, se = r[H][0] >= 1 ? 1 : 0, oe = r[H][1] >= 1 ? 1 : 0, ue = r[H][2] >= 1 ? 1 : 0, me = r[H][3] >= 1 ? 1 : 0, Te = A - Y + h, Ie = R - N + h, S = z - O + h, W = T - te + h, G = A - ee + 2 * h, L = R - q + 2 * h, D = z - ce + 2 * h, B = T - pe + 2 * h, X = A - se + 3 * h, Z = R - oe + 3 * h, V = z - ue + 3 * h, $ = T - me + 3 * h, ne = A - 1 + 4 * h, Q = R - 1 + 4 * h, ie = z - 1 + 4 * h, he = T - 1 + 4 * h, ae = g & 255, Ee = y & 255, Je = w & 255, De = x & 255, Bt = a[ae + a[Ee + a[Je + a[De]]]] % 32, ye = a[ae + Y + a[Ee + N + a[Je + O + a[De + te]]]] % 32, sn = a[ae + ee + a[Ee + q + a[Je + ce + a[De + pe]]]] % 32, Mn = a[ae + se + a[Ee + oe + a[Je + ue + a[De + me]]]] % 32, Qe = a[ae + 1 + a[Ee + 1 + a[Je + 1 + a[De + 1]]]] % 32;
2376
- let Tt = 0.6 - A * A - R * R - z * z - T * T;
2377
- Tt < 0 ? c = 0 : (Tt *= Tt, c = Tt * Tt * this._dot4(s[Bt], A, R, z, T));
2375
+ const u = (e + t + n + i) * l, g = Math.floor(e + u), y = Math.floor(t + u), w = Math.floor(n + u), x = Math.floor(i + u), _ = (g + y + w + x) * h, v = g - _, C = y - _, E = w - _, P = x - _, A = e - v, D = t - C, z = n - E, T = i - P, k = A > D ? 32 : 0, b = A > z ? 16 : 0, I = D > z ? 8 : 0, U = A > T ? 4 : 0, F = D > T ? 2 : 0, K = z > T ? 1 : 0, H = k + b + I + U + F + K, Y = r[H][0] >= 3 ? 1 : 0, N = r[H][1] >= 3 ? 1 : 0, O = r[H][2] >= 3 ? 1 : 0, te = r[H][3] >= 3 ? 1 : 0, ee = r[H][0] >= 2 ? 1 : 0, q = r[H][1] >= 2 ? 1 : 0, ce = r[H][2] >= 2 ? 1 : 0, pe = r[H][3] >= 2 ? 1 : 0, se = r[H][0] >= 1 ? 1 : 0, oe = r[H][1] >= 1 ? 1 : 0, ue = r[H][2] >= 1 ? 1 : 0, me = r[H][3] >= 1 ? 1 : 0, Te = A - Y + h, Ie = D - N + h, S = z - O + h, W = T - te + h, G = A - ee + 2 * h, L = D - q + 2 * h, R = z - ce + 2 * h, B = T - pe + 2 * h, X = A - se + 3 * h, Z = D - oe + 3 * h, V = z - ue + 3 * h, $ = T - me + 3 * h, ne = A - 1 + 4 * h, Q = D - 1 + 4 * h, ie = z - 1 + 4 * h, he = T - 1 + 4 * h, ae = g & 255, Ee = y & 255, Je = w & 255, Re = x & 255, Bt = a[ae + a[Ee + a[Je + a[Re]]]] % 32, ye = a[ae + Y + a[Ee + N + a[Je + O + a[Re + te]]]] % 32, sn = a[ae + ee + a[Ee + q + a[Je + ce + a[Re + pe]]]] % 32, Mn = a[ae + se + a[Ee + oe + a[Je + ue + a[Re + me]]]] % 32, Qe = a[ae + 1 + a[Ee + 1 + a[Je + 1 + a[Re + 1]]]] % 32;
2376
+ let Tt = 0.6 - A * A - D * D - z * z - T * T;
2377
+ Tt < 0 ? c = 0 : (Tt *= Tt, c = Tt * Tt * this._dot4(s[Bt], A, D, z, T));
2378
2378
  let Nt = 0.6 - Te * Te - Ie * Ie - S * S - W * W;
2379
2379
  Nt < 0 ? d = 0 : (Nt *= Nt, d = Nt * Nt * this._dot4(s[ye], Te, Ie, S, W));
2380
- let Ft = 0.6 - G * G - L * L - D * D - B * B;
2381
- Ft < 0 ? m = 0 : (Ft *= Ft, m = Ft * Ft * this._dot4(s[sn], G, L, D, B));
2380
+ let Ft = 0.6 - G * G - L * L - R * R - B * B;
2381
+ Ft < 0 ? m = 0 : (Ft *= Ft, m = Ft * Ft * this._dot4(s[sn], G, L, R, B));
2382
2382
  let Ut = 0.6 - X * X - Z * Z - V * V - $ * $;
2383
2383
  Ut < 0 ? p = 0 : (Ut *= Ut, p = Ut * Ut * this._dot4(s[Mn], X, Z, V, $));
2384
2384
  let Et = 0.6 - ne * ne - Q * Q - ie * ie - he * he;
@@ -3490,9 +3490,9 @@ function si(o) {
3490
3490
  throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
3491
3491
  }
3492
3492
  var os = { exports: {} };
3493
- var Dr;
3493
+ var Rr;
3494
3494
  function wc() {
3495
- return Dr || (Dr = 1, (function(o, e) {
3495
+ return Rr || (Rr = 1, (function(o, e) {
3496
3496
  (function(t) {
3497
3497
  o.exports = t();
3498
3498
  })(function() {
@@ -3607,7 +3607,7 @@ function wc() {
3607
3607
  return g;
3608
3608
  }
3609
3609
  function r(p, f, u, g, y, w) {
3610
- var x, _, v = p.file, C = p.compression, E = w !== h.utf8encode, P = a.transformTo("string", w(v.name)), A = a.transformTo("string", h.utf8encode(v.name)), R = v.comment, z = a.transformTo("string", w(R)), T = a.transformTo("string", h.utf8encode(R)), k = A.length !== v.name.length, b = T.length !== R.length, I = "", U = "", F = "", K = v.dir, H = v.date, Y = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
3610
+ var x, _, v = p.file, C = p.compression, E = w !== h.utf8encode, P = a.transformTo("string", w(v.name)), A = a.transformTo("string", h.utf8encode(v.name)), D = v.comment, z = a.transformTo("string", w(D)), T = a.transformTo("string", h.utf8encode(D)), k = A.length !== v.name.length, b = T.length !== D.length, I = "", U = "", F = "", K = v.dir, H = v.date, Y = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
3611
3611
  f && !u || (Y.crc32 = p.crc32, Y.compressedSize = p.compressedSize, Y.uncompressedSize = p.uncompressedSize);
3612
3612
  var N = 0;
3613
3613
  f && (N |= 8), E || !k && !b || (N |= 2048);
@@ -3789,13 +3789,13 @@ function wc() {
3789
3789
  } };
3790
3790
  }, {}], 15: [function(t, n, i) {
3791
3791
  function s(v, C, E) {
3792
- var P, A = a.getTypeOf(C), R = a.extend(E || {}, c);
3793
- R.date = R.date || /* @__PURE__ */ new Date(), R.compression !== null && (R.compression = R.compression.toUpperCase()), typeof R.unixPermissions == "string" && (R.unixPermissions = parseInt(R.unixPermissions, 8)), R.unixPermissions && 16384 & R.unixPermissions && (R.dir = !0), R.dosPermissions && 16 & R.dosPermissions && (R.dir = !0), R.dir && (v = y(v)), R.createFolders && (P = g(v)) && w.call(this, P, !0);
3794
- var z = A === "string" && R.binary === !1 && R.base64 === !1;
3795
- E && E.binary !== void 0 || (R.binary = !z), (C instanceof d && C.uncompressedSize === 0 || R.dir || !C || C.length === 0) && (R.base64 = !1, R.binary = !0, C = "", R.compression = "STORE", A = "string");
3792
+ var P, A = a.getTypeOf(C), D = a.extend(E || {}, c);
3793
+ D.date = D.date || /* @__PURE__ */ new Date(), D.compression !== null && (D.compression = D.compression.toUpperCase()), typeof D.unixPermissions == "string" && (D.unixPermissions = parseInt(D.unixPermissions, 8)), D.unixPermissions && 16384 & D.unixPermissions && (D.dir = !0), D.dosPermissions && 16 & D.dosPermissions && (D.dir = !0), D.dir && (v = y(v)), D.createFolders && (P = g(v)) && w.call(this, P, !0);
3794
+ var z = A === "string" && D.binary === !1 && D.base64 === !1;
3795
+ E && E.binary !== void 0 || (D.binary = !z), (C instanceof d && C.uncompressedSize === 0 || D.dir || !C || C.length === 0) && (D.base64 = !1, D.binary = !0, C = "", D.compression = "STORE", A = "string");
3796
3796
  var T = null;
3797
- T = C instanceof d || C instanceof l ? C : f.isNode && f.isStream(C) ? new u(v, C) : a.prepareContent(v, C, R.binary, R.optimizedBinaryString, R.base64);
3798
- var k = new m(v, T, R);
3797
+ T = C instanceof d || C instanceof l ? C : f.isNode && f.isStream(C) ? new u(v, C) : a.prepareContent(v, C, D.binary, D.optimizedBinaryString, D.base64);
3798
+ var k = new m(v, T, D);
3799
3799
  this.files[v] = k;
3800
3800
  }
3801
3801
  var r = t("./utf8"), a = t("./utils"), l = t("./stream/GenericWorker"), h = t("./stream/StreamHelper"), c = t("./defaults"), d = t("./compressedObject"), m = t("./zipObject"), p = t("./generate"), f = t("./nodejsUtils"), u = t("./nodejs/NodejsStreamInputAdapter"), g = function(v) {
@@ -3824,16 +3824,16 @@ function wc() {
3824
3824
  if (arguments.length !== 1) return v = this.root + v, s.call(this, v, C, E), this;
3825
3825
  if (x(v)) {
3826
3826
  var P = v;
3827
- return this.filter(function(R, z) {
3828
- return !z.dir && P.test(R);
3827
+ return this.filter(function(D, z) {
3828
+ return !z.dir && P.test(D);
3829
3829
  });
3830
3830
  }
3831
3831
  var A = this.files[this.root + v];
3832
3832
  return A && !A.dir ? A : null;
3833
3833
  }, folder: function(v) {
3834
3834
  if (!v) return this;
3835
- if (x(v)) return this.filter(function(A, R) {
3836
- return R.dir && v.test(A);
3835
+ if (x(v)) return this.filter(function(A, D) {
3836
+ return D.dir && v.test(A);
3837
3837
  });
3838
3838
  var C = this.root + v, E = w.call(this, C), P = this.clone();
3839
3839
  return P.root = E.name, P;
@@ -3841,8 +3841,8 @@ function wc() {
3841
3841
  v = this.root + v;
3842
3842
  var C = this.files[v];
3843
3843
  if (C || (v.slice(-1) !== "/" && (v += "/"), C = this.files[v]), C && !C.dir) delete this.files[v];
3844
- else for (var E = this.filter(function(A, R) {
3845
- return R.name.slice(0, v.length) === v;
3844
+ else for (var E = this.filter(function(A, D) {
3845
+ return D.name.slice(0, v.length) === v;
3846
3846
  }), P = 0; P < E.length; P++) delete this.files[E[P].name];
3847
3847
  return this;
3848
3848
  }, generate: function() {
@@ -4099,7 +4099,7 @@ function wc() {
4099
4099
  return s.transformTo(E, P);
4100
4100
  }
4101
4101
  })(_, (function(E, P) {
4102
- var A, R = 0, z = null, T = 0;
4102
+ var A, D = 0, z = null, T = 0;
4103
4103
  for (A = 0; A < P.length; A++) T += P[A].length;
4104
4104
  switch (E) {
4105
4105
  case "string":
@@ -4107,7 +4107,7 @@ function wc() {
4107
4107
  case "array":
4108
4108
  return Array.prototype.concat.apply([], P);
4109
4109
  case "uint8array":
4110
- for (z = new Uint8Array(T), A = 0; A < P.length; A++) z.set(P[A], R), R += P[A].length;
4110
+ for (z = new Uint8Array(T), A = 0; A < P.length; A++) z.set(P[A], D), D += P[A].length;
4111
4111
  return z;
4112
4112
  case "nodebuffer":
4113
4113
  return Buffer.concat(P);
@@ -4653,8 +4653,8 @@ function wc() {
4653
4653
  if (!x) return this.resolve([]);
4654
4654
  for (var v = new Array(x), C = 0, E = -1, P = new this(r); ++E < x; ) A(y[E], E);
4655
4655
  return P;
4656
- function A(R, z) {
4657
- w.resolve(R).then(function(T) {
4656
+ function A(D, z) {
4657
+ w.resolve(D).then(function(T) {
4658
4658
  v[z] = T, ++C !== x || _ || (_ = !0, a.resolve(P, v));
4659
4659
  }, function(T) {
4660
4660
  _ || (_ = !0, a.reject(P, T));
@@ -4731,12 +4731,12 @@ function wc() {
4731
4731
  return y.result;
4732
4732
  }
4733
4733
  p.prototype.push = function(u, g) {
4734
- var y, w, x, _, v, C, E = this.strm, P = this.options.chunkSize, A = this.options.dictionary, R = !1;
4734
+ var y, w, x, _, v, C, E = this.strm, P = this.options.chunkSize, A = this.options.dictionary, D = !1;
4735
4735
  if (this.ended) return !1;
4736
4736
  w = g === ~~g ? g : g === !0 ? l.Z_FINISH : l.Z_NO_FLUSH, typeof u == "string" ? E.input = a.binstring2buf(u) : m.call(u) === "[object ArrayBuffer]" ? E.input = new Uint8Array(u) : E.input = u, E.next_in = 0, E.avail_in = E.input.length;
4737
4737
  do {
4738
- if (E.avail_out === 0 && (E.output = new r.Buf8(P), E.next_out = 0, E.avail_out = P), (y = s.inflate(E, l.Z_NO_FLUSH)) === l.Z_NEED_DICT && A && (C = typeof A == "string" ? a.string2buf(A) : m.call(A) === "[object ArrayBuffer]" ? new Uint8Array(A) : A, y = s.inflateSetDictionary(this.strm, C)), y === l.Z_BUF_ERROR && R === !0 && (y = l.Z_OK, R = !1), y !== l.Z_STREAM_END && y !== l.Z_OK) return this.onEnd(y), !(this.ended = !0);
4739
- E.next_out && (E.avail_out !== 0 && y !== l.Z_STREAM_END && (E.avail_in !== 0 || w !== l.Z_FINISH && w !== l.Z_SYNC_FLUSH) || (this.options.to === "string" ? (x = a.utf8border(E.output, E.next_out), _ = E.next_out - x, v = a.buf2string(E.output, x), E.next_out = _, E.avail_out = P - _, _ && r.arraySet(E.output, E.output, x, _, 0), this.onData(v)) : this.onData(r.shrinkBuf(E.output, E.next_out)))), E.avail_in === 0 && E.avail_out === 0 && (R = !0);
4738
+ if (E.avail_out === 0 && (E.output = new r.Buf8(P), E.next_out = 0, E.avail_out = P), (y = s.inflate(E, l.Z_NO_FLUSH)) === l.Z_NEED_DICT && A && (C = typeof A == "string" ? a.string2buf(A) : m.call(A) === "[object ArrayBuffer]" ? new Uint8Array(A) : A, y = s.inflateSetDictionary(this.strm, C)), y === l.Z_BUF_ERROR && D === !0 && (y = l.Z_OK, D = !1), y !== l.Z_STREAM_END && y !== l.Z_OK) return this.onEnd(y), !(this.ended = !0);
4739
+ E.next_out && (E.avail_out !== 0 && y !== l.Z_STREAM_END && (E.avail_in !== 0 || w !== l.Z_FINISH && w !== l.Z_SYNC_FLUSH) || (this.options.to === "string" ? (x = a.utf8border(E.output, E.next_out), _ = E.next_out - x, v = a.buf2string(E.output, x), E.next_out = _, E.avail_out = P - _, _ && r.arraySet(E.output, E.output, x, _, 0), this.onData(v)) : this.onData(r.shrinkBuf(E.output, E.next_out)))), E.avail_in === 0 && E.avail_out === 0 && (D = !0);
4740
4740
  } while ((0 < E.avail_in || E.avail_out === 0) && y !== l.Z_STREAM_END);
4741
4741
  return y === l.Z_STREAM_END && (w = l.Z_FINISH), w === l.Z_FINISH ? (y = s.inflateEnd(this.strm), this.onEnd(y), this.ended = !0, y === l.Z_OK) : w !== l.Z_SYNC_FLUSH || (this.onEnd(l.Z_OK), !(E.avail_out = 0));
4742
4742
  }, p.prototype.onData = function(u) {
@@ -4844,7 +4844,7 @@ function wc() {
4844
4844
  return -1 ^ r;
4845
4845
  };
4846
4846
  }, {}], 46: [function(t, n, i) {
4847
- var s, r = t("../utils/common"), a = t("./trees"), l = t("./adler32"), h = t("./crc32"), c = t("./messages"), d = 0, m = 4, p = 0, f = -2, u = -1, g = 4, y = 2, w = 8, x = 9, _ = 286, v = 30, C = 19, E = 2 * _ + 1, P = 15, A = 3, R = 258, z = R + A + 1, T = 42, k = 113, b = 1, I = 2, U = 3, F = 4;
4847
+ var s, r = t("../utils/common"), a = t("./trees"), l = t("./adler32"), h = t("./crc32"), c = t("./messages"), d = 0, m = 4, p = 0, f = -2, u = -1, g = 4, y = 2, w = 8, x = 9, _ = 286, v = 30, C = 19, E = 2 * _ + 1, P = 15, A = 3, D = 258, z = D + A + 1, T = 42, k = 113, b = 1, I = 2, U = 3, F = 4;
4848
4848
  function K(S, W) {
4849
4849
  return S.msg = c[W], W;
4850
4850
  }
@@ -4868,32 +4868,32 @@ function wc() {
4868
4868
  S.pending_buf[S.pending++] = W >>> 8 & 255, S.pending_buf[S.pending++] = 255 & W;
4869
4869
  }
4870
4870
  function q(S, W) {
4871
- var G, L, D = S.max_chain_length, B = S.strstart, X = S.prev_length, Z = S.nice_match, V = S.strstart > S.w_size - z ? S.strstart - (S.w_size - z) : 0, $ = S.window, ne = S.w_mask, Q = S.prev, ie = S.strstart + R, he = $[B + X - 1], ae = $[B + X];
4872
- S.prev_length >= S.good_match && (D >>= 2), Z > S.lookahead && (Z = S.lookahead);
4871
+ var G, L, R = S.max_chain_length, B = S.strstart, X = S.prev_length, Z = S.nice_match, V = S.strstart > S.w_size - z ? S.strstart - (S.w_size - z) : 0, $ = S.window, ne = S.w_mask, Q = S.prev, ie = S.strstart + D, he = $[B + X - 1], ae = $[B + X];
4872
+ S.prev_length >= S.good_match && (R >>= 2), Z > S.lookahead && (Z = S.lookahead);
4873
4873
  do
4874
4874
  if ($[(G = W) + X] === ae && $[G + X - 1] === he && $[G] === $[B] && $[++G] === $[B + 1]) {
4875
4875
  B += 2, G++;
4876
4876
  do
4877
4877
  ;
4878
4878
  while ($[++B] === $[++G] && $[++B] === $[++G] && $[++B] === $[++G] && $[++B] === $[++G] && $[++B] === $[++G] && $[++B] === $[++G] && $[++B] === $[++G] && $[++B] === $[++G] && B < ie);
4879
- if (L = R - (ie - B), B = ie - R, X < L) {
4879
+ if (L = D - (ie - B), B = ie - D, X < L) {
4880
4880
  if (S.match_start = W, Z <= (X = L)) break;
4881
4881
  he = $[B + X - 1], ae = $[B + X];
4882
4882
  }
4883
4883
  }
4884
- while ((W = Q[W & ne]) > V && --D != 0);
4884
+ while ((W = Q[W & ne]) > V && --R != 0);
4885
4885
  return X <= S.lookahead ? X : S.lookahead;
4886
4886
  }
4887
4887
  function ce(S) {
4888
- var W, G, L, D, B, X, Z, V, $, ne, Q = S.w_size;
4888
+ var W, G, L, R, B, X, Z, V, $, ne, Q = S.w_size;
4889
4889
  do {
4890
- if (D = S.window_size - S.lookahead - S.strstart, S.strstart >= Q + (Q - z)) {
4890
+ if (R = S.window_size - S.lookahead - S.strstart, S.strstart >= Q + (Q - z)) {
4891
4891
  for (r.arraySet(S.window, S.window, Q, Q, 0), S.match_start -= Q, S.strstart -= Q, S.block_start -= Q, W = G = S.hash_size; L = S.head[--W], S.head[W] = Q <= L ? L - Q : 0, --G; ) ;
4892
4892
  for (W = G = Q; L = S.prev[--W], S.prev[W] = Q <= L ? L - Q : 0, --G; ) ;
4893
- D += Q;
4893
+ R += Q;
4894
4894
  }
4895
4895
  if (S.strm.avail_in === 0) break;
4896
- if (X = S.strm, Z = S.window, V = S.strstart + S.lookahead, $ = D, ne = void 0, ne = X.avail_in, $ < ne && (ne = $), G = ne === 0 ? 0 : (X.avail_in -= ne, r.arraySet(Z, X.input, X.next_in, ne, V), X.state.wrap === 1 ? X.adler = l(X.adler, Z, ne, V) : X.state.wrap === 2 && (X.adler = h(X.adler, Z, ne, V)), X.next_in += ne, X.total_in += ne, ne), S.lookahead += G, S.lookahead + S.insert >= A) for (B = S.strstart - S.insert, S.ins_h = S.window[B], S.ins_h = (S.ins_h << S.hash_shift ^ S.window[B + 1]) & S.hash_mask; S.insert && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[B + A - 1]) & S.hash_mask, S.prev[B & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = B, B++, S.insert--, !(S.lookahead + S.insert < A)); ) ;
4896
+ if (X = S.strm, Z = S.window, V = S.strstart + S.lookahead, $ = R, ne = void 0, ne = X.avail_in, $ < ne && (ne = $), G = ne === 0 ? 0 : (X.avail_in -= ne, r.arraySet(Z, X.input, X.next_in, ne, V), X.state.wrap === 1 ? X.adler = l(X.adler, Z, ne, V) : X.state.wrap === 2 && (X.adler = h(X.adler, Z, ne, V)), X.next_in += ne, X.total_in += ne, ne), S.lookahead += G, S.lookahead + S.insert >= A) for (B = S.strstart - S.insert, S.ins_h = S.window[B], S.ins_h = (S.ins_h << S.hash_shift ^ S.window[B + 1]) & S.hash_mask; S.insert && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[B + A - 1]) & S.hash_mask, S.prev[B & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = B, B++, S.insert--, !(S.lookahead + S.insert < A)); ) ;
4897
4897
  } while (S.lookahead < z && S.strm.avail_in !== 0);
4898
4898
  }
4899
4899
  function pe(S, W) {
@@ -4912,13 +4912,13 @@ function wc() {
4912
4912
  return S.insert = S.strstart < A - 1 ? S.strstart : A - 1, W === m ? (O(S, !0), S.strm.avail_out === 0 ? U : F) : S.last_lit && (O(S, !1), S.strm.avail_out === 0) ? b : I;
4913
4913
  }
4914
4914
  function se(S, W) {
4915
- for (var G, L, D; ; ) {
4915
+ for (var G, L, R; ; ) {
4916
4916
  if (S.lookahead < z) {
4917
4917
  if (ce(S), S.lookahead < z && W === d) return b;
4918
4918
  if (S.lookahead === 0) break;
4919
4919
  }
4920
4920
  if (G = 0, S.lookahead >= A && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + A - 1]) & S.hash_mask, G = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), S.prev_length = S.match_length, S.prev_match = S.match_start, S.match_length = A - 1, G !== 0 && S.prev_length < S.max_lazy_match && S.strstart - G <= S.w_size - z && (S.match_length = q(S, G), S.match_length <= 5 && (S.strategy === 1 || S.match_length === A && 4096 < S.strstart - S.match_start) && (S.match_length = A - 1)), S.prev_length >= A && S.match_length <= S.prev_length) {
4921
- for (D = S.strstart + S.lookahead - A, L = a._tr_tally(S, S.strstart - 1 - S.prev_match, S.prev_length - A), S.lookahead -= S.prev_length - 1, S.prev_length -= 2; ++S.strstart <= D && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + A - 1]) & S.hash_mask, G = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), --S.prev_length != 0; ) ;
4921
+ for (R = S.strstart + S.lookahead - A, L = a._tr_tally(S, S.strstart - 1 - S.prev_match, S.prev_length - A), S.lookahead -= S.prev_length - 1, S.prev_length -= 2; ++S.strstart <= R && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + A - 1]) & S.hash_mask, G = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), --S.prev_length != 0; ) ;
4922
4922
  if (S.match_available = 0, S.match_length = A - 1, S.strstart++, L && (O(S, !1), S.strm.avail_out === 0)) return b;
4923
4923
  } else if (S.match_available) {
4924
4924
  if ((L = a._tr_tally(S, 0, S.window[S.strstart - 1])) && O(S, !1), S.strstart++, S.lookahead--, S.strm.avail_out === 0) return b;
@@ -4926,8 +4926,8 @@ function wc() {
4926
4926
  }
4927
4927
  return S.match_available && (L = a._tr_tally(S, 0, S.window[S.strstart - 1]), S.match_available = 0), S.insert = S.strstart < A - 1 ? S.strstart : A - 1, W === m ? (O(S, !0), S.strm.avail_out === 0 ? U : F) : S.last_lit && (O(S, !1), S.strm.avail_out === 0) ? b : I;
4928
4928
  }
4929
- function oe(S, W, G, L, D) {
4930
- this.good_length = S, this.max_lazy = W, this.nice_length = G, this.max_chain = L, this.func = D;
4929
+ function oe(S, W, G, L, R) {
4930
+ this.good_length = S, this.max_lazy = W, this.nice_length = G, this.max_chain = L, this.func = R;
4931
4931
  }
4932
4932
  function ue() {
4933
4933
  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 = w, 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 * E), this.dyn_dtree = new r.Buf16(2 * (2 * v + 1)), this.bl_tree = new r.Buf16(2 * (2 * C + 1)), Y(this.dyn_ltree), Y(this.dyn_dtree), Y(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new r.Buf16(P + 1), this.heap = new r.Buf16(2 * _ + 1), Y(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new r.Buf16(2 * _ + 1), Y(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;
@@ -4942,13 +4942,13 @@ function wc() {
4942
4942
  G.window_size = 2 * G.w_size, Y(G.head), G.max_lazy_match = s[G.level].max_lazy, G.good_match = s[G.level].good_length, G.nice_match = s[G.level].nice_length, G.max_chain_length = s[G.level].max_chain, G.strstart = 0, G.block_start = 0, G.lookahead = 0, G.insert = 0, G.match_length = G.prev_length = A - 1, G.match_available = 0, G.ins_h = 0;
4943
4943
  })(S.state), W;
4944
4944
  }
4945
- function Ie(S, W, G, L, D, B) {
4945
+ function Ie(S, W, G, L, R, B) {
4946
4946
  if (!S) return f;
4947
4947
  var X = 1;
4948
- if (W === u && (W = 6), L < 0 ? (X = 0, L = -L) : 15 < L && (X = 2, L -= 16), D < 1 || x < D || G !== w || L < 8 || 15 < L || W < 0 || 9 < W || B < 0 || g < B) return K(S, f);
4948
+ if (W === u && (W = 6), L < 0 ? (X = 0, L = -L) : 15 < L && (X = 2, L -= 16), R < 1 || x < R || G !== w || L < 8 || 15 < L || W < 0 || 9 < W || B < 0 || g < B) return K(S, f);
4949
4949
  L === 8 && (L = 9);
4950
4950
  var Z = new ue();
4951
- return (S.state = Z).strm = S, Z.wrap = X, Z.gzhead = null, Z.w_bits = L, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = D + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + A - 1) / A), 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 << D + 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 = W, Z.strategy = B, Z.method = G, Te(S);
4951
+ return (S.state = Z).strm = S, Z.wrap = X, Z.gzhead = null, Z.w_bits = L, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = R + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + A - 1) / A), 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 << R + 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 = W, Z.strategy = B, Z.method = G, Te(S);
4952
4952
  }
4953
4953
  s = [new oe(0, 0, 0, 0, function(S, W) {
4954
4954
  var G = 65535;
@@ -4967,7 +4967,7 @@ function wc() {
4967
4967
  }, i.deflateInit2 = Ie, i.deflateReset = Te, i.deflateResetKeep = me, i.deflateSetHeader = function(S, W) {
4968
4968
  return S && S.state ? S.state.wrap !== 2 ? f : (S.state.gzhead = W, p) : f;
4969
4969
  }, i.deflate = function(S, W) {
4970
- var G, L, D, B;
4970
+ var G, L, R, B;
4971
4971
  if (!S || !S.state || 5 < W || W < 0) return S ? K(S, f) : f;
4972
4972
  if (L = S.state, !S.output || !S.input && S.avail_in !== 0 || L.status === 666 && W !== m) return K(S, S.avail_out === 0 ? -5 : f);
4973
4973
  if (L.strm = S, G = L.last_flush, L.last_flush = W, L.status === T) if (L.wrap === 2) S.adler = 0, te(L, 31), te(L, 139), te(L, 8), L.gzhead ? (te(L, (L.gzhead.text ? 1 : 0) + (L.gzhead.hcrc ? 2 : 0) + (L.gzhead.extra ? 4 : 0) + (L.gzhead.name ? 8 : 0) + (L.gzhead.comment ? 16 : 0)), te(L, 255 & L.gzhead.time), te(L, L.gzhead.time >> 8 & 255), te(L, L.gzhead.time >> 16 & 255), te(L, L.gzhead.time >> 24 & 255), te(L, L.level === 9 ? 2 : 2 <= L.strategy || L.level < 2 ? 4 : 0), te(L, 255 & L.gzhead.os), L.gzhead.extra && L.gzhead.extra.length && (te(L, 255 & L.gzhead.extra.length), te(L, L.gzhead.extra.length >> 8 & 255)), L.gzhead.hcrc && (S.adler = h(S.adler, L.pending_buf, L.pending, 0)), L.gzindex = 0, L.status = 69) : (te(L, 0), te(L, 0), te(L, 0), te(L, 0), te(L, 0), te(L, L.level === 9 ? 2 : 2 <= L.strategy || L.level < 2 ? 4 : 0), te(L, 3), L.status = k);
@@ -4976,30 +4976,30 @@ function wc() {
4976
4976
  X |= (2 <= L.strategy || L.level < 2 ? 0 : L.level < 6 ? 1 : L.level === 6 ? 2 : 3) << 6, L.strstart !== 0 && (X |= 32), X += 31 - X % 31, L.status = k, ee(L, X), L.strstart !== 0 && (ee(L, S.adler >>> 16), ee(L, 65535 & S.adler)), S.adler = 1;
4977
4977
  }
4978
4978
  if (L.status === 69) if (L.gzhead.extra) {
4979
- for (D = L.pending; L.gzindex < (65535 & L.gzhead.extra.length) && (L.pending !== L.pending_buf_size || (L.gzhead.hcrc && L.pending > D && (S.adler = h(S.adler, L.pending_buf, L.pending - D, D)), N(S), D = L.pending, L.pending !== L.pending_buf_size)); ) te(L, 255 & L.gzhead.extra[L.gzindex]), L.gzindex++;
4980
- L.gzhead.hcrc && L.pending > D && (S.adler = h(S.adler, L.pending_buf, L.pending - D, D)), L.gzindex === L.gzhead.extra.length && (L.gzindex = 0, L.status = 73);
4979
+ for (R = L.pending; L.gzindex < (65535 & L.gzhead.extra.length) && (L.pending !== L.pending_buf_size || (L.gzhead.hcrc && L.pending > R && (S.adler = h(S.adler, L.pending_buf, L.pending - R, R)), N(S), R = L.pending, L.pending !== L.pending_buf_size)); ) te(L, 255 & L.gzhead.extra[L.gzindex]), L.gzindex++;
4980
+ L.gzhead.hcrc && L.pending > R && (S.adler = h(S.adler, L.pending_buf, L.pending - R, R)), L.gzindex === L.gzhead.extra.length && (L.gzindex = 0, L.status = 73);
4981
4981
  } else L.status = 73;
4982
4982
  if (L.status === 73) if (L.gzhead.name) {
4983
- D = L.pending;
4983
+ R = L.pending;
4984
4984
  do {
4985
- if (L.pending === L.pending_buf_size && (L.gzhead.hcrc && L.pending > D && (S.adler = h(S.adler, L.pending_buf, L.pending - D, D)), N(S), D = L.pending, L.pending === L.pending_buf_size)) {
4985
+ if (L.pending === L.pending_buf_size && (L.gzhead.hcrc && L.pending > R && (S.adler = h(S.adler, L.pending_buf, L.pending - R, R)), N(S), R = L.pending, L.pending === L.pending_buf_size)) {
4986
4986
  B = 1;
4987
4987
  break;
4988
4988
  }
4989
4989
  B = L.gzindex < L.gzhead.name.length ? 255 & L.gzhead.name.charCodeAt(L.gzindex++) : 0, te(L, B);
4990
4990
  } while (B !== 0);
4991
- L.gzhead.hcrc && L.pending > D && (S.adler = h(S.adler, L.pending_buf, L.pending - D, D)), B === 0 && (L.gzindex = 0, L.status = 91);
4991
+ L.gzhead.hcrc && L.pending > R && (S.adler = h(S.adler, L.pending_buf, L.pending - R, R)), B === 0 && (L.gzindex = 0, L.status = 91);
4992
4992
  } else L.status = 91;
4993
4993
  if (L.status === 91) if (L.gzhead.comment) {
4994
- D = L.pending;
4994
+ R = L.pending;
4995
4995
  do {
4996
- if (L.pending === L.pending_buf_size && (L.gzhead.hcrc && L.pending > D && (S.adler = h(S.adler, L.pending_buf, L.pending - D, D)), N(S), D = L.pending, L.pending === L.pending_buf_size)) {
4996
+ if (L.pending === L.pending_buf_size && (L.gzhead.hcrc && L.pending > R && (S.adler = h(S.adler, L.pending_buf, L.pending - R, R)), N(S), R = L.pending, L.pending === L.pending_buf_size)) {
4997
4997
  B = 1;
4998
4998
  break;
4999
4999
  }
5000
5000
  B = L.gzindex < L.gzhead.comment.length ? 255 & L.gzhead.comment.charCodeAt(L.gzindex++) : 0, te(L, B);
5001
5001
  } while (B !== 0);
5002
- L.gzhead.hcrc && L.pending > D && (S.adler = h(S.adler, L.pending_buf, L.pending - D, D)), B === 0 && (L.status = 103);
5002
+ L.gzhead.hcrc && L.pending > R && (S.adler = h(S.adler, L.pending_buf, L.pending - R, R)), B === 0 && (L.status = 103);
5003
5003
  } else L.status = 103;
5004
5004
  if (L.status === 103 && (L.gzhead.hcrc ? (L.pending + 2 > L.pending_buf_size && N(S), L.pending + 2 <= L.pending_buf_size && (te(L, 255 & S.adler), te(L, S.adler >> 8 & 255), S.adler = 0, L.status = k)) : L.status = k), L.pending !== 0) {
5005
5005
  if (N(S), S.avail_out === 0) return L.last_flush = -1, p;
@@ -5017,16 +5017,16 @@ function wc() {
5017
5017
  return V.insert = 0, $ === m ? (O(V, !0), V.strm.avail_out === 0 ? U : F) : V.last_lit && (O(V, !1), V.strm.avail_out === 0) ? b : I;
5018
5018
  })(L, W) : L.strategy === 3 ? (function(V, $) {
5019
5019
  for (var ne, Q, ie, he, ae = V.window; ; ) {
5020
- if (V.lookahead <= R) {
5021
- if (ce(V), V.lookahead <= R && $ === d) return b;
5020
+ if (V.lookahead <= D) {
5021
+ if (ce(V), V.lookahead <= D && $ === d) return b;
5022
5022
  if (V.lookahead === 0) break;
5023
5023
  }
5024
5024
  if (V.match_length = 0, V.lookahead >= A && 0 < V.strstart && (Q = ae[ie = V.strstart - 1]) === ae[++ie] && Q === ae[++ie] && Q === ae[++ie]) {
5025
- he = V.strstart + R;
5025
+ he = V.strstart + D;
5026
5026
  do
5027
5027
  ;
5028
5028
  while (Q === ae[++ie] && Q === ae[++ie] && Q === ae[++ie] && Q === ae[++ie] && Q === ae[++ie] && Q === ae[++ie] && Q === ae[++ie] && Q === ae[++ie] && ie < he);
5029
- V.match_length = R - (he - ie), V.match_length > V.lookahead && (V.match_length = V.lookahead);
5029
+ V.match_length = D - (he - ie), V.match_length > V.lookahead && (V.match_length = V.lookahead);
5030
5030
  }
5031
5031
  if (V.match_length >= A ? (ne = a._tr_tally(V, 1, V.match_length - A), V.lookahead -= V.match_length, V.strstart += V.match_length, V.match_length = 0) : (ne = a._tr_tally(V, 0, V.window[V.strstart]), V.lookahead--, V.strstart++), ne && (O(V, !1), V.strm.avail_out === 0)) return b;
5032
5032
  }
@@ -5040,10 +5040,10 @@ function wc() {
5040
5040
  var W;
5041
5041
  return S && S.state ? (W = S.state.status) !== T && W !== 69 && W !== 73 && W !== 91 && W !== 103 && W !== k && W !== 666 ? K(S, f) : (S.state = null, W === k ? K(S, -3) : p) : f;
5042
5042
  }, i.deflateSetDictionary = function(S, W) {
5043
- var G, L, D, B, X, Z, V, $, ne = W.length;
5043
+ var G, L, R, B, X, Z, V, $, ne = W.length;
5044
5044
  if (!S || !S.state || (B = (G = S.state).wrap) === 2 || B === 1 && G.status !== T || G.lookahead) return f;
5045
5045
  for (B === 1 && (S.adler = l(S.adler, W, ne, 0)), G.wrap = 0, ne >= G.w_size && (B === 0 && (Y(G.head), G.strstart = 0, G.block_start = 0, G.insert = 0), $ = new r.Buf8(G.w_size), r.arraySet($, W, ne - G.w_size, G.w_size, 0), W = $, ne = G.w_size), X = S.avail_in, Z = S.next_in, V = S.input, S.avail_in = ne, S.next_in = 0, S.input = W, ce(G); G.lookahead >= A; ) {
5046
- for (L = G.strstart, D = G.lookahead - (A - 1); G.ins_h = (G.ins_h << G.hash_shift ^ G.window[L + A - 1]) & G.hash_mask, G.prev[L & G.w_mask] = G.head[G.ins_h], G.head[G.ins_h] = L, L++, --D; ) ;
5046
+ for (L = G.strstart, R = G.lookahead - (A - 1); G.ins_h = (G.ins_h << G.hash_shift ^ G.window[L + A - 1]) & G.hash_mask, G.prev[L & G.w_mask] = G.head[G.ins_h], G.head[G.ins_h] = L, L++, --R; ) ;
5047
5047
  G.strstart = L, G.lookahead = A - 1, ce(G);
5048
5048
  }
5049
5049
  return G.strstart += G.lookahead, G.block_start = G.strstart, G.insert = G.lookahead, G.lookahead = 0, G.match_length = G.prev_length = A - 1, G.match_available = 0, S.next_in = Z, S.input = V, S.avail_in = X, G.wrap = B, p;
@@ -5054,7 +5054,7 @@ function wc() {
5054
5054
  };
5055
5055
  }, {}], 48: [function(t, n, i) {
5056
5056
  n.exports = function(s, r) {
5057
- var a, l, h, c, d, m, p, f, u, g, y, w, x, _, v, C, E, P, A, R, z, T, k, b, I;
5057
+ var a, l, h, c, d, m, p, f, u, g, y, w, x, _, v, C, E, P, A, D, z, T, k, b, I;
5058
5058
  a = s.state, l = s.next_in, b = s.input, h = l + (s.avail_in - 5), c = s.next_out, I = s.output, d = c - (r - s.avail_out), m = c + (s.avail_out - 257), p = a.dmax, f = a.wsize, u = a.whave, g = a.wnext, y = a.window, w = a.hold, x = a.bits, _ = a.lencode, v = a.distcode, C = (1 << a.lenbits) - 1, E = (1 << a.distbits) - 1;
5059
5059
  e: do {
5060
5060
  x < 15 && (w += b[l++] << x, x += 8, w += b[l++] << x, x += 8), P = _[w & C];
@@ -5073,7 +5073,7 @@ function wc() {
5073
5073
  s.msg = "invalid literal/length code", a.mode = 30;
5074
5074
  break e;
5075
5075
  }
5076
- R = 65535 & P, (A &= 15) && (x < A && (w += b[l++] << x, x += 8), R += w & (1 << A) - 1, w >>>= A, x -= A), x < 15 && (w += b[l++] << x, x += 8, w += b[l++] << x, x += 8), P = v[w & E];
5076
+ D = 65535 & P, (A &= 15) && (x < A && (w += b[l++] << x, x += 8), D += w & (1 << A) - 1, w >>>= A, x -= A), x < 15 && (w += b[l++] << x, x += 8, w += b[l++] << x, x += 8), P = v[w & E];
5077
5077
  n: for (; ; ) {
5078
5078
  if (w >>>= A = P >>> 24, x -= A, !(16 & (A = P >>> 16 & 255))) {
5079
5079
  if ((64 & A) == 0) {
@@ -5093,27 +5093,27 @@ function wc() {
5093
5093
  break e;
5094
5094
  }
5095
5095
  if (k = y, (T = 0) === g) {
5096
- if (T += f - A, A < R) {
5097
- for (R -= A; I[c++] = y[T++], --A; ) ;
5096
+ if (T += f - A, A < D) {
5097
+ for (D -= A; I[c++] = y[T++], --A; ) ;
5098
5098
  T = c - z, k = I;
5099
5099
  }
5100
5100
  } else if (g < A) {
5101
- if (T += f + g - A, (A -= g) < R) {
5102
- for (R -= A; I[c++] = y[T++], --A; ) ;
5103
- if (T = 0, g < R) {
5104
- for (R -= A = g; I[c++] = y[T++], --A; ) ;
5101
+ if (T += f + g - A, (A -= g) < D) {
5102
+ for (D -= A; I[c++] = y[T++], --A; ) ;
5103
+ if (T = 0, g < D) {
5104
+ for (D -= A = g; I[c++] = y[T++], --A; ) ;
5105
5105
  T = c - z, k = I;
5106
5106
  }
5107
5107
  }
5108
- } else if (T += g - A, A < R) {
5109
- for (R -= A; I[c++] = y[T++], --A; ) ;
5108
+ } else if (T += g - A, A < D) {
5109
+ for (D -= A; I[c++] = y[T++], --A; ) ;
5110
5110
  T = c - z, k = I;
5111
5111
  }
5112
- for (; 2 < R; ) I[c++] = k[T++], I[c++] = k[T++], I[c++] = k[T++], R -= 3;
5113
- R && (I[c++] = k[T++], 1 < R && (I[c++] = k[T++]));
5112
+ for (; 2 < D; ) I[c++] = k[T++], I[c++] = k[T++], I[c++] = k[T++], D -= 3;
5113
+ D && (I[c++] = k[T++], 1 < D && (I[c++] = k[T++]));
5114
5114
  } else {
5115
- for (T = c - z; I[c++] = I[T++], I[c++] = I[T++], I[c++] = I[T++], 2 < (R -= 3); ) ;
5116
- R && (I[c++] = I[T++], 1 < R && (I[c++] = I[T++]));
5115
+ for (T = c - z; I[c++] = I[T++], I[c++] = I[T++], I[c++] = I[T++], 2 < (D -= 3); ) ;
5116
+ D && (I[c++] = I[T++], 1 < D && (I[c++] = I[T++]));
5117
5117
  }
5118
5118
  break;
5119
5119
  }
@@ -5121,7 +5121,7 @@ function wc() {
5121
5121
  break;
5122
5122
  }
5123
5123
  } while (l < h && c < m);
5124
- l -= R = x >> 3, w &= (1 << (x -= R << 3)) - 1, s.next_in = l, s.next_out = c, s.avail_in = l < h ? h - l + 5 : 5 - (l - h), s.avail_out = c < m ? m - c + 257 : 257 - (c - m), a.hold = w, a.bits = x;
5124
+ l -= D = x >> 3, w &= (1 << (x -= D << 3)) - 1, s.next_in = l, s.next_out = c, s.avail_in = l < h ? h - l + 5 : 5 - (l - h), s.avail_out = c < m ? m - c + 257 : 257 - (c - m), a.hold = w, a.bits = x;
5125
5125
  };
5126
5126
  }, {}], 49: [function(t, n, i) {
5127
5127
  var s = t("../utils/common"), r = t("./adler32"), a = t("./crc32"), l = t("./inffast"), h = t("./inftrees"), c = 1, d = 2, m = 0, p = -2, f = 1, u = 852, g = 592;
@@ -5148,7 +5148,7 @@ function wc() {
5148
5148
  return T ? (I = new w(), (T.state = I).window = null, (b = v(T, k)) !== m && (T.state = null), b) : p;
5149
5149
  }
5150
5150
  var E, P, A = !0;
5151
- function R(T) {
5151
+ function D(T) {
5152
5152
  if (A) {
5153
5153
  var k;
5154
5154
  for (E = new s.Buf32(512), P = new s.Buf32(32), k = 0; k < 144; ) T.lens[k++] = 8;
@@ -5167,7 +5167,7 @@ function wc() {
5167
5167
  i.inflateReset = _, i.inflateReset2 = v, i.inflateResetKeep = x, i.inflateInit = function(T) {
5168
5168
  return C(T, 15);
5169
5169
  }, i.inflateInit2 = C, i.inflate = function(T, k) {
5170
- var b, I, U, F, K, H, Y, N, O, te, ee, q, ce, pe, se, oe, ue, me, Te, Ie, S, W, G, L, D = 0, B = new s.Buf8(4), X = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
5170
+ var b, I, U, F, K, H, Y, N, O, te, ee, q, ce, pe, se, oe, ue, me, Te, Ie, S, W, G, L, R = 0, B = new s.Buf8(4), X = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
5171
5171
  if (!T || !T.state || !T.output || !T.input && T.avail_in !== 0) return p;
5172
5172
  (b = T.state).mode === 12 && (b.mode = 13), K = T.next_out, U = T.output, Y = T.avail_out, F = T.next_in, I = T.input, H = T.avail_in, N = b.hold, O = b.bits, te = H, ee = Y, W = m;
5173
5173
  e: for (; ; ) switch (b.mode) {
@@ -5290,7 +5290,7 @@ function wc() {
5290
5290
  b.mode = 14;
5291
5291
  break;
5292
5292
  case 1:
5293
- if (R(b), b.mode = 20, k !== 6) break;
5293
+ if (D(b), b.mode = 20, k !== 6) break;
5294
5294
  N >>>= 2, O -= 2;
5295
5295
  break e;
5296
5296
  case 2:
@@ -5347,7 +5347,7 @@ function wc() {
5347
5347
  b.have = 0, b.mode = 19;
5348
5348
  case 19:
5349
5349
  for (; b.have < b.nlen + b.ndist; ) {
5350
- for (; oe = (D = b.lencode[N & (1 << b.lenbits) - 1]) >>> 16 & 255, ue = 65535 & D, !((se = D >>> 24) <= O); ) {
5350
+ for (; oe = (R = b.lencode[N & (1 << b.lenbits) - 1]) >>> 16 & 255, ue = 65535 & R, !((se = R >>> 24) <= O); ) {
5351
5351
  if (H === 0) break e;
5352
5352
  H--, N += I[F++] << O, O += 8;
5353
5353
  }
@@ -5404,12 +5404,12 @@ function wc() {
5404
5404
  T.next_out = K, T.avail_out = Y, T.next_in = F, T.avail_in = H, b.hold = N, b.bits = O, l(T, ee), K = T.next_out, U = T.output, Y = T.avail_out, F = T.next_in, I = T.input, H = T.avail_in, N = b.hold, O = b.bits, b.mode === 12 && (b.back = -1);
5405
5405
  break;
5406
5406
  }
5407
- for (b.back = 0; oe = (D = b.lencode[N & (1 << b.lenbits) - 1]) >>> 16 & 255, ue = 65535 & D, !((se = D >>> 24) <= O); ) {
5407
+ for (b.back = 0; oe = (R = b.lencode[N & (1 << b.lenbits) - 1]) >>> 16 & 255, ue = 65535 & R, !((se = R >>> 24) <= O); ) {
5408
5408
  if (H === 0) break e;
5409
5409
  H--, N += I[F++] << O, O += 8;
5410
5410
  }
5411
5411
  if (oe && (240 & oe) == 0) {
5412
- for (me = se, Te = oe, Ie = ue; oe = (D = b.lencode[Ie + ((N & (1 << me + Te) - 1) >> me)]) >>> 16 & 255, ue = 65535 & D, !(me + (se = D >>> 24) <= O); ) {
5412
+ for (me = se, Te = oe, Ie = ue; oe = (R = b.lencode[Ie + ((N & (1 << me + Te) - 1) >> me)]) >>> 16 & 255, ue = 65535 & R, !(me + (se = R >>> 24) <= O); ) {
5413
5413
  if (H === 0) break e;
5414
5414
  H--, N += I[F++] << O, O += 8;
5415
5415
  }
@@ -5438,12 +5438,12 @@ function wc() {
5438
5438
  }
5439
5439
  b.was = b.length, b.mode = 23;
5440
5440
  case 23:
5441
- for (; oe = (D = b.distcode[N & (1 << b.distbits) - 1]) >>> 16 & 255, ue = 65535 & D, !((se = D >>> 24) <= O); ) {
5441
+ for (; oe = (R = b.distcode[N & (1 << b.distbits) - 1]) >>> 16 & 255, ue = 65535 & R, !((se = R >>> 24) <= O); ) {
5442
5442
  if (H === 0) break e;
5443
5443
  H--, N += I[F++] << O, O += 8;
5444
5444
  }
5445
5445
  if ((240 & oe) == 0) {
5446
- for (me = se, Te = oe, Ie = ue; oe = (D = b.distcode[Ie + ((N & (1 << me + Te) - 1) >> me)]) >>> 16 & 255, ue = 65535 & D, !(me + (se = D >>> 24) <= O); ) {
5446
+ for (me = se, Te = oe, Ie = ue; oe = (R = b.distcode[Ie + ((N & (1 << me + Te) - 1) >> me)]) >>> 16 & 255, ue = 65535 & R, !(me + (se = R >>> 24) <= O); ) {
5447
5447
  if (H === 0) break e;
5448
5448
  H--, N += I[F++] << O, O += 8;
5449
5449
  }
@@ -5536,7 +5536,7 @@ function wc() {
5536
5536
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, n, i) {
5537
5537
  var s = t("../utils/common"), r = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], l = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], h = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
5538
5538
  n.exports = function(c, d, m, p, f, u, g, y) {
5539
- var w, x, _, v, C, E, P, A, R, z = y.bits, T = 0, k = 0, b = 0, I = 0, U = 0, F = 0, K = 0, H = 0, Y = 0, N = 0, O = null, te = 0, ee = new s.Buf16(16), q = new s.Buf16(16), ce = null, pe = 0;
5539
+ var w, x, _, v, C, E, P, A, D, z = y.bits, T = 0, k = 0, b = 0, I = 0, U = 0, F = 0, K = 0, H = 0, Y = 0, N = 0, O = null, te = 0, ee = new s.Buf16(16), q = new s.Buf16(16), ce = null, pe = 0;
5540
5540
  for (T = 0; T <= 15; T++) ee[T] = 0;
5541
5541
  for (k = 0; k < p; k++) ee[d[m + k]]++;
5542
5542
  for (U = z, I = 15; 1 <= I && ee[I] === 0; I--) ;
@@ -5548,7 +5548,7 @@ function wc() {
5548
5548
  for (k = 0; k < p; k++) d[m + k] !== 0 && (g[q[d[m + k]]++] = k);
5549
5549
  if (E = c === 0 ? (O = ce = g, 19) : c === 1 ? (O = r, te -= 257, ce = a, pe -= 257, 256) : (O = l, ce = h, -1), T = b, C = u, K = k = N = 0, _ = -1, v = (Y = 1 << (F = U)) - 1, c === 1 && 852 < Y || c === 2 && 592 < Y) return 1;
5550
5550
  for (; ; ) {
5551
- for (P = T - K, R = g[k] < E ? (A = 0, g[k]) : g[k] > E ? (A = ce[pe + g[k]], O[te + g[k]]) : (A = 96, 0), w = 1 << T - K, b = x = 1 << F; f[C + (N >> K) + (x -= w)] = P << 24 | A << 16 | R | 0, x !== 0; ) ;
5551
+ for (P = T - K, D = g[k] < E ? (A = 0, g[k]) : g[k] > E ? (A = ce[pe + g[k]], O[te + g[k]]) : (A = 96, 0), w = 1 << T - K, b = x = 1 << F; f[C + (N >> K) + (x -= w)] = P << 24 | A << 16 | D | 0, x !== 0; ) ;
5552
5552
  for (w = 1 << T - 1; N & w; ) w >>= 1;
5553
5553
  if (w !== 0 ? (N &= w - 1, N += w) : N = 0, k++, --ee[T] == 0) {
5554
5554
  if (T === I) break;
@@ -5566,10 +5566,10 @@ function wc() {
5566
5566
  n.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" };
5567
5567
  }, {}], 52: [function(t, n, i) {
5568
5568
  var s = t("../utils/common"), r = 0, a = 1;
5569
- function l(D) {
5570
- for (var B = D.length; 0 <= --B; ) D[B] = 0;
5569
+ function l(R) {
5570
+ for (var B = R.length; 0 <= --B; ) R[B] = 0;
5571
5571
  }
5572
- var h = 0, c = 29, d = 256, m = d + 1 + c, p = 30, f = 19, u = 2 * m + 1, g = 15, y = 16, w = 7, x = 256, _ = 16, v = 17, C = 18, E = [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], P = [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], A = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], R = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (m + 2));
5572
+ var h = 0, c = 29, d = 256, m = d + 1 + c, p = 30, f = 19, u = 2 * m + 1, g = 15, y = 16, w = 7, x = 256, _ = 16, v = 17, C = 18, E = [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], P = [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], A = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], D = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (m + 2));
5573
5573
  l(z);
5574
5574
  var T = new Array(2 * p);
5575
5575
  l(T);
@@ -5580,98 +5580,98 @@ function wc() {
5580
5580
  var I = new Array(c);
5581
5581
  l(I);
5582
5582
  var U, F, K, H = new Array(p);
5583
- function Y(D, B, X, Z, V) {
5584
- this.static_tree = D, this.extra_bits = B, this.extra_base = X, this.elems = Z, this.max_length = V, this.has_stree = D && D.length;
5583
+ function Y(R, B, X, Z, V) {
5584
+ this.static_tree = R, this.extra_bits = B, this.extra_base = X, this.elems = Z, this.max_length = V, this.has_stree = R && R.length;
5585
5585
  }
5586
- function N(D, B) {
5587
- this.dyn_tree = D, this.max_code = 0, this.stat_desc = B;
5586
+ function N(R, B) {
5587
+ this.dyn_tree = R, this.max_code = 0, this.stat_desc = B;
5588
5588
  }
5589
- function O(D) {
5590
- return D < 256 ? k[D] : k[256 + (D >>> 7)];
5589
+ function O(R) {
5590
+ return R < 256 ? k[R] : k[256 + (R >>> 7)];
5591
5591
  }
5592
- function te(D, B) {
5593
- D.pending_buf[D.pending++] = 255 & B, D.pending_buf[D.pending++] = B >>> 8 & 255;
5592
+ function te(R, B) {
5593
+ R.pending_buf[R.pending++] = 255 & B, R.pending_buf[R.pending++] = B >>> 8 & 255;
5594
5594
  }
5595
- function ee(D, B, X) {
5596
- D.bi_valid > y - X ? (D.bi_buf |= B << D.bi_valid & 65535, te(D, D.bi_buf), D.bi_buf = B >> y - D.bi_valid, D.bi_valid += X - y) : (D.bi_buf |= B << D.bi_valid & 65535, D.bi_valid += X);
5595
+ function ee(R, B, X) {
5596
+ R.bi_valid > y - X ? (R.bi_buf |= B << R.bi_valid & 65535, te(R, R.bi_buf), R.bi_buf = B >> y - R.bi_valid, R.bi_valid += X - y) : (R.bi_buf |= B << R.bi_valid & 65535, R.bi_valid += X);
5597
5597
  }
5598
- function q(D, B, X) {
5599
- ee(D, X[2 * B], X[2 * B + 1]);
5598
+ function q(R, B, X) {
5599
+ ee(R, X[2 * B], X[2 * B + 1]);
5600
5600
  }
5601
- function ce(D, B) {
5602
- for (var X = 0; X |= 1 & D, D >>>= 1, X <<= 1, 0 < --B; ) ;
5601
+ function ce(R, B) {
5602
+ for (var X = 0; X |= 1 & R, R >>>= 1, X <<= 1, 0 < --B; ) ;
5603
5603
  return X >>> 1;
5604
5604
  }
5605
- function pe(D, B, X) {
5605
+ function pe(R, B, X) {
5606
5606
  var Z, V, $ = new Array(g + 1), ne = 0;
5607
5607
  for (Z = 1; Z <= g; Z++) $[Z] = ne = ne + X[Z - 1] << 1;
5608
5608
  for (V = 0; V <= B; V++) {
5609
- var Q = D[2 * V + 1];
5610
- Q !== 0 && (D[2 * V] = ce($[Q]++, Q));
5609
+ var Q = R[2 * V + 1];
5610
+ Q !== 0 && (R[2 * V] = ce($[Q]++, Q));
5611
5611
  }
5612
5612
  }
5613
- function se(D) {
5613
+ function se(R) {
5614
5614
  var B;
5615
- for (B = 0; B < m; B++) D.dyn_ltree[2 * B] = 0;
5616
- for (B = 0; B < p; B++) D.dyn_dtree[2 * B] = 0;
5617
- for (B = 0; B < f; B++) D.bl_tree[2 * B] = 0;
5618
- D.dyn_ltree[2 * x] = 1, D.opt_len = D.static_len = 0, D.last_lit = D.matches = 0;
5615
+ for (B = 0; B < m; B++) R.dyn_ltree[2 * B] = 0;
5616
+ for (B = 0; B < p; B++) R.dyn_dtree[2 * B] = 0;
5617
+ for (B = 0; B < f; B++) R.bl_tree[2 * B] = 0;
5618
+ R.dyn_ltree[2 * x] = 1, R.opt_len = R.static_len = 0, R.last_lit = R.matches = 0;
5619
5619
  }
5620
- function oe(D) {
5621
- 8 < D.bi_valid ? te(D, D.bi_buf) : 0 < D.bi_valid && (D.pending_buf[D.pending++] = D.bi_buf), D.bi_buf = 0, D.bi_valid = 0;
5620
+ function oe(R) {
5621
+ 8 < R.bi_valid ? te(R, R.bi_buf) : 0 < R.bi_valid && (R.pending_buf[R.pending++] = R.bi_buf), R.bi_buf = 0, R.bi_valid = 0;
5622
5622
  }
5623
- function ue(D, B, X, Z) {
5623
+ function ue(R, B, X, Z) {
5624
5624
  var V = 2 * B, $ = 2 * X;
5625
- return D[V] < D[$] || D[V] === D[$] && Z[B] <= Z[X];
5625
+ return R[V] < R[$] || R[V] === R[$] && Z[B] <= Z[X];
5626
5626
  }
5627
- function me(D, B, X) {
5628
- for (var Z = D.heap[X], V = X << 1; V <= D.heap_len && (V < D.heap_len && ue(B, D.heap[V + 1], D.heap[V], D.depth) && V++, !ue(B, Z, D.heap[V], D.depth)); ) D.heap[X] = D.heap[V], X = V, V <<= 1;
5629
- D.heap[X] = Z;
5627
+ function me(R, B, X) {
5628
+ for (var Z = R.heap[X], V = X << 1; V <= R.heap_len && (V < R.heap_len && ue(B, R.heap[V + 1], R.heap[V], R.depth) && V++, !ue(B, Z, R.heap[V], R.depth)); ) R.heap[X] = R.heap[V], X = V, V <<= 1;
5629
+ R.heap[X] = Z;
5630
5630
  }
5631
- function Te(D, B, X) {
5631
+ function Te(R, B, X) {
5632
5632
  var Z, V, $, ne, Q = 0;
5633
- if (D.last_lit !== 0) for (; Z = D.pending_buf[D.d_buf + 2 * Q] << 8 | D.pending_buf[D.d_buf + 2 * Q + 1], V = D.pending_buf[D.l_buf + Q], Q++, Z === 0 ? q(D, V, B) : (q(D, ($ = b[V]) + d + 1, B), (ne = E[$]) !== 0 && ee(D, V -= I[$], ne), q(D, $ = O(--Z), X), (ne = P[$]) !== 0 && ee(D, Z -= H[$], ne)), Q < D.last_lit; ) ;
5634
- q(D, x, B);
5633
+ if (R.last_lit !== 0) for (; Z = R.pending_buf[R.d_buf + 2 * Q] << 8 | R.pending_buf[R.d_buf + 2 * Q + 1], V = R.pending_buf[R.l_buf + Q], Q++, Z === 0 ? q(R, V, B) : (q(R, ($ = b[V]) + d + 1, B), (ne = E[$]) !== 0 && ee(R, V -= I[$], ne), q(R, $ = O(--Z), X), (ne = P[$]) !== 0 && ee(R, Z -= H[$], ne)), Q < R.last_lit; ) ;
5634
+ q(R, x, B);
5635
5635
  }
5636
- function Ie(D, B) {
5636
+ function Ie(R, B) {
5637
5637
  var X, Z, V, $ = B.dyn_tree, ne = B.stat_desc.static_tree, Q = B.stat_desc.has_stree, ie = B.stat_desc.elems, he = -1;
5638
- for (D.heap_len = 0, D.heap_max = u, X = 0; X < ie; X++) $[2 * X] !== 0 ? (D.heap[++D.heap_len] = he = X, D.depth[X] = 0) : $[2 * X + 1] = 0;
5639
- for (; D.heap_len < 2; ) $[2 * (V = D.heap[++D.heap_len] = he < 2 ? ++he : 0)] = 1, D.depth[V] = 0, D.opt_len--, Q && (D.static_len -= ne[2 * V + 1]);
5640
- for (B.max_code = he, X = D.heap_len >> 1; 1 <= X; X--) me(D, $, X);
5641
- for (V = ie; X = D.heap[1], D.heap[1] = D.heap[D.heap_len--], me(D, $, 1), Z = D.heap[1], D.heap[--D.heap_max] = X, D.heap[--D.heap_max] = Z, $[2 * V] = $[2 * X] + $[2 * Z], D.depth[V] = (D.depth[X] >= D.depth[Z] ? D.depth[X] : D.depth[Z]) + 1, $[2 * X + 1] = $[2 * Z + 1] = V, D.heap[1] = V++, me(D, $, 1), 2 <= D.heap_len; ) ;
5642
- D.heap[--D.heap_max] = D.heap[1], (function(ae, Ee) {
5643
- var Je, De, Bt, ye, sn, Mn, Qe = Ee.dyn_tree, Tt = Ee.max_code, Nt = Ee.stat_desc.static_tree, Ft = Ee.stat_desc.has_stree, Ut = Ee.stat_desc.extra_bits, Et = Ee.stat_desc.extra_base, Sn = Ee.stat_desc.max_length, Zn = 0;
5638
+ for (R.heap_len = 0, R.heap_max = u, X = 0; X < ie; X++) $[2 * X] !== 0 ? (R.heap[++R.heap_len] = he = X, R.depth[X] = 0) : $[2 * X + 1] = 0;
5639
+ for (; R.heap_len < 2; ) $[2 * (V = R.heap[++R.heap_len] = he < 2 ? ++he : 0)] = 1, R.depth[V] = 0, R.opt_len--, Q && (R.static_len -= ne[2 * V + 1]);
5640
+ for (B.max_code = he, X = R.heap_len >> 1; 1 <= X; X--) me(R, $, X);
5641
+ for (V = ie; X = R.heap[1], R.heap[1] = R.heap[R.heap_len--], me(R, $, 1), Z = R.heap[1], R.heap[--R.heap_max] = X, R.heap[--R.heap_max] = Z, $[2 * V] = $[2 * X] + $[2 * Z], R.depth[V] = (R.depth[X] >= R.depth[Z] ? R.depth[X] : R.depth[Z]) + 1, $[2 * X + 1] = $[2 * Z + 1] = V, R.heap[1] = V++, me(R, $, 1), 2 <= R.heap_len; ) ;
5642
+ R.heap[--R.heap_max] = R.heap[1], (function(ae, Ee) {
5643
+ var Je, Re, Bt, ye, sn, Mn, Qe = Ee.dyn_tree, Tt = Ee.max_code, Nt = Ee.stat_desc.static_tree, Ft = Ee.stat_desc.has_stree, Ut = Ee.stat_desc.extra_bits, Et = Ee.stat_desc.extra_base, Sn = Ee.stat_desc.max_length, Zn = 0;
5644
5644
  for (ye = 0; ye <= g; ye++) ae.bl_count[ye] = 0;
5645
- for (Qe[2 * ae.heap[ae.heap_max] + 1] = 0, Je = ae.heap_max + 1; Je < u; Je++) Sn < (ye = Qe[2 * Qe[2 * (De = ae.heap[Je]) + 1] + 1] + 1) && (ye = Sn, Zn++), Qe[2 * De + 1] = ye, Tt < De || (ae.bl_count[ye]++, sn = 0, Et <= De && (sn = Ut[De - Et]), Mn = Qe[2 * De], ae.opt_len += Mn * (ye + sn), Ft && (ae.static_len += Mn * (Nt[2 * De + 1] + sn)));
5645
+ for (Qe[2 * ae.heap[ae.heap_max] + 1] = 0, Je = ae.heap_max + 1; Je < u; Je++) Sn < (ye = Qe[2 * Qe[2 * (Re = ae.heap[Je]) + 1] + 1] + 1) && (ye = Sn, Zn++), Qe[2 * Re + 1] = ye, Tt < Re || (ae.bl_count[ye]++, sn = 0, Et <= Re && (sn = Ut[Re - Et]), Mn = Qe[2 * Re], ae.opt_len += Mn * (ye + sn), Ft && (ae.static_len += Mn * (Nt[2 * Re + 1] + sn)));
5646
5646
  if (Zn !== 0) {
5647
5647
  do {
5648
5648
  for (ye = Sn - 1; ae.bl_count[ye] === 0; ) ye--;
5649
5649
  ae.bl_count[ye]--, ae.bl_count[ye + 1] += 2, ae.bl_count[Sn]--, Zn -= 2;
5650
5650
  } while (0 < Zn);
5651
- for (ye = Sn; ye !== 0; ye--) for (De = ae.bl_count[ye]; De !== 0; ) Tt < (Bt = ae.heap[--Je]) || (Qe[2 * Bt + 1] !== ye && (ae.opt_len += (ye - Qe[2 * Bt + 1]) * Qe[2 * Bt], Qe[2 * Bt + 1] = ye), De--);
5651
+ for (ye = Sn; ye !== 0; ye--) for (Re = ae.bl_count[ye]; Re !== 0; ) Tt < (Bt = ae.heap[--Je]) || (Qe[2 * Bt + 1] !== ye && (ae.opt_len += (ye - Qe[2 * Bt + 1]) * Qe[2 * Bt], Qe[2 * Bt + 1] = ye), Re--);
5652
5652
  }
5653
- })(D, B), pe($, he, D.bl_count);
5653
+ })(R, B), pe($, he, R.bl_count);
5654
5654
  }
5655
- function S(D, B, X) {
5655
+ function S(R, B, X) {
5656
5656
  var Z, V, $ = -1, ne = B[1], Q = 0, ie = 7, he = 4;
5657
- for (ne === 0 && (ie = 138, he = 3), B[2 * (X + 1) + 1] = 65535, Z = 0; Z <= X; Z++) V = ne, ne = B[2 * (Z + 1) + 1], ++Q < ie && V === ne || (Q < he ? D.bl_tree[2 * V] += Q : V !== 0 ? (V !== $ && D.bl_tree[2 * V]++, D.bl_tree[2 * _]++) : Q <= 10 ? D.bl_tree[2 * v]++ : D.bl_tree[2 * C]++, $ = V, he = (Q = 0) === ne ? (ie = 138, 3) : V === ne ? (ie = 6, 3) : (ie = 7, 4));
5657
+ for (ne === 0 && (ie = 138, he = 3), B[2 * (X + 1) + 1] = 65535, Z = 0; Z <= X; Z++) V = ne, ne = B[2 * (Z + 1) + 1], ++Q < ie && V === ne || (Q < he ? R.bl_tree[2 * V] += Q : V !== 0 ? (V !== $ && R.bl_tree[2 * V]++, R.bl_tree[2 * _]++) : Q <= 10 ? R.bl_tree[2 * v]++ : R.bl_tree[2 * C]++, $ = V, he = (Q = 0) === ne ? (ie = 138, 3) : V === ne ? (ie = 6, 3) : (ie = 7, 4));
5658
5658
  }
5659
- function W(D, B, X) {
5659
+ function W(R, B, X) {
5660
5660
  var Z, V, $ = -1, ne = B[1], Q = 0, ie = 7, he = 4;
5661
5661
  for (ne === 0 && (ie = 138, he = 3), Z = 0; Z <= X; Z++) if (V = ne, ne = B[2 * (Z + 1) + 1], !(++Q < ie && V === ne)) {
5662
- if (Q < he) for (; q(D, V, D.bl_tree), --Q != 0; ) ;
5663
- else V !== 0 ? (V !== $ && (q(D, V, D.bl_tree), Q--), q(D, _, D.bl_tree), ee(D, Q - 3, 2)) : Q <= 10 ? (q(D, v, D.bl_tree), ee(D, Q - 3, 3)) : (q(D, C, D.bl_tree), ee(D, Q - 11, 7));
5662
+ if (Q < he) for (; q(R, V, R.bl_tree), --Q != 0; ) ;
5663
+ else V !== 0 ? (V !== $ && (q(R, V, R.bl_tree), Q--), q(R, _, R.bl_tree), ee(R, Q - 3, 2)) : Q <= 10 ? (q(R, v, R.bl_tree), ee(R, Q - 3, 3)) : (q(R, C, R.bl_tree), ee(R, Q - 11, 7));
5664
5664
  $ = V, he = (Q = 0) === ne ? (ie = 138, 3) : V === ne ? (ie = 6, 3) : (ie = 7, 4);
5665
5665
  }
5666
5666
  }
5667
5667
  l(H);
5668
5668
  var G = !1;
5669
- function L(D, B, X, Z) {
5670
- ee(D, (h << 1) + (Z ? 1 : 0), 3), (function(V, $, ne, Q) {
5669
+ function L(R, B, X, Z) {
5670
+ ee(R, (h << 1) + (Z ? 1 : 0), 3), (function(V, $, ne, Q) {
5671
5671
  oe(V), te(V, ne), te(V, ~ne), s.arraySet(V.pending_buf, V.window, $, ne, V.pending), V.pending += ne;
5672
- })(D, B, X);
5672
+ })(R, B, X);
5673
5673
  }
5674
- i._tr_init = function(D) {
5674
+ i._tr_init = function(R) {
5675
5675
  G || ((function() {
5676
5676
  var B, X, Z, V, $, ne = new Array(g + 1);
5677
5677
  for (V = Z = 0; V < c - 1; V++) for (I[V] = Z, B = 0; B < 1 << E[V]; B++) b[Z++] = V;
@@ -5684,30 +5684,30 @@ function wc() {
5684
5684
  for (; B <= 287; ) z[2 * B + 1] = 8, B++, ne[8]++;
5685
5685
  for (pe(z, m + 1, ne), B = 0; B < p; B++) T[2 * B + 1] = 5, T[2 * B] = ce(B, 5);
5686
5686
  U = new Y(z, E, d + 1, m, g), F = new Y(T, P, 0, p, g), K = new Y(new Array(0), A, 0, f, w);
5687
- })(), G = !0), D.l_desc = new N(D.dyn_ltree, U), D.d_desc = new N(D.dyn_dtree, F), D.bl_desc = new N(D.bl_tree, K), D.bi_buf = 0, D.bi_valid = 0, se(D);
5688
- }, i._tr_stored_block = L, i._tr_flush_block = function(D, B, X, Z) {
5687
+ })(), G = !0), R.l_desc = new N(R.dyn_ltree, U), R.d_desc = new N(R.dyn_dtree, F), R.bl_desc = new N(R.bl_tree, K), R.bi_buf = 0, R.bi_valid = 0, se(R);
5688
+ }, i._tr_stored_block = L, i._tr_flush_block = function(R, B, X, Z) {
5689
5689
  var V, $, ne = 0;
5690
- 0 < D.level ? (D.strm.data_type === 2 && (D.strm.data_type = (function(Q) {
5690
+ 0 < R.level ? (R.strm.data_type === 2 && (R.strm.data_type = (function(Q) {
5691
5691
  var ie, he = 4093624447;
5692
5692
  for (ie = 0; ie <= 31; ie++, he >>>= 1) if (1 & he && Q.dyn_ltree[2 * ie] !== 0) return r;
5693
5693
  if (Q.dyn_ltree[18] !== 0 || Q.dyn_ltree[20] !== 0 || Q.dyn_ltree[26] !== 0) return a;
5694
5694
  for (ie = 32; ie < d; ie++) if (Q.dyn_ltree[2 * ie] !== 0) return a;
5695
5695
  return r;
5696
- })(D)), Ie(D, D.l_desc), Ie(D, D.d_desc), ne = (function(Q) {
5696
+ })(R)), Ie(R, R.l_desc), Ie(R, R.d_desc), ne = (function(Q) {
5697
5697
  var ie;
5698
- for (S(Q, Q.dyn_ltree, Q.l_desc.max_code), S(Q, Q.dyn_dtree, Q.d_desc.max_code), Ie(Q, Q.bl_desc), ie = f - 1; 3 <= ie && Q.bl_tree[2 * R[ie] + 1] === 0; ie--) ;
5698
+ for (S(Q, Q.dyn_ltree, Q.l_desc.max_code), S(Q, Q.dyn_dtree, Q.d_desc.max_code), Ie(Q, Q.bl_desc), ie = f - 1; 3 <= ie && Q.bl_tree[2 * D[ie] + 1] === 0; ie--) ;
5699
5699
  return Q.opt_len += 3 * (ie + 1) + 5 + 5 + 4, ie;
5700
- })(D), V = D.opt_len + 3 + 7 >>> 3, ($ = D.static_len + 3 + 7 >>> 3) <= V && (V = $)) : V = $ = X + 5, X + 4 <= V && B !== -1 ? L(D, B, X, Z) : D.strategy === 4 || $ === V ? (ee(D, 2 + (Z ? 1 : 0), 3), Te(D, z, T)) : (ee(D, 4 + (Z ? 1 : 0), 3), (function(Q, ie, he, ae) {
5700
+ })(R), V = R.opt_len + 3 + 7 >>> 3, ($ = R.static_len + 3 + 7 >>> 3) <= V && (V = $)) : V = $ = X + 5, X + 4 <= V && B !== -1 ? L(R, B, X, Z) : R.strategy === 4 || $ === V ? (ee(R, 2 + (Z ? 1 : 0), 3), Te(R, z, T)) : (ee(R, 4 + (Z ? 1 : 0), 3), (function(Q, ie, he, ae) {
5701
5701
  var Ee;
5702
- for (ee(Q, ie - 257, 5), ee(Q, he - 1, 5), ee(Q, ae - 4, 4), Ee = 0; Ee < ae; Ee++) ee(Q, Q.bl_tree[2 * R[Ee] + 1], 3);
5702
+ for (ee(Q, ie - 257, 5), ee(Q, he - 1, 5), ee(Q, ae - 4, 4), Ee = 0; Ee < ae; Ee++) ee(Q, Q.bl_tree[2 * D[Ee] + 1], 3);
5703
5703
  W(Q, Q.dyn_ltree, ie - 1), W(Q, Q.dyn_dtree, he - 1);
5704
- })(D, D.l_desc.max_code + 1, D.d_desc.max_code + 1, ne + 1), Te(D, D.dyn_ltree, D.dyn_dtree)), se(D), Z && oe(D);
5705
- }, i._tr_tally = function(D, B, X) {
5706
- return D.pending_buf[D.d_buf + 2 * D.last_lit] = B >>> 8 & 255, D.pending_buf[D.d_buf + 2 * D.last_lit + 1] = 255 & B, D.pending_buf[D.l_buf + D.last_lit] = 255 & X, D.last_lit++, B === 0 ? D.dyn_ltree[2 * X]++ : (D.matches++, B--, D.dyn_ltree[2 * (b[X] + d + 1)]++, D.dyn_dtree[2 * O(B)]++), D.last_lit === D.lit_bufsize - 1;
5707
- }, i._tr_align = function(D) {
5708
- ee(D, 2, 3), q(D, x, z), (function(B) {
5704
+ })(R, R.l_desc.max_code + 1, R.d_desc.max_code + 1, ne + 1), Te(R, R.dyn_ltree, R.dyn_dtree)), se(R), Z && oe(R);
5705
+ }, i._tr_tally = function(R, B, X) {
5706
+ return R.pending_buf[R.d_buf + 2 * R.last_lit] = B >>> 8 & 255, R.pending_buf[R.d_buf + 2 * R.last_lit + 1] = 255 & B, R.pending_buf[R.l_buf + R.last_lit] = 255 & X, R.last_lit++, B === 0 ? R.dyn_ltree[2 * X]++ : (R.matches++, B--, R.dyn_ltree[2 * (b[X] + d + 1)]++, R.dyn_dtree[2 * O(B)]++), R.last_lit === R.lit_bufsize - 1;
5707
+ }, i._tr_align = function(R) {
5708
+ ee(R, 2, 3), q(R, x, z), (function(B) {
5709
5709
  B.bi_valid === 16 ? (te(B, B.bi_buf), B.bi_buf = 0, B.bi_valid = 0) : 8 <= B.bi_valid && (B.pending_buf[B.pending++] = 255 & B.bi_buf, B.bi_buf >>= 8, B.bi_valid -= 8);
5710
- })(D);
5710
+ })(R);
5711
5711
  };
5712
5712
  }, { "../utils/common": 41 }], 53: [function(t, n, i) {
5713
5713
  n.exports = function() {
@@ -5812,7 +5812,7 @@ function vc(o) {
5812
5812
  let e;
5813
5813
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(o) : e = o && o.buffer && ca(o.buffer), e;
5814
5814
  }
5815
- const bc = Ji("string"), He = Ji("function"), ha = Ji("number"), Gn = (o) => o !== null && typeof o == "object", Mc = (o) => o === !0 || o === !1, Ri = (o) => {
5815
+ const bc = Ji("string"), He = Ji("function"), ha = Ji("number"), Gn = (o) => o !== null && typeof o == "object", Mc = (o) => o === !0 || o === !1, Di = (o) => {
5816
5816
  if ($i(o) !== "object")
5817
5817
  return !1;
5818
5818
  const e = ur(o);
@@ -5825,11 +5825,11 @@ const bc = Ji("string"), He = Ji("function"), ha = Ji("number"), Gn = (o) => o !
5825
5825
  } catch {
5826
5826
  return !1;
5827
5827
  }
5828
- }, Tc = at("Date"), Ec = at("File"), Ac = at("Blob"), Cc = at("FileList"), Pc = (o) => Gn(o) && He(o.pipe), Rc = (o) => {
5828
+ }, Tc = at("Date"), Ec = at("File"), Ac = at("Blob"), Cc = at("FileList"), Pc = (o) => Gn(o) && He(o.pipe), Dc = (o) => {
5829
5829
  let e;
5830
5830
  return o && (typeof FormData == "function" && o instanceof FormData || He(o.append) && ((e = $i(o)) === "formdata" || // detect form-data instance
5831
5831
  e === "object" && He(o.toString) && o.toString() === "[object FormData]"));
5832
- }, Dc = at("URLSearchParams"), [kc, Ic, Lc, zc] = ["ReadableStream", "Request", "Response", "Headers"].map(at), Oc = (o) => o.trim ? o.trim() : o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
5832
+ }, Rc = at("URLSearchParams"), [kc, Ic, Lc, zc] = ["ReadableStream", "Request", "Response", "Headers"].map(at), Oc = (o) => o.trim ? o.trim() : o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
5833
5833
  function Wn(o, e, { allOwnKeys: t = !1 } = {}) {
5834
5834
  if (o === null || typeof o > "u")
5835
5835
  return;
@@ -5861,7 +5861,7 @@ const Yt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
5861
5861
  function Vs() {
5862
5862
  const { caseless: o, skipUndefined: e } = da(this) && this || {}, t = {}, n = (i, s) => {
5863
5863
  const r = o && ua(t, s) || s;
5864
- Ri(t[r]) && Ri(i) ? t[r] = Vs(t[r], i) : Ri(i) ? t[r] = Vs({}, i) : vn(i) ? t[r] = i.slice() : (!e || !_n(i)) && (t[r] = i);
5864
+ Di(t[r]) && Di(i) ? t[r] = Vs(t[r], i) : Di(i) ? t[r] = Vs({}, i) : vn(i) ? t[r] = i.slice() : (!e || !_n(i)) && (t[r] = i);
5865
5865
  };
5866
5866
  for (let i = 0, s = arguments.length; i < s; i++)
5867
5867
  arguments[i] && Wn(arguments[i], n);
@@ -5977,13 +5977,13 @@ const eh = (o) => {
5977
5977
  isArray: vn,
5978
5978
  isArrayBuffer: ca,
5979
5979
  isBuffer: jn,
5980
- isFormData: Rc,
5980
+ isFormData: Dc,
5981
5981
  isArrayBufferView: vc,
5982
5982
  isString: bc,
5983
5983
  isNumber: ha,
5984
5984
  isBoolean: Mc,
5985
5985
  isObject: Gn,
5986
- isPlainObject: Ri,
5986
+ isPlainObject: Di,
5987
5987
  isEmptyObject: Sc,
5988
5988
  isReadableStream: kc,
5989
5989
  isRequest: Ic,
@@ -5996,7 +5996,7 @@ const eh = (o) => {
5996
5996
  isRegExp: qc,
5997
5997
  isFunction: He,
5998
5998
  isStream: Pc,
5999
- isURLSearchParams: Dc,
5999
+ isURLSearchParams: Rc,
6000
6000
  isTypedArray: jc,
6001
6001
  isFileList: Cc,
6002
6002
  forEach: Wn,
@@ -6434,8 +6434,8 @@ const vh = j.toObjectSet([
6434
6434
  function Tn(o) {
6435
6435
  return o && String(o).trim().toLowerCase();
6436
6436
  }
6437
- function Di(o) {
6438
- return o === !1 || o == null ? o : j.isArray(o) ? o.map(Di) : String(o);
6437
+ function Ri(o) {
6438
+ return o === !1 || o == null ? o : j.isArray(o) ? o.map(Ri) : String(o);
6439
6439
  }
6440
6440
  function Mh(o) {
6441
6441
  const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -6480,7 +6480,7 @@ let je = class {
6480
6480
  if (!c)
6481
6481
  throw new Error("header name must be a non-empty string");
6482
6482
  const d = j.findKey(i, c);
6483
- (!d || i[d] === void 0 || h === !0 || h === void 0 && i[d] !== !1) && (i[d || l] = Di(a));
6483
+ (!d || i[d] === void 0 || h === !0 || h === void 0 && i[d] !== !1) && (i[d || l] = Ri(a));
6484
6484
  }
6485
6485
  const r = (a, l) => j.forEach(a, (h, c) => s(h, c, l));
6486
6486
  if (j.isPlainObject(e) || e instanceof this.constructor)
@@ -6548,11 +6548,11 @@ let je = class {
6548
6548
  return j.forEach(this, (i, s) => {
6549
6549
  const r = j.findKey(n, s);
6550
6550
  if (r) {
6551
- t[r] = Di(i), delete t[s];
6551
+ t[r] = Ri(i), delete t[s];
6552
6552
  return;
6553
6553
  }
6554
6554
  const a = e ? Th(s) : String(s).trim();
6555
- a !== s && delete t[s], t[a] = Di(i), n[a] = !0;
6555
+ a !== s && delete t[s], t[a] = Ri(i), n[a] = !0;
6556
6556
  }), this;
6557
6557
  }
6558
6558
  concat(...e) {
@@ -6690,10 +6690,10 @@ const Vi = (o, e, t = 3) => {
6690
6690
  total: o,
6691
6691
  loaded: n
6692
6692
  }), e[1]];
6693
- }, Nr = (o) => (...e) => j.asap(() => o(...e)), Rh = ke.hasStandardBrowserEnv ? /* @__PURE__ */ ((o, e) => (t) => (t = new URL(t, ke.origin), o.protocol === t.protocol && o.host === t.host && (e || o.port === t.port)))(
6693
+ }, Nr = (o) => (...e) => j.asap(() => o(...e)), Dh = ke.hasStandardBrowserEnv ? /* @__PURE__ */ ((o, e) => (t) => (t = new URL(t, ke.origin), o.protocol === t.protocol && o.host === t.host && (e || o.port === t.port)))(
6694
6694
  new URL(ke.origin),
6695
6695
  ke.navigator && /(msie|trident)/i.test(ke.navigator.userAgent)
6696
- ) : () => !0, Dh = ke.hasStandardBrowserEnv ? (
6696
+ ) : () => !0, Rh = ke.hasStandardBrowserEnv ? (
6697
6697
  // Standard browser envs support document.cookie
6698
6698
  {
6699
6699
  write(o, e, t, n, i, s, r) {
@@ -6813,8 +6813,8 @@ const Ta = (o) => {
6813
6813
  });
6814
6814
  }
6815
6815
  }
6816
- if (ke.hasStandardBrowserEnv && (n && j.isFunction(n) && (n = n(e)), n || n !== !1 && Rh(e.url))) {
6817
- const l = i && s && Dh.read(s);
6816
+ if (ke.hasStandardBrowserEnv && (n && j.isFunction(n) && (n = n(e)), n || n !== !1 && Dh(e.url))) {
6817
+ const l = i && s && Rh.read(s);
6818
6818
  l && r.set(i, l);
6819
6819
  }
6820
6820
  return e;
@@ -7027,7 +7027,7 @@ const Ta = (o) => {
7027
7027
  responseType: E,
7028
7028
  headers: P,
7029
7029
  withCredentials: A = "same-origin",
7030
- fetchOptions: R
7030
+ fetchOptions: D
7031
7031
  } = Ta(f), z = e || fetch;
7032
7032
  E = E ? (E + "").toLowerCase() : "text";
7033
7033
  let T = Oh([w, x && x.toAbortSignal()], _), k = null;
@@ -7052,7 +7052,7 @@ const Ta = (o) => {
7052
7052
  }
7053
7053
  j.isString(A) || (A = A ? "include" : "omit");
7054
7054
  const U = s && "credentials" in t.prototype, F = {
7055
- ...R,
7055
+ ...D,
7056
7056
  signal: T,
7057
7057
  method: g.toUpperCase(),
7058
7058
  headers: P.normalize().toJSON(),
@@ -7061,7 +7061,7 @@ const Ta = (o) => {
7061
7061
  credentials: U ? A : void 0
7062
7062
  };
7063
7063
  k = s && new t(u, F);
7064
- let K = await (s ? z(k, R) : z(u, F));
7064
+ let K = await (s ? z(k, D) : z(u, F));
7065
7065
  const H = c && (E === "stream" || E === "response");
7066
7066
  if (c && (v || H && b)) {
7067
7067
  const N = {};
@@ -7520,13 +7520,13 @@ const Gs = {
7520
7520
  Object.entries(Gs).forEach(([o, e]) => {
7521
7521
  Gs[e] = o;
7522
7522
  });
7523
- function Ra(o) {
7523
+ function Da(o) {
7524
7524
  const e = new $t(o), t = aa($t.prototype.request, e);
7525
7525
  return j.extend(t, $t.prototype, e, { allOwnKeys: !0 }), j.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(i) {
7526
- return Ra(Qt(o, i));
7526
+ return Da(Qt(o, i));
7527
7527
  }, t;
7528
7528
  }
7529
- const xe = Ra(Xn);
7529
+ const xe = Da(Xn);
7530
7530
  xe.Axios = $t;
7531
7531
  xe.CanceledError = bn;
7532
7532
  xe.CancelToken = Xh;
@@ -7610,7 +7610,7 @@ function Yh(o, e) {
7610
7610
  console.error("下载zip文件失败:", t), e(/* @__PURE__ */ new Map());
7611
7611
  });
7612
7612
  }
7613
- function Da(o, e) {
7613
+ function Ra(o, e) {
7614
7614
  xe({
7615
7615
  method: "get",
7616
7616
  responseType: "blob",
@@ -7901,8 +7901,8 @@ function $h() {
7901
7901
  C = new c(x / c.BYTES_PER_ELEMENT);
7902
7902
  let E = 0;
7903
7903
  for (let P = 0, A = v.length; P < A; P++) {
7904
- for (let R = 0; R < p; R++)
7905
- C[E + R] = v[P * p + R];
7904
+ for (let D = 0; D < p; D++)
7905
+ C[E + D] = v[P * p + D];
7906
7906
  E += y;
7907
7907
  }
7908
7908
  }
@@ -7935,7 +7935,7 @@ function $h() {
7935
7935
  }
7936
7936
  var zt = /* @__PURE__ */ ((o) => (o.ModelLoadStart = "model-load-start", o.ModelLoadProgress = "model-load-progress", o.ModelLoaded = "model-loaded", o.ModelError = "model-error", o.SelectionChanged = "selection-changed", o.HoverChanged = "hover-changed", o.Click = "click", o.MouseMove = "mouse-move", o.CameraChanged = "camera-changed", o.CameraIdle = "camera-idle", o.ViewportResize = "viewport-resize", o.EngineFree = "engine-free", o.EngineBusy = "engine-busy", o.MeasureChanged = "measure-changed", o.SectionMove = "section-move", o))(zt || {});
7937
7937
  function Jh(o, e, t, n) {
7938
- let i = 0, s = 0, r = 0, a = o.models.find((p) => p.url == t), l = e.circularMeps, h = e.rectMeps.filter((p) => p.type === "风管"), c = e.rectMeps.filter((p) => p.type === "桥架"), d = e.ellipseMeps, m = o.scene;
7938
+ let i = 0, s = 0, r = 0, a = o.models.find((p) => p.url == t), l = e.circularMeps, h = e.rectMeps?.filter((p) => p.type === "风管"), c = e.rectMeps?.filter((p) => p.type === "桥架"), d = e.ellipseMeps, m = o.scene;
7939
7939
  if (new M.MeshBasicMaterial(), new M.BufferGeometry(), l && l.length) {
7940
7940
  let p = [], f = 0;
7941
7941
  for (let u of l)
@@ -8048,8 +8048,8 @@ function oi(o, e, t, n, i) {
8048
8048
  const C = new M.Euler(w, x, _, "YXZ");
8049
8049
  let E = v.clone().makeRotationFromEuler(C), P, A;
8050
8050
  o === "Circle" ? (P = p.diameter, A = p.diameter) : (P = p.width, A = p.height);
8051
- let R = v.clone().makeScale(P, A, p.length);
8052
- v.multiplyMatrices(E, R), v.setPosition(p.position.x, p.position.y, p.position.z), s.setMatrixAt(c, v.clone()), s.setColorAt(c, p.color), s.geometry.computeBoundingBox();
8051
+ let D = v.clone().makeScale(P, A, p.length);
8052
+ v.multiplyMatrices(E, D), v.setPosition(p.position.x, p.position.y, p.position.z), s.setMatrixAt(c, v.clone()), s.setColorAt(c, p.color), s.geometry.computeBoundingBox();
8053
8053
  let z = s.geometry.boundingBox.min.clone().applyMatrix4(v.clone()), T = s.geometry.boundingBox.max.clone().applyMatrix4(v.clone()), k = new M.Vector3(Math.min(z.x, T.x), Math.min(z.y, T.y), Math.min(z.z, T.z)), b = new M.Vector3(Math.max(z.x, T.x), Math.max(z.y, T.y), Math.max(z.z, T.z)), I = k.clone().add(b.clone()).multiplyScalar(0.5), U = {
8054
8054
  name: p.name,
8055
8055
  min: k,
@@ -9104,10 +9104,10 @@ function Xs(o) {
9104
9104
  throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
9105
9105
  }
9106
9106
  }
9107
- function Ru(o) {
9107
+ function Du(o) {
9108
9108
  return o.search(/\.jpe?g($|\?)/i) > 0 || o.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : o.search(/\.webp($|\?)/i) > 0 || o.search(/^data\:image\/webp/) === 0 ? "image/webp" : o.search(/\.ktx2($|\?)/i) > 0 || o.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
9109
9109
  }
9110
- const Du = new Me();
9110
+ const Ru = new Me();
9111
9111
  class ku {
9112
9112
  constructor(e = {}, t = {}) {
9113
9113
  this.json = e, this.extensions = {}, this.plugins = {}, this.options = t, this.cache = new eu(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
@@ -9435,7 +9435,7 @@ class ku {
9435
9435
  }), t.load(Nn.resolveURL(d, s.path), f, void 0, p);
9436
9436
  });
9437
9437
  }).then(function(d) {
9438
- return h === !0 && a.revokeObjectURL(l), ct(d, r), d.userData.mimeType = r.mimeType || Ru(r.uri), d;
9438
+ return h === !0 && a.revokeObjectURL(l), ct(d, r), d.userData.mimeType = r.mimeType || Du(r.uri), d;
9439
9439
  }).catch(function(d) {
9440
9440
  throw console.error("THREE.GLTFLoader: Couldn't load texture", l), d;
9441
9441
  });
@@ -9640,7 +9640,7 @@ class ku {
9640
9640
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
9641
9641
  return;
9642
9642
  }
9643
- return n.type === "perspective" ? t = new Rl(or.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : n.type === "orthographic" && (t = new Vo(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), n.name && (t.name = this.createUniqueName(n.name)), ct(t, n), Promise.resolve(t);
9643
+ return n.type === "perspective" ? t = new Dl(or.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : n.type === "orthographic" && (t = new Vo(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), n.name && (t.name = this.createUniqueName(n.name)), ct(t, n), Promise.resolve(t);
9644
9644
  }
9645
9645
  /**
9646
9646
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -9664,7 +9664,7 @@ class ku {
9664
9664
  } else
9665
9665
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', t.joints[h]);
9666
9666
  }
9667
- return new Dl(a, l);
9667
+ return new Rl(a, l);
9668
9668
  });
9669
9669
  }
9670
9670
  /**
@@ -9692,10 +9692,10 @@ class ku {
9692
9692
  const v = m[x], C = p[x], E = f[x], P = u[x], A = g[x];
9693
9693
  if (v === void 0) continue;
9694
9694
  v.updateMatrix && v.updateMatrix();
9695
- const R = n._createAnimationTracks(v, C, E, P, A);
9696
- if (R)
9697
- for (let z = 0; z < R.length; z++)
9698
- y.push(R[z]);
9695
+ const D = n._createAnimationTracks(v, C, E, P, A);
9696
+ if (D)
9697
+ for (let z = 0; z < D.length; z++)
9698
+ y.push(D[z]);
9699
9699
  }
9700
9700
  const w = new kl(s, void 0, y);
9701
9701
  return ct(w, i), w;
@@ -9731,7 +9731,7 @@ class ku {
9731
9731
  ]).then(function(h) {
9732
9732
  const c = h[0], d = h[1], m = h[2];
9733
9733
  m !== null && c.traverse(function(p) {
9734
- p.isSkinnedMesh && p.bind(m, Du);
9734
+ p.isSkinnedMesh && p.bind(m, Ru);
9735
9735
  });
9736
9736
  for (let p = 0, f = d.length; p < f; p++)
9737
9737
  c.add(d[p]);
@@ -9923,7 +9923,7 @@ function eo(o, e, t) {
9923
9923
  }
9924
9924
  function Lu(o, e, t) {
9925
9925
  let n = new M.Group();
9926
- n.name = e, o.scene.add(n), Da(e + "/info", (i) => {
9926
+ n.name = e, o.scene.add(n), Ra(e + "/info", (i) => {
9927
9927
  let s = JSON.parse(i);
9928
9928
  o.engineStatus.models.push({
9929
9929
  type: "light",
@@ -10217,38 +10217,41 @@ class Gu {
10217
10217
  handelKeyCtrlDown() {
10218
10218
  this.isCtrlDown = !0;
10219
10219
  }
10220
- // 监听鼠标按下
10220
+ // 监听鼠标按下
10221
10221
  hoverOldId = null;
10222
+ timeOutEvent;
10222
10223
  // 鼠标移动时,触发模型高亮
10223
10224
  handleMouseMove(e) {
10224
- if (!this.engine.engineStatus.isFree) {
10225
+ if (this.timeOutEvent != null && (clearTimeout(this.timeOutEvent), this.timeOutEvent = null), e.catch != null && (this.engine.hoverHighLight.showModelNameTag(null, null), this.timeOutEvent = setTimeout(() => {
10226
+ this.hoverOldId = null;
10227
+ let n = this.getCatchMeshs(e, !0);
10228
+ n.length > 0 && this.engine.hoverHighLight.showModelNameTag({ url: n[0].url, ids: [n[0].name] }, e.catch.point);
10229
+ }, 1e3)), !this.engine.engineStatus.isFree) {
10225
10230
  this.engine.hoverHighLight.clearHighlight();
10226
10231
  return;
10227
10232
  }
10228
10233
  let t = this.getCatchMeshs(e);
10229
10234
  t != null ? t.length > 0 && this.engine.hoverHighLight.hightMesh(t) : this.engine.hoverHighLight.clearHighlight();
10230
10235
  }
10231
- getCatchMeshs(e) {
10236
+ getCatchMeshs(e, t = !1) {
10232
10237
  if (e.catch == null)
10233
10238
  return this.hoverOldId = null, null;
10234
10239
  if (e.catch.object.isInstance) {
10235
- let t = e.catch.object, n = e.catch.object.id, i = this.engine.models.find((a) => a.url == t.url).nodesMap.get(n), s = /* @__PURE__ */ new Map();
10236
- i?.indexes.forEach((a) => {
10237
- this.engine.scene.children[a[0]] instanceof M.InstancedMesh && (s.has(a[0]) ? s.get(a[0])?.push(a[1]) : s.set(a[0], [a[1]]));
10240
+ let n = e.catch.object, i = e.catch.object.id, s = this.engine.models.find((l) => l.url == n.url).nodesMap.get(i), r = /* @__PURE__ */ new Map();
10241
+ s?.indexes.forEach((l) => {
10242
+ this.engine.scene.children[l[0]] instanceof M.InstancedMesh && (r.has(l[0]) ? r.get(l[0])?.push(l[1]) : r.set(l[0], [l[1]]));
10238
10243
  });
10239
- let r = [];
10240
- return s.forEach((a, l) => {
10241
- let h = this.engine.scene.children[l];
10242
- a.forEach((c) => {
10243
- let d = h.geometry.clone();
10244
- d.applyMatrix4(h.matrixs[c]), r.push(new M.Mesh(d, h.material));
10244
+ let a = [];
10245
+ return r.forEach((l, h) => {
10246
+ let c = this.engine.scene.children[h];
10247
+ l.forEach((d) => {
10248
+ let m = c.geometry.clone();
10249
+ m.applyMatrix4(c.matrixs[d]), a.push(new M.Mesh(m, c.material));
10245
10250
  });
10246
- }), this.hoverOldId == n ? [] : (this.hoverOldId = n, this.engine.hoverHighLight.clearHighlight(), r);
10251
+ }), this.hoverOldId == i ? [] : (this.hoverOldId = i, t || this.engine.hoverHighLight.clearHighlight(), a);
10247
10252
  } else {
10248
- const t = e.catch;
10249
- t.object;
10250
- let n = t.object, i = n.name, a = this.engine.models.find((l) => l.url === n.url).nodesMap.get(i).infos.map((l) => l.mesh);
10251
- return this.hoverOldId == i ? [] : (this.hoverOldId = i, this.engine.hoverHighLight.clearHighlight(), a);
10253
+ let i = e.catch.object, s = i.name, l = this.engine.models.find((h) => h.url === i.url).nodesMap.get(s).infos.map((h) => h.mesh);
10254
+ return this.hoverOldId == s ? [] : (this.hoverOldId = s, t || this.engine.hoverHighLight.clearHighlight(), l);
10252
10255
  }
10253
10256
  }
10254
10257
  // 业务功能-监听鼠标谈起,点选模型
@@ -10264,10 +10267,10 @@ class Gu {
10264
10267
  handleMouseDoubleClick(e) {
10265
10268
  if (e.catch) {
10266
10269
  const n = e.catch;
10267
- n.object;
10268
10270
  let i = n.object, r = this.engine.models.find((a) => a.url === i.url).nodesMap.get(i.name);
10269
10271
  if (n.object.isInstance) {
10270
- let a = n.matrix, l = [];
10272
+ let a = n.matrix;
10273
+ const l = [];
10271
10274
  r.indexes.forEach((c) => {
10272
10275
  let d = c[0], m = this.engine.scene.children[d].geometry.boundingSphere;
10273
10276
  const p = new M.Box3(), f = m.center.clone().applyMatrix4(a), u = m.radius, g = new M.Vector3();
@@ -10286,7 +10289,8 @@ class Gu {
10286
10289
  let h = t(l);
10287
10290
  this.engine.viewCube.zoomToModel(h);
10288
10291
  } else {
10289
- let a = r.infos.map((h) => h.box), l = t(a);
10292
+ const a = r.infos.map((h) => h.box);
10293
+ let l = t(a);
10290
10294
  this.engine.viewCube.zoomToModel(l);
10291
10295
  }
10292
10296
  }
@@ -10806,8 +10810,27 @@ class Hi {
10806
10810
  animStartTime = 0;
10807
10811
  static FADE_IN_MS = 200;
10808
10812
  static FADE_OUT_MS = 150;
10813
+ tagDiv;
10809
10814
  constructor(e) {
10810
10815
  this.engine = e, this.init();
10816
+ const t = document.createElement("div");
10817
+ this.tagDiv = t, t.className = "tagDiv", t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", t.style.borderRadius = "10px", t.style.pointerEvents = "none", this.engine.container.appendChild(this.tagDiv);
10818
+ }
10819
+ // 生成悬浮框显示模型名称
10820
+ showModelNameTag(e, t) {
10821
+ if (e == null) {
10822
+ this.tagDiv.style.display = "none";
10823
+ return;
10824
+ }
10825
+ let n = this.engine.models.find((a) => a.url == e.url);
10826
+ if (n == null) {
10827
+ this.tagDiv.style.display = "none";
10828
+ return;
10829
+ }
10830
+ let i = n.nodesMap.get(e.ids[0]);
10831
+ i.infos && i.infos.length > 0 && (this.tagDiv.innerHTML = i.infos[0].name);
10832
+ const r = this.engine.worldToScreen.worldToScreen(t);
10833
+ this.tagDiv ? (this.tagDiv.style.left = r.x + 10 + this.engine.reactBoundingClientRect.left + "px", this.tagDiv.style.top = r.y - 10 + this.engine.reactBoundingClientRect.top + "px", this.tagDiv.style.display = "block") : this.tagDiv && (this.tagDiv.style.display = "none");
10811
10834
  }
10812
10835
  init() {
10813
10836
  this.overlayMaterial = new M.MeshBasicMaterial({
@@ -11323,7 +11346,7 @@ class nd extends Bl {
11323
11346
  case 4:
11324
11347
  throw new Error("THREE.HDRLoader: Memory Error: " + (A || ""));
11325
11348
  }
11326
- }, d = function(P, A, R) {
11349
+ }, d = function(P, A, D) {
11327
11350
  A = A || 1024;
11328
11351
  let T = P.pos, k = -1, b = 0, I = "", U = String.fromCharCode.apply(null, new Uint16Array(P.subarray(T, T + 128)));
11329
11352
  for (; 0 > (k = U.indexOf(`
@@ -11331,7 +11354,7 @@ class nd extends Bl {
11331
11354
  I += U, b += U.length, T += 128, U += String.fromCharCode.apply(null, new Uint16Array(P.subarray(T, T + 128)));
11332
11355
  return -1 < k ? (P.pos += b + k + 1, I + U.slice(0, k)) : !1;
11333
11356
  }, m = function(P) {
11334
- const A = /^#\?(\S+)/, R = /^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/, z = /^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/, T = /^\s*FORMAT=(\S+)\s*$/, k = /^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/, b = {
11357
+ const A = /^#\?(\S+)/, D = /^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/, z = /^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/, T = /^\s*FORMAT=(\S+)\s*$/, k = /^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/, b = {
11335
11358
  valid: 0,
11336
11359
  /* indicate which fields are valid */
11337
11360
  string: "",
@@ -11359,10 +11382,10 @@ class nd extends Bl {
11359
11382
  `;
11360
11383
  continue;
11361
11384
  }
11362
- if ((U = I.match(R)) && (b.gamma = parseFloat(U[1])), (U = I.match(z)) && (b.exposure = parseFloat(U[1])), (U = I.match(T)) && (b.valid |= 2, b.format = U[1]), (U = I.match(k)) && (b.valid |= 4, b.height = parseInt(U[1], 10), b.width = parseInt(U[2], 10)), b.valid & 2 && b.valid & 4) break;
11385
+ if ((U = I.match(D)) && (b.gamma = parseFloat(U[1])), (U = I.match(z)) && (b.exposure = parseFloat(U[1])), (U = I.match(T)) && (b.valid |= 2, b.format = U[1]), (U = I.match(k)) && (b.valid |= 4, b.height = parseInt(U[1], 10), b.width = parseInt(U[2], 10)), b.valid & 2 && b.valid & 4) break;
11363
11386
  }
11364
11387
  return b.valid & 2 || r(3, "missing format specifier"), b.valid & 4 || r(3, "missing image size specifier"), b;
11365
- }, p = function(P, A, R) {
11388
+ }, p = function(P, A, D) {
11366
11389
  const z = A;
11367
11390
  if (
11368
11391
  // run length encoding is not allowed so read flat
@@ -11371,11 +11394,11 @@ class nd extends Bl {
11371
11394
  )
11372
11395
  return new Uint8Array(P);
11373
11396
  z !== (P[2] << 8 | P[3]) && r(3, "wrong scanline width");
11374
- const T = new Uint8Array(4 * A * R);
11397
+ const T = new Uint8Array(4 * A * D);
11375
11398
  T.length || r(4, "unable to allocate buffer space");
11376
11399
  let k = 0, b = 0;
11377
11400
  const I = 4 * z, U = new Uint8Array(4), F = new Uint8Array(I);
11378
- let K = R;
11401
+ let K = D;
11379
11402
  for (; K > 0 && b < P.byteLength; ) {
11380
11403
  b + 4 > P.byteLength && r(1), U[0] = P[b++], U[1] = P[b++], U[2] = P[b++], U[3] = P[b++], (U[0] != 2 || U[1] != 2 || (U[2] << 8 | U[3]) != z) && r(3, "bad rgbe scanline format");
11381
11404
  let H = 0, Y;
@@ -11397,12 +11420,12 @@ class nd extends Bl {
11397
11420
  K--;
11398
11421
  }
11399
11422
  return T;
11400
- }, f = function(P, A, R, z) {
11423
+ }, f = function(P, A, D, z) {
11401
11424
  const T = P[A + 3], k = Math.pow(2, T - 128) / 255;
11402
- R[z + 0] = P[A + 0] * k, R[z + 1] = P[A + 1] * k, R[z + 2] = P[A + 2] * k, R[z + 3] = 1;
11403
- }, u = function(P, A, R, z) {
11425
+ D[z + 0] = P[A + 0] * k, D[z + 1] = P[A + 1] * k, D[z + 2] = P[A + 2] * k, D[z + 3] = 1;
11426
+ }, u = function(P, A, D, z) {
11404
11427
  const T = P[A + 3], k = Math.pow(2, T - 128) / 255;
11405
- R[z + 0] = qn.toHalfFloat(Math.min(P[A + 0] * k, 65504)), R[z + 1] = qn.toHalfFloat(Math.min(P[A + 1] * k, 65504)), R[z + 2] = qn.toHalfFloat(Math.min(P[A + 2] * k, 65504)), R[z + 3] = qn.toHalfFloat(1);
11428
+ D[z + 0] = qn.toHalfFloat(Math.min(P[A + 0] * k, 65504)), D[z + 1] = qn.toHalfFloat(Math.min(P[A + 1] * k, 65504)), D[z + 2] = qn.toHalfFloat(Math.min(P[A + 2] * k, 65504)), D[z + 3] = qn.toHalfFloat(1);
11406
11429
  }, g = new Uint8Array(e);
11407
11430
  g.pos = 0;
11408
11431
  const y = m(g), w = y.width, x = y.height, _ = p(g.subarray(g.pos), w, x);
@@ -11411,15 +11434,15 @@ class nd extends Bl {
11411
11434
  case Ci:
11412
11435
  E = _.length / 4;
11413
11436
  const P = new Float32Array(E * 4);
11414
- for (let R = 0; R < E; R++)
11415
- f(_, R * 4, P, R * 4);
11437
+ for (let D = 0; D < E; D++)
11438
+ f(_, D * 4, P, D * 4);
11416
11439
  v = P, C = Ci;
11417
11440
  break;
11418
11441
  case _t:
11419
11442
  E = _.length / 4;
11420
11443
  const A = new Uint16Array(E * 4);
11421
- for (let R = 0; R < E; R++)
11422
- u(_, R * 4, A, R * 4);
11444
+ for (let D = 0; D < E; D++)
11445
+ u(_, D * 4, A, D * 4);
11423
11446
  v = A, C = _t;
11424
11447
  break;
11425
11448
  default:
@@ -11534,12 +11557,12 @@ function rd(o, e, t) {
11534
11557
  new M.Vector3(f.max.x, f.min.y, f.max.z),
11535
11558
  new M.Vector3(f.min.x, f.max.y, f.max.z),
11536
11559
  new M.Vector3(f.max.x, f.max.y, f.max.z)
11537
- ], E = 1 / 0, P = -1 / 0, A = 1 / 0, R = -1 / 0;
11560
+ ], E = 1 / 0, P = -1 / 0, A = 1 / 0, D = -1 / 0;
11538
11561
  for (var z of C) {
11539
11562
  var T = z.dot(_), k = z.dot(v);
11540
- E = Math.min(E, T), P = Math.max(P, T), A = Math.min(A, k), R = Math.max(R, k);
11563
+ E = Math.min(E, T), P = Math.max(P, T), A = Math.min(A, k), D = Math.max(D, k);
11541
11564
  }
11542
- var b = (P - E) / 2, I = (R - A) / 2, U = (e.camera.right - e.camera.left) / 2, F = (e.camera.top - e.camera.bottom) / 2;
11565
+ var b = (P - E) / 2, I = (D - A) / 2, U = (e.camera.right - e.camera.left) / 2, F = (e.camera.top - e.camera.bottom) / 2;
11543
11566
  x = Math.min(U / b, F / I) * 0.75;
11544
11567
  var K = e.camera.position.clone(), H = o.controls.target.clone(), Y = e.camera.zoom, N = new An.Tween({
11545
11568
  x1: K.x,
@@ -13296,8 +13319,8 @@ function gs(o, e, t, n, i) {
13296
13319
  for (let w = (e - y) * 6, x = (e + t - y) * 6; w < x; w += 6) {
13297
13320
  const _ = o[w + 0], v = o[w + 1], C = _ - v, E = _ + v;
13298
13321
  C < s && (s = C), E > l && (l = E), _ < d && (d = _), _ > f && (f = _);
13299
- const P = o[w + 2], A = o[w + 3], R = P - A, z = P + A;
13300
- R < r && (r = R), z > h && (h = z), P < m && (m = P), P > u && (u = P);
13322
+ const P = o[w + 2], A = o[w + 3], D = P - A, z = P + A;
13323
+ D < r && (r = D), z > h && (h = z), P < m && (m = P), P > u && (u = P);
13301
13324
  const T = o[w + 4], k = o[w + 5], b = T - k, I = T + k;
13302
13325
  b < a && (a = b), I > c && (c = I), T < p && (p = T), T > g && (g = T);
13303
13326
  }
@@ -13322,9 +13345,9 @@ function ao(o, e, t = null, n = null, i = null) {
13322
13345
  a ? (C = s[d[v]](w), E = s[d[v]](x), P = s[d[v]](_)) : (C = l[w + v], E = l[x + v], P = l[_ + v]);
13323
13346
  let A = C;
13324
13347
  E < A && (A = E), P < A && (A = P);
13325
- let R = C;
13326
- E > R && (R = E), P > R && (R = P);
13327
- const z = (R - A) / 2, T = v * 2;
13348
+ let D = C;
13349
+ E > D && (D = E), P > D && (D = P);
13350
+ const z = (D - A) / 2, T = v * 2;
13328
13351
  i[y + T + 0] = A + z, i[y + T + 1] = z + (Math.abs(A) + z) * vd;
13329
13352
  }
13330
13353
  }
@@ -13392,8 +13415,8 @@ function Ed(o, e, t, n, i, s) {
13392
13415
  leftCacheBounds: P,
13393
13416
  rightCacheBounds: A
13394
13417
  } = C;
13395
- for (let R = 0; R < 3; R++)
13396
- A[R] = 1 / 0, A[R + 3] = -1 / 0, P[R] = 1 / 0, P[R + 3] = -1 / 0, E[R] = 1 / 0, E[R + 3] = -1 / 0;
13418
+ for (let D = 0; D < 3; D++)
13419
+ A[D] = 1 / 0, A[D + 3] = -1 / 0, P[D] = 1 / 0, P[D + 3] = -1 / 0, E[D] = 1 / 0, E[D + 3] = -1 / 0;
13397
13420
  li(v, t, E);
13398
13421
  }
13399
13422
  w.sort(Td);
@@ -13411,11 +13434,11 @@ function Ed(o, e, t, n, i, s) {
13411
13434
  }
13412
13435
  }
13413
13436
  for (let v = 0; v < _; v++) {
13414
- const C = w[v], E = C.count, P = i - C.count, A = C.leftCacheBounds, R = C.rightCacheBounds;
13437
+ const C = w[v], E = C.count, P = i - C.count, A = C.leftCacheBounds, D = C.rightCacheBounds;
13415
13438
  let z = 0;
13416
13439
  E !== 0 && (z = Cn(A) / l);
13417
13440
  let T = 0;
13418
- P !== 0 && (T = Cn(R) / l);
13441
+ P !== 0 && (T = Cn(D) / l);
13419
13442
  const k = ro + ps * (z * E + T * P);
13420
13443
  k < h && (r = p, h = k, a = C.candidate);
13421
13444
  }
@@ -13443,11 +13466,11 @@ function Ed(o, e, t, n, i, s) {
13443
13466
  for (let _ = 0; _ < yt - 1; _++) {
13444
13467
  const v = Ct[_], C = v.count, E = v.bounds, A = Ct[_ + 1].rightCacheBounds;
13445
13468
  C !== 0 && (x === 0 ? co(E, ci) : ho(E, ci, ci)), x += C;
13446
- let R = 0, z = 0;
13447
- x !== 0 && (R = Cn(ci) / l);
13469
+ let D = 0, z = 0;
13470
+ x !== 0 && (D = Cn(ci) / l);
13448
13471
  const T = i - x;
13449
13472
  T !== 0 && (z = Cn(A) / l);
13450
- const k = ro + ps * (R * x + z * T);
13473
+ const k = ro + ps * (D * x + z * T);
13451
13474
  k < h && (r = p, h = k, a = v.candidate);
13452
13475
  }
13453
13476
  }
@@ -13511,11 +13534,11 @@ function Pd(o, e, t, n, i, s) {
13511
13534
  }
13512
13535
  }
13513
13536
  let Fa, Li, Ys, Ua;
13514
- const Rd = Math.pow(2, 32);
13537
+ const Dd = Math.pow(2, 32);
13515
13538
  function Ks(o) {
13516
13539
  return "count" in o ? 1 : 1 + Ks(o.left) + Ks(o.right);
13517
13540
  }
13518
- function Dd(o, e, t) {
13541
+ function Rd(o, e, t) {
13519
13542
  return Fa = new Float32Array(t), Li = new Uint32Array(t), Ys = new Uint16Array(t), Ua = new Uint8Array(t), $s(o, e);
13520
13543
  }
13521
13544
  function $s(o, e) {
@@ -13528,7 +13551,7 @@ function $s(o, e) {
13528
13551
  const { left: r, right: a, splitAxis: l } = e, h = o + Oe;
13529
13552
  let c = $s(h, r);
13530
13553
  const d = o / Oe, p = c / Oe - d;
13531
- if (p > Rd)
13554
+ if (p > Dd)
13532
13555
  throw new Error("MeshBVH: Cannot store relative child node offset greater than 32 bits.");
13533
13556
  return Li[t + 6] = p, Li[t + 7] = l, $s(c, a);
13534
13557
  }
@@ -13562,14 +13585,14 @@ function Id(o, e, t, n, i) {
13562
13585
  function _(v, C, E, P = null, A = 0) {
13563
13586
  if (!y && A >= s && (y = !0, r && (console.warn(`MeshBVH: Max depth of ${s} reached when generating BVH. Consider increasing maxDepth.`), console.warn(m))), E <= a || A >= s)
13564
13587
  return x(C + E), v.offset = C, v.count = E, v;
13565
- const R = Ed(v.boundingData, P, e, C, E, l);
13566
- if (R.axis === -1)
13588
+ const D = Ed(v.boundingData, P, e, C, E, l);
13589
+ if (D.axis === -1)
13567
13590
  return x(C + E), v.offset = C, v.count = E, v;
13568
- const z = f(d, p, e, C, E, R);
13591
+ const z = f(d, p, e, C, E, D);
13569
13592
  if (z === C || z === C + E)
13570
13593
  x(C + E), v.offset = C, v.count = E;
13571
13594
  else {
13572
- v.splitAxis = R.axis;
13595
+ v.splitAxis = D.axis;
13573
13596
  const T = new ys(), k = C, b = z - C;
13574
13597
  v.left = T, gs(e, k, b, T.boundingData, g), _(T, k, b, g, A + 1);
13575
13598
  const I = new ys(), U = z, F = E - b;
@@ -13591,7 +13614,7 @@ function Ld(o, e) {
13591
13614
  }
13592
13615
  o._roots = s.map((r) => {
13593
13616
  const a = Id(o, i, r.offset, r.count, e), l = Ks(a), h = new t(Oe * l);
13594
- return Dd(0, a, h), h;
13617
+ return Rd(0, a, h), h;
13595
13618
  });
13596
13619
  }
13597
13620
  class Mt {
@@ -13729,28 +13752,28 @@ $e.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
13729
13752
  const k = P[T], b = A[T];
13730
13753
  if (e.setFromPoints(b, _.points), k.isSeparated(e) || (r.copy(E).cross(b), e.setFromPoints(r, x.points), t.setFromPoints(r, _.points), e.isSeparated(t))) return !1;
13731
13754
  }
13732
- const R = _.satBounds, z = _.satAxes;
13755
+ const D = _.satBounds, z = _.satAxes;
13733
13756
  for (let T = 1; T < 4; T++) {
13734
- const k = R[T], b = z[T];
13757
+ const k = D[T], b = z[T];
13735
13758
  if (e.setFromPoints(b, x.points), k.isSeparated(e) || (r.crossVectors(E, b), e.setFromPoints(r, x.points), t.setFromPoints(r, _.points), e.isSeparated(t))) return !1;
13736
13759
  }
13737
13760
  return v && (C || console.warn("ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0."), v.start.set(0, 0, 0), v.end.set(0, 0, 0)), !0;
13738
13761
  }
13739
- function p(x, _, v, C, E, P, A, R, z, T, k) {
13740
- let b = A / (A - R);
13762
+ function p(x, _, v, C, E, P, A, D, z, T, k) {
13763
+ let b = A / (A - D);
13741
13764
  T.x = C + (E - C) * b, k.start.subVectors(_, x).multiplyScalar(b).add(x), b = A / (A - z), T.y = C + (P - C) * b, k.end.subVectors(v, x).multiplyScalar(b).add(x);
13742
13765
  }
13743
- function f(x, _, v, C, E, P, A, R, z, T, k) {
13766
+ function f(x, _, v, C, E, P, A, D, z, T, k) {
13744
13767
  if (E > 0)
13745
- p(x.c, x.a, x.b, C, _, v, z, A, R, T, k);
13768
+ p(x.c, x.a, x.b, C, _, v, z, A, D, T, k);
13746
13769
  else if (P > 0)
13747
- p(x.b, x.a, x.c, v, _, C, R, A, z, T, k);
13748
- else if (R * z > 0 || A != 0)
13749
- p(x.a, x.b, x.c, _, v, C, A, R, z, T, k);
13750
- else if (R != 0)
13751
- p(x.b, x.a, x.c, v, _, C, R, A, z, T, k);
13770
+ p(x.b, x.a, x.c, v, _, C, D, A, z, T, k);
13771
+ else if (D * z > 0 || A != 0)
13772
+ p(x.a, x.b, x.c, _, v, C, A, D, z, T, k);
13773
+ else if (D != 0)
13774
+ p(x.b, x.a, x.c, v, _, C, D, A, z, T, k);
13752
13775
  else if (z != 0)
13753
- p(x.c, x.a, x.b, C, _, v, z, A, R, T, k);
13776
+ p(x.c, x.a, x.b, C, _, v, z, A, D, T, k);
13754
13777
  else
13755
13778
  return !0;
13756
13779
  return !1;
@@ -13770,15 +13793,15 @@ $e.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
13770
13793
  function w(x, _, v, C) {
13771
13794
  if (x.isDegenerateIntoSegment)
13772
13795
  if (_.isDegenerateIntoSegment) {
13773
- const E = x.degenerateSegment, P = _.degenerateSegment, A = i, R = s;
13774
- E.delta(A), P.delta(R);
13775
- const z = n.subVectors(P.start, E.start), T = A.x * R.y - A.y * R.x;
13796
+ const E = x.degenerateSegment, P = _.degenerateSegment, A = i, D = s;
13797
+ E.delta(A), P.delta(D);
13798
+ const z = n.subVectors(P.start, E.start), T = A.x * D.y - A.y * D.x;
13776
13799
  if (We(T))
13777
13800
  return !1;
13778
- const k = (z.x * R.y - z.y * R.x) / T, b = -(A.x * z.y - A.y * z.x) / T;
13801
+ const k = (z.x * D.y - z.y * D.x) / T, b = -(A.x * z.y - A.y * z.x) / T;
13779
13802
  if (k < 0 || k > 1 || b < 0 || b > 1)
13780
13803
  return !1;
13781
- const I = E.start.z + A.z * k, U = P.start.z + R.z * b;
13804
+ const I = E.start.z + A.z * k, U = P.start.z + D.z * b;
13782
13805
  return We(I - U) ? (v && (v.start.copy(E.start).addScaledVector(A, k), v.end.copy(E.start).addScaledVector(A, k)), !0) : !1;
13783
13806
  } else return _.isDegenerateIntoPoint ? y(x, _, v) : u(_, x, v, C);
13784
13807
  else {
@@ -13796,9 +13819,9 @@ $e.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
13796
13819
  if (E !== void 0)
13797
13820
  return E;
13798
13821
  const P = this.plane, A = _.plane;
13799
- let R = A.distanceToPoint(this.a), z = A.distanceToPoint(this.b), T = A.distanceToPoint(this.c);
13800
- We(R) && (R = 0), We(z) && (z = 0), We(T) && (T = 0);
13801
- const k = R * z, b = R * T;
13822
+ let D = A.distanceToPoint(this.a), z = A.distanceToPoint(this.b), T = A.distanceToPoint(this.c);
13823
+ We(D) && (D = 0), We(z) && (z = 0), We(T) && (T = 0);
13824
+ const k = D * z, b = D * T;
13802
13825
  if (k > 0 && b > 0)
13803
13826
  return !1;
13804
13827
  let I = P.distanceToPoint(_.a), U = P.distanceToPoint(_.b), F = P.distanceToPoint(_.c);
@@ -13812,7 +13835,7 @@ $e.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
13812
13835
  const te = Math.abs(Y.y);
13813
13836
  te > O && (O = te, N = 1), Math.abs(Y.z) > O && (N = 2);
13814
13837
  const q = Bd[N], ce = this.a[q], pe = this.b[q], se = this.c[q], oe = _.a[q], ue = _.b[q], me = _.c[q];
13815
- if (f(this, ce, pe, se, k, b, R, z, T, c, a))
13838
+ if (f(this, ce, pe, se, k, b, D, z, T, c, a))
13816
13839
  return m(this, _, v, C);
13817
13840
  if (f(_, oe, ue, me, K, H, I, U, F, d, l))
13818
13841
  return m(this, _, v, C);
@@ -13958,8 +13981,8 @@ Be.prototype.distanceToBox = /* @__PURE__ */ (function() {
13958
13981
  for (let w = 0; w <= 1; w++) {
13959
13982
  const x = (g + 1) % 3, _ = (g + 2) % 3, v = y << x | w << _, C = 1 << g | y << x | w << _, E = p[v], P = p[C];
13960
13983
  e[u].set(E, P);
13961
- const R = o[g], z = o[x], T = o[_], k = t[u], b = k.start, I = k.end;
13962
- b[R] = d[R], b[z] = y ? d[z] : m[z], b[T] = w ? d[T] : m[z], I[R] = m[R], I[z] = y ? d[z] : m[z], I[T] = w ? d[T] : m[z], u++;
13984
+ const D = o[g], z = o[x], T = o[_], k = t[u], b = k.start, I = k.end;
13985
+ b[D] = d[D], b[z] = y ? d[z] : m[z], b[T] = w ? d[T] : m[z], I[D] = m[D], I[z] = y ? d[z] : m[z], I[T] = w ? d[T] : m[z], u++;
13963
13986
  }
13964
13987
  for (let g = 0; g <= 1; g++)
13965
13988
  for (let y = 0; y <= 1; y++)
@@ -14012,7 +14035,7 @@ function Ye(o, e) {
14012
14035
  function Pe(o) {
14013
14036
  return o + Ae;
14014
14037
  }
14015
- function Re(o, e) {
14038
+ function De(o, e) {
14016
14039
  const t = e[o + 6];
14017
14040
  return o + t * Ae;
14018
14041
  }
@@ -14048,7 +14071,7 @@ function Js(o, e, t, n, i = null, s = 0, r = 0) {
14048
14071
  const m = Ge(o, h), p = Ye(c, l);
14049
14072
  return we(o, a, kt), n(m, p, !1, r, s + o / Ae, kt);
14050
14073
  } else {
14051
- let R = function(T) {
14074
+ let D = function(T) {
14052
14075
  const { uint16Array: k, uint32Array: b } = ge;
14053
14076
  let I = T * 2;
14054
14077
  for (; !Ce(I, k); )
@@ -14058,10 +14081,10 @@ function Js(o, e, t, n, i = null, s = 0, r = 0) {
14058
14081
  const { uint16Array: k, uint32Array: b } = ge;
14059
14082
  let I = T * 2;
14060
14083
  for (; !Ce(I, k); )
14061
- T = Re(T, b), I = T * 2;
14084
+ T = De(T, b), I = T * 2;
14062
14085
  return Ge(T, b) + Ye(I, k);
14063
14086
  };
14064
- const m = Pe(o), p = Re(o, h);
14087
+ const m = Pe(o), p = De(o, h);
14065
14088
  let f = m, u = p, g, y, w, x;
14066
14089
  if (i && (w = kt, x = mn, we(f, a, w), we(u, a, x), g = i(w), y = i(x), y < g)) {
14067
14090
  f = p, u = m;
@@ -14072,7 +14095,7 @@ function Js(o, e, t, n, i = null, s = 0, r = 0) {
14072
14095
  const _ = Ce(f * 2, l), v = t(w, _, g, r + 1, s + f / Ae);
14073
14096
  let C;
14074
14097
  if (v === so) {
14075
- const T = R(f), b = z(f) - T;
14098
+ const T = D(f), b = z(f) - T;
14076
14099
  C = n(T, b, !0, r + 1, s + f / Ae, w);
14077
14100
  } else
14078
14101
  C = v && Js(
@@ -14089,7 +14112,7 @@ function Js(o, e, t, n, i = null, s = 0, r = 0) {
14089
14112
  const E = Ce(u * 2, l), P = t(x, E, y, r + 1, s + u / Ae);
14090
14113
  let A;
14091
14114
  if (P === so) {
14092
- const T = R(u), b = z(u) - T;
14115
+ const T = D(u), b = z(u) - T;
14093
14116
  A = n(T, b, !0, r + 1, s + u / Ae, x);
14094
14117
  } else
14095
14118
  A = P && Js(
@@ -14122,7 +14145,7 @@ function Vd(o, e, t = {}, n = 0, i = 1 / 0) {
14122
14145
  const h = Math.sqrt(a);
14123
14146
  return t.point ? t.point.copy(ws) : t.point = ws.clone(), t.distance = h, t.faceIndex = l, t;
14124
14147
  }
14125
- const ui = parseInt(ta) >= 169, Hd = parseInt(ta) <= 161, Ht = /* @__PURE__ */ new J(), jt = /* @__PURE__ */ new J(), Gt = /* @__PURE__ */ new J(), di = /* @__PURE__ */ new de(), fi = /* @__PURE__ */ new de(), pi = /* @__PURE__ */ new de(), fo = /* @__PURE__ */ new J(), po = /* @__PURE__ */ new J(), mo = /* @__PURE__ */ new J(), Rn = /* @__PURE__ */ new J();
14148
+ const ui = parseInt(ta) >= 169, Hd = parseInt(ta) <= 161, Ht = /* @__PURE__ */ new J(), jt = /* @__PURE__ */ new J(), Gt = /* @__PURE__ */ new J(), di = /* @__PURE__ */ new de(), fi = /* @__PURE__ */ new de(), pi = /* @__PURE__ */ new de(), fo = /* @__PURE__ */ new J(), po = /* @__PURE__ */ new J(), mo = /* @__PURE__ */ new J(), Dn = /* @__PURE__ */ new J();
14126
14149
  function jd(o, e, t, n, i, s, r, a) {
14127
14150
  let l;
14128
14151
  if (s === Nl ? l = o.intersectTriangle(n, t, e, !0, i) : l = o.intersectTriangle(e, t, n, s !== qi, i), l === null) return null;
@@ -14134,21 +14157,21 @@ function jd(o, e, t, n, i, s, r, a) {
14134
14157
  }
14135
14158
  function go(o, e, t, n, i, s, r, a, l, h, c) {
14136
14159
  Ht.fromBufferAttribute(e, s), jt.fromBufferAttribute(e, r), Gt.fromBufferAttribute(e, a);
14137
- const d = jd(o, Ht, jt, Gt, Rn, l, h, c);
14160
+ const d = jd(o, Ht, jt, Gt, Dn, l, h, c);
14138
14161
  if (d) {
14139
14162
  if (n) {
14140
14163
  di.fromBufferAttribute(n, s), fi.fromBufferAttribute(n, r), pi.fromBufferAttribute(n, a), d.uv = new de();
14141
- const p = Ve.getInterpolation(Rn, Ht, jt, Gt, di, fi, pi, d.uv);
14164
+ const p = Ve.getInterpolation(Dn, Ht, jt, Gt, di, fi, pi, d.uv);
14142
14165
  ui || (d.uv = p);
14143
14166
  }
14144
14167
  if (i) {
14145
14168
  di.fromBufferAttribute(i, s), fi.fromBufferAttribute(i, r), pi.fromBufferAttribute(i, a), d.uv1 = new de();
14146
- const p = Ve.getInterpolation(Rn, Ht, jt, Gt, di, fi, pi, d.uv1);
14169
+ const p = Ve.getInterpolation(Dn, Ht, jt, Gt, di, fi, pi, d.uv1);
14147
14170
  ui || (d.uv1 = p), Hd && (d.uv2 = d.uv1);
14148
14171
  }
14149
14172
  if (t) {
14150
14173
  fo.fromBufferAttribute(t, s), po.fromBufferAttribute(t, r), mo.fromBufferAttribute(t, a), d.normal = new J();
14151
- const p = Ve.getInterpolation(Rn, Ht, jt, Gt, fo, po, mo, d.normal);
14174
+ const p = Ve.getInterpolation(Dn, Ht, jt, Gt, fo, po, mo, d.normal);
14152
14175
  d.normal.dot(o.direction) > 0 && d.normal.multiplyScalar(-1), ui || (d.normal = p);
14153
14176
  }
14154
14177
  const m = {
@@ -14160,7 +14183,7 @@ function go(o, e, t, n, i, s, r, a, l, h, c) {
14160
14183
  };
14161
14184
  if (Ve.getNormal(Ht, jt, Gt, m.normal), d.face = m, d.faceIndex = s, ui) {
14162
14185
  const p = new J();
14163
- Ve.getBarycoord(Rn, Ht, jt, Gt, p), d.barycoord = p;
14186
+ Ve.getBarycoord(Dn, Ht, jt, Gt, p), d.barycoord = p;
14164
14187
  }
14165
14188
  }
14166
14189
  return d;
@@ -14238,18 +14261,18 @@ function Zd(o, e = null) {
14238
14261
  const g = r[m + 6], y = a[u + 14];
14239
14262
  let w = 1 / 0, x = 1 / 0, _ = 1 / 0, v = -1 / 0, C = -1 / 0, E = -1 / 0;
14240
14263
  for (let P = 3 * g, A = 3 * (g + y); P < A; P++) {
14241
- let R = n[P];
14242
- const z = i.getX(R), T = i.getY(R), k = i.getZ(R);
14264
+ let D = n[P];
14265
+ const z = i.getX(D), T = i.getY(D), k = i.getZ(D);
14243
14266
  z < w && (w = z), z > v && (v = z), T < x && (x = T), T > C && (C = T), k < _ && (_ = k), k > E && (E = k);
14244
14267
  }
14245
14268
  return l[m + 0] !== w || l[m + 1] !== x || l[m + 2] !== _ || l[m + 3] !== v || l[m + 4] !== C || l[m + 5] !== E ? (l[m + 0] = w, l[m + 1] = x, l[m + 2] = _, l[m + 3] = v, l[m + 4] = C, l[m + 5] = E, !0) : !1;
14246
14269
  } else {
14247
- const g = Pe(m), y = Re(m, r);
14270
+ const g = Pe(m), y = De(m, r);
14248
14271
  let w = f, x = !1, _ = !1;
14249
14272
  if (e) {
14250
14273
  if (!w) {
14251
- const R = g / Ae + p / Oe, z = y / Ae + p / Oe;
14252
- x = e.has(R), _ = e.has(z), w = !x && !_;
14274
+ const D = g / Ae + p / Oe, z = y / Ae + p / Oe;
14275
+ x = e.has(D), _ = e.has(z), w = !x && !_;
14253
14276
  }
14254
14277
  } else
14255
14278
  x = !0, _ = !0;
@@ -14260,9 +14283,9 @@ function Zd(o, e = null) {
14260
14283
  C && (P = d(y, p, w));
14261
14284
  const A = E || P;
14262
14285
  if (A)
14263
- for (let R = 0; R < 3; R++) {
14264
- const z = g + R, T = y + R, k = l[z], b = l[z + 3], I = l[T], U = l[T + 3];
14265
- l[m + R] = k < I ? k : I, l[m + R + 3] = b > U ? b : U;
14286
+ for (let D = 0; D < 3; D++) {
14287
+ const z = g + D, T = y + D, k = l[z], b = l[z + 3], I = l[T], U = l[T + 3];
14288
+ l[m + D] = k < I ? k : I, l[m + D + 3] = b > U ? b : U;
14266
14289
  }
14267
14290
  return A;
14268
14291
  }
@@ -14310,7 +14333,7 @@ function Qs(o, e, t, n, i, s, r) {
14310
14333
  } else {
14311
14334
  const m = Pe(o);
14312
14335
  Ot(m, a, n, s, r) && Qs(m, e, t, n, i, s, r);
14313
- const p = Re(o, h);
14336
+ const p = De(o, h);
14314
14337
  Ot(p, a, n, s, r) && Qs(p, e, t, n, i, s, r);
14315
14338
  }
14316
14339
  }
@@ -14329,7 +14352,7 @@ function er(o, e, t, n, i, s) {
14329
14352
  } else {
14330
14353
  const d = yr(o, l), m = Jd[d], f = n.direction[m] >= 0;
14331
14354
  let u, g;
14332
- f ? (u = Pe(o), g = Re(o, l)) : (u = Re(o, l), g = Pe(o));
14355
+ f ? (u = Pe(o), g = De(o, l)) : (u = De(o, l), g = Pe(o));
14333
14356
  const w = Ot(u, r, n, i, s) ? er(u, e, t, n, i, s) : null;
14334
14357
  if (w) {
14335
14358
  const v = w.point[m];
@@ -14343,7 +14366,7 @@ function er(o, e, t, n, i, s) {
14343
14366
  return w && _ ? w.distance <= _.distance ? w : _ : w || _ || null;
14344
14367
  }
14345
14368
  }
14346
- const mi = /* @__PURE__ */ new ot(), on = /* @__PURE__ */ new $e(), an = /* @__PURE__ */ new $e(), Dn = /* @__PURE__ */ new Me(), wo = /* @__PURE__ */ new Be(), gi = /* @__PURE__ */ new Be();
14369
+ const mi = /* @__PURE__ */ new ot(), on = /* @__PURE__ */ new $e(), an = /* @__PURE__ */ new $e(), Rn = /* @__PURE__ */ new Me(), wo = /* @__PURE__ */ new Be(), gi = /* @__PURE__ */ new Be();
14347
14370
  function ef(o, e, t, n) {
14348
14371
  ge.setBuffer(o._roots[e]);
14349
14372
  const i = tr(0, o, t, n);
@@ -14354,8 +14377,8 @@ function tr(o, e, t, n, i = null) {
14354
14377
  let l = o * 2;
14355
14378
  if (i === null && (t.boundingBox || t.computeBoundingBox(), wo.set(t.boundingBox.min, t.boundingBox.max, n), i = wo), Ce(l, r)) {
14356
14379
  const c = e.geometry, d = c.index, m = c.attributes.position, p = t.index, f = t.attributes.position, u = Ge(o, a), g = Ye(l, r);
14357
- if (Dn.copy(n).invert(), t.boundsTree)
14358
- return we(o, s, gi), gi.matrix.copy(Dn), gi.needsUpdate = !0, t.boundsTree.shapecast({
14380
+ if (Rn.copy(n).invert(), t.boundsTree)
14381
+ return we(o, s, gi), gi.matrix.copy(Rn), gi.needsUpdate = !0, t.boundsTree.shapecast({
14359
14382
  intersectsBounds: (w) => gi.intersectsBox(w),
14360
14383
  intersectsTriangle: (w) => {
14361
14384
  w.a.applyMatrix4(n), w.b.applyMatrix4(n), w.c.applyMatrix4(n), w.needsUpdate = !0;
@@ -14368,14 +14391,14 @@ function tr(o, e, t, n, i = null) {
14368
14391
  {
14369
14392
  const y = nn(t);
14370
14393
  for (let w = u * 3, x = (g + u) * 3; w < x; w += 3) {
14371
- be(on, w, d, m), on.a.applyMatrix4(Dn), on.b.applyMatrix4(Dn), on.c.applyMatrix4(Dn), on.needsUpdate = !0;
14394
+ be(on, w, d, m), on.a.applyMatrix4(Rn), on.b.applyMatrix4(Rn), on.c.applyMatrix4(Rn), on.needsUpdate = !0;
14372
14395
  for (let _ = 0, v = y * 3; _ < v; _ += 3)
14373
14396
  if (be(an, _, p, f), an.needsUpdate = !0, on.intersectsTriangle(an))
14374
14397
  return !0;
14375
14398
  }
14376
14399
  }
14377
14400
  } else {
14378
- const c = Pe(o), d = Re(o, a);
14401
+ const c = Pe(o), d = De(o, a);
14379
14402
  return we(c, s, mi), !!(i.intersectsBox(mi) && tr(c, e, t, n, i) || (we(d, s, mi), i.intersectsBox(mi) && tr(d, e, t, n, i)));
14380
14403
  }
14381
14404
  }
@@ -14394,14 +14417,14 @@ function of(o, e, t, n = {}, i = {}, s = 0, r = 1 / 0) {
14394
14417
  if (e.boundsTree)
14395
14418
  return e.boundsTree.shapecast({
14396
14419
  boundsTraverseOrder: (P) => kn.distanceToBox(P),
14397
- intersectsBounds: (P, A, R) => R < w && R < r,
14420
+ intersectsBounds: (P, A, D) => D < w && D < r,
14398
14421
  intersectsRange: (P, A) => {
14399
- for (let R = P, z = P + A; R < z; R++) {
14400
- be(p, 3 * R, d, c), p.a.applyMatrix4(t), p.b.applyMatrix4(t), p.c.applyMatrix4(t), p.needsUpdate = !0;
14422
+ for (let D = P, z = P + A; D < z; D++) {
14423
+ be(p, 3 * D, d, c), p.a.applyMatrix4(t), p.b.applyMatrix4(t), p.c.applyMatrix4(t), p.needsUpdate = !0;
14401
14424
  for (let T = v, k = v + C; T < k; T++) {
14402
14425
  be(m, 3 * T, h, l), m.needsUpdate = !0;
14403
14426
  const b = m.distanceToTriangle(p, f, g);
14404
- if (b < w && (u.copy(f), y && y.copy(g), w = b, x = T, _ = R), b < s)
14427
+ if (b < w && (u.copy(f), y && y.copy(g), w = b, x = T, _ = D), b < s)
14405
14428
  return !0;
14406
14429
  }
14407
14430
  }
@@ -14411,10 +14434,10 @@ function of(o, e, t, n = {}, i = {}, s = 0, r = 1 / 0) {
14411
14434
  const E = nn(e);
14412
14435
  for (let P = 0, A = E; P < A; P++) {
14413
14436
  be(p, 3 * P, d, c), p.a.applyMatrix4(t), p.b.applyMatrix4(t), p.c.applyMatrix4(t), p.needsUpdate = !0;
14414
- for (let R = v, z = v + C; R < z; R++) {
14415
- be(m, 3 * R, h, l), m.needsUpdate = !0;
14437
+ for (let D = v, z = v + C; D < z; D++) {
14438
+ be(m, 3 * D, h, l), m.needsUpdate = !0;
14416
14439
  const T = m.distanceToTriangle(p, f, g);
14417
- if (T < w && (u.copy(f), y && y.copy(g), w = T, x = R, _ = P), T < s)
14440
+ if (T < w && (u.copy(f), y && y.copy(g), w = T, x = D, _ = P), T < s)
14418
14441
  return !0;
14419
14442
  }
14420
14443
  }
@@ -14436,9 +14459,9 @@ function af(o, e = null) {
14436
14459
  const g = r[m + 6], y = a[u + 14];
14437
14460
  let w = 1 / 0, x = 1 / 0, _ = 1 / 0, v = -1 / 0, C = -1 / 0, E = -1 / 0;
14438
14461
  for (let P = g, A = g + y; P < A; P++) {
14439
- const R = 3 * o.resolveTriangleIndex(P);
14462
+ const D = 3 * o.resolveTriangleIndex(P);
14440
14463
  for (let z = 0; z < 3; z++) {
14441
- let T = R + z;
14464
+ let T = D + z;
14442
14465
  T = n ? n[T] : T;
14443
14466
  const k = i.getX(T), b = i.getY(T), I = i.getZ(T);
14444
14467
  k < w && (w = k), k > v && (v = k), b < x && (x = b), b > C && (C = b), I < _ && (_ = I), I > E && (E = I);
@@ -14446,12 +14469,12 @@ function af(o, e = null) {
14446
14469
  }
14447
14470
  return l[m + 0] !== w || l[m + 1] !== x || l[m + 2] !== _ || l[m + 3] !== v || l[m + 4] !== C || l[m + 5] !== E ? (l[m + 0] = w, l[m + 1] = x, l[m + 2] = _, l[m + 3] = v, l[m + 4] = C, l[m + 5] = E, !0) : !1;
14448
14471
  } else {
14449
- const g = Pe(m), y = Re(m, r);
14472
+ const g = Pe(m), y = De(m, r);
14450
14473
  let w = f, x = !1, _ = !1;
14451
14474
  if (e) {
14452
14475
  if (!w) {
14453
- const R = g / Ae + p / Oe, z = y / Ae + p / Oe;
14454
- x = e.has(R), _ = e.has(z), w = !x && !_;
14476
+ const D = g / Ae + p / Oe, z = y / Ae + p / Oe;
14477
+ x = e.has(D), _ = e.has(z), w = !x && !_;
14455
14478
  }
14456
14479
  } else
14457
14480
  x = !0, _ = !0;
@@ -14462,9 +14485,9 @@ function af(o, e = null) {
14462
14485
  C && (P = d(y, p, w));
14463
14486
  const A = E || P;
14464
14487
  if (A)
14465
- for (let R = 0; R < 3; R++) {
14466
- const z = g + R, T = y + R, k = l[z], b = l[z + 3], I = l[T], U = l[T + 3];
14467
- l[m + R] = k < I ? k : I, l[m + R + 3] = b > U ? b : U;
14488
+ for (let D = 0; D < 3; D++) {
14489
+ const z = g + D, T = y + D, k = l[z], b = l[z + 3], I = l[T], U = l[T + 3];
14490
+ l[m + D] = k < I ? k : I, l[m + D + 3] = b > U ? b : U;
14468
14491
  }
14469
14492
  return A;
14470
14493
  }
@@ -14481,7 +14504,7 @@ function nr(o, e, t, n, i, s, r) {
14481
14504
  } else {
14482
14505
  const m = Pe(o);
14483
14506
  Ot(m, a, n, s, r) && nr(m, e, t, n, i, s, r);
14484
- const p = Re(o, h);
14507
+ const p = De(o, h);
14485
14508
  Ot(p, a, n, s, r) && nr(p, e, t, n, i, s, r);
14486
14509
  }
14487
14510
  }
@@ -14500,7 +14523,7 @@ function ir(o, e, t, n, i, s) {
14500
14523
  } else {
14501
14524
  const d = yr(o, l), m = cf[d], f = n.direction[m] >= 0;
14502
14525
  let u, g;
14503
- f ? (u = Pe(o), g = Re(o, l)) : (u = Re(o, l), g = Pe(o));
14526
+ f ? (u = Pe(o), g = De(o, l)) : (u = De(o, l), g = Pe(o));
14504
14527
  const w = Ot(u, r, n, i, s) ? ir(u, e, t, n, i, s) : null;
14505
14528
  if (w) {
14506
14529
  const v = w.point[m];
@@ -14547,7 +14570,7 @@ function sr(o, e, t, n, i = null) {
14547
14570
  }
14548
14571
  }
14549
14572
  } else {
14550
- const c = Pe(o), d = Re(o, a);
14573
+ const c = Pe(o), d = De(o, a);
14551
14574
  return we(c, s, wi), !!(i.intersectsBox(wi) && sr(c, e, t, n, i) || (we(d, s, wi), i.intersectsBox(wi) && sr(d, e, t, n, i)));
14552
14575
  }
14553
14576
  }
@@ -14567,16 +14590,16 @@ function gf(o, e, t, n = {}, i = {}, s = 0, r = 1 / 0) {
14567
14590
  const E = e.boundsTree;
14568
14591
  return E.shapecast({
14569
14592
  boundsTraverseOrder: (P) => Ln.distanceToBox(P),
14570
- intersectsBounds: (P, A, R) => R < w && R < r,
14593
+ intersectsBounds: (P, A, D) => D < w && D < r,
14571
14594
  intersectsRange: (P, A) => {
14572
- for (let R = P, z = P + A; R < z; R++) {
14573
- const T = E.resolveTriangleIndex(R);
14595
+ for (let D = P, z = P + A; D < z; D++) {
14596
+ const T = E.resolveTriangleIndex(D);
14574
14597
  be(p, 3 * T, d, c), p.a.applyMatrix4(t), p.b.applyMatrix4(t), p.c.applyMatrix4(t), p.needsUpdate = !0;
14575
14598
  for (let k = v, b = v + C; k < b; k++) {
14576
14599
  const I = o.resolveTriangleIndex(k);
14577
14600
  be(m, 3 * I, h, l), m.needsUpdate = !0;
14578
14601
  const U = m.distanceToTriangle(p, f, g);
14579
- if (U < w && (u.copy(f), y && y.copy(g), w = U, x = k, _ = R), U < s)
14602
+ if (U < w && (u.copy(f), y && y.copy(g), w = U, x = k, _ = D), U < s)
14580
14603
  return !0;
14581
14604
  }
14582
14605
  }
@@ -14586,11 +14609,11 @@ function gf(o, e, t, n = {}, i = {}, s = 0, r = 1 / 0) {
14586
14609
  const E = nn(e);
14587
14610
  for (let P = 0, A = E; P < A; P++) {
14588
14611
  be(p, 3 * P, d, c), p.a.applyMatrix4(t), p.b.applyMatrix4(t), p.c.applyMatrix4(t), p.needsUpdate = !0;
14589
- for (let R = v, z = v + C; R < z; R++) {
14590
- const T = o.resolveTriangleIndex(R);
14612
+ for (let D = v, z = v + C; D < z; D++) {
14613
+ const T = o.resolveTriangleIndex(D);
14591
14614
  be(m, 3 * T, h, l), m.needsUpdate = !0;
14592
14615
  const k = m.distanceToTriangle(p, f, g);
14593
- if (k < w && (u.copy(f), y && y.copy(g), w = k, x = R, _ = P), k < s)
14616
+ if (k < w && (u.copy(f), y && y.copy(g), w = k, x = D, _ = P), k < s)
14594
14617
  return !0;
14595
14618
  }
14596
14619
  }
@@ -14602,7 +14625,7 @@ function gf(o, e, t, n = {}, i = {}, s = 0, r = 1 / 0) {
14602
14625
  function yf() {
14603
14626
  return typeof SharedArrayBuffer < "u";
14604
14627
  }
14605
- const Fn = /* @__PURE__ */ new ge.constructor(), ji = /* @__PURE__ */ new ge.constructor(), Rt = /* @__PURE__ */ new gr(() => new ot()), hn = /* @__PURE__ */ new ot(), un = /* @__PURE__ */ new ot(), vs = /* @__PURE__ */ new ot(), bs = /* @__PURE__ */ new ot();
14628
+ const Fn = /* @__PURE__ */ new ge.constructor(), ji = /* @__PURE__ */ new ge.constructor(), Dt = /* @__PURE__ */ new gr(() => new ot()), hn = /* @__PURE__ */ new ot(), un = /* @__PURE__ */ new ot(), vs = /* @__PURE__ */ new ot(), bs = /* @__PURE__ */ new ot();
14606
14629
  let Ms = !1;
14607
14630
  function wf(o, e, t, n) {
14608
14631
  if (Ms)
@@ -14613,7 +14636,7 @@ function wf(o, e, t, n) {
14613
14636
  const h = new Me().copy(t).invert();
14614
14637
  for (let c = 0, d = i.length; c < d; c++) {
14615
14638
  Fn.setBuffer(i[c]), l = 0;
14616
- const m = Rt.getPrimitive();
14639
+ const m = Dt.getPrimitive();
14617
14640
  we(0, Fn.float32Array, m), m.applyMatrix4(h);
14618
14641
  for (let p = 0, f = s.length; p < f && (ji.setBuffer(s[p]), r = et(
14619
14642
  0,
@@ -14628,7 +14651,7 @@ function wf(o, e, t, n) {
14628
14651
  m
14629
14652
  ), ji.clearBuffer(), l += s[p].byteLength / Oe, !r); p++)
14630
14653
  ;
14631
- if (Rt.releasePrimitive(m), Fn.clearBuffer(), a += i[c].byteLength / Oe, r)
14654
+ if (Dt.releasePrimitive(m), Fn.clearBuffer(), a += i[c].byteLength / Oe, r)
14632
14655
  break;
14633
14656
  }
14634
14657
  return Ms = !1, r;
@@ -14659,10 +14682,10 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14659
14682
  r + e / Ae
14660
14683
  );
14661
14684
  else if (C) {
14662
- const P = Rt.getPrimitive();
14685
+ const P = Dt.getPrimitive();
14663
14686
  we(e, g, P), P.applyMatrix4(t);
14664
- const A = Pe(o), R = Re(o, f);
14665
- we(A, p, hn), we(R, p, un);
14687
+ const A = Pe(o), D = De(o, f);
14688
+ we(A, p, hn), we(D, p, un);
14666
14689
  const z = P.intersectsBox(hn), T = P.intersectsBox(un);
14667
14690
  E = z && et(
14668
14691
  e,
@@ -14678,7 +14701,7 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14678
14701
  !c
14679
14702
  ) || T && et(
14680
14703
  e,
14681
- R,
14704
+ D,
14682
14705
  n,
14683
14706
  t,
14684
14707
  i,
@@ -14688,12 +14711,12 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14688
14711
  a + 1,
14689
14712
  P,
14690
14713
  !c
14691
- ), Rt.releasePrimitive(P);
14714
+ ), Dt.releasePrimitive(P);
14692
14715
  } else {
14693
- const P = Pe(e), A = Re(e, y);
14716
+ const P = Pe(e), A = De(e, y);
14694
14717
  we(P, g, vs), we(A, g, bs);
14695
- const R = h.intersectsBox(vs), z = h.intersectsBox(bs);
14696
- if (R && z)
14718
+ const D = h.intersectsBox(vs), z = h.intersectsBox(bs);
14719
+ if (D && z)
14697
14720
  E = et(
14698
14721
  o,
14699
14722
  P,
@@ -14719,7 +14742,7 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14719
14742
  h,
14720
14743
  c
14721
14744
  );
14722
- else if (R)
14745
+ else if (D)
14723
14746
  if (v)
14724
14747
  E = et(
14725
14748
  o,
@@ -14735,9 +14758,9 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14735
14758
  c
14736
14759
  );
14737
14760
  else {
14738
- const T = Rt.getPrimitive();
14761
+ const T = Dt.getPrimitive();
14739
14762
  T.copy(vs).applyMatrix4(t);
14740
- const k = Pe(o), b = Re(o, f);
14763
+ const k = Pe(o), b = De(o, f);
14741
14764
  we(k, p, hn), we(b, p, un);
14742
14765
  const I = T.intersectsBox(hn), U = T.intersectsBox(un);
14743
14766
  E = I && et(
@@ -14764,7 +14787,7 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14764
14787
  a + 1,
14765
14788
  T,
14766
14789
  !c
14767
- ), Rt.releasePrimitive(T);
14790
+ ), Dt.releasePrimitive(T);
14768
14791
  }
14769
14792
  else if (z)
14770
14793
  if (v)
@@ -14782,9 +14805,9 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14782
14805
  c
14783
14806
  );
14784
14807
  else {
14785
- const T = Rt.getPrimitive();
14808
+ const T = Dt.getPrimitive();
14786
14809
  T.copy(bs).applyMatrix4(t);
14787
- const k = Pe(o), b = Re(o, f);
14810
+ const k = Pe(o), b = De(o, f);
14788
14811
  we(k, p, hn), we(b, p, un);
14789
14812
  const I = T.intersectsBox(hn), U = T.intersectsBox(un);
14790
14813
  E = I && et(
@@ -14811,7 +14834,7 @@ function et(o, e, t, n, i, s = 0, r = 0, a = 0, l = 0, h = null, c = !1) {
14811
14834
  a + 1,
14812
14835
  T,
14813
14836
  !c
14814
- ), Rt.releasePrimitive(T);
14837
+ ), Dt.releasePrimitive(T);
14815
14838
  }
14816
14839
  }
14817
14840
  return E;
@@ -14915,7 +14938,7 @@ class wr {
14915
14938
  const d = i[a + 6], m = s[h + 14];
14916
14939
  e(l, c, new Float32Array(n, a * 4, 6), d, m);
14917
14940
  } else {
14918
- const d = Pe(a), m = Re(a, i), p = yr(a, i);
14941
+ const d = Pe(a), m = De(a, i), p = yr(a, i);
14919
14942
  e(l, c, new Float32Array(n, a * 4, 6), p) || (r(d, l + 1), r(m, l + 1));
14920
14943
  }
14921
14944
  }
@@ -14986,7 +15009,7 @@ class wr {
14986
15009
  const f = (u, g, y, w, x, _, v, C) => {
14987
15010
  for (let E = y, P = y + w; E < P; E++) {
14988
15011
  p(E), c.a.applyMatrix4(t), c.b.applyMatrix4(t), c.c.applyMatrix4(t), c.needsUpdate = !0;
14989
- for (let A = u, R = u + g; A < R; A++)
15012
+ for (let A = u, D = u + g; A < D; A++)
14990
15013
  if (h(A), r.needsUpdate = !0, s(r, c, A, E, x, _, v, C))
14991
15014
  return !0;
14992
15015
  }
@@ -15089,8 +15112,8 @@ function Cf(o) {
15089
15112
  function xr(o) {
15090
15113
  return Cf(o) / 3;
15091
15114
  }
15092
- const Pf = 1e-8, Rf = new J();
15093
- function Df(o) {
15115
+ const Pf = 1e-8, Df = new J();
15116
+ function Rf(o) {
15094
15117
  return ~~(o / 3);
15095
15118
  }
15096
15119
  function kf(o) {
@@ -15100,7 +15123,7 @@ function bo(o, e) {
15100
15123
  return o.start - e.start;
15101
15124
  }
15102
15125
  function Mo(o, e) {
15103
- return Rf.subVectors(e, o.origin).dot(o.direction);
15126
+ return Df.subVectors(e, o.origin).dot(o.direction);
15104
15127
  }
15105
15128
  function If(o, e, t, n = Pf) {
15106
15129
  o.sort(bo), e.sort(bo);
@@ -15184,7 +15207,7 @@ const Ss = new J(), Ts = new J(), bi = new rr();
15184
15207
  function zf(o, e, t) {
15185
15208
  const n = o.attributes, i = o.index, s = n.position, r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = Array.from(e), h = new Lf();
15186
15209
  for (let c = 0, d = l.length; c < d; c++) {
15187
- const m = l[c], p = Df(m), f = kf(m);
15210
+ const m = l[c], p = Rf(m), f = kf(m);
15188
15211
  let u = 3 * p + f, g = 3 * p + (f + 1) % 3;
15189
15212
  i && (u = i.getX(u), g = i.getX(g)), Ss.fromBufferAttribute(s, u), Ts.fromBufferAttribute(s, g), Sf(Ss, Ts, bi);
15190
15213
  let y, w = h.findClosestRay(bi);
@@ -15243,12 +15266,12 @@ class Nf {
15243
15266
  c && (P = c.getX(P)), As[E] = r(P);
15244
15267
  }
15245
15268
  for (let E = 0; E < 3; E++) {
15246
- const P = (E + 1) % 3, A = As[E], R = As[P], z = `${R}_${A}`;
15269
+ const P = (E + 1) % 3, A = As[E], D = As[P], z = `${D}_${A}`;
15247
15270
  if (a.has(z)) {
15248
15271
  const T = C + E, k = a.get(z);
15249
15272
  u[T] = k, u[k] = T, a.delete(z), g += 2, y.delete(k);
15250
15273
  } else {
15251
- const T = `${A}_${R}`, k = C + E;
15274
+ const T = `${A}_${D}`, k = C + E;
15252
15275
  a.set(T, k), y.add(k);
15253
15276
  }
15254
15277
  }
@@ -15330,12 +15353,12 @@ class Gi extends ar {
15330
15353
  }
15331
15354
  }
15332
15355
  const Ff = 1e-14, Cs = new J(), Eo = new J(), Ao = new J();
15333
- function Dt(o, e = Ff) {
15356
+ function Rt(o, e = Ff) {
15334
15357
  Cs.subVectors(o.b, o.a), Eo.subVectors(o.c, o.a), Ao.subVectors(o.b, o.c);
15335
15358
  const t = Cs.angleTo(Eo), n = Cs.angleTo(Ao), i = Math.PI - t - n;
15336
15359
  return Math.abs(t) < e || Math.abs(n) < e || Math.abs(i) < e || o.a.distanceToSquared(o.b) < e || o.a.distanceToSquared(o.c) < e || o.b.distanceToSquared(o.c) < e;
15337
15360
  }
15338
- const Ps = 1e-10, zn = 1e-10, Uf = 1e-10, pt = new Ke(), _e = new Ke(), mt = new J(), Rs = new J(), Co = new J(), Mi = new Xi(), Ds = new $e();
15361
+ const Ps = 1e-10, zn = 1e-10, Uf = 1e-10, pt = new Ke(), _e = new Ke(), mt = new J(), Ds = new J(), Co = new J(), Mi = new Xi(), Rs = new $e();
15339
15362
  class Vf {
15340
15363
  constructor() {
15341
15364
  this._pool = [], this._index = 0;
@@ -15378,7 +15401,7 @@ class Hf {
15378
15401
  // coplanar it will attempt to split by the triangle edge planes
15379
15402
  splitByTriangle(e) {
15380
15403
  const { normal: t, triangles: n } = this;
15381
- if (e.getNormal(Rs).normalize(), Math.abs(1 - Math.abs(Rs.dot(t))) < Uf) {
15404
+ if (e.getNormal(Ds).normalize(), Math.abs(1 - Math.abs(Ds.dot(t))) < Uf) {
15382
15405
  this.coplanarTriangleUsed = !0;
15383
15406
  for (let s = 0, r = n.length; s < r; s++) {
15384
15407
  const a = n[s];
@@ -15387,7 +15410,7 @@ class Hf {
15387
15410
  const i = [e.a, e.b, e.c];
15388
15411
  for (let s = 0; s < 3; s++) {
15389
15412
  const r = (s + 1) % 3, a = i[s], l = i[r];
15390
- mt.subVectors(l, a).normalize(), Co.crossVectors(Rs, mt), Mi.setFromNormalAndCoplanarPoint(Co, a), this.splitByPlane(Mi, e);
15413
+ mt.subVectors(l, a).normalize(), Co.crossVectors(Ds, mt), Mi.setFromNormalAndCoplanarPoint(Co, a), this.splitByPlane(Mi, e);
15391
15414
  }
15392
15415
  } else
15393
15416
  e.getPlane(Mi), this.splitByPlane(Mi, e);
@@ -15396,10 +15419,10 @@ class Hf {
15396
15419
  // intersect the triangle before splitting the plane
15397
15420
  splitByPlane(e, t) {
15398
15421
  const { triangles: n, trianglePool: i } = this;
15399
- Ds.copy(t), Ds.needsUpdate = !0;
15422
+ Rs.copy(t), Rs.needsUpdate = !0;
15400
15423
  for (let s = 0, r = n.length; s < r; s++) {
15401
15424
  const a = n[s];
15402
- if (!Ds.intersectsTriangle(a, pt, !0))
15425
+ if (!Rs.intersectsTriangle(a, pt, !0))
15403
15426
  continue;
15404
15427
  const { a: l, b: h, c } = a;
15405
15428
  let d = 0, m = -1, p = !1, f = [], u = [];
@@ -15425,7 +15448,7 @@ class Hf {
15425
15448
  let w = y + 1;
15426
15449
  w === m && (w = (w + 1) % 3);
15427
15450
  const x = i.getTriangle();
15428
- x.a.copy(g[w]), x.b.copy(_e.end), x.c.copy(_e.start), Dt(x) || n.push(x), a.a.copy(g[y]), a.b.copy(_e.start), a.c.copy(_e.end), Dt(a) && (n.splice(s, 1), s--, r--);
15451
+ x.a.copy(g[w]), x.b.copy(_e.end), x.c.copy(_e.start), Rt(x) || n.push(x), a.a.copy(g[y]), a.b.copy(_e.start), a.c.copy(_e.end), Rt(a) && (n.splice(s, 1), s--, r--);
15429
15452
  } else {
15430
15453
  const y = f.length >= 2 ? u[0] : f[0];
15431
15454
  if (y === 0) {
@@ -15433,7 +15456,7 @@ class Hf {
15433
15456
  _e.start = _e.end, _e.end = C;
15434
15457
  }
15435
15458
  const w = (y + 1) % 3, x = (y + 2) % 3, _ = i.getTriangle(), v = i.getTriangle();
15436
- g[w].distanceToSquared(_e.start) < g[x].distanceToSquared(_e.end) ? (_.a.copy(g[w]), _.b.copy(_e.start), _.c.copy(_e.end), v.a.copy(g[w]), v.b.copy(g[x]), v.c.copy(_e.start)) : (_.a.copy(g[x]), _.b.copy(_e.start), _.c.copy(_e.end), v.a.copy(g[w]), v.b.copy(g[x]), v.c.copy(_e.end)), a.a.copy(g[y]), a.b.copy(_e.end), a.c.copy(_e.start), Dt(_) || n.push(_), Dt(v) || n.push(v), Dt(a) && (n.splice(s, 1), s--, r--);
15459
+ g[w].distanceToSquared(_e.start) < g[x].distanceToSquared(_e.end) ? (_.a.copy(g[w]), _.b.copy(_e.start), _.c.copy(_e.end), v.a.copy(g[w]), v.b.copy(g[x]), v.c.copy(_e.start)) : (_.a.copy(g[x]), _.b.copy(_e.start), _.c.copy(_e.end), v.a.copy(g[w]), v.b.copy(g[x]), v.c.copy(_e.end)), a.a.copy(g[y]), a.b.copy(_e.end), a.c.copy(_e.start), Rt(_) || n.push(_), Rt(v) || n.push(v), Rt(a) && (n.splice(s, 1), s--, r--);
15437
15460
  }
15438
15461
  else d === 3 && console.warn("TriangleClipper: Coplanar clip not handled");
15439
15462
  }
@@ -15563,7 +15586,7 @@ class Gf {
15563
15586
  this.groupAttributes = [], this.groupCount = 0;
15564
15587
  }
15565
15588
  }
15566
- class Ro {
15589
+ class Do {
15567
15590
  constructor() {
15568
15591
  this.intersectionSet = {}, this.ids = [];
15569
15592
  }
@@ -15572,7 +15595,7 @@ class Ro {
15572
15595
  n[e] || (n[e] = [], i.push(e)), n[e].push(t);
15573
15596
  }
15574
15597
  }
15575
- const Wf = 0, Xf = 1, Zf = 2, Ga = 3, qf = 4, Wa = 5, Xa = 6, Ze = new rr(), Do = new Me(), Le = new Ve(), gt = new J(), ko = new en(), Io = new en(), Lo = new en(), ks = new en(), Si = new en(), Ti = new en(), zo = new Ke(), Is = new J(), Ls = 1e-8, Yf = 1e-15, Zt = -1, qt = 1, zi = -2, Oi = 2, Un = 0, Wt = 1, _r = 2, Kf = 1e-14;
15598
+ const Wf = 0, Xf = 1, Zf = 2, Ga = 3, qf = 4, Wa = 5, Xa = 6, Ze = new rr(), Ro = new Me(), Le = new Ve(), gt = new J(), ko = new en(), Io = new en(), Lo = new en(), ks = new en(), Si = new en(), Ti = new en(), zo = new Ke(), Is = new J(), Ls = 1e-8, Yf = 1e-15, Zt = -1, qt = 1, zi = -2, Oi = 2, Un = 0, Wt = 1, _r = 2, Kf = 1e-14;
15576
15599
  let Bi = null;
15577
15600
  function Oo(o) {
15578
15601
  Bi = o;
@@ -15600,10 +15623,10 @@ function $f(o, e) {
15600
15623
  return i / n > 0.5 ? Zt : qt;
15601
15624
  }
15602
15625
  function Jf(o, e) {
15603
- const t = new Ro(), n = new Ro();
15604
- return Do.copy(o.matrixWorld).invert().multiply(e.matrixWorld), o.geometry.boundsTree.bvhcast(e.geometry.boundsTree, Do, {
15626
+ const t = new Do(), n = new Do();
15627
+ return Ro.copy(o.matrixWorld).invert().multiply(e.matrixWorld), o.geometry.boundsTree.bvhcast(e.geometry.boundsTree, Ro, {
15605
15628
  intersectsTriangles(i, s, r, a) {
15606
- if (!Dt(i) && !Dt(s)) {
15629
+ if (!Rt(i) && !Rt(s)) {
15607
15630
  let l = i.intersectsTriangle(s, zo, !0);
15608
15631
  if (!l) {
15609
15632
  const h = i.plane, c = s.plane, d = h.normal, m = c.normal;
@@ -15794,9 +15817,9 @@ function No(o, e, t, n, i, s, r, a = 0) {
15794
15817
  const k = 3 * A[z], b = p.getX(k + 0), I = p.getX(k + 1), U = p.getX(k + 2);
15795
15818
  Ei.a.fromBufferAttribute(f, b), Ei.b.fromBufferAttribute(f, I), Ei.c.fromBufferAttribute(f, U), s.splitByTriangle(Ei);
15796
15819
  }
15797
- const R = s.triangles;
15798
- for (let z = 0, T = R.length; z < T; z++) {
15799
- const k = R[z], b = s.coplanarTriangleUsed ? $f(k, m) : Za(k, m);
15820
+ const D = s.triangles;
15821
+ for (let z = 0, T = D.length; z < T; z++) {
15822
+ const k = D[z], b = s.coplanarTriangleUsed ? $f(k, m) : Za(k, m);
15800
15823
  it.length = 0, Jt.length = 0;
15801
15824
  for (let I = 0, U = n.length; I < U; I++) {
15802
15825
  const F = qa(n[I], b, i);
@@ -15837,11 +15860,11 @@ function Fo(o, e, t, n, i, s, r = 0) {
15837
15860
  A !== -1 && u.has(A) && (p.push(A), u.delete(A));
15838
15861
  }
15839
15862
  if (it.length !== 0) {
15840
- const P = 3 * E, A = c.getX(P + 0), R = c.getX(P + 1), z = c.getX(P + 2), T = r === -1 ? 0 : h[E] + r;
15841
- if (Pt.a.fromBufferAttribute(m, A), Pt.b.fromBufferAttribute(m, R), Pt.c.fromBufferAttribute(m, z), !Dt(Pt))
15863
+ const P = 3 * E, A = c.getX(P + 0), D = c.getX(P + 1), z = c.getX(P + 2), T = r === -1 ? 0 : h[E] + r;
15864
+ if (Pt.a.fromBufferAttribute(m, A), Pt.b.fromBufferAttribute(m, D), Pt.c.fromBufferAttribute(m, z), !Rt(Pt))
15842
15865
  for (let k = 0, b = it.length; k < b; k++) {
15843
15866
  const I = Jt[k], U = it[k].getGroupAttrSet(T), F = I === Un;
15844
- ep(A, R, z, d, o.matrixWorld, Wi, U, F !== a);
15867
+ ep(A, D, z, d, o.matrixWorld, Wi, U, F !== a);
15845
15868
  }
15846
15869
  }
15847
15870
  }
@@ -16703,7 +16726,7 @@ class up {
16703
16726
  Math.abs(l.z) * g
16704
16727
  ), x = p.clone().add(a.clone().multiplyScalar(-y / 2)).add(l.clone().multiplyScalar(-w / 2)), _ = p.clone().add(a.clone().multiplyScalar(y / 2)).add(l.clone().multiplyScalar(-w / 2)), v = p.clone().add(a.clone().multiplyScalar(y / 2)).add(l.clone().multiplyScalar(w / 2)), C = p.clone().add(a.clone().multiplyScalar(-y / 2)).add(l.clone().multiplyScalar(w / 2));
16705
16728
  x.add(h.clone().multiplyScalar(e)), _.add(h.clone().multiplyScalar(e)), v.add(h.clone().multiplyScalar(e)), C.add(h.clone().multiplyScalar(e)), this.current_center = p.clone().add(h.clone().multiplyScalar(e)), P([x, _, v, C], h, "face");
16706
- function P(A, R, z) {
16729
+ function P(A, D, z) {
16707
16730
  const T = new M.BufferGeometry(), k = new Float32Array([
16708
16731
  A[0].x,
16709
16732
  A[0].y,
@@ -16744,7 +16767,7 @@ class up {
16744
16767
  });
16745
16768
  Y.polygonOffset = !0, Y.polygonOffsetFactor = 1, Y.polygonOffsetUnits = 4;
16746
16769
  const N = new M.Mesh(T, Y);
16747
- N.normal = R, N.name = z, n.add(N), t.meshs.push(N);
16770
+ N.normal = D, N.name = z, n.add(N), t.meshs.push(N);
16748
16771
  } else
16749
16772
  I.geometry = T;
16750
16773
  const U = new Float32Array([
@@ -16772,7 +16795,7 @@ class up {
16772
16795
  let F = new M.LineBasicMaterial({ color: 255 }), K = new M.BufferGeometry();
16773
16796
  K.setAttribute("position", new M.BufferAttribute(U, 3));
16774
16797
  let H = t.meshs.find((Y) => Y.name == z + "Line");
16775
- H == null && (H = new M.Line(K, F), H.name = z + "Line", n.add(H), t.meshs.push(H)), H.geometry = K, H.material = F, t.engine.sectionPlane.find((Y) => Y.name == z).setFromNormalAndCoplanarPoint(R.clone().setLength(t.direction), A[0]);
16798
+ H == null && (H = new M.Line(K, F), H.name = z + "Line", n.add(H), t.meshs.push(H)), H.geometry = K, H.material = F, t.engine.sectionPlane.find((Y) => Y.name == z).setFromNormalAndCoplanarPoint(D.clone().setLength(t.direction), A[0]);
16776
16799
  }
16777
16800
  }
16778
16801
  // 重写鼠标按下事件
@@ -17020,7 +17043,7 @@ class gp {
17020
17043
  // 查询构件属性
17021
17044
  getModelProperties(e, t, n) {
17022
17045
  let i = this.engine.engineStatus.models.find((r) => r.url === e);
17023
- i.properties == null && Da(e + "/property", (r) => {
17046
+ i.properties == null && Ra(e + "/property", (r) => {
17024
17047
  let a = JSON.parse(r);
17025
17048
  i.properties = a, setTimeout(() => {
17026
17049
  s(a, t, n);
@@ -18589,8 +18612,8 @@ class Pp {
18589
18612
  uWaveSpeed: { value: e.waveSpeed ?? 1 },
18590
18613
  uOpacity: { value: t?.opacity ?? 0.82 }
18591
18614
  },
18592
- vertexShader: Rp,
18593
- fragmentShader: Dp,
18615
+ vertexShader: Dp,
18616
+ fragmentShader: Rp,
18594
18617
  transparent: !0,
18595
18618
  side: M.DoubleSide
18596
18619
  });
@@ -18629,7 +18652,7 @@ class Pp {
18629
18652
  Array.isArray(e) ? e.forEach((t) => t.dispose()) : e.dispose(), this.groundGroup.remove(this.groundMesh), this.groundMesh = null, this.waterMaterial = null;
18630
18653
  }
18631
18654
  }
18632
- const Rp = (
18655
+ const Dp = (
18633
18656
  /* glsl */
18634
18657
  `
18635
18658
  uniform float uTime;
@@ -18668,7 +18691,7 @@ void main() {
18668
18691
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
18669
18692
  }
18670
18693
  `
18671
- ), Dp = (
18694
+ ), Rp = (
18672
18695
  /* glsl */
18673
18696
  `
18674
18697
  uniform float uTime;
@@ -18796,7 +18819,7 @@ class kp {
18796
18819
  // 业务数据
18797
18820
  models = [];
18798
18821
  reactBoundingClientRect = { left: 0, top: 0 };
18799
- version = "2.1.3";
18822
+ version = "2.1.5";
18800
18823
  versionEl = null;
18801
18824
  // 引擎容器
18802
18825
  container;