@vincentt-xr/sdk 2.0.0-alpha.17 → 2.0.0-alpha.19

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 (74) hide show
  1. package/GROUNDING.md +225 -0
  2. package/components.json +221 -0
  3. package/dist/{CanonicalHeadFrame-vn-jM9fG.js → CanonicalHeadFrame-CQe2YX9a.js} +3 -3
  4. package/dist/{DebuggerUI-DDpU-nBF.js → DebuggerUI-CKYrYmod.js} +1 -1
  5. package/dist/{FaceRetouch-D2xH5OpW.js → FaceRetouch-l7y4oZBu.js} +4 -4
  6. package/dist/Scenes-BX0bR1j4.js +44 -0
  7. package/dist/Scenes-Dtt8UGE8.cjs +1 -0
  8. package/dist/audio/AudioPlayer.d.ts +2 -1
  9. package/dist/{bodyMaskMaterial-C3aXItLo.js → bodyMaskMaterial-BOdSJUEM.js} +1 -1
  10. package/dist/{cache-C85JjyZA.js → cache-Mu-VO_6E.js} +2 -2
  11. package/dist/components/Button/index.d.ts +23 -0
  12. package/dist/components/Button/safeLink.d.ts +6 -0
  13. package/dist/components/HtmlRegion/index.d.ts +8 -0
  14. package/dist/components/Light/index.d.ts +26 -0
  15. package/dist/components/Model/index.d.ts +16 -0
  16. package/dist/components/Object3D/index.d.ts +13 -0
  17. package/dist/components/PaintedFace/index.d.ts +24 -0
  18. package/dist/components/ScreenImage/types.d.ts +2 -2
  19. package/dist/components/ScreenText/types.d.ts +2 -1
  20. package/dist/components/ThemeProvider/index.d.ts +24 -0
  21. package/dist/components/index.d.ts +6 -0
  22. package/dist/{contexts-B5GODwuV.js → contexts-Cl-4dUOI.js} +2 -2
  23. package/dist/debug-ui/media-source.js +1 -1
  24. package/dist/debug-ui.cjs +1 -1
  25. package/dist/debug-ui.js +11 -11
  26. package/dist/{drawNormalizedCrop-BLfB484W.js → drawNormalizedCrop-D606u5-F.js} +5 -5
  27. package/dist/editor-defs/definitions.d.ts +2 -0
  28. package/dist/editor-defs/index.d.ts +3 -0
  29. package/dist/editor-defs/types.d.ts +54 -0
  30. package/dist/editor-sample/sample.d.ts +15 -0
  31. package/dist/editor-scenes.cjs +1 -1
  32. package/dist/editor-scenes.js +39 -25
  33. package/dist/entries/core.d.ts +13 -1
  34. package/dist/entries/face-effects.d.ts +2 -0
  35. package/dist/face-effects.cjs +68 -68
  36. package/dist/face-effects.js +1353 -1333
  37. package/dist/{getFaceInfo-D_tCSQC7.js → getFaceInfo-Mt44zlej.js} +1 -1
  38. package/dist/{index-B9DdHE4u.js → index-B0EYdofX.js} +1 -1
  39. package/dist/{index-CTqQJj5p.js → index-BDxJWWyy.js} +85 -85
  40. package/dist/{index-DlP4xxaT.js → index-Bn72laBn.js} +4 -4
  41. package/dist/{index-Otoo-rph.js → index-CM3jkleV.js} +240 -223
  42. package/dist/{index-D10O6vqR.js → index-CbBCl2ZU.js} +2 -2
  43. package/dist/{index-CNt8esFO.js → index-CicO_Tnw.js} +1 -1
  44. package/dist/{index-Z5eKEUdE.js → index-D5NbXaCn.js} +4 -4
  45. package/dist/{index-D_pgrgJg.cjs → index-fDwL47CM.cjs} +3 -3
  46. package/dist/instructions.js +7 -7
  47. package/dist/{internal-TD4QhIry.js → internal-BoFDq5hC.js} +3 -3
  48. package/dist/internal.js +2 -2
  49. package/dist/{landmarks-vLy5QKt6.js → landmarks-C3LvDhMt.js} +1 -1
  50. package/dist/low-level.js +17 -17
  51. package/dist/main.cjs +1 -1
  52. package/dist/main.js +1046 -814
  53. package/dist/particles.js +5 -5
  54. package/dist/product.js +2 -2
  55. package/dist/{providers-DmJlgrDD.js → providers-Bxt_MfPK.js} +3 -3
  56. package/dist/{renderGroups-BcQYy_J2.js → renderGroups-uYPzUa66.js} +1 -1
  57. package/dist/{renderPasses-DIPTIU_x.js → renderPasses-C0wu5Cwg.js} +4 -4
  58. package/dist/scene-object.js +2 -2
  59. package/dist/scenes/Scenes.d.ts +17 -0
  60. package/dist/scenes/edit.d.ts +9 -1
  61. package/dist/{segmentation-CZs5aVvY.js → segmentation-DccvYBBO.js} +9 -9
  62. package/dist/{selectors-K5JKCWxw.js → selectors-J06V0eDb.js} +1 -1
  63. package/dist/{session-DHBNTyJJ.js → session-CYiWfcvz.js} +1 -1
  64. package/dist/tracking.js +25 -25
  65. package/dist/{trigger-BwZ81ENx.js → trigger-CQviD4xp.js} +155 -155
  66. package/dist/{useBodies-BMKHXAOL.js → useBodies-DOuwRuew.js} +2 -2
  67. package/dist/{useFaceInfo-BNVdnprN.js → useFaceInfo-XUGYTdfN.js} +4 -4
  68. package/dist/{useFaceResultReader-B15wn6RB.js → useFaceResultReader-D8wXbF1L.js} +1 -1
  69. package/dist/{useIrisTracking-CYm-KDIZ.js → useIrisTracking-B0uLWgNE.js} +10 -10
  70. package/dist/{useXRCapabilities-ClWlG5_Y.js → useXRCapabilities-DPUOvpdf.js} +1 -1
  71. package/package.json +6 -2
  72. package/settings.json +1 -1
  73. package/dist/Scenes-B30XZfTq.js +0 -29
  74. package/dist/Scenes-BLL7YvLw.cjs +0 -1
