@reall3d/reall3dviewer 2.5.1 → 2.5.2

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 (3) hide show
  1. package/dist/pkg.js +456 -456
  2. package/dist/pkg.umd.cjs +12 -12
  3. package/package.json +1 -1
package/dist/pkg.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var fe = Object.defineProperty;
2
2
  var Te = (B, A, I) => A in B ? fe(B, A, { enumerable: !0, configurable: !0, writable: !0, value: I }) : B[A] = I;
3
3
  var RB = (B, A, I) => Te(B, typeof A != "symbol" ? A + "" : A, I);
4
- import { Controls as ea, Vector3 as J, MOUSE as Mg, TOUCH as Tg, Quaternion as II, Spherical as Ko, Vector2 as $A, Ray as ue, Plane as mi, MathUtils as KI, Raycaster as Oi, Object3D as tg, MeshBasicMaterial as hI, LineBasicMaterial as zg, CylinderGeometry as cI, BoxGeometry as rI, BufferGeometry as Og, Float32BufferAttribute as VI, Mesh as z, OctahedronGeometry as YB, Line as yg, TorusGeometry as pC, SphereGeometry as wa, Euler as Sa, Matrix4 as zA, PlaneGeometry as bi, DoubleSide as qI, TrianglesDrawMode as me, TriangleFanDrawMode as xE, TriangleStripDrawMode as ha, InstancedBufferGeometry as ZE, InstancedInterleavedBuffer as jE, InterleavedBufferAttribute as Xg, WireframeGeometry as Oe, Box3 as FQ, Sphere as xi, ShaderMaterial as ka, ShaderLib as PB, UniformsUtils as Ga, UniformsLib as XB, Vector4 as eg, Line3 as be, Loader as Zi, FileLoader as oB, SRGBColorSpace as Ug, LinearSRGBColorSpace as wg, BufferAttribute as dI, Color as zI, ColorManagement as WE, LoaderUtils as IB, MeshPhysicalMaterial as Gg, SpotLight as xe, PointLight as Ze, DirectionalLight as ca, InstancedMesh as je, InstancedBufferAttribute as ya, TextureLoader as We, ImageBitmapLoader as Pe, InterleavedBuffer as Xe, LinearMipmapLinearFilter as Ka, NearestMipmapLinearFilter as Ve, LinearMipmapNearestFilter as ve, NearestMipmapNearestFilter as ze, LinearFilter as PE, NearestFilter as na, RepeatWrapping as XE, MirroredRepeatWrapping as _e, ClampToEdgeWrapping as $e, PointsMaterial as ZC, Material as gB, MeshStandardMaterial as RQ, PropertyBinding as Aw, SkinnedMesh as Iw, LineSegments as DB, LineLoop as gw, Points as VB, Group as Dg, PerspectiveCamera as ji, OrthographicCamera as Cw, Skeleton as Bw, AnimationClip as Qw, Bone as Ew, InterpolateDiscrete as iw, InterpolateLinear as Ma, Texture as no, VectorKeyframeTrack as Mo, NumberKeyframeTrack as Uo, QuaternionKeyframeTrack as ro, FrontSide as ow, Interpolant as Dw, MeshPhongMaterial as sw, AudioLoader as Ua, Audio as ra, AudioListener as Ja, Frustum as aw, WebGLRenderTarget as tw, ShaderChunk as ew, DynamicDrawUsage as ww, NormalBlending as Sw, DataArrayTexture as Jo, RGBAIntegerFormat as pg, UnsignedIntType as sC, DataTexture as aC, UnsignedByteType as lo, WebGLRenderer as la, CircleGeometry as Pg, CatmullRomCurve3 as No, RingGeometry as hw, Clock as Wi, AnimationMixer as kw, Scene as Na, AmbientLight as Fa, FogExp2 as Fo, EventDispatcher as Gw } from "three";
4
+ import { Controls as ea, Vector3 as J, MOUSE as Mg, TOUCH as Tg, Quaternion as II, Spherical as Ko, Vector2 as $A, Ray as ue, Plane as Oi, MathUtils as KI, Raycaster as bi, Object3D as tg, MeshBasicMaterial as hI, LineBasicMaterial as zg, CylinderGeometry as cI, BoxGeometry as rI, BufferGeometry as Og, Float32BufferAttribute as VI, Mesh as z, OctahedronGeometry as YB, Line as yg, TorusGeometry as pC, SphereGeometry as wa, Euler as Sa, Matrix4 as zA, PlaneGeometry as xi, DoubleSide as qI, TrianglesDrawMode as me, TriangleFanDrawMode as ZE, TriangleStripDrawMode as ha, InstancedBufferGeometry as jE, InstancedInterleavedBuffer as WE, InterleavedBufferAttribute as Xg, WireframeGeometry as Oe, Box3 as RQ, Sphere as Zi, ShaderMaterial as ka, ShaderLib as PB, UniformsUtils as Ga, UniformsLib as XB, Vector4 as eg, Line3 as be, Loader as ji, FileLoader as oB, SRGBColorSpace as Ug, LinearSRGBColorSpace as wg, BufferAttribute as dI, Color as zI, ColorManagement as PE, LoaderUtils as IB, MeshPhysicalMaterial as Gg, SpotLight as xe, PointLight as Ze, DirectionalLight as ca, InstancedMesh as je, InstancedBufferAttribute as ya, TextureLoader as We, ImageBitmapLoader as Pe, InterleavedBuffer as Xe, LinearMipmapLinearFilter as Ka, NearestMipmapLinearFilter as Ve, LinearMipmapNearestFilter as ve, NearestMipmapNearestFilter as ze, LinearFilter as XE, NearestFilter as na, RepeatWrapping as VE, MirroredRepeatWrapping as _e, ClampToEdgeWrapping as $e, PointsMaterial as ZC, Material as gB, MeshStandardMaterial as YQ, PropertyBinding as Aw, SkinnedMesh as Iw, LineSegments as DB, LineLoop as gw, Points as VB, Group as Dg, PerspectiveCamera as Wi, OrthographicCamera as Cw, Skeleton as Bw, AnimationClip as Qw, Bone as Ew, InterpolateDiscrete as iw, InterpolateLinear as Ma, Texture as no, VectorKeyframeTrack as Mo, NumberKeyframeTrack as Uo, QuaternionKeyframeTrack as ro, FrontSide as ow, Interpolant as Dw, MeshPhongMaterial as sw, AudioLoader as Ua, Audio as ra, AudioListener as Ja, Frustum as aw, WebGLRenderTarget as tw, ShaderChunk as ew, DynamicDrawUsage as ww, NormalBlending as Sw, DataArrayTexture as Jo, RGBAIntegerFormat as pg, UnsignedIntType as sC, DataTexture as aC, UnsignedByteType as lo, WebGLRenderer as la, CircleGeometry as Pg, CatmullRomCurve3 as No, RingGeometry as hw, Clock as Pi, AnimationMixer as kw, Scene as Na, AmbientLight as Fa, FogExp2 as Fo, EventDispatcher as Gw } from "three";
5
5
  import * as Ro from "@gotoeasy/three-tile";
