shop-components 0.1.26 → 0.1.27

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.
@@ -52,6 +52,7 @@ export declare class Amr extends Object3D {
52
52
  get skins(): Skin[];
53
53
  get bodyOpacity(): number;
54
54
  get fork(): Object3D<import("three").Object3DEventMap> | undefined;
55
+ get forkHeight(): number;
55
56
  get jack(): Object3D<import("three").Object3DEventMap> | undefined;
56
57
  get lift(): Object3D<import("three").Object3DEventMap> | undefined;
57
58
  set bodyOpacity(o: number);
@@ -3833,7 +3833,7 @@ class Re extends Ys {
3833
3833
  }
3834
3834
  }
3835
3835
  const lw = /* @__PURE__ */ new zA(), rs = /* @__PURE__ */ new Hs(), dh = /* @__PURE__ */ new ui(), cw = /* @__PURE__ */ new O(), uo = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), up = /* @__PURE__ */ new O(), ph = /* @__PURE__ */ new O(), mh = /* @__PURE__ */ new dA(), gh = /* @__PURE__ */ new dA(), vh = /* @__PURE__ */ new dA(), hw = /* @__PURE__ */ new O(), uw = /* @__PURE__ */ new O(), fw = /* @__PURE__ */ new O(), yh = /* @__PURE__ */ new O(), wh = /* @__PURE__ */ new O();
3836
- let De = class extends _e {
3836
+ let Pe = class extends _e {
3837
3837
  constructor(A = new Re(), e = new Qi()) {
3838
3838
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
3839
3839
  }
@@ -4318,7 +4318,7 @@ class qM extends Xe {
4318
4318
  blending: Et
4319
4319
  });
4320
4320
  r.uniforms.tEquirect.value = e;
4321
- const s = new De(i, r), o = e.minFilter;
4321
+ const s = new Pe(i, r), o = e.minFilter;
4322
4322
  return e.minFilter === Xi && (e.minFilter = we), new OM(1, 10, this).update(A, s), e.minFilter = o, s.geometry.dispose(), s.material.dispose(), this;
4323
4323
  }
