@vincentt-xr/sdk 2.0.0-alpha.21 → 2.0.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/components.json +1 -1
  2. package/dist/{CanonicalHeadFrame-CQe2YX9a.js → CanonicalHeadFrame-S3Jk9F1P.js} +15 -15
  3. package/dist/{DebuggerUI-CKYrYmod.js → DebuggerUI-B8bheFk-.js} +1 -1
  4. package/dist/{FaceRetouch-l7y4oZBu.js → FaceRetouch-DW_9g5EA.js} +4 -4
  5. package/dist/{bodyMaskMaterial-BOdSJUEM.js → bodyMaskMaterial-CUlzyXnJ.js} +1 -1
  6. package/dist/cache-CsH3zPDX.js +307 -0
  7. package/dist/cache-DrEDi7qn.cjs +1 -0
  8. package/dist/components/Button/index.d.ts +1 -1
  9. package/dist/components/FaceSwap/settings.d.ts +1 -1
  10. package/dist/components/Light/index.d.ts +1 -1
  11. package/dist/components/Model/index.d.ts +1 -1
  12. package/dist/components/Object3D/index.d.ts +1 -1
  13. package/dist/components/PaintedFace/index.d.ts +1 -1
  14. package/dist/components/ScreenText/liveEditable.d.ts +1 -1
  15. package/dist/{contexts-Cl-4dUOI.js → contexts-C_l5hzI8.js} +52 -52
  16. package/dist/debug-ui/media-source.js +1 -1
  17. package/dist/debug-ui.cjs +1 -1
  18. package/dist/debug-ui.js +11 -11
  19. package/dist/{drawNormalizedCrop-D606u5-F.js → drawNormalizedCrop-D48Layv4.js} +14 -14
  20. package/dist/editor-defs/live.d.ts +18 -0
  21. package/dist/editor-defs/live.generated.d.ts +2 -0
  22. package/dist/face-effects.cjs +31 -31
  23. package/dist/face-effects.js +1287 -1287
  24. package/dist/{getFaceInfo-Mt44zlej.js → getFaceInfo-e9XzHPLC.js} +1 -1
  25. package/dist/{index-CicO_Tnw.js → index-B34w-TyW.js} +1 -1
  26. package/dist/{index-D5NbXaCn.js → index-B9ph9k5I.js} +4 -4
  27. package/dist/{index-Bn72laBn.js → index-BKZPBg1D.js} +1 -1
  28. package/dist/{index-CM3jkleV.js → index-DCjFgbB8.js} +12 -10
  29. package/dist/{index-fDwL47CM.cjs → index-DSMv6GWI.cjs} +1 -1
  30. package/dist/{index-CbBCl2ZU.js → index-Dk1UOe-H.js} +10 -10
  31. package/dist/{index-BDxJWWyy.js → index-MzlPbe9t.js} +9 -9
  32. package/dist/{index-B0EYdofX.js → index-em1AaMkI.js} +1 -1
  33. package/dist/instructions.js +7 -7
  34. package/dist/{internal-BoFDq5hC.js → internal-kwJxojDs.js} +3 -3
  35. package/dist/internal.js +2 -2
  36. package/dist/{landmarks-C3LvDhMt.js → landmarks-BgLF-yfd.js} +6 -6
  37. package/dist/low-level.js +17 -17
  38. package/dist/main.cjs +1 -1
  39. package/dist/main.js +720 -719
  40. package/dist/particles.js +5 -5
  41. package/dist/product.js +2 -2
  42. package/dist/{providers-Bxt_MfPK.js → providers-Bo1gfoXg.js} +3 -3
  43. package/dist/{renderGroups-uYPzUa66.js → renderGroups-Cul4eOG8.js} +1 -1
  44. package/dist/{renderPasses-C0wu5Cwg.js → renderPasses-CLOTeP38.js} +40 -40
  45. package/dist/scene-object.js +2 -2
  46. package/dist/{segmentation-DccvYBBO.js → segmentation-Q1eXSt_x.js} +1 -1
  47. package/dist/{selectors-J06V0eDb.js → selectors-CiawE6Ox.js} +4 -4
  48. package/dist/{session-CYiWfcvz.js → session-CmpigDxI.js} +9 -9
  49. package/dist/tracking.js +127 -127
  50. package/dist/{trigger-CQviD4xp.js → trigger-BHKfnvtB.js} +7 -7
  51. package/dist/{useBodies-DOuwRuew.js → useBodies-DzRzQg88.js} +7 -7
  52. package/dist/{useFaceInfo-XUGYTdfN.js → useFaceInfo-DUxqnPek.js} +10 -10
  53. package/dist/{useFaceResultReader-D8wXbF1L.js → useFaceResultReader-DSnUjQcw.js} +1 -1
  54. package/dist/{useIrisTracking-B0uLWgNE.js → useIrisTracking-Bfp1Fv66.js} +10 -10
  55. package/dist/{useXRCapabilities-DPUOvpdf.js → useXRCapabilities-BhN_CKwJ.js} +1 -1
  56. package/dist/utils/useEditOverrides.d.ts +4 -0
  57. package/dist/utils/useLiveProps.d.ts +8 -0
  58. package/package.json +1 -1
  59. package/settings.json +1 -1
  60. package/dist/cache-DFqZYsHC.cjs +0 -1
  61. package/dist/cache-Mu-VO_6E.js +0 -212