6
- const Yo = { type: "change" }, Pi = { type: "start" }, Ra = { type: "end" }, qB = new ue(), qo = new mi(), cw = Math.cos(70 * KI.DEG2RAD), QI = new J(), lI = 2 * Math.PI, pA = {
6
+ const Yo = { type: "change" }, Xi = { type: "start" }, Ra = { type: "end" }, qB = new ue(), qo = new Oi(), cw = Math.cos(70 * KI.DEG2RAD), QI = new J(), lI = 2 * Math.PI, pA = {
7
7
  NONE: -1,
8
8
  ROTATE: 0,
9
9
  DOLLY: 1,
@@ -12,7 +12,7 @@ const Yo = { type: "change" }, Pi = { type: "start" }, Ra = { type: "end" }, qB
12
12
  TOUCH_PAN: 4,
13
13
  TOUCH_DOLLY_PAN: 5,
14
14
  TOUCH_DOLLY_ROTATE: 6
15
- }, zQ = 1e-6;
15
+ }, _Q = 1e-6;
16
16
  class Ya extends ea {
17
17
  constructor(A, I = null) {
18
18
  super(A, I), this.state = pA.NONE, this.enabled = !0, this.target = new J(), this.cursor = new J(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Mg.ROTATE, MIDDLE: Mg.DOLLY, RIGHT: Mg.PAN }, this.touches = { ONE: Tg.ROTATE, TWO: Tg.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new J(), this._lastQuaternion = new II(), this._lastTargetPosition = new J(), this._quat = new II().setFromUnitVectors(A.up, new J(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ko(), this._sphericalDelta = new Ko(), this._scale = 1, this._panOffset = new J(), this._rotateStart = new $A(), this._rotateEnd = new $A(), this._rotateDelta = new $A(), this._panStart = new $A(), this._panEnd = new $A(), this._panDelta = new $A(), this._dollyStart = new $A(), this._dollyEnd = new $A(), this._dollyDelta = new $A(), this._dollyDirection = new J(), this._mouse = new $A(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Kw.bind(this), this._onPointerDown = yw.bind(this), this._onPointerUp = nw.bind(this), this._onContextMenu = Fw.bind(this), this._onMouseWheel = rw.bind(this), this._onKeyDown = Jw.bind(this), this._onTouchStart = lw.bind(this), this._onTouchMove = Nw.bind(this), this._onMouseDown = Mw.bind(this), this._onMouseMove = Uw.bind(this), this._interceptControlDown = Rw.bind(this), this._interceptControlUp = Yw.bind(this), this.domElement !== null && this.connect(), this.update();
@@ -80,7 +80,7 @@ class Ya extends ea {
80
80
  const E = this.object.zoom;
81
81
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), E !== this.object.zoom && (this.object.updateProjectionMatrix(), Q = !0);
82
82
  }
83
- return this._scale = 1, this._performCursorZoom = !1, Q || this._lastPosition.distanceToSquared(this.object.position) > zQ || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > zQ || this._lastTargetPosition.distanceToSquared(this.target) > zQ ? (this.dispatchEvent(Yo), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
83
+ return this._scale = 1, this._performCursorZoom = !1, Q || this._lastPosition.distanceToSquared(this.object.position) > _Q || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > _Q || this._lastTargetPosition.distanceToSquared(this.target) > _Q ? (this.dispatchEvent(Yo), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
84
84
  }
85
85
  _getAutoRotationAngle(A) {
86
86
  return A !== null ? lI / 60 * this.autoRotateSpeed * A : lI / 60 / 60 * this.autoRotateSpeed;
@@ -330,7 +330,7 @@ function Mw(B) {
330
330
  default:
331
331
  this.state = pA.NONE;
332
332
  }
333
- this.state !== pA.NONE && this.dispatchEvent(Pi);
333
+ this.state !== pA.NONE && this.dispatchEvent(Xi);
334
334
  }
335
335
  function Uw(B) {
336
336
  switch (this.state) {
@@ -349,7 +349,7 @@ function Uw(B) {
349
349
  }
350
350
  }
351
351
  function rw(B) {
352
- this.enabled === !1 || this.enableZoom === !1 || this.state !== pA.NONE || (B.preventDefault(), this.dispatchEvent(Pi), this._handleMouseWheel(this._customWheelEvent(B)), this.dispatchEvent(Ra));
352
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== pA.NONE || (B.preventDefault(), this.dispatchEvent(Xi), this._handleMouseWheel(this._customWheelEvent(B)), this.dispatchEvent(Ra));
353
353
  }
354
354
  function Jw(B) {
355
355
  this.enabled !== !1 && this._handleKeyDown(B);
@@ -387,7 +387,7 @@ function lw(B) {
387
387
  default:
388
388
  this.state = pA.NONE;
389
389
  }
390
- this.state !== pA.NONE && this.dispatchEvent(Pi);
390
+ this.state !== pA.NONE && this.dispatchEvent(Xi);
391
391
  }
392
392
  function Nw(B) {
393
393
  switch (this._trackPointer(B), this.state) {
@@ -425,11 +425,11 @@ class qw extends Ya {
425
425
  super(A, I), this.screenSpacePanning = !1, this.mouseButtons = { LEFT: Mg.PAN, MIDDLE: Mg.DOLLY, RIGHT: Mg.ROTATE }, this.touches = { ONE: Tg.PAN, TWO: Tg.DOLLY_ROTATE };
426
426
  }
427
427
  }
428
- const xg = new Oi(), yI = new J(), Lg = new J(), bA = new II(), po = {
428
+ const xg = new bi(), yI = new J(), Lg = new J(), bA = new II(), po = {
429
429
  X: new J(1, 0, 0),
430
430
  Y: new J(0, 1, 0),
431
431
  Z: new J(0, 0, 1)
432
- }, _Q = { type: "change" }, Lo = { type: "mouseDown", mode: null }, Ho = { type: "mouseUp", mode: null }, fo = { type: "objectChange" };
432
+ }, $Q = { type: "change" }, Lo = { type: "mouseDown", mode: null }, Ho = { type: "mouseUp", mode: null }, fo = { type: "objectChange" };
433
433
  class pw extends ea {
434
434
  constructor(A, I = null) {
435
435
  super(void 0, I);
@@ -447,7 +447,7 @@ class pw extends ea {
447
447
  return K !== void 0 ? K : y;
448
448
  },
449
449
  set: function(M) {
450
- K !== M && (K = M, Q[R] = M, C[R] = M, E.dispatchEvent({ type: R + "-changed", value: M }), E.dispatchEvent(_Q));
450
+ K !== M && (K = M, Q[R] = M, C[R] = M, E.dispatchEvent({ type: R + "-changed", value: M }), E.dispatchEvent($Q));
451
451
  }
452
452
  }), E[R] = y, Q[R] = y, C[R] = y;
453
453
  }
@@ -467,13 +467,13 @@ class pw extends ea {
467
467
  pointerHover(A) {
468
468
  if (this.object === void 0 || this.dragging === !0) return;
469
469
  A !== null && xg.setFromCamera(A, this.camera);
470
- const I = $Q(this._gizmo.picker[this.mode], xg);
470
+ const I = AE(this._gizmo.picker[this.mode], xg);
471
471
  I ? this.axis = I.object.name : this.axis = null;
472
472
  }
473
473
  pointerDown(A) {
474
474
  if (!(this.object === void 0 || this.dragging === !0 || A != null && A.button !== 0) && this.axis !== null) {
475
475
  A !== null && xg.setFromCamera(A, this.camera);
476
- const I = $Q(this._plane, xg, !0);
476
+ const I = AE(this._plane, xg, !0);
477
477
  I && (this.object.updateMatrixWorld(), this.object.parent.updateMatrixWorld(), this._positionStart.copy(this.object.position), this._quaternionStart.copy(this.object.quaternion), this._scaleStart.copy(this.object.scale), this.object.matrixWorld.decompose(this.worldPositionStart, this.worldQuaternionStart, this._worldScaleStart), this.pointStart.copy(I.point).sub(this.worldPositionStart)), this.dragging = !0, Lo.mode = this.mode, this.dispatchEvent(Lo);
478
478
  }
479
479
  }
@@ -482,7 +482,7 @@ class pw extends ea {
482
482
  let Q = this.space;
483
483
  if (g === "scale" ? Q = "local" : (I === "E" || I === "XYZE" || I === "XYZ") && (Q = "world"), C === void 0 || I === null || this.dragging === !1 || A !== null && A.button !== -1) return;
484
484
  A !== null && xg.setFromCamera(A, this.camera);
485
- const E = $Q(this._plane, xg, !0);
485
+ const E = AE(this._plane, xg, !0);
486
486
  if (E) {
487
487
  if (this.pointEnd.copy(E.point).sub(this.worldPositionStart), g === "translate")
488
488
  this._offset.copy(this.pointEnd).sub(this.pointStart), Q === "local" && I !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), I.indexOf("X") === -1 && (this._offset.x = 0), I.indexOf("Y") === -1 && (this._offset.y = 0), I.indexOf("Z") === -1 && (this._offset.z = 0), Q === "local" && I !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), C.position.copy(this._offset).add(this._positionStart), this.translationSnap && (Q === "local" && (C.position.applyQuaternion(bA.copy(this._quaternionStart).invert()), I.search("X") !== -1 && (C.position.x = Math.round(C.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (C.position.y = Math.round(C.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (C.position.z = Math.round(C.position.z / this.translationSnap) * this.translationSnap), C.position.applyQuaternion(this._quaternionStart)), Q === "world" && (C.parent && C.position.add(yI.setFromMatrixPosition(C.parent.matrixWorld)), I.search("X") !== -1 && (C.position.x = Math.round(C.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (C.position.y = Math.round(C.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (C.position.z = Math.round(C.position.z / this.translationSnap) * this.translationSnap), C.parent && C.position.sub(yI.setFromMatrixPosition(C.parent.matrixWorld)))), C.position.x = Math.max(this.minX, Math.min(this.maxX, C.position.x)), C.position.y = Math.max(this.minY, Math.min(this.maxY, C.position.y)), C.position.z = Math.max(this.minZ, Math.min(this.maxZ, C.position.z));
@@ -499,7 +499,7 @@ class pw extends ea {
499
499
  let D = !1;
500
500
  I === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(yI.copy(this.rotationAxis).cross(this.eye)) * i) : (I === "X" || I === "Y" || I === "Z") && (this.rotationAxis.copy(po[I]), yI.copy(po[I]), Q === "local" && yI.applyQuaternion(this.worldQuaternion), yI.cross(this.eye), yI.length() === 0 ? D = !0 : this.rotationAngle = this._offset.dot(yI.normalize()) * i), (I === "E" || D) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), Q === "local" && I !== "E" && I !== "XYZE" ? (C.quaternion.copy(this._quaternionStart), C.quaternion.multiply(bA.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), C.quaternion.copy(bA.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), C.quaternion.multiply(this._quaternionStart).normalize());
501
501
  }
502
- this.dispatchEvent(_Q), this.dispatchEvent(fo);
502
+ this.dispatchEvent($Q), this.dispatchEvent(fo);
503
503
  }
504
504
  }
505
505
  pointerUp(A) {
@@ -517,7 +517,7 @@ class pw extends ea {
517
517
  return this.object = void 0, this.axis = null, this._root.visible = !1, this;
518
518
  }
519
519
  reset() {
520
- this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(_Q), this.dispatchEvent(fo), this.pointStart.copy(this.pointEnd));
520
+ this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent($Q), this.dispatchEvent(fo), this.pointStart.copy(this.pointEnd));
521
521
  }
522
522
  getRaycaster() {
523
523
  return xg;
@@ -579,7 +579,7 @@ function fw(B) {
579
579
  function Tw(B) {
580
580
  this.enabled && (this.domElement.releasePointerCapture(B.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.pointerUp(this._getPointer(B)));
581
581
  }
582
- function $Q(B, A, I) {
582
+ function AE(B, A, I) {
583
583
  const g = A.intersectObject(B, !0);
584
584
  for (let C = 0; C < g.length; C++)
585
585
  if (g[C].object.visible || I)
@@ -864,7 +864,7 @@ class mw extends tg {
864
864
  class Ow extends z {
865
865
  constructor() {
866
866
  super(
867
- new bi(1e5, 1e5, 2, 2),
867
+ new xi(1e5, 1e5, 2, 2),
868
868
  new hI({ visible: !1, wireframe: !0, side: qI, transparent: !0, opacity: 0.1, toneMapped: !1 })
869
869
  ), this.isTransformControlsPlane = !0, this.type = "TransformControlsPlane";
870
870
  }
@@ -908,7 +908,7 @@ class Ow extends z {
908
908
  function Oo(B, A) {
909
909
  if (A === me)
910
910
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), B;
911
- if (A === xE || A === ha) {
911
+ if (A === ZE || A === ha) {
912
912
  let I = B.getIndex();
913
913
  if (I === null) {
914
914
  const E = [], i = B.getAttribute("position");
@@ -920,7 +920,7 @@ function Oo(B, A) {
920
920
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."), B;
921
921
  }
922
922
  const g = I.count - 2, C = [];
923
- if (A === xE)
923
+ if (A === ZE)
924
924
  for (let E = 1; E <= g; E++)
925
925
  C.push(I.getX(0)), C.push(I.getX(E)), C.push(I.getX(E + 1));
926
926
  else
@@ -932,8 +932,8 @@ function Oo(B, A) {
932
932
  } else
933
933
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:", A), B;
934
934
  }
935
- const bo = new FQ(), HB = new J();
936
- class qa extends ZE {
935
+ const bo = new RQ(), HB = new J();
936
+ class qa extends jE {
937
937
  constructor() {
938
938
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
939
939
  const A = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], I = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], g = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
@@ -946,13 +946,13 @@ class qa extends ZE {
946
946
  setPositions(A) {
947
947
  let I;
948
948
  A instanceof Float32Array ? I = A : Array.isArray(A) && (I = new Float32Array(A));
949
- const g = new jE(I, 6, 1);
949
+ const g = new WE(I, 6, 1);
950
950
  return this.setAttribute("instanceStart", new Xg(g, 3, 0)), this.setAttribute("instanceEnd", new Xg(g, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
951
951
  }
952
952
  setColors(A) {
953
953
  let I;
954
954
  A instanceof Float32Array ? I = A : Array.isArray(A) && (I = new Float32Array(A));
955
- const g = new jE(I, 6, 1);
955
+ const g = new WE(I, 6, 1);
956
956
  return this.setAttribute("instanceColorStart", new Xg(g, 3, 0)), this.setAttribute("instanceColorEnd", new Xg(g, 3, 3)), this;
957
957
  }
958
958
  fromWireframeGeometry(A) {
@@ -969,12 +969,12 @@ class qa extends ZE {
969
969
  return this.setPositions(I.attributes.position.array), this;
970
970
  }
971
971
  computeBoundingBox() {
972
- this.boundingBox === null && (this.boundingBox = new FQ());
972
+ this.boundingBox === null && (this.boundingBox = new RQ());
973
973
  const A = this.attributes.instanceStart, I = this.attributes.instanceEnd;
974
974
  A !== void 0 && I !== void 0 && (this.boundingBox.setFromBufferAttribute(A), bo.setFromBufferAttribute(I), this.boundingBox.union(bo));
975
975
  }
976
976
  computeBoundingSphere() {
977
- this.boundingSphere === null && (this.boundingSphere = new xi()), this.boundingBox === null && this.computeBoundingBox();
977
+ this.boundingSphere === null && (this.boundingSphere = new Zi()), this.boundingBox === null && this.computeBoundingBox();
978
978
  const A = this.attributes.instanceStart, I = this.attributes.instanceEnd;
979
979
  if (A !== void 0 && I !== void 0) {
980
980
  const g = this.boundingSphere.center;
@@ -1464,7 +1464,7 @@ class lC extends ka {
1464
1464
  this.defines && (A === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), A === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
1465
1465
  }
1466
1466
  }
1467
- const AE = new eg(), xo = new J(), Zo = new J(), tI = new eg(), eI = new eg(), Ag = new eg(), IE = new J(), gE = new zA(), wI = new be(), jo = new J(), fB = new FQ(), TB = new xi(), Ig = new eg();
1467
+ const IE = new eg(), xo = new J(), Zo = new J(), tI = new eg(), eI = new eg(), Ag = new eg(), gE = new J(), CE = new zA(), wI = new be(), jo = new J(), fB = new RQ(), TB = new Zi(), Ig = new eg();
1468
1468
  let ig, _g;
1469
1469
  function Wo(B, A, I) {
1470
1470
  return Ig.set(0, 0, -A, 1).applyMatrix4(B.projectionMatrix), Ig.multiplyScalar(1 / Ig.w), Ig.x = _g / I.width, Ig.y = _g / I.height, Ig.applyMatrix4(B.projectionMatrixInverse), Ig.multiplyScalar(1 / Ig.w), Math.abs(Math.max(Ig.x, Ig.y));
@@ -1488,9 +1488,9 @@ function bw(B, A) {
1488
1488
  }
1489
1489
  function xw(B, A, I) {
1490
1490
  const g = A.projectionMatrix, Q = B.material.resolution, E = B.matrixWorld, i = B.geometry, D = i.attributes.instanceStart, o = i.attributes.instanceEnd, a = Math.min(i.instanceCount, D.count), s = -A.near;
1491
- ig.at(1, Ag), Ag.w = 1, Ag.applyMatrix4(A.matrixWorldInverse), Ag.applyMatrix4(g), Ag.multiplyScalar(1 / Ag.w), Ag.x *= Q.x / 2, Ag.y *= Q.y / 2, Ag.z = 0, IE.copy(Ag), gE.multiplyMatrices(A.matrixWorldInverse, E);
1491
+ ig.at(1, Ag), Ag.w = 1, Ag.applyMatrix4(A.matrixWorldInverse), Ag.applyMatrix4(g), Ag.multiplyScalar(1 / Ag.w), Ag.x *= Q.x / 2, Ag.y *= Q.y / 2, Ag.z = 0, gE.copy(Ag), CE.multiplyMatrices(A.matrixWorldInverse, E);
1492
1492
  for (let t = 0, S = a; t < S; t++) {
1493
- if (tI.fromBufferAttribute(D, t), eI.fromBufferAttribute(o, t), tI.w = 1, eI.w = 1, tI.applyMatrix4(gE), eI.applyMatrix4(gE), tI.z > s && eI.z > s)
1493
+ if (tI.fromBufferAttribute(D, t), eI.fromBufferAttribute(o, t), tI.w = 1, eI.w = 1, tI.applyMatrix4(CE), eI.applyMatrix4(CE), tI.z > s && eI.z > s)
1494
1494
  continue;
1495
1495
  if (tI.z > s) {
1496
1496
  const R = tI.z - eI.z, y = (tI.z - s) / R;
@@ -1500,9 +1500,9 @@ function xw(B, A, I) {
1500
1500
  eI.lerp(tI, y);
1501
1501
  }
1502
1502
  tI.applyMatrix4(g), eI.applyMatrix4(g), tI.multiplyScalar(1 / tI.w), eI.multiplyScalar(1 / eI.w), tI.x *= Q.x / 2, tI.y *= Q.y / 2, eI.x *= Q.x / 2, eI.y *= Q.y / 2, wI.start.copy(tI), wI.start.z = 0, wI.end.copy(eI), wI.end.z = 0;
1503
- const c = wI.closestPointToPointParameter(IE, !0);
1503
+ const c = wI.closestPointToPointParameter(gE, !0);
1504
1504
  wI.at(c, jo);
1505
- const w = KI.lerp(tI.z, eI.z, c), G = w >= -1 && w <= 1, k = IE.distanceTo(jo) < _g * 0.5;
1505
+ const w = KI.lerp(tI.z, eI.z, c), G = w >= -1 && w <= 1, k = gE.distanceTo(jo) < _g * 0.5;
1506
1506
  if (G && k) {
1507
1507
  wI.start.fromBufferAttribute(D, t), wI.end.fromBufferAttribute(o, t), wI.start.applyMatrix4(E), wI.end.applyMatrix4(E);
1508
1508
  const R = new J(), y = new J();
@@ -1528,7 +1528,7 @@ class Zw extends z {
1528
1528
  const A = this.geometry, I = A.attributes.instanceStart, g = A.attributes.instanceEnd, C = new Float32Array(2 * I.count);
1529
1529
  for (let E = 0, i = 0, D = I.count; E < D; E++, i += 2)
1530
1530
  xo.fromBufferAttribute(I, E), Zo.fromBufferAttribute(g, E), C[i] = i === 0 ? 0 : C[i - 1], C[i + 1] = C[i] + xo.distanceTo(Zo);
1531
- const Q = new jE(C, 2, 1);
1531
+ const Q = new WE(C, 2, 1);
1532
1532
  return A.setAttribute("instanceDistanceStart", new Xg(Q, 1, 0)), A.setAttribute("instanceDistanceEnd", new Xg(Q, 1, 1)), this;
1533
1533
  }
1534
1534
  raycast(A, I) {
@@ -1559,7 +1559,7 @@ class Zw extends z {
1559
1559
  }
1560
1560
  onBeforeRender(A) {
1561
1561
  const I = this.material.uniforms;
1562
- I && I.resolution && (A.getViewport(AE), this.material.uniforms.resolution.value.set(AE.z, AE.w));
1562
+ I && I.resolution && (A.getViewport(IE), this.material.uniforms.resolution.value.set(IE.z, IE.w));
1563
1563
  }
1564
1564
  }
1565
1565
  class sB extends qa {
@@ -1594,8 +1594,8 @@ class $g extends Zw {
1594
1594
  super(A, I), this.isLine2 = !0, this.type = "Line2";
1595
1595
  }
1596
1596
  }
1597
- const CE = /* @__PURE__ */ new WeakMap();
1598
- class Xi extends Zi {
1597
+ const BE = /* @__PURE__ */ new WeakMap();
1598
+ class Vi extends ji {
1599
1599
  constructor(A) {
1600
1600
  super(A), this.decoderPath = "", this.decoderConfig = {}, this.decoderBinary = null, this.decoderPending = null, this.workerLimit = 4, this.workerPool = [], this.workerNextTaskID = 1, this.workerSourceURL = "", this.defaultAttributeIDs = {
1601
1601
  position: "POSITION",
@@ -1640,8 +1640,8 @@ class Xi extends Zi {
1640
1640
  }
1641
1641
  decodeGeometry(A, I) {
1642
1642
  const g = JSON.stringify(I);
1643
- if (CE.has(A)) {
1644
- const D = CE.get(A);
1643
+ if (BE.has(A)) {
1644
+ const D = BE.get(A);
1645
1645
  if (D.key === g)
1646
1646
  return D.promise;
1647
1647
  if (A.byteLength === 0)
@@ -1655,7 +1655,7 @@ class Xi extends Zi {
1655
1655
  }))).then((D) => this._createGeometry(D.geometry));
1656
1656
  return i.catch(() => !0).then(() => {
1657
1657
  C && Q && this._releaseTask(C, Q);
1658
- }), CE.set(A, {
1658
+ }), BE.set(A, {
1659
1659
  key: g,
1660
1660
  promise: i
1661
1661
  }), i;
@@ -1673,7 +1673,7 @@ class Xi extends Zi {
1673
1673
  if (I !== Ug) return;
1674
1674
  const g = new zI();
1675
1675
  for (let C = 0, Q = A.count; C < Q; C++)
1676
- g.fromBufferAttribute(A, C), WE.toWorkingColorSpace(g, Ug), A.setXYZ(C, g.r, g.g, g.b);
1676
+ g.fromBufferAttribute(A, C), PE.toWorkingColorSpace(g, Ug), A.setXYZ(C, g.r, g.g, g.b);
1677
1677
  }
1678
1678
  _loadLibrary(A, I) {
1679
1679
  const g = new oB(this.manager);
@@ -1828,7 +1828,7 @@ function jw() {
1828
1828
  }
1829
1829
  }
1830
1830
  }
1831
- class Vi extends Zi {
1831
+ class vi extends ji {
1832
1832
  constructor(A) {
1833
1833
  super(A), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(I) {
1834
1834
  return new vw(I);
@@ -2439,11 +2439,11 @@ class tS {
2439
2439
  decodePrimitive(A, I) {
2440
2440
  const g = this.json, C = this.dracoLoader, Q = A.extensions[this.name].bufferView, E = A.extensions[this.name].attributes, i = {}, D = {}, o = {};
2441
2441
  for (const a in E) {
2442
- const s = VE[a] || a.toLowerCase();
2442
+ const s = vE[a] || a.toLowerCase();
2443
2443
  i[s] = E[a];
2444
2444
  }
2445
2445
  for (const a in A.attributes) {
2446
- const s = VE[a] || a.toLowerCase();
2446
+ const s = vE[a] || a.toLowerCase();
2447
2447
  if (E[a] !== void 0) {
2448
2448
  const t = g.accessors[A.attributes[a]], S = MC[t.componentType];
2449
2449
  o[s] = S.name, D[s] = t.normalized === !0;
@@ -2518,7 +2518,7 @@ const mI = {
2518
2518
  5126: Float32Array
2519
2519
  }, Xo = {
2520
2520
  9728: na,
2521
- 9729: PE,
2521
+ 9729: XE,
2522
2522
  9984: ze,
2523
2523
  9985: ve,
2524
2524
  9986: Ve,
@@ -2526,8 +2526,8 @@ const mI = {
2526
2526
  }, Vo = {
2527
2527
  33071: $e,
2528
2528
  33648: _e,
2529
- 10497: XE
2530
- }, BE = {
2529
+ 10497: VE
2530
+ }, QE = {
2531
2531
  SCALAR: 1,
2532
2532
  VEC2: 2,
2533
2533
  VEC3: 3,
@@ -2535,7 +2535,7 @@ const mI = {
2535
2535
  MAT2: 4,
2536
2536
  MAT3: 9,
2537
2537
  MAT4: 16
2538
- }, VE = {
2538
+ }, vE = {
2539
2539
  POSITION: "position",
2540
2540
  NORMAL: "normal",
2541
2541
  TANGENT: "tangent",
@@ -2557,13 +2557,13 @@ const mI = {
2557
2557
  // keyframe track will be initialized with a default interpolation type, then modified.
2558
2558
  LINEAR: Ma,
2559
2559
  STEP: iw
2560
- }, QE = {
2560
+ }, EE = {
2561
2561
  OPAQUE: "OPAQUE",
2562
2562
  MASK: "MASK",
2563
2563
  BLEND: "BLEND"
2564
2564
  };
2565
2565
  function GS(B) {
2566
- return B.DefaultMaterial === void 0 && (B.DefaultMaterial = new RQ({
2566
+ return B.DefaultMaterial === void 0 && (B.DefaultMaterial = new YQ({
2567
2567
  color: 16777215,
2568
2568
  emissive: 0,
2569
2569
  metalness: 1,
@@ -2629,19 +2629,19 @@ function yS(B, A) {
2629
2629
  function KS(B) {
2630
2630
  let A;
2631
2631
  const I = B.extensions && B.extensions[nA.KHR_DRACO_MESH_COMPRESSION];
2632
- if (I ? A = "draco:" + I.bufferView + ":" + I.indices + ":" + EE(I.attributes) : A = B.indices + ":" + EE(B.attributes) + ":" + B.mode, B.targets !== void 0)
2632
+ if (I ? A = "draco:" + I.bufferView + ":" + I.indices + ":" + iE(I.attributes) : A = B.indices + ":" + iE(B.attributes) + ":" + B.mode, B.targets !== void 0)
2633
2633
  for (let g = 0, C = B.targets.length; g < C; g++)
2634
- A += ":" + EE(B.targets[g]);
2634
+ A += ":" + iE(B.targets[g]);
2635
2635
  return A;
2636
2636
  }
2637
- function EE(B) {
2637
+ function iE(B) {
2638
2638
  let A = "";
2639
2639
  const I = Object.keys(B).sort();
2640
2640
  for (let g = 0, C = I.length; g < C; g++)
2641
2641
  A += I[g] + ":" + B[I[g]] + ";";
2642
2642
  return A;
2643
2643
  }
2644
- function vE(B) {
2644
+ function zE(B) {
2645
2645
  switch (B) {
2646
2646
  case Int8Array:
2647
2647
  return 1 / 127;
@@ -2885,12 +2885,12 @@ class US {
2885
2885
  loadAccessor(A) {
2886
2886
  const I = this, g = this.json, C = this.json.accessors[A];
2887
2887
  if (C.bufferView === void 0 && C.sparse === void 0) {
2888
- const E = BE[C.type], i = MC[C.componentType], D = C.normalized === !0, o = new i(C.count * E);
2888
+ const E = QE[C.type], i = MC[C.componentType], D = C.normalized === !0, o = new i(C.count * E);
2889
2889
  return Promise.resolve(new dI(o, E, D));
2890
2890
  }
2891
2891
  const Q = [];
2892
2892
  return C.bufferView !== void 0 ? Q.push(this.getDependency("bufferView", C.bufferView)) : Q.push(null), C.sparse !== void 0 && (Q.push(this.getDependency("bufferView", C.sparse.indices.bufferView)), Q.push(this.getDependency("bufferView", C.sparse.values.bufferView))), Promise.all(Q).then(function(E) {
2893
- const i = E[0], D = BE[C.type], o = MC[C.componentType], a = o.BYTES_PER_ELEMENT, s = a * D, t = C.byteOffset || 0, S = C.bufferView !== void 0 ? g.bufferViews[C.bufferView].byteStride : void 0, h = C.normalized === !0;
2893
+ const i = E[0], D = QE[C.type], o = MC[C.componentType], a = o.BYTES_PER_ELEMENT, s = a * D, t = C.byteOffset || 0, S = C.bufferView !== void 0 ? g.bufferViews[C.bufferView].byteStride : void 0, h = C.normalized === !0;
2894
2894
  let c, w;
2895
2895
  if (S && S !== s) {
2896
2896
  const G = Math.floor(t / S), k = "InterleavedBuffer:" + C.bufferView + ":" + C.componentType + ":" + G + ":" + C.count;
@@ -2899,7 +2899,7 @@ class US {
2899
2899
  } else
2900
2900
  i === null ? c = new o(C.count * D) : c = new o(i, t, C.count * D), w = new dI(c, D, h);
2901
2901
  if (C.sparse !== void 0) {
2902
- const G = BE.SCALAR, k = MC[C.sparse.indices.componentType], R = C.sparse.indices.byteOffset || 0, y = C.sparse.values.byteOffset || 0, K = new k(E[1], R, C.sparse.count * G), M = new o(E[2], y, C.sparse.count * D);
2902
+ const G = QE.SCALAR, k = MC[C.sparse.indices.componentType], R = C.sparse.indices.byteOffset || 0, y = C.sparse.values.byteOffset || 0, K = new k(E[1], R, C.sparse.count * G), M = new o(E[2], y, C.sparse.count * D);
2903
2903
  i !== null && (w = new dI(w.array.slice(), w.itemSize, w.normalized)), w.normalized = !1;
2904
2904
  for (let l = 0, N = K.length; l < N; l++) {
2905
2905
  const T = K[l];
@@ -2931,7 +2931,7 @@ class US {
2931
2931
  const o = this.loadImageSource(I, g).then(function(a) {
2932
2932
  a.flipY = !1, a.name = E.name || i.name || "", a.name === "" && typeof i.uri == "string" && i.uri.startsWith("data:image/") === !1 && (a.name = i.uri);
2933
2933
  const t = (Q.samplers || {})[E.sampler] || {};
2934
- return a.magFilter = Xo[t.magFilter] || PE, a.minFilter = Xo[t.minFilter] || Ka, a.wrapS = Vo[t.wrapS] || XE, a.wrapT = Vo[t.wrapT] || XE, a.generateMipmaps = !a.isCompressedTexture && a.minFilter !== na && a.minFilter !== PE, C.associations.set(a, { textures: A }), a;
2934
+ return a.magFilter = Xo[t.magFilter] || XE, a.minFilter = Xo[t.minFilter] || Ka, a.wrapS = Vo[t.wrapS] || VE, a.wrapT = Vo[t.wrapT] || VE, a.generateMipmaps = !a.isCompressedTexture && a.minFilter !== na && a.minFilter !== XE, C.associations.set(a, { textures: A }), a;
2935
2935
  }).catch(function() {
2936
2936
  return null;
2937
2937
  });
@@ -3017,7 +3017,7 @@ class US {
3017
3017
  A.material = g;
3018
3018
  }
3019
3019
  getMaterialType() {
3020
- return RQ;
3020
+ return YQ;
3021
3021
  }
3022
3022
  /**
3023
3023
  * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@@ -3044,8 +3044,8 @@ class US {
3044
3044
  })));
3045
3045
  }
3046
3046
  Q.doubleSided === !0 && (i.side = qI);
3047
- const a = Q.alphaMode || QE.OPAQUE;
3048
- if (a === QE.BLEND ? (i.transparent = !0, i.depthWrite = !1) : (i.transparent = !1, a === QE.MASK && (i.alphaTest = Q.alphaCutoff !== void 0 ? Q.alphaCutoff : 0.5)), Q.normalTexture !== void 0 && E !== hI && (o.push(I.assignTexture(i, "normalMap", Q.normalTexture)), i.normalScale = new $A(1, 1), Q.normalTexture.scale !== void 0)) {
3047
+ const a = Q.alphaMode || EE.OPAQUE;
3048
+ if (a === EE.BLEND ? (i.transparent = !0, i.depthWrite = !1) : (i.transparent = !1, a === EE.MASK && (i.alphaTest = Q.alphaCutoff !== void 0 ? Q.alphaCutoff : 0.5)), Q.normalTexture !== void 0 && E !== hI && (o.push(I.assignTexture(i, "normalMap", Q.normalTexture)), i.normalScale = new $A(1, 1), Q.normalTexture.scale !== void 0)) {
3049
3049
  const s = Q.normalTexture.scale;
3050
3050
  i.normalScale.set(s, s);
3051
3051
  }
@@ -3108,7 +3108,7 @@ class US {
3108
3108
  let G;
3109
3109
  const k = o[S];
3110
3110
  if (w.mode === mI.TRIANGLES || w.mode === mI.TRIANGLE_STRIP || w.mode === mI.TRIANGLE_FAN || w.mode === void 0)
3111
- G = Q.isSkinnedMesh === !0 ? new Iw(c, k) : new z(c, k), G.isSkinnedMesh === !0 && G.normalizeSkinWeights(), w.mode === mI.TRIANGLE_STRIP ? G.geometry = Oo(G.geometry, ha) : w.mode === mI.TRIANGLE_FAN && (G.geometry = Oo(G.geometry, xE));
3111
+ G = Q.isSkinnedMesh === !0 ? new Iw(c, k) : new z(c, k), G.isSkinnedMesh === !0 && G.normalizeSkinWeights(), w.mode === mI.TRIANGLE_STRIP ? G.geometry = Oo(G.geometry, ha) : w.mode === mI.TRIANGLE_FAN && (G.geometry = Oo(G.geometry, ZE));
3112
3112
  else if (w.mode === mI.LINES)
3113
3113
  G = new DB(c, k);
3114
3114
  else if (w.mode === mI.LINE_STRIP)
@@ -3147,7 +3147,7 @@ class US {
3147
3147
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
3148
3148
  return;
3149
3149
  }
3150
- return g.type === "perspective" ? I = new ji(KI.radToDeg(C.yfov), C.aspectRatio || 1, C.znear || 1, C.zfar || 2e6) : g.type === "orthographic" && (I = new Cw(-C.xmag, C.xmag, C.ymag, -C.ymag, C.znear, C.zfar)), g.name && (I.name = this.createUniqueName(g.name)), Kg(I, g), Promise.resolve(I);
3150
+ return g.type === "perspective" ? I = new Wi(KI.radToDeg(C.yfov), C.aspectRatio || 1, C.znear || 1, C.zfar || 2e6) : g.type === "orthographic" && (I = new Cw(-C.xmag, C.xmag, C.ymag, -C.ymag, C.znear, C.zfar)), g.name && (I.name = this.createUniqueName(g.name)), Kg(I, g), Promise.resolve(I);
3151
3151
  }
3152
3152
  /**
3153
3153
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -3337,7 +3337,7 @@ class US {
3337
3337
  _getArrayFromAccessor(A) {
3338
3338
  let I = A.array;
3339
3339
  if (A.normalized) {
3340
- const g = vE(I.constructor), C = new Float32Array(I.length);
3340
+ const g = zE(I.constructor), C = new Float32Array(I.length);
3341
3341
  for (let Q = 0, E = I.length; Q < E; Q++)
3342
3342
  C[Q] = I[Q] * g;
3343
3343
  I = C;
@@ -3352,7 +3352,7 @@ class US {
3352
3352
  }
3353
3353
  }
3354
3354
  function rS(B, A, I) {
3355
- const g = A.attributes, C = new FQ();
3355
+ const g = A.attributes, C = new RQ();
3356
3356
  if (g.POSITION !== void 0) {
3357
3357
  const i = I.json.accessors[g.POSITION], D = i.min, o = i.max;
3358
3358
  if (D !== void 0 && o !== void 0) {
@@ -3360,7 +3360,7 @@ function rS(B, A, I) {
3360
3360
  new J(D[0], D[1], D[2]),
3361
3361
  new J(o[0], o[1], o[2])
3362
3362
  ), i.normalized) {
3363
- const a = vE(MC[i.componentType]);
3363
+ const a = zE(MC[i.componentType]);
3364
3364
  C.min.multiplyScalar(a), C.max.multiplyScalar(a);
3365
3365
  }
3366
3366
  } else {
@@ -3378,7 +3378,7 @@ function rS(B, A, I) {
3378
3378
  const t = I.json.accessors[s.POSITION], S = t.min, h = t.max;
3379
3379
  if (S !== void 0 && h !== void 0) {
3380
3380
  if (D.setX(Math.max(Math.abs(S[0]), Math.abs(h[0]))), D.setY(Math.max(Math.abs(S[1]), Math.abs(h[1]))), D.setZ(Math.max(Math.abs(S[2]), Math.abs(h[2]))), t.normalized) {
3381
- const c = vE(MC[t.componentType]);
3381
+ const c = zE(MC[t.componentType]);
3382
3382
  D.multiplyScalar(c);
3383
3383
  }
3384
3384
  i.max(D);
@@ -3389,7 +3389,7 @@ function rS(B, A, I) {
3389
3389
  C.expandByVector(i);
3390
3390
  }
3391
3391
  B.boundingBox = C;
3392
- const E = new xi();
3392
+ const E = new Zi();
3393
3393
  C.getCenter(E.center), E.radius = C.min.distanceTo(C.max) / 2, B.boundingSphere = E;
3394
3394
  }
3395
3395
  function vo(B, A, I) {
@@ -3400,7 +3400,7 @@ function vo(B, A, I) {
3400
3400
  });
3401
3401
  }
3402
3402
  for (const E in g) {
3403
- const i = VE[E] || E.toLowerCase();
3403
+ const i = vE[E] || E.toLowerCase();
3404
3404
  i in B.attributes || C.push(Q(g[E], i));
3405
3405
  }
3406
3406
  if (A.indices !== void 0 && !B.index) {
@@ -3409,11 +3409,11 @@ function vo(B, A, I) {
3409
3409
  });
3410
3410
  C.push(E);
3411
3411
  }
3412
- return WE.workingColorSpace !== wg && "COLOR_0" in g && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${WE.workingColorSpace}" not supported.`), Kg(B, A), rS(B, A, I), Promise.all(C).then(function() {
3412
+ return PE.workingColorSpace !== wg && "COLOR_0" in g && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${PE.workingColorSpace}" not supported.`), Kg(B, A), rS(B, A, I), Promise.all(C).then(function() {
3413
3413
  return A.targets !== void 0 ? cS(B, A.targets, I) : B;
3414
3414
  });
3415
3415
  }
3416
- const JS = /^[og]\s*(.+)?/, lS = /^mtllib /, NS = /^usemtl /, FS = /^usemap /, zo = /\s+/, _o = new J(), iE = new J(), $o = new J(), AD = new J(), TI = new J(), uB = new zI();
3416
+ const JS = /^[og]\s*(.+)?/, lS = /^mtllib /, NS = /^usemtl /, FS = /^usemap /, zo = /\s+/, _o = new J(), oE = new J(), $o = new J(), AD = new J(), TI = new J(), uB = new zI();
3417
3417
  function RS() {
3418
3418
  const B = {
3419
3419
  objects: [],
@@ -3523,7 +3523,7 @@ function RS() {
3523
3523
  },
3524
3524
  addFaceNormal: function(A, I, g) {
3525
3525
  const C = this.vertices, Q = this.object.geometry.normals;
3526
- _o.fromArray(C, A), iE.fromArray(C, I), $o.fromArray(C, g), TI.subVectors($o, iE), AD.subVectors(_o, iE), TI.cross(AD), TI.normalize(), Q.push(TI.x, TI.y, TI.z), Q.push(TI.x, TI.y, TI.z), Q.push(TI.x, TI.y, TI.z);
3526
+ _o.fromArray(C, A), oE.fromArray(C, I), $o.fromArray(C, g), TI.subVectors($o, oE), AD.subVectors(_o, oE), TI.cross(AD), TI.normalize(), Q.push(TI.x, TI.y, TI.z), Q.push(TI.x, TI.y, TI.z), Q.push(TI.x, TI.y, TI.z);
3527
3527
  },
3528
3528
  addColor: function(A, I, g) {
3529
3529
  const C = this.colors, Q = this.object.geometry.colors;
@@ -3574,7 +3574,7 @@ function RS() {
3574
3574
  };
3575
3575
  return B.startObject("", !1), B;
3576
3576
  }
3577
- class YS extends Zi {
3577
+ class YS extends ji {
3578
3578
  constructor(A) {
3579
3579
  super(A), this.materials = null;
3580
3580
  }
@@ -3891,32 +3891,32 @@ class dS {
3891
3891
  }
3892
3892
  }
3893
3893
  let n = 1;
3894
- const bg = n++, Ha = n++, ng = n++, fa = n++, zE = n++, _E = n++, Ta = n++, oE = n++, ua = n++, CC = n++, vA = n++, cA = n++, ma = n++, $E = n++, sg = n++, NC = n++, MI = n++, nB = n++, Oa = n++, ba = n++, xa = n++, Ai = n++, Za = n++, ja = n++;
3894
+ const bg = n++, Ha = n++, ng = n++, fa = n++, _E = n++, $E = n++, Ta = n++, DE = n++, ua = n++, CC = n++, vA = n++, cA = n++, ma = n++, Ai = n++, sg = n++, NC = n++, MI = n++, nB = n++, Oa = n++, ba = n++, xa = n++, Ii = n++, Za = n++, ja = n++;
3895
3895
  n++;
3896
3896
  const HS = n++, fS = n++, iD = n++, SI = n++;
3897
3897
  n++;
3898
- const ZA = n++, Vg = n++, UC = n++, oD = n++, DD = n++, sD = n++, Wa = n++, TS = n++, aD = n++, PC = n++, mB = n++, tD = n++, eD = n++, wD = n++, ug = n++, SD = n++, aB = n++, Pa = n++, fC = n++, TC = n++, zB = n++, Xa = n++, Ii = n++, uS = n++, tB = n++, DE = n++, sE = n++, aQ = n++, tQ = n++, YQ = n++, eQ = n++, Va = n++, vi = n++, W = n++, jI = n++, mg = n++, wA = n++, qQ = n++, zi = n++, mS = n++, FI = n++, gi = n++, HI = n++, va = n++, za = n++, _a = n++, $a = n++, wQ = n++, At = n++, AC = n++, _i = n++, $i = n++, vg = n++, OS = n++, It = n++, gt = n++;
3898
+ const ZA = n++, Vg = n++, UC = n++, oD = n++, DD = n++, sD = n++, Wa = n++, TS = n++, aD = n++, PC = n++, mB = n++, tD = n++, eD = n++, wD = n++, ug = n++, SD = n++, aB = n++, Pa = n++, fC = n++, TC = n++, zB = n++, Xa = n++, gi = n++, uS = n++, tB = n++, sE = n++, aE = n++, aQ = n++, tQ = n++, qQ = n++, eQ = n++, Va = n++, zi = n++, W = n++, jI = n++, mg = n++, wA = n++, pQ = n++, _i = n++, mS = n++, FI = n++, Ci = n++, HI = n++, va = n++, za = n++, _a = n++, $a = n++, wQ = n++, At = n++, AC = n++, $i = n++, Ao = n++, vg = n++, OS = n++, It = n++, gt = n++;
3899
3899
  n++;
3900
- const pQ = n++, aE = n++, hD = n++, kD = n++, _B = n++, SQ = n++, Ci = n++, CB = n++, NI = n++, Ao = n++;
3900
+ const LQ = n++, tE = n++, hD = n++, kD = n++, _B = n++, SQ = n++, Bi = n++, CB = n++, NI = n++, Io = n++;
3901
3901
  n++;
3902
- const Ct = n++, Bt = n++, OB = n++, tE = n++, Bi = n++, bS = n++, $B = n++, hQ = n++, Io = n++, IC = n++, BC = n++, kQ = n++, eC = n++, Qt = n++, lA = n++, CI = n++, xS = n++, GD = n++, GQ = n++, cQ = n++, ZS = n++, go = n++, Co = n++, Jg = n++, BB = n++, oC = n++, jS = n++, Et = n++, WS = n++;
3902
+ const Ct = n++, Bt = n++, OB = n++, eE = n++, Qi = n++, bS = n++, $B = n++, hQ = n++, go = n++, IC = n++, BC = n++, kQ = n++, eC = n++, Qt = n++, lA = n++, CI = n++, xS = n++, GD = n++, GQ = n++, cQ = n++, ZS = n++, Co = n++, Bo = n++, Jg = n++, BB = n++, oC = n++, jS = n++, Et = n++, WS = n++;
3903
3903
  n++;
3904
3904
  n++;
3905
3905
  n++;
3906
3906
  n++;
3907
3907
  n++;
3908
- const Yg = n++, gC = n++, AQ = n++, IQ = n++, it = n++, ot = n++, gQ = n++, Sg = n++, XC = n++, Dt = n++, Bo = n++, cD = n++, PS = n++, XS = n++, MB = n++, FC = n++, UB = n++, LQ = n++, dQ = n++, ag = n++, st = n++, yD = n++, Qi = n++, YI = n++, at = n++, CQ = n++, tt = n++, BQ = n++, et = n++, wt = n++, Qo = n++, St = n++, ht = n++, Ei = n++, kt = n++, QC = n++, VS = n++, vS = n++, Gt = n++, eB = n++, zS = n++, ct = n++, yQ = n++, rC = n++, KQ = n++, eE = n++, wE = n++, SE = n++, ii = n++, hE = n++, Eo = n++, KD = n++, yt = n++;
3908
+ const Yg = n++, gC = n++, AQ = n++, IQ = n++, it = n++, ot = n++, gQ = n++, Sg = n++, XC = n++, Dt = n++, yQ = n++, cD = n++, PS = n++, XS = n++, MB = n++, FC = n++, UB = n++, dQ = n++, HQ = n++, ag = n++, st = n++, yD = n++, Ei = n++, YI = n++, at = n++, CQ = n++, tt = n++, BQ = n++, et = n++, wt = n++, Qo = n++, St = n++, ht = n++, ii = n++, kt = n++, QC = n++, VS = n++, vS = n++, Gt = n++, eB = n++, zS = n++, ct = n++, KQ = n++, rC = n++, nQ = n++, wE = n++, SE = n++, hE = n++, oi = n++, kE = n++, Eo = n++, KD = n++, yt = n++;
3909
3909
  n++;
3910
3910
  n++;
3911
3911
  n++;
3912
3912
  n++;
3913
- const Kt = n++, nD = n++, MD = n++, oi = n++, UD = n++, _S = n++, QB = n++, rD = n++, nt = n++, Di = n++, Mt = n++, Ut = n++, $S = n++, rt = n++, Jt = n++;
3913
+ const Kt = n++, nD = n++, MD = n++, Di = n++, UD = n++, _S = n++, QB = n++, rD = n++, nt = n++, si = n++, Mt = n++, Ut = n++, $S = n++, rt = n++, Jt = n++;
3914
3914
  n++;
3915
- const lt = n++, Nt = n++, EI = n++, si = n++, ai = n++, ti = n++, Ah = n++, Ft = n++, Ih = n++, gh = n++, Ch = n++, Bh = n++, Qh = n++, Rt = n++, Yt = n++;
3915
+ const lt = n++, Nt = n++, EI = n++, ai = n++, ti = n++, ei = n++, Ah = n++, Ft = n++, Ih = n++, gh = n++, Ch = n++, Bh = n++, Qh = n++, Rt = n++, Yt = n++;
3916
3916
  n++;
3917
3917
  n++;
3918
- const kE = n++, io = n++, ei = n++, wi = n++, GE = n++, Si = n++, HQ = n++, qt = n++, pt = n++, QQ = n++, WA = n++, VC = n++, bB = n++, GC = n++, Lt = n++, dt = n++, EQ = n++, cg = n++, hi = n++, ki = n++, Eh = n++, ih = n++, Ht = n++, oh = n++, Dh = n++, sh = n++, Gi = n++, ft = n++, ci = n++, Tt = n++, yi = n++, ut = n++, mt = n++, Ot = n++, Ki = n++, nQ = n++, JD = n++, bt = n++, xt = n++, Zt = n++, wB = n++, ah = n++, jt = n++;
3919
- class fQ {
3918
+ const GE = n++, io = n++, wi = n++, Si = n++, cE = n++, hi = n++, fQ = n++, qt = n++, pt = n++, QQ = n++, WA = n++, VC = n++, bB = n++, GC = n++, Lt = n++, dt = n++, EQ = n++, cg = n++, ki = n++, Gi = n++, Eh = n++, ih = n++, Ht = n++, oh = n++, Dh = n++, sh = n++, ci = n++, ft = n++, yi = n++, Tt = n++, Ki = n++, ut = n++, mt = n++, Ot = n++, ni = n++, MQ = n++, JD = n++, bt = n++, xt = n++, Zt = n++, wB = n++, ah = n++, jt = n++;
3919
+ class TQ {
3920
3920
  constructor() {
3921
3921
  this.map = /* @__PURE__ */ new Map();
3922
3922
  }
@@ -3956,7 +3956,7 @@ class fQ {
3956
3956
  }
3957
3957
  class th {
3958
3958
  }
3959
- class ni {
3959
+ class Mi {
3960
3960
  // -------------------------
3961
3961
  constructor(A, I = {}) {
3962
3962
  this.fileSize = 0, this.downloadSize = 0, this.status = 0, this.splatData = null, this.watermarkData = null, this.dataSplatCount = 0, this.watermarkCount = 0, this.sh12Data = [], this.sh3Data = [], this.sh12Count = 0, this.sh3Count = 0, this.rowLength = 0, this.modelSplatCount = -1, this.downloadSplatCount = 0, this.renderSplatCount = 0, this.header = null, this.CompressionRatio = "", this.dataShDegree = 0, this.minX = 1 / 0, this.maxX = -1 / 0, this.minY = 1 / 0, this.maxY = -1 / 0, this.minZ = 1 / 0, this.maxZ = -1 / 0, this.topY = 0, this.currentRadius = 0, this.maxRadius = 0, this.textWatermarkVersion = 0, this.lastTextWatermarkVersion = 0, this.fetchLimit = 0, this.opts = { ...A };
@@ -3965,7 +3965,7 @@ class ni {
3965
3965
  }
3966
3966
  }
3967
3967
  var BA = /* @__PURE__ */ ((B) => (B[B.FetchReady = 0] = "FetchReady", B[B.Fetching = 1] = "Fetching", B[B.FetchDone = 2] = "FetchDone", B[B.FetchAborted = 3] = "FetchAborted", B[B.FetchFailed = 4] = "FetchFailed", B[B.Invalid = 5] = "Invalid", B))(BA || {});
3968
- const TQ = "v2.5.1", fA = /Mobi|Android|Phone|iPod|webOS|BlackBerry|Mini/i.test(navigator.userAgent) || /Macintosh/i.test(navigator.userAgent) && navigator.maxTouchPoints > 1, eh = "QWERTYUIOPLKJHGFDSAZXCVBNM1234567890qwertyuioplkjhgfdsazxcvbnm`~!@#$%^&*()-_=+\\|]}[{'\";::,<.>//? ", wh = fA ? 600 : 300, lD = fA ? 300 : 100, wC = 128, iQ = 32, hA = 32, Sh = 20, hh = 16, Wt = 64 * 1024, kh = 1024 * 1e4, Gh = 10240 * 1e4, Bg = 0.28209479177387814, oo = "https://reall3d.com/reall3dviewer/libs/draco/", ch = 0, yh = 220, Kh = 230, nh = 8, Mh = 9, Uh = 20, rh = 190, Jh = 10190, SB = 1, rg = 2, RC = 3, lh = 4, Nh = 3141592653;
3968
+ const uQ = "v2.5.2", fA = /Mobi|Android|Phone|iPod|webOS|BlackBerry|Mini/i.test(navigator.userAgent) || /Macintosh/i.test(navigator.userAgent) && navigator.maxTouchPoints > 1, eh = "QWERTYUIOPLKJHGFDSAZXCVBNM1234567890qwertyuioplkjhgfdsazxcvbnm`~!@#$%^&*()-_=+\\|]}[{'\";::,<.>//? ", wh = fA ? 600 : 300, lD = fA ? 300 : 100, wC = 128, iQ = 32, hA = 32, Sh = 20, hh = 16, Wt = 64 * 1024, kh = 1024 * 1e4, Gh = 10240 * 1e4, Bg = 0.28209479177387814, oo = "https://reall3d.com/reall3dviewer/libs/draco/", ch = 0, yh = 220, Kh = 230, nh = 8, Mh = 9, Uh = 20, rh = 190, Jh = 10190, SB = 1, rg = 2, RC = 3, lh = 4, Nh = 3141592653;
3969
3969
  var RI = /* @__PURE__ */ ((B) => (B[B.L1 = 1] = "L1", B[B.L2 = 2] = "L2", B[B.L3 = 3] = "L3", B[B.L4 = 4] = "L4", B[B.Default5 = 5] = "Default5", B[B.L6 = 6] = "L6", B[B.L7 = 7] = "L7", B[B.L8 = 8] = "L8", B[B.L9 = 9] = "L9", B))(RI || {}), YC = /* @__PURE__ */ ((B) => (B[B.Default1 = 1] = "Default1", B[B.ZdepthFrontNearest2010 = 2010] = "ZdepthFrontNearest2010", B[B.ZdepthFront2011 = 2011] = "ZdepthFront2011", B[B.ZdepthFrontNearFar2012 = 2012] = "ZdepthFrontNearFar2012", B[B.ZdepthFullNearFar2112 = 2112] = "ZdepthFullNearFar2112", B))(YC || {});
3970
3970
  function Fh(B) {
3971
3971
  if (Object.prototype.hasOwnProperty.call(B, "__esModule")) return B;
@@ -4233,10 +4233,10 @@ var dh = Lh(), fI = Uint8Array, cC = Uint16Array, Hh = Int32Array, Pt = new fI([
4233
4233
  return { b: I, r: C };
4234
4234
  }, vt = Vt(Pt, 2), zt = vt.b, Th = vt.r;
4235
4235
  zt[28] = 258, Th[258] = 28;
4236
- var uh = Vt(Xt, 0), mh = uh.b, Mi = new cC(32768);
4236
+ var uh = Vt(Xt, 0), mh = uh.b, Ui = new cC(32768);
4237
4237
  for (var mA = 0; mA < 32768; ++mA) {
4238
4238
  var Hg = (mA & 43690) >> 1 | (mA & 21845) << 1;
4239
- Hg = (Hg & 52428) >> 2 | (Hg & 13107) << 2, Hg = (Hg & 61680) >> 4 | (Hg & 3855) << 4, Mi[mA] = ((Hg & 65280) >> 8 | (Hg & 255) << 8) >> 1;
4239
+ Hg = (Hg & 52428) >> 2 | (Hg & 13107) << 2, Hg = (Hg & 61680) >> 4 | (Hg & 3855) << 4, Ui[mA] = ((Hg & 65280) >> 8 | (Hg & 255) << 8) >> 1;
4240
4240
  }
4241
4241
  var EB = (function(B, A, I) {
4242
4242
  for (var g = B.length, C = 0, Q = new cC(A); C < g; ++C)
@@ -4251,10 +4251,10 @@ var EB = (function(B, A, I) {
4251
4251
  for (C = 0; C < g; ++C)
4252
4252
  if (B[C])
4253
4253
  for (var o = C << 4 | B[C], a = A - B[C], s = E[B[C] - 1]++ << a, t = s | (1 << a) - 1; s <= t; ++s)
4254
- i[Mi[s] >> D] = o;
4254
+ i[Ui[s] >> D] = o;
4255
4255
  } else
4256
4256
  for (i = new cC(g), C = 0; C < g; ++C)
4257
- B[C] && (i[C] = Mi[E[B[C] - 1]++] >> 15 - B[C]);
4257
+ B[C] && (i[C] = Ui[E[B[C] - 1]++] >> 15 - B[C]);
4258
4258
  return i;
4259
4259
  }), rB = new fI(288);
4260
4260
  for (var mA = 0; mA < 144; ++mA)
@@ -4268,14 +4268,14 @@ for (var mA = 280; mA < 288; ++mA)
4268
4268
  var _t = new fI(32);
4269
4269
  for (var mA = 0; mA < 32; ++mA)
4270
4270
  _t[mA] = 5;
4271
- var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), cE = function(B) {
4271
+ var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), yE = function(B) {
4272
4272
  for (var A = B[0], I = 1; I < B.length; ++I)
4273
4273
  B[I] > A && (A = B[I]);
4274
4274
  return A;
4275
4275
  }, WI = function(B, A, I) {
4276
4276
  var g = A / 8 | 0;
4277
4277
  return (B[g] | B[g + 1] << 8) >> (A & 7) & I;
4278
- }, yE = function(B, A) {
4278
+ }, KE = function(B, A) {
4279
4279
  var I = A / 8 | 0;
4280
4280
  return (B[I] | B[I + 1] << 8 | B[I + 2] << 16) >> (A & 7);
4281
4281
  }, xh = function(B) {
@@ -4329,7 +4329,7 @@ var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), cE = f
4329
4329
  for (var T = new fI(N), O = new fI(19), p = 0; p < l; ++p)
4330
4330
  O[fh[p]] = WI(B, s + p * 3, 7);
4331
4331
  s += l * 3;
4332
- for (var v = cE(O), AA = (1 << v) - 1, gA = EB(O, v, 1), p = 0; p < N; ) {
4332
+ for (var v = yE(O), AA = (1 << v) - 1, gA = EB(O, v, 1), p = 0; p < N; ) {
4333
4333
  var _ = gA[WI(B, s, AA)];
4334
4334
  s += _ & 15;
4335
4335
  var R = _ >> 4;
@@ -4342,7 +4342,7 @@ var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), cE = f
4342
4342
  }
4343
4343
  }
4344
4344
  var H = T.subarray(0, M), b = T.subarray(M);
4345
- c = cE(H), w = cE(b), S = EB(H, c, 1), h = EB(b, w, 1);
4345
+ c = yE(H), w = yE(b), S = EB(H, c, 1), h = EB(b, w, 1);
4346
4346
  } else
4347
4347
  OI(1);
4348
4348
  else {
@@ -4361,7 +4361,7 @@ var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), cE = f
4361
4361
  }
4362
4362
  i && o(t + 131072);
4363
4363
  for (var r = (1 << c) - 1, d = (1 << w) - 1, L = s; ; L = s) {
4364
- var CA = S[yE(B, s) & r], Y = CA >> 4;
4364
+ var CA = S[KE(B, s) & r], Y = CA >> 4;
4365
4365
  if (s += CA & 15, s > G) {
4366
4366
  D && OI(0);
4367
4367
  break;
@@ -4377,12 +4377,12 @@ var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), cE = f
4377
4377
  var p = Y - 257, Z = Pt[p];
4378
4378
  x = WI(B, s, (1 << Z) - 1) + zt[p], s += Z;
4379
4379
  }
4380
- var j = h[yE(B, s) & d], m = j >> 4;
4380
+ var j = h[KE(B, s) & d], m = j >> 4;
4381
4381
  j || OI(3), s += j & 15;
4382
4382
  var b = mh[m];
4383
4383
  if (m > 3) {
4384
4384
  var Z = Xt[m];
4385
- b += yE(B, s) & (1 << Z) - 1, s += Z;
4385
+ b += KE(B, s) & (1 << Z) - 1, s += Z;
4386
4386
  }
4387
4387
  if (s > G) {
4388
4388
  D && OI(0);
@@ -4406,15 +4406,15 @@ var Oh = /* @__PURE__ */ EB(rB, 9, 1), bh = /* @__PURE__ */ EB(_t, 5, 1), cE = f
4406
4406
  return B[A] | B[A + 1] << 8;
4407
4407
  }, vI = function(B, A) {
4408
4408
  return (B[A] | B[A + 1] << 8 | B[A + 2] << 16 | B[A + 3] << 24) >>> 0;
4409
- }, KE = function(B, A) {
4409
+ }, nE = function(B, A) {
4410
4410
  return vI(B, A) + vI(B, A + 4) * 4294967296;
4411
4411
  };
4412
4412
  function Ph(B, A) {
4413
4413
  return jh(B, { i: 2 }, A && A.out, A && A.dictionary);
4414
4414
  }
4415
- var Ui = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Xh = 0;
4415
+ var ri = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Xh = 0;
4416
4416
  try {
4417
- Ui.decode(Wh, { stream: !0 }), Xh = 1;
4417
+ ri.decode(Wh, { stream: !0 }), Xh = 1;
4418
4418
  } catch {
4419
4419
  }
4420
4420
  var Vh = function(B) {
@@ -4431,8 +4431,8 @@ function vh(B, A) {
4431
4431
  I += String.fromCharCode.apply(null, B.subarray(g, g + 16384));
4432
4432
  return I;
4433
4433
  } else {
4434
- if (Ui)
4435
- return Ui.decode(B);
4434
+ if (ri)
4435
+ return ri.decode(B);
4436
4436
  var C = Vh(B), Q = C.s, I = C.r;
4437
4437
  return I.length && OI(8), Q;
4438
4438
  }
@@ -4445,7 +4445,7 @@ var zh = function(B, A) {
4445
4445
  }, $h = function(B, A) {
4446
4446
  for (; og(B, A) != 1; A += 4 + og(B, A + 2))
4447
4447
  ;
4448
- return [KE(B, A + 12), KE(B, A + 4), KE(B, A + 20)];
4448
+ return [nE(B, A + 12), nE(B, A + 4), nE(B, A + 20)];
4449
4449
  };
4450
4450
  function Ak(B, A) {
4451
4451
  for (var I = {}, g = B.length - 22; vI(B, g) != 101010256; --g)
@@ -4468,7 +4468,7 @@ async function bI(B, A) {
4468
4468
  if (!B) return new Uint8Array(0);
4469
4469
  const I = new AbortController(), g = I.signal;
4470
4470
  try {
4471
- A?.fire(_i);
4471
+ A?.fire($i);
4472
4472
  const C = await fetch(B, { mode: "cors", credentials: "omit", cache: "reload", signal: g });
4473
4473
  if (C.status != 200)
4474
4474
  return console.warn(`fetch error: ${C.status}`), null;
@@ -4477,7 +4477,7 @@ async function bI(B, A) {
4477
4477
  for (; ; ) {
4478
4478
  let { done: o, value: a } = await Q.read();
4479
4479
  if (o) break;
4480
- i.set(a, D), D += a.length, A?.fire($i, 100 * D / E);
4480
+ i.set(a, D), D += a.length, A?.fire(Ao, 100 * D / E);
4481
4481
  }
4482
4482
  return i;
4483
4483
  } catch (C) {
@@ -4486,7 +4486,7 @@ async function bI(B, A) {
4486
4486
  return null;
4487
4487
  }
4488
4488
  const xA = (() => {
4489
- const B = new fQ();
4489
+ const B = new TQ();
4490
4490
  let A = !1, I = 0, g = 0;
4491
4491
  B.on(bt, async (Q = "", E = !1, i = 0.5) => {
4492
4492
  I = performance.now();
@@ -4540,7 +4540,7 @@ const xA = (() => {
4540
4540
  function so(B) {
4541
4541
  let A = !1;
4542
4542
  const I = (c, w, G) => B.on(c, w, G), g = (c, ...w) => B.fire(c, ...w);
4543
- I(HI, () => g(W).debugMode), I(vi, () => A = !0), I(cg, () => xA.fire(wB), !0), I(QB, (c) => {
4543
+ I(HI, () => g(W).debugMode), I(zi, () => A = !0), I(cg, () => xA.fire(wB), !0), I(QB, (c) => {
4544
4544
  const w = g(mg).capabilities.maxTextureSize, G = 2 * c;
4545
4545
  let k = 1024;
4546
4546
  for (; k * w < G; )
@@ -4572,7 +4572,7 @@ function so(B) {
4572
4572
  const w = document.querySelector("#gsviewer #progressBarWrap");
4573
4573
  w && w.style.display != "none" && (w.style.display = "none");
4574
4574
  })();
4575
- }), I(_i, () => {
4575
+ }), I($i, () => {
4576
4576
  Q = !0, (async () => {
4577
4577
  const c = document.querySelector("#gsviewer #progressBarWrap");
4578
4578
  if (c) {
@@ -4586,7 +4586,7 @@ function so(B) {
4586
4586
  const w = document.querySelector("#gsviewer #progressBarWrap");
4587
4587
  w && (w.style.display = "none");
4588
4588
  })(), (async () => document.querySelector("#gsviewer .logo")?.classList.remove("loading"))(), parent?.onProgress && parent.onProgress(0, "100%", 9), window.onProgress && window.onProgress(0, "100%", 9));
4589
- }), I($i, (c) => {
4589
+ }), I(Ao, (c) => {
4590
4590
  Q = !0, (async () => {
4591
4591
  const w = document.querySelector("#gsviewer #progressBar");
4592
4592
  w && (w.style.width = `${c}%`);
@@ -4636,7 +4636,7 @@ function so(B) {
4636
4636
  shDegree: u
4637
4637
  } = {}) => {
4638
4638
  if (!g(HI)) return;
4639
- u !== void 0 && t("shDegree", `${u}`), c !== void 0 && t("renderSplatCount", `${c}`), w !== void 0 && t("visibleSplatCount", `${w}`), G !== void 0 && t("modelSplatCount", `${G}`), k !== void 0 && t("fps", k), R !== void 0 && t("realFps", `raw ${R}`), y !== void 0 && t("sort", `${y} ms (L ${g(W).qualityLevel || RI.Default5}, ${K || ""} B, T ${M || ""})`), CA !== void 0 && (_ !== void 0 ? t("cuts", CA === "" ? "" : `${_}(${CA} cuts)`) : t("cuts", CA === "" ? "" : `(${CA} cuts)`)), v && t("worker", `${v}`), AA && t("scene", AA), N && t("fov", N), T && t("position", T), O && t("lookUp", O), p && t("lookAt", p), p && t("viewer-version", TQ);
4639
+ u !== void 0 && t("shDegree", `${u}`), c !== void 0 && t("renderSplatCount", `${c}`), w !== void 0 && t("visibleSplatCount", `${w}`), G !== void 0 && t("modelSplatCount", `${G}`), k !== void 0 && t("fps", k), R !== void 0 && t("realFps", `raw ${R}`), y !== void 0 && t("sort", `${y} ms (L ${g(W).qualityLevel || RI.Default5}, ${K || ""} B, T ${M || ""})`), CA !== void 0 && (_ !== void 0 ? t("cuts", CA === "" ? "" : `${_}(${CA} cuts)`) : t("cuts", CA === "" ? "" : `(${CA} cuts)`)), v && t("worker", `${v}`), AA && t("scene", AA), N && t("fov", N), T && t("position", T), O && t("lookUp", O), p && t("lookAt", p), p && t("viewer-version", uQ);
4640
4640
  let H = performance.memory || { usedJSHeapSize: 0, totalJSHeapSize: 0, jsHeapSizeLimit: 0 }, b = "", r = H.usedJSHeapSize / 1024 / 1024;
4641
4641
  r > 1e3 ? b += (r / 1024).toFixed(2) + " G" : b += r.toFixed(0) + " M", b += " / ";
4642
4642
  let d = H.totalJSHeapSize / 1024 / 1024;
@@ -4931,11 +4931,11 @@ function Ae(B = 0) {
4931
4931
  function Ie(B) {
4932
4932
  const A = new Uint32Array(B.slice(0, 32).buffer)[3], I = JSON.parse(new TextDecoder().decode(B.slice(20, 20 + A))), g = I.meshes[0].primitives[0].attributes.POSITION, C = I.meshes[0].primitives[0].attributes["KHR_gaussian_splatting:SCALE"], Q = I.meshes[0].primitives[0].attributes["KHR_gaussian_splatting:SH_DEGREE_0_COEF_0"], E = I.meshes[0].primitives[0].attributes["KHR_gaussian_splatting:OPACITY"], i = I.meshes[0].primitives[0].attributes["KHR_gaussian_splatting:ROTATION"], D = new Float32Array(B.buffer), o = 20 + A + 8, a = (o + I.bufferViews[g].byteOffset) / 4, s = (o + I.bufferViews[C].byteOffset) / 4, t = (o + I.bufferViews[Q].byteOffset) / 4, S = (o + I.bufferViews[E].byteOffset) / 4, h = (o + I.bufferViews[i].byteOffset) / 4, c = I.accessors[0].count, w = new Uint8Array(c * 32), G = new Float32Array(w.buffer);
4933
4933
  for (let k = 0; k < c; k++)
4934
- G[8 * k + 0] = D[a + 3 * k + 0], G[8 * k + 1] = D[a + 3 * k + 1], G[8 * k + 2] = D[a + 3 * k + 2], G[8 * k + 3] = Math.exp(D[s + 3 * k + 0]), G[8 * k + 4] = Math.exp(D[s + 3 * k + 1]), G[8 * k + 5] = Math.exp(D[s + 3 * k + 2]), w[32 * k + 24] = nE(D[t + 3 * k + 0]), w[32 * k + 25] = nE(D[t + 3 * k + 1]), w[32 * k + 26] = nE(D[t + 3 * k + 2]), w[32 * k + 27] = hk(D[S + k]), w[32 * k + 28] = ZB(D[h + 4 * k + 3]), w[32 * k + 29] = ZB(D[h + 4 * k + 0]), w[32 * k + 30] = ZB(D[h + 4 * k + 1]), w[32 * k + 31] = ZB(D[h + 4 * k + 2]);
4934
+ G[8 * k + 0] = D[a + 3 * k + 0], G[8 * k + 1] = D[a + 3 * k + 1], G[8 * k + 2] = D[a + 3 * k + 2], G[8 * k + 3] = Math.exp(D[s + 3 * k + 0]), G[8 * k + 4] = Math.exp(D[s + 3 * k + 1]), G[8 * k + 5] = Math.exp(D[s + 3 * k + 2]), w[32 * k + 24] = ME(D[t + 3 * k + 0]), w[32 * k + 25] = ME(D[t + 3 * k + 1]), w[32 * k + 26] = ME(D[t + 3 * k + 2]), w[32 * k + 27] = hk(D[S + k]), w[32 * k + 28] = ZB(D[h + 4 * k + 3]), w[32 * k + 29] = ZB(D[h + 4 * k + 0]), w[32 * k + 30] = ZB(D[h + 4 * k + 1]), w[32 * k + 31] = ZB(D[h + 4 * k + 2]);
4935
4935
  return w;
4936
4936
  }
4937
4937
  const Sk = 0.28209479177387814;
4938
- function nE(B) {
4938
+ function ME(B) {
4939
4939
  return Math.max(0, Math.min(255, Math.floor((0.5 + Sk * B) * 255)));
4940
4940
  }
4941
4941
  function hk(B) {
@@ -4953,7 +4953,7 @@ async function Gk(B) {
4953
4953
  C += String.fromCharCode(B[t]);
4954
4954
  if (g.Comment = C.trim(), g.HashCheck = !0, g.Fixed !== "spx")
4955
4955
  return null;
4956
- const Q = g.ExclusiveId ? Ce : ao, E = WebAssembly.compile(Uint8Array.from(atob(Q), (t) => t.charCodeAt(0)).buffer), i = new WebAssembly.Memory({ initial: 1, maximum: 1 }), o = (await WebAssembly.instantiate(await E, { env: { memory: i, expf: uQ } })).exports.H;
4956
+ const Q = g.ExclusiveId ? Ce : ao, E = WebAssembly.compile(Uint8Array.from(atob(Q), (t) => t.charCodeAt(0)).buffer), i = new WebAssembly.Memory({ initial: 1, maximum: 1 }), o = (await WebAssembly.instantiate(await E, { env: { memory: i, expf: mQ } })).exports.H;
4957
4957
  return new Uint8Array(i.buffer).set(B, 0), o(0) && (g.HashCheck = !1), g;
4958
4958
  }
4959
4959
  async function ZI(B, A = null) {
@@ -4982,20 +4982,20 @@ async function ZI(B, A = null) {
4982
4982
  return E ? B = await Qk(B) : C == rh ? B = await Ck(B) : C == Jh && (B = await Bk(B)), mC(g, C, B, A?.Version || 1, i);
4983
4983
  }
4984
4984
  async function mC(B, A, I, g, C) {
4985
- const Q = SB == A, E = rg == A, i = RC == A, D = Q || E || i, o = !D, a = [ao, kk, ge, Ce], s = A < 65536 ? 0 : g, t = B * (D ? hh : hA), S = WebAssembly.compile(Uint8Array.from(atob(a[s]), (y) => y.charCodeAt(0)).buffer), h = Math.ceil((t + I.byteLength) / Wt) + 1, c = new WebAssembly.Memory({ initial: h, maximum: h }), G = (await WebAssembly.instantiate(await S, { env: { memory: c, expf: uQ } })).exports.D, k = new Uint8Array(c.buffer);
4985
+ const Q = SB == A, E = rg == A, i = RC == A, D = Q || E || i, o = !D, a = [ao, kk, ge, Ce], s = A < 65536 ? 0 : g, t = B * (D ? hh : hA), S = WebAssembly.compile(Uint8Array.from(atob(a[s]), (y) => y.charCodeAt(0)).buffer), h = Math.ceil((t + I.byteLength) / Wt) + 1, c = new WebAssembly.Memory({ initial: h, maximum: h }), G = (await WebAssembly.instantiate(await S, { env: { memory: c, expf: mQ } })).exports.D, k = new Uint8Array(c.buffer);
4986
4986
  return k.set(I, t), G(0, t, C) ? { splatCount: B, blockFormat: A, success: !1 } : { splatCount: B, blockFormat: A, success: !0, datas: k.slice(0, t), isSplat: o, isSh: D, isSh1: Q, isSh2: E, isSh3: i };
4987
4987
  }
4988
4988
  async function hB(B, A) {
4989
- const I = WebAssembly.compile(Uint8Array.from(atob(ao), (o) => o.charCodeAt(0)).buffer), g = Math.ceil(A * hA / Wt) + 1, C = new WebAssembly.Memory({ initial: g, maximum: g }), E = (await WebAssembly.instantiate(await I, { env: { memory: C, expf: uQ } })).exports.s, i = new Uint8Array(C.buffer);
4989
+ const I = WebAssembly.compile(Uint8Array.from(atob(ao), (o) => o.charCodeAt(0)).buffer), g = Math.ceil(A * hA / Wt) + 1, C = new WebAssembly.Memory({ initial: g, maximum: g }), E = (await WebAssembly.instantiate(await I, { env: { memory: C, expf: mQ } })).exports.s, i = new Uint8Array(C.buffer);
4990
4990
  i.set(B.subarray(0, A * hA), 0);
4991
4991
  const D = E(0, A);
4992
4992
  return D ? (console.error("splat data parser failed:", D), new Uint8Array(0)) : i.slice(0, A * hA);
4993
4993
  }
4994
4994
  async function ck(B, A, I = !0, g = !0) {
4995
- const C = WebAssembly.compile(Uint8Array.from(atob(ge), (s) => s.charCodeAt(0)).buffer), Q = new WebAssembly.Memory({ initial: 1, maximum: 1 }), i = (await WebAssembly.instantiate(await C, { env: { memory: Q, expf: uQ } })).exports.w, D = new Uint8Array(Q.buffer), o = new Float32Array(D.buffer), a = g ? -1 : 1;
4995
+ const C = WebAssembly.compile(Uint8Array.from(atob(ge), (s) => s.charCodeAt(0)).buffer), Q = new WebAssembly.Memory({ initial: 1, maximum: 1 }), i = (await WebAssembly.instantiate(await C, { env: { memory: Q, expf: mQ } })).exports.w, D = new Uint8Array(Q.buffer), o = new Float32Array(D.buffer), a = g ? -1 : 1;
4996
4996
  return o[0] = B, I ? o[1] = a * A : o[2] = a * A, i(0, I ? 1 : 0), D.slice(0, hA);
4997
4997
  }
4998
- function uQ(B) {
4998
+ function mQ(B) {
4999
4999
  return Math.exp(B);
5000
5000
  }
5001
5001
  const OC = fA ? 20480 : 512e3;
@@ -5359,7 +5359,7 @@ function Mk(B, A) {
5359
5359
  B.dataSplatCount++;
5360
5360
  }
5361
5361
  }
5362
- const UA = fA ? 20480 : 512e3, ME = 16, TD = 511;
5362
+ const UA = fA ? 20480 : 512e3, UE = 16, TD = 511;
5363
5363
  async function Qe(B) {
5364
5364
  try {
5365
5365
  B.status = BA.Fetching;
@@ -5389,7 +5389,7 @@ async function Qe(B) {
5389
5389
  B.status === BA.Fetching && (B.status = BA.FetchDone);
5390
5390
  }
5391
5391
  async function A(C, Q, E) {
5392
- const i = C.numPoints * 9, D = C.numPoints, o = C.numPoints * 3, a = C.numPoints * 3, s = C.numPoints * (C.version == 2 ? 3 : 4), t = ME, S = t + i, h = S + D, c = h + o, w = c + a, G = w + s, k = Math.min(C.numPoints, Q.fetchLimit), R = Math.ceil(k / UA);
5392
+ const i = C.numPoints * 9, D = C.numPoints, o = C.numPoints * 3, a = C.numPoints * 3, s = C.numPoints * (C.version == 2 ? 3 : 4), t = UE, S = t + i, h = S + D, c = h + o, w = c + a, G = w + s, k = Math.min(C.numPoints, Q.fetchLimit), R = Math.ceil(k / UA);
5393
5393
  for (let y = 0; y < R; y++) {
5394
5394
  let K = y < R - 1 ? UA : k - y * UA;
5395
5395
  Q.dataSplatCount + K > Q.fetchLimit && (K = Q.fetchLimit - Q.dataSplatCount);
@@ -5409,11 +5409,11 @@ async function Qe(B) {
5409
5409
  for (let p = 0; p < K; p++)
5410
5410
  M[N++] = E[c + (y * UA + p) * 3 + 2];
5411
5411
  for (let p = 0; p < K; p++)
5412
- M[N++] = UE(E[h + (y * UA + p) * 3]);
5412
+ M[N++] = rE(E[h + (y * UA + p) * 3]);
5413
5413
  for (let p = 0; p < K; p++)
5414
- M[N++] = UE(E[h + (y * UA + p) * 3 + 1]);
5414
+ M[N++] = rE(E[h + (y * UA + p) * 3 + 1]);
5415
5415
  for (let p = 0; p < K; p++)
5416
- M[N++] = UE(E[h + (y * UA + p) * 3 + 2]);
5416
+ M[N++] = rE(E[h + (y * UA + p) * 3 + 2]);
5417
5417
  const T = [];
5418
5418
  if (C.version == 2)
5419
5419
  for (let p = 0, v = 0, AA = 0, gA = 0; p < K; p++)
@@ -5486,18 +5486,18 @@ async function Qe(B) {
5486
5486
  Q.currentRadius = Math.sqrt(Q.maxX * Q.maxX + a * a + Q.maxZ * Q.maxZ), Q.aabbCenter = new J((Q.minX + Q.maxX) / 2, (Q.minY + Q.maxY) / 2, (Q.minZ + Q.maxZ) / 2), Q.maxRadius = 0.5 * Math.sqrt(Math.pow(Q.maxX - Q.minX, 2) + Math.pow(Q.maxY - Q.minY, 2) + Math.pow(Q.maxZ - Q.minZ, 2)), Q.metaMatrix && Q.aabbCenter.applyMatrix4(Q.metaMatrix);
5487
5487
  }
5488
5488
  function g(C) {
5489
- const Q = C.slice(0, ME), E = new Uint32Array(Q.buffer), i = {};
5489
+ const Q = C.slice(0, UE), E = new Uint32Array(Q.buffer), i = {};
5490
5490
  if (i.magic = E[0], i.version = E[1], i.numPoints = E[2], i.shDegree = Q[12], i.fractionalBits = Q[13], i.flags = Q[14], i.reserved = Q[15], i.magic !== 1347635022) throw new Error("[SPZ ERROR] header not found");
5491
5491
  if (i.version < 2 || i.version > 3) throw new Error("[SPZ ERROR] version not supported:" + i.version);
5492
5492
  if (i.shDegree > 3) throw new Error("[SPZ ERROR] unsupported SH degree:" + i.shDegree);
5493
5493
  if (i.fractionalBits !== 12) throw new Error("[SPZ ERROR] unsupported FractionalBits:" + i.fractionalBits);
5494
5494
  const D = i.version == 2 ? 19 : 20;
5495
5495
  let o = 0;
5496
- if (i.shDegree === 1 ? o = 9 : i.shDegree === 2 ? o = 24 : i.shDegree === 3 && (o = 45), C.length !== ME + i.numPoints * (D + o)) throw new Error("[SPZ ERROR] invalid spz data");
5496
+ if (i.shDegree === 1 ? o = 9 : i.shDegree === 2 ? o = 24 : i.shDegree === 3 && (o = 45), C.length !== UE + i.numPoints * (D + o)) throw new Error("[SPZ ERROR] invalid spz data");
5497
5497
  return i;
5498
5498
  }
5499
5499
  }
5500
- function UE(B) {
5500
+ function rE(B) {
5501
5501
  const A = (B - 127.5) / 38.25;
5502
5502
  return yA((0.5 + Bg * A) * 255);
5503
5503
  }
@@ -5668,7 +5668,7 @@ function yC(B, A) {
5668
5668
  yC(g, A);
5669
5669
  }
5670
5670
  }
5671
- const rE = 7, DQ = /* @__PURE__ */ new Set();
5671
+ const JE = 7, DQ = /* @__PURE__ */ new Set();
5672
5672
  function Jk(B) {
5673
5673
  B && !B.status && DQ.add(B);
5674
5674
  }
@@ -5754,15 +5754,15 @@ function lk(B) {
5754
5754
  let D = 0, o = 0, a = [];
5755
5755
  g?.environment?.url && !g.environment.status && a.push(g.environment);
5756
5756
  for (let S of Object.values(g.files))
5757
- S.status ? S.status < LI.FetchDone && D++ : (o++, S.lod === g.lodLevels - 1 && a.length < rE && a.push(S));
5758
- if (!o || D >= rE) return;
5757
+ S.status ? S.status < LI.FetchDone && D++ : (o++, S.lod === g.lodLevels - 1 && a.length < JE && a.push(S));
5758
+ if (!o || D >= JE) return;
5759
5759
  for (let S of a)
5760
- S.downloadCount = 0, S.lastTime = Date.now(), S.status = LI.WaitFetch, I(Di, g, S);
5760
+ S.downloadCount = 0, S.lastTime = Date.now(), S.status = LI.WaitFetch, I(si, g, S);
5761
5761
  if (a.length) return;
5762
5762
  let s = [...DQ], t = s.filter((S) => S.status >= LI.FetchDone);
5763
- s = s.filter((S) => !S.status), s.sort((S, h) => S.currentDistance - h.currentDistance), s = s.slice(0, Math.min(rE - D, s.length));
5763
+ s = s.filter((S) => !S.status), s.sort((S, h) => S.currentDistance - h.currentDistance), s = s.slice(0, Math.min(JE - D, s.length));
5764
5764
  for (let S of s)
5765
- S.downloadCount = 0, S.lastTime = Date.now(), S.status = LI.WaitFetch, I(Di, g, S), DQ.delete(S);
5765
+ S.downloadCount = 0, S.lastTime = Date.now(), S.status = LI.WaitFetch, I(si, g, S), DQ.delete(S);
5766
5766
  for (let S of t)
5767
5767
  DQ.delete(S);
5768
5768
  }
@@ -5813,7 +5813,7 @@ async function Rk(B, A, I) {
5813
5813
  return;
5814
5814
  }
5815
5815
  I.status |= LI.Fetching, I.abortController = new AbortController(), A.fetchSet.add(I.url);
5816
- const E = new ni({ url: I.url });
5816
+ const E = new Mi({ url: I.url });
5817
5817
  E.fetchLimit = 5e6, E.abortController = I.abortController, g ? await Be(E) : C ? await Qe(E) : Q && await Ee(E), E.status == BA.FetchDone && E.downloadSplatCount ? (I.downloadData = E.splatData, I.downloadCount = E.downloadSplatCount, I.status |= LI.FetchDone, B.downloadSplatCount += E.downloadSplatCount, B.dataShDegree = Math.max(B.dataShDegree, E.dataShDegree), !B.palettes && E.palettes && (B.palettes = E.palettes)) : I.status |= LI.FetchDone | LI.FetchFailed, A.fetchSet.delete(I.url), I.abortController = null;
5818
5818
  }
5819
5819
  function Yk(B) {
@@ -5821,7 +5821,7 @@ function Yk(B) {
5821
5821
  let g, C = Date.now() + 36e5, Q = 0, E = !1, i = 0, D = null, o, a = { index: 0, version: 0, activeTime: 0 }, s = { index: 1, version: 0, activeTime: 0 }, t = !1;
5822
5822
  const S = I(FI);
5823
5823
  let h = !1, c = 0, w = !1, G = !1;
5824
- const k = new Array(6).fill(null).map(() => new mi());
5824
+ const k = new Array(6).fill(null).map(() => new Oi());
5825
5825
  A(ht, () => o?.aabbCenter || new J());
5826
5826
  let R;
5827
5827
  const y = new Promise((u) => R = u);
@@ -5845,7 +5845,7 @@ function Yk(B) {
5845
5845
  } else
5846
5846
  return 1;
5847
5847
  return Math.ceil(r / H);
5848
- }), A(Qo, async () => (await y, o.dataShDegree)), A(Bo, async (u, H = !0) => {
5848
+ }), A(Qo, async () => (await y, o.dataShDegree)), A(yQ, async (u, H = !0) => {
5849
5849
  try {
5850
5850
  await y;
5851
5851
  const b = LD(o.header);
@@ -5869,7 +5869,7 @@ function Yk(B) {
5869
5869
  async function K(u) {
5870
5870
  if (g) return;
5871
5871
  if (o?.splatTiles) {
5872
- if (!w && o.palettes && (I(oi, o.palettes), I(tB, o.dataShDegree), w = !0), t) return;
5872
+ if (!w && o.palettes && (I(Di, o.palettes), I(tB, o.dataShDegree), w = !0), t) return;
5873
5873
  t = !0, setTimeout(async () => {
5874
5874
  await N(), T(), t = !1;
5875
5875
  });
@@ -5881,10 +5881,10 @@ function Yk(B) {
5881
5881
  const H = o.status !== BA.FetchReady && o.status !== BA.Fetching;
5882
5882
  if (v(H), H) {
5883
5883
  const b = Math.min(o.fetchLimit, o.downloadSplatCount);
5884
- b && !o.notifyFetchStopDone && (o.notifyFetchStopDone = !0) && I(vg, b);
5884
+ b && !o.notifyFetchStopDone && (o.notifyFetchStopDone = !0) && I(vg, b), setTimeout(() => !D && I(yQ, o?.meta?.watermark));
5885
5885
  } else
5886
- I($i, 100 * o.downloadSize / o.fileSize);
5887
- o.dataSplatCount && (!w && o.palettes && (I(oi, o.palettes), w = !0), !t && (t = !0, setTimeout(async () => {
5886
+ I(Ao, 100 * o.downloadSize / o.fileSize);
5887
+ o.dataSplatCount && (!w && o.palettes && (I(Di, o.palettes), w = !0), !t && (t = !0, setTimeout(async () => {
5888
5888
  u ? await l(H) : await M(H), t = !1;
5889
5889
  })));
5890
5890
  }
@@ -5907,12 +5907,12 @@ function Yk(B) {
5907
5907
  for (let X = 0, V = 0; X < o.renderSplatCount; X++)
5908
5908
  $[X * 3] = m[X * 8], $[X * 3 + 1] = m[X * 8 + 1], $[X * 3 + 2] = m[X * 8 + 2];
5909
5909
  const P = Date.now();
5910
- if (H.version = P, H.txdata = j, H.xyz = $, H.renderSplatCount = o.renderSplatCount, H.visibleSplatCount = o.downloadSplatCount + Y, H.modelSplatCount = o.downloadSplatCount + Y, H.watermarkCount = L + Y, H.minX = o.minX, H.maxX = o.maxX, H.minY = o.minY, H.maxY = o.maxY, H.minZ = o.minZ, H.maxZ = o.maxZ, o.meta.particleMode && !c && (c = performance.now(), I(yQ, c), I(ug, !1), I(KQ, 1)), o.maxRadius && I(ct, o.maxRadius), I(CQ, H, o.currentRadius, o.currentRadius), C = P, u && !o.smallSceneUploadDone) {
5910
+ if (H.version = P, H.txdata = j, H.xyz = $, H.renderSplatCount = o.renderSplatCount, H.visibleSplatCount = o.downloadSplatCount + Y, H.modelSplatCount = o.downloadSplatCount + Y, H.watermarkCount = L + Y, H.minX = o.minX, H.maxX = o.maxX, H.minY = o.minY, H.maxY = o.maxY, H.minZ = o.minZ, H.maxZ = o.maxZ, o.meta.particleMode && !c && (c = performance.now(), I(KQ, c), I(ug, !1), I(nQ, 1)), o.maxRadius && I(ct, o.maxRadius), I(CQ, H, o.currentRadius, o.currentRadius), C = P, u && !o.smallSceneUploadDone) {
5911
5911
  o.smallSceneUploadDone = !0, I(et, o.sh12Data), I(wt, o.sh3Data), o.sh12Data = null, o.sh3Data = null;
5912
5912
  const X = I(W);
5913
5913
  I(tB, X.shDegree === void 0 ? 3 : X.shDegree), I(_B), o.meta.particleMode && setTimeout(
5914
5914
  () => {
5915
- I(yQ, performance.now() + 5e3), I(KQ, 2), setTimeout(() => I(rC, !0), 5e3);
5915
+ I(KQ, performance.now() + 5e3), I(nQ, 2), setTimeout(() => I(rC, !0), 5e3);
5916
5916
  },
5917
5917
  Math.max(5e3 + c - performance.now(), 0)
5918
5918
  // 先5秒加载过程
@@ -5929,7 +5929,7 @@ function Yk(B) {
5929
5929
  if (a.version && (!Z.index && !s.active || Z.index && !a.active) || Date.now() - Z.activeTime < lD) return;
5930
5930
  if (u) {
5931
5931
  const DA = I(W).viewerEvents;
5932
- if (DA && !DA.fire(zi)) return;
5932
+ if (DA && !DA.fire(_i)) return;
5933
5933
  }
5934
5934
  if (!Z.version) {
5935
5935
  let DA = o.opts.format, sA = " ";
@@ -5940,7 +5940,7 @@ function Yk(B) {
5940
5940
  const j = Date.now();
5941
5941
  Z.version = j, Z.active = !1;
5942
5942
  let m = 0;
5943
- const f = [], $ = I(Ai), P = I(MI), X = I(sg);
5943
+ const f = [], $ = I(Ii), P = I(MI), X = I(sg);
5944
5944
  for (const DA of o.map.values())
5945
5945
  p($, P, X, DA) && (f.push(DA), DA.currentRenderCnt = DA.splatCount, m += DA.splatCount);
5946
5946
  I(ZA, { cuts: `${f.length} / ${o.map.size}` });
@@ -5992,7 +5992,7 @@ function Yk(B) {
5992
5992
  if (a.version && (!j.index && !s.active || j.index && !a.active) || Date.now() - Math.max(a.activeTime, s.activeTime) < lD) return;
5993
5993
  const m = new J(), f = o.splatTiles, $ = f.lodLevels - 1;
5994
5994
  if (!f.topLodReady) return;
5995
- const P = I(Ai), X = I(MI);
5995
+ const P = I(Ii), X = I(MI);
5996
5996
  tk(P, k);
5997
5997
  const V = (QA, oA, tA = !1) => {
5998
5998
  if (!f.lodTargets.includes(oA))
@@ -6205,7 +6205,7 @@ function Yk(B) {
6205
6205
  } else
6206
6206
  console.warn("SplatMesh only loads GLB models with the KHR_gaussian_splatting extension.");
6207
6207
  }
6208
- if (o = new ni(u, H), d) {
6208
+ if (o = new Mi(u, H), d) {
6209
6209
  const x = H.pcDownloadLimitSplatCount || Gh, Z = H.mobileDownloadLimitSplatCount || kh;
6210
6210
  o.fetchLimit = fA ? Z : x;
6211
6211
  } else
@@ -6219,12 +6219,12 @@ function Yk(B) {
6219
6219
  console.error("Unsupported format:", u.format), I(vg, 0);
6220
6220
  return;
6221
6221
  }
6222
- u.format === "glb" && (URL.revokeObjectURL(u.url), u.url = L), I(_i), I(ZA, { cuts: "" });
6222
+ u.format === "glb" && (URL.revokeObjectURL(u.url), u.url = L), I($i), I(ZA, { cuts: "" });
6223
6223
  }
6224
6224
  function CA(u, H) {
6225
- g || !u || !H || (!o && (o = new ni({ url: "fake.spx" })), !o.splatTiles && (o.splatTiles = u), R(u.totalCount), Rk(o, u, H));
6225
+ g || !u || !H || (!o && (o = new Mi({ url: "fake.spx" })), !o.splatTiles && (o.splatTiles = u), R(u.totalCount), Rk(o, u, H));
6226
6226
  }
6227
- A(va, (u, H) => _(u, H)), A(Di, (u, H) => CA(u, H)), A(za, (u = 1e4) => Date.now() - C < u), A(_a, () => AA()), I(
6227
+ A(va, (u, H) => _(u, H)), A(si, (u, H) => CA(u, H)), A(za, (u = 1e4) => Date.now() - C < u), A(_a, () => AA()), I(
6228
6228
  bg,
6229
6229
  async () => await K(S),
6230
6230
  () => !g,
@@ -6232,7 +6232,7 @@ function Yk(B) {
6232
6232
  ), lk(B);
6233
6233
  }
6234
6234
  var JB = /* @__PURE__ */ ((B) => (B[B.ModelCenterCirccle = 1] = "ModelCenterCirccle", B[B.ScreenCenterCircle = 2] = "ScreenCenterCircle", B[B.ScreenMiddleToLeftRight = 3] = "ScreenMiddleToLeftRight", B[B.ScreenMiddleToTopBottom = 4] = "ScreenMiddleToTopBottom", B))(JB || {});
6235
- const qk = "splatTextureHeightAry", bD = "currentVisibleRadius", xD = "currentLightRadius", pk = "splatTextureWidth", ZD = "transitionEffect", JE = "splatShTexture12", jD = "maxPixelDiameter", WD = "minPixelDiameter", lE = "activeFlagValue", NE = "splatShTexture3", PD = "shPalettesReady", XD = "performanceNow", jB = "performanceAct", Lk = "waterMarkColor", VD = "showWaterMark", vD = "useSimilarExp", zD = "splatTexture0", _D = "splatTexture1", $D = "particleMode", As = "bigSceneMode", Is = "lightFactor", gs = "debugEffect", Cs = "usingIndex", dk = "splatIndex", FE = "shPalettes", Bs = "maxRadius", Qs = "flagValue", Es = "pointMode", is = "markPoint", os = "shDegree", Ds = "viewport", ss = "minAlpha", as = "useLod", ts = "focal", es = "topY";
6235
+ const qk = "splatTextureHeightAry", bD = "currentVisibleRadius", xD = "currentLightRadius", pk = "splatTextureWidth", ZD = "transitionEffect", lE = "splatShTexture12", jD = "maxPixelDiameter", WD = "minPixelDiameter", NE = "activeFlagValue", FE = "splatShTexture3", PD = "shPalettesReady", XD = "performanceNow", jB = "performanceAct", Lk = "waterMarkColor", VD = "showWaterMark", vD = "useSimilarExp", zD = "splatTexture0", _D = "splatTexture1", $D = "particleMode", As = "bigSceneMode", Is = "lightFactor", gs = "debugEffect", Cs = "usingIndex", dk = "splatIndex", RE = "shPalettes", Bs = "maxRadius", Qs = "flagValue", Es = "pointMode", is = "markPoint", os = "shDegree", Ds = "viewport", ss = "minAlpha", as = "useLod", ts = "focal", es = "topY";
6236
6236
  let KA = 0;
6237
6237
  KA++;
6238
6238
  const ws = `$${KA++}`, Hk = `$${KA++}`;
@@ -6247,7 +6247,7 @@ const jk = `$${KA++}`;
6247
6247
  KA++;
6248
6248
  const Wk = `$${KA++}`;
6249
6249
  KA++;
6250
- const Pk = `$${KA++}`, Xk = `$${KA++}`, Vk = `$${KA++}`, vk = `$${KA++}`, zk = `$${KA++}`, _k = `$${KA++}`, $k = `$${KA++}`, AG = `$${KA++}`, IG = `$${KA++}`, gG = `$${KA++}`, ks = `$${KA++}`, CG = `$${KA++}`, BG = `$${KA++}`, ri = `$${KA++}`, Gs = `$${KA++}`, cs = `$${KA++}`;
6250
+ const Pk = `$${KA++}`, Xk = `$${KA++}`, Vk = `$${KA++}`, vk = `$${KA++}`, zk = `$${KA++}`, _k = `$${KA++}`, $k = `$${KA++}`, AG = `$${KA++}`, IG = `$${KA++}`, gG = `$${KA++}`, ks = `$${KA++}`, CG = `$${KA++}`, BG = `$${KA++}`, Ji = `$${KA++}`, Gs = `$${KA++}`, cs = `$${KA++}`;
6251
6251
  var QG = `precision highp float;\r
6252
6252
  precision highp int;
6253
6253
 
@@ -6671,16 +6671,16 @@ function sG(B) {
6671
6671
  let i = 0, D = 0;
6672
6672
  const o = 960;
6673
6673
  let a = 0;
6674
- I(St, () => a), I(DE, () => {
6675
- }, !0), I(sE, () => {
6674
+ I(St, () => a), I(sE, () => {
6675
+ }, !0), I(aE, () => {
6676
6676
  }, !0), I(PC, () => {
6677
6677
  }, !0), I(mB, () => {
6678
6678
  }, !0), I(DD, async () => {
6679
- const c = new ZE();
6679
+ const c = new jE();
6680
6680
  c.setIndex([0, 1, 2, 0, 2, 3]);
6681
6681
  const w = new Float32Array(12), G = new dI(w, 3);
6682
6682
  c.setAttribute("position", G), G.setXYZ(0, -2, -2, 0), G.setXYZ(1, -2, 2, 0), G.setXYZ(2, 2, 2, 0), G.setXYZ(3, 2, -2, 0), G.needsUpdate = !0;
6683
- let k = new ZE().copy(c);
6683
+ let k = new jE().copy(c);
6684
6684
  const R = await g(Vg);
6685
6685
  if (A) return;
6686
6686
  const y = new Uint32Array(R), K = new ya(y, 1, !1);
@@ -6689,7 +6689,7 @@ function sG(B) {
6689
6689
  g(tt, l), g(ZA, { renderSplatCount: O });
6690
6690
  }), k.instanceCount = O, g(lA), g(ZA, { sortTime: `${N} / ${Date.now() - T}`, bucketBits: i, sortType: D });
6691
6691
  }), I(TS, () => k), I(
6692
- DE,
6692
+ sE,
6693
6693
  () => {
6694
6694
  K.array = null, k.dispose();
6695
6695
  },
@@ -6721,14 +6721,14 @@ function sG(B) {
6721
6721
  AA.format = pg, AA.type = sC, AA.internalFormat = "RGBA32UI", AA.needsUpdate = !0, y.uniforms[_D].value = AA;
6722
6722
  const gA = await g(BQ, 1, w), _ = new Uint32Array(4);
6723
6723
  let CA = new aC(_, 1, 1, pg, sC);
6724
- CA.internalFormat = "RGBA32UI", CA.needsUpdate = !0, y.uniforms[JE].value = CA;
6724
+ CA.internalFormat = "RGBA32UI", CA.needsUpdate = !0, y.uniforms[lE].value = CA;
6725
6725
  const u = new Uint32Array(4);
6726
6726
  let H = new aC(u, 1, 1, pg, sC);
6727
- H.internalFormat = "RGBA32UI", H.needsUpdate = !0, y.uniforms[NE].value = H;
6727
+ H.internalFormat = "RGBA32UI", H.needsUpdate = !0, y.uniforms[FE].value = H;
6728
6728
  const b = new Uint8Array(4);
6729
6729
  b.fill(128);
6730
6730
  let r = new aC(b, 1, 1, pg, lo);
6731
- r.internalFormat = "RGBA8UI", r.needsUpdate = !0, y.uniforms[FE].value = r, y.needsUpdate = !0;
6731
+ r.internalFormat = "RGBA8UI", r.needsUpdate = !0, y.uniforms[RE].value = r, y.needsUpdate = !0;
6732
6732
  let d = !1;
6733
6733
  I(eD, async (Y) => {
6734
6734
  if (!K) {
@@ -6750,20 +6750,20 @@ function sG(B) {
6750
6750
  for (let m = 0, f = 0; m < Y.length; m++)
6751
6751
  Z.set(Y[m], f), f += Y[m].byteLength;
6752
6752
  const j = new aC(x, w, gA, pg, sC);
6753
- j.internalFormat = "RGBA32UI", j.needsUpdate = !0, y.uniforms[JE].value = j, y.needsUpdate = !0, CA?.dispose(), CA = j, g(lA);
6753
+ j.internalFormat = "RGBA32UI", j.needsUpdate = !0, y.uniforms[lE].value = j, y.needsUpdate = !0, CA?.dispose(), CA = j, g(lA);
6754
6754
  }), I(wt, async (Y) => {
6755
6755
  if (g(FI) || !Y || !Y.length) return;
6756
6756
  const x = new Uint32Array(w * await g(BQ, 3, w) * 4), Z = new Uint8Array(x.buffer);
6757
6757
  for (let m = 0, f = 0; m < Y.length; m++)
6758
6758
  Z.set(Y[m], f), f += Y[m].byteLength;
6759
6759
  const j = new aC(x, w, gA, pg, sC);
6760
- j.internalFormat = "RGBA32UI", j.needsUpdate = !0, y.uniforms[NE].value = j, y.needsUpdate = !0, H?.dispose(), H = j, g(lA);
6761
- }), I(oi, async (Y) => {
6760
+ j.internalFormat = "RGBA32UI", j.needsUpdate = !0, y.uniforms[FE].value = j, y.needsUpdate = !0, H?.dispose(), H = j, g(lA);
6761
+ }), I(Di, async (Y) => {
6762
6762
  if (!Y || !Y.length) return;
6763
6763
  const x = 1024, Z = new Uint8Array(o * x * 4);
6764
6764
  Z.fill(128), Z.set(Y);
6765
6765
  const j = new aC(Z, o, x, pg, lo);
6766
- r.internalFormat = "RGBA8UI", j.onUpdate = () => g(UD), j.needsUpdate = !0, y.uniforms[FE].value = j, y.needsUpdate = !0, r?.dispose(), r = j, g(lA);
6766
+ r.internalFormat = "RGBA8UI", j.onUpdate = () => g(UD), j.needsUpdate = !0, y.uniforms[RE].value = j, y.needsUpdate = !0, r?.dispose(), r = j, g(lA);
6767
6767
  }), I(aD, () => y), I(
6768
6768
  PC,
6769
6769
  () => {
@@ -6807,21 +6807,21 @@ function sG(B) {
6807
6807
  y.uniforms[Bs].value = Y, y.uniformsNeedUpdate = !0, g(lA);
6808
6808
  }), I(zB, (Y, x, Z, j) => {
6809
6809
  y.uniforms[is].value = [Y, x, Z, j ? 1 : -1], y.uniformsNeedUpdate = !0, g(lA);
6810
- }), I(Ii, (Y = !0) => {
6810
+ }), I(gi, (Y = !0) => {
6811
6811
  y.uniforms[VD].value = Y, y.uniformsNeedUpdate = !0, g(lA);
6812
6812
  }), I(UD, (Y = !0) => {
6813
6813
  y.uniforms[PD].value = Y, y.uniformsNeedUpdate = !0, g(lA);
6814
6814
  }), I(Xa, (Y) => {
6815
6815
  y.uniforms[XD].value = Y, y.uniformsNeedUpdate = !0;
6816
- }), I(yQ, (Y) => {
6816
+ }), I(KQ, (Y) => {
6817
6817
  y.uniforms[jB].value = Y, y.uniformsNeedUpdate = !0, g(lA);
6818
- }), I(eE, (Y, x) => {
6818
+ }), I(wE, (Y, x) => {
6819
6819
  y.uniforms[WD].value = Y, y.uniforms[jD].value = x, y.uniformsNeedUpdate = !0, g(lA);
6820
- }), I(wE, (Y) => {
6820
+ }), I(SE, (Y) => {
6821
6821
  y.uniforms[ss].value = Math.min(Math.max(0, Y), 255) / 255, y.uniformsNeedUpdate = !0, g(lA);
6822
- }), I(SE, (Y = !1) => {
6822
+ }), I(hE, (Y = !1) => {
6823
6823
  y.uniforms[vD].value = Y, y.uniformsNeedUpdate = !0, g(lA);
6824
- }), I(KQ, (Y) => {
6824
+ }), I(nQ, (Y) => {
6825
6825
  y.uniforms[$D].value = Y, y.uniformsNeedUpdate = !0, g(lA);
6826
6826
  }), I(uS, (Y) => {
6827
6827
  y.uniforms[gs].value = Y, y.uniformsNeedUpdate = !0;
@@ -6831,10 +6831,10 @@ function sG(B) {
6831
6831
  }), I(VS, (Y = 0, x = 0) => {
6832
6832
  y.uniforms[Qs].value = Y << 16 | x, y.uniforms[jB].value = performance.now(), y.uniformsNeedUpdate = !0, g(lA);
6833
6833
  }), I(vS, (Y = -1) => {
6834
- if (Y < 0) return y.uniforms[lE].value;
6835
- y.uniforms[lE].value = Y, y.uniforms[jB].value = performance.now(), y.uniformsNeedUpdate = !0, g(lA);
6834
+ if (Y < 0) return y.uniforms[NE].value;
6835
+ y.uniforms[NE].value = Y, y.uniforms[jB].value = performance.now(), y.uniformsNeedUpdate = !0, g(lA);
6836
6836
  }), I(
6837
- sE,
6837
+ aE,
6838
6838
  () => {
6839
6839
  y.dispose(), l && l.dispose(), AA && AA.dispose(), CA && CA.dispose(), H && H.dispose(), r?.dispose();
6840
6840
  },
@@ -6849,22 +6849,22 @@ function sG(B) {
6849
6849
  }
6850
6850
  I(Wa, async () => {
6851
6851
  const c = new z(await g(DD), await g(sD));
6852
- return g(PC), g(mB), g(SD, g(FI)), g(ug, g(gi)), c;
6852
+ return g(PC), g(mB), g(SD, g(FI)), g(ug, g(Ci)), c;
6853
6853
  });
6854
6854
  function t() {
6855
6855
  g(PC), g(mB);
6856
6856
  }
6857
6857
  window.addEventListener("resize", t), I($a, () => {
6858
- A = !0, window.removeEventListener("resize", t), g(DE), g(sE);
6859
- }), I(ii, () => {
6858
+ A = !0, window.removeEventListener("resize", t), g(sE), g(aE);
6859
+ }), I(oi, () => {
6860
6860
  if (!g(yt)) return;
6861
6861
  const c = g(W), w = g(YI)?.meta || {}, G = c.qualityLevel || RI.Default5;
6862
6862
  if (g(tB, [0, 1, 2, 3, 3, 3, 3, 3, 3][G - 1]), fA) {
6863
6863
  const R = [4, 3, 3, 2, 1, 1, 1, 1, 1], y = [128, 128, 128, 256, 256, 256, 512, 512, 512], K = [7, 6, 5, 4, 4, 3, 2, 2, 2], M = w.minPixelDiameter || R[G - 1], l = w.maxPixelDiameter || y[G - 1];
6864
- g(eE, M, l), g(wE, w.minAlpha || K[G - 1]), g(SE, G < RI.L4);
6864
+ g(wE, M, l), g(SE, w.minAlpha || K[G - 1]), g(hE, G < RI.L4);
6865
6865
  } else {
6866
6866
  const R = [2, 2, 2, 1, 1, 1, 1, 1, 1], y = [128, 256, 256, 512, 512, 1024, 1024, 1024, 1024], K = [5, 4, 3, 2, 2, 1, 1, 1, 1], M = w.minPixelDiameter || R[G - 1], l = w.maxPixelDiameter || y[G - 1];
6867
- g(eE, M, l), g(wE, w.minAlpha || K[G - 1]), g(SE, G < RI.L2);
6867
+ g(wE, M, l), g(SE, w.minAlpha || K[G - 1]), g(hE, G < RI.L2);
6868
6868
  }
6869
6869
  g(Eo);
6870
6870
  }), I(At, async () => {
@@ -6879,7 +6879,7 @@ function sG(B) {
6879
6879
  let y = g(gt);
6880
6880
  y && !R && (R = Date.now());
6881
6881
  let K = G / C;
6882
- y && (K > 0.9 || Date.now() - R > 2500) ? (g(gi) && g(wQ, !0), g(fC, 0), k = !0) : y && K > 0.7 ? w = Math.min(w * 1.2, 0.3) : y && K > 0.5 ? w = Math.min(w * 1.2, 0.2) : K > 0.4 && (w = Math.min(w * 1.05, 0.1));
6882
+ y && (K > 0.9 || Date.now() - R > 2500) ? (g(Ci) && g(wQ, !0), g(fC, 0), k = !0) : y && K > 0.7 ? w = Math.min(w * 1.2, 0.3) : y && K > 0.5 ? w = Math.min(w * 1.2, 0.2) : K > 0.4 && (w = Math.min(w * 1.05, 0.1));
6883
6883
  },
6884
6884
  () => !A && !k,
6885
6885
  3
@@ -6899,13 +6899,13 @@ function sG(B) {
6899
6899
  () => !A && !k.stop
6900
6900
  );
6901
6901
  } else
6902
- g(yQ, performance.now()), g(TC, 0.1), setTimeout(() => {
6902
+ g(KQ, performance.now()), g(TC, 0.1), setTimeout(() => {
6903
6903
  g(ug), g(TC, 0), g(rC, c);
6904
6904
  }, 500);
6905
6905
  }), I(
6906
6906
  rC,
6907
6907
  (c = !1) => {
6908
- g(FI) || (g(KQ, 0), c && g(W).viewerEvents?.fire(gC), g(W).viewerEvents?.fire(st));
6908
+ g(FI) || (g(nQ, 0), c && g(W).viewerEvents?.fire(gC), g(W).viewerEvents?.fire(st));
6909
6909
  },
6910
6910
  !0
6911
6911
  ), I(oD, (c, w = 0) => ({
@@ -6913,9 +6913,9 @@ function sG(B) {
6913
6913
  [qk]: { type: "int", value: w },
6914
6914
  [zD]: { type: "t", value: null },
6915
6915
  [_D]: { type: "t", value: null },
6916
- [JE]: { type: "t", value: null },
6917
- [NE]: { type: "t", value: null },
6916
+ [lE]: { type: "t", value: null },
6918
6917
  [FE]: { type: "t", value: null },
6918
+ [RE]: { type: "t", value: null },
6919
6919
  [PD]: { type: "bool", value: !1 },
6920
6920
  [ts]: { type: "v2", value: new $A() },
6921
6921
  [Ds]: { type: "v2", value: new $A() },
@@ -6942,13 +6942,13 @@ function sG(B) {
6942
6942
  [VD]: { type: "bool", value: !1 },
6943
6943
  [vD]: { type: "bool", value: !0 },
6944
6944
  [Qs]: { type: "uint", value: 1 },
6945
- [lE]: { type: "uint", value: 0 }
6945
+ [NE]: { type: "uint", value: 0 }
6946
6946
  }));
6947
6947
  const S = g(ua);
6948
6948
  S.onmessage = (c) => {
6949
6949
  const w = c.data;
6950
6950
  if (w[ws]) {
6951
- i = w[BG], D = w[ri];
6951
+ i = w[BG], D = w[Ji];
6952
6952
  const G = w[ws];
6953
6953
  g(tD, G, w[Ss], w[Ok], w[mk], w[hs]), G.length && S.postMessage({ [Hk]: G }, [G.buffer]);
6954
6954
  }
@@ -7025,7 +7025,7 @@ function to(B) {
7025
7025
  console.info(C);
7026
7026
  }), A(fa, (I = "", g = "") => {
7027
7027
  const C = "https://reall3d.com/gsfont/api/getGaussianText", Q = new FormData();
7028
- return Q.append("text", I.substring(0, 100)), Q.append("fmt", g), Q.append("ver", TQ), Q.append("tk", sessionStorage.getItem("tk-gstext") || ""), new Promise((E) => {
7028
+ return Q.append("text", I.substring(0, 100)), Q.append("fmt", g), Q.append("ver", uQ), Q.append("tk", sessionStorage.getItem("tk-gstext") || ""), new Promise((E) => {
7029
7029
  fetch(C, { method: "POST", body: Q }).then((i) => i.ok ? i.json() : {}).then((i) => i.success ? E(JSON.parse(i.data)) : E([])).catch((i) => E([]));
7030
7030
  });
7031
7031
  });
@@ -7035,7 +7035,7 @@ function tG(B) {
7035
7035
  const I = (i, D, o) => B.on(i, D, o), g = (i, ...D) => B.fire(i, ...D);
7036
7036
  I(Va, () => A = !0);
7037
7037
  const C = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map();
7038
- I(aQ, () => g(HI) && C.set(Date.now(), 1)), I(tQ, () => g(HI) && g(UC, C)), I(YQ, () => g(HI) && Q.set(Date.now(), 1)), I(eQ, () => g(HI) && g(UC, Q));
7038
+ I(aQ, () => g(HI) && C.set(Date.now(), 1)), I(tQ, () => g(HI) && g(UC, C)), I(qQ, () => g(HI) && Q.set(Date.now(), 1)), I(eQ, () => g(HI) && g(UC, Q));
7039
7039
  let E = 0;
7040
7040
  I(
7041
7041
  IC,
@@ -7055,7 +7055,7 @@ function tG(B) {
7055
7055
  for (const s of i.keys())
7056
7056
  o - s <= 1e3 ? a++ : D.push(s);
7057
7057
  return D.forEach((s) => i.delete(s)), Math.min(a, 60);
7058
- }), window.addEventListener("beforeunload", () => g(qQ)), I(kt, async (i) => {
7058
+ }), window.addEventListener("beforeunload", () => g(pQ)), I(kt, async (i) => {
7059
7059
  g(ZA, { scene: "small (obj)" });
7060
7060
  const D = await bI(i, B);
7061
7061
  if (D) {
@@ -7090,7 +7090,7 @@ function SG(B) {
7090
7090
  if (!A) {
7091
7091
  const I = B.renderer.domElement, g = I.width / I.height;
7092
7092
  let C = new J().fromArray(B.lookUp), Q = new J().fromArray(B.lookAt), E = new J().fromArray(B.position);
7093
- A = new ji(B.fov, g, B.near, B.far), A.position.copy(E), A.up.copy(C).normalize(), A.lookAt(Q), B.camera = A;
7093
+ A = new Wi(B.fov, g, B.near, B.far), A.position.copy(E), A.up.copy(C).normalize(), A.lookAt(Q), B.camera = A;
7094
7094
  }
7095
7095
  return B.camera;
7096
7096
  }
@@ -7111,8 +7111,8 @@ function kG(B) {
7111
7111
  Eo,
7112
7112
  () => Q.postMessage({
7113
7113
  [CG]: !0,
7114
- [ks]: I(ei),
7115
- [ri]: I(wi),
7114
+ [ks]: I(wi),
7115
+ [Ji]: I(Si),
7116
7116
  [Gs]: I(YI)?.meta?.depthNearRate,
7117
7117
  [cs]: I(YI)?.meta?.depthNearValue
7118
7118
  })
@@ -7120,8 +7120,8 @@ function kG(B) {
7120
7120
  [$k]: !0,
7121
7121
  [Zk]: await I(Vg),
7122
7122
  [xk]: I(FI),
7123
- [ks]: I(ei),
7124
- [ri]: I(wi),
7123
+ [ks]: I(wi),
7124
+ [Ji]: I(Si),
7125
7125
  [Gs]: I(YI)?.meta?.depthNearRate,
7126
7126
  [cs]: I(YI)?.meta?.depthNearValue
7127
7127
  }))();
@@ -7205,16 +7205,16 @@ class Qg extends z {
7205
7205
  */
7206
7206
  constructor(A) {
7207
7207
  super(), this.isSplatMesh = !0, this.disposed = !1;
7208
- const I = this, g = new fQ(), C = (s, t, S) => g.on(s, t, S), Q = (s, ...t) => g.fire(s, ...t);
7208
+ const I = this, g = new TQ(), C = (s, t, S) => g.on(s, t, S), Q = (s, ...t) => g.fire(s, ...t);
7209
7209
  let E = !1;
7210
7210
  const i = eG(A), D = i.camera || i.controls?.object;
7211
- C(W, () => i), C(CC, () => i.renderer.domElement), C(vA, () => D), C(nB, () => D.fov), C(MI, (s = !1) => s ? D.position.clone() : D.position), C(sg, (s = !1) => i.controls ? s ? i.controls.target.clone() : i.controls.target : new J()), C(xa, () => D.projectionMatrix.clone().multiply(D.matrixWorldInverse).multiply(I.matrix).toArray()), C(Ai, () => D.projectionMatrix.clone().multiply(D.matrixWorldInverse)), C(Bt, () => D.getWorldDirection(new J()).toArray()), C(mg, () => i.renderer), C(wA, () => i.scene), C(FI, () => i.bigSceneMode), C(gi, () => i.pointcloudMode), C(YI, () => I), C(ei, () => i.qualityLevel || RI.Default5), C(wi, () => i.sortType || YC.Default1), C(yt, () => E), C(nD, (s, t = 1) => Math.abs(D.position.distanceTo(s)) < t && sk(D, s)), C(lA, () => i.viewerEvents?.fire(CI));
7211
+ C(W, () => i), C(CC, () => i.renderer.domElement), C(vA, () => D), C(nB, () => D.fov), C(MI, (s = !1) => s ? D.position.clone() : D.position), C(sg, (s = !1) => i.controls ? s ? i.controls.target.clone() : i.controls.target : new J()), C(xa, () => D.projectionMatrix.clone().multiply(D.matrixWorldInverse).multiply(I.matrix).toArray()), C(Ii, () => D.projectionMatrix.clone().multiply(D.matrixWorldInverse)), C(Bt, () => D.getWorldDirection(new J()).toArray()), C(mg, () => i.renderer), C(wA, () => i.scene), C(FI, () => i.bigSceneMode), C(Ci, () => i.pointcloudMode), C(YI, () => I), C(wi, () => i.qualityLevel || RI.Default5), C(Si, () => i.sortType || YC.Default1), C(yt, () => E), C(nD, (s, t = 1) => Math.abs(D.position.distanceTo(s)) < t && sk(D, s)), C(lA, () => i.viewerEvents?.fire(CI));
7212
7212
  let o = !1;
7213
7213
  C(MD, () => o), C(rC, () => o = !0, !0), C(rC, () => setTimeout(() => I.audioText?.opts.autoPlay && !I.audioText?.opts.position && I.audioText?.play(), 5e3), !0), so(g), to(g), Yk(g), kG(g), sG(g), aG(g), I.name = `${i.name || I.id}`, I.events = g, I.opts = i, (async () => (I.copy(await g.fire(Wa)), I.meta.transform && I.applyMatrix4(new zA().fromArray(I.meta.transform)), I.frustumCulled = !1, I.onBeforeRender = () => {
7214
7214
  Q(Za), Q(Xa, performance.now()), I.audioText.opts.position && Q(MD) && Q(nD, new J().fromArray(I.audioText.opts.position), I.audioText.opts.distance) && I.audioText.play();
7215
7215
  }, I.onAfterRender = () => {
7216
7216
  Q(za, 1e4) && Q(lA);
7217
- }, E = !0, Q(ii)))();
7217
+ }, E = !0, Q(oi)))();
7218
7218
  const a = new GG();
7219
7219
  a.visible = !1, a.renderOrder = 99999, I.boundBox = a, I.add(a), C(eB, (s, t, S, h, c, w, G) => {
7220
7220
  a.update(s, t, S, h, c, w, G);
@@ -7229,7 +7229,7 @@ class Qg extends z {
7229
7229
  const I = this;
7230
7230
  if (I.disposed) return;
7231
7231
  const g = (Q, ...E) => I.events.fire(Q, ...E), C = I.opts;
7232
- return A && (A.pointcloudMode !== void 0 && g(ug, A.pointcloudMode), A.lightFactor !== void 0 && g(aB, A.lightFactor), A.maxRenderCountOfMobile !== void 0 && (C.maxRenderCountOfMobile = A.maxRenderCountOfMobile), A.maxRenderCountOfPc !== void 0 && (C.maxRenderCountOfPc = A.maxRenderCountOfPc), A.qualityLevel !== void 0 && (C.qualityLevel = A.qualityLevel) && g(ii), !C.mapMode && A.sortType !== void 0 && (C.sortType = A.sortType) && g(Eo), g(lA)), { ...C };
7232
+ return A && (A.pointcloudMode !== void 0 && g(ug, A.pointcloudMode), A.lightFactor !== void 0 && g(aB, A.lightFactor), A.maxRenderCountOfMobile !== void 0 && (C.maxRenderCountOfMobile = A.maxRenderCountOfMobile), A.maxRenderCountOfPc !== void 0 && (C.maxRenderCountOfPc = A.maxRenderCountOfPc), A.qualityLevel !== void 0 && (C.qualityLevel = A.qualityLevel) && g(oi), !C.mapMode && A.sortType !== void 0 && (C.sortType = A.sortType) && g(Eo), g(lA)), { ...C };
7233
7233
  }
7234
7234
  /**
7235
7235
  * 添加渲染指定高斯模型
@@ -7288,11 +7288,11 @@ class Qg extends z {
7288
7288
  if (A.disposed) return;
7289
7289
  A.disposed = !0;
7290
7290
  const I = (g, ...C) => A.events.fire(g, ...C);
7291
- I(Sg, A), I(Sg, A.boundBox), A.removeFromParent(), A.boundBox.removeFromParent(), A.audioText?.dispose(), I(vi), I(_a), I(ja), I($a), A.events.clear(), A.events = null, A.opts = null, A.onAfterRender = null, A.boundBox = null, A.audioText = null;
7291
+ I(Sg, A), I(Sg, A.boundBox), A.removeFromParent(), A.boundBox.removeFromParent(), A.audioText?.dispose(), I(zi), I(_a), I(ja), I($a), A.events.clear(), A.events = null, A.opts = null, A.onAfterRender = null, A.boundBox = null, A.audioText = null;
7292
7292
  }
7293
7293
  }
7294
7294
  function yG(B) {
7295
- const A = (c, w, G) => B.on(c, w, G), I = (c, ...w) => B.fire(c, ...w), g = new bi(1, 1);
7295
+ const A = (c, w, G) => B.on(c, w, G), I = (c, ...w) => B.fire(c, ...w), g = new xi(1, 1);
7296
7296
  g.rotateX(-Math.PI / 2);
7297
7297
  const C = new hI({ color: 16777215 });
7298
7298
  C.transparent = !0, C.opacity = 0.6, C.depthTest = !1, C.depthWrite = !1, C.side = qI;
@@ -7301,7 +7301,7 @@ function yG(B) {
7301
7301
  const i = new J(0, 0, 0), D = 0.5, o = 0.01, a = 16777062, s = 0.1, t = 0.03, S = new KG(E, i, D, o, a, s, t), h = new tg();
7302
7302
  h.ignoreIntersect = !0, h.add(Q), h.add(S), h.renderOrder = 99999, Q.renderOrder = 99999, h.visible = !1, I(wA).add(h), A(bS, () => h), A($B, (c) => {
7303
7303
  I(hQ, !0), h.visible = c === void 0 ? !h.visible : c, I(CI);
7304
- }), A(Io, () => h.visible), A(hQ, (c = !1) => {
7304
+ }), A(go, () => h.visible), A(hQ, (c = !1) => {
7305
7305
  if (c || h.visible) {
7306
7306
  const w = new II(), G = new J(0, -1, 0);
7307
7307
  w.setFromUnitVectors(G, I(NC)), h.position.copy(I(sg)), h.quaternion.copy(w);
@@ -7360,7 +7360,7 @@ class nG extends Ya {
7360
7360
  this._quat?.setFromUnitVectors?.(this.object.up, new J(0, 1, 0)), this._quatInverse = this._quat?.clone?.()?.invert?.();
7361
7361
  }
7362
7362
  }
7363
- class Ji extends $g {
7363
+ class li extends $g {
7364
7364
  constructor(A) {
7365
7365
  super(), this.isCustomMark = !0, this.disposed = !1, this.events = A;
7366
7366
  }
@@ -7519,7 +7519,7 @@ class Ji extends $g {
7519
7519
  A.disposed = !0, A.events.fire(Sg, A), A.removeFromParent(), A.events.fire(oC, A), document.querySelectorAll(`.${A.data.name}`).forEach((g) => g.parentElement?.removeChild(g)), A.events = null, A.data = null, A.circleStart = null, A.circleEnd = null, A.css3dTag = null, A.css3dMainTag = null;
7520
7520
  }
7521
7521
  }
7522
- class li extends $g {
7522
+ class Ni extends $g {
7523
7523
  constructor(A) {
7524
7524
  super(), this.isCustomMark = !0, this.disposed = !1, this.css3dTags = [], this.group = new Dg(), this.add(this.group), this.events = A;
7525
7525
  }
@@ -7757,7 +7757,7 @@ class ie extends Dg {
7757
7757
  I?.parentElement?.removeChild?.(I), A.events = null, A.data = null, A.css3dTag = null;
7758
7758
  }
7759
7759
  }
7760
- class Ni extends $g {
7760
+ class Fi extends $g {
7761
7761
  constructor(A) {
7762
7762
  super(), this.isCustomMark = !0, this.disposed = !1, this.css3dTags = [], this.group = new Dg(), this.add(this.group), this.events = A;
7763
7763
  }
@@ -7803,9 +7803,9 @@ class Ni extends $g {
7803
7803
  Q.data.points[E - 3] = g.x, Q.data.points[E - 2] = g.y, Q.data.points[E - 1] = g.z;
7804
7804
  const i = Q.css3dTags.length - 1, D = new J().fromArray(Q.data.points.slice(E - 6, E - 3)), o = new J().fromArray(Q.data.points.slice(E - 3)), a = new J((D.x + o.x) / 2, (D.y + o.y) / 2, (D.z + o.z) / 2), s = D.distanceTo(o), t = (s * Q.events.fire(W).meterScale).toFixed(2) + " m";
7805
7805
  Q.css3dTags[i].element.innerText = t, Q.geometry.setPositions([...Q.data.points]), Q.css3dTags[i].position.set(a.x, a.y, a.z), Q.css3dTags[i].visible = C ? !0 : s > 0.5, Q.meshPlans.geometry.setAttribute("position", new dI(new Float32Array(Q.data.points), 3)), Q.meshPlans.geometry.attributes.position.needsUpdate = !0;
7806
- const S = Q.events.fire(zE, Q.data.points);
7806
+ const S = Q.events.fire(_E, Q.data.points);
7807
7807
  Q.css3dAreaTag.position.copy(S);
7808
- const h = Q.events.fire(_E, Q.data.points);
7808
+ const h = Q.events.fire($E, Q.data.points);
7809
7809
  Q.css3dAreaTag.element.childNodes[0].innerText = h.toFixed(2) + " m²";
7810
7810
  }
7811
7811
  if (A?.lineColor && (I && (Q.data.lineColor = A.lineColor), Q.material.color.set(A.lineColor), Q.meshPlans.material.color.set(A.lineColor)), A?.lineWidth && (I && (Q.data.lineWidth = A.lineWidth), Q.material.linewidth = A.lineWidth), A?.mainTagColor && (I && (Q.data.mainTagColor = A.mainTagColor), document.querySelector(`.${Q.data.name}-main-tag`).style.color = A.mainTagColor), A?.mainTagBackground && (I && (Q.data.mainTagBackground = A.mainTagBackground), document.querySelector(`.${Q.data.name}-main-tag`).style.background = A.mainTagBackground), A?.mainTagOpacity && (I && (Q.data.mainTagOpacity = A.mainTagOpacity), document.querySelector(`.${Q.data.name}-main-tag`).style.opacity = A.mainTagOpacity.toString()), A?.mainTagVisible !== void 0 && (I && (Q.data.mainTagVisible = A.mainTagVisible), Q.css3dMainTag.visible = A.mainTagVisible), A?.areaTagVisible !== void 0 && (I && (Q.data.areaTagVisible = A.areaTagVisible), Q.css3dAreaTag.visible = A.areaTagVisible), A?.areaTagColor) {
@@ -7899,7 +7899,7 @@ class Ni extends $g {
7899
7899
  const h = new nI(S);
7900
7900
  h.position.set(C.points[0], C.points[1], C.points[2]), h.element.style.pointerEvents = "none", h.scale.set(0.01, 0.01, 0.01), h.visible = C.mainTagVisible, g.group.add(h), g.css3dMainTag = h;
7901
7901
  }
7902
- const s = g.events.fire(_E, C.points).toFixed(2) + " m²", t = g.events.fire(zE, C.points);
7902
+ const s = g.events.fire($E, C.points).toFixed(2) + " m²", t = g.events.fire(_E, C.points);
7903
7903
  if (g.css3dAreaTag)
7904
7904
  g.css3dAreaTag.position.copy(t), g.css3dAreaTag.element.childNodes[0].innerText = s;
7905
7905
  else {
@@ -8228,14 +8228,14 @@ function UG(B) {
8228
8228
  I(cA).autoRotate = I(W).autoRotate = !0;
8229
8229
  }), A(SI, (r = !0) => {
8230
8230
  I(cA).autoRotate = I(W).autoRotate = !1, r && I(Kt);
8231
- }), A(aE, (r = !0) => {
8231
+ }), A(tE, (r = !0) => {
8232
8232
  if (Q) return;
8233
8233
  const d = I(cA), L = r ? Math.PI / 128 : -(Math.PI / 128), Y = new zA().makeRotationAxis(new J(0, 0, -1).transformDirection(d.object.matrixWorld), L);
8234
8234
  d.object.up.transformDirection(Y), I(CI);
8235
8235
  }), A(hD, () => {
8236
- Q || B.fire(aE, !0);
8236
+ Q || B.fire(tE, !0);
8237
8237
  }), A(kD, () => {
8238
- Q || B.fire(aE, !1);
8238
+ Q || B.fire(tE, !1);
8239
8239
  }), A(GQ, (r) => {
8240
8240
  const d = I(W);
8241
8241
  r ?? (r = !d.pointcloudMode), d.pointcloudMode = r, I(wA).traverse((Y) => Y instanceof Qg && Y.fire(ug, r));
@@ -8243,11 +8243,11 @@ function UG(B) {
8243
8243
  I(wA).traverse((d) => d instanceof Qg && d.fire(wQ));
8244
8244
  }), A(aB, (r) => {
8245
8245
  I(wA).traverse((L) => L instanceof Qg && L.fire(aB, r));
8246
- }), A(Ei, () => {
8246
+ }), A(ii, () => {
8247
8247
  const r = I(wA);
8248
8248
  let d;
8249
- r.traverse((L) => L instanceof Qg && (d = L)), d && I($E, d.fire(ht));
8250
- }), A(pQ, () => {
8249
+ r.traverse((L) => L instanceof Qg && (d = L)), d && I(Ai, d.fire(ht));
8250
+ }), A(LQ, () => {
8251
8251
  if (!C.size) return;
8252
8252
  const r = I(W);
8253
8253
  if (!r.enableKeyboard) return C.clear();
@@ -8260,19 +8260,19 @@ function UG(B) {
8260
8260
  I(qt, d, L, Y, x, Z), C.has("KeyY") ? (I(FC, !1), I(IQ), C.clear()) : C.has("Escape") && (xA.fire(wB), C.clear());
8261
8261
  return;
8262
8262
  }
8263
- C.has("Space") ? (r.bigSceneMode ? I(GQ) : I(cQ), C.clear()) : C.has("Escape") ? (xA.fire(wB), C.clear()) : C.has("KeyR") ? (r.autoRotate ? I(SI) : I(iD), C.clear()) : C.has("KeyM") ? (I(gC, !r.markVisible), C.clear()) : C.has("ArrowLeft") ? (I(hD), I($B, !0), C.clear()) : C.has("ArrowRight") ? (I(kD), I($B, !0), C.clear()) : C.has("KeyP") ? (I(ag, !0), C.clear()) : C.has("Equal") ? (I(MB), C.clear()) : C.has("Minus") ? (I(UB), C.clear()) : C.has("KeyY") ? (I(FC, !1), I(IQ), C.clear()) : C.has("KeyI") ? (I(at), C.clear()) : C.has("KeyF") ? (I(Ei), C.clear()) : C.has("F2") ? (!r.bigSceneMode && window.open("/editor/index.html?url=" + encodeURIComponent(I(YI).meta.url)), C.clear()) : C.has("KeyW") ? (v(I(cA), 0.15), C.clear()) : C.has("KeyS") ? (AA(I(cA), 0.15), C.clear()) : C.has("KeyA") ? (O(I(cA), 0.15), C.clear()) : C.has("KeyD") ? (p(I(cA), 0.15), C.clear()) : C.has("KeyQ") ? (_(I(cA)), C.clear()) : C.has("KeyE") ? (CA(I(cA)), C.clear()) : C.has("KeyC") ? (H(I(cA)), C.clear()) : C.has("KeyZ") && (b(I(cA)), C.clear());
8263
+ C.has("Space") ? (r.bigSceneMode ? I(GQ) : I(cQ), C.clear()) : C.has("Escape") ? (xA.fire(wB), C.clear()) : C.has("KeyR") ? (r.autoRotate ? I(SI) : I(iD), C.clear()) : C.has("KeyM") ? (I(gC, !r.markVisible), C.clear()) : C.has("ArrowLeft") ? (I(hD), I($B, !0), C.clear()) : C.has("ArrowRight") ? (I(kD), I($B, !0), C.clear()) : C.has("KeyP") ? (I(ag, !0), C.clear()) : C.has("Equal") ? (I(MB), C.clear()) : C.has("Minus") ? (I(UB), C.clear()) : C.has("KeyY") ? (I(FC, !1), I(IQ), C.clear()) : C.has("KeyI") ? (I(at), C.clear()) : C.has("KeyF") ? (I(ii), C.clear()) : C.has("F2") ? (!r.bigSceneMode && window.open("/editor/index.html?url=" + encodeURIComponent(I(YI).meta.url)), C.clear()) : C.has("KeyW") ? (v(I(cA), 0.15), C.clear()) : C.has("KeyS") ? (AA(I(cA), 0.15), C.clear()) : C.has("KeyA") ? (O(I(cA), 0.15), C.clear()) : C.has("KeyD") ? (p(I(cA), 0.15), C.clear()) : C.has("KeyQ") ? (_(I(cA)), C.clear()) : C.has("KeyE") ? (CA(I(cA)), C.clear()) : C.has("KeyC") ? (H(I(cA)), C.clear()) : C.has("KeyZ") && (b(I(cA)), C.clear());
8264
8264
  }), A(CB, async (r, d) => {
8265
8265
  if (E.move) return;
8266
8266
  const L = I(W);
8267
8267
  if (L.disableRightClickFocus) return;
8268
8268
  const Y = await I(SQ, r, d);
8269
- Y.length && (I(WA) ? !L.markMode && await I(QQ, Y[0]) : I($E, Y[0], !0, !1));
8269
+ Y.length && (I(WA) ? !L.markMode && await I(QQ, Y[0]) : I(Ai, Y[0], !0, !1));
8270
8270
  }), A(NI, async (r, d) => {
8271
8271
  const L = I(wA), Y = [];
8272
8272
  L.traverse((Z) => Z instanceof Qg && Y.push(Z));
8273
8273
  const x = await I(SQ, r, d);
8274
8274
  return x.length ? (Y.length && Y[0].fire(zB, x[0].x, x[0].y, x[0].z, !0), new J(x[0].x, x[0].y, x[0].z)) : (Y.length && Y[0].fire(zB, 0, 0, 0, !1), null);
8275
- }), A(Ao, async () => {
8275
+ }), A(Io, async () => {
8276
8276
  const r = I(wA), d = [];
8277
8277
  r.traverse((L) => L instanceof Qg && d.push(L));
8278
8278
  for (let L = 0; L < d.length; L++)
@@ -8298,7 +8298,7 @@ function UG(B) {
8298
8298
  A(
8299
8299
  BC,
8300
8300
  () => {
8301
- I(Io) && Date.now() - i > 2e3 && (I($B, !1), I(IQ));
8301
+ I(go) && Date.now() - i > 2e3 && (I($B, !1), I(IQ));
8302
8302
  },
8303
8303
  !0
8304
8304
  );
@@ -8344,11 +8344,11 @@ function UG(B) {
8344
8344
  L ? (S.drawFinish(L), S = null) : E.isDbClick && I(XC);
8345
8345
  } else {
8346
8346
  const L = await I(NI, r.clientX, r.clientY);
8347
- L && (S = new Ji(B), S.drawStart(L), I(wA).add(S));
8347
+ L && (S = new li(B), S.drawStart(L), I(wA).add(S));
8348
8348
  }
8349
8349
  else if (d.markType === "lines")
8350
8350
  if (h)
8351
- if (E.lastMovePoint && I(Ci, r.clientX, r.clientY, E.lastMovePoint) < 0.03)
8351
+ if (E.lastMovePoint && I(Bi, r.clientX, r.clientY, E.lastMovePoint) < 0.03)
8352
8352
  h.drawUpdate(null, !0, E.lastMovePoint, !0), E.lastClickPointTime = Date.now();
8353
8353
  else {
8354
8354
  const L = await I(NI, r.clientX, r.clientY);
@@ -8356,11 +8356,11 @@ function UG(B) {
8356
8356
  }
8357
8357
  else {
8358
8358
  const L = await I(NI, r.clientX, r.clientY);
8359
- L && (h = new li(B), h.drawStart(L), I(wA).add(h));
8359
+ L && (h = new Ni(B), h.drawStart(L), I(wA).add(h));
8360
8360
  }
8361
8361
  else if (d.markType === "plans")
8362
8362
  if (c)
8363
- if (E.lastMovePoint && I(Ci, r.clientX, r.clientY, E.lastMovePoint) < 0.03)
8363
+ if (E.lastMovePoint && I(Bi, r.clientX, r.clientY, E.lastMovePoint) < 0.03)
8364
8364
  c.drawUpdate(null, !0, E.lastMovePoint, !0), E.lastClickPointTime = Date.now();
8365
8365
  else {
8366
8366
  const L = await I(NI, r.clientX, r.clientY);
@@ -8368,7 +8368,7 @@ function UG(B) {
8368
8368
  }
8369
8369
  else {
8370
8370
  const L = await I(NI, r.clientX, r.clientY);
8371
- L && (c = new Ni(B), c.drawStart(L), I(wA).add(c));
8371
+ L && (c = new Fi(B), c.drawStart(L), I(wA).add(c));
8372
8372
  }
8373
8373
  else if (d.markType === "circle")
8374
8374
  if (w) {
@@ -8382,7 +8382,7 @@ function UG(B) {
8382
8382
  }
8383
8383
  if (I(WA)) {
8384
8384
  if (E.down === 1 && !d.markMode && Math.abs(r.clientX - E.downX) < R && Math.abs(r.clientY - E.downY) < R) {
8385
- const L = I(nQ, r.clientX, r.clientY);
8385
+ const L = I(MQ, r.clientX, r.clientY);
8386
8386
  await I(QQ, L?.point);
8387
8387
  }
8388
8388
  } else if (I(GC)) {
@@ -8405,7 +8405,7 @@ function UG(B) {
8405
8405
  const [d, L] = [r.changedTouches[0].clientX, r.changedTouches[0].clientY];
8406
8406
  if (I(WA)) {
8407
8407
  if (E.down === 1 && Math.abs(d - E.downX) < R && Math.abs(L - E.downY) < R) {
8408
- const Y = I(nQ, d, L);
8408
+ const Y = I(MQ, d, L);
8409
8409
  await I(QQ, Y?.point);
8410
8410
  }
8411
8411
  } else if (I(GC)) {
@@ -8420,9 +8420,9 @@ function UG(B) {
8420
8420
  function N() {
8421
8421
  const { width: r, height: d, top: L, left: Y } = I(jI), x = I(vA);
8422
8422
  x.aspect = r / d, x.updateProjectionMatrix();
8423
- const Z = I(go);
8423
+ const Z = I(Co);
8424
8424
  Z.setSize(r, d), Z.domElement.style.position = "absolute", Z.domElement.style.left = `${Y}px`, Z.domElement.style.top = `${L}px`;
8425
- const j = I(Co);
8425
+ const j = I(Bo);
8426
8426
  j.setSize(r, d), j.domElement.style.position = "absolute", j.domElement.style.left = `${Y}px`, j.domElement.style.top = `${L}px`;
8427
8427
  const m = I(mg);
8428
8428
  m.setPixelRatio(Math.min(devicePixelRatio, I(W).qualityLevel > RI.Default5 ? 2 : 1)), m.setSize(r, d);
@@ -8486,7 +8486,7 @@ function UG(B) {
8486
8486
  }
8487
8487
  }
8488
8488
  function se(B) {
8489
- const A = new Oi(), I = 5, g = (Q, E, i) => B.on(Q, E, i), C = (Q, ...E) => B.fire(Q, ...E);
8489
+ const A = new bi(), I = 5, g = (Q, E, i) => B.on(Q, E, i), C = (Q, ...E) => B.fire(Q, ...E);
8490
8490
  g(EQ, (Q, E) => {
8491
8491
  const { width: i, height: D, left: o, top: a } = C(jI), s = new $A();
8492
8492
  s.x = (Q - o) / i * 2 - 1, s.y = (a - E) / D * 2 + 1, A.setFromCamera(s, C(vA));
@@ -8504,12 +8504,12 @@ function se(B) {
8504
8504
  const t = (s.x + 1) / 2 * i, S = (1 - s.y) / 2 * D, h = C(vA);
8505
8505
  A.setFromCamera(s, h);
8506
8506
  const c = [], w = C(wA), G = [], k = [];
8507
- C(WA) ? G.push(...C(yi)) : w.children.forEach((K) => {
8507
+ C(WA) ? G.push(...C(Ki)) : w.children.forEach((K) => {
8508
8508
  K instanceof Qg ? k.push(K) : !K.ignoreIntersect && !K.isCustomMark && G.push(K);
8509
8509
  });
8510
8510
  const R = A.intersectObjects(G, !0);
8511
8511
  if (C(WA)) {
8512
- const K = C(HQ).position;
8512
+ const K = C(fQ).position;
8513
8513
  for (let M = 0; M < R.length; M++)
8514
8514
  c.push({ point: R[M].point, d: K.distanceTo(R[M].point), p: 1 });
8515
8515
  } else
@@ -8549,7 +8549,7 @@ function se(B) {
8549
8549
  for (let K = 0, M = c[0].d, l = Math.min(c.length, 20); K < l; K++)
8550
8550
  c[K].d - M < 0.01 && y.push(c[K]);
8551
8551
  return y.sort((K, M) => K.p - M.p), [y[0].point];
8552
- }), g(Ci, (Q, E, i) => {
8552
+ }), g(Bi, (Q, E, i) => {
8553
8553
  const { width: D, height: o, left: a, top: s } = C(jI), t = new $A();
8554
8554
  t.x = (Q - a) / D * 2 - 1, t.y = (s - E) / o * 2 + 1;
8555
8555
  const S = C(vA);
@@ -8559,7 +8559,7 @@ function se(B) {
8559
8559
  function rG(B) {
8560
8560
  const A = (s, t, S) => B.on(s, t, S), I = (s, ...t) => B.fire(s, ...t), g = I(cA);
8561
8561
  A(nB, () => I(vA).fov), A(MI, (s = !1) => s ? g.object.position.clone() : g.object.position), A(sg, (s = !1) => s ? g.target.clone() : g.target), A(NC, (s = !1) => s ? I(vA).up.clone() : I(vA).up), A(Lt, (s) => {
8562
- const S = g.object.projectionMatrix.clone().multiply(g.object.matrixWorldInverse).elements, h = new mi();
8562
+ const S = g.object.projectionMatrix.clone().multiply(g.object.matrixWorldInverse).elements, h = new Oi();
8563
8563
  return h.set(new J(S[3] + S[2], S[7] + S[6], S[11] + S[10]), S[15] + S[14]).normalize(), h.distanceToPoint(s) > 0;
8564
8564
  });
8565
8565
  let C = !1;
@@ -8571,11 +8571,11 @@ function rG(B) {
8571
8571
  });
8572
8572
  let Q;
8573
8573
  const E = [];
8574
- A($E, (s, t = !1, S) => {
8574
+ A(Ai, (s, t = !1, S) => {
8575
8575
  if (C = !1, g.panSpeed = g.target.distanceTo(g.object.position) > g.minDistance ? 1 : 50, I(Ct, s), !t) {
8576
8576
  g.target.copy(s);
8577
8577
  const R = new J().subVectors(s, g.object.position);
8578
- R.length() < 1 && g.object.position.copy(s).sub(R.setLength(1)), R.length() > 50 && g.object.position.copy(s).sub(R.setLength(50)), I(hQ), I(Bi);
8578
+ R.length() < 1 && g.object.position.copy(s).sub(R.setLength(1)), R.length() > 50 && g.object.position.copy(s).sub(R.setLength(50)), I(hQ), I(Qi);
8579
8579
  return;
8580
8580
  }
8581
8581
  for (; E.length; ) E.pop().stop = !0;
@@ -8585,7 +8585,7 @@ function rG(B) {
8585
8585
  I(
8586
8586
  bg,
8587
8587
  () => {
8588
- h.alpha = (Date.now() - h.time) / 600, I(cA).target.copy(c.clone().lerp(s, h.alpha)), !S && I(cA).object.position.copy(w.clone().lerp(k, h.alpha)), I(hQ), h.alpha >= 0.9 && (g.enablePan = Q.enablePan, g.enableRotate = Q.enableRotate), h.alpha >= 1 && (h.stop = !0, I(Bi));
8588
+ h.alpha = (Date.now() - h.time) / 600, I(cA).target.copy(c.clone().lerp(s, h.alpha)), !S && I(cA).object.position.copy(w.clone().lerp(k, h.alpha)), I(hQ), h.alpha >= 0.9 && (g.enablePan = Q.enablePan, g.enableRotate = Q.enableRotate), h.alpha >= 1 && (h.stop = !0, I(Qi));
8589
8589
  },
8590
8590
  () => !h.stop
8591
8591
  );
@@ -8595,7 +8595,7 @@ function rG(B) {
8595
8595
  }), A(Oa, () => I(cA).update()), A(ba, () => I(cA).updateRotateAxis());
8596
8596
  const i = 0.01;
8597
8597
  let D = new J(), o = new J(), a = 0;
8598
- A(zi, () => {
8598
+ A(_i, () => {
8599
8599
  const s = I(cA).object, t = s.fov, S = s.position.clone(), h = s.getWorldDirection(new J());
8600
8600
  return Math.abs(a - t) < i && Math.abs(S.x - D.x) < i && Math.abs(S.y - D.y) < i && Math.abs(S.z - D.z) < i && Math.abs(h.x - o.x) < i && Math.abs(h.y - o.y) < i && Math.abs(h.z - o.z) < i ? !1 : (a = t, D = S, o = h, !0);
8601
8601
  });
@@ -8604,15 +8604,15 @@ function JG(B) {
8604
8604
  const A = (E, i, D) => B.on(E, i, D), I = (E, ...i) => B.fire(E, ...i);
8605
8605
  let g = Q();
8606
8606
  const C = [];
8607
- A(tE, () => {
8607
+ A(eE, () => {
8608
8608
  const { height: E } = I(jI), i = I(MI).distanceTo(g.position) * 3.2 / E;
8609
8609
  g.scale.set(i, i, i);
8610
8610
  }), A(OB, (E) => {
8611
- I(tE), g.visible = E > 0.1, g.element.style.opacity = E + "", I(CI);
8611
+ I(eE), g.visible = E > 0.1, g.element.style.opacity = E + "", I(CI);
8612
8612
  }), A(Ct, (E) => {
8613
8613
  for (g.position.copy(E); C.length; ) C.pop().stop = !0;
8614
8614
  I(OB, 1), I(CI);
8615
- }), A(Bi, () => {
8615
+ }), A(Qi, () => {
8616
8616
  for (; C.length; ) C.pop().stop = !0;
8617
8617
  let E = { opacity: 1, time: Date.now(), stop: !1 };
8618
8618
  C.push(E), I(
@@ -8627,7 +8627,7 @@ function JG(B) {
8627
8627
  const E = document.createElement("div");
8628
8628
  E.innerHTML = '<svg height="16" width="16" style="fill:white;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M108.8 469.333333C128 279.466667 279.466667 128 469.333333 108.8V64c0-23.466667 19.2-42.666667 42.666667-42.666667s42.666667 19.2 42.666667 42.666667v44.8c189.866667 19.2 341.333333 170.666667 360.533333 360.533333H960c23.466667 0 42.666667 19.2 42.666667 42.666667s-19.2 42.666667-42.666667 42.666667h-44.8c-19.2 189.866667-170.666667 341.333333-360.533333 360.533333V960c0 23.466667-19.2 42.666667-42.666667 42.666667s-42.666667-19.2-42.666667-42.666667v-44.8C279.466667 896 128 744.533333 108.8 554.666667H64c-23.466667 0-42.666667-19.2-42.666667-42.666667s19.2-42.666667 42.666667-42.666667h44.8zM469.333333 194.133333C326.4 213.333333 215.466667 326.4 196.266667 469.333333H234.666667c23.466667 0 42.666667 19.2 42.666666 42.666667s-19.2 42.666667-42.666666 42.666667H196.266667c19.2 142.933333 132.266667 256 275.2 273.066666V789.333333c0-23.466667 19.2-42.666667 42.666666-42.666666s42.666667 19.2 42.666667 42.666666v38.4C697.6 810.666667 810.666667 697.6 829.866667 554.666667H789.333333c-23.466667 0-42.666667-19.2-42.666666-42.666667s19.2-42.666667 42.666666-42.666667h40.533334C810.666667 326.4 697.6 213.333333 554.666667 194.133333V234.666667c0 23.466667-19.2 42.666667-42.666667 42.666666s-42.666667-19.2-42.666667-42.666666V194.133333z"></path></svg>', E.classList.add("css3d-focus-marker"), E.style.position = "absolute";
8629
8629
  const i = new nI(E);
8630
- return i.element.style.pointerEvents = "none", i.element.style.opacity = "1", i.visible = !1, I(wA).add(i), i.onBeforeRender = () => I(tE), i;
8630
+ return i.element.style.pointerEvents = "none", i.element.style.opacity = "1", i.visible = !1, I(wA).add(i), i.onBeforeRender = () => I(eE), i;
8631
8631
  }
8632
8632
  }
8633
8633
  function ae(B) {
@@ -8638,7 +8638,7 @@ function ae(B) {
8638
8638
  const E = document.createElement("div");
8639
8639
  E.classList.add("mark-warp"), document.body.appendChild(E);
8640
8640
  const i = new dS();
8641
- i.setSize(innerWidth, innerHeight), i.domElement.style.position = "absolute", i.domElement.style.top = "0px", i.domElement.style.pointerEvents = "none", E.appendChild(i.domElement), A(ZS, () => E), A(go, () => i), A(Co, () => Q), A(BC, () => [i, Q].forEach((o) => o.render(I(wA), I(vA))), !0), A(cg, () => document.body.removeChild(E), !0), A(dt, (o = !0) => {
8641
+ i.setSize(innerWidth, innerHeight), i.domElement.style.position = "absolute", i.domElement.style.top = "0px", i.domElement.style.pointerEvents = "none", E.appendChild(i.domElement), A(ZS, () => E), A(Co, () => i), A(Bo, () => Q), A(BC, () => [i, Q].forEach((o) => o.render(I(wA), I(vA))), !0), A(cg, () => document.body.removeChild(E), !0), A(dt, (o = !0) => {
8642
8642
  const a = [];
8643
8643
  return g.forEach((s) => {
8644
8644
  const t = s.deref();
@@ -8670,7 +8670,7 @@ function ae(B) {
8670
8670
  });
8671
8671
  const a = I(YI).meta || {};
8672
8672
  if (o.length ? a.marks = o : delete a.marks, a.cameraInfo = I(ma), I(WA)) {
8673
- const s = I(HQ);
8673
+ const s = I(fQ);
8674
8674
  s && (a.player = a.player || {}, a.player.position = s.position.toArray());
8675
8675
  }
8676
8676
  return await I(ng, a);
@@ -8696,8 +8696,8 @@ function ae(B) {
8696
8696
  const o = I(YI).meta || {};
8697
8697
  return o.watermark = I(Qt) || "", await I(ng, o);
8698
8698
  }), A(gQ, (o) => {
8699
- o.meterScale && (I(W).meterScale = o.meterScale, I(ZA, { scale: `1 : ${I(W).meterScale} m` })), I(cA).updateByOptions({ ...o, ...o.cameraInfo || {} }), I(Ki, o), I(LQ, o.flyPositions || []), I(dQ, o.flyTargets || []);
8700
- }), A(Ki, (o) => {
8699
+ o.meterScale && (I(W).meterScale = o.meterScale, I(ZA, { scale: `1 : ${I(W).meterScale} m` })), I(cA).updateByOptions({ ...o, ...o.cameraInfo || {} }), I(ni, o), I(dQ, o.flyPositions || []), I(HQ, o.flyTargets || []);
8700
+ }), A(ni, (o) => {
8701
8701
  o.meterScale && (I(W).meterScale = o.meterScale, I(ZA, { scale: `1 : ${I(W).meterScale} m` })), (o.marks || []).forEach((s) => {
8702
8702
  if (s.type === "MarkSinglePoint") {
8703
8703
  const t = new ie(B, s);
@@ -8706,13 +8706,13 @@ function ae(B) {
8706
8706
  const t = new De(B, s);
8707
8707
  t.visible = !1, I(wA).add(t);
8708
8708
  } else if (s.type === "MarkDistanceLine") {
8709
- const t = new Ji(B);
8709
+ const t = new li(B);
8710
8710
  t.draw(s), t.visible = !1, I(wA).add(t);
8711
8711
  } else if (s.type === "MarkMultiLines") {
8712
- const t = new li(B);
8712
+ const t = new Ni(B);
8713
8713
  t.draw(s, !0), t.visible = !1, I(wA).add(t);
8714
8714
  } else if (s.type === "MarkMultiPlans") {
8715
- const t = new Ni(B);
8715
+ const t = new Fi(B);
8716
8716
  t.draw(s, !0), t.visible = !1, I(wA).add(t);
8717
8717
  } else if (s.type === "MarkCirclePlan") {
8718
8718
  const t = new oe(B);
@@ -8721,7 +8721,7 @@ function ae(B) {
8721
8721
  });
8722
8722
  }), A(Yg, () => {
8723
8723
  const o = I(W);
8724
- o.markMode = !1, I(Ao), I(CI);
8724
+ o.markMode = !1, I(Io), I(CI);
8725
8725
  }), A(Et, (o, a = !0) => {
8726
8726
  const s = o?.meterScale;
8727
8727
  if (s) {
@@ -8732,15 +8732,15 @@ function ae(B) {
8732
8732
  a && (I(W).meterScale = o.meterScale), I(ZA, { scale: `1 : ${s} m` });
8733
8733
  for (const t of g.values()) {
8734
8734
  const S = t.deref();
8735
- S && (S instanceof Ji || S instanceof li || S instanceof Ni) && S.updateByMeterScale(s);
8735
+ S && (S instanceof li || S instanceof Ni || S instanceof Fi) && S.updateByMeterScale(s);
8736
8736
  }
8737
8737
  }
8738
- }), A(zE, (o) => {
8738
+ }), A(_E, (o) => {
8739
8739
  const a = new J().fromArray(o.slice(0, 3)), s = new J().fromArray(o.slice(-6, -3)), t = new J().fromArray(o.slice(-3)), S = a.distanceTo(t) < 1e-4, h = s.distanceTo(t) < 1e-4, c = new J(), w = S || h ? o.length / 3 - 1 : o.length / 3;
8740
8740
  for (let G = 0; G < w; G++)
8741
8741
  c.add(new J(o[G * 3], o[G * 3 + 1], o[G * 3 + 2]));
8742
8742
  return c.divideScalar(w), c;
8743
- }), A(_E, (o) => {
8743
+ }), A($E, (o) => {
8744
8744
  const a = [];
8745
8745
  for (let h = 0, c = o.length / 3; h < c; h++)
8746
8746
  a.push(new J(o[h * 3], o[h * 3 + 1], o[h * 3 + 2]));
@@ -8748,14 +8748,14 @@ function ae(B) {
8748
8748
  if ((s || t) && a.pop(), a.length < 3) return 0;
8749
8749
  let S = 0;
8750
8750
  for (let h = 0, c = a.length - 2; h < c; h++)
8751
- S += I(oE, a[0], a[h + 1], a[h + 2], I(W).meterScale);
8751
+ S += I(DE, a[0], a[h + 1], a[h + 2], I(W).meterScale);
8752
8752
  return S;
8753
8753
  }), A(Ta, (o, a) => {
8754
8754
  let s = 0;
8755
8755
  for (let t = 0, S = o.length - 2; t < S; t++)
8756
- s += I(oE, o[0], o[t + 1], o[t + 2], a);
8756
+ s += I(DE, o[0], o[t + 1], o[t + 2], a);
8757
8757
  return s;
8758
- }), A(oE, (o, a, s, t) => {
8758
+ }), A(DE, (o, a, s, t) => {
8759
8759
  const S = o.distanceTo(a) * t, h = a.distanceTo(s) * t, c = s.distanceTo(o) * t, w = (S + h + c) / 2;
8760
8760
  return Math.sqrt(w * (w - S) * (w - h) * (w - c));
8761
8761
  });
@@ -8768,10 +8768,10 @@ const sQ = (B, A) => {
8768
8768
  return FG(Math.atan2(g, I));
8769
8769
  }, NG = (B, A, I) => {
8770
8770
  const g = { x: 0, y: 0 };
8771
- return I = Fi(I), g.x = B.x - A * Math.cos(I), g.y = B.y - A * Math.sin(I), g;
8772
- }, Fi = (B) => B * (Math.PI / 180), FG = (B) => B * (180 / Math.PI), RG = (B) => isNaN(B.buttons) ? B.pressure !== 0 : B.buttons !== 0, RE = /* @__PURE__ */ new Map(), Ks = (B) => {
8773
- RE.has(B) && clearTimeout(RE.get(B)), RE.set(B, setTimeout(B, 100));
8774
- }, MQ = (B, A, I) => {
8771
+ return I = Ri(I), g.x = B.x - A * Math.cos(I), g.y = B.y - A * Math.sin(I), g;
8772
+ }, Ri = (B) => B * (Math.PI / 180), FG = (B) => B * (180 / Math.PI), RG = (B) => isNaN(B.buttons) ? B.pressure !== 0 : B.buttons !== 0, YE = /* @__PURE__ */ new Map(), Ks = (B) => {
8773
+ YE.has(B) && clearTimeout(YE.get(B)), YE.set(B, setTimeout(B, 100));
8774
+ }, UQ = (B, A, I) => {
8775
8775
  const g = A.split(/[ ,]+/g);
8776
8776
  let C;
8777
8777
  for (let Q = 0; Q < g.length; Q += 1)
@@ -8812,7 +8812,7 @@ const sQ = (B, A) => {
8812
8812
  return A[B] = "", ["webkit", "Moz", "o"].forEach(function(g) {
8813
8813
  A[g + B.charAt(0).toUpperCase() + B.slice(1)] = "";
8814
8814
  }), A;
8815
- }, YE = (B, A) => {
8815
+ }, qE = (B, A) => {
8816
8816
  for (let I in A)
8817
8817
  A.hasOwnProperty(I) && (B[I] = A[I]);
8818
8818
  return B;
@@ -8821,7 +8821,7 @@ const sQ = (B, A) => {
8821
8821
  for (let g in B)
8822
8822
  B.hasOwnProperty(g) && A.hasOwnProperty(g) ? I[g] = A[g] : B.hasOwnProperty(g) && (I[g] = B[g]);
8823
8823
  return I;
8824
- }, Ri = (B, A) => {
8824
+ }, Yi = (B, A) => {
8825
8825
  if (B.length)
8826
8826
  for (let I = 0, g = B.length; I < g; I += 1)
8827
8827
  A(B[I]);
@@ -8888,7 +8888,7 @@ qg.prototype.bindEvt = function(B, A) {
8888
8888
  var I = this;
8889
8889
  return I._domHandlers_ = I._domHandlers_ || {}, I._domHandlers_[A] = function() {
8890
8890
  typeof I["on" + A] == "function" ? I["on" + A].apply(I, arguments) : console.warn('[WARNING] : Missing "on' + A + '" handler.');
8891
- }, MQ(B, KC[A], I._domHandlers_[A]), kB[A] && MQ(B, kB[A], I._domHandlers_[A]), I;
8891
+ }, UQ(B, KC[A], I._domHandlers_[A]), kB[A] && UQ(B, kB[A], I._domHandlers_[A]), I;
8892
8892
  };
8893
8893
  qg.prototype.unbindEvt = function(B, A) {
8894
8894
  var I = this;
@@ -8965,7 +8965,7 @@ iI.prototype.stylize = function() {
8965
8965
  background: this.options.color,
8966
8966
  opacity: ".5",
8967
8967
  transform: "translate(0px, 0px)"
8968
- }, YE(g.el, I), this.options.shape === "circle" && YE(g.back, A), YE(g.front, A), this.applyStyles(g), this;
8968
+ }, qE(g.el, I), this.options.shape === "circle" && qE(g.back, A), qE(g.front, A), this.applyStyles(g), this;
8969
8969
  };
8970
8970
  iI.prototype.applyStyles = function(B) {
8971
8971
  for (var A in this.ui)
@@ -9183,7 +9183,7 @@ _A.prototype.onstart = function(B) {
9183
9183
  }
9184
9184
  }), A.actives.length < I.maxNumberOfNipples && A.processOnStart(Q));
9185
9185
  };
9186
- return Ri(B, C), A.manager.bindDocument(), !1;
9186
+ return Yi(B, C), A.manager.bindDocument(), !1;
9187
9187
  };
9188
9188
  _A.prototype.processOnStart = function(B) {
9189
9189
  var A = this, I = A.options, g, C = A.manager.getIdentifier(B), Q = B.force || B.pressure || B.webkitForce || 0, E = {
@@ -9234,7 +9234,7 @@ _A.prototype.processOnMove = function(B) {
9234
9234
  y: B.pageY
9235
9235
  };
9236
9236
  I.lockX && (D.y = C.position.y), I.lockY && (D.x = C.position.x);
9237
- var o = sQ(D, C.position), a = lG(D, C.position), s = Fi(a), t = o / i, S = {
9237
+ var o = sQ(D, C.position), a = lG(D, C.position), s = Ri(a), t = o / i, S = {
9238
9238
  distance: o,
9239
9239
  position: D
9240
9240
  }, h, c;
@@ -9270,7 +9270,7 @@ _A.prototype.processOnMove = function(B) {
9270
9270
  lockY: I.lockY
9271
9271
  };
9272
9272
  k = C.computeDirection(k), k.angle = {
9273
- radian: Fi(180 - a),
9273
+ radian: Ri(180 - a),
9274
9274
  degree: 180 - a
9275
9275
  }, C.trigger("move", k), A.trigger("move " + C.id + ":move", k);
9276
9276
  };
@@ -9307,13 +9307,13 @@ function aI(B) {
9307
9307
  });
9308
9308
  });
9309
9309
  };
9310
- MQ(window, "resize", function() {
9310
+ UQ(window, "resize", function() {
9311
9311
  Ks(I);
9312
9312
  });
9313
9313
  var g = function() {
9314
9314
  A.scroll = Ms();
9315
9315
  };
9316
- return MQ(window, "scroll", function() {
9316
+ return UQ(window, "scroll", function() {
9317
9317
  Ks(g);
9318
9318
  }), A.collections;
9319
9319
  }
@@ -9380,9 +9380,9 @@ aI.prototype.onAny = function(B, A) {
9380
9380
  var Q = function(i, D, o) {
9381
9381
  o.ids.indexOf(D) >= 0 && (o[C](i), i._found_ = !0);
9382
9382
  }, E = function(i) {
9383
- g = I.getIdentifier(i), Ri(I.collections, Q.bind(null, i, g)), i._found_ || I.removeIdentifier(g);
9383
+ g = I.getIdentifier(i), Yi(I.collections, Q.bind(null, i, g)), i._found_ || I.removeIdentifier(g);
9384
9384
  };
9385
- return Ri(A, E), !1;
9385
+ return Yi(A, E), !1;
9386
9386
  };
9387
9387
  aI.prototype.destroy = function() {
9388
9388
  var B = this;
@@ -9405,7 +9405,7 @@ const rs = new aI(), fG = {
9405
9405
  function we(B) {
9406
9406
  const A = (K, ...M) => B.fire(K, ...M), I = (K, M, l) => B.on(K, M, l), g = [], C = [];
9407
9407
  let Q = !1, E = !1, i = 125 * 1e3;
9408
- I(Qi, () => Q = !1), I(yD, () => Q = !0), I(cD, () => g), I(PS, () => {
9408
+ I(Ei, () => Q = !1), I(yD, () => Q = !0), I(cD, () => g), I(PS, () => {
9409
9409
  const K = [];
9410
9410
  for (let M = 0, l = g.length; M < l; M++)
9411
9411
  K.push(...g[M].toArray());
@@ -9415,10 +9415,10 @@ function we(B) {
9415
9415
  for (let M = 0, l = C.length; M < l; M++)
9416
9416
  K.push(...C[M].toArray());
9417
9417
  return K;
9418
- }), I(LQ, (K) => {
9418
+ }), I(dQ, (K) => {
9419
9419
  for (let M = 0, l = K.length / 3 | 0; M < l; M++)
9420
9420
  g[M] = new J(K[M * 3 + 0], K[M * 3 + 1], K[M * 3 + 2]);
9421
- }), I(dQ, (K) => {
9421
+ }), I(HQ, (K) => {
9422
9422
  for (let M = 0, l = K.length / 3 | 0; M < l; M++)
9423
9423
  C[M] = new J(K[M * 3 + 0], K[M * 3 + 1], K[M * 3 + 2]);
9424
9424
  }), I(io, (K = 125 * 1e3) => {
@@ -9474,14 +9474,14 @@ function we(B) {
9474
9474
  c = new No(l), c.closed = !1, w = new No(N), w.closed = !1, A(yD), A(SI, !1);
9475
9475
  }), I(Kt, () => {
9476
9476
  s = s || Date.now();
9477
- }), I(kE, (K, M, l = !1, N = !1) => {
9477
+ }), I(GE, (K, M, l = !1, N = !1) => {
9478
9478
  if (!(!G && !l))
9479
9479
  return K = Math.max(-4, Math.min(4, K)), N ? h = K : (M && (S = M * i), s ? (t = Date.now(), s = 0, h = K = K < 0 ? -1 : 1) : h != K && (h += K > h ? 1 : -1), Q || (A(ag, !0), h = 1), h);
9480
9480
  }), I(
9481
9481
  kQ,
9482
9482
  () => {
9483
9483
  const K = A(cA);
9484
- if (s || (S += h * (Date.now() - t), t = Date.now(), (S < 0 || S > o) && A(Qi), !Q || !c || !w)) return;
9484
+ if (s || (S += h * (Date.now() - t), t = Date.now(), (S < 0 || S > o) && A(Ei), !Q || !c || !w)) return;
9485
9485
  D = S / o;
9486
9486
  const M = c.getPoint(D), l = w.getPoint(D);
9487
9487
  K.object.position.set(M.x, M.y, M.z), K.target.set(l.x, l.y, l.z);
@@ -9489,7 +9489,7 @@ function we(B) {
9489
9489
  !0
9490
9490
  );
9491
9491
  const R = "#reall3dviewer-joystick-container {position: absolute;bottom: 100px;left: calc(50vw - 50px);width: 100px;height: 100px;z-index: 999999;} #reall3dviewer-joystick-container.close {visibility: hidden;} @media (max-width: 768px) {#reall3dviewer-joystick-container {bottom: 50px;}}";
9492
- I(Si, (K = !0) => {
9492
+ I(hi, (K = !0) => {
9493
9493
  wk(R);
9494
9494
  const M = "reall3dviewer-joystick-container";
9495
9495
  let l = document.querySelector(`#${M}`);
@@ -9536,13 +9536,13 @@ function we(B) {
9536
9536
  }
9537
9537
  const p = O.distance * Math.sin(O.angle.radian), v = K.size / 2;
9538
9538
  let AA = p / v, gA = 1e-5;
9539
- AA > 0 ? gA = AA < 0.01 ? 1 : 1 + 4 * AA : AA < 0 && (AA > -0.2 ? gA = 1 + AA * 5 : gA = -1 + AA * 4), A(kE, gA), N = performance.now();
9539
+ AA > 0 ? gA = AA < 0.01 ? 1 : 1 + 4 * AA : AA < 0 && (AA > -0.2 ? gA = 1 + AA * 5 : gA = -1 + AA * 4), A(GE, gA), N = performance.now();
9540
9540
  }), k.on("end", (T, O) => {
9541
9541
  if (A(WA)) {
9542
9542
  l = !0;
9543
9543
  return;
9544
9544
  }
9545
- A(kE, 1, 0, !1, !0);
9545
+ A(GE, 1, 0, !1, !0);
9546
9546
  });
9547
9547
  }
9548
9548
  }
@@ -9550,7 +9550,7 @@ function TG(B) {
9550
9550
  const A = (D, o, a) => B.on(D, o, a), I = (D, ...o) => B.fire(D, ...o);
9551
9551
  let g = null, C = null, Q = null;
9552
9552
  const E = I(QC);
9553
- A(hi, () => E.autuUpdateVirtualGroundPosition !== !1 && Q?.position.copy(I(HQ).position)), A(ki, (D, o = !1) => {
9553
+ A(ki, () => E.autuUpdateVirtualGroundPosition !== !1 && Q?.position.copy(I(fQ).position)), A(Gi, (D, o = !1) => {
9554
9554
  if (C)
9555
9555
  if (o)
9556
9556
  C.visible = !1;
@@ -9559,7 +9559,7 @@ function TG(B) {
9559
9559
  const { height: a } = I(jI), s = I(MI).distanceTo(C.position) * 3.2 / a;
9560
9560
  C.scale.set(s, s, s), C.visible = !0, g.visible = !1;
9561
9561
  }
9562
- }), A(yi, () => {
9562
+ }), A(Ki, () => {
9563
9563
  const D = [];
9564
9564
  Q && D.push(Q);
9565
9565
  const o = I(Tt);
@@ -9568,7 +9568,7 @@ function TG(B) {
9568
9568
  function i() {
9569
9569
  const D = I(wA);
9570
9570
  if (E.addVirtualGround !== !1) {
9571
- const G = new bi(300, 300), k = new RQ({ color: 65280, side: qI });
9571
+ const G = new xi(300, 300), k = new YQ({ color: 65280, side: qI });
9572
9572
  Q = new z(G, k), Q.rotation.x = -Math.PI / 2, Q.receiveShadow = !0, Q.visible = !1, D.add(Q);
9573
9573
  }
9574
9574
  const o = new hw(2, 4, 16), a = new hI({ color: 16777215, transparent: !0, opacity: 0.5, side: qI });
@@ -9585,11 +9585,11 @@ function TG(B) {
9585
9585
  C.scale.set(k, k, k);
9586
9586
  }
9587
9587
  }, D.add(C);
9588
- const S = new $A(), h = new Oi(), c = new J();
9588
+ const S = new $A(), h = new bi(), c = new J();
9589
9589
  new Sa();
9590
9590
  function w(G) {
9591
9591
  if (I(W).markMode) return;
9592
- const k = I(nQ, G.clientX, G.clientY);
9592
+ const k = I(MQ, G.clientX, G.clientY);
9593
9593
  if (k) {
9594
9594
  if (g.position.copy(k.point), k.face) {
9595
9595
  c.copy(k.face.normal).transformDirection(k.object.matrixWorld).normalize();
@@ -9602,12 +9602,12 @@ function TG(B) {
9602
9602
  } else
9603
9603
  g.visible = !1;
9604
9604
  }
9605
- A(nQ, (G, k) => {
9605
+ A(MQ, (G, k) => {
9606
9606
  S.x = G / window.innerWidth * 2 - 1, S.y = -(k / window.innerHeight) * 2 + 1;
9607
9607
  const R = I(vA);
9608
9608
  if (!R) return;
9609
9609
  h.setFromCamera(S, R);
9610
- const y = I(yi), K = h.intersectObjects(y, !0);
9610
+ const y = I(Ki), K = h.intersectObjects(y, !0);
9611
9611
  return K.length ? K.reduce((l, N) => N.distance < l.distance ? N : l, K[0]) : null;
9612
9612
  }), window.addEventListener("mousemove", w, !1), A(cg, () => window.removeEventListener("mousemove", w), !0);
9613
9613
  }
@@ -9684,18 +9684,18 @@ function fg(B, A) {
9684
9684
  const I = A(4 * B.length, 4) >>> 0;
9685
9685
  return he().set(B, I / 4), JI = B.length, I;
9686
9686
  }
9687
- const mQ = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", LinZ: 2, 2: "LinZ", AngX: 3, 3: "AngX", AngY: 4, 4: "AngY", AngZ: 5, 5: "AngZ" }), XI = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Spherical: 5, 5: "Spherical", Generic: 6, 6: "Generic" }), DI = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolyhedron: 9, 9: "ConvexPolyhedron", Cylinder: 10, 10: "Cylinder", Cone: 11, 11: "Cone", RoundCuboid: 12, 12: "RoundCuboid", RoundTriangle: 13, 13: "RoundTriangle", RoundCylinder: 14, 14: "RoundCylinder", RoundCone: 15, 15: "RoundCone", RoundConvexPolyhedron: 16, 16: "RoundConvexPolyhedron", HalfSpace: 17, 17: "HalfSpace", Voxels: 18, 18: "Voxels" }), qE = typeof FinalizationRegistry > "u" ? { register: () => {
9687
+ const OQ = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", LinZ: 2, 2: "LinZ", AngX: 3, 3: "AngX", AngY: 4, 4: "AngY", AngZ: 5, 5: "AngZ" }), XI = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Spherical: 5, 5: "Spherical", Generic: 6, 6: "Generic" }), DI = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolyhedron: 9, 9: "ConvexPolyhedron", Cylinder: 10, 10: "Cylinder", Cone: 11, 11: "Cone", RoundCuboid: 12, 12: "RoundCuboid", RoundTriangle: 13, 13: "RoundTriangle", RoundCylinder: 14, 14: "RoundCylinder", RoundCone: 15, 15: "RoundCone", RoundConvexPolyhedron: 16, 16: "RoundConvexPolyhedron", HalfSpace: 17, 17: "HalfSpace", Voxels: 18, 18: "Voxels" }), pE = typeof FinalizationRegistry > "u" ? { register: () => {
9688
9688
  }, unregister: () => {
9689
9689
  } } : new FinalizationRegistry(((B) => e.__wbg_rawbroadphase_free(B >>> 0, 1)));
9690
9690
  class lg {
9691
9691
  static __wrap(A) {
9692
9692
  A >>>= 0;
9693
9693
  const I = Object.create(lg.prototype);
9694
- return I.__wbg_ptr = A, qE.register(I, I.__wbg_ptr, I), I;
9694
+ return I.__wbg_ptr = A, pE.register(I, I.__wbg_ptr, I), I;
9695
9695
  }
9696
9696
  __destroy_into_raw() {
9697
9697
  const A = this.__wbg_ptr;
9698
- return this.__wbg_ptr = 0, qE.unregister(this), A;
9698
+ return this.__wbg_ptr = 0, pE.unregister(this), A;
9699
9699
  }
9700
9700
  free() {
9701
9701
  const A = this.__destroy_into_raw();
@@ -9703,7 +9703,7 @@ class lg {
9703
9703
  }
9704
9704
  constructor() {
9705
9705
  const A = e.rawbroadphase_new();
9706
- return this.__wbg_ptr = A >>> 0, qE.register(this, this.__wbg_ptr, this), this;
9706
+ return this.__wbg_ptr = A >>> 0, pE.register(this, this.__wbg_ptr, this), this;
9707
9707
  }
9708
9708
  castRay(A, I, g, C, Q, E, i, D, o, a, s, t) {
9709
9709
  try {
@@ -9718,7 +9718,7 @@ class lg {
9718
9718
  try {
9719
9719
  U(A, AI), U(I, HA), U(g, jA), U(C, F), U(Q, F);
9720
9720
  const S = e.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E, i, D, iA(o) ? 4294967297 : o >>> 0, !iA(a), iA(a) ? 0 : a, !iA(s), iA(s) ? 0 : s, uA(t));
9721
- return S === 0 ? void 0 : xQ.__wrap(S);
9721
+ return S === 0 ? void 0 : ZQ.__wrap(S);
9722
9722
  } finally {
9723
9723
  rA[qA++] = void 0;
9724
9724
  }
@@ -9744,7 +9744,7 @@ class lg {
9744
9744
  try {
9745
9745
  U(A, AI), U(I, HA), U(g, jA), U(C, F);
9746
9746
  const s = e.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, E, iA(i) ? 4294967297 : i >>> 0, !iA(D), iA(D) ? 0 : D, !iA(o), iA(o) ? 0 : o, uA(a));
9747
- return s === 0 ? void 0 : UQ.__wrap(s);
9747
+ return s === 0 ? void 0 : rQ.__wrap(s);
9748
9748
  } finally {
9749
9749
  rA[qA++] = void 0;
9750
9750
  }
@@ -9753,7 +9753,7 @@ class lg {
9753
9753
  try {
9754
9754
  U(A, AI), U(I, HA), U(g, jA), U(C, F);
9755
9755
  const a = e.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, iA(E) ? 4294967297 : E >>> 0, !iA(i), iA(i) ? 0 : i, !iA(D), iA(D) ? 0 : D, uA(o));
9756
- return a === 0 ? void 0 : UQ.__wrap(a);
9756
+ return a === 0 ? void 0 : rQ.__wrap(a);
9757
9757
  } finally {
9758
9758
  rA[qA++] = void 0;
9759
9759
  }
@@ -9769,7 +9769,7 @@ class lg {
9769
9769
  try {
9770
9770
  U(A, AI), U(I, HA), U(g, jA), U(C, F), U(Q, kA), U(E, F), U(i, EA);
9771
9771
  const w = e.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i.__wbg_ptr, D, o, a, s, iA(t) ? 4294967297 : t >>> 0, !iA(S), iA(S) ? 0 : S, !iA(h), iA(h) ? 0 : h, uA(c));
9772
- return w === 0 ? void 0 : OQ.__wrap(w);
9772
+ return w === 0 ? void 0 : bQ.__wrap(w);
9773
9773
  } finally {
9774
9774
  rA[qA++] = void 0;
9775
9775
  }
@@ -9792,7 +9792,7 @@ class lg {
9792
9792
  const Ns = typeof FinalizationRegistry > "u" ? { register: () => {
9793
9793
  }, unregister: () => {
9794
9794
  } } : new FinalizationRegistry(((B) => e.__wbg_rawccdsolver_free(B >>> 0, 1)));
9795
- class Yi {
9795
+ class qi {
9796
9796
  __destroy_into_raw() {
9797
9797
  const A = this.__wbg_ptr;
9798
9798
  return this.__wbg_ptr = 0, Ns.unregister(this), A;
@@ -9853,18 +9853,18 @@ class Ge {
9853
9853
  return F.__wrap(A);
9854
9854
  }
9855
9855
  }
9856
- const pE = typeof FinalizationRegistry > "u" ? { register: () => {
9856
+ const LE = typeof FinalizationRegistry > "u" ? { register: () => {
9857
9857
  }, unregister: () => {
9858
9858
  } } : new FinalizationRegistry(((B) => e.__wbg_rawcolliderset_free(B >>> 0, 1)));
9859
9859
  class jA {
9860
9860
  static __wrap(A) {
9861
9861
  A >>>= 0;
9862
9862
  const I = Object.create(jA.prototype);
9863
- return I.__wbg_ptr = A, pE.register(I, I.__wbg_ptr, I), I;
9863
+ return I.__wbg_ptr = A, LE.register(I, I.__wbg_ptr, I), I;
9864
9864
  }
9865
9865
  __destroy_into_raw() {
9866
9866
  const A = this.__wbg_ptr;
9867
- return this.__wbg_ptr = 0, pE.unregister(this), A;
9867
+ return this.__wbg_ptr = 0, LE.unregister(this), A;
9868
9868
  }
9869
9869
  free() {
9870
9870
  const A = this.__destroy_into_raw();
@@ -10076,12 +10076,12 @@ class jA {
10076
10076
  coCastShape(A, I, g, C, Q, E, i, D, o) {
10077
10077
  U(I, F), U(g, EA), U(C, F), U(Q, kA), U(E, F);
10078
10078
  const a = e.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i, D, o);
10079
- return a === 0 ? void 0 : jQ.__wrap(a);
10079
+ return a === 0 ? void 0 : WQ.__wrap(a);
10080
10080
  }
10081
10081
  coCastCollider(A, I, g, C, Q, E, i) {
10082
10082
  U(I, F), U(C, F);
10083
10083
  const D = e.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, Q, E, i);
10084
- return D === 0 ? void 0 : OQ.__wrap(D);
10084
+ return D === 0 ? void 0 : bQ.__wrap(D);
10085
10085
  }
10086
10086
  coIntersectsShape(A, I, g, C) {
10087
10087
  return U(I, EA), U(g, F), U(C, kA), e.rawcolliderset_coIntersectsShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr) !== 0;
@@ -10098,7 +10098,7 @@ class jA {
10098
10098
  coProjectPoint(A, I, g) {
10099
10099
  U(I, F);
10100
10100
  const C = e.rawcolliderset_coProjectPoint(this.__wbg_ptr, A, I.__wbg_ptr, g);
10101
- return bQ.__wrap(C);
10101
+ return xQ.__wrap(C);
10102
10102
  }
10103
10103
  coIntersectsRay(A, I, g, C) {
10104
10104
  return U(I, F), U(g, F), e.rawcolliderset_coIntersectsRay(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C) !== 0;
@@ -10109,7 +10109,7 @@ class jA {
10109
10109
  coCastRayAndGetNormal(A, I, g, C, Q) {
10110
10110
  U(I, F), U(g, F);
10111
10111
  const E = e.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, Q);
10112
- return E === 0 ? void 0 : ZQ.__wrap(E);
10112
+ return E === 0 ? void 0 : jQ.__wrap(E);
10113
10113
  }
10114
10114
  coSetSensor(A, I) {
10115
10115
  e.rawcolliderset_coSetSensor(this.__wbg_ptr, A, I);
@@ -10164,7 +10164,7 @@ class jA {
10164
10164
  }
10165
10165
  constructor() {
10166
10166
  const A = e.rawcolliderset_new();
10167
- return this.__wbg_ptr = A >>> 0, pE.register(this, this.__wbg_ptr, this), this;
10167
+ return this.__wbg_ptr = A >>> 0, LE.register(this, this.__wbg_ptr, this), this;
10168
10168
  }
10169
10169
  len() {
10170
10170
  return e.rawcolliderset_len(this.__wbg_ptr) >>> 0;
@@ -10199,10 +10199,10 @@ class jA {
10199
10199
  const Rs = typeof FinalizationRegistry > "u" ? { register: () => {
10200
10200
  }, unregister: () => {
10201
10201
  } } : new FinalizationRegistry(((B) => e.__wbg_rawcollidershapecasthit_free(B >>> 0, 1)));
10202
- class OQ {
10202
+ class bQ {
10203
10203
  static __wrap(A) {
10204
10204
  A >>>= 0;
10205
- const I = Object.create(OQ.prototype);
10205
+ const I = Object.create(bQ.prototype);
10206
10206
  return I.__wbg_ptr = A, Rs.register(I, I.__wbg_ptr, I), I;
10207
10207
  }
10208
10208
  __destroy_into_raw() {
@@ -10759,18 +10759,18 @@ class PI {
10759
10759
  return C === 0 ? void 0 : PI.__wrap(C);
10760
10760
  }
10761
10761
  }
10762
- const LE = typeof FinalizationRegistry > "u" ? { register: () => {
10762
+ const dE = typeof FinalizationRegistry > "u" ? { register: () => {
10763
10763
  }, unregister: () => {
10764
10764
  } } : new FinalizationRegistry(((B) => e.__wbg_rawimpulsejointset_free(B >>> 0, 1)));
10765
10765
  class Ng {
10766
10766
  static __wrap(A) {
10767
10767
  A >>>= 0;
10768
10768
  const I = Object.create(Ng.prototype);
10769
- return I.__wbg_ptr = A, LE.register(I, I.__wbg_ptr, I), I;
10769
+ return I.__wbg_ptr = A, dE.register(I, I.__wbg_ptr, I), I;
10770
10770
  }
10771
10771
  __destroy_into_raw() {
10772
10772
  const A = this.__wbg_ptr;
10773
- return this.__wbg_ptr = 0, LE.unregister(this), A;
10773
+ return this.__wbg_ptr = 0, dE.unregister(this), A;
10774
10774
  }
10775
10775
  free() {
10776
10776
  const A = this.__destroy_into_raw();
@@ -10839,7 +10839,7 @@ class Ng {
10839
10839
  }
10840
10840
  constructor() {
10841
10841
  const A = e.rawimpulsejointset_new();
10842
- return this.__wbg_ptr = A >>> 0, LE.register(this, this.__wbg_ptr, this), this;
10842
+ return this.__wbg_ptr = A >>> 0, dE.register(this, this.__wbg_ptr, this), this;
10843
10843
  }
10844
10844
  createJoint(A, I, g, C) {
10845
10845
  return U(A, PI), e.rawimpulsejointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, g, C);
@@ -10868,18 +10868,18 @@ class Ng {
10868
10868
  }
10869
10869
  }
10870
10870
  }
10871
- const dE = typeof FinalizationRegistry > "u" ? { register: () => {
10871
+ const HE = typeof FinalizationRegistry > "u" ? { register: () => {
10872
10872
  }, unregister: () => {
10873
10873
  } } : new FinalizationRegistry(((B) => e.__wbg_rawintegrationparameters_free(B >>> 0, 1)));
10874
10874
  class EC {
10875
10875
  static __wrap(A) {
10876
10876
  A >>>= 0;
10877
10877
  const I = Object.create(EC.prototype);
10878
- return I.__wbg_ptr = A, dE.register(I, I.__wbg_ptr, I), I;
10878
+ return I.__wbg_ptr = A, HE.register(I, I.__wbg_ptr, I), I;
10879
10879
  }
10880
10880
  __destroy_into_raw() {
10881
10881
  const A = this.__wbg_ptr;
10882
- return this.__wbg_ptr = 0, dE.unregister(this), A;
10882
+ return this.__wbg_ptr = 0, HE.unregister(this), A;
10883
10883
  }
10884
10884
  free() {
10885
10885
  const A = this.__destroy_into_raw();
@@ -10887,7 +10887,7 @@ class EC {
10887
10887
  }
10888
10888
  constructor() {
10889
10889
  const A = e.rawintegrationparameters_new();
10890
- return this.__wbg_ptr = A >>> 0, dE.register(this, this.__wbg_ptr, this), this;
10890
+ return this.__wbg_ptr = A >>> 0, HE.register(this, this.__wbg_ptr, this), this;
10891
10891
  }
10892
10892
  get dt() {
10893
10893
  return e.rawintegrationparameters_dt(this.__wbg_ptr);
@@ -10944,18 +10944,18 @@ class EC {
10944
10944
  e.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr, A);
10945
10945
  }
10946
10946
  }
10947
- const HE = typeof FinalizationRegistry > "u" ? { register: () => {
10947
+ const fE = typeof FinalizationRegistry > "u" ? { register: () => {
10948
10948
  }, unregister: () => {
10949
10949
  } } : new FinalizationRegistry(((B) => e.__wbg_rawislandmanager_free(B >>> 0, 1)));
10950
10950
  class Fg {
10951
10951
  static __wrap(A) {
10952
10952
  A >>>= 0;
10953
10953
  const I = Object.create(Fg.prototype);
10954
- return I.__wbg_ptr = A, HE.register(I, I.__wbg_ptr, I), I;
10954
+ return I.__wbg_ptr = A, fE.register(I, I.__wbg_ptr, I), I;
10955
10955
  }
10956
10956
  __destroy_into_raw() {
10957
10957
  const A = this.__wbg_ptr;
10958
- return this.__wbg_ptr = 0, HE.unregister(this), A;
10958
+ return this.__wbg_ptr = 0, fE.unregister(this), A;
10959
10959
  }
10960
10960
  free() {
10961
10961
  const A = this.__destroy_into_raw();
@@ -10963,7 +10963,7 @@ class Fg {
10963
10963
  }
10964
10964
  constructor() {
10965
10965
  const A = e.rawislandmanager_new();
10966
- return this.__wbg_ptr = A >>> 0, HE.register(this, this.__wbg_ptr, this), this;
10966
+ return this.__wbg_ptr = A >>> 0, fE.register(this, this.__wbg_ptr, this), this;
10967
10967
  }
10968
10968
  forEachActiveRigidBodyHandle(A) {
10969
10969
  try {
@@ -11081,18 +11081,18 @@ class xG {
11081
11081
  return U(I, Ge), e.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
11082
11082
  }
11083
11083
  }
11084
- const fE = typeof FinalizationRegistry > "u" ? { register: () => {
11084
+ const TE = typeof FinalizationRegistry > "u" ? { register: () => {
11085
11085
  }, unregister: () => {
11086
11086
  } } : new FinalizationRegistry(((B) => e.__wbg_rawmultibodyjointset_free(B >>> 0, 1)));
11087
11087
  class Rg {
11088
11088
  static __wrap(A) {
11089
11089
  A >>>= 0;
11090
11090
  const I = Object.create(Rg.prototype);
11091
- return I.__wbg_ptr = A, fE.register(I, I.__wbg_ptr, I), I;
11091
+ return I.__wbg_ptr = A, TE.register(I, I.__wbg_ptr, I), I;
11092
11092
  }
11093
11093
  __destroy_into_raw() {
11094
11094
  const A = this.__wbg_ptr;
11095
- return this.__wbg_ptr = 0, fE.unregister(this), A;
11095
+ return this.__wbg_ptr = 0, TE.unregister(this), A;
11096
11096
  }
11097
11097
  free() {
11098
11098
  const A = this.__destroy_into_raw();
@@ -11134,7 +11134,7 @@ class Rg {
11134
11134
  }
11135
11135
  constructor() {
11136
11136
  const A = e.rawmultibodyjointset_new();
11137
- return this.__wbg_ptr = A >>> 0, fE.register(this, this.__wbg_ptr, this), this;
11137
+ return this.__wbg_ptr = A >>> 0, TE.register(this, this.__wbg_ptr, this), this;
11138
11138
  }
11139
11139
  createJoint(A, I, g, C) {
11140
11140
  return U(A, PI), e.rawmultibodyjointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, g, C);
@@ -11160,18 +11160,18 @@ class Rg {
11160
11160
  }
11161
11161
  }
11162
11162
  }
11163
- const TE = typeof FinalizationRegistry > "u" ? { register: () => {
11163
+ const uE = typeof FinalizationRegistry > "u" ? { register: () => {
11164
11164
  }, unregister: () => {
11165
11165
  } } : new FinalizationRegistry(((B) => e.__wbg_rawnarrowphase_free(B >>> 0, 1)));
11166
11166
  class AI {
11167
11167
  static __wrap(A) {
11168
11168
  A >>>= 0;
11169
11169
  const I = Object.create(AI.prototype);
11170
- return I.__wbg_ptr = A, TE.register(I, I.__wbg_ptr, I), I;
11170
+ return I.__wbg_ptr = A, uE.register(I, I.__wbg_ptr, I), I;
11171
11171
  }
11172
11172
  __destroy_into_raw() {
11173
11173
  const A = this.__wbg_ptr;
11174
- return this.__wbg_ptr = 0, TE.unregister(this), A;
11174
+ return this.__wbg_ptr = 0, uE.unregister(this), A;
11175
11175
  }
11176
11176
  free() {
11177
11177
  const A = this.__destroy_into_raw();
@@ -11179,7 +11179,7 @@ class AI {
11179
11179
  }
11180
11180
  constructor() {
11181
11181
  const A = e.rawnarrowphase_new();
11182
- return this.__wbg_ptr = A >>> 0, TE.register(this, this.__wbg_ptr, this), this;
11182
+ return this.__wbg_ptr = A >>> 0, uE.register(this, this.__wbg_ptr, this), this;
11183
11183
  }
11184
11184
  contact_pairs_with(A, I) {
11185
11185
  e.rawnarrowphase_contact_pairs_with(this.__wbg_ptr, A, RA(I));
@@ -11266,10 +11266,10 @@ class ZG {
11266
11266
  return e.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
11267
11267
  }
11268
11268
  step(A, I, g, C, Q, E, i, D, o, a) {
11269
- U(A, F), U(I, EC), U(g, Fg), U(C, lg), U(Q, AI), U(E, HA), U(i, jA), U(D, Ng), U(o, Rg), U(a, Yi), e.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, a.__wbg_ptr);
11269
+ U(A, F), U(I, EC), U(g, Fg), U(C, lg), U(Q, AI), U(E, HA), U(i, jA), U(D, Ng), U(o, Rg), U(a, qi), e.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, a.__wbg_ptr);
11270
11270
  }
11271
11271
  stepWithEvents(A, I, g, C, Q, E, i, D, o, a, s, t, S, h) {
11272
- U(A, F), U(I, EC), U(g, Fg), U(C, lg), U(Q, AI), U(E, HA), U(i, jA), U(D, Ng), U(o, Rg), U(a, Yi), U(s, bG), e.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, a.__wbg_ptr, s.__wbg_ptr, RA(t), RA(S), RA(h));
11272
+ U(A, F), U(I, EC), U(g, Fg), U(C, lg), U(Q, AI), U(E, HA), U(i, jA), U(D, Ng), U(o, Rg), U(a, qi), U(s, bG), e.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, a.__wbg_ptr, s.__wbg_ptr, RA(t), RA(S), RA(h));
11273
11273
  }
11274
11274
  }
11275
11275
  const Os = typeof FinalizationRegistry > "u" ? { register: () => {
@@ -11323,10 +11323,10 @@ class jG {
11323
11323
  const bs = typeof FinalizationRegistry > "u" ? { register: () => {
11324
11324
  }, unregister: () => {
11325
11325
  } } : new FinalizationRegistry(((B) => e.__wbg_rawpointcolliderprojection_free(B >>> 0, 1)));
11326
- class UQ {
11326
+ class rQ {
11327
11327
  static __wrap(A) {
11328
11328
  A >>>= 0;
11329
- const I = Object.create(UQ.prototype);
11329
+ const I = Object.create(rQ.prototype);
11330
11330
  return I.__wbg_ptr = A, bs.register(I, I.__wbg_ptr, I), I;
11331
11331
  }
11332
11332
  __destroy_into_raw() {
@@ -11358,10 +11358,10 @@ class UQ {
11358
11358
  const xs = typeof FinalizationRegistry > "u" ? { register: () => {
11359
11359
  }, unregister: () => {
11360
11360
  } } : new FinalizationRegistry(((B) => e.__wbg_rawpointprojection_free(B >>> 0, 1)));
11361
- class bQ {
11361
+ class xQ {
11362
11362
  static __wrap(A) {
11363
11363
  A >>>= 0;
11364
- const I = Object.create(bQ.prototype);
11364
+ const I = Object.create(xQ.prototype);
11365
11365
  return I.__wbg_ptr = A, xs.register(I, I.__wbg_ptr, I), I;
11366
11366
  }
11367
11367
  __destroy_into_raw() {
@@ -11407,10 +11407,10 @@ class Go {
11407
11407
  const js = typeof FinalizationRegistry > "u" ? { register: () => {
11408
11408
  }, unregister: () => {
11409
11409
  } } : new FinalizationRegistry(((B) => e.__wbg_rawraycolliderintersection_free(B >>> 0, 1)));
11410
- class xQ {
11410
+ class ZQ {
11411
11411
  static __wrap(A) {
11412
11412
  A >>>= 0;
11413
- const I = Object.create(xQ.prototype);
11413
+ const I = Object.create(ZQ.prototype);
11414
11414
  return I.__wbg_ptr = A, js.register(I, I.__wbg_ptr, I), I;
11415
11415
  }
11416
11416
  __destroy_into_raw() {
@@ -11442,10 +11442,10 @@ class xQ {
11442
11442
  const Ws = typeof FinalizationRegistry > "u" ? { register: () => {
11443
11443
  }, unregister: () => {
11444
11444
  } } : new FinalizationRegistry(((B) => e.__wbg_rawrayintersection_free(B >>> 0, 1)));
11445
- class ZQ {
11445
+ class jQ {
11446
11446
  static __wrap(A) {
11447
11447
  A >>>= 0;
11448
- const I = Object.create(ZQ.prototype);
11448
+ const I = Object.create(jQ.prototype);
11449
11449
  return I.__wbg_ptr = A, Ws.register(I, I.__wbg_ptr, I), I;
11450
11450
  }
11451
11451
  __destroy_into_raw() {
@@ -11471,18 +11471,18 @@ class ZQ {
11471
11471
  return A === 4294967297 ? void 0 : A;
11472
11472
  }
11473
11473
  }
11474
- const uE = typeof FinalizationRegistry > "u" ? { register: () => {
11474
+ const mE = typeof FinalizationRegistry > "u" ? { register: () => {
11475
11475
  }, unregister: () => {
11476
11476
  } } : new FinalizationRegistry(((B) => e.__wbg_rawrigidbodyset_free(B >>> 0, 1)));
11477
11477
  class HA {
11478
11478
  static __wrap(A) {
11479
11479
  A >>>= 0;
11480
11480
  const I = Object.create(HA.prototype);
11481
- return I.__wbg_ptr = A, uE.register(I, I.__wbg_ptr, I), I;
11481
+ return I.__wbg_ptr = A, mE.register(I, I.__wbg_ptr, I), I;
11482
11482
  }
11483
11483
  __destroy_into_raw() {
11484
11484
  const A = this.__wbg_ptr;
11485
- return this.__wbg_ptr = 0, uE.unregister(this), A;
11485
+ return this.__wbg_ptr = 0, mE.unregister(this), A;
11486
11486
  }
11487
11487
  free() {
11488
11488
  const A = this.__destroy_into_raw();
@@ -11609,11 +11609,11 @@ class HA {
11609
11609
  }
11610
11610
  rbEffectiveWorldInvInertia(A) {
11611
11611
  const I = e.rawrigidbodyset_rbEffectiveWorldInvInertia(this.__wbg_ptr, A);
11612
- return rQ.__wrap(I);
11612
+ return JQ.__wrap(I);
11613
11613
  }
11614
11614
  rbEffectiveAngularInertia(A) {
11615
11615
  const I = e.rawrigidbodyset_rbEffectiveAngularInertia(this.__wbg_ptr, A);
11616
- return rQ.__wrap(I);
11616
+ return JQ.__wrap(I);
11617
11617
  }
11618
11618
  rbWakeUp(A) {
11619
11619
  e.rawrigidbodyset_rbWakeUp(this.__wbg_ptr, A);
@@ -11715,7 +11715,7 @@ class HA {
11715
11715
  }
11716
11716
  constructor() {
11717
11717
  const A = e.rawrigidbodyset_new();
11718
- return this.__wbg_ptr = A >>> 0, uE.register(this, this.__wbg_ptr, this), this;
11718
+ return this.__wbg_ptr = A >>> 0, mE.register(this, this.__wbg_ptr, this), this;
11719
11719
  }
11720
11720
  createRigidBody(A, I, g, C, Q, E, i, D, o, a, s, t, S, h, c, w, G, k, R, y, K, M, l, N, T, O) {
11721
11721
  return U(I, F), U(g, kA), U(i, F), U(D, F), U(o, F), U(a, F), U(s, kA), e.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, Q, E, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, a.__wbg_ptr, s.__wbg_ptr, t, S, h, c, w, G, k, R, y, K, M, l, N, T, O);
@@ -11740,18 +11740,18 @@ class HA {
11740
11740
  U(A, jA), e.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr, A.__wbg_ptr);
11741
11741
  }
11742
11742
  }
11743
- const mE = typeof FinalizationRegistry > "u" ? { register: () => {
11743
+ const OE = typeof FinalizationRegistry > "u" ? { register: () => {
11744
11744
  }, unregister: () => {
11745
11745
  } } : new FinalizationRegistry(((B) => e.__wbg_rawrotation_free(B >>> 0, 1)));
11746
11746
  class kA {
11747
11747
  static __wrap(A) {
11748
11748
  A >>>= 0;
11749
11749
  const I = Object.create(kA.prototype);
11750
- return I.__wbg_ptr = A, mE.register(I, I.__wbg_ptr, I), I;
11750
+ return I.__wbg_ptr = A, OE.register(I, I.__wbg_ptr, I), I;
11751
11751
  }
11752
11752
  __destroy_into_raw() {
11753
11753
  const A = this.__wbg_ptr;
11754
- return this.__wbg_ptr = 0, mE.unregister(this), A;
11754
+ return this.__wbg_ptr = 0, OE.unregister(this), A;
11755
11755
  }
11756
11756
  free() {
11757
11757
  const A = this.__destroy_into_raw();
@@ -11759,7 +11759,7 @@ class kA {
11759
11759
  }
11760
11760
  constructor(A, I, g, C) {
11761
11761
  const Q = e.rawrotation_new(A, I, g, C);
11762
- return this.__wbg_ptr = Q >>> 0, mE.register(this, this.__wbg_ptr, this), this;
11762
+ return this.__wbg_ptr = Q >>> 0, OE.register(this, this.__wbg_ptr, this), this;
11763
11763
  }
11764
11764
  static identity() {
11765
11765
  const A = e.rawrotation_identity();
@@ -11781,10 +11781,10 @@ class kA {
11781
11781
  const Ps = typeof FinalizationRegistry > "u" ? { register: () => {
11782
11782
  }, unregister: () => {
11783
11783
  } } : new FinalizationRegistry(((B) => e.__wbg_rawsdpmatrix3_free(B >>> 0, 1)));
11784
- class rQ {
11784
+ class JQ {
11785
11785
  static __wrap(A) {
11786
11786
  A >>>= 0;
11787
- const I = Object.create(rQ.prototype);
11787
+ const I = Object.create(JQ.prototype);
11788
11788
  return I.__wbg_ptr = A, Ps.register(I, I.__wbg_ptr, I), I;
11789
11789
  }
11790
11790
  __destroy_into_raw() {
@@ -11935,7 +11935,7 @@ class EA {
11935
11935
  castShape(A, I, g, C, Q, E, i, D, o, a) {
11936
11936
  U(A, F), U(I, kA), U(g, F), U(C, EA), U(Q, F), U(E, kA), U(i, F);
11937
11937
  const s = e.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, i.__wbg_ptr, D, o, a);
11938
- return s === 0 ? void 0 : jQ.__wrap(s);
11938
+ return s === 0 ? void 0 : WQ.__wrap(s);
11939
11939
  }
11940
11940
  intersectsShape(A, I, g, C, Q) {
11941
11941
  return U(A, F), U(I, kA), U(g, EA), U(C, F), U(Q, kA), e.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr) !== 0;
@@ -11951,7 +11951,7 @@ class EA {
11951
11951
  projectPoint(A, I, g, C) {
11952
11952
  U(A, F), U(I, kA), U(g, F);
11953
11953
  const Q = e.rawshape_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C);
11954
- return bQ.__wrap(Q);
11954
+ return xQ.__wrap(Q);
11955
11955
  }
11956
11956
  intersectsRay(A, I, g, C, Q) {
11957
11957
  return U(A, F), U(I, kA), U(g, F), U(C, F), e.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q) !== 0;
@@ -11962,16 +11962,16 @@ class EA {
11962
11962
  castRayAndGetNormal(A, I, g, C, Q, E) {
11963
11963
  U(A, F), U(I, kA), U(g, F), U(C, F);
11964
11964
  const i = e.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, E);
11965
- return i === 0 ? void 0 : ZQ.__wrap(i);
11965
+ return i === 0 ? void 0 : jQ.__wrap(i);
11966
11966
  }
11967
11967
  }
11968
11968
  const vs = typeof FinalizationRegistry > "u" ? { register: () => {
11969
11969
  }, unregister: () => {
11970
11970
  } } : new FinalizationRegistry(((B) => e.__wbg_rawshapecasthit_free(B >>> 0, 1)));
11971
- class jQ {
11971
+ class WQ {
11972
11972
  static __wrap(A) {
11973
11973
  A >>>= 0;
11974
- const I = Object.create(jQ.prototype);
11974
+ const I = Object.create(WQ.prototype);
11975
11975
  return I.__wbg_ptr = A, vs.register(I, I.__wbg_ptr, I), I;
11976
11976
  }
11977
11977
  __destroy_into_raw() {
@@ -12039,18 +12039,18 @@ class cB {
12039
12039
  return F.__wrap(A);
12040
12040
  }
12041
12041
  }
12042
- const OE = typeof FinalizationRegistry > "u" ? { register: () => {
12042
+ const bE = typeof FinalizationRegistry > "u" ? { register: () => {
12043
12043
  }, unregister: () => {
12044
12044
  } } : new FinalizationRegistry(((B) => e.__wbg_rawvector_free(B >>> 0, 1)));
12045
12045
  class F {
12046
12046
  static __wrap(A) {
12047
12047
  A >>>= 0;
12048
12048
  const I = Object.create(F.prototype);
12049
- return I.__wbg_ptr = A, OE.register(I, I.__wbg_ptr, I), I;
12049
+ return I.__wbg_ptr = A, bE.register(I, I.__wbg_ptr, I), I;
12050
12050
  }
12051
12051
  __destroy_into_raw() {
12052
12052
  const A = this.__wbg_ptr;
12053
- return this.__wbg_ptr = 0, OE.unregister(this), A;
12053
+ return this.__wbg_ptr = 0, bE.unregister(this), A;
12054
12054
  }
12055
12055
  free() {
12056
12056
  const A = this.__destroy_into_raw();
@@ -12062,7 +12062,7 @@ class F {
12062
12062
  }
12063
12063
  constructor(A, I, g) {
12064
12064
  const C = e.rawvector_new(A, I, g);
12065
- return this.__wbg_ptr = C >>> 0, OE.register(this, this.__wbg_ptr, this), this;
12065
+ return this.__wbg_ptr = C >>> 0, bE.register(this, this.__wbg_ptr, this), this;
12066
12066
  }
12067
12067
  get x() {
12068
12068
  return e.rawintegrationparameters_dt(this.__wbg_ptr);
@@ -12153,7 +12153,7 @@ async function ce(B) {
12153
12153
  }, C.wbg.__wbg_rawcontactforceevent_new = function(Q) {
12154
12154
  return RA(wo.__wrap(Q));
12155
12155
  }, C.wbg.__wbg_rawraycolliderintersection_new = function(Q) {
12156
- return RA(xQ.__wrap(Q));
12156
+ return RA(ZQ.__wrap(Q));
12157
12157
  }, C.wbg.__wbg_set_10bad9bee0e9c58b = function(Q, E, i) {
12158
12158
  MA(Q).set(MA(E), i >>> 0);
12159
12159
  }, C.wbg.__wbg_set_65595bdd868b3009 = function(Q, E, i) {
@@ -12213,14 +12213,14 @@ async function ce(B) {
12213
12213
  return e = C.exports, ce.__wbindgen_wasm_module = Q, Wg = null, _C = null, zC = null, $C = null, vC = null, e;
12214
12214
  })(I, g);
12215
12215
  }
12216
- class qi {
12216
+ class pi {
12217
12217
  constructor(A, I, g) {
12218
12218
  this.x = A, this.y = I, this.z = g;
12219
12219
  }
12220
12220
  }
12221
12221
  class q {
12222
12222
  static new(A, I, g) {
12223
- return new qi(A, I, g);
12223
+ return new pi(A, I, g);
12224
12224
  }
12225
12225
  static intoRaw(A) {
12226
12226
  return new F(A.x, A.y, A.z);
@@ -12296,7 +12296,7 @@ class $s {
12296
12296
  return A.free(), I;
12297
12297
  }
12298
12298
  }
12299
- var Cg, Aa, Ia, ga, JQ, yB, BI, Ca, Ba, Qa, pi, Li, Ea, ia, di, nC;
12299
+ var Cg, Aa, Ia, ga, lQ, yB, BI, Ca, Ba, Qa, Li, di, Ea, ia, Hi, nC;
12300
12300
  (function(B) {
12301
12301
  B[B.Dynamic = 0] = "Dynamic", B[B.Fixed = 1] = "Fixed", B[B.KinematicPositionBased = 2] = "KinematicPositionBased", B[B.KinematicVelocityBased = 3] = "KinematicVelocityBased";
12302
12302
  })(Cg || (Cg = {}));
@@ -12633,7 +12633,7 @@ class pI {
12633
12633
  return this.userData = A, this;
12634
12634
  }
12635
12635
  }
12636
- class WQ {
12636
+ class PQ {
12637
12637
  constructor() {
12638
12638
  this.fconv = new Float64Array(1), this.uconv = new Uint32Array(this.fconv.buffer), this.data = new Array(), this.size = 0;
12639
12639
  }
@@ -12668,7 +12668,7 @@ class WQ {
12668
12668
  }
12669
12669
  class XG {
12670
12670
  constructor(A) {
12671
- this.raw = A || new HA(), this.map = new WQ(), A && A.forEachRigidBodyHandle(((I) => {
12671
+ this.raw = A || new HA(), this.map = new PQ(), A && A.forEachRigidBodyHandle(((I) => {
12672
12672
  this.map.set(I, new oa(A, null, I));
12673
12673
  }));
12674
12674
  }
@@ -12878,12 +12878,12 @@ class _G extends hg {
12878
12878
  }
12879
12879
  class $G extends ye {
12880
12880
  rawAxis() {
12881
- return mQ.LinX;
12881
+ return OQ.LinX;
12882
12882
  }
12883
12883
  }
12884
12884
  class Ac extends ye {
12885
12885
  rawAxis() {
12886
- return mQ.AngX;
12886
+ return OQ.AngX;
12887
12887
  }
12888
12888
  }
12889
12889
  class Ic extends hg {
@@ -12892,7 +12892,7 @@ class gc extends hg {
12892
12892
  }
12893
12893
  class Cc {
12894
12894
  constructor(A) {
12895
- this.raw = A || new Ng(), this.map = new WQ(), A && A.forEachJointHandle(((I) => {
12895
+ this.raw = A || new Ng(), this.map = new PQ(), A && A.forEachJointHandle(((I) => {
12896
12896
  this.map.set(I, hg.newTyped(A, null, I));
12897
12897
  }));
12898
12898
  }
@@ -12967,19 +12967,19 @@ class Bc extends iC {
12967
12967
  }
12968
12968
  class Qc extends Ke {
12969
12969
  rawAxis() {
12970
- return mQ.LinX;
12970
+ return OQ.LinX;
12971
12971
  }
12972
12972
  }
12973
12973
  class Ec extends Ke {
12974
12974
  rawAxis() {
12975
- return mQ.AngX;
12975
+ return OQ.AngX;
12976
12976
  }
12977
12977
  }
12978
12978
  class ic extends iC {
12979
12979
  }
12980
12980
  class oc {
12981
12981
  constructor(A) {
12982
- this.raw = A || new Rg(), this.map = new WQ(), A && A.forEachJointHandle(((I) => {
12982
+ this.raw = A || new Rg(), this.map = new PQ(), A && A.forEachJointHandle(((I) => {
12983
12983
  this.map.set(I, iC.newTyped(this.raw, I));
12984
12984
  }));
12985
12985
  }
@@ -13019,10 +13019,10 @@ class oc {
13019
13019
  }
13020
13020
  (function(B) {
13021
13021
  B[B.Average = 0] = "Average", B[B.Min = 1] = "Min", B[B.Multiply = 2] = "Multiply", B[B.Max = 3] = "Max";
13022
- })(JQ || (JQ = {}));
13022
+ })(lQ || (lQ = {}));
13023
13023
  class Dc {
13024
13024
  constructor(A) {
13025
- this.raw = A || new Yi();
13025
+ this.raw = A || new qi();
13026
13026
  }
13027
13027
  free() {
13028
13028
  this.raw && this.raw.free(), this.raw = void 0;
@@ -13042,23 +13042,23 @@ class sc {
13042
13042
  (function(B) {
13043
13043
  B[B.Vertex = 0] = "Vertex", B[B.Edge = 1] = "Edge", B[B.Face = 2] = "Face", B[B.Unknown = 3] = "Unknown";
13044
13044
  })(yB || (yB = {}));
13045
- class PQ {
13045
+ class XQ {
13046
13046
  constructor(A, I, g, C) {
13047
13047
  this.featureType = yB.Unknown, this.featureId = void 0, this.timeOfImpact = A, this.normal = I, C !== void 0 && (this.featureId = C), g !== void 0 && (this.featureType = g);
13048
13048
  }
13049
13049
  static fromRaw(A) {
13050
13050
  if (!A) return null;
13051
- const I = new PQ(A.time_of_impact(), q.fromRaw(A.normal()), A.featureType(), A.featureId());
13051
+ const I = new XQ(A.time_of_impact(), q.fromRaw(A.normal()), A.featureType(), A.featureId());
13052
13052
  return A.free(), I;
13053
13053
  }
13054
13054
  }
13055
- class lQ {
13055
+ class NQ {
13056
13056
  constructor(A, I, g, C, Q) {
13057
13057
  this.featureType = yB.Unknown, this.featureId = void 0, this.collider = A, this.timeOfImpact = I, this.normal = g, Q !== void 0 && (this.featureId = Q), C !== void 0 && (this.featureType = C);
13058
13058
  }
13059
13059
  static fromRaw(A, I) {
13060
13060
  if (!I) return null;
13061
- const g = new lQ(A.get(I.colliderHandle()), I.time_of_impact(), q.fromRaw(I.normal()), I.featureType(), I.featureId());
13061
+ const g = new NQ(A.get(I.colliderHandle()), I.time_of_impact(), q.fromRaw(I.normal()), I.featureType(), I.featureId());
13062
13062
  return I.free(), g;
13063
13063
  }
13064
13064
  }
@@ -13072,23 +13072,23 @@ class co {
13072
13072
  return I.free(), g;
13073
13073
  }
13074
13074
  }
13075
- class XQ {
13075
+ class VQ {
13076
13076
  constructor(A, I) {
13077
13077
  this.point = A, this.isInside = I;
13078
13078
  }
13079
13079
  static fromRaw(A) {
13080
13080
  if (!A) return null;
13081
- const I = new XQ(q.fromRaw(A.point()), A.isInside());
13081
+ const I = new VQ(q.fromRaw(A.point()), A.isInside());
13082
13082
  return A.free(), I;
13083
13083
  }
13084
13084
  }
13085
- class NQ {
13085
+ class FQ {
13086
13086
  constructor(A, I, g, C, Q) {
13087
13087
  this.featureType = yB.Unknown, this.featureId = void 0, this.collider = A, this.point = I, this.isInside = g, Q !== void 0 && (this.featureId = Q), C !== void 0 && (this.featureType = C);
13088
13088
  }
13089
13089
  static fromRaw(A, I) {
13090
13090
  if (!I) return null;
13091
- const g = new NQ(A.get(I.colliderHandle()), q.fromRaw(I.point()), I.isInside(), I.featureType(), I.featureId());
13091
+ const g = new FQ(A.get(I.colliderHandle()), q.fromRaw(I.point()), I.isInside(), I.featureType(), I.featureId());
13092
13092
  return I.free(), g;
13093
13093
  }
13094
13094
  }
@@ -13102,13 +13102,13 @@ class lB {
13102
13102
  return I.free(), g;
13103
13103
  }
13104
13104
  }
13105
- class VQ extends lB {
13105
+ class vQ extends lB {
13106
13106
  constructor(A, I, g, C, Q, E) {
13107
13107
  super(I, g, C, Q, E), this.collider = A;
13108
13108
  }
13109
13109
  static fromRaw(A, I) {
13110
13110
  if (!I) return null;
13111
- const g = new VQ(A.get(I.colliderHandle()), I.time_of_impact(), q.fromRaw(I.witness1()), q.fromRaw(I.witness2()), q.fromRaw(I.normal1()), q.fromRaw(I.normal2()));
13111
+ const g = new vQ(A.get(I.colliderHandle()), I.time_of_impact(), q.fromRaw(I.witness1()), q.fromRaw(I.witness2()), q.fromRaw(I.normal1()), q.fromRaw(I.normal2()));
13112
13112
  return I.free(), g;
13113
13113
  }
13114
13114
  }
@@ -13124,23 +13124,23 @@ class ac {
13124
13124
  return t.free(), S.free(), h;
13125
13125
  }
13126
13126
  castRayAndGetNormal(A, I, g, C, Q, E, i, D, o, a, s) {
13127
- let t = q.intoRaw(C.origin), S = q.intoRaw(C.dir), h = lQ.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, t, S, Q, E, i, D, o, a, s));
13127
+ let t = q.intoRaw(C.origin), S = q.intoRaw(C.dir), h = NQ.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, t, S, Q, E, i, D, o, a, s));
13128
13128
  return t.free(), S.free(), h;
13129
13129
  }
13130
13130
  intersectionsWithRay(A, I, g, C, Q, E, i, D, o, a, s, t) {
13131
13131
  let S = q.intoRaw(C.origin), h = q.intoRaw(C.dir);
13132
- this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, S, h, Q, E, ((c) => i(lQ.fromRaw(g, c))), D, o, a, s, t), S.free(), h.free();
13132
+ this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, S, h, Q, E, ((c) => i(NQ.fromRaw(g, c))), D, o, a, s, t), S.free(), h.free();
13133
13133
  }
13134
13134
  intersectionWithShape(A, I, g, C, Q, E, i, D, o, a, s) {
13135
13135
  let t = q.intoRaw(C), S = GA.intoRaw(Q), h = E.intoRaw(), c = this.raw.intersectionWithShape(A.raw, I.raw, g.raw, t, S, h, i, D, o, a, s);
13136
13136
  return t.free(), S.free(), h.free(), c;
13137
13137
  }
13138
13138
  projectPoint(A, I, g, C, Q, E, i, D, o, a) {
13139
- let s = q.intoRaw(C), t = NQ.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, s, Q, E, i, D, o, a));
13139
+ let s = q.intoRaw(C), t = FQ.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, s, Q, E, i, D, o, a));
13140
13140
  return s.free(), t;
13141
13141
  }
13142
13142
  projectPointAndGetFeature(A, I, g, C, Q, E, i, D, o) {
13143
- let a = q.intoRaw(C), s = NQ.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, a, Q, E, i, D, o));
13143
+ let a = q.intoRaw(C), s = FQ.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, a, Q, E, i, D, o));
13144
13144
  return a.free(), s;
13145
13145
  }
13146
13146
  intersectionsWithPoint(A, I, g, C, Q, E, i, D, o, a) {
@@ -13148,7 +13148,7 @@ class ac {
13148
13148
  this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, s, Q, E, i, D, o, a), s.free();
13149
13149
  }
13150
13150
  castShape(A, I, g, C, Q, E, i, D, o, a, s, t, S, h, c) {
13151
- let w = q.intoRaw(C), G = GA.intoRaw(Q), k = q.intoRaw(E), R = i.intoRaw(), y = VQ.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, w, G, k, R, D, o, a, s, t, S, h, c));
13151
+ let w = q.intoRaw(C), G = GA.intoRaw(Q), k = q.intoRaw(E), R = i.intoRaw(), y = vQ.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, w, G, k, R, D, o, a, s, t, S, h, c));
13152
13152
  return w.free(), G.free(), k.free(), R.free(), y;
13153
13153
  }
13154
13154
  intersectionsWithShape(A, I, g, C, Q, E, i, D, o, a, s, t) {
@@ -13298,9 +13298,9 @@ class oI {
13298
13298
  const h = A.coHeightfieldScale(I), c = A.coHeightfieldHeights(I), w = A.coHeightfieldNRows(I), G = A.coHeightfieldNCols(I), k = A.coHeightFieldFlags(I);
13299
13299
  return new Ye(w, G, c, h, k);
13300
13300
  case DI.ConvexPolyhedron:
13301
- return E = A.coVertices(I), i = A.coIndices(I), new Hi(E, i);
13301
+ return E = A.coVertices(I), i = A.coIndices(I), new fi(E, i);
13302
13302
  case DI.RoundConvexPolyhedron:
13303
- return E = A.coVertices(I), i = A.coIndices(I), Q = A.coRoundRadius(I), new fi(E, i, Q);
13303
+ return E = A.coVertices(I), i = A.coIndices(I), Q = A.coRoundRadius(I), new Ti(E, i, Q);
13304
13304
  case DI.Cylinder:
13305
13305
  return D = A.coHalfHeight(I), o = A.coRadius(I), new qe(D, o);
13306
13306
  case DI.RoundCylinder:
@@ -13330,7 +13330,7 @@ class oI {
13330
13330
  return C.free(), Q.free(), E.free(), i.free(), D;
13331
13331
  }
13332
13332
  projectPoint(A, I, g, C) {
13333
- let Q = q.intoRaw(A), E = GA.intoRaw(I), i = q.intoRaw(g), D = this.intoRaw(), o = XQ.fromRaw(D.projectPoint(Q, E, i, C));
13333
+ let Q = q.intoRaw(A), E = GA.intoRaw(I), i = q.intoRaw(g), D = this.intoRaw(), o = VQ.fromRaw(D.projectPoint(Q, E, i, C));
13334
13334
  return Q.free(), E.free(), i.free(), D.free(), o;
13335
13335
  }
13336
13336
  intersectsRay(A, I, g, C) {
@@ -13342,7 +13342,7 @@ class oI {
13342
13342
  return E.free(), i.free(), D.free(), o.free(), a.free(), s;
13343
13343
  }
13344
13344
  castRayAndGetNormal(A, I, g, C, Q) {
13345
- let E = q.intoRaw(I), i = GA.intoRaw(g), D = q.intoRaw(A.origin), o = q.intoRaw(A.dir), a = this.intoRaw(), s = PQ.fromRaw(a.castRayAndGetNormal(E, i, D, o, C, Q));
13345
+ let E = q.intoRaw(I), i = GA.intoRaw(g), D = q.intoRaw(A.origin), o = q.intoRaw(A.dir), a = this.intoRaw(), s = XQ.fromRaw(a.castRayAndGetNormal(E, i, D, o, C, Q));
13346
13346
  return E.free(), i.free(), D.free(), o.free(), a.free(), s;
13347
13347
  }
13348
13348
  }
@@ -13446,7 +13446,7 @@ class Re extends oI {
13446
13446
  return EA.trimesh(this.vertices, this.indices, this.flags);
13447
13447
  }
13448
13448
  }
13449
- class Hi extends oI {
13449
+ class fi extends oI {
13450
13450
  constructor(A, I) {
13451
13451
  super(), this.type = BI.ConvexPolyhedron, this.vertices = A, this.indices = I;
13452
13452
  }
@@ -13454,7 +13454,7 @@ class Hi extends oI {
13454
13454
  return this.indices ? EA.convexMesh(this.vertices, this.indices) : EA.convexHull(this.vertices);
13455
13455
  }
13456
13456
  }
13457
- class fi extends oI {
13457
+ class Ti extends oI {
13458
13458
  constructor(A, I, g) {
13459
13459
  super(), this.type = BI.RoundConvexPolyhedron, this.vertices = A, this.indices = I, this.borderRadius = g;
13460
13460
  }
@@ -13528,7 +13528,7 @@ class Da {
13528
13528
  return a.free(), s;
13529
13529
  }
13530
13530
  deserializeAll(A) {
13531
- return vQ.fromRaw(this.raw.deserializeAll(A));
13531
+ return zQ.fromRaw(this.raw.deserializeAll(A));
13532
13532
  }
13533
13533
  }
13534
13534
  class hc {
@@ -13857,7 +13857,7 @@ class Kc {
13857
13857
  return this.colliders.get(this.raw.wheel_ground_object(A));
13858
13858
  }
13859
13859
  }
13860
- class vQ {
13860
+ class zQ {
13861
13861
  constructor(A, I, g, C, Q, E, i, D, o, a, s, t, S) {
13862
13862
  this.gravity = A, this.integrationParameters = new VG(I), this.islands = new sc(g), this.broadPhase = new ac(C), this.narrowPhase = new tc(Q), this.bodies = new XG(E), this.colliders = new nc(i), this.impulseJoints = new Cc(D), this.multibodyJoints = new oc(o), this.ccdSolver = new Dc(a), this.physicsPipeline = new Sc(s), this.serializationPipeline = new Da(t), this.debugRenderPipeline = new kc(S), this.characterControllers = /* @__PURE__ */ new Set(), this.pidControllers = /* @__PURE__ */ new Set(), this.vehicleControllers = /* @__PURE__ */ new Set(), this.impulseJoints.finalizeDeserialization(this.bodies), this.bodies.finalizeDeserialization(this.colliders), this.colliders.finalizeDeserialization(this.bodies);
13863
13863
  }
@@ -13865,7 +13865,7 @@ class vQ {
13865
13865
  this.integrationParameters.free(), this.islands.free(), this.broadPhase.free(), this.narrowPhase.free(), this.bodies.free(), this.colliders.free(), this.impulseJoints.free(), this.multibodyJoints.free(), this.ccdSolver.free(), this.physicsPipeline.free(), this.serializationPipeline.free(), this.debugRenderPipeline.free(), this.characterControllers.forEach(((A) => A.free())), this.pidControllers.forEach(((A) => A.free())), this.vehicleControllers.forEach(((A) => A.free())), this.integrationParameters = void 0, this.islands = void 0, this.broadPhase = void 0, this.narrowPhase = void 0, this.bodies = void 0, this.colliders = void 0, this.ccdSolver = void 0, this.impulseJoints = void 0, this.multibodyJoints = void 0, this.physicsPipeline = void 0, this.serializationPipeline = void 0, this.debugRenderPipeline = void 0, this.characterControllers = void 0, this.pidControllers = void 0, this.vehicleControllers = void 0;
13866
13866
  }
13867
13867
  static fromRaw(A) {
13868
- return A ? new vQ(q.fromRaw(A.takeGravity()), A.takeIntegrationParameters(), A.takeIslandManager(), A.takeBroadPhase(), A.takeNarrowPhase(), A.takeBodies(), A.takeColliders(), A.takeImpulseJoints(), A.takeMultibodyJoints()) : null;
13868
+ return A ? new zQ(q.fromRaw(A.takeGravity()), A.takeIntegrationParameters(), A.takeIslandManager(), A.takeBroadPhase(), A.takeNarrowPhase(), A.takeBodies(), A.takeColliders(), A.takeImpulseJoints(), A.takeMultibodyJoints()) : null;
13869
13869
  }
13870
13870
  takeSnapshot() {
13871
13871
  return this.serializationPipeline.serializeAll(this.gravity, this.integrationParameters, this.islands, this.broadPhase, this.narrowPhase, this.bodies, this.colliders, this.impulseJoints, this.multibodyJoints);
@@ -14079,16 +14079,16 @@ class vQ {
14079
14079
  }
14080
14080
  (function(B) {
14081
14081
  B[B.NONE = 0] = "NONE", B[B.COLLISION_EVENTS = 1] = "COLLISION_EVENTS", B[B.CONTACT_FORCE_EVENTS = 2] = "CONTACT_FORCE_EVENTS";
14082
- })(pi || (pi = {}));
14082
+ })(Li || (Li = {}));
14083
14083
  (function(B) {
14084
14084
  B[B.NONE = 0] = "NONE", B[B.FILTER_CONTACT_PAIRS = 1] = "FILTER_CONTACT_PAIRS", B[B.FILTER_INTERSECTION_PAIRS = 2] = "FILTER_INTERSECTION_PAIRS";
14085
- })(Li || (Li = {})), (function(B) {
14085
+ })(di || (di = {})), (function(B) {
14086
14086
  B[B.EMPTY = 0] = "EMPTY", B[B.COMPUTE_IMPULSE = 1] = "COMPUTE_IMPULSE";
14087
14087
  })(Ea || (Ea = {})), (function(B) {
14088
14088
  B[B.EXCLUDE_FIXED = 1] = "EXCLUDE_FIXED", B[B.EXCLUDE_KINEMATIC = 2] = "EXCLUDE_KINEMATIC", B[B.EXCLUDE_DYNAMIC = 4] = "EXCLUDE_DYNAMIC", B[B.EXCLUDE_SENSORS = 8] = "EXCLUDE_SENSORS", B[B.EXCLUDE_SOLIDS = 16] = "EXCLUDE_SOLIDS", B[B.ONLY_DYNAMIC = 3] = "ONLY_DYNAMIC", B[B.ONLY_KINEMATIC = 5] = "ONLY_KINEMATIC", B[B.ONLY_FIXED = 6] = "ONLY_FIXED";
14089
14089
  })(ia || (ia = {})), (function(B) {
14090
14090
  B[B.DYNAMIC_DYNAMIC = 1] = "DYNAMIC_DYNAMIC", B[B.DYNAMIC_KINEMATIC = 12] = "DYNAMIC_KINEMATIC", B[B.DYNAMIC_FIXED = 2] = "DYNAMIC_FIXED", B[B.KINEMATIC_KINEMATIC = 52224] = "KINEMATIC_KINEMATIC", B[B.KINEMATIC_FIXED = 8704] = "KINEMATIC_FIXED", B[B.FIXED_FIXED = 32] = "FIXED_FIXED", B[B.DEFAULT = 15] = "DEFAULT", B[B.ALL = 60943] = "ALL";
14091
- })(di || (di = {}));
14091
+ })(Hi || (Hi = {}));
14092
14092
  class sa {
14093
14093
  constructor(A, I, g, C) {
14094
14094
  this.colliderSet = A, this.handle = I, this._parent = g, this._shape = C;
@@ -14297,7 +14297,7 @@ class sa {
14297
14297
  return I.free(), g;
14298
14298
  }
14299
14299
  projectPoint(A, I) {
14300
- let g = q.intoRaw(A), C = XQ.fromRaw(this.colliderSet.raw.coProjectPoint(this.handle, g, I));
14300
+ let g = q.intoRaw(A), C = VQ.fromRaw(this.colliderSet.raw.coProjectPoint(this.handle, g, I));
14301
14301
  return g.free(), C;
14302
14302
  }
14303
14303
  intersectsRay(A, I) {
@@ -14309,7 +14309,7 @@ class sa {
14309
14309
  return o.free(), a.free(), s.free(), t.free(), S.free(), h;
14310
14310
  }
14311
14311
  castCollider(A, I, g, C, Q, E) {
14312
- let i = q.intoRaw(A), D = q.intoRaw(g), o = VQ.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, i, I.handle, D, C, Q, E));
14312
+ let i = q.intoRaw(A), D = q.intoRaw(g), o = vQ.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, i, I.handle, D, C, Q, E));
14313
14313
  return i.free(), D.free(), o;
14314
14314
  }
14315
14315
  intersectsShape(A, I, g) {
@@ -14328,7 +14328,7 @@ class sa {
14328
14328
  return C.free(), Q.free(), E;
14329
14329
  }
14330
14330
  castRayAndGetNormal(A, I, g) {
14331
- let C = q.intoRaw(A.origin), Q = q.intoRaw(A.dir), E = PQ.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, Q, I, g));
14331
+ let C = q.intoRaw(A.origin), Q = q.intoRaw(A.dir), E = XQ.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, Q, I, g));
14332
14332
  return C.free(), Q.free(), E;
14333
14333
  }
14334
14334
  }
@@ -14337,7 +14337,7 @@ class sa {
14337
14337
  })(nC || (nC = {}));
14338
14338
  class YA {
14339
14339
  constructor(A) {
14340
- this.enabled = !0, this.shape = A, this.massPropsMode = nC.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = GA.identity(), this.translation = q.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = JQ.Average, this.restitutionCombineRule = JQ.Average, this.activeCollisionTypes = di.DEFAULT, this.activeEvents = pi.NONE, this.activeHooks = Li.NONE, this.mass = 0, this.centerOfMass = q.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = q.zeros(), this.angularInertiaLocalFrame = GA.identity();
14340
+ this.enabled = !0, this.shape = A, this.massPropsMode = nC.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = GA.identity(), this.translation = q.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = lQ.Average, this.restitutionCombineRule = lQ.Average, this.activeCollisionTypes = Hi.DEFAULT, this.activeEvents = Li.NONE, this.activeHooks = di.NONE, this.mass = 0, this.centerOfMass = q.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = q.zeros(), this.angularInertiaLocalFrame = GA.identity();
14341
14341
  }
14342
14342
  static ball(A) {
14343
14343
  const I = new yo(A);
@@ -14400,19 +14400,19 @@ class YA {
14400
14400
  return new YA(C);
14401
14401
  }
14402
14402
  static convexHull(A) {
14403
- const I = new Hi(A, null);
14403
+ const I = new fi(A, null);
14404
14404
  return new YA(I);
14405
14405
  }
14406
14406
  static convexMesh(A, I) {
14407
- const g = new Hi(A, I);
14407
+ const g = new fi(A, I);
14408
14408
  return new YA(g);
14409
14409
  }
14410
14410
  static roundConvexHull(A, I) {
14411
- const g = new fi(A, null, I);
14411
+ const g = new Ti(A, null, I);
14412
14412
  return new YA(g);
14413
14413
  }
14414
14414
  static roundConvexMesh(A, I, g) {
14415
- const C = new fi(A, I, g);
14415
+ const C = new Ti(A, I, g);
14416
14416
  return new YA(C);
14417
14417
  }
14418
14418
  setTranslation(A, I, g) {
@@ -14473,7 +14473,7 @@ class YA {
14473
14473
  }
14474
14474
  class nc {
14475
14475
  constructor(A) {
14476
- this.raw = A || new jA(), this.map = new WQ(), A && A.forEachColliderHandle(((I) => {
14476
+ this.raw = A || new jA(), this.map = new PQ(), A && A.forEachColliderHandle(((I) => {
14477
14477
  this.map.set(I, new sa(this, I, null));
14478
14478
  }));
14479
14479
  }
@@ -14553,7 +14553,7 @@ for (var Uc = { byteLength: function(B) {
14553
14553
  }, fromByteArray: function(B) {
14554
14554
  for (var A, I = B.length, g = I % 3, C = [], Q = 16383, E = 0, i = I - g; E < i; E += Q) C.push(lc(B, E, E + Q > i ? i : E + Q));
14555
14555
  return g === 1 ? (A = B[I - 1], C.push(Eg[A >> 2] + Eg[A << 4 & 63] + "==")) : g === 2 && (A = (B[I - 2] << 8) + B[I - 1], C.push(Eg[A >> 10] + Eg[A >> 4 & 63] + Eg[A << 2 & 63] + "=")), C.join("");
14556
- } }, Eg = [], uI = [], rc = typeof Uint8Array < "u" ? Uint8Array : Array, bE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", kC = 0, Jc = bE.length; kC < Jc; ++kC) Eg[kC] = bE[kC], uI[bE.charCodeAt(kC)] = kC;
14556
+ } }, Eg = [], uI = [], rc = typeof Uint8Array < "u" ? Uint8Array : Array, xE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", kC = 0, Jc = xE.length; kC < Jc; ++kC) Eg[kC] = xE[kC], uI[xE.charCodeAt(kC)] = kC;
14557
14557
  function aa(B) {
14558
14558
  var A = B.length;
14559
14559
  if (A % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
@@ -14576,14 +14576,14 @@ function Fc(B) {
14576
14576
  let Q, E = null, i = !1, D, o, a;
14577
14577
  const s = [], t = /* @__PURE__ */ new WeakMap(), S = new J(), h = new II(), c = new zA(), w = new J(1, 1, 1);
14578
14578
  new J();
14579
- const G = new Wi();
14579
+ const G = new Pi();
14580
14580
  let k = /* @__PURE__ */ new Set();
14581
14581
  I(Eh, (m = !0) => i = m);
14582
14582
  let R;
14583
14583
  I(Tt, () => R), I(Ht, async (m) => {
14584
14584
  if (!m) return;
14585
14585
  await _();
14586
- const f = new Vi(), $ = new Xi();
14586
+ const f = new vi(), $ = new Vi();
14587
14587
  $.setDecoderPath(oo), f.setDRACOLoader($), f.load(
14588
14588
  m,
14589
14589
  (P) => {
@@ -14606,7 +14606,7 @@ function Fc(B) {
14606
14606
  await _(), H(m);
14607
14607
  });
14608
14608
  let y = !1;
14609
- I(Gi, async (m = new J(0, 0, 0)) => {
14609
+ I(ci, async (m = new J(0, 0, 0)) => {
14610
14610
  if (y) return;
14611
14611
  y = !0;
14612
14612
  const f = g(QC), [$, P, X] = f.player?.colliderTranslation || [0, -0.4, 0];
@@ -14621,12 +14621,12 @@ function Fc(B) {
14621
14621
  let K = 0.01;
14622
14622
  I(ft, (m, f = 1 / 60) => {
14623
14623
  if (!D)
14624
- return g(Gi), null;
14624
+ return g(ci), null;
14625
14625
  a?.update();
14626
14626
  const $ = o.translation();
14627
14627
  let P = m.y + K;
14628
14628
  $.y > 0.2 && (P = -0.1);
14629
- const X = new qi(m.x, P, m.z);
14629
+ const X = new pi(m.x, P, m.z);
14630
14630
  D.computeColliderMovement(o, X);
14631
14631
  const V = Math.min(f, 1 / 30);
14632
14632
  Y(V);
@@ -14637,10 +14637,10 @@ function Fc(B) {
14637
14637
  });
14638
14638
  const M = new J(), l = new J(), N = new J(), T = new J(), O = new J();
14639
14639
  let p = 0, v = !1;
14640
- I(ci, () => {
14640
+ I(yi, () => {
14641
14641
  const f = g(cA);
14642
14642
  M.copy(f.target), l.copy(f.object.position), p || (p = Math.max(0.2 + 0.1, l.distanceTo(M))), O.subVectors(l, M).normalize(), T.copy(M).add(O.clone().multiplyScalar(p));
14643
- const $ = T.clone().sub(M), P = new qi(M.x, M.y, M.z), X = { w: 1, x: 0, y: 0, z: 0 }, V = { x: $.x, y: $.y, z: $.z }, IA = new yo(0.2), eA = Q.castShape(P, X, V, IA, 0, 1, !0, void 0, void 0, o);
14643
+ const $ = T.clone().sub(M), P = new pi(M.x, M.y, M.z), X = { w: 1, x: 0, y: 0, z: 0 }, V = { x: $.x, y: $.y, z: $.z }, IA = new yo(0.2), eA = Q.castShape(P, X, V, IA, 0, 1, !0, void 0, void 0, o);
14644
14644
  if (eA) {
14645
14645
  v = !0;
14646
14646
  const JA = $.length(), NA = eA.time_of_impact * JA, OA = Math.max(0.2 + 0.1, NA - 0.2 - 0.05);
@@ -14665,7 +14665,7 @@ function Fc(B) {
14665
14665
  );
14666
14666
  function _() {
14667
14667
  return E || (E = new Promise(async (m) => {
14668
- await Nc(), Q = new vQ(new J(0, -9.81, 0));
14668
+ await Nc(), Q = new zQ(new J(0, -9.81, 0));
14669
14669
  const f = g(wA);
14670
14670
  a = new j(), f?.add(a), f || (E = null), f?.add(a), m(!0);
14671
14671
  }));
@@ -14789,7 +14789,7 @@ function ta(B) {
14789
14789
  const I = (P, X, V) => B.on(P, X, V), g = (P, ...X) => B.fire(P, ...X), C = g(W), Q = g(QC);
14790
14790
  I(VC, () => C.viewMode === 1 || Q.viewMode === 1), I(bB, () => C.viewMode === 3 || Q.viewMode === 3), I(WA, () => g(VC) || g(bB)), I(GC, () => C.viewMode === 2 || Q.viewMode === 2), !Q.player && g(WA) && console.warn("missing player data in meta"), g(WA) && TG(B), Fc(B), g(WA) && g(Ht, Q.collisionUrl);
14791
14791
  const E = g(wA), i = g(cA), D = g(vA);
14792
- let o = !1, a = !1, s, t = null, S = new Wi(), h = null, c = null, w = null, G = !1, k = null;
14792
+ let o = !1, a = !1, s, t = null, S = new Pi(), h = null, c = null, w = null, G = !1, k = null;
14793
14793
  const R = 0.01, y = 10, K = new J();
14794
14794
  let M = 0;
14795
14795
  const l = new J(), N = Q.player?.url || "https://reall3d.com/demo-models/player/soldier.glb", T = Q.player?.scale || 1, O = Q.player?.rotation || [180, 0, 0], p = Q.player?.position || [0, 0, 0], v = Q.player?.height || 1.7, AA = Q.player?.speed || 3, gA = (Q.player?.idle || "idle").toLowerCase(), _ = (Q.player?.walk || "walk").toLowerCase(), CA = (Q.player?.run || "run").toLowerCase();
@@ -14816,7 +14816,7 @@ function ta(B) {
14816
14816
  moveIntensity: 0
14817
14817
  // 摇杆移动力度(0~1,0=无移动,1=最大速度)
14818
14818
  };
14819
- K.copy(H.position), g(WA) && g(Gi, H.position.clone()), I(HQ, () => s), I(qt, (P, X, V, IA, eA) => {
14819
+ K.copy(H.position), g(WA) && g(ci, H.position.clone()), I(fQ, () => s), I(qt, (P, X, V, IA, eA) => {
14820
14820
  g(WA) && (m(), c && (clearTimeout(c), c = null), H.moveAngle = null, H.moveIntensity = 0, H.key[0] = P ? -1 : X ? 1 : 0, H.key[1] = IA ? 1 : V ? -1 : 0, H.key[2] = eA ? 1 : 0, c = setTimeout(() => H.key = [0, 0, 0], 500));
14821
14821
  }), I(pt, (P = 0, X = 1) => {
14822
14822
  if (!g(WA)) return;
@@ -14831,7 +14831,7 @@ function ta(B) {
14831
14831
  }, 500);
14832
14832
  }), I(QQ, async (P, X = 100) => {
14833
14833
  if (!g(WA) || !P || !g(Lt, P)) return;
14834
- m(), H.key = [0, 0, 0], H.moveAngle = null, H.moveIntensity = 0, g(ki, new J(P.x, P.y, P.z)), g(VC) && await Z(P);
14834
+ m(), H.key = [0, 0, 0], H.moveAngle = null, H.moveIntensity = 0, g(Gi, new J(P.x, P.y, P.z)), g(VC) && await Z(P);
14835
14835
  const V = new J(P.x, 0, P.z), IA = new J(
14836
14836
  V.x - H.position.x,
14837
14837
  V.y - H.position.y,
@@ -14887,12 +14887,12 @@ function ta(B) {
14887
14887
  !0
14888
14888
  );
14889
14889
  function m() {
14890
- G = !1, k = null, M = performance.now(), g(ki, null, !0);
14890
+ G = !1, k = null, M = performance.now(), g(Gi, null, !0);
14891
14891
  }
14892
14892
  function f() {
14893
14893
  if (o) return;
14894
14894
  o = !0;
14895
- const P = new Vi(), X = new Xi();
14895
+ const P = new vi(), X = new Vi();
14896
14896
  X.setDecoderPath(oo), P.setDRACOLoader(X), s = new Dg(), P.load(
14897
14897
  N,
14898
14898
  (V) => {
@@ -14900,7 +14900,7 @@ function ta(B) {
14900
14900
  IA.scale.set(T, T, T), IA.rotation.set(0, 0, 0), IA.rotateX(KI.degToRad(O[0])), IA.rotateY(KI.degToRad(O[1])), IA.rotateZ(KI.degToRad(O[2])), s.add(IA), IA.traverse((sA) => {
14901
14901
  if (sA.isMesh) {
14902
14902
  const aA = sA;
14903
- aA.castShadow = !0, aA.receiveShadow = !0, aA.material instanceof RQ && (aA.material.metalness = 0.5, aA.material.roughness = 0.2, aA.material.color.set(1, 1, 1), aA.material.map && (aA.material.metalnessMap = aA.material.map), aA.material.transparent = !1, aA.material.depthWrite = !0, aA.material.depthTest = !0);
14903
+ aA.castShadow = !0, aA.receiveShadow = !0, aA.material instanceof YQ && (aA.material.metalness = 0.5, aA.material.roughness = 0.2, aA.material.color.set(1, 1, 1), aA.material.map && (aA.material.metalnessMap = aA.material.map), aA.material.transparent = !1, aA.material.depthWrite = !0, aA.material.depthTest = !0);
14904
14904
  }
14905
14905
  }), t = new kw(IA);
14906
14906
  const eA = V.animations;
@@ -14915,7 +14915,7 @@ function ta(B) {
14915
14915
  Run: t.clipAction(OA)
14916
14916
  }, TA && (h.Jump = t.clipAction(TA)), Object.entries(h).forEach(([sA, aA]) => {
14917
14917
  aA && (aA.enabled = !0, aA.setEffectiveTimeScale(1), aA.setEffectiveWeight(sA === "Idle" || DA ? 1 : 0));
14918
- }), h.Idle.play(), s.position.fromArray(p), g(hi), E.add(s), a = !0;
14918
+ }), h.Idle.play(), s.position.fromArray(p), g(ki), E.add(s), a = !0;
14919
14919
  },
14920
14920
  () => {
14921
14921
  },
@@ -14962,9 +14962,9 @@ function ta(B) {
14962
14962
  }
14963
14963
  LA = g(ft, LA, P);
14964
14964
  const NB = (LA ? LA.length() : 0) < 0.1;
14965
- LA && (!NB && (M = performance.now()), IA.add(LA), s.position.copy(IA), i.target.copy(IA).add(new J(0, -v, 0)), i.object.position.add(LA), g(ci), g(hi)), NB && performance.now() - M > 3e3 && m();
14965
+ LA && (!NB && (M = performance.now()), IA.add(LA), s.position.copy(IA), i.target.copy(IA).add(new J(0, -v, 0)), i.object.position.add(LA), g(yi), g(ki)), NB && performance.now() - M > 3e3 && m();
14966
14966
  } else
14967
- l.distanceTo(i.object.position) > 0.1 && (l.copy(i.object.position), g(ci));
14967
+ l.distanceTo(i.object.position) > 0.1 && (l.copy(i.object.position), g(yi));
14968
14968
  t.update(P);
14969
14969
  }
14970
14970
  I(
@@ -14977,7 +14977,7 @@ function ta(B) {
14977
14977
  }
14978
14978
  class Oc {
14979
14979
  constructor(A = {}) {
14980
- this.disposed = !1, this.needUpdate = !0, console.info("Reall3dViewer", TQ), this.init(ys(A)), !A.disableDropLocalFile && this.enableDropLocalFile();
14980
+ this.disposed = !1, this.needUpdate = !0, console.info("Reall3dViewer", uQ), this.init(ys(A)), !A.disableDropLocalFile && this.enableDropLocalFile();
14981
14981
  }
14982
14982
  init(A) {
14983
14983
  const I = this;
@@ -14986,7 +14986,7 @@ class Oc {
14986
14986
  C.background = new zI(A.background), SG(A);
14987
14987
  const Q = A.controls = new nG(A);
14988
14988
  Q.updateByOptions(A);
14989
- const E = Q.object, i = new fQ();
14989
+ const E = Q.object, i = new TQ();
14990
14990
  A.viewerEvents = i, I.events = i;
14991
14991
  const D = (h, c, w) => i.on(h, c, w), o = (h, ...c) => i.fire(h, ...c);
14992
14992
  D(Gt, () => I.metaMatrix), D(W, () => A), D(CC, () => g.domElement), D(mg, () => g), D(wA, () => C), D(cA, () => Q), D(vA, () => E), D(FI, () => A.bigSceneMode), D(xS, (h) => A.pointcloudMode = h);
@@ -14999,22 +14999,22 @@ class Oc {
14999
14999
  () => {
15000
15000
  !I.disposed && (I.needUpdate = !0), h.count++ >= 600 && (h.stop = !0);
15001
15001
  },
15002
- () => !I.disposed && (o(Io) || !h.stop),
15002
+ () => !I.disposed && (o(go) || !h.stop),
15003
15003
  10
15004
15004
  );
15005
15005
  }), so(i), tG(i), to(i), rG(i), ae(i), UG(i), se(i), JG(i), we(i);
15006
15006
  const s = new Qg(hG(A));
15007
- I.splatMesh = s, D(YI, () => s), C.add(s), yG(i), D(hE, (h) => {
15007
+ I.splatMesh = s, D(YI, () => s), C.add(s), yG(i), D(kE, (h) => {
15008
15008
  A.qualityLevel = h, s.options({ qualityLevel: h, renderer: void 0, scene: void 0 });
15009
- }), D(GE, (h) => {
15009
+ }), D(cE, (h) => {
15010
15010
  A.sortType = h, s.options({ sortType: h, renderer: void 0, scene: void 0 });
15011
15011
  }), D(mt, (h = !0) => {
15012
15012
  A.fov += h ? 1 : -1, A.fov = Math.max(10, Math.min(A.fov, 80));
15013
15013
  const c = A.fov;
15014
15014
  Q.updateByOptions({ fov: c }), s.fire(PC);
15015
15015
  }), C.add(new Fa("#ffffff", 2)), g.setAnimationLoop(I.update.bind(I)), D(GD, () => {
15016
- Q.update(), !I.needUpdate && o(zi) && o(CI);
15017
- }), D(IC, () => o(pQ), !0), D(IC, () => o(GD), !0);
15016
+ Q.update(), !I.needUpdate && o(_i) && o(CI);
15017
+ }), D(IC, () => o(LQ), !0), D(IC, () => o(GD), !0);
15018
15018
  let t = performance.now();
15019
15019
  D(
15020
15020
  BC,
@@ -15022,16 +15022,16 @@ class Oc {
15022
15022
  try {
15023
15023
  const h = performance.now();
15024
15024
  if (!I.needUpdate || h - t < (fA ? 25 : A.qualityLevel > 5 ? 1 : 18)) return;
15025
- I.needUpdate = !1, t = h, g.render(C, E), o(HI) && o(YQ);
15025
+ I.needUpdate = !1, t = h, g.render(C, E), o(HI) && o(qQ);
15026
15026
  } catch (h) {
15027
15027
  console.warn(h.message);
15028
15028
  }
15029
15029
  },
15030
15030
  !0
15031
- ), D(qQ, () => I.dispose()), D(at, () => console.info(JSON.stringify(o(YI).meta || {}, null, 2)));
15031
+ ), D(pQ, () => I.dispose()), D(at, () => console.info(JSON.stringify(o(YI).meta || {}, null, 2)));
15032
15032
  let S = "";
15033
15033
  D(eC, (h = "") => {
15034
- S = h, I.splatMesh.fire(Bo, S, !0);
15034
+ S = h, I.splatMesh.fire(yQ, S, !0);
15035
15035
  }), D(Qt, () => S), o(ZA, { scale: `1 : ${o(W).meterScale} m` }), I.initGsApi();
15036
15036
  }
15037
15037
  /**
@@ -15065,7 +15065,7 @@ class Oc {
15065
15065
  else
15066
15066
  return console.error("unsupported format:", g.name);
15067
15067
  const E = URL.createObjectURL(g), i = A.events.fire(W);
15068
- i.bigSceneMode = !1, i.pointcloudMode = !0, i.debugMode = !0, i.autoRotate = !1, i.maxRenderCountOfPc = 10240 * 1e4, i.qualityLevel = 9, i.disableTransitionEffectOnLoad = !1, i.maxDistance = 1e4, i.disableRightClickFocus = !1, i.viewMode = void 0, i.shDegree = 3, i.fov = 45, A.reset(i), Q ? await A.addScene(E) : (await A.addModel({ url: E, format: C }), A.events.fire(Ei)), URL.revokeObjectURL(E);
15068
+ i.bigSceneMode = !1, i.pointcloudMode = !0, i.debugMode = !0, i.autoRotate = !1, i.maxRenderCountOfPc = 10240 * 1e4, i.qualityLevel = 9, i.disableTransitionEffectOnLoad = !1, i.maxDistance = 1e4, i.disableRightClickFocus = !1, i.viewMode = void 0, i.shDegree = 3, i.fov = 45, A.reset(i), Q ? await A.addScene(E) : (await A.addModel({ url: E, format: C }), A.events.fire(ii)), URL.revokeObjectURL(E);
15069
15069
  });
15070
15070
  }
15071
15071
  /**
@@ -15080,23 +15080,23 @@ class Oc {
15080
15080
  // 开发调试用临时接口
15081
15081
  fire(A, I, g) {
15082
15082
  const C = this;
15083
- if (A === 1 && C.splatMesh.fire(Ii, I), A === 2 && C.events.fire(MB), A === 3 && C.events.fire(ag, !0), A === 4 && C.events.fire(UB), A === 5 && C.events.fire(FC), A === 6 && C.events.fire(AQ), A === 7 && C.events.fire(it), A === 8 && (async () => {
15083
+ if (A === 1 && C.splatMesh.fire(gi, I), A === 2 && C.events.fire(MB), A === 3 && C.events.fire(ag, !0), A === 4 && C.events.fire(UB), A === 5 && C.events.fire(FC), A === 6 && C.events.fire(AQ), A === 7 && C.events.fire(it), A === 8 && (async () => {
15084
15084
  let Q = await C.splatMesh.fire(Qo);
15085
15085
  I && (Q = C.splatMesh.fire(St) + I), C.splatMesh.fire(tB, Q);
15086
15086
  })(), A === 9)
15087
15087
  if (!I)
15088
- C.events.fire(hE, RI.Default5);
15088
+ C.events.fire(kE, RI.Default5);
15089
15089
  else {
15090
15090
  const Q = C.events.fire(W).qualityLevel;
15091
- C.events.fire(hE, Math.max(RI.L1, Math.min(Q + I, RI.L9)));
15091
+ C.events.fire(kE, Math.max(RI.L1, Math.min(Q + I, RI.L9)));
15092
15092
  }
15093
15093
  if (A === 10)
15094
15094
  if (!I)
15095
- C.events.fire(GE, YC.Default1);
15095
+ C.events.fire(cE, YC.Default1);
15096
15096
  else {
15097
15097
  const Q = [1, 2010, 2011, 2012, 2112], E = C.events.fire(W).sortType;
15098
15098
  let i = Q.indexOf(E) + I;
15099
- i = Math.max(0, Math.min(i, Q.length - 1)), C.events.fire(GE, Q[i]);
15099
+ i = Math.max(0, Math.min(i, Q.length - 1)), C.events.fire(cE, Q[i]);
15100
15100
  }
15101
15101
  }
15102
15102
  /**
@@ -15111,7 +15111,7 @@ class Oc {
15111
15111
  let C;
15112
15112
  if (g(wA).traverse((i) => !C && i instanceof Qg && (C = i.options())), A) {
15113
15113
  const i = g(W);
15114
- A.autoRotate !== void 0 && (i.autoRotate = A.autoRotate, g(cA).autoRotate = A.autoRotate), A.pointcloudMode !== void 0 && g(GQ, A.pointcloudMode), A.lightFactor !== void 0 && g(aB, A.lightFactor), A.maxRenderCountOfMobile && (i.maxRenderCountOfMobile = A.maxRenderCountOfMobile), A.maxRenderCountOfPc && (i.maxRenderCountOfPc = A.maxRenderCountOfPc), A.debugMode !== void 0 && (i.debugMode = A.debugMode), A.qualityLevel !== void 0 && (i.qualityLevel = A.qualityLevel) && this.splatMesh.options({ qualityLevel: A.qualityLevel }), A.sortType !== void 0 && (i.sortType = A.sortType) && this.splatMesh.options({ sortType: A.sortType }), A.markType !== void 0 && (i.markType = A.markType), A.markVisible !== void 0 && g(gC, A.markVisible), A.meterScale !== void 0 && (i.meterScale = A.meterScale), A.markMode !== void 0 && (i.markMode = A.markMode, !A.markMode && g(Ao), g(cA).autoRotate = g(W).autoRotate = !1), A.disableRightClickFocus !== void 0 && (i.disableRightClickFocus = A.disableRightClickFocus);
15114
+ A.autoRotate !== void 0 && (i.autoRotate = A.autoRotate, g(cA).autoRotate = A.autoRotate), A.pointcloudMode !== void 0 && g(GQ, A.pointcloudMode), A.lightFactor !== void 0 && g(aB, A.lightFactor), A.maxRenderCountOfMobile && (i.maxRenderCountOfMobile = A.maxRenderCountOfMobile), A.maxRenderCountOfPc && (i.maxRenderCountOfPc = A.maxRenderCountOfPc), A.debugMode !== void 0 && (i.debugMode = A.debugMode), A.qualityLevel !== void 0 && (i.qualityLevel = A.qualityLevel) && this.splatMesh.options({ qualityLevel: A.qualityLevel }), A.sortType !== void 0 && (i.sortType = A.sortType) && this.splatMesh.options({ sortType: A.sortType }), A.markType !== void 0 && (i.markType = A.markType), A.markVisible !== void 0 && g(gC, A.markVisible), A.meterScale !== void 0 && (i.meterScale = A.meterScale), A.markMode !== void 0 && (i.markMode = A.markMode, !A.markMode && g(Io), g(cA).autoRotate = g(W).autoRotate = !1), A.disableRightClickFocus !== void 0 && (i.disableRightClickFocus = A.disableRightClickFocus);
15115
15115
  }
15116
15116
  return g(cA).updateByOptions(A), g(ZA, { scale: `1 : ${g(W).meterScale} m` }), Object.assign({ ...g(W) }, C);
15117
15117
  }
@@ -15151,7 +15151,7 @@ class Oc {
15151
15151
  if (!Q.url) return console.error("missing model file url");
15152
15152
  if (!Q.url.endsWith(".spx") && !Q.url.endsWith(".json")) return console.error("The format is unsupported in the large scene mode", Q.url);
15153
15153
  const i = { root: C(W).root, ...Q, ...Q.cameraInfo || {} };
15154
- i.bigSceneMode = Q.url.endsWith(".json") || !!Q.isLargeScene, i.enableEnvironment = Q.enableEnvironment === void 0 ? C(W).enableEnvironment : !!Q.enableEnvironment, i.enableEnvironment && !Q.qualityLevel && (i.qualityLevel = RI.L9), i.viewMode = Q.viewMode, I.reset({ ...i }), Q.player?.url && (Q.player.url = xI(Q.player.url, xI(A, location.href))), Q.player?.trigerRunMp3 && (Q.player.trigerRunMp3 = xI(Q.player.trigerRunMp3, xI(A, location.href))), Q.collisionUrl && (Q.collisionUrl = xI(Q.collisionUrl, xI(A, location.href))), g(QC, () => Q), ta(I.events), I.metaMatrix = Q.transform ? new zA().fromArray(Q.transform) : null, I.splatMesh.meta = Q, fA && (Q.cameraInfo?.position || Q.cameraInfo?.lookAt) && I.events.fire(cA)._dollyOut(0.7), i.bigSceneMode ? (C(LQ, Q.flyPositions || []), C(dQ, Q.flyTargets || []), C(io, Q.flyDuration), C(Ki, Q)) : C(gQ, Q), I.splatMesh.addModel({ url: Q.url, baseUrl: xI(A, location.href) }, Q), await C(eC, Q.watermark || Q.name), C(cA).updateRotateAxis(), (fA && Q.mobileEnableJoystick || !fA && Q.pcEnableJoystick) && C(Si);
15154
+ i.bigSceneMode = Q.url.endsWith(".json") || !!Q.isLargeScene, i.enableEnvironment = Q.enableEnvironment === void 0 ? C(W).enableEnvironment : !!Q.enableEnvironment, i.enableEnvironment && !Q.qualityLevel && (i.qualityLevel = RI.L9), i.viewMode = Q.viewMode, I.reset({ ...i }), Q.player?.url && (Q.player.url = xI(Q.player.url, xI(A, location.href))), Q.player?.trigerRunMp3 && (Q.player.trigerRunMp3 = xI(Q.player.trigerRunMp3, xI(A, location.href))), Q.collisionUrl && (Q.collisionUrl = xI(Q.collisionUrl, xI(A, location.href))), g(QC, () => Q), ta(I.events), I.metaMatrix = Q.transform ? new zA().fromArray(Q.transform) : null, I.splatMesh.meta = Q, fA && (Q.cameraInfo?.position || Q.cameraInfo?.lookAt) && I.events.fire(cA)._dollyOut(0.7), i.bigSceneMode ? (C(dQ, Q.flyPositions || []), C(HQ, Q.flyTargets || []), C(io, Q.flyDuration), C(ni, Q)) : C(gQ, Q), I.splatMesh.addModel({ url: Q.url, baseUrl: xI(A, location.href) }, Q), await C(eC, Q.watermark || Q.name), C(cA).updateRotateAxis(), (fA && Q.mobileEnableJoystick || !fA && Q.pcEnableJoystick) && C(hi);
15155
15155
  }
15156
15156
  /**
15157
15157
  * 添加要渲染的高斯模型(小场景模式)
@@ -15213,10 +15213,10 @@ class Oc {
15213
15213
  await this.loadGlb(S, D), URL.revokeObjectURL(S);
15214
15214
  }
15215
15215
  } else E.format === "obj" ? (this.options({ autoRotate: !1 }), await C(kt, E.url)) : (this.splatMesh.addModel(E, D), await C(eC, D.watermark || D.name));
15216
- fA && C(cA)._dollyOut?.(0.7), (fA && D.mobileEnableJoystick || !fA && D.pcEnableJoystick) && C(Si);
15216
+ fA && C(cA)._dollyOut?.(0.7), (fA && D.mobileEnableJoystick || !fA && D.pcEnableJoystick) && C(hi);
15217
15217
  }
15218
15218
  async loadGlb(A, I) {
15219
- const g = (E, ...i) => this.events.fire(E, ...i), C = new Vi(), Q = new Xi();
15219
+ const g = (E, ...i) => this.events.fire(E, ...i), C = new vi(), Q = new Vi();
15220
15220
  Q.setDecoderPath(oo), C.setDRACOLoader(Q), C.load(
15221
15221
  A,
15222
15222
  (E) => {
@@ -15233,7 +15233,7 @@ class Oc {
15233
15233
  */
15234
15234
  initGsApi() {
15235
15235
  const A = (s, ...t) => this.events.fire(s, ...t), I = () => {
15236
- setTimeout(() => window.focus()), A(Qi), A(cA).autoRotate = A(W).autoRotate = !A(W).autoRotate;
15236
+ setTimeout(() => window.focus()), A(Ei), A(cA).autoRotate = A(W).autoRotate = !A(W).autoRotate;
15237
15237
  }, g = (s = !0) => {
15238
15238
  setTimeout(() => window.focus()), s = !!s;
15239
15239
  const t = A(W);
@@ -15256,7 +15256,7 @@ class Oc {
15256
15256
  return !1;
15257
15257
  return t.markMode = !0, A(SI), !0;
15258
15258
  }, E = async (s) => (setTimeout(() => window.focus()), s ? (A(BB, s)?.dispose(), A(CI), await A(AQ)) : !1), i = async (s, t = !0) => (A(Et, s, t), A(BB, s?.name)?.drawUpdate?.(s, t), A(CI), t ? (setTimeout(() => window.focus()), await A(AQ)) : !0), D = (s = !0) => {
15259
- setTimeout(() => window.focus()), A(Ii, !!s);
15259
+ setTimeout(() => window.focus()), A(gi, !!s);
15260
15260
  }, o = (s, t = !0) => {
15261
15261
  A(eC, s), t && A(ot, s);
15262
15262
  }, a = () => A(jt);
@@ -15280,12 +15280,12 @@ class Oc {
15280
15280
  if (A.disposed) return;
15281
15281
  A.disposed = !0;
15282
15282
  const I = (Q, ...E) => A.events.fire(Q, ...E), g = I(mg), C = g.domElement;
15283
- I(cg), I(vi), I(Va), I(cA).dispose(), I(Sg, I(wA)), g.clear(), g.dispose(), C.parentElement.removeChild(C), A.splatMesh = null, A.events.clear(), A.events = null;
15283
+ I(cg), I(zi), I(Va), I(cA).dispose(), I(Sg, I(wA)), g.clear(), g.dispose(), C.parentElement.removeChild(C), A.splatMesh = null, A.events.clear(), A.events = null;
15284
15284
  }
15285
15285
  }
15286
15286
  function Rc(B) {
15287
15287
  const A = (E, i, D) => B.on(E, i, D), I = (E, ...i) => B.fire(E, ...i), g = fA ? 2 : 20, C = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map();
15288
- A(aQ, () => I(HI) && C.set(Date.now(), 1)), A(tQ, () => I(HI) && I(UC, C)), A(YQ, () => I(HI) && Q.set(Date.now(), 1)), A(eQ, () => I(HI) && I(UC, Q)), A(UC, (E) => {
15288
+ A(aQ, () => I(HI) && C.set(Date.now(), 1)), A(tQ, () => I(HI) && I(UC, C)), A(qQ, () => I(HI) && Q.set(Date.now(), 1)), A(eQ, () => I(HI) && I(UC, Q)), A(UC, (E) => {
15289
15289
  let i = [], D = Date.now(), o = 0;
15290
15290
  for (const a of E.keys())
15291
15291
  D - a <= 1e3 ? o++ : i.push(a);
@@ -15310,13 +15310,13 @@ function Rc(B) {
15310
15310
  E?.traverse((D) => i.push(D)), i.forEach((D) => {
15311
15311
  D.dispose ? D.dispose() : (D.geometry?.dispose?.(), D.material && D.material instanceof Array ? D.material.forEach((o) => o?.dispose?.()) : D.material?.dispose?.());
15312
15312
  }), E?.clear();
15313
- }), A(si, (E = 0.1) => {
15313
+ }), A(ai, (E = 0.1) => {
15314
15314
  const i = I(EI);
15315
15315
  i && i.visible && i.rotateOnAxis(new J(1, 0, 0), KI.degToRad(E));
15316
- }), A(ai, (E = 0.1) => {
15316
+ }), A(ti, (E = 0.1) => {
15317
15317
  const i = I(EI);
15318
15318
  i && i.visible && i.rotateOnAxis(new J(0, 1, 0), KI.degToRad(E));
15319
- }), A(ti, (E = 0.1) => {
15319
+ }), A(ei, (E = 0.1) => {
15320
15320
  const i = I(EI);
15321
15321
  i && i.visible && i.rotateOnAxis(new J(0, 0, 1), KI.degToRad(E));
15322
15322
  }), A(Ah, (E = 0.01) => {
@@ -15366,7 +15366,7 @@ function Rc(B) {
15366
15366
  }), A(Nt, () => {
15367
15367
  const E = new ca(16777215, 1);
15368
15368
  return E.position.set(0, 2e3, 1e3), E;
15369
- }), window.addEventListener("beforeunload", () => I(qQ));
15369
+ }), window.addEventListener("beforeunload", () => I(pQ));
15370
15370
  }
15371
15371
  function Yc(B) {
15372
15372
  let { root: A = "#map", debugMode: I } = B;
@@ -15386,7 +15386,7 @@ class pc {
15386
15386
  function Lc(B) {
15387
15387
  const A = (M, l, N) => B.on(M, l, N), I = (M, ...l) => B.fire(M, ...l), g = I(CC);
15388
15388
  let C = /* @__PURE__ */ new Set(), Q, E = new pc();
15389
- A(pQ, () => {
15389
+ A(LQ, () => {
15390
15390
  if (!C.size) return;
15391
15391
  const M = I(W);
15392
15392
  if (!M.enableKeyboard) return C.clear();
@@ -15446,7 +15446,7 @@ function Lc(B) {
15446
15446
  T.transform = N.matrix.toArray();
15447
15447
  }
15448
15448
  }
15449
- } else C.has("KeyQ") ? l && I(si, 0.1) : C.has("KeyW") ? l && I(ai, 0.1) : C.has("KeyE") ? l && I(ti, 0.1) : C.has("KeyA") ? l && I(si, -0.1) : C.has("KeyS") ? l && I(ai, -0.1) : C.has("KeyD") ? l && I(ti, -0.1) : C.has("KeyY") ? l ? I(Ft, C.has("ShiftLeft") || C.has("ShiftRight") ? -0.1 : 0.1) : (I(FC, !0), C.clear()) : C.has("KeyC") && console.info("position=", I(MI).toArray(), "lookat=", I(sg).toArray());
15449
+ } else C.has("KeyQ") ? l && I(ai, 0.1) : C.has("KeyW") ? l && I(ti, 0.1) : C.has("KeyE") ? l && I(ei, 0.1) : C.has("KeyA") ? l && I(ai, -0.1) : C.has("KeyS") ? l && I(ti, -0.1) : C.has("KeyD") ? l && I(ei, -0.1) : C.has("KeyY") ? l ? I(Ft, C.has("ShiftLeft") || C.has("ShiftRight") ? -0.1 : 0.1) : (I(FC, !0), C.clear()) : C.has("KeyC") && console.info("position=", I(MI).toArray(), "lookat=", I(sg).toArray());
15450
15450
  });
15451
15451
  const i = (M) => {
15452
15452
  M.target.type !== "text" && (Q || M.code === "F5" || (M.preventDefault(), C.add(M.code)));
@@ -15677,9 +15677,9 @@ var JC = Object.freeze({
15677
15677
  }
15678
15678
  }, B;
15679
15679
  })()
15680
- ), Ti = {
15680
+ ), ui = {
15681
15681
  Linear: function(B, A) {
15682
- var I = B.length - 1, g = I * A, C = Math.floor(g), Q = Ti.Utils.Linear;
15682
+ var I = B.length - 1, g = I * A, C = Math.floor(g), Q = ui.Utils.Linear;
15683
15683
  return A < 0 ? Q(B[0], B[1], g) : A > 1 ? Q(B[I], B[I - 1], I - g) : Q(B[C], B[C + 1 > I ? I : C + 1], g - C);
15684
15684
  },
15685
15685
  Utils: {
@@ -15696,11 +15696,11 @@ var JC = Object.freeze({
15696
15696
  return B._nextId++;
15697
15697
  }, B._nextId = 0, B;
15698
15698
  })()
15699
- ), ui = new dc(), Hc = (
15699
+ ), mi = new dc(), Hc = (
15700
15700
  /** @class */
15701
15701
  (function() {
15702
15702
  function B(A, I) {
15703
- this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = JC.Linear.None, this._interpolationFunction = Ti.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = He.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1, this._object = A, typeof I == "object" ? (this._group = I, I.add(this)) : I === !0 && (this._group = ui, ui.add(this));
15703
+ this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = JC.Linear.None, this._interpolationFunction = ui.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = He.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1, this._object = A, typeof I == "object" ? (this._group = I, I.add(this)) : I === !0 && (this._group = mi, mi.add(this));
15704
15704
  }
15705
15705
  return B.prototype.getId = function() {
15706
15706
  return this._id;
@@ -15802,7 +15802,7 @@ var JC = Object.freeze({
15802
15802
  }, B.prototype.easing = function(A) {
15803
15803
  return A === void 0 && (A = JC.Linear.None), this._easingFunction = A, this;
15804
15804
  }, B.prototype.interpolation = function(A) {
15805
- return A === void 0 && (A = Ti.Linear), this._interpolationFunction = A, this;
15805
+ return A === void 0 && (A = ui.Linear), this._interpolationFunction = A, this;
15806
15806
  }, B.prototype.chain = function() {
15807
15807
  for (var A = [], I = 0; I < arguments.length; I++)
15808
15808
  A[I] = arguments[I];
@@ -15869,7 +15869,7 @@ var JC = Object.freeze({
15869
15869
  })()
15870
15870
  );
15871
15871
  He.nextId;
15872
- var kg = ui;
15872
+ var kg = mi;
15873
15873
  kg.getAll.bind(kg);
15874
15874
  kg.removeAll.bind(kg);
15875
15875
  kg.add.bind(kg);
@@ -15938,7 +15938,7 @@ class fc extends z {
15938
15938
  const S = new Qg(t);
15939
15939
  I.splatMesh = S, I.opts.scene.add(S), S.meta = s;
15940
15940
  const h = s.watermark || s.name || "";
15941
- s.showWatermark = !!s.showWatermark, S.fire(Bo, h, !0, !1), S.addModel({ url: s.url }, s);
15941
+ s.showWatermark = !!s.showWatermark, S.fire(yQ, h, !0, !1), S.addModel({ url: s.url }, s);
15942
15942
  }
15943
15943
  I.splatMesh.meta.showBoundBox && (I.splatMesh.boundBox.visible = !0);
15944
15944
  }
@@ -15958,16 +15958,16 @@ class fc extends z {
15958
15958
  }
15959
15959
  class bc extends Gw {
15960
15960
  constructor(A = {}) {
15961
- console.info("Reall3dMapViewer", TQ), super(), this.clock = new Wi(), this.updateTime = 0, this.disposed = !1;
15962
- const I = this, g = new fQ();
15961
+ console.info("Reall3dMapViewer", uQ), super(), this.clock = new Pi(), this.updateTime = 0, this.disposed = !1;
15962
+ const I = this, g = new TQ();
15963
15963
  I.events = g;
15964
15964
  const C = (i, D, o) => g.on(i, D, o), Q = (i, ...D) => g.fire(i, ...D);
15965
15965
  I.tileMap = qc();
15966
15966
  const E = Yc(A);
15967
- C(W, () => E), so(g), to(g), Rc(g), se(g), we(g), I.camera = new ji(60, 1, 0.01, 100), C(vA, () => I.camera), I.container = E.root, I.renderer = Q(rt), I.scene = Q(Jt), I.controls = Q(lt), I.ambLight = new Fa(16777215, 1), I.scene.add(I.ambLight), I.dirLight = Q(Nt), I.scene.add(I.dirLight), I.scene.add(I.tileMap), I.container.appendChild(I.renderer.domElement), ae(g), Lc(g), window.addEventListener("resize", I.resize.bind(I)), I.resize(), I.renderer.setAnimationLoop(I.animate.bind(I)), fA && I.controls._dollyOut?.(0.7), C(qQ, () => I.dispose()), C(
15967
+ C(W, () => E), so(g), to(g), Rc(g), se(g), we(g), I.camera = new Wi(60, 1, 0.01, 100), C(vA, () => I.camera), I.container = E.root, I.renderer = Q(rt), I.scene = Q(Jt), I.controls = Q(lt), I.ambLight = new Fa(16777215, 1), I.scene.add(I.ambLight), I.dirLight = Q(Nt), I.scene.add(I.dirLight), I.scene.add(I.tileMap), I.container.appendChild(I.renderer.domElement), ae(g), Lc(g), window.addEventListener("resize", I.resize.bind(I)), I.resize(), I.renderer.setAnimationLoop(I.animate.bind(I)), fA && I.controls._dollyOut?.(0.7), C(pQ, () => I.dispose()), C(
15968
15968
  IC,
15969
15969
  () => {
15970
- Q(YQ), I.controls.update(), Q(Rt), Q(pQ);
15970
+ Q(qQ), I.controls.update(), Q(Rt), Q(LQ);
15971
15971
  },
15972
15972
  !0
15973
15973
  ), C(
@@ -16004,7 +16004,7 @@ class bc extends Gw {
16004
16004
  const I = (Q, E, i) => this.events.on(Q, E, i), g = (Q, ...E) => this.events.fire(Q, ...E), C = this;
16005
16005
  fetch(A, { mode: "cors", credentials: "omit", cache: "reload" }).then((Q) => Q.ok ? Q.json() : {}).then((Q) => {
16006
16006
  const E = new J().fromArray(Q.position || [17e3, 3e4, -35e3]), i = new J().fromArray(Q.lookAt || [17e3, 0, -35e3]);
16007
- C.controls.object.position.copy(E), C.controls.target.copy(i), C.dirLight.target.position.copy(i), I(QC, () => Q), g(LQ, Q.flyPositions || []), g(dQ, Q.flyTargets || []), g(io, Q.flyDuration);
16007
+ C.controls.object.position.copy(E), C.controls.target.copy(i), C.dirLight.target.position.copy(i), I(QC, () => Q), g(dQ, Q.flyPositions || []), g(HQ, Q.flyTargets || []), g(io, Q.flyDuration);
16008
16008
  const D = /* @__PURE__ */ new Set();
16009
16009
  for (let o of Q.scenes)
16010
16010
  D.has(o) || (new fc(o, C), D.add(o));
@@ -16022,9 +16022,9 @@ class bc extends Gw {
16022
16022
  if (A.disposed) return;
16023
16023
  const { width: I, height: g, top: C, left: Q } = A.container.getBoundingClientRect();
16024
16024
  A.renderer.setPixelRatio(1), A.renderer.setSize(I, g), A.camera.aspect = I / g, A.camera.updateProjectionMatrix();
16025
- const E = A.events.fire(go);
16025
+ const E = A.events.fire(Co);
16026
16026
  E.setSize(I, g), E.domElement.style.position = "absolute", E.domElement.style.left = `${Q}px`, E.domElement.style.top = `${C}px`;
16027
- const i = A.events.fire(Co);
16027
+ const i = A.events.fire(Bo);
16028
16028
  i.setSize(I, g), i.domElement.style.position = "absolute", i.domElement.style.left = `${Q}px`, i.domElement.style.top = `${C}px`;
16029
16029
  }
16030
16030
  animate() {