4324
4324
  clear(A, e, t, i) {
@@ -8728,7 +8728,7 @@ function vP(n, A, e, t, i, r, s) {
8728
8728
  }
8729
8729
  function d(y, v) {
8730
8730
  const w = p(v);
8731
- w && (w.isCubeTexture || w.mapping === td) ? (u === void 0 && (u = new De(
8731
+ w && (w.isCubeTexture || w.mapping === td) ? (u === void 0 && (u = new Pe(
8732
8732
  new Ja(1, 1, 1),
8733
8733
  new $e({
8734
8734
  name: "BackgroundCubeMaterial",
@@ -8746,7 +8746,7 @@ function vP(n, A, e, t, i, r, s) {
8746
8746
  get: function() {
8747
8747
  return this.uniforms.envMap.value;
8748
8748
  }
8749
- }), i.update(u)), os.copy(v.backgroundRotation), os.x *= -1, os.y *= -1, os.z *= -1, w.isCubeTexture && w.isRenderTargetTexture === !1 && (os.y *= -1, os.z *= -1), u.material.uniforms.envMap.value = w, u.material.uniforms.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, u.material.uniforms.backgroundRotation.value.setFromMatrix4(gP.makeRotationFromEuler(os)), u.material.toneMapped = Ie.getTransfer(w.colorSpace) !== Ee, (c !== w || h !== w.version || f !== n.toneMapping) && (u.material.needsUpdate = !0, c = w, h = w.version, f = n.toneMapping), u.layers.enableAll(), y.unshift(u, u.geometry, u.material, 0, 0, null)) : w && w.isTexture && (l === void 0 && (l = new De(
8749
+ }), i.update(u)), os.copy(v.backgroundRotation), os.x *= -1, os.y *= -1, os.z *= -1, w.isCubeTexture && w.isRenderTargetTexture === !1 && (os.y *= -1, os.z *= -1), u.material.uniforms.envMap.value = w, u.material.uniforms.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, u.material.uniforms.backgroundRotation.value.setFromMatrix4(gP.makeRotationFromEuler(os)), u.material.toneMapped = Ie.getTransfer(w.colorSpace) !== Ee, (c !== w || h !== w.version || f !== n.toneMapping) && (u.material.needsUpdate = !0, c = w, h = w.version, f = n.toneMapping), u.layers.enableAll(), y.unshift(u, u.geometry, u.material, 0, 0, null)) : w && w.isTexture && (l === void 0 && (l = new Pe(
8750
8750
  new ar(2, 2),
8751
8751
  new $e({
8752
8752
  name: "BackgroundMaterial",
@@ -9321,7 +9321,7 @@ class yw {
9321
9321
  return i;
9322
9322
  }
9323
9323
  _compileMaterial(A) {
9324
- const e = new De(this._lodPlanes[0], A);
9324
+ const e = new Pe(this._lodPlanes[0], A);
9325
9325
  this._renderer.compile(e, dp);
9326
9326
  }
9327
9327
  _sceneToCubeUV(A, e, t, i) {
@@ -9332,7 +9332,7 @@ class yw {
9332
9332
  side: Ct,
9333
9333
  depthWrite: !1,
9334
9334
  depthTest: !1
9335
- }), p = new De(new Ja(), f);
9335
+ }), p = new Pe(new Ja(), f);
9336
9336
  let g = !1;
9337
9337
  const d = A.background;
9338
9338
  d ? d.isColor && (f.color.copy(d), A.background = null, g = !0) : (f.color.copy(gw), g = !0);
@@ -9347,7 +9347,7 @@ class yw {
9347
9347
  _textureToCubeUV(A, e) {
9348
9348
  const t = this._renderer, i = A.mapping === Ea || A.mapping === La;
9349
9349
  i ? (this._cubemapMaterial === null && (this._cubemapMaterial = xw()), this._cubemapMaterial.uniforms.flipEnvMap.value = A.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Cw());
9350
- const r = i ? this._cubemapMaterial : this._equirectMaterial, s = new De(this._lodPlanes[0], r), o = r.uniforms;
9350
+ const r = i ? this._cubemapMaterial : this._equirectMaterial, s = new Pe(this._lodPlanes[0], r), o = r.uniforms;
9351
9351
  o.envMap.value = A;
9352
9352
  const a = this._cubeSize;
9353
9353
  bh(e, 0, 0, 3 * a, 2 * a), t.setRenderTarget(e), t.render(s, dp);
@@ -9394,7 +9394,7 @@ class yw {
9394
9394
  s !== "latitudinal" && s !== "longitudinal" && console.error(
9395
9395
  "blur direction must be either latitudinal or longitudinal!"
9396
9396
  );
9397
- const u = 3, c = new De(this._lodPlanes[i], l), h = l.uniforms, f = this._sizeLods[t] - 1, p = isFinite(r) ? Math.PI / (2 * f) : 2 * Math.PI / (2 * Ss - 1), g = r / p, d = isFinite(r) ? 1 + Math.floor(u * g) : Ss;
9397
+ const u = 3, c = new Pe(this._lodPlanes[i], l), h = l.uniforms, f = this._sizeLods[t] - 1, p = isFinite(r) ? Math.PI / (2 * f) : 2 * Math.PI / (2 * Ss - 1), g = r / p, d = isFinite(r) ? 1 + Math.floor(u * g) : Ss;
9398
9398
  d > Ss && console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${d} samples when the maximum is set to ${Ss}`);
9399
9399
  const m = [];
9400
9400
  let y = 0;
@@ -11694,7 +11694,7 @@ function nD(n, A, e) {
11694
11694
  3
11695
11695
  )
11696
11696
  );
11697
- const g = new De(p, h), d = this;
11697
+ const g = new Pe(p, h), d = this;
11698
11698
  this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = r2;
11699
11699
  let m = this.type;
11700
11700
  this.render = function(_, x, S) {
@@ -12946,7 +12946,7 @@ class uD {
12946
12946
  depthHeight: { value: t.w }
12947
12947
  }
12948
12948
  });
12949
- this.mesh = new De(new ar(20, 20), i);
12949
+ this.mesh = new Pe(new ar(20, 20), i);
12950
12950
  }
12951
12951
  A.render(this.mesh, e);
12952
12952
  }
@@ -13730,10 +13730,10 @@ class N2 {
13730
13730
  const St = z === b && rA.id === S;
13731
13731
  cA.setState(rA, z, St);
13732
13732
  }
13733
- let Te = !1;
13734
- rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== on.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== He || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (Te = !0) : (Te = !0, Ae.__version = rA.version);
13733
+ let De = !1;
13734
+ rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== on.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== He || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (De = !0) : (De = !0, Ae.__version = rA.version);
13735
13735
  let gi = Ae.currentProgram;
13736
- Te === !0 && (gi = $t(rA, $, sA));
13736
+ De === !0 && (gi = $t(rA, $, sA));
13737
13737
  let sl = !1, En = !1, Xs = !1;
13738
13738
  const Ue = gi.getUniforms(), vi = Ae.uniforms;
13739
13739
  if (vA.useProgram(gi.program) && (sl = !0, En = !0, Xs = !0), rA.id !== S && (S = rA.id, En = !0), sl || b !== z) {
@@ -14042,7 +14042,7 @@ class sv {
14042
14042
  }
14043
14043
  }
14044
14044
  const Rw = /* @__PURE__ */ new O(), kw = /* @__PURE__ */ new ge(), jw = /* @__PURE__ */ new ge(), vD = /* @__PURE__ */ new O(), Kw = /* @__PURE__ */ new zA(), _h = /* @__PURE__ */ new O(), Cp = /* @__PURE__ */ new ui(), Fw = /* @__PURE__ */ new zA(), xp = /* @__PURE__ */ new Hs();
14045
- class yD extends De {
14045
+ class yD extends Pe {
14046
14046
  constructor(A, e) {
14047
14047
  super(A, e), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = vy, this.bindMatrix = new zA(), this.bindMatrixInverse = new zA(), this.boundingBox = null, this.boundingSphere = null;
14048
14048
  }
@@ -14213,8 +14213,8 @@ class _f extends he {
14213
14213
  return A.meshPerAttribute = this.meshPerAttribute, A.isInstancedBufferAttribute = !0, A;
14214
14214
  }
14215
14215
  }
14216
- const yo = /* @__PURE__ */ new zA(), Yw = /* @__PURE__ */ new zA(), Sh = [], Hw = /* @__PURE__ */ new ve(), CD = /* @__PURE__ */ new zA(), wl = /* @__PURE__ */ new De(), Cl = /* @__PURE__ */ new ui();
14217
- class xD extends De {
14216
+ const yo = /* @__PURE__ */ new zA(), Yw = /* @__PURE__ */ new zA(), Sh = [], Hw = /* @__PURE__ */ new ve(), CD = /* @__PURE__ */ new zA(), wl = /* @__PURE__ */ new Pe(), Cl = /* @__PURE__ */ new ui();
14217
+ class xD extends Pe {
14218
14218
  constructor(A, e, t) {
14219
14219
  super(A, e), this.isInstancedMesh = !0, this.instanceMatrix = new _f(new Float32Array(t * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = t, this.boundingBox = null, this.boundingSphere = null;
14220
14220
  for (let i = 0; i < t; i++)
@@ -17094,7 +17094,7 @@ class yg {
17094
17094
  }
17095
17095
  }
17096
17096
  const c1 = /* @__PURE__ */ new O(), Rh = /* @__PURE__ */ new O();
17097
- class Pe {
17097
+ class Te {
17098
17098
  constructor(A = new O(), e = new O()) {
17099
17099
  this.start = A, this.end = e;
17100
17100
  }
@@ -17408,7 +17408,7 @@ class kE extends Re {
17408
17408
  const jE = new kE();
17409
17409
  class tr {
17410
17410
  constructor(A) {
17411
- this._mesh = new De(jE, A);
17411
+ this._mesh = new Pe(jE, A);
17412
17412
  }
17413
17413
  dispose() {
17414
17414
  this._mesh.geometry.dispose();
@@ -19024,7 +19024,7 @@ const aL = function() {
19024
19024
  }
19025
19025
  };
19026
19026
  }(), lL = function() {
19027
- const n = new O(), A = new O(), e = new Jt(), t = new Pe();
19027
+ const n = new O(), A = new O(), e = new Jt(), t = new Te();
19028
19028
  return function(r, s) {
19029
19029
  const { radius: o, center: a } = r, { a: l, b: u, c } = s;
19030
19030
  if (t.start = l, t.end = u, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o || (t.start = l, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o) || (t.start = u, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o))
@@ -19060,7 +19060,7 @@ let hi = class extends Ze {
19060
19060
  }
19061
19061
  };
19062
19062
  hi.prototype.closestPointToSegment = function() {
19063
- const n = new O(), A = new O(), e = new Pe();
19063
+ const n = new O(), A = new O(), e = new Te();
19064
19064
  return function(i, r = null, s = null) {
19065
19065
  const { start: o, end: a } = i, l = this.points;
19066
19066
  let u, c = 1 / 0;
@@ -19072,7 +19072,7 @@ hi.prototype.closestPointToSegment = function() {
19072
19072
  };
19073
19073
  }();
19074
19074
  hi.prototype.intersectsTriangle = function() {
19075
- const n = new hi(), A = new Array(3), e = new Array(3), t = new ir(), i = new ir(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Pe(), c = new Pe(), h = new Pe(), f = new O();
19075
+ const n = new hi(), A = new Array(3), e = new Array(3), t = new ir(), i = new ir(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Te(), c = new Te(), h = new Te(), f = new O();
19076
19076
  function p(g, d, m) {
19077
19077
  const y = g.points;
19078
19078
  let v = 0, w = -1;
@@ -19152,7 +19152,7 @@ hi.prototype.distanceToPoint = function() {
19152
19152
  };
19153
19153
  }();
19154
19154
  hi.prototype.distanceToTriangle = function() {
19155
- const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Pe(), i = new Pe();
19155
+ const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Te(), i = new Te();
19156
19156
  return function(s, o = null, a = null) {
19157
19157
  const l = o || a ? t : null;
19158
19158
  if (this.intersectsTriangle(s, l))
@@ -19262,7 +19262,7 @@ Gt.prototype.distanceToPoint = function() {
19262
19262
  };
19263
19263
  }();
19264
19264
  Gt.prototype.distanceToBox = function() {
19265
- const n = ["x", "y", "z"], A = new Array(12).fill().map(() => new Pe()), e = new Array(12).fill().map(() => new Pe()), t = new O(), i = new O();
19265
+ const n = ["x", "y", "z"], A = new Array(12).fill().map(() => new Te()), e = new Array(12).fill().map(() => new Te()), t = new O(), i = new O();
19266
19266
  return function(s, o = 0, a = null, l = null) {
19267
19267
  if (this.needsUpdate && this.update(), this.intersectsBox(s))
19268
19268
  return (a || l) && (s.getCenter(i), this.closestPointToPoint(i, t), s.closestPointToPoint(t, i), a && a.copy(t), l && l.copy(i)), 0;
@@ -21040,7 +21040,7 @@ class p7 {
21040
21040
  _getDummyMesh() {
21041
21041
  if (!this._dummyMesh) {
21042
21042
  const A = new Qi(), e = new Re();
21043
- e.setAttribute("position", new he(new Float32Array(9), 3)), this._dummyMesh = new De(e, A);
21043
+ e.setAttribute("position", new he(new Float32Array(9), 3)), this._dummyMesh = new Pe(e, A);
21044
21044
  }
21045
21045
  return this._dummyMesh;
21046
21046
  }
@@ -53297,7 +53297,7 @@ const sr = (n) => {
53297
53297
  var A, e;
53298
53298
  for (; n.children.length > 0; )
53299
53299
  sr(n.children[0]), (A = n.children[0]) == null || A.removeFromParent();
53300
- if (n instanceof De)
53300
+ if (n instanceof Pe)
53301
53301
  try {
53302
53302
  (e = n.geometry) == null || e.dispose();
53303
53303
  } catch {
@@ -54675,7 +54675,7 @@ class fk {
54675
54675
  let m;
54676
54676
  const y = l[f];
54677
54677
  if (d.mode === Ci.TRIANGLES || d.mode === Ci.TRIANGLE_STRIP || d.mode === Ci.TRIANGLE_FAN || d.mode === void 0)
54678
- m = r.isSkinnedMesh === !0 ? new yD(g, y) : new De(g, y), m.isSkinnedMesh === !0 && m.normalizeSkinWeights(), d.mode === Ci.TRIANGLE_STRIP ? m.geometry = jx(m.geometry, m2) : d.mode === Ci.TRIANGLE_FAN && (m.geometry = jx(m.geometry, hg));
54678
+ m = r.isSkinnedMesh === !0 ? new yD(g, y) : new Pe(g, y), m.isSkinnedMesh === !0 && m.normalizeSkinWeights(), d.mode === Ci.TRIANGLE_STRIP ? m.geometry = jx(m.geometry, m2) : d.mode === Ci.TRIANGLE_FAN && (m.geometry = jx(m.geometry, hg));
54679
54679
  else if (d.mode === Ci.LINES)
54680
54680
  m = new cd(g, y);
54681
54681
  else if (d.mode === Ci.LINE_STRIP)
@@ -55324,7 +55324,7 @@ function Bm(n, A = 1 / 0, e = null) {
55324
55324
  gl_FragColor = texture2D( blitTexture, vUv);
55325
55325
  #endif
55326
55326
  }`
55327
- })), ko.uniforms.blitTexture.value = n, ko.defines.IS_SRGB = n.colorSpace == ke, ko.needsUpdate = !0, Eu || (Eu = new De(Nm, ko), Eu.frustumCulled = !1);
55327
+ })), ko.uniforms.blitTexture.value = n, ko.defines.IS_SRGB = n.colorSpace == ke, ko.needsUpdate = !0, Eu || (Eu = new Pe(Nm, ko), Eu.frustumCulled = !1);
55328
55328
  const t = new yt(), i = new Pc();
55329
55329
  i.add(Eu), e === null && (e = Bl = new N2({ antialias: !1 }));
55330
55330
  const r = Math.min(n.image.width, A), s = Math.min(n.image.height, A);
@@ -58632,12 +58632,12 @@ function wj() {
58632
58632
  }
58633
58633
  if (eA.get(b))
58634
58634
  for (var on = 0; on < bA.length; on++) {
58635
- var Te = bA[on];
58636
- if (F[Te] & b)
58635
+ var De = bA[on];
58636
+ if (F[De] & b)
58637
58637
  for (var gi = on - 1; gi >= -1; gi--) {
58638
58638
  var sl = gi === -1 ? re : F[bA[gi]];
58639
58639
  if (sl & s) {
58640
- sl === U && nA(Te, P);
58640
+ sl === U && nA(De, P);
58641
58641
  break;
58642
58642
  }
58643
58643
  }
@@ -61790,13 +61790,13 @@ function _I(n) {
61790
61790
  return Array.isArray(n) ? n[0] : n;
61791
61791
  }
61792
61792
  let TS = () => {
61793
- const n = new De(
61793
+ const n = new Pe(
61794
61794
  new ar(1, 1),
61795
61795
  Zv
61796
61796
  );
61797
61797
  return TS = () => n, n;
61798
61798
  }, DS = () => {
61799
- const n = new De(
61799
+ const n = new Pe(
61800
61800
  new ar(1, 1, 32, 1),
61801
61801
  Zv
61802
61802
  );
@@ -61830,7 +61830,7 @@ const sK = { type: "syncstart" }, oK = { type: "synccomplete" }, ES = [
61830
61830
  "orientation",
61831
61831
  "glyphGeometryDetail"
61832
61832
  );
61833
- class LS extends De {
61833
+ class LS extends Pe {
61834
61834
  constructor() {
61835
61835
  const A = new $j();
61836
61836
  super(A, null), this.text = "", this.anchorX = 0, this.anchorY = 0, this.curveRadius = 0, this.direction = "auto", this.font = null, this.unicodeFontsURL = null, this.fontSize = 0.1, this.fontWeight = "normal", this.fontStyle = "normal", this.lang = null, this.letterSpacing = 0, this.lineHeight = "normal", this.maxWidth = 1 / 0, this.overflowWrap = "normal", this.textAlign = "left", this.textIndent = 0, this.whiteSpace = "normal", this.material = null, this.color = null, this.colorRanges = null, this.outlineWidth = 0, this.outlineColor = 0, this.outlineOpacity = 1, this.outlineBlur = 0, this.outlineOffsetX = 0, this.outlineOffsetY = 0, this.strokeWidth = 0, this.strokeColor = II, this.strokeOpacity = 1, this.fillOpacity = 1, this.depthOffset = 0, this.clipRect = null, this.orientation = Um, this.glyphGeometryDetail = 1, this.sdfGlyphSize = null, this.gpuAccelerateSDF = !0, this.debugSDF = !1;
@@ -62099,7 +62099,7 @@ class mf extends _e {
62099
62099
  }
62100
62100
  class OS extends _e {
62101
62101
  constructor(A, e) {
62102
- super(), this.radius = A, this._text = new lK(""), this._line = new mf(void 0, !1), this._box = new De(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new Qi({
62102
+ super(), this.radius = A, this._text = new lK(""), this._line = new mf(void 0, !1), this._box = new Pe(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new Qi({
62103
62103
  color: "#898989",
62104
62104
  side: ot
62105
62105
  }), this.position.y = e, this._box.rotateX(-Math.PI / 2), this.add(this._box), this.add(this._line), this.add(this._text);
@@ -62423,7 +62423,7 @@ class MI extends qS {
62423
62423
  const i = new Ja(this._goodsSize.width, t, this._goodsSize.length);
62424
62424
  i.translate(0, t / 2, 0);
62425
62425
  const r = new kD(i);
62426
- this._goods = new De(i, new Gc({
62426
+ this._goods = new Pe(i, new Gc({
62427
62427
  color: "#22f",
62428
62428
  opacity: 0.2,
62429
62429
  transparent: !0
@@ -62511,6 +62511,10 @@ class wK extends _e {
62511
62511
  get fork() {
62512
62512
  return this._fork;
62513
62513
  }
62514
+ get forkHeight() {
62515
+ var A;
62516
+ return ((A = this._fork) == null ? void 0 : A.position.y) || 0;
62517
+ }
62514
62518
  get jack() {
62515
62519
  return this._jack;
62516
62520
  }
@@ -62527,7 +62531,7 @@ class wK extends _e {
62527
62531
  init(A) {
62528
62532
  this._app = A, this.sizeBox.init(A), this.addEventListener("shape-key-changed", (e, t) => {
62529
62533
  this._slots.forEach((i) => i.shapeKeyChanged(e, t)), this.sizeBox.follow === e ? (this.sizeBox.generate(this._container, t), this.sizeBox.originOffset && (this._container.traverse((i) => {
62530
- i instanceof De && !i.userData.isDevice && !i.userData.isBracket && i.geometry.translate(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0), i instanceof L0 && i.parent && i.parent.position.add(new O(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0));
62534
+ i instanceof Pe && !i.userData.isDevice && !i.userData.isBracket && i.geometry.translate(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0), i instanceof L0 && i.parent && i.parent.position.add(new O(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0));
62531
62535
  }), this.sizeBox.translateCache = this.sizeBox.originOffset, this.sizeBox.generate(this._container))) : this.sizeBox.generate(this._container);
62532
62536
  });
62533
62537
  }
@@ -62563,7 +62567,7 @@ class wK extends _e {
62563
62567
  let i = e;
62564
62568
  t.userData[`origin_${A}`] && (i -= t.userData[`origin_${A}`]);
62565
62569
  const r = t.morphTargetDictionary[A];
62566
- t.morphTargetInfluences && (t.morphTargetInfluences[r] = i);
62570
+ t.morphTargetInfluences && (t.morphTargetInfluences[r] = i), t instanceof Pe && t.geometry.translate(0, 0, 1e-5);
62567
62571
  }), this._emitter.emit("shape-key-changed", A, e);
62568
62572
  }
62569
62573
  _generateAmr(A) {
@@ -62573,7 +62577,7 @@ class wK extends _e {
62573
62577
  e.userData[`origin_${t}`] && (i += e.userData[`origin_${t}`]), this._shapeKeys.has(t) || this._shapeKeys.set(t, i);
62574
62578
  });
62575
62579
  }), A.traverse((e) => {
62576
- if (e instanceof De) {
62580
+ if (e instanceof Pe) {
62577
62581
  if (e.material)
62578
62582
  if (Array.isArray(e.material))
62579
62583
  e.material.forEach((i) => {
@@ -62674,7 +62678,7 @@ class wK extends _e {
62674
62678
  this.setShapeKey("length", A);
62675
62679
  }
62676
62680
  limitValue(A) {
62677
- this.name === "SFL-CDD14" && (A > 1.6 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0)), this.name === "SFL-CDD15" && (A > 2.43 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0)), ["SFL-CPD20-Y", "SFL-CPD20-Y"].includes(this.name) && (A > 3.5 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0));
62681
+ this.name === "SFL-CDD14" && (A > 1.6 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0)), this.name === "SFL-CDD15" && (A > 2.43 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0)), ["SFL-CPD20-Y", "SFL-CPD30-Y"].includes(this.name) && (A > 3.5 ? this.setShapeKey("mast", 2) : A > 3 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0));
62678
62682
  }
62679
62683
  setForkHeight(A) {
62680
62684
  if (this._fork && !(A >= this._forkMaxHeight) && (this._fork.position.y = A, this._masts.size === 1)) {
@@ -62684,8 +62688,7 @@ class wK extends _e {
62684
62688
  }
62685
62689
  setForkMaxHeight(A) {
62686
62690
  this._forkMaxHeight = A, this.limitValue(A), this.controllers.forEach((e) => {
62687
- var t;
62688
- (e.name.toLowerCase().includes("fork") || e.name.toLowerCase().includes("frok")) && (e.props.max = A), this._fork && ((t = this._fork) == null ? void 0 : t.position.y) > A && (this._fork.position.y = A);
62691
+ e.name.toLowerCase().includes("fork") && (e.props.max = A), this._fork && this.forkHeight > this._forkMaxHeight && this.setForkHeight(A);
62689
62692
  });
62690
62693
  }
62691
62694
  setLiftMaxHeight(A) {
@@ -63306,7 +63309,7 @@ const RK = function() {
63306
63309
  }
63307
63310
  };
63308
63311
  }(), kK = function() {
63309
- const n = new O(), A = new O(), e = new Jt(), t = new Pe();
63312
+ const n = new O(), A = new O(), e = new Jt(), t = new Te();
63310
63313
  return function(r, s) {
63311
63314
  const { radius: o, center: a } = r, { a: l, b: u, c } = s;
63312
63315
  if (t.start = l, t.end = u, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o || (t.start = l, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o) || (t.start = u, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o))
@@ -63342,7 +63345,7 @@ class tn extends Ze {
63342
63345
  }
63343
63346
  }
63344
63347
  tn.prototype.closestPointToSegment = function() {
63345
- const n = new O(), A = new O(), e = new Pe();
63348
+ const n = new O(), A = new O(), e = new Te();
63346
63349
  return function(i, r = null, s = null) {
63347
63350
  const { start: o, end: a } = i, l = this.points;
63348
63351
  let u, c = 1 / 0;
@@ -63354,7 +63357,7 @@ tn.prototype.closestPointToSegment = function() {
63354
63357
  };
63355
63358
  }();
63356
63359
  tn.prototype.intersectsTriangle = function() {
63357
- const n = new tn(), A = new Array(3), e = new Array(3), t = new or(), i = new or(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Pe(), c = new Pe(), h = new Pe(), f = new O();
63360
+ const n = new tn(), A = new Array(3), e = new Array(3), t = new or(), i = new or(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Te(), c = new Te(), h = new Te(), f = new O();
63358
63361
  function p(g, d, m) {
63359
63362
  const y = g.points;
63360
63363
  let v = 0, w = -1;
@@ -63434,7 +63437,7 @@ tn.prototype.distanceToPoint = function() {
63434
63437
  };
63435
63438
  }();
63436
63439
  tn.prototype.distanceToTriangle = function() {
63437
- const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Pe(), i = new Pe();
63440
+ const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Te(), i = new Te();
63438
63441
  return function(s, o = null, a = null) {
63439
63442
  const l = o || a ? t : null;
63440
63443
  if (this.intersectsTriangle(s, l))
@@ -63544,7 +63547,7 @@ Yt.prototype.distanceToPoint = function() {
63544
63547
  };
63545
63548
  }();
63546
63549
  Yt.prototype.distanceToBox = function() {
63547
- const n = ["x", "y", "z"], A = new Array(12).fill().map(() => new Pe()), e = new Array(12).fill().map(() => new Pe()), t = new O(), i = new O();
63550
+ const n = ["x", "y", "z"], A = new Array(12).fill().map(() => new Te()), e = new Array(12).fill().map(() => new Te()), t = new O(), i = new O();
63548
63551
  return function(s, o = 0, a = null, l = null) {
63549
63552
  if (this.needsUpdate && this.update(), this.intersectsBox(s))
63550
63553
  return (a || l) && (s.getCenter(i), this.closestPointToPoint(i, t), s.closestPointToPoint(t, i), a && a.copy(t), l && l.copy(i)), 0;
@@ -64735,7 +64738,7 @@ function SF(n, A = _F, e = 1) {
64735
64738
  M = Math.abs(M) < KI ? 0 : M;
64736
64739
  const T = Math.sign(P) !== Math.sign(M);
64737
64740
  if (D || T) {
64738
- const q = new Pe();
64741
+ const q = new Te();
64739
64742
  q.start.copy(_), q.end.copy(x), t.push(q);
64740
64743
  }
64741
64744
  f[b] = null;
@@ -64751,12 +64754,12 @@ function SF(n, A = _F, e = 1) {
64751
64754
  if (f[p]) {
64752
64755
  const { index0: g, index1: d } = f[p];
64753
64756
  FI.fromBufferAttribute(a, g), GI.fromBufferAttribute(a, d);
64754
- const m = new Pe();
64757
+ const m = new Te();
64755
64758
  m.start.copy(FI), m.end.copy(GI), t.push(m);
64756
64759
  }
64757
64760
  return t;
64758
64761
  }
64759
- const Cr = /* @__PURE__ */ new Pe();
64762
+ const Cr = /* @__PURE__ */ new Te();
64760
64763
  function US(n) {
64761
64764
  n.sort((A, e) => A[0] - e[0]);
64762
64765
  for (let A = 1; A < n.length; A++) {
@@ -64807,8 +64810,8 @@ function TF(n, A, e) {
64807
64810
  }
64808
64811
  return !1;
64809
64812
  }
64810
- const DF = 1e-16, HI = 1e-16, Xu = /* @__PURE__ */ new Jt(), Qo = /* @__PURE__ */ new Pe(), Qu = /* @__PURE__ */ new O(), sg = /* @__PURE__ */ new O(), Ir = /* @__PURE__ */ new hi(), wi = /* @__PURE__ */ new Pe(), jn = /* @__PURE__ */ new Pe(), br = /* @__PURE__ */ new O(), UI = /* @__PURE__ */ new O();
64811
- function EF(n, A, e = new Pe()) {
64813
+ const DF = 1e-16, HI = 1e-16, Xu = /* @__PURE__ */ new Jt(), Qo = /* @__PURE__ */ new Te(), Qu = /* @__PURE__ */ new O(), sg = /* @__PURE__ */ new O(), Ir = /* @__PURE__ */ new hi(), wi = /* @__PURE__ */ new Te(), jn = /* @__PURE__ */ new Te(), br = /* @__PURE__ */ new O(), UI = /* @__PURE__ */ new O();
64814
+ function EF(n, A, e = new Te()) {
64812
64815
  if (Ir.copy(A), Ir.a.y = 0, Ir.b.y = 0, Ir.c.y = 0, Ir.update(), wi.copy(n), wi.start.y = 0, wi.end.y = 0, Ir.getArea() <= DF)
64813
64816
  return null;
64814
64817
  wi.delta(br).normalize(), br.cross(Ir.plane.normal).normalize(), Xu.setFromNormalAndCoplanarPoint(br, wi.start);
@@ -64844,7 +64847,7 @@ function OF(n, A, e) {
64844
64847
  let i = JI.length() / t, r = ZI.length() / t;
64845
64848
  return i = Math.min(Math.max(i, 0), 1), r = Math.min(Math.max(r, 0), 1), Math.abs(i - r) <= LF ? !1 : (e.push(new Float32Array([i, r])), !0);
64846
64849
  }
64847
- const XI = 1e-6, _r = new hi(), Vo = new Pe();
64850
+ const XI = 1e-6, _r = new hi(), Vo = new Te();
64848
64851
  function* qF(n, A = 30) {
64849
64852
  const e = [], t = n.geometry, i = t.index, r = t.attributes.position, s = i ? i.count : r;
64850
64853
  let o = performance.now();
@@ -64863,7 +64866,7 @@ function* qF(n, A = 30) {
64863
64866
  }
64864
64867
  return e;
64865
64868
  }
64866
- const NF = 1e-10, BF = /* @__PURE__ */ new O(0, 1, 0), Vu = /* @__PURE__ */ new Pe(), QI = /* @__PURE__ */ new Hs(), VI = /* @__PURE__ */ new O(), $I = /* @__PURE__ */ new Pe();
64869
+ const NF = 1e-10, BF = /* @__PURE__ */ new O(0, 1, 0), Vu = /* @__PURE__ */ new Te(), QI = /* @__PURE__ */ new Hs(), VI = /* @__PURE__ */ new O(), $I = /* @__PURE__ */ new Te();
64867
64870
  class zF {
64868
64871
  constructor() {
64869
64872
  this.edges = [];
@@ -65015,7 +65018,7 @@ class lY {
65015
65018
  window.innerWidth / window.innerHeight,
65016
65019
  0.1,
65017
65020
  1e4
65018
- ), this._container = new Dt(), this._raycaster = new NE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Wa(new dA(-108, 0)), this._dragging = !1, this.maxSample = 1024, this.sampleCount = 0, this._usePathTracing = !1, this._fpsCache = [], this._fpsCacheMax = 20, this._emitter = new $r(), this.sound = new DR(), this._ground = new De(
65021
+ ), this._container = new Dt(), this._raycaster = new NE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Wa(new dA(-108, 0)), this._dragging = !1, this.maxSample = 1024, this.sampleCount = 0, this._usePathTracing = !1, this._fpsCache = [], this._fpsCacheMax = 20, this._emitter = new $r(), this.sound = new DR(), this._ground = new Pe(
65019
65022
  new ar(100, 100),
65020
65023
  new Gc({
65021
65024
  color: new YA("#aaa"),
@@ -65147,11 +65150,13 @@ class lY {
65147
65150
  });
65148
65151
  }
65149
65152
  async addAMR(A) {
65150
- this.amr.init(this), await this.amr.load(A);
65153
+ this.amr.init(this), await this.amr.load(A), this.amr.addEventListener("shape-key-changed", () => {
65154
+ this.pathTracer.reset(), this.sampleCount = 0, this.pathTracer.setScene(this.scene, this.camera);
65155
+ });
65151
65156
  }
65152
65157
  generateEdges() {
65153
65158
  this._container.traverse((A) => {
65154
- if (A instanceof De) {
65159
+ if (A instanceof Pe) {
65155
65160
  const e = A.geometry.clone(), t = kF.generate(e);
65156
65161
  let i = t.next();
65157
65162
  for (; !i.done; )
@@ -65182,7 +65187,7 @@ class lY {
65182
65187
  const A = this.renderer.domElement.parentElement;
65183
65188
  A && ((t = this._resizeObserver) == null || t.unobserve(A)), this.controls.dispose(), this.renderer.dispose(), this._composer.dispose(), this.scene.traverse((i) => {
65184
65189
  var r;
65185
- i instanceof De ? (i.geometry.dispose(), Array.isArray(i.material) ? i.material.forEach((s) => s.dispose()) : i.material && i.material.dispose()) : i instanceof L0 ? i.dispose() : (r = i.dispose) == null || r.call(i), i.removeFromParent();
65190
+ i instanceof Pe ? (i.geometry.dispose(), Array.isArray(i.material) ? i.material.forEach((s) => s.dispose()) : i.material && i.material.dispose()) : i instanceof L0 ? i.dispose() : (r = i.dispose) == null || r.call(i), i.removeFromParent();
65186
65191
  });
65187
65192
  }
65188
65193
  }