@reall3d/reall3dviewer 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pkg.js CHANGED
@@ -1,19 +1,19 @@
1
- import { Vector3 as M, InstancedBufferGeometry as rn, BufferAttribute as He, InstancedBufferAttribute as ca, DynamicDrawUsage as la, ShaderMaterial as _n, DoubleSide as we, NormalBlending as da, DataTexture as Ee, RGBAIntegerFormat as _e, UnsignedIntType as Ie, Mesh as te, Vector4 as ve, Vector2 as j, WebGLRenderer as es, PerspectiveCamera as ts, Object3D as In, CylinderGeometry as ei, MeshBasicMaterial as xe, PlaneGeometry as ua, Quaternion as _t, Controls as ha, MOUSE as Ae, TOUCH as Se, Spherical as ti, Ray as pa, Plane as fa, MathUtils as be, Float32BufferAttribute as ni, InstancedInterleavedBuffer as cn, InterleavedBufferAttribute as We, WireframeGeometry as ga, Box3 as Dn, Sphere as tt, ShaderLib as bt, UniformsUtils as ns, UniformsLib as xt, Line3 as ma, Matrix4 as $e, CircleGeometry as De, Group as Qt, BufferGeometry as ya, Raycaster as Aa, SphereGeometry as wa, Color as is, FrontSide as va, CatmullRomCurve3 as ii, Scene as ss, AmbientLight as as, FogExp2 as si, DirectionalLight as Sa, EventDispatcher as ba, Clock as xa } from "three";
2
- import * as ai from "@gotoeasy/three-tile";
1
+ import { Vector3 as M, InstancedBufferGeometry as rn, BufferAttribute as He, InstancedBufferAttribute as ca, DynamicDrawUsage as la, ShaderMaterial as _n, DoubleSide as we, NormalBlending as da, DataTexture as Ee, RGBAIntegerFormat as _e, UnsignedIntType as Ie, Mesh as te, Vector4 as ve, Vector2 as j, WebGLRenderer as ts, PerspectiveCamera as ns, Object3D as In, CylinderGeometry as ti, MeshBasicMaterial as xe, PlaneGeometry as ua, Quaternion as _t, Controls as ha, MOUSE as Ae, TOUCH as Se, Spherical as ni, Ray as pa, Plane as fa, MathUtils as be, Float32BufferAttribute as ii, InstancedInterleavedBuffer as cn, InterleavedBufferAttribute as We, WireframeGeometry as ga, Box3 as Dn, Sphere as tt, ShaderLib as bt, UniformsUtils as is, UniformsLib as xt, Line3 as ma, Matrix4 as $e, CircleGeometry as De, Group as Qt, BufferGeometry as ya, Raycaster as Aa, SphereGeometry as wa, Color as Pn, FrontSide as va, CatmullRomCurve3 as si, Scene as ss, AmbientLight as as, FogExp2 as ai, DirectionalLight as Sa, EventDispatcher as ba, Clock as xa } from "three";
2
+ import * as oi from "@gotoeasy/three-tile";
3
3
  let A = 1;
4
- const at = A++, Pn = A++, Pe = A++, os = A++, ln = A++, dn = A++, rs = A++, Gt = A++, cs = A++, Ke = A++, V = A++, Y = A++, ls = A++, un = A++, Ce = A++, Ne = A++, Be = A++, ft = A++, ds = A++, us = A++, hs = A++, Ca = A++, ps = A++, fs = A++, Ln = A++, Ma = A++, Ta = A++, oi = A++, q = A++;
4
+ const at = A++, Ln = A++, Pe = A++, os = A++, ln = A++, dn = A++, rs = A++, Gt = A++, cs = A++, Ke = A++, V = A++, Y = A++, ls = A++, un = A++, Ce = A++, Ne = A++, Be = A++, ft = A++, ds = A++, us = A++, hs = A++, Ca = A++, ps = A++, fs = A++, Fn = A++, Ma = A++, Ta = A++, ri = A++, q = A++;
5
5
  A++;
6
- const oe = A++, ot = A++, Ye = A++, ri = A++, ci = A++, li = A++, gs = A++, ka = A++, di = A++, Nt = A++, Xt = A++, ui = A++, hi = A++, pi = A++, nt = A++, fi = A++, rt = A++, ms = A++, gt = A++, $t = A++, Ct = A++, ys = A++, hn = A++, Ea = A++, Fn = A++, gi = A++, mi = A++, It = A++, Dt = A++, Pt = A++, Lt = A++, As = A++, Rn = A++, I = A++, Ue = A++, ct = A++, B = A++, Ht = A++, ws = A++, _a = A++, ee = A++, pn = A++, re = A++, vs = A++, Ss = A++, bs = A++, xs = A++, fn = A++, Cs = A++, Le = A++, Ms = A++, Ts = A++, Mt = A++, Ia = A++, ks = A++, Es = A++;
6
+ const oe = A++, ot = A++, Ye = A++, ci = A++, li = A++, di = A++, gs = A++, ka = A++, ui = A++, Nt = A++, Xt = A++, hi = A++, pi = A++, fi = A++, nt = A++, gi = A++, rt = A++, ms = A++, gt = A++, $t = A++, Ct = A++, ys = A++, hn = A++, Ea = A++, Rn = A++, mi = A++, yi = A++, It = A++, Dt = A++, Pt = A++, Lt = A++, As = A++, Bn = A++, I = A++, Ue = A++, ct = A++, B = A++, Ht = A++, ws = A++, _a = A++, ee = A++, pn = A++, re = A++, vs = A++, Ss = A++, bs = A++, xs = A++, fn = A++, Cs = A++, Le = A++, Ms = A++, Ts = A++, Mt = A++, Ia = A++, ks = A++, Es = A++;
7
7
  A++;
8
- const Wt = A++, Kt = A++, yi = A++, Ai = A++, gn = A++, Ft = A++, mn = A++, it = A++, ce = A++, Bn = A++, _s = A++, Da = A++, Is = A++, wi = A++, vi = A++, Pa = A++, La = A++, Tt = A++, Rt = A++, Un = A++, Ve = A++, Oe = A++, lt = A++, mt = A++, Ds = A++, N = A++, J = A++, Fa = A++, Si = A++, Bt = A++, Ut = A++, Ra = A++, On = A++, zn = A++, Me = A++, st = A++, Ze = A++, Ba = A++, Ps = A++, Ua = A++;
8
+ const Wt = A++, Kt = A++, Ai = A++, wi = A++, gn = A++, Ft = A++, mn = A++, it = A++, ce = A++, Un = A++, _s = A++, Da = A++, Is = A++, vi = A++, Si = A++, Pa = A++, La = A++, Tt = A++, Rt = A++, On = A++, Ve = A++, Oe = A++, lt = A++, mt = A++, Ds = A++, N = A++, J = A++, Fa = A++, bi = A++, Bt = A++, Ut = A++, Ra = A++, zn = A++, Qn = A++, Me = A++, st = A++, Ze = A++, Ba = A++, Ps = A++, Ua = A++;
9
9
  A++;
10
10
  A++;
11
11
  A++;
12
12
  A++;
13
13
  A++;
14
- const Te = A++, dt = A++, kt = A++, yn = A++, Ls = A++, Fs = A++, An = A++, ke = A++, qe = A++, Rs = A++, Qn = A++, bi = A++, Oa = A++, za = A++, Hn = A++, Bs = A++, Wn = A++, Yn = A++, Vn = A++, Ot = A++, Us = A++, xi = A++, zt = A++, ye = A++, Os = A++, zs = A++;
14
+ const Te = A++, dt = A++, kt = A++, yn = A++, Ls = A++, Fs = A++, An = A++, ke = A++, qe = A++, Rs = A++, Hn = A++, xi = A++, Oa = A++, za = A++, Wn = A++, Bs = A++, Yn = A++, Vn = A++, Gn = A++, Ot = A++, Us = A++, Ci = A++, zt = A++, ye = A++, Os = A++, zs = A++;
15
15
  A++;
16
- const Je = A++, Qs = A++, Hs = A++, Gn = A++, Ws = A++, Qa = A++, Ys = A++, Ci = A++, Vs = A++, Gs = A++;
16
+ const Je = A++, Qs = A++, Hs = A++, Nn = A++, Ws = A++, Qa = A++, Ys = A++, Mi = A++, Vs = A++, Gs = A++;
17
17
  A++;
18
18
  const Ns = A++, Xs = A++, X = A++, wn = A++, vn = A++, Sn = A++, Ha = A++, $s = A++, Wa = A++, Ya = A++, Va = A++, Ga = A++, Na = A++, Ks = A++, Zs = A++;
19
19
  A++;
@@ -21,7 +21,7 @@ A++;
21
21
  A++;
22
22
  A++;
23
23
  A++;
