shaders 2.0.649 → 2.0.651

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as Nt, jsxs as pz } from "react/jsx-runtime";
2
- import { createContext as mz, useRef as vt, useMemo as pe, useEffect as ge, useContext as Ot } from "react";
2
+ import { createContext as mz, useRef as ft, useMemo as pe, useEffect as ge, useContext as Ot } from "react";
3
3
  var fz = Object.defineProperty, gz = (t, e) => {
4
4
  for (var r in e) fz(t, r, { get: e[r], enumerable: !0 });
5
5
  };
@@ -966,7 +966,7 @@ function gB() {
966
966
  } }, e = [0.64, 0.33, 0.3, 0.6, 0.15, 0.06], r = [0.2126, 0.7152, 0.0722], s = [0.3127, 0.329];
967
967
  return t.define({ [dl]: { primaries: e, whitePoint: s, transfer: If, toXYZ: xw, fromXYZ: bw, luminanceCoefficients: r, workingColorSpaceConfig: { unpackColorSpace: Ms }, outputColorSpaceConfig: { drawingBufferColorSpace: Ms } }, [Ms]: { primaries: e, whitePoint: s, transfer: Fe, toXYZ: xw, fromXYZ: bw, luminanceCoefficients: r, outputColorSpaceConfig: { drawingBufferColorSpace: Ms } } }), t;
968
968
  }
969
- const yt = gB();
969
+ const xt = gB();
970
970
  function ma(t) {
971
971
  return t < 0.04045 ? t * 0.0773993808 : (t * 0.9478672986 + 0.0521327014) ** 2.4;
972
972
  }
@@ -2342,18 +2342,18 @@ var et = class {
2342
2342
  return this.r = e, this.g = e, this.b = e, this;
2343
2343
  }
2344
2344
  setHex(e, r = Ms) {
2345
- return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, yt.colorSpaceToWorking(this, r), this;
2345
+ return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, xt.colorSpaceToWorking(this, r), this;
2346
2346
  }