package/dist/particles.js CHANGED
@@ -4,13 +4,13 @@ var u = (e, t, i) => Dt(e, typeof t != "symbol" ? t + "" : t, i);
4
4
  import { useThree as V } from "@react-three/fiber";
5
5
  import { forwardRef as Z, useMemo as Mt, useRef as W, useImperativeHandle as kt, useState as Lt, useEffect as q } from "react";
6
6
  import * as h from "three";
7
- import { p as Ot, e as _, j as Ft, t as J } from "./index-BDxJWWyy.js";
8
- import { u as Jt } from "./landmarks-C3LvDhMt.js";
7
+ import { p as Ot, a as _, f as Ft, t as J } from "./index-MzlPbe9t.js";
8
+ import { u as Jt } from "./landmarks-BgLF-yfd.js";
9
9
  import { a as At } from "./useLandmarkPoseFit-Bmb3h6Mw.js";
10
10
  import { jsx as D } from "react/jsx-runtime";
11
- import { f as Nt } from "./selectors-J06V0eDb.js";
12
- import { u as Vt, F as jt } from "./index-CbBCl2ZU.js";
13
- import { C as Bt, a as Gt } from "./CanonicalHeadFrame-CQe2YX9a.js";
11
+ import { f as Nt } from "./selectors-CiawE6Ox.js";
12
+ import { u as Vt, F as jt } from "./index-Dk1UOe-H.js";
13
+ import { C as Bt, a as Gt } from "./CanonicalHeadFrame-S3Jk9F1P.js";
14
14
  const Ge = ["leftEye", "rightEye", "eyes"], Ut = [
15
15
  263,
16
16
  249,
package/dist/product.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as C, jsxs as J, Fragment as T } from "react/jsx-runtime";
2
2
  import { forwardRef as Z, useRef as j, useState as S, useCallback as w, useEffect as N, createElement as tt, useMemo as z } from "react";
3
- import { w as et, x as rt, y as nt } from "./index-BDxJWWyy.js";
4
- import { u as ot } from "./useXRCapabilities-DPUOvpdf.js";
3
+ import { w as et, x as rt, y as nt } from "./index-MzlPbe9t.js";
4
+ import { u as ot } from "./useXRCapabilities-BhN_CKwJ.js";
5
5
  let O = null;
