@xiping/react-components 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/cjs/components/blur-fade/BlurFade.d.ts +23 -0
  2. package/dist/cjs/components/blur-fade/BlurFade.js +1 -0
  3. package/dist/cjs/components/blur-fade/index.d.ts +2 -0
  4. package/dist/cjs/components/button/Button.d.ts +3 -3
  5. package/dist/cjs/components/button/Button.js +1 -1
  6. package/dist/cjs/components/hyper-text/index.d.ts +1 -1
  7. package/dist/cjs/components/hyper-text/index.js +1 -1
  8. package/dist/cjs/components/image-viewer/ImageThumbnails.d.ts +7 -0
  9. package/dist/cjs/components/image-viewer/ImageThumbnails.js +1 -0
  10. package/dist/cjs/components/image-viewer/ImageViewer.js +2 -2
  11. package/dist/cjs/components/image-viewer/index.d.ts +1 -3
  12. package/dist/cjs/components/morphing-text/index.d.ts +1 -1
  13. package/dist/cjs/components/scratch-to-reveal/ScratchToReveal.d.ts +12 -0
  14. package/dist/cjs/components/scratch-to-reveal/index.d.ts +2 -0
  15. package/dist/cjs/index.d.ts +1 -0
  16. package/dist/cjs/index.js +1 -1
  17. package/dist/cjs/node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +1 -1
  18. package/dist/cjs/node_modules/.pnpm/three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js +1 -1
  19. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.module.js +1 -1
  20. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.webgpu.js +1 -1
  21. package/dist/cjs/react-components.css +1 -1
  22. package/dist/es/components/blur-fade/BlurFade.d.ts +23 -0
  23. package/dist/es/components/blur-fade/BlurFade.js +51 -0
  24. package/dist/es/components/blur-fade/index.d.ts +2 -0
  25. package/dist/es/components/button/Button.d.ts +3 -3
  26. package/dist/es/components/button/Button.js +2 -2
  27. package/dist/es/components/hyper-text/index.d.ts +1 -1
  28. package/dist/es/components/hyper-text/index.js +52 -50
  29. package/dist/es/components/image-viewer/ImageThumbnails.d.ts +7 -0
  30. package/dist/es/components/image-viewer/ImageThumbnails.js +74 -0
  31. package/dist/es/components/image-viewer/ImageViewer.js +63 -105
  32. package/dist/es/components/image-viewer/index.d.ts +1 -3
  33. package/dist/es/components/morphing-text/index.d.ts +1 -1
  34. package/dist/es/components/scratch-to-reveal/ScratchToReveal.d.ts +12 -0
  35. package/dist/es/components/scratch-to-reveal/index.d.ts +2 -0
  36. package/dist/es/index.d.ts +1 -0
  37. package/dist/es/index.js +18 -16
  38. package/dist/es/node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +1 -1
  39. package/dist/es/node_modules/.pnpm/three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js +2 -2
  40. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.core.js +372 -372
  41. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.module.js +1 -1
  42. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.webgpu.js +1 -1
  43. package/dist/es/react-components.css +1 -1
  44. package/package.json +19 -19
  45. /package/dist/cjs/node_modules/.pnpm/{3d-force-graph@1.78.2 → 3d-force-graph@1.78.3}/node_modules/3d-force-graph/dist/3d-force-graph.js +0 -0
  46. /package/dist/es/node_modules/.pnpm/{3d-force-graph@1.78.2 → 3d-force-graph@1.78.3}/node_modules/3d-force-graph/dist/3d-force-graph.js +0 -0
@@ -3,7 +3,7 @@
3
3
  * Copyright 2010-2025 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
5
5
  */