24
- class Nn {
24
+ class Xn {
25
25
  constructor() {
26
26
  this.map = /* @__PURE__ */ new Map();
27
27
  }
@@ -67,7 +67,7 @@ class $a {
67
67
  }
68
68
  }
69
69
  var L = /* @__PURE__ */ ((i) => (i[i.FetchReady = 0] = "FetchReady", i[i.Fetching = 1] = "Fetching", i[i.FetchDone = 2] = "FetchDone", i[i.FetchAborted = 3] = "FetchAborted", i[i.FetchFailed = 4] = "FetchFailed", i[i.Invalid = 5] = "Invalid", i))(L || {});
70
- const Yt = "v1.5.0-dev-map", le = navigator.userAgent.includes("Mobi"), Ka = "QWERTYUIOPLKJHGFDSAZXCVBNM1234567890qwertyuioplkjhgfdsazxcvbnm`~!@#$%^&*()-_=+\\|]}[{'\";::,<.>//? ", ze = 128, Za = 32, R = 32, ja = 20, qa = 16, js = 64 * 1024, Ja = 1024 * 1e4, eo = 10240 * 1e4, Et = 0.28209479177387814, to = 0, no = 20,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AItABsiAkEZdEGAgICAf3FyQQFyNgIMIAQgFUEBdEHwA3EgFkEGdEGA/ABxIBdBC3RBgIAfcSAYQRB0QYCA4AdxIBlBFXRBgICA+AFxIAZBGnRBgICAgH5xcnJycnIgBUEEdnI2AgQgBCAPQQF2QfwAcSAQQQR0QYAfcSARQQl0QYDgB3EgEkEOdEGAgPgBcSATQRN0QYCAgD5xIBRBGHRBgICAQHFycnJyciAGQQZ2cjYCACAEIAlBAnZBPnEgCkEDdEHAD3EgC0EIdEGA8ANxIAxBDXRBgID8AHEgDUESdEGAgIAfcSAOQRd0QYCAgOAHcSAFQRx0QYCAgIB4cXJycnJyciACQQd2cjYCCCADQQFqIgMgCEcNAAsLC0EACws=";
70
+ const Yt = "v1.5.0-dev-map", le = navigator.userAgent.includes("Mobi"), Ka = "QWERTYUIOPLKJHGFDSAZXCVBNM1234567890qwertyuioplkjhgfdsazxcvbnm`~!@#$%^&*()-_=+\\|]}[{'\";::,<.>//? ", ze = 128, Za = 32, R = 32, ja = 20, qa = 16, js = 64 * 1024, Ja = 1024 * 1e4, eo = 10240 * 1e4, Et = 0.28209479177387814, to = 0, no = 20, $n = 1, ut = 2, Kn = 3, io = 3141592653, Zn = "AGFzbQEAAAAADwhkeWxpbmsuMAEEAAAAAAEeBmABfQF9YAAAYAF9AX9gAX8Bf2ACf38AYAJ/fwF/AhoCA2VudgRleHBmAAADZW52Bm1lbW9yeQIAAAMGBQECAwQFByEEEV9fd2FzbV9jYWxsX2N0b3JzAAEBSAADAXcABAFEAAUKigsFAwABC3IBBH8gALwiBEH///8DcSEBAkAgBEEXdkH/AXEiAkUNACACQfAATQRAIAFBgICABHJB8QAgAmt2IQEMAQsgAkGNAUsEQEGA+AEhA0EAIQEMAQsgAkEKdEGAgAdrIQMLIAMgBEEQdkGAgAJxciABQQ12cgsyAQJ/QcGmFiEBA0AgACACai0AACABQSFscyEBIAJBAWoiAkH8AEcNAAsgASAAKAJ8RwszACAAQQhBBCABQQFGG2pBADYCACAA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FHRBgICA/ABxIAItABsiAkEZdEGAgICAf3FycnJyQQFyNgIMIAQgFUEBdEHwA3EgFkEGdEGA/ABxIBdBC3RBgIAfcSAYQRB0QYCA4AdxIBlBFXRBgICA+AFxIAZBGnRBgICAgH5xcnJycnIgBUEEdnI2AgQgBCAPQQF2QfwAcSAQQQR0QYAfcSARQQl0QYDgB3EgEkEOdEGAgPgBcSATQRN0QYCAgD5xIBRBGHRBgICAQHFycnJyciAGQQZ2cjYCACAEIAlBAnZBPnEgCkEDdEHAD3EgC0EIdEGA8ANxIAxBDXRBgID8AHEgDUESdEGAgIAfcSAOQRd0QYCAgOAHcSAFQRx0QYCAgIB4cXJycnJyciACQQd2cjYCCCADQQFqIgMgCEcNAAsLDAELIAEoAgAiCEEASgRAA0AgASADQRVsaiICLQAaIQkgAi0AGSEKIAItABghCyACLQAXIQwgAi0AFiENIAItABUhDiACLQANIQ8gAi0ADCEQIAItAAshESACLQAKIRIgAi0ACSETIAItAAghFCACLQAUIQUgAi0AEyEVIAItABIhFiACLQARIRcgAi0AECEYIAItAA8hGSACLQAOIQYgACADQQR0aiIEIAItABxBFHRBgICA/ABxIAItABsiAkEZdEGAgICAf3FyQQFyNgIMIAQgFUEBdEHwA3EgFkEGdEGA/ABxIBdBC3RBgIAfcSAYQRB0QYCA4AdxIBlBFXRBgICA+AFxIAZBGnRBgICAgH5xcnJycnIgBUEEdnI2AgQgBCAPQQF2QfwAcSAQQQR0QYAfcSARQQl0QYDgB3EgEkEOdEGAgPgBcSATQRN0QYCAgD5xIBRBGHRBgICAQHFycnJyciAGQQZ2cjYCACAEIAlBAnZBPnEgCkEDdEHAD3EgC0EIdEGA8ANxIAxBDXRBgID8AHEgDUESdEGAgIAfcSAOQRd0QYCAgOAHcSAFQRx0QYCAgIB4cXJycnJyciACQQd2cjYCCCADQQFqIgMgCEcNAAsLC0EACws=";
71
71
  async function so(i) {
72
72
  const e = new Uint32Array(i.buffer), t = new Float32Array(i.buffer), n = new Xa();
73
73
  n.Fixed = String.fromCharCode(i[0]) + String.fromCharCode(i[1]) + String.fromCharCode(i[2]), n.Version = i[3], n.SplatCount = e[1], n.MinX = t[2], n.MaxX = t[3], n.MinY = t[4], n.MaxY = t[5], n.MinZ = t[6], n.MaxZ = t[7], n.MinTopY = t[8], n.MaxTopY = t[9], n.CreateDate = e[10], n.CreaterId = e[11], n.ExclusiveId = e[12], n.ShDegree = i[52], n.Flag1 = i[53], n.Flag2 = i[54], n.Flag3 = i[55], n.Reserve1 = e[14], n.Reserve2 = e[15];
@@ -76,21 +76,21 @@ async function so(i) {
76
76
  a += String.fromCharCode(i[h]);
77
77
  if (n.Comment = a.trim(), n.HashCheck = !0, n.Fixed !== "spx" && n.Version !== 1)
78
78
  return null;
79
- const o = n.CreaterId == 1202056903 ? Zn : Kn, s = WebAssembly.compile(Uint8Array.from(atob(o), (h) => h.charCodeAt(0)).buffer), r = new WebAssembly.Memory({ initial: 1, maximum: 1 }), u = (await WebAssembly.instantiate(await s, { env: { memory: r, expf: Vt } })).exports.H;
79
+ const o = n.CreaterId == 1202056903 ? jn : Zn, s = WebAssembly.compile(Uint8Array.from(atob(o), (h) => h.charCodeAt(0)).buffer), r = new WebAssembly.Memory({ initial: 1, maximum: 1 }), u = (await WebAssembly.instantiate(await s, { env: { memory: r, expf: Vt } })).exports.H;
80
80
  return new Uint8Array(r.buffer).set(i, 0), u(0) && (n.HashCheck = !1), n;
81
81
  }
82
82
  async function fe(i) {
83
- const e = new Uint32Array(i.slice(0, 8).buffer), t = e[0], n = e[1], a = Xn == n, o = ut == n, s = $n == n, r = a || o || s, c = !r, u = n == 20 || r ? Zn : Kn, d = t * (r ? qa : R), l = WebAssembly.compile(Uint8Array.from(atob(u), (C) => C.charCodeAt(0)).buffer), h = Math.floor((d + i.byteLength) / js) + 2, f = new WebAssembly.Memory({ initial: h, maximum: h }), y = (await WebAssembly.instantiate(await l, { env: { memory: f, expf: Vt } })).exports.D, g = new Uint8Array(f.buffer);
83
+ const e = new Uint32Array(i.slice(0, 8).buffer), t = e[0], n = e[1], a = $n == n, o = ut == n, s = Kn == n, r = a || o || s, c = !r, u = n == 20 || r ? jn : Zn, d = t * (r ? qa : R), l = WebAssembly.compile(Uint8Array.from(atob(u), (C) => C.charCodeAt(0)).buffer), h = Math.floor((d + i.byteLength) / js) + 2, f = new WebAssembly.Memory({ initial: h, maximum: h }), y = (await WebAssembly.instantiate(await l, { env: { memory: f, expf: Vt } })).exports.D, g = new Uint8Array(f.buffer);
84
84
  return g.set(i, d), y(0, d) ? { splatCount: t, blockFormat: n, success: !1 } : { splatCount: t, blockFormat: n, success: !0, datas: g.slice(0, d), isSplat: c, isSh: r, isSh1: a, isSh2: o, isSh3: s };
85
85
  }
86
86
  async function bn(i, e) {
87
- const t = WebAssembly.compile(Uint8Array.from(atob(Zn), (u) => u.charCodeAt(0)).buffer), n = Math.floor(e * R / js) + 2, a = new WebAssembly.Memory({ initial: n, maximum: n }), s = (await WebAssembly.instantiate(await t, { env: { memory: a, expf: Vt } })).exports.s, r = new Uint8Array(a.buffer);
87
+ const t = WebAssembly.compile(Uint8Array.from(atob(jn), (u) => u.charCodeAt(0)).buffer), n = Math.floor(e * R / js) + 2, a = new WebAssembly.Memory({ initial: n, maximum: n }), s = (await WebAssembly.instantiate(await t, { env: { memory: a, expf: Vt } })).exports.s, r = new Uint8Array(a.buffer);
88
88
  r.set(i.slice(0, e * R), 0);
89
89
  const c = s(0, e);
90
90
  return c ? (console.error("splat data parser failed:", c), new Uint8Array(0)) : r.slice(0, e * R);
91
91
  }
92
92
  async function ao(i, e, t = !0, n = !0) {
93
- const a = WebAssembly.compile(Uint8Array.from(atob(Kn), (l) => l.charCodeAt(0)).buffer), o = new WebAssembly.Memory({ initial: 1, maximum: 1 }), r = (await WebAssembly.instantiate(await a, { env: { memory: o, expf: Vt } })).exports.w, c = new Uint8Array(o.buffer), u = new Float32Array(c.buffer), d = n ? -1 : 1;
93
+ const a = WebAssembly.compile(Uint8Array.from(atob(Zn), (l) => l.charCodeAt(0)).buffer), o = new WebAssembly.Memory({ initial: 1, maximum: 1 }), r = (await WebAssembly.instantiate(await a, { env: { memory: o, expf: Vt } })).exports.w, c = new Uint8Array(o.buffer), u = new Float32Array(c.buffer), d = n ? -1 : 1;
94
94
  return u[0] = i, t ? u[1] = d * e : u[2] = d * e, r(0, t ? 1 : 0), c.slice(0, R);
95
95
  }
96
96
  function Vt(i) {
@@ -132,17 +132,17 @@ async function oo(i) {
132
132
  const l = async () => {
133
133
  if (c > Qe) {
134
134
  const h = await bn(d, Qe);
135
- Mi(n, h), n.downloadSplatCount += Qe, e += Qe * n.rowLength, n.downloadSize = e, c -= Qe, d = d.slice(Qe * n.rowLength), setTimeout(l);
135
+ Ti(n, h), n.downloadSplatCount += Qe, e += Qe * n.rowLength, n.downloadSize = e, c -= Qe, d = d.slice(Qe * n.rowLength), setTimeout(l);
136
136
  } else {
137
137
  const h = await bn(d, c);
138
- Mi(n, h), n.downloadSplatCount += c, e += c * n.rowLength, n.downloadSize = e, r(u);
138
+ Ti(n, h), n.downloadSplatCount += c, e += c * n.rowLength, n.downloadSize = e, r(u);
139
139
  }
140
140
  };
141
141
  await l();
142
142
  });
143
143
  }
144
144
  }