2347
- setRGB(e, r, s, i = yt.workingColorSpace) {
2348
- return this.r = e, this.g = r, this.b = s, yt.colorSpaceToWorking(this, i), this;
2347
+ setRGB(e, r, s, i = xt.workingColorSpace) {
2348
+ return this.r = e, this.g = r, this.b = s, xt.colorSpaceToWorking(this, i), this;
2349
2349
  }
2350
- setHSL(e, r, s, i = yt.workingColorSpace) {
2350
+ setHSL(e, r, s, i = xt.workingColorSpace) {
2351
2351
  if (e = d1(e, 1), r = He(r, 0, 1), s = He(s, 0, 1), r === 0) this.r = this.g = this.b = s;
2352
2352
  else {
2353
2353
  let n = s <= 0.5 ? s * (1 + r) : s + r - s * r, a = 2 * s - n;
2354
2354
  this.r = Uy(a, n, e + 1 / 3), this.g = Uy(a, n, e), this.b = Uy(a, n, e - 1 / 3);
2355
2355
  }
2356
- return yt.colorSpaceToWorking(this, i), this;
2356
+ return xt.colorSpaceToWorking(this, i), this;
2357
2357
  }
2358
2358
  setStyle(e, r = Ms) {
2359
2359
  function s(n) {
@@ -2406,13 +2406,13 @@ var et = class {
2406
2406
  return this.copyLinearToSRGB(this), this;
2407
2407
  }
2408
2408
  getHex(e = Ms) {
2409
- return yt.workingToColorSpace(Zr.copy(this), e), Math.round(He(Zr.r * 255, 0, 255)) * 65536 + Math.round(He(Zr.g * 255, 0, 255)) * 256 + Math.round(He(Zr.b * 255, 0, 255));
2409
+ return xt.workingToColorSpace(Zr.copy(this), e), Math.round(He(Zr.r * 255, 0, 255)) * 65536 + Math.round(He(Zr.g * 255, 0, 255)) * 256 + Math.round(He(Zr.b * 255, 0, 255));
2410
2410
  }
2411
2411
  getHexString(e = Ms) {
2412
2412
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
2413
2413
  }
2414
- getHSL(e, r = yt.workingColorSpace) {
2415
- yt.workingToColorSpace(Zr.copy(this), r);
2414
+ getHSL(e, r = xt.workingColorSpace) {
2415
+ xt.workingToColorSpace(Zr.copy(this), r);
2416
2416
  let s = Zr.r, i = Zr.g, n = Zr.b, a = Math.max(s, i, n), o = Math.min(s, i, n), l, h, u = (o + a) / 2;
2417
2417
  if (o === a) l = 0, h = 0;
2418
2418
  else {
@@ -2432,11 +2432,11 @@ var et = class {
2432
2432
  }
2433
2433
  return e.h = l, e.s = h, e.l = u, e;
2434
2434
  }
2435
- getRGB(e, r = yt.workingColorSpace) {
2436
- return yt.workingToColorSpace(Zr.copy(this), r), e.r = Zr.r, e.g = Zr.g, e.b = Zr.b, e;
2435
+ getRGB(e, r = xt.workingColorSpace) {
2436
+ return xt.workingToColorSpace(Zr.copy(this), r), e.r = Zr.r, e.g = Zr.g, e.b = Zr.b, e;
2437
2437
  }
2438
2438
  getStyle(e = Ms) {
2439
- yt.workingToColorSpace(Zr.copy(this), e);
2439
+ xt.workingToColorSpace(Zr.copy(this), e);
2440
2440
  let r = Zr.r, s = Zr.g, i = Zr.b;
2441
2441
  return e === Ms ? `rgb(${Math.round(r * 255)},${Math.round(s * 255)},${Math.round(i * 255)})` : `color(${e} ${r.toFixed(3)} ${s.toFixed(3)} ${i.toFixed(3)})`;
2442
2442
  }
@@ -3157,8 +3157,8 @@ var m1 = class f2 extends Rl {
3157
3157
  }
3158
3158
  }
3159
3159
  for (let ue = 0; ue < A; ue++) for (let we = 0; we < M; we++) {
3160
- let je = d + we + ne * ue, qe = d + we + ne * (ue + 1), gt = d + (we + 1) + ne * (ue + 1), ct = d + (we + 1) + ne * ue;
3161
- l.push(je, qe, ct), l.push(qe, gt, ct), Te += 6;
3160
+ let je = d + we + ne * ue, qe = d + we + ne * (ue + 1), yt = d + (we + 1) + ne * (ue + 1), ct = d + (we + 1) + ne * ue;
3161
+ l.push(je, qe, ct), l.push(qe, yt, ct), Te += 6;
3162
3162
  }
3163
3163
  o.addGroup(p, Te, U), p += Te, d += fe;
3164
3164
  }
@@ -5517,11 +5517,11 @@ var Y1 = class extends Yt {
5517
5517
  super("vec4"), this.colorNode = t, this.source = e, this.target = r;
5518
5518
  }
5519
5519
  resolveColorSpace(t, e) {
5520
- return e === X1 ? yt.workingColorSpace : e === o4 ? t.context.outputColorSpace || t.renderer.outputColorSpace : e;
5520
+ return e === X1 ? xt.workingColorSpace : e === o4 ? t.context.outputColorSpace || t.renderer.outputColorSpace : e;
5521
5521
  }
5522
5522
  setup(t) {
5523
5523
  let { colorNode: e } = this, r = this.resolveColorSpace(t, this.source), s = this.resolveColorSpace(t, this.target), i = e;
5524
- return yt.enabled === !1 || r === s || !r || !s || (yt.getTransfer(r) === Fe && (i = be(iC(i.rgb), i.a)), yt.getPrimaries(r) !== yt.getPrimaries(s) && (i = be(as(yt._getMatrix(new Ri(), r, s)).mul(i.rgb), i.a)), yt.getTransfer(s) === Fe && (i = be(nC(i.rgb), i.a))), i;
5524
+ return xt.enabled === !1 || r === s || !r || !s || (xt.getTransfer(r) === Fe && (i = be(iC(i.rgb), i.a)), xt.getPrimaries(r) !== xt.getPrimaries(s) && (i = be(as(xt._getMatrix(new Ri(), r, s)).mul(i.rgb), i.a)), xt.getTransfer(s) === Fe && (i = be(nC(i.rgb), i.a))), i;
5525
5525
  }
5526
5526
  };
5527
5527
  const aC = (t, e) => H(new Y1(H(t), X1, e)), Bg = (t, e) => H(new Y1(H(t), e, X1)), l4 = (t, e, r) => H(new Y1(H(t), e, r));
@@ -5773,7 +5773,7 @@ var x4 = class extends Yt {
5773
5773
  }
5774
5774
  setup({ context: t }) {
5775
5775
  let e = this.colorNode || t.color, r = (this.toneMapping === null ? t.toneMapping : this.toneMapping) || Zu, s = (this.outputColorSpace === null ? t.outputColorSpace : this.outputColorSpace) || Ta;
5776
- return r !== Zu && (e = e.toneMapping(r)), s !== Ta && s !== yt.workingColorSpace && (e = e.workingToColorSpace(s)), e;
5776
+ return r !== Zu && (e = e.toneMapping(r)), s !== Ta && s !== xt.workingColorSpace && (e = e.workingToColorSpace(s)), e;
5777
5777
  }
5778
5778
  };
5779
5779
  const bC = (t, e = null, r = null) => H(new x4(H(t), e, r));
@@ -6309,7 +6309,7 @@ var q4 = class extends Fl {
6309
6309
  Array.isArray(t) ? this.node.array = t : this.node.value = t;
6310
6310
  }
6311
6311
  };
6312
- const xt = (t, e, r) => H(new Ug(t, e, r)), sb = (t, e, r, s) => H(new Ug(t, e, s, r));
6312
+ const bt = (t, e, r) => H(new Ug(t, e, r)), sb = (t, e, r, s) => H(new Ug(t, e, s, r));
6313
6313
  var X4 = class extends Ug {
6314
6314
  static get type() {
6315
6315
  return "MaterialReferenceNode";
@@ -6428,9 +6428,9 @@ var K = class Ut extends _e {
6428
6428
  i = Ag(Lu.x, Lu.y, Lu.y.negate(), Lu.x).mul(n.rg.mul(2).sub(J(1)).normalize().mul(n.b));
6429
6429
  } else i = Lu;
6430
6430
  else if (s === Ut.IRIDESCENCE_THICKNESS) {
6431
- let n = xt("1", "float", r.iridescenceThicknessRange);
6431
+ let n = bt("1", "float", r.iridescenceThicknessRange);
6432
6432
  if (r.iridescenceThicknessMap) {
6433
- let a = xt("0", "float", r.iridescenceThicknessRange);
6433
+ let a = bt("0", "float", r.iridescenceThicknessRange);
6434
6434
  i = n.sub(a).mul(this.getTexture(s).g).add(a);
6435
6435
  } else i = n;
6436
6436
  } else if (s === Ut.TRANSMISSION) {
@@ -6643,7 +6643,7 @@ var MR = class extends _e {
6643
6643
  return "SkinningNode";
6644
6644
  }
6645
6645
  constructor(t) {
6646
- super("void"), this.skinnedMesh = t, this.updateType = Ve.OBJECT, this.skinIndexNode = Ma("skinIndex", "uvec4"), this.skinWeightNode = Ma("skinWeight", "vec4"), this.bindMatrixNode = xt("bindMatrix", "mat4"), this.bindMatrixInverseNode = xt("bindMatrixInverse", "mat4"), this.boneMatricesNode = sb("skeleton.boneMatrices", "mat4", t.skeleton.bones.length), this.positionNode = qt, this.toPositionNode = qt, this.previousBoneMatricesNode = null;
6646
+ super("void"), this.skinnedMesh = t, this.updateType = Ve.OBJECT, this.skinIndexNode = Ma("skinIndex", "uvec4"), this.skinWeightNode = Ma("skinWeight", "vec4"), this.bindMatrixNode = bt("bindMatrix", "mat4"), this.bindMatrixInverseNode = bt("bindMatrixInverse", "mat4"), this.boneMatricesNode = sb("skeleton.boneMatrices", "mat4", t.skeleton.bones.length), this.positionNode = qt, this.toPositionNode = qt, this.previousBoneMatricesNode = null;
6647
6647
  }
6648
6648
  getSkinnedPosition(t = this.boneMatricesNode, e = this.positionNode) {
6649
6649
  let { skinIndexNode: r, skinWeightNode: s, bindMatrixNode: i, bindMatrixInverseNode: n } = this, a = t.element(r.x), o = t.element(r.y), l = t.element(r.z), h = t.element(r.w), u = i.mul(e), c = ir(a.mul(s.x).mul(u), o.mul(s.y).mul(u), l.mul(s.z).mul(u), h.mul(s.w).mul(u));
@@ -6794,7 +6794,7 @@ var wO = class extends _e {
6794
6794
  let h = R(l.width);
6795
6795
  it(n, ({ i: u }) => {
6796
6796
  let c = _(0).toVar();
6797
- this.mesh.count > 1 && this.mesh.morphTexture !== null && this.mesh.morphTexture !== void 0 ? c.assign(jt(this.mesh.morphTexture, Nr(R(u).add(1), R(xo))).r) : c.assign(xt("morphTargetInfluences", "float").element(u).toVar()), ze(c.notEqual(0), () => {
6797
+ this.mesh.count > 1 && this.mesh.morphTexture !== null && this.mesh.morphTexture !== void 0 ? c.assign(jt(this.mesh.morphTexture, Nr(R(u).add(1), R(xo))).r) : c.assign(bt("morphTargetInfluences", "float").element(u).toVar()), ze(c.notEqual(0), () => {
6798
6798
  r === !0 && qt.addAssign(Hw({ bufferMap: a, influence: c, stride: o, width: h, depth: u, offset: R(0) })), s === !0 && Ps.addAssign(Hw({ bufferMap: a, influence: c, stride: o, width: h, depth: u, offset: R(1) }));
6799
6799
  });
6800
6800
  });
@@ -9432,7 +9432,7 @@ var ya = class Dc extends _e {
9432
9432
  }
9433
9433
  setup(e) {
9434
9434
  let r = this.scope, s = this.scene === null ? e.scene : this.scene, i;
9435
- return r === Dc.BACKGROUND_BLURRINESS ? i = xt("backgroundBlurriness", "float", s) : r === Dc.BACKGROUND_INTENSITY ? i = xt("backgroundIntensity", "float", s) : r === Dc.BACKGROUND_ROTATION ? i = ve("mat4").label("backgroundRotation").setGroup(Se).onRenderUpdate(() => {
9435
+ return r === Dc.BACKGROUND_BLURRINESS ? i = bt("backgroundBlurriness", "float", s) : r === Dc.BACKGROUND_INTENSITY ? i = bt("backgroundIntensity", "float", s) : r === Dc.BACKGROUND_ROTATION ? i = ve("mat4").label("backgroundRotation").setGroup(Se).onRenderUpdate(() => {
9436
9436
  let n = s.background;
9437
9437
  return n !== null && n.isTexture && n.mapping !== s1 ? (xc.copy(s.backgroundRotation), xc.x *= -1, xc.y *= -1, xc.z *= -1, cx.makeRotationFromEuler(xc)) : cx.identity(), cx;
9438
9438
  }) : console.error("THREE.SceneNode: Unknown scope:", r), i;
@@ -9582,7 +9582,7 @@ const ID = se(LD), vE = L(([t, e]) => Es(1, t.oneMinus().div(e)).oneMinus()).set
9582
9582
  }), WD = L(([t, e = _(1)]) => {
9583
9583
  let r = F(0.57735, 0.57735, 0.57735), s = e.cos();
9584
9584
  return F(t.rgb.mul(s).add(r.cross(t.rgb).mul(e.sin()).add(r.mul(Po(r, t.rgb).mul(s.oneMinus())))));
9585
- }), bv = (t, e = F(yt.getLuminanceCoefficients(new z()))) => Po(t, e), HD = L(([t, e = F(1), r = F(0), s = F(1), i = _(1), n = F(yt.getLuminanceCoefficients(new z(), dl))]) => {
9585
+ }), bv = (t, e = F(xt.getLuminanceCoefficients(new z()))) => Po(t, e), HD = L(([t, e = F(1), r = F(0), s = F(1), i = _(1), n = F(xt.getLuminanceCoefficients(new z(), dl))]) => {
9586
9586
  let a = t.rgb.dot(F(n)), o = Gt(t.rgb.mul(e).add(r), 0).toVar(), l = o.pow(s).toVar();
9587
9587
  return ze(o.r.greaterThan(0), () => {
9588
9588
  o.r.assign(l.r);
@@ -10355,13 +10355,13 @@ const _S = /* @__PURE__ */ new WeakMap(), OE = L(({ depthTexture: t, shadowCoord
10355
10355
  let i = (g, b) => {
10356
10356
  let v = De(t, g);
10357
10357
  return t.isArrayTexture && (v = v.depth(s)), v.compare(b);
10358
- }, n = xt("mapSize", "vec2", r).setGroup(Se), a = xt("radius", "float", r).setGroup(Se), o = J(1).div(n), l = o.x.negate().mul(a), h = o.y.negate().mul(a), u = o.x.mul(a), c = o.y.mul(a), d = l.div(2), p = h.div(2), m = u.div(2), f = c.div(2);
10358
+ }, n = bt("mapSize", "vec2", r).setGroup(Se), a = bt("radius", "float", r).setGroup(Se), o = J(1).div(n), l = o.x.negate().mul(a), h = o.y.negate().mul(a), u = o.x.mul(a), c = o.y.mul(a), d = l.div(2), p = h.div(2), m = u.div(2), f = c.div(2);
10359
10359
  return ir(i(e.xy.add(J(l, h)), e.z), i(e.xy.add(J(0, h)), e.z), i(e.xy.add(J(u, h)), e.z), i(e.xy.add(J(d, p)), e.z), i(e.xy.add(J(0, p)), e.z), i(e.xy.add(J(m, p)), e.z), i(e.xy.add(J(l, 0)), e.z), i(e.xy.add(J(d, 0)), e.z), i(e.xy, e.z), i(e.xy.add(J(m, 0)), e.z), i(e.xy.add(J(u, 0)), e.z), i(e.xy.add(J(d, f)), e.z), i(e.xy.add(J(0, f)), e.z), i(e.xy.add(J(m, f)), e.z), i(e.xy.add(J(l, c)), e.z), i(e.xy.add(J(0, c)), e.z), i(e.xy.add(J(u, c)), e.z)).mul(1 / 17);
10360
10360
  }), UE = L(({ depthTexture: t, shadowCoord: e, shadow: r, depthLayer: s }) => {
10361
10361
  let i = (c, d) => {
10362
10362
  let p = De(t, c);
10363
10363
  return t.isArrayTexture && (p = p.depth(s)), p.compare(d);
10364
- }, n = xt("mapSize", "vec2", r).setGroup(Se), a = J(1).div(n), o = a.x, l = a.y, h = e.xy, u = Fa(h.mul(n).add(0.5));
10364
+ }, n = bt("mapSize", "vec2", r).setGroup(Se), a = J(1).div(n), o = a.x, l = a.y, h = e.xy, u = Fa(h.mul(n).add(0.5));
10365
10365
  return h.subAssign(u.mul(a)), ir(i(h, e.z), i(h.add(J(o, 0)), e.z), i(h.add(J(0, l)), e.z), i(h.add(a), e.z), st(i(h.add(J(o.negate(), 0)), e.z), i(h.add(J(o.mul(2), 0)), e.z), u.x), st(i(h.add(J(o.negate(), l)), e.z), i(h.add(J(o.mul(2), l)), e.z), u.x), st(i(h.add(J(0, l.negate())), e.z), i(h.add(J(0, l.mul(2))), e.z), u.y), st(i(h.add(J(o, l.negate())), e.z), i(h.add(J(o, l.mul(2))), e.z), u.y), st(st(i(h.add(J(o.negate(), l.negate())), e.z), i(h.add(J(o.mul(2), l.negate())), e.z), u.x), st(i(h.add(J(o.negate(), l.mul(2))), e.z), i(h.add(J(o.mul(2), l.mul(2))), e.z), u.x), u.y)).mul(1 / 9);
10366
10366
  }), DE = L(({ depthTexture: t, shadowCoord: e, depthLayer: r }) => {
10367
10367
  let s = _(1).toVar(), i = De(t).sample(e.xy);
@@ -10375,7 +10375,7 @@ const _S = /* @__PURE__ */ new WeakMap(), OE = L(({ depthTexture: t, shadowCoord
10375
10375
  let s = fa.sub(t).length();
10376
10376
  return s = s.sub(e).div(r.sub(e)), s = s.saturate(), s;
10377
10377
  }), K6 = (t) => {
10378
- let e = t.shadow.camera, r = xt("near", "float", e).setGroup(Se), s = xt("far", "float", e).setGroup(Se), i = MC(t);
10378
+ let e = t.shadow.camera, r = bt("near", "float", e).setGroup(Se), s = bt("far", "float", e).setGroup(Se), i = MC(t);
10379
10379
  return Q6(i, r, s);
10380
10380
  }, $E = (t) => {
10381
10381
  let e = _S.get(t);
@@ -10421,12 +10421,12 @@ var jE = class extends G6 {
10421
10421
  return a.select(o, _(1));
10422
10422
  }
10423
10423
  setupShadowCoord(t, e) {
10424
- let { shadow: r } = this, { renderer: s } = t, i = xt("bias", "float", r).setGroup(Se), n = e, a;
10424
+ let { shadow: r } = this, { renderer: s } = t, i = bt("bias", "float", r).setGroup(Se), n = e, a;
10425
10425
  if (r.camera.isOrthographicCamera || s.logarithmicDepthBuffer !== !0) n = n.xyz.div(n.w), a = n.z, s.coordinateSystem === An && (a = a.mul(2).sub(1));
10426
10426
  else {
10427
10427
  let o = n.w;
10428
10428
  n = n.xy.div(o);
10429
- let l = xt("near", "float", r.camera).setGroup(Se), h = xt("far", "float", r.camera).setGroup(Se);
10429
+ let l = bt("near", "float", r.camera).setGroup(Se), h = bt("far", "float", r.camera).setGroup(Se);
10430
10430
  a = uv(o.negate(), l, h);
10431
10431
  }
10432
10432
  return n = F(n.x, n.y.oneMinus(), a.add(i)), n;
@@ -10448,10 +10448,10 @@ var jE = class extends G6 {
10448
10448
  n.isArrayTexture && (g = g.depth(this.depthLayer));
10449
10449
  let b = De(this.vsmShadowMapVertical.texture);
10450
10450
  n.isArrayTexture && (b = b.depth(this.depthLayer));
10451
- let v = xt("blurSamples", "float", s).setGroup(Se), w = xt("radius", "float", s).setGroup(Se), T = xt("mapSize", "vec2", s).setGroup(Se), N = this.vsmMaterialVertical || (this.vsmMaterialVertical = new Xt());
10451
+ let v = bt("blurSamples", "float", s).setGroup(Se), w = bt("radius", "float", s).setGroup(Se), T = bt("mapSize", "vec2", s).setGroup(Se), N = this.vsmMaterialVertical || (this.vsmMaterialVertical = new Xt());
10452
10452
  N.fragmentNode = e8({ samples: v, radius: w, size: T, shadowPass: g, depthLayer: this.depthLayer }).context(t.getSharedContext()), N.name = "VSMVertical", N = this.vsmMaterialHorizontal || (this.vsmMaterialHorizontal = new Xt()), N.fragmentNode = t8({ samples: v, radius: w, size: T, shadowPass: b, depthLayer: this.depthLayer }).context(t.getSharedContext()), N.name = "VSMHorizontal";
10453
10453
  }
10454
- let o = xt("intensity", "float", s).setGroup(Se), l = xt("normalBias", "float", s).setGroup(Se), h = Sv(r).mul(Cv.add(kg.mul(l))), u = this.setupShadowCoord(t, h), c = s.filterNode || this.getShadowFilterFn(e.shadowMap.type) || null;
10454
+ let o = bt("intensity", "float", s).setGroup(Se), l = bt("normalBias", "float", s).setGroup(Se), h = Sv(r).mul(Cv.add(kg.mul(l))), u = this.setupShadowCoord(t, h), c = s.filterNode || this.getShadowFilterFn(e.shadowMap.type) || null;
10455
10455
  if (c === null) throw Error("THREE.WebGPURenderer: Shadow map type not supported yet.");
10456
10456
  let d = i === rf && s.isPointLightShadow !== !0 ? this.vsmShadowMapHorizontal.texture : n, p = this.setupShadowFilter(t, { filterFn: c, shadowTexture: a.texture, depthTexture: d, shadowCoord: u, shadow: s, depthLayer: this.depthLayer }), m = De(a.texture, u);
10457
10457
  n.isArrayTexture && (m = m.depth(this.depthLayer));
@@ -10504,10 +10504,10 @@ const WE = (t, e) => H(new jE(t, e)), s8 = new et(), Hi = L(([t, e]) => {
10504
10504
  n.x.assign(r.x.add(l.mul(2)).add(2)), n.y.assign(r.z.mul(l).sub(2));
10505
10505
  }), J(0.125, 0.25).mul(n).add(J(0.375, 0.75)).flipY();
10506
10506
  }).setLayout({ name: "cubeToUV", type: "vec2", inputs: [{ name: "pos", type: "vec3" }, { name: "texelSizeY", type: "float" }] }), HE = L(({ depthTexture: t, bd3D: e, dp: r, texelSize: s }) => De(t, Hi(e, s.y)).compare(r)), qE = L(({ depthTexture: t, bd3D: e, dp: r, texelSize: s, shadow: i }) => {
10507
- let n = xt("radius", "float", i).setGroup(Se), a = J(-1, 1).mul(n).mul(s.y);
10507
+ let n = bt("radius", "float", i).setGroup(Se), a = J(-1, 1).mul(n).mul(s.y);
10508
10508
  return De(t, Hi(e.add(a.xyy), s.y)).compare(r).add(De(t, Hi(e.add(a.yyy), s.y)).compare(r)).add(De(t, Hi(e.add(a.xyx), s.y)).compare(r)).add(De(t, Hi(e.add(a.yyx), s.y)).compare(r)).add(De(t, Hi(e, s.y)).compare(r)).add(De(t, Hi(e.add(a.xxy), s.y)).compare(r)).add(De(t, Hi(e.add(a.yxy), s.y)).compare(r)).add(De(t, Hi(e.add(a.xxx), s.y)).compare(r)).add(De(t, Hi(e.add(a.yxx), s.y)).compare(r)).mul(1 / 9);
10509
10509
  }), i8 = L(({ filterFn: t, depthTexture: e, shadowCoord: r, shadow: s }) => {
10510
- let i = r.xyz.toVar(), n = i.length(), a = ve("float").setGroup(Se).onRenderUpdate(() => s.camera.near), o = ve("float").setGroup(Se).onRenderUpdate(() => s.camera.far), l = xt("bias", "float", s).setGroup(Se), h = ve(s.mapSize).setGroup(Se), u = _(1).toVar();
10510
+ let i = r.xyz.toVar(), n = i.length(), a = ve("float").setGroup(Se).onRenderUpdate(() => s.camera.near), o = ve("float").setGroup(Se).onRenderUpdate(() => s.camera.far), l = bt("bias", "float", s).setGroup(Se), h = ve(s.mapSize).setGroup(Se), u = _(1).toVar();
10511
10511
  return ze(n.sub(o).lessThanEqual(0).and(n.sub(a).greaterThanEqual(0)), () => {
10512
10512
  let c = n.sub(a).div(o.sub(a)).toVar();
10513
10513
  c.addAssign(l);
@@ -10908,7 +10908,7 @@ const o8 = L(([t = Ft()]) => {
10908
10908
  let r = t.x, s = t.y, i = t.z, n = e.element(0).mul(0.886227);
10909
10909
  return n = n.add(e.element(1).mul(2 * 0.511664).mul(s)), n = n.add(e.element(2).mul(2 * 0.511664).mul(i)), n = n.add(e.element(3).mul(2 * 0.511664).mul(r)), n = n.add(e.element(4).mul(2 * 0.429043).mul(r).mul(s)), n = n.add(e.element(5).mul(2 * 0.429043).mul(s).mul(i)), n = n.add(e.element(6).mul(i.mul(i).mul(0.743125).sub(0.247708))), n = n.add(e.element(7).mul(2 * 0.429043).mul(r).mul(i)), n = n.add(e.element(8).mul(0.429043).mul(Le(r, r).sub(Le(s, s)))), n;
10910
10910
  });
10911
- var y = Object.freeze({ __proto__: null, BRDF_GGX: ab, BRDF_Lambert: Ml, BasicPointShadowFilter: HE, BasicShadowFilter: OE, Break: AR, Const: tC, Continue: bO, DFGApprox: mv, D_GGX: jR, Discard: xC, EPSILON: NA, F_Schlick: Uh, Fn: L, INFINITY: e4, If: ze, Loop: it, NodeAccess: ts, NodeShaderStage: kc, NodeType: _V, NodeUpdateType: Ve, PCFShadowFilter: kE, PCFSoftShadowFilter: UE, PI: Gf, PI2: t4, PointShadowFilter: qE, Return: y4, Schlick_to_F0: HR, ScriptableNodeResources: yf, ShaderNode: Uu, Stack: Ng, Switch: jV, TBNViewMatrix: hl, VSMShadowFilter: DE, V_GGX_SmithCorrelated: GR, Var: eC, abs: wt, acesFilmicToneMapping: RE, acos: V1, add: ir, addMethodChaining: $, addNodeElement: v4, agxToneMapping: EE, all: AA, alphaT: Uf, and: hA, anisotropy: ro, anisotropyB: fl, anisotropyT: Kc, any: CA, append: XV, array: sA, arrayBuffer: HV, asin: FA, assign: iA, atan: O1, atan2: ZA, atomicAdd: L6, atomicAnd: V6, atomicFunc: Un, atomicLoad: P6, atomicMax: z6, atomicMin: B6, atomicOr: O6, atomicStore: F6, atomicSub: I6, atomicXor: k6, attenuationColor: E1, attenuationDistance: R1, attribute: Ma, attributeArray: SD, backgroundBlurriness: fE, backgroundIntensity: db, backgroundRotation: gE, batch: _R, billboarding: iD, bitAnd: mA, bitNot: fA, bitOr: gA, bitXor: yA, bitangentGeometry: Z4, bitangentLocal: J4, bitangentView: OC, bitangentWorld: Q4, bitcast: r4, blendBurn: vE, blendColor: zD, blendDodge: TE, blendOverlay: SE, blendScreen: wE, blur: KR, bool: En, buffer: Ud, bufferAttribute: kd, bumpMap: $C, burn: OD, bvec2: q2, bvec3: M1, bvec4: J2, bypass: mC, cache: td, call: nA, cameraFar: ao, cameraIndex: Vg, cameraNear: no, cameraNormalMatrix: F4, cameraPosition: _C, cameraProjectionMatrix: Ll, cameraProjectionMatrixInverse: E4, cameraViewMatrix: Ls, cameraWorldMatrix: P4, cbrt: HA, cdl: HD, ceil: Fg, checker: o8, cineonToneMapping: CE, clamp: Pn, clearcoat: kf, clearcoatRoughness: vd, code: qg, color: W2, colorSpaceToWorking: Bg, colorToDirection: qO, compute: dC, computeSkinning: yO, cond: JA, context: zg, convert: K2, convertColorSpace: l4, convertToTexture: xD, cos: ta, cross: Ig, cubeTexture: kh, cubeTextureBase: tv, cubeToUV: Hi, dFdx: k1, dFdy: U1, dashSize: uf, debug: vC, decrement: SA, decrementBefore: TA, defaultBuildStages: q0, defaultShaderStages: k2, defined: gd, degrees: EA, deltaTime: cE, densityFog: m6, densityFogFactor: Tv, depth: hv, depthPass: JD, difference: $A, diffuseColor: Qe, directPointLight: YE, directionToColor: zR, dispersion: P1, distance: DA, div: Si, dodge: kD, dot: Po, drawIndex: TR, dynamicBufferAttribute: cC, element: Q2, emissive: J0, equal: L1, equals: kA, equirectUV: cv, exp: z1, exp2: Oh, expression: _a, faceDirection: Gd, faceForward: H1, faceforward: s4, float: _, floor: wn, fog: _d, fract: Fa, frameGroup: rA, frameId: XU, frontFacing: CC, fwidth: VA, gain: DU, gapSize: Q0, getConstNodeType: j2, getCurrentStack: _1, getDirection: JR, getDistanceAttenuation: Rv, getGeometryRoughness: $R, getNormalFromDepth: vD, getParallaxCorrectNormal: T9, getRoughness: pv, getScreenPosition: bD, getShIrradianceAt: a3, getShadowMaterial: $E, getShadowRenderObjectFunction: GE, getTextureIndex: uE, getViewPosition: Iu, globalId: v6, glsl: a6, glslFn: o6, grayscale: $D, greaterThan: I1, greaterThanEqual: uA, hash: UU, highpModelNormalViewMatrix: rb, highpModelViewMatrix: tb, hue: WD, increment: wA, incrementBefore: vA, instance: hO, instanceIndex: xo, instancedArray: _D, instancedBufferAttribute: jf, instancedDynamicBufferAttribute: eb, instancedMesh: SR, int: R, inverseSqrt: B1, inversesqrt: i4, invocationLocalIndex: uO, invocationSubgroupIndex: lO, ior: ed, iridescence: Rg, iridescenceIOR: N1, iridescenceThickness: A1, ivec2: Nr, ivec3: X2, ivec4: Y2, js: i6, label: KA, length: Sn, lengthSq: G1, lessThan: oA, lessThanEqual: lA, lightPosition: _v, lightProjectionUV: BE, lightShadowMatrix: Sv, lightTargetDirection: Nv, lightTargetPosition: VE, lightViewPosition: Mv, lightingContext: RR, lights: $6, linearDepth: Hf, linearToneMapping: NE, localId: T6, log: Pg, log2: Tn, logarithmicDepthToViewZ: LO, loop: vO, luminance: bv, mat2: Ag, mat3: as, mat4: ml, matcapUV: rE, materialAO: bR, materialAlphaTest: GC, materialAnisotropy: iR, materialAnisotropyVector: Lu, materialAttenuationColor: dR, materialAttenuationDistance: cR, materialClearcoat: QC, materialClearcoatNormal: eR, materialClearcoatRoughness: KC, materialColor: jC, materialDispersion: xR, materialEmissive: HC, materialEnvIntensity: df, materialEnvRotation: ev, materialIOR: hR, materialIridescence: nR, materialIridescenceIOR: aR, materialIridescenceThickness: oR, materialLightMap: iv, materialLineDashOffset: gR, materialLineDashSize: mR, materialLineGapSize: fR, materialLineScale: pR, materialLineWidth: aO, materialMetalness: ZC, materialNormal: JC, materialOpacity: sv, materialPointSize: yR, materialReference: aa, materialReflectivity: pf, materialRefractionRatio: PC, materialRotation: tR, materialRoughness: YC, materialSheen: rR, materialSheenRoughness: sR, materialShininess: WC, materialSpecular: qC, materialSpecularColor: XC, materialSpecularIntensity: nb, materialSpecularStrength: rd, materialThickness: uR, materialTransmission: lR, max: Gt, maxMipLevel: wC, mediumpModelViewMatrix: AC, metalness: bd, min: Es, mix: st, mixElement: XA, mod: Od, modInt: MA, modelDirection: O4, modelNormalMatrix: NC, modelPosition: k4, modelRadius: $4, modelScale: U4, modelViewMatrix: Il, modelViewPosition: D4, modelViewProjection: nv, modelWorldMatrix: yi, modelWorldMatrixInverse: G4, morphReference: CR, mrt: hE, mul: Le, mx_aastep: s3, mx_cell_noise_float: g9, mx_contrast: u9, mx_fractal_noise_float: y9, mx_fractal_noise_vec2: x9, mx_fractal_noise_vec3: b9, mx_fractal_noise_vec4: v9, mx_hsvtorgb: e9, mx_noise_float: h9, mx_noise_vec3: c9, mx_noise_vec4: d9, mx_ramplr: s9, mx_ramptb: i9, mx_rgbtohsv: t9, mx_safepower: l9, mx_splitlr: n9, mx_splittb: a9, mx_srgb_texture_to_lin_rec709: r9, mx_transform_uv: o9, mx_worley_noise_float: p9, mx_worley_noise_vec2: m9, mx_worley_noise_vec3: f9, namespace: pC, negate: LA, neutralToneMapping: PE, nodeArray: pl, nodeImmutable: se, nodeObject: H, nodeObjects: Bd, nodeProxy: X, normalFlat: RC, normalGeometry: Og, normalLocal: Ps, normalMap: ib, normalView: an, normalWorld: jd, normalize: Sa, not: dA, notEqual: aA, numWorkgroups: x6, objectDirection: L4, objectGroup: F1, objectPosition: MC, objectRadius: V4, objectScale: z4, objectViewPosition: B4, objectWorldMatrix: I4, oneMinus: IA, or: cA, orthographicDepthToViewZ: FO, oscSawtooth: tD, oscSine: QU, oscSquare: KU, oscTriangle: eD, output: Ku, outputStruct: OU, overlay: DD, overloadingFn: Hr, parabola: cb, parallaxDirection: UC, parallaxUV: eO, parameter: FU, pass: YD, passTexture: ZD, pcurve: $U, perspectiveDepthToViewZ: lv, pmremTexture: yv, pointShadow: XE, pointUV: ND, pointWidth: ZV, positionGeometry: $d, positionLocal: qt, positionPrevious: Wf, positionView: er, positionViewDirection: Ct, positionWorld: fa, positionWorldDirection: Q1, posterize: XD, pow: en, pow2: $1, pow3: GA, pow4: jA, premult: BD, property: Jh, radians: RA, rand: qA, range: g6, rangeFog: p6, rangeFogFactor: vv, reciprocal: BA, reference: xt, referenceBuffer: sb, reflect: UA, reflectVector: IC, reflectView: FC, reflector: pD, refract: W1, refractVector: zC, refractView: LC, reinhardToneMapping: AE, remainder: _A, remap: gC, remapClamp: yC, renderGroup: Se, renderOutput: bC, rendererReference: lC, rotate: Wg, rotateUV: rD, roughness: yn, round: zA, rtt: mE, sRGBTransferEOTF: iC, sRGBTransferOETF: nC, sampler: M4, samplerComparison: N4, saturate: j1, saturation: GD, screen: UD, screenCoordinate: Xd, screenSize: Sd, screenUV: sn, scriptable: d6, scriptableValue: gf, select: Fr, setCurrentStack: yd, shaderStages: X0, shadow: WE, shadowPositionWorld: Cv, shapeCircle: l8, sharedUniformGroup: Eg, sheen: ul, sheenRoughness: Cg, shiftLeft: xA, shiftRight: bA, shininess: Df, sign: wd, sin: qs, sinc: GU, skinning: NR, smoothstep: Fn, smoothstepElement: YA, specularColor: _s, specularF90: Td, spherizeUV: sD, split: qV, spritesheetUV: oD, sqrt: kn, stack: ff, step: Lg, storage: gl, storageBarrier: M6, storageObject: gO, storageTexture: yE, string: WV, struct: VU, sub: Xe, subgroupIndex: oO, subgroupSize: w6, tan: PA, tangentGeometry: Dg, tangentLocal: Wd, tangentView: Hd, tangentWorld: VC, temp: rC, texture: De, texture3D: xE, textureBarrier: N6, textureBicubic: YR, textureCubeUV: QR, textureLoad: jt, textureSize: yo, textureStore: CD, thickness: C1, time: zl, timerDelta: JU, timerGlobal: ZU, timerLocal: YU, toneMapping: uC, toneMappingExposure: hC, toonOutlinePass: KD, transformDirection: WA, transformNormal: EC, transformNormalToView: K1, transformedBentNormalView: DC, transformedBitangentView: kC, transformedBitangentWorld: K4, transformedClearcoatNormalView: Du, transformedNormalView: Ht, transformedNormalWorld: kg, transformedTangentView: rv, transformedTangentWorld: Y4, transmission: $f, transpose: OA, triNoise3D: WU, triplanarTexture: uD, triplanarTextures: dE, trunc: D1, tslFn: YV, uint: he, uniform: ve, uniformArray: fi, uniformCubeTexture: H4, uniformGroup: tA, uniformTexture: _4, uniforms: C4, unpremult: VD, userData: FD, uv: Ft, uvec2: H2, uvec3: Zh, uvec4: Z2, varying: ti, varyingProperty: xd, vec2: J, vec3: F, vec4: be, vectorComponents: Pl, velocity: ID, vertexColor: IR, vertexIndex: vR, vertexStage: sC, vibrance: jD, viewZToLogarithmicDepth: uv, viewZToOrthographicDepth: th, viewZToPerspectiveDepth: FR, viewport: eh, viewportBottomLeft: RO, viewportCoordinate: PR, viewportDepthTexture: ov, viewportLinearDepth: IO, viewportMipTexture: av, viewportResolution: AO, viewportSafeUV: nD, viewportSharedTexture: HO, viewportSize: ER, viewportTexture: EO, viewportTopLeft: CO, viewportUV: NO, wgsl: n6, wgslFn: l6, workgroupArray: R6, workgroupBarrier: _6, workgroupId: b6, workingToColorSpace: aC, xor: pA });
10911
+ var y = Object.freeze({ __proto__: null, BRDF_GGX: ab, BRDF_Lambert: Ml, BasicPointShadowFilter: HE, BasicShadowFilter: OE, Break: AR, Const: tC, Continue: bO, DFGApprox: mv, D_GGX: jR, Discard: xC, EPSILON: NA, F_Schlick: Uh, Fn: L, INFINITY: e4, If: ze, Loop: it, NodeAccess: ts, NodeShaderStage: kc, NodeType: _V, NodeUpdateType: Ve, PCFShadowFilter: kE, PCFSoftShadowFilter: UE, PI: Gf, PI2: t4, PointShadowFilter: qE, Return: y4, Schlick_to_F0: HR, ScriptableNodeResources: yf, ShaderNode: Uu, Stack: Ng, Switch: jV, TBNViewMatrix: hl, VSMShadowFilter: DE, V_GGX_SmithCorrelated: GR, Var: eC, abs: wt, acesFilmicToneMapping: RE, acos: V1, add: ir, addMethodChaining: $, addNodeElement: v4, agxToneMapping: EE, all: AA, alphaT: Uf, and: hA, anisotropy: ro, anisotropyB: fl, anisotropyT: Kc, any: CA, append: XV, array: sA, arrayBuffer: HV, asin: FA, assign: iA, atan: O1, atan2: ZA, atomicAdd: L6, atomicAnd: V6, atomicFunc: Un, atomicLoad: P6, atomicMax: z6, atomicMin: B6, atomicOr: O6, atomicStore: F6, atomicSub: I6, atomicXor: k6, attenuationColor: E1, attenuationDistance: R1, attribute: Ma, attributeArray: SD, backgroundBlurriness: fE, backgroundIntensity: db, backgroundRotation: gE, batch: _R, billboarding: iD, bitAnd: mA, bitNot: fA, bitOr: gA, bitXor: yA, bitangentGeometry: Z4, bitangentLocal: J4, bitangentView: OC, bitangentWorld: Q4, bitcast: r4, blendBurn: vE, blendColor: zD, blendDodge: TE, blendOverlay: SE, blendScreen: wE, blur: KR, bool: En, buffer: Ud, bufferAttribute: kd, bumpMap: $C, burn: OD, bvec2: q2, bvec3: M1, bvec4: J2, bypass: mC, cache: td, call: nA, cameraFar: ao, cameraIndex: Vg, cameraNear: no, cameraNormalMatrix: F4, cameraPosition: _C, cameraProjectionMatrix: Ll, cameraProjectionMatrixInverse: E4, cameraViewMatrix: Ls, cameraWorldMatrix: P4, cbrt: HA, cdl: HD, ceil: Fg, checker: o8, cineonToneMapping: CE, clamp: Pn, clearcoat: kf, clearcoatRoughness: vd, code: qg, color: W2, colorSpaceToWorking: Bg, colorToDirection: qO, compute: dC, computeSkinning: yO, cond: JA, context: zg, convert: K2, convertColorSpace: l4, convertToTexture: xD, cos: ta, cross: Ig, cubeTexture: kh, cubeTextureBase: tv, cubeToUV: Hi, dFdx: k1, dFdy: U1, dashSize: uf, debug: vC, decrement: SA, decrementBefore: TA, defaultBuildStages: q0, defaultShaderStages: k2, defined: gd, degrees: EA, deltaTime: cE, densityFog: m6, densityFogFactor: Tv, depth: hv, depthPass: JD, difference: $A, diffuseColor: Qe, directPointLight: YE, directionToColor: zR, dispersion: P1, distance: DA, div: Si, dodge: kD, dot: Po, drawIndex: TR, dynamicBufferAttribute: cC, element: Q2, emissive: J0, equal: L1, equals: kA, equirectUV: cv, exp: z1, exp2: Oh, expression: _a, faceDirection: Gd, faceForward: H1, faceforward: s4, float: _, floor: wn, fog: _d, fract: Fa, frameGroup: rA, frameId: XU, frontFacing: CC, fwidth: VA, gain: DU, gapSize: Q0, getConstNodeType: j2, getCurrentStack: _1, getDirection: JR, getDistanceAttenuation: Rv, getGeometryRoughness: $R, getNormalFromDepth: vD, getParallaxCorrectNormal: T9, getRoughness: pv, getScreenPosition: bD, getShIrradianceAt: a3, getShadowMaterial: $E, getShadowRenderObjectFunction: GE, getTextureIndex: uE, getViewPosition: Iu, globalId: v6, glsl: a6, glslFn: o6, grayscale: $D, greaterThan: I1, greaterThanEqual: uA, hash: UU, highpModelNormalViewMatrix: rb, highpModelViewMatrix: tb, hue: WD, increment: wA, incrementBefore: vA, instance: hO, instanceIndex: xo, instancedArray: _D, instancedBufferAttribute: jf, instancedDynamicBufferAttribute: eb, instancedMesh: SR, int: R, inverseSqrt: B1, inversesqrt: i4, invocationLocalIndex: uO, invocationSubgroupIndex: lO, ior: ed, iridescence: Rg, iridescenceIOR: N1, iridescenceThickness: A1, ivec2: Nr, ivec3: X2, ivec4: Y2, js: i6, label: KA, length: Sn, lengthSq: G1, lessThan: oA, lessThanEqual: lA, lightPosition: _v, lightProjectionUV: BE, lightShadowMatrix: Sv, lightTargetDirection: Nv, lightTargetPosition: VE, lightViewPosition: Mv, lightingContext: RR, lights: $6, linearDepth: Hf, linearToneMapping: NE, localId: T6, log: Pg, log2: Tn, logarithmicDepthToViewZ: LO, loop: vO, luminance: bv, mat2: Ag, mat3: as, mat4: ml, matcapUV: rE, materialAO: bR, materialAlphaTest: GC, materialAnisotropy: iR, materialAnisotropyVector: Lu, materialAttenuationColor: dR, materialAttenuationDistance: cR, materialClearcoat: QC, materialClearcoatNormal: eR, materialClearcoatRoughness: KC, materialColor: jC, materialDispersion: xR, materialEmissive: HC, materialEnvIntensity: df, materialEnvRotation: ev, materialIOR: hR, materialIridescence: nR, materialIridescenceIOR: aR, materialIridescenceThickness: oR, materialLightMap: iv, materialLineDashOffset: gR, materialLineDashSize: mR, materialLineGapSize: fR, materialLineScale: pR, materialLineWidth: aO, materialMetalness: ZC, materialNormal: JC, materialOpacity: sv, materialPointSize: yR, materialReference: aa, materialReflectivity: pf, materialRefractionRatio: PC, materialRotation: tR, materialRoughness: YC, materialSheen: rR, materialSheenRoughness: sR, materialShininess: WC, materialSpecular: qC, materialSpecularColor: XC, materialSpecularIntensity: nb, materialSpecularStrength: rd, materialThickness: uR, materialTransmission: lR, max: Gt, maxMipLevel: wC, mediumpModelViewMatrix: AC, metalness: bd, min: Es, mix: st, mixElement: XA, mod: Od, modInt: MA, modelDirection: O4, modelNormalMatrix: NC, modelPosition: k4, modelRadius: $4, modelScale: U4, modelViewMatrix: Il, modelViewPosition: D4, modelViewProjection: nv, modelWorldMatrix: yi, modelWorldMatrixInverse: G4, morphReference: CR, mrt: hE, mul: Le, mx_aastep: s3, mx_cell_noise_float: g9, mx_contrast: u9, mx_fractal_noise_float: y9, mx_fractal_noise_vec2: x9, mx_fractal_noise_vec3: b9, mx_fractal_noise_vec4: v9, mx_hsvtorgb: e9, mx_noise_float: h9, mx_noise_vec3: c9, mx_noise_vec4: d9, mx_ramplr: s9, mx_ramptb: i9, mx_rgbtohsv: t9, mx_safepower: l9, mx_splitlr: n9, mx_splittb: a9, mx_srgb_texture_to_lin_rec709: r9, mx_transform_uv: o9, mx_worley_noise_float: p9, mx_worley_noise_vec2: m9, mx_worley_noise_vec3: f9, namespace: pC, negate: LA, neutralToneMapping: PE, nodeArray: pl, nodeImmutable: se, nodeObject: H, nodeObjects: Bd, nodeProxy: X, normalFlat: RC, normalGeometry: Og, normalLocal: Ps, normalMap: ib, normalView: an, normalWorld: jd, normalize: Sa, not: dA, notEqual: aA, numWorkgroups: x6, objectDirection: L4, objectGroup: F1, objectPosition: MC, objectRadius: V4, objectScale: z4, objectViewPosition: B4, objectWorldMatrix: I4, oneMinus: IA, or: cA, orthographicDepthToViewZ: FO, oscSawtooth: tD, oscSine: QU, oscSquare: KU, oscTriangle: eD, output: Ku, outputStruct: OU, overlay: DD, overloadingFn: Hr, parabola: cb, parallaxDirection: UC, parallaxUV: eO, parameter: FU, pass: YD, passTexture: ZD, pcurve: $U, perspectiveDepthToViewZ: lv, pmremTexture: yv, pointShadow: XE, pointUV: ND, pointWidth: ZV, positionGeometry: $d, positionLocal: qt, positionPrevious: Wf, positionView: er, positionViewDirection: Ct, positionWorld: fa, positionWorldDirection: Q1, posterize: XD, pow: en, pow2: $1, pow3: GA, pow4: jA, premult: BD, property: Jh, radians: RA, rand: qA, range: g6, rangeFog: p6, rangeFogFactor: vv, reciprocal: BA, reference: bt, referenceBuffer: sb, reflect: UA, reflectVector: IC, reflectView: FC, reflector: pD, refract: W1, refractVector: zC, refractView: LC, reinhardToneMapping: AE, remainder: _A, remap: gC, remapClamp: yC, renderGroup: Se, renderOutput: bC, rendererReference: lC, rotate: Wg, rotateUV: rD, roughness: yn, round: zA, rtt: mE, sRGBTransferEOTF: iC, sRGBTransferOETF: nC, sampler: M4, samplerComparison: N4, saturate: j1, saturation: GD, screen: UD, screenCoordinate: Xd, screenSize: Sd, screenUV: sn, scriptable: d6, scriptableValue: gf, select: Fr, setCurrentStack: yd, shaderStages: X0, shadow: WE, shadowPositionWorld: Cv, shapeCircle: l8, sharedUniformGroup: Eg, sheen: ul, sheenRoughness: Cg, shiftLeft: xA, shiftRight: bA, shininess: Df, sign: wd, sin: qs, sinc: GU, skinning: NR, smoothstep: Fn, smoothstepElement: YA, specularColor: _s, specularF90: Td, spherizeUV: sD, split: qV, spritesheetUV: oD, sqrt: kn, stack: ff, step: Lg, storage: gl, storageBarrier: M6, storageObject: gO, storageTexture: yE, string: WV, struct: VU, sub: Xe, subgroupIndex: oO, subgroupSize: w6, tan: PA, tangentGeometry: Dg, tangentLocal: Wd, tangentView: Hd, tangentWorld: VC, temp: rC, texture: De, texture3D: xE, textureBarrier: N6, textureBicubic: YR, textureCubeUV: QR, textureLoad: jt, textureSize: yo, textureStore: CD, thickness: C1, time: zl, timerDelta: JU, timerGlobal: ZU, timerLocal: YU, toneMapping: uC, toneMappingExposure: hC, toonOutlinePass: KD, transformDirection: WA, transformNormal: EC, transformNormalToView: K1, transformedBentNormalView: DC, transformedBitangentView: kC, transformedBitangentWorld: K4, transformedClearcoatNormalView: Du, transformedNormalView: Ht, transformedNormalWorld: kg, transformedTangentView: rv, transformedTangentWorld: Y4, transmission: $f, transpose: OA, triNoise3D: WU, triplanarTexture: uD, triplanarTextures: dE, trunc: D1, tslFn: YV, uint: he, uniform: ve, uniformArray: fi, uniformCubeTexture: H4, uniformGroup: tA, uniformTexture: _4, uniforms: C4, unpremult: VD, userData: FD, uv: Ft, uvec2: H2, uvec3: Zh, uvec4: Z2, varying: ti, varyingProperty: xd, vec2: J, vec3: F, vec4: be, vectorComponents: Pl, velocity: ID, vertexColor: IR, vertexIndex: vR, vertexStage: sC, vibrance: jD, viewZToLogarithmicDepth: uv, viewZToOrthographicDepth: th, viewZToPerspectiveDepth: FR, viewport: eh, viewportBottomLeft: RO, viewportCoordinate: PR, viewportDepthTexture: ov, viewportLinearDepth: IO, viewportMipTexture: av, viewportResolution: AO, viewportSafeUV: nD, viewportSharedTexture: HO, viewportSize: ER, viewportTexture: EO, viewportTopLeft: CO, viewportUV: NO, wgsl: n6, wgslFn: l6, workgroupArray: R6, workgroupBarrier: _6, workgroupId: b6, workingToColorSpace: aC, xor: pA });
10912
10912
  const Ui = new xv();
10913
10913
  var w9 = class extends Fo {
10914
10914
  constructor(t, e) {
@@ -12005,10 +12005,10 @@ var a$ = class extends Fo {
12005
12005
  if (e.fog !== r) {
12006
12006
  let s = this.getCacheNode("fog", r, () => {
12007
12007
  if (r.isFogExp2) {
12008
- let i = xt("color", "color", r).setGroup(Se), n = xt("density", "float", r).setGroup(Se);
12008
+ let i = bt("color", "color", r).setGroup(Se), n = bt("density", "float", r).setGroup(Se);
12009
12009
  return _d(i, Tv(n));
12010
12010
  } else if (r.isFog) {
12011
- let i = xt("color", "color", r).setGroup(Se), n = xt("near", "float", r).setGroup(Se), a = xt("far", "float", r).setGroup(Se);
12011
+ let i = bt("color", "color", r).setGroup(Se), n = bt("near", "float", r).setGroup(Se), a = bt("far", "float", r).setGroup(Se);
12012
12012
  return _d(i, vv(n, a));
12013
12013
  } else console.error("THREE.Renderer: Unsupported fog configuration.", r);
12014
12014
  });
@@ -13884,7 +13884,7 @@ var I$ = class {
13884
13884
  this.backend = t, this.gl = this.backend.gl, this.extensions = t.extensions;
13885
13885
  }
13886
13886
  convert(t, e = Ta) {
13887
- let { gl: r, extensions: s } = this, i, n = yt.getTransfer(e);
13887
+ let { gl: r, extensions: s } = this, i, n = xt.getTransfer(e);
13888
13888
  if (t === ys) return r.UNSIGNED_BYTE;
13889
13889
  if (t === Lz) return r.UNSIGNED_SHORT_4_4_4_4;
13890
13890
  if (t === Iz) return r.UNSIGNED_SHORT_5_5_5_1;
@@ -13995,17 +13995,17 @@ var B$ = class {
13995
13995
  }
13996
13996
  let o = e;
13997
13997
  if (e === n.RED && (r === n.FLOAT && (o = n.R32F), r === n.HALF_FLOAT && (o = n.R16F), r === n.UNSIGNED_BYTE && (o = n.R8), r === n.UNSIGNED_SHORT && (o = n.R16), r === n.UNSIGNED_INT && (o = n.R32UI), r === n.BYTE && (o = n.R8I), r === n.SHORT && (o = n.R16I), r === n.INT && (o = n.R32I)), e === n.RED_INTEGER && (r === n.UNSIGNED_BYTE && (o = n.R8UI), r === n.UNSIGNED_SHORT && (o = n.R16UI), r === n.UNSIGNED_INT && (o = n.R32UI), r === n.BYTE && (o = n.R8I), r === n.SHORT && (o = n.R16I), r === n.INT && (o = n.R32I)), e === n.RG && (r === n.FLOAT && (o = n.RG32F), r === n.HALF_FLOAT && (o = n.RG16F), r === n.UNSIGNED_BYTE && (o = n.RG8), r === n.UNSIGNED_SHORT && (o = n.RG16), r === n.UNSIGNED_INT && (o = n.RG32UI), r === n.BYTE && (o = n.RG8I), r === n.SHORT && (o = n.RG16I), r === n.INT && (o = n.RG32I)), e === n.RG_INTEGER && (r === n.UNSIGNED_BYTE && (o = n.RG8UI), r === n.UNSIGNED_SHORT && (o = n.RG16UI), r === n.UNSIGNED_INT && (o = n.RG32UI), r === n.BYTE && (o = n.RG8I), r === n.SHORT && (o = n.RG16I), r === n.INT && (o = n.RG32I)), e === n.RGB) {
13998
- let l = i ? If : yt.getTransfer(s);
13998
+ let l = i ? If : xt.getTransfer(s);
13999
13999
  r === n.FLOAT && (o = n.RGB32F), r === n.HALF_FLOAT && (o = n.RGB16F), r === n.UNSIGNED_BYTE && (o = n.RGB8), r === n.UNSIGNED_SHORT && (o = n.RGB16), r === n.UNSIGNED_INT && (o = n.RGB32UI), r === n.BYTE && (o = n.RGB8I), r === n.SHORT && (o = n.RGB16I), r === n.INT && (o = n.RGB32I), r === n.UNSIGNED_BYTE && (o = l === Fe ? n.SRGB8 : n.RGB8), r === n.UNSIGNED_SHORT_5_6_5 && (o = n.RGB565), r === n.UNSIGNED_SHORT_5_5_5_1 && (o = n.RGB5_A1), r === n.UNSIGNED_SHORT_4_4_4_4 && (o = n.RGB4), r === n.UNSIGNED_INT_5_9_9_9_REV && (o = n.RGB9_E5);
14000
14000
  }
14001
14001
  if (e === n.RGB_INTEGER && (r === n.UNSIGNED_BYTE && (o = n.RGB8UI), r === n.UNSIGNED_SHORT && (o = n.RGB16UI), r === n.UNSIGNED_INT && (o = n.RGB32UI), r === n.BYTE && (o = n.RGB8I), r === n.SHORT && (o = n.RGB16I), r === n.INT && (o = n.RGB32I)), e === n.RGBA) {
14002
- let l = i ? If : yt.getTransfer(s);
14002
+ let l = i ? If : xt.getTransfer(s);
14003
14003
  r === n.FLOAT && (o = n.RGBA32F), r === n.HALF_FLOAT && (o = n.RGBA16F), r === n.UNSIGNED_BYTE && (o = n.RGBA8), r === n.UNSIGNED_SHORT && (o = n.RGBA16), r === n.UNSIGNED_INT && (o = n.RGBA32UI), r === n.BYTE && (o = n.RGBA8I), r === n.SHORT && (o = n.RGBA16I), r === n.INT && (o = n.RGBA32I), r === n.UNSIGNED_BYTE && (o = l === Fe ? n.SRGB8_ALPHA8 : n.RGBA8), r === n.UNSIGNED_SHORT_4_4_4_4 && (o = n.RGBA4), r === n.UNSIGNED_SHORT_5_5_5_1 && (o = n.RGB5_A1);
14004
14004
  }
14005
14005
  return e === n.RGBA_INTEGER && (r === n.UNSIGNED_BYTE && (o = n.RGBA8UI), r === n.UNSIGNED_SHORT && (o = n.RGBA16UI), r === n.UNSIGNED_INT && (o = n.RGBA32UI), r === n.BYTE && (o = n.RGBA8I), r === n.SHORT && (o = n.RGBA16I), r === n.INT && (o = n.RGBA32I)), e === n.DEPTH_COMPONENT && (r === n.UNSIGNED_SHORT && (o = n.DEPTH_COMPONENT16), r === n.UNSIGNED_INT && (o = n.DEPTH_COMPONENT24), r === n.FLOAT && (o = n.DEPTH_COMPONENT32F)), e === n.DEPTH_STENCIL && r === n.UNSIGNED_INT_24_8 && (o = n.DEPTH24_STENCIL8), (o === n.R16F || o === n.R32F || o === n.RG16F || o === n.RG32F || o === n.RGBA16F || o === n.RGBA32F) && a.get("EXT_color_buffer_float"), o;
14006
14006
  }
14007
14007
  setTextureParameters(t, e) {
14008
- let { gl: r, extensions: s, backend: i } = this, n = yt.getPrimaries(yt.workingColorSpace), a = e.colorSpace === Ta ? null : yt.getPrimaries(e.colorSpace), o = e.colorSpace === Ta || n === a ? r.NONE : r.BROWSER_DEFAULT_WEBGL;
14008
+ let { gl: r, extensions: s, backend: i } = this, n = xt.getPrimaries(xt.workingColorSpace), a = e.colorSpace === Ta ? null : xt.getPrimaries(e.colorSpace), o = e.colorSpace === Ta || n === a ? r.NONE : r.BROWSER_DEFAULT_WEBGL;
14009
14009
  r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, e.flipY), r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e.premultiplyAlpha), r.pixelStorei(r.UNPACK_ALIGNMENT, e.unpackAlignment), r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL, o), r.texParameteri(t, r.TEXTURE_WRAP_S, cm[e.wrapS]), r.texParameteri(t, r.TEXTURE_WRAP_T, cm[e.wrapT]), (t === r.TEXTURE_3D || t === r.TEXTURE_2D_ARRAY) && (e.isArrayTexture || r.texParameteri(t, r.TEXTURE_WRAP_R, cm[e.wrapR])), r.texParameteri(t, r.TEXTURE_MAG_FILTER, wx[e.magFilter]);
14010
14010
  let l = e.mipmaps !== void 0 && e.mipmaps.length > 0, h = e.minFilter === ri && l ? ca : e.minFilter;
14011
14011
  if (r.texParameteri(t, r.TEXTURE_MIN_FILTER, wx[h]), e.compareFunction && (r.texParameteri(t, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(t, r.TEXTURE_COMPARE_FUNC, GS[e.compareFunction])), s.has("EXT_texture_filter_anisotropic") === !0) {
@@ -15230,7 +15230,7 @@ var Z$ = class {
15230
15230
  }
15231
15231
  };
15232
15232
  function fb(t, e = null) {
15233
- let r = t.format, s = t.type, i = t.colorSpace, n = yt.getTransfer(i), a;
15233
+ let r = t.format, s = t.type, i = t.colorSpace, n = xt.getTransfer(i), a;
15234
15234
  if (t.isCompressedTexture === !0 || t.isCompressedArrayTexture === !0) switch (r) {
15235
15235
  case sf:
15236
15236
  a = n === Fe ? P.BC1RGBAUnormSRGB : P.BC1RGBAUnorm;
@@ -17164,7 +17164,7 @@ function xQ() {
17164
17164
  if (o.nodes.get(o.rootId)) {
17165
17165
  U = !0;
17166
17166
  try {
17167
- let de = gt(o.rootId);
17167
+ let de = yt(o.rootId);
17168
17168
  de && a && (a.fragmentNode = de, a.needsUpdate = !0);
17169
17169
  } catch (de) {
17170
17170
  console.error("Error composing shader tree:", de);
@@ -17188,7 +17188,7 @@ function xQ() {
17188
17188
  if (Ee.has(hr)) return console.error("Uh oh, looks like you've got a circular dependency in your shader masks."), oe;
17189
17189
  let Bo = new Set(Ee);
17190
17190
  Bo.add(xe);
17191
- let hs = gt(hr, Bo), $l = de.metadata.mask.type || "alpha";
17191
+ let hs = yt(hr, Bo), $l = de.metadata.mask.type || "alpha";
17192
17192
  return gQ(oe, hs, $l);
17193
17193
  }, qe = (oe) => {
17194
17194
  let de = o.nodes.get(oe);
@@ -17196,7 +17196,7 @@ function xQ() {
17196
17196
  let xe = de.metadata.id;
17197
17197
  for (let Ee of o.nodes.values()) if (Ee.metadata.mask?.source === xe) return !0;
17198
17198
  return !1;
17199
- }, gt = (oe, de = /* @__PURE__ */ new Set()) => {
17199
+ }, yt = (oe, de = /* @__PURE__ */ new Set()) => {
17200
17200
  let xe = o.nodes.get(oe);
17201
17201
  if (!xe) return Gr(0, 0, 0, 0);
17202
17202
  let Ee = (hs) => {
@@ -17215,7 +17215,7 @@ function xQ() {
17215
17215
  let Bi;
17216
17216
  for (let Sr of hs) {
17217
17217
  if ((Sr.metadata.opacity ?? (qe(Sr.id) ? 0 : 1)) === 0 && !qe(Sr.id)) continue;
17218
- let Cp = gt(Sr.id, de), jn;
17218
+ let Cp = yt(Sr.id, de), jn;
17219
17219
  jn = Sr.metadata.opacity === void 0 ? qe(Sr.id) ? 0 : 1 : Sr.metadata.opacity, Bi = Bi === void 0 ? jn === 1 ? uu(Gr(1, 1, 1, 0), Cp, "normal", 1) : uu(Gr(1, 1, 1, 0), Cp, Sr.metadata.blendMode, jn) : uu(Bi, Cp, Sr.metadata.blendMode, jn);
17220
17220
  }
17221
17221
  let nc = xe.fragmentNodeFunc({ uniforms: xe.uniforms ?? {}, childNode: Bi, onCleanup: Ee, onBeforeRender: Tt, onAfterRender: hr, canvas: e });
@@ -17223,7 +17223,7 @@ function xQ() {
17223
17223
  } else {
17224
17224
  let Bi;
17225
17225
  for (let Sr of hs) {
17226
- let Ap = gt(Sr.id, de);
17226
+ let Ap = yt(Sr.id, de);
17227
17227
  if ((Sr.metadata.opacity ?? (qe(Sr.id) ? 0 : 1)) === 0 && !qe(Sr.id)) continue;
17228
17228
  let jn;
17229
17229
  jn = Sr.metadata.opacity === void 0 ? qe(Sr.id) ? 0 : 1 : Sr.metadata.opacity, Bi = Bi === void 0 ? jn === 1 ? uu(Gr(1, 1, 1, 0), Ap, "normal", 1) : uu(Gr(1, 1, 1, 0), Ap, Sr.metadata.blendMode, jn) : uu(Bi, Ap, Sr.metadata.blendMode, jn);
@@ -17341,7 +17341,7 @@ function xQ() {
17341
17341
  if (e = oe, i = new Tg(), i.background = null, s = new wg(-1, 1, 1, -1, 0.1, 10), s.position.z = 1, s.lookAt(0, 0, 0), Q || (window.addEventListener("mousemove", us), window.addEventListener("touchmove", zi), window.addEventListener("mouseup", Sp), window.addEventListener("touchend", _p), oe.addEventListener("mousedown", Mp), oe.addEventListener("touchstart", Np), Q = !0, console.log(`[${t}] Added event listeners`)), de.signal.aborted) return;
17342
17342
  try {
17343
17343
  if (r = new r_({ canvas: oe, antialias: !0, alpha: !0, depth: !1, powerPreference: "high-performance" }), await r.init(), de.signal.aborted) {
17344
- r.dispose();
17344
+ r && typeof r.dispose == "function" && r.dispose();
17345
17345
  return;
17346
17346
  }
17347
17347
  } catch (hr) {
@@ -17350,7 +17350,7 @@ function xQ() {
17350
17350
  return;
17351
17351
  }
17352
17352
  if (de.signal.aborted) {
17353
- r && r.dispose();
17353
+ r && typeof r.dispose == "function" && r.dispose();
17354
17354
  return;
17355
17355
  }
17356
17356
  r.setPixelRatio(Math.min(window.devicePixelRatio, 2)), r.outputColorSpace = Ms, a = new UR({ transparent: !0 }), a.fragmentNode = Gr(0, 0, 0, 0);
@@ -17364,7 +17364,7 @@ function xQ() {
17364
17364
  d = !1, m === de && (m = null);
17365
17365
  }
17366
17366
  }, cleanup: () => {
17367
- if (console.log(`[${t}] Cleanup called`), m && m.abort(), h && (h.disconnect(), h = null), u && (u.disconnect(), u = null), Q && (console.log(`[${t}] Removing event listeners`), e && (e.removeEventListener("mousedown", Mp), e.removeEventListener("touchstart", Np)), window && (window.removeEventListener("mousemove", us), window.removeEventListener("touchmove", zi), window.removeEventListener("mouseup", Sp), window.removeEventListener("touchend", _p)), Q = !1), Ii(), o.nodes.clear(), o.rootId = null, o.idToNodeId.clear(), Z = [], te = !1, ee = [], ae = !1, n && (i && i.remove(n), n.geometry && n.geometry.dispose(), n.material instanceof ws && n.material.dispose()), r) try {
17367
+ if (console.log(`[${t}] Cleanup called`), m && m.abort(), h && (h.disconnect(), h = null), u && (u.disconnect(), u = null), Q && (console.log(`[${t}] Removing event listeners`), e && (e.removeEventListener("mousedown", Mp), e.removeEventListener("touchstart", Np)), window && (window.removeEventListener("mousemove", us), window.removeEventListener("touchmove", zi), window.removeEventListener("mouseup", Sp), window.removeEventListener("touchend", _p)), Q = !1), Ii(), o.nodes.clear(), o.rootId = null, o.idToNodeId.clear(), Z = [], te = !1, ee = [], ae = !1, n && (i && i.remove(n), n.geometry && typeof n.geometry.dispose == "function" && n.geometry.dispose(), n.material instanceof ws && typeof n.material.dispose == "function" && n.material.dispose()), r && typeof r.dispose == "function") try {
17368
17368
  r.dispose();
17369
17369
  } catch (oe) {
17370
17370
  console.warn("Error disposing renderer:", oe);
@@ -22006,7 +22006,7 @@ class eK {
22006
22006
  return new this.constructor().copy(this);
22007
22007
  }
22008
22008
  }
22009
- class bt {
22009
+ class vt {
22010
22010
  /**
22011
22011
  * Constructs a new 4x4 matrix. The arguments are supposed to be
22012
22012
  * in row-major order. If no arguments are provided, the constructor
@@ -22030,7 +22030,7 @@ class bt {
22030
22030
  * @param {number} [n44] - 4-4 matrix element.
22031
22031
  */
22032
22032
  constructor(e, r, s, i, n, a, o, l, h, u, c, d, p, m, f, g) {
22033
- bt.prototype.isMatrix4 = !0, this.elements = [
22033
+ vt.prototype.isMatrix4 = !0, this.elements = [
22034
22034
  1,
22035
22035
  0,
22036
22036
  0,
@@ -22106,7 +22106,7 @@ class bt {
22106
22106
  * @return {Matrix4} A clone of this instance.
22107
22107
  */
22108
22108
  clone() {
22109
- return new bt().fromArray(this.elements);
22109
+ return new vt().fromArray(this.elements);
22110
22110
  }
22111
22111
  /**
22112
22112
  * Copies the values of the given matrix to this instance.
@@ -22710,7 +22710,7 @@ class bt {
22710
22710
  return e[r] = s[0], e[r + 1] = s[1], e[r + 2] = s[2], e[r + 3] = s[3], e[r + 4] = s[4], e[r + 5] = s[5], e[r + 6] = s[6], e[r + 7] = s[7], e[r + 8] = s[8], e[r + 9] = s[9], e[r + 10] = s[10], e[r + 11] = s[11], e[r + 12] = s[12], e[r + 13] = s[13], e[r + 14] = s[14], e[r + 15] = s[15], e;
22711
22711
  }
22712
22712
  }
22713
- const fu = /* @__PURE__ */ new D(), $i = /* @__PURE__ */ new bt(), tK = /* @__PURE__ */ new D(0, 0, 0), rK = /* @__PURE__ */ new D(1, 1, 1), qa = /* @__PURE__ */ new D(), bm = /* @__PURE__ */ new D(), ks = /* @__PURE__ */ new D(), S_ = /* @__PURE__ */ new bt(), __ = /* @__PURE__ */ new Qd();
22713
+ const fu = /* @__PURE__ */ new D(), $i = /* @__PURE__ */ new vt(), tK = /* @__PURE__ */ new D(0, 0, 0), rK = /* @__PURE__ */ new D(1, 1, 1), qa = /* @__PURE__ */ new D(), bm = /* @__PURE__ */ new D(), ks = /* @__PURE__ */ new D(), S_ = /* @__PURE__ */ new vt(), __ = /* @__PURE__ */ new Qd();
22714
22714
  class Ol {
22715
22715
  /**
22716
22716
  * Constructs a new euler instance.
@@ -22982,7 +22982,7 @@ class sK {
22982
22982
  }
22983
22983
  }
22984
22984
  let iK = 0;
22985
- const M_ = /* @__PURE__ */ new D(), gu = /* @__PURE__ */ new Qd(), Qn = /* @__PURE__ */ new bt(), vm = /* @__PURE__ */ new D(), Cc = /* @__PURE__ */ new D(), nK = /* @__PURE__ */ new D(), aK = /* @__PURE__ */ new Qd(), N_ = /* @__PURE__ */ new D(1, 0, 0), A_ = /* @__PURE__ */ new D(0, 1, 0), C_ = /* @__PURE__ */ new D(0, 0, 1), R_ = { type: "added" }, oK = { type: "removed" }, yu = { type: "childadded", child: null }, Bx = { type: "childremoved", child: null };
22985
+ const M_ = /* @__PURE__ */ new D(), gu = /* @__PURE__ */ new Qd(), Qn = /* @__PURE__ */ new vt(), vm = /* @__PURE__ */ new D(), Cc = /* @__PURE__ */ new D(), nK = /* @__PURE__ */ new D(), aK = /* @__PURE__ */ new Qd(), N_ = /* @__PURE__ */ new D(1, 0, 0), A_ = /* @__PURE__ */ new D(0, 1, 0), C_ = /* @__PURE__ */ new D(0, 0, 1), R_ = { type: "added" }, oK = { type: "removed" }, yu = { type: "childadded", child: null }, Bx = { type: "childremoved", child: null };
22986
22986
  class nn extends Vl {
22987
22987
  /**
22988
22988
  * Constructs a new 3D object.
@@ -23051,7 +23051,7 @@ class nn extends Vl {
23051
23051
  * @type {Matrix4}
23052
23052
  */
23053
23053
  modelViewMatrix: {
23054
- value: new bt()
23054
+ value: new vt()
23055
23055
  },
23056
23056
  /**
23057
23057
  * Represents the object's normal matrix.
@@ -23062,7 +23062,7 @@ class nn extends Vl {
23062
23062
  normalMatrix: {
23063
23063
  value: new Ei()
23064
23064
  }
23065
- }), this.matrix = new bt(), this.matrixWorld = new bt(), this.matrixAutoUpdate = nn.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = nn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new sK(), 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 = {};
23065
+ }), this.matrix = new vt(), this.matrixWorld = new vt(), this.matrixAutoUpdate = nn.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = nn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new sK(), 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 = {};
23066
23066
  }
23067
23067
  /**
23068
23068
  * A callback that is executed immediately before a 3D object is rendered to a shadow map.
@@ -25095,7 +25095,7 @@ class sh extends Ti {
25095
25095
  }
25096
25096
  }
25097
25097
  let dK = 0;
25098
- const oi = /* @__PURE__ */ new bt(), Wx = /* @__PURE__ */ new nn(), vu = /* @__PURE__ */ new D(), Us = /* @__PURE__ */ new ep(), Rc = /* @__PURE__ */ new ep(), Br = /* @__PURE__ */ new D();
25098
+ const oi = /* @__PURE__ */ new vt(), Wx = /* @__PURE__ */ new nn(), vu = /* @__PURE__ */ new D(), Us = /* @__PURE__ */ new ep(), Rc = /* @__PURE__ */ new ep(), Br = /* @__PURE__ */ new D();
25099
25099
  class ec extends Vl {
25100
25100
  /**
25101
25101
  * Constructs a new geometry.
@@ -25625,7 +25625,7 @@ class ec extends Vl {
25625
25625
  this.dispatchEvent({ type: "dispose" });
25626
25626
  }
25627
25627
  }
25628
- const P_ = /* @__PURE__ */ new bt(), Xo = /* @__PURE__ */ new eK(), Sm = /* @__PURE__ */ new Gv(), F_ = /* @__PURE__ */ new D(), _m = /* @__PURE__ */ new D(), Mm = /* @__PURE__ */ new D(), Nm = /* @__PURE__ */ new D(), Hx = /* @__PURE__ */ new D(), Am = /* @__PURE__ */ new D(), L_ = /* @__PURE__ */ new D(), Cm = /* @__PURE__ */ new D();
25628
+ const P_ = /* @__PURE__ */ new vt(), Xo = /* @__PURE__ */ new eK(), Sm = /* @__PURE__ */ new Gv(), F_ = /* @__PURE__ */ new D(), _m = /* @__PURE__ */ new D(), Mm = /* @__PURE__ */ new D(), Nm = /* @__PURE__ */ new D(), Hx = /* @__PURE__ */ new D(), Am = /* @__PURE__ */ new D(), L_ = /* @__PURE__ */ new D(), Cm = /* @__PURE__ */ new D();
25629
25629
  class tg extends nn {
25630
25630
  /**
25631
25631
  * Constructs a new mesh.
@@ -25791,8 +25791,8 @@ class jv extends ec {
25791
25791
  }
25792
25792
  for (let ue = 0; ue < A; ue++)
25793
25793
  for (let we = 0; we < M; we++) {
25794
- const je = d + we + ne * ue, qe = d + we + ne * (ue + 1), gt = d + (we + 1) + ne * (ue + 1), ct = d + (we + 1) + ne * ue;
25795
- l.push(je, qe, ct), l.push(qe, gt, ct), Te += 6;
25794
+ const je = d + we + ne * ue, qe = d + we + ne * (ue + 1), yt = d + (we + 1) + ne * (ue + 1), ct = d + (we + 1) + ne * ue;
25795
+ l.push(je, qe, ct), l.push(qe, yt, ct), Te += 6;
25796
25796
  }
25797
25797
  o.addGroup(p, Te, U), p += Te, d += fe;
25798
25798
  }
@@ -25816,7 +25816,7 @@ class F3 extends nn {
25816
25816
  * Constructs a new camera.
25817
25817
  */
25818
25818
  constructor() {
25819
- super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new bt(), this.projectionMatrix = new bt(), this.projectionMatrixInverse = new bt(), this.coordinateSystem = oa;
25819
+ super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new vt(), this.projectionMatrix = new vt(), this.projectionMatrixInverse = new vt(), this.coordinateSystem = oa;
25820
25820
  }
25821
25821
  copy(e, r) {
25822
25822
  return super.copy(e, r), this.matrixWorldInverse.copy(e.matrixWorldInverse), this.projectionMatrix.copy(e.projectionMatrix), this.projectionMatrixInverse.copy(e.projectionMatrixInverse), this.coordinateSystem = e.coordinateSystem, this;
@@ -27173,7 +27173,7 @@ const nh = { name: "ASCII", props: { characters: { default: "@%#*+=-:.", descrip
27173
27173
  }), r(() => {
27174
27174
  w.dispose();
27175
27175
  });
27176
- let U = t.cellSize.uniform, Q = n(m, f).div(U), Z = c.mul(Q), te = l(Z), ee = h(Z), ae = te.add(n(0.5)).div(Q), ne = g.sample(ae), ye = u(ne.rgb, a(0.299, 0.587, 0.114)), fe = v.charCount, Te = ye.mul(0.8).add(0.1), me = Te.mul(fe), ue = l(me.min(fe - 1e-4)), we = v.atlasSize, je = ue.mod(we), qe = l(ue.div(we)), gt = 1 / we, ct = n(ee.x, ee.y.sub(1).mul(-1)), It = n(je, qe).mul(gt).add(ct.mul(gt)), ni = T.sample(It);
27176
+ let U = t.cellSize.uniform, Q = n(m, f).div(U), Z = c.mul(Q), te = l(Z), ee = h(Z), ae = te.add(n(0.5)).div(Q), ne = g.sample(ae), ye = u(ne.rgb, a(0.299, 0.587, 0.114)), fe = v.charCount, Te = ye.mul(0.8).add(0.1), me = Te.mul(fe), ue = l(me.min(fe - 1e-4)), we = v.atlasSize, je = ue.mod(we), qe = l(ue.div(we)), yt = 1 / we, ct = n(ee.x, ee.y.sub(1).mul(-1)), It = n(je, qe).mul(yt).add(ct.mul(yt)), ni = T.sample(It);
27177
27177
  return o(ni.rgb.mul(ne.rgb), ne.a);
27178
27178
  } };
27179
27179
  /**
@@ -27496,7 +27496,7 @@ function fo(t) {
27496
27496
  }
27497
27497
  function U3(t, ...e) {
27498
27498
  const r = t ? t.slice(-4) : void 0;
27499
- return e.length === 1 && (r === "vec2" ? e = [e[0], e[0]] : r === "vec3" ? e = [e[0], e[0], e[0]] : r === "vec4" && (e = [e[0], e[0], e[0], e[0]])), t === "color" ? new La(...e) : r === "vec2" ? new $t(...e) : r === "vec3" ? new D(...e) : r === "vec4" ? new os(...e) : r === "mat2" ? new Xv(...e) : r === "mat3" ? new Ei(...e) : r === "mat4" ? new bt(...e) : t === "bool" ? e[0] || !1 : t === "float" || t === "int" || t === "uint" ? e[0] || 0 : t === "string" ? e[0] || "" : t === "ArrayBuffer" ? G3(e[0]) : null;
27499
+ return e.length === 1 && (r === "vec2" ? e = [e[0], e[0]] : r === "vec3" ? e = [e[0], e[0], e[0]] : r === "vec4" && (e = [e[0], e[0], e[0], e[0]])), t === "color" ? new La(...e) : r === "vec2" ? new $t(...e) : r === "vec3" ? new D(...e) : r === "vec4" ? new os(...e) : r === "mat2" ? new Xv(...e) : r === "mat3" ? new Ei(...e) : r === "mat4" ? new vt(...e) : t === "bool" ? e[0] || !1 : t === "float" || t === "int" || t === "uint" ? e[0] || 0 : t === "string" ? e[0] || "" : t === "ArrayBuffer" ? G3(e[0]) : null;
27500
27500
  }
27501
27501
  function D3(t) {
27502
27502
  let e = V_.get(t);
@@ -30777,7 +30777,7 @@ class Ci extends We {
30777
30777
  this.object3d = e.object, super.update(e);
30778
30778
  }
30779
30779
  }
30780
- const gte = /* @__PURE__ */ ie(Ci, Ci.DIRECTION), la = /* @__PURE__ */ ie(Ci, Ci.WORLD_MATRIX), yte = /* @__PURE__ */ ie(Ci, Ci.POSITION), xte = /* @__PURE__ */ ie(Ci, Ci.SCALE), bte = /* @__PURE__ */ ie(Ci, Ci.VIEW_POSITION), vte = /* @__PURE__ */ ie(Ci, Ci.RADIUS), kP = /* @__PURE__ */ Ce(new Ei()).onObjectUpdate(({ object: t }, e) => e.value.getNormalMatrix(t.matrixWorld)), Tte = /* @__PURE__ */ Ce(new bt()).onObjectUpdate(({ object: t }, e) => e.value.copy(t.matrixWorld).invert()), lp = /* @__PURE__ */ B((t) => t.renderer.overrideNodes.modelViewMatrix || UP).once()().toVar("modelViewMatrix"), UP = /* @__PURE__ */ Fi.mul(la), wte = /* @__PURE__ */ B((t) => (t.context.isHighPrecisionModelViewMatrix = !0, Ce("mat4").onObjectUpdate(({ object: e, camera: r }) => e.modelViewMatrix.multiplyMatrices(r.matrixWorldInverse, e.matrixWorld)))).once()().toVar("highpModelViewMatrix"), Ste = /* @__PURE__ */ B((t) => {
30780
+ const gte = /* @__PURE__ */ ie(Ci, Ci.DIRECTION), la = /* @__PURE__ */ ie(Ci, Ci.WORLD_MATRIX), yte = /* @__PURE__ */ ie(Ci, Ci.POSITION), xte = /* @__PURE__ */ ie(Ci, Ci.SCALE), bte = /* @__PURE__ */ ie(Ci, Ci.VIEW_POSITION), vte = /* @__PURE__ */ ie(Ci, Ci.RADIUS), kP = /* @__PURE__ */ Ce(new Ei()).onObjectUpdate(({ object: t }, e) => e.value.getNormalMatrix(t.matrixWorld)), Tte = /* @__PURE__ */ Ce(new vt()).onObjectUpdate(({ object: t }, e) => e.value.copy(t.matrixWorld).invert()), lp = /* @__PURE__ */ B((t) => t.renderer.overrideNodes.modelViewMatrix || UP).once()().toVar("modelViewMatrix"), UP = /* @__PURE__ */ Fi.mul(la), wte = /* @__PURE__ */ B((t) => (t.context.isHighPrecisionModelViewMatrix = !0, Ce("mat4").onObjectUpdate(({ object: e, camera: r }) => e.modelViewMatrix.multiplyMatrices(r.matrixWorldInverse, e.matrixWorld)))).once()().toVar("highpModelViewMatrix"), Ste = /* @__PURE__ */ B((t) => {
30781
30781
  const e = t.context.isHighPrecisionModelViewMatrix;
30782
30782
  return Ce("mat3").onObjectUpdate(({ object: r, camera: s }) => (e !== !0 && r.modelViewMatrix.multiplyMatrices(s.matrixWorldInverse, r.matrixWorld), r.normalMatrix.getNormalMatrix(r.modelViewMatrix)));
30783
30783
  }).once()().toVar("highpModelNormalViewMatrix"), yT = /* @__PURE__ */ Mo("position", "vec3"), tr = /* @__PURE__ */ yT.toVarying("positionLocal"), og = /* @__PURE__ */ yT.toVarying("positionPrevious"), vl = /* @__PURE__ */ B((t) => la.mul(tr).xyz.toVarying(t.getNamespace("v_positionWorld")), "vec3").once("POSITION")(), DP = /* @__PURE__ */ B((t) => tr.transformDirection(la).toVarying(t.getNamespace("v_positionWorldDirection")).normalize().toVar("positionWorldDirection"), "vec3").once("POSITION")(), Dr = /* @__PURE__ */ B((t) => t.context.setupPositionView().toVarying(t.getNamespace("v_positionView")), "vec3").once("POSITION")(), Js = /* @__PURE__ */ Dr.negate().toVarying("v_positionViewDirection").normalize().toVar("positionViewDirection");
@@ -30817,9 +30817,9 @@ const $P = /* @__PURE__ */ ie(_te), up = /* @__PURE__ */ C($P).mul(2).sub(1), xT
30817
30817
  return r.transformDirection(t);
30818
30818
  const s = kP.mul(t);
30819
30819
  return Fi.transformDirection(s);
30820
- }), j_ = /* @__PURE__ */ new Ol(), Yx = /* @__PURE__ */ new bt(), qP = /* @__PURE__ */ Ce(0).onReference(({ material: t }) => t).onObjectUpdate(({ material: t }) => t.refractionRatio), Nte = /* @__PURE__ */ Ce(1).onReference(({ material: t }) => t).onObjectUpdate(function({ material: t, scene: e }) {
30820
+ }), j_ = /* @__PURE__ */ new Ol(), Yx = /* @__PURE__ */ new vt(), qP = /* @__PURE__ */ Ce(0).onReference(({ material: t }) => t).onObjectUpdate(({ material: t }) => t.refractionRatio), Nte = /* @__PURE__ */ Ce(1).onReference(({ material: t }) => t).onObjectUpdate(function({ material: t, scene: e }) {
30821
30821
  return t.envMap ? t.envMapIntensity : e.environmentIntensity;
30822
- }), vT = /* @__PURE__ */ Ce(new bt()).onReference(function(t) {
30822
+ }), vT = /* @__PURE__ */ Ce(new vt()).onReference(function(t) {
30823
30823
  return t.material;
30824
30824
  }).onObjectUpdate(function({ material: t, scene: e }) {
30825
30825
  const r = e.environment !== null && t.envMap === null ? e.environmentRotation : t.envMapRotation;
@@ -31878,7 +31878,7 @@ class Ere extends Me {
31878
31878
  return e.addFlowTab(), a;
31879
31879
  }
31880
31880
  }
31881
- const ft = (...t) => q(new Ere(xl(t, "int"))).toStack(), Pre = () => Aa("continue").toStack(), bF = () => Aa("break").toStack(), Fre = (...t) => (console.warn("THREE.TSL: loop() has been renamed to Loop()."), ft(...t)), Zx = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new os(), q_ = /* @__PURE__ */ B(({ bufferMap: t, influence: e, stride: r, width: s, depth: i, offset: n }) => {
31881
+ const gt = (...t) => q(new Ere(xl(t, "int"))).toStack(), Pre = () => Aa("continue").toStack(), bF = () => Aa("break").toStack(), Fre = (...t) => (console.warn("THREE.TSL: loop() has been renamed to Loop()."), gt(...t)), Zx = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new os(), q_ = /* @__PURE__ */ B(({ bufferMap: t, influence: e, stride: r, width: s, depth: i, offset: n }) => {
31882
31882
  const a = E(dF).mul(r).add(n), o = a.div(s), l = a.sub(o.mul(s));
31883
31883
  return Wt(t, Cr(l, o)).depth(i).xyz.mul(e);
31884
31884
  });
@@ -31936,7 +31936,7 @@ class Ire extends Me {
31936
31936
  const { geometry: r } = e, s = r.morphAttributes.position !== void 0, i = r.hasAttribute("normal") && r.morphAttributes.normal !== void 0, n = r.morphAttributes.position || r.morphAttributes.normal || r.morphAttributes.color, a = n !== void 0 ? n.length : 0, { texture: o, stride: l, size: h } = Lre(r);
31937
31937
  s === !0 && tr.mulAssign(this.morphBaseInfluence), i === !0 && Fs.mulAssign(this.morphBaseInfluence);
31938
31938
  const u = E(h.width);
31939
- ft(a, ({ i: c }) => {
31939
+ gt(a, ({ i: c }) => {
31940
31940
  const d = C(0).toVar();
31941
31941
  this.mesh.count > 1 && this.mesh.morphTexture !== null && this.mesh.morphTexture !== void 0 ? d.assign(Wt(this.mesh.morphTexture, Cr(E(c).add(1), E(To))).r) : d.assign(Dt("morphTargetInfluences", "float").element(c).toVar()), ke(d.notEqual(0), () => {
31942
31942
  s === !0 && tr.addAssign(q_({
@@ -32251,7 +32251,7 @@ class wi extends Me {
32251
32251
  const s = C().toVar("distanceToPlane"), i = C().toVar("distanceToGradient"), n = C(1).toVar("clipOpacity"), a = r.length;
32252
32252
  if (this.hardwareClipping === !1 && a > 0) {
32253
32253
  const l = Qi(r);
32254
- ft(a, ({ i: h }) => {
32254
+ gt(a, ({ i: h }) => {
32255
32255
  const u = l.element(h);
32256
32256
  s.assign(Dr.dot(u.xyz).negate().add(u.w)), i.assign(s.fwidth().div(2)), n.mulAssign(Cl(i.negate(), i, s));
32257
32257
  });
@@ -32259,7 +32259,7 @@ class wi extends Me {
32259
32259
  const o = e.length;
32260
32260
  if (o > 0) {
32261
32261
  const l = Qi(e), h = C(1).toVar("intersectionClipOpacity");
32262
- ft(o, ({ i: u }) => {
32262
+ gt(o, ({ i: u }) => {
32263
32263
  const c = l.element(u);
32264
32264
  s.assign(Dr.dot(c.xyz).negate().add(c.w)), i.assign(s.fwidth().div(2)), h.mulAssign(Cl(i.negate(), i, s).oneMinus());
32265
32265
  }), n.mulAssign(h.oneMinus());
@@ -32279,7 +32279,7 @@ class wi extends Me {
32279
32279
  const s = r.length;
32280
32280
  if (this.hardwareClipping === !1 && s > 0) {
32281
32281
  const n = Qi(r);
32282
- ft(s, ({ i: a }) => {
32282
+ gt(s, ({ i: a }) => {
32283
32283
  const o = n.element(a);
32284
32284
  Dr.dot(o.xyz).greaterThan(o.w).discard();
32285
32285
  });
@@ -32287,7 +32287,7 @@ class wi extends Me {
32287
32287
  const i = e.length;
32288
32288
  if (i > 0) {
32289
32289
  const n = Qi(e), a = In(!0).toVar("clipped");
32290
- ft(i, ({ i: o }) => {
32290
+ gt(i, ({ i: o }) => {
32291
32291
  const l = n.element(o);
32292
32292
  a.assign(Dr.dot(l.xyz).greaterThan(l.w).and(a));
32293
32293
  }), a.discard();
@@ -32305,7 +32305,7 @@ class wi extends Me {
32305
32305
  const s = e.length;
32306
32306
  return r.enableHardwareClipping(s), B(() => {
32307
32307
  const i = Qi(e), n = ny(r.getClipDistance());
32308
- ft(s, ({ i: a }) => {
32308
+ gt(s, ({ i: a }) => {
32309
32309
  const o = i.element(a), l = Dr.dot(o.xyz).sub(o.w).negate();
32310
32310
  n.element(a).assign(l);
32311
32311
  });
@@ -32962,7 +32962,7 @@ const tM = /* @__PURE__ */ C(1), Bb = /* @__PURE__ */ C(-2), Em = /* @__PURE__ *
32962
32962
  d.assign(V(s.z, 0, s.x.negate()));
32963
32963
  }), d.assign(Ul(d));
32964
32964
  const p = V().toVar();
32965
- return p.addAssign(i.element(0).mul(r0({ theta: 0, axis: d, outputDirection: s, mipInt: o, envMap: l, CUBEUV_TEXEL_WIDTH: h, CUBEUV_TEXEL_HEIGHT: u, CUBEUV_MAX_MIP: c }))), ft({ start: E(1), end: t }, ({ i: m }) => {
32965
+ return p.addAssign(i.element(0).mul(r0({ theta: 0, axis: d, outputDirection: s, mipInt: o, envMap: l, CUBEUV_TEXEL_WIDTH: h, CUBEUV_TEXEL_HEIGHT: u, CUBEUV_MAX_MIP: c }))), gt({ start: E(1), end: t }, ({ i: m }) => {
32966
32966
  ke(m.greaterThanEqual(n), () => {
32967
32967
  bF();
32968
32968
  });
@@ -33904,7 +33904,7 @@ const $F = /* @__PURE__ */ Y(Wse), Hse = /* @__PURE__ */ B(([t]) => {
33904
33904
  ]
33905
33905
  }), Jse = /* @__PURE__ */ B(([t, e, r]) => {
33906
33906
  const s = V(t).toVar(), i = C(1.4).toVar(), n = C(0).toVar(), a = V(s).toVar();
33907
- return ft({ start: C(0), end: C(3), type: "float", condition: "<=" }, () => {
33907
+ return gt({ start: C(0), end: C(3), type: "float", condition: "<=" }, () => {
33908
33908
  const o = V(Zse(a.mul(2))).toVar();
33909
33909
  s.addAssign(o.add(r.mul(C(0.1).mul(e)))), a.mulAssign(1.8), i.mulAssign(1.5), s.mulAssign(1.2);
33910
33910
  const l = C(ia(s.z.add(ia(s.x.add(ia(s.y)))))).toVar();
@@ -34023,7 +34023,7 @@ class mie extends Me {
34023
34023
  return nr(m, f, g);
34024
34024
  }
34025
34025
  }
34026
- const jF = /* @__PURE__ */ Y(mie).setParameterLength(1, 6), fie = (...t) => jF(...t), wu = new xK(), Yo = new D(), Su = new D(), l0 = new D(), Lc = new bt(), Im = new D(0, 0, -1), gn = new os(), Ic = new D(), zm = new D(), zc = new os(), Bm = new $t(), hg = new Kd(), gie = zo.flipX();
34026
+ const jF = /* @__PURE__ */ Y(mie).setParameterLength(1, 6), fie = (...t) => jF(...t), wu = new xK(), Yo = new D(), Su = new D(), l0 = new D(), Lc = new vt(), Im = new D(0, 0, -1), gn = new os(), Ic = new D(), zm = new D(), zc = new os(), Bm = new $t(), hg = new Kd(), gie = zo.flipX();
34027
34027
  hg.depthTexture = new tp(1, 1);
34028
34028
  let Vm = !1;
34029
34029
  class FT extends Ca {
@@ -34357,7 +34357,7 @@ class Eie extends Me {
34357
34357
  return "vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y )";
34358
34358
  }
34359
34359
  }
34360
- const Pie = /* @__PURE__ */ ie(Eie), Bc = /* @__PURE__ */ new Ol(), h0 = /* @__PURE__ */ new bt();
34360
+ const Pie = /* @__PURE__ */ ie(Eie), Bc = /* @__PURE__ */ new Ol(), h0 = /* @__PURE__ */ new vt();
34361
34361
  class Rs extends Me {
34362
34362
  static get type() {
34363
34363
  return "SceneNode";
@@ -34607,7 +34607,7 @@ class $ie extends or {
34607
34607
  * Constructs a new vertex color node.
34608
34608
  */
34609
34609
  constructor() {
34610
- super("vec2"), this.projectionMatrix = null, this.updateType = ht.OBJECT, this.updateAfterType = ht.OBJECT, this.previousModelWorldMatrix = Ce(new bt()), this.previousProjectionMatrix = Ce(new bt()).setGroup($e), this.previousCameraViewMatrix = Ce(new bt());
34610
+ super("vec2"), this.projectionMatrix = null, this.updateType = ht.OBJECT, this.updateAfterType = ht.OBJECT, this.previousModelWorldMatrix = Ce(new vt()), this.previousProjectionMatrix = Ce(new vt()).setGroup($e), this.previousCameraViewMatrix = Ce(new vt());
34611
34611
  }
34612
34612
  /**
34613
34613
  * Sets the given projection matrix.
@@ -34626,7 +34626,7 @@ class $ie extends or {
34626
34626
  const i = dM(s);
34627
34627
  this.previousModelWorldMatrix.value.copy(i);
34628
34628
  const n = XF(r);
34629
- n.frameId !== e && (n.frameId = e, n.previousProjectionMatrix === void 0 ? (n.previousProjectionMatrix = new bt(), n.previousCameraViewMatrix = new bt(), n.currentProjectionMatrix = new bt(), n.currentCameraViewMatrix = new bt(), n.previousProjectionMatrix.copy(this.projectionMatrix || r.projectionMatrix), n.previousCameraViewMatrix.copy(r.matrixWorldInverse)) : (n.previousProjectionMatrix.copy(n.currentProjectionMatrix), n.previousCameraViewMatrix.copy(n.currentCameraViewMatrix)), n.currentProjectionMatrix.copy(this.projectionMatrix || r.projectionMatrix), n.currentCameraViewMatrix.copy(r.matrixWorldInverse), this.previousProjectionMatrix.value.copy(n.previousProjectionMatrix), this.previousCameraViewMatrix.value.copy(n.previousCameraViewMatrix));
34629
+ n.frameId !== e && (n.frameId = e, n.previousProjectionMatrix === void 0 ? (n.previousProjectionMatrix = new vt(), n.previousCameraViewMatrix = new vt(), n.currentProjectionMatrix = new vt(), n.currentCameraViewMatrix = new vt(), n.previousProjectionMatrix.copy(this.projectionMatrix || r.projectionMatrix), n.previousCameraViewMatrix.copy(r.matrixWorldInverse)) : (n.previousProjectionMatrix.copy(n.currentProjectionMatrix), n.previousCameraViewMatrix.copy(n.currentCameraViewMatrix)), n.currentProjectionMatrix.copy(this.projectionMatrix || r.projectionMatrix), n.currentCameraViewMatrix.copy(r.matrixWorldInverse), this.previousProjectionMatrix.value.copy(n.previousProjectionMatrix), this.previousCameraViewMatrix.value.copy(n.previousCameraViewMatrix));
34630
34630
  }
34631
34631
  /**
34632
34632
  * Overwritten to updated velocity specific uniforms.
@@ -34654,7 +34654,7 @@ function XF(t) {
34654
34654
  function dM(t, e = 0) {
34655
34655
  const r = XF(t);
34656
34656
  let s = r[e];
34657
- return s === void 0 && (r[e] = s = new bt(), r[e].copy(t.matrixWorld)), s;
34657
+ return s === void 0 && (r[e] = s = new vt(), r[e].copy(t.matrixWorld)), s;
34658
34658
  }
34659
34659
  const Gie = /* @__PURE__ */ ie($ie), YF = /* @__PURE__ */ B(([t, e]) => Ai(1, t.oneMinus().div(e)).oneMinus()).setLayout({
34660
34660
  name: "blendBurn",
@@ -36236,7 +36236,7 @@ const mM = /* @__PURE__ */ new WeakMap(), oL = /* @__PURE__ */ B(({ depthTexture
36236
36236
  }, i.shadowType = r, i.useVelocity = s, fM.set(_u, i)), _u[0] = null, _u[1] = null, i;
36237
36237
  }, vae = /* @__PURE__ */ B(({ samples: t, radius: e, size: r, shadowPass: s, depthLayer: i }) => {
36238
36238
  const n = C(0).toVar("meanVertical"), a = C(0).toVar("squareMeanVertical"), o = t.lessThanEqual(C(1)).select(C(0), C(2).div(t.sub(1))), l = t.lessThanEqual(C(1)).select(C(0), C(-1));
36239
- ft({ start: E(0), end: E(t), type: "int", condition: "<" }, ({ i: u }) => {
36239
+ gt({ start: E(0), end: E(t), type: "int", condition: "<" }, ({ i: u }) => {
36240
36240
  const c = l.add(C(u).mul(o));
36241
36241
  let d = s.sample(nr(pp.xy, re(0, c).mul(e)).div(r));
36242
36242
  s.value.isArrayTexture && (d = d.depth(i)), d = d.x, n.addAssign(d), a.addAssign(d.mul(d));
@@ -36245,7 +36245,7 @@ const mM = /* @__PURE__ */ new WeakMap(), oL = /* @__PURE__ */ B(({ depthTexture
36245
36245
  return re(n, h);
36246
36246
  }), Tae = /* @__PURE__ */ B(({ samples: t, radius: e, size: r, shadowPass: s, depthLayer: i }) => {
36247
36247
  const n = C(0).toVar("meanHorizontal"), a = C(0).toVar("squareMeanHorizontal"), o = t.lessThanEqual(C(1)).select(C(0), C(2).div(t.sub(1))), l = t.lessThanEqual(C(1)).select(C(0), C(-1));
36248
- ft({ start: E(0), end: E(t), type: "int", condition: "<" }, ({ i: u }) => {
36248
+ gt({ start: E(0), end: E(t), type: "int", condition: "<" }, ({ i: u }) => {
36249
36249
  const c = l.add(C(u).mul(o));
36250
36250
  let d = s.sample(nr(pp.xy, re(c, 0).mul(e)).div(r));
36251
36251
  s.value.isArrayTexture && (d = d.depth(i)), n.addAssign(d.x), a.addAssign(nr(d.y.mul(d.y), d.x.mul(d.x)));
@@ -36955,7 +36955,7 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
36955
36955
  ]
36956
36956
  }), wL = /* @__PURE__ */ qr([noe, aoe, ooe, loe]), dg = /* @__PURE__ */ B(([t, e, r, s]) => {
36957
36957
  const i = C(s).toVar(), n = C(r).toVar(), a = E(e).toVar(), o = V(t).toVar(), l = C(0).toVar(), h = C(1).toVar();
36958
- return ft(a, () => {
36958
+ return gt(a, () => {
36959
36959
  l.addAssign(h.mul(OT(o))), h.mulAssign(i), o.mulAssign(n);
36960
36960
  }), l;
36961
36961
  }).setLayout({
@@ -36969,7 +36969,7 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
36969
36969
  ]
36970
36970
  }), SL = /* @__PURE__ */ B(([t, e, r, s]) => {
36971
36971
  const i = C(s).toVar(), n = C(r).toVar(), a = E(e).toVar(), o = V(t).toVar(), l = V(0).toVar(), h = C(1).toVar();
36972
- return ft(a, () => {
36972
+ return gt(a, () => {
36973
36973
  l.addAssign(h.mul(kT(o))), h.mulAssign(i), o.mulAssign(n);
36974
36974
  }), l;
36975
36975
  }).setLayout({
@@ -37043,8 +37043,8 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
37043
37043
  ]
37044
37044
  }), ic = /* @__PURE__ */ qr([coe, doe]), poe = /* @__PURE__ */ B(([t, e, r]) => {
37045
37045
  const s = E(r).toVar(), i = C(e).toVar(), n = re(t).toVar(), a = E().toVar(), o = E().toVar(), l = re(Pt(n.x, a), Pt(n.y, o)).toVar(), h = C(1e6).toVar();
37046
- return ft({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: u }) => {
37047
- ft({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: c }) => {
37046
+ return gt({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: u }) => {
37047
+ gt({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: c }) => {
37048
37048
  const d = C(ic(l, u, c, a, o, i, s)).toVar();
37049
37049
  h.assign(Ai(h, d));
37050
37050
  });
@@ -37061,8 +37061,8 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
37061
37061
  ]
37062
37062
  }), moe = /* @__PURE__ */ B(([t, e, r]) => {
37063
37063
  const s = E(r).toVar(), i = C(e).toVar(), n = re(t).toVar(), a = E().toVar(), o = E().toVar(), l = re(Pt(n.x, a), Pt(n.y, o)).toVar(), h = re(1e6, 1e6).toVar();
37064
- return ft({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: u }) => {
37065
- ft({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: c }) => {
37064
+ return gt({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: u }) => {
37065
+ gt({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: c }) => {
37066
37066
  const d = C(ic(l, u, c, a, o, i, s)).toVar();
37067
37067
  ke(d.lessThan(h.x), () => {
37068
37068
  h.y.assign(h.x), h.x.assign(d);
@@ -37083,8 +37083,8 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
37083
37083
  ]
37084
37084
  }), foe = /* @__PURE__ */ B(([t, e, r]) => {
37085
37085
  const s = E(r).toVar(), i = C(e).toVar(), n = re(t).toVar(), a = E().toVar(), o = E().toVar(), l = re(Pt(n.x, a), Pt(n.y, o)).toVar(), h = V(1e6, 1e6, 1e6).toVar();
37086
- return ft({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: u }) => {
37087
- ft({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: c }) => {
37086
+ return gt({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: u }) => {
37087
+ gt({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: c }) => {
37088
37088
  const d = C(ic(l, u, c, a, o, i, s)).toVar();
37089
37089
  ke(d.lessThan(h.x), () => {
37090
37090
  h.z.assign(h.y), h.y.assign(h.x), h.x.assign(d);
@@ -37107,9 +37107,9 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
37107
37107
  ]
37108
37108
  }), goe = /* @__PURE__ */ B(([t, e, r]) => {
37109
37109
  const s = E(r).toVar(), i = C(e).toVar(), n = V(t).toVar(), a = E().toVar(), o = E().toVar(), l = E().toVar(), h = V(Pt(n.x, a), Pt(n.y, o), Pt(n.z, l)).toVar(), u = C(1e6).toVar();
37110
- return ft({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: c }) => {
37111
- ft({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: d }) => {
37112
- ft({ start: -1, end: E(1), name: "z", condition: "<=" }, ({ z: p }) => {
37110
+ return gt({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: c }) => {
37111
+ gt({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: d }) => {
37112
+ gt({ start: -1, end: E(1), name: "z", condition: "<=" }, ({ z: p }) => {
37113
37113
  const m = C(ic(h, c, d, p, a, o, l, i, s)).toVar();
37114
37114
  u.assign(Ai(u, m));
37115
37115
  });
@@ -37127,9 +37127,9 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
37127
37127
  ]
37128
37128
  }), yoe = /* @__PURE__ */ qr([poe, goe]), xoe = /* @__PURE__ */ B(([t, e, r]) => {
37129
37129
  const s = E(r).toVar(), i = C(e).toVar(), n = V(t).toVar(), a = E().toVar(), o = E().toVar(), l = E().toVar(), h = V(Pt(n.x, a), Pt(n.y, o), Pt(n.z, l)).toVar(), u = re(1e6, 1e6).toVar();
37130
- return ft({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: c }) => {
37131
- ft({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: d }) => {
37132
- ft({ start: -1, end: E(1), name: "z", condition: "<=" }, ({ z: p }) => {
37130
+ return gt({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: c }) => {
37131
+ gt({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: d }) => {
37132
+ gt({ start: -1, end: E(1), name: "z", condition: "<=" }, ({ z: p }) => {
37133
37133
  const m = C(ic(h, c, d, p, a, o, l, i, s)).toVar();
37134
37134
  ke(m.lessThan(u.x), () => {
37135
37135
  u.y.assign(u.x), u.x.assign(m);
@@ -37151,9 +37151,9 @@ const Aae = (t, e) => q(new Nae(t, e)), gL = /* @__PURE__ */ B(({ lightDistance:
37151
37151
  ]
37152
37152
  }), boe = /* @__PURE__ */ qr([moe, xoe]), voe = /* @__PURE__ */ B(([t, e, r]) => {
37153
37153
  const s = E(r).toVar(), i = C(e).toVar(), n = V(t).toVar(), a = E().toVar(), o = E().toVar(), l = E().toVar(), h = V(Pt(n.x, a), Pt(n.y, o), Pt(n.z, l)).toVar(), u = V(1e6, 1e6, 1e6).toVar();
37154
- return ft({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: c }) => {
37155
- ft({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: d }) => {
37156
- ft({ start: -1, end: E(1), name: "z", condition: "<=" }, ({ z: p }) => {
37154
+ return gt({ start: -1, end: E(1), name: "x", condition: "<=" }, ({ x: c }) => {
37155
+ gt({ start: -1, end: E(1), name: "y", condition: "<=" }, ({ y: d }) => {
37156
+ gt({ start: -1, end: E(1), name: "z", condition: "<=" }, ({ z: p }) => {
37157
37157
  const m = C(ic(h, c, d, p, a, o, l, i, s)).toVar();
37158
37158
  ke(m.lessThan(u.x), () => {
37159
37159
  u.z.assign(u.y), u.y.assign(u.x), u.x.assign(m);
@@ -37268,7 +37268,7 @@ var x = /* @__PURE__ */ Object.freeze({
37268
37268
  Fn: B,
37269
37269
  INFINITY: Ree,
37270
37270
  If: ke,
37271
- Loop: ft,
37271
+ Loop: gt,
37272
37272
  NodeAccess: xn,
37273
37273
  NodeShaderStage: Hc,
37274
37274
  NodeType: FK,
@@ -38421,73 +38421,76 @@ const Pe = mz(null), Ume = ({
38421
38421
  className: s = "",
38422
38422
  ...i
38423
38423
  }) => {
38424
- const n = vt(null), a = pe(() => "ombre-root-" + Math.random().toString(36).substring(7), []), o = vt(null);
38424
+ const n = ft(null), a = pe(() => "ombre-root-" + Math.random().toString(36).substring(7), []), o = ft(null);
38425
38425
  o.current === null && (o.current = xQ());
38426
- const l = pe(() => (f, g, b, v, w = null) => {
38427
- if (g === null) {
38426
+ const l = pe(() => (g, b, v, w, T = null) => {
38427
+ if (b === null) {
38428
38428
  try {
38429
- o.current.removeNode(f);
38430
- } catch (T) {
38431
- console.warn("Error removing node:", T);
38429
+ o.current.removeNode(g);
38430
+ } catch (N) {
38431
+ console.warn("Error removing node:", N);
38432
38432
  }
38433
38433
  return;
38434
38434
  }
38435
38435
  try {
38436
- o.current.registerNode(f, g, b, v, w);
38437
- } catch (T) {
38438
- console.error("Error registering node:", T, { id: f, parentId: b, metadata: v });
38436
+ o.current.registerNode(g, b, v, w, T);
38437
+ } catch (N) {
38438
+ console.error("Error registering node:", N, { id: g, parentId: v, metadata: w });
38439
38439
  }
38440
- }, []), h = pe(() => (f, g, b) => {
38440
+ }, []), h = pe(() => (g, b, v) => {
38441
38441
  try {
38442
- o.current.updateUniformValue(f, g, b);
38443
- } catch (v) {
38444
- console.warn("Error updating uniform:", v);
38442
+ o.current.updateUniformValue(g, b, v);
38443
+ } catch (w) {
38444
+ console.warn("Error updating uniform:", w);
38445
38445
  }
38446
- }, []), u = pe(() => (f, g) => {
38446
+ }, []), u = pe(() => (g, b) => {
38447
38447
  try {
38448
- o.current.updateNodeMetadata(f, g);
38449
- } catch (b) {
38450
- console.warn("Error updating metadata:", b);
38448
+ o.current.updateNodeMetadata(g, b);
38449
+ } catch (v) {
38450
+ console.warn("Error updating metadata:", v);
38451
38451
  }
38452
38452
  }, []), c = pe(() => ({
38453
38453
  ombreParentId: a,
38454
38454
  ombreNodeRegister: l,
38455
38455
  ombreUniformUpdate: h,
38456
38456
  ombreMetadataUpdate: u
38457
- }), [a, l, h, u]), d = vt(!1), p = vt(!1);
38457
+ }), [a, l, h, u]), d = ft(!1), p = ft(!1), m = ft(!1);
38458
38458
  ge(() => {
38459
38459
  if (d.current || p.current)
38460
38460
  return;
38461
- const f = n.current;
38462
- if (!f)
38461
+ const g = n.current;
38462
+ if (!g)
38463
38463
  return;
38464
38464
  p.current = !0;
38465
- const g = o.current;
38466
- return g.initialize({
38467
- canvas: f
38465
+ const b = o.current;
38466
+ return b.initialize({
38467
+ canvas: g
38468
38468
  }).then(() => {
38469
- g.registerNode(
38469
+ b.registerNode(
38470
38470
  a,
38471
38471
  // @ts-ignore
38472
- ({ childNode: b }) => b || Woe(0, 0, 0, 0),
38472
+ ({ childNode: v }) => v || Woe(0, 0, 0, 0),
38473
38473
  // Root node that passes through children
38474
38474
  null,
38475
38475
  // No parent (this is the root)
38476
38476
  null,
38477
38477
  // No metadata to pass
38478
38478
  {}
38479
- ), d.current = !0, p.current = !1, e || g.showLicenseWarning();
38480
- }).catch((b) => {
38481
- console.error("[Shader] Initialization failed:", b), p.current = !1;
38479
+ ), d.current = !0, p.current = !1, e || b.showLicenseWarning();
38480
+ }).catch((v) => {
38481
+ console.error("[Shader] Initialization failed:", v), p.current = !1;
38482
38482
  }), () => {
38483
- try {
38484
- g.cleanup(), d.current = !1, p.current = !1, console.log("[Shader] Renderer cleaned up successfully");
38485
- } catch (b) {
38486
- console.warn("[Shader] Error during cleanup:", b);
38483
+ if (!m.current) {
38484
+ m.current = !0;
38485
+ try {
38486
+ b.cleanup(), d.current = !1, p.current = !1, console.log("[Shader] Renderer cleaned up successfully");
38487
+ } catch (v) {
38488
+ console.warn("[Shader] Error during cleanup:", v);
38489
+ }
38487
38490
  }
38488
38491
  };
38489
38492
  }, [a, e]);
38490
- const m = {
38493
+ const f = {
38491
38494
  ...s === "" ? {
38492
38495
  width: "1200px",
38493
38496
  height: "800px"
@@ -38511,7 +38514,7 @@ const Pe = mz(null), Ume = ({
38511
38514
  {
38512
38515
  "data-renderer": "ombre",
38513
38516
  ref: n,
38514
- style: m
38517
+ style: f
38515
38518
  }
38516
38519
  ),
38517
38520
  t
@@ -38546,7 +38549,7 @@ const Dme = (t) => {
38546
38549
  ombreNodeRegister: s,
38547
38550
  ombreUniformUpdate: i,
38548
38551
  ombreMetadataUpdate: n
38549
- } = e, a = pe(() => t.id || `${nh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Hoe(t, AL), [t]), l = vt(null);
38552
+ } = e, a = pe(() => t.id || `${nh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Hoe(t, AL), [t]), l = ft(null);
38550
38553
  l.current === null && (l.current = kt(nh, o, a));
38551
38554
  const h = pe(() => ({
38552
38555
  ...e,
@@ -39042,8 +39045,8 @@ function BL(t, e, { kL: r = 1, kC: s = 1, kH: i = 1 } = {}) {
39042
39045
  ye = v * w === 0 ? U : Q <= 180 ? U / 2 : U < 360 ? (U + 360) / 2 : (U - 360) / 2;
39043
39046
  let fe = (ee - 50) ** 2, Te = 1 + 0.015 * fe / Math.sqrt(20 + fe), me = 1 + 0.045 * ae, ue = 1;
39044
39047
  ue -= 0.17 * Math.cos((ye - 30) * Au), ue += 0.24 * Math.cos(2 * ye * Au), ue += 0.32 * Math.cos((3 * ye + 6) * Au), ue -= 0.2 * Math.cos((4 * ye - 63) * Au);
39045
- let we = 1 + 0.015 * ae * ue, je = 30 * Math.exp(-1 * ((ye - 275) / 25) ** 2), qe = 2 * Math.sqrt(ne / (ne + TM)), gt = -1 * Math.sin(2 * je * Au) * qe, ct = (S / (r * Te)) ** 2;
39046
- return ct += (M / (s * me)) ** 2, ct += (te / (i * we)) ** 2, ct += gt * (M / (s * me)) * (te / (i * we)), Math.sqrt(ct);
39048
+ let we = 1 + 0.015 * ae * ue, je = 30 * Math.exp(-1 * ((ye - 275) / 25) ** 2), qe = 2 * Math.sqrt(ne / (ne + TM)), yt = -1 * Math.sin(2 * je * Au) * qe, ct = (S / (r * Te)) ** 2;
39049
+ return ct += (M / (s * me)) ** 2, ct += (te / (i * we)) ** 2, ct += yt * (M / (s * me)) * (te / (i * we)), Math.sqrt(ct);
39047
39050
  }
39048
39051
  const tle = [[0.819022437996703, 0.3619062600528904, -0.1288737815209879], [0.0329836539323885, 0.9292868615863434, 0.0361446663506424], [0.0481771893596242, 0.2642395317527308, 0.6335478284694309]], rle = [[1.2268798758459243, -0.5578149944602171, 0.2813910456659647], [-0.0405757452148008, 1.112286803280317, -0.0717110580655164], [-0.0763729366746601, -0.4214933324022432, 1.5869240198367816]], sle = [[0.210454268309314, 0.7936177747023054, -0.0040720430116193], [1.9779985324311684, -2.42859224204858, 0.450593709617411], [0.0259040424655478, 0.7827717124575296, -0.8086757549230774]], ile = [[1, 0.3963377773761749, 0.2158037573099136], [1, -0.1055613458156586, -0.0638541728258133], [1, -0.0894841775298119, -1.2914855480194092]];
39049
39052
  var jh = new Ne({ id: "oklab", name: "Oklab", coords: { l: { refRange: [0, 1], name: "Lightness" }, a: { refRange: [-0.4, 0.4] }, b: { refRange: [-0.4, 0.4] } }, white: "D65", base: Wr, fromBase(t) {
@@ -39998,7 +40001,7 @@ const jme = (t) => {
39998
40001
  ombreNodeRegister: s,
39999
40002
  ombreUniformUpdate: i,
40000
40003
  ombreMetadataUpdate: n
40001
- } = e, a = pe(() => t.id || `${uh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Zue(t, hI), [t]), l = vt(null);
40004
+ } = e, a = pe(() => t.id || `${uh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Zue(t, hI), [t]), l = ft(null);
40002
40005
  l.current === null && (l.current = kt(uh, o, a));
40003
40006
  const h = pe(() => ({
40004
40007
  ...e,
@@ -40104,7 +40107,7 @@ const Wme = (t) => {
40104
40107
  ombreNodeRegister: s,
40105
40108
  ombreUniformUpdate: i,
40106
40109
  ombreMetadataUpdate: n
40107
- } = e, a = pe(() => t.id || `${hh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Jue(t, cI), [t]), l = vt(null);
40110
+ } = e, a = pe(() => t.id || `${hh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Jue(t, cI), [t]), l = ft(null);
40108
40111
  l.current === null && (l.current = kt(hh, o, a));
40109
40112
  const h = pe(() => ({
40110
40113
  ...e,
@@ -40210,7 +40213,7 @@ const Hme = (t) => {
40210
40213
  ombreNodeRegister: s,
40211
40214
  ombreUniformUpdate: i,
40212
40215
  ombreMetadataUpdate: n
40213
- } = e, a = pe(() => t.id || `${ch.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Que(t, dI), [t]), l = vt(null);
40216
+ } = e, a = pe(() => t.id || `${ch.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Que(t, dI), [t]), l = ft(null);
40214
40217
  l.current === null && (l.current = kt(ch, o, a));
40215
40218
  const h = pe(() => ({
40216
40219
  ...e,
@@ -40316,7 +40319,7 @@ const qme = (t) => {
40316
40319
  ombreNodeRegister: s,
40317
40320
  ombreUniformUpdate: i,
40318
40321
  ombreMetadataUpdate: n
40319
- } = e, a = pe(() => t.id || `${dh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Kue(t, pI), [t]), l = vt(null);
40322
+ } = e, a = pe(() => t.id || `${dh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Kue(t, pI), [t]), l = ft(null);
40320
40323
  l.current === null && (l.current = kt(dh, o, a));
40321
40324
  const h = pe(() => ({
40322
40325
  ...e,
@@ -40438,7 +40441,7 @@ const Xme = (t) => {
40438
40441
  ombreNodeRegister: s,
40439
40442
  ombreUniformUpdate: i,
40440
40443
  ombreMetadataUpdate: n
40441
- } = e, a = pe(() => t.id || `${ph.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ehe(t, mI), [t]), l = vt(null);
40444
+ } = e, a = pe(() => t.id || `${ph.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ehe(t, mI), [t]), l = ft(null);
40442
40445
  l.current === null && (l.current = kt(ph, o, a));
40443
40446
  const h = pe(() => ({
40444
40447
  ...e,
@@ -43703,7 +43706,7 @@ const Yme = (t) => {
43703
43706
  ombreNodeRegister: s,
43704
43707
  ombreUniformUpdate: i,
43705
43708
  ombreMetadataUpdate: n
43706
- } = e, a = pe(() => t.id || `${gh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => qpe(t, YI), [t]), l = vt(null);
43709
+ } = e, a = pe(() => t.id || `${gh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => qpe(t, YI), [t]), l = ft(null);
43707
43710
  l.current === null && (l.current = kt(gh, o, a));
43708
43711
  const h = pe(() => ({
43709
43712
  ...e,
@@ -43809,7 +43812,7 @@ const Zme = (t) => {
43809
43812
  ombreNodeRegister: s,
43810
43813
  ombreUniformUpdate: i,
43811
43814
  ombreMetadataUpdate: n
43812
- } = e, a = pe(() => t.id || `${yh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Xpe(t, ZI), [t]), l = vt(null);
43815
+ } = e, a = pe(() => t.id || `${yh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Xpe(t, ZI), [t]), l = ft(null);
43813
43816
  l.current === null && (l.current = kt(yh, o, a));
43814
43817
  const h = pe(() => ({
43815
43818
  ...e,
@@ -43895,14 +43898,14 @@ const Zme = (t) => {
43895
43898
  U = me;
43896
43899
  let we = ue > 0 ? (Te.x - M) / ue : 0, je = ue > 0 ? (Te.y - A) / ue : 0;
43897
43900
  N.value = N.value * 0.85 + we * 0.15, S.value = S.value * 0.85 + je * 0.15, w.value = Te.x, T.value = Te.y;
43898
- let qe = t.duration.uniform.value, gt = t.intensity.uniform.value, ct = t.radius.uniform.value * 0.05, It = t.swirl.uniform.value;
43901
+ let qe = t.duration.uniform.value, yt = t.intensity.uniform.value, ct = t.radius.uniform.value * 0.05, It = t.swirl.uniform.value;
43899
43902
  for (let ni = 0; ni < f; ni++) for (let ur = 0; ur < f; ur++) {
43900
43903
  let tt = (ni * f + ur) * 2;
43901
43904
  g[tt] *= 1 - qe * ue, g[tt + 1] *= 1 - qe * ue;
43902
43905
  let Xr = (ur + 0.5) / f, Zt = (ni + 0.5) / f, wr = Xr - Te.x, Ii = Zt - Te.y, ls = Math.sqrt(wr * wr + Ii * Ii);
43903
43906
  if (ls < ct * 2 && Math.abs(we) + Math.abs(je) > 0.01) {
43904
43907
  let us = Math.exp(-ls * ls / (ct * ct));
43905
- if (g[tt] += N.value * us * gt * ue * 0.5, g[tt + 1] += S.value * us * gt * ue * 0.5, It > 0) {
43908
+ if (g[tt] += N.value * us * yt * ue * 0.5, g[tt + 1] += S.value * us * yt * ue * 0.5, It > 0) {
43906
43909
  let zi = Math.atan2(Ii, wr) + Math.PI * 0.5;
43907
43910
  g[tt] += Math.cos(zi) * It * us * ue * 2, g[tt + 1] += Math.sin(zi) * It * us * ue * 2;
43908
43911
  }
@@ -43943,7 +43946,7 @@ const Jme = (t) => {
43943
43946
  ombreNodeRegister: s,
43944
43947
  ombreUniformUpdate: i,
43945
43948
  ombreMetadataUpdate: n
43946
- } = e, a = pe(() => t.id || `${xh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Ype(t, JI), [t]), l = vt(null);
43949
+ } = e, a = pe(() => t.id || `${xh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Ype(t, JI), [t]), l = ft(null);
43947
43950
  l.current === null && (l.current = kt(xh, o, a));
43948
43951
  const h = pe(() => ({
43949
43952
  ...e,
@@ -44051,7 +44054,7 @@ const Qme = (t) => {
44051
44054
  ombreNodeRegister: s,
44052
44055
  ombreUniformUpdate: i,
44053
44056
  ombreMetadataUpdate: n
44054
- } = e, a = pe(() => t.id || `${bh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Zpe(t, QI), [t]), l = vt(null);
44057
+ } = e, a = pe(() => t.id || `${bh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Zpe(t, QI), [t]), l = ft(null);
44055
44058
  l.current === null && (l.current = kt(bh, o, a));
44056
44059
  const h = pe(() => ({
44057
44060
  ...e,
@@ -44163,7 +44166,7 @@ const Kme = (t) => {
44163
44166
  ombreNodeRegister: s,
44164
44167
  ombreUniformUpdate: i,
44165
44168
  ombreMetadataUpdate: n
44166
- } = e, a = pe(() => t.id || `${vh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Jpe(t, KI), [t]), l = vt(null);
44169
+ } = e, a = pe(() => t.id || `${vh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Jpe(t, KI), [t]), l = ft(null);
44167
44170
  l.current === null && (l.current = kt(vh, o, a));
44168
44171
  const h = pe(() => ({
44169
44172
  ...e,
@@ -44271,7 +44274,7 @@ const efe = (t) => {
44271
44274
  ombreNodeRegister: s,
44272
44275
  ombreUniformUpdate: i,
44273
44276
  ombreMetadataUpdate: n
44274
- } = e, a = pe(() => t.id || `${Th.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Qpe(t, ez), [t]), l = vt(null);
44277
+ } = e, a = pe(() => t.id || `${Th.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Qpe(t, ez), [t]), l = ft(null);
44275
44278
  l.current === null && (l.current = kt(Th, o, a));
44276
44279
  const h = pe(() => ({
44277
44280
  ...e,
@@ -44377,7 +44380,7 @@ const tfe = (t) => {
44377
44380
  ombreNodeRegister: s,
44378
44381
  ombreUniformUpdate: i,
44379
44382
  ombreMetadataUpdate: n
44380
- } = e, a = pe(() => t.id || `${wh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Kpe(t, tz), [t]), l = vt(null);
44383
+ } = e, a = pe(() => t.id || `${wh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => Kpe(t, tz), [t]), l = ft(null);
44381
44384
  l.current === null && (l.current = kt(wh, o, a));
44382
44385
  const h = pe(() => ({
44383
44386
  ...e,
@@ -44464,10 +44467,10 @@ const tfe = (t) => {
44464
44467
  let Te = fe > 0 ? (ne.x - M) / fe : 0, me = fe > 0 ? (ne.y - A) / fe : 0;
44465
44468
  N.value = N.value * 0.85 + Te * 0.15, S.value = S.value * 0.85 + me * 0.15, w.value = ne.x, T.value = ne.y;
44466
44469
  let ue = t.duration.uniform.value, we = t.intensity.uniform.value, je = t.radius.uniform.value * 0.05, qe = t.swirl.uniform.value;
44467
- for (let gt = 0; gt < f; gt++) for (let ct = 0; ct < f; ct++) {
44468
- let It = (gt * f + ct) * 2;
44470
+ for (let yt = 0; yt < f; yt++) for (let ct = 0; ct < f; ct++) {
44471
+ let It = (yt * f + ct) * 2;
44469
44472
  g[It] *= 1 - ue * fe, g[It + 1] *= 1 - ue * fe;
44470
- let ni = (ct + 0.5) / f, ur = (gt + 0.5) / f, tt = ni - ne.x, Xr = ur - ne.y, Zt = Math.sqrt(tt * tt + Xr * Xr);
44473
+ let ni = (ct + 0.5) / f, ur = (yt + 0.5) / f, tt = ni - ne.x, Xr = ur - ne.y, Zt = Math.sqrt(tt * tt + Xr * Xr);
44471
44474
  if (Zt < je * 2 && Math.abs(Te) + Math.abs(me) > 0.01) {
44472
44475
  let wr = Math.exp(-Zt * Zt / (je * je));
44473
44476
  if (g[It] += N.value * wr * we * fe * 0.5, g[It + 1] += S.value * wr * we * fe * 0.5, qe > 0) {
@@ -44511,7 +44514,7 @@ const rfe = (t) => {
44511
44514
  ombreNodeRegister: s,
44512
44515
  ombreUniformUpdate: i,
44513
44516
  ombreMetadataUpdate: n
44514
- } = e, a = pe(() => t.id || `${Sh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => eme(t, rz), [t]), l = vt(null);
44517
+ } = e, a = pe(() => t.id || `${Sh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => eme(t, rz), [t]), l = ft(null);
44515
44518
  l.current === null && (l.current = kt(Sh, o, a));
44516
44519
  const h = pe(() => ({
44517
44520
  ...e,
@@ -44619,7 +44622,7 @@ const sfe = (t) => {
44619
44622
  ombreNodeRegister: s,
44620
44623
  ombreUniformUpdate: i,
44621
44624
  ombreMetadataUpdate: n
44622
- } = e, a = pe(() => t.id || `${_h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => tme(t, sz), [t]), l = vt(null);
44625
+ } = e, a = pe(() => t.id || `${_h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => tme(t, sz), [t]), l = ft(null);
44623
44626
  l.current === null && (l.current = kt(_h, o, a));
44624
44627
  const h = pe(() => ({
44625
44628
  ...e,
@@ -44740,7 +44743,7 @@ const nfe = (t) => {
44740
44743
  ombreNodeRegister: s,
44741
44744
  ombreUniformUpdate: i,
44742
44745
  ombreMetadataUpdate: n
44743
- } = e, a = pe(() => t.id || `${Mh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ime(t, iz), [t]), l = vt(null);
44746
+ } = e, a = pe(() => t.id || `${Mh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ime(t, iz), [t]), l = ft(null);
44744
44747
  l.current === null && (l.current = kt(Mh, o, a));
44745
44748
  const h = pe(() => ({
44746
44749
  ...e,
@@ -44846,7 +44849,7 @@ const afe = (t) => {
44846
44849
  ombreNodeRegister: s,
44847
44850
  ombreUniformUpdate: i,
44848
44851
  ombreMetadataUpdate: n
44849
- } = e, a = pe(() => t.id || `${Nh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => nme(t, nz), [t]), l = vt(null);
44852
+ } = e, a = pe(() => t.id || `${Nh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => nme(t, nz), [t]), l = ft(null);
44850
44853
  l.current === null && (l.current = kt(Nh, o, a));
44851
44854
  const h = pe(() => ({
44852
44855
  ...e,
@@ -44931,11 +44934,11 @@ const afe = (t) => {
44931
44934
  let g = h(f), b = 0.5, v = 0.5, w = 0, T = (ee, ae, ne) => {
44932
44935
  let ye = ee / i.clientWidth, fe = ae / i.clientHeight, Te = Math.floor(ye * p), me = Math.floor(fe * p), ue = 8, we = ne * 0.5;
44933
44936
  for (let je = -8; je <= ue; je++) for (let qe = -8; qe <= ue; qe++) {
44934
- let gt = je * je + qe * qe;
44935
- if (gt <= ue * ue) {
44937
+ let yt = je * je + qe * qe;
44938
+ if (yt <= ue * ue) {
44936
44939
  let ct = Te + je, It = me + qe;
44937
44940
  if (ct >= 0 && ct < p && It >= 0 && It < p) {
44938
- let ni = It * p + ct, ur = Math.sqrt(gt), tt = 1 - ur / ue, Xr = Math.cos(ur / ue * Math.PI * 0.5) * we * tt;
44941
+ let ni = It * p + ct, ur = Math.sqrt(yt), tt = 1 - ur / ue, Xr = Math.cos(ur / ue * Math.PI * 0.5) * we * tt;
44939
44942
  m.previous[ni] += Xr;
44940
44943
  }
44941
44944
  }
@@ -44995,7 +44998,7 @@ const ofe = (t) => {
44995
44998
  ombreNodeRegister: s,
44996
44999
  ombreUniformUpdate: i,
44997
45000
  ombreMetadataUpdate: n
44998
- } = e, a = pe(() => t.id || `${Ah.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ame(t, az), [t]), l = vt(null);
45001
+ } = e, a = pe(() => t.id || `${Ah.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ame(t, az), [t]), l = ft(null);
44999
45002
  l.current === null && (l.current = kt(Ah, o, a));
45000
45003
  const h = pe(() => ({
45001
45004
  ...e,
@@ -45103,7 +45106,7 @@ const lfe = (t) => {
45103
45106
  ombreNodeRegister: s,
45104
45107
  ombreUniformUpdate: i,
45105
45108
  ombreMetadataUpdate: n
45106
- } = e, a = pe(() => t.id || `${Ch.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ome(t, oz), [t]), l = vt(null);
45109
+ } = e, a = pe(() => t.id || `${Ch.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ome(t, oz), [t]), l = ft(null);
45107
45110
  l.current === null && (l.current = kt(Ch, o, a));
45108
45111
  const h = pe(() => ({
45109
45112
  ...e,
@@ -45206,7 +45209,7 @@ const ufe = (t) => {
45206
45209
  ombreNodeRegister: s,
45207
45210
  ombreUniformUpdate: i,
45208
45211
  ombreMetadataUpdate: n
45209
- } = e, a = pe(() => t.id || `${Rh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => lme(t, lz), [t]), l = vt(null);
45212
+ } = e, a = pe(() => t.id || `${Rh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => lme(t, lz), [t]), l = ft(null);
45210
45213
  l.current === null && (l.current = kt(Rh, o, a));
45211
45214
  const h = pe(() => ({
45212
45215
  ...e,
@@ -45282,7 +45285,7 @@ const ufe = (t) => {
45282
45285
  }
45283
45286
  return /* @__PURE__ */ Nt(Pe.Provider, { value: h, children: t.children });
45284
45287
  }, Eh = { name: "Spiral", props: { colorBack: { default: "#000000", transform: Ts, description: "Background color", ui: { type: "color", label: "Background Color" } }, colorFront: { default: "#ffffff", transform: Ts, description: "Spiral stroke color", ui: { type: "color", label: "Spiral Color" } }, strokeWidth: { default: 0.5, description: "Thickness of spiral stroke", ui: { type: "range", min: 0, max: 2, step: 0.01, label: "Stroke Width" } }, strokeFalloff: { default: 0, description: "Stroke losing width further from center", ui: { type: "range", min: 0, max: 1, step: 0.01, label: "Stroke Falloff" } }, softness: { default: 0, description: "Color transition sharpness (0 = hard edge, 1 = smooth fade)", ui: { type: "range", min: 0, max: 1, step: 0.01, label: "Softness" } }, speed: { default: 1, description: "Animation speed (negative values reverse direction)", ui: { type: "range", min: -3, max: 3, step: 0.1, label: "Speed" } }, center: { default: { x: 0.5, y: 0.5 }, transform: bp, description: "The center point of the spiral" }, scale: { default: 1, description: "Scale factor for spiral bands (higher = more bands, lower = fewer bands)", ui: { type: "range", min: 0.1, max: 5, step: 0.1, label: "Scale" } } }, fragmentNode: ({ uniforms: t }) => {
45285
- let { vec2: e, vec4: r, float: s, atan2: i, length: n, clamp: a, fract: o, abs: l, mix: h, smoothstep: u, screenUV: c, time: d, fwidth: p, viewportSize: m } = At, f = m.x.div(m.y), g = e(c.x.mul(f), c.y), b = e(t.center.uniform.x.mul(f), t.center.uniform.y.oneMinus()), v = g.sub(b), w = d.mul(t.speed.uniform), T = n(v), N = T, S = i(v.y, v.x).sub(w), M = s(6.283185307), A = S.div(M), U = N.mul(t.scale.uniform).add(A), Q = o(U), Z = l(Q.sub(0.5)).mul(2), te = a(t.strokeWidth.uniform, t.strokeFalloff.uniform.mul(5e-3), 1), ee = a(t.strokeFalloff.uniform, 0, 1).mul(T).oneMinus(), ae = te.mul(ee), ne = p(U), ye = s(4).sub(u(0.05, 0.4, t.strokeWidth.uniform.mul(2)).mul(u(0.05, 0.4, t.strokeWidth.uniform.oneMinus().mul(2))).mul(3)), fe = h(ye.mul(ne), p(Z), a(ne, 0, 1)), Te = u(ae.sub(fe).sub(t.softness.uniform), ae.add(fe).add(t.softness.uniform), Z), me = t.colorFront.uniform.rgb.mul(t.colorFront.uniform.a), ue = t.colorFront.uniform.a, we = t.colorBack.uniform.rgb.mul(t.colorBack.uniform.a), je = t.colorBack.uniform.a, qe = me.mul(Te), gt = ue.mul(Te), ct = qe.add(we.mul(gt.oneMinus())), It = gt.add(je.mul(gt.oneMinus()));
45288
+ let { vec2: e, vec4: r, float: s, atan2: i, length: n, clamp: a, fract: o, abs: l, mix: h, smoothstep: u, screenUV: c, time: d, fwidth: p, viewportSize: m } = At, f = m.x.div(m.y), g = e(c.x.mul(f), c.y), b = e(t.center.uniform.x.mul(f), t.center.uniform.y.oneMinus()), v = g.sub(b), w = d.mul(t.speed.uniform), T = n(v), N = T, S = i(v.y, v.x).sub(w), M = s(6.283185307), A = S.div(M), U = N.mul(t.scale.uniform).add(A), Q = o(U), Z = l(Q.sub(0.5)).mul(2), te = a(t.strokeWidth.uniform, t.strokeFalloff.uniform.mul(5e-3), 1), ee = a(t.strokeFalloff.uniform, 0, 1).mul(T).oneMinus(), ae = te.mul(ee), ne = p(U), ye = s(4).sub(u(0.05, 0.4, t.strokeWidth.uniform.mul(2)).mul(u(0.05, 0.4, t.strokeWidth.uniform.oneMinus().mul(2))).mul(3)), fe = h(ye.mul(ne), p(Z), a(ne, 0, 1)), Te = u(ae.sub(fe).sub(t.softness.uniform), ae.add(fe).add(t.softness.uniform), Z), me = t.colorFront.uniform.rgb.mul(t.colorFront.uniform.a), ue = t.colorFront.uniform.a, we = t.colorBack.uniform.rgb.mul(t.colorBack.uniform.a), je = t.colorBack.uniform.a, qe = me.mul(Te), yt = ue.mul(Te), ct = qe.add(we.mul(yt.oneMinus())), It = yt.add(je.mul(yt.oneMinus()));
45286
45289
  return r(ct, It);
45287
45290
  } };
45288
45291
  function ume(t, e) {
@@ -45312,7 +45315,7 @@ const hfe = (t) => {
45312
45315
  ombreNodeRegister: s,
45313
45316
  ombreUniformUpdate: i,
45314
45317
  ombreMetadataUpdate: n
45315
- } = e, a = pe(() => t.id || `${Eh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ume(t, uz), [t]), l = vt(null);
45318
+ } = e, a = pe(() => t.id || `${Eh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => ume(t, uz), [t]), l = ft(null);
45316
45319
  l.current === null && (l.current = kt(Eh, o, a));
45317
45320
  const h = pe(() => ({
45318
45321
  ...e,
@@ -45418,7 +45421,7 @@ const cfe = (t) => {
45418
45421
  ombreNodeRegister: s,
45419
45422
  ombreUniformUpdate: i,
45420
45423
  ombreMetadataUpdate: n
45421
- } = e, a = pe(() => t.id || `${Ph.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => hme(t, hz), [t]), l = vt(null);
45424
+ } = e, a = pe(() => t.id || `${Ph.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => hme(t, hz), [t]), l = ft(null);
45422
45425
  l.current === null && (l.current = kt(Ph, o, a));
45423
45426
  const h = pe(() => ({
45424
45427
  ...e,
@@ -45526,7 +45529,7 @@ const dfe = (t) => {
45526
45529
  ombreNodeRegister: s,
45527
45530
  ombreUniformUpdate: i,
45528
45531
  ombreMetadataUpdate: n
45529
- } = e, a = pe(() => t.id || `${Fh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => cme(t, cz), [t]), l = vt(null);
45532
+ } = e, a = pe(() => t.id || `${Fh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => cme(t, cz), [t]), l = ft(null);
45530
45533
  l.current === null && (l.current = kt(Fh, o, a));
45531
45534
  const h = pe(() => ({
45532
45535
  ...e,
@@ -45634,7 +45637,7 @@ const pfe = (t) => {
45634
45637
  ombreNodeRegister: s,
45635
45638
  ombreUniformUpdate: i,
45636
45639
  ombreMetadataUpdate: n
45637
- } = e, a = pe(() => t.id || `${Lh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => dme(t, dz), [t]), l = vt(null);
45640
+ } = e, a = pe(() => t.id || `${Lh.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`, [t.id]), o = pe(() => dme(t, dz), [t]), l = ft(null);
45638
45641
  l.current === null && (l.current = kt(Lh, o, a));
45639
45642
  const h = pe(() => ({
45640
45643
  ...e,