@vincentt-xr/sdk 2.0.0-alpha.21 → 2.0.0-alpha.23
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.
- package/GROUNDING.md +138 -2
- package/components.json +61 -1
- package/dist/{CanonicalHeadFrame-CQe2YX9a.js → CanonicalHeadFrame-ZSfpHH_w.js} +3 -3
- package/dist/{DebuggerUI-CKYrYmod.js → DebuggerUI-C_c1B-2p.js} +1 -1
- package/dist/{FaceRetouch-l7y4oZBu.js → FaceRetouch-4tV3RYa-.js} +4 -4
- package/dist/{TextLabel-C-AibH5A.cjs → TextLabel-DWBSNwRA.cjs} +2 -2
- package/dist/{TextLabel-fEF1o3wE.js → TextLabel-XSfkeWDJ.js} +172 -172
- package/dist/{bodyMaskMaterial-BOdSJUEM.js → bodyMaskMaterial-BF6Gm6hz.js} +1 -1
- package/dist/{cache-Mu-VO_6E.js → cache-CbX-0Rgn.js} +2 -2
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/CaptureShareScreen/index.d.ts +27 -0
- package/dist/components/FaceSwap/settings.d.ts +1 -1
- package/dist/components/HtmlRegion/index.d.ts +1 -1
- package/dist/components/IntroScreen/index.d.ts +31 -0
- package/dist/components/Light/index.d.ts +1 -1
- package/dist/components/Model/index.d.ts +1 -1
- package/dist/components/Object3D/index.d.ts +1 -1
- package/dist/components/PaintedFace/index.d.ts +1 -1
- package/dist/components/ScreenShape/index.d.ts +8 -0
- package/dist/components/ScreenText/liveEditable.d.ts +1 -1
- package/dist/components/SplashScreen/index.d.ts +38 -0
- package/dist/components/TextLabel/TextLabel.d.ts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/contexts-awO81p6d.cjs +1 -0
- package/dist/contexts-hhxufDg2.js +714 -0
- package/dist/debug-ui/media-source.js +1 -1
- package/dist/debug-ui.cjs +1 -1
- package/dist/debug-ui.js +11 -11
- package/dist/{drawNormalizedCrop-D606u5-F.js → drawNormalizedCrop-8RzfrVNS.js} +5 -5
- package/dist/editor-defs/live.d.ts +28 -0
- package/dist/editor-defs/live.generated.d.ts +2 -0
- package/dist/editor-defs/types.d.ts +1 -1
- package/dist/editor-scenes.cjs +1 -1
- package/dist/editor-scenes.js +419 -40
- package/dist/entries/core.d.ts +10 -0
- package/dist/entries/editor-scenes.d.ts +1 -6
- package/dist/face-effects.cjs +67 -67
- package/dist/face-effects.js +1276 -1275
- package/dist/{getFaceInfo-Mt44zlej.js → getFaceInfo-B1pPvyh9.js} +1 -1
- package/dist/hooks/captureStore.d.ts +25 -0
- package/dist/hooks/useCapture.d.ts +28 -0
- package/dist/hooks/useShare.d.ts +37 -0
- package/dist/{index-CbBCl2ZU.js → index-BTVIMj8H.js} +2 -2
- package/dist/{index-BDxJWWyy.js → index-BmeB_V6I.js} +48 -48
- package/dist/{index-D5NbXaCn.js → index-CW4yk2jC.js} +272 -263
- package/dist/{index-B0EYdofX.js → index-Cw6HeUjE.js} +1 -1
- package/dist/{index-Bn72laBn.js → index-DSrRFuRp.js} +1 -1
- package/dist/{index-CM3jkleV.js → index-DTkbQ5OA.js} +27 -25
- package/dist/{index-CicO_Tnw.js → index-Dmhh2RjM.js} +1 -1
- package/dist/index-hEANh5cP.cjs +21 -0
- package/dist/{index-fDwL47CM.cjs → index-rCxTueDx.cjs} +2 -2
- package/dist/instructions.cjs +1 -1
- package/dist/instructions.js +8 -8
- package/dist/{internal-BoFDq5hC.js → internal-DDcTDvPS.js} +3 -3
- package/dist/internal.js +2 -2
- package/dist/{landmarks-C3LvDhMt.js → landmarks-BB8jyfJA.js} +1 -1
- package/dist/live.generated-Do4jgrUN.js +116 -0
- package/dist/live.generated-n5ZV_2Gt.cjs +1 -0
- package/dist/low-level.cjs +1 -1
- package/dist/low-level.js +17 -17
- package/dist/main.cjs +1 -1
- package/dist/main.js +1081 -884
- package/dist/overlay/consumer.d.ts +36 -0
- package/dist/overlay/grammar.d.ts +74 -0
- package/dist/overlay/region.d.ts +23 -0
- package/dist/particles.js +5 -5
- package/dist/product.js +2 -2
- package/dist/{providers-Bxt_MfPK.js → providers-Q4H0Ii-y.js} +3 -3
- package/dist/{renderGroups-uYPzUa66.js → renderGroups-LVQ0Af0t.js} +1 -1
- package/dist/{renderPasses-C0wu5Cwg.js → renderPasses-DYc2-EBT.js} +7 -7
- package/dist/scene-object.cjs +1 -1
- package/dist/scene-object.js +2 -2
- package/dist/{segmentation-DccvYBBO.js → segmentation-BWHRt2hE.js} +1 -1
- package/dist/{selectors-J06V0eDb.js → selectors-kj5g3uv2.js} +3 -3
- package/dist/{session-CYiWfcvz.js → session-CMz1ao3i.js} +1 -1
- package/dist/tracking.js +25 -25
- package/dist/{trigger-CQviD4xp.js → trigger-8fpI9g9S.js} +7 -7
- package/dist/{useBodies-DOuwRuew.js → useBodies-CH4ZUECn.js} +2 -2
- package/dist/useEditOverrides-BmvpLYPU.js +85 -0
- package/dist/useEditOverrides-DMAMGzlF.cjs +1 -0
- package/dist/{useFaceInfo-XUGYTdfN.js → useFaceInfo-BV77B-r4.js} +4 -4
- package/dist/{useFaceResultReader-D8wXbF1L.js → useFaceResultReader-DgOPK1Z6.js} +1 -1
- package/dist/{useIrisTracking-B0uLWgNE.js → useIrisTracking-D6mv7coz.js} +10 -10
- package/dist/useLiveProps-Bz9wifGN.cjs +1 -0
- package/dist/useLiveProps-CMkyV6Dt.js +28 -0
- package/dist/{useXRCapabilities-DPUOvpdf.js → useXRCapabilities-FAY2ve86.js} +1 -1
- package/dist/utils/useEditOverlay.d.ts +33 -0
- package/dist/utils/useEditOverrides.d.ts +10 -0
- package/dist/utils/useLiveProps.d.ts +8 -0
- package/package.json +1 -1
- package/settings.json +1 -1
- package/dist/contexts-CSz9stBV.cjs +0 -1
- package/dist/contexts-Cl-4dUOI.js +0 -667
- package/dist/index-BkjRuUdW.cjs +0 -21
- package/dist/useEditOverrides-BBkK8cN2.js +0 -41
- package/dist/useEditOverrides-CgapHJzA.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { useThree as
|
|
3
|
-
import { useRef as j, useState as
|
|
1
|
+
import { D as ze } from "./index-DSrRFuRp.js";
|
|
2
|
+
import { useThree as xe, useFrame as Pe } from "@react-three/fiber";
|
|
3
|
+
import { useRef as j, useState as Oe, useCallback as G, useEffect as U, useMemo as W, createElement as Re } from "react";
|
|
4
4
|
import * as ae from "three";
|
|
5
|
-
import { Vector2 as V, Vector3 as z, Box3 as
|
|
6
|
-
import { K as
|
|
7
|
-
import { D as Fe } from "./index-
|
|
8
|
-
import { u as
|
|
5
|
+
import { Vector2 as V, Vector3 as z, Box3 as De, Matrix4 as B, Quaternion as X, Euler as H, MathUtils as L, Color as Le } from "three";
|
|
6
|
+
import { K as fe, L as A, M as pe, N as Ce, O as Ae, P as Z } from "./index-BmeB_V6I.js";
|
|
7
|
+
import { D as Fe } from "./index-Dmhh2RjM.js";
|
|
8
|
+
import { u as _e, D as Ie, n as je, h as We, i as Ne, j as Ge } from "./renderPasses-DYc2-EBT.js";
|
|
9
9
|
import { jsxs as R, jsx as u } from "react/jsx-runtime";
|
|
10
|
-
import { Line as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
10
|
+
import { Line as Ue } from "@react-three/drei";
|
|
11
|
+
import { u as ke, S as Be, a as Xe } from "./context-DTxSQvp4.js";
|
|
12
|
+
import { u as Ye, i as He, c as ce } from "./useEditOverrides-BmvpLYPU.js";
|
|
13
|
+
const ue = {
|
|
14
14
|
move: "grab",
|
|
15
15
|
pivot: "all-scroll",
|
|
16
16
|
rotateTopLeft: "alias",
|
|
@@ -25,7 +25,7 @@ const he = {
|
|
|
25
25
|
bottomRight: "nwse-resize",
|
|
26
26
|
topRight: "nesw-resize",
|
|
27
27
|
bottomLeft: "nesw-resize"
|
|
28
|
-
},
|
|
28
|
+
}, $e = ({
|
|
29
29
|
color: e = "#22d3ee",
|
|
30
30
|
controlScale: t = [1, 1, 1],
|
|
31
31
|
handleColor: o = "#ffffff",
|
|
@@ -57,7 +57,7 @@ const he = {
|
|
|
57
57
|
depthWrite: !1,
|
|
58
58
|
toneMapped: !1
|
|
59
59
|
}
|
|
60
|
-
), w = Math.max(l * 7, 0.028), b = Math.max(l * 7, 0.03), M = Math.max(l * 8, 0.032), h = 0.04, c = 0.06, T = 0.08, y = 0.1, f = i ?? 0,
|
|
60
|
+
), w = Math.max(l * 7, 0.028), b = Math.max(l * 7, 0.03), M = Math.max(l * 8, 0.032), h = 0.04, c = 0.06, T = 0.08, y = 0.1, f = i ?? 0, C = [
|
|
61
61
|
["topLeft", -0.5, 0.5],
|
|
62
62
|
["topRight", 0.5, 0.5],
|
|
63
63
|
["bottomLeft", -0.5, -0.5],
|
|
@@ -73,11 +73,11 @@ const he = {
|
|
|
73
73
|
["rotateTopRight", 0.56, 0.56, -Math.PI / 2],
|
|
74
74
|
["rotateBottomRight", 0.56, -0.56, Math.PI],
|
|
75
75
|
["rotateBottomLeft", -0.56, -0.56, Math.PI / 2]
|
|
76
|
-
], g = (m) => n ? (
|
|
77
|
-
|
|
76
|
+
], g = (m) => n ? (O) => {
|
|
77
|
+
O.stopPropagation(), document.body.style.cursor = m === "move" ? "grabbing" : ue[m], n(m, O);
|
|
78
78
|
} : void 0, x = (m) => {
|
|
79
|
-
n && (document.body.style.cursor =
|
|
80
|
-
},
|
|
79
|
+
n && (document.body.style.cursor = ue[m]);
|
|
80
|
+
}, P = () => {
|
|
81
81
|
n && (document.body.style.cursor = "");
|
|
82
82
|
}, v = [s[0] - 0.5, s[1] - 0.5, y];
|
|
83
83
|
return /* @__PURE__ */ R("group", { renderOrder: f, children: [
|
|
@@ -104,22 +104,22 @@ const he = {
|
|
|
104
104
|
renderOrder: f + 1,
|
|
105
105
|
onPointerDown: g("move"),
|
|
106
106
|
onPointerOver: () => x("move"),
|
|
107
|
-
onPointerOut:
|
|
107
|
+
onPointerOut: P,
|
|
108
108
|
children: [
|
|
109
109
|
/* @__PURE__ */ u("planeGeometry", { args: [1, 1] }),
|
|
110
110
|
/* @__PURE__ */ u("meshBasicMaterial", { transparent: !0, opacity: 0, depthTest: !1, depthWrite: !1 })
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
),
|
|
114
|
-
|
|
114
|
+
C.map(([m, O, F]) => /* @__PURE__ */ R(
|
|
115
115
|
"mesh",
|
|
116
116
|
{
|
|
117
|
-
position: [
|
|
117
|
+
position: [O, F, T],
|
|
118
118
|
scale: [w * t[0], w * t[1], t[2]],
|
|
119
119
|
renderOrder: f + 2,
|
|
120
120
|
onPointerDown: g(m),
|
|
121
121
|
onPointerOver: () => x(m),
|
|
122
|
-
onPointerOut:
|
|
122
|
+
onPointerOut: P,
|
|
123
123
|
children: [
|
|
124
124
|
/* @__PURE__ */ u("planeGeometry", { args: [1, 1] }),
|
|
125
125
|
S
|
|
@@ -127,16 +127,16 @@ const he = {
|
|
|
127
127
|
},
|
|
128
128
|
m
|
|
129
129
|
)),
|
|
130
|
-
E.map(([m,
|
|
130
|
+
E.map(([m, O, F, $]) => /* @__PURE__ */ u(
|
|
131
131
|
"group",
|
|
132
132
|
{
|
|
133
|
-
position: [
|
|
133
|
+
position: [O, F, T + 0.01],
|
|
134
134
|
rotation: [0, 0, $],
|
|
135
135
|
scale: [M * t[0], M * t[1], t[2]],
|
|
136
136
|
renderOrder: f + 3,
|
|
137
137
|
onPointerDown: g(m),
|
|
138
138
|
onPointerOver: () => x(m),
|
|
139
|
-
onPointerOut:
|
|
139
|
+
onPointerOut: P,
|
|
140
140
|
children: /* @__PURE__ */ R("mesh", { renderOrder: f + 3, children: [
|
|
141
141
|
/* @__PURE__ */ u("planeGeometry", { args: [1.9, 1.9] }),
|
|
142
142
|
/* @__PURE__ */ u("meshBasicMaterial", { transparent: !0, opacity: 0, depthTest: !1, depthWrite: !1 })
|
|
@@ -152,7 +152,7 @@ const he = {
|
|
|
152
152
|
renderOrder: f + 5,
|
|
153
153
|
onPointerDown: g("pivot"),
|
|
154
154
|
onPointerOver: () => x("pivot"),
|
|
155
|
-
onPointerOut:
|
|
155
|
+
onPointerOut: P,
|
|
156
156
|
children: /* @__PURE__ */ R("group", { rotation: [0, 0, Math.PI / 4], children: [
|
|
157
157
|
/* @__PURE__ */ R("mesh", { scale: [1.8, 1.8, 1], renderOrder: f + 5, children: [
|
|
158
158
|
/* @__PURE__ */ u("planeGeometry", { args: [1, 1] }),
|
|
@@ -180,7 +180,7 @@ const he = {
|
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
182
|
] });
|
|
183
|
-
},
|
|
183
|
+
}, _ = (e) => Math.round(e * 2) / 2, me = (e) => Math.min(1, Math.max(0, e)), ee = {
|
|
184
184
|
move: "grab",
|
|
185
185
|
pivot: "all-scroll",
|
|
186
186
|
rotateTopLeft: "alias",
|
|
@@ -195,7 +195,7 @@ const he = {
|
|
|
195
195
|
bottomRight: "nwse-resize",
|
|
196
196
|
topRight: "nesw-resize",
|
|
197
197
|
bottomLeft: "nesw-resize"
|
|
198
|
-
},
|
|
198
|
+
}, Ve = [
|
|
199
199
|
["topLeft", 0, 0],
|
|
200
200
|
["top", 0.5, 0],
|
|
201
201
|
["topRight", 1, 0],
|
|
@@ -204,19 +204,19 @@ const he = {
|
|
|
204
204
|
["bottom", 0.5, 1],
|
|
205
205
|
["bottomLeft", 0, 1],
|
|
206
206
|
["left", 0, 0.5]
|
|
207
|
-
],
|
|
207
|
+
], qe = [
|
|
208
208
|
["rotateTopLeft", -0.03, -0.03],
|
|
209
209
|
["rotateTopRight", 1.03, -0.03],
|
|
210
210
|
["rotateBottomRight", 1.03, 1.03],
|
|
211
211
|
["rotateBottomLeft", -0.03, 1.03]
|
|
212
|
-
],
|
|
213
|
-
const o =
|
|
212
|
+
], Ke = (e, t) => {
|
|
213
|
+
const o = fe({
|
|
214
214
|
transform: t,
|
|
215
215
|
parentSize: { width: e.width, height: e.height }
|
|
216
216
|
}), n = Math.min(
|
|
217
|
-
e.width /
|
|
218
|
-
e.height /
|
|
219
|
-
) * (
|
|
217
|
+
e.width / A.width,
|
|
218
|
+
e.height / A.height
|
|
219
|
+
) * (pe / Math.max(t.referencePixelsPerUnit, 1e-6)) || 1, r = A.width * n, s = A.height * n, a = e.left + (e.width - r) / 2, i = e.top + (e.height - s) / 2, d = a + r / 2, l = i + s / 2, p = o.size[0], S = o.size[1], w = d + o.center[0], b = l - o.center[1];
|
|
220
220
|
return {
|
|
221
221
|
centerX: w,
|
|
222
222
|
centerY: b,
|
|
@@ -226,13 +226,13 @@ const he = {
|
|
|
226
226
|
top: b - S / 2,
|
|
227
227
|
width: p
|
|
228
228
|
};
|
|
229
|
-
},
|
|
230
|
-
const r =
|
|
229
|
+
}, Qe = (e, t, o, n) => {
|
|
230
|
+
const r = A.width * n, s = A.height * n, a = o.left + (o.width - r) / 2, i = o.top + (o.height - s) / 2;
|
|
231
231
|
return {
|
|
232
232
|
x: (e - (a + r / 2)) / n,
|
|
233
233
|
y: (i + s / 2 - t) / n
|
|
234
234
|
};
|
|
235
|
-
},
|
|
235
|
+
}, Ze = ({
|
|
236
236
|
color: e = "#38bdf8",
|
|
237
237
|
handleColor: t = "#ffffff",
|
|
238
238
|
onChange: o,
|
|
@@ -240,19 +240,19 @@ const he = {
|
|
|
240
240
|
}) => {
|
|
241
241
|
const r = j(o);
|
|
242
242
|
r.current = o;
|
|
243
|
-
const { gl: s } =
|
|
243
|
+
const { gl: s } = xe(), [a, i] = Oe(null), d = j(null), l = j(null), p = G(() => {
|
|
244
244
|
i(s.domElement.getBoundingClientRect());
|
|
245
245
|
}, [s.domElement]);
|
|
246
246
|
U(() => (p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
|
|
247
247
|
window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
|
|
248
248
|
}), [p]);
|
|
249
249
|
const S = W(
|
|
250
|
-
() => a ?
|
|
250
|
+
() => a ? Ke(a, n) : null,
|
|
251
251
|
[a, n]
|
|
252
|
-
), w =
|
|
252
|
+
), w = G((h) => {
|
|
253
253
|
const c = d.current, T = r.current;
|
|
254
254
|
if (!c || !T) return;
|
|
255
|
-
const y = (h.clientX - c.startX) / c.scale, f = -(h.clientY - c.startY) / c.scale,
|
|
255
|
+
const y = (h.clientX - c.startX) / c.scale, f = -(h.clientY - c.startY) / c.scale, C = {
|
|
256
256
|
x: c.startPointerDesign.x + y,
|
|
257
257
|
y: c.startPointerDesign.y + f
|
|
258
258
|
}, E = {
|
|
@@ -263,8 +263,8 @@ const he = {
|
|
|
263
263
|
};
|
|
264
264
|
if (c.handle === "move")
|
|
265
265
|
E.position = {
|
|
266
|
-
x:
|
|
267
|
-
y:
|
|
266
|
+
x: _(c.startTransform.position.x + y),
|
|
267
|
+
y: _(c.startTransform.position.y + f)
|
|
268
268
|
};
|
|
269
269
|
else if (c.handle === "pivot") {
|
|
270
270
|
const g = Math.max(
|
|
@@ -273,12 +273,12 @@ const he = {
|
|
|
273
273
|
), x = Math.max(
|
|
274
274
|
1,
|
|
275
275
|
c.startTransform.size.height * c.startTransform.scale2D.y
|
|
276
|
-
),
|
|
277
|
-
E.pivot = [
|
|
278
|
-
x:
|
|
276
|
+
), P = me(c.startTransform.pivot[0] + y / g), v = me(c.startTransform.pivot[1] + f / x);
|
|
277
|
+
E.pivot = [_(P * 1e3) / 1e3, _(v * 1e3) / 1e3], E.position = {
|
|
278
|
+
x: _(
|
|
279
279
|
c.startTransform.position.x + (E.pivot[0] - c.startTransform.pivot[0]) * g
|
|
280
280
|
),
|
|
281
|
-
y:
|
|
281
|
+
y: _(
|
|
282
282
|
c.startTransform.position.y + (E.pivot[1] - c.startTransform.pivot[1]) * x
|
|
283
283
|
)
|
|
284
284
|
};
|
|
@@ -287,31 +287,31 @@ const he = {
|
|
|
287
287
|
c.startPointerDesign.y - c.startTransform.position.y,
|
|
288
288
|
c.startPointerDesign.x - c.startTransform.position.x
|
|
289
289
|
), x = Math.atan2(
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
C.y - c.startTransform.position.y,
|
|
291
|
+
C.x - c.startTransform.position.x
|
|
292
292
|
);
|
|
293
|
-
E.rotation =
|
|
293
|
+
E.rotation = _(
|
|
294
294
|
c.startTransform.rotation + (x - g) * 180 / Math.PI
|
|
295
295
|
);
|
|
296
296
|
} else {
|
|
297
|
-
const g = c.handle === "left" || c.handle.endsWith("Left"), x = c.handle === "right" || c.handle.endsWith("Right"),
|
|
297
|
+
const g = c.handle === "left" || c.handle.endsWith("Left"), x = c.handle === "right" || c.handle.endsWith("Right"), P = c.handle === "top" || c.handle.startsWith("top"), v = c.handle === "bottom" || c.handle.startsWith("bottom"), m = x ? y * 2 : g ? -y * 2 : 0, O = P ? f * 2 : v ? -f * 2 : 0;
|
|
298
298
|
E.size = {
|
|
299
|
-
width: Math.max(1,
|
|
300
|
-
height: Math.max(1,
|
|
299
|
+
width: Math.max(1, _(c.startTransform.size.width + m)),
|
|
300
|
+
height: Math.max(1, _(c.startTransform.size.height + O))
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
T(E);
|
|
304
|
-
}, []), b =
|
|
304
|
+
}, []), b = G(() => {
|
|
305
305
|
d.current = null, document.body.style.cursor = "", window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", b);
|
|
306
306
|
}, [w]);
|
|
307
307
|
U(() => b, [b]);
|
|
308
|
-
const M =
|
|
308
|
+
const M = G(
|
|
309
309
|
(h, c) => {
|
|
310
310
|
!a || !S || !o || (c.preventDefault(), document.body.style.cursor = h === "move" ? "grabbing" : ee[h], d.current = {
|
|
311
311
|
handle: h,
|
|
312
312
|
startX: c.clientX,
|
|
313
313
|
startY: c.clientY,
|
|
314
|
-
startPointerDesign:
|
|
314
|
+
startPointerDesign: Qe(c.clientX, c.clientY, a, S.scale),
|
|
315
315
|
startTransform: n,
|
|
316
316
|
scale: S.scale
|
|
317
317
|
}, window.addEventListener("pointermove", w), window.addEventListener("pointerup", b));
|
|
@@ -349,28 +349,28 @@ const he = {
|
|
|
349
349
|
pointerEvents: o ? "auto" : "none",
|
|
350
350
|
cursor: ee.move
|
|
351
351
|
}), f.addEventListener("pointerdown", (g) => M("move", g));
|
|
352
|
-
const
|
|
353
|
-
const
|
|
354
|
-
return Object.assign(
|
|
352
|
+
const C = (g, x, P, v, m = "translate(-50%, -50%)") => {
|
|
353
|
+
const O = document.createElement("div");
|
|
354
|
+
return Object.assign(O.style, {
|
|
355
355
|
position: "absolute",
|
|
356
356
|
left: `${x * 100}%`,
|
|
357
|
-
top: `${
|
|
357
|
+
top: `${P * 100}%`,
|
|
358
358
|
width: `${v}px`,
|
|
359
359
|
height: `${v}px`,
|
|
360
360
|
cursor: ee[g],
|
|
361
361
|
transform: m,
|
|
362
362
|
pointerEvents: "auto"
|
|
363
|
-
}),
|
|
364
|
-
|
|
365
|
-
}),
|
|
363
|
+
}), O.addEventListener("pointerdown", (F) => {
|
|
364
|
+
F.stopPropagation(), M(g, F);
|
|
365
|
+
}), O;
|
|
366
366
|
};
|
|
367
|
-
for (const [g, x,
|
|
368
|
-
const v =
|
|
367
|
+
for (const [g, x, P] of Ve) {
|
|
368
|
+
const v = C(g, x, P, c);
|
|
369
369
|
v.style.background = t, f.appendChild(v);
|
|
370
370
|
}
|
|
371
|
-
for (const [g, x,
|
|
372
|
-
f.appendChild(
|
|
373
|
-
const E =
|
|
371
|
+
for (const [g, x, P] of qe)
|
|
372
|
+
f.appendChild(C(g, x, P, 26));
|
|
373
|
+
const E = C(
|
|
374
374
|
"pivot",
|
|
375
375
|
n.pivot[0],
|
|
376
376
|
1 - n.pivot[1],
|
|
@@ -396,27 +396,27 @@ const he = {
|
|
|
396
396
|
offsetSpace: "local",
|
|
397
397
|
offsetPosition: { x: 0, y: 0, z: 0 },
|
|
398
398
|
offsetRotation: { x: 0, y: 0, z: 0 }
|
|
399
|
-
},
|
|
399
|
+
}, Je = (e, t, o, n) => {
|
|
400
400
|
const r = o.clone().sub(t), s = n.clone().sub(t), a = e.clone().sub(t), i = r.x * s.y - s.x * r.y;
|
|
401
401
|
if (Math.abs(i) < 1e-8) return null;
|
|
402
402
|
const d = (a.x * s.y - s.x * a.y) / i, l = (r.x * a.y - a.x * r.y) / i, p = 1 - d - l;
|
|
403
403
|
return p >= -1e-5 && d >= -1e-5 && l >= -1e-5 ? [p, d, l] : null;
|
|
404
|
-
},
|
|
404
|
+
}, et = (e, t, o = !1) => {
|
|
405
405
|
const n = new V(t.x, t.y), r = new V(), s = new V(), a = new V(), i = new z(), d = new z(), l = new z(), p = new z(), S = new z(), w = new z();
|
|
406
406
|
let b = null;
|
|
407
407
|
if (e.traverse((h) => {
|
|
408
|
-
var x,
|
|
408
|
+
var x, P;
|
|
409
409
|
if (b || !h.isMesh) return;
|
|
410
|
-
const c = h, T = c.geometry, y = (x = T == null ? void 0 : T.attributes) == null ? void 0 : x.position, f = (
|
|
410
|
+
const c = h, T = c.geometry, y = (x = T == null ? void 0 : T.attributes) == null ? void 0 : x.position, f = (P = T == null ? void 0 : T.attributes) == null ? void 0 : P.uv;
|
|
411
411
|
if (!y || !f) return;
|
|
412
|
-
const
|
|
412
|
+
const C = T.attributes.normal, E = T.index, g = (v) => (E == null ? void 0 : E.getX(v)) ?? v;
|
|
413
413
|
for (let v = 0; v < (E ? E.count : y.count); v += 3) {
|
|
414
414
|
const m = [g(v), g(v + 1), g(v + 2)];
|
|
415
415
|
r.set(f.getX(m[0]), f.getY(m[0])), s.set(f.getX(m[1]), f.getY(m[1])), a.set(f.getX(m[2]), f.getY(m[2]));
|
|
416
|
-
const
|
|
417
|
-
if (
|
|
418
|
-
i.set(0, 0, 0), d.set(0, 0, 0), m.forEach((
|
|
419
|
-
l.fromBufferAttribute(y,
|
|
416
|
+
const O = Je(n, r, s, a);
|
|
417
|
+
if (O) {
|
|
418
|
+
i.set(0, 0, 0), d.set(0, 0, 0), m.forEach((F, $) => {
|
|
419
|
+
l.fromBufferAttribute(y, F), i.addScaledVector(l, O[$]), C && o && d.addScaledVector(l.fromBufferAttribute(C, F), O[$]);
|
|
420
420
|
}), o || (p.fromBufferAttribute(y, m[0]), S.fromBufferAttribute(y, m[1]), w.fromBufferAttribute(y, m[2]), d.copy(S.sub(p).cross(w.sub(p)).normalize())), b = {
|
|
421
421
|
mesh: c,
|
|
422
422
|
localPosition: i.clone(),
|
|
@@ -426,19 +426,19 @@ const he = {
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
}), b) return b;
|
|
429
|
-
const M = new
|
|
429
|
+
const M = new De().setFromObject(e);
|
|
430
430
|
return {
|
|
431
431
|
mesh: e,
|
|
432
432
|
localPosition: e.worldToLocal(M.getCenter(new z())),
|
|
433
433
|
localNormal: new z(0, 1, 0)
|
|
434
434
|
};
|
|
435
|
-
},
|
|
435
|
+
}, tt = (e) => ({
|
|
436
436
|
position: e.mesh.localToWorld(e.localPosition.clone()),
|
|
437
437
|
normal: e.localNormal.clone().transformDirection(e.mesh.matrixWorld).normalize()
|
|
438
|
-
}), k = (e, t = 0) => Number.isFinite(e) ? e : t, te = new z(), oe = new z(),
|
|
438
|
+
}), k = (e, t = 0) => Number.isFinite(e) ? e : t, te = new z(), oe = new z(), ye = new B(), ne = new X(), re = new X(), ot = new z(0, 1, 0), nt = (e) => {
|
|
439
439
|
e.position.set(0, 0, 0), e.quaternion.identity();
|
|
440
|
-
},
|
|
441
|
-
e.orientation === "positionAndDirection" ? (
|
|
440
|
+
}, rt = ({ settings: e, source: t, surface: o }) => {
|
|
441
|
+
e.orientation === "positionAndDirection" ? (ye.lookAt(o.position, o.position.clone().add(o.normal), ot), ne.setFromRotationMatrix(ye)) : ne.identity(), t.quaternion.copy(ne), oe.set(
|
|
442
442
|
k(e.offsetPosition.x),
|
|
443
443
|
k(e.offsetPosition.y),
|
|
444
444
|
k(e.offsetPosition.z)
|
|
@@ -449,15 +449,15 @@ const he = {
|
|
|
449
449
|
k(e.offsetRotation.z) * Math.PI / 180
|
|
450
450
|
)
|
|
451
451
|
), e.offsetSpace === "local" ? t.quaternion.multiply(re) : t.quaternion.premultiply(re);
|
|
452
|
-
},
|
|
453
|
-
const n =
|
|
454
|
-
r.current &&
|
|
452
|
+
}, ao = ({ target: e, settings: t, children: o }) => {
|
|
453
|
+
const n = Ce(), r = j(null), s = j(null), a = () => {
|
|
454
|
+
r.current && nt(r.current);
|
|
455
455
|
};
|
|
456
456
|
return U(() => {
|
|
457
457
|
s.current = null;
|
|
458
458
|
}, [t.targetObjectId]), U(() => {
|
|
459
459
|
t.enabled || a();
|
|
460
|
-
}, [t.enabled]),
|
|
460
|
+
}, [t.enabled]), Pe(() => {
|
|
461
461
|
const i = e ?? n(t.targetObjectId);
|
|
462
462
|
if (!t.enabled || !i || !r.current) {
|
|
463
463
|
(!t.enabled || !i) && a();
|
|
@@ -467,40 +467,40 @@ const he = {
|
|
|
467
467
|
(!s.current || s.current.target !== i || s.current.key !== d) && (s.current = {
|
|
468
468
|
key: d,
|
|
469
469
|
target: i,
|
|
470
|
-
surface:
|
|
470
|
+
surface: et(i, t.uv, t.vertexNormal)
|
|
471
471
|
}), i.updateWorldMatrix(!0, !0);
|
|
472
|
-
const l =
|
|
473
|
-
|
|
474
|
-
}),
|
|
475
|
-
},
|
|
476
|
-
function
|
|
472
|
+
const l = tt(s.current.surface);
|
|
473
|
+
rt({ source: r.current, surface: l, settings: t });
|
|
474
|
+
}), Re("group", { ref: r }, o);
|
|
475
|
+
}, I = (e) => Math.round(e * 2) / 2, Se = (e) => Math.min(1, Math.max(0, e));
|
|
476
|
+
function st(e) {
|
|
477
477
|
return Math.min(
|
|
478
|
-
e.width /
|
|
479
|
-
e.height /
|
|
478
|
+
e.width / A.width,
|
|
479
|
+
e.height / A.height
|
|
480
480
|
) || 1;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function it({
|
|
483
483
|
resolved: e,
|
|
484
484
|
transform: t
|
|
485
485
|
}) {
|
|
486
486
|
return e.size[0] / Math.max(Math.abs(t.size.width * t.scale2D.x), 1e-6) || 1;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function at({
|
|
489
489
|
parent: e,
|
|
490
490
|
resolved: t,
|
|
491
491
|
transform: o
|
|
492
492
|
}) {
|
|
493
493
|
const s = 16 * ((Math.min(
|
|
494
|
-
e.width /
|
|
495
|
-
e.height /
|
|
496
|
-
) || 1) * (
|
|
494
|
+
e.width / A.width,
|
|
495
|
+
e.height / A.height
|
|
496
|
+
) || 1) * (pe / Math.max(o.referencePixelsPerUnit, 1e-6))), a = 0.028;
|
|
497
497
|
return [
|
|
498
498
|
s / Math.max(Math.abs(t.size[0]) * a, 1e-6),
|
|
499
499
|
s / Math.max(Math.abs(t.size[1]) * a, 1e-6),
|
|
500
500
|
1
|
|
501
501
|
];
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ct({
|
|
504
504
|
drag: e,
|
|
505
505
|
clientX: t,
|
|
506
506
|
clientY: o,
|
|
@@ -517,8 +517,8 @@ function st({
|
|
|
517
517
|
};
|
|
518
518
|
if (e.handle === "move")
|
|
519
519
|
return i.position = {
|
|
520
|
-
x:
|
|
521
|
-
y:
|
|
520
|
+
x: I(e.startTransform.position.x + r),
|
|
521
|
+
y: I(e.startTransform.position.y + s)
|
|
522
522
|
}, i;
|
|
523
523
|
if (e.handle === "pivot") {
|
|
524
524
|
const M = Math.max(
|
|
@@ -527,12 +527,12 @@ function st({
|
|
|
527
527
|
), h = Math.max(
|
|
528
528
|
1,
|
|
529
529
|
e.startTransform.size.height * e.startTransform.scale2D.y
|
|
530
|
-
), c =
|
|
531
|
-
return i.pivot = [
|
|
532
|
-
x:
|
|
530
|
+
), c = Se(e.startTransform.pivot[0] + r / M), T = Se(e.startTransform.pivot[1] + s / h);
|
|
531
|
+
return i.pivot = [I(c * 1e3) / 1e3, I(T * 1e3) / 1e3], i.position = {
|
|
532
|
+
x: I(
|
|
533
533
|
e.startTransform.position.x + (i.pivot[0] - e.startTransform.pivot[0]) * M
|
|
534
534
|
),
|
|
535
|
-
y:
|
|
535
|
+
y: I(
|
|
536
536
|
e.startTransform.position.y + (i.pivot[1] - e.startTransform.pivot[1]) * h
|
|
537
537
|
)
|
|
538
538
|
}, i;
|
|
@@ -545,45 +545,45 @@ function st({
|
|
|
545
545
|
a.y - e.startTransform.position.y,
|
|
546
546
|
a.x - e.startTransform.position.x
|
|
547
547
|
);
|
|
548
|
-
return i.rotation =
|
|
548
|
+
return i.rotation = I(
|
|
549
549
|
e.startTransform.rotation + (h - M) * 180 / Math.PI
|
|
550
550
|
), i;
|
|
551
551
|
}
|
|
552
552
|
const d = e.handle === "left" || e.handle.endsWith("Left"), l = e.handle === "right" || e.handle.endsWith("Right"), p = e.handle === "top" || e.handle.startsWith("top"), S = e.handle === "bottom" || e.handle.startsWith("bottom"), w = l ? r * 2 : d ? -r * 2 : 0, b = p ? s * 2 : S ? -s * 2 : 0;
|
|
553
553
|
return i.size = {
|
|
554
|
-
width: Math.max(1,
|
|
555
|
-
height: Math.max(1,
|
|
554
|
+
width: Math.max(1, I(e.startTransform.size.width + w)),
|
|
555
|
+
height: Math.max(1, I(e.startTransform.size.height + b))
|
|
556
556
|
}, i;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function lt({
|
|
559
559
|
transform: e,
|
|
560
560
|
guideLayer: t,
|
|
561
561
|
guideColor: o,
|
|
562
562
|
onChange: n,
|
|
563
563
|
children: r
|
|
564
564
|
}) {
|
|
565
|
-
const s =
|
|
565
|
+
const s = ke(), { size: a } = xe(), i = j(n);
|
|
566
566
|
i.current = n;
|
|
567
567
|
const d = j(null), l = W(
|
|
568
|
-
() =>
|
|
568
|
+
() => fe({ transform: e, parentSize: s }),
|
|
569
569
|
[s, e]
|
|
570
|
-
), p =
|
|
570
|
+
), p = st(a), S = j(p);
|
|
571
571
|
S.current = p;
|
|
572
|
-
const w =
|
|
572
|
+
const w = it({ resolved: l, transform: e }), b = G((T) => {
|
|
573
573
|
const y = d.current, f = i.current;
|
|
574
574
|
!y || !f || f(
|
|
575
|
-
|
|
575
|
+
ct({
|
|
576
576
|
drag: y,
|
|
577
577
|
clientX: T.clientX,
|
|
578
578
|
clientY: T.clientY,
|
|
579
579
|
designScale: S.current
|
|
580
580
|
})
|
|
581
581
|
);
|
|
582
|
-
}, []), M =
|
|
582
|
+
}, []), M = G(() => {
|
|
583
583
|
d.current = null, document.body.style.cursor = "", window.removeEventListener("pointermove", b), window.removeEventListener("pointerup", M);
|
|
584
584
|
}, [b]);
|
|
585
585
|
U(() => M, [M]);
|
|
586
|
-
const h =
|
|
586
|
+
const h = G(
|
|
587
587
|
(T, y) => {
|
|
588
588
|
n && (d.current = {
|
|
589
589
|
handle: T,
|
|
@@ -598,7 +598,7 @@ function it({
|
|
|
598
598
|
},
|
|
599
599
|
[n, M, e, w, b]
|
|
600
600
|
), c = W(
|
|
601
|
-
() =>
|
|
601
|
+
() => at({ parent: s, resolved: l, transform: e }),
|
|
602
602
|
[s, l, e]
|
|
603
603
|
);
|
|
604
604
|
return /* @__PURE__ */ u(
|
|
@@ -619,10 +619,10 @@ function it({
|
|
|
619
619
|
0
|
|
620
620
|
],
|
|
621
621
|
scale: l.size,
|
|
622
|
-
children: /* @__PURE__ */ R(
|
|
622
|
+
children: /* @__PURE__ */ R(Be.Provider, { value: l.aspect, children: [
|
|
623
623
|
r,
|
|
624
624
|
e.showTransformGuides && t === "scene" ? /* @__PURE__ */ u(
|
|
625
|
-
|
|
625
|
+
$e,
|
|
626
626
|
{
|
|
627
627
|
color: o,
|
|
628
628
|
controlScale: c,
|
|
@@ -633,7 +633,7 @@ function it({
|
|
|
633
633
|
}
|
|
634
634
|
) : null,
|
|
635
635
|
e.showTransformGuides && t === "overlay" ? /* @__PURE__ */ u(
|
|
636
|
-
|
|
636
|
+
Ze,
|
|
637
637
|
{
|
|
638
638
|
color: o,
|
|
639
639
|
onChange: n,
|
|
@@ -651,19 +651,19 @@ const Y = {
|
|
|
651
651
|
opacity: 0.28,
|
|
652
652
|
frost: 0.35,
|
|
653
653
|
highlight: 0.55
|
|
654
|
-
},
|
|
654
|
+
}, ve = (e) => ({
|
|
655
655
|
...Y,
|
|
656
656
|
...e,
|
|
657
657
|
opacity: L.clamp((e == null ? void 0 : e.opacity) ?? Y.opacity, 0, 1),
|
|
658
658
|
frost: L.clamp((e == null ? void 0 : e.frost) ?? Y.frost, 0, 1),
|
|
659
659
|
highlight: L.clamp((e == null ? void 0 : e.highlight) ?? Y.highlight, 0, 1)
|
|
660
|
-
}),
|
|
660
|
+
}), dt = `
|
|
661
661
|
varying vec2 vPosition;
|
|
662
662
|
void main() {
|
|
663
663
|
vPosition = position.xy;
|
|
664
664
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
665
665
|
}
|
|
666
|
-
`,
|
|
666
|
+
`, ft = `
|
|
667
667
|
uniform vec3 tint;
|
|
668
668
|
uniform float opacity;
|
|
669
669
|
uniform float frost;
|
|
@@ -677,22 +677,22 @@ const Y = {
|
|
|
677
677
|
vec3 color = mix(frosted, vec3(1.0), sheen * highlight * 0.32);
|
|
678
678
|
gl_FragColor = vec4(color, opacity);
|
|
679
679
|
}
|
|
680
|
-
`,
|
|
680
|
+
`, pt = ({ opacity: e = 1, value: t }) => {
|
|
681
681
|
const o = W(() => {
|
|
682
|
-
const r =
|
|
682
|
+
const r = ve(t);
|
|
683
683
|
return {
|
|
684
|
-
tint: new
|
|
684
|
+
tint: new Le(r.tint),
|
|
685
685
|
opacity: r.opacity * e,
|
|
686
686
|
frost: r.frost,
|
|
687
687
|
highlight: r.highlight
|
|
688
688
|
};
|
|
689
|
-
}, [e, t]), n =
|
|
689
|
+
}, [e, t]), n = _e(o);
|
|
690
690
|
return /* @__PURE__ */ u(
|
|
691
691
|
"shaderMaterial",
|
|
692
692
|
{
|
|
693
693
|
uniforms: n,
|
|
694
|
-
vertexShader:
|
|
695
|
-
fragmentShader:
|
|
694
|
+
vertexShader: dt,
|
|
695
|
+
fragmentShader: ft,
|
|
696
696
|
transparent: !0,
|
|
697
697
|
depthTest: !1,
|
|
698
698
|
depthWrite: !1,
|
|
@@ -702,7 +702,7 @@ const Y = {
|
|
|
702
702
|
}, se = (e, t = 1) => Array.from({ length: e }, (o, n) => {
|
|
703
703
|
const r = n % 2 ? t * 0.5 : 0.5, s = -Math.PI / 2 + n / e * Math.PI * 2;
|
|
704
704
|
return [Math.cos(s) * r, Math.sin(s) * r, 0];
|
|
705
|
-
}),
|
|
705
|
+
}), ht = (e) => {
|
|
706
706
|
switch (e.kind) {
|
|
707
707
|
case "line":
|
|
708
708
|
return [
|
|
@@ -742,7 +742,7 @@ const Y = {
|
|
|
742
742
|
default:
|
|
743
743
|
return se(64);
|
|
744
744
|
}
|
|
745
|
-
},
|
|
745
|
+
}, ut = (e) => {
|
|
746
746
|
const t = new ae.Shape();
|
|
747
747
|
return e.forEach(([o, n], r) => r ? t.lineTo(o, n) : t.moveTo(o, n)), t.closePath(), t;
|
|
748
748
|
}, K = {
|
|
@@ -750,7 +750,7 @@ const Y = {
|
|
|
750
750
|
fillColor: "#38bdf8",
|
|
751
751
|
fillOpacity: 1,
|
|
752
752
|
fillMode: "solid",
|
|
753
|
-
gradient:
|
|
753
|
+
gradient: Ie,
|
|
754
754
|
glass: Y,
|
|
755
755
|
strokeColor: "#ffffff",
|
|
756
756
|
strokeOpacity: 1,
|
|
@@ -761,14 +761,14 @@ const Y = {
|
|
|
761
761
|
dashed: !1,
|
|
762
762
|
lineStart: { x: 0.1, y: 0.5 },
|
|
763
763
|
lineEnd: { x: 0.9, y: 0.5 }
|
|
764
|
-
},
|
|
764
|
+
}, mt = (e) => {
|
|
765
765
|
const t = {
|
|
766
766
|
...K,
|
|
767
767
|
...e,
|
|
768
768
|
lineStart: { ...K.lineStart, ...e == null ? void 0 : e.lineStart },
|
|
769
769
|
lineEnd: { ...K.lineEnd, ...e == null ? void 0 : e.lineEnd },
|
|
770
|
-
gradient:
|
|
771
|
-
glass:
|
|
770
|
+
gradient: je(e == null ? void 0 : e.gradient),
|
|
771
|
+
glass: ve(e == null ? void 0 : e.glass)
|
|
772
772
|
}, o = (n, r) => Number.isFinite(n) ? n : r;
|
|
773
773
|
return {
|
|
774
774
|
...t,
|
|
@@ -787,18 +787,18 @@ const Y = {
|
|
|
787
787
|
y: L.clamp(o(t.lineEnd.y, 0.5), 0, 1)
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
|
-
},
|
|
790
|
+
}, yt = ({
|
|
791
791
|
name: e,
|
|
792
792
|
renderOrder: t,
|
|
793
793
|
settings: o,
|
|
794
794
|
visible: n
|
|
795
795
|
}) => {
|
|
796
|
-
const r =
|
|
796
|
+
const r = Xe(), s = W(() => ht(o), [o]), a = W(() => ut(s), [s]), d = ["circle", "polygon", "star"].includes(o.kind) ? [Math.min(1, 1 / r), Math.min(1, r), 1] : [1, 1, 1], p = o.kind !== "line" ? [...s, s[0]] : s;
|
|
797
797
|
return /* @__PURE__ */ R("group", { name: e, visible: n, scale: d, children: [
|
|
798
798
|
o.kind !== "line" && o.fillOpacity > 0 ? /* @__PURE__ */ R("mesh", { renderOrder: t, children: [
|
|
799
799
|
/* @__PURE__ */ u("shapeGeometry", { args: [a] }),
|
|
800
|
-
o.fillMode === "glass" ? /* @__PURE__ */ u(
|
|
801
|
-
|
|
800
|
+
o.fillMode === "glass" ? /* @__PURE__ */ u(pt, { value: o.glass, opacity: o.fillOpacity }) : /* @__PURE__ */ u(
|
|
801
|
+
We,
|
|
802
802
|
{
|
|
803
803
|
settings: {
|
|
804
804
|
source: o.fillMode,
|
|
@@ -810,7 +810,7 @@ const Y = {
|
|
|
810
810
|
)
|
|
811
811
|
] }) : null,
|
|
812
812
|
o.strokeWidth > 0 && o.strokeOpacity > 0 ? /* @__PURE__ */ u(
|
|
813
|
-
|
|
813
|
+
Ue,
|
|
814
814
|
{
|
|
815
815
|
points: p,
|
|
816
816
|
color: o.strokeColor,
|
|
@@ -826,12 +826,21 @@ const Y = {
|
|
|
826
826
|
}
|
|
827
827
|
) : null
|
|
828
828
|
] });
|
|
829
|
-
},
|
|
829
|
+
}, St = [
|
|
830
830
|
"transform.position",
|
|
831
831
|
"transform.size",
|
|
832
832
|
"transform.rotation",
|
|
833
833
|
"settings.fillColor"
|
|
834
|
-
],
|
|
834
|
+
], ge = (e) => {
|
|
835
|
+
if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
|
|
836
|
+
const { x: t, y: o } = e;
|
|
837
|
+
return ce(t) && ce(o);
|
|
838
|
+
}, gt = {
|
|
839
|
+
"transform.position": ge,
|
|
840
|
+
"transform.size": ge,
|
|
841
|
+
"transform.rotation": ce,
|
|
842
|
+
"settings.fillColor": He
|
|
843
|
+
}, co = (e) => {
|
|
835
844
|
const {
|
|
836
845
|
name: t,
|
|
837
846
|
onScreenTransformChange: o,
|
|
@@ -840,19 +849,19 @@ const Y = {
|
|
|
840
849
|
transform: s,
|
|
841
850
|
transformGuideLayer: a = "scene",
|
|
842
851
|
visible: i = !0
|
|
843
|
-
} =
|
|
844
|
-
() =>
|
|
852
|
+
} = Ye(e, St, gt), d = W(() => mt(r), [r]), l = W(
|
|
853
|
+
() => Ae(s ?? Z),
|
|
845
854
|
[s]
|
|
846
855
|
);
|
|
847
856
|
return l.enabled ? /* @__PURE__ */ u(
|
|
848
|
-
|
|
857
|
+
lt,
|
|
849
858
|
{
|
|
850
859
|
transform: l,
|
|
851
860
|
guideLayer: a,
|
|
852
861
|
guideColor: "#38bdf8",
|
|
853
862
|
onChange: o,
|
|
854
863
|
children: /* @__PURE__ */ u(
|
|
855
|
-
|
|
864
|
+
yt,
|
|
856
865
|
{
|
|
857
866
|
name: t,
|
|
858
867
|
settings: d,
|
|
@@ -863,7 +872,7 @@ const Y = {
|
|
|
863
872
|
}
|
|
864
873
|
) : null;
|
|
865
874
|
};
|
|
866
|
-
function
|
|
875
|
+
function lo(e) {
|
|
867
876
|
const { screenSpaceUI: t, screenImage: o } = e, { image: n, transformation: r } = o, s = n.src.trim();
|
|
868
877
|
return {
|
|
869
878
|
shouldRender: t.enabled && o.enabled && r.enabled,
|
|
@@ -891,7 +900,7 @@ function so(e) {
|
|
|
891
900
|
}
|
|
892
901
|
};
|
|
893
902
|
}
|
|
894
|
-
const
|
|
903
|
+
const he = {
|
|
895
904
|
enabled: !0,
|
|
896
905
|
preset: "placeholder",
|
|
897
906
|
transformation: {
|
|
@@ -924,15 +933,15 @@ const pe = {
|
|
|
924
933
|
transparent: !0,
|
|
925
934
|
alphaTest: 0
|
|
926
935
|
}
|
|
927
|
-
},
|
|
928
|
-
screenImage:
|
|
936
|
+
}, fo = {
|
|
937
|
+
screenImage: he,
|
|
929
938
|
screenSpaceUI: {
|
|
930
939
|
enabled: !0
|
|
931
940
|
}
|
|
932
|
-
},
|
|
933
|
-
function
|
|
941
|
+
}, bt = (e) => e * Math.PI / 180;
|
|
942
|
+
function Tt(e) {
|
|
934
943
|
if (!e) return;
|
|
935
|
-
const t = e.offset ?? 0, o =
|
|
944
|
+
const t = e.offset ?? 0, o = bt(e.angle ?? -45);
|
|
936
945
|
return {
|
|
937
946
|
color: e.color,
|
|
938
947
|
opacity: e.opacity,
|
|
@@ -941,7 +950,7 @@ function yt(e) {
|
|
|
941
950
|
offsetY: Math.sin(o) * t
|
|
942
951
|
};
|
|
943
952
|
}
|
|
944
|
-
function
|
|
953
|
+
function po(e) {
|
|
945
954
|
const { screenSpaceUI: t, screenText: o } = e, { content: n, layout: r, style: s, transformation: a } = o, i = s.background;
|
|
946
955
|
return {
|
|
947
956
|
shouldRender: t.enabled && o.enabled && a.enabled,
|
|
@@ -972,7 +981,7 @@ function ao(e) {
|
|
|
972
981
|
strokeLayers: s.strokeLayers,
|
|
973
982
|
shadowEnabled: s.shadowEnabled,
|
|
974
983
|
shadowLayers: s.shadowLayers,
|
|
975
|
-
innerShadow: s.innerShadowEnabled ?
|
|
984
|
+
innerShadow: s.innerShadowEnabled ? Tt(s.innerShadow) : void 0,
|
|
976
985
|
glow: s.glowEnabled ? s.glow : void 0,
|
|
977
986
|
bend: s.bendEnabled ? s.bend : void 0,
|
|
978
987
|
bgColor: i.enabled ? i.color : "transparent",
|
|
@@ -999,7 +1008,7 @@ function ao(e) {
|
|
|
999
1008
|
}
|
|
1000
1009
|
};
|
|
1001
1010
|
}
|
|
1002
|
-
const
|
|
1011
|
+
const xt = {
|
|
1003
1012
|
color: "#000000",
|
|
1004
1013
|
blur: 0,
|
|
1005
1014
|
offsetX: 7.071,
|
|
@@ -1008,7 +1017,7 @@ const St = {
|
|
|
1008
1017
|
offset: 10,
|
|
1009
1018
|
angle: -45,
|
|
1010
1019
|
feather: 0
|
|
1011
|
-
},
|
|
1020
|
+
}, vt = {
|
|
1012
1021
|
screenText: {
|
|
1013
1022
|
enabled: !0,
|
|
1014
1023
|
content: {
|
|
@@ -1083,7 +1092,7 @@ const St = {
|
|
|
1083
1092
|
textureFlipY: !1
|
|
1084
1093
|
},
|
|
1085
1094
|
strokeLayers: [{ color: "#0f172a", width: 12, opacity: 1 }],
|
|
1086
|
-
shadowLayers: [
|
|
1095
|
+
shadowLayers: [xt]
|
|
1087
1096
|
},
|
|
1088
1097
|
screenTransform: {
|
|
1089
1098
|
...Z,
|
|
@@ -1104,24 +1113,24 @@ const St = {
|
|
|
1104
1113
|
},
|
|
1105
1114
|
textArtPreset: "clean"
|
|
1106
1115
|
},
|
|
1107
|
-
screenImage:
|
|
1116
|
+
screenImage: he,
|
|
1108
1117
|
screenSpaceUI: {
|
|
1109
1118
|
enabled: !0
|
|
1110
1119
|
}
|
|
1111
|
-
},
|
|
1120
|
+
}, we = (e) => {
|
|
1112
1121
|
const t = typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
|
|
1113
1122
|
return `${e}_${t}`;
|
|
1114
|
-
},
|
|
1123
|
+
}, wt = () => we("obj"), Mt = () => we("cmp"), N = (e) => typeof structuredClone == "function" ? structuredClone(e) : JSON.parse(JSON.stringify(e)), Et = () => N(Ge), zt = () => N(Z), Pt = () => N(he), Ot = () => N(vt.screenText), Rt = () => N(K), Dt = () => N(ze), Lt = () => N(Ne), Ct = () => ({
|
|
1115
1124
|
type: "standard",
|
|
1116
1125
|
color: "#ffffff",
|
|
1117
1126
|
opacity: 1,
|
|
1118
1127
|
wireframe: !1,
|
|
1119
1128
|
roughness: 0.42,
|
|
1120
1129
|
metalness: 0.08
|
|
1121
|
-
}),
|
|
1130
|
+
}), At = () => ({
|
|
1122
1131
|
flipX: !1,
|
|
1123
1132
|
flipY: !1
|
|
1124
|
-
}),
|
|
1133
|
+
}), Ft = () => ({
|
|
1125
1134
|
enabled: !0,
|
|
1126
1135
|
type: "directional",
|
|
1127
1136
|
color: "#ffffff",
|
|
@@ -1132,35 +1141,35 @@ const St = {
|
|
|
1132
1141
|
penumbra: 0.2,
|
|
1133
1142
|
decay: 2,
|
|
1134
1143
|
showHelper: !1
|
|
1135
|
-
}),
|
|
1144
|
+
}), _t = () => ({
|
|
1136
1145
|
enabled: !1,
|
|
1137
1146
|
targetObjectId: null,
|
|
1138
1147
|
mode: "point",
|
|
1139
1148
|
inheritChildren: !1,
|
|
1140
1149
|
offsetRotation: { x: 0, y: 0, z: 0 }
|
|
1141
|
-
}),
|
|
1150
|
+
}), It = () => ({
|
|
1142
1151
|
...q,
|
|
1143
1152
|
uv: { ...q.uv },
|
|
1144
1153
|
offsetPosition: { ...q.offsetPosition },
|
|
1145
1154
|
offsetRotation: { ...q.offsetRotation }
|
|
1146
|
-
}),
|
|
1147
|
-
Transform:
|
|
1148
|
-
ScreenTransform:
|
|
1149
|
-
ScreenImage:
|
|
1150
|
-
ScreenText:
|
|
1151
|
-
ScreenShape:
|
|
1152
|
-
MeshRenderer:
|
|
1153
|
-
FaceMeshRenderer:
|
|
1154
|
-
Material:
|
|
1155
|
-
Texture:
|
|
1156
|
-
Light:
|
|
1157
|
-
LookAt:
|
|
1158
|
-
PinToMesh:
|
|
1159
|
-
TrackingAnchor:
|
|
1160
|
-
},
|
|
1155
|
+
}), jt = () => N(Fe), Wt = {
|
|
1156
|
+
Transform: Et,
|
|
1157
|
+
ScreenTransform: zt,
|
|
1158
|
+
ScreenImage: Pt,
|
|
1159
|
+
ScreenText: Ot,
|
|
1160
|
+
ScreenShape: Rt,
|
|
1161
|
+
MeshRenderer: Dt,
|
|
1162
|
+
FaceMeshRenderer: Lt,
|
|
1163
|
+
Material: Ct,
|
|
1164
|
+
Texture: At,
|
|
1165
|
+
Light: Ft,
|
|
1166
|
+
LookAt: _t,
|
|
1167
|
+
PinToMesh: It,
|
|
1168
|
+
TrackingAnchor: jt
|
|
1169
|
+
}, ho = ({
|
|
1161
1170
|
componentIds: e = [],
|
|
1162
1171
|
enabled: t = !0,
|
|
1163
|
-
id: o =
|
|
1172
|
+
id: o = wt(),
|
|
1164
1173
|
parentObjectId: n = null,
|
|
1165
1174
|
childObjectIds: r = [],
|
|
1166
1175
|
renderGroupId: s,
|
|
@@ -1175,16 +1184,16 @@ const St = {
|
|
|
1175
1184
|
layerId: a,
|
|
1176
1185
|
renderGroupId: s ?? a,
|
|
1177
1186
|
componentIds: e
|
|
1178
|
-
}),
|
|
1179
|
-
id:
|
|
1187
|
+
}), uo = (e, t) => ({
|
|
1188
|
+
id: Mt(),
|
|
1180
1189
|
objectId: t,
|
|
1181
1190
|
type: e,
|
|
1182
1191
|
enabled: !0,
|
|
1183
|
-
settings:
|
|
1192
|
+
settings: Wt[e]()
|
|
1184
1193
|
}), J = (e, t) => {
|
|
1185
1194
|
const o = e.objects[t];
|
|
1186
1195
|
return o ? o.componentIds.map((n) => e.components[n]).filter((n) => !!n) : [];
|
|
1187
|
-
},
|
|
1196
|
+
}, mo = () => {
|
|
1188
1197
|
let e = null, t = null, o = null, n = [];
|
|
1189
1198
|
return (r, s) => {
|
|
1190
1199
|
const a = r.objects[s];
|
|
@@ -1193,7 +1202,7 @@ const St = {
|
|
|
1193
1202
|
const i = a.componentIds;
|
|
1194
1203
|
return e === r && t === s && o === i && n.length === i.length && n.every((l) => r.components[l.id] === l) || (e = r, t = s, o = i, n = J(r, s)), n;
|
|
1195
1204
|
};
|
|
1196
|
-
},
|
|
1205
|
+
}, yo = (e, t) => {
|
|
1197
1206
|
const o = e.objects[t.objectId];
|
|
1198
1207
|
return o ? {
|
|
1199
1208
|
...e,
|
|
@@ -1209,7 +1218,7 @@ const St = {
|
|
|
1209
1218
|
[t.id]: t
|
|
1210
1219
|
}
|
|
1211
1220
|
} : e;
|
|
1212
|
-
},
|
|
1221
|
+
}, So = (e, t, o, n) => {
|
|
1213
1222
|
const r = e.objects[t];
|
|
1214
1223
|
if (!r || r.componentIds.indexOf(o) < 0) return e;
|
|
1215
1224
|
const a = r.componentIds.filter((i) => i !== o);
|
|
@@ -1220,7 +1229,7 @@ const St = {
|
|
|
1220
1229
|
[t]: { ...r, componentIds: a }
|
|
1221
1230
|
}
|
|
1222
1231
|
};
|
|
1223
|
-
},
|
|
1232
|
+
}, go = (e, t, o) => {
|
|
1224
1233
|
const n = e.objects[t];
|
|
1225
1234
|
if (!n) return e;
|
|
1226
1235
|
const r = { ...e.components };
|
|
@@ -1235,22 +1244,22 @@ const St = {
|
|
|
1235
1244
|
},
|
|
1236
1245
|
components: r
|
|
1237
1246
|
};
|
|
1238
|
-
},
|
|
1247
|
+
}, be = (e, t) => e.components[t.id] ? {
|
|
1239
1248
|
...e,
|
|
1240
1249
|
components: {
|
|
1241
1250
|
...e.components,
|
|
1242
1251
|
[t.id]: t
|
|
1243
1252
|
}
|
|
1244
|
-
} : e,
|
|
1253
|
+
} : e, Nt = (e, t) => e.objects[t.id] ? {
|
|
1245
1254
|
...e,
|
|
1246
1255
|
objects: {
|
|
1247
1256
|
...e.objects,
|
|
1248
1257
|
[t.id]: t
|
|
1249
1258
|
}
|
|
1250
|
-
} : e,
|
|
1259
|
+
} : e, Gt = (e, t) => {
|
|
1251
1260
|
const o = e.objects[t], n = (o == null ? void 0 : o.childObjectIds) ?? [], r = Object.values(e.objects).filter((a) => a.parentObjectId === t).map((a) => a.id);
|
|
1252
1261
|
return [.../* @__PURE__ */ new Set([...n, ...r])].map((a) => e.objects[a]).filter((a) => !!a);
|
|
1253
|
-
},
|
|
1262
|
+
}, Ut = (e, t, o) => {
|
|
1254
1263
|
var s;
|
|
1255
1264
|
let n = o;
|
|
1256
1265
|
const r = /* @__PURE__ */ new Set();
|
|
@@ -1259,17 +1268,17 @@ const St = {
|
|
|
1259
1268
|
r.add(n), n = ((s = e.objects[n]) == null ? void 0 : s.parentObjectId) ?? null;
|
|
1260
1269
|
}
|
|
1261
1270
|
return !1;
|
|
1262
|
-
},
|
|
1271
|
+
}, Te = (e, t) => {
|
|
1263
1272
|
const o = new Set(J(e, t).map((n) => n.type));
|
|
1264
1273
|
return o.has("Transform") ? "3d" : o.has("ScreenTransform") ? "2d" : null;
|
|
1265
|
-
},
|
|
1274
|
+
}, kt = (e, t, o, n) => {
|
|
1266
1275
|
const r = e.objects[t];
|
|
1267
1276
|
if (!r || o !== null && !e.objects[o]) return e;
|
|
1268
1277
|
if (o !== null) {
|
|
1269
|
-
const i =
|
|
1278
|
+
const i = Te(e, t), d = Te(e, o);
|
|
1270
1279
|
if (i && d && i !== d) return e;
|
|
1271
1280
|
}
|
|
1272
|
-
if (
|
|
1281
|
+
if (Ut(e, t, o)) return e;
|
|
1273
1282
|
const s = r.parentObjectId ?? null;
|
|
1274
1283
|
if (s === o && o === null) return e;
|
|
1275
1284
|
const a = { ...e.objects };
|
|
@@ -1289,7 +1298,7 @@ const St = {
|
|
|
1289
1298
|
), a[o] = { ...i, childObjectIds: d };
|
|
1290
1299
|
}
|
|
1291
1300
|
return { ...e, objects: a };
|
|
1292
|
-
}, ie = Math.PI / 180, Q = 180 / Math.PI, D = (e) => Number(e.toFixed(4)),
|
|
1301
|
+
}, ie = Math.PI / 180, Q = 180 / Math.PI, D = (e) => Number(e.toFixed(4)), Bt = (e) => (e == null ? void 0 : e.type) === "Transform", Me = (e, t) => J(e, t).find(Bt) ?? null, Xt = (e) => (e == null ? void 0 : e.type) === "ScreenTransform", Ee = (e, t) => J(e, t).find(Xt) ?? null, Yt = (e) => new B().compose(
|
|
1293
1302
|
new z(e.position.x, e.position.y, e.position.z),
|
|
1294
1303
|
new X().setFromEuler(
|
|
1295
1304
|
new H(
|
|
@@ -1299,16 +1308,16 @@ const St = {
|
|
|
1299
1308
|
)
|
|
1300
1309
|
),
|
|
1301
1310
|
new z(e.scale.x, e.scale.y, e.scale.z)
|
|
1302
|
-
),
|
|
1303
|
-
const o =
|
|
1304
|
-
return o ?
|
|
1305
|
-
},
|
|
1306
|
-
const o = e.objects[t], n =
|
|
1307
|
-
return !(o != null && o.parentObjectId) || !e.objects[o.parentObjectId] ? n :
|
|
1308
|
-
},
|
|
1309
|
-
const t =
|
|
1311
|
+
), Ht = (e, t) => {
|
|
1312
|
+
const o = Me(e, t);
|
|
1313
|
+
return o ? Yt(o.settings) : new B();
|
|
1314
|
+
}, le = (e, t) => {
|
|
1315
|
+
const o = e.objects[t], n = Ht(e, t);
|
|
1316
|
+
return !(o != null && o.parentObjectId) || !e.objects[o.parentObjectId] ? n : le(e, o.parentObjectId).multiply(n);
|
|
1317
|
+
}, $t = (e) => {
|
|
1318
|
+
const t = fe({
|
|
1310
1319
|
transform: e,
|
|
1311
|
-
parentSize:
|
|
1320
|
+
parentSize: A,
|
|
1312
1321
|
snapIncrement: 0
|
|
1313
1322
|
});
|
|
1314
1323
|
return new B().compose(
|
|
@@ -1316,11 +1325,11 @@ const St = {
|
|
|
1316
1325
|
new X().setFromEuler(new H(...t.rotation)),
|
|
1317
1326
|
new z(...t.size)
|
|
1318
1327
|
);
|
|
1319
|
-
},
|
|
1328
|
+
}, de = (e, t) => {
|
|
1320
1329
|
var s;
|
|
1321
|
-
const o =
|
|
1322
|
-
return !r || !e.objects[r] ? n :
|
|
1323
|
-
},
|
|
1330
|
+
const o = Ee(e, t), n = o ? $t(o.settings) : new B(), r = (s = e.objects[t]) == null ? void 0 : s.parentObjectId;
|
|
1331
|
+
return !r || !e.objects[r] ? n : de(e, r).multiply(n);
|
|
1332
|
+
}, Vt = (e, t) => {
|
|
1324
1333
|
const o = new z(), n = new X(), r = new z();
|
|
1325
1334
|
e.decompose(o, n, r);
|
|
1326
1335
|
const s = new H().setFromQuaternion(n);
|
|
@@ -1342,10 +1351,10 @@ const St = {
|
|
|
1342
1351
|
z: D(r.z)
|
|
1343
1352
|
}
|
|
1344
1353
|
};
|
|
1345
|
-
},
|
|
1354
|
+
}, qt = (e, t) => {
|
|
1346
1355
|
const o = new z(), n = new X(), r = new z();
|
|
1347
1356
|
e.decompose(o, n, r);
|
|
1348
|
-
const s = new H().setFromQuaternion(n), a =
|
|
1357
|
+
const s = new H().setFromQuaternion(n), a = pe / t.referencePixelsPerUnit, i = Math.abs(r.x), d = Math.abs(r.y), l = (t.pivot[0] - 0.5) * i, p = (t.pivot[1] - 0.5) * d;
|
|
1349
1358
|
return {
|
|
1350
1359
|
...t,
|
|
1351
1360
|
position: {
|
|
@@ -1358,24 +1367,24 @@ const St = {
|
|
|
1358
1367
|
y: D(d / (t.size.height * a))
|
|
1359
1368
|
}
|
|
1360
1369
|
};
|
|
1361
|
-
},
|
|
1362
|
-
const r =
|
|
1370
|
+
}, bo = (e, t, o, n) => {
|
|
1371
|
+
const r = Me(e, t), s = Ee(e, t), a = r ? le(e, t) : s ? de(e, t) : null, i = kt(e, t, o, n);
|
|
1363
1372
|
if (i === e || !a) return i;
|
|
1364
|
-
const l = (o ? r ?
|
|
1365
|
-
return s ?
|
|
1373
|
+
const l = (o ? r ? le(i, o) : de(i, o) : new B()).clone().invert().multiply(a);
|
|
1374
|
+
return s ? be(i, {
|
|
1366
1375
|
...s,
|
|
1367
|
-
settings:
|
|
1368
|
-
}) : r ?
|
|
1376
|
+
settings: qt(l, s.settings)
|
|
1377
|
+
}) : r ? be(i, {
|
|
1369
1378
|
...r,
|
|
1370
|
-
settings:
|
|
1379
|
+
settings: Vt(l, r.settings)
|
|
1371
1380
|
}) : i;
|
|
1372
|
-
},
|
|
1381
|
+
}, To = (e, t, o) => {
|
|
1373
1382
|
const n = e.objects[t];
|
|
1374
|
-
return n ?
|
|
1375
|
-
},
|
|
1383
|
+
return n ? Nt(e, { ...n, enabled: o }) : e;
|
|
1384
|
+
}, xo = (e, t) => {
|
|
1376
1385
|
const o = e.objects[t];
|
|
1377
1386
|
if (!o) return e;
|
|
1378
|
-
const n =
|
|
1387
|
+
const n = Gt(e, t).map((i) => i.id), r = { ...e.objects };
|
|
1379
1388
|
delete r[t];
|
|
1380
1389
|
const s = Object.fromEntries(
|
|
1381
1390
|
Object.entries(r).map(([i, d]) => [
|
|
@@ -1393,46 +1402,46 @@ const St = {
|
|
|
1393
1402
|
return { ...e, objects: s, components: a };
|
|
1394
1403
|
};
|
|
1395
1404
|
export {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1405
|
+
To as A,
|
|
1406
|
+
lo as B,
|
|
1407
|
+
po as C,
|
|
1408
|
+
co as D,
|
|
1409
|
+
Y as E,
|
|
1410
|
+
ve as F,
|
|
1411
|
+
pt as G,
|
|
1412
|
+
K as H,
|
|
1413
|
+
mt as I,
|
|
1414
|
+
he as J,
|
|
1415
|
+
fo as K,
|
|
1416
|
+
vt as L,
|
|
1417
|
+
xt as M,
|
|
1418
|
+
Tt as N,
|
|
1419
|
+
ao as P,
|
|
1411
1420
|
lt as S,
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1421
|
+
yo as a,
|
|
1422
|
+
uo as b,
|
|
1423
|
+
Wt as c,
|
|
1424
|
+
Lt as d,
|
|
1425
|
+
Ct as e,
|
|
1426
|
+
Dt as f,
|
|
1427
|
+
Pt as g,
|
|
1428
|
+
Ot as h,
|
|
1429
|
+
Rt as i,
|
|
1430
|
+
zt as j,
|
|
1431
|
+
At as k,
|
|
1432
|
+
Et as l,
|
|
1433
|
+
Mt as m,
|
|
1434
|
+
we as n,
|
|
1435
|
+
ho as o,
|
|
1436
|
+
wt as p,
|
|
1437
|
+
mo as q,
|
|
1438
|
+
xo as r,
|
|
1430
1439
|
J as s,
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1440
|
+
Gt as t,
|
|
1441
|
+
So as u,
|
|
1442
|
+
go as v,
|
|
1443
|
+
be as w,
|
|
1444
|
+
Nt as x,
|
|
1445
|
+
kt as y,
|
|
1446
|
+
bo as z
|
|
1438
1447
|
};
|