6
- const Ss = "178", pa = { ROTATE: 0, DOLLY: 1, PAN: 2 }, da = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, fa = 0, ma = 1, ya = 2, xa = 0, ga = 1, Ma = 2, wa = 3, Ai = 0, _s = 1, ba = 2, js = 0, Di = 1, Sa = 2, _a = 3, Aa = 4, va = 5, Ni = 100, za = 101, Ta = 102, Ca = 103, Fa = 104, Ba = 200, Ra = 201, Ea = 202, Pa = 203, Vi = 204, Ui = 205, Ia = 206, ka = 207, Oa = 208, La = 209, Da = 210, Na = 211, Va = 212, Ua = 213, Wa = 214, qa = 0, Ja = 1, ja = 2, Wi = 3, Xa = 4, Ga = 5, Ha = 6, Ya = 7, Ti = 0, Za = 1, $a = 2, Qa = 0, Ka = 1, to = 2, eo = 3, io = 4, so = 5, no = 6, ro = 7, As = 300, Xs = 301, ao = 302, oo = 303, ho = 304, lo = 306, qi = 1e3, ie = 1001, Ji = 1002, ut = 1003, co = 1004, uo = 1005, We = 1006, po = 1007, vs = 1008, Ci = 1009, Gs = 1010, Hs = 1011, Ys = 1012, Zs = 1013, zs = 1014, Ts = 1015, $s = 1016, Qs = 1017, Ks = 1018, fo = 1020, tn = 35902, en = 1021, sn = 1022, Cs = 1023, ji = 1026, nn = 1027, rn = 1028, an = 1029, on = 1030, hn = 1031, mo = 1032, ln = 1033, cn = 33776, un = 33777, pn = 33778, dn = 33779, fn = 35840, mn = 35841, yn = 35842, xn = 35843, gn = 36196, Mn = 37492, wn = 37496, bn = 37808, Sn = 37809, _n = 37810, An = 37811, vn = 37812, zn = 37813, Tn = 37814, Cn = 37815, Fn = 37816, Bn = 37817, Rn = 37818, En = 37819, Pn = 37820, In = 37821, kn = 36492, On = 36494, Ln = 36495, Dn = 36283, Nn = 36284, Vn = 36285, Un = 36286, Wn = 3200, yo = 3201, ne = 0, xo = 1, Fs = "", ot = "srgb", Xi = "srgb-linear", Gi = "linear", Ye = "srgb", go = 0, Ut = 7680, Mo = 7681, wo = 7682, bo = 7683, So = 34055, _o = 34056, Ao = 5386, vo = 512, zo = 513, To = 514, Co = 515, Fo = 516, Bo = 517, Ro = 518, Hi = 519, Eo = 512, Po = 513, Io = 514, ko = 515, Oo = 516, Lo = 517, Do = 518, No = 519, vi = 35044, Vo = 35048, Uo = "300 es", wt = 2e3, qe = 2001;
6
+ const ua = "178", pa = { ROTATE: 0, DOLLY: 1, PAN: 2 }, da = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, fa = 0, ma = 1, ya = 2, xa = 0, ga = 1, Ma = 2, wa = 3, Ai = 0, Ss = 1, ba = 2, Js = 0, Di = 1, Sa = 2, _a = 3, Aa = 4, va = 5, Ni = 100, za = 101, Ta = 102, Ca = 103, Fa = 104, Ra = 200, Ba = 201, Ea = 202, Pa = 203, Vi = 204, Ui = 205, Ia = 206, ka = 207, Oa = 208, La = 209, Da = 210, Na = 211, Va = 212, Ua = 213, Wa = 214, qa = 0, Ja = 1, ja = 2, Wi = 3, Xa = 4, Ga = 5, Ha = 6, Ya = 7, Ti = 0, Za = 1, $a = 2, Qa = 0, Ka = 1, to = 2, eo = 3, io = 4, so = 5, no = 6, ro = 7, _s = 300, js = 301, ao = 302, oo = 303, ho = 304, lo = 306, qi = 1e3, ie = 1001, Ji = 1002, ut = 1003, co = 1004, uo = 1005, We = 1006, po = 1007, As = 1008, Ci = 1009, Xs = 1010, Gs = 1011, Hs = 1012, Ys = 1013, vs = 1014, zs = 1015, Zs = 1016, $s = 1017, Qs = 1018, fo = 1020, Ks = 35902, tn = 1021, en = 1022, Ts = 1023, ji = 1026, sn = 1027, nn = 1028, rn = 1029, an = 1030, on = 1031, mo = 1032, hn = 1033, ln = 33776, cn = 33777, un = 33778, pn = 33779, dn = 35840, fn = 35841, mn = 35842, yn = 35843, xn = 36196, gn = 37492, Mn = 37496, wn = 37808, bn = 37809, Sn = 37810, _n = 37811, An = 37812, vn = 37813, zn = 37814, Tn = 37815, Cn = 37816, Fn = 37817, Rn = 37818, Bn = 37819, En = 37820, Pn = 37821, In = 36492, kn = 36494, On = 36495, Ln = 36283, Dn = 36284, Nn = 36285, Vn = 36286, Un = 3200, yo = 3201, ne = 0, xo = 1, Cs = "", ot = "srgb", Xi = "srgb-linear", Gi = "linear", Ye = "srgb", go = 0, Ut = 7680, Mo = 7681, wo = 7682, bo = 7683, So = 34055, _o = 34056, Ao = 5386, vo = 512, zo = 513, To = 514, Co = 515, Fo = 516, Ro = 517, Bo = 518, Hi = 519, Eo = 512, Po = 513, Io = 514, ko = 515, Oo = 516, Lo = 517, Do = 518, No = 519, vi = 35044, Vo = 35048, Uo = "300 es", wt = 2e3, qe = 2001;
7
7
  class re {
8
8
  /**
9
9
  * Adds the given event listener to the given event type.
@@ -73,57 +73,57 @@ function C(c, t, e) {
73
73
  function Fi(c, t) {
74
74
  return (c % t + t) % t;
75
75
  }
76
- function qn(c, t, e, i, s) {
76
+ function Wn(c, t, e, i, s) {
77
77
  return i + (c - t) * (s - i) / (e - t);
78
78
  }
79
- function Jn(c, t, e) {
79
+ function qn(c, t, e) {
80
80
  return c !== t ? (e - c) / (t - c) : 0;
81
81
  }
82
82
  function de(c, t, e) {
83
83
  return (1 - e) * c + e * t;
84
84
  }
85
- function jn(c, t, e, i) {
85
+ function Jn(c, t, e, i) {
86
86
  return de(c, t, 1 - Math.exp(-e * i));
87
87
  }
88
- function Xn(c, t = 1) {
88
+ function jn(c, t = 1) {
89
89
  return t - Math.abs(Fi(c, t * 2) - t);
90
90
  }
91
- function Gn(c, t, e) {
91
+ function Xn(c, t, e) {
92
92
  return c <= t ? 0 : c >= e ? 1 : (c = (c - t) / (e - t), c * c * (3 - 2 * c));
93
93
  }
94
- function Hn(c, t, e) {
94
+ function Gn(c, t, e) {
95
95
  return c <= t ? 0 : c >= e ? 1 : (c = (c - t) / (e - t), c * c * c * (c * (c * 6 - 15) + 10));
96
96
  }
97
- function Yn(c, t) {
97
+ function Hn(c, t) {
98
98
  return c + Math.floor(Math.random() * (t - c + 1));
99
99
  }
100
- function Zn(c, t) {
100
+ function Yn(c, t) {
101
101
  return c + Math.random() * (t - c);
102
102
  }
103
- function $n(c) {
103
+ function Zn(c) {
104
104
  return c * (0.5 - Math.random());
105
105
  }
106
- function Qn(c) {
106
+ function $n(c) {
107
107
  c !== void 0 && (Yi = c);
108
108
  let t = Yi += 1831565813;
109
109
  return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
110
110
  }
111
- function Kn(c) {
111
+ function Qn(c) {
112
112
  return c * pe;
113
113
  }
114
- function tr(c) {
114
+ function Kn(c) {
115
115
  return c * ye;
116
116
  }
117
- function er(c) {
117
+ function tr(c) {
118
118
  return (c & c - 1) === 0 && c !== 0;
119
119
  }
120
- function ir(c) {
120
+ function er(c) {
121
121
  return Math.pow(2, Math.ceil(Math.log(c) / Math.LN2));
122
122
  }
123
- function sr(c) {
123
+ function ir(c) {
124
124
  return Math.pow(2, Math.floor(Math.log(c) / Math.LN2));
125
125
  }
126
- function nr(c, t, e, i, s) {
126
+ function sr(c, t, e, i, s) {
127
127
  const n = Math.cos, r = Math.sin, o = n(e / 2), a = r(e / 2), h = n((t + i) / 2), l = r((t + i) / 2), u = n((t - i) / 2), p = r((t - i) / 2), d = n((i - t) / 2), f = r((i - t) / 2);
128
128
  switch (s) {
129
129
  case "XYX":
@@ -235,7 +235,7 @@ const Wo = {
235
235
  * @param {number} b2 - Maximum value for range B.
236
236
  * @return {number} The mapped value.
237
237
  */
238
- mapLinear: qn,
238
+ mapLinear: Wn,
239
239
  /**
240
240
  * Returns the percentage in the closed interval `[0, 1]` of the given value
241
241
  * between the start and end point.
@@ -247,7 +247,7 @@ const Wo = {
247
247
  * @param {number} value - A value between start and end.
248
248
  * @return {number} The interpolation factor.
249
249
  */
250
- inverseLerp: Jn,
250
+ inverseLerp: qn,
251
251
  /**
252
252
  * Returns a value linearly interpolated from two known points based on the given interval -
253
253
  * `t = 0` will return `x` and `t = 1` will return `y`.
@@ -274,7 +274,7 @@ const Wo = {
274
274
  * @param {number} dt - Delta time in seconds.
275
275
  * @return {number} The interpolated value.
276
276
  */
277
- damp: jn,
277
+ damp: Jn,
278
278
  /**
279
279
  * Returns a value that alternates between `0` and the given `length` parameter.
280
280
  *
@@ -284,7 +284,7 @@ const Wo = {
284
284
  * @param {number} [length=1] - The positive value the function will pingpong to.
285
285
  * @return {number} The alternated value.
286
286
  */
287
- pingpong: Xn,
287
+ pingpong: jn,
288
288
  /**
289
289
  * Returns a value in the range `[0,1]` that represents the percentage that `x` has
290
290
  * moved between `min` and `max`, but smoothed or slowed down the closer `x` is to
@@ -299,7 +299,7 @@ const Wo = {
299
299
  * @param {number} max - The max value. Any x value above max will be `1`.
300
300
  * @return {number} The alternated value.
301
301
  */
302
- smoothstep: Gn,
302
+ smoothstep: Xn,
303
303
  /**
304
304
  * A [variation on smoothstep]{@link https://en.wikipedia.org/wiki/Smoothstep#Variations}
305
305
  * that has zero 1st and 2nd order derivatives at x=0 and x=1.
@@ -311,7 +311,7 @@ const Wo = {
311
311
  * @param {number} max - The max value. Any x value above max will be `1`.
312
312
  * @return {number} The alternated value.
313
313
  */
314
- smootherstep: Hn,
314
+ smootherstep: Gn,
315
315
  /**
316
316
  * Returns a random integer from `<low, high>` interval.
317
317
  *
@@ -321,7 +321,7 @@ const Wo = {
321
321
  * @param {number} high - The upper value boundary
322
322
  * @return {number} A random integer.
323
323
  */
324
- randInt: Yn,
324
+ randInt: Hn,
325
325
  /**
326
326
  * Returns a random float from `<low, high>` interval.
327
327
  *
@@ -331,7 +331,7 @@ const Wo = {
331
331
  * @param {number} high - The upper value boundary
332
332
  * @return {number} A random float.
333
333
  */
334
- randFloat: Zn,
334
+ randFloat: Yn,
335
335
  /**
336
336
  * Returns a random integer from `<-range/2, range/2>` interval.
337
337
  *
@@ -340,7 +340,7 @@ const Wo = {
340
340
  * @param {number} range - Defines the value range.
341
341
  * @return {number} A random float.
342
342
  */
343
- randFloatSpread: $n,
343
+ randFloatSpread: Zn,
344
344
  /**
345
345
  * Returns a deterministic pseudo-random float in the interval `[0, 1]`.
346
346
  *
@@ -349,7 +349,7 @@ const Wo = {
349
349
  * @param {number} [s] - The integer seed.
350
350
  * @return {number} A random float.
351
351
  */
352
- seededRandom: Qn,
352
+ seededRandom: $n,
353
353
  /**
354
354
  * Converts degrees to radians.
355
355
  *
@@ -358,7 +358,7 @@ const Wo = {
358
358
  * @param {number} degrees - A value in degrees.
359
359
  * @return {number} The converted value in radians.
360
360
  */
361
- degToRad: Kn,
361
+ degToRad: Qn,
362
362
  /**
363
363
  * Converts radians to degrees.
364
364
  *
@@ -367,7 +367,7 @@ const Wo = {
367
367
  * @param {number} radians - A value in radians.
368
368
  * @return {number} The converted value in degrees.
369
369
  */
370
- radToDeg: tr,
370
+ radToDeg: Kn,
371
371
  /**
372
372
  * Returns `true` if the given number is a power of two.
373
373
  *
@@ -376,7 +376,7 @@ const Wo = {
376
376
  * @param {number} value - The value to check.
377
377
  * @return {boolean} Whether the given number is a power of two or not.
378
378
  */
379
- isPowerOfTwo: er,
379
+ isPowerOfTwo: tr,
380
380
  /**
381
381
  * Returns the smallest power of two that is greater than or equal to the given number.
382
382
  *
@@ -385,7 +385,7 @@ const Wo = {
385
385
  * @param {number} value - The value to find a POT for.
386
386
  * @return {number} The smallest power of two that is greater than or equal to the given number.
387
387
  */
388
- ceilPowerOfTwo: ir,
388
+ ceilPowerOfTwo: er,
389
389
  /**
390
390
  * Returns the largest power of two that is less than or equal to the given number.
391
391
  *
@@ -394,7 +394,7 @@ const Wo = {
394
394
  * @param {number} value - The value to find a POT for.
395
395
  * @return {number} The largest power of two that is less than or equal to the given number.
396
396
  */
397
- floorPowerOfTwo: sr,
397
+ floorPowerOfTwo: ir,
398
398
  /**
399
399
  * Sets the given quaternion from the [Intrinsic Proper Euler Angles]{@link https://en.wikipedia.org/wiki/Euler_angles}
400
400
  * defined by the given angles and order.
@@ -410,7 +410,7 @@ const Wo = {
410
410
  * @param {number} c - The rotation applied to the third axis, in radians.
411
411
  * @param {('XYX'|'XZX'|'YXY'|'YZY'|'ZXZ'|'ZYZ')} order - A string specifying the axes order.
412
412
  */
413
- setQuaternionFromProperEuler: nr,
413
+ setQuaternionFromProperEuler: sr,
414
414
  /**
415
415
  * Normalizes the given value according to the given typed array.
416
416
  *
@@ -2552,7 +2552,7 @@ class At {
2552
2552
  }
2553
2553
  }
2554
2554
  const $e = /* @__PURE__ */ new At();
2555
- function rr(c) {
2555
+ function nr(c) {
2556
2556
  for (let t = c.length - 1; t >= 0; --t)
2557
2557
  if (c[t] >= 65535) return !0;
2558
2558
  return !1;
@@ -2614,7 +2614,7 @@ const Ki = /* @__PURE__ */ new At().set(
2614
2614
  -0.203977,
2615
2615
  1.0569715
2616
2616
  );
2617
- function ar() {
2617
+ function rr() {
2618
2618
  const c = {
2619
2619
  enabled: !0,
2620
2620
  workingColorSpace: Xi,
@@ -2650,7 +2650,7 @@ function ar() {
2650
2650
  return this.spaces[s].primaries;
2651
2651
  },
2652
2652
  getTransfer: function(s) {
2653
- return s === Fs ? Gi : this.spaces[s].transfer;
2653
+ return s === Cs ? Gi : this.spaces[s].transfer;
2654
2654
  },
2655
2655
  getLuminanceCoefficients: function(s, n = this.workingColorSpace) {
2656
2656
  return s.fromArray(this.spaces[n].luminanceCoefficients);
@@ -2698,7 +2698,7 @@ function ar() {
2698
2698
  }
2699
2699
  }), c;
2700
2700
  }
2701
- const st = /* @__PURE__ */ ar();
2701
+ const st = /* @__PURE__ */ rr();
2702
2702
  function St(c) {
2703
2703
  return c < 0.04045 ? c * 0.0773993808 : Math.pow(c * 0.9478672986 + 0.0521327014, 2.4);
2704
2704
  }
@@ -2706,7 +2706,7 @@ function se(c) {
2706
2706
  return c < 31308e-7 ? c * 12.92 : 1.055 * Math.pow(c, 0.41666) - 0.055;
2707
2707
  }
2708
2708
  let Wt;
2709
- class or {
2709
+ class ar {
2710
2710
  /**
2711
2711
  * Returns a data URI containing a representation of the given image.
2712
2712
  *
@@ -2756,15 +2756,15 @@ class or {
2756
2756
  return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), t;
2757
2757
  }
2758
2758
  }
2759
- let hr = 0;
2760
- class Bi {
2759
+ let or = 0;
2760
+ class Ri {
2761
2761
  /**
2762
2762
  * Constructs a new video texture.
2763
2763
  *
2764
2764
  * @param {any} [data=null] - The data definition of a texture.
2765
2765
  */
2766
2766
  constructor(t = null) {
2767
- this.isSource = !0, Object.defineProperty(this, "id", { value: hr++ }), this.uuid = bt(), this.data = t, this.dataReady = !0, this.version = 0;
2767
+ this.isSource = !0, Object.defineProperty(this, "id", { value: or++ }), this.uuid = bt(), this.data = t, this.dataReady = !0, this.version = 0;
2768
2768
  }
2769
2769
  getSize(t) {
2770
2770
  const e = this.data;
@@ -2811,14 +2811,14 @@ class Bi {
2811
2811
  }
2812
2812
  }
2813
2813
  function Qe(c) {
2814
- return typeof HTMLImageElement < "u" && c instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && c instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && c instanceof ImageBitmap ? or.getDataURL(c) : c.data ? {
2814
+ return typeof HTMLImageElement < "u" && c instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && c instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && c instanceof ImageBitmap ? ar.getDataURL(c) : c.data ? {
2815
2815
  data: Array.from(c.data),
2816
2816
  width: c.width,
2817
2817
  height: c.height,
2818
2818
  type: c.data.constructor.name
2819
2819
  } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
2820
2820
  }
2821
- let lr = 0;
2821
+ let hr = 0;
2822
2822
  const Ke = /* @__PURE__ */ new m();
2823
2823
  class H extends re {
2824
2824
  /**
@@ -2835,8 +2835,8 @@ class H extends re {
2835
2835
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
2836
2836
  * @param {string} [colorSpace=NoColorSpace] - The color space.
2837
2837
  */
2838
- constructor(t = H.DEFAULT_IMAGE, e = H.DEFAULT_MAPPING, i = ie, s = ie, n = We, r = vs, o = Cs, a = Ci, h = H.DEFAULT_ANISOTROPY, l = Fs) {
2839
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: lr++ }), this.uuid = bt(), this.name = "", this.source = new Bi(t), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = i, this.wrapT = s, this.magFilter = n, this.minFilter = r, this.anisotropy = h, this.format = o, this.internalFormat = null, this.type = a, this.offset = new z(0, 0), this.repeat = new z(1, 1), this.center = new z(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new At(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = l, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(t && t.depth && t.depth > 1), this.pmremVersion = 0;
2838
+ constructor(t = H.DEFAULT_IMAGE, e = H.DEFAULT_MAPPING, i = ie, s = ie, n = We, r = As, o = Ts, a = Ci, h = H.DEFAULT_ANISOTROPY, l = Cs) {
2839
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: hr++ }), this.uuid = bt(), this.name = "", this.source = new Ri(t), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = i, this.wrapT = s, this.magFilter = n, this.minFilter = r, this.anisotropy = h, this.format = o, this.internalFormat = null, this.type = a, this.offset = new z(0, 0), this.repeat = new z(1, 1), this.center = new z(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new At(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = l, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(t && t.depth && t.depth > 1), this.pmremVersion = 0;
2840
2840
  }
2841
2841
  /**
2842
2842
  * The width of the texture in pixels.
@@ -2982,7 +2982,7 @@ class H extends re {
2982
2982
  * @return {Vector2} The transformed uv vector.
2983
2983
  */
2984
2984
  transformUv(t) {
2985
- if (this.mapping !== As) return t;
2985
+ if (this.mapping !== _s) return t;
2986
2986
  if (t.applyMatrix3(this.matrix), t.x < 0 || t.x > 1)
2987
2987
  switch (this.wrapS) {
2988
2988
  case qi:
@@ -3034,7 +3034,7 @@ class H extends re {
3034
3034
  }
3035
3035
  }
3036
3036
  H.DEFAULT_IMAGE = null;
3037
- H.DEFAULT_MAPPING = As;
3037
+ H.DEFAULT_MAPPING = _s;
3038
3038
  H.DEFAULT_ANISOTROPY = 1;
3039
3039
  class Y {
3040
3040
  /**
@@ -3581,7 +3581,7 @@ class Y {
3581
3581
  yield this.x, yield this.y, yield this.z, yield this.w;
3582
3582
  }
3583
3583
  }
3584
- class cr extends re {
3584
+ class lr extends re {
3585
3585
  /**
3586
3586
  * Render target options.
3587
3587
  *
@@ -3708,7 +3708,7 @@ class cr extends re {
3708
3708
  for (let e = 0, i = t.textures.length; e < i; e++) {
3709
3709
  this.textures[e] = t.textures[e].clone(), this.textures[e].isRenderTargetTexture = !0, this.textures[e].renderTarget = this;
3710
3710
  const s = Object.assign({}, t.textures[e].image);
3711
- this.textures[e].source = new Bi(s);
3711
+ this.textures[e].source = new Ri(s);
3712
3712
  }
3713
3713
  return this.depthBuffer = t.depthBuffer, this.stencilBuffer = t.stencilBuffer, this.resolveDepthBuffer = t.resolveDepthBuffer, this.resolveStencilBuffer = t.resolveStencilBuffer, t.depthTexture !== null && (this.depthTexture = t.depthTexture.clone()), this.samples = t.samples, this;
3714
3714
  }
@@ -3722,7 +3722,7 @@ class cr extends re {
3722
3722
  this.dispatchEvent({ type: "dispose" });
3723
3723
  }
3724
3724
  }
3725
- class ur extends cr {
3725
+ class cr extends lr {
3726
3726
  /**
3727
3727
  * Constructs a new 3D render target.
3728
3728
  *
@@ -4197,7 +4197,7 @@ function ti(c, t, e, i, s) {
4197
4197
  }
4198
4198
  return !0;
4199
4199
  }
4200
- const pr = /* @__PURE__ */ new ge(), oe = /* @__PURE__ */ new m(), ei = /* @__PURE__ */ new m();
4200
+ const ur = /* @__PURE__ */ new ge(), oe = /* @__PURE__ */ new m(), ei = /* @__PURE__ */ new m();
4201
4201
  class Ge {
4202
4202
  /**
4203
4203
  * Constructs a new sphere.
@@ -4230,7 +4230,7 @@ class Ge {
4230
4230
  */
4231
4231
  setFromPoints(t, e) {
4232
4232
  const i = this.center;
4233
- e !== void 0 ? i.copy(e) : pr.setFromPoints(t).getCenter(i);
4233
+ e !== void 0 ? i.copy(e) : ur.setFromPoints(t).getCenter(i);
4234
4234
  let s = 0;
4235
4235
  for (let n = 0, r = t.length; n < r; n++)
4236
4236
  s = Math.max(s, i.distanceToSquared(t[n]));
@@ -4417,8 +4417,8 @@ class Ge {
4417
4417
  return this.radius = t.radius, this.center.fromArray(t.center), this;
4418
4418
  }
4419
4419
  }
4420
- const ft = /* @__PURE__ */ new m(), ii = /* @__PURE__ */ new m(), _e = /* @__PURE__ */ new m(), Bt = /* @__PURE__ */ new m(), si = /* @__PURE__ */ new m(), Ae = /* @__PURE__ */ new m(), ni = /* @__PURE__ */ new m();
4421
- class Ri {
4420
+ const ft = /* @__PURE__ */ new m(), ii = /* @__PURE__ */ new m(), _e = /* @__PURE__ */ new m(), Rt = /* @__PURE__ */ new m(), si = /* @__PURE__ */ new m(), Ae = /* @__PURE__ */ new m(), ni = /* @__PURE__ */ new m();
4421
+ class Bi {
4422
4422
  /**
4423
4423
  * Constructs a new ray.
4424
4424
  *
@@ -4516,8 +4516,8 @@ class Ri {
4516
4516
  * @return {number} The squared distance.
4517
4517
  */
4518
4518
  distanceSqToSegment(t, e, i, s) {
4519
- ii.copy(t).add(e).multiplyScalar(0.5), _e.copy(e).sub(t).normalize(), Bt.copy(this.origin).sub(ii);
4520
- const n = t.distanceTo(e) * 0.5, r = -this.direction.dot(_e), o = Bt.dot(this.direction), a = -Bt.dot(_e), h = Bt.lengthSq(), l = Math.abs(1 - r * r);
4519
+ ii.copy(t).add(e).multiplyScalar(0.5), _e.copy(e).sub(t).normalize(), Rt.copy(this.origin).sub(ii);
4520
+ const n = t.distanceTo(e) * 0.5, r = -this.direction.dot(_e), o = Rt.dot(this.direction), a = -Rt.dot(_e), h = Rt.lengthSq(), l = Math.abs(1 - r * r);
4521
4521
  let u, p, d, f;
4522
4522
  if (l > 0)
4523
4523
  if (u = r * a - o, p = r * o - a, f = n * l, u >= 0)
@@ -4638,14 +4638,14 @@ class Ri {
4638
4638
  o = -1, r = -r;
4639
4639
  else
4640
4640
  return null;
4641
- Bt.subVectors(this.origin, t);
4642
- const a = o * this.direction.dot(Ae.crossVectors(Bt, Ae));
4641
+ Rt.subVectors(this.origin, t);
4642
+ const a = o * this.direction.dot(Ae.crossVectors(Rt, Ae));
4643
4643
  if (a < 0)
4644
4644
  return null;
4645
- const h = o * this.direction.dot(si.cross(Bt));
4645
+ const h = o * this.direction.dot(si.cross(Rt));
4646
4646
  if (h < 0 || a + h > r)
4647
4647
  return null;
4648
- const l = -o * Bt.dot(ni);
4648
+ const l = -o * Rt.dot(ni);
4649
4649
  return l < 0 ? null : this.at(l / r, n);
4650
4650
  }
4651
4651
  /**
@@ -4919,7 +4919,7 @@ class O {
4919
4919
  * @return {Matrix4} A reference to this matrix.
4920
4920
  */
4921
4921
  makeRotationFromQuaternion(t) {
4922
- return this.compose(dr, t, fr);
4922
+ return this.compose(pr, t, dr);
4923
4923
  }
4924
4924
  /**
4925
4925
  * Sets the rotation component of the transformation matrix, looking from `eye` towards
@@ -4932,7 +4932,7 @@ class O {
4932
4932
  */
4933
4933
  lookAt(t, e, i) {
4934
4934
  const s = this.elements;
4935
- return Q.subVectors(t, e), Q.lengthSq() === 0 && (Q.z = 1), Q.normalize(), Rt.crossVectors(i, Q), Rt.lengthSq() === 0 && (Math.abs(i.z) === 1 ? Q.x += 1e-4 : Q.z += 1e-4, Q.normalize(), Rt.crossVectors(i, Q)), Rt.normalize(), ve.crossVectors(Q, Rt), s[0] = Rt.x, s[4] = ve.x, s[8] = Q.x, s[1] = Rt.y, s[5] = ve.y, s[9] = Q.y, s[2] = Rt.z, s[6] = ve.z, s[10] = Q.z, this;
4935
+ return Q.subVectors(t, e), Q.lengthSq() === 0 && (Q.z = 1), Q.normalize(), Bt.crossVectors(i, Q), Bt.lengthSq() === 0 && (Math.abs(i.z) === 1 ? Q.x += 1e-4 : Q.z += 1e-4, Q.normalize(), Bt.crossVectors(i, Q)), Bt.normalize(), ve.crossVectors(Q, Bt), s[0] = Bt.x, s[4] = ve.x, s[8] = Q.x, s[1] = Bt.y, s[5] = ve.y, s[9] = Q.y, s[2] = Bt.z, s[6] = ve.z, s[10] = Q.z, this;
4936
4936
  }
4937
4937
  /**
4938
4938
  * Post-multiplies this matrix by the given 4x4 matrix.
@@ -4961,8 +4961,8 @@ class O {
4961
4961
  * @return {Matrix4} A reference to this matrix.
4962
4962
  */
4963
4963
  multiplyMatrices(t, e) {
4964
- const i = t.elements, s = e.elements, n = this.elements, r = i[0], o = i[4], a = i[8], h = i[12], l = i[1], u = i[5], p = i[9], d = i[13], f = i[2], y = i[6], x = i[10], g = i[14], b = i[3], w = i[7], M = i[11], S = i[15], v = s[0], A = s[4], _ = s[8], F = s[12], B = s[1], P = s[5], R = s[9], E = s[13], k = s[2], W = s[6], et = s[10], It = s[14], Tt = s[3], V = s[7], q = s[11], $ = s[15];
4965
- return n[0] = r * v + o * B + a * k + h * Tt, n[4] = r * A + o * P + a * W + h * V, n[8] = r * _ + o * R + a * et + h * q, n[12] = r * F + o * E + a * It + h * $, n[1] = l * v + u * B + p * k + d * Tt, n[5] = l * A + u * P + p * W + d * V, n[9] = l * _ + u * R + p * et + d * q, n[13] = l * F + u * E + p * It + d * $, n[2] = f * v + y * B + x * k + g * Tt, n[6] = f * A + y * P + x * W + g * V, n[10] = f * _ + y * R + x * et + g * q, n[14] = f * F + y * E + x * It + g * $, n[3] = b * v + w * B + M * k + S * Tt, n[7] = b * A + w * P + M * W + S * V, n[11] = b * _ + w * R + M * et + S * q, n[15] = b * F + w * E + M * It + S * $, this;
4964
+ const i = t.elements, s = e.elements, n = this.elements, r = i[0], o = i[4], a = i[8], h = i[12], l = i[1], u = i[5], p = i[9], d = i[13], f = i[2], y = i[6], x = i[10], g = i[14], b = i[3], w = i[7], M = i[11], S = i[15], v = s[0], A = s[4], _ = s[8], F = s[12], R = s[1], P = s[5], B = s[9], E = s[13], k = s[2], W = s[6], et = s[10], It = s[14], Tt = s[3], V = s[7], q = s[11], $ = s[15];
4965
+ return n[0] = r * v + o * R + a * k + h * Tt, n[4] = r * A + o * P + a * W + h * V, n[8] = r * _ + o * B + a * et + h * q, n[12] = r * F + o * E + a * It + h * $, n[1] = l * v + u * R + p * k + d * Tt, n[5] = l * A + u * P + p * W + d * V, n[9] = l * _ + u * B + p * et + d * q, n[13] = l * F + u * E + p * It + d * $, n[2] = f * v + y * R + x * k + g * Tt, n[6] = f * A + y * P + x * W + g * V, n[10] = f * _ + y * B + x * et + g * q, n[14] = f * F + y * E + x * It + g * $, n[3] = b * v + w * R + M * k + S * Tt, n[7] = b * A + w * P + M * W + S * V, n[11] = b * _ + w * B + M * et + S * q, n[15] = b * F + w * E + M * It + S * $, this;
4966
4966
  }
4967
4967
  /**
4968
4968
  * Multiplies every component of the matrix by the given scalar.
@@ -5379,7 +5379,7 @@ class O {
5379
5379
  return t[e] = i[0], t[e + 1] = i[1], t[e + 2] = i[2], t[e + 3] = i[3], t[e + 4] = i[4], t[e + 5] = i[5], t[e + 6] = i[6], t[e + 7] = i[7], t[e + 8] = i[8], t[e + 9] = i[9], t[e + 10] = i[10], t[e + 11] = i[11], t[e + 12] = i[12], t[e + 13] = i[13], t[e + 14] = i[14], t[e + 15] = i[15], t;
5380
5380
  }
5381
5381
  }
5382
- const Xt = /* @__PURE__ */ new m(), rt = /* @__PURE__ */ new O(), dr = /* @__PURE__ */ new m(0, 0, 0), fr = /* @__PURE__ */ new m(1, 1, 1), Rt = /* @__PURE__ */ new m(), ve = /* @__PURE__ */ new m(), Q = /* @__PURE__ */ new m(), es = /* @__PURE__ */ new O(), is = /* @__PURE__ */ new xe();
5382
+ const Xt = /* @__PURE__ */ new m(), rt = /* @__PURE__ */ new O(), pr = /* @__PURE__ */ new m(0, 0, 0), dr = /* @__PURE__ */ new m(1, 1, 1), Bt = /* @__PURE__ */ new m(), ve = /* @__PURE__ */ new m(), Q = /* @__PURE__ */ new m(), es = /* @__PURE__ */ new O(), is = /* @__PURE__ */ new xe();
5383
5383
  class pt {
5384
5384
  /**
5385
5385
  * Constructs a new euler instance.
@@ -5578,7 +5578,7 @@ class pt {
5578
5578
  }
5579
5579
  }
5580
5580
  pt.DEFAULT_ORDER = "XYZ";
5581
- class Bs {
5581
+ class Fs {
5582
5582
  /**
5583
5583
  * Constructs a new layers instance, with membership
5584
5584
  * initially set to layer `0`.
@@ -5650,14 +5650,14 @@ class Bs {
5650
5650
  return (this.mask & (1 << t | 0)) !== 0;
5651
5651
  }
5652
5652
  }
5653
- let mr = 0;
5654
- const ss = /* @__PURE__ */ new m(), Gt = /* @__PURE__ */ new xe(), mt = /* @__PURE__ */ new O(), ze = /* @__PURE__ */ new m(), he = /* @__PURE__ */ new m(), yr = /* @__PURE__ */ new m(), xr = /* @__PURE__ */ new xe(), ns = /* @__PURE__ */ new m(1, 0, 0), rs = /* @__PURE__ */ new m(0, 1, 0), as = /* @__PURE__ */ new m(0, 0, 1), os = { type: "added" }, gr = { type: "removed" }, Ht = { type: "childadded", child: null }, ri = { type: "childremoved", child: null };
5653
+ let fr = 0;
5654
+ const ss = /* @__PURE__ */ new m(), Gt = /* @__PURE__ */ new xe(), mt = /* @__PURE__ */ new O(), ze = /* @__PURE__ */ new m(), he = /* @__PURE__ */ new m(), mr = /* @__PURE__ */ new m(), yr = /* @__PURE__ */ new xe(), ns = /* @__PURE__ */ new m(1, 0, 0), rs = /* @__PURE__ */ new m(0, 1, 0), as = /* @__PURE__ */ new m(0, 0, 1), os = { type: "added" }, xr = { type: "removed" }, Ht = { type: "childadded", child: null }, ri = { type: "childremoved", child: null };
5655
5655
  class D extends re {
5656
5656
  /**
5657
5657
  * Constructs a new 3D object.
5658
5658
  */
5659
5659
  constructor() {
5660
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: mr++ }), this.uuid = bt(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = D.DEFAULT_UP.clone();
5660
+ super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: fr++ }), this.uuid = bt(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = D.DEFAULT_UP.clone();
5661
5661
  const t = new m(), e = new pt(), i = new xe(), s = new m(1, 1, 1);
5662
5662
  function n() {
5663
5663
  i.setFromEuler(e, !1);
@@ -5731,7 +5731,7 @@ class D extends re {
5731
5731
  normalMatrix: {
5732
5732
  value: new At()
5733
5733
  }
5734
- }), this.matrix = new O(), this.matrixWorld = new O(), this.matrixAutoUpdate = D.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = D.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Bs(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
5734
+ }), this.matrix = new O(), this.matrixWorld = new O(), this.matrixAutoUpdate = D.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = D.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Fs(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
5735
5735
  }
5736
5736
  /**
5737
5737
  * A callback that is executed immediately before a 3D object is rendered to a shadow map.
@@ -5985,7 +5985,7 @@ class D extends re {
5985
5985
  return this;
5986
5986
  }
5987
5987
  const e = this.children.indexOf(t);
5988
- return e !== -1 && (t.parent = null, this.children.splice(e, 1), t.dispatchEvent(gr), ri.child = t, this.dispatchEvent(ri), ri.child = null), this;
5988
+ return e !== -1 && (t.parent = null, this.children.splice(e, 1), t.dispatchEvent(xr), ri.child = t, this.dispatchEvent(ri), ri.child = null), this;
5989
5989
  }
5990
5990
  /**
5991
5991
  * Removes this 3D object from its current parent.
@@ -6088,7 +6088,7 @@ class D extends re {
6088
6088
  * @return {Quaternion} The 3D object's rotation in world space.
6089
6089
  */
6090
6090
  getWorldQuaternion(t) {
6091
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(he, t, yr), t;
6091
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(he, t, mr), t;
6092
6092
  }
6093
6093
  /**
6094
6094
  * Returns a vector representing the scale of the 3D object in world space.
@@ -6097,7 +6097,7 @@ class D extends re {
6097
6097
  * @return {Vector3} The 3D object's scale in world space.
6098
6098
  */
6099
6099
  getWorldScale(t) {
6100
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(he, xr, t), t;
6100
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(he, yr, t), t;
6101
6101
  }
6102
6102
  /**
6103
6103
  * Returns a vector representing the ("look") direction of the 3D object in world space.
@@ -7219,13 +7219,13 @@ class I {
7219
7219
  }
7220
7220
  const j = /* @__PURE__ */ new I();
7221
7221
  I.NAMES = Rs;
7222
- let Mr = 0;
7222
+ let gr = 0;
7223
7223
  class Z extends re {
7224
7224
  /**
7225
7225
  * Constructs a new material.
7226
7226
  */
7227
7227
  constructor() {
7228
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Mr++ }), this.uuid = bt(), this.name = "", this.type = "Material", this.blending = Di, this.side = Ai, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Vi, this.blendDst = Ui, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new I(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Wi, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Hi, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ut, this.stencilZFail = Ut, this.stencilZPass = Ut, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7228
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: gr++ }), this.uuid = bt(), this.name = "", this.type = "Material", this.blending = Di, this.side = Ai, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Vi, this.blendDst = Ui, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new I(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Wi, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Hi, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ut, this.stencilZFail = Ut, this.stencilZPass = Ut, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7229
7229
  }
7230
7230
  /**
7231
7231
  * Sets the alpha value to be used when running an alpha test. The material
@@ -7386,7 +7386,7 @@ class Z extends re {
7386
7386
  t === !0 && this.version++;
7387
7387
  }
7388
7388
  }
7389
- class wr extends Z {
7389
+ class Mr extends Z {
7390
7390
  /**
7391
7391
  * Constructs a new mesh basic material.
7392
7392
  *
@@ -7403,8 +7403,8 @@ class wr extends Z {
7403
7403
  return super.copy(t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.fog = t.fog, this;
7404
7404
  }
7405
7405
  }
7406
- const Mt = /* @__PURE__ */ br();
7407
- function br() {
7406
+ const Mt = /* @__PURE__ */ wr();
7407
+ function wr() {
7408
7408
  const c = new ArrayBuffer(4), t = new Float32Array(c), e = new Uint32Array(c), i = new Uint32Array(512), s = new Uint32Array(512);
7409
7409
  for (let a = 0; a < 256; ++a) {
7410
7410
  const h = a - 127;
@@ -7447,7 +7447,7 @@ function Ce(c) {
7447
7447
  return Mt.uint32View[0] = Mt.mantissaTable[Mt.offsetTable[t] + (c & 1023)] + Mt.exponentTable[t], Mt.floatView[0];
7448
7448
  }
7449
7449
  const L = /* @__PURE__ */ new m(), Fe = /* @__PURE__ */ new z();
7450
- let Sr = 0;
7450
+ let br = 0;
7451
7451
  class _t {
7452
7452
  /**
7453
7453
  * Constructs a new buffer attribute.
@@ -7459,7 +7459,7 @@ class _t {
7459
7459
  constructor(t, e, i = !1) {
7460
7460
  if (Array.isArray(t))
7461
7461
  throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
7462
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: Sr++ }), this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = i, this.usage = vi, this.updateRanges = [], this.gpuType = Ts, this.version = 0;
7462
+ this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: br++ }), this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = i, this.usage = vi, this.updateRanges = [], this.gpuType = zs, this.version = 0;
7463
7463
  }
7464
7464
  /**
7465
7465
  * A callback function that is executed after the renderer has transferred the attribute
@@ -7770,7 +7770,7 @@ class _t {
7770
7770
  return this.name !== "" && (t.name = this.name), this.usage !== vi && (t.usage = this.usage), t;
7771
7771
  }
7772
7772
  }
7773
- class _r extends _t {
7773
+ class Sr extends _t {
7774
7774
  /**
7775
7775
  * Constructs a new buffer attribute.
7776
7776
  *
@@ -7782,7 +7782,7 @@ class _r extends _t {
7782
7782
  super(new Uint16Array(t), e, i);
7783
7783
  }
7784
7784
  }
7785
- class Ar extends _t {
7785
+ class _r extends _t {
7786
7786
  /**
7787
7787
  * Constructs a new buffer attribute.
7788
7788
  *
@@ -7855,14 +7855,14 @@ class U extends _t {
7855
7855
  super(new Float32Array(t), e, i);
7856
7856
  }
7857
7857
  }
7858
- let vr = 0;
7858
+ let Ar = 0;
7859
7859
  const it = /* @__PURE__ */ new O(), fi = /* @__PURE__ */ new D(), $t = /* @__PURE__ */ new m(), tt = /* @__PURE__ */ new ge(), le = /* @__PURE__ */ new ge(), N = /* @__PURE__ */ new m();
7860
7860
  class vt extends re {
7861
7861
  /**
7862
7862
  * Constructs a new geometry.
7863
7863
  */
7864
7864
  constructor() {
7865
- super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: vr++ }), this.uuid = bt(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
7865
+ super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Ar++ }), this.uuid = bt(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
7866
7866
  }
7867
7867
  /**
7868
7868
  * Returns the index of this geometry.
@@ -7879,7 +7879,7 @@ class vt extends re {
7879
7879
  * @return {BufferGeometry} A reference to this instance.
7880
7880
  */
7881
7881
  setIndex(t) {
7882
- return Array.isArray(t) ? this.index = new (rr(t) ? Ar : _r)(t, 1) : this.index = t, this;
7882
+ return Array.isArray(t) ? this.index = new (nr(t) ? _r : Sr)(t, 1) : this.index = t, this;
7883
7883
  }
7884
7884
  /**
7885
7885
  * Sets the given indirect attribute to this geometry.
@@ -8177,10 +8177,10 @@ class vt extends re {
8177
8177
  for (let _ = 0; _ < i.count; _++)
8178
8178
  o[_] = new m(), a[_] = new m();
8179
8179
  const h = new m(), l = new m(), u = new m(), p = new z(), d = new z(), f = new z(), y = new m(), x = new m();
8180
- function g(_, F, B) {
8181
- h.fromBufferAttribute(i, _), l.fromBufferAttribute(i, F), u.fromBufferAttribute(i, B), p.fromBufferAttribute(n, _), d.fromBufferAttribute(n, F), f.fromBufferAttribute(n, B), l.sub(h), u.sub(h), d.sub(p), f.sub(p);
8180
+ function g(_, F, R) {
8181
+ h.fromBufferAttribute(i, _), l.fromBufferAttribute(i, F), u.fromBufferAttribute(i, R), p.fromBufferAttribute(n, _), d.fromBufferAttribute(n, F), f.fromBufferAttribute(n, R), l.sub(h), u.sub(h), d.sub(p), f.sub(p);
8182
8182
  const P = 1 / (d.x * f.y - f.x * d.y);
8183
- isFinite(P) && (y.copy(l).multiplyScalar(f.y).addScaledVector(u, -d.y).multiplyScalar(P), x.copy(u).multiplyScalar(d.x).addScaledVector(l, -f.x).multiplyScalar(P), o[_].add(y), o[F].add(y), o[B].add(y), a[_].add(x), a[F].add(x), a[B].add(x));
8183
+ isFinite(P) && (y.copy(l).multiplyScalar(f.y).addScaledVector(u, -d.y).multiplyScalar(P), x.copy(u).multiplyScalar(d.x).addScaledVector(l, -f.x).multiplyScalar(P), o[_].add(y), o[F].add(y), o[R].add(y), a[_].add(x), a[F].add(x), a[R].add(x));
8184
8184
  }
8185
8185
  let b = this.groups;
8186
8186
  b.length === 0 && (b = [{
@@ -8188,8 +8188,8 @@ class vt extends re {
8188
8188
  count: t.count
8189
8189
  }]);
8190
8190
  for (let _ = 0, F = b.length; _ < F; ++_) {
8191
- const B = b[_], P = B.start, R = B.count;
8192
- for (let E = P, k = P + R; E < k; E += 3)
8191
+ const R = b[_], P = R.start, B = R.count;
8192
+ for (let E = P, k = P + B; E < k; E += 3)
8193
8193
  g(
8194
8194
  t.getX(E + 0),
8195
8195
  t.getX(E + 1),
@@ -8205,8 +8205,8 @@ class vt extends re {
8205
8205
  r.setXYZW(_, w.x, w.y, w.z, P);
8206
8206
  }
8207
8207
  for (let _ = 0, F = b.length; _ < F; ++_) {
8208
- const B = b[_], P = B.start, R = B.count;
8209
- for (let E = P, k = P + R; E < k; E += 3)
8208
+ const R = b[_], P = R.start, B = R.count;
8209
+ for (let E = P, k = P + B; E < k; E += 3)
8210
8210
  A(t.getX(E + 0)), A(t.getX(E + 1)), A(t.getX(E + 2));
8211
8211
  }
8212
8212
  }
@@ -8386,15 +8386,15 @@ class vt extends re {
8386
8386
  this.dispatchEvent({ type: "dispose" });
8387
8387
  }
8388
8388
  }
8389
- const ls = /* @__PURE__ */ new O(), Lt = /* @__PURE__ */ new Ri(), Be = /* @__PURE__ */ new Ge(), cs = /* @__PURE__ */ new m(), Re = /* @__PURE__ */ new m(), Ee = /* @__PURE__ */ new m(), Pe = /* @__PURE__ */ new m(), mi = /* @__PURE__ */ new m(), Ie = /* @__PURE__ */ new m(), us = /* @__PURE__ */ new m(), ke = /* @__PURE__ */ new m();
8390
- class zr extends D {
8389
+ const ls = /* @__PURE__ */ new O(), Lt = /* @__PURE__ */ new Bi(), Re = /* @__PURE__ */ new Ge(), cs = /* @__PURE__ */ new m(), Be = /* @__PURE__ */ new m(), Ee = /* @__PURE__ */ new m(), Pe = /* @__PURE__ */ new m(), mi = /* @__PURE__ */ new m(), Ie = /* @__PURE__ */ new m(), us = /* @__PURE__ */ new m(), ke = /* @__PURE__ */ new m();
8390
+ class vr extends D {
8391
8391
  /**
8392
8392
  * Constructs a new mesh.
8393
8393
  *
8394
8394
  * @param {BufferGeometry} [geometry] - The mesh geometry.
8395
8395
  * @param {Material|Array<Material>} [material] - The mesh material.
8396
8396
  */
8397
- constructor(t = new vt(), e = new wr()) {
8397
+ constructor(t = new vt(), e = new Mr()) {
8398
8398
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
8399
8399
  }
8400
8400
  copy(t, e) {
@@ -8447,7 +8447,7 @@ class zr extends D {
8447
8447
  */
8448
8448
  raycast(t, e) {
8449
8449
  const i = this.geometry, s = this.material, n = this.matrixWorld;
8450
- s !== void 0 && (i.boundingSphere === null && i.computeBoundingSphere(), Be.copy(i.boundingSphere), Be.applyMatrix4(n), Lt.copy(t.ray).recast(t.near), !(Be.containsPoint(Lt.origin) === !1 && (Lt.intersectSphere(Be, cs) === null || Lt.origin.distanceToSquared(cs) > (t.far - t.near) ** 2)) && (ls.copy(n).invert(), Lt.copy(t.ray).applyMatrix4(ls), !(i.boundingBox !== null && Lt.intersectsBox(i.boundingBox) === !1) && this._computeIntersections(t, e, Lt)));
8450
+ s !== void 0 && (i.boundingSphere === null && i.computeBoundingSphere(), Re.copy(i.boundingSphere), Re.applyMatrix4(n), Lt.copy(t.ray).recast(t.near), !(Re.containsPoint(Lt.origin) === !1 && (Lt.intersectSphere(Re, cs) === null || Lt.origin.distanceToSquared(cs) > (t.far - t.near) ** 2)) && (ls.copy(n).invert(), Lt.copy(t.ray).applyMatrix4(ls), !(i.boundingBox !== null && Lt.intersectsBox(i.boundingBox) === !1) && this._computeIntersections(t, e, Lt)));
8451
8451
  }
8452
8452
  _computeIntersections(t, e, i) {
8453
8453
  let s;
@@ -8486,9 +8486,9 @@ class zr extends D {
8486
8486
  }
8487
8487
  }
8488
8488
  }
8489
- function Tr(c, t, e, i, s, n, r, o) {
8489
+ function zr(c, t, e, i, s, n, r, o) {
8490
8490
  let a;
8491
- if (t.side === _s ? a = i.intersectTriangle(r, n, s, !0, o) : a = i.intersectTriangle(s, n, r, t.side === Ai, o), a === null) return null;
8491
+ if (t.side === Ss ? a = i.intersectTriangle(r, n, s, !0, o) : a = i.intersectTriangle(s, n, r, t.side === Ai, o), a === null) return null;
8492
8492
  ke.copy(o), ke.applyMatrix4(c.matrixWorld);
8493
8493
  const h = e.ray.origin.distanceTo(ke);
8494
8494
  return h < e.near || h > e.far ? null : {
@@ -8498,11 +8498,11 @@ function Tr(c, t, e, i, s, n, r, o) {
8498
8498
  };
8499
8499
  }
8500
8500
  function Oe(c, t, e, i, s, n, r, o, a, h) {
8501
- c.getVertexPosition(o, Re), c.getVertexPosition(a, Ee), c.getVertexPosition(h, Pe);
8502
- const l = Tr(c, t, e, i, Re, Ee, Pe, us);
8501
+ c.getVertexPosition(o, Be), c.getVertexPosition(a, Ee), c.getVertexPosition(h, Pe);
8502
+ const l = zr(c, t, e, i, Be, Ee, Pe, us);
8503
8503
  if (l) {
8504
8504
  const u = new m();
8505
- ht.getBarycoord(us, Re, Ee, Pe, u), s && (l.uv = ht.getInterpolatedAttribute(s, o, a, h, u, new z())), n && (l.uv1 = ht.getInterpolatedAttribute(n, o, a, h, u, new z())), r && (l.normal = ht.getInterpolatedAttribute(r, o, a, h, u, new m()), l.normal.dot(i.direction) > 0 && l.normal.multiplyScalar(-1));
8505
+ ht.getBarycoord(us, Be, Ee, Pe, u), s && (l.uv = ht.getInterpolatedAttribute(s, o, a, h, u, new z())), n && (l.uv1 = ht.getInterpolatedAttribute(n, o, a, h, u, new z())), r && (l.normal = ht.getInterpolatedAttribute(r, o, a, h, u, new m()), l.normal.dot(i.direction) > 0 && l.normal.multiplyScalar(-1));
8506
8506
  const p = {
8507
8507
  a: o,
8508
8508
  b: a,
@@ -8510,7 +8510,7 @@ function Oe(c, t, e, i, s, n, r, o, a, h) {
8510
8510
  normal: new m(),
8511
8511
  materialIndex: 0
8512
8512
  };
8513
- ht.getNormal(Re, Ee, Pe, p.normal), l.face = p, l.barycoord = u;
8513
+ ht.getNormal(Be, Ee, Pe, p.normal), l.face = p, l.barycoord = u;
8514
8514
  }
8515
8515
  return l;
8516
8516
  }
@@ -8540,20 +8540,20 @@ class Ei extends vt {
8540
8540
  let p = 0, d = 0;
8541
8541
  f("z", "y", "x", -1, -1, i, e, t, r, n, 0), f("z", "y", "x", 1, -1, i, e, -t, r, n, 1), f("x", "z", "y", 1, 1, t, i, e, s, r, 2), f("x", "z", "y", 1, -1, t, i, -e, s, r, 3), f("x", "y", "z", 1, -1, t, e, i, s, n, 4), f("x", "y", "z", -1, -1, t, e, -i, s, n, 5), this.setIndex(a), this.setAttribute("position", new U(h, 3)), this.setAttribute("normal", new U(l, 3)), this.setAttribute("uv", new U(u, 2));
8542
8542
  function f(y, x, g, b, w, M, S, v, A, _, F) {
8543
- const B = M / A, P = S / _, R = M / 2, E = S / 2, k = v / 2, W = A + 1, et = _ + 1;
8543
+ const R = M / A, P = S / _, B = M / 2, E = S / 2, k = v / 2, W = A + 1, et = _ + 1;
8544
8544
  let It = 0, Tt = 0;
8545
8545
  const V = new m();
8546
8546
  for (let q = 0; q < et; q++) {
8547
8547
  const $ = q * P - E;
8548
8548
  for (let Vt = 0; Vt < W; Vt++) {
8549
- const Me = Vt * B - R;
8549
+ const Me = Vt * R - B;
8550
8550
  V[y] = Me * b, V[x] = $ * w, V[g] = k, h.push(V.x, V.y, V.z), V[y] = 0, V[x] = 0, V[g] = v > 0 ? 1 : -1, l.push(V.x, V.y, V.z), u.push(Vt / A), u.push(1 - q / _), It += 1;
8551
8551
  }
8552
8552
  }
8553
8553
  for (let q = 0; q < _; q++)
8554
8554
  for (let $ = 0; $ < A; $++) {
8555
- const Vt = p + $ + W * q, Me = p + $ + W * (q + 1), Js = p + ($ + 1) + W * (q + 1), Li = p + ($ + 1) + W * q;
8556
- a.push(Vt, Me, Li), a.push(Me, Js, Li), Tt += 6;
8555
+ const Vt = p + $ + W * q, Me = p + $ + W * (q + 1), qs = p + ($ + 1) + W * (q + 1), Li = p + ($ + 1) + W * q;
8556
+ a.push(Vt, Me, Li), a.push(Me, qs, Li), Tt += 6;
8557
8557
  }
8558
8558
  o.addGroup(d, Tt, F), d += Tt, p += It;
8559
8559
  }
@@ -8583,7 +8583,7 @@ function He(c) {
8583
8583
  }
8584
8584
  return t;
8585
8585
  }
8586
- function Cr(c) {
8586
+ function Tr(c) {
8587
8587
  const t = {};
8588
8588
  for (let e = 0; e < c.length; e++) {
8589
8589
  const i = He(c[e]);
@@ -8592,7 +8592,7 @@ function Cr(c) {
8592
8592
  }
8593
8593
  return t;
8594
8594
  }
8595
- function Fr(c) {
8595
+ function Cr(c) {
8596
8596
  const t = [];
8597
8597
  for (let e = 0; e < c.length; e++)
8598
8598
  t.push(c[e].clone());
@@ -8602,13 +8602,13 @@ function Zo(c) {
8602
8602
  const t = c.getRenderTarget();
8603
8603
  return t === null ? c.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace : st.workingColorSpace;
8604
8604
  }
8605
- const $o = { clone: He, merge: Cr };
8606
- var Br = `void main() {
8605
+ const $o = { clone: He, merge: Tr };
8606
+ var Fr = `void main() {
8607
8607
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
8608
8608
  }`, Rr = `void main() {
8609
8609
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
8610
8610
  }`;
8611
- class Er extends Z {
8611
+ class Br extends Z {
8612
8612
  /**
8613
8613
  * Constructs a new shader material.
8614
8614
  *
@@ -8619,7 +8619,7 @@ class Er extends Z {
8619
8619
  * by {@link Color#set}.
8620
8620
  */
8621
8621
  constructor(t) {
8622
- super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = Br, this.fragmentShader = Rr, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
8622
+ super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = Fr, this.fragmentShader = Rr, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
8623
8623
  clipCullDistance: !1,
8624
8624
  // set to use vertex shader clipping
8625
8625
  multiDraw: !1
@@ -8631,7 +8631,7 @@ class Er extends Z {
8631
8631
  }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, t !== void 0 && this.setValues(t);
8632
8632
  }
8633
8633
  copy(t) {
8634
- return super.copy(t), this.fragmentShader = t.fragmentShader, this.vertexShader = t.vertexShader, this.uniforms = He(t.uniforms), this.uniformsGroups = Fr(t.uniformsGroups), this.defines = Object.assign({}, t.defines), this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.fog = t.fog, this.lights = t.lights, this.clipping = t.clipping, this.extensions = Object.assign({}, t.extensions), this.glslVersion = t.glslVersion, this;
8634
+ return super.copy(t), this.fragmentShader = t.fragmentShader, this.vertexShader = t.vertexShader, this.uniforms = He(t.uniforms), this.uniformsGroups = Cr(t.uniformsGroups), this.defines = Object.assign({}, t.defines), this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.fog = t.fog, this.lights = t.lights, this.clipping = t.clipping, this.extensions = Object.assign({}, t.extensions), this.glslVersion = t.glslVersion, this;
8635
8635
  }
8636
8636
  toJSON(t) {
8637
8637
  const e = super.toJSON(t);
@@ -8670,7 +8670,7 @@ class Er extends Z {
8670
8670
  return Object.keys(i).length > 0 && (e.extensions = i), e;
8671
8671
  }
8672
8672
  }
8673
- class Es extends D {
8673
+ class Bs extends D {
8674
8674
  /**
8675
8675
  * Constructs a new camera.
8676
8676
  */
@@ -8703,7 +8703,7 @@ class Es extends D {
8703
8703
  }
8704
8704
  }
8705
8705
  const Pt = /* @__PURE__ */ new m(), ps = /* @__PURE__ */ new z(), ds = /* @__PURE__ */ new z();
8706
- class gt extends Es {
8706
+ class gt extends Bs {
8707
8707
  /**
8708
8708
  * Constructs a new perspective camera.
8709
8709
  *
@@ -8870,7 +8870,7 @@ class gt extends Es {
8870
8870
  }
8871
8871
  }
8872
8872
  const Qt = -90, Kt = 1;
8873
- class Pr extends D {
8873
+ class Er extends D {
8874
8874
  /**
8875
8875
  * Constructs a new cube camera.
8876
8876
  *
@@ -8925,7 +8925,7 @@ class Pr extends D {
8925
8925
  i.texture.generateMipmaps = !1, t.setRenderTarget(i, 0, s), t.render(e, n), t.setRenderTarget(i, 1, s), t.render(e, r), t.setRenderTarget(i, 2, s), t.render(e, o), t.setRenderTarget(i, 3, s), t.render(e, a), t.setRenderTarget(i, 4, s), t.render(e, h), i.texture.generateMipmaps = y, t.setRenderTarget(i, 5, s), t.render(e, l), t.setRenderTarget(u, p, d), t.xr.enabled = f, i.texture.needsPMREMUpdate = !0;
8926
8926
  }
8927
8927
  }
8928
- class Ir extends H {
8928
+ class Pr extends H {
8929
8929
  /**
8930
8930
  * Constructs a new cube texture.
8931
8931
  *
@@ -8940,7 +8940,7 @@ class Ir extends H {
8940
8940
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
8941
8941
  * @param {string} [colorSpace=NoColorSpace] - The color space value.
8942
8942
  */
8943
- constructor(t = [], e = Xs, i, s, n, r, o, a, h, l) {
8943
+ constructor(t = [], e = js, i, s, n, r, o, a, h, l) {
8944
8944
  super(t, e, i, s, n, r, o, a, h, l), this.isCubeTexture = !0, this.flipY = !1;
8945
8945
  }
8946
8946
  /**
@@ -8955,7 +8955,7 @@ class Ir extends H {
8955
8955
  this.image = t;
8956
8956
  }
8957
8957
  }
8958
- class Qo extends ur {
8958
+ class Qo extends cr {
8959
8959
  /**
8960
8960
  * Constructs a new cube render target.
8961
8961
  *
@@ -8965,7 +8965,7 @@ class Qo extends ur {
8965
8965
  constructor(t = 1, e = {}) {
8966
8966
  super(t, t, e), this.isWebGLCubeRenderTarget = !0;
8967
8967
  const i = { width: t, height: t, depth: 1 }, s = [i, i, i, i, i, i];
8968
- this.texture = new Ir(s), this._setTextureOptions(e), this.texture.isRenderTargetTexture = !0;
8968
+ this.texture = new Pr(s), this._setTextureOptions(e), this.texture.isRenderTargetTexture = !0;
8969
8969
  }
8970
8970
  /**
8971
8971
  * Converts the given equirectangular texture to a cube map.
@@ -9023,17 +9023,17 @@ class Qo extends ur {
9023
9023
  }
9024
9024
  `
9025
9025
  )
9026
- }, s = new Ei(5, 5, 5), n = new Er({
9026
+ }, s = new Ei(5, 5, 5), n = new Br({
9027
9027
  name: "CubemapFromEquirect",
9028
9028
  uniforms: He(i.uniforms),
9029
9029
  vertexShader: i.vertexShader,
9030
9030
  fragmentShader: i.fragmentShader,
9031
- side: _s,
9032
- blending: js
9031
+ side: Ss,
9032
+ blending: Js
9033
9033
  });
9034
9034
  n.uniforms.tEquirect.value = e;
9035
- const r = new zr(s, n), o = e.minFilter;
9036
- return e.minFilter === vs && (e.minFilter = We), new Pr(1, 10, this).update(t, r), e.minFilter = o, r.geometry.dispose(), r.material.dispose(), this;
9035
+ const r = new vr(s, n), o = e.minFilter;
9036
+ return e.minFilter === As && (e.minFilter = We), new Er(1, 10, this).update(t, r), e.minFilter = o, r.geometry.dispose(), r.material.dispose(), this;
9037
9037
  }
9038
9038
  /**
9039
9039
  * Clears this cube render target.
@@ -9055,7 +9055,7 @@ class Le extends D {
9055
9055
  super(), this.isGroup = !0, this.type = "Group";
9056
9056
  }
9057
9057
  }
9058
- const kr = { type: "move" };
9058
+ const Ir = { type: "move" };
9059
9059
  class Ko {
9060
9060
  /**
9061
9061
  * Constructs a new XR controller.
@@ -9153,7 +9153,7 @@ class Ko {
9153
9153
  }));
9154
9154
  } else
9155
9155
  a !== null && t.gripSpace && (n = e.getPose(t.gripSpace, i), n !== null && (a.matrix.fromArray(n.transform.matrix), a.matrix.decompose(a.position, a.rotation, a.scale), a.matrixWorldNeedsUpdate = !0, n.linearVelocity ? (a.hasLinearVelocity = !0, a.linearVelocity.copy(n.linearVelocity)) : a.hasLinearVelocity = !1, n.angularVelocity ? (a.hasAngularVelocity = !0, a.angularVelocity.copy(n.angularVelocity)) : a.hasAngularVelocity = !1));
9156
- o !== null && (s = e.getPose(t.targetRaySpace, i), s === null && n !== null && (s = n), s !== null && (o.matrix.fromArray(s.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, s.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(s.linearVelocity)) : o.hasLinearVelocity = !1, s.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(s.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(kr)));
9156
+ o !== null && (s = e.getPose(t.targetRaySpace, i), s === null && n !== null && (s = n), s !== null && (o.matrix.fromArray(s.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, s.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(s.linearVelocity)) : o.hasLinearVelocity = !1, s.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(s.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(Ir)));
9157
9157
  }
9158
9158
  return o !== null && (o.visible = s !== null), a !== null && (a.visible = n !== null), h !== null && (h.visible = r !== null), this;
9159
9159
  }
@@ -9188,7 +9188,7 @@ class th extends D {
9188
9188
  return this.fog !== null && (e.object.fog = this.fog.toJSON()), this.backgroundBlurriness > 0 && (e.object.backgroundBlurriness = this.backgroundBlurriness), this.backgroundIntensity !== 1 && (e.object.backgroundIntensity = this.backgroundIntensity), e.object.backgroundRotation = this.backgroundRotation.toArray(), this.environmentIntensity !== 1 && (e.object.environmentIntensity = this.environmentIntensity), e.object.environmentRotation = this.environmentRotation.toArray(), e;
9189
9189
  }
9190
9190
  }
9191
- class Or {
9191
+ class kr {
9192
9192
  /**
9193
9193
  * Constructs a new interleaved buffer.
9194
9194
  *
@@ -9312,7 +9312,7 @@ class Or {
9312
9312
  }
9313
9313
  }
9314
9314
  const X = /* @__PURE__ */ new m();
9315
- class Ps {
9315
+ class Es {
9316
9316
  /**
9317
9317
  * Constructs a new interleaved buffer attribute.
9318
9318
  *
@@ -9545,7 +9545,7 @@ class Ps {
9545
9545
  }
9546
9546
  return new _t(new this.array.constructor(e), this.itemSize, this.normalized);
9547
9547
  } else
9548
- return t.interleavedBuffers === void 0 && (t.interleavedBuffers = {}), t.interleavedBuffers[this.data.uuid] === void 0 && (t.interleavedBuffers[this.data.uuid] = this.data.clone(t)), new Ps(t.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
9548
+ return t.interleavedBuffers === void 0 && (t.interleavedBuffers = {}), t.interleavedBuffers[this.data.uuid] === void 0 && (t.interleavedBuffers[this.data.uuid] = this.data.clone(t)), new Es(t.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
9549
9549
  }
9550
9550
  /**
9551
9551
  * Serializes the buffer attribute into JSON.
@@ -9638,7 +9638,7 @@ class sh extends _t {
9638
9638
  return t.meshPerAttribute = this.meshPerAttribute, t.isInstancedBufferAttribute = !0, t;
9639
9639
  }
9640
9640
  }
9641
- const yi = /* @__PURE__ */ new m(), Lr = /* @__PURE__ */ new m(), Dr = /* @__PURE__ */ new At();
9641
+ const yi = /* @__PURE__ */ new m(), Or = /* @__PURE__ */ new m(), Lr = /* @__PURE__ */ new At();
9642
9642
  class te {
9643
9643
  /**
9644
9644
  * Constructs a new plane.
@@ -9694,7 +9694,7 @@ class te {
9694
9694
  * @return {Plane} A reference to this plane.
9695
9695
  */
9696
9696
  setFromCoplanarPoints(t, e, i) {
9697
- const s = yi.subVectors(i, e).cross(Lr.subVectors(t, e)).normalize();
9697
+ const s = yi.subVectors(i, e).cross(Or.subVectors(t, e)).normalize();
9698
9698
  return this.setFromNormalAndCoplanarPoint(s, t), this;
9699
9699
  }
9700
9700
  /**
@@ -9818,7 +9818,7 @@ class te {
9818
9818
  * @return {Plane} A reference to this plane.
9819
9819
  */
9820
9820
  applyMatrix4(t, e) {
9821
- const i = e || Dr.getNormalMatrix(t), s = this.coplanarPoint(yi).applyMatrix4(t), n = this.normal.applyMatrix3(i).normalize();
9821
+ const i = e || Lr.getNormalMatrix(t), s = this.coplanarPoint(yi).applyMatrix4(t), n = this.normal.applyMatrix3(i).normalize();
9822
9822
  return this.constant = -s.dot(n), this;
9823
9823
  }
9824
9824
  /**
@@ -9849,8 +9849,8 @@ class te {
9849
9849
  return new this.constructor().copy(this);
9850
9850
  }
9851
9851
  }
9852
- const Dt = /* @__PURE__ */ new Ge(), Nr = /* @__PURE__ */ new z(0.5, 0.5), De = /* @__PURE__ */ new m();
9853
- class Is {
9852
+ const Dt = /* @__PURE__ */ new Ge(), Dr = /* @__PURE__ */ new z(0.5, 0.5), De = /* @__PURE__ */ new m();
9853
+ class Ps {
9854
9854
  /**
9855
9855
  * Constructs a new frustum.
9856
9856
  *
@@ -9933,7 +9933,7 @@ class Is {
9933
9933
  */
9934
9934
  intersectsSprite(t) {
9935
9935
  Dt.center.set(0, 0, 0);
9936
- const e = Nr.distanceTo(t.center);
9936
+ const e = Dr.distanceTo(t.center);
9937
9937
  return Dt.radius = 0.7071067811865476 + e, Dt.applyMatrix4(t.matrixWorld), this.intersectsSphere(Dt);
9938
9938
  }
9939
9939
  /**
@@ -9986,8 +9986,8 @@ class Is {
9986
9986
  return new this.constructor().copy(this);
9987
9987
  }
9988
9988
  }
9989
- const lt = /* @__PURE__ */ new O(), ct = /* @__PURE__ */ new Is();
9990
- class ks {
9989
+ const lt = /* @__PURE__ */ new O(), ct = /* @__PURE__ */ new Ps();
9990
+ class Is {
9991
9991
  /**
9992
9992
  * Constructs a new frustum array.
9993
9993
  *
@@ -10121,10 +10121,10 @@ class ks {
10121
10121
  * @return {FrustumArray} A clone of this instance.
10122
10122
  */
10123
10123
  clone() {
10124
- return new ks();
10124
+ return new Is();
10125
10125
  }
10126
10126
  }
10127
- class Os extends Z {
10127
+ class ks extends Z {
10128
10128
  /**
10129
10129
  * Constructs a new line basic material.
10130
10130
  *
@@ -10141,7 +10141,7 @@ class Os extends Z {
10141
10141
  return super.copy(t), this.color.copy(t.color), this.map = t.map, this.linewidth = t.linewidth, this.linecap = t.linecap, this.linejoin = t.linejoin, this.fog = t.fog, this;
10142
10142
  }
10143
10143
  }
10144
- const je = /* @__PURE__ */ new m(), Xe = /* @__PURE__ */ new m(), fs = /* @__PURE__ */ new O(), ce = /* @__PURE__ */ new Ri(), Ne = /* @__PURE__ */ new Ge(), xi = /* @__PURE__ */ new m(), ms = /* @__PURE__ */ new m();
10144
+ const je = /* @__PURE__ */ new m(), Xe = /* @__PURE__ */ new m(), fs = /* @__PURE__ */ new O(), ce = /* @__PURE__ */ new Bi(), Ne = /* @__PURE__ */ new Ge(), xi = /* @__PURE__ */ new m(), ms = /* @__PURE__ */ new m();
10145
10145
  class nh extends D {
10146
10146
  /**
10147
10147
  * Constructs a new line.
@@ -10149,7 +10149,7 @@ class nh extends D {
10149
10149
  * @param {BufferGeometry} [geometry] - The line geometry.
10150
10150
  * @param {Material|Array<Material>} [material] - The line material.
10151
10151
  */
10152
- constructor(t = new vt(), e = new Os()) {
10152
+ constructor(t = new vt(), e = new ks()) {
10153
10153
  super(), this.isLine = !0, this.type = "Line", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
10154
10154
  }
10155
10155
  copy(t, e) {
@@ -10286,14 +10286,14 @@ class oh extends H {
10286
10286
  * @param {number} [format=DepthFormat] - The texture format.
10287
10287
  * @param {number} [depth=1] - The depth of the texture.
10288
10288
  */
10289
- constructor(t, e, i = zs, s, n, r, o = ut, a = ut, h, l = ji, u = 1) {
10290
- if (l !== ji && l !== nn)
10289
+ constructor(t, e, i = vs, s, n, r, o = ut, a = ut, h, l = ji, u = 1) {
10290
+ if (l !== ji && l !== sn)
10291
10291
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
10292
10292
  const p = { width: t, height: e, depth: u };
10293
10293
  super(p, s, n, r, o, a, l, i, h), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
10294
10294
  }
10295
10295
  copy(t) {
10296
- return super.copy(t), this.source = new Bi(Object.assign({}, t.image)), this.compareFunction = t.compareFunction, this;
10296
+ return super.copy(t), this.source = new Ri(Object.assign({}, t.image)), this.compareFunction = t.compareFunction, this;
10297
10297
  }
10298
10298
  toJSON(t) {
10299
10299
  const e = super.toJSON(t);
@@ -10337,33 +10337,33 @@ class Pi extends vt {
10337
10337
  let v = 0;
10338
10338
  const A = (e - t) / i;
10339
10339
  for (let _ = 0; _ <= n; _++) {
10340
- const F = [], B = _ / n, P = B * (e - t) + t;
10341
- for (let R = 0; R <= s; R++) {
10342
- const E = R / s, k = E * a + o, W = Math.sin(k), et = Math.cos(k);
10343
- S.x = P * W, S.y = -B * i + x, S.z = P * et, u.push(S.x, S.y, S.z), M.set(W, A, et).normalize(), p.push(M.x, M.y, M.z), d.push(E, 1 - B), F.push(f++);
10340
+ const F = [], R = _ / n, P = R * (e - t) + t;
10341
+ for (let B = 0; B <= s; B++) {
10342
+ const E = B / s, k = E * a + o, W = Math.sin(k), et = Math.cos(k);
10343
+ S.x = P * W, S.y = -R * i + x, S.z = P * et, u.push(S.x, S.y, S.z), M.set(W, A, et).normalize(), p.push(M.x, M.y, M.z), d.push(E, 1 - R), F.push(f++);
10344
10344
  }
10345
10345
  y.push(F);
10346
10346
  }
10347
10347
  for (let _ = 0; _ < s; _++)
10348
10348
  for (let F = 0; F < n; F++) {
10349
- const B = y[F][_], P = y[F + 1][_], R = y[F + 1][_ + 1], E = y[F][_ + 1];
10350
- (t > 0 || F !== 0) && (l.push(B, P, E), v += 3), (e > 0 || F !== n - 1) && (l.push(P, R, E), v += 3);
10349
+ const R = y[F][_], P = y[F + 1][_], B = y[F + 1][_ + 1], E = y[F][_ + 1];
10350
+ (t > 0 || F !== 0) && (l.push(R, P, E), v += 3), (e > 0 || F !== n - 1) && (l.push(P, B, E), v += 3);
10351
10351
  }
10352
10352
  h.addGroup(g, v, 0), g += v;
10353
10353
  }
10354
10354
  function w(M) {
10355
10355
  const S = f, v = new z(), A = new m();
10356
10356
  let _ = 0;
10357
- const F = M === !0 ? t : e, B = M === !0 ? 1 : -1;
10358
- for (let R = 1; R <= s; R++)
10359
- u.push(0, x * B, 0), p.push(0, B, 0), d.push(0.5, 0.5), f++;
10357
+ const F = M === !0 ? t : e, R = M === !0 ? 1 : -1;
10358
+ for (let B = 1; B <= s; B++)
10359
+ u.push(0, x * R, 0), p.push(0, R, 0), d.push(0.5, 0.5), f++;
10360
10360
  const P = f;
10361
- for (let R = 0; R <= s; R++) {
10362
- const k = R / s * a + o, W = Math.cos(k), et = Math.sin(k);
10363
- A.x = F * et, A.y = x * B, A.z = F * W, u.push(A.x, A.y, A.z), p.push(0, B, 0), v.x = W * 0.5 + 0.5, v.y = et * 0.5 * B + 0.5, d.push(v.x, v.y), f++;
10361
+ for (let B = 0; B <= s; B++) {
10362
+ const k = B / s * a + o, W = Math.cos(k), et = Math.sin(k);
10363
+ A.x = F * et, A.y = x * R, A.z = F * W, u.push(A.x, A.y, A.z), p.push(0, R, 0), v.x = W * 0.5 + 0.5, v.y = et * 0.5 * R + 0.5, d.push(v.x, v.y), f++;
10364
10364
  }
10365
- for (let R = 0; R < s; R++) {
10366
- const E = S + R, k = P + R;
10365
+ for (let B = 0; B < s; B++) {
10366
+ const E = S + B, k = P + B;
10367
10367
  M === !0 ? l.push(k, k + 1, E) : l.push(k + 1, k, E), _ += 3;
10368
10368
  }
10369
10369
  h.addGroup(g, _, M === !0 ? 1 : 2), g += _;
@@ -10383,7 +10383,7 @@ class Pi extends vt {
10383
10383
  return new Pi(t.radiusTop, t.radiusBottom, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
10384
10384
  }
10385
10385
  }
10386
- class Ls extends Pi {
10386
+ class Os extends Pi {
10387
10387
  /**
10388
10388
  * Constructs a new cone geometry.
10389
10389
  *
@@ -10415,7 +10415,7 @@ class Ls extends Pi {
10415
10415
  * @return {ConeGeometry} A new instance.
10416
10416
  */
10417
10417
  static fromJSON(t) {
10418
- return new Ls(t.radius, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
10418
+ return new Os(t.radius, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
10419
10419
  }
10420
10420
  }
10421
10421
  class zt {
@@ -10652,7 +10652,7 @@ class zt {
10652
10652
  return this.arcLengthDivisions = t.arcLengthDivisions, this;
10653
10653
  }
10654
10654
  }
10655
- class Ds extends zt {
10655
+ class Ls extends zt {
10656
10656
  /**
10657
10657
  * Constructs a new ellipse curve.
10658
10658
  *
@@ -10701,7 +10701,7 @@ class Ds extends zt {
10701
10701
  return super.fromJSON(t), this.aX = t.aX, this.aY = t.aY, this.xRadius = t.xRadius, this.yRadius = t.yRadius, this.aStartAngle = t.aStartAngle, this.aEndAngle = t.aEndAngle, this.aClockwise = t.aClockwise, this.aRotation = t.aRotation, this;
10702
10702
  }
10703
10703
  }
10704
- class Vr extends Ds {
10704
+ class Nr extends Ls {
10705
10705
  /**
10706
10706
  * Constructs a new arc curve.
10707
10707
  *
@@ -10736,7 +10736,7 @@ function Ii() {
10736
10736
  };
10737
10737
  }
10738
10738
  const Ue = /* @__PURE__ */ new m(), gi = /* @__PURE__ */ new Ii(), Mi = /* @__PURE__ */ new Ii(), wi = /* @__PURE__ */ new Ii();
10739
- class Ur extends zt {
10739
+ class Vr extends zt {
10740
10740
  /**
10741
10741
  * Constructs a new Catmull-Rom curve.
10742
10742
  *
@@ -10803,37 +10803,37 @@ function ys(c, t, e, i, s) {
10803
10803
  const n = (i - t) * 0.5, r = (s - e) * 0.5, o = c * c, a = c * o;
10804
10804
  return (2 * e - 2 * i + n + r) * a + (-3 * e + 3 * i - 2 * n - r) * o + n * c + e;
10805
10805
  }
10806
- function Wr(c, t) {
10806
+ function Ur(c, t) {
10807
10807
  const e = 1 - c;
10808
10808
  return e * e * t;
10809
10809
  }
10810
- function qr(c, t) {
10810
+ function Wr(c, t) {
10811
10811
  return 2 * (1 - c) * c * t;
10812
10812
  }
10813
- function Jr(c, t) {
10813
+ function qr(c, t) {
10814
10814
  return c * c * t;
10815
10815
  }
10816
10816
  function fe(c, t, e, i) {
10817
- return Wr(c, t) + qr(c, e) + Jr(c, i);
10817
+ return Ur(c, t) + Wr(c, e) + qr(c, i);
10818
10818
  }
10819
- function jr(c, t) {
10819
+ function Jr(c, t) {
10820
10820
  const e = 1 - c;
10821
10821
  return e * e * e * t;
10822
10822
  }
10823
- function Xr(c, t) {
10823
+ function jr(c, t) {
10824
10824
  const e = 1 - c;
10825
10825
  return 3 * e * e * c * t;
10826
10826
  }
10827
- function Gr(c, t) {
10827
+ function Xr(c, t) {
10828
10828
  return 3 * (1 - c) * c * c * t;
10829
10829
  }
10830
- function Hr(c, t) {
10830
+ function Gr(c, t) {
10831
10831
  return c * c * c * t;
10832
10832
  }
10833
10833
  function me(c, t, e, i, s) {
10834
- return jr(c, t) + Xr(c, e) + Gr(c, i) + Hr(c, s);
10834
+ return Jr(c, t) + jr(c, e) + Xr(c, i) + Gr(c, s);
10835
10835
  }
10836
- class Yr extends zt {
10836
+ class Hr extends zt {
10837
10837
  /**
10838
10838
  * Constructs a new Cubic Bezier curve.
10839
10839
  *
@@ -10870,7 +10870,7 @@ class Yr extends zt {
10870
10870
  return super.fromJSON(t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this.v3.fromArray(t.v3), this;
10871
10871
  }
10872
10872
  }
10873
- class Zr extends zt {
10873
+ class Yr extends zt {
10874
10874
  /**
10875
10875
  * Constructs a new Cubic Bezier curve.
10876
10876
  *
@@ -10908,7 +10908,7 @@ class Zr extends zt {
10908
10908
  return super.fromJSON(t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this.v3.fromArray(t.v3), this;
10909
10909
  }
10910
10910
  }
10911
- class $r extends zt {
10911
+ class Zr extends zt {
10912
10912
  /**
10913
10913
  * Constructs a new line curve.
10914
10914
  *
@@ -10950,7 +10950,7 @@ class $r extends zt {
10950
10950
  return super.fromJSON(t), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this;
10951
10951
  }
10952
10952
  }
10953
- class Qr extends zt {
10953
+ class $r extends zt {
10954
10954
  /**
10955
10955
  * Constructs a new line curve.
10956
10956
  *
@@ -10992,7 +10992,7 @@ class Qr extends zt {
10992
10992
  return super.fromJSON(t), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this;
10993
10993
  }
10994
10994
  }
10995
- class Kr extends zt {
10995
+ class Qr extends zt {
10996
10996
  /**
10997
10997
  * Constructs a new Quadratic Bezier curve.
10998
10998
  *
@@ -11028,7 +11028,7 @@ class Kr extends zt {
11028
11028
  return super.fromJSON(t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this;
11029
11029
  }
11030
11030
  }
11031
- class Ns extends zt {
11031
+ class Ds extends zt {
11032
11032
  /**
11033
11033
  * Constructs a new Quadratic Bezier curve.
11034
11034
  *
@@ -11065,7 +11065,7 @@ class Ns extends zt {
11065
11065
  return super.fromJSON(t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this;
11066
11066
  }
11067
11067
  }
11068
- class ta extends zt {
11068
+ class Kr extends zt {
11069
11069
  /**
11070
11070
  * Constructs a new 2D spline curve.
11071
11071
  *
@@ -11114,20 +11114,20 @@ class ta extends zt {
11114
11114
  return this;
11115
11115
  }
11116
11116
  }
11117
- var ea = /* @__PURE__ */ Object.freeze({
11117
+ var ta = /* @__PURE__ */ Object.freeze({
11118
11118
  __proto__: null,
11119
- ArcCurve: Vr,
11120
- CatmullRomCurve3: Ur,
11121
- CubicBezierCurve: Yr,
11122
- CubicBezierCurve3: Zr,
11123
- EllipseCurve: Ds,
11124
- LineCurve: $r,
11125
- LineCurve3: Qr,
11126
- QuadraticBezierCurve: Kr,
11127
- QuadraticBezierCurve3: Ns,
11128
- SplineCurve: ta
11119
+ ArcCurve: Nr,
11120
+ CatmullRomCurve3: Vr,
11121
+ CubicBezierCurve: Hr,
11122
+ CubicBezierCurve3: Yr,
11123
+ EllipseCurve: Ls,
11124
+ LineCurve: Zr,
11125
+ LineCurve3: $r,
11126
+ QuadraticBezierCurve: Qr,
11127
+ QuadraticBezierCurve3: Ds,
11128
+ SplineCurve: Kr
11129
11129
  });
11130
- class Vs extends vt {
11130
+ class Ns extends vt {
11131
11131
  /**
11132
11132
  * Constructs a new plane geometry.
11133
11133
  *
@@ -11169,10 +11169,10 @@ class Vs extends vt {
11169
11169
  * @return {PlaneGeometry} A new instance.
11170
11170
  */
11171
11171
  static fromJSON(t) {
11172
- return new Vs(t.width, t.height, t.widthSegments, t.heightSegments);
11172
+ return new Ns(t.width, t.height, t.widthSegments, t.heightSegments);
11173
11173
  }
11174
11174
  }
11175
- class Us extends vt {
11175
+ class Vs extends vt {
11176
11176
  /**
11177
11177
  * Constructs a new sphere geometry.
11178
11178
  *
@@ -11225,10 +11225,10 @@ class Us extends vt {
11225
11225
  * @return {SphereGeometry} A new instance.
11226
11226
  */
11227
11227
  static fromJSON(t) {
11228
- return new Us(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
11228
+ return new Vs(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
11229
11229
  }
11230
11230
  }
11231
- class Ws extends vt {
11231
+ class Us extends vt {
11232
11232
  /**
11233
11233
  * Constructs a new tube geometry.
11234
11234
  *
@@ -11238,7 +11238,7 @@ class Ws extends vt {
11238
11238
  * @param {number} [radialSegments=8] - The number of segments that make up the cross-section.
11239
11239
  * @param {boolean} [closed=false] - Whether the tube is closed or not.
11240
11240
  */
11241
- constructor(t = new Ns(new m(-1, -1, 0), new m(-1, 1, 0), new m(1, 1, 0)), e = 64, i = 1, s = 8, n = !1) {
11241
+ constructor(t = new Ds(new m(-1, -1, 0), new m(-1, 1, 0), new m(1, 1, 0)), e = 64, i = 1, s = 8, n = !1) {
11242
11242
  super(), this.type = "TubeGeometry", this.parameters = {
11243
11243
  path: t,
11244
11244
  tubularSegments: e,
@@ -11293,8 +11293,8 @@ class Ws extends vt {
11293
11293
  * @return {TubeGeometry} A new instance.
11294
11294
  */
11295
11295
  static fromJSON(t) {
11296
- return new Ws(
11297
- new ea[t.path.type]().fromJSON(t.path),
11296
+ return new Us(
11297
+ new ta[t.path.type]().fromJSON(t.path),
11298
11298
  t.tubularSegments,
11299
11299
  t.radius,
11300
11300
  t.radialSegments,
@@ -11319,7 +11319,7 @@ class hh extends Z {
11319
11319
  return super.copy(t), this.color.copy(t.color), this.fog = t.fog, this;
11320
11320
  }
11321
11321
  }
11322
- class ia extends Z {
11322
+ class ea extends Z {
11323
11323
  /**
11324
11324
  * Constructs a new mesh standard material.
11325
11325
  *
@@ -11336,7 +11336,7 @@ class ia extends Z {
11336
11336
  return super.copy(t), this.defines = { STANDARD: "" }, this.color.copy(t.color), this.roughness = t.roughness, this.metalness = t.metalness, this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.roughnessMap = t.roughnessMap, this.metalnessMap = t.metalnessMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.envMapIntensity = t.envMapIntensity, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.flatShading = t.flatShading, this.fog = t.fog, this;
11337
11337
  }
11338
11338
  }
11339
- class lh extends ia {
11339
+ class lh extends ea {
11340
11340
  /**
11341
11341
  * Constructs a new mesh physical material.
11342
11342
  *
@@ -11528,7 +11528,7 @@ class fh extends Z {
11528
11528
  * by {@link Color#set}.
11529
11529
  */
11530
11530
  constructor(t) {
11531
- super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = Wn, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(t);
11531
+ super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = Un, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(t);
11532
11532
  }
11533
11533
  copy(t) {
11534
11534
  return super.copy(t), this.depthPacking = t.depthPacking, this.map = t.map, this.alphaMap = t.alphaMap, this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this;
@@ -11568,7 +11568,7 @@ class yh extends Z {
11568
11568
  return super.copy(t), this.defines = { MATCAP: "" }, this.color.copy(t.color), this.matcap = t.matcap, this.map = t.map, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.alphaMap = t.alphaMap, this.flatShading = t.flatShading, this.fog = t.fog, this;
11569
11569
  }
11570
11570
  }
11571
- class xh extends Os {
11571
+ class xh extends ks {
11572
11572
  /**
11573
11573
  * Constructs a new line dashed material.
11574
11574
  *
@@ -11641,7 +11641,7 @@ const bi = {
11641
11641
  this.files = {};
11642
11642
  }
11643
11643
  };
11644
- class sa {
11644
+ class ia {
11645
11645
  /**
11646
11646
  * Constructs a new loading manager.
11647
11647
  *
@@ -11678,7 +11678,7 @@ class sa {
11678
11678
  };
11679
11679
  }
11680
11680
  }
11681
- const na = /* @__PURE__ */ new sa();
11681
+ const sa = /* @__PURE__ */ new ia();
11682
11682
  class ki {
11683
11683
  /**
11684
11684
  * Constructs a new loader.
@@ -11686,7 +11686,7 @@ class ki {
11686
11686
  * @param {LoadingManager} [manager] - The loading manager.
11687
11687
  */
11688
11688
  constructor(t) {
11689
- this.manager = t !== void 0 ? t : na, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
11689
+ this.manager = t !== void 0 ? t : sa, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
11690
11690
  }
11691
11691
  /**
11692
11692
  * This method needs to be implemented by all concrete loaders. It holds the
@@ -11773,7 +11773,7 @@ class ki {
11773
11773
  }
11774
11774
  ki.DEFAULT_MATERIAL_NAME = "__DEFAULT";
11775
11775
  const ee = /* @__PURE__ */ new WeakMap();
11776
- class ra extends ki {
11776
+ class na extends ki {
11777
11777
  /**
11778
11778
  * Constructs a new image loader.
11779
11779
  *
@@ -11855,7 +11855,7 @@ class gh extends ki {
11855
11855
  * @return {Texture} The texture.
11856
11856
  */
11857
11857
  load(t, e, i, s) {
11858
- const n = new H(), r = new ra(this.manager);
11858
+ const n = new H(), r = new na(this.manager);
11859
11859
  return r.setCrossOrigin(this.crossOrigin), r.setPath(this.path), r.load(t, function(o) {
11860
11860
  n.image = o, n.needsUpdate = !0, e !== void 0 && e(n);
11861
11861
  }, i, s), n;
@@ -11908,7 +11908,7 @@ class Oi {
11908
11908
  * @param {Camera} camera - The light's view of the world.
11909
11909
  */
11910
11910
  constructor(t) {
11911
- this.camera = t, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new z(512, 512), this.mapType = Ci, this.map = null, this.mapPass = null, this.matrix = new O(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Is(), this._frameExtents = new z(1, 1), this._viewportCount = 1, this._viewports = [
11911
+ this.camera = t, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new z(512, 512), this.mapType = Ci, this.map = null, this.mapPass = null, this.matrix = new O(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Ps(), this._frameExtents = new z(1, 1), this._viewportCount = 1, this._viewports = [
11912
11912
  new Y(0, 0, 1, 1)
11913
11913
  ];
11914
11914
  }
@@ -12007,7 +12007,7 @@ class Oi {
12007
12007
  return this.intensity !== 1 && (t.intensity = this.intensity), this.bias !== 0 && (t.bias = this.bias), this.normalBias !== 0 && (t.normalBias = this.normalBias), this.radius !== 1 && (t.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (t.mapSize = this.mapSize.toArray()), t.camera = this.camera.toJSON(!1).object, delete t.camera.matrix, t;
12008
12008
  }
12009
12009
  }
12010
- class aa extends Oi {
12010
+ class ra extends Oi {
12011
12011
  /**
12012
12012
  * Constructs a new spot light shadow.
12013
12013
  */
@@ -12034,7 +12034,7 @@ class wh extends Nt {
12034
12034
  * @param {number} [decay=2] - The amount the light dims along the distance of the light.
12035
12035
  */
12036
12036
  constructor(t, e, i = 0, s = Math.PI / 3, n = 0, r = 2) {
12037
- super(t, e), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(D.DEFAULT_UP), this.updateMatrix(), this.target = new D(), this.distance = i, this.angle = s, this.penumbra = n, this.decay = r, this.map = null, this.shadow = new aa();
12037
+ super(t, e), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(D.DEFAULT_UP), this.updateMatrix(), this.target = new D(), this.distance = i, this.angle = s, this.penumbra = n, this.decay = r, this.map = null, this.shadow = new ra();
12038
12038
  }
12039
12039
  /**
12040
12040
  * The light's power. Power is the luminous power of the light measured in lumens (lm).
@@ -12056,7 +12056,7 @@ class wh extends Nt {
12056
12056
  }
12057
12057
  }
12058
12058
  const Ms = /* @__PURE__ */ new O(), ue = /* @__PURE__ */ new m(), _i = /* @__PURE__ */ new m();
12059
- class oa extends Oi {
12059
+ class aa extends Oi {
12060
12060
  /**
12061
12061
  * Constructs a new point light shadow.
12062
12062
  */
@@ -12123,7 +12123,7 @@ class bh extends Nt {
12123
12123
  * @param {number} [decay=2] - The amount the light dims along the distance of the light.
12124
12124
  */
12125
12125
  constructor(t, e, i = 0, s = 2) {
12126
- super(t, e), this.isPointLight = !0, this.type = "PointLight", this.distance = i, this.decay = s, this.shadow = new oa();
12126
+ super(t, e), this.isPointLight = !0, this.type = "PointLight", this.distance = i, this.decay = s, this.shadow = new aa();
12127
12127
  }
12128
12128
  /**
12129
12129
  * The light's power. Power is the luminous power of the light measured in lumens (lm).
@@ -12144,7 +12144,7 @@ class bh extends Nt {
12144
12144
  return super.copy(t, e), this.distance = t.distance, this.decay = t.decay, this.shadow = t.shadow.clone(), this;
12145
12145
  }
12146
12146
  }
12147
- class ha extends Es {
12147
+ class oa extends Bs {
12148
12148
  /**
12149
12149
  * Constructs a new orthographic camera.
12150
12150
  *
@@ -12208,12 +12208,12 @@ class ha extends Es {
12208
12208
  return e.object.zoom = this.zoom, e.object.left = this.left, e.object.right = this.right, e.object.top = this.top, e.object.bottom = this.bottom, e.object.near = this.near, e.object.far = this.far, this.view !== null && (e.object.view = Object.assign({}, this.view)), e;
12209
12209
  }
12210
12210
  }
12211
- class la extends Oi {
12211
+ class ha extends Oi {
12212
12212
  /**
12213
12213
  * Constructs a new directional light shadow.
12214
12214
  */
12215
12215
  constructor() {
12216
- super(new ha(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
12216
+ super(new oa(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
12217
12217
  }
12218
12218
  }
12219
12219
  class Sh extends Nt {
@@ -12224,7 +12224,7 @@ class Sh extends Nt {
12224
12224
  * @param {number} [intensity=1] - The light's strength/intensity.
12225
12225
  */
12226
12226
  constructor(t, e) {
12227
- super(t, e), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(D.DEFAULT_UP), this.updateMatrix(), this.target = new D(), this.shadow = new la();
12227
+ super(t, e), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(D.DEFAULT_UP), this.updateMatrix(), this.target = new D(), this.shadow = new ha();
12228
12228
  }
12229
12229
  dispose() {
12230
12230
  this.shadow.dispose();
@@ -12276,7 +12276,7 @@ class Ah extends Nt {
12276
12276
  return e.object.width = this.width, e.object.height = this.height, e;
12277
12277
  }
12278
12278
  }
12279
- class ca {
12279
+ class la {
12280
12280
  /**
12281
12281
  * Constructs a new spherical harmonics.
12282
12282
  */
@@ -12452,7 +12452,7 @@ class vh extends Nt {
12452
12452
  * @param {SphericalHarmonics3} sh - The spherical harmonics which represents encoded lighting information.
12453
12453
  * @param {number} [intensity=1] - The light's strength/intensity.
12454
12454
  */
12455
- constructor(t = new ca(), e = 1) {
12455
+ constructor(t = new la(), e = 1) {
12456
12456
  super(void 0, e), this.isLightProbe = !0, this.sh = t;
12457
12457
  }
12458
12458
  copy(t) {
@@ -12529,7 +12529,7 @@ class Th {
12529
12529
  return t;
12530
12530
  }
12531
12531
  }
12532
- class Ch extends Or {
12532
+ class Ch extends kr {
12533
12533
  /**
12534
12534
  * Constructs a new instanced interleaved buffer.
12535
12535
  *
@@ -12563,7 +12563,7 @@ class Fh {
12563
12563
  * @param {number} [far=Infinity] - All results returned are closer than far. Far can't be lower than near.
12564
12564
  */
12565
12565
  constructor(t, e, i = 0, s = 1 / 0) {
12566
- this.ray = new Ri(t, e), this.near = i, this.far = s, this.camera = null, this.layers = new Bs(), this.params = {
12566
+ this.ray = new Bi(t, e), this.near = i, this.far = s, this.camera = null, this.layers = new Fs(), this.params = {
12567
12567
  Mesh: {},
12568
12568
  Line: { threshold: 1 },
12569
12569
  LOD: {},
@@ -12664,7 +12664,7 @@ function zi(c, t, e, i) {
12664
12664
  zi(n[r], t, e, !0);
12665
12665
  }
12666
12666
  }
12667
- class Bh {
12667
+ class Rh {
12668
12668
  /**
12669
12669
  * Constructs a new spherical.
12670
12670
  *
@@ -12734,7 +12734,7 @@ class Bh {
12734
12734
  return new this.constructor().copy(this);
12735
12735
  }
12736
12736
  }
12737
- class qs {
12737
+ class Ws {
12738
12738
  /**
12739
12739
  * Constructs a new 2x2 matrix. The arguments are supposed to be
12740
12740
  * in row-major order. If no arguments are provided, the constructor
@@ -12746,7 +12746,7 @@ class qs {
12746
12746
  * @param {number} [n22] - 2-2 matrix element.
12747
12747
  */
12748
12748
  constructor(t, e, i, s) {
12749
- qs.prototype.isMatrix2 = !0, this.elements = [
12749
+ Ws.prototype.isMatrix2 = !0, this.elements = [
12750
12750
  1,
12751
12751
  0,
12752
12752
  0,
@@ -12793,7 +12793,7 @@ class qs {
12793
12793
  return n[0] = t, n[2] = e, n[1] = i, n[3] = s, this;
12794
12794
  }
12795
12795
  }
12796
- class Rh extends re {
12796
+ class Bh extends re {
12797
12797
  /**
12798
12798
  * Constructs a new controls instance.
12799
12799
  *
@@ -12837,156 +12837,156 @@ class Rh extends re {
12837
12837
  }
12838
12838
  }
12839
12839
  function Eh(c, t, e, i) {
12840
- const s = ua(i);
12840
+ const s = ca(i);
12841
12841
  switch (e) {
12842
12842
  // https://registry.khronos.org/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml
12843
- case en:
12843
+ case tn:
12844
12844
  return c * t;
12845
+ case nn:
12846
+ return c * t / s.components * s.byteLength;
12845
12847
  case rn:
12846
12848
  return c * t / s.components * s.byteLength;
12847
12849
  case an:
12848
- return c * t / s.components * s.byteLength;
12849
- case on:
12850
12850
  return c * t * 2 / s.components * s.byteLength;
12851
- case hn:
12851
+ case on:
12852
12852
  return c * t * 2 / s.components * s.byteLength;
12853
- case sn:
12853
+ case en:
12854
12854
  return c * t * 3 / s.components * s.byteLength;
12855
- case Cs:
12855
+ case Ts:
12856
12856
  return c * t * 4 / s.components * s.byteLength;
12857
- case ln:
12857
+ case hn:
12858
12858
  return c * t * 4 / s.components * s.byteLength;
12859
12859
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/
12860
+ case ln:
12860
12861
  case cn:
12861
- case un:
12862
12862
  return Math.floor((c + 3) / 4) * Math.floor((t + 3) / 4) * 8;
12863
+ case un:
12863
12864
  case pn:
12864
- case dn:
12865
12865
  return Math.floor((c + 3) / 4) * Math.floor((t + 3) / 4) * 16;
12866
12866
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_pvrtc/
12867
- case mn:
12868
- case xn:
12869
- return Math.max(c, 16) * Math.max(t, 8) / 4;
12870
12867
  case fn:
12871
12868
  case yn:
12869
+ return Math.max(c, 16) * Math.max(t, 8) / 4;
12870
+ case dn:
12871
+ case mn:
12872
12872
  return Math.max(c, 8) * Math.max(t, 8) / 2;
12873
12873
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_etc/
12874
+ case xn:
12874
12875
  case gn:
12875
- case Mn:
12876
12876
  return Math.floor((c + 3) / 4) * Math.floor((t + 3) / 4) * 8;
12877
- case wn:
12877
+ case Mn:
12878
12878
  return Math.floor((c + 3) / 4) * Math.floor((t + 3) / 4) * 16;
12879
12879
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_astc/
12880
- case bn:
12880
+ case wn:
12881
12881
  return Math.floor((c + 3) / 4) * Math.floor((t + 3) / 4) * 16;
12882
- case Sn:
12882
+ case bn:
12883
12883
  return Math.floor((c + 4) / 5) * Math.floor((t + 3) / 4) * 16;
12884
- case _n:
12884
+ case Sn:
12885
12885
  return Math.floor((c + 4) / 5) * Math.floor((t + 4) / 5) * 16;
12886
- case An:
12886
+ case _n:
12887
12887
  return Math.floor((c + 5) / 6) * Math.floor((t + 4) / 5) * 16;
12888
- case vn:
12888
+ case An:
12889
12889
  return Math.floor((c + 5) / 6) * Math.floor((t + 5) / 6) * 16;
12890
- case zn:
12890
+ case vn:
12891
12891
  return Math.floor((c + 7) / 8) * Math.floor((t + 4) / 5) * 16;
12892
- case Tn:
12892
+ case zn:
12893
12893
  return Math.floor((c + 7) / 8) * Math.floor((t + 5) / 6) * 16;
12894
- case Cn:
12894
+ case Tn:
12895
12895
  return Math.floor((c + 7) / 8) * Math.floor((t + 7) / 8) * 16;
12896
- case Fn:
12896
+ case Cn:
12897
12897
  return Math.floor((c + 9) / 10) * Math.floor((t + 4) / 5) * 16;
12898
- case Bn:
12898
+ case Fn:
12899
12899
  return Math.floor((c + 9) / 10) * Math.floor((t + 5) / 6) * 16;
12900
12900
  case Rn:
12901
12901
  return Math.floor((c + 9) / 10) * Math.floor((t + 7) / 8) * 16;
12902
- case En:
12902
+ case Bn:
12903
12903
  return Math.floor((c + 9) / 10) * Math.floor((t + 9) / 10) * 16;
12904
- case Pn:
12904
+ case En:
12905
12905
  return Math.floor((c + 11) / 12) * Math.floor((t + 9) / 10) * 16;
12906
- case In:
12906
+ case Pn:
12907
12907
  return Math.floor((c + 11) / 12) * Math.floor((t + 11) / 12) * 16;
12908
12908
  // https://registry.khronos.org/webgl/extensions/EXT_texture_compression_bptc/
12909
+ case In:
12909
12910
  case kn:
12910
12911
  case On:
12911
- case Ln:
12912
12912
  return Math.ceil(c / 4) * Math.ceil(t / 4) * 16;
12913
12913
  // https://registry.khronos.org/webgl/extensions/EXT_texture_compression_rgtc/
12914
+ case Ln:
12914
12915
  case Dn:
12915
- case Nn:
12916
12916
  return Math.ceil(c / 4) * Math.ceil(t / 4) * 8;
12917
+ case Nn:
12917
12918
  case Vn:
12918
- case Un:
12919
12919
  return Math.ceil(c / 4) * Math.ceil(t / 4) * 16;
12920
12920
  }
12921
12921
  throw new Error(
12922
12922
  `Unable to determine texture byte length for ${e} format.`
12923
12923
  );
12924
12924
  }
12925
- function ua(c) {
12925
+ function ca(c) {
12926
12926
  switch (c) {
12927
12927
  case Ci:
12928
- case Gs:
12928
+ case Xs:
12929
12929
  return { byteLength: 1, components: 1 };
12930
- case Ys:
12931
12930
  case Hs:
12932
- case $s:
12931
+ case Gs:
12932
+ case Zs:
12933
12933
  return { byteLength: 2, components: 1 };
12934
+ case $s:
12934
12935
  case Qs:
12935
- case Ks:
12936
12936
  return { byteLength: 2, components: 4 };
12937
+ case vs:
12938
+ case Ys:
12937
12939
  case zs:
12938
- case Zs:
12939
- case Ts:
12940
12940
  return { byteLength: 4, components: 1 };
12941
- case tn:
12941
+ case Ks:
12942
12942
  return { byteLength: 4, components: 3 };
12943
12943
  }
12944
12944
  throw new Error(`Unknown texture type ${c}.`);
12945
12945
  }
12946
12946
  typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: {
12947
- revision: Ss
12947
+ revision: "178"
12948
12948
  } }));
12949
- typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = Ss);
12949
+ typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "178");
12950
12950
  export {
12951
12951
  io as ACESFilmicToneMapping,
12952
12952
  Ni as AddEquation,
12953
12953
  $a as AddOperation,
12954
12954
  Sa as AdditiveBlending,
12955
12955
  no as AgXToneMapping,
12956
- en as AlphaFormat,
12956
+ tn as AlphaFormat,
12957
12957
  No as AlwaysCompare,
12958
12958
  Ja as AlwaysDepth,
12959
12959
  Hi as AlwaysStencilFunc,
12960
12960
  _h as AmbientLight,
12961
- Vr as ArcCurve,
12961
+ Nr as ArcCurve,
12962
12962
  zh as ArrayCamera,
12963
- _s as BackSide,
12964
- Wn as BasicDepthPacking,
12963
+ Ss as BackSide,
12964
+ Un as BasicDepthPacking,
12965
12965
  xa as BasicShadowMap,
12966
12966
  ge as Box3,
12967
12967
  Ei as BoxGeometry,
12968
12968
  _t as BufferAttribute,
12969
12969
  vt as BufferGeometry,
12970
- Gs as ByteType,
12970
+ Xs as ByteType,
12971
12971
  bi as Cache,
12972
- Es as Camera,
12973
- Ur as CatmullRomCurve3,
12972
+ Bs as Camera,
12973
+ Vr as CatmullRomCurve3,
12974
12974
  eo as CineonToneMapping,
12975
12975
  ie as ClampToEdgeWrapping,
12976
12976
  Th as Clock,
12977
12977
  I as Color,
12978
12978
  st as ColorManagement,
12979
- Ls as ConeGeometry,
12979
+ Os as ConeGeometry,
12980
12980
  Ua as ConstantAlphaFactor,
12981
12981
  Na as ConstantColorFactor,
12982
- Rh as Controls,
12983
- Pr as CubeCamera,
12984
- Xs as CubeReflectionMapping,
12982
+ Bh as Controls,
12983
+ Er as CubeCamera,
12984
+ js as CubeReflectionMapping,
12985
12985
  ao as CubeRefractionMapping,
12986
- Ir as CubeTexture,
12986
+ Pr as CubeTexture,
12987
12987
  lo as CubeUVReflectionMapping,
12988
- Yr as CubicBezierCurve,
12989
- Zr as CubicBezierCurve3,
12988
+ Hr as CubicBezierCurve,
12989
+ Yr as CubicBezierCurve3,
12990
12990
  ma as CullFaceBack,
12991
12991
  ya as CullFaceFront,
12992
12992
  fa as CullFaceNone,
@@ -12999,16 +12999,16 @@ export {
12999
12999
  ih as DataTexture,
13000
13000
  bo as DecrementStencilOp,
13001
13001
  _o as DecrementWrapStencilOp,
13002
- na as DefaultLoadingManager,
13002
+ sa as DefaultLoadingManager,
13003
13003
  ji as DepthFormat,
13004
- nn as DepthStencilFormat,
13004
+ sn as DepthStencilFormat,
13005
13005
  oh as DepthTexture,
13006
13006
  Sh as DirectionalLight,
13007
13007
  ba as DoubleSide,
13008
13008
  Ia as DstAlphaFactor,
13009
13009
  Oa as DstColorFactor,
13010
13010
  Vo as DynamicDrawUsage,
13011
- Ds as EllipseCurve,
13011
+ Ls as EllipseCurve,
13012
13012
  Io as EqualCompare,
13013
13013
  Xa as EqualDepth,
13014
13014
  To as EqualStencilFunc,
@@ -13018,33 +13018,33 @@ export {
13018
13018
  re as EventDispatcher,
13019
13019
  Yo as Float16BufferAttribute,
13020
13020
  U as Float32BufferAttribute,
13021
- Ts as FloatType,
13021
+ zs as FloatType,
13022
13022
  ah as FramebufferTexture,
13023
13023
  Ai as FrontSide,
13024
- Is as Frustum,
13025
- ks as FrustumArray,
13024
+ Ps as Frustum,
13025
+ Is as FrustumArray,
13026
13026
  Uo as GLSL3,
13027
13027
  Oo as GreaterCompare,
13028
13028
  Ha as GreaterDepth,
13029
13029
  Do as GreaterEqualCompare,
13030
13030
  Ga as GreaterEqualDepth,
13031
- Ro as GreaterEqualStencilFunc,
13031
+ Bo as GreaterEqualStencilFunc,
13032
13032
  Fo as GreaterStencilFunc,
13033
13033
  Le as Group,
13034
- $s as HalfFloatType,
13034
+ Zs as HalfFloatType,
13035
13035
  Mh as HemisphereLight,
13036
- ra as ImageLoader,
13037
- or as ImageUtils,
13036
+ na as ImageLoader,
13037
+ ar as ImageUtils,
13038
13038
  wo as IncrementStencilOp,
13039
13039
  So as IncrementWrapStencilOp,
13040
13040
  sh as InstancedBufferAttribute,
13041
13041
  Ch as InstancedInterleavedBuffer,
13042
- Zs as IntType,
13043
- Or as InterleavedBuffer,
13044
- Ps as InterleavedBufferAttribute,
13042
+ Ys as IntType,
13043
+ kr as InterleavedBuffer,
13044
+ Es as InterleavedBufferAttribute,
13045
13045
  Ao as InvertStencilOp,
13046
13046
  Ut as KeepStencilOp,
13047
- Bs as Layers,
13047
+ Fs as Layers,
13048
13048
  Po as LessCompare,
13049
13049
  ja as LessDepth,
13050
13050
  ko as LessEqualCompare,
@@ -13054,27 +13054,27 @@ export {
13054
13054
  Nt as Light,
13055
13055
  vh as LightProbe,
13056
13056
  nh as Line,
13057
- Os as LineBasicMaterial,
13058
- $r as LineCurve,
13059
- Qr as LineCurve3,
13057
+ ks as LineBasicMaterial,
13058
+ Zr as LineCurve,
13059
+ $r as LineCurve3,
13060
13060
  xh as LineDashedMaterial,
13061
13061
  We as LinearFilter,
13062
- vs as LinearMipmapLinearFilter,
13062
+ As as LinearMipmapLinearFilter,
13063
13063
  po as LinearMipmapNearestFilter,
13064
13064
  Xi as LinearSRGBColorSpace,
13065
13065
  Ka as LinearToneMapping,
13066
13066
  Gi as LinearTransfer,
13067
13067
  ki as Loader,
13068
- sa as LoadingManager,
13068
+ ia as LoadingManager,
13069
13069
  pa as MOUSE,
13070
13070
  Z as Material,
13071
13071
  Wo as MathUtils,
13072
- qs as Matrix2,
13072
+ Ws as Matrix2,
13073
13073
  At as Matrix3,
13074
13074
  O as Matrix4,
13075
13075
  Fa as MaxEquation,
13076
- zr as Mesh,
13077
- wr as MeshBasicMaterial,
13076
+ vr as Mesh,
13077
+ Mr as MeshBasicMaterial,
13078
13078
  fh as MeshDepthMaterial,
13079
13079
  mh as MeshDistanceMaterial,
13080
13080
  dh as MeshLambertMaterial,
@@ -13082,7 +13082,7 @@ export {
13082
13082
  ph as MeshNormalMaterial,
13083
13083
  ch as MeshPhongMaterial,
13084
13084
  lh as MeshPhysicalMaterial,
13085
- ia as MeshStandardMaterial,
13085
+ ea as MeshStandardMaterial,
13086
13086
  uh as MeshToonMaterial,
13087
13087
  Ca as MinEquation,
13088
13088
  Ji as MirroredRepeatWrapping,
@@ -13096,96 +13096,96 @@ export {
13096
13096
  Eo as NeverCompare,
13097
13097
  qa as NeverDepth,
13098
13098
  vo as NeverStencilFunc,
13099
- js as NoBlending,
13100
- Fs as NoColorSpace,
13099
+ Js as NoBlending,
13100
+ Cs as NoColorSpace,
13101
13101
  Qa as NoToneMapping,
13102
13102
  Di as NormalBlending,
13103
13103
  Lo as NotEqualCompare,
13104
13104
  Ya as NotEqualDepth,
13105
- Bo as NotEqualStencilFunc,
13105
+ Ro as NotEqualStencilFunc,
13106
13106
  D as Object3D,
13107
13107
  xo as ObjectSpaceNormalMap,
13108
- Ra as OneFactor,
13108
+ Ba as OneFactor,
13109
13109
  Wa as OneMinusConstantAlphaFactor,
13110
13110
  Va as OneMinusConstantColorFactor,
13111
13111
  ka as OneMinusDstAlphaFactor,
13112
13112
  La as OneMinusDstColorFactor,
13113
13113
  Ui as OneMinusSrcAlphaFactor,
13114
13114
  Pa as OneMinusSrcColorFactor,
13115
- ha as OrthographicCamera,
13115
+ oa as OrthographicCamera,
13116
13116
  ga as PCFShadowMap,
13117
13117
  Ma as PCFSoftShadowMap,
13118
13118
  gt as PerspectiveCamera,
13119
13119
  te as Plane,
13120
- Vs as PlaneGeometry,
13120
+ Ns as PlaneGeometry,
13121
13121
  bh as PointLight,
13122
13122
  rh as PointsMaterial,
13123
- Kr as QuadraticBezierCurve,
13124
- Ns as QuadraticBezierCurve3,
13123
+ Qr as QuadraticBezierCurve,
13124
+ Ds as QuadraticBezierCurve3,
13125
13125
  xe as Quaternion,
13126
13126
  ye as RAD2DEG,
13127
- Vn as RED_GREEN_RGTC2_Format,
13128
- Dn as RED_RGTC1_Format,
13129
- Ss as REVISION,
13127
+ Nn as RED_GREEN_RGTC2_Format,
13128
+ Ln as RED_RGTC1_Format,
13129
+ ua as REVISION,
13130
13130
  yo as RGBADepthPacking,
13131
- Cs as RGBAFormat,
13132
- ln as RGBAIntegerFormat,
13133
- En as RGBA_ASTC_10x10_Format,
13134
- Fn as RGBA_ASTC_10x5_Format,
13135
- Bn as RGBA_ASTC_10x6_Format,
13131
+ Ts as RGBAFormat,
13132
+ hn as RGBAIntegerFormat,
13133
+ Bn as RGBA_ASTC_10x10_Format,
13134
+ Cn as RGBA_ASTC_10x5_Format,
13135
+ Fn as RGBA_ASTC_10x6_Format,
13136
13136
  Rn as RGBA_ASTC_10x8_Format,
13137
- Pn as RGBA_ASTC_12x10_Format,
13138
- In as RGBA_ASTC_12x12_Format,
13139
- bn as RGBA_ASTC_4x4_Format,
13140
- Sn as RGBA_ASTC_5x4_Format,
13141
- _n as RGBA_ASTC_5x5_Format,
13142
- An as RGBA_ASTC_6x5_Format,
13143
- vn as RGBA_ASTC_6x6_Format,
13144
- zn as RGBA_ASTC_8x5_Format,
13145
- Tn as RGBA_ASTC_8x6_Format,
13146
- Cn as RGBA_ASTC_8x8_Format,
13147
- kn as RGBA_BPTC_Format,
13148
- wn as RGBA_ETC2_EAC_Format,
13149
- xn as RGBA_PVRTC_2BPPV1_Format,
13150
- yn as RGBA_PVRTC_4BPPV1_Format,
13151
- un as RGBA_S3TC_DXT1_Format,
13152
- pn as RGBA_S3TC_DXT3_Format,
13153
- dn as RGBA_S3TC_DXT5_Format,
13154
- sn as RGBFormat,
13137
+ En as RGBA_ASTC_12x10_Format,
13138
+ Pn as RGBA_ASTC_12x12_Format,
13139
+ wn as RGBA_ASTC_4x4_Format,
13140
+ bn as RGBA_ASTC_5x4_Format,
13141
+ Sn as RGBA_ASTC_5x5_Format,
13142
+ _n as RGBA_ASTC_6x5_Format,
13143
+ An as RGBA_ASTC_6x6_Format,
13144
+ vn as RGBA_ASTC_8x5_Format,
13145
+ zn as RGBA_ASTC_8x6_Format,
13146
+ Tn as RGBA_ASTC_8x8_Format,
13147
+ In as RGBA_BPTC_Format,
13148
+ Mn as RGBA_ETC2_EAC_Format,
13149
+ yn as RGBA_PVRTC_2BPPV1_Format,
13150
+ mn as RGBA_PVRTC_4BPPV1_Format,
13151
+ cn as RGBA_S3TC_DXT1_Format,
13152
+ un as RGBA_S3TC_DXT3_Format,
13153
+ pn as RGBA_S3TC_DXT5_Format,
13154
+ en as RGBFormat,
13155
13155
  mo as RGBIntegerFormat,
13156
- On as RGB_BPTC_SIGNED_Format,
13157
- Ln as RGB_BPTC_UNSIGNED_Format,
13158
- gn as RGB_ETC1_Format,
13159
- Mn as RGB_ETC2_Format,
13160
- mn as RGB_PVRTC_2BPPV1_Format,
13161
- fn as RGB_PVRTC_4BPPV1_Format,
13162
- cn as RGB_S3TC_DXT1_Format,
13163
- on as RGFormat,
13164
- hn as RGIntegerFormat,
13165
- Ri as Ray,
13156
+ kn as RGB_BPTC_SIGNED_Format,
13157
+ On as RGB_BPTC_UNSIGNED_Format,
13158
+ xn as RGB_ETC1_Format,
13159
+ gn as RGB_ETC2_Format,
13160
+ fn as RGB_PVRTC_2BPPV1_Format,
13161
+ dn as RGB_PVRTC_4BPPV1_Format,
13162
+ ln as RGB_S3TC_DXT1_Format,
13163
+ an as RGFormat,
13164
+ on as RGIntegerFormat,
13165
+ Bi as Ray,
13166
13166
  Fh as Raycaster,
13167
13167
  Ah as RectAreaLight,
13168
- rn as RedFormat,
13169
- an as RedIntegerFormat,
13168
+ nn as RedFormat,
13169
+ rn as RedIntegerFormat,
13170
13170
  to as ReinhardToneMapping,
13171
- cr as RenderTarget,
13171
+ lr as RenderTarget,
13172
13172
  qi as RepeatWrapping,
13173
13173
  Mo as ReplaceStencilOp,
13174
13174
  Ta as ReverseSubtractEquation,
13175
- Un as SIGNED_RED_GREEN_RGTC2_Format,
13176
- Nn as SIGNED_RED_RGTC1_Format,
13175
+ Vn as SIGNED_RED_GREEN_RGTC2_Format,
13176
+ Dn as SIGNED_RED_RGTC1_Format,
13177
13177
  ot as SRGBColorSpace,
13178
13178
  Ye as SRGBTransfer,
13179
13179
  th as Scene,
13180
- Er as ShaderMaterial,
13180
+ Br as ShaderMaterial,
13181
13181
  hh as ShadowMaterial,
13182
- Hs as ShortType,
13183
- Bi as Source,
13182
+ Gs as ShortType,
13183
+ Ri as Source,
13184
13184
  Ge as Sphere,
13185
- Us as SphereGeometry,
13186
- Bh as Spherical,
13187
- ca as SphericalHarmonics3,
13188
- ta as SplineCurve,
13185
+ Vs as SphereGeometry,
13186
+ Rh as Spherical,
13187
+ la as SphericalHarmonics3,
13188
+ Kr as SplineCurve,
13189
13189
  wh as SpotLight,
13190
13190
  eh as SpriteMaterial,
13191
13191
  Vi as SrcAlphaFactor,
@@ -13199,36 +13199,36 @@ export {
13199
13199
  H as Texture,
13200
13200
  gh as TextureLoader,
13201
13201
  ht as Triangle,
13202
- Ws as TubeGeometry,
13203
- As as UVMapping,
13204
- _r as Uint16BufferAttribute,
13205
- Ar as Uint32BufferAttribute,
13202
+ Us as TubeGeometry,
13203
+ _s as UVMapping,
13204
+ Sr as Uint16BufferAttribute,
13205
+ _r as Uint32BufferAttribute,
13206
13206
  $o as UniformsUtils,
13207
13207
  Ci as UnsignedByteType,
13208
13208
  fo as UnsignedInt248Type,
13209
- tn as UnsignedInt5999Type,
13210
- zs as UnsignedIntType,
13211
- Qs as UnsignedShort4444Type,
13212
- Ks as UnsignedShort5551Type,
13213
- Ys as UnsignedShortType,
13209
+ Ks as UnsignedInt5999Type,
13210
+ vs as UnsignedIntType,
13211
+ $s as UnsignedShort4444Type,
13212
+ Qs as UnsignedShort5551Type,
13213
+ Hs as UnsignedShortType,
13214
13214
  wa as VSMShadowMap,
13215
13215
  z as Vector2,
13216
13216
  m as Vector3,
13217
13217
  Y as Vector4,
13218
13218
  wt as WebGLCoordinateSystem,
13219
13219
  Qo as WebGLCubeRenderTarget,
13220
- ur as WebGLRenderTarget,
13220
+ cr as WebGLRenderTarget,
13221
13221
  qe as WebGPUCoordinateSystem,
13222
13222
  Ko as WebXRController,
13223
- Ba as ZeroFactor,
13223
+ Ra as ZeroFactor,
13224
13224
  go as ZeroStencilOp,
13225
- rr as arrayNeedsUint32,
13225
+ nr as arrayNeedsUint32,
13226
13226
  He as cloneUniforms,
13227
13227
  qo as createCanvasElement,
13228
13228
  Je as createElementNS,
13229
13229
  Eh as getByteLength,
13230
13230
  Zo as getUnlitUniformColorSpace,
13231
- Cr as mergeUniforms,
13231
+ Tr as mergeUniforms,
13232
13232
  Jo as probeAsync,
13233
13233
  jo as toNormalizedProjectionMatrix,
13234
13234
  Xo as toReversedProjectionMatrix,