145
- function Mi(i, e) {
145
+ function Ti(i, e) {
146
146
  let t = e.byteLength / R;
147
147
  const n = Math.min(i.fetchLimit, i.modelSplatCount);
148
148
  i.dataSplatCount + t > n ? (t = n - i.dataSplatCount, i.splatData.set(e.slice(0, t * R), i.dataSplatCount * R)) : i.splatData.set(e, i.dataSplatCount * R);
@@ -153,10 +153,10 @@ function Mi(i, e) {
153
153
  const o = i.header?.MinTopY || 0;
154
154
  i.currentRadius = Math.sqrt(i.maxX * i.maxX + o * o + i.maxZ * i.maxZ), i.aabbCenter = new M((i.minX + i.maxX) / 2, (i.minY + i.maxY) / 2, (i.minZ + i.maxZ) / 2);
155
155
  }
156
- function jn(i) {
156
+ function qn(i) {
157
157
  let e = !1;
158
158
  const t = (p, y, g) => i.on(p, y, g), n = (p, ...y) => i.fire(p, ...y), a = !n(I).renderer;
159
- t(re, () => n(I).debugMode), t(Rn, () => e = !0);
159
+ t(re, () => n(I).debugMode), t(Bn, () => e = !0);
160
160
  let o = 0;
161
161
  (function p() {
162
162
  o++, !e && requestAnimationFrame(p);
@@ -165,7 +165,7 @@ function jn(i) {
165
165
  e || (g > 0 ? !(o % g) && p(o) : p(o), y && y() && requestAnimationFrame(m));
166
166
  };
167
167
  m();
168
- }), t(Pn, (p, y = null, g = 20) => {
168
+ }), t(Ln, (p, y = null, g = 20) => {
169
169
  const m = () => {
170
170
  e || (p(), y && y() && setTimeout(m, g));
171
171
  };
@@ -458,10 +458,10 @@ async function ho(i) {
458
458
  const f = async () => {
459
459
  if (d > je) {
460
460
  const p = await t(a, h, je);
461
- Ti(o, p), o.downloadSplatCount += je, d -= je, h = h.slice(je * o.rowLength), setTimeout(f);
461
+ ki(o, p), o.downloadSplatCount += je, d -= je, h = h.slice(je * o.rowLength), setTimeout(f);
462
462
  } else {
463
463
  const p = await t(a, h, d);
464
- Ti(o, p), o.downloadSplatCount += d, u(l);
464
+ ki(o, p), o.downloadSplatCount += d, u(l);
465
465
  }
466
466
  };
467
467
  await f();
@@ -475,7 +475,7 @@ async function ho(i) {
475
475
  const l = new Uint8Array(s * 24 + 8), h = new Uint8Array(s * 21 + 8), f = new Uint32Array(2);
476
476
  f[0] = s, f[1] = ut, l.set(new Uint8Array(f.buffer), 0);
477
477
  const p = new Uint32Array(2);
478
- p[0] = s, p[1] = $n, h.set(new Uint8Array(p.buffer), 0);
478
+ p[0] = s, p[1] = Kn, h.set(new Uint8Array(p.buffer), 0);
479
479
  for (let m = 0, C = 0; m < s; m++)
480
480
  for (let S = 0; S < 8; S++)
481
481
  for (let v = 0; v < 3; v++)
@@ -499,7 +499,7 @@ async function ho(i) {
499
499
  i.sh12Data.push(f.datas);
500
500
  } else if (a.shDegree == 1) {
501
501
  const l = new Uint8Array(s * 9 + 8), h = new Uint32Array(2);
502
- h[0] = s, h[1] = Xn, l.set(new Uint8Array(h.buffer), 0);
502
+ h[0] = s, h[1] = $n, l.set(new Uint8Array(h.buffer), 0);
503
503
  for (let p = 0, y = 0; p < s; p++)
504
504
  for (let g = 0; g < 3; g++)
505
505
  for (let m = 0; m < 3; m++)
@@ -546,7 +546,7 @@ async function ho(i) {
546
546
  return { headerLength: r + s.length, offsets: d, rowLength: u, vertexCount: c, shDegree: f };
547
547
  }
548
548
  }
549
- function Ti(i, e) {
549
+ function ki(i, e) {
550
550
  let t = e.byteLength / R;
551
551
  const n = Math.min(i.fetchLimit, i.modelSplatCount);
552
552
  i.dataSplatCount + t > n ? (t = n - i.dataSplatCount, i.splatData.set(e.slice(0, t * R), i.dataSplatCount * R)) : i.splatData.set(e, i.dataSplatCount * R);
@@ -626,7 +626,7 @@ async function po(i) {
626
626
  const _ = await fe(b);
627
627
  if (t(a, o, _.datas), a.shDegree === 1) {
628
628
  const T = new Uint8Array(k * 9 + 8), F = new Uint32Array(2);
629
- F[0] = k, F[1] = Xn, T.set(new Uint8Array(F.buffer), 0);
629
+ F[0] = k, F[1] = $n, T.set(new Uint8Array(F.buffer), 0);
630
630
  for (let P = 0, U = 8; P < k; P++)
631
631
  T.set(s.slice(m + (v * z + P) * 9, m + (v * z + P) * 9 + 9), U), U += 9;
632
632
  const E = await fe(T);
@@ -646,7 +646,7 @@ async function po(i) {
646
646
  const E = await fe(T);
647
647
  o.sh12Data.push(E.datas);
648
648
  const P = new Uint8Array(k * 21 + 8), U = new Uint32Array(2);
649
- U[0] = k, U[1] = $n, P.set(new Uint8Array(U.buffer), 0);
649
+ U[0] = k, U[1] = Kn, P.set(new Uint8Array(U.buffer), 0);
650
650
  for (let W = 0, se = 8; W < k; W++)
651
651
  P.set(s.slice(m + (v * z + W) * 45 + 24, m + (v * z + W) * 45 + 45), se), se += 21;
652
652
  const O = await fe(P);
@@ -714,7 +714,7 @@ function go(i) {
714
714
  return 1;
715
715
  const b = 1024 * 2;
716
716
  return Math.ceil(v / b);
717
- }), e(Gn, async () => t(I).bigSceneMode ? 0 : (await h, s.dataShDegree)), e(Qn, async (C, S = !0) => {
717
+ }), e(Nn, async () => t(I).bigSceneMode ? 0 : (await h, s.dataShDegree)), e(Hn, async (C, S = !0) => {
718
718
  try {
719
719
  await h;
720
720
  const v = !!s.header?.Flag2;
@@ -768,7 +768,7 @@ function go(i) {
768
768
  if (S.version = U, S.txdata = T, S.xyz = P, S.renderSplatCount = s.renderSplatCount, S.visibleSplatCount = s.downloadSplatCount + w, S.modelSplatCount = s.downloadSplatCount + w, S.watermarkCount = x + w, S.minX = s.minX, S.maxX = s.maxX, S.minY = s.minY, S.maxY = s.maxY, S.minZ = s.minZ, S.maxZ = s.maxZ, t(zs, S, s.currentRadius, s.currentRadius), a = U, C && !s.smallSceneUploadDone) {
769
769
  s.smallSceneUploadDone = !0, t(Qs, s.sh12Data), t(Hs, s.sh3Data), s.sh12Data = null, s.sh3Data = null;
770
770
  const O = t(I);
771
- t(Fn, O.shDegree === void 0 ? 3 : O.shDegree), t(gn);
771
+ t(Rn, O.shDegree === void 0 ? 3 : O.shDegree), t(gn);
772
772
  }
773
773
  t(oe, { renderSplatCount: s.renderSplatCount });
774
774
  }
@@ -1166,14 +1166,14 @@ function wo() {
1166
1166
  }
1167
1167
  `;
1168
1168
  }
1169
- const ki = "currentVisibleRadius", Ei = "currentLightRadius", Js = "realFocusPosition", qt = "splatShTexture12", Jt = "splatShTexture3", _i = "performanceNow", vo = "waterMarkColor", Ii = "showWaterMark", en = "splatTexture0", tn = "splatTexture1", Di = "bigSceneMode", Pi = "lightFactor", Li = "debugEffect", Fi = "usingIndex", So = "cycleColor", bo = "splatIndex", Ri = "pointMode", Bi = "markPoint", Ui = "shDegree", ht = "viewport", xn = "opacity", Oi = "focal", zi = "topY";
1169
+ const Ei = "currentVisibleRadius", _i = "currentLightRadius", Js = "realFocusPosition", qt = "splatShTexture12", Jt = "splatShTexture3", Ii = "performanceNow", vo = "waterMarkColor", Di = "showWaterMark", en = "splatTexture0", tn = "splatTexture1", Pi = "bigSceneMode", Li = "lightFactor", Fi = "debugEffect", Ri = "usingIndex", So = "cycleColor", bo = "splatIndex", Bi = "pointMode", Ui = "markPoint", Oi = "shDegree", ht = "viewport", xn = "opacity", zi = "focal", Qi = "topY";
1170
1170
  let Q = 0;
1171
1171
  Q++;
1172
- const Qi = `$${Q++}`;
1172
+ const Hi = `$${Q++}`;
1173
1173
  Q++;
1174
1174
  Q++;
1175
1175
  Q++;
1176
- const Hi = `$${Q++}`, xo = `$${Q++}`, Wi = `$${Q++}`, Co = `$${Q++}`, Mo = `$${Q++}`, To = `$${Q++}`, ko = `$${Q++}`, Eo = `$${Q++}`;
1176
+ const Wi = `$${Q++}`, xo = `$${Q++}`, Yi = `$${Q++}`, Co = `$${Q++}`, Mo = `$${Q++}`, To = `$${Q++}`, ko = `$${Q++}`, Eo = `$${Q++}`;
1177
1177
  Q++;
1178
1178
  const _o = `$${Q++}`, Io = `$${Q++}`;
1179
1179
  Q++;
@@ -1189,7 +1189,7 @@ function Ho(i) {
1189
1189
  let a = 0, o = 0;
1190
1190
  const s = [];
1191
1191
  let r = 0;
1192
- t(Ws, () => r), t(ci, async () => {
1192
+ t(Ws, () => r), t(li, async () => {
1193
1193
  const l = new rn();
1194
1194
  l.setIndex([0, 1, 2, 0, 2, 3]);
1195
1195
  const h = new Float32Array(4 * 3), f = new He(h, 3);
@@ -1198,16 +1198,16 @@ function Ho(i) {
1198
1198
  const y = await n(ot);
1199
1199
  if (e) return;
1200
1200
  const g = new Uint32Array(y), m = new ca(g, 1, !1);
1201
- return m.setUsage(la), m.needsUpdate = !0, p.setAttribute(bo, m), p.instanceCount = 0, t(ui, (C, S, v, k) => {
1202
- n(pi, S), g.set(C, 0), m.clearUpdateRanges(), m.addUpdateRange(0, C.length), m.needsUpdate = !0, p.instanceCount = C.length, n(N), n(oe, { sortTime: `${v} / ${Date.now() - k}` });
1203
- }), t(ka, () => p), t(gi, () => {
1201
+ return m.setUsage(la), m.needsUpdate = !0, p.setAttribute(bo, m), p.instanceCount = 0, t(hi, (C, S, v, k) => {
1202
+ n(fi, S), g.set(C, 0), m.clearUpdateRanges(), m.addUpdateRange(0, C.length), m.needsUpdate = !0, p.instanceCount = C.length, n(N), n(oe, { sortTime: `${v} / ${Date.now() - k}` });
1203
+ }), t(ka, () => p), t(mi, () => {
1204
1204
  m.array = null, p.dispose();
1205
1205
  }), p;
1206
- }), t(li, async () => {
1206
+ }), t(di, async () => {
1207
1207
  const l = await n(ot);
1208
1208
  if (e) return;
1209
1209
  const h = 1024 * 2, f = Math.ceil(2 * l / h), p = n(I), y = new _n({
1210
- uniforms: n(ri),
1210
+ uniforms: n(ci),
1211
1211
  vertexShader: mo(),
1212
1212
  fragmentShader: yo(),
1213
1213
  transparent: !0,
@@ -1231,7 +1231,7 @@ function Ho(i) {
1231
1231
  let _ = new Ee(D, h, w, _e, Ie);
1232
1232
  _.internalFormat = "RGBA32UI", _.needsUpdate = !0, y.uniforms[Jt].value = _, y.needsUpdate = !0;
1233
1233
  let T = !1;
1234
- t(hi, (E) => {
1234
+ t(pi, (E) => {
1235
1235
  if (!n(ee)) {
1236
1236
  if (T && !E.renderSplatCount) return;
1237
1237
  T = !E.renderSplatCount;
@@ -1256,57 +1256,57 @@ function Ho(i) {
1256
1256
  U.set(E[W], se), se += E[W].byteLength;
1257
1257
  const O = new Ee(P, h, k, _e, Ie);
1258
1258
  O.internalFormat = "RGBA32UI", O.needsUpdate = !0, y.uniforms[Jt].value = O, y.needsUpdate = !0, n(N);
1259
- }), t(di, () => y), t(Nt, () => {
1260
- const E = n(V), { width: P, height: U } = n(Ue), O = Math.abs(E.projectionMatrix.elements[0]) * 0.5 * P, W = Math.abs(E.projectionMatrix.elements[5]) * 0.5 * U, se = n(di);
1261
- se.uniforms[Oi].value.set(O, W), se.uniformsNeedUpdate = !0, n(N);
1259
+ }), t(ui, () => y), t(Nt, () => {
1260
+ const E = n(V), { width: P, height: U } = n(Ue), O = Math.abs(E.projectionMatrix.elements[0]) * 0.5 * P, W = Math.abs(E.projectionMatrix.elements[5]) * 0.5 * U, se = n(ui);
1261
+ se.uniforms[zi].value.set(O, W), se.uniformsNeedUpdate = !0, n(N);
1262
1262
  }), t(Xt, () => {
1263
1263
  const { width: E, height: P } = n(Ue);
1264
1264
  y.uniforms[ht].value.set(E, P), y.uniformsNeedUpdate = !0, n(N);
1265
- }), t(pi, (E) => {
1266
- y.uniforms[Fi].value = E, y.uniformsNeedUpdate = !0, n(N);
1265
+ }), t(fi, (E) => {
1266
+ y.uniforms[Ri].value = E, y.uniformsNeedUpdate = !0, n(N);
1267
1267
  }), t(nt, (E) => {
1268
1268
  const P = n(I);
1269
- E === void 0 && (E = !P.pointcloudMode), y.uniforms[Ri].value = E ? 1 : 0, y.uniformsNeedUpdate = !0, P.pointcloudMode = E, n(N), P.viewerEvents && (P.viewerEvents.fire(I).pointcloudMode = E);
1270
- }), t(fi, (E) => {
1271
- y.uniforms[Di].value = E ? 1 : 0, y.uniformsNeedUpdate = !0;
1269
+ E === void 0 && (E = !P.pointcloudMode), y.uniforms[Bi].value = E ? 1 : 0, y.uniformsNeedUpdate = !0, P.pointcloudMode = E, n(N), P.viewerEvents && (P.viewerEvents.fire(I).pointcloudMode = E);
1270
+ }), t(gi, (E) => {
1271
+ y.uniforms[Pi].value = E ? 1 : 0, y.uniformsNeedUpdate = !0;
1272
1272
  const P = n(I);
1273
1273
  P.bigSceneMode = E, n(N);
1274
1274
  }), t(rt, (E) => {
1275
- y.uniforms[Pi].value = E, y.uniformsNeedUpdate = !0;
1275
+ y.uniforms[Li].value = E, y.uniformsNeedUpdate = !0;
1276
1276
  const P = n(I);
1277
1277
  P.lightFactor = E, n(N);
1278
1278
  });
1279
1279
  let F = !1;
1280
1280
  return t(ms, (E) => {
1281
- n(ee) || F || (F = !0, y.uniforms[zi].value = E, y.uniformsNeedUpdate = !0, n(N));
1281
+ n(ee) || F || (F = !0, y.uniforms[Qi].value = E, y.uniformsNeedUpdate = !0, n(N));
1282
1282
  }), t(gt, (E) => {
1283
- y.uniforms[ki].value = E, y.uniformsNeedUpdate = !0, n(N);
1284
- }), t($t, (E) => {
1285
1283
  y.uniforms[Ei].value = E, y.uniformsNeedUpdate = !0, n(N);
1284
+ }), t($t, (E) => {
1285
+ y.uniforms[_i].value = E, y.uniformsNeedUpdate = !0, n(N);
1286
1286
  }), t(Ct, (E, P, U, O) => {
1287
- y.uniforms[Bi].value = [E, P, U, O ? 1 : -1], y.uniformsNeedUpdate = !0, n(N);
1287
+ y.uniforms[Ui].value = [E, P, U, O ? 1 : -1], y.uniformsNeedUpdate = !0, n(N);
1288
1288
  }), t(hn, (E = !0) => {
1289
- y.uniforms[Ii].value = E ? 1 : 0, y.uniformsNeedUpdate = !0, n(N);
1289
+ y.uniforms[Di].value = E ? 1 : 0, y.uniformsNeedUpdate = !0, n(N);
1290
1290
  }), t(ys, (E) => {
1291
- y.uniforms[_i].value = E, y.uniformsNeedUpdate = !0;
1291
+ y.uniforms[Ii].value = E, y.uniformsNeedUpdate = !0;
1292
1292
  }), t(Ea, (E) => {
1293
- y.uniforms[Li].value = E, y.uniformsNeedUpdate = !0;
1294
- }), t(Fn, async (E) => {
1293
+ y.uniforms[Fi].value = E, y.uniformsNeedUpdate = !0;
1294
+ }), t(Rn, async (E) => {
1295
1295
  if (n(ee)) return;
1296
- const P = await n(Gn);
1297
- E < 0 && (E = 0), E > P && (E = P), r = E, y.uniforms[Ui].value = E, y.uniformsNeedUpdate = !0, n(oe, { shDegree: `${E} / max ${P}` }), n(N);
1298
- }), t(mi, () => {
1296
+ const P = await n(Nn);
1297
+ E < 0 && (E = 0), E > P && (E = P), r = E, y.uniforms[Oi].value = E, y.uniformsNeedUpdate = !0, n(oe, { shDegree: `${E} / max ${P}` }), n(N);
1298
+ }), t(yi, () => {
1299
1299
  y.dispose(), m && m.dispose(), v && v.dispose(), x && x.dispose(), _ && _.dispose();
1300
1300
  }), y;
1301
1301
  }), t(gs, async () => {
1302
- const l = new te(await n(ci), await n(li));
1303
- return n(Nt), n(Xt), n(fi, n(ee)), n(nt, n(pn)), l;
1302
+ const l = new te(await n(li), await n(di));
1303
+ return n(Nt), n(Xt), n(gi, n(ee)), n(nt, n(pn)), l;
1304
1304
  });
1305
1305
  function c() {
1306
1306
  n(Nt), n(Xt);
1307
1307
  }
1308
1308
  window.addEventListener("resize", c), t(xs, () => {
1309
- e = !0, window.removeEventListener("resize", c), n(gi), n(mi);
1309
+ e = !0, window.removeEventListener("resize", c), n(mi), n(yi);
1310
1310
  }), t(Cs, async () => {
1311
1311
  if (n(ee)) return;
1312
1312
  let l = 0.01, h = 0.01, f = !1, p = 0;
@@ -1335,33 +1335,33 @@ function Ho(i) {
1335
1335
  },
1336
1336
  () => !e && !p.stop
1337
1337
  );
1338
- }), t(ri, () => ({
1338
+ }), t(ci, () => ({
1339
1339
  [en]: { type: "t", value: null },
1340
1340
  [tn]: { type: "t", value: null },
1341
1341
  [qt]: { type: "t", value: null },
1342
1342
  [Jt]: { type: "t", value: null },
1343
- [Oi]: { type: "v2", value: new j() },
1343
+ [zi]: { type: "v2", value: new j() },
1344
1344
  [ht]: { type: "v2", value: new j() },
1345
- [Fi]: { type: "int", value: 0 },
1346
1345
  [Ri]: { type: "int", value: 0 },
1347
- [Li]: { type: "int", value: 1 },
1348
- [Di]: { type: "int", value: 0 },
1349
- [Ui]: { type: "int", value: 0 },
1350
- [Pi]: { type: "float", value: 1 },
1351
- [zi]: { type: "float", value: 0 },
1352
- [ki]: { type: "float", value: 0 },
1346
+ [Bi]: { type: "int", value: 0 },
1347
+ [Fi]: { type: "int", value: 1 },
1348
+ [Pi]: { type: "int", value: 0 },
1349
+ [Oi]: { type: "int", value: 0 },
1350
+ [Li]: { type: "float", value: 1 },
1351
+ [Qi]: { type: "float", value: 0 },
1353
1352
  [Ei]: { type: "float", value: 0 },
1354
- [Bi]: { type: "v4", value: new ve(0, 0, 0, -1) },
1355
- [_i]: { type: "float", value: performance.now() },
1353
+ [_i]: { type: "float", value: 0 },
1354
+ [Ui]: { type: "v4", value: new ve(0, 0, 0, -1) },
1355
+ [Ii]: { type: "float", value: performance.now() },
1356
1356
  [vo]: { type: "v4", value: new ve(1, 1, 0, 0.5) },
1357
- [Ii]: { type: "int", value: 1 }
1357
+ [Di]: { type: "int", value: 1 }
1358
1358
  }));
1359
1359
  const u = n(cs);
1360
1360
  u.onmessage = (l) => {
1361
1361
  const h = l.data;
1362
- h[Qi] && n(ui, h[Qi], h[Hi], h[ko], h[To], h[Wi]);
1362
+ h[Hi] && n(hi, h[Hi], h[Wi], h[ko], h[To], h[Yi]);
1363
1363
  }, t(zs, (l, h, f) => {
1364
- n(ee) || (o = h, a = f), n(hi, l);
1364
+ n(ee) || (o = h, a = f), n(pi, l);
1365
1365
  });
1366
1366
  function d(l) {
1367
1367
  const h = l.xyz.slice(0);
@@ -1370,9 +1370,9 @@ function Ho(i) {
1370
1370
  [Eo]: !0,
1371
1371
  [Po]: h,
1372
1372
  [Qo]: l.watermarkCount,
1373
- [Hi]: l.index,
1373
+ [Wi]: l.index,
1374
1374
  [xo]: l.version,
1375
- [Wi]: l.renderSplatCount,
1375
+ [Yi]: l.renderSplatCount,
1376
1376
  [Co]: l.visibleSplatCount,
1377
1377
  [Mo]: l.modelSplatCount,
1378
1378
  [Lo]: l.minX,
@@ -1423,7 +1423,7 @@ function Wo(i) {
1423
1423
  return m;
1424
1424
  });
1425
1425
  }
1426
- function qn(i) {
1426
+ function Jn(i) {
1427
1427
  const e = (t, n, a) => i.on(t, n, a);
1428
1428
  e(Pe, (t) => {
1429
1429
  t.url;
@@ -1473,22 +1473,22 @@ function Vo(i) {
1473
1473
  const e = { ...i };
1474
1474
  return e.bigSceneMode ?? (e.bigSceneMode = !1), e.pointcloudMode ?? (e.pointcloudMode = !e.bigSceneMode), e.lightFactor ?? (e.lightFactor = 1), e.name ?? (e.name = ""), e.showWatermark ?? (e.showWatermark = !0), e;
1475
1475
  }
1476
- function Yi(i) {
1476
+ function Vi(i) {
1477
1477
  const e = { ...i };
1478
- return e.position = e.position ? [...e.position] : [0, -5, 15], e.lookAt = e.lookAt ? [...e.lookAt] : [0, 0, 0], e.lookUp = e.lookUp ? [...e.lookUp] : [0, -1, 0], e.fov ?? (e.fov = 45), e.near ?? (e.near = 1e-3), e.far ?? (e.far = 1e3), e.enableDamping ?? (e.enableDamping = !0), e.autoRotate ?? (e.autoRotate = !0), e.enableZoom ?? (e.enableZoom = !0), e.enableRotate ?? (e.enableRotate = !0), e.enablePan ?? (e.enablePan = !0), e.enableKeyboard ?? (e.enableKeyboard = !0), e.bigSceneMode ?? (e.bigSceneMode = !1), e.pointcloudMode ?? (e.pointcloudMode = !e.bigSceneMode), e.lightFactor ?? (e.lightFactor = 1.1), e.maxRenderCountOfMobile ?? (e.maxRenderCountOfMobile = e.bigSceneMode ? 256 * 1e4 : 384 * 10240), e.maxRenderCountOfPc ?? (e.maxRenderCountOfPc = e.bigSceneMode ? 320 * 1e4 : 384 * 1e4), e.debugMode ?? (e.debugMode = location.protocol === "http:" || /^test\./.test(location.host)), e.markMode ?? (e.markMode = !1), e.markVisible ?? (e.markVisible = !0), e.meterScale ?? (e.meterScale = 1), e;
1478
+ return e.position = e.position ? [...e.position] : [0, -5, 15], e.lookAt = e.lookAt ? [...e.lookAt] : [0, 0, 0], e.lookUp = e.lookUp ? [...e.lookUp] : [0, -1, 0], e.fov ?? (e.fov = 45), e.near ?? (e.near = 1e-3), e.far ?? (e.far = 1e3), e.enableDamping ?? (e.enableDamping = !0), e.autoRotate ?? (e.autoRotate = !0), e.enableZoom ?? (e.enableZoom = !0), e.enableRotate ?? (e.enableRotate = !0), e.enablePan ?? (e.enablePan = !0), e.enableKeyboard ?? (e.enableKeyboard = !0), e.bigSceneMode ?? (e.bigSceneMode = !1), e.pointcloudMode ?? (e.pointcloudMode = !e.bigSceneMode), e.lightFactor ?? (e.lightFactor = 1.1), e.maxRenderCountOfMobile ?? (e.maxRenderCountOfMobile = e.bigSceneMode ? 256 * 1e4 : 384 * 10240), e.maxRenderCountOfPc ?? (e.maxRenderCountOfPc = e.bigSceneMode ? 320 * 1e4 : 384 * 1e4), e.debugMode ?? (e.debugMode = location.protocol === "http:" || /^test\./.test(location.host)), e.markMode ?? (e.markMode = !1), e.markVisible ?? (e.markVisible = !0), e.meterScale ?? (e.meterScale = 1), e.background ?? (e.background = "#000000"), e;
1479
1479
  }
1480
1480
  function Go(i) {
1481
1481
  let e;
1482
1482
  i.root ? e = typeof i.root == "string" ? document.querySelector(i.root) || document.querySelector("#gsviewer") : i.root : e = document.querySelector("#gsviewer"), e || (e = document.createElement("div"), e.id = "gsviewer", document.body.appendChild(e));
1483
1483
  let t = null;
1484
- return i.renderer ? t = i.renderer : (t = new es({ antialias: !1, stencil: !0, logarithmicDepthBuffer: !0, precision: "highp" }), t.setSize(e.clientWidth, e.clientHeight), t.setPixelRatio(Math.min(devicePixelRatio, 2)), i.renderer = t), t.domElement.classList.add("gsviewer-canvas"), e.appendChild(t.domElement), t;
1484
+ return i.renderer ? t = i.renderer : (t = new ts({ antialias: !1, stencil: !0, logarithmicDepthBuffer: !0, precision: "highp" }), t.setSize(e.clientWidth, e.clientHeight), t.setPixelRatio(Math.min(devicePixelRatio, 2)), i.renderer = t), t.domElement.classList.add("gsviewer-canvas"), e.appendChild(t.domElement), t;
1485
1485
  }
1486
1486
  function No(i) {
1487
1487
  let e = i.camera;
1488
1488
  if (!e) {
1489
1489
  const t = i.renderer.domElement, n = t.width / t.height;
1490
1490
  let a = new M().fromArray(i.lookUp), o = new M().fromArray(i.lookAt), s = new M().fromArray(i.position);
1491
- e = new ts(i.fov, n, i.near, i.far), e.position.copy(s), e.up.copy(a).normalize(), e.lookAt(o), i.camera = e;
1491
+ e = new ns(i.fov, n, i.near, i.far), e.position.copy(s), e.up.copy(a).normalize(), e.lookAt(o), i.camera = e;
1492
1492
  }
1493
1493
  return i.camera;
1494
1494
  }
@@ -1507,8 +1507,8 @@ class pe extends te {
1507
1507
  */
1508
1508
  constructor(e) {
1509
1509
  super(), this.isSplatMesh = !0, this.disposed = !1;
1510
- const t = new Nn(), n = (r, c, u) => t.on(r, c, u), a = (r, ...c) => t.fire(r, ...c), o = Vo(e), s = o.controls.object;
1511
- n(I, () => o), n(Ke, () => o.renderer.domElement), n(V, () => s), n(ft, () => s.fov), n(Be, (r = !1) => r ? s.position.clone() : s.position), n(Ce, (r = !1) => r ? o.controls.target.clone() : o.controls.target), n(hs, () => s.projectionMatrix.clone().multiply(s.matrixWorldInverse).multiply(this.matrix).toArray()), n(Ca, () => s.projectionMatrix.clone().multiply(s.matrixWorldInverse)), n(Qa, () => s.getWorldDirection(new M()).toArray()), n(ct, () => o.renderer), n(B, () => o.scene), n(ee, () => o.bigSceneMode), n(pn, () => o.pointcloudMode), n(ye, () => this), n(N, () => o.viewerEvents?.fire(J)), jn(t), qn(t), go(t), $o(t), Ho(t), Wo(t), this.name = `${o.name || this.id}`, this.events = t, this.opts = o, (async () => (this.copy(await t.fire(gs)), o.matrix && this.applyMatrix4(o.matrix), this.frustumCulled = !1, this.onBeforeRender = () => {
1510
+ const t = new Xn(), n = (r, c, u) => t.on(r, c, u), a = (r, ...c) => t.fire(r, ...c), o = Vo(e), s = o.controls.object;
1511
+ n(I, () => o), n(Ke, () => o.renderer.domElement), n(V, () => s), n(ft, () => s.fov), n(Be, (r = !1) => r ? s.position.clone() : s.position), n(Ce, (r = !1) => r ? o.controls.target.clone() : o.controls.target), n(hs, () => s.projectionMatrix.clone().multiply(s.matrixWorldInverse).multiply(this.matrix).toArray()), n(Ca, () => s.projectionMatrix.clone().multiply(s.matrixWorldInverse)), n(Qa, () => s.getWorldDirection(new M()).toArray()), n(ct, () => o.renderer), n(B, () => o.scene), n(ee, () => o.bigSceneMode), n(pn, () => o.pointcloudMode), n(ye, () => this), n(N, () => o.viewerEvents?.fire(J)), qn(t), Jn(t), go(t), $o(t), Ho(t), Wo(t), this.name = `${o.name || this.id}`, this.events = t, this.opts = o, (async () => (this.copy(await t.fire(gs)), o.matrix && this.applyMatrix4(o.matrix), this.frustumCulled = !1, this.onBeforeRender = () => {
1512
1512
  a(ps), a(ys, performance.now());
1513
1513
  }, this.onAfterRender = () => {
1514
1514
  a(Ss, 1e4) && a(N);
@@ -1543,15 +1543,15 @@ class pe extends te {
1543
1543
  if (this.disposed) return;
1544
1544
  this.disposed = !0;
1545
1545
  const e = (t, ...n) => this.events.fire(t, ...n);
1546
- e(ke, this), e(B).remove(this), e(Rn), e(bs), e(fs), e(xs), this.events.clear(), this.events = null, this.opts = null, this.onAfterRender = null;
1546
+ e(ke, this), e(B).remove(this), e(Bn), e(bs), e(fs), e(xs), this.events.clear(), this.events = null, this.opts = null, this.onAfterRender = null;
1547
1547
  }
1548
1548
  }
1549
1549
  class Ko extends In {
1550
1550
  constructor(e = new M(0, 0, 1), t = new M(0, 0, 0), n = 1, a = 0.1, o = 16776960, s = n * 0.2, r = s * 0.2) {
1551
1551
  super(), this._axis = new M(), this.type = "ArrowHelper";
1552
- const c = new ei(a, a, n, 32);
1552
+ const c = new ti(a, a, n, 32);
1553
1553
  c.translate(0, n / 2, 0);
1554
- const u = new ei(0, r, s, 32);
1554
+ const u = new ti(0, r, s, 32);
1555
1555
  u.translate(0, n, 0), this.position.copy(t);
1556
1556
  const d = new xe({ color: o, toneMapped: !1 });
1557
1557
  d.side = we, this.line = new te(c, d), this.line.matrixAutoUpdate = !1, this.line.ignoreIntersect = !0, this.add(this.line);
@@ -1591,14 +1591,14 @@ function Zo(i) {
1591
1591
  const r = new M(0, 0, 0), c = 0.5, u = 0.01, d = 16777062, l = 0.1, h = 0.03, f = new Ko(s, r, c, u, d, l, h), p = new In();
1592
1592
  p.add(o), p.add(f), p.renderOrder = 99999, o.renderOrder = 99999, p.visible = !1, t(B).add(p), e(La, () => p), e(Tt, (y) => {
1593
1593
  t(Rt, !0), p.visible = y === void 0 ? !p.visible : y, t(J);
1594
- }), e(Un, () => p.visible), e(Rt, (y = !1) => {
1594
+ }), e(On, () => p.visible), e(Rt, (y = !1) => {
1595
1595
  if (y || p.visible) {
1596
1596
  const g = new _t(), m = new M(0, -1, 0);
1597
1597
  g.setFromUnitVectors(m, t(Ne)), p.position.copy(t(Ce)), p.quaternion.copy(g);
1598
1598
  }
1599
1599
  });
1600
1600
  }
1601
- const Vi = { type: "change" }, Jn = { type: "start" }, ea = { type: "end" }, At = new pa(), Gi = new fa(), jo = Math.cos(70 * be.DEG2RAD), G = new M(), ae = 2 * Math.PI, H = {
1601
+ const Gi = { type: "change" }, ei = { type: "start" }, ea = { type: "end" }, At = new pa(), Ni = new fa(), jo = Math.cos(70 * be.DEG2RAD), G = new M(), ae = 2 * Math.PI, H = {
1602
1602
  NONE: -1,
1603
1603
  ROTATE: 0,
1604
1604
  DOLLY: 1,
@@ -1610,7 +1610,7 @@ const Vi = { type: "change" }, Jn = { type: "start" }, ea = { type: "end" }, At
1610
1610
  }, nn = 1e-6;
1611
1611
  class ta extends ha {
1612
1612
  constructor(e, t = null) {
1613
- super(e, t), this.state = H.NONE, this.enabled = !0, this.target = new M(), this.cursor = new M(), 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: Ae.ROTATE, MIDDLE: Ae.DOLLY, RIGHT: Ae.PAN }, this.touches = { ONE: Se.ROTATE, TWO: Se.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new M(), this._lastQuaternion = new _t(), this._lastTargetPosition = new M(), this._quat = new _t().setFromUnitVectors(e.up, new M(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new ti(), this._sphericalDelta = new ti(), this._scale = 1, this._panOffset = new M(), this._rotateStart = new j(), this._rotateEnd = new j(), this._rotateDelta = new j(), this._panStart = new j(), this._panEnd = new j(), this._panDelta = new j(), this._dollyStart = new j(), this._dollyEnd = new j(), this._dollyDelta = new j(), this._dollyDirection = new M(), this._mouse = new j(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Jo.bind(this), this._onPointerDown = qo.bind(this), this._onPointerUp = er.bind(this), this._onContextMenu = rr.bind(this), this._onMouseWheel = ir.bind(this), this._onKeyDown = sr.bind(this), this._onTouchStart = ar.bind(this), this._onTouchMove = or.bind(this), this._onMouseDown = tr.bind(this), this._onMouseMove = nr.bind(this), this._interceptControlDown = cr.bind(this), this._interceptControlUp = lr.bind(this), this.domElement !== null && this.connect(), this.update();
1613
+ super(e, t), this.state = H.NONE, this.enabled = !0, this.target = new M(), this.cursor = new M(), 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: Ae.ROTATE, MIDDLE: Ae.DOLLY, RIGHT: Ae.PAN }, this.touches = { ONE: Se.ROTATE, TWO: Se.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new M(), this._lastQuaternion = new _t(), this._lastTargetPosition = new M(), this._quat = new _t().setFromUnitVectors(e.up, new M(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new ni(), this._sphericalDelta = new ni(), this._scale = 1, this._panOffset = new M(), this._rotateStart = new j(), this._rotateEnd = new j(), this._rotateDelta = new j(), this._panStart = new j(), this._panEnd = new j(), this._panDelta = new j(), this._dollyStart = new j(), this._dollyEnd = new j(), this._dollyDelta = new j(), this._dollyDirection = new M(), this._mouse = new j(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Jo.bind(this), this._onPointerDown = qo.bind(this), this._onPointerUp = er.bind(this), this._onContextMenu = rr.bind(this), this._onMouseWheel = ir.bind(this), this._onKeyDown = sr.bind(this), this._onTouchStart = ar.bind(this), this._onTouchMove = or.bind(this), this._onMouseDown = tr.bind(this), this._onMouseMove = nr.bind(this), this._interceptControlDown = cr.bind(this), this._interceptControlUp = lr.bind(this), this.domElement !== null && this.connect(), this.update();
1614
1614
  }
1615
1615
  connect() {
1616
1616
  this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -1640,7 +1640,7 @@ class ta extends ha {
1640
1640
  this.target0.copy(this.target), this.position0.copy(this.object.position), this.zoom0 = this.object.zoom;
1641
1641
  }
1642
1642
  reset() {
1643
- this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Vi), this.update(), this.state = H.NONE;
1643
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Gi), this.update(), this.state = H.NONE;
1644
1644
  }
1645
1645
  update(e = null) {
1646
1646
  const t = this.object.position;
@@ -1670,12 +1670,12 @@ class ta extends ha {
1670
1670
  u.unproject(this.object), this.object.position.sub(u).add(r), this.object.updateMatrixWorld(), s = G.length();
1671
1671
  } else
1672
1672
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
1673
- s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (At.origin.copy(this.object.position), At.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(At.direction)) < jo ? this.object.lookAt(this.target) : (Gi.setFromNormalAndCoplanarPoint(this.object.up, this.target), At.intersectPlane(Gi, this.target))));
1673
+ s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (At.origin.copy(this.object.position), At.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(At.direction)) < jo ? this.object.lookAt(this.target) : (Ni.setFromNormalAndCoplanarPoint(this.object.up, this.target), At.intersectPlane(Ni, this.target))));
1674
1674
  } else if (this.object.isOrthographicCamera) {
1675
1675
  const s = this.object.zoom;
1676
1676
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), s !== this.object.zoom && (this.object.updateProjectionMatrix(), o = !0);
1677
1677
  }
1678
- return this._scale = 1, this._performCursorZoom = !1, o || this._lastPosition.distanceToSquared(this.object.position) > nn || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > nn || this._lastTargetPosition.distanceToSquared(this.target) > nn ? (this.dispatchEvent(Vi), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
1678
+ return this._scale = 1, this._performCursorZoom = !1, o || this._lastPosition.distanceToSquared(this.object.position) > nn || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > nn || this._lastTargetPosition.distanceToSquared(this.target) > nn ? (this.dispatchEvent(Gi), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
1679
1679
  }
1680
1680
  _getAutoRotationAngle(e) {
1681
1681
  return e !== null ? ae / 60 * this.autoRotateSpeed * e : ae / 60 / 60 * this.autoRotateSpeed;
@@ -1925,7 +1925,7 @@ function tr(i) {
1925
1925
  default:
1926
1926
  this.state = H.NONE;
1927
1927
  }
1928
- this.state !== H.NONE && this.dispatchEvent(Jn);
1928
+ this.state !== H.NONE && this.dispatchEvent(ei);
1929
1929
  }
1930
1930
  function nr(i) {
1931
1931
  switch (this.state) {
@@ -1944,7 +1944,7 @@ function nr(i) {
1944
1944
  }
1945
1945
  }
1946
1946
  function ir(i) {
1947
- this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (i.preventDefault(), this.dispatchEvent(Jn), this._handleMouseWheel(this._customWheelEvent(i)), this.dispatchEvent(ea));
1947
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (i.preventDefault(), this.dispatchEvent(ei), this._handleMouseWheel(this._customWheelEvent(i)), this.dispatchEvent(ea));
1948
1948
  }
1949
1949
  function sr(i) {
1950
1950
  this.enabled !== !1 && this._handleKeyDown(i);
@@ -1982,7 +1982,7 @@ function ar(i) {
1982
1982
  default:
1983
1983
  this.state = H.NONE;
1984
1984
  }
1985
- this.state !== H.NONE && this.dispatchEvent(Jn);
1985
+ this.state !== H.NONE && this.dispatchEvent(ei);
1986
1986
  }
1987
1987
  function or(i) {
1988
1988
  switch (this._trackPointer(i), this.state) {
@@ -2038,12 +2038,12 @@ class ur extends ta {
2038
2038
  super(e, t), this.screenSpacePanning = !1, this.mouseButtons = { LEFT: Ae.PAN, MIDDLE: Ae.DOLLY, RIGHT: Ae.ROTATE }, this.touches = { ONE: Se.PAN, TWO: Se.DOLLY_ROTATE };
2039
2039
  }
2040
2040
  }
2041
- const Ni = new Dn(), wt = new M();
2041
+ const Xi = new Dn(), wt = new M();
2042
2042
  class na extends rn {
2043
2043
  constructor() {
2044
2044
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
2045
2045
  const e = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], t = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], n = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
2046
- this.setIndex(n), this.setAttribute("position", new ni(e, 3)), this.setAttribute("uv", new ni(t, 2));
2046
+ this.setIndex(n), this.setAttribute("position", new ii(e, 3)), this.setAttribute("uv", new ii(t, 2));
2047
2047
  }
2048
2048
  applyMatrix4(e) {
2049
2049
  const t = this.attributes.instanceStart, n = this.attributes.instanceEnd;
@@ -2077,7 +2077,7 @@ class na extends rn {
2077
2077
  computeBoundingBox() {
2078
2078
  this.boundingBox === null && (this.boundingBox = new Dn());
2079
2079
  const e = this.attributes.instanceStart, t = this.attributes.instanceEnd;
2080
- e !== void 0 && t !== void 0 && (this.boundingBox.setFromBufferAttribute(e), Ni.setFromBufferAttribute(t), this.boundingBox.union(Ni));
2080
+ e !== void 0 && t !== void 0 && (this.boundingBox.setFromBufferAttribute(e), Xi.setFromBufferAttribute(t), this.boundingBox.union(Xi));
2081
2081
  }
2082
2082
  computeBoundingSphere() {
2083
2083
  this.boundingSphere === null && (this.boundingSphere = new tt()), this.boundingBox === null && this.computeBoundingBox();
@@ -2108,7 +2108,7 @@ xt.line = {
2108
2108
  // todo FIX - maybe change to totalSize
2109
2109
  };
2110
2110
  bt.line = {
2111
- uniforms: ns.merge([
2111
+ uniforms: is.merge([
2112
2112
  xt.common,
2113
2113
  xt.fog,
2114
2114
  xt.line
@@ -2496,7 +2496,7 @@ class Xe extends _n {
2496
2496
  constructor(e) {
2497
2497
  super({
2498
2498
  type: "LineMaterial",
2499
- uniforms: ns.clone(bt.line.uniforms),
2499
+ uniforms: is.clone(bt.line.uniforms),
2500
2500
  vertexShader: bt.line.vertexShader,
2501
2501
  fragmentShader: bt.line.fragmentShader,
2502
2502
  clipping: !0
@@ -2570,9 +2570,9 @@ class Xe extends _n {
2570
2570
  this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
2571
2571
  }
2572
2572
  }
2573
- const sn = new ve(), Xi = new M(), $i = new M(), $ = new ve(), K = new ve(), de = new ve(), an = new M(), on = new $e(), Z = new ma(), Ki = new M(), vt = new Dn(), St = new tt(), ue = new ve();
2573
+ const sn = new ve(), $i = new M(), Ki = new M(), $ = new ve(), K = new ve(), de = new ve(), an = new M(), on = new $e(), Z = new ma(), Zi = new M(), vt = new Dn(), St = new tt(), ue = new ve();
2574
2574
  let ge, Fe;
2575
- function Zi(i, e, t) {
2575
+ function ji(i, e, t) {
2576
2576
  return ue.set(0, 0, -e, 1).applyMatrix4(i.projectionMatrix), ue.multiplyScalar(1 / ue.w), ue.x = Fe / t.width, ue.y = Fe / t.height, ue.applyMatrix4(i.projectionMatrixInverse), ue.multiplyScalar(1 / ue.w), Math.abs(Math.max(ue.x, ue.y));
2577
2577
  }
2578
2578
  function hr(i, e) {
@@ -2607,8 +2607,8 @@ function pr(i, e, t) {
2607
2607
  }
2608
2608
  $.applyMatrix4(n), K.applyMatrix4(n), $.multiplyScalar(1 / $.w), K.multiplyScalar(1 / K.w), $.x *= o.x / 2, $.y *= o.y / 2, K.x *= o.x / 2, K.y *= o.y / 2, Z.start.copy($), Z.start.z = 0, Z.end.copy(K), Z.end.z = 0;
2609
2609
  const y = Z.closestPointToPointParameter(an, !0);
2610
- Z.at(y, Ki);
2611
- const g = be.lerp($.z, K.z, y), m = g >= -1 && g <= 1, C = an.distanceTo(Ki) < Fe * 0.5;
2610
+ Z.at(y, Zi);
2611
+ const g = be.lerp($.z, K.z, y), m = g >= -1 && g <= 1, C = an.distanceTo(Zi) < Fe * 0.5;
2612
2612
  if (m && C) {
2613
2613
  Z.start.fromBufferAttribute(c, h), Z.end.fromBufferAttribute(u, h), Z.start.applyMatrix4(s), Z.end.applyMatrix4(s);
2614
2614
  const S = new M(), v = new M();
@@ -2633,7 +2633,7 @@ class fr extends te {
2633
2633
  computeLineDistances() {
2634
2634
  const e = this.geometry, t = e.attributes.instanceStart, n = e.attributes.instanceEnd, a = new Float32Array(2 * t.count);
2635
2635
  for (let s = 0, r = 0, c = t.count; s < c; s++, r += 2)
2636
- Xi.fromBufferAttribute(t, s), $i.fromBufferAttribute(n, s), a[r] = r === 0 ? 0 : a[r - 1], a[r + 1] = a[r] + Xi.distanceTo($i);
2636
+ $i.fromBufferAttribute(t, s), Ki.fromBufferAttribute(n, s), a[r] = r === 0 ? 0 : a[r - 1], a[r + 1] = a[r] + $i.distanceTo(Ki);
2637
2637
  const o = new cn(a, 2, 1);
2638
2638
  return e.setAttribute("instanceDistanceStart", new We(o, 1, 0)), e.setAttribute("instanceDistanceEnd", new We(o, 1, 1)), this;
2639
2639
  }
@@ -2649,7 +2649,7 @@ class fr extends te {
2649
2649
  u = Fe * 0.5;
2650
2650
  else {
2651
2651
  const l = Math.max(a.near, St.distanceToPoint(ge.origin));
2652
- u = Zi(a, l, c.resolution);
2652
+ u = ji(a, l, c.resolution);
2653
2653
  }
2654
2654
  if (St.radius += u, ge.intersectsSphere(St) === !1)
2655
2655
  return;
@@ -2659,7 +2659,7 @@ class fr extends te {
2659
2659
  d = Fe * 0.5;
2660
2660
  else {
2661
2661
  const l = Math.max(a.near, vt.distanceToPoint(ge.origin));
2662
- d = Zi(a, l, c.resolution);
2662
+ d = ji(a, l, c.resolution);
2663
2663
  }
2664
2664
  vt.expandByScalar(d), ge.intersectsBox(vt) !== !1 && (n ? hr(this, t) : pr(this, a, t));
2665
2665
  }
@@ -2700,7 +2700,7 @@ class Re extends fr {
2700
2700
  super(e, t), this.isLine2 = !0, this.type = "Line2";
2701
2701
  }
2702
2702
  }
2703
- const ji = new M(), gr = new _t(), qi = new M();
2703
+ const qi = new M(), gr = new _t(), Ji = new M();
2704
2704
  class mr extends In {
2705
2705
  constructor(e = document.createElement("div")) {
2706
2706
  super(), this.isCSS3DObject = !0, this.element = e, this.element.style.position = "absolute", this.element.style.pointerEvents = "auto", this.element.style.userSelect = "none", this.element.setAttribute("draggable", !1), this.addEventListener("removed", function() {
@@ -2775,7 +2775,7 @@ class Ar {
2775
2775
  if (k.style.display = v === !0 ? "" : "none", v === !0) {
2776
2776
  g.onBeforeRender(t, m, C);
2777
2777
  let b;
2778
- g.isCSS3DSprite ? (he.copy(C.matrixWorldInverse), he.transpose(), g.rotation2D !== 0 && he.multiply(yr.makeRotationZ(g.rotation2D)), g.matrixWorld.decompose(ji, gr, qi), he.setPosition(ji), he.scale(qi), he.elements[3] = 0, he.elements[7] = 0, he.elements[11] = 0, he.elements[15] = 1, b = f(he)) : b = f(g.matrixWorld);
2778
+ g.isCSS3DSprite ? (he.copy(C.matrixWorldInverse), he.transpose(), g.rotation2D !== 0 && he.multiply(yr.makeRotationZ(g.rotation2D)), g.matrixWorld.decompose(qi, gr, Ji), he.setPosition(qi), he.scale(Ji), he.elements[3] = 0, he.elements[7] = 0, he.elements[11] = 0, he.elements[15] = 1, b = f(he)) : b = f(g.matrixWorld);
2779
2779
  const x = r.objects.get(g);
2780
2780
  if (x === void 0 || x.style !== b) {
2781
2781
  k.style.transform = b;
@@ -3511,7 +3511,7 @@ let wr = class {
3511
3511
  function vr(i) {
3512
3512
  const e = (w, D, _) => i.on(w, D, _), t = (w, ...D) => i.fire(w, ...D), n = t(Ke);
3513
3513
  let a = /* @__PURE__ */ new Set(), o, s = new wr(), r;
3514
- e(oi, () => {
3514
+ e(ri, () => {
3515
3515
  t(Y).autoRotate = t(I).autoRotate = !0;
3516
3516
  }), e(q, (w = !0) => {
3517
3517
  t(Y).autoRotate = t(I).autoRotate = !1, w && t(zt);
@@ -3519,9 +3519,9 @@ function vr(i) {
3519
3519
  if (o) return;
3520
3520
  const D = t(Y), _ = w ? Math.PI / 128 : -(Math.PI / 128), T = new $e().makeRotationAxis(new M(0, 0, -1).transformDirection(D.object.matrixWorld), _);
3521
3521
  D.object.up.transformDirection(T), t(J);
3522
- }), e(yi, () => {
3523
- o || i.fire(Kt, !0);
3524
3522
  }), e(Ai, () => {
3523
+ o || i.fire(Kt, !0);
3524
+ }), e(wi, () => {
3525
3525
  o || i.fire(Kt, !1);
3526
3526
  }), e(Bt, (w) => {
3527
3527
  const D = t(I);
@@ -3530,7 +3530,7 @@ function vr(i) {
3530
3530
  t(B).traverse((D) => D instanceof pe && D.fire(fn));
3531
3531
  }), e(rt, (w) => {
3532
3532
  t(B).traverse((_) => _ instanceof pe && _.fire(rt, w));
3533
- }), e(Ci, () => {
3533
+ }), e(Mi, () => {
3534
3534
  const w = t(B);
3535
3535
  let D;
3536
3536
  w.traverse((_) => _ instanceof pe && (D = _)), D && t(un, D.fire(Ys));
@@ -3542,7 +3542,7 @@ function vr(i) {
3542
3542
  t(qe), a.clear();
3543
3543
  return;
3544
3544
  }
3545
- a.has("Space") ? (w.bigSceneMode ? t(Bt) : t(Ut), a.clear()) : a.has("KeyR") ? (w.autoRotate ? t(q) : t(oi), a.clear()) : a.has("KeyM") ? (t(dt, !w.markVisible), a.clear()) : a.has("ArrowLeft") ? (t(yi), t(Tt, !0), a.clear()) : a.has("ArrowRight") ? (t(Ai), t(Tt, !0), a.clear()) : a.has("KeyP") ? (t(Ot, !0), a.clear()) : a.has("Equal") ? (t(Hn), a.clear()) : a.has("Minus") ? (t(Wn), a.clear()) : a.has("KeyY") ? (t(yn), a.clear()) : a.has("KeyI") ? (t(Os), a.clear()) : a.has("KeyF") ? (t(Ci), a.clear()) : a.has("F2") && (!w.bigSceneMode && window.open("/editor/index.html?url=" + encodeURIComponent(t(ye).meta.url)), a.clear());
3545
+ a.has("Space") ? (w.bigSceneMode ? t(Bt) : t(Ut), a.clear()) : a.has("KeyR") ? (w.autoRotate ? t(q) : t(ri), a.clear()) : a.has("KeyM") ? (t(dt, !w.markVisible), a.clear()) : a.has("ArrowLeft") ? (t(Ai), t(Tt, !0), a.clear()) : a.has("ArrowRight") ? (t(wi), t(Tt, !0), a.clear()) : a.has("KeyP") ? (t(Ot, !0), a.clear()) : a.has("Equal") ? (t(Wn), a.clear()) : a.has("Minus") ? (t(Yn), a.clear()) : a.has("KeyY") ? (t(yn), a.clear()) : a.has("KeyI") ? (t(Os), a.clear()) : a.has("KeyF") ? (t(Mi), a.clear()) : a.has("F2") && (!w.bigSceneMode && window.open("/editor/index.html?url=" + encodeURIComponent(t(ye).meta.url)), a.clear());
3546
3546
  }), e(it, async (w, D) => {
3547
3547
  if (s.move) return;
3548
3548
  const _ = await t(Ft, w, D);
@@ -3552,7 +3552,7 @@ function vr(i) {
3552
3552
  _.traverse((E) => E instanceof pe && T.push(E));
3553
3553
  const F = await t(Ft, w, D);
3554
3554
  return F.length ? (T.length && T[0].fire(Ct, F[0].x, F[0].y, F[0].z, !0), new M(F[0].x, F[0].y, F[0].z)) : (T.length && T[0].fire(Ct, 0, 0, 0, !1), null);
3555
- }), e(Bn, async () => {
3555
+ }), e(Un, async () => {
3556
3556
  const w = t(B), D = [];
3557
3557
  w.traverse((_) => _ instanceof pe && D.push(_));
3558
3558
  for (let _ = 0; _ < D.length; _++)
@@ -3566,7 +3566,7 @@ function vr(i) {
3566
3566
  e(
3567
3567
  Oe,
3568
3568
  () => {
3569
- t(Un) && Date.now() - r > 2e3 && (t(Tt, !1), t(yn));
3569
+ t(On) && Date.now() - r > 2e3 && (t(Tt, !1), t(yn));
3570
3570
  },
3571
3571
  !0
3572
3572
  );
@@ -3657,12 +3657,12 @@ function vr(i) {
3657
3657
  function x() {
3658
3658
  const { width: w, height: D, top: _, left: T } = t(Ue), F = t(V);
3659
3659
  F.aspect = w / D, F.updateProjectionMatrix();
3660
- const E = t(On);
3660
+ const E = t(zn);
3661
3661
  E.setSize(w, D), E.domElement.style.position = "absolute", E.domElement.style.left = `${T}px`, E.domElement.style.top = `${_}px`;
3662
3662
  const P = t(ct);
3663
3663
  P.setPixelRatio(Math.min(devicePixelRatio, 2)), P.setSize(w, D);
3664
3664
  }
3665
- e(Ln, () => {
3665
+ e(Fn, () => {
3666
3666
  o = !0, window.removeEventListener("keydown", c), window.removeEventListener("keyup", u), window.removeEventListener("blur", d), window.removeEventListener("wheel", l), n.removeEventListener("contextmenu", h), n.removeEventListener("mousedown", m), n.removeEventListener("mousemove", C), n.removeEventListener("mouseup", S), n.removeEventListener("touchstart", v), n.removeEventListener("touchmove", k), n.removeEventListener("touchend", b), window.removeEventListener("resize", x);
3667
3667
  });
3668
3668
  }
@@ -3753,24 +3753,24 @@ function xr(i) {
3753
3753
  const r = new wa(0.5, 32, 32), c = Cr();
3754
3754
  c.depthTest = !1, c.depthWrite = !1, c.transparent = !0;
3755
3755
  const u = new br();
3756
- return u.copy(new te(r, c)), t(Da, () => c), t(wi, (d) => {
3756
+ return u.copy(new te(r, c)), t(Da, () => c), t(vi, (d) => {
3757
3757
  e || (c.uniforms[xn].value = d, d <= 0.01 ? u.visible = !1 : u.visible = !0, c.uniformsNeedUpdate = !0, n(J));
3758
3758
  }), t(Is, (d) => {
3759
3759
  if (e) return;
3760
3760
  const l = n(V);
3761
3761
  s.copy(l.matrixWorld).invert(), o.copy(d).applyMatrix4(s), o.normalize().multiplyScalar(10), o.applyMatrix4(l.matrixWorld);
3762
3762
  const { width: h, height: f } = n(Ue);
3763
- c.uniforms[ht].value.set(h, f), u.position.copy(o), c.uniforms[Js].value.copy(d), c.uniforms[ht].value.set(h, f), c.uniforms[xn].value = 1, c.uniformsNeedUpdate = !0, n(vi), n(J);
3763
+ c.uniforms[ht].value.set(h, f), u.position.copy(o), c.uniforms[Js].value.copy(d), c.uniforms[ht].value.set(h, f), c.uniforms[xn].value = 1, c.uniformsNeedUpdate = !0, n(Si), n(J);
3764
3764
  }), t(Pa, () => {
3765
3765
  e || (e = !0, c.dispose(), r.dispose());
3766
3766
  }), u.renderOrder = 99999, u;
3767
- }), t(vi, () => {
3767
+ }), t(Si, () => {
3768
3768
  for (; a.length; ) a.pop().opacity = 0;
3769
3769
  let r = { opacity: 1 };
3770
3770
  a.push(r), n(
3771
- Pn,
3771
+ Ln,
3772
3772
  () => {
3773
- !e && r.opacity > 0 && (r.opacity < 0.2 ? r.opacity = 0 : r.opacity > 0.6 ? r.opacity = Math.max(r.opacity -= 0.01, 0) : r.opacity = Math.max(r.opacity -= 0.03, 0), n(wi, r.opacity));
3773
+ !e && r.opacity > 0 && (r.opacity < 0.2 ? r.opacity = 0 : r.opacity > 0.6 ? r.opacity = Math.max(r.opacity -= 0.01, 0) : r.opacity = Math.max(r.opacity -= 0.03, 0), n(vi, r.opacity));
3774
3774
  },
3775
3775
  () => !e && r.opacity > 0
3776
3776
  );
@@ -3778,7 +3778,7 @@ function xr(i) {
3778
3778
  }
3779
3779
  function Cr() {
3780
3780
  const i = {
3781
- [So]: { type: "v3", value: new is() },
3781
+ [So]: { type: "v3", value: new Pn() },
3782
3782
  [Js]: { type: "v3", value: new M() },
3783
3783
  [ht]: { type: "v2", value: new j() },
3784
3784
  [xn]: { value: 0 }
@@ -3797,7 +3797,7 @@ function oa(i) {
3797
3797
  const e = (s, r, c) => i.on(s, r, c), t = (s, ...r) => i.fire(s, ...r), n = /* @__PURE__ */ new Map(), a = document.createElement("div");
3798
3798
  a.classList.add("mark-warp"), document.body.appendChild(a);
3799
3799
  const o = new Ar();
3800
- o.setSize(innerWidth, innerHeight), o.domElement.style.position = "absolute", o.domElement.style.top = "0px", o.domElement.style.pointerEvents = "none", a.appendChild(o.domElement), e(Ra, () => a), e(On, () => o), e(zn, () => document.body.removeChild(a)), e(Oe, () => o.render(t(B), t(V)), !0), e(Me, (s) => {
3800
+ o.setSize(innerWidth, innerHeight), o.domElement.style.position = "absolute", o.domElement.style.top = "0px", o.domElement.style.pointerEvents = "none", a.appendChild(o.domElement), e(Ra, () => a), e(zn, () => o), e(Qn, () => document.body.removeChild(a)), e(Oe, () => o.render(t(B), t(V)), !0), e(Me, (s) => {
3801
3801
  const r = s?.getMarkData?.()?.name || s?.name;
3802
3802
  r && n.set(r, new WeakRef(s));
3803
3803
  }), e(Ze, (s) => {
@@ -3860,10 +3860,10 @@ function oa(i) {
3860
3860
  const u = new sa(i);
3861
3861
  u.draw(c), u.visible = !1, t(B).add(u);
3862
3862
  }
3863
- }), t(Yn, s.flyPositions || []), t(Vn, s.flyTargets || []);
3863
+ }), t(Vn, s.flyPositions || []), t(Gn, s.flyTargets || []);
3864
3864
  }), e(Te, () => {
3865
3865
  const s = t(I);
3866
- s.markMode = !1, t(Bn), t(J);
3866
+ s.markMode = !1, t(Un), t(J);
3867
3867
  }), e(Ps, (s, r = !0) => {
3868
3868
  const c = s?.meterScale;
3869
3869
  if (c) {
@@ -3905,7 +3905,7 @@ function oa(i) {
3905
3905
  function Mr(i) {
3906
3906
  const e = (h, ...f) => i.fire(h, ...f), t = (h, f, p) => i.on(h, f, p), n = [], a = [];
3907
3907
  let o = !1, s = !1;
3908
- t(zt, () => o = !1), t(xi, () => o = !0), t(bi, () => n), t(Oa, () => {
3908
+ t(zt, () => o = !1), t(Ci, () => o = !0), t(xi, () => n), t(Oa, () => {
3909
3909
  const h = [];
3910
3910
  for (let f = 0, p = n.length; f < p; f++)
3911
3911
  h.push(...n[f].toArray());
@@ -3915,16 +3915,16 @@ function Mr(i) {
3915
3915
  for (let f = 0, p = a.length; f < p; f++)
3916
3916
  h.push(...a[f].toArray());
3917
3917
  return h;
3918
- }), t(Yn, (h) => {
3918
+ }), t(Vn, (h) => {
3919
3919
  for (let f = 0, p = h.length / 3 | 0; f < p; f++)
3920
3920
  n[f] = new M(h[f * 3 + 0], h[f * 3 + 1], h[f * 3 + 2]);
3921
- }), t(Vn, (h) => {
3921
+ }), t(Gn, (h) => {
3922
3922
  for (let f = 0, p = h.length / 3 | 0; f < p; f++)
3923
3923
  a[f] = new M(h[f * 3 + 0], h[f * 3 + 1], h[f * 3 + 2]);
3924
- }), t(Hn, () => {
3924
+ }), t(Wn, () => {
3925
3925
  const h = e(Y);
3926
3926
  n.push(h.object.position.clone()), a.push(h.target.clone());
3927
- }), t(Wn, () => {
3927
+ }), t(Yn, () => {
3928
3928
  n.length = 0, a.length = 0;
3929
3929
  }), t(Bs, async () => {
3930
3930
  const h = e(ye).meta || {};
@@ -3944,10 +3944,10 @@ function Mr(i) {
3944
3944
  let u = 0, d, l;
3945
3945
  t(Ot, (h) => {
3946
3946
  if (r = 0, u = Date.now(), d = null, l = null, !n.length || !h && !e(Y).autoRotate) return;
3947
- const f = e(Y), p = [f.object.position.clone()], y = [f.target.clone()], g = e(bi) || [];
3947
+ const f = e(Y), p = [f.object.position.clone()], y = [f.target.clone()], g = e(xi) || [];
3948
3948
  for (let m = 0, C = Math.min(g.length, 100); m < C; m++)
3949
3949
  g[m] && p.push(g[m]), a[m] && y.push(a[m]);
3950
- d = new ii(p), d.closed = !0, l = new ii(y), l.closed = !0, e(xi), e(q, !1);
3950
+ d = new si(p), d.closed = !0, l = new si(y), l.closed = !0, e(Ci), e(q, !1);
3951
3951
  }), t(
3952
3952
  lt,
3953
3953
  () => {
@@ -3962,16 +3962,16 @@ function Mr(i) {
3962
3962
  }
3963
3963
  class Br {
3964
3964
  constructor(e = {}) {
3965
- this.disposed = !1, this.updateTime = 0, this.needUpdate = !0, console.info("Reall3dViewer", Yt), this.init(Yi(e)), !e.disableDropLocalFile && this.enableDropLocalFile();
3965
+ this.disposed = !1, this.updateTime = 0, this.needUpdate = !0, console.info("Reall3dViewer", Yt), this.init(Vi(e)), !e.disableDropLocalFile && this.enableDropLocalFile();
3966
3966
  }
3967
3967
  init(e) {
3968
3968
  const t = this;
3969
3969
  e.position = e.position ? [...e.position] : [0, -5, 15], e.lookAt = e.lookAt ? [...e.lookAt] : [0, 0, 0], e.lookUp = e.lookUp ? [...e.lookUp] : [0, -1, 0];
3970
3970
  const n = Go(e), a = e.scene = e.scene || new ss();
3971
- No(e);
3971
+ a.background = new Pn(e.background), No(e);
3972
3972
  const o = e.controls = new dr(e);
3973
3973
  o.updateByOptions(e);
3974
- const s = new Nn();
3974
+ const s = new Xn();
3975
3975
  e.viewerEvents = s, t.events = s;
3976
3976
  const r = (l, h, f) => s.on(l, h, f), c = (l, ...h) => s.fire(l, ...h);
3977
3977
  r(I, () => e), r(Ke, () => n.domElement), r(ct, () => n), r(B, () => a), r(Y, () => o), r(V, () => o.object), r(ee, () => e.bigSceneMode), r(Fa, (l) => e.pointcloudMode = l);
@@ -3980,16 +3980,16 @@ class Br {
3980
3980
  for (t.needUpdate = !0; u.length; ) u.pop().stop = !0;
3981
3981
  let l = { count: 0, stop: !1 };
3982
3982
  u.push(l), c(
3983
- Pn,
3983
+ Ln,
3984
3984
  () => {
3985
3985
  !t.disposed && (t.needUpdate = !0), l.count++ >= 600 && (l.stop = !0);
3986
3986
  },
3987
- () => !t.disposed && (c(Un) || !l.stop),
3987
+ () => !t.disposed && (c(On) || !l.stop),
3988
3988
  10
3989
3989
  );
3990
- }), jn(s), Yo(s), qn(s), Sr(s), oa(s), vr(s), aa(s), xr(s), Mr(s), t.splatMesh = new pe(Xo(e)), r(ye, () => t.splatMesh), a.add(t.splatMesh), Zo(s), a.add(new as("#ffffff", 2)), a.add(c(_s)), n.setAnimationLoop(t.update.bind(t)), r(Si, () => {
3990
+ }), qn(s), Yo(s), Jn(s), Sr(s), oa(s), vr(s), aa(s), xr(s), Mr(s), t.splatMesh = new pe(Xo(e)), r(ye, () => t.splatMesh), a.add(t.splatMesh), Zo(s), a.add(new as("#ffffff", 2)), a.add(c(_s)), n.setAnimationLoop(t.update.bind(t)), r(bi, () => {
3991
3991
  o.update(), !t.needUpdate && c(ws) && c(J);
3992
- }), r(Ve, () => c(Wt), !0), r(Ve, () => c(Si), !0), r(
3992
+ }), r(Ve, () => c(Wt), !0), r(Ve, () => c(bi), !0), r(
3993
3993
  Oe,
3994
3994
  () => {
3995
3995
  try {
@@ -4003,7 +4003,7 @@ class Br {
4003
4003
  }, !0), r(Ht, () => t.dispose()), r(Os, () => console.info(JSON.stringify(c(ye).meta || {}, null, 2)));
4004
4004
  let d = "";
4005
4005
  r(mt, (l = "") => {
4006
- d = l, t.splatMesh.fire(Qn, d, !0);
4006
+ d = l, t.splatMesh.fire(Hn, d, !0);
4007
4007
  }), r(Ds, () => d), c(oe, { scale: `1 : ${c(I).meterScale} m` }), t.initGsApi();
4008
4008
  }
4009
4009
  /**
@@ -4046,9 +4046,9 @@ class Br {
4046
4046
  // 开发调试用临时接口
4047
4047
  fire(e, t, n) {
4048
4048
  const a = this;
4049
- e === 1 && a.splatMesh.fire(hn, t), e === 2 && a.events.fire(Hn), e === 3 && a.events.fire(Ot, !0), e === 4 && a.events.fire(Wn), e === 5 && a.events.fire(Bs), e === 6 && a.events.fire(kt), e === 7 && a.events.fire(Ls), e === 8 && (async () => {
4050
- let o = await a.splatMesh.fire(Gn);
4051
- t && (o = a.splatMesh.fire(Ws) + t), a.splatMesh.fire(Fn, o);
4049
+ e === 1 && a.splatMesh.fire(hn, t), e === 2 && a.events.fire(Wn), e === 3 && a.events.fire(Ot, !0), e === 4 && a.events.fire(Yn), e === 5 && a.events.fire(Bs), e === 6 && a.events.fire(kt), e === 7 && a.events.fire(Ls), e === 8 && (async () => {
4050
+ let o = await a.splatMesh.fire(Nn);
4051
+ t && (o = a.splatMesh.fire(Ws) + t), a.splatMesh.fire(Rn, o);
4052
4052
  })();
4053
4053
  }
4054
4054
  /**
@@ -4061,14 +4061,14 @@ class Br {
4061
4061
  if (t.disposed) return {};
4062
4062
  const n = (r, ...c) => t.events.fire(r, ...c);
4063
4063
  let a;
4064
- return n(B).traverse((r) => !a && r instanceof pe && (a = r.options())), e && (e.autoRotate !== void 0 && (n(Y).autoRotate = e.autoRotate, n(I).autoRotate = e.autoRotate), e.pointcloudMode !== void 0 && n(Bt, e.pointcloudMode), e.lightFactor !== void 0 && n(rt, e.lightFactor), e.maxRenderCountOfMobile && (n(I).maxRenderCountOfMobile = e.maxRenderCountOfMobile), e.maxRenderCountOfPc && (n(I).maxRenderCountOfPc = e.maxRenderCountOfPc), e.debugMode !== void 0 && (n(I).debugMode = e.debugMode), e.markType !== void 0 && (n(I).markType = e.markType), e.markVisible !== void 0 && n(dt, e.markVisible), e.meterScale !== void 0 && (n(I).meterScale = e.meterScale), e.markMode !== void 0 && (n(I).markMode = e.markMode, !e.markMode && n(Bn), n(Y).autoRotate = n(I).autoRotate = !1)), n(Y).updateByOptions(e), n(oe, { scale: `1 : ${n(I).meterScale} m` }), Object.assign({ ...n(I) }, a);
4064
+ return n(B).traverse((r) => !a && r instanceof pe && (a = r.options())), e && (e.autoRotate !== void 0 && (n(Y).autoRotate = e.autoRotate, n(I).autoRotate = e.autoRotate), e.pointcloudMode !== void 0 && n(Bt, e.pointcloudMode), e.lightFactor !== void 0 && n(rt, e.lightFactor), e.maxRenderCountOfMobile && (n(I).maxRenderCountOfMobile = e.maxRenderCountOfMobile), e.maxRenderCountOfPc && (n(I).maxRenderCountOfPc = e.maxRenderCountOfPc), e.debugMode !== void 0 && (n(I).debugMode = e.debugMode), e.markType !== void 0 && (n(I).markType = e.markType), e.markVisible !== void 0 && n(dt, e.markVisible), e.meterScale !== void 0 && (n(I).meterScale = e.meterScale), e.markMode !== void 0 && (n(I).markMode = e.markMode, !e.markMode && n(Un), n(Y).autoRotate = n(I).autoRotate = !1)), n(Y).updateByOptions(e), n(oe, { scale: `1 : ${n(I).meterScale} m` }), Object.assign({ ...n(I) }, a);
4065
4065
  }
4066
4066
  /**
4067
4067
  * 重置
4068
4068
  */
4069
4069
  reset(e = {}) {
4070
4070
  const t = this;
4071
- t.dispose(), t.disposed = !1, t.init(Yi(e));
4071
+ t.dispose(), t.disposed = !1, t.init(Vi(e));
4072
4072
  }
4073
4073
  /**
4074
4074
  * 光圈过渡切换显示
@@ -4100,7 +4100,7 @@ class Br {
4100
4100
  if (!a.url.endsWith(".bin") && !a.url.endsWith(".spx"))
4101
4101
  return console.error("The format is unsupported in the large scene mode", a.url);
4102
4102
  const o = { ...a, ...a.cameraInfo || {} };
4103
- a.autoCut = Math.min(Math.max(a.autoCut || 0, 0), 50), o.bigSceneMode = a.autoCut > 1, t.reset({ ...o }), !o.bigSceneMode && delete a.autoCut, t.splatMesh.meta = a, le && (a.cameraInfo?.position || a.cameraInfo?.lookAt) && t.events.fire(Y)._dollyOut(0.75), o.bigSceneMode ? (n(Yn, a.flyPositions || []), n(Vn, a.flyTargets || [])) : n(An, a), await t.splatMesh.addModel({ url: a.url }, a), await n(mt, a.watermark), n(Y).updateRotateAxis();
4103
+ a.autoCut = Math.min(Math.max(a.autoCut || 0, 0), 50), o.bigSceneMode = a.autoCut > 1, t.reset({ ...o }), !o.bigSceneMode && delete a.autoCut, t.splatMesh.meta = a, le && (a.cameraInfo?.position || a.cameraInfo?.lookAt) && t.events.fire(Y)._dollyOut(0.75), o.bigSceneMode ? (n(Vn, a.flyPositions || []), n(Gn, a.flyTargets || [])) : n(An, a), await t.splatMesh.addModel({ url: a.url }, a), await n(mt, a.watermark), n(Y).updateRotateAxis();
4104
4104
  }
4105
4105
  /**
4106
4106
  * 添加要渲染的高斯模型(小场景模式)
@@ -4180,7 +4180,7 @@ class Br {
4180
4180
  if (e.disposed) return;
4181
4181
  e.disposed = !0;
4182
4182
  const t = (o, ...s) => e.events.fire(o, ...s), n = t(ct), a = n.domElement;
4183
- t(Rn), t(As), t(zn), t(Ln), t(Y).dispose(), t(ke, t(B)), n.clear(), n.dispose(), a.parentElement.removeChild(a), e.splatMesh = null, e.events.clear(), e.events = null;
4183
+ t(Bn), t(As), t(Qn), t(Fn), t(Y).dispose(), t(ke, t(B)), n.clear(), n.dispose(), a.parentElement.removeChild(a), e.splatMesh = null, e.events.clear(), e.events = null;
4184
4184
  }
4185
4185
  }
4186
4186
  function Tr(i) {
@@ -4239,16 +4239,16 @@ function Tr(i) {
4239
4239
  const r = s.meta || {};
4240
4240
  return r.transform = s.matrix.toArray(), await t(Pe, JSON.stringify(r), s.meta.url);
4241
4241
  }), e(Vs, () => {
4242
- const s = t(I).root, r = new es({ antialias: !1, logarithmicDepthBuffer: !0, stencil: !0, alpha: !0, precision: "highp" });
4242
+ const s = t(I).root, r = new ts({ antialias: !1, logarithmicDepthBuffer: !0, stencil: !0, alpha: !0, precision: "highp" });
4243
4243
  return r.setSize(s.clientWidth, s.clientHeight), r.setPixelRatio(Math.min(devicePixelRatio, 2)), e(ct, () => r), e(Ke, () => r.domElement), r;
4244
4244
  }), e(Gs, () => {
4245
4245
  const s = new ss(), r = 14414079;
4246
- return s.background = new is(r), s.fog = new si(r, 0), e(B, () => s), s;
4246
+ return s.background = new Pn(r), s.fog = new ai(r, 0), e(B, () => s), s;
4247
4247
  }), e(Ns, () => {
4248
4248
  const r = t(V), c = t(B), u = t(I), d = new ur(t(V), u.root);
4249
4249
  return d.screenSpacePanning = !1, d.minDistance = 0.1, d.maxDistance = 1e5, d.maxPolarAngle = 1.2, d.enableDamping = !0, d.dampingFactor = 0.07, d.zoomToCursor = !0, d.addEventListener("change", () => {
4250
4250
  const l = Math.max(d.getPolarAngle(), 0.1), h = Math.max(d.getDistance(), 0.1);
4251
- d.zoomSpeed = Math.max(Math.log(h), 0) + 0.5, r.far = be.clamp(h / l * 8, 100, 2e5), r.near = r.far / 1e3, r.updateProjectionMatrix(), c.fog instanceof si && (c.fog.density = l / (h + 5) * 1 * 0.25), d.maxPolarAngle = Math.min(Math.pow(1e4 / h, 4), 1.2);
4251
+ d.zoomSpeed = Math.max(Math.log(h), 0) + 0.5, r.far = be.clamp(h / l * 8, 100, 2e5), r.near = r.far / 1e3, r.updateProjectionMatrix(), c.fog instanceof ai && (c.fog.density = l / (h + 5) * 1 * 0.25), d.maxPolarAngle = Math.min(Math.pow(1e4 / h, 4), 1.2);
4252
4252
  }), e(Y, () => d), e(ft, () => r.fov), e(Be, (l = !1) => l ? r.position.clone() : r.position), e(Ce, (l = !1) => l ? d.target.clone() : d.target), e(Ne, (l = !1) => l ? r.up.clone() : r.up), d;
4253
4253
  }), e(Xs, () => {
4254
4254
  const s = new Sa(16777215, 1);
@@ -4262,11 +4262,11 @@ function kr(i) {
4262
4262
  return n.root = e, n;
4263
4263
  }
4264
4264
  function Er() {
4265
- const i = ai.TileSource.create({
4265
+ const i = oi.TileSource.create({
4266
4266
  dataType: "image",
4267
4267
  attribution: "ArcGIS",
4268
4268
  url: "https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
4269
- }), e = new ai.TileMap({ imgSource: i, lon0: 90, minLevel: 2, maxLevel: 16 });
4269
+ }), e = new oi.TileMap({ imgSource: i, lon0: 90, minLevel: 2, maxLevel: 16 });
4270
4270
  return e.scale.set(10, 10, 10), e.rotateX(-Math.PI / 2), e.autoUpdate = !1, e;
4271
4271
  }
4272
4272
  class _r {
@@ -4350,7 +4350,7 @@ function Ir(i) {
4350
4350
  function k(b) {
4351
4351
  s.down === 1 && !s.move && t(it, s.x, s.y);
4352
4352
  }
4353
- window.addEventListener("keydown", r), window.addEventListener("keyup", c), window.addEventListener("blur", u), window.addEventListener("wheel", d, { passive: !1 }), n.addEventListener("contextmenu", l), n.addEventListener("mousedown", g), n.addEventListener("mousemove", m), n.addEventListener("mouseup", C), n.addEventListener("touchstart", S, { passive: !1 }), n.addEventListener("touchmove", v, { passive: !1 }), n.addEventListener("touchend", k, { passive: !1 }), e(Ln, () => {
4353
+ window.addEventListener("keydown", r), window.addEventListener("keyup", c), window.addEventListener("blur", u), window.addEventListener("wheel", d, { passive: !1 }), n.addEventListener("contextmenu", l), n.addEventListener("mousedown", g), n.addEventListener("mousemove", m), n.addEventListener("mouseup", C), n.addEventListener("touchstart", S, { passive: !1 }), n.addEventListener("touchmove", v, { passive: !1 }), n.addEventListener("touchend", k, { passive: !1 }), e(Fn, () => {
4354
4354
  o = !0, window.removeEventListener("keydown", r), window.removeEventListener("keyup", c), window.removeEventListener("blur", u), window.removeEventListener("wheel", d), n.removeEventListener("contextmenu", l), n.removeEventListener("mousedown", g), n.removeEventListener("mousemove", m), n.removeEventListener("mouseup", C), n.removeEventListener("touchstart", S), n.removeEventListener("touchmove", v), n.removeEventListener("touchend", k);
4355
4355
  }), e(it, async (b, x) => await t(Ft, b, x));
4356
4356
  }
@@ -4742,7 +4742,7 @@ me.removeAll.bind(me);
4742
4742
  me.add.bind(me);
4743
4743
  me.remove.bind(me);
4744
4744
  me.update.bind(me);
4745
- const Ji = navigator.userAgent.includes("Mobi");
4745
+ const es = navigator.userAgent.includes("Mobi");
4746
4746
  class Lr extends te {
4747
4747
  constructor(e, t) {
4748
4748
  super(), this.isWarpSplatMesh = !0, this.lastActiveTime = Date.now(), this.active = !1, this.disposed = !1, this.mapViewer = t, this.addScene(e), this.frustumCulled = !1;
@@ -4772,7 +4772,7 @@ class Lr extends te {
4772
4772
  let a = null;
4773
4773
  n.onclick = () => {
4774
4774
  if (a) return;
4775
- const s = t.position, r = e.controls, c = r.object.position.clone(), u = Ji ? 6 : 2, d = s.clone().sub(c).normalize(), l = s.clone().sub(d.multiplyScalar(u)), h = { x: c.x, y: c.y, z: c.z, tx: r.target.x, ty: r.target.y, tz: r.target.z }, f = { x: l.x, y: l.y, z: l.z, tx: s.x, ty: s.y, tz: s.z };
4775
+ const s = t.position, r = e.controls, c = r.object.position.clone(), u = es ? 6 : 2, d = s.clone().sub(c).normalize(), l = s.clone().sub(d.multiplyScalar(u)), h = { x: c.x, y: c.y, z: c.z, tx: r.target.x, ty: r.target.y, tz: r.target.z }, f = { x: l.x, y: l.y, z: l.z, tx: s.x, ty: s.y, tz: s.z };
4776
4776
  a = new Pr(h).to(f, 3e3), a.easing(Ge.Sinusoidal.InOut).start().onUpdate(() => {
4777
4777
  const p = h.y < 0.1 ? 0.1 : h.y;
4778
4778
  r.object.position.set(h.x, p, h.z), r.target.set(h.tx, h.ty, h.tz);
@@ -4783,7 +4783,7 @@ class Lr extends te {
4783
4783
  const o = new ie(n);
4784
4784
  o.element.style.pointerEvents = "none", o.visible = !1, o.applyMatrix4(e.matrix), t.css3dTag = o, e.scene.add(o), t.onBeforeRender = () => {
4785
4785
  a?.update();
4786
- const s = Ji ? 50 : 30, r = t.position.distanceTo(t.mapViewer.controls.object.position);
4786
+ const s = es ? 50 : 30, r = t.position.distanceTo(t.mapViewer.controls.object.position);
4787
4787
  if (r > s) {
4788
4788
  t.css3dTag.visible = t.opts.controls.object.position.y > 2;
4789
4789
  let c = 2e-3 * r;
@@ -4803,7 +4803,7 @@ class Lr extends te {
4803
4803
  const d = new pe(u);
4804
4804
  t.splatMesh = d, t.opts.scene.add(d), d.applyMatrix4(t.opts.matrix), d.meta = c;
4805
4805
  const l = c.watermark || c.name || "";
4806
- c.showWatermark = c.showWatermark !== !1, d.fire(Qn, l, !0, !1), d.addModel({ url: t.meta.url }, t.meta);
4806
+ c.showWatermark = c.showWatermark !== !1, d.fire(Hn, l, !0, !1), d.addModel({ url: t.meta.url }, t.meta);
4807
4807
  }
4808
4808
  }
4809
4809
  }, t.onAfterRender = () => {
@@ -4823,12 +4823,12 @@ class Lr extends te {
4823
4823
  class Ur extends ba {
4824
4824
  constructor(e = {}) {
4825
4825
  console.info("Reall3dMapViewer", Yt), super(), this.clock = new xa(), this.updateTime = 0, this.disposed = !1;
4826
- const t = this, n = new Nn();
4826
+ const t = this, n = new Xn();
4827
4827
  t.events = n;
4828
4828
  const a = (r, c, u) => n.on(r, c, u), o = (r, ...c) => n.fire(r, ...c);
4829
4829
  t.tileMap = Er();
4830
4830
  const s = kr(e);
4831
- a(I, () => s), jn(n), qn(n), Tr(n), aa(n), t.camera = new ts(60, 1, 0.01, 1e4), a(V, () => t.camera), t.container = s.root, t.renderer = o(Vs), t.scene = o(Gs), t.controls = o(Ns), t.ambLight = new as(16777215, 1), t.scene.add(t.ambLight), t.dirLight = o(Xs), t.scene.add(t.dirLight), t.scene.add(t.tileMap), t.container.appendChild(t.renderer.domElement), oa(n), Ir(n), window.addEventListener("resize", t.resize.bind(t)), t.resize(), t.renderer.setAnimationLoop(t.animate.bind(t)), a(Ht, () => t.dispose()), a(
4831
+ a(I, () => s), qn(n), Jn(n), Tr(n), aa(n), t.camera = new ns(60, 1, 0.01, 1e4), a(V, () => t.camera), t.container = s.root, t.renderer = o(Vs), t.scene = o(Gs), t.controls = o(Ns), t.ambLight = new as(16777215, 1), t.scene.add(t.ambLight), t.dirLight = o(Xs), t.scene.add(t.dirLight), t.scene.add(t.tileMap), t.container.appendChild(t.renderer.domElement), oa(n), Ir(n), window.addEventListener("resize", t.resize.bind(t)), t.resize(), t.renderer.setAnimationLoop(t.animate.bind(t)), a(Ht, () => t.dispose()), a(
4832
4832
  Ve,
4833
4833
  () => {
4834
4834
  o(Pt), t.controls.update(), o(Ks), o(Wt);
@@ -4881,7 +4881,7 @@ class Ur extends ba {
4881
4881
  if (e.disposed) return;
4882
4882
  const { width: t, height: n, top: a, left: o } = e.container.getBoundingClientRect();
4883
4883
  e.renderer.setPixelRatio(Math.min(devicePixelRatio, 2)), e.renderer.setSize(t, n), e.camera.aspect = t / n, e.camera.updateProjectionMatrix();
4884
- const s = e.events.fire(On);
4884
+ const s = e.events.fire(zn);
4885
4885
  s.setSize(t, n), s.domElement.style.position = "absolute", s.domElement.style.left = `${o}px`, s.domElement.style.top = `${a}px`;
4886
4886
  }
4887
4887
  animate() {
@@ -4896,7 +4896,7 @@ class Ur extends ba {
4896
4896
  if (e.disposed) return;
4897
4897
  e.disposed = !0;
4898
4898
  const t = e.renderer.domElement;
4899
- e.events.fire(zn), e.events.fire(Zs), e.renderer.clear(), e.renderer.dispose(), e.events.clear(), e.scene = null, e.renderer = null, e.camera = null, e.controls = null, e.ambLight = null, e.dirLight = null, e.container.removeChild(t), e.container.classList.add("hidden"), e.container = null, e.clock = null, e.events = null, e.tileMap = null;
4899
+ e.events.fire(Qn), e.events.fire(Zs), e.renderer.clear(), e.renderer.dispose(), e.events.clear(), e.scene = null, e.renderer = null, e.camera = null, e.controls = null, e.ambLight = null, e.dirLight = null, e.container.removeChild(t), e.container.classList.add("hidden"), e.container = null, e.clock = null, e.events = null, e.tileMap = null;
4900
4900
  }
4901
4901
  }
4902
4902
  export {