6
6
  const st = () => typeof customElements < "u" && customElements.get("model-viewer") !== void 0, it = () => st() ? Promise.resolve() : (O || (O = import("@google/model-viewer").then(() => {
7
7
  }).catch((t) => {
@@ -6,11 +6,11 @@ import { useThree as ee, useLoader as te, useFrame as _ } from "@react-three/fib
6
6
  import { useMemo as g, useEffect as B, useRef as y, useState as W } from "react";
7
7
  import * as d from "three";
8
8
  import { R as se } from "./uv-DJU_XfmN.js";
9
- import { c as Y, b as L } from "./selectors-J06V0eDb.js";
9
+ import { c as Y, u as L } from "./selectors-CiawE6Ox.js";
10
10
  import { T as ne, s as H } from "./textures-BVwo9Z7z.js";
11
- import { z as re, A as ae, C as oe, D as V, F as ie, j as E, G as U, S as ce, I as le } from "./index-BDxJWWyy.js";
11
+ import { z as re, A as ae, C as oe, D as V, F as ie, f as E, G as U, S as ce, I as le } from "./index-MzlPbe9t.js";
12
12
  import { p as ue, S as de, r as fe, F as he, L as me, R as ve, a as pe, b as xe, O as ge, I as Te } from "./landmarkMask-DHivVjJm.js";
13
- import { u as X } from "./landmarks-C3LvDhMt.js";
13
+ import { u as X } from "./landmarks-BgLF-yfd.js";
14
14
  const K = (e = 1, s = 1) => {
15
15
  const t = new d.DataTexture(
16
16
  new Uint8Array(e * s),
@@ -1,4 +1,4 @@
1
- import { M as D, g as I } from "./renderPasses-C0wu5Cwg.js";
1
+ import { M as D, g as I } from "./renderPasses-CLOTeP38.js";
2
2
  const p = {
3
3
  background: "background",
4
4
  scene3d: "general",
@@ -3,11 +3,11 @@ import { useLoader as fe, useThree as Bt, useFrame as zt } from "@react-three/fi
3
3
  import { useRef as o, useMemo as $, useState as qe, useCallback as He, useEffect as Se } from "react";
4
4
  import * as E from "three";
5
5
  import { MathUtils as Je, Color as Ht, Vector2 as Ve } from "three";
6
- import { J as se, q as Vt, j as jt, I as Wt } from "./index-BDxJWWyy.js";
7
- import { b as Xt, c as $t, f as Kt } from "./selectors-J06V0eDb.js";
8
- import { t as Yt, p as qt, F as Jt } from "./index-CbBCl2ZU.js";
6
+ import { J as se, q as Vt, f as Wt, I as Xt } from "./index-MzlPbe9t.js";
7
+ import { u as jt, c as $t, f as Kt } from "./selectors-CiawE6Ox.js";
8
+ import { t as Yt, p as qt, F as Jt } from "./index-Dk1UOe-H.js";
9
9
  import { T as Ee, c as Qt, a as Zt, s as en } from "./textures-BVwo9Z7z.js";
10
- import { t as tn, c as nn, a as sn } from "./index-CicO_Tnw.js";
10
+ import { t as tn, c as nn, a as sn } from "./index-B34w-TyW.js";
11
11
  import { TransformControls as rn } from "@react-three/drei";
12
12
  const an = (e) => {
13
13
  const n = o(null);
@@ -182,7 +182,7 @@ const an = (e) => {
182
182
  toneMapped: a
183
183
  }
184
184
  );
185
- }, Me = Math.PI / 180, ve = 180 / Math.PI, G = (e) => Number(e.toFixed(6)), je = {
185
+ }, Me = Math.PI / 180, ve = 180 / Math.PI, G = (e) => Number(e.toFixed(6)), We = {
186
186
  enabled: !0,
187
187
  linked: {
188
188
  position: !1,
@@ -296,7 +296,7 @@ const an = (e) => {
296
296
  textureMap: V.canonical,
297
297
  alphaMap: J.canonical,
298
298
  alphaOpacity: 1
299
- }, We = {
299
+ }, Xe = {
300
300
  ...yn,
301
301
  blendMode: Ze.hardLight,
302
302
  blendOpacity: 0.85,
@@ -357,7 +357,7 @@ const Ae = {
357
357
  311,
358
358
  310,
359
359
  415
360
- ]), Xe = [
360
+ ]), je = [
361
361
  61,
362
362
  146,
363
363
  91,
@@ -472,10 +472,10 @@ const Ae = {
472
472
  const [k, S] = h[b] ?? [0, 0];
473
473
  F.push(k, S);
474
474
  }
475
- const U = new Uint16Array(a), j = new Uint16Array(r), A = new Uint16Array(a.length + r.length);
476
- A.set(U), A.set(j, U.length);
475
+ const U = new Uint16Array(a), W = new Uint16Array(r), A = new Uint16Array(a.length + r.length);
476
+ A.set(U), A.set(W, U.length);
477
477
  const x = tn(
478
- nn(n, Xe, $e),
478
+ nn(n, je, $e),
479
479
  n
480
480
  );
481
481
  return {
@@ -485,11 +485,11 @@ const Ae = {
485
485
  lipEdgeDistance: sn(
486
486
  x,
487
487
  g,
488
- Xe,
488
+ je,
489
489
  $e
490
490
  ),
491
491
  leftEyeIndices: U,
492
- rightEyeIndices: j,
492
+ rightEyeIndices: W,
493
493
  eyeIndices: A,
494
494
  noseIndices: new Uint16Array(i),
495
495
  uvs: new Float32Array(F),
@@ -657,7 +657,7 @@ const Ae = {
657
657
  masked: l = !1,
658
658
  maskColor: F,
659
659
  maskOpacity: U,
660
- maskSourceUrl: j,
660
+ maskSourceUrl: W,
661
661
  maskTextureSource: A,
662
662
  materialType: x,
663
663
  opacity: b,
@@ -681,7 +681,7 @@ const Ae = {
681
681
  },
682
682
  [p, M]
683
683
  );
684
- const T = L === V.style2 ? _ : I, W = L !== V.none, ae = Ue(x, k, L), ue = [
684
+ const T = L === V.style2 ? _ : I, X = L !== V.none, ae = Ue(x, k, L), ue = [
685
685
  "composite-material",
686
686
  L,
687
687
  e,
@@ -704,10 +704,10 @@ const Ae = {
704
704
  source: Ce(A) ? "texture" : A,
705
705
  color: En(A) ? F : "#ffffff",
706
706
  opacity: U,
707
- textureUrl: Ce(A) ? j : "",
707
+ textureUrl: Ce(A) ? W : "",
708
708
  gradient: Qe(F)
709
709
  }),
710
- [F, U, j, A]
710
+ [F, U, W, A]
711
711
  ), v = $(
712
712
  () => ({
713
713
  cameraTexture: { value: null },
@@ -717,7 +717,7 @@ const Ae = {
717
717
  opacity: { value: b },
718
718
  blendMode: { value: Ke[t] },
719
719
  blendOpacity: { value: s },
720
- useCanonicalTexture: { value: W ? 1 : 0 },
720
+ useCanonicalTexture: { value: X ? 1 : 0 },
721
721
  useAlphaMask: { value: e === J.canonical ? 1 : 0 },
722
722
  alphaOpacity: { value: n },
723
723
  compositeShading: { value: i ? 1 : 0 },
@@ -732,12 +732,12 @@ const Ae = {
732
732
  s,
733
733
  r,
734
734
  i,
735
- W,
735
+ X,
736
736
  b
737
737
  ]
738
738
  );
739
739
  if (Se(() => {
740
- v.cameraTexture.value = a ?? I, v.canonicalTexture.value = T, v.alphaMask.value = m, v.textureTint.value.set(r), v.opacity.value = b, v.blendMode.value = Ke[t], v.blendOpacity.value = s, v.useCanonicalTexture.value = W ? 1 : 0, v.useAlphaMask.value = e === J.canonical ? 1 : 0, v.alphaOpacity.value = n, v.compositeShading.value = i ? 1 : 0;
740
+ v.cameraTexture.value = a ?? I, v.canonicalTexture.value = T, v.alphaMask.value = m, v.textureTint.value.set(r), v.opacity.value = b, v.blendMode.value = Ke[t], v.blendOpacity.value = s, v.useCanonicalTexture.value = X ? 1 : 0, v.useAlphaMask.value = e === J.canonical ? 1 : 0, v.alphaOpacity.value = n, v.compositeShading.value = i ? 1 : 0;
741
741
  }, [
742
742
  e,
743
743
  m,
@@ -749,7 +749,7 @@ const Ae = {
749
749
  i,
750
750
  v,
751
751
  I,
752
- W,
752
+ X,
753
753
  b,
754
754
  T
755
755
  ]), l)
@@ -806,7 +806,7 @@ const Ae = {
806
806
  },
807
807
  ue
808
808
  );
809
- const Y = W ? T : null, z = e === J.canonical && n > 0 ? m : null, q = `${x}-${L}-${e}-${n > 0 ? "alpha-on" : "alpha-off"}`;
809
+ const Y = X ? T : null, z = e === J.canonical && n > 0 ? m : null, q = `${x}-${L}-${e}-${n > 0 ? "alpha-on" : "alpha-off"}`;
810
810
  return x === y.standard ? /* @__PURE__ */ f(
811
811
  "meshStandardMaterial",
812
812
  {
@@ -975,7 +975,7 @@ const Ae = {
975
975
  blendMode: l = O.blendMode,
976
976
  blendOpacity: F = O.blendOpacity,
977
977
  showOverlayMask: U = !1,
978
- showMouthMask: j = Ae.mouth,
978
+ showMouthMask: W = Ae.mouth,
979
979
  showEyeMask: A = Ae.eyes,
980
980
  showLeftEyeMask: x,
981
981
  showRightEyeMask: b,
@@ -990,7 +990,7 @@ const Ae = {
990
990
  showBaseGeometry: M = !0,
991
991
  showNoseGeometry: p = !0,
992
992
  maskTextureSource: T = Q.textureSource,
993
- maskSourceUrl: W = "",
993
+ maskSourceUrl: X = "",
994
994
  maskColor: ae = Q.color,
995
995
  maskOpacity: ue = Q.opacity,
996
996
  faceTextureUrl: B = "",
@@ -1007,11 +1007,11 @@ const Ae = {
1007
1007
  holdMs: Ie = 250,
1008
1008
  predictMs: Oe = 0
1009
1009
  }) => {
1010
- const he = Xt(jt.FACE_TRACKER), Le = $t(), { camera: rt } = Bt(), w = Sn({ mesh: tt, url: nt }), we = o(null), at = o(null), ot = o(null), it = o(null), lt = o(null), ct = o(null), ft = o(null), ut = o(null), dt = o(null), mt = o(null), ht = o(null), pt = o(null), yt = o(null), gt = o(null), bt = o(null), Et = o(null), Mt = o(null), vt = o(null), At = o(null), xt = o(null), R = $(
1010
+ const he = jt(Wt.FACE_TRACKER), Le = $t(), { camera: rt } = Bt(), w = Sn({ mesh: tt, url: nt }), we = o(null), at = o(null), ot = o(null), it = o(null), lt = o(null), ct = o(null), ft = o(null), ut = o(null), dt = o(null), mt = o(null), ht = o(null), pt = o(null), yt = o(null), gt = o(null), bt = o(null), Et = o(null), Mt = o(null), vt = o(null), At = o(null), xt = o(null), R = $(
1011
1011
  () => w ? Ln(w) : null,
1012
1012
  [w]
1013
1013
  ), De = o(null), Ne = o(-1 / 0), oe = o(null);
1014
- oe.current || (oe.current = new Wt({ holdMs: Ie, predictMs: Oe })), oe.current.setOptions({ holdMs: Ie, predictMs: Oe });
1014
+ oe.current || (oe.current = new Xt({ holdMs: Ie, predictMs: Oe })), oe.current.setOptions({ holdMs: Ie, predictMs: Oe });
1015
1015
  const Tt = o(new E.Vector3()), Rt = o({ x: 0, y: 0, z: 0 }), kt = o({ x: 0, y: 0, z: 0 }), ie = o(!1), St = On[g], _t = n ?? t, Ct = Kt(), le = In(
1016
1016
  {
1017
1017
  leftEye: L ?? S,
@@ -1020,7 +1020,7 @@ const Ae = {
1020
1020
  rightEyeMask: U || (b ?? A)
1021
1021
  },
1022
1022
  Ct
1023
- ), Ft = U || j, Ut = U || k, It = {
1023
+ ), Ft = U || W, Ut = U || k, It = {
1024
1024
  base: we,
1025
1025
  mouth: at,
1026
1026
  lips: ot,
@@ -1069,7 +1069,7 @@ const Ae = {
1069
1069
  masked: d,
1070
1070
  maskColor: ae,
1071
1071
  maskOpacity: ue,
1072
- maskSourceUrl: W,
1072
+ maskSourceUrl: X,
1073
1073
  maskTextureSource: T,
1074
1074
  materialType: a,
1075
1075
  opacity: s,
@@ -1077,7 +1077,7 @@ const Ae = {
1077
1077
  side: St,
1078
1078
  textureMap: i
1079
1079
  }
1080
- ), X = Un.map(
1080
+ ), j = Un.map(
1081
1081
  (d) => ({
1082
1082
  ...d,
1083
1083
  geometryRef: It[d.key],
@@ -1087,7 +1087,7 @@ const Ae = {
1087
1087
  ), Dt = (d) => qt(d, rt, Tt.current);
1088
1088
  return zt((d) => {
1089
1089
  var Be, ze;
1090
- const N = we.current, ee = (ze = (Be = he == null ? void 0 : he.detectionResults) == null ? void 0 : Be.faceLandmarks) == null ? void 0 : ze[e], Nt = X.every(
1090
+ const N = we.current, ee = (ze = (Be = he == null ? void 0 : he.detectionResults) == null ? void 0 : Be.faceLandmarks) == null ? void 0 : ze[e], Nt = j.every(
1091
1091
  (c) => c.geometryRef.current && c.meshRef.current
1092
1092
  );
1093
1093
  if (!w || !R || !N || !Nt) return;
@@ -1096,12 +1096,12 @@ const Ae = {
1096
1096
  d.clock.elapsedTime * 1e3
1097
1097
  )[0];
1098
1098
  if (!P || P.length < w.vertexCount) {
1099
- X.forEach((c) => {
1099
+ j.forEach((c) => {
1100
1100
  c.meshRef.current.visible = !1;
1101
1101
  });
1102
1102
  return;
1103
1103
  }
1104
- if ((De.current !== w || X.some((c) => !c.geometryRef.current.index)) && (X.forEach((c) => {
1104
+ if ((De.current !== w || j.some((c) => !c.geometryRef.current.index)) && (j.forEach((c) => {
1105
1105
  wn(c.geometryRef.current, R, c.getIndices(w));
1106
1106
  }), R.uv.needsUpdate = !0, R.lipEdge.needsUpdate = !0, De.current = w, ie.current = !1), en(d.clock.elapsedTime, Ne.current, st)) return;
1107
1107
  Ne.current = d.clock.elapsedTime;
@@ -1124,12 +1124,12 @@ const Ae = {
1124
1124
  ) : D, ge = c * 3, ce = c * 2, be = Dt(Gt);
1125
1125
  pe[ge] = be.x, pe[ge + 1] = be.y, pe[ge + 2] = be.z, Pe[ce] = D.x, Pe[ce + 1] = 1 - D.y, Ge && (ye[ce] = D.x, ye[ce + 1] = 1 - D.y);
1126
1126
  }
1127
- Ge ? (N.attributes.uv.needsUpdate = !0, ie.current = !0) : ie.current && (ye.set(w.uvs), N.attributes.uv.needsUpdate = !0, ie.current = !1), X.forEach((c) => {
1127
+ Ge ? (N.attributes.uv.needsUpdate = !0, ie.current = !0) : ie.current && (ye.set(w.uvs), N.attributes.uv.needsUpdate = !0, ie.current = !1), j.forEach((c) => {
1128
1128
  c.meshRef.current.visible = c.visible;
1129
- }), N.attributes.position.needsUpdate = !0, N.attributes.faceUv.needsUpdate = !0, X.forEach((c) => {
1129
+ }), N.attributes.position.needsUpdate = !0, N.attributes.faceUv.needsUpdate = !0, j.forEach((c) => {
1130
1130
  c.geometryRef.current.computeVertexNormals();
1131
1131
  });
1132
- }), /* @__PURE__ */ f("group", { scale: [me, me, me], children: X.map((d) => {
1132
+ }), /* @__PURE__ */ f("group", { scale: [me, me, me], children: j.map((d) => {
1133
1133
  const N = Z ? typeof Z == "function" ? Z({
1134
1134
  cameraTexture: Le ?? null,
1135
1135
  geometryKey: d.key,
@@ -1152,8 +1152,8 @@ const Ae = {
1152
1152
  );
1153
1153
  }) });
1154
1154
  }, Nn = `${se.sdkAssetsBaseUrl}/Canonical_Face_Color.png`, Pn = `${se.sdkAssetsBaseUrl}/Canonical_Face_Color_style_2.png`, Gn = `${se.sdkAssetsBaseUrl}/Canonical_Face_Color_Mask.png`, Bn = {
1155
- ...je,
1156
- position: { ...je.position, y: 1e-3 }
1155
+ ...We,
1156
+ position: { ...We.position, y: 1e-3 }
1157
1157
  }, as = {
1158
1158
  enabled: !0,
1159
1159
  faceIndex: 0,
@@ -1190,12 +1190,12 @@ const Ae = {
1190
1190
  const t = { ...e, ...n };
1191
1191
  return n.maskTextureSource && !Ce(n.maskTextureSource) && (t.maskSourceUrl = ""), t.materialType === y.shader && n.shaderPreset === H.composite ? {
1192
1192
  ...t,
1193
- ...We,
1193
+ ...Xe,
1194
1194
  materialType: y.shader,
1195
1195
  shaderPreset: H.composite
1196
1196
  } : t.materialType === y.shader && t.shaderPreset === H.composite && t.textureMap === V.none ? {
1197
1197
  ...t,
1198
- textureMap: We.textureMap
1198
+ textureMap: Xe.textureMap
1199
1199
  } : t;
1200
1200
  }, is = ({ transform: e, value: n, materialOverride: t }) => n.enabled ? /* @__PURE__ */ Fe(Ye, { children: [
1201
1201
  /* @__PURE__ */ f(
@@ -1270,7 +1270,7 @@ export {
1270
1270
  cs as g,
1271
1271
  pn as h,
1272
1272
  as as i,
1273
- je as j,
1273
+ We as j,
1274
1274
  ts as k,
1275
1275
  Qe as l,
1276
1276
  is as m,
@@ -1283,7 +1283,7 @@ export {
1283
1283
  Ce as t,
1284
1284
  an as u,
1285
1285
  os as v,
1286
- Xe as w,
1286
+ je as w,
1287
1287
  fs as x,
1288
1288
  Ke as y,
1289
1289
  O as z
@@ -1,5 +1,5 @@
1
- import { a, c as r, b as s, d as n, e as c, f as o, g as S, i as l, h as d, j as m, k as p, l as i, q as u, m as f, n as D, o as g, p as O, r as b, s as R, t as j, u as C, v as T, w as G, x as I, y as v, z as P, A as h } from "./index-D5NbXaCn.js";
2
- import { D as x, R as _, c as M, g as U, m as y, a as A, r as F, b as L, v as N } from "./renderGroups-uYPzUa66.js";
1
+ import { a, c as r, b as s, d as n, e as c, f as o, g as S, i as l, h as d, j as m, k as p, l as i, q as u, m as f, n as D, o as g, p as O, r as b, s as R, t as j, u as C, v as T, w as G, x as I, y as v, z as P, A as h } from "./index-B9ph9k5I.js";
2
+ import { D as x, R as _, c as M, g as U, m as y, a as A, r as F, b as L, v as N } from "./renderGroups-Cul4eOG8.js";
3
3
  export {
4
4
  x as DEFAULT_RENDER_GROUP_IDS,
5
5
  _ as RENDER_GROUP_POLICIES,
@@ -3,7 +3,7 @@ var Me = (b, a, e) => a in b ? Ge(b, a, { enumerable: !0, configurable: !0, writ
3
3
  var ne = (b, a, e) => Me(b, typeof a != "symbol" ? a + "" : a, e);
4
4
  import * as P from "three";
5
5
  import { TrianglesDrawMode as Pe, TriangleFanDrawMode as Z, TriangleStripDrawMode as ge, Loader as _e, LoaderUtils as B, FileLoader as me, MeshPhysicalMaterial as v, Vector2 as Ae, Color as _, LinearSRGBColorSpace as y, SRGBColorSpace as I, SpotLight as Ce, PointLight as De, DirectionalLight as He, Matrix4 as q, Vector3 as C, Quaternion as xe, InstancedMesh as Ne, InstancedBufferAttribute as Ke, Object3D as ke, TextureLoader as Be, ImageBitmapLoader as Ie, BufferAttribute as U, InterleavedBuffer as qe, InterleavedBufferAttribute as ze, LinearMipmapLinearFilter as Te, NearestMipmapLinearFilter as Ue, LinearMipmapNearestFilter as Qe, NearestMipmapNearestFilter as We, LinearFilter as $, NearestFilter as Re, RepeatWrapping as ee, MirroredRepeatWrapping as Ve, ClampToEdgeWrapping as Xe, PointsMaterial as Je, Material as Q, LineBasicMaterial as Ye, MeshStandardMaterial as we, DoubleSide as Ze, MeshBasicMaterial as K, PropertyBinding as $e, BufferGeometry as ea, SkinnedMesh as aa, Mesh as ta, LineSegments as sa, Line as na, LineLoop as ia, Points as ra, Group as W, PerspectiveCamera as oa, MathUtils as ca, OrthographicCamera as ba, Skeleton as la, AnimationClip as da, Bone as fa, InterpolateDiscrete as pa, InterpolateLinear as Ee, Texture as ie, VectorKeyframeTrack as re, NumberKeyframeTrack as oe, QuaternionKeyframeTrack as ce, ColorManagement as be, FrontSide as ha, Interpolant as ua, Box3 as ga, Sphere as ma } from "three";
6
- import { q as je, v as Aa } from "./index-BDxJWWyy.js";
6
+ import { q as je, v as Aa } from "./index-MzlPbe9t.js";
7
7
  const se = (b) => {
8
8
  if (!b) return 0;
9
9
  const a = b.image;
@@ -1,5 +1,5 @@
1
1
  import { useSyncExternalStore as s, useMemo as u } from "react";
2
- import { u as d, m as g, s as p, i as h, c as S } from "./index-BDxJWWyy.js";
2
+ import { u as d, m as g, s as p, i as h, c as S } from "./index-MzlPbe9t.js";
3
3
  const r = () => d().session.store, o = (e) => (t) => e.subscribe(t), k = () => {
4
4
  const e = r();
5
5
  return s(
@@ -175,8 +175,8 @@ const r = () => d().session.store, o = (e) => (t) => e.subscribe(t), k = () => {
175
175
  return u(() => Array.from(t.keys()), [t]);
176
176
  };
177
177
  export {
178
- F as a,
179
- I as b,
178
+ H as a,
179
+ F as b,
180
180
  O as c,
181
181
  k as d,
182
182
  R as e,
@@ -192,5 +192,5 @@ export {
192
192
  P as o,
193
193
  D as p,
194
194
  K as q,
195
- H as u
195
+ I as u
196
196
  };
@@ -1,7 +1,7 @@
1
- import { J as L, u as z, w as _, j as F } from "./index-BDxJWWyy.js";
1
+ import { J as L, u as z, w as _, f as F } from "./index-MzlPbe9t.js";
2
2
  import { jsx as r, jsxs as y } from "react/jsx-runtime";
3
3
  import { createPortal as W } from "react-dom";
4
- import { useState as m, useRef as R, useMemo as j, useEffect as h } from "react";
4
+ import { useState as m, useRef as R, useMemo as C, useEffect as h } from "react";
5
5
  import { c as p, X as P } from "./x-Co8jPhP0.js";
6
6
  const k = (e, t) => `${L.debugMediaBaseUrl.replace(/\/$/, "")}/${e}/${t}`, w = (e) => e.replace(/\.[^.]+$/, "").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()), T = [
7
7
  ["person_fullbody.mp4", ["face", "body"]],
@@ -182,7 +182,7 @@ const te = [
182
182
  position: "fixed",
183
183
  zIndex: 2e4,
184
184
  pointerEvents: "none"
185
- }, C = {
185
+ }, j = {
186
186
  pointerEvents: "auto",
187
187
  border: "1px solid rgba(255, 255, 255, 0.12)",
188
188
  background: "rgba(8, 15, 28, 0.58)",
@@ -192,7 +192,7 @@ const te = [
192
192
  color: "#f8fafc",
193
193
  display: "flex"
194
194
  }, oe = {
195
- ...C,
195
+ ...j,
196
196
  width: 34,
197
197
  height: 34,
198
198
  borderRadius: 17,
@@ -201,7 +201,7 @@ const te = [
201
201
  cursor: "pointer",
202
202
  transition: "transform 150ms ease"
203
203
  }, ie = {
204
- ...C,
204
+ ...j,
205
205
  flexDirection: "column",
206
206
  borderRadius: 12,
207
207
  overflow: "hidden",
@@ -281,7 +281,7 @@ const te = [
281
281
  sources: n,
282
282
  style: o
283
283
  }) => {
284
- const [i, s] = m(!1), [u, f] = m({ x: 16, y: 16 }), [l, b] = m(e.kind), c = R(null), x = j(
284
+ const [i, s] = m(!1), [u, f] = m({ x: 16, y: 16 }), [l, b] = m(e.kind), c = R(null), x = C(
285
285
  () => ({
286
286
  webcam: n.filter((a) => a.kind === "webcam"),
287
287
  image: n.filter((a) => a.kind === "image"),
@@ -414,7 +414,7 @@ const te = [
414
414
  return () => {
415
415
  for (const s of i) e.removeEventListener(s, o);
416
416
  };
417
- }, [e]), j(() => !e || !t ? null : {
417
+ }, [e]), C(() => !e || !t ? null : {
418
418
  ...t,
419
419
  pause: () => e.pause(),
420
420
  play: () => {
@@ -480,7 +480,7 @@ const te = [
480
480
  f = !0, l == null || l.release(), i(null);
481
481
  };
482
482
  }, [e, t == null ? void 0 : t.numFaces, s, n]), ye(o);
483
- }, je = be;
483
+ }, Ce = be;
484
484
  export {
485
485
  Re as M,
486
486
  K as a,
@@ -489,5 +489,5 @@ export {
489
489
  Me as d,
490
490
  Ee as f,
491
491
  A as s,
492
- je as u
492
+ Ce as u
493
493
  };