@@ -1,23 +1,23 @@
1
- var Pe = Object.defineProperty;
2
- var ze = (e, n, t) => n in e ? Pe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
1
+ var Je = Object.defineProperty;
2
+ var ze = (e, n, t) => n in e ? Je(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var $ = (e, n, t) => ze(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { jsx as i, jsxs as T, Fragment as ee } from "react/jsx-runtime";
4
+ import { jsx as i, jsxs as b, Fragment as ee } from "react/jsx-runtime";
5
5
  import { useFrame as O, useThree as re } from "@react-three/fiber";
6
- import { useRef as x, Component as Se, useState as Be, useEffect as Z, useCallback as oe, useMemo as b, useLayoutEffect as Ke } from "react";
7
- import * as m from "three";
8
- import { Quaternion as ge, Vector3 as P, Euler as Oe } from "three";
9
- import { M as Ve } from "./index-DlP4xxaT.js";
10
- import { u as fe, T as U, m as Ne, r as He } from "./renderPasses-DIPTIU_x.js";
11
- import { N as Qe, s as Ue, t as Ze, b as he, P as je, I as qe, M as _e, C as $e } from "./index-Z5eKEUdE.js";
6
+ import { useRef as x, Component as Se, useState as Be, useEffect as Z, useCallback as oe, useMemo as y, useLayoutEffect as Ke } from "react";
7
+ import * as v from "three";
8
+ import { Quaternion as ge, Vector3 as J, Euler as Oe } from "three";
9
+ import { M as Ne } from "./index-Bn72laBn.js";
10
+ import { u as fe, T as U, m as Ve, r as He } from "./renderPasses-C0wu5Cwg.js";
11
+ import { N as Qe, s as Ue, t as Ze, b as he, P as je, I as qe, M as _e, C as $e } from "./index-D5NbXaCn.js";
12
12
  import { u as Ee, T as en, S as nn } from "./TextLabel-fEF1o3wE.js";
13
13
  import { a as Te, u as Ae, S as tn } from "./context-DTxSQvp4.js";
14
14
  import { u as be } from "./useEditOverrides-BBkK8cN2.js";
15
- import { d as rn, j as on, k as An, f as sn, c as an, S as cn } from "./contexts-B5GODwuV.js";
16
- import { O as ye, bb as ln, N as dn, a1 as un, K as ke, u as gn } from "./index-CTqQJj5p.js";
17
- import { F as fn } from "./index-D10O6vqR.js";
18
- import { T as hn, s as En } from "./index-CNt8esFO.js";
19
- import { r as vn } from "./landmarks-vLy5QKt6.js";
20
- import { a as mn } from "./useFaceInfo-BNVdnprN.js";
15
+ import { d as rn, j as on, k as An, f as sn, c as an, S as cn } from "./contexts-Cl-4dUOI.js";
16
+ import { O as ye, bb as ln, N as dn, aD as un, K as ke, u as gn } from "./index-BDxJWWyy.js";
17
+ import { F as fn } from "./index-CbBCl2ZU.js";
18
+ import { T as hn, s as En } from "./index-CicO_Tnw.js";
19
+ import { r as vn } from "./landmarks-C3LvDhMt.js";
20
+ import { a as mn } from "./useFaceInfo-XUGYTdfN.js";
21
21
  import { useTexture as In } from "@react-three/drei";
22
22
  const z = {
23
23
  width: 720,
@@ -79,11 +79,11 @@ const Bn = (e, n) => e || (n === "cover" ? "fill" : n === "stretch" ? "stretch"
79
79
  break;
80
80
  case "fillAndCut":
81
81
  if (d = ve(n, t), t > n) {
82
- const h = n / t;
83
- a = [h, 1], g = [(1 - h) / 2, 0];
82
+ const f = n / t;
83
+ a = [f, 1], g = [(1 - f) / 2, 0];
84
84
  } else if (t < n) {
85
- const h = t / n;
86
- a = [1, h], g = [0, (1 - h) / 2];
85
+ const f = t / n;
86
+ a = [1, f], g = [0, (1 - f) / 2];
87
87
  }
88
88
  break;
89
89
  }
@@ -121,34 +121,34 @@ const Bn = (e, n) => e || (n === "cover" ? "fill" : n === "stretch" ? "stretch"
121
121
  }, Mn = (e) => {
122
122
  switch (e) {
123
123
  case "add":
124
- return { blending: m.AdditiveBlending };
124
+ return { blending: v.AdditiveBlending };
125
125
  case "subtract":
126
- return { blending: m.SubtractiveBlending };
126
+ return { blending: v.SubtractiveBlending };
127
127
  case "multiply":
128
- return { blending: m.MultiplyBlending };
128
+ return { blending: v.MultiplyBlending };
129
129
  case "screen":
130
130
  return {
131
- blending: m.CustomBlending,
132
- blendSrc: m.OneFactor,
133
- blendDst: m.OneMinusSrcColorFactor,
134
- blendEquation: m.AddEquation
131
+ blending: v.CustomBlending,
132
+ blendSrc: v.OneFactor,
133
+ blendDst: v.OneMinusSrcColorFactor,
134
+ blendEquation: v.AddEquation
135
135
  };
136
136
  case "lighten":
137
137
  return {
138
- blending: m.CustomBlending,
139
- blendSrc: m.OneFactor,
140
- blendDst: m.OneFactor,
141
- blendEquation: m.MaxEquation
138
+ blending: v.CustomBlending,
139
+ blendSrc: v.OneFactor,
140
+ blendDst: v.OneFactor,
141
+ blendEquation: v.MaxEquation
142
142
  };
143
143
  case "darken":
144
144
  return {
145
- blending: m.CustomBlending,
146
- blendSrc: m.OneFactor,
147
- blendDst: m.OneFactor,
148
- blendEquation: m.MinEquation
145
+ blending: v.CustomBlending,
146
+ blendSrc: v.OneFactor,
147
+ blendDst: v.OneFactor,
148
+ blendEquation: v.MinEquation
149
149
  };
150
150
  default:
151
- return { blending: m.NormalBlending };
151
+ return { blending: v.NormalBlending };
152
152
  }
153
153
  }, Ln = `
154
154
  varying vec2 vUv;
@@ -171,10 +171,10 @@ vec3 mixed=applyAdvancedBlend(base,image.rgb);gl_FragColor=vec4(mix(base,mixed,i
171
171
  const e = document.createElement("canvas");
172
172
  e.width = 256, e.height = 256;
173
173
  const n = e.getContext("2d");
174
- if (!n) return new m.CanvasTexture(e);
174
+ if (!n) return new v.CanvasTexture(e);
175
175
  const t = n.createRadialGradient(96, 80, 10, 128, 128, 128);
176
176
  t.addColorStop(0, "#ffffff"), t.addColorStop(0.18, "#f8fafc"), t.addColorStop(0.44, "#cbd5e1"), t.addColorStop(0.72, "#475569"), t.addColorStop(1, "#0f172a"), n.fillStyle = t, n.fillRect(0, 0, e.width, e.height);
177
- const o = new m.CanvasTexture(e);
177
+ const o = new v.CanvasTexture(e);
178
178
  return o.needsUpdate = !0, o;
179
179
  }, wn = ["alpha", "red", "green", "luminance"], Fn = (e) => {
180
180
  const n = wn.indexOf(e ?? "alpha");
@@ -258,7 +258,7 @@ class Yn extends Se {
258
258
  return this.state.failed ? null : this.props.children;
259
259
  }
260
260
  }
261
- const Jn = 999, Pn = Math.PI / 180, zn = on([
261
+ const Pn = 999, Jn = Math.PI / 180, zn = on([
262
262
  sn
263
263
  ]);
264
264
  function Kn(e) {
@@ -292,128 +292,128 @@ function Ie({
292
292
  rotation: d = 0,
293
293
  opacity: a = 1,
294
294
  color: g = "#ffffff",
295
- maskTexture: h = null,
296
- maskChannel: f,
297
- maskInvert: E = !1,
298
- maskFeather: u = 0,
299
- maskErode: S = 0,
300
- flipX: k = !1,
301
- flipY: I = !1,
302
- renderOrder: L = Jn,
295
+ maskTexture: f = null,
296
+ maskChannel: I,
297
+ maskInvert: u = !1,
298
+ maskFeather: h = 0,
299
+ maskErode: Q = 0,
300
+ flipX: S = !1,
301
+ flipY: m = !1,
302
+ renderOrder: L = Pn,
303
303
  transparent: M = !0,
304
- alphaTest: v = 0,
305
- overlay: B = !0,
304
+ alphaTest: B = 0,
305
+ overlay: E = !0,
306
306
  visible: W,
307
307
  layoutSize: X
308
308
  }) {
309
- const { size: C } = re(), s = rn(), Q = Le(n, t), j = Q.kind === "image" ? Q.src : Sn, Y = In(j), q = Kn(
310
- Q.kind === "gif" ? Q.src : void 0
311
- ), w = Q.kind === "texture" ? Q.texture : Q.kind === "gif" ? (q == null ? void 0 : q.texture) ?? Y : Y, ie = Te(), se = Bn(A, o), [we, ae] = Be(
309
+ const { size: C } = re(), s = rn(), T = Le(n, t), j = T.kind === "image" ? T.src : Sn, Y = In(j), q = Kn(
310
+ T.kind === "gif" ? T.src : void 0
311
+ ), w = T.kind === "texture" ? T.texture : T.kind === "gif" ? (q == null ? void 0 : q.texture) ?? Y : Y, ie = Te(), se = Bn(A, o), [we, ae] = Be(
312
312
  () => R(w)
313
313
  );
314
314
  Z(() => {
315
315
  ae(R(w));
316
316
  }, [w]);
317
- const ce = Tn(w), J = ce ? we : R(w), Fe = oe(
317
+ const ce = Tn(w), P = ce ? we : R(w), Fe = oe(
318
318
  (F) => ae(F),
319
319
  []
320
- ), le = J.width > 0 && J.height > 0 ? J.width / J.height : bn(w), de = b(() => xn(), []), G = b(
320
+ ), le = P.width > 0 && P.height > 0 ? P.width / P.height : bn(w), de = y(() => xn(), []), G = y(
321
321
  () => Qn(
322
322
  se,
323
323
  ie,
324
324
  le,
325
- k,
326
- I,
325
+ S,
326
+ m,
327
327
  X,
328
- J
328
+ P
329
329
  ),
330
- [se, ie, le, k, I, X, J]
331
- ), y = b(() => {
330
+ [se, ie, le, S, m, X, P]
331
+ ), k = y(() => {
332
332
  const F = w.clone();
333
333
  return F.needsUpdate = !0, F.repeat.set(G.repeat[0], G.repeat[1]), F.offset.set(G.offset[0], G.offset[1]), F;
334
334
  }, [w, G.repeat, G.offset]);
335
- Ee(y), Ee(de);
336
- const V = b(() => Mn(l), [l]), N = yn.has(l) ? l : null, _ = c ?? (s == null ? void 0 : s.finalColorTexture) ?? (s == null ? void 0 : s.sceneColorTexture) ?? null, Xe = N !== null && _ !== null, Ge = b(
335
+ Ee(k), Ee(de);
336
+ const N = y(() => Mn(l), [l]), V = yn.has(l) ? l : null, _ = c ?? (s == null ? void 0 : s.finalColorTexture) ?? (s == null ? void 0 : s.sceneColorTexture) ?? null, Xe = V !== null && _ !== null, Ge = y(
337
337
  () => ({
338
- imageMap: y,
338
+ imageMap: k,
339
339
  backdropMap: _,
340
- resolution: new m.Vector2(C.width, C.height),
341
- tint: new m.Color(g),
340
+ resolution: new v.Vector2(C.width, C.height),
341
+ tint: new v.Color(g),
342
342
  opacity: a,
343
- alphaTest: v,
344
- blendMode: N === null ? 0 : kn[N]
343
+ alphaTest: B,
344
+ blendMode: V === null ? 0 : kn[V]
345
345
  }),
346
346
  [
347
- N,
348
- v,
347
+ V,
348
+ B,
349
349
  _,
350
350
  C.height,
351
351
  C.width,
352
352
  g,
353
- y,
353
+ k,
354
354
  a
355
355
  ]
356
- ), Re = fe(Ge), ue = b(() => (y.updateMatrix(), y.matrix.clone()), [y]), We = b(
356
+ ), Re = fe(Ge), ue = y(() => (k.updateMatrix(), k.matrix.clone()), [k]), We = y(
357
357
  () => ({
358
- imageMap: y,
359
- maskMap: h,
358
+ imageMap: k,
359
+ maskMap: f,
360
360
  mapTransform: ue,
361
- tint: new m.Color(g),
361
+ tint: new v.Color(g),
362
362
  opacity: a,
363
- alphaTest: v,
364
- maskChannel: Fn(f),
365
- maskInvert: E ? 1 : 0,
366
- maskFeather: u,
367
- maskErode: S,
363
+ alphaTest: B,
364
+ maskChannel: Fn(I),
365
+ maskInvert: u ? 1 : 0,
366
+ maskFeather: h,
367
+ maskErode: Q,
368
368
  // Feather radius is expressed in mask texels so it stays the same
369
369
  // on-screen width whatever resolution the mask arrives at.
370
370
  maskTexel: (() => {
371
- const { width: F, height: Je } = R(h ?? y);
372
- return new m.Vector2(1 / Math.max(F, 1), 1 / Math.max(Je, 1));
371
+ const { width: F, height: Pe } = R(f ?? k);
372
+ return new v.Vector2(1 / Math.max(F, 1), 1 / Math.max(Pe, 1));
373
373
  })()
374
374
  }),
375
375
  [
376
- v,
376
+ B,
377
377
  g,
378
378
  ue,
379
- f,
380
- S,
381
- u,
382
- E,
379
+ I,
380
+ Q,
383
381
  h,
384
- y,
382
+ u,
383
+ f,
384
+ k,
385
385
  a
386
386
  ]
387
387
  ), Ye = fe(We);
388
- return /* @__PURE__ */ T("group", { visible: W, children: [
388
+ return /* @__PURE__ */ b("group", { visible: W, children: [
389
389
  ce ? /* @__PURE__ */ i(
390
390
  Rn,
391
391
  {
392
- materialTexture: y,
392
+ materialTexture: k,
393
393
  sourceTexture: w,
394
394
  onSourceSizeChange: Fe
395
395
  }
396
396
  ) : null,
397
- /* @__PURE__ */ T(
397
+ /* @__PURE__ */ b(
398
398
  "mesh",
399
399
  {
400
400
  name: e,
401
401
  scale: G.meshScale,
402
- rotation: [0, 0, d * Pn],
402
+ rotation: [0, 0, d * Jn],
403
403
  renderOrder: L,
404
404
  children: [
405
405
  /* @__PURE__ */ i("planeGeometry", { args: [1, 1] }),
406
- h ? /* @__PURE__ */ i(
406
+ f ? /* @__PURE__ */ i(
407
407
  "shaderMaterial",
408
408
  {
409
409
  uniforms: Ye,
410
410
  vertexShader: Xn,
411
411
  fragmentShader: Gn,
412
412
  transparent: !0,
413
- depthTest: !B,
414
- depthWrite: !B,
413
+ depthTest: !E,
414
+ depthWrite: !E,
415
415
  toneMapped: !1,
416
- ...V
416
+ ...N
417
417
  }
418
418
  ) : Xe ? /* @__PURE__ */ i(
419
419
  "shaderMaterial",
@@ -422,53 +422,53 @@ function Ie({
422
422
  vertexShader: Ln,
423
423
  fragmentShader: Dn,
424
424
  transparent: !1,
425
- depthTest: !B,
426
- depthWrite: !B,
425
+ depthTest: !E,
426
+ depthWrite: !E,
427
427
  toneMapped: !1
428
428
  }
429
429
  ) : r === "standardPBR" ? /* @__PURE__ */ i(
430
430
  "meshStandardMaterial",
431
431
  {
432
- map: y,
432
+ map: k,
433
433
  transparent: M || a < 1,
434
434
  opacity: a,
435
435
  color: g,
436
- alphaTest: v,
437
- depthTest: !B,
438
- depthWrite: !B,
436
+ alphaTest: B,
437
+ depthTest: !E,
438
+ depthWrite: !E,
439
439
  toneMapped: !1,
440
440
  roughness: 0.72,
441
441
  metalness: 0.08,
442
442
  emissive: g,
443
443
  emissiveIntensity: 0.18,
444
- ...V
444
+ ...N
445
445
  }
446
446
  ) : r === "matcap" ? /* @__PURE__ */ i(
447
447
  "meshMatcapMaterial",
448
448
  {
449
- map: y,
449
+ map: k,
450
450
  matcap: de,
451
451
  transparent: M || a < 1,
452
452
  opacity: a,
453
453
  color: g,
454
- alphaTest: v,
455
- depthTest: !B,
456
- depthWrite: !B,
454
+ alphaTest: B,
455
+ depthTest: !E,
456
+ depthWrite: !E,
457
457
  toneMapped: !1,
458
- ...V
458
+ ...N
459
459
  }
460
460
  ) : /* @__PURE__ */ i(
461
461
  "meshBasicMaterial",
462
462
  {
463
- map: y,
463
+ map: k,
464
464
  transparent: M || a < 1,
465
465
  opacity: a,
466
466
  color: g,
467
- alphaTest: v,
468
- depthTest: !B,
469
- depthWrite: !B,
467
+ alphaTest: B,
468
+ depthTest: !E,
469
+ depthWrite: !E,
470
470
  toneMapped: !1,
471
- ...V
471
+ ...N
472
472
  }
473
473
  )
474
474
  ]
@@ -476,18 +476,18 @@ function Ie({
476
476
  )
477
477
  ] });
478
478
  }
479
- const On = { left: 0, right: 0, top: 0, bottom: 0 }, Vn = Math.PI / 180;
480
- function Nn({
479
+ const On = { left: 0, right: 0, top: 0, bottom: 0 }, Nn = Math.PI / 180;
480
+ function Vn({
481
481
  anchors: e,
482
482
  offsets: n,
483
483
  pivot: t,
484
484
  rotation: o,
485
485
  children: A
486
486
  }) {
487
- const { width: r, height: l } = Ae(), c = b(
487
+ const { width: r, height: l } = Ae(), c = y(
488
488
  () => ({ left: -1, right: 1, top: 1, bottom: -1, ...e }),
489
489
  [e]
490
- ), d = b(() => ({ ...On, ...n }), [n]), a = b(
490
+ ), d = y(() => ({ ...On, ...n }), [n]), a = y(
491
491
  () => an(r, l, c, d, t),
492
492
  [l, t, c, d, r]
493
493
  ), g = a.width > 0 && a.height > 0 ? a.width / a.height : null;
@@ -495,7 +495,7 @@ function Nn({
495
495
  "group",
496
496
  {
497
497
  position: [a.centerX - a.pivotX, a.centerY - a.pivotY, 0],
498
- rotation: [0, 0, o * Vn],
498
+ rotation: [0, 0, o * Nn],
499
499
  scale: [a.width, a.height, 1],
500
500
  children: /* @__PURE__ */ i(tn.Provider, { value: g, children: A })
501
501
  }
@@ -581,28 +581,31 @@ function it(e) {
581
581
  rotation: d = 0,
582
582
  transform: a,
583
583
  onScreenTransformChange: g,
584
- transformGuideLayer: h = "scene",
585
- ...f
586
- } = et(e), E = b(
584
+ transformGuideLayer: f = "scene",
585
+ // `locked` is editor metadata; keep it out of the body props.
586
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
587
+ locked: I,
588
+ ...u
589
+ } = et(e), h = y(
587
590
  () => At(n, t, o, A, r),
588
591
  [n, o, t, A, r]
589
- ), u = b(() => ot(c), [c]);
592
+ ), Q = y(() => ot(c), [c]);
590
593
  if (a) {
591
594
  const S = ye(a);
592
595
  return S.enabled ? /* @__PURE__ */ i(
593
596
  Hn,
594
597
  {
595
- guideLayer: h,
598
+ guideLayer: f,
596
599
  transform: S,
597
600
  onChange: g,
598
601
  children: /* @__PURE__ */ i(
599
602
  me,
600
603
  {
601
- ...f,
604
+ ...u,
602
605
  layoutSize: S.size,
603
- renderOrder: f.renderOrder ?? S.renderOrder,
604
- overlay: f.overlay ?? S.overlay,
605
- visible: f.visible ?? S.visible,
606
+ renderOrder: u.renderOrder ?? S.renderOrder,
607
+ overlay: u.overlay ?? S.overlay,
608
+ visible: u.visible ?? S.visible,
606
609
  rotation: 0
607
610
  }
608
611
  )
@@ -610,16 +613,16 @@ function it(e) {
610
613
  ) : null;
611
614
  }
612
615
  return /* @__PURE__ */ i(
613
- Nn,
616
+ Vn,
614
617
  {
615
- anchors: E,
618
+ anchors: h,
616
619
  offsets: l,
617
- pivot: u,
620
+ pivot: Q,
618
621
  rotation: d,
619
622
  children: /* @__PURE__ */ i(
620
623
  me,
621
624
  {
622
- ...f,
625
+ ...u,
623
626
  layoutSize: r ? { width: r[0], height: r[1] } : void 0,
624
627
  rotation: 0
625
628
  }
@@ -738,11 +741,14 @@ function mt(e) {
738
741
  size: d,
739
742
  transform: a,
740
743
  screenTransform: g,
741
- onScreenTransformChange: h,
742
- transformGuideLayer: f = "scene",
743
- verticalAlign: E = "center",
744
- ...u
745
- } = ht(e), { resolvedAnchors: S, resolvedOffsets: k, resolvedPivot: I } = b(
744
+ onScreenTransformChange: f,
745
+ transformGuideLayer: I = "scene",
746
+ verticalAlign: u = "center",
747
+ // `locked` is editor metadata; keep it out of the TextLabel props.
748
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
749
+ locked: h,
750
+ ...Q
751
+ } = ht(e), { resolvedAnchors: S, resolvedOffsets: m, resolvedPivot: L } = y(
746
752
  () => vt({
747
753
  anchors: n,
748
754
  coordinateSpace: t,
@@ -751,49 +757,59 @@ function mt(e) {
751
757
  size: d,
752
758
  transform: a,
753
759
  pivot: r,
754
- verticalAlign: E
760
+ verticalAlign: u
755
761
  }),
756
- [n, o, t, r, l, d, a, E]
757
- ), L = (a == null ? void 0 : a.offsets) ?? A ?? k, M = (a == null ? void 0 : a.rotation) ?? c;
762
+ [n, o, t, r, l, d, a, u]
763
+ ), M = (a == null ? void 0 : a.offsets) ?? A ?? m, B = (a == null ? void 0 : a.rotation) ?? c;
758
764
  if (g) {
759
- const v = ye(g);
760
- return v.enabled ? /* @__PURE__ */ i(
765
+ const E = ye(g);
766
+ return E.enabled ? /* @__PURE__ */ i(
761
767
  ut,
762
768
  {
763
- guideLayer: f,
764
- transform: v,
765
- onChange: h,
769
+ guideLayer: I,
770
+ transform: E,
771
+ onChange: f,
766
772
  children: /* @__PURE__ */ i(
767
773
  pe,
768
774
  {
769
- ...u,
770
- layoutSize: v.size,
771
- verticalAlign: E,
772
- renderOrder: u.renderOrder ?? v.renderOrder,
773
- overlay: u.overlay ?? v.overlay,
774
- visible: u.visible ?? v.visible
775
+ ...Q,
776
+ layoutSize: E.size,
777
+ verticalAlign: u,
778
+ renderOrder: Q.renderOrder ?? E.renderOrder,
779
+ overlay: Q.overlay ?? E.overlay,
780
+ visible: Q.visible ?? E.visible
775
781
  }
776
782
  )
777
783
  }
778
784
  ) : null;
779
785
  }
780
- return /* @__PURE__ */ i(cn, { anchors: S, offsets: L, pivot: I, children: /* @__PURE__ */ i("group", { rotation: [0, 0, M * Math.PI / 180], children: /* @__PURE__ */ i(pe, { ...u, verticalAlign: E }) }) });
786
+ return /* @__PURE__ */ i(cn, { anchors: S, offsets: M, pivot: L, children: /* @__PURE__ */ i("group", { rotation: [0, 0, B * Math.PI / 180], children: /* @__PURE__ */ i(pe, { ...Q, verticalAlign: u }) }) });
781
787
  }
782
- const It = ({ settings: e, transform: n }) => {
783
- const t = b(
784
- () => /* @__PURE__ */ T("group", { name: "LightEditorGizmo", visible: e.showHelper, children: [
785
- /* @__PURE__ */ T("mesh", { renderOrder: 1e3, children: [
788
+ const Ht = {
789
+ enabled: !0,
790
+ type: "directional",
791
+ color: "#ffffff",
792
+ intensity: 2.2,
793
+ distance: 10,
794
+ angle: Math.PI / 6,
795
+ penumbra: 0.2,
796
+ decay: 2,
797
+ showHelper: !1
798
+ }, It = ({ settings: e, transform: n }) => {
799
+ const t = y(
800
+ () => /* @__PURE__ */ b("group", { name: "LightEditorGizmo", visible: e.showHelper, children: [
801
+ /* @__PURE__ */ b("mesh", { renderOrder: 1e3, children: [
786
802
  /* @__PURE__ */ i("sphereGeometry", { args: [0.12, 12, 8] }),
787
803
  /* @__PURE__ */ i("meshBasicMaterial", { color: "#facc15", wireframe: !0, depthTest: !1, depthWrite: !1 })
788
804
  ] }),
789
- /* @__PURE__ */ T("mesh", { position: [0, 0, -0.35], rotation: [Math.PI / 2, 0, 0], renderOrder: 1e3, children: [
805
+ /* @__PURE__ */ b("mesh", { position: [0, 0, -0.35], rotation: [Math.PI / 2, 0, 0], renderOrder: 1e3, children: [
790
806
  /* @__PURE__ */ i("coneGeometry", { args: [0.08, 0.45, 12] }),
791
807
  /* @__PURE__ */ i("meshBasicMaterial", { color: "#fde047", wireframe: !0, depthTest: !1, depthWrite: !1 })
792
808
  ] })
793
809
  ] }),
794
810
  [e.showHelper]
795
811
  );
796
- return e.enabled ? /* @__PURE__ */ T(U, { value: n, children: [
812
+ return e.enabled ? /* @__PURE__ */ b(U, { value: n, children: [
797
813
  t,
798
814
  e.type === "ambient" ? /* @__PURE__ */ i("ambientLight", { color: e.color, intensity: e.intensity }) : null,
799
815
  e.type === "directional" ? /* @__PURE__ */ i(
@@ -835,7 +851,7 @@ const It = ({ settings: e, transform: n }) => {
835
851
  if (!t.enabled || !n) return !1;
836
852
  const o = new ge();
837
853
  if (t.mode === "point") {
838
- const r = new P();
854
+ const r = new J();
839
855
  n.getWorldPosition(r), e.lookAt(r), o.copy(e.quaternion);
840
856
  } else
841
857
  n.getWorldQuaternion(o);
@@ -919,44 +935,44 @@ const It = ({ settings: e, transform: n }) => {
919
935
  renderOrder: o,
920
936
  settings: A
921
937
  }) => {
922
- const r = mn({ targetFps: 24 }), { size: l } = re(), c = Ae(), d = x(null), a = x(new P()), g = x({
923
- pos: new P(),
924
- prevRaw: new P(),
925
- dxHat: new P(),
938
+ const r = mn({ targetFps: 24 }), { size: l } = re(), c = Ae(), d = x(null), a = x(new J()), g = x({
939
+ pos: new J(),
940
+ prevRaw: new J(),
941
+ dxHat: new J(),
926
942
  initialized: !1
927
- }), h = x(!1), f = x({ x: 0, y: 0, z: 0, visibility: 0 }), E = x({ x: 0, y: 0 }), u = r ? vn(
943
+ }), f = x(!1), I = x({ x: 0, y: 0, z: 0, visibility: 0 }), u = x({ x: 0, y: 0 }), h = r ? vn(
928
944
  e.target,
929
945
  r.landmarks,
930
946
  e.customAnchorPoint,
931
- f.current,
947
+ I.current,
932
948
  r.mirrored
933
- ) : null, S = r ? r.mirrored ? r.pose.rotation.z : -r.pose.rotation.z : 0, k = u ? un({
934
- point: u,
949
+ ) : null, Q = r ? r.mirrored ? r.pose.rotation.z : -r.pose.rotation.z : 0, S = h ? un({
950
+ point: h,
935
951
  viewportSize: l,
936
- target: E.current
937
- }) : null, I = k ? ke({
952
+ target: u.current
953
+ }) : null, m = S ? ke({
938
954
  transform: {
939
955
  ...A,
940
956
  position: {
941
- x: k.x + A.position.x + e.offset.x,
942
- y: k.y + A.position.y + e.offset.y
957
+ x: S.x + A.position.x + e.offset.x,
958
+ y: S.y + A.position.y + e.offset.y
943
959
  }
944
960
  },
945
961
  parentSize: c
946
962
  }) : null;
947
963
  return O((L, M) => {
948
- const v = d.current;
949
- if (v) {
950
- if (v.visible = !!(I && A.enabled && A.visible), !I) {
951
- h.current = !1, g.current.initialized = !1;
964
+ const B = d.current;
965
+ if (B) {
966
+ if (B.visible = !!(m && A.enabled && A.visible), !m) {
967
+ f.current = !1, g.current.initialized = !1;
952
968
  return;
953
969
  }
954
- a.current.set(I.center[0], I.center[1], e.offset.z), e.smoothing > 0 ? (En(
970
+ a.current.set(m.center[0], m.center[1], e.offset.z), e.smoothing > 0 ? (En(
955
971
  g.current,
956
972
  a.current,
957
- h.current ? M : 0,
973
+ f.current ? M : 0,
958
974
  e.smoothing
959
- ), v.position.copy(g.current.pos)) : v.position.copy(a.current), h.current = !0;
975
+ ), B.position.copy(g.current.pos)) : B.position.copy(a.current), f.current = !0;
960
976
  }
961
977
  }), /* @__PURE__ */ i(
962
978
  "group",
@@ -965,9 +981,9 @@ const It = ({ settings: e, transform: n }) => {
965
981
  d.current = L, t == null || t(L);
966
982
  },
967
983
  rotation: [
968
- (I == null ? void 0 : I.rotation[0]) ?? 0,
969
- (I == null ? void 0 : I.rotation[1]) ?? 0,
970
- ((I == null ? void 0 : I.rotation[2]) ?? 0) + (e.followFaceRoll ? S : 0)
984
+ (m == null ? void 0 : m.rotation[0]) ?? 0,
985
+ (m == null ? void 0 : m.rotation[1]) ?? 0,
986
+ ((m == null ? void 0 : m.rotation[2]) ?? 0) + (e.followFaceRoll ? Q : 0)
971
987
  ],
972
988
  scale: [
973
989
  A.size.width / 100 * A.scale2D.x,
@@ -989,9 +1005,9 @@ const It = ({ settings: e, transform: n }) => {
989
1005
  renderOrder: c,
990
1006
  store: d
991
1007
  }) => {
992
- const a = ln(), g = dn(), h = d.objects[A];
993
- if (!h || !h.enabled) return null;
994
- const f = Ue(d, A).filter((s) => s.enabled), E = f.find((s) => s.type === "Transform"), u = f.find((s) => s.type === "ScreenTransform"), S = f.find((s) => s.type === "ScreenImage"), k = f.find((s) => s.type === "ScreenText"), I = f.find((s) => s.type === "ScreenShape"), L = f.find((s) => s.type === "MeshRenderer"), M = f.find((s) => s.type === "FaceMeshRenderer"), v = f.find((s) => s.type === "Light"), B = f.find((s) => s.type === "LookAt"), W = f.find((s) => s.type === "PinToMesh"), X = f.find((s) => s.type === "TrackingAnchor"), C = Ze(d, A).map((s) => /* @__PURE__ */ i(
1008
+ const a = ln(), g = dn(), f = d.objects[A];
1009
+ if (!f || !f.enabled) return null;
1010
+ const I = Ue(d, A).filter((s) => s.enabled), u = I.find((s) => s.type === "Transform"), h = I.find((s) => s.type === "ScreenTransform"), Q = I.find((s) => s.type === "ScreenImage"), S = I.find((s) => s.type === "ScreenText"), m = I.find((s) => s.type === "ScreenShape"), L = I.find((s) => s.type === "MeshRenderer"), M = I.find((s) => s.type === "FaceMeshRenderer"), B = I.find((s) => s.type === "Light"), E = I.find((s) => s.type === "LookAt"), W = I.find((s) => s.type === "PinToMesh"), X = I.find((s) => s.type === "TrackingAnchor"), C = Ze(d, A).map((s) => /* @__PURE__ */ i(
995
1011
  kt,
996
1012
  {
997
1013
  objectId: s.id,
@@ -1002,36 +1018,36 @@ const It = ({ settings: e, transform: n }) => {
1002
1018
  onComponentChange: r,
1003
1019
  fallback: t,
1004
1020
  faceMeshMaterialOverrides: n,
1005
- insideScreenSpaceUI: o || !!u
1021
+ insideScreenSpaceUI: o || !!h
1006
1022
  },
1007
1023
  s.id
1008
1024
  ));
1009
- if (p(E, "Transform") && p(v, "Light"))
1010
- return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ T("group", { ref: (s) => a(A, s), children: [
1011
- /* @__PURE__ */ i(It, { settings: v.settings, transform: E.settings }),
1025
+ if (p(u, "Transform") && p(B, "Light"))
1026
+ return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ b("group", { ref: (s) => a(A, s), children: [
1027
+ /* @__PURE__ */ i(It, { settings: B.settings, transform: u.settings }),
1012
1028
  C
1013
1029
  ] }) });
1014
- if (p(E, "Transform") && p(L, "MeshRenderer")) {
1015
- const s = p(B, "LookAt") ? B.settings : he("LookAt", A).settings, Q = s.inheritChildren ? C : null, j = s.inheritChildren ? null : C;
1030
+ if (p(u, "Transform") && p(L, "MeshRenderer")) {
1031
+ const s = p(E, "LookAt") ? E.settings : he("LookAt", A).settings, T = s.inheritChildren ? C : null, j = s.inheritChildren ? null : C;
1016
1032
  return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { ref: (Y) => a(A, Y), children: /* @__PURE__ */ i(
1017
1033
  je,
1018
1034
  {
1019
1035
  target: p(W, "PinToMesh") ? g(W.settings.targetObjectId) : null,
1020
1036
  settings: p(W, "PinToMesh") ? W.settings : he("PinToMesh", A).settings,
1021
- children: /* @__PURE__ */ T(
1037
+ children: /* @__PURE__ */ b(
1022
1038
  U,
1023
1039
  {
1024
- value: E.settings,
1025
- onChange: r ? (Y) => r({ ...E, settings: Y }) : void 0,
1040
+ value: u.settings,
1041
+ onChange: r ? (Y) => r({ ...u, settings: Y }) : void 0,
1026
1042
  children: [
1027
- /* @__PURE__ */ T(
1043
+ /* @__PURE__ */ b(
1028
1044
  Ct,
1029
1045
  {
1030
- target: p(B, "LookAt") ? g(B.settings.targetObjectId) : null,
1046
+ target: p(E, "LookAt") ? g(E.settings.targetObjectId) : null,
1031
1047
  settings: s,
1032
1048
  children: [
1033
- /* @__PURE__ */ i(Ve, { value: L.settings, renderOrder: c }),
1034
- Q
1049
+ /* @__PURE__ */ i(Ne, { value: L.settings, renderOrder: c }),
1050
+ T
1035
1051
  ]
1036
1052
  }
1037
1053
  ),
@@ -1043,18 +1059,18 @@ const It = ({ settings: e, transform: n }) => {
1043
1059
  ) }) });
1044
1060
  }
1045
1061
  if (p(M, "FaceMeshRenderer"))
1046
- return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ T("group", { ref: (s) => a(A, s), children: [
1062
+ return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ b("group", { ref: (s) => a(A, s), children: [
1047
1063
  /* @__PURE__ */ i(
1048
- Ne,
1064
+ Ve,
1049
1065
  {
1050
1066
  value: M.settings,
1051
1067
  materialOverride: n == null ? void 0 : n[M.id],
1052
- transform: p(E, "Transform") ? E.settings : void 0
1068
+ transform: p(u, "Transform") ? u.settings : void 0
1053
1069
  }
1054
1070
  ),
1055
1071
  C
1056
1072
  ] }) });
1057
- if (p(E, "Transform")) {
1073
+ if (p(u, "Transform")) {
1058
1074
  if (p(X, "TrackingAnchor")) {
1059
1075
  const s = X.settings;
1060
1076
  return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i(fn, { followFaceRoll: s.followFaceRoll, children: /* @__PURE__ */ i(
@@ -1067,8 +1083,8 @@ const It = ({ settings: e, transform: n }) => {
1067
1083
  children: /* @__PURE__ */ i(
1068
1084
  U,
1069
1085
  {
1070
- objectRef: (Q) => a(A, Q),
1071
- value: E.settings,
1086
+ objectRef: (T) => a(A, T),
1087
+ value: u.settings,
1072
1088
  children: C
1073
1089
  }
1074
1090
  )
@@ -1079,69 +1095,69 @@ const It = ({ settings: e, transform: n }) => {
1079
1095
  U,
1080
1096
  {
1081
1097
  objectRef: (s) => a(A, s),
1082
- value: E.settings,
1083
- onChange: r ? (s) => r({ ...E, settings: s }) : void 0,
1098
+ value: u.settings,
1099
+ onChange: r ? (s) => r({ ...u, settings: s }) : void 0,
1084
1100
  children: C
1085
1101
  }
1086
1102
  ) }) });
1087
1103
  }
1088
- if (p(u, "ScreenTransform") && p(S, "ScreenImage")) {
1104
+ if (p(h, "ScreenTransform") && p(Q, "ScreenImage")) {
1089
1105
  const s = qe({
1090
1106
  screenSpaceUI: { enabled: !0 },
1091
1107
  screenImage: {
1092
- ...S.settings,
1093
- screenTransform: u.settings
1108
+ ...Q.settings,
1109
+ screenTransform: h.settings
1094
1110
  }
1095
1111
  });
1096
- return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */ T(K, { inside: o, children: [
1112
+ return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */ b(K, { inside: o, children: [
1097
1113
  /* @__PURE__ */ i(
1098
1114
  it,
1099
1115
  {
1100
1116
  ...s.props,
1101
1117
  renderOrder: c ?? s.props.renderOrder,
1102
- onScreenTransformChange: r ? (Q) => r({ ...u, settings: Q }) : void 0
1118
+ onScreenTransformChange: r ? (T) => r({ ...h, settings: T }) : void 0
1103
1119
  }
1104
1120
  ),
1105
1121
  C
1106
1122
  ] }) }) }) : null;
1107
1123
  }
1108
- if (p(u, "ScreenTransform") && p(k, "ScreenText")) {
1124
+ if (p(h, "ScreenTransform") && p(S, "ScreenText")) {
1109
1125
  const s = _e({
1110
1126
  screenSpaceUI: { enabled: !0 },
1111
1127
  screenText: {
1112
- ...k.settings,
1113
- screenTransform: u.settings
1128
+ ...S.settings,
1129
+ screenTransform: h.settings
1114
1130
  }
1115
1131
  });
1116
- return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */ T(K, { inside: o, children: [
1132
+ return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */ b(K, { inside: o, children: [
1117
1133
  /* @__PURE__ */ i(
1118
1134
  mt,
1119
1135
  {
1120
1136
  ...s.props,
1121
1137
  renderOrder: c ?? s.props.renderOrder,
1122
- onScreenTransformChange: r ? (Q) => r({ ...u, settings: Q }) : void 0
1138
+ onScreenTransformChange: r ? (T) => r({ ...h, settings: T }) : void 0
1123
1139
  }
1124
1140
  ),
1125
1141
  C
1126
1142
  ] }) }) }) : null;
1127
1143
  }
1128
- return p(u, "ScreenTransform") && p(I, "ScreenShape") ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { ref: (s) => a(A, s), renderOrder: c, children: /* @__PURE__ */ T(K, { inside: o, children: [
1144
+ return p(h, "ScreenTransform") && p(m, "ScreenShape") ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { ref: (s) => a(A, s), renderOrder: c, children: /* @__PURE__ */ b(K, { inside: o, children: [
1129
1145
  /* @__PURE__ */ i(
1130
1146
  $e,
1131
1147
  {
1132
- name: h.name,
1133
- settings: I.settings,
1134
- transform: u.settings,
1148
+ name: f.name,
1149
+ settings: m.settings,
1150
+ transform: h.settings,
1135
1151
  renderOrder: c,
1136
- onScreenTransformChange: r ? (s) => r({ ...u, settings: s }) : void 0
1152
+ onScreenTransformChange: r ? (s) => r({ ...h, settings: s }) : void 0
1137
1153
  }
1138
1154
  ),
1139
1155
  C
1140
- ] }) }) }) : p(u, "ScreenTransform") ? p(X, "TrackingAnchor") ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { children: /* @__PURE__ */ i(
1156
+ ] }) }) }) : p(h, "ScreenTransform") ? p(X, "TrackingAnchor") ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { children: /* @__PURE__ */ i(
1141
1157
  bt,
1142
1158
  {
1143
1159
  anchor: X.settings,
1144
- settings: u.settings,
1160
+ settings: h.settings,
1145
1161
  renderOrder: c,
1146
1162
  insideScreenSpaceUI: o,
1147
1163
  objectRef: (s) => a(A, s),
@@ -1150,19 +1166,19 @@ const It = ({ settings: e, transform: n }) => {
1150
1166
  ) }) }) : /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { children: /* @__PURE__ */ i(
1151
1167
  Qt,
1152
1168
  {
1153
- settings: u.settings,
1169
+ settings: h.settings,
1154
1170
  renderOrder: c,
1155
1171
  insideScreenSpaceUI: o,
1156
1172
  objectRef: (s) => a(A, s),
1157
1173
  children: C
1158
1174
  }
1159
- ) }) }) : e ? /* @__PURE__ */ T(ee, { children: [
1175
+ ) }) }) : e ? /* @__PURE__ */ b(ee, { children: [
1160
1176
  C,
1161
1177
  t(
1162
- `Object "${h.name}" has unsupported components: ${f.map((s) => s.type).join(", ")}`
1178
+ `Object "${f.name}" has unsupported components: ${I.map((s) => s.type).join(", ")}`
1163
1179
  )
1164
1180
  ] }) : C.length ? /* @__PURE__ */ i(ee, { children: C }) : null;
1165
- }, Ht = ({ layers: e }) => {
1181
+ }, Ut = ({ layers: e }) => {
1166
1182
  const { camera: n, gl: t, raycaster: o, scene: A } = re(), { session: r } = gn(), l = oe(
1167
1183
  () => He({ renderer: t, scene: A, camera: n, layers: e }),
1168
1184
  [n, t, e, A]
@@ -1175,6 +1191,7 @@ const It = ({ settings: e, transform: n }) => {
1175
1191
  }, [e, o]), Z(() => (r._setR3FState({ renderer: t, scene: A, camera: n, renderFrame: l }), () => r._setR3FState({ renderer: t, scene: A, camera: n })), [n, t, l, A, r]), null;
1176
1192
  };
1177
1193
  export {
1194
+ Ht as D,
1178
1195
  It as L,
1179
1196
  D as R,
1180
1197
  it as S,
@@ -1183,5 +1200,5 @@ export {
1183
1200
  te as c,
1184
1201
  Ct as d,
1185
1202
  kt as e,
1186
- Ht as f
1203
+ Ut as f
1187
1204
  };