@jdultra/threedtiles 14.0.8 → 14.0.10

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.
@@ -1,5 +1,5 @@
1
1
  import * as P from "three";
2
- import { Matrix3 as aI, Vector3 as bA, Box3 as oC, Matrix4 as Tg, Ray as xe, BufferGeometry as $B, LineBasicMaterial as PE, LineSegments as VE, TrianglesDrawMode as Ke, TriangleFanDrawMode as qQ, TriangleStripDrawMode as zE, BufferAttribute as eI, Loader as nC, LoaderUtils as CB, FileLoader as lI, MeshPhysicalMaterial as Yg, Vector2 as sC, Color as oI, LinearSRGBColorSpace as Gg, SRGBColorSpace as Jg, SpotLight as je, PointLight as qe, DirectionalLight as ve, Quaternion as XE, InstancedMesh as Te, InstancedBufferAttribute as vQ, Object3D as ZE, TextureLoader as Oe, ImageBitmapLoader as We, InterleavedBuffer as Pe, InterleavedBufferAttribute as Ve, LinearMipmapLinearFilter as jB, NearestMipmapLinearFilter as ze, LinearMipmapNearestFilter as Xe, NearestMipmapNearestFilter as _E, LinearFilter as uI, NearestFilter as gg, RepeatWrapping as TQ, MirroredRepeatWrapping as Ze, ClampToEdgeWrapping as _e, PointsMaterial as $e, Material as nQ, MeshStandardMaterial as RC, DoubleSide as Ai, MeshBasicMaterial as IB, PropertyBinding as gi, SkinnedMesh as Ii, Mesh as OQ, Line as Bi, LineLoop as Qi, Points as Ci, Group as sQ, PerspectiveCamera as Ei, MathUtils as ai, OrthographicCamera as $E, Skeleton as ei, AnimationClip as ii, Bone as ti, InterpolateDiscrete as oi, InterpolateLinear as Aa, Texture as NC, VectorKeyframeTrack as kC, NumberKeyframeTrack as pC, QuaternionKeyframeTrack as UC, ColorManagement as qB, FrontSide as UB, Interpolant as ni, Sphere as si, CompressedCubeTexture as ri, CompressedArrayTexture as ci, CompressedTexture as mC, NoColorSpace as hi, RGBA_PVRTC_2BPPV1_Format as SC, RGBA_PVRTC_4BPPV1_Format as WQ, RGBA_BPTC_Format as PQ, RED_GREEN_RGTC2_Format as Di, SIGNED_RED_GREEN_RGTC2_Format as di, RED_RGTC1_Format as bi, SIGNED_RED_RGTC1_Format as wi, RGBA_S3TC_DXT3_Format as LC, RGB_S3TC_DXT1_Format as JC, RGBA_S3TC_DXT1_Format as VQ, RGBA_ASTC_6x6_Format as rQ, RGBA_ASTC_4x4_Format as mB, RGB_ETC2_Format as ga, RGBA_ETC2_EAC_Format as Ia, RGBFormat as zQ, RedFormat as BB, RGFormat as QB, RGBAFormat as YI, UnsignedByteType as GA, HalfFloatType as dI, UnsignedInt101111Type as Ba, UnsignedInt5999Type as Qa, FloatType as EB, DataTexture as XQ, Data3DTexture as ui, RGB_PVRTC_4BPPV1_Format as li, RGB_ETC1_Format as fi, RGBA_S3TC_DXT5_Format as Fi, RGB_BPTC_UNSIGNED_Format as yi, WebGL3DRenderTarget as uB, RGBAIntegerFormat as Ng, UnsignedIntType as kg, ShaderMaterial as cQ, NormalBlending as Mi, GLSL3 as hQ, InstancedBufferGeometry as YC, DynamicDrawUsage as HC, Scene as Gi, PlaneGeometry as Ri, DataUtils as xC } from "three";
2
+ import { Matrix3 as EI, Vector3 as bA, Box3 as oC, Matrix4 as Tg, Ray as xe, BufferGeometry as $B, LineBasicMaterial as PE, LineSegments as VE, TrianglesDrawMode as Ke, TriangleFanDrawMode as qQ, TriangleStripDrawMode as zE, BufferAttribute as aI, Loader as nC, LoaderUtils as CB, FileLoader as lI, MeshPhysicalMaterial as Yg, Vector2 as sC, Color as tI, LinearSRGBColorSpace as Gg, SRGBColorSpace as Jg, SpotLight as je, PointLight as qe, DirectionalLight as ve, Quaternion as XE, InstancedMesh as Te, InstancedBufferAttribute as vQ, Object3D as ZE, TextureLoader as Oe, ImageBitmapLoader as We, InterleavedBuffer as Pe, InterleavedBufferAttribute as Ve, LinearMipmapLinearFilter as jB, NearestMipmapLinearFilter as ze, LinearMipmapNearestFilter as Xe, NearestMipmapNearestFilter as _E, LinearFilter as wI, NearestFilter as gg, RepeatWrapping as TQ, MirroredRepeatWrapping as Ze, ClampToEdgeWrapping as _e, PointsMaterial as $e, Material as nQ, MeshStandardMaterial as RC, DoubleSide as Ai, MeshBasicMaterial as IB, PropertyBinding as gi, SkinnedMesh as Ii, Mesh as OQ, Line as Bi, LineLoop as Qi, Points as Ci, Group as sQ, PerspectiveCamera as Ei, MathUtils as ai, OrthographicCamera as $E, Skeleton as ei, AnimationClip as ii, Bone as ti, InterpolateDiscrete as oi, InterpolateLinear as Aa, Texture as NC, VectorKeyframeTrack as kC, NumberKeyframeTrack as pC, QuaternionKeyframeTrack as UC, ColorManagement as qB, FrontSide as UB, Interpolant as ni, Sphere as si, CompressedCubeTexture as ri, CompressedArrayTexture as ci, CompressedTexture as mC, NoColorSpace as hi, RGBA_PVRTC_2BPPV1_Format as SC, RGBA_PVRTC_4BPPV1_Format as WQ, RGBA_BPTC_Format as PQ, RED_GREEN_RGTC2_Format as Di, SIGNED_RED_GREEN_RGTC2_Format as di, RED_RGTC1_Format as bi, SIGNED_RED_RGTC1_Format as wi, RGBA_S3TC_DXT3_Format as LC, RGB_S3TC_DXT1_Format as JC, RGBA_S3TC_DXT1_Format as VQ, RGBA_ASTC_6x6_Format as rQ, RGBA_ASTC_4x4_Format as mB, RGB_ETC2_Format as ga, RGBA_ETC2_EAC_Format as Ia, RGBFormat as zQ, RedFormat as BB, RGFormat as QB, RGBAFormat as YI, UnsignedByteType as GA, HalfFloatType as DI, UnsignedInt101111Type as Ba, UnsignedInt5999Type as Qa, FloatType as EB, DataTexture as XQ, Data3DTexture as ui, RGB_PVRTC_4BPPV1_Format as li, RGB_ETC1_Format as fi, RGBA_S3TC_DXT5_Format as Fi, RGB_BPTC_UNSIGNED_Format as yi, WebGL3DRenderTarget as uB, RGBAIntegerFormat as Ng, UnsignedIntType as kg, ShaderMaterial as cQ, NormalBlending as Mi, GLSL3 as hQ, InstancedBufferGeometry as YC, DynamicDrawUsage as HC, Scene as Gi, PlaneGeometry as Ri, DataUtils as xC } from "three";
3
3
  class as {
4
4
  constructor() {
5
5
  this.cullMap = [], this.cullMaterial = new P.MeshBasicMaterial({ vertexColors: !0 }), this.cullMaterial.side = P.FrontSide, this.cullTarget = this._createCullTarget(), this.cullPixels = new Uint8Array(4 * this.cullTarget.width * this.cullTarget.height);
@@ -23,14 +23,14 @@ class as {
23
23
  return this.cullMap[A];
24
24
  }
25
25
  }
26
- const hg = new aI(), UA = new bA(), KC = new bA(), jC = new oC();
26
+ const hg = new EI(), UA = new bA(), KC = new bA(), jC = new oC();
27
27
  new Tg(), new Tg();
28
28
  const DQ = new xe();
29
29
  class lg {
30
30
  constructor(A) {
31
31
  this.isOBB = !0, this.center = new bA(A[0], A[1], A[2]), this.e1 = new bA(A[3], A[4], A[5]), this.e2 = new bA(A[6], A[7], A[8]), this.e3 = new bA(A[9], A[10], A[11]), this.halfSize = new bA(this.e1.length(), this.e2.length(), this.e3.length()), this.e1.normalize();
32
32
  const g = this.e2.dot(this.e1);
33
- this.e2.addScaledVector(this.e1, -g).normalize(), this.e3.copy(this.e1).cross(this.e2), this.e3.lengthSq() === 0 ? (this.e2.set(0, 1, 0), Math.abs(this.e1.y) > 0.999 && this.e2.set(1, 0, 0), this.e2.addScaledVector(this.e1, -this.e2.dot(this.e1)).normalize(), this.e3.copy(this.e1).cross(this.e2)) : this.e3.normalize(), this.rotationMatrix = new aI(), this.rotationMatrix.set(this.e1.x, this.e2.x, this.e3.x, this.e1.y, this.e2.y, this.e3.y, this.e1.z, this.e2.z, this.e3.z);
33
+ this.e2.addScaledVector(this.e1, -g).normalize(), this.e3.copy(this.e1).cross(this.e2), this.e3.lengthSq() === 0 ? (this.e2.set(0, 1, 0), Math.abs(this.e1.y) > 0.999 && this.e2.set(1, 0, 0), this.e2.addScaledVector(this.e1, -this.e2.dot(this.e1)).normalize(), this.e3.copy(this.e1).cross(this.e2)) : this.e3.normalize(), this.rotationMatrix = new EI(), this.rotationMatrix.set(this.e1.x, this.e2.x, this.e3.x, this.e1.y, this.e2.y, this.e3.y, this.e1.z, this.e2.z, this.e3.z);
34
34
  }
35
35
  copy(A) {
36
36
  this.center.copy(A.center), this.rotationMatrix.copy(A.rotationMatrix), this.halfSize.copy(A.halfSize), this.e1.copy(A.e1), this.e2.copy(A.e2), this.e3.copy(A.e3);
@@ -287,7 +287,7 @@ function qC(B) {
287
287
  if (Q === -1 && (Q = e.gpuType), Q !== e.gpuType) return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."), null;
288
288
  C += e.count * g;
289
289
  }
290
- const E = new A(C), a = new eI(E, g, I);
290
+ const E = new A(C), a = new aI(E, g, I);
291
291
  let i = 0;
292
292
  for (let t = 0; t < B.length; ++t) {
293
293
  const e = B[t];
@@ -648,7 +648,7 @@ async function pi(B = {}) {
648
648
  if (w.L.P.fa) throw new sA(`Cannot convert argument of type ${w.L.P.name} to parameter type ${this.name}`);
649
649
  return VA(w.L.O, w.L.P.M, this.M);
650
650
  }
651
- var nI = (u, w, F) => w === F ? u : F.U === void 0 || (u = nI(u, w, F.U)) === null ? null : F.pa(u), IQ = {}, yI = (u, w) => {
651
+ var oI = (u, w, F) => w === F ? u : F.U === void 0 || (u = oI(u, w, F.U)) === null ? null : F.pa(u), IQ = {}, yI = (u, w) => {
652
652
  if (!w.P || !w.O) throw new jA("makeClassHandle requires ptr and ptrType");
653
653
  if (!!w.W != !!w.S) throw new jA("Both smartPtrType and smartPtr must be specified");
654
654
  return w.count = { value: 1 }, V(Object.create(u, { L: { value: w, writable: !0 } }));
@@ -810,7 +810,7 @@ return ret;
810
810
  if (F = w + F, f) return F;
811
811
  for (; u[w] && !(w >= F); ) ++w;
812
812
  return w;
813
- }, sI = new TextDecoder("utf-16le"), rA = (u, w, F) => (u >>= 1, sI.decode(b.subarray(u, ZI(b, u, w / 2, F)))), rg = (u, w, F) => {
813
+ }, nI = new TextDecoder("utf-16le"), rA = (u, w, F) => (u >>= 1, nI.decode(b.subarray(u, ZI(b, u, w / 2, F)))), rg = (u, w, F) => {
814
814
  if (F ?? (F = 2147483647), 2 > F) return 0;
815
815
  var f = w;
816
816
  F = (F -= 2) < 2 * u.length ? F / 2 : u.length;
@@ -825,7 +825,7 @@ return ret;
825
825
  f += String.fromCodePoint(q);
826
826
  }
827
827
  return f;
828
- }, rI = (u, w, F) => {
828
+ }, sI = (u, w, F) => {
829
829
  if (F ?? (F = 2147483647), 4 > F) return 0;
830
830
  var f = w;
831
831
  F = f + F - 4;
@@ -899,7 +899,7 @@ return ret;
899
899
  if (f !== void 0) return f.L.count.value === 0 ? (f.L.O = F, f.L.S = u, f.clone()) : (f = f.clone(), this.ka(u), f);
900
900
  if (f = this.M.ra(F), !(f = W[f])) return w.call(this);
901
901
  f = this.fa ? f.oa : f.pointerType;
902
- var m = nI(F, this.M, f.M);
902
+ var m = oI(F, this.M, f.M);
903
903
  return m === null ? w.call(this) : this.ga ? yI(f.M.$, { P: f, O: m, W: this, S: u }) : yI(f.M.$, { P: f, O: m });
904
904
  } }), I.print && (L = I.print), I.printErr && (U = I.printErr), I.wasmBinary && (s = I.wasmBinary), I.thisProgram && (t = I.thisProgram);
905
905
  var MC, tQ, Xg, He = { x: () => oA(""), q: (u) => {
@@ -1032,7 +1032,7 @@ return ret;
1032
1032
  } });
1033
1033
  }, f: (u, w, F) => {
1034
1034
  if (F = TA(F), w === 2) var f = rA, m = rg, q = _I;
1035
- else f = Vg, m = rI, q = aQ;
1035
+ else f = Vg, m = sI, q = aQ;
1036
1036
  N(u, { name: F, N: (H) => {
1037
1037
  var O = f(H + 4, R[H >> 2] * w, !0);
1038
1038
  return Xg(H), O;
@@ -2371,7 +2371,7 @@ class xi {
2371
2371
  if (Q) return Q;
2372
2372
  const C = g.json, E = ((C.extensions && C.extensions[this.name] || {}).lights || [])[A];
2373
2373
  let a;
2374
- const i = new oI(16777215);
2374
+ const i = new tI(16777215);
2375
2375
  E.color !== void 0 && i.setRGB(E.color[0], E.color[1], E.color[2], Gg);
2376
2376
  const t = E.range !== void 0 ? E.range : 0;
2377
2377
  switch (E.type) {
@@ -2408,7 +2408,7 @@ class Ki {
2408
2408
  }
2409
2409
  extendParams(A, g, I) {
2410
2410
  const Q = [];
2411
- A.color = new oI(1, 1, 1), A.opacity = 1;
2411
+ A.color = new tI(1, 1, 1), A.opacity = 1;
2412
2412
  const C = g.pbrMetallicRoughness;
2413
2413
  if (C) {
2414
2414
  if (Array.isArray(C.baseColorFactor)) {
@@ -2492,7 +2492,7 @@ class Oi {
2492
2492
  const I = this.parser, Q = I.json.materials[A];
2493
2493
  if (!Q.extensions || !Q.extensions[this.name]) return Promise.resolve();
2494
2494
  const C = [];
2495
- g.sheenColor = new oI(0, 0, 0), g.sheenRoughness = 0, g.sheen = 1;
2495
+ g.sheenColor = new tI(0, 0, 0), g.sheenRoughness = 0, g.sheen = 1;
2496
2496
  const E = Q.extensions[this.name];
2497
2497
  if (E.sheenColorFactor !== void 0) {
2498
2498
  const a = E.sheenColorFactor;
@@ -2530,7 +2530,7 @@ class Pi {
2530
2530
  const C = [], E = Q.extensions[this.name];
2531
2531
  g.thickness = E.thicknessFactor !== void 0 ? E.thicknessFactor : 0, E.thicknessTexture !== void 0 && C.push(I.assignTexture(g, "thicknessMap", E.thicknessTexture)), g.attenuationDistance = E.attenuationDistance || 1 / 0;
2532
2532
  const a = E.attenuationColor || [1, 1, 1];
2533
- return g.attenuationColor = new oI().setRGB(a[0], a[1], a[2], Gg), Promise.all(C);
2533
+ return g.attenuationColor = new tI().setRGB(a[0], a[1], a[2], Gg), Promise.all(C);
2534
2534
  }
2535
2535
  }
2536
2536
  class Vi {
@@ -2562,7 +2562,7 @@ class zi {
2562
2562
  const C = [], E = Q.extensions[this.name];
2563
2563
  g.specularIntensity = E.specularFactor !== void 0 ? E.specularFactor : 1, E.specularTexture !== void 0 && C.push(I.assignTexture(g, "specularIntensityMap", E.specularTexture));
2564
2564
  const a = E.specularColorFactor || [1, 1, 1];
2565
- return g.specularColor = new oI().setRGB(a[0], a[1], a[2], Gg), E.specularColorTexture !== void 0 && C.push(I.assignTexture(g, "specularColorMap", E.specularColorTexture, Jg)), Promise.all(C);
2565
+ return g.specularColor = new tI().setRGB(a[0], a[1], a[2], Gg), E.specularColorTexture !== void 0 && C.push(I.assignTexture(g, "specularColorMap", E.specularColorTexture, Jg)), Promise.all(C);
2566
2566
  }
2567
2567
  }
2568
2568
  class Xi {
@@ -2787,8 +2787,8 @@ class tt extends oa {
2787
2787
  return it.fromArray(C).normalize().toArray(C), C;
2788
2788
  }
2789
2789
  }
2790
- const wg = { POINTS: 0, LINES: 1, LINE_LOOP: 2, LINE_STRIP: 3, TRIANGLES: 4, TRIANGLE_STRIP: 5, TRIANGLE_FAN: 6 }, KI = { 5120: Int8Array, 5121: Uint8Array, 5122: Int16Array, 5123: Uint16Array, 5125: Uint32Array, 5126: Float32Array }, OC = { 9728: gg, 9729: uI, 9984: _E, 9985: Xe, 9986: ze, 9987: jB }, WC = { 33071: _e, 33648: Ze, 10497: TQ }, dQ = { SCALAR: 1, VEC2: 2, VEC3: 3, VEC4: 4, MAT2: 4, MAT3: 9, MAT4: 16 }, ZQ = { POSITION: "position", NORMAL: "normal", TANGENT: "tangent", TEXCOORD_0: "uv", TEXCOORD_1: "uv1", TEXCOORD_2: "uv2", TEXCOORD_3: "uv3", COLOR_0: "color", WEIGHTS_0: "skinWeight", JOINTS_0: "skinIndex" }, _g = { scale: "scale", translation: "position", rotation: "quaternion", weights: "morphTargetInfluences" }, ot = { CUBICSPLINE: void 0, LINEAR: Aa, STEP: oi }, nt = "OPAQUE", st = "MASK", rt = "BLEND";
2791
- function cI(B, A, g) {
2790
+ const wg = { POINTS: 0, LINES: 1, LINE_LOOP: 2, LINE_STRIP: 3, TRIANGLES: 4, TRIANGLE_STRIP: 5, TRIANGLE_FAN: 6 }, KI = { 5120: Int8Array, 5121: Uint8Array, 5122: Int16Array, 5123: Uint16Array, 5125: Uint32Array, 5126: Float32Array }, OC = { 9728: gg, 9729: wI, 9984: _E, 9985: Xe, 9986: ze, 9987: jB }, WC = { 33071: _e, 33648: Ze, 10497: TQ }, dQ = { SCALAR: 1, VEC2: 2, VEC3: 3, VEC4: 4, MAT2: 4, MAT3: 9, MAT4: 16 }, ZQ = { POSITION: "position", NORMAL: "normal", TANGENT: "tangent", TEXCOORD_0: "uv", TEXCOORD_1: "uv1", TEXCOORD_2: "uv2", TEXCOORD_3: "uv3", COLOR_0: "color", WEIGHTS_0: "skinWeight", JOINTS_0: "skinIndex" }, _g = { scale: "scale", translation: "position", rotation: "quaternion", weights: "morphTargetInfluences" }, ot = { CUBICSPLINE: void 0, LINEAR: Aa, STEP: oi }, nt = "OPAQUE", st = "MASK", rt = "BLEND";
2791
+ function rI(B, A, g) {
2792
2792
  for (const I in g.extensions) B[I] === void 0 && (A.userData.gltfExtensions = A.userData.gltfExtensions || {}, A.userData.gltfExtensions[I] = g.extensions[I]);
2793
2793
  }
2794
2794
  function pg(B, A) {
@@ -2859,7 +2859,7 @@ class dt {
2859
2859
  return Promise.all([I.getDependencies("scene"), I.getDependencies("animation"), I.getDependencies("camera")]);
2860
2860
  }).then(function(E) {
2861
2861
  const a = { scene: E[0][Q.scene || 0], scenes: E[0], animations: E[1], cameras: E[2], asset: Q.asset, parser: I, userData: {} };
2862
- return cI(C, a, Q), pg(a, Q), Promise.all(I._invokeAll(function(i) {
2862
+ return rI(C, a, Q), pg(a, Q), Promise.all(I._invokeAll(function(i) {
2863
2863
  return i.afterRoot && i.afterRoot(a);
2864
2864
  })).then(function() {
2865
2865
  for (const i of a.scenes) i.updateMatrixWorld();
@@ -3000,7 +3000,7 @@ class dt {
3000
3000
  const g = this, I = this.json, Q = this.json.accessors[A];
3001
3001
  if (Q.bufferView === void 0 && Q.sparse === void 0) {
3002
3002
  const E = dQ[Q.type], a = KI[Q.componentType], i = Q.normalized === !0, t = new a(Q.count * E);
3003
- return Promise.resolve(new eI(t, E, i));
3003
+ return Promise.resolve(new aI(t, E, i));
3004
3004
  }
3005
3005
  const C = [];
3006
3006
  return Q.bufferView !== void 0 ? C.push(this.getDependency("bufferView", Q.bufferView)) : C.push(null), Q.sparse !== void 0 && (C.push(this.getDependency("bufferView", Q.sparse.indices.bufferView)), C.push(this.getDependency("bufferView", Q.sparse.values.bufferView))), Promise.all(C).then(function(E) {
@@ -3010,10 +3010,10 @@ class dt {
3010
3010
  const d = Math.floor(s / n), h = "InterleavedBuffer:" + Q.bufferView + ":" + Q.componentType + ":" + d + ":" + Q.count;
3011
3011
  let b = g.cache.get(h);
3012
3012
  b || (c = new t(a, d * n, Q.count * n / e), b = new Pe(c, n / e), g.cache.add(h, b)), D = new Ve(b, i, s % n / e, r);
3013
- } else c = a === null ? new t(Q.count * i) : new t(a, s, Q.count * i), D = new eI(c, i, r);
3013
+ } else c = a === null ? new t(Q.count * i) : new t(a, s, Q.count * i), D = new aI(c, i, r);
3014
3014
  if (Q.sparse !== void 0) {
3015
3015
  const d = dQ.SCALAR, h = KI[Q.sparse.indices.componentType], b = Q.sparse.indices.byteOffset || 0, l = Q.sparse.values.byteOffset || 0, R = new h(E[1], b, Q.sparse.count * d), G = new t(E[2], l, Q.sparse.count * i);
3016
- a !== null && (D = new eI(D.array.slice(), D.itemSize, D.normalized)), D.normalized = !1;
3016
+ a !== null && (D = new aI(D.array.slice(), D.itemSize, D.normalized)), D.normalized = !1;
3017
3017
  for (let p = 0, M = R.length; p < M; p++) {
3018
3018
  const k = R[p];
3019
3019
  if (D.setX(k, G[p * i]), i >= 2 && D.setY(k, G[p * i + 1]), i >= 3 && D.setZ(k, G[p * i + 2]), i >= 4 && D.setW(k, G[p * i + 3]), i >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
@@ -3038,7 +3038,7 @@ class dt {
3038
3038
  const t = this.loadImageSource(g, I).then(function(e) {
3039
3039
  e.flipY = !1, e.name = E.name || a.name || "", e.name === "" && typeof a.uri == "string" && a.uri.startsWith("data:image/") === !1 && (e.name = a.uri);
3040
3040
  const o = (C.samplers || {})[E.sampler] || {};
3041
- return e.magFilter = OC[o.magFilter] || uI, e.minFilter = OC[o.minFilter] || jB, e.wrapS = WC[o.wrapS] || TQ, e.wrapT = WC[o.wrapT] || TQ, e.generateMipmaps = !e.isCompressedTexture && e.minFilter !== gg && e.minFilter !== uI, Q.associations.set(e, { textures: A }), e;
3041
+ return e.magFilter = OC[o.magFilter] || wI, e.minFilter = OC[o.minFilter] || jB, e.wrapS = WC[o.wrapS] || TQ, e.wrapT = WC[o.wrapT] || TQ, e.generateMipmaps = !e.isCompressedTexture && e.minFilter !== gg && e.minFilter !== wI, Q.associations.set(e, { textures: A }), e;
3042
3042
  }).catch(function() {
3043
3043
  return null;
3044
3044
  });
@@ -3118,7 +3118,7 @@ class dt {
3118
3118
  E = e.getMaterialType(), i.push(e.extendParams(a, C, g));
3119
3119
  } else {
3120
3120
  const e = C.pbrMetallicRoughness || {};
3121
- if (a.color = new oI(1, 1, 1), a.opacity = 1, Array.isArray(e.baseColorFactor)) {
3121
+ if (a.color = new tI(1, 1, 1), a.opacity = 1, Array.isArray(e.baseColorFactor)) {
3122
3122
  const o = e.baseColorFactor;
3123
3123
  a.color.setRGB(o[0], o[1], o[2], Gg), a.opacity = o[3];
3124
3124
  }
@@ -3136,11 +3136,11 @@ class dt {
3136
3136
  }
3137
3137
  if (C.occlusionTexture !== void 0 && E !== IB && (i.push(g.assignTexture(a, "aoMap", C.occlusionTexture)), C.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = C.occlusionTexture.strength)), C.emissiveFactor !== void 0 && E !== IB) {
3138
3138
  const e = C.emissiveFactor;
3139
- a.emissive = new oI().setRGB(e[0], e[1], e[2], Gg);
3139
+ a.emissive = new tI().setRGB(e[0], e[1], e[2], Gg);
3140
3140
  }
3141
3141
  return C.emissiveTexture !== void 0 && E !== IB && i.push(g.assignTexture(a, "emissiveMap", C.emissiveTexture, Jg)), Promise.all(i).then(function() {
3142
3142
  const e = new E(a);
3143
- return C.name && (e.name = C.name), pg(e, C), g.associations.set(e, { materials: A }), C.extensions && cI(Q, e, C), e;
3143
+ return C.name && (e.name = C.name), pg(e, C), g.associations.set(e, { materials: A }), C.extensions && rI(Q, e, C), e;
3144
3144
  });
3145
3145
  }
3146
3146
  createUniqueName(A) {
@@ -3186,12 +3186,12 @@ class dt {
3186
3186
  if (d.mode !== wg.POINTS) throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + d.mode);
3187
3187
  h = new Ci(D, b);
3188
3188
  }
3189
- Object.keys(h.geometry.morphAttributes).length > 0 && ct(h, C), h.name = g.createUniqueName(C.name || "mesh_" + A), pg(h, C), d.extensions && cI(Q, h, d), g.assignFinalMaterial(h), s.push(h);
3189
+ Object.keys(h.geometry.morphAttributes).length > 0 && ct(h, C), h.name = g.createUniqueName(C.name || "mesh_" + A), pg(h, C), d.extensions && rI(Q, h, d), g.assignFinalMaterial(h), s.push(h);
3190
3190
  }
3191
3191
  for (let r = 0, c = s.length; r < c; r++) g.associations.set(s[r], { meshes: A, primitives: r });
3192
- if (s.length === 1) return C.extensions && cI(Q, s[0], C), s[0];
3192
+ if (s.length === 1) return C.extensions && rI(Q, s[0], C), s[0];
3193
3193
  const n = new sQ();
3194
- C.extensions && cI(Q, n, C), g.associations.set(n, { meshes: A });
3194
+ C.extensions && rI(Q, n, C), g.associations.set(n, { meshes: A });
3195
3195
  for (let r = 0, c = s.length; r < c; r++) n.add(s[r]);
3196
3196
  return n;
3197
3197
  });
@@ -3274,7 +3274,7 @@ class dt {
3274
3274
  }), this.nodeCache[A] = Promise.all(a).then(function(t) {
3275
3275
  let e;
3276
3276
  if (e = C.isBone === !0 ? new ti() : t.length > 1 ? new sQ() : t.length === 1 ? t[0] : new ZE(), e !== t[0]) for (let o = 0, s = t.length; o < s; o++) e.add(t[o]);
3277
- if (C.name && (e.userData.name = C.name, e.name = E), pg(e, C), C.extensions && cI(I, e, C), C.matrix !== void 0) {
3277
+ if (C.name && (e.userData.name = C.name, e.name = E), pg(e, C), C.extensions && rI(I, e, C), C.matrix !== void 0) {
3278
3278
  const o = new Tg();
3279
3279
  o.fromArray(C.matrix), e.applyMatrix4(o);
3280
3280
  } else C.translation !== void 0 && e.position.fromArray(C.translation), C.rotation !== void 0 && e.quaternion.fromArray(C.rotation), C.scale !== void 0 && e.scale.fromArray(C.scale);
@@ -3289,7 +3289,7 @@ class dt {
3289
3289
  }
3290
3290
  loadScene(A) {
3291
3291
  const g = this.extensions, I = this.json.scenes[A], Q = this, C = new sQ();
3292
- I.name && (C.name = Q.createUniqueName(I.name)), pg(C, I), I.extensions && cI(g, C, I);
3292
+ I.name && (C.name = Q.createUniqueName(I.name)), pg(C, I), I.extensions && rI(g, C, I);
3293
3293
  const E = I.nodes || [], a = [];
3294
3294
  for (let i = 0, t = E.length; i < t; i++) a.push(Q.getDependency("node", E[i]));
3295
3295
  return Promise.all(a).then(function(i) {
@@ -3471,16 +3471,16 @@ class na extends nC {
3471
3471
  }
3472
3472
  _createGeometry(A) {
3473
3473
  const g = new $B();
3474
- A.index && g.setIndex(new eI(A.index.array, 1));
3474
+ A.index && g.setIndex(new aI(A.index.array, 1));
3475
3475
  for (let I = 0; I < A.attributes.length; I++) {
3476
- const Q = A.attributes[I], C = Q.name, E = Q.array, a = Q.itemSize, i = new eI(E, a);
3476
+ const Q = A.attributes[I], C = Q.name, E = Q.array, a = Q.itemSize, i = new aI(E, a);
3477
3477
  C === "color" && (this._assignVertexColorSpace(i, Q.vertexColorSpace), i.normalized = !(E instanceof Float32Array)), g.setAttribute(C, i);
3478
3478
  }
3479
3479
  return g;
3480
3480
  }
3481
3481
  _assignVertexColorSpace(A, g) {
3482
3482
  if (g !== Jg) return;
3483
- const I = new oI();
3483
+ const I = new tI();
3484
3484
  for (let Q = 0, C = A.count; Q < C; Q++) I.fromBufferAttribute(A, Q), qB.colorSpaceToWorking(I, Jg), A.setXYZ(Q, I.r, I.g, I.b);
3485
3485
  }
3486
3486
  _loadLibrary(A, g) {
@@ -3776,7 +3776,7 @@ class Dg extends nC {
3776
3776
  const s = C[0].mipmaps;
3777
3777
  o = g.layerCount > 1 ? new ci(s, E, a, g.layerCount, i, t) : new mC(s, E, a, i, t);
3778
3778
  }
3779
- return o.minFilter = C[0].mipmaps.length === 1 ? uI : jB, o.magFilter = uI, o.generateMipmaps = !1, o.needsUpdate = !0, o.colorSpace = XC(g), o.premultiplyAlpha = !!(1 & e), o;
3779
+ return o.minFilter = C[0].mipmaps.length === 1 ? wI : jB, o.magFilter = wI, o.generateMipmaps = !1, o.needsUpdate = !0, o.colorSpace = XC(g), o.premultiplyAlpha = !!(1 & e), o;
3780
3780
  }
3781
3781
  async _createTexture(A, g = {}) {
3782
3782
  const I = function(a) {
@@ -3827,14 +3827,14 @@ class Dg extends nC {
3827
3827
  if (a.supercompressionScheme !== 2) throw new Error("THREE.KTX2Loader: Unsupported supercompressionScheme.");
3828
3828
  h = t.decode(d.levelData, d.uncompressedByteLength);
3829
3829
  }
3830
- b = kI[i] === EB ? new Float32Array(h.buffer, h.byteOffset, h.byteLength / Float32Array.BYTES_PER_ELEMENT) : kI[i] === dI ? new Uint16Array(h.buffer, h.byteOffset, h.byteLength / Uint16Array.BYTES_PER_ELEMENT) : kI[i] === Qa || kI[i] === Ba ? new Uint32Array(h.buffer, h.byteOffset, h.byteLength / Uint32Array.BYTES_PER_ELEMENT) : h, e.push({ data: b, width: r, height: c, depth: D });
3830
+ b = kI[i] === EB ? new Float32Array(h.buffer, h.byteOffset, h.byteLength / Float32Array.BYTES_PER_ELEMENT) : kI[i] === DI ? new Uint16Array(h.buffer, h.byteOffset, h.byteLength / Uint16Array.BYTES_PER_ELEMENT) : kI[i] === Qa || kI[i] === Ba ? new Uint32Array(h.buffer, h.byteOffset, h.byteLength / Uint32Array.BYTES_PER_ELEMENT) : h, e.push({ data: b, width: r, height: c, depth: D });
3831
3831
  }
3832
3832
  const o = a.levelCount === 0 || e.length > 1;
3833
3833
  let s;
3834
3834
  if (lt.has(MQ[i])) s = a.pixelDepth === 0 ? new XQ(e[0].data, a.pixelWidth, a.pixelHeight) : new ui(e[0].data, a.pixelWidth, a.pixelHeight, a.pixelDepth), s.minFilter = o ? _E : gg, s.magFilter = gg, s.generateMipmaps = a.levelCount === 0;
3835
3835
  else {
3836
3836
  if (a.pixelDepth > 0) throw new Error("THREE.KTX2Loader: Unsupported pixelDepth.");
3837
- s = new mC(e, a.pixelWidth, a.pixelHeight), s.minFilter = o ? jB : uI, s.magFilter = uI;
3837
+ s = new mC(e, a.pixelWidth, a.pixelHeight), s.minFilter = o ? jB : wI, s.magFilter = wI;
3838
3838
  }
3839
3839
  return s.mipmaps = e, s.type = kI[i], s.format = MQ[i], s.colorSpace = XC(a), s.needsUpdate = !0, Promise.resolve(s);
3840
3840
  }(I);
@@ -3845,7 +3845,7 @@ class Dg extends nC {
3845
3845
  this.workerPool.dispose(), this.workerSourceURL && URL.revokeObjectURL(this.workerSourceURL), yQ--;
3846
3846
  }
3847
3847
  }
3848
- Dg.BasisFormat = { ETC1S: 0, UASTC: 1, UASTC_HDR: 2 }, Dg.TranscoderFormat = { ETC1: 0, ETC2: 1, BC1: 2, BC3: 3, BC4: 4, BC5: 5, BC7_M6_OPAQUE_ONLY: 6, BC7_M5: 7, PVRTC1_4_RGB: 8, PVRTC1_4_RGBA: 9, ASTC_4x4: 10, ATC_RGB: 11, ATC_RGBA_INTERPOLATED_ALPHA: 12, RGBA32: 13, RGB565: 14, BGR565: 15, RGBA4444: 16, BC6H: 22, RGB_HALF: 24, RGBA_HALF: 25 }, Dg.EngineFormat = { RGBAFormat: YI, RGBA_ASTC_4x4_Format: mB, RGB_BPTC_UNSIGNED_Format: yi, RGBA_BPTC_Format: PQ, RGBA_ETC2_EAC_Format: Ia, RGBA_PVRTC_4BPPV1_Format: WQ, RGBA_S3TC_DXT5_Format: Fi, RGB_ETC1_Format: fi, RGB_ETC2_Format: ga, RGB_PVRTC_4BPPV1_Format: li, RGBA_S3TC_DXT1_Format: VQ }, Dg.EngineType = { UnsignedByteType: GA, HalfFloatType: dI, FloatType: EB }, Dg.BasisWorker = function() {
3848
+ Dg.BasisFormat = { ETC1S: 0, UASTC: 1, UASTC_HDR: 2 }, Dg.TranscoderFormat = { ETC1: 0, ETC2: 1, BC1: 2, BC3: 3, BC4: 4, BC5: 5, BC7_M6_OPAQUE_ONLY: 6, BC7_M5: 7, PVRTC1_4_RGB: 8, PVRTC1_4_RGBA: 9, ASTC_4x4: 10, ATC_RGB: 11, ATC_RGBA_INTERPOLATED_ALPHA: 12, RGBA32: 13, RGB565: 14, BGR565: 15, RGBA4444: 16, BC6H: 22, RGB_HALF: 24, RGBA_HALF: 25 }, Dg.EngineFormat = { RGBAFormat: YI, RGBA_ASTC_4x4_Format: mB, RGB_BPTC_UNSIGNED_Format: yi, RGBA_BPTC_Format: PQ, RGBA_ETC2_EAC_Format: Ia, RGBA_PVRTC_4BPPV1_Format: WQ, RGBA_S3TC_DXT5_Format: Fi, RGB_ETC1_Format: fi, RGB_ETC2_Format: ga, RGB_PVRTC_4BPPV1_Format: li, RGBA_S3TC_DXT1_Format: VQ }, Dg.EngineType = { UnsignedByteType: GA, HalfFloatType: DI, FloatType: EB }, Dg.BasisWorker = function() {
3849
3849
  let B, A, g;
3850
3850
  const I = _EngineFormat, Q = _EngineType, C = _TranscoderFormat, E = _BasisFormat;
3851
3851
  self.addEventListener("message", function(o) {
@@ -3932,7 +3932,7 @@ Dg.BasisFormat = { ETC1S: 0, UASTC: 1, UASTC_HDR: 2 }, Dg.TranscoderFormat = { E
3932
3932
  return n;
3933
3933
  }
3934
3934
  };
3935
- const lt = /* @__PURE__ */ new Set([YI, zQ, QB, BB]), MQ = { [Fa]: YI, [fa]: QB, [la]: BB, [ua]: YI, [wa]: QB, [ba]: BB, [da]: YI, [Da]: YI, [ha]: QB, [ca]: QB, [ra]: BB, [sa]: BB, [Ma]: zQ, [ya]: zQ, [Ka]: Ia, [xa]: ga, [rC]: mB, [qa]: mB, [ja]: mB, [za]: rQ, [Ta]: rQ, [va]: rQ, [ka]: VQ, [Na]: VQ, [Ra]: JC, [Ga]: JC, [Ua]: LC, [pa]: LC, [Sa]: wi, [ma]: bi, [Ja]: di, [La]: Di, [Ha]: PQ, [Ya]: PQ, [Va]: WQ, [Wa]: WQ, [Pa]: SC, [Oa]: SC }, kI = { [Fa]: EB, [fa]: EB, [la]: EB, [ua]: dI, [wa]: dI, [ba]: dI, [da]: GA, [Da]: GA, [ha]: GA, [ca]: GA, [ra]: GA, [sa]: GA, [Ma]: Qa, [ya]: Ba, [Ka]: GA, [xa]: GA, [rC]: dI, [qa]: GA, [ja]: GA, [za]: dI, [Ta]: GA, [va]: GA, [ka]: GA, [Na]: GA, [Ra]: GA, [Ga]: GA, [Ua]: GA, [pa]: GA, [Sa]: GA, [ma]: GA, [Ja]: GA, [La]: GA, [Ha]: GA, [Ya]: GA, [Va]: GA, [Wa]: GA, [Pa]: GA, [Oa]: GA };
3935
+ const lt = /* @__PURE__ */ new Set([YI, zQ, QB, BB]), MQ = { [Fa]: YI, [fa]: QB, [la]: BB, [ua]: YI, [wa]: QB, [ba]: BB, [da]: YI, [Da]: YI, [ha]: QB, [ca]: QB, [ra]: BB, [sa]: BB, [Ma]: zQ, [ya]: zQ, [Ka]: Ia, [xa]: ga, [rC]: mB, [qa]: mB, [ja]: mB, [za]: rQ, [Ta]: rQ, [va]: rQ, [ka]: VQ, [Na]: VQ, [Ra]: JC, [Ga]: JC, [Ua]: LC, [pa]: LC, [Sa]: wi, [ma]: bi, [Ja]: di, [La]: Di, [Ha]: PQ, [Ya]: PQ, [Va]: WQ, [Wa]: WQ, [Pa]: SC, [Oa]: SC }, kI = { [Fa]: EB, [fa]: EB, [la]: EB, [ua]: DI, [wa]: DI, [ba]: DI, [da]: GA, [Da]: GA, [ha]: GA, [ca]: GA, [ra]: GA, [sa]: GA, [Ma]: Qa, [ya]: Ba, [Ka]: GA, [xa]: GA, [rC]: DI, [qa]: GA, [ja]: GA, [za]: DI, [Ta]: GA, [va]: GA, [ka]: GA, [Na]: GA, [Ra]: GA, [Ga]: GA, [Ua]: GA, [pa]: GA, [Sa]: GA, [ma]: GA, [Ja]: GA, [La]: GA, [Ha]: GA, [Ya]: GA, [Va]: GA, [Wa]: GA, [Pa]: GA, [Oa]: GA };
3936
3936
  function XC(B) {
3937
3937
  const A = B.dataFormatDescriptor[0];
3938
3938
  return A.colorPrimaries === 1 ? A.transferFunction === 2 ? Jg : Gg : A.colorPrimaries === 10 ? A.transferFunction === 2 ? "display-p3" : "display-p3-linear" : (A.colorPrimaries === 0 || console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${A.colorPrimaries}"`), hi);
@@ -4446,7 +4446,7 @@ function Za(B, A, g) {
4446
4446
  return (_A[Q[C + 0]] + _A[Q[C + 1]] + _A[Q[C + 2]] + _A[Q[C + 3]] + "-" + _A[Q[C + 4]] + _A[Q[C + 5]] + "-" + _A[Q[C + 6]] + _A[Q[C + 7]] + "-" + _A[Q[C + 8]] + _A[Q[C + 9]] + "-" + _A[Q[C + 10]] + _A[Q[C + 11]] + _A[Q[C + 12]] + _A[Q[C + 13]] + _A[Q[C + 14]] + _A[Q[C + 15]]).toLowerCase();
4447
4447
  }(I);
4448
4448
  }
4449
- var BE, QE, EI = function() {
4449
+ var BE, QE, uI = function() {
4450
4450
  if (QE) return BE;
4451
4451
  function B(I) {
4452
4452
  if (typeof I != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(I));
@@ -4769,7 +4769,7 @@ function Qo(B) {
4769
4769
  function Co(B) {
4770
4770
  return B && B.constructor.prototype.isChain === !0 || !1;
4771
4771
  }
4772
- function iI(B) {
4772
+ function eI(B) {
4773
4773
  var A = typeof B;
4774
4774
  return A === "object" ? B === null ? "null" : PA(B) ? "BigNumber" : B.constructor && B.constructor.name ? B.constructor.name : "Object" : A;
4775
4775
  }
@@ -5111,8 +5111,8 @@ const EE = "Argument is not a typed-function.", WB = function B() {
5111
5111
  const ag = [];
5112
5112
  let ng, fg = 0;
5113
5113
  for (let Og = 0; Og < S.length; ++Og) {
5114
- const nI = z(S[Og], Y[Og]);
5115
- ag.push(nI), fg += nI;
5114
+ const oI = z(S[Og], Y[Og]);
5115
+ ag.push(oI), fg += oI;
5116
5116
  }
5117
5117
  if (fg !== 0) return fg;
5118
5118
  for (ng of ag) if (ng !== 0) return ng;
@@ -5242,40 +5242,40 @@ const EE = "Argument is not a typed-function.", WB = function B() {
5242
5242
  if (!Object.prototype.hasOwnProperty.call(N, V)) continue;
5243
5243
  const rA = h(V);
5244
5244
  if (!rA) continue;
5245
- S.forEach(function(rI) {
5246
- if (uA(rI, rA)) throw new TypeError('Conflicting signatures "' + r(rI) + '" and "' + r(rA) + '".');
5245
+ S.forEach(function(sI) {
5246
+ if (uA(sI, rA)) throw new TypeError('Conflicting signatures "' + r(sI) + '" and "' + r(rA) + '".');
5247
5247
  }), S.push(rA);
5248
5248
  const rg = Y.length;
5249
5249
  Y.push(N[V]);
5250
5250
  const _I = rA.map(D);
5251
5251
  let Vg;
5252
5252
  for (Vg of EA(_I)) {
5253
- const rI = r(Vg);
5254
- v.push({ params: Vg, name: rI, fn: rg }), Vg.every((aQ) => !aQ.hasConversion) && (x[rI] = rg);
5253
+ const sI = r(Vg);
5254
+ v.push({ params: Vg, name: sI, fn: rg }), Vg.every((aQ) => !aQ.hasConversion) && (x[sI] = rg);
5255
5255
  }
5256
5256
  }
5257
5257
  v.sort(gA);
5258
- const j = MA(Y, x, sI);
5258
+ const j = MA(Y, x, nI);
5259
5259
  let _;
5260
5260
  for (_ in x) Object.prototype.hasOwnProperty.call(x, _) && (x[_] = j[x[_]]);
5261
5261
  const W = [], FA = /* @__PURE__ */ new Map();
5262
5262
  for (_ of v) FA.has(_.name) || (_.fn = j[_.fn], W.push(_), FA.set(_.name, _));
5263
5263
  const hA = W[0] && W[0].params.length <= 2 && !b(W[0].params), YA = W[1] && W[1].params.length <= 2 && !b(W[1].params), VA = W[2] && W[2].params.length <= 2 && !b(W[2].params), ag = W[3] && W[3].params.length <= 2 && !b(W[3].params), ng = W[4] && W[4].params.length <= 2 && !b(W[4].params), fg = W[5] && W[5].params.length <= 2 && !b(W[5].params), Og = hA && YA && VA && ag && ng && fg;
5264
5264
  for (let rA = 0; rA < W.length; ++rA) W[rA].test = R(W[rA].params);
5265
- const nI = hA ? l(W[0].params[0]) : dg, IQ = YA ? l(W[1].params[0]) : dg, yI = VA ? l(W[2].params[0]) : dg, MI = ag ? l(W[3].params[0]) : dg, oB = ng ? l(W[4].params[0]) : dg, nB = fg ? l(W[5].params[0]) : dg, sg = hA ? l(W[0].params[1]) : dg, BQ = YA ? l(W[1].params[1]) : dg, sB = VA ? l(W[2].params[1]) : dg, GI = ag ? l(W[3].params[1]) : dg, OI = ng ? l(W[4].params[1]) : dg, rB = fg ? l(W[5].params[1]) : dg;
5265
+ const oI = hA ? l(W[0].params[0]) : dg, IQ = YA ? l(W[1].params[0]) : dg, yI = VA ? l(W[2].params[0]) : dg, MI = ag ? l(W[3].params[0]) : dg, oB = ng ? l(W[4].params[0]) : dg, nB = fg ? l(W[5].params[0]) : dg, sg = hA ? l(W[0].params[1]) : dg, BQ = YA ? l(W[1].params[1]) : dg, sB = VA ? l(W[2].params[1]) : dg, GI = ag ? l(W[3].params[1]) : dg, OI = ng ? l(W[4].params[1]) : dg, rB = fg ? l(W[5].params[1]) : dg;
5266
5266
  for (let rA = 0; rA < W.length; ++rA) W[rA].implementation = $(W[rA].params, W[rA].fn);
5267
5267
  const WI = hA ? W[0].implementation : pI, PI = YA ? W[1].implementation : pI, cB = VA ? W[2].implementation : pI, hB = ag ? W[3].implementation : pI, Wg = ng ? W[4].implementation : pI, VI = fg ? W[5].implementation : pI, zI = hA ? W[0].params.length : -1, XI = YA ? W[1].params.length : -1, DB = VA ? W[2].params.length : -1, QQ = ag ? W[3].params.length : -1, dB = ng ? W[4].params.length : -1, CQ = fg ? W[5].params.length : -1, EQ = Og ? 6 : 0, Pg = W.length, bB = W.map((rA) => rA.test), wB = W.map((rA) => rA.implementation), ZI = function() {
5268
5268
  for (let rA = EQ; rA < Pg; rA++) if (bB[rA](arguments)) return wB[rA].apply(this, arguments);
5269
5269
  return a.onMismatch(y, arguments, W);
5270
5270
  };
5271
- function sI(rA, rg) {
5272
- return arguments.length === zI && nI(rA) && sg(rg) ? WI.apply(this, arguments) : arguments.length === XI && IQ(rA) && BQ(rg) ? PI.apply(this, arguments) : arguments.length === DB && yI(rA) && sB(rg) ? cB.apply(this, arguments) : arguments.length === QQ && MI(rA) && GI(rg) ? hB.apply(this, arguments) : arguments.length === dB && oB(rA) && OI(rg) ? Wg.apply(this, arguments) : arguments.length === CQ && nB(rA) && rB(rg) ? VI.apply(this, arguments) : ZI.apply(this, arguments);
5271
+ function nI(rA, rg) {
5272
+ return arguments.length === zI && oI(rA) && sg(rg) ? WI.apply(this, arguments) : arguments.length === XI && IQ(rA) && BQ(rg) ? PI.apply(this, arguments) : arguments.length === DB && yI(rA) && sB(rg) ? cB.apply(this, arguments) : arguments.length === QQ && MI(rA) && GI(rg) ? hB.apply(this, arguments) : arguments.length === dB && oB(rA) && OI(rg) ? Wg.apply(this, arguments) : arguments.length === CQ && nB(rA) && rB(rg) ? VI.apply(this, arguments) : ZI.apply(this, arguments);
5273
5273
  }
5274
5274
  try {
5275
- Object.defineProperty(sI, "name", { value: y });
5275
+ Object.defineProperty(nI, "name", { value: y });
5276
5276
  } catch {
5277
5277
  }
5278
- return sI.signatures = x, sI._typedFunctionData = { signatures: W, signatureMap: FA }, sI;
5278
+ return nI.signatures = x, nI._typedFunctionData = { signatures: W, signatureMap: FA }, nI;
5279
5279
  }
5280
5280
  function aA(y, N, S) {
5281
5281
  throw L(y, N, S);
@@ -5643,7 +5643,7 @@ function yB(B) {
5643
5643
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
5644
5644
  * MIT Licence
5645
5645
  */
5646
- var Qe, vg, HI = 9e15, CI = 1e9, gC = "0123456789abcdef", PB = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", VB = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", IC = { precision: 20, rounding: 4, modulo: 1, toExpNeg: -7, toExpPos: 21, minE: -HI, maxE: HI, crypto: !1 }, eA = !0, AQ = "[DecimalError] ", tI = AQ + "Invalid argument: ", Ce = AQ + "Precision limit exceeded", Ee = AQ + "crypto unavailable", ae = "[object Decimal]", Ig = Math.floor, XA = Math.pow, eo = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, io = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, to = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, ee = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Mg = 1e7, oo = PB.length - 1, BC = VB.length - 1, K = { toStringTag: ae };
5646
+ var Qe, vg, HI = 9e15, CI = 1e9, gC = "0123456789abcdef", PB = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", VB = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", IC = { precision: 20, rounding: 4, modulo: 1, toExpNeg: -7, toExpPos: 21, minE: -HI, maxE: HI, crypto: !1 }, eA = !0, AQ = "[DecimalError] ", iI = AQ + "Invalid argument: ", Ce = AQ + "Precision limit exceeded", Ee = AQ + "crypto unavailable", ae = "[object Decimal]", Ig = Math.floor, XA = Math.pow, eo = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, io = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, to = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, ee = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Mg = 1e7, oo = PB.length - 1, BC = VB.length - 1, K = { toStringTag: ae };
5647
5647
  function $A(B) {
5648
5648
  var A, g, I, Q = B.length - 1, C = "", E = B[0];
5649
5649
  if (Q > 0) {
@@ -5654,7 +5654,7 @@ function $A(B) {
5654
5654
  return C + E;
5655
5655
  }
5656
5656
  function ig(B, A, g) {
5657
- if (B !== ~~B || B < A || B > g) throw Error(tI + B);
5657
+ if (B !== ~~B || B < A || B > g) throw Error(iI + B);
5658
5658
  }
5659
5659
  function aB(B, A, g, I) {
5660
5660
  var Q, C, E, a;
@@ -5676,7 +5676,7 @@ K.absoluteValue = K.abs = function() {
5676
5676
  }, K.clampedTo = K.clamp = function(B, A) {
5677
5677
  var g = this, I = g.constructor;
5678
5678
  if (B = new I(B), A = new I(A), !B.s || !A.s) return new I(NaN);
5679
- if (B.gt(A)) throw Error(tI + A);
5679
+ if (B.gt(A)) throw Error(iI + A);
5680
5680
  return g.cmp(B) < 0 ? B : g.cmp(A) > 0 ? A : new I(g);
5681
5681
  }, K.comparedTo = K.cmp = function(B) {
5682
5682
  var A, g, I, Q, C = this, E = C.d, a = (B = new C.constructor(B)).d, i = C.s, t = B.s;
@@ -5873,7 +5873,7 @@ K.absoluteValue = K.abs = function() {
5873
5873
  return B.d = t, B.e = xB(t, I), eA ? QA(B, a, i) : B;
5874
5874
  }, K.precision = K.sd = function(B) {
5875
5875
  var A, g = this;
5876
- if (B !== void 0 && B !== !!B && B !== 1 && B !== 0) throw Error(tI + B);
5876
+ if (B !== void 0 && B !== !!B && B !== 1 && B !== 0) throw Error(iI + B);
5877
5877
  return g.d ? (A = tE(g.d), B && g.e + 1 > A && (A = g.e + 1)) : A = NaN, A;
5878
5878
  }, K.round = function() {
5879
5879
  var B = this, A = B.constructor;
@@ -5931,7 +5931,7 @@ K.absoluteValue = K.abs = function() {
5931
5931
  if (!r) return new c(n);
5932
5932
  if (t = g = new c(1), I = i = new c(0), E = (C = (A = new c(I)).e = tE(r) - n.e - 1) % 7, A.d[0] = XA(10, E < 0 ? 7 + E : E), B == null) B = C > 0 ? A : t;
5933
5933
  else {
5934
- if (!(a = new c(B)).isInt() || a.lt(t)) throw Error(tI + a);
5934
+ if (!(a = new c(B)).isInt() || a.lt(t)) throw Error(iI + a);
5935
5935
  B = a.gt(A) ? C > 0 ? A : t : a;
5936
5936
  }
5937
5937
  for (eA = !1, a = new c($A(r)), e = c.precision, c.precision = C = 7 * r.length * 2; o = pA(a, A, 0, 1, 1), (Q = g.plus(o.times(I))).cmp(B) != 1; ) g = I, I = Q, Q = t, t = i.plus(o.times(Q)), i = Q, Q = A, A = a.minus(o.times(Q)), a = Q;
@@ -6160,7 +6160,7 @@ function no(B, A) {
6160
6160
  if (io.test(A)) g = 16, A = A.toLowerCase();
6161
6161
  else if (eo.test(A)) g = 2;
6162
6162
  else {
6163
- if (!to.test(A)) throw Error(tI + A);
6163
+ if (!to.test(A)) throw Error(iI + A);
6164
6164
  g = 8;
6165
6165
  }
6166
6166
  for ((C = A.search(/p/i)) > 0 ? (i = +A.slice(C + 1), A = A.substring(2, C)) : A = A.slice(2), E = (C = A.indexOf(".")) >= 0, I = B.constructor, E && (C = (a = (A = A.replace(".", "")).length) - C, Q = ie(I, new I(g), C, 2 * C)), C = e = (t = HB(A, g, Mg)).length - 1; t[C] === 0; --C) t.pop();
@@ -6261,11 +6261,11 @@ function Mo(B) {
6261
6261
  if (!B || typeof B != "object") throw Error(AQ + "Object expected");
6262
6262
  var A, g, I, Q = B.defaults === !0, C = ["precision", 1, CI, "rounding", 0, 8, "toExpNeg", -HI, 0, "toExpPos", 0, HI, "maxE", 0, HI, "minE", -HI, 0, "modulo", 0, 9];
6263
6263
  for (A = 0; A < C.length; A += 3) if (g = C[A], Q && (this[g] = IC[g]), (I = B[g]) !== void 0) {
6264
- if (!(Ig(I) === I && I >= C[A + 1] && I <= C[A + 2])) throw Error(tI + g + ": " + I);
6264
+ if (!(Ig(I) === I && I >= C[A + 1] && I <= C[A + 2])) throw Error(iI + g + ": " + I);
6265
6265
  this[g] = I;
6266
6266
  }
6267
6267
  if (g = "crypto", Q && (this[g] = IC[g]), (I = B[g]) !== void 0) {
6268
- if (I !== !0 && I !== !1 && I !== 0 && I !== 1) throw Error(tI + g + ": " + I);
6268
+ if (I !== !0 && I !== !1 && I !== 0 && I !== 1) throw Error(iI + g + ": " + I);
6269
6269
  if (I) {
6270
6270
  if (typeof crypto > "u" || !crypto || !crypto.getRandomValues && !crypto.randomBytes) throw Error(Ee);
6271
6271
  this[g] = !0;
@@ -6394,7 +6394,7 @@ var TI = K.constructor = function B(A) {
6394
6394
  }
6395
6395
  if (t === "string") return (i = E.charCodeAt(0)) === 45 ? (E = E.slice(1), e.s = -1) : (i === 43 && (E = E.slice(1)), e.s = 1), ee.test(E) ? KB(e, E) : no(e, E);
6396
6396
  if (t === "bigint") return E < 0 ? (E = -E, e.s = -1) : e.s = 1, KB(e, E.toString());
6397
- throw Error(tI + E);
6397
+ throw Error(iI + E);
6398
6398
  }
6399
6399
  if (C.prototype = K, C.ROUND_UP = 0, C.ROUND_DOWN = 1, C.ROUND_CEIL = 2, C.ROUND_FLOOR = 3, C.ROUND_HALF_UP = 4, C.ROUND_HALF_DOWN = 5, C.ROUND_HALF_EVEN = 6, C.ROUND_HALF_CEIL = 7, C.ROUND_HALF_FLOOR = 8, C.EUCLID = 9, C.config = C.set = Mo, C.clone = B, C.isDecimal = rE, C.abs = so, C.acos = ro, C.acosh = co, C.add = ho, C.asin = Do, C.asinh = bo, C.atan = wo, C.atanh = uo, C.atan2 = lo, C.cbrt = fo, C.ceil = Fo, C.clamp = yo, C.cos = Go, C.cosh = Ro, C.div = No, C.exp = ko, C.floor = po, C.hypot = Uo, C.ln = mo, C.log = So, C.log10 = Jo, C.log2 = Lo, C.max = Yo, C.min = Ho, C.mod = xo, C.mul = Ko, C.pow = jo, C.random = qo, C.round = vo, C.sign = To, C.sin = Oo, C.sinh = Wo, C.sqrt = Po, C.sub = Vo, C.sum = zo, C.tan = Xo, C.tanh = Zo, C.trunc = _o, A === void 0 && (A = {}), A && A.defaults !== !0) for (Q = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], g = 0; g < Q.length; ) A.hasOwnProperty(I = Q[g++]) || (A[I] = this[I]);
6400
6400
  return C.config(A), C;
@@ -6423,7 +6423,7 @@ function LQ(B, A) {
6423
6423
  const g = Math.abs(B), I = Math.abs(A);
6424
6424
  return B === 0 ? Math.log(I) : A === 0 ? Math.log(g) : g < 3e3 && I < 3e3 ? 0.5 * Math.log(B * B + A * A) : (B *= 0.5, A *= 0.5, 0.5 * Math.log(B * B + A * A) + Math.LN2);
6425
6425
  }
6426
- const An = { re: 0, im: 0 }, DI = function(B, A) {
6426
+ const An = { re: 0, im: 0 }, hI = function(B, A) {
6427
6427
  const g = An;
6428
6428
  if (B == null) g.re = g.im = 0;
6429
6429
  else if (A !== void 0) g.re = B, g.im = A;
@@ -6460,23 +6460,23 @@ const An = { re: 0, im: 0 }, DI = function(B, A) {
6460
6460
  };
6461
6461
  function J(B, A) {
6462
6462
  if (!(this instanceof J)) return new J(B, A);
6463
- const g = DI(B, A);
6463
+ const g = hI(B, A);
6464
6464
  this.re = g.re, this.im = g.im;
6465
6465
  }
6466
6466
  J.prototype = { re: 0, im: 0, sign: function() {
6467
6467
  const B = SQ(this.re, this.im);
6468
6468
  return new J(this.re / B, this.im / B);
6469
6469
  }, add: function(B, A) {
6470
- const g = DI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im));
6470
+ const g = hI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im));
6471
6471
  return I || Q ? I && Q ? J.NAN : J.INFINITY : new J(this.re + g.re, this.im + g.im);
6472
6472
  }, sub: function(B, A) {
6473
- const g = DI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im));
6473
+ const g = hI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im));
6474
6474
  return I || Q ? I && Q ? J.NAN : J.INFINITY : new J(this.re - g.re, this.im - g.im);
6475
6475
  }, mul: function(B, A) {
6476
- const g = DI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im)), C = this.re === 0 && this.im === 0, E = g.re === 0 && g.im === 0;
6476
+ const g = hI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im)), C = this.re === 0 && this.im === 0, E = g.re === 0 && g.im === 0;
6477
6477
  return I && E || Q && C ? J.NAN : I || Q ? J.INFINITY : g.im === 0 && this.im === 0 ? new J(this.re * g.re, 0) : new J(this.re * g.re - this.im * g.im, this.re * g.im + this.im * g.re);
6478
6478
  }, div: function(B, A) {
6479
- const g = DI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im)), C = this.re === 0 && this.im === 0, E = g.re === 0 && g.im === 0;
6479
+ const g = hI(B, A), I = this.isInfinite(), Q = !(isFinite(g.re) && isFinite(g.im)), C = this.re === 0 && this.im === 0, E = g.re === 0 && g.im === 0;
6480
6480
  if (C && E || I && Q) return J.NAN;
6481
6481
  if (E || I) return J.INFINITY;
6482
6482
  if (C || Q) return J.ZERO;
@@ -6490,7 +6490,7 @@ J.prototype = { re: 0, im: 0, sign: function() {
6490
6490
  return new J((this.re + this.im * a) / i, (this.im - this.re * a) / i);
6491
6491
  }
6492
6492
  }, pow: function(B, A) {
6493
- const g = DI(B, A), I = this.re === 0 && this.im === 0;
6493
+ const g = hI(B, A), I = this.re === 0 && this.im === 0;
6494
6494
  if (g.re === 0 && g.im === 0) return J.ONE;
6495
6495
  if (g.im === 0) {
6496
6496
  if (this.im === 0 && this.re > 0) return new J(Math.pow(this.re, g.re), 0);
@@ -6647,7 +6647,7 @@ J.prototype = { re: 0, im: 0, sign: function() {
6647
6647
  }, round: function(B) {
6648
6648
  return B = Math.pow(10, B || 0), new J(Math.round(this.re * B) / B, Math.round(this.im * B) / B);
6649
6649
  }, equals: function(B, A) {
6650
- const g = DI(B, A);
6650
+ const g = hI(B, A);
6651
6651
  return Math.abs(g.re - this.re) <= J.EPSILON && Math.abs(g.im - this.im) <= J.EPSILON;
6652
6652
  }, clone: function() {
6653
6653
  return new J(this.re, this.im);
@@ -6719,7 +6719,7 @@ function SA(B, A) {
6719
6719
  if (A === CA) throw dC();
6720
6720
  const g = Object.create(ug.prototype);
6721
6721
  g.s = B < CA ? -tA : tA;
6722
- const I = bI(B = B < CA ? -B : B, A);
6722
+ const I = dI(B = B < CA ? -B : B, A);
6723
6723
  return g.n = B / I, g.d = A / I, g;
6724
6724
  }
6725
6725
  function SI(B) {
@@ -6793,7 +6793,7 @@ function In(B, A, g) {
6793
6793
  }
6794
6794
  return 0;
6795
6795
  }
6796
- function bI(B, A) {
6796
+ function dI(B, A) {
6797
6797
  if (!B) return A;
6798
6798
  if (!A) return B;
6799
6799
  for (; ; ) {
@@ -6803,7 +6803,7 @@ function bI(B, A) {
6803
6803
  }
6804
6804
  function ug(B, A) {
6805
6805
  if (ZA(B, A), !(this instanceof ug)) return SA(Z.s * Z.n, Z.d);
6806
- B = bI(Z.d, Z.n), this.s = Z.s, this.n = Z.n / B, this.d = Z.d / B;
6806
+ B = dI(Z.d, Z.n), this.s = Z.s, this.n = Z.n / B, this.d = Z.d / B;
6807
6807
  }
6808
6808
  var dC = function() {
6809
6809
  return new Error("Division by Zero");
@@ -6831,9 +6831,9 @@ ug.prototype = { s: tA, n: CA, d: tA, abs: function() {
6831
6831
  if (ZA(B, A), CA === Z.n * this.d) throw dC();
6832
6832
  return SA(this.s * (Z.d * this.n) % (Z.n * this.d), Z.d * this.d);
6833
6833
  }, gcd: function(B, A) {
6834
- return ZA(B, A), SA(bI(Z.n, this.n) * bI(Z.d, this.d), Z.d * this.d);
6834
+ return ZA(B, A), SA(dI(Z.n, this.n) * dI(Z.d, this.d), Z.d * this.d);
6835
6835
  }, lcm: function(B, A) {
6836
- return ZA(B, A), Z.n === CA && this.n === CA ? SA(CA, tA) : SA(Z.n * this.n, bI(Z.n, this.n) * bI(Z.d, this.d));
6836
+ return ZA(B, A), Z.n === CA && this.n === CA ? SA(CA, tA) : SA(Z.n * this.n, dI(Z.n, this.n) * dI(Z.d, this.d));
6837
6837
  }, inverse: function() {
6838
6838
  return SA(this.s * this.d, this.n);
6839
6839
  }, pow: function(B, A) {
@@ -6868,7 +6868,7 @@ ug.prototype = { s: tA, n: CA, d: tA, abs: function() {
6868
6868
  continue;
6869
6869
  }
6870
6870
  let s = o, n = e;
6871
- const r = bI(s, n);
6871
+ const r = dI(s, n);
6872
6872
  if (s /= r, n /= r, a === null && i === null) a = s, i = n;
6873
6873
  else if (s * i != a * n) return null;
6874
6874
  }
@@ -7322,7 +7322,7 @@ function FE(B, A, g, I) {
7322
7322
  var t;
7323
7323
  if (C instanceof TypeError && ((t = C.data) === null || t === void 0 ? void 0 : t.category) === "wrongType") {
7324
7324
  var e = [];
7325
- throw e.push("value: ".concat(iI(E[0]))), E.length >= 2 && e.push("index: ".concat(iI(E[1]))), E.length >= 3 && e.push("array: ".concat(iI(E[2]))), new TypeError("Function ".concat(a, " cannot apply callback arguments ") + "".concat(i, "(").concat(e.join(", "), ") at index ").concat(JSON.stringify(E[1])));
7325
+ throw e.push("value: ".concat(eI(E[0]))), E.length >= 2 && e.push("index: ".concat(eI(E[1]))), E.length >= 3 && e.push("array: ".concat(eI(E[2]))), new TypeError("Function ".concat(a, " cannot apply callback arguments ") + "".concat(i, "(").concat(e.join(", "), ") at index ").concat(JSON.stringify(E[1])));
7326
7326
  }
7327
7327
  throw new TypeError("Function ".concat(a, " cannot apply callback arguments ") + "to function ".concat(i, ": ").concat(C.message));
7328
7328
  })(Q, A, g, I);
@@ -7338,7 +7338,7 @@ var en = wA("DenseMatrix", ["Matrix"], (B) => {
7338
7338
  else if (E && zA(E.data) && zA(E.size)) this._data = E.data, this._size = E.size, wE(this._data, this._size), this._datatype = a || E.datatype;
7339
7339
  else if (zA(E)) this._data = C(E), this._size = Eg(this._data), wE(this._data, this._size), this._datatype = a;
7340
7340
  else {
7341
- if (E) throw new TypeError("Unsupported type of data (" + iI(E) + ")");
7341
+ if (E) throw new TypeError("Unsupported type of data (" + eI(E) + ")");
7342
7342
  this._data = [], this._size = [0], this._datatype = a;
7343
7343
  }
7344
7344
  }
@@ -7360,7 +7360,7 @@ var en = wA("DenseMatrix", ["Matrix"], (B) => {
7360
7360
  return g.prototype = new A(), g.prototype.createDenseMatrix = function(E, a) {
7361
7361
  return new g(E, a);
7362
7362
  }, Object.defineProperty(g, "name", { value: "DenseMatrix" }), g.prototype.constructor = g, g.prototype.type = "DenseMatrix", g.prototype.isDenseMatrix = !0, g.prototype.getDataType = function() {
7363
- return wC(this._data, iI);
7363
+ return wC(this._data, eI);
7364
7364
  }, g.prototype.storage = function() {
7365
7365
  return "dense";
7366
7366
  }, g.prototype.datatype = function() {
@@ -7666,7 +7666,7 @@ var sn = wA("SparseMatrix", ["typed", "equalScalar", "Matrix"], (B) => {
7666
7666
  else if (e && zA(e.index) && zA(e.ptr) && zA(e.size)) this._values = e.values, this._index = e.index, this._ptr = e.ptr, this._size = e.size, this._datatype = o || e.datatype;
7667
7667
  else if (zA(e)) C(this, e, o);
7668
7668
  else {
7669
- if (e) throw new TypeError("Unsupported type of data (" + iI(e) + ")");
7669
+ if (e) throw new TypeError("Unsupported type of data (" + eI(e) + ")");
7670
7670
  this._values = [], this._index = [], this._ptr = [0], this._size = [0, 0], this._datatype = o;
7671
7671
  }
7672
7672
  }
@@ -7738,7 +7738,7 @@ var sn = wA("SparseMatrix", ["typed", "equalScalar", "Matrix"], (B) => {
7738
7738
  return Q.prototype = new I(), Q.prototype.createSparseMatrix = function(e, o) {
7739
7739
  return new Q(e, o);
7740
7740
  }, Object.defineProperty(Q, "name", { value: "SparseMatrix" }), Q.prototype.constructor = Q, Q.prototype.type = "SparseMatrix", Q.prototype.isSparseMatrix = !0, Q.prototype.getDataType = function() {
7741
- return wC(this._values, iI);
7741
+ return wC(this._values, eI);
7742
7742
  }, Q.prototype.storage = function() {
7743
7743
  return "sparse";
7744
7744
  }, Q.prototype.datatype = function() {
@@ -8421,7 +8421,7 @@ var SE, LE = "size", kn = wA(LE, ["typed", "config", "?matrix"], (B) => {
8421
8421
  return function(E) {
8422
8422
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "number";
8423
8423
  if ((arguments.length > 2 ? arguments[2] : void 0) !== void 0) throw new SyntaxError("numeric() takes one or two arguments");
8424
- var i = iI(E);
8424
+ var i = eI(E);
8425
8425
  if (!(i in Q)) throw new TypeError("Cannot convert " + E + ' of type "' + i + '"; valid input types are ' + Object.keys(Q).join(", "));
8426
8426
  if (!(a in C)) throw new TypeError("Cannot convert " + E + ' to type "' + a + '"; valid output types are ' + Object.keys(C).join(", "));
8427
8427
  return a === i ? E : C[a](E);
@@ -8712,7 +8712,7 @@ class Wn {
8712
8712
  * @copyright Copyright (c) 2022 Kirk Qi <qilinaus@gmail.com>
8713
8713
  * @license MIT License
8714
8714
  */
8715
- class wI extends Wn {
8715
+ class bI extends Wn {
8716
8716
  constructor(A = [], g) {
8717
8717
  if (super(g), g) {
8718
8718
  const { comparator: I } = g;
@@ -8731,7 +8731,7 @@ class wI extends Wn {
8731
8731
  return this.elements[this.size - 1] ?? void 0;
8732
8732
  }
8733
8733
  static heapify(A, g) {
8734
- return new wI(A, g);
8734
+ return new bI(A, g);
8735
8735
  }
8736
8736
  add(A) {
8737
8737
  return this._elements.push(A), this._bubbleUp(this.elements.length - 1);
@@ -8773,10 +8773,10 @@ class wI extends Wn {
8773
8773
  return I(0), g;
8774
8774
  }
8775
8775
  clone() {
8776
- return new wI(this, { comparator: this.comparator, toElementFn: this.toElementFn });
8776
+ return new bI(this, { comparator: this.comparator, toElementFn: this.toElementFn });
8777
8777
  }
8778
8778
  sort() {
8779
- const A = [], g = new wI(this, { comparator: this.comparator });
8779
+ const A = [], g = new bI(this, { comparator: this.comparator });
8780
8780
  for (; g.size !== 0; ) {
8781
8781
  const I = g.poll();
8782
8782
  I !== void 0 && A.push(I);
@@ -8789,13 +8789,13 @@ class wI extends Wn {
8789
8789
  return A;
8790
8790
  }
8791
8791
  filter(A, g) {
8792
- const I = new wI([], { toElementFn: this.toElementFn, comparator: this.comparator });
8792
+ const I = new bI([], { toElementFn: this.toElementFn, comparator: this.comparator });
8793
8793
  let Q = 0;
8794
8794
  for (const C of this) A.call(g, C, Q, this) && I.add(C), Q++;
8795
8795
  return I;
8796
8796
  }
8797
8797
  map(A, g, I, Q) {
8798
- const C = new wI([], { comparator: g, toElementFn: I });
8798
+ const C = new bI([], { comparator: g, toElementFn: I });
8799
8799
  let E = 0;
8800
8800
  for (const a of this) C.add(A.call(Q, a, E, this)), E++;
8801
8801
  return C;
@@ -8835,7 +8835,7 @@ class wI extends Wn {
8835
8835
  (function(B) {
8836
8836
  B[B.VISIT = 0] = "VISIT", B[B.PROCESS = 1] = "PROCESS";
8837
8837
  })(SE || (SE = {}));
8838
- class iB extends wI {
8838
+ class iB extends bI {
8839
8839
  constructor(A = [], g) {
8840
8840
  super(A, g);
8841
8841
  }
@@ -9098,7 +9098,7 @@ function Pn(B) {
9098
9098
  }
9099
9099
  }
9100
9100
  new bA(), new bA();
9101
- const Ue = new aI();
9101
+ const Ue = new EI();
9102
9102
  Ue.set(1, 0, 0, 0, 0, 1, 0, -1, 0);
9103
9103
  const Vn = new Tg().set(1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1);
9104
9104
  function HQ(B, A) {
@@ -9114,7 +9114,7 @@ class zn extends OQ {
9114
9114
  const i = new uB(1024, 1024, 1, { magFilter: gg, minFilter: gg, anisotropy: 0, type: kg, format: Ng, depthBuffer: !1, resolveDepthBuffer: !1 });
9115
9115
  i.texture.type = kg, i.texture.format = Ng, i.texture.internalFormat = "RGBA32UI", A.initRenderTarget(i);
9116
9116
  const t = new cQ({ glslVersion: hQ, uniforms: { textureSize: { value: 1024 }, numSlices: { value: 1 }, covarianceTexture: { value: i.texture }, positionColorTexture: { value: a.texture }, zUpToYUpMatrix3x3: { value: Ue }, sizeMultiplier: { value: 1 }, cropRadius: { value: Number.MAX_VALUE }, viewportPixelSize: { value: new sC() }, k: { value: 2 }, beta_k: { value: 2 }, minSplatPixelSize: { value: 0 }, minOpacity: { value: 0.01 }, culling: { value: !1 }, antialiasingFactor: { value: 2 }, depthBias: { value: 0 } }, vertexShader: Xn(), fragmentShader: I || Zn(), transparent: !0, side: UB, depthTest: !0, depthWrite: !1, blending: Mi }), e = new YC(), o = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]);
9117
- e.setIndex([0, 2, 1, 2, 3, 1]), e.setAttribute("position", new eI(o, 3));
9117
+ e.setIndex([0, 2, 1, 2, 3, 1]), e.setAttribute("position", new aI(o, 3));
9118
9118
  const s = new Uint32Array(E), n = new vQ(s, 1, !1);
9119
9119
  n.needsUpdate = !0, n.setUsage(HC), e.setAttribute("order", n), e.instanceCount = 0, super(e, t), this.matrixAutoUpdate = !1, this.numBatches = 0, this.numVisibleBatches = 0, this.orderAttribute = n, this.textureSize = 1024, this.numTextures = 1, this.batchSize = C, this.maxSplats = E, this.numSplatsRendered = 0, this.positionColorRenderTarget = a, this.covarianceRenderTarget = i, this.renderer = A, this.sortID = 0, this.freeAddresses = new tB();
9120
9120
  for (let c = 0; c < this.maxSplats; c += C) this.freeAddresses.add(c);
@@ -9122,7 +9122,7 @@ class zn extends OQ {
9122
9122
  const D = new Uint32Array(c.data.order);
9123
9123
  if (this.numSplatsRendered = D.length, D.length > this.orderAttribute.count) {
9124
9124
  const d = new YC(), h = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]), b = [0, 2, 1, 2, 3, 1];
9125
- d.setIndex(b), d.setAttribute("position", new eI(h, 3));
9125
+ d.setIndex(b), d.setAttribute("position", new aI(h, 3));
9126
9126
  const l = new Uint32Array(this.maxSplats), R = new vQ(l, 1, !1);
9127
9127
  R.needsUpdate = !0, R.setUsage(HC), d.setAttribute("order", R), d.instanceCount = 0, this.geometry.dispose(), this.geometry = d, this.orderAttribute = R;
9128
9128
  }
@@ -9209,7 +9209,7 @@ void main() {
9209
9209
  const n = new Float32Array(E.length / a * 3), r = new Uint32Array(n.buffer, n.byteOffset, n.length);
9210
9210
  for (let D = 0; D < E.length / 3; D++) n[3 * D] = E[D * a + i], n[3 * D + 1] = E[D * a + i + 1], n[3 * D + 2] = E[D * a + i + 2];
9211
9211
  s = (D, d, h) => {
9212
- const b = h * h, l = Math.pow(C.material.uniforms.cropRadius.value, 2), R = new aI(), G = new bA(), p = new bA(), M = new bA(), k = new bA(), L = n.length / 3;
9212
+ const b = h * h, l = Math.pow(C.material.uniforms.cropRadius.value, 2), R = new EI(), G = new bA(), p = new bA(), M = new bA(), k = new bA(), L = n.length / 3;
9213
9213
  for (let U = 0; U < L; U++) {
9214
9214
  if (G.set(n[3 * U], -n[3 * U + 2], n[3 * U + 1]), G.lengthSq() > l || D.distanceSqToPoint(G) > b) continue;
9215
9215
  _n(I, Q, U, R);
@@ -9528,16 +9528,16 @@ function _n(B, A, g, I) {
9528
9528
  function $n(B, A, g) {
9529
9529
  const I = B.determinant();
9530
9530
  if (Math.abs(I) < 1e-12) return void g.set(0, 0, 0);
9531
- const Q = 1 / I, C = new aI().copy(B);
9531
+ const Q = 1 / I, C = new EI().copy(B);
9532
9532
  C.elements[0] = A.x, C.elements[3] = A.y, C.elements[6] = A.z;
9533
- const E = new aI().copy(B);
9533
+ const E = new EI().copy(B);
9534
9534
  E.elements[1] = A.x, E.elements[4] = A.y, E.elements[7] = A.z;
9535
- const a = new aI().copy(B);
9535
+ const a = new EI().copy(B);
9536
9536
  a.elements[2] = A.x, a.elements[5] = A.y, a.elements[8] = A.z, g.set(C.determinant() * Q, E.determinant() * Q, a.determinant() * Q);
9537
9537
  }
9538
9538
  new bA(), new bA();
9539
9539
  var yA;
9540
- new aI().set(1, 0, 0, 0, 0, 1, 0, -1, 0), new Tg().set(1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1);
9540
+ new EI().set(1, 0, 0, 0, 0, 1, 0, -1, 0), new Tg().set(1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1);
9541
9541
  const yg = new P.Sphere(new P.Vector3(0, 0, 0), 1), jg = new lg([0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]);
9542
9542
  new P.Box3();
9543
9543
  const AI = new P.Vector3(0, 0, 0), LI = new P.Vector3(0, 0, 0), As = new P.Vector3(0, 1, 0), RB = new P.Ray(), NB = new P.Matrix4();
@@ -9576,7 +9576,7 @@ class me extends P.Object3D {
9576
9576
  (g.proxy ? () => fetch(g.proxy, { method: "POST", body: I, signal: g.abortController.signal }) : () => fetch(I, { signal: g.abortController.signal }))().then((C) => {
9577
9577
  if (!C.ok) throw new Error(`couldn't load "${A.url}". Request failed with status ${C.status} : ${C.statusText}`);
9578
9578
  C.json().then((E) => cC(E, I)).then((E) => {
9579
- g._setup({ rootPath: EI.dirname(A.url), json: E });
9579
+ g._setup({ rootPath: uI.dirname(A.url), json: E });
9580
9580
  });
9581
9581
  }).catch((C) => {
9582
9582
  g.displayErrors && TE(C);
@@ -9648,20 +9648,28 @@ class me extends P.Object3D {
9648
9648
  }
9649
9649
  _assembleURL(A, g) {
9650
9650
  A.endsWith("/") || (A += "/");
9651
- const I = new URL(A);
9652
- let Q = I.pathname.split("/").filter((E) => E !== ""), C = g.split("/").filter((E) => E !== "");
9653
- for (let E = 1; E <= Q.length && !(E >= C.length); E++)
9654
- if (Q.slice(Q.length - E, Q.length).join("/") === C.slice(0, E).join("/")) {
9655
- for (let a = 0; a < E; a++) Q.pop();
9656
- break;
9657
- }
9658
- for (; C.length > 0 && C[0] === ".."; ) Q.pop(), C.shift();
9659
- return `${I.protocol}//${I.host}/${[...Q, ...C].join("/")}`;
9651
+ try {
9652
+ const I = new URL(A);
9653
+ let Q = I.pathname.split("/").filter((E) => E !== ""), C = g.split("/").filter((E) => E !== "");
9654
+ for (let E = 1; E <= Q.length && !(E >= C.length); E++)
9655
+ if (Q.slice(Q.length - E, Q.length).join("/") === C.slice(0, E).join("/")) {
9656
+ for (let i = 0; i < E; i++) Q.pop();
9657
+ break;
9658
+ }
9659
+ for (; C.length > 0 && C[0] === ".."; ) Q.pop(), C.shift();
9660
+ return `${I.protocol}//${I.host}/${[...Q, ...C].join("/")}`;
9661
+ } catch {
9662
+ return A.endsWith("/") || g.startsWith("/") ? A + g : A + "/" + g;
9663
+ }
9660
9664
  }
9661
9665
  _extractQueryParams(A, g) {
9662
- const I = new URL(A);
9663
- for (let [Q, C] of I.searchParams) g[Q] = C;
9664
- return I.search = "", I.toString();
9666
+ try {
9667
+ const I = new URL(A);
9668
+ for (let [Q, C] of I.searchParams) g[Q] = C;
9669
+ return I.search = "", I.toString();
9670
+ } catch {
9671
+ return A;
9672
+ }
9665
9673
  }
9666
9674
  async _load(A = !0, g = !0) {
9667
9675
  var I = this;
@@ -9676,7 +9684,7 @@ class me extends P.Object3D {
9676
9684
  let t;
9677
9685
  C.uri ? t = C.uri : C.url && (t = C.url);
9678
9686
  const e = /^(?:http|https|ftp|tcp|udp):\/\/\S+/;
9679
- if (e.test(I.rootPath) ? e.test(t) || (t = I._assembleURL(I.rootPath, t)) : EI.isAbsolute(I.rootPath) && (t = I.rootPath + EI.sep + t), t.startsWith("/local-tiles") || (t = I._extractQueryParams(t, I.queryParams)), I.queryParams) {
9687
+ if (e.test(I.rootPath) ? e.test(t) || (t = I._assembleURL(I.rootPath, t)) : t = I.rootPath + uI.sep + t, t.startsWith("/local-tiles") || (t = I._extractQueryParams(t, I.queryParams)), I.queryParams) {
9680
9688
  var o = "";
9681
9689
  for (let s in I.queryParams) I.queryParams.hasOwnProperty(s) && (o += "&" + s + "=" + I.queryParams[s]);
9682
9690
  t.includes("?") ? t += o : t += "?" + o.substring(1);
@@ -9697,7 +9705,7 @@ class me extends P.Object3D {
9697
9705
  I.displayErrors && TE(s);
9698
9706
  }
9699
9707
  else a && t.includes(".json") && (I.jsonRequested = t, I.tileLoader.get(I.abortController, I.uuid, t, async (s) => {
9700
- I.jsonReceived = !0, s.rootPath = EI.dirname(t), I.json.children.push(s), E == null ? delete I.json.content : I.json.contents.splice(E, 1), I.hasUnloadedJSONContent--;
9708
+ I.jsonReceived = !0, s.rootPath = uI.dirname(t), I.json.children.push(s), E == null ? delete I.json.content : I.json.contents.splice(E, 1), I.hasUnloadedJSONContent--;
9701
9709
  }));
9702
9710
  }
9703
9711
  }
@@ -10011,7 +10019,7 @@ class FC extends P.Object3D {
10011
10019
  if (A.queryParams && (this.queryParams = { ...A.queryParams }), this.uuid = Za(), A.tileLoader ? this.tileLoader = A.tileLoader : console.error("an instanced tileset must be provided an InstancedTilesetLoader"), this.master = A.master, this.loadOutsideView = A.loadOutsideView, this.cameraOnLoad = A.cameraOnLoad, this.parentTile = A.parentTile, this.distanceBias = Math.max(1e-4, A.distanceBias ? A.distanceBias : 1), this.childrenTiles = [], this.jsonChildren = [], this.meshContent = /* @__PURE__ */ new Set(), this.static = A.static, this.static && (this.matrixAutoUpdate = !1, this.matrixWorldAutoUpdate = !1), this.tileContent, this.refinement, this.rootPath, this.geometricError, this.boundingVolume, this.json, this.materialVisibility = !1, this.inFrustum = !0, this.level = A.level ? A.level : 0, this.hasMeshContent = 0, this.hasUnloadedJSONContent = 0, this.centerModel = A.centerModel, this.deleted = !1, this.abortController = new AbortController(), A.json) this.rootPath = A.json.rootPath ? A.json.rootPath : A.rootPath, A.json.children && (this.jsonChildren = A.json.children), g.setup(A);
10012
10020
  else if (A.url) {
10013
10021
  this.loadJson = (C, E) => {
10014
- const a = EI.dirname(E);
10022
+ const a = uI.dirname(E);
10015
10023
  g.setup({ rootPath: a, json: C, onLoadCallback: A.onLoadCallback });
10016
10024
  };
10017
10025
  var I = A.url;
@@ -10072,7 +10080,7 @@ class FC extends P.Object3D {
10072
10080
  let Q;
10073
10081
  I.uri ? Q = I.uri : I.url && (Q = I.url);
10074
10082
  const C = /^(?:http|https|ftp|tcp|udp):\/\/\S+/;
10075
- if (C.test(A.rootPath) ? C.test(Q) || (Q = A.assembleURL(A.rootPath, Q)) : EI.isAbsolute(A.rootPath) && (Q = A.rootPath + EI.sep + Q), Q = A.extractQueryParams(Q, A.queryParams), A.queryParams) {
10083
+ if (C.test(A.rootPath) ? C.test(Q) || (Q = A.assembleURL(A.rootPath, Q)) : uI.isAbsolute(A.rootPath) && (Q = A.rootPath + uI.sep + Q), Q = A.extractQueryParams(Q, A.queryParams), A.queryParams) {
10076
10084
  var E = "";
10077
10085
  for (let a in A.queryParams) A.queryParams.hasOwnProperty(a) && (E += "&" + a + "=" + A.queryParams[a]);
10078
10086
  Q.includes("?") ? Q += E : Q += "?" + E.substring(1);
@@ -10085,7 +10093,7 @@ class FC extends P.Object3D {
10085
10093
  this.deleted || this.meshContent.add(A);
10086
10094
  }
10087
10095
  loadJson(A, g) {
10088
- this.deleted || (this.json.children && (this.jsonChildren = this.json.children), A.rootPath = EI.dirname(g), this.jsonChildren.push(A), this.hasUnloadedJSONContent--);
10096
+ this.deleted || (this.json.children && (this.jsonChildren = this.json.children), A.rootPath = uI.dirname(g), this.jsonChildren.push(A), this.hasUnloadedJSONContent--);
10089
10097
  }
10090
10098
  dispose() {
10091
10099
  const A = this;
@@ -10272,7 +10280,7 @@ class Qs {
10272
10280
  return !(!this.json || this.instancedTiles.length != 0);
10273
10281
  }
10274
10282
  }
10275
- let hI = 0;
10283
+ let cI = 0;
10276
10284
  class is {
10277
10285
  constructor(A, g) {
10278
10286
  if (this.zUpToYUpMatrix = new P.Matrix4(), this.zUpToYUpMatrix.set(1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1), this.maxCachedItems = 100, this.maxInstances = 1, this.proxy = g.proxy, g && (this.meshCallback = g.meshCallback, this.pointsCallback = g.pointsCallback, g.maxCachedItems && (this.maxCachedItems = g.maxCachedItems), g.maxInstances && (this.maxInstances = g.maxInstances)), this.gltfLoader = new ia(), g && g.dracoLoader) this.gltfLoader.setDRACOLoader(g.dracoLoader), this.hasDracoLoader = !0;
@@ -10291,14 +10299,14 @@ class is {
10291
10299
  const A = this;
10292
10300
  A._checkSize(), A.cache._data.forEach((g) => {
10293
10301
  g.update();
10294
- }), hI < 8 && A._download(), A._loadBatch();
10302
+ }), cI < 8 && A._download(), A._loadBatch();
10295
10303
  }
10296
10304
  _download() {
10297
10305
  const A = this;
10298
10306
  if (A.nextDownloads.length != 0 || (A._getNextDownloads(), A.nextDownloads.length != 0)) for (; A.nextDownloads.length > 0; ) {
10299
10307
  const I = A.nextDownloads.shift();
10300
10308
  if (I) {
10301
- if (I.path.includes(".b3dm") && (g = A.proxy ? () => fetch(A.proxy, { method: "POST", body: I.path }) : () => fetch(I.path), hI++, g().then((Q) => {
10309
+ if (I.path.includes(".b3dm") && (g = A.proxy ? () => fetch(A.proxy, { method: "POST", body: I.path }) : () => fetch(I.path), cI++, g().then((Q) => {
10302
10310
  if (!Q.ok) throw console.error("could not load tile with path : " + I.path), new Error(`couldn't load "${I.path}". Request failed with status ${Q.status} : ${Q.statusText}`);
10303
10311
  return Q.arrayBuffer();
10304
10312
  }).then((Q) => this.b3dmDecoder.parseB3DMInstanced(Q, (C) => {
@@ -10306,8 +10314,8 @@ class is {
10306
10314
  }, A.maxInstances, I.sceneZupToYup, I.meshZupToYup)).then((Q) => {
10307
10315
  Q.frustumCulled = !1, I.tile.setObject(Q), A.ready.unshift(I);
10308
10316
  }).catch((Q) => console.error(Q)).finally(() => {
10309
- hI--;
10310
- })), I.path.includes(".glb") || I.path.includes(".gltf")) g = A.proxy ? () => fetch(A.proxy, { method: "POST", body: I.path }) : () => fetch(I.path), hI++, g().then((Q) => {
10317
+ cI--;
10318
+ })), I.path.includes(".glb") || I.path.includes(".gltf")) g = A.proxy ? () => fetch(A.proxy, { method: "POST", body: I.path }) : () => fetch(I.path), cI++, g().then((Q) => {
10311
10319
  if (!Q.ok) throw new Error("missing content");
10312
10320
  return Q.arrayBuffer();
10313
10321
  }).then(async (Q) => {
@@ -10324,17 +10332,17 @@ class is {
10324
10332
  }, (Q) => {
10325
10333
  console.error("could not load tile : " + I.path);
10326
10334
  }).finally(() => {
10327
- hI--;
10335
+ cI--;
10328
10336
  });
10329
10337
  else if (I.path.includes(".json")) {
10330
10338
  var g;
10331
- g = A.proxy ? () => fetch(A.proxy, { method: "POST", body: I.path }) : () => fetch(I.path), hI++, g().then((Q) => {
10339
+ g = A.proxy ? () => fetch(A.proxy, { method: "POST", body: I.path }) : () => fetch(I.path), cI++, g().then((Q) => {
10332
10340
  if (!Q.ok) throw console.error("could not load tile with path : " + I.path), new Error(`couldn't load "${I.path}". Request failed with status ${Q.status} : ${Q.statusText}`);
10333
10341
  return Q.json();
10334
10342
  }).then((Q) => cC(Q, I.path)).then((Q) => {
10335
10343
  I.tile.setObject(Q, I.path), A.ready.unshift(I);
10336
10344
  }).catch((Q) => console.error(Q)).finally(() => {
10337
- hI--;
10345
+ cI--;
10338
10346
  });
10339
10347
  }
10340
10348
  }