@tomorrowevening/hermes 0.0.13 → 0.0.15

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/dist/hermes.js CHANGED
@@ -1,74 +1,74 @@
1
- var On = Object.defineProperty;
2
- var Tn = (t, n, i) => n in t ? On(t, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[n] = i;
3
- var q = (t, n, i) => (Tn(t, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { PositionalAudio as Mn, EventDispatcher as rn, Texture as an, CubeTexture as Rn, RepeatWrapping as $t, ShaderMaterial as on, GLSL3 as Pn, DoubleSide as jn, Color as It, Mesh as _n, PlaneGeometry as Dn, Matrix4 as kn, Vector3 as G, Euler as An, Ray as In, Plane as Nn, MathUtils as Ln, MOUSE as ze, TOUCH as Ye, Quaternion as Vt, Spherical as Gt, Vector2 as ue, PerspectiveCamera as _t, MeshDepthMaterial as Fn, MeshNormalMaterial as Un, MeshBasicMaterial as Bn, OrthographicCamera as sn, Scene as cn, Group as $n, AxesHelper as ln, WebGLRenderer as Vn, Raycaster as Gn, CameraHelper as zn } from "three";
5
- import { getProject as Yn } from "@theatre/core";
6
- import "@theatre/studio";
7
- import { Pane as Wn } from "tweakpane";
8
- import * as Hn from "@tweakpane/plugin-essentials";
9
- import un, { useState as ae, useRef as we, useEffect as Ne, Component as Kn, forwardRef as Xn } from "react";
10
- import { Reorder as dn } from "framer-motion";
11
- function Ki(t, n, i) {
12
- return Math.min(n, Math.max(t, i));
13
- }
14
- function Xi(t, n) {
15
- const i = t - n;
16
- return Math.sqrt(i * i);
17
- }
18
- function Zn() {
1
+ var _n = Object.defineProperty;
2
+ var jn = (t, n, a) => n in t ? _n(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a;
3
+ var Z = (t, n, a) => (jn(t, typeof n != "symbol" ? n + "" : n, a), a);
4
+ import { PositionalAudio as kn, EventDispatcher as sn, Texture as cn, CubeTexture as An, RepeatWrapping as Yt, ShaderMaterial as ln, GLSL3 as Dn, DoubleSide as In, Color as Ft, Mesh as Nn, PlaneGeometry as Ln, Matrix4 as Fn, Vector3 as Y, Euler as Un, Ray as Bn, Plane as $n, MathUtils as Gn, MOUSE as We, TOUCH as He, Quaternion as Wt, Spherical as Ht, Vector2 as de, PerspectiveCamera as Dt, MeshDepthMaterial as Vn, MeshNormalMaterial as zn, MeshBasicMaterial as Yn, OrthographicCamera as un, Scene as dn, Group as Wn, AxesHelper as fn, WebGLRenderer as Hn, Raycaster as Kn, CameraHelper as Xn } from "three";
5
+ import { getProject as qn } from "@theatre/core";
6
+ import rt from "@theatre/studio";
7
+ import { Pane as Zn } from "tweakpane";
8
+ import * as Jn from "@tweakpane/plugin-essentials";
9
+ import hn, { useState as oe, useRef as Ce, useEffect as Fe, Component as Qn, forwardRef as ea } from "react";
10
+ import { Reorder as pn } from "framer-motion";
11
+ function si(t, n, a) {
12
+ return Math.min(n, Math.max(t, a));
13
+ }
14
+ function ci(t, n) {
15
+ const a = t - n;
16
+ return Math.sqrt(a * a);
17
+ }
18
+ function ta() {
19
19
  return Math.round(Math.random() * 1e6).toString();
20
20
  }
21
- function qn(t) {
21
+ function na(t) {
22
22
  return t.r !== void 0 && t.g !== void 0 && t.b !== void 0;
23
23
  }
24
- function Qn(t) {
25
- const n = Math.round(t.r * 255), i = Math.round(t.g * 255), e = Math.round(t.b * 255), a = (d) => {
26
- const m = d.toString(16);
27
- return m.length === 1 ? "0" + m : m;
28
- }, s = a(n), h = a(i), l = a(e);
29
- return "#" + s + h + l;
24
+ function aa(t) {
25
+ const n = Math.round(t.r * 255), a = Math.round(t.g * 255), e = Math.round(t.b * 255), r = (u) => {
26
+ const p = u.toString(16);
27
+ return p.length === 1 ? "0" + p : p;
28
+ }, s = r(n), f = r(a), l = r(e);
29
+ return "#" + s + f + l;
30
30
  }
31
- function Mt(t, n = 1) {
31
+ function _t(t, n = 1) {
32
32
  return Number(t.toFixed(n));
33
33
  }
34
- let Dt = 0;
35
- const Jn = () => {
36
- Dt = 0;
37
- }, fn = (t) => {
34
+ let It = 0;
35
+ const ia = () => {
36
+ It = 0;
37
+ }, mn = (t) => {
38
38
  if (!t)
39
39
  return;
40
40
  let n = t.name.replace(" ", "");
41
- n.length === 0 && (n = `obj_${Dt}`, Dt++), t.parent !== null && (n = `${t.parent.uuid}.${n}`), t.uuid = n, t.children.forEach((i) => {
42
- fn(i);
41
+ n.length === 0 && (n = `obj_${It}`, It++), t.parent !== null && (n = `${t.parent.uuid}.${n}`), t.uuid = n, t.children.forEach((a) => {
42
+ mn(a);
43
43
  });
44
- }, Zi = (t) => {
44
+ }, li = (t) => {
45
45
  t == null || t.dispose();
46
- }, ei = (t) => {
46
+ }, ra = (t) => {
47
47
  t && (Array.isArray(t) ? t.forEach((n) => n.dispose()) : t.dispose());
48
- }, hn = (t) => {
48
+ }, gn = (t) => {
49
49
  var n;
50
50
  if (t) {
51
51
  for (; t.children.length > 0; ) {
52
- const i = t.children[0];
53
- i instanceof Mn ? (i.pause(), i.parent && i.parent.remove(i)) : hn(i);
52
+ const a = t.children[0];
53
+ a instanceof kn ? (a.pause(), a.parent && a.parent.remove(a)) : gn(a);
54
54
  }
55
55
  if (t.parent && t.parent.remove(t), t.isMesh) {
56
- const i = t;
57
- (n = i.geometry) == null || n.dispose(), ei(i.material);
56
+ const a = t;
57
+ (n = a.geometry) == null || n.dispose(), ra(a.material);
58
58
  }
59
59
  t.dispose !== void 0 && t.dispose();
60
60
  }
61
61
  };
62
- class qi {
63
- constructor(n, i, e = "editor") {
64
- q(this, "channel");
65
- q(this, "components", /* @__PURE__ */ new Map());
62
+ class ui {
63
+ constructor(n, a, e = "editor") {
64
+ Z(this, "channel");
65
+ Z(this, "components", /* @__PURE__ */ new Map());
66
66
  // Protected
67
- q(this, "_mode", "app");
68
- this.editor = i && document.location.hash.search(e) > -1, i && (this.channel = new BroadcastChannel(n));
67
+ Z(this, "_mode", "app");
68
+ this.editor = a && document.location.hash.search(e) > -1, a && (this.channel = new BroadcastChannel(n));
69
69
  }
70
- addComponent(n, i) {
71
- this.components.set(n, i);
70
+ addComponent(n, a) {
71
+ this.components.set(n, a);
72
72
  }
73
73
  dispose() {
74
74
  this.components.forEach((n) => {
@@ -80,14 +80,17 @@ class qi {
80
80
  this.channel !== void 0 && this._mode !== n.target && this.channel.postMessage(n);
81
81
  }
82
82
  listen(n) {
83
- this.channel !== void 0 && (this.channel.onmessage = (i) => {
84
- n(i.data);
83
+ this.channel !== void 0 && (this.channel.onmessage = (a) => {
84
+ n(a.data);
85
85
  });
86
86
  }
87
87
  // Getters / Setters
88
88
  get mode() {
89
89
  return this._mode;
90
90
  }
91
+ get isApp() {
92
+ return this._mode === "app";
93
+ }
91
94
  get editor() {
92
95
  return this._mode === "editor";
93
96
  }
@@ -95,7 +98,7 @@ class qi {
95
98
  n && (this._mode = "editor", document.title += " - Editor");
96
99
  }
97
100
  }
98
- const z = new rn(), Y = {
101
+ const _ = new sn(), j = {
99
102
  CUSTOM: "ToolEvents::custom",
100
103
  // Components
101
104
  SELECT_DROPDOWN: "ToolEvents::selectDropdown",
@@ -111,82 +114,92 @@ const z = new rn(), Y = {
111
114
  ADD_CAMERA: "ToolEvents::addCamera",
112
115
  REMOVE_CAMERA: "ToolEvents::removeCamera"
113
116
  };
114
- class Et {
117
+ class Ct {
115
118
  constructor(n) {
116
- q(this, "app");
119
+ Z(this, "app");
117
120
  this.app = n;
118
121
  }
119
122
  dispose() {
120
123
  }
121
124
  }
122
- class Qi extends Et {
123
- selectDropdown(n, i) {
125
+ class oa extends Ct {
126
+ selectDropdown(n, a) {
124
127
  this.app.send({
125
128
  event: "selectComponent",
126
129
  target: "app",
127
130
  data: {
128
131
  dropdown: n,
129
- value: i
132
+ value: a
130
133
  }
131
134
  });
132
135
  }
133
- updateDropdown(n, i) {
136
+ updateDropdown(n, a) {
134
137
  this.app.send({
135
138
  event: "draggableListUpdate",
136
139
  target: "app",
137
140
  data: {
138
141
  dropdown: n,
139
- value: i
142
+ value: a
140
143
  }
141
144
  });
142
145
  }
143
146
  }
144
- const pn = () => {
147
+ function sa(t, n) {
148
+ switch (n.event) {
149
+ case "selectComponent":
150
+ _.dispatchEvent({ type: j.SELECT_DROPDOWN, value: n.data });
151
+ break;
152
+ case "draggableListUpdate":
153
+ _.dispatchEvent({ type: j.DRAG_UPDATE, value: n.data });
154
+ break;
155
+ }
156
+ }
157
+ const vn = () => {
145
158
  };
146
- class Ji extends Et {
147
- constructor(i, e, a) {
148
- super(i);
149
- q(this, "project");
150
- q(this, "sheets");
151
- q(this, "sheetObjects");
152
- q(this, "sheetObjectCBs");
153
- q(this, "sheetObjectUnsubscribe");
154
- this.project = Yn(e, a), this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
159
+ class Ut extends Ct {
160
+ constructor(a, e, r) {
161
+ super(a);
162
+ Z(this, "project");
163
+ Z(this, "sheets");
164
+ Z(this, "sheetObjects");
165
+ Z(this, "sheetObjectCBs");
166
+ Z(this, "sheetObjectUnsubscribe");
167
+ this.project = qn(e, r), this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
155
168
  }
156
169
  dispose() {
157
170
  this.project = void 0, this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
158
171
  }
159
- sheet(i) {
160
- var a;
172
+ sheet(a) {
173
+ var r;
161
174
  if (this.project === void 0) {
162
175
  console.error("Theatre Project hasn't been created yet.");
163
176
  return;
164
177
  }
165
- let e = this.sheets.get(i);
166
- return e !== void 0 || (e = (a = this.project) == null ? void 0 : a.sheet(i), this.sheets.set(i, e)), e;
178
+ let e = this.sheets.get(a);
179
+ return e !== void 0 || (e = (r = this.project) == null ? void 0 : r.sheet(a), this.sheets.set(a, e)), e;
167
180
  }
168
- sheetObject(i, e, a, s) {
181
+ sheetObject(a, e, r, s) {
169
182
  if (this.project === void 0) {
170
183
  console.error("Theatre Project hasn't been created yet.");
171
184
  return;
172
185
  }
173
- const h = this.sheets.get(i);
174
- if (h === void 0)
186
+ const f = this.sheets.get(a);
187
+ if (f === void 0)
175
188
  return;
176
- const l = `${i}_${e}`;
177
- let d = this.sheetObjects.get(l);
178
- if (d !== void 0)
179
- return d = h.object(e, { ...a, ...d.value }, { reconfigure: !0 }), d;
180
- d = h.object(e, a), this.sheetObjects.set(l, d), this.sheetObjectCBs.set(l, s !== void 0 ? s : pn);
181
- const m = d.onValuesChange((v) => {
189
+ const l = `${a}_${e}`;
190
+ let u = this.sheetObjects.get(l);
191
+ if (u !== void 0)
192
+ return u = f.object(e, { ...r, ...u.value }, { reconfigure: !0 }), u;
193
+ u = f.object(e, r), this.sheetObjects.set(l, u), this.sheetObjectCBs.set(l, s !== void 0 ? s : vn);
194
+ const p = u.onValuesChange((v) => {
182
195
  if (this.app.editor) {
183
196
  for (const E in v) {
184
- const x = v[E];
185
- typeof x == "object" && qn(x) && (v[E] = {
186
- r: x.r,
187
- g: x.g,
188
- b: x.b,
189
- a: x.a
197
+ const w = v[E];
198
+ typeof w == "object" && na(w) && (v[E] = {
199
+ r: w.r,
200
+ g: w.g,
201
+ b: w.b,
202
+ a: w.a
190
203
  });
191
204
  }
192
205
  this.app.send({
@@ -202,18 +215,87 @@ class Ji extends Et {
202
215
  E !== void 0 && E(v);
203
216
  }
204
217
  });
205
- return this.sheetObjectUnsubscribe.set(l, m), d;
218
+ return this.sheetObjectUnsubscribe.set(l, p), u;
206
219
  }
207
- unsubscribe(i) {
220
+ unsubscribe(a) {
208
221
  if (this.project === void 0) {
209
222
  console.error("Theatre Project hasn't been created yet.");
210
223
  return;
211
224
  }
212
- const e = `${i.address.sheetId}_${i.address.objectKey}`, a = this.sheetObjectUnsubscribe.get(e);
213
- a !== void 0 && a();
225
+ const e = `${a.address.sheetId}_${a.address.objectKey}`, r = this.sheetObjectUnsubscribe.get(e);
226
+ r !== void 0 && r();
214
227
  }
215
228
  }
216
- function ti(t) {
229
+ let Me;
230
+ function ca(t, n) {
231
+ t.components.forEach((a) => {
232
+ if (a instanceof Ut) {
233
+ let e;
234
+ const r = a;
235
+ switch (n.event) {
236
+ case "setSheet":
237
+ e = r.sheets.get(n.data.sheet), e !== void 0 && (Me = e, rt.setSelection([e]));
238
+ break;
239
+ case "setSheetObject":
240
+ e = r.sheetObjects.get(`${n.data.sheet}_${n.data.key}`), e !== void 0 && rt.setSelection([e]);
241
+ break;
242
+ case "updateSheetObject":
243
+ e = r.sheetObjectCBs.get(n.data.sheetObject), e !== void 0 && e(n.data.values);
244
+ break;
245
+ case "updateTimeline":
246
+ e = r.sheets.get(n.data.sheet), Me !== void 0 && (Me.sequence.position = n.data.position);
247
+ break;
248
+ }
249
+ }
250
+ });
251
+ }
252
+ function la(t) {
253
+ if (t.editor) {
254
+ let n;
255
+ t.components.forEach((s) => {
256
+ s instanceof Ut && (n = s);
257
+ }), rt.ui.restore(), rt.onSelectionChange((s) => {
258
+ s.length < 1 || s.forEach((f) => {
259
+ let l = f.address.sheetId, u = "setSheet", p = {};
260
+ switch (f.type) {
261
+ case "Theatre_Sheet_PublicAPI":
262
+ u = "setSheet", p = {
263
+ sheet: f.address.sheetId
264
+ }, Me = n.sheets.get(f.address.sheetId);
265
+ break;
266
+ case "Theatre_SheetObject_PublicAPI":
267
+ u = "setSheetObject", l += `_${f.address.objectKey}`, p = {
268
+ id: l,
269
+ sheet: f.address.sheetId,
270
+ key: f.address.objectKey
271
+ };
272
+ break;
273
+ }
274
+ t.send({ event: u, target: "app", data: p });
275
+ });
276
+ });
277
+ let a = 0;
278
+ const e = () => {
279
+ if (Me !== void 0 && a !== Me.sequence.position) {
280
+ a = Me.sequence.position;
281
+ const s = Me;
282
+ t.send({
283
+ event: "updateTimeline",
284
+ target: "app",
285
+ data: {
286
+ position: a,
287
+ sheet: s.address.sheetId
288
+ }
289
+ });
290
+ }
291
+ }, r = () => {
292
+ e(), requestAnimationFrame(r);
293
+ };
294
+ e(), r();
295
+ } else
296
+ rt.ui.hide();
297
+ }
298
+ function ua(t) {
217
299
  if (t.name === "cameras")
218
300
  return "camera";
219
301
  if (t.name === "interactive")
@@ -227,26 +309,26 @@ function ti(t) {
227
309
  const n = t.type;
228
310
  return n.search("Helper") > -1 ? "icon_utils" : n.search("Camera") > -1 ? "camera" : n.search("Light") > -1 ? "light" : "obj3D";
229
311
  }
230
- function mn(t) {
312
+ function bn(t) {
231
313
  const n = {
232
314
  name: t.name,
233
315
  type: t.type,
234
316
  uuid: t.uuid,
235
317
  children: []
236
318
  };
237
- return t.children.forEach((i) => {
238
- n.children.push(mn(i));
319
+ return t.children.forEach((a) => {
320
+ n.children.push(bn(a));
239
321
  }), n;
240
322
  }
241
- function ni(t) {
323
+ function da(t) {
242
324
  const n = {};
243
- for (const i in t) {
244
- const e = t[i].value;
245
- n[i] = { value: e }, e === null ? n[i].value = { src: "" } : e.isTexture && (n[i].value = { src: e.image.src });
325
+ for (const a in t) {
326
+ const e = t[a].value;
327
+ n[a] = { value: e }, e === null ? n[a].value = { src: "" } : e.isTexture && (n[a].value = { src: e.image.src });
246
328
  }
247
329
  return n;
248
330
  }
249
- function ii(t) {
331
+ function fa(t) {
250
332
  switch (t) {
251
333
  case "blendSrcAlpha":
252
334
  case "blendDstAlpha":
@@ -258,36 +340,36 @@ function ii(t) {
258
340
  }
259
341
  return !1;
260
342
  }
261
- function zt(t) {
343
+ function Kt(t) {
262
344
  const n = {};
263
- for (const i in t) {
264
- if (i.substring(0, 1) === "_" || i.substring(0, 2) === "is" || ii(i))
345
+ for (const a in t) {
346
+ if (a.substring(0, 1) === "_" || a.substring(0, 2) === "is" || fa(a))
265
347
  continue;
266
- const e = typeof t[i], a = t[i];
348
+ const e = typeof t[a], r = t[a];
267
349
  switch (e) {
268
350
  case "boolean":
269
351
  case "number":
270
352
  case "string":
271
- n[i] = a;
353
+ n[a] = r;
272
354
  break;
273
355
  case "object":
274
- if (a !== null)
275
- if (n[i] = a, a.isTexture)
276
- if (a instanceof an) {
277
- const s = a.source.toJSON();
278
- n[i] = { src: s.url };
356
+ if (r !== null)
357
+ if (n[a] = r, r.isTexture)
358
+ if (r instanceof cn) {
359
+ const s = r.source.toJSON();
360
+ n[a] = { src: s.url };
279
361
  } else
280
- a instanceof Rn && (console.log("env map"), console.log(a.source.data), console.log(a.source.toJSON()), n[i] = { src: "" });
362
+ r instanceof An && (console.log("env map"), console.log(r.source.data), console.log(r.source.toJSON()), n[a] = { src: "" });
281
363
  else
282
- i === "uniforms" && (n[i] = ni(n[i]));
364
+ a === "uniforms" && (n[a] = da(n[a]));
283
365
  else
284
- n[i] = { src: "" };
366
+ n[a] = { src: "" };
285
367
  break;
286
368
  }
287
369
  }
288
370
  return n;
289
371
  }
290
- function Rt(t) {
372
+ function jt(t) {
291
373
  t.updateMatrix();
292
374
  const n = {
293
375
  name: t.name,
@@ -308,18 +390,18 @@ function Rt(t) {
308
390
  blendMode: e.blendMode
309
391
  });
310
392
  });
311
- const i = t.type.toLowerCase();
312
- if (i.search("mesh") > -1) {
393
+ const a = t.type.toLowerCase();
394
+ if (a.search("mesh") > -1) {
313
395
  const e = t;
314
396
  if (Array.isArray(e.material)) {
315
- const a = [];
397
+ const r = [];
316
398
  e.material.forEach((s) => {
317
- a.push(zt(s));
318
- }), n.material = a;
399
+ r.push(Kt(s));
400
+ }), n.material = r;
319
401
  } else
320
- n.material = zt(e.material);
402
+ n.material = Kt(e.material);
321
403
  } else
322
- i.search("camera") > -1 ? t.type === "PerspectiveCamera" ? n.perspectiveCameraInfo = {
404
+ a.search("camera") > -1 ? t.type === "PerspectiveCamera" ? n.perspectiveCameraInfo = {
323
405
  fov: t.fov,
324
406
  zoom: t.zoom,
325
407
  near: t.near,
@@ -336,7 +418,7 @@ function Rt(t) {
336
418
  right: t.right,
337
419
  top: t.top,
338
420
  bottom: t.bottom
339
- }) : i.search("light") > -1 && (n.lightInfo = {
421
+ }) : a.search("light") > -1 && (n.lightInfo = {
340
422
  color: t.color,
341
423
  intensity: t.intensity,
342
424
  decay: t.decay,
@@ -347,109 +429,109 @@ function Rt(t) {
347
429
  });
348
430
  return n;
349
431
  }
350
- function J(t, n, i) {
432
+ function Q(t, n, a) {
351
433
  const e = n.split(".");
352
434
  switch (e.length) {
353
435
  case 1:
354
- t[e[0]] = i;
436
+ t[e[0]] = a;
355
437
  break;
356
438
  case 2:
357
- t[e[0]][e[1]] = i;
439
+ t[e[0]][e[1]] = a;
358
440
  break;
359
441
  case 3:
360
- t[e[0]][e[1]][e[2]] = i;
442
+ t[e[0]][e[1]][e[2]] = a;
361
443
  break;
362
444
  case 4:
363
- t[e[0]][e[1]][e[2]][e[3]] = i;
445
+ t[e[0]][e[1]][e[2]][e[3]] = a;
364
446
  break;
365
447
  case 5:
366
- t[e[0]][e[1]][e[2]][e[3]][e[4]] = i;
448
+ t[e[0]][e[1]][e[2]][e[3]][e[4]] = a;
367
449
  break;
368
450
  }
369
451
  }
370
- function kt(t) {
371
- return new Promise((n, i) => {
452
+ function Nt(t) {
453
+ return new Promise((n, a) => {
372
454
  const e = new Image();
373
455
  e.onload = () => {
374
- const a = new an(e);
375
- a.wrapS = $t, a.wrapT = $t, a.needsUpdate = !0, n(a);
376
- }, e.onerror = i, e.src = t;
456
+ const r = new cn(e);
457
+ r.wrapS = Yt, r.wrapT = Yt, r.needsUpdate = !0, n(r);
458
+ }, e.onerror = a, e.src = t;
377
459
  });
378
460
  }
379
- class er extends Et {
461
+ class ha extends Ct {
380
462
  constructor() {
381
463
  super(...arguments);
382
- q(this, "scene");
464
+ Z(this, "scene");
383
465
  }
384
- getObject(i) {
466
+ getObject(a) {
385
467
  this.app.send({
386
468
  event: "getObject",
387
469
  target: "app",
388
- data: i
470
+ data: a
389
471
  });
390
472
  }
391
- setObject(i) {
392
- const e = Rt(i);
473
+ setObject(a) {
474
+ const e = jt(a);
393
475
  this.app.send({
394
476
  event: "setObject",
395
477
  target: "editor",
396
478
  data: e
397
479
  });
398
480
  }
399
- requestMethod(i, e, a) {
481
+ requestMethod(a, e, r) {
400
482
  this.app.send({
401
483
  event: "requestMethod",
402
484
  target: "app",
403
485
  data: {
404
- uuid: i,
486
+ uuid: a,
405
487
  key: e,
406
- value: a
488
+ value: r
407
489
  }
408
490
  });
409
491
  }
410
- updateObject(i, e, a) {
492
+ updateObject(a, e, r) {
411
493
  this.app.send({
412
494
  event: "updateObject",
413
495
  target: "app",
414
496
  data: {
415
- uuid: i,
497
+ uuid: a,
416
498
  key: e,
417
- value: a
499
+ value: r
418
500
  }
419
501
  });
420
502
  }
421
- createTexture(i, e, a) {
503
+ createTexture(a, e, r) {
422
504
  this.app.send({
423
505
  event: "createTexture",
424
506
  target: "app",
425
507
  data: {
426
- uuid: i,
508
+ uuid: a,
427
509
  key: e,
428
- value: a
510
+ value: r
429
511
  }
430
512
  });
431
513
  }
432
- setScene(i) {
433
- if (i === void 0)
514
+ setScene(a) {
515
+ if (a === void 0)
434
516
  return;
435
- this.scene = i, Jn(), fn(this.scene);
436
- const e = mn(this.scene);
517
+ this.scene = a, ia(), mn(this.scene);
518
+ const e = bn(this.scene);
437
519
  this.app.send({
438
520
  event: "setScene",
439
521
  target: "editor",
440
522
  data: e
441
523
  });
442
524
  }
443
- addCamera(i) {
444
- const e = Rt(i);
525
+ addCamera(a) {
526
+ const e = jt(a);
445
527
  this.app.send({
446
528
  event: "addCamera",
447
529
  target: "editor",
448
530
  data: e
449
531
  });
450
532
  }
451
- removeCamera(i) {
452
- const e = Rt(i);
533
+ removeCamera(a) {
534
+ const e = jt(a);
453
535
  this.app.send({
454
536
  event: "removeCamera",
455
537
  target: "editor",
@@ -457,37 +539,69 @@ class er extends Et {
457
539
  });
458
540
  }
459
541
  }
460
- class tr extends Et {
461
- constructor(i) {
462
- super(i);
463
- q(this, "bindCBs");
464
- q(this, "buttonCBs");
465
- q(this, "pane");
466
- q(this, "appCallbacks", 0);
467
- q(this, "editorCallbacks", 0);
468
- q(this, "inspectorFolder");
469
- this.bindCBs = /* @__PURE__ */ new Map(), this.buttonCBs = /* @__PURE__ */ new Map(), i.editor && this.createGUI();
542
+ function pa(t, n) {
543
+ switch (n.event) {
544
+ case "getObject":
545
+ _.dispatchEvent({ type: j.GET_OBJECT, value: n.data });
546
+ break;
547
+ case "updateObject":
548
+ _.dispatchEvent({ type: j.UPDATE_OBJECT, value: n.data });
549
+ break;
550
+ case "createTexture":
551
+ _.dispatchEvent({ type: j.CREATE_TEXTURE, value: n.data });
552
+ break;
553
+ case "requestMethod":
554
+ _.dispatchEvent({ type: j.REQUEST_METHOD, value: n.data });
555
+ break;
556
+ }
557
+ }
558
+ function ma(t, n) {
559
+ switch (n.event) {
560
+ case "setObject":
561
+ _.dispatchEvent({ type: j.SET_OBJECT, value: n.data });
562
+ break;
563
+ case "setScene":
564
+ _.dispatchEvent({ type: j.SET_SCENE, value: n.data });
565
+ break;
566
+ case "addCamera":
567
+ _.dispatchEvent({ type: j.ADD_CAMERA, value: n.data });
568
+ break;
569
+ case "removeCamera":
570
+ _.dispatchEvent({ type: j.REMOVE_CAMERA, value: n.data });
571
+ break;
572
+ }
573
+ }
574
+ class yn extends Ct {
575
+ constructor(a) {
576
+ super(a);
577
+ Z(this, "bindCBs");
578
+ Z(this, "buttonCBs");
579
+ Z(this, "pane");
580
+ Z(this, "appCallbacks", 0);
581
+ Z(this, "editorCallbacks", 0);
582
+ Z(this, "inspectorFolder");
583
+ this.bindCBs = /* @__PURE__ */ new Map(), this.buttonCBs = /* @__PURE__ */ new Map(), a.editor && this.createGUI();
470
584
  }
471
585
  createGUI() {
472
- this.pane = new Wn({ title: "GUI" }), this.pane.registerPlugin(Hn);
586
+ this.pane = new Zn({ title: "GUI" }), this.pane.registerPlugin(Jn);
473
587
  }
474
588
  dispose() {
475
- var i;
476
- this.bindCBs.clear(), this.buttonCBs.clear(), this.appCallbacks = 0, this.editorCallbacks = 0, this.app.editor && ((i = this.pane) == null || i.dispose(), this.pane = void 0);
589
+ var a;
590
+ this.bindCBs.clear(), this.buttonCBs.clear(), this.appCallbacks = 0, this.editorCallbacks = 0, this.app.editor && ((a = this.pane) == null || a.dispose(), this.pane = void 0);
477
591
  }
478
- addFolder(i, e = void 0, a = void 0) {
592
+ addFolder(a, e = void 0, r = void 0) {
479
593
  if (this.app.editor)
480
- return this.pane === void 0 && this.createGUI(), (a !== void 0 ? a : this.pane).addFolder({
481
- title: i,
594
+ return this.pane === void 0 && this.createGUI(), (r !== void 0 ? r : this.pane).addFolder({
595
+ title: a,
482
596
  ...e
483
597
  });
484
598
  this.app.send({
485
599
  event: "addFolder",
486
600
  target: "app",
487
601
  data: {
488
- name: i,
602
+ name: a,
489
603
  params: e,
490
- parent: a
604
+ parent: r
491
605
  }
492
606
  });
493
607
  }
@@ -495,36 +609,36 @@ class tr extends Et {
495
609
  return `debug_${Math.max(this.appCallbacks, this.editorCallbacks)}`;
496
610
  }
497
611
  // Binding
498
- bind(i, e, a, s = void 0) {
499
- const h = this.bindID, l = a.onChange !== void 0 ? a.onChange : pn;
500
- this.bindCBs.set(h, l), this.app.editor ? (this.pane === void 0 && this.createGUI(), (s !== void 0 ? s : this.pane).addBinding(i, e, a).on("change", (m) => {
612
+ bind(a, e, r, s = void 0) {
613
+ const f = this.bindID, l = r.onChange !== void 0 ? r.onChange : vn;
614
+ this.bindCBs.set(f, l), this.app.editor ? (this.pane === void 0 && this.createGUI(), (s !== void 0 ? s : this.pane).addBinding(a, e, r).on("change", (p) => {
501
615
  this.app.send({
502
616
  event: "updateBind",
503
617
  target: "app",
504
618
  data: {
505
- id: h,
506
- value: m.value
619
+ id: f,
620
+ value: p.value
507
621
  }
508
622
  });
509
623
  }), this.editorCallbacks++) : (this.app.send({
510
624
  event: "bindObject",
511
625
  target: "app",
512
626
  data: {
513
- id: h,
627
+ id: f,
514
628
  name: e,
515
- params: a,
629
+ params: r,
516
630
  parent: s
517
631
  }
518
632
  }), this.appCallbacks++);
519
633
  }
520
- triggerBind(i, e) {
521
- const a = this.bindCBs.get(i);
522
- a !== void 0 ? a(e) : console.warn(`No callback for: ${i}`, e);
634
+ triggerBind(a, e) {
635
+ const r = this.bindCBs.get(a);
636
+ r !== void 0 ? r(e) : console.warn(`No callback for: ${a}`, e);
523
637
  }
524
638
  // Buttons
525
- button(i, e, a = void 0) {
639
+ button(a, e, r = void 0) {
526
640
  const s = this.bindID;
527
- this.buttonCBs.set(s, e), this.app.editor ? (this.pane === void 0 && this.createGUI(), (a !== void 0 ? a : this.pane).addButton({ title: i }).on("click", () => {
641
+ this.buttonCBs.set(s, e), this.app.editor ? (this.pane === void 0 && this.createGUI(), (r !== void 0 ? r : this.pane).addButton({ title: a }).on("click", () => {
528
642
  this.app.send({
529
643
  event: "clickButton",
530
644
  target: "app",
@@ -537,14 +651,14 @@ class tr extends Et {
537
651
  target: "app",
538
652
  data: {
539
653
  id: s,
540
- name: i,
654
+ name: a,
541
655
  callback: e,
542
- parent: a
656
+ parent: r
543
657
  }
544
658
  }), this.appCallbacks++);
545
659
  }
546
- triggerButton(i) {
547
- const e = this.buttonCBs.get(i);
660
+ triggerButton(a) {
661
+ const e = this.buttonCBs.get(a);
548
662
  e !== void 0 && e();
549
663
  }
550
664
  // Inspector
@@ -552,12 +666,37 @@ class tr extends Et {
552
666
  this.inspectorFolder = this.addFolder("Inspector", this.pane);
553
667
  }
554
668
  clearInspector() {
555
- const i = this.inspectorFolder.children.length - 1;
556
- for (let e = i; e > -1; --e)
669
+ const a = this.inspectorFolder.children.length - 1;
670
+ for (let e = a; e > -1; --e)
557
671
  this.inspectorFolder.remove(this.inspectorFolder.children[e]);
558
672
  }
559
673
  }
560
- var At = { exports: {} }, et = {};
674
+ function ga(t, n) {
675
+ t.components.forEach((a) => {
676
+ if (a instanceof yn) {
677
+ const e = a;
678
+ switch (n.event) {
679
+ case "addFolder":
680
+ e.addFolder(n.data.name, n.data.params, n.data.parent);
681
+ break;
682
+ case "bindObject":
683
+ e.bind(n.data.name, n.data.params, n.data.parent);
684
+ break;
685
+ case "updateBind":
686
+ e.triggerBind(n.data.id, n.data.value);
687
+ break;
688
+ case "addButton":
689
+ e.button(n.data.name, n.data.callback, n.data.parent);
690
+ break;
691
+ case "clickButton":
692
+ e.triggerButton(n.data.id);
693
+ break;
694
+ }
695
+ return;
696
+ }
697
+ });
698
+ }
699
+ var Lt = { exports: {} }, nt = {};
561
700
  /**
562
701
  * @license React
563
702
  * react-jsx-runtime.production.min.js
@@ -567,25 +706,25 @@ var At = { exports: {} }, et = {};
567
706
  * This source code is licensed under the MIT license found in the
568
707
  * LICENSE file in the root directory of this source tree.
569
708
  */
570
- var Yt;
571
- function ri() {
572
- if (Yt)
573
- return et;
574
- Yt = 1;
575
- var t = un, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
576
- function h(l, d, m) {
577
- var v, E = {}, x = null, R = null;
578
- m !== void 0 && (x = "" + m), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (R = d.ref);
579
- for (v in d)
580
- e.call(d, v) && !s.hasOwnProperty(v) && (E[v] = d[v]);
709
+ var Xt;
710
+ function va() {
711
+ if (Xt)
712
+ return nt;
713
+ Xt = 1;
714
+ var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
715
+ function f(l, u, p) {
716
+ var v, E = {}, w = null, R = null;
717
+ p !== void 0 && (w = "" + p), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (R = u.ref);
718
+ for (v in u)
719
+ e.call(u, v) && !s.hasOwnProperty(v) && (E[v] = u[v]);
581
720
  if (l && l.defaultProps)
582
- for (v in d = l.defaultProps, d)
583
- E[v] === void 0 && (E[v] = d[v]);
584
- return { $$typeof: n, type: l, key: x, ref: R, props: E, _owner: a.current };
721
+ for (v in u = l.defaultProps, u)
722
+ E[v] === void 0 && (E[v] = u[v]);
723
+ return { $$typeof: n, type: l, key: w, ref: R, props: E, _owner: r.current };
585
724
  }
586
- return et.Fragment = i, et.jsx = h, et.jsxs = h, et;
725
+ return nt.Fragment = a, nt.jsx = f, nt.jsxs = f, nt;
587
726
  }
588
- var tt = {};
727
+ var at = {};
589
728
  /**
590
729
  * @license React
591
730
  * react-jsx-runtime.development.js
@@ -595,91 +734,91 @@ var tt = {};
595
734
  * This source code is licensed under the MIT license found in the
596
735
  * LICENSE file in the root directory of this source tree.
597
736
  */
598
- var Wt;
599
- function ai() {
600
- return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
601
- var t = un, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), T = Symbol.iterator, B = "@@iterator";
602
- function oe(r) {
603
- if (r === null || typeof r != "object")
737
+ var qt;
738
+ function ba() {
739
+ return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
740
+ var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), T = Symbol.iterator, G = "@@iterator";
741
+ function se(i) {
742
+ if (i === null || typeof i != "object")
604
743
  return null;
605
- var f = T && r[T] || r[B];
606
- return typeof f == "function" ? f : null;
744
+ var h = T && i[T] || i[G];
745
+ return typeof h == "function" ? h : null;
607
746
  }
608
747
  var H = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
609
- function C(r) {
748
+ function C(i) {
610
749
  {
611
- for (var f = arguments.length, g = new Array(f > 1 ? f - 1 : 0), w = 1; w < f; w++)
612
- g[w - 1] = arguments[w];
613
- K("error", r, g);
750
+ for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), x = 1; x < h; x++)
751
+ g[x - 1] = arguments[x];
752
+ K("error", i, g);
614
753
  }
615
754
  }
616
- function K(r, f, g) {
755
+ function K(i, h, g) {
617
756
  {
618
- var w = H.ReactDebugCurrentFrame, j = w.getStackAddendum();
619
- j !== "" && (f += "%s", g = g.concat([j]));
620
- var I = g.map(function(P) {
757
+ var x = H.ReactDebugCurrentFrame, k = x.getStackAddendum();
758
+ k !== "" && (h += "%s", g = g.concat([k]));
759
+ var L = g.map(function(P) {
621
760
  return String(P);
622
761
  });
623
- I.unshift("Warning: " + f), Function.prototype.apply.call(console[r], console, I);
762
+ L.unshift("Warning: " + h), Function.prototype.apply.call(console[i], console, L);
624
763
  }
625
764
  }
626
- var de = !1, ce = !1, ee = !1, u = !1, p = !1, b;
765
+ var fe = !1, le = !1, ee = !1, d = !1, m = !1, b;
627
766
  b = Symbol.for("react.module.reference");
628
- function S(r) {
629
- return !!(typeof r == "string" || typeof r == "function" || r === e || r === s || p || r === a || r === m || r === v || u || r === R || de || ce || ee || typeof r == "object" && r !== null && (r.$$typeof === x || r.$$typeof === E || r.$$typeof === h || r.$$typeof === l || r.$$typeof === d || // This needs to include all possible module reference object
767
+ function S(i) {
768
+ return !!(typeof i == "string" || typeof i == "function" || i === e || i === s || m || i === r || i === p || i === v || d || i === R || fe || le || ee || typeof i == "object" && i !== null && (i.$$typeof === w || i.$$typeof === E || i.$$typeof === f || i.$$typeof === l || i.$$typeof === u || // This needs to include all possible module reference object
630
769
  // types supported by any Flight configuration anywhere since
631
770
  // we don't know which Flight build this will end up being used
632
771
  // with.
633
- r.$$typeof === b || r.getModuleId !== void 0));
772
+ i.$$typeof === b || i.getModuleId !== void 0));
634
773
  }
635
- function F(r, f, g) {
636
- var w = r.displayName;
637
- if (w)
638
- return w;
639
- var j = f.displayName || f.name || "";
640
- return j !== "" ? g + "(" + j + ")" : g;
774
+ function B(i, h, g) {
775
+ var x = i.displayName;
776
+ if (x)
777
+ return x;
778
+ var k = h.displayName || h.name || "";
779
+ return k !== "" ? g + "(" + k + ")" : g;
641
780
  }
642
- function U(r) {
643
- return r.displayName || "Context";
781
+ function $(i) {
782
+ return i.displayName || "Context";
644
783
  }
645
- function N(r) {
646
- if (r == null)
784
+ function F(i) {
785
+ if (i == null)
647
786
  return null;
648
- if (typeof r.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
649
- return r.displayName || r.name || null;
650
- if (typeof r == "string")
651
- return r;
652
- switch (r) {
787
+ if (typeof i.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
788
+ return i.displayName || i.name || null;
789
+ if (typeof i == "string")
790
+ return i;
791
+ switch (i) {
653
792
  case e:
654
793
  return "Fragment";
655
- case i:
794
+ case a:
656
795
  return "Portal";
657
796
  case s:
658
797
  return "Profiler";
659
- case a:
798
+ case r:
660
799
  return "StrictMode";
661
- case m:
800
+ case p:
662
801
  return "Suspense";
663
802
  case v:
664
803
  return "SuspenseList";
665
804
  }
666
- if (typeof r == "object")
667
- switch (r.$$typeof) {
805
+ if (typeof i == "object")
806
+ switch (i.$$typeof) {
668
807
  case l:
669
- var f = r;
670
- return U(f) + ".Consumer";
671
- case h:
672
- var g = r;
673
- return U(g._context) + ".Provider";
674
- case d:
675
- return F(r, r.render, "ForwardRef");
808
+ var h = i;
809
+ return $(h) + ".Consumer";
810
+ case f:
811
+ var g = i;
812
+ return $(g._context) + ".Provider";
813
+ case u:
814
+ return B(i, i.render, "ForwardRef");
676
815
  case E:
677
- var w = r.displayName || null;
678
- return w !== null ? w : N(r.type) || "Memo";
679
- case x: {
680
- var j = r, I = j._payload, P = j._init;
816
+ var x = i.displayName || null;
817
+ return x !== null ? x : F(i.type) || "Memo";
818
+ case w: {
819
+ var k = i, L = k._payload, P = k._init;
681
820
  try {
682
- return N(P(I));
821
+ return F(P(L));
683
822
  } catch {
684
823
  return null;
685
824
  }
@@ -687,103 +826,103 @@ function ai() {
687
826
  }
688
827
  return null;
689
828
  }
690
- var D = Object.assign, L = 0, Q, M, k, X, pe, Te, He;
691
- function at() {
829
+ var D = Object.assign, U = 0, J, M, I, X, me, Re, Xe;
830
+ function ct() {
692
831
  }
693
- at.__reactDisabledLog = !0;
694
- function wt() {
832
+ ct.__reactDisabledLog = !0;
833
+ function Ot() {
695
834
  {
696
- if (L === 0) {
697
- Q = console.log, M = console.info, k = console.warn, X = console.error, pe = console.group, Te = console.groupCollapsed, He = console.groupEnd;
698
- var r = {
835
+ if (U === 0) {
836
+ J = console.log, M = console.info, I = console.warn, X = console.error, me = console.group, Re = console.groupCollapsed, Xe = console.groupEnd;
837
+ var i = {
699
838
  configurable: !0,
700
839
  enumerable: !0,
701
- value: at,
840
+ value: ct,
702
841
  writable: !0
703
842
  };
704
843
  Object.defineProperties(console, {
705
- info: r,
706
- log: r,
707
- warn: r,
708
- error: r,
709
- group: r,
710
- groupCollapsed: r,
711
- groupEnd: r
844
+ info: i,
845
+ log: i,
846
+ warn: i,
847
+ error: i,
848
+ group: i,
849
+ groupCollapsed: i,
850
+ groupEnd: i
712
851
  });
713
852
  }
714
- L++;
853
+ U++;
715
854
  }
716
855
  }
717
- function Ct() {
856
+ function Tt() {
718
857
  {
719
- if (L--, L === 0) {
720
- var r = {
858
+ if (U--, U === 0) {
859
+ var i = {
721
860
  configurable: !0,
722
861
  enumerable: !0,
723
862
  writable: !0
724
863
  };
725
864
  Object.defineProperties(console, {
726
- log: D({}, r, {
727
- value: Q
865
+ log: D({}, i, {
866
+ value: J
728
867
  }),
729
- info: D({}, r, {
868
+ info: D({}, i, {
730
869
  value: M
731
870
  }),
732
- warn: D({}, r, {
733
- value: k
871
+ warn: D({}, i, {
872
+ value: I
734
873
  }),
735
- error: D({}, r, {
874
+ error: D({}, i, {
736
875
  value: X
737
876
  }),
738
- group: D({}, r, {
739
- value: pe
877
+ group: D({}, i, {
878
+ value: me
740
879
  }),
741
- groupCollapsed: D({}, r, {
742
- value: Te
880
+ groupCollapsed: D({}, i, {
881
+ value: Re
743
882
  }),
744
- groupEnd: D({}, r, {
745
- value: He
883
+ groupEnd: D({}, i, {
884
+ value: Xe
746
885
  })
747
886
  });
748
887
  }
749
- L < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
888
+ U < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
750
889
  }
751
890
  }
752
- var Ke = H.ReactCurrentDispatcher, Xe;
753
- function Me(r, f, g) {
891
+ var qe = H.ReactCurrentDispatcher, Ze;
892
+ function Pe(i, h, g) {
754
893
  {
755
- if (Xe === void 0)
894
+ if (Ze === void 0)
756
895
  try {
757
896
  throw Error();
758
- } catch (j) {
759
- var w = j.stack.trim().match(/\n( *(at )?)/);
760
- Xe = w && w[1] || "";
897
+ } catch (k) {
898
+ var x = k.stack.trim().match(/\n( *(at )?)/);
899
+ Ze = x && x[1] || "";
761
900
  }
762
901
  return `
763
- ` + Xe + r;
902
+ ` + Ze + i;
764
903
  }
765
904
  }
766
- var Ue = !1, Re;
905
+ var $e = !1, _e;
767
906
  {
768
- var St = typeof WeakMap == "function" ? WeakMap : Map;
769
- Re = new St();
907
+ var Mt = typeof WeakMap == "function" ? WeakMap : Map;
908
+ _e = new Mt();
770
909
  }
771
- function ot(r, f) {
772
- if (!r || Ue)
910
+ function lt(i, h) {
911
+ if (!i || $e)
773
912
  return "";
774
913
  {
775
- var g = Re.get(r);
914
+ var g = _e.get(i);
776
915
  if (g !== void 0)
777
916
  return g;
778
917
  }
779
- var w;
780
- Ue = !0;
781
- var j = Error.prepareStackTrace;
918
+ var x;
919
+ $e = !0;
920
+ var k = Error.prepareStackTrace;
782
921
  Error.prepareStackTrace = void 0;
783
- var I;
784
- I = Ke.current, Ke.current = null, wt();
922
+ var L;
923
+ L = qe.current, qe.current = null, Ot();
785
924
  try {
786
- if (f) {
925
+ if (h) {
787
926
  var P = function() {
788
927
  throw Error();
789
928
  };
@@ -794,200 +933,200 @@ function ai() {
794
933
  }), typeof Reflect == "object" && Reflect.construct) {
795
934
  try {
796
935
  Reflect.construct(P, []);
797
- } catch (ye) {
798
- w = ye;
936
+ } catch (Ee) {
937
+ x = Ee;
799
938
  }
800
- Reflect.construct(r, [], P);
939
+ Reflect.construct(i, [], P);
801
940
  } else {
802
941
  try {
803
942
  P.call();
804
- } catch (ye) {
805
- w = ye;
943
+ } catch (Ee) {
944
+ x = Ee;
806
945
  }
807
- r.call(P.prototype);
946
+ i.call(P.prototype);
808
947
  }
809
948
  } else {
810
949
  try {
811
950
  throw Error();
812
- } catch (ye) {
813
- w = ye;
951
+ } catch (Ee) {
952
+ x = Ee;
814
953
  }
815
- r();
954
+ i();
816
955
  }
817
- } catch (ye) {
818
- if (ye && w && typeof ye.stack == "string") {
819
- for (var O = ye.stack.split(`
820
- `), se = w.stack.split(`
821
- `), W = O.length - 1, Z = se.length - 1; W >= 1 && Z >= 0 && O[W] !== se[Z]; )
822
- Z--;
823
- for (; W >= 1 && Z >= 0; W--, Z--)
824
- if (O[W] !== se[Z]) {
825
- if (W !== 1 || Z !== 1)
956
+ } catch (Ee) {
957
+ if (Ee && x && typeof Ee.stack == "string") {
958
+ for (var O = Ee.stack.split(`
959
+ `), ce = x.stack.split(`
960
+ `), W = O.length - 1, q = ce.length - 1; W >= 1 && q >= 0 && O[W] !== ce[q]; )
961
+ q--;
962
+ for (; W >= 1 && q >= 0; W--, q--)
963
+ if (O[W] !== ce[q]) {
964
+ if (W !== 1 || q !== 1)
826
965
  do
827
- if (W--, Z--, Z < 0 || O[W] !== se[Z]) {
828
- var me = `
966
+ if (W--, q--, q < 0 || O[W] !== ce[q]) {
967
+ var ge = `
829
968
  ` + O[W].replace(" at new ", " at ");
830
- return r.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", r.displayName)), typeof r == "function" && Re.set(r, me), me;
969
+ return i.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", i.displayName)), typeof i == "function" && _e.set(i, ge), ge;
831
970
  }
832
- while (W >= 1 && Z >= 0);
971
+ while (W >= 1 && q >= 0);
833
972
  break;
834
973
  }
835
974
  }
836
975
  } finally {
837
- Ue = !1, Ke.current = I, Ct(), Error.prepareStackTrace = j;
976
+ $e = !1, qe.current = L, Tt(), Error.prepareStackTrace = k;
838
977
  }
839
- var Ge = r ? r.displayName || r.name : "", Bt = Ge ? Me(Ge) : "";
840
- return typeof r == "function" && Re.set(r, Bt), Bt;
978
+ var Ye = i ? i.displayName || i.name : "", zt = Ye ? Pe(Ye) : "";
979
+ return typeof i == "function" && _e.set(i, zt), zt;
841
980
  }
842
- function st(r, f, g) {
843
- return ot(r, !1);
981
+ function ut(i, h, g) {
982
+ return lt(i, !1);
844
983
  }
845
- function ct(r) {
846
- var f = r.prototype;
847
- return !!(f && f.isReactComponent);
984
+ function dt(i) {
985
+ var h = i.prototype;
986
+ return !!(h && h.isReactComponent);
848
987
  }
849
- function Pe(r, f, g) {
850
- if (r == null)
988
+ function je(i, h, g) {
989
+ if (i == null)
851
990
  return "";
852
- if (typeof r == "function")
853
- return ot(r, ct(r));
854
- if (typeof r == "string")
855
- return Me(r);
856
- switch (r) {
857
- case m:
858
- return Me("Suspense");
991
+ if (typeof i == "function")
992
+ return lt(i, dt(i));
993
+ if (typeof i == "string")
994
+ return Pe(i);
995
+ switch (i) {
996
+ case p:
997
+ return Pe("Suspense");
859
998
  case v:
860
- return Me("SuspenseList");
999
+ return Pe("SuspenseList");
861
1000
  }
862
- if (typeof r == "object")
863
- switch (r.$$typeof) {
864
- case d:
865
- return st(r.render);
1001
+ if (typeof i == "object")
1002
+ switch (i.$$typeof) {
1003
+ case u:
1004
+ return ut(i.render);
866
1005
  case E:
867
- return Pe(r.type, f, g);
868
- case x: {
869
- var w = r, j = w._payload, I = w._init;
1006
+ return je(i.type, h, g);
1007
+ case w: {
1008
+ var x = i, k = x._payload, L = x._init;
870
1009
  try {
871
- return Pe(I(j), f, g);
1010
+ return je(L(k), h, g);
872
1011
  } catch {
873
1012
  }
874
1013
  }
875
1014
  }
876
1015
  return "";
877
1016
  }
878
- var Be = Object.prototype.hasOwnProperty, lt = {}, Ze = H.ReactDebugCurrentFrame;
879
- function Ce(r) {
880
- if (r) {
881
- var f = r._owner, g = Pe(r.type, r._source, f ? f.type : null);
882
- Ze.setExtraStackFrame(g);
1017
+ var Ge = Object.prototype.hasOwnProperty, ft = {}, Je = H.ReactDebugCurrentFrame;
1018
+ function Se(i) {
1019
+ if (i) {
1020
+ var h = i._owner, g = je(i.type, i._source, h ? h.type : null);
1021
+ Je.setExtraStackFrame(g);
883
1022
  } else
884
- Ze.setExtraStackFrame(null);
1023
+ Je.setExtraStackFrame(null);
885
1024
  }
886
- function je(r, f, g, w, j) {
1025
+ function ke(i, h, g, x, k) {
887
1026
  {
888
- var I = Function.call.bind(Be);
889
- for (var P in r)
890
- if (I(r, P)) {
1027
+ var L = Function.call.bind(Ge);
1028
+ for (var P in i)
1029
+ if (L(i, P)) {
891
1030
  var O = void 0;
892
1031
  try {
893
- if (typeof r[P] != "function") {
894
- var se = Error((w || "React class") + ": " + g + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
895
- throw se.name = "Invariant Violation", se;
1032
+ if (typeof i[P] != "function") {
1033
+ var ce = Error((x || "React class") + ": " + g + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1034
+ throw ce.name = "Invariant Violation", ce;
896
1035
  }
897
- O = r[P](f, P, w, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1036
+ O = i[P](h, P, x, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
898
1037
  } catch (W) {
899
1038
  O = W;
900
1039
  }
901
- O && !(O instanceof Error) && (Ce(j), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", g, P, typeof O), Ce(null)), O instanceof Error && !(O.message in lt) && (lt[O.message] = !0, Ce(j), C("Failed %s type: %s", g, O.message), Ce(null));
1040
+ O && !(O instanceof Error) && (Se(k), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", g, P, typeof O), Se(null)), O instanceof Error && !(O.message in ft) && (ft[O.message] = !0, Se(k), C("Failed %s type: %s", g, O.message), Se(null));
902
1041
  }
903
1042
  }
904
1043
  }
905
- var Ot = Array.isArray;
906
- function qe(r) {
907
- return Ot(r);
1044
+ var Rt = Array.isArray;
1045
+ function Qe(i) {
1046
+ return Rt(i);
908
1047
  }
909
- function ut(r) {
1048
+ function ht(i) {
910
1049
  {
911
- var f = typeof Symbol == "function" && Symbol.toStringTag, g = f && r[Symbol.toStringTag] || r.constructor.name || "Object";
1050
+ var h = typeof Symbol == "function" && Symbol.toStringTag, g = h && i[Symbol.toStringTag] || i.constructor.name || "Object";
912
1051
  return g;
913
1052
  }
914
1053
  }
915
- function Qe(r) {
1054
+ function et(i) {
916
1055
  try {
917
- return dt(r), !1;
1056
+ return pt(i), !1;
918
1057
  } catch {
919
1058
  return !0;
920
1059
  }
921
1060
  }
922
- function dt(r) {
923
- return "" + r;
1061
+ function pt(i) {
1062
+ return "" + i;
924
1063
  }
925
- function ft(r) {
926
- if (Qe(r))
927
- return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ut(r)), dt(r);
1064
+ function mt(i) {
1065
+ if (et(i))
1066
+ return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ht(i)), pt(i);
928
1067
  }
929
- var Se = H.ReactCurrentOwner, Tt = {
1068
+ var Oe = H.ReactCurrentOwner, Pt = {
930
1069
  key: !0,
931
1070
  ref: !0,
932
1071
  __self: !0,
933
1072
  __source: !0
934
- }, ht, Je, ge;
935
- ge = {};
936
- function o(r) {
937
- if (Be.call(r, "ref")) {
938
- var f = Object.getOwnPropertyDescriptor(r, "ref").get;
939
- if (f && f.isReactWarning)
1073
+ }, gt, tt, ve;
1074
+ ve = {};
1075
+ function o(i) {
1076
+ if (Ge.call(i, "ref")) {
1077
+ var h = Object.getOwnPropertyDescriptor(i, "ref").get;
1078
+ if (h && h.isReactWarning)
940
1079
  return !1;
941
1080
  }
942
- return r.ref !== void 0;
1081
+ return i.ref !== void 0;
943
1082
  }
944
- function y(r) {
945
- if (Be.call(r, "key")) {
946
- var f = Object.getOwnPropertyDescriptor(r, "key").get;
947
- if (f && f.isReactWarning)
1083
+ function y(i) {
1084
+ if (Ge.call(i, "key")) {
1085
+ var h = Object.getOwnPropertyDescriptor(i, "key").get;
1086
+ if (h && h.isReactWarning)
948
1087
  return !1;
949
1088
  }
950
- return r.key !== void 0;
1089
+ return i.key !== void 0;
951
1090
  }
952
- function _(r, f) {
953
- if (typeof r.ref == "string" && Se.current && f && Se.current.stateNode !== f) {
954
- var g = N(Se.current.type);
955
- ge[g] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(Se.current.type), r.ref), ge[g] = !0);
1091
+ function A(i, h) {
1092
+ if (typeof i.ref == "string" && Oe.current && h && Oe.current.stateNode !== h) {
1093
+ var g = F(Oe.current.type);
1094
+ ve[g] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Oe.current.type), i.ref), ve[g] = !0);
956
1095
  }
957
1096
  }
958
- function A(r, f) {
1097
+ function N(i, h) {
959
1098
  {
960
1099
  var g = function() {
961
- ht || (ht = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
1100
+ gt || (gt = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
962
1101
  };
963
- g.isReactWarning = !0, Object.defineProperty(r, "key", {
1102
+ g.isReactWarning = !0, Object.defineProperty(i, "key", {
964
1103
  get: g,
965
1104
  configurable: !0
966
1105
  });
967
1106
  }
968
1107
  }
969
- function te(r, f) {
1108
+ function te(i, h) {
970
1109
  {
971
1110
  var g = function() {
972
- Je || (Je = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
1111
+ tt || (tt = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
973
1112
  };
974
- g.isReactWarning = !0, Object.defineProperty(r, "ref", {
1113
+ g.isReactWarning = !0, Object.defineProperty(i, "ref", {
975
1114
  get: g,
976
1115
  configurable: !0
977
1116
  });
978
1117
  }
979
1118
  }
980
- var ve = function(r, f, g, w, j, I, P) {
1119
+ var be = function(i, h, g, x, k, L, P) {
981
1120
  var O = {
982
1121
  // This tag allows us to uniquely identify this as a React Element
983
1122
  $$typeof: n,
984
1123
  // Built-in properties that belong on the element
985
- type: r,
986
- key: f,
1124
+ type: i,
1125
+ key: h,
987
1126
  ref: g,
988
1127
  props: P,
989
1128
  // Record the component responsible for creating this element.
990
- _owner: I
1129
+ _owner: L
991
1130
  };
992
1131
  return O._store = {}, Object.defineProperty(O._store, "validated", {
993
1132
  configurable: !1,
@@ -998,200 +1137,200 @@ function ai() {
998
1137
  configurable: !1,
999
1138
  enumerable: !1,
1000
1139
  writable: !1,
1001
- value: w
1140
+ value: x
1002
1141
  }), Object.defineProperty(O, "_source", {
1003
1142
  configurable: !1,
1004
1143
  enumerable: !1,
1005
1144
  writable: !1,
1006
- value: j
1145
+ value: k
1007
1146
  }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
1008
1147
  };
1009
- function le(r, f, g, w, j) {
1148
+ function ue(i, h, g, x, k) {
1010
1149
  {
1011
- var I, P = {}, O = null, se = null;
1012
- g !== void 0 && (ft(g), O = "" + g), y(f) && (ft(f.key), O = "" + f.key), o(f) && (se = f.ref, _(f, j));
1013
- for (I in f)
1014
- Be.call(f, I) && !Tt.hasOwnProperty(I) && (P[I] = f[I]);
1015
- if (r && r.defaultProps) {
1016
- var W = r.defaultProps;
1017
- for (I in W)
1018
- P[I] === void 0 && (P[I] = W[I]);
1150
+ var L, P = {}, O = null, ce = null;
1151
+ g !== void 0 && (mt(g), O = "" + g), y(h) && (mt(h.key), O = "" + h.key), o(h) && (ce = h.ref, A(h, k));
1152
+ for (L in h)
1153
+ Ge.call(h, L) && !Pt.hasOwnProperty(L) && (P[L] = h[L]);
1154
+ if (i && i.defaultProps) {
1155
+ var W = i.defaultProps;
1156
+ for (L in W)
1157
+ P[L] === void 0 && (P[L] = W[L]);
1019
1158
  }
1020
- if (O || se) {
1021
- var Z = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
1022
- O && A(P, Z), se && te(P, Z);
1159
+ if (O || ce) {
1160
+ var q = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
1161
+ O && N(P, q), ce && te(P, q);
1023
1162
  }
1024
- return ve(r, O, se, j, w, Se.current, P);
1163
+ return be(i, O, ce, k, x, Oe.current, P);
1025
1164
  }
1026
1165
  }
1027
- var pt = H.ReactCurrentOwner, mt = H.ReactDebugCurrentFrame;
1028
- function be(r) {
1029
- if (r) {
1030
- var f = r._owner, g = Pe(r.type, r._source, f ? f.type : null);
1031
- mt.setExtraStackFrame(g);
1166
+ var vt = H.ReactCurrentOwner, bt = H.ReactDebugCurrentFrame;
1167
+ function ye(i) {
1168
+ if (i) {
1169
+ var h = i._owner, g = je(i.type, i._source, h ? h.type : null);
1170
+ bt.setExtraStackFrame(g);
1032
1171
  } else
1033
- mt.setExtraStackFrame(null);
1172
+ bt.setExtraStackFrame(null);
1034
1173
  }
1035
- var fe;
1036
- fe = !1;
1037
- function he(r) {
1038
- return typeof r == "object" && r !== null && r.$$typeof === n;
1174
+ var he;
1175
+ he = !1;
1176
+ function pe(i) {
1177
+ return typeof i == "object" && i !== null && i.$$typeof === n;
1039
1178
  }
1040
- function $e() {
1179
+ function Ve() {
1041
1180
  {
1042
- if (pt.current) {
1043
- var r = N(pt.current.type);
1044
- if (r)
1181
+ if (vt.current) {
1182
+ var i = F(vt.current.type);
1183
+ if (i)
1045
1184
  return `
1046
1185
 
1047
- Check the render method of \`` + r + "`.";
1186
+ Check the render method of \`` + i + "`.";
1048
1187
  }
1049
1188
  return "";
1050
1189
  }
1051
1190
  }
1052
- function _e(r) {
1191
+ function Ae(i) {
1053
1192
  {
1054
- if (r !== void 0) {
1055
- var f = r.fileName.replace(/^.*[\\\/]/, ""), g = r.lineNumber;
1193
+ if (i !== void 0) {
1194
+ var h = i.fileName.replace(/^.*[\\\/]/, ""), g = i.lineNumber;
1056
1195
  return `
1057
1196
 
1058
- Check your code at ` + f + ":" + g + ".";
1197
+ Check your code at ` + h + ":" + g + ".";
1059
1198
  }
1060
1199
  return "";
1061
1200
  }
1062
1201
  }
1063
- var Oe = {};
1064
- function Ve(r) {
1202
+ var Te = {};
1203
+ function ze(i) {
1065
1204
  {
1066
- var f = $e();
1067
- if (!f) {
1068
- var g = typeof r == "string" ? r : r.displayName || r.name;
1069
- g && (f = `
1205
+ var h = Ve();
1206
+ if (!h) {
1207
+ var g = typeof i == "string" ? i : i.displayName || i.name;
1208
+ g && (h = `
1070
1209
 
1071
1210
  Check the top-level render call using <` + g + ">.");
1072
1211
  }
1073
- return f;
1212
+ return h;
1074
1213
  }
1075
1214
  }
1076
- function Lt(r, f) {
1215
+ function $t(i, h) {
1077
1216
  {
1078
- if (!r._store || r._store.validated || r.key != null)
1217
+ if (!i._store || i._store.validated || i.key != null)
1079
1218
  return;
1080
- r._store.validated = !0;
1081
- var g = Ve(f);
1082
- if (Oe[g])
1219
+ i._store.validated = !0;
1220
+ var g = ze(h);
1221
+ if (Te[g])
1083
1222
  return;
1084
- Oe[g] = !0;
1085
- var w = "";
1086
- r && r._owner && r._owner !== pt.current && (w = " It was passed a child from " + N(r._owner.type) + "."), be(r), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, w), be(null);
1223
+ Te[g] = !0;
1224
+ var x = "";
1225
+ i && i._owner && i._owner !== vt.current && (x = " It was passed a child from " + F(i._owner.type) + "."), ye(i), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, x), ye(null);
1087
1226
  }
1088
1227
  }
1089
- function Ft(r, f) {
1228
+ function Gt(i, h) {
1090
1229
  {
1091
- if (typeof r != "object")
1230
+ if (typeof i != "object")
1092
1231
  return;
1093
- if (qe(r))
1094
- for (var g = 0; g < r.length; g++) {
1095
- var w = r[g];
1096
- he(w) && Lt(w, f);
1232
+ if (Qe(i))
1233
+ for (var g = 0; g < i.length; g++) {
1234
+ var x = i[g];
1235
+ pe(x) && $t(x, h);
1097
1236
  }
1098
- else if (he(r))
1099
- r._store && (r._store.validated = !0);
1100
- else if (r) {
1101
- var j = oe(r);
1102
- if (typeof j == "function" && j !== r.entries)
1103
- for (var I = j.call(r), P; !(P = I.next()).done; )
1104
- he(P.value) && Lt(P.value, f);
1237
+ else if (pe(i))
1238
+ i._store && (i._store.validated = !0);
1239
+ else if (i) {
1240
+ var k = se(i);
1241
+ if (typeof k == "function" && k !== i.entries)
1242
+ for (var L = k.call(i), P; !(P = L.next()).done; )
1243
+ pe(P.value) && $t(P.value, h);
1105
1244
  }
1106
1245
  }
1107
1246
  }
1108
- function yn(r) {
1247
+ function Sn(i) {
1109
1248
  {
1110
- var f = r.type;
1111
- if (f == null || typeof f == "string")
1249
+ var h = i.type;
1250
+ if (h == null || typeof h == "string")
1112
1251
  return;
1113
1252
  var g;
1114
- if (typeof f == "function")
1115
- g = f.propTypes;
1116
- else if (typeof f == "object" && (f.$$typeof === d || // Note: Memo only checks outer props here.
1253
+ if (typeof h == "function")
1254
+ g = h.propTypes;
1255
+ else if (typeof h == "object" && (h.$$typeof === u || // Note: Memo only checks outer props here.
1117
1256
  // Inner props are checked in the reconciler.
1118
- f.$$typeof === E))
1119
- g = f.propTypes;
1257
+ h.$$typeof === E))
1258
+ g = h.propTypes;
1120
1259
  else
1121
1260
  return;
1122
1261
  if (g) {
1123
- var w = N(f);
1124
- je(g, r.props, "prop", w, r);
1125
- } else if (f.PropTypes !== void 0 && !fe) {
1126
- fe = !0;
1127
- var j = N(f);
1128
- C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
1262
+ var x = F(h);
1263
+ ke(g, i.props, "prop", x, i);
1264
+ } else if (h.PropTypes !== void 0 && !he) {
1265
+ he = !0;
1266
+ var k = F(h);
1267
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
1129
1268
  }
1130
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1269
+ typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1131
1270
  }
1132
1271
  }
1133
- function En(r) {
1272
+ function On(i) {
1134
1273
  {
1135
- for (var f = Object.keys(r.props), g = 0; g < f.length; g++) {
1136
- var w = f[g];
1137
- if (w !== "children" && w !== "key") {
1138
- be(r), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), be(null);
1274
+ for (var h = Object.keys(i.props), g = 0; g < h.length; g++) {
1275
+ var x = h[g];
1276
+ if (x !== "children" && x !== "key") {
1277
+ ye(i), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ye(null);
1139
1278
  break;
1140
1279
  }
1141
1280
  }
1142
- r.ref !== null && (be(r), C("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
1281
+ i.ref !== null && (ye(i), C("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
1143
1282
  }
1144
1283
  }
1145
- function Ut(r, f, g, w, j, I) {
1284
+ function Vt(i, h, g, x, k, L) {
1146
1285
  {
1147
- var P = S(r);
1286
+ var P = S(i);
1148
1287
  if (!P) {
1149
1288
  var O = "";
1150
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1151
- var se = _e(j);
1152
- se ? O += se : O += $e();
1289
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1290
+ var ce = Ae(k);
1291
+ ce ? O += ce : O += Ve();
1153
1292
  var W;
1154
- r === null ? W = "null" : qe(r) ? W = "array" : r !== void 0 && r.$$typeof === n ? (W = "<" + (N(r.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : W = typeof r, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, O);
1293
+ i === null ? W = "null" : Qe(i) ? W = "array" : i !== void 0 && i.$$typeof === n ? (W = "<" + (F(i.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : W = typeof i, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, O);
1155
1294
  }
1156
- var Z = le(r, f, g, j, I);
1157
- if (Z == null)
1158
- return Z;
1295
+ var q = ue(i, h, g, k, L);
1296
+ if (q == null)
1297
+ return q;
1159
1298
  if (P) {
1160
- var me = f.children;
1161
- if (me !== void 0)
1162
- if (w)
1163
- if (qe(me)) {
1164
- for (var Ge = 0; Ge < me.length; Ge++)
1165
- Ft(me[Ge], r);
1166
- Object.freeze && Object.freeze(me);
1299
+ var ge = h.children;
1300
+ if (ge !== void 0)
1301
+ if (x)
1302
+ if (Qe(ge)) {
1303
+ for (var Ye = 0; Ye < ge.length; Ye++)
1304
+ Gt(ge[Ye], i);
1305
+ Object.freeze && Object.freeze(ge);
1167
1306
  } else
1168
1307
  C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1169
1308
  else
1170
- Ft(me, r);
1309
+ Gt(ge, i);
1171
1310
  }
1172
- return r === e ? En(Z) : yn(Z), Z;
1311
+ return i === e ? On(q) : Sn(q), q;
1173
1312
  }
1174
1313
  }
1175
- function xn(r, f, g) {
1176
- return Ut(r, f, g, !0);
1314
+ function Tn(i, h, g) {
1315
+ return Vt(i, h, g, !0);
1177
1316
  }
1178
- function wn(r, f, g) {
1179
- return Ut(r, f, g, !1);
1317
+ function Mn(i, h, g) {
1318
+ return Vt(i, h, g, !1);
1180
1319
  }
1181
- var Cn = wn, Sn = xn;
1182
- tt.Fragment = e, tt.jsx = Cn, tt.jsxs = Sn;
1183
- }()), tt;
1320
+ var Rn = Mn, Pn = Tn;
1321
+ at.Fragment = e, at.jsx = Rn, at.jsxs = Pn;
1322
+ }()), at;
1184
1323
  }
1185
- process.env.NODE_ENV === "production" ? At.exports = ri() : At.exports = ai();
1186
- var c = At.exports;
1187
- function gn(t) {
1324
+ process.env.NODE_ENV === "production" ? Lt.exports = va() : Lt.exports = ba();
1325
+ var c = Lt.exports;
1326
+ function En(t) {
1188
1327
  return t.title.search("<") > -1 ? /* @__PURE__ */ c.jsx("button", { className: "svg", dangerouslySetInnerHTML: { __html: t.title } }) : /* @__PURE__ */ c.jsx("button", { children: t.title });
1189
1328
  }
1190
- const oi = /* @__PURE__ */ c.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1329
+ const ya = /* @__PURE__ */ c.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1191
1330
  /* @__PURE__ */ c.jsx("circle", { cx: "7", cy: "7", r: "6" }),
1192
1331
  /* @__PURE__ */ c.jsx("line", { x1: "4", y1: "4", x2: "10", y2: "10" }),
1193
1332
  /* @__PURE__ */ c.jsx("line", { x1: "4", y1: "10", x2: "10", y2: "4" })
1194
- ] }), si = /* @__PURE__ */ c.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ c.jsx(
1333
+ ] }), Ea = /* @__PURE__ */ c.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ c.jsx(
1195
1334
  "path",
1196
1335
  {
1197
1336
  d: `M10.43,4H3.57C3.26,4,3,4.22,3,4.5v1C3,5.78,3.26,6,3.57,6h6.86C10.74,6,11,5.78,11,5.5v-1
@@ -1199,45 +1338,45 @@ C11,4.22,10.74,4,10.43,4z M10.43,8H3.57C3.26,8,3,8.22,3,8.5v1C3,9.78,3.26,10,3.5
1199
1338
  C11,8.22,10.74,8,10.43,8z`
1200
1339
  }
1201
1340
  ) });
1202
- function ci(t) {
1203
- return /* @__PURE__ */ c.jsx(dn.Item, { value: t.title, children: /* @__PURE__ */ c.jsxs("div", { children: [
1204
- si,
1341
+ function wa(t) {
1342
+ return /* @__PURE__ */ c.jsx(pn.Item, { value: t.title, children: /* @__PURE__ */ c.jsxs("div", { children: [
1343
+ Ea,
1205
1344
  /* @__PURE__ */ c.jsx("span", { children: t.title }),
1206
1345
  /* @__PURE__ */ c.jsx("button", { className: "closeIcon", onClick: () => {
1207
1346
  t.onDelete(t.index);
1208
- }, children: oi })
1347
+ }, children: ya })
1209
1348
  ] }) }, t.title);
1210
1349
  }
1211
- function li(t) {
1212
- const [n, i] = ae(!1), [e, a] = ae(t.options), s = (m) => {
1213
- t.onDragComplete(m), a(m);
1214
- }, h = (m) => {
1350
+ function xa(t) {
1351
+ const [n, a] = oe(!1), [e, r] = oe(t.options), s = (p) => {
1352
+ t.onDragComplete(p), r(p);
1353
+ }, f = (p) => {
1215
1354
  const v = [...e];
1216
- v.splice(m, 1), s(v);
1355
+ v.splice(p, 1), s(v);
1217
1356
  }, l = [];
1218
- e.forEach((m, v) => {
1219
- l.push(/* @__PURE__ */ c.jsx(ci, { index: v, title: m, onDelete: h }, m));
1357
+ e.forEach((p, v) => {
1358
+ l.push(/* @__PURE__ */ c.jsx(wa, { index: v, title: p, onDelete: f }, p));
1220
1359
  });
1221
- let d = "dropdown draggable";
1222
- return t.subdropdown && (d += " subdropdown"), /* @__PURE__ */ c.jsxs("div", { className: d, onMouseEnter: () => i(!0), onMouseLeave: () => i(!1), children: [
1223
- /* @__PURE__ */ c.jsx(gn, { title: t.title }),
1224
- /* @__PURE__ */ c.jsx(dn.Group, { axis: "y", values: e, onReorder: s, style: { visibility: n ? "visible" : "hidden" }, children: l })
1360
+ let u = "dropdown draggable";
1361
+ return t.subdropdown && (u += " subdropdown"), /* @__PURE__ */ c.jsxs("div", { className: u, onMouseEnter: () => a(!0), onMouseLeave: () => a(!1), children: [
1362
+ /* @__PURE__ */ c.jsx(En, { title: t.title }),
1363
+ /* @__PURE__ */ c.jsx(pn.Group, { axis: "y", values: e, onReorder: s, style: { visibility: n ? "visible" : "hidden" }, children: l })
1225
1364
  ] });
1226
1365
  }
1227
- function ui(t) {
1228
- const [n, i] = ae(!1), e = [];
1229
- t.options.map((s, h) => {
1230
- t.onSelect !== void 0 && (s.onSelect = t.onSelect), e.push(/* @__PURE__ */ c.jsx(di, { option: s }, h));
1366
+ function Ca(t) {
1367
+ const [n, a] = oe(!1), e = [];
1368
+ t.options.map((s, f) => {
1369
+ t.onSelect !== void 0 && (s.onSelect = t.onSelect), e.push(/* @__PURE__ */ c.jsx(Sa, { option: s }, f));
1231
1370
  });
1232
- let a = "dropdown";
1233
- return t.subdropdown && (a += " subdropdown"), /* @__PURE__ */ c.jsxs(
1371
+ let r = "dropdown";
1372
+ return t.subdropdown && (r += " subdropdown"), /* @__PURE__ */ c.jsxs(
1234
1373
  "div",
1235
1374
  {
1236
- className: a,
1237
- onMouseEnter: () => i(!0),
1238
- onMouseLeave: () => i(!1),
1375
+ className: r,
1376
+ onMouseEnter: () => a(!0),
1377
+ onMouseLeave: () => a(!1),
1239
1378
  children: [
1240
- /* @__PURE__ */ c.jsx(gn, { title: t.title }),
1379
+ /* @__PURE__ */ c.jsx(En, { title: t.title }),
1241
1380
  /* @__PURE__ */ c.jsx(
1242
1381
  "ul",
1243
1382
  {
@@ -1249,13 +1388,13 @@ function ui(t) {
1249
1388
  }
1250
1389
  );
1251
1390
  }
1252
- function di(t) {
1253
- const { option: n } = t, [i, e] = ae("");
1254
- let a;
1391
+ function Sa(t) {
1392
+ const { option: n } = t, [a, e] = oe("");
1393
+ let r;
1255
1394
  switch (n.type) {
1256
1395
  case "draggable":
1257
- a = /* @__PURE__ */ c.jsx(
1258
- li,
1396
+ r = /* @__PURE__ */ c.jsx(
1397
+ xa,
1259
1398
  {
1260
1399
  title: n.title,
1261
1400
  options: n.value,
@@ -1267,8 +1406,8 @@ function di(t) {
1267
1406
  );
1268
1407
  break;
1269
1408
  case "dropdown":
1270
- a = /* @__PURE__ */ c.jsx(
1271
- ui,
1409
+ r = /* @__PURE__ */ c.jsx(
1410
+ Ca,
1272
1411
  {
1273
1412
  title: n.title,
1274
1413
  options: n.value,
@@ -1278,39 +1417,43 @@ function di(t) {
1278
1417
  );
1279
1418
  break;
1280
1419
  case "option":
1281
- a = /* @__PURE__ */ c.jsx(
1420
+ r = /* @__PURE__ */ c.jsx(
1282
1421
  "button",
1283
1422
  {
1284
1423
  onClick: () => {
1285
- n.onSelect !== void 0 && n.onSelect(n.value), n.selectable && (i !== n.title ? e(n.title) : e(""));
1424
+ n.onSelect !== void 0 && n.onSelect(n.value), n.selectable && (a !== n.title ? e(n.title) : e(""));
1286
1425
  },
1287
1426
  children: n.title
1288
1427
  }
1289
1428
  );
1290
1429
  break;
1291
1430
  }
1292
- return /* @__PURE__ */ c.jsx("li", { className: i === n.title ? "selected" : "", children: a }, Zn());
1431
+ return /* @__PURE__ */ c.jsx("li", { className: a === n.title ? "selected" : "", children: r }, ta());
1293
1432
  }
1294
- function nr(t, n, i) {
1433
+ function di(t) {
1434
+ const n = [], a = [];
1435
+ t.components.forEach((s) => {
1436
+ s instanceof oa ? n.push(sa) : s instanceof Ut ? (n.push(ca), la(t)) : s instanceof ha ? (n.push(pa), a.push(ma)) : s instanceof yn && n.push(ga);
1437
+ });
1295
1438
  function e(s) {
1296
- switch (n.forEach((h) => h(t, s)), s.event) {
1439
+ switch (n.forEach((f) => f(t, s)), s.event) {
1297
1440
  case "custom":
1298
- z.dispatchEvent({ type: Y.CUSTOM, value: s.data });
1441
+ _.dispatchEvent({ type: j.CUSTOM, value: s.data });
1299
1442
  break;
1300
1443
  }
1301
1444
  }
1302
- function a(s) {
1303
- switch (i.forEach((h) => h(t, s)), s.event) {
1445
+ function r(s) {
1446
+ switch (a.forEach((f) => f(t, s)), s.event) {
1304
1447
  case "custom":
1305
- z.dispatchEvent({ type: Y.CUSTOM, value: s.data });
1448
+ _.dispatchEvent({ type: j.CUSTOM, value: s.data });
1306
1449
  break;
1307
1450
  }
1308
1451
  }
1309
1452
  t.listen((s) => {
1310
- t.editor ? a(s) : e(s);
1453
+ t.editor ? r(s) : e(s);
1311
1454
  });
1312
1455
  }
1313
- const fi = `out vec3 worldPosition;
1456
+ const Oa = `out vec3 worldPosition;
1314
1457
  uniform float uDistance;
1315
1458
 
1316
1459
  void main() {
@@ -1319,7 +1462,7 @@ void main() {
1319
1462
  worldPosition.xz += cameraPosition.xz;
1320
1463
 
1321
1464
  gl_Position = projectionMatrix * modelViewMatrix * vec4(worldPosition, 1.0);
1322
- }`, hi = `out vec4 fragColor;
1465
+ }`, Ta = `out vec4 fragColor;
1323
1466
  in vec3 worldPosition;
1324
1467
 
1325
1468
  uniform float uDivisions;
@@ -1387,14 +1530,14 @@ void main() {
1387
1530
 
1388
1531
  if (fragColor.a <= 0.0) discard;
1389
1532
  }`;
1390
- class pi extends on {
1533
+ class Ma extends ln {
1391
1534
  constructor(n) {
1392
1535
  super({
1393
1536
  extensions: {
1394
1537
  derivatives: !0
1395
1538
  },
1396
- glslVersion: Pn,
1397
- side: jn,
1539
+ glslVersion: Dn,
1540
+ side: In,
1398
1541
  transparent: !0,
1399
1542
  uniforms: {
1400
1543
  uScale: {
@@ -1404,7 +1547,7 @@ class pi extends on {
1404
1547
  value: (n == null ? void 0 : n.divisions) !== void 0 ? n == null ? void 0 : n.divisions : 10
1405
1548
  },
1406
1549
  uColor: {
1407
- value: (n == null ? void 0 : n.color) !== void 0 ? n == null ? void 0 : n.color : new It(16777215)
1550
+ value: (n == null ? void 0 : n.color) !== void 0 ? n == null ? void 0 : n.color : new Ft(16777215)
1408
1551
  },
1409
1552
  uDistance: {
1410
1553
  value: (n == null ? void 0 : n.distance) !== void 0 ? n == null ? void 0 : n.distance : 1e4
@@ -1416,25 +1559,25 @@ class pi extends on {
1416
1559
  value: (n == null ? void 0 : n.gridOpacity) !== void 0 ? n == null ? void 0 : n.gridOpacity : 0.25
1417
1560
  }
1418
1561
  },
1419
- vertexShader: fi,
1420
- fragmentShader: hi,
1562
+ vertexShader: Oa,
1563
+ fragmentShader: Ta,
1421
1564
  name: "InfiniteGrid",
1422
1565
  depthWrite: !1
1423
1566
  });
1424
1567
  }
1425
1568
  }
1426
- class mi extends _n {
1569
+ class Ra extends Nn {
1427
1570
  constructor() {
1428
- const i = new pi();
1429
- super(new Dn(2, 2), i);
1430
- q(this, "gridMaterial");
1431
- this.gridMaterial = i, this.frustumCulled = !1, this.name = "InfiniteGridHelper", this.position.y = 0.1;
1571
+ const a = new Ma();
1572
+ super(new Ln(2, 2), a);
1573
+ Z(this, "gridMaterial");
1574
+ this.gridMaterial = a, this.frustumCulled = !1, this.name = "InfiniteGridHelper", this.position.y = 0.1;
1432
1575
  }
1433
1576
  update() {
1434
1577
  this.gridMaterial.needsUpdate = !0;
1435
1578
  }
1436
1579
  }
1437
- const gi = `#include <common>
1580
+ const Pa = `#include <common>
1438
1581
  #include <batching_pars_vertex>
1439
1582
  #include <uv_pars_vertex>
1440
1583
  #include <color_pars_vertex>
@@ -1464,7 +1607,7 @@ void main() {
1464
1607
  #include <logdepthbuf_vertex>
1465
1608
  #include <clipping_planes_vertex>
1466
1609
  #include <worldpos_vertex>
1467
- }`, vi = `
1610
+ }`, _a = `
1468
1611
  #include <common>
1469
1612
  #include <uv_pars_fragment>
1470
1613
  #include <clipping_planes_pars_fragment>
@@ -1473,27 +1616,27 @@ void main() {
1473
1616
  #include <clipping_planes_fragment>
1474
1617
  gl_FragColor = vec4(vec3(vUv, 0.0), 1.0);
1475
1618
  }`;
1476
- class bi extends on {
1619
+ class ja extends ln {
1477
1620
  constructor() {
1478
1621
  super({
1479
1622
  defines: {
1480
1623
  USE_UV: ""
1481
1624
  },
1482
- vertexShader: gi,
1483
- fragmentShader: vi
1625
+ vertexShader: Pa,
1626
+ fragmentShader: _a
1484
1627
  });
1485
1628
  }
1486
1629
  }
1487
- function Nt(t) {
1488
- const [n, i] = ae(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1630
+ function Bt(t) {
1631
+ const [n, a] = oe(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1489
1632
  return /* @__PURE__ */ c.jsxs("div", { className: `accordion ${e ? "hide" : ""}`, children: [
1490
1633
  /* @__PURE__ */ c.jsxs(
1491
1634
  "button",
1492
1635
  {
1493
1636
  className: "toggle",
1494
1637
  onClick: () => {
1495
- const a = !n;
1496
- t.onToggle !== void 0 && t.onToggle(a), i(a);
1638
+ const r = !n;
1639
+ t.onToggle !== void 0 && t.onToggle(r), a(r);
1497
1640
  },
1498
1641
  children: [
1499
1642
  /* @__PURE__ */ c.jsx(
@@ -1511,10 +1654,10 @@ function Nt(t) {
1511
1654
  /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { children: t.children }) })
1512
1655
  ] });
1513
1656
  }
1514
- function vn(t) {
1515
- const [n, i] = ae(!1), e = t.child.children.length > 0, a = [];
1657
+ function wn(t) {
1658
+ const [n, a] = oe(!1), e = t.child.children.length > 0, r = [];
1516
1659
  return t.child.children.length > 0 && t.child.children.map((s) => {
1517
- a.push(/* @__PURE__ */ c.jsx(vn, { child: s, three: t.three }, Math.random()));
1660
+ r.push(/* @__PURE__ */ c.jsx(wn, { child: s, three: t.three }, Math.random()));
1518
1661
  }), /* @__PURE__ */ c.jsxs("div", { className: "childObject", children: [
1519
1662
  /* @__PURE__ */ c.jsxs("div", { className: "child", children: [
1520
1663
  e ? /* @__PURE__ */ c.jsx(
@@ -1525,7 +1668,7 @@ function vn(t) {
1525
1668
  backgroundPositionX: n ? "-14px" : "2px"
1526
1669
  },
1527
1670
  onClick: () => {
1528
- i(!n);
1671
+ a(!n);
1529
1672
  }
1530
1673
  }
1531
1674
  ) : null,
@@ -1542,51 +1685,48 @@ function vn(t) {
1542
1685
  children: t.child.name.length > 0 ? `${t.child.name} (${t.child.type})` : `${t.child.type}::${t.child.uuid}`
1543
1686
  }
1544
1687
  ),
1545
- /* @__PURE__ */ c.jsx("div", { className: `icon ${ti(t.child)}` })
1688
+ /* @__PURE__ */ c.jsx("div", { className: `icon ${ua(t.child)}` })
1546
1689
  ] }),
1547
- /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { className: "container", children: a }) })
1690
+ /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { className: "container", children: r }) })
1548
1691
  ] }, Math.random());
1549
1692
  }
1550
- function yi(t) {
1693
+ function ka(t) {
1551
1694
  const n = [];
1552
- return t.child.children.map((i) => {
1553
- n.push(/* @__PURE__ */ c.jsx(vn, { child: i, three: t.three }, Math.random()));
1695
+ return t.child.children.map((a) => {
1696
+ n.push(/* @__PURE__ */ c.jsx(wn, { child: a, three: t.three }, Math.random()));
1554
1697
  }), /* @__PURE__ */ c.jsx("div", { className: `scene ${t.class !== void 0 ? t.class : ""}`, children: n });
1555
1698
  }
1556
- const Ei = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1557
- function xi(t) {
1699
+ const Aa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1700
+ function Da(t) {
1558
1701
  return "items" in t;
1559
1702
  }
1560
- function Le(t) {
1561
- function n(e, a) {
1562
- console.log("onChange:", e, a);
1563
- }
1564
- const i = [];
1565
- return t.items.forEach((e) => {
1566
- xi(e) ? i.push(
1567
- /* @__PURE__ */ c.jsx(Le, { title: e.title, items: e.items }, Math.random())
1568
- ) : i.push(
1703
+ function Ue(t) {
1704
+ const n = [];
1705
+ return t.items.forEach((a) => {
1706
+ Da(a) ? n.push(
1707
+ /* @__PURE__ */ c.jsx(Ue, { title: a.title, items: a.items }, Math.random())
1708
+ ) : n.push(
1569
1709
  /* @__PURE__ */ c.jsx(
1570
- nt,
1710
+ it,
1571
1711
  {
1572
- title: e.title,
1573
- prop: e.prop,
1574
- value: e.value,
1575
- type: e.type,
1576
- min: e.min,
1577
- max: e.max,
1578
- step: e.step,
1579
- disabled: e.disabled,
1580
- onChange: (a, s) => {
1581
- e.onChange !== void 0 ? e.onChange(a, s) : n(a, s);
1712
+ title: a.title,
1713
+ prop: a.prop,
1714
+ value: a.value,
1715
+ type: a.type,
1716
+ min: a.min,
1717
+ max: a.max,
1718
+ step: a.step,
1719
+ disabled: a.disabled,
1720
+ onChange: (e, r) => {
1721
+ a.onChange !== void 0 && a.onChange(e, r);
1582
1722
  }
1583
1723
  },
1584
1724
  Math.random()
1585
1725
  )
1586
1726
  );
1587
- }), /* @__PURE__ */ c.jsx(Nt, { label: t.title, open: !1, children: i });
1727
+ }), /* @__PURE__ */ c.jsx(Bt, { label: t.title, open: t.expanded === !0, children: n });
1588
1728
  }
1589
- function wi(t) {
1729
+ function Ia(t) {
1590
1730
  return !(t === "alphaHash" || t === "alphaToCoverage" || t === "attenuationDistance" || t === "colorWrite" || t === "combine" || t === "defaultAttributeValues" || t === "depthFunc" || t === "forceSinglePass" || t === "glslVersion" || t === "linewidth" || t === "normalMapType" || t === "precision" || t === "premultipliedAlpha" || t === "shadowSide" || t === "side" || t === "toneMapped" || t === "uniformsGroups" || t === "uniformsNeedUpdate" || t === "userData" || t === "vertexColors" || t === "version" || t === "wireframeLinecap" || t === "wireframeLinejoin" || t === "wireframeLinewidth" || t.slice(0, 5) === "blend" || t.slice(0, 4) === "clip" || t.slice(0, 7) === "polygon" || t.slice(0, 7) === "stencil" || t.slice(0, 2) === "is");
1591
1731
  }
1592
1732
  function De(t) {
@@ -1738,166 +1878,166 @@ function De(t) {
1738
1878
  }
1739
1879
  return t;
1740
1880
  }
1741
- function Ci(t) {
1881
+ function Na(t) {
1742
1882
  return t.toLowerCase().search("intensity") > -1 || t === "anisotropyRotation" || t === "bumpScale" || t === "clearcoatRoughness" || t === "displacementBias" || t === "displacementScale" || t === "metalness" || t === "opacity" || t === "reflectivity" || t === "refractionRatio" || t === "roughness" || t === "sheenRoughness" || t === "thickness";
1743
1883
  }
1744
- function Si() {
1884
+ function La() {
1745
1885
  const t = document.createElement("input");
1746
- return t.type = "file", new Promise((n, i) => {
1886
+ return t.type = "file", new Promise((n, a) => {
1747
1887
  t.addEventListener("change", function() {
1748
1888
  if (t.files === null)
1749
- i();
1889
+ a();
1750
1890
  else {
1751
- const e = t.files[0], a = new FileReader();
1752
- a.onload = function(s) {
1891
+ const e = t.files[0], r = new FileReader();
1892
+ r.onload = function(s) {
1753
1893
  n(s.target.result);
1754
- }, a.readAsDataURL(e);
1894
+ }, r.readAsDataURL(e);
1755
1895
  }
1756
1896
  }), t.click();
1757
1897
  });
1758
1898
  }
1759
- function Ht(t, n, i) {
1899
+ function Zt(t, n, a) {
1760
1900
  const e = [];
1761
- for (const a in t) {
1762
- if (!wi(a))
1901
+ for (const r in t) {
1902
+ if (!Ia(r))
1763
1903
  continue;
1764
- const s = typeof t[a], h = t[a];
1904
+ const s = typeof t[r], f = t[r];
1765
1905
  if (s === "boolean" || s === "number" || s === "string") {
1766
1906
  const l = {
1767
- title: De(a),
1768
- prop: a,
1907
+ title: De(r),
1908
+ prop: r,
1769
1909
  type: s,
1770
- value: h,
1910
+ value: f,
1771
1911
  min: void 0,
1772
1912
  max: void 0,
1773
- onChange: (d, m) => {
1913
+ onChange: (u, p) => {
1774
1914
  var E;
1775
- i.updateObject(n.uuid, `material.${d}`, m), s === "boolean" && i.updateObject(n.uuid, "material.needsUpdate", !0);
1776
- const v = (E = i.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1777
- v !== void 0 && J(v, `material.${d}`, m);
1915
+ a.updateObject(n.uuid, `material.${u}`, p), s === "boolean" && a.updateObject(n.uuid, "material.needsUpdate", !0);
1916
+ const v = (E = a.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1917
+ v !== void 0 && Q(v, `material.${u}`, p);
1778
1918
  }
1779
1919
  };
1780
- Ci(a) && (l.value = Number(h), l.type = "range", l.min = 0, l.max = 1, l.step = 0.01), e.push(l);
1920
+ Na(r) && (l.value = Number(f), l.type = "range", l.min = 0, l.max = 1, l.step = 0.01), e.push(l);
1781
1921
  } else if (s === "object")
1782
- if (h.isColor)
1922
+ if (f.isColor)
1783
1923
  e.push({
1784
- title: De(a),
1785
- prop: a,
1924
+ title: De(r),
1925
+ prop: r,
1786
1926
  type: "color",
1787
- value: h,
1788
- onChange: (l, d) => {
1927
+ value: f,
1928
+ onChange: (l, u) => {
1789
1929
  var E;
1790
- const m = new It(d);
1791
- i.updateObject(n.uuid, `material.${l}`, m);
1792
- const v = (E = i.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1793
- v !== void 0 && J(v, `material.${l}`, m);
1930
+ const p = new Ft(u);
1931
+ a.updateObject(n.uuid, `material.${l}`, p);
1932
+ const v = (E = a.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1933
+ v !== void 0 && Q(v, `material.${l}`, p);
1794
1934
  }
1795
1935
  });
1796
- else if (Array.isArray(h)) {
1936
+ else if (Array.isArray(f)) {
1797
1937
  const l = [];
1798
- for (const d in h)
1938
+ for (const u in f)
1799
1939
  l.push({
1800
- title: `${d}`,
1801
- type: `${typeof h[d]}`,
1802
- value: h[d],
1803
- onChange: (m, v) => {
1804
- var x;
1805
- i.updateObject(n.uuid, `material.${a}`, v);
1806
- const E = (x = i.scene) == null ? void 0 : x.getObjectByProperty("uuid", n.uuid);
1807
- E !== void 0 && J(E, `material.${a}`, v);
1940
+ title: `${u}`,
1941
+ type: `${typeof f[u]}`,
1942
+ value: f[u],
1943
+ onChange: (p, v) => {
1944
+ var w;
1945
+ a.updateObject(n.uuid, `material.${r}`, v);
1946
+ const E = (w = a.scene) == null ? void 0 : w.getObjectByProperty("uuid", n.uuid);
1947
+ E !== void 0 && Q(E, `material.${r}`, v);
1808
1948
  }
1809
1949
  });
1810
1950
  e.push({
1811
- title: De(a),
1951
+ title: De(r),
1812
1952
  items: l
1813
1953
  });
1814
1954
  } else {
1815
1955
  const l = [];
1816
- for (const d in h) {
1817
- const m = h[d];
1818
- switch (typeof m) {
1956
+ for (const u in f) {
1957
+ const p = f[u];
1958
+ switch (typeof p) {
1819
1959
  case "boolean":
1820
1960
  case "number":
1821
1961
  case "string":
1822
- d === "src" ? e.push({
1823
- title: De(a),
1962
+ u === "src" ? e.push({
1963
+ title: De(r),
1824
1964
  type: "image",
1825
- value: m,
1826
- onChange: (E, x) => {
1965
+ value: p,
1966
+ onChange: (E, w) => {
1827
1967
  var T;
1828
- i.createTexture(n.uuid, `material.${a}`, x);
1829
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1830
- R !== void 0 && kt(x).then((B) => {
1831
- J(R, `material.${a}`, B), J(R, "material.needsUpdate", !0);
1968
+ a.createTexture(n.uuid, `material.${r}`, w);
1969
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1970
+ R !== void 0 && Nt(w).then((G) => {
1971
+ Q(R, `material.${r}`, G), Q(R, "material.needsUpdate", !0);
1832
1972
  });
1833
1973
  }
1834
1974
  }) : l.push({
1835
- title: `${De(d)}`,
1836
- prop: `material.${a}.${d}`,
1837
- type: `${typeof t[a][d]}`,
1838
- value: h[d],
1839
- onChange: (E, x) => {
1975
+ title: `${De(u)}`,
1976
+ prop: `material.${r}.${u}`,
1977
+ type: `${typeof t[r][u]}`,
1978
+ value: f[u],
1979
+ onChange: (E, w) => {
1840
1980
  var T;
1841
- i.updateObject(n.uuid, `material.${a}.${d}`, x);
1842
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1843
- R !== void 0 && J(R, `material.${a}.${d}`, x);
1981
+ a.updateObject(n.uuid, `material.${r}.${u}`, w);
1982
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1983
+ R !== void 0 && Q(R, `material.${r}.${u}`, w);
1844
1984
  }
1845
1985
  });
1846
1986
  break;
1847
1987
  case "object":
1848
- m.value !== void 0 && m.value.src !== void 0 ? l.push({
1849
- title: De(d),
1988
+ p.value !== void 0 && p.value.src !== void 0 ? l.push({
1989
+ title: De(u),
1850
1990
  type: "image",
1851
- value: m.value.src,
1852
- onChange: (E, x) => {
1991
+ value: p.value.src,
1992
+ onChange: (E, w) => {
1853
1993
  var T;
1854
- i.createTexture(n.uuid, `material.${a}.${d}.value`, x);
1855
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1856
- R !== void 0 && kt(x).then((B) => {
1857
- J(R, `material.${a}.${d}.value`, B);
1994
+ a.createTexture(n.uuid, `material.${r}.${u}.value`, w);
1995
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1996
+ R !== void 0 && Nt(w).then((G) => {
1997
+ Q(R, `material.${r}.${u}.value`, G);
1858
1998
  });
1859
1999
  }
1860
2000
  }) : l.push({
1861
- title: d,
1862
- type: `${typeof m.value}`,
1863
- value: m.value,
1864
- onChange: (E, x) => {
2001
+ title: u,
2002
+ type: `${typeof p.value}`,
2003
+ value: p.value,
2004
+ onChange: (E, w) => {
1865
2005
  var T;
1866
- i.updateObject(n.uuid, `material.${a}.${d}.value`, x);
1867
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1868
- R !== void 0 && J(R, `material.${a}.${d}.value`, x);
2006
+ a.updateObject(n.uuid, `material.${r}.${u}.value`, w);
2007
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
2008
+ R !== void 0 && Q(R, `material.${r}.${u}.value`, w);
1869
2009
  }
1870
2010
  });
1871
2011
  break;
1872
2012
  }
1873
2013
  }
1874
2014
  l.length > 0 && e.push({
1875
- title: De(a),
2015
+ title: De(r),
1876
2016
  items: l
1877
2017
  });
1878
2018
  }
1879
2019
  else
1880
- h !== void 0 && console.log("other:", a, s, h);
2020
+ f !== void 0 && console.log("other:", r, s, f);
1881
2021
  }
1882
- return e.sort((a, s) => a.title < s.title ? -1 : a.title > s.title ? 1 : 0), e.push({
2022
+ return e.sort((r, s) => r.title < s.title ? -1 : r.title > s.title ? 1 : 0), e.push({
1883
2023
  title: "Update Material",
1884
2024
  type: "button",
1885
2025
  onChange: () => {
1886
- i.updateObject(n.uuid, "material.needsUpdate", !0);
2026
+ a.updateObject(n.uuid, "material.needsUpdate", !0);
1887
2027
  }
1888
2028
  }), e;
1889
2029
  }
1890
- function Oi(t, n) {
1891
- const i = t.material;
1892
- if (Array.isArray(i)) {
1893
- const e = [], a = i.length;
1894
- for (let s = 0; s < a; s++)
2030
+ function Fa(t, n) {
2031
+ const a = t.material;
2032
+ if (Array.isArray(a)) {
2033
+ const e = [], r = a.length;
2034
+ for (let s = 0; s < r; s++)
1895
2035
  e.push(
1896
2036
  /* @__PURE__ */ c.jsx(
1897
- Le,
2037
+ Ue,
1898
2038
  {
1899
2039
  title: `Material ${s}`,
1900
- items: Ht(i[s], t, n)
2040
+ items: Zt(a[s], t, n)
1901
2041
  },
1902
2042
  `Material ${s}`
1903
2043
  )
@@ -1905,51 +2045,51 @@ function Oi(t, n) {
1905
2045
  return /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
1906
2046
  } else
1907
2047
  return /* @__PURE__ */ c.jsx(
1908
- Le,
2048
+ Ue,
1909
2049
  {
1910
2050
  title: "Material",
1911
- items: Ht(i, t, n)
2051
+ items: Zt(a, t, n)
1912
2052
  }
1913
2053
  );
1914
2054
  }
1915
- function nt(t) {
2055
+ function it(t) {
1916
2056
  let n = t.value;
1917
- n !== void 0 && n.isColor !== void 0 && (n = Qn(t.value));
1918
- const [i, e] = ae(n), a = we(null), s = we(null), h = we(null);
1919
- Ne(() => {
2057
+ n !== void 0 && n.isColor !== void 0 && (n = aa(t.value));
2058
+ const [a, e] = oe(n), r = Ce(null), s = Ce(null), f = Ce(null);
2059
+ Fe(() => {
1920
2060
  var K;
1921
- let v = !1, E = -1, x = 0, R = Number(i);
1922
- const T = (de) => {
1923
- v = !0, x = R, E = de.clientX;
1924
- }, B = (de) => {
2061
+ let v = !1, E = -1, w = 0, R = Number(a);
2062
+ const T = (fe) => {
2063
+ v = !0, w = R, E = fe.clientX;
2064
+ }, G = (fe) => {
1925
2065
  if (!v)
1926
2066
  return;
1927
- const ce = t.step !== void 0 ? t.step : 1, ee = (de.clientX - E) * ce;
1928
- R = Number((x + ee).toFixed(4)), s.current !== null && (s.current.value = R.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, R);
1929
- }, oe = () => {
2067
+ const le = t.step !== void 0 ? t.step : 1, ee = (fe.clientX - E) * le;
2068
+ R = Number((w + ee).toFixed(4)), s.current !== null && (s.current.value = R.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, R);
2069
+ }, se = () => {
1930
2070
  v = !1;
1931
2071
  }, H = () => {
1932
2072
  v = !1;
1933
2073
  }, C = t.type === "number";
1934
- return C && ((K = a.current) == null || K.addEventListener("mousedown", T, !1), document.addEventListener("mouseup", oe, !1), document.addEventListener("mousemove", B, !1), document.addEventListener("contextmenu", H, !1)), () => {
1935
- var de;
1936
- C && ((de = a.current) == null || de.removeEventListener("mousedown", T), document.removeEventListener("mouseup", oe), document.removeEventListener("mousemove", B), document.removeEventListener("contextmenu", H));
2074
+ return C && ((K = r.current) == null || K.addEventListener("mousedown", T, !1), document.addEventListener("mouseup", se, !1), document.addEventListener("mousemove", G, !1), document.addEventListener("contextmenu", H, !1)), () => {
2075
+ var fe;
2076
+ C && ((fe = r.current) == null || fe.removeEventListener("mousedown", T), document.removeEventListener("mouseup", se), document.removeEventListener("mousemove", G), document.removeEventListener("contextmenu", H));
1937
2077
  };
1938
- }, [i]);
1939
- const l = t.type === "string" && (i.length > 100 || i.search(`
1940
- `) > -1), d = l || t.type === "image", m = (v) => {
2078
+ }, [a]);
2079
+ const l = t.type === "string" && (a.length > 100 || a.search(`
2080
+ `) > -1), u = l || t.type === "image", p = (v) => {
1941
2081
  let E = v.target.value;
1942
2082
  t.type === "boolean" && (E = v.target.checked), e(E), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, E);
1943
2083
  };
1944
- return /* @__PURE__ */ c.jsxs("div", { className: `field ${d ? "block" : ""}`, children: [
1945
- t.type !== "button" && /* @__PURE__ */ c.jsx("label", { ref: a, children: t.title }, "fieldLabel"),
2084
+ return /* @__PURE__ */ c.jsxs("div", { className: `field ${u ? "block" : ""}`, children: [
2085
+ t.type !== "button" && /* @__PURE__ */ c.jsx("label", { ref: r, children: t.title }, "fieldLabel"),
1946
2086
  t.type === "string" && !l && /* @__PURE__ */ c.jsx(
1947
2087
  "input",
1948
2088
  {
1949
2089
  type: "text",
1950
2090
  disabled: t.disabled,
1951
- onChange: m,
1952
- value: i
2091
+ onChange: p,
2092
+ value: a
1953
2093
  }
1954
2094
  ),
1955
2095
  t.type === "string" && l && /* @__PURE__ */ c.jsx(
@@ -1958,8 +2098,8 @@ function nt(t) {
1958
2098
  cols: 50,
1959
2099
  rows: 10,
1960
2100
  disabled: !0,
1961
- onChange: m,
1962
- value: i
2101
+ onChange: p,
2102
+ value: a
1963
2103
  }
1964
2104
  ),
1965
2105
  t.type === "boolean" && /* @__PURE__ */ c.jsx(
@@ -1967,8 +2107,8 @@ function nt(t) {
1967
2107
  {
1968
2108
  type: "checkbox",
1969
2109
  disabled: t.disabled,
1970
- onChange: m,
1971
- checked: i
2110
+ onChange: p,
2111
+ checked: a
1972
2112
  }
1973
2113
  ),
1974
2114
  t.type === "number" && /* @__PURE__ */ c.jsx(
@@ -1976,31 +2116,31 @@ function nt(t) {
1976
2116
  {
1977
2117
  ref: s,
1978
2118
  type: "number",
1979
- value: i,
2119
+ value: a,
1980
2120
  min: t.min,
1981
2121
  max: t.max,
1982
2122
  step: t.step,
1983
- onChange: m
2123
+ onChange: p
1984
2124
  }
1985
2125
  ),
1986
2126
  t.type === "range" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1987
- /* @__PURE__ */ c.jsx("input", { type: "text", value: i.toString(), onChange: m, className: "min" }),
2127
+ /* @__PURE__ */ c.jsx("input", { type: "text", value: a.toString(), onChange: p, className: "min" }),
1988
2128
  /* @__PURE__ */ c.jsx(
1989
2129
  "input",
1990
2130
  {
1991
2131
  disabled: t.disabled,
1992
2132
  type: "range",
1993
- value: i,
2133
+ value: a,
1994
2134
  min: t.min,
1995
2135
  max: t.max,
1996
2136
  step: t.step,
1997
- onChange: m
2137
+ onChange: p
1998
2138
  }
1999
2139
  )
2000
2140
  ] }),
2001
2141
  t.type === "color" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2002
- /* @__PURE__ */ c.jsx("input", { type: "text", value: i.toString(), onChange: m, className: "color" }),
2003
- /* @__PURE__ */ c.jsx("input", { type: "color", value: i, onChange: m })
2142
+ /* @__PURE__ */ c.jsx("input", { type: "text", value: a.toString(), onChange: p, className: "color" }),
2143
+ /* @__PURE__ */ c.jsx("input", { type: "color", value: a, onChange: p })
2004
2144
  ] }),
2005
2145
  t.type === "button" && /* @__PURE__ */ c.jsx(
2006
2146
  "button",
@@ -2011,14 +2151,14 @@ function nt(t) {
2011
2151
  children: t.title
2012
2152
  }
2013
2153
  ),
2014
- t.type === "image" && /* @__PURE__ */ c.jsx("img", { ref: h, onClick: () => {
2015
- Si().then((v) => {
2016
- h.current.src = v, t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, v);
2154
+ t.type === "image" && /* @__PURE__ */ c.jsx("img", { ref: f, onClick: () => {
2155
+ La().then((v) => {
2156
+ f.current.src = v, t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, v);
2017
2157
  });
2018
- }, src: i.length > 0 ? i : Ei })
2158
+ }, src: a.length > 0 ? a : Aa })
2019
2159
  ] });
2020
2160
  }
2021
- function Kt(t) {
2161
+ function Jt(t) {
2022
2162
  switch (t) {
2023
2163
  case "fov":
2024
2164
  return "FOV";
@@ -2047,71 +2187,71 @@ function Kt(t) {
2047
2187
  }
2048
2188
  return t;
2049
2189
  }
2050
- function Ti(t, n) {
2051
- const i = [];
2190
+ function Ua(t, n) {
2191
+ const a = [];
2052
2192
  if (t.perspectiveCameraInfo !== void 0)
2053
2193
  for (const e in t.perspectiveCameraInfo)
2054
- i.push({
2055
- title: Kt(e),
2194
+ a.push({
2195
+ title: Jt(e),
2056
2196
  prop: e,
2057
2197
  type: "number",
2058
2198
  step: 0.01,
2059
2199
  value: t.perspectiveCameraInfo[e],
2060
- onChange: (a, s) => {
2200
+ onChange: (r, s) => {
2061
2201
  var l;
2062
- n.updateObject(t.uuid, a, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2063
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2064
- h !== void 0 && (J(h, a, s), h.updateProjectionMatrix());
2202
+ n.updateObject(t.uuid, r, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2203
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2204
+ f !== void 0 && (Q(f, r, s), f.updateProjectionMatrix());
2065
2205
  }
2066
2206
  });
2067
2207
  else if (t.orthographicCameraInfo !== void 0)
2068
2208
  for (const e in t.orthographicCameraInfo)
2069
- i.push({
2070
- title: Kt(e),
2209
+ a.push({
2210
+ title: Jt(e),
2071
2211
  prop: e,
2072
2212
  type: "number",
2073
2213
  step: 0.01,
2074
2214
  value: t.perspectiveCameraInfo[e],
2075
- onChange: (a, s) => {
2215
+ onChange: (r, s) => {
2076
2216
  var l;
2077
- n.updateObject(t.uuid, a, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2078
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2079
- h !== void 0 && (J(h, a, s), h.updateProjectionMatrix());
2217
+ n.updateObject(t.uuid, r, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2218
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2219
+ f !== void 0 && (Q(f, r, s), f.updateProjectionMatrix());
2080
2220
  }
2081
2221
  });
2082
2222
  return /* @__PURE__ */ c.jsx(
2083
- Le,
2223
+ Ue,
2084
2224
  {
2085
2225
  title: "Camera",
2086
- items: i
2226
+ items: a
2087
2227
  }
2088
2228
  );
2089
2229
  }
2090
- const Mi = Math.PI / 180, Ri = 180 / Math.PI;
2091
- function We(t, n, i, e, a) {
2092
- return e + (t - n) * (a - e) / (i - n);
2230
+ const Ba = Math.PI / 180, $a = 180 / Math.PI;
2231
+ function Ke(t, n, a, e, r) {
2232
+ return e + (t - n) * (r - e) / (a - n);
2093
2233
  }
2094
- function Pi(t) {
2095
- return t * Mi;
2234
+ function Ga(t) {
2235
+ return t * Ba;
2096
2236
  }
2097
- function Pt(t) {
2098
- return t * Ri;
2237
+ function kt(t) {
2238
+ return t * $a;
2099
2239
  }
2100
- function ji(t, n) {
2101
- const i = new kn();
2102
- i.elements = t.matrix;
2103
- const e = new G(), a = new An(), s = new G();
2104
- t.uuid.length > 0 && (e.setFromMatrixPosition(i), a.setFromRotationMatrix(i), s.setFromMatrixScale(i));
2105
- const h = (d, m) => {
2240
+ function Va(t, n) {
2241
+ const a = new Fn();
2242
+ a.elements = t.matrix;
2243
+ const e = new Y(), r = new Un(), s = new Y();
2244
+ t.uuid.length > 0 && (e.setFromMatrixPosition(a), r.setFromRotationMatrix(a), s.setFromMatrixScale(a));
2245
+ const f = (u, p) => {
2106
2246
  var E;
2107
- n.updateObject(t.uuid, d, m);
2247
+ n.updateObject(t.uuid, u, p);
2108
2248
  const v = (E = n.scene) == null ? void 0 : E.getObjectByProperty("uuid", t.uuid);
2109
- v !== void 0 && J(v, d, m);
2110
- }, l = (d, m) => {
2111
- h(d, Pi(m));
2249
+ v !== void 0 && Q(v, u, p);
2250
+ }, l = (u, p) => {
2251
+ f(u, Ga(p));
2112
2252
  };
2113
2253
  return /* @__PURE__ */ c.jsx(
2114
- Le,
2254
+ Ue,
2115
2255
  {
2116
2256
  title: "Transform",
2117
2257
  items: [
@@ -2120,27 +2260,27 @@ function ji(t, n) {
2120
2260
  prop: "position.x",
2121
2261
  type: "number",
2122
2262
  value: e.x,
2123
- onChange: h
2263
+ onChange: f
2124
2264
  },
2125
2265
  {
2126
2266
  title: "Position Y",
2127
2267
  prop: "position.y",
2128
2268
  type: "number",
2129
2269
  value: e.y,
2130
- onChange: h
2270
+ onChange: f
2131
2271
  },
2132
2272
  {
2133
2273
  title: "Position Z",
2134
2274
  prop: "position.z",
2135
2275
  type: "number",
2136
2276
  value: e.z,
2137
- onChange: h
2277
+ onChange: f
2138
2278
  },
2139
2279
  {
2140
2280
  title: "Rotation X",
2141
2281
  prop: "rotation.x",
2142
2282
  type: "number",
2143
- value: Mt(Pt(a.x)),
2283
+ value: _t(kt(r.x)),
2144
2284
  min: -360,
2145
2285
  max: 360,
2146
2286
  step: 0.1,
@@ -2150,7 +2290,7 @@ function ji(t, n) {
2150
2290
  title: "Rotation Y",
2151
2291
  prop: "rotation.y",
2152
2292
  type: "number",
2153
- value: Mt(Pt(a.y)),
2293
+ value: _t(kt(r.y)),
2154
2294
  min: -360,
2155
2295
  max: 360,
2156
2296
  step: 0.1,
@@ -2160,7 +2300,7 @@ function ji(t, n) {
2160
2300
  title: "Rotation Z",
2161
2301
  prop: "rotation.z",
2162
2302
  type: "number",
2163
- value: Mt(Pt(a.z)),
2303
+ value: _t(kt(r.z)),
2164
2304
  min: -360,
2165
2305
  max: 360,
2166
2306
  step: 0.1,
@@ -2172,7 +2312,7 @@ function ji(t, n) {
2172
2312
  type: "number",
2173
2313
  value: s.x,
2174
2314
  step: 0.01,
2175
- onChange: h
2315
+ onChange: f
2176
2316
  },
2177
2317
  {
2178
2318
  title: "Scale Y",
@@ -2180,7 +2320,7 @@ function ji(t, n) {
2180
2320
  type: "number",
2181
2321
  value: s.y,
2182
2322
  step: 0.01,
2183
- onChange: h
2323
+ onChange: f
2184
2324
  },
2185
2325
  {
2186
2326
  title: "Scale Z",
@@ -2188,13 +2328,13 @@ function ji(t, n) {
2188
2328
  type: "number",
2189
2329
  value: s.z,
2190
2330
  step: 0.01,
2191
- onChange: h
2331
+ onChange: f
2192
2332
  }
2193
2333
  ]
2194
2334
  }
2195
2335
  );
2196
2336
  }
2197
- function Xt(t) {
2337
+ function Qt(t) {
2198
2338
  switch (t) {
2199
2339
  case "color":
2200
2340
  return "Color";
@@ -2213,88 +2353,88 @@ function Xt(t) {
2213
2353
  }
2214
2354
  return t;
2215
2355
  }
2216
- function _i(t, n) {
2217
- const i = [];
2356
+ function za(t, n) {
2357
+ const a = [];
2218
2358
  if (t.lightInfo !== void 0)
2219
2359
  for (const e in t.lightInfo) {
2220
- const a = t.lightInfo[e];
2221
- a !== void 0 && (a.isColor !== void 0 ? i.push({
2222
- title: Xt(e),
2360
+ const r = t.lightInfo[e];
2361
+ r !== void 0 && (r.isColor !== void 0 ? a.push({
2362
+ title: Qt(e),
2223
2363
  prop: e,
2224
2364
  type: "color",
2225
- value: a,
2226
- onChange: (s, h) => {
2227
- var m;
2228
- const l = new It(h);
2365
+ value: r,
2366
+ onChange: (s, f) => {
2367
+ var p;
2368
+ const l = new Ft(f);
2229
2369
  n.updateObject(t.uuid, s, l);
2230
- const d = (m = n.scene) == null ? void 0 : m.getObjectByProperty("uuid", t.uuid);
2231
- d !== void 0 && J(d, s, l);
2370
+ const u = (p = n.scene) == null ? void 0 : p.getObjectByProperty("uuid", t.uuid);
2371
+ u !== void 0 && Q(u, s, l);
2232
2372
  }
2233
- }) : i.push({
2234
- title: Xt(e),
2373
+ }) : a.push({
2374
+ title: Qt(e),
2235
2375
  prop: e,
2236
- type: typeof a,
2237
- value: a,
2238
- step: typeof a == "number" ? 0.01 : void 0,
2239
- onChange: (s, h) => {
2240
- var d;
2241
- n.updateObject(t.uuid, s, h);
2242
- const l = (d = n.scene) == null ? void 0 : d.getObjectByProperty("uuid", t.uuid);
2243
- l !== void 0 && J(l, s, h);
2376
+ type: typeof r,
2377
+ value: r,
2378
+ step: typeof r == "number" ? 0.01 : void 0,
2379
+ onChange: (s, f) => {
2380
+ var u;
2381
+ n.updateObject(t.uuid, s, f);
2382
+ const l = (u = n.scene) == null ? void 0 : u.getObjectByProperty("uuid", t.uuid);
2383
+ l !== void 0 && Q(l, s, f);
2244
2384
  }
2245
2385
  }));
2246
2386
  }
2247
2387
  return /* @__PURE__ */ c.jsx(
2248
- Le,
2388
+ Ue,
2249
2389
  {
2250
2390
  title: "Light",
2251
- items: i
2391
+ items: a
2252
2392
  }
2253
2393
  );
2254
2394
  }
2255
- function Di(t, n) {
2256
- const i = [];
2395
+ function Ya(t, n) {
2396
+ const a = [];
2257
2397
  return t.animations.forEach((e) => {
2258
- i.push({
2398
+ a.push({
2259
2399
  title: "Name",
2260
2400
  type: "string",
2261
2401
  prop: "name",
2262
2402
  value: e.name,
2263
2403
  disabled: !0,
2264
- onChange: (a, s) => {
2404
+ onChange: (r, s) => {
2265
2405
  var l;
2266
- n.updateObject(t.uuid, a, s);
2267
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2268
- h !== void 0 && J(h, a, s);
2406
+ n.updateObject(t.uuid, r, s);
2407
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2408
+ f !== void 0 && Q(f, r, s);
2269
2409
  }
2270
- }), i.push({
2410
+ }), a.push({
2271
2411
  title: "Duration",
2272
2412
  type: "number",
2273
2413
  prop: "duration",
2274
2414
  value: e.duration,
2275
2415
  disabled: !0,
2276
- onChange: (a, s) => {
2416
+ onChange: (r, s) => {
2277
2417
  var l;
2278
- n.updateObject(t.uuid, a, s);
2279
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2280
- h !== void 0 && J(h, a, s);
2418
+ n.updateObject(t.uuid, r, s);
2419
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2420
+ f !== void 0 && Q(f, r, s);
2281
2421
  }
2282
- }), i.push({
2422
+ }), a.push({
2283
2423
  title: "Blend Mode",
2284
2424
  type: "number",
2285
2425
  prop: "blendMode",
2286
2426
  value: e.blendMode,
2287
2427
  disabled: !0,
2288
- onChange: (a, s) => {
2428
+ onChange: (r, s) => {
2289
2429
  var l;
2290
- n.updateObject(t.uuid, a, s);
2291
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2292
- h !== void 0 && J(h, a, s);
2430
+ n.updateObject(t.uuid, r, s);
2431
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2432
+ f !== void 0 && Q(f, r, s);
2293
2433
  }
2294
2434
  });
2295
- }), /* @__PURE__ */ c.jsx(Le, { title: "Animations", items: i });
2435
+ }), /* @__PURE__ */ c.jsx(Ue, { title: "Animations", items: a });
2296
2436
  }
2297
- const Zt = {
2437
+ const xn = {
2298
2438
  name: "",
2299
2439
  uuid: "",
2300
2440
  type: "",
@@ -2306,101 +2446,101 @@ const Zt = {
2306
2446
  orthographicCameraInfo: void 0,
2307
2447
  lightInfo: void 0
2308
2448
  };
2309
- function ki(t) {
2310
- const [n, i] = ae(Zt);
2311
- Ne(() => {
2312
- function a(h) {
2313
- const l = h.value;
2314
- i(l);
2449
+ let ae = { ...xn };
2450
+ function Wa(t) {
2451
+ const [n, a] = oe(-1);
2452
+ Fe(() => {
2453
+ function r(f) {
2454
+ ae = { ...f.value }, a(Date.now());
2315
2455
  }
2316
2456
  function s() {
2317
- i(Zt);
2457
+ ae = { ...xn }, a(Date.now());
2318
2458
  }
2319
- return z.addEventListener(Y.SET_SCENE, s), z.addEventListener(Y.SET_OBJECT, a), () => {
2320
- z.removeEventListener(Y.SET_SCENE, s), z.removeEventListener(Y.SET_OBJECT, a);
2459
+ return _.addEventListener(j.SET_SCENE, s), _.addEventListener(j.SET_OBJECT, r), () => {
2460
+ _.removeEventListener(j.SET_SCENE, s), _.removeEventListener(j.SET_OBJECT, r);
2321
2461
  };
2322
2462
  }, []);
2323
- const e = n.type.toLowerCase();
2324
- return /* @__PURE__ */ c.jsx(Nt, { label: "Inspector", children: /* @__PURE__ */ c.jsx("div", { id: "Inspector", className: t.class, children: n.uuid.length > 0 && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2463
+ const e = ae.type.toLowerCase();
2464
+ return /* @__PURE__ */ c.jsx(Bt, { label: "Inspector", children: /* @__PURE__ */ c.jsx("div", { id: "Inspector", className: t.class, children: ae.uuid.length > 0 && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2325
2465
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2326
2466
  /* @__PURE__ */ c.jsx(
2327
- nt,
2467
+ it,
2328
2468
  {
2329
2469
  type: "string",
2330
2470
  title: "Name",
2331
2471
  prop: "name",
2332
- value: n.name,
2472
+ value: ae.name,
2333
2473
  disabled: !0
2334
2474
  }
2335
2475
  ),
2336
2476
  /* @__PURE__ */ c.jsx(
2337
- nt,
2477
+ it,
2338
2478
  {
2339
2479
  type: "string",
2340
2480
  title: "Type",
2341
2481
  prop: "type",
2342
- value: n.type,
2482
+ value: ae.type,
2343
2483
  disabled: !0
2344
2484
  }
2345
2485
  ),
2346
2486
  /* @__PURE__ */ c.jsx(
2347
- nt,
2487
+ it,
2348
2488
  {
2349
2489
  type: "string",
2350
2490
  title: "UUID",
2351
2491
  prop: "uuid",
2352
- value: n.uuid,
2492
+ value: ae.uuid,
2353
2493
  disabled: !0
2354
2494
  }
2355
2495
  ),
2356
2496
  /* @__PURE__ */ c.jsx(
2357
- nt,
2497
+ it,
2358
2498
  {
2359
2499
  type: "boolean",
2360
2500
  title: "Visible",
2361
2501
  prop: "visible",
2362
- value: n.visible,
2363
- onChange: (a, s) => {
2502
+ value: ae.visible,
2503
+ onChange: (r, s) => {
2364
2504
  var l;
2365
- t.three.updateObject(n.uuid, a, s);
2366
- const h = (l = t.three.scene) == null ? void 0 : l.getObjectByProperty("uuid", n.uuid);
2367
- h !== void 0 && J(h, a, s);
2505
+ t.three.updateObject(ae.uuid, r, s);
2506
+ const f = (l = t.three.scene) == null ? void 0 : l.getObjectByProperty("uuid", ae.uuid);
2507
+ f !== void 0 && Q(f, r, s);
2368
2508
  }
2369
2509
  }
2370
2510
  )
2371
2511
  ] }),
2372
2512
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2373
- ji(n, t.three),
2374
- n.animations.length > 0 ? Di(n, t.three) : null,
2375
- e.search("camera") > -1 ? Ti(n, t.three) : null,
2376
- e.search("light") > -1 ? _i(n, t.three) : null,
2377
- e.search("mesh") > -1 ? Oi(n, t.three) : null
2513
+ Va(ae, t.three),
2514
+ ae.animations.length > 0 ? Ya(ae, t.three) : null,
2515
+ e.search("camera") > -1 ? Ua(ae, t.three) : null,
2516
+ e.search("light") > -1 ? za(ae, t.three) : null,
2517
+ e.search("mesh") > -1 ? Fa(ae, t.three) : null
2378
2518
  ] })
2379
- ] }) }) }, "Inspector");
2519
+ ] }) }, n) }, "Inspector");
2380
2520
  }
2381
- class ir extends Kn {
2382
- constructor(i) {
2383
- super(i);
2384
- q(this, "three");
2521
+ class fi extends Qn {
2522
+ constructor(a) {
2523
+ super(a);
2524
+ Z(this, "three");
2385
2525
  // Private
2386
- q(this, "setScene", (i) => {
2526
+ Z(this, "setScene", (a) => {
2387
2527
  this.setState(() => ({
2388
- scene: i.value
2528
+ scene: a.value
2389
2529
  }));
2390
2530
  });
2391
2531
  this.state = {
2392
- scene: i.scene !== void 0 ? i.scene : null
2393
- }, this.three = i.three, z.addEventListener(Y.SET_SCENE, this.setScene);
2532
+ scene: a.scene !== void 0 ? a.scene : null
2533
+ }, this.three = a.three, _.addEventListener(j.SET_SCENE, this.setScene);
2394
2534
  }
2395
2535
  componentWillUnmount() {
2396
- z.removeEventListener(Y.SET_SCENE, this.setScene);
2536
+ _.removeEventListener(j.SET_SCENE, this.setScene);
2397
2537
  }
2398
2538
  render() {
2399
- var a;
2400
- const i = this.componentState.scene !== null, e = "Hierarchy - " + (i ? `${(a = this.componentState.scene) == null ? void 0 : a.name}` : "No Scene");
2539
+ var r;
2540
+ const a = this.componentState.scene !== null, e = "Hierarchy - " + (a ? `${(r = this.componentState.scene) == null ? void 0 : r.name}` : "No Scene");
2401
2541
  return /* @__PURE__ */ c.jsx("div", { id: "SidePanel", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2402
- /* @__PURE__ */ c.jsx(Nt, { label: e, open: !0, children: /* @__PURE__ */ c.jsx(c.Fragment, { children: i && /* @__PURE__ */ c.jsx(yi, { child: this.componentState.scene, three: this.three }) }) }),
2403
- /* @__PURE__ */ c.jsx(ki, { three: this.three })
2542
+ /* @__PURE__ */ c.jsx(Bt, { label: e, open: !0, children: /* @__PURE__ */ c.jsx(c.Fragment, { children: a && /* @__PURE__ */ c.jsx(ka, { child: this.componentState.scene, three: this.three }) }) }),
2543
+ /* @__PURE__ */ c.jsx(Wa, { three: this.three })
2404
2544
  ] }) }, "SidePanel");
2405
2545
  }
2406
2546
  // Getters / Setters
@@ -2408,98 +2548,98 @@ class ir extends Kn {
2408
2548
  return this.state;
2409
2549
  }
2410
2550
  }
2411
- function rr(t) {
2551
+ function hi(t) {
2412
2552
  function n() {
2413
2553
  return t.three.scene === void 0 ? (console.log("No scene:", t.three), !1) : !0;
2414
2554
  }
2415
- const i = (l) => {
2416
- var m;
2555
+ const a = (l) => {
2556
+ var p;
2417
2557
  if (!n())
2418
2558
  return;
2419
- const d = (m = t.three.scene) == null ? void 0 : m.getObjectByProperty("uuid", l.value);
2420
- d !== void 0 && t.three.setObject(d);
2421
- }, e = (l, d, m) => {
2559
+ const u = (p = t.three.scene) == null ? void 0 : p.getObjectByProperty("uuid", l.value);
2560
+ u !== void 0 && t.three.setObject(u);
2561
+ }, e = (l, u, p) => {
2422
2562
  var E;
2423
2563
  if (!n())
2424
2564
  return;
2425
2565
  const v = (E = t.three.scene) == null ? void 0 : E.getObjectByProperty("uuid", l);
2426
- v !== void 0 && J(v, d, m);
2427
- }, a = (l) => {
2566
+ v !== void 0 && Q(v, u, p);
2567
+ }, r = (l) => {
2428
2568
  if (!n())
2429
2569
  return;
2430
- const d = l.value, { key: m, value: v, uuid: E } = d;
2431
- e(E, m, v);
2570
+ const u = l.value, { key: p, value: v, uuid: E } = u;
2571
+ e(E, p, v);
2432
2572
  }, s = (l) => {
2433
2573
  if (!n())
2434
2574
  return;
2435
- const d = l.value;
2436
- kt(d.value).then((m) => {
2437
- e(d.uuid, d.key, m), e(d.uuid, "material.needsUpdate", !0);
2575
+ const u = l.value;
2576
+ Nt(u.value).then((p) => {
2577
+ e(u.uuid, u.key, p), e(u.uuid, "material.needsUpdate", !0);
2438
2578
  });
2439
- }, h = (l) => {
2440
- var x;
2579
+ }, f = (l) => {
2580
+ var w;
2441
2581
  if (!n())
2442
2582
  return;
2443
- const { key: d, uuid: m, value: v } = l.value, E = (x = t.three.scene) == null ? void 0 : x.getObjectByProperty("uuid", m);
2583
+ const { key: u, uuid: p, value: v } = l.value, E = (w = t.three.scene) == null ? void 0 : w.getObjectByProperty("uuid", p);
2444
2584
  if (E !== void 0)
2445
2585
  try {
2446
- E[d](v);
2586
+ E[u](v);
2447
2587
  } catch (R) {
2448
- console.log("Error requesting method:"), console.log(R), console.log(d), console.log(v);
2588
+ console.log("Error requesting method:"), console.log(R), console.log(u), console.log(v);
2449
2589
  }
2450
2590
  };
2451
- return Ne(() => (z.addEventListener(Y.GET_OBJECT, i), z.addEventListener(Y.UPDATE_OBJECT, a), z.addEventListener(Y.CREATE_TEXTURE, s), z.addEventListener(Y.REQUEST_METHOD, h), () => {
2452
- z.removeEventListener(Y.GET_OBJECT, i), z.removeEventListener(Y.UPDATE_OBJECT, a), z.removeEventListener(Y.CREATE_TEXTURE, s), z.removeEventListener(Y.REQUEST_METHOD, h);
2591
+ return Fe(() => (_.addEventListener(j.GET_OBJECT, a), _.addEventListener(j.UPDATE_OBJECT, r), _.addEventListener(j.CREATE_TEXTURE, s), _.addEventListener(j.REQUEST_METHOD, f), () => {
2592
+ _.removeEventListener(j.GET_OBJECT, a), _.removeEventListener(j.UPDATE_OBJECT, r), _.removeEventListener(j.CREATE_TEXTURE, s), _.removeEventListener(j.REQUEST_METHOD, f);
2453
2593
  }), []), null;
2454
2594
  }
2455
- const qt = { type: "change" }, jt = { type: "start" }, Qt = { type: "end" }, gt = new In(), Jt = new Nn(), Ai = Math.cos(70 * Ln.DEG2RAD);
2456
- class Ii extends rn {
2457
- constructor(n, i) {
2458
- super(), this.object = n, this.domElement = i, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new G(), this.cursor = new G(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: ze.ROTATE, MIDDLE: ze.DOLLY, RIGHT: ze.PAN }, this.touches = { ONE: Ye.ROTATE, TWO: Ye.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
2595
+ const en = { type: "change" }, At = { type: "start" }, tn = { type: "end" }, yt = new Bn(), nn = new $n(), Ha = Math.cos(70 * Gn.DEG2RAD);
2596
+ class Ka extends sn {
2597
+ constructor(n, a) {
2598
+ super(), this.object = n, this.domElement = a, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new Y(), this.cursor = new Y(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: We.ROTATE, MIDDLE: We.DOLLY, RIGHT: We.PAN }, this.touches = { ONE: He.ROTATE, TWO: He.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
2459
2599
  return l.phi;
2460
2600
  }, this.getAzimuthalAngle = function() {
2461
2601
  return l.theta;
2462
2602
  }, this.getDistance = function() {
2463
2603
  return this.object.position.distanceTo(this.target);
2464
2604
  }, this.listenToKeyEvents = function(o) {
2465
- o.addEventListener("keydown", Qe), this._domElementKeyEvents = o;
2605
+ o.addEventListener("keydown", et), this._domElementKeyEvents = o;
2466
2606
  }, this.stopListenToKeyEvents = function() {
2467
- this._domElementKeyEvents.removeEventListener("keydown", Qe), this._domElementKeyEvents = null;
2607
+ this._domElementKeyEvents.removeEventListener("keydown", et), this._domElementKeyEvents = null;
2468
2608
  }, this.saveState = function() {
2469
2609
  e.target0.copy(e.target), e.position0.copy(e.object.position), e.zoom0 = e.object.zoom;
2470
2610
  }, this.reset = function() {
2471
- e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(qt), e.update(), s = a.NONE;
2611
+ e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(en), e.update(), s = r.NONE;
2472
2612
  }, this.update = function() {
2473
- const o = new G(), y = new Vt().setFromUnitVectors(n.up, new G(0, 1, 0)), _ = y.clone().invert(), A = new G(), te = new Vt(), ve = new G(), le = 2 * Math.PI;
2474
- return function(mt = null) {
2475
- const be = e.object.position;
2476
- o.copy(be).sub(e.target), o.applyQuaternion(y), l.setFromVector3(o), e.autoRotate && s === a.NONE && F(b(mt)), e.enableDamping ? (l.theta += d.theta * e.dampingFactor, l.phi += d.phi * e.dampingFactor) : (l.theta += d.theta, l.phi += d.phi);
2477
- let fe = e.minAzimuthAngle, he = e.maxAzimuthAngle;
2478
- isFinite(fe) && isFinite(he) && (fe < -Math.PI ? fe += le : fe > Math.PI && (fe -= le), he < -Math.PI ? he += le : he > Math.PI && (he -= le), fe <= he ? l.theta = Math.max(fe, Math.min(he, l.theta)) : l.theta = l.theta > (fe + he) / 2 ? Math.max(fe, l.theta) : Math.min(he, l.theta)), l.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, l.phi)), l.makeSafe(), e.enableDamping === !0 ? e.target.addScaledVector(v, e.dampingFactor) : e.target.add(v), e.target.sub(e.cursor), e.target.clampLength(e.minTargetRadius, e.maxTargetRadius), e.target.add(e.cursor), e.zoomToCursor && ee || e.object.isOrthographicCamera ? l.radius = X(l.radius) : l.radius = X(l.radius * m), o.setFromSpherical(l), o.applyQuaternion(_), be.copy(e.target).add(o), e.object.lookAt(e.target), e.enableDamping === !0 ? (d.theta *= 1 - e.dampingFactor, d.phi *= 1 - e.dampingFactor, v.multiplyScalar(1 - e.dampingFactor)) : (d.set(0, 0, 0), v.set(0, 0, 0));
2479
- let $e = !1;
2613
+ const o = new Y(), y = new Wt().setFromUnitVectors(n.up, new Y(0, 1, 0)), A = y.clone().invert(), N = new Y(), te = new Wt(), be = new Y(), ue = 2 * Math.PI;
2614
+ return function(bt = null) {
2615
+ const ye = e.object.position;
2616
+ o.copy(ye).sub(e.target), o.applyQuaternion(y), l.setFromVector3(o), e.autoRotate && s === r.NONE && B(b(bt)), e.enableDamping ? (l.theta += u.theta * e.dampingFactor, l.phi += u.phi * e.dampingFactor) : (l.theta += u.theta, l.phi += u.phi);
2617
+ let he = e.minAzimuthAngle, pe = e.maxAzimuthAngle;
2618
+ isFinite(he) && isFinite(pe) && (he < -Math.PI ? he += ue : he > Math.PI && (he -= ue), pe < -Math.PI ? pe += ue : pe > Math.PI && (pe -= ue), he <= pe ? l.theta = Math.max(he, Math.min(pe, l.theta)) : l.theta = l.theta > (he + pe) / 2 ? Math.max(he, l.theta) : Math.min(pe, l.theta)), l.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, l.phi)), l.makeSafe(), e.enableDamping === !0 ? e.target.addScaledVector(v, e.dampingFactor) : e.target.add(v), e.target.sub(e.cursor), e.target.clampLength(e.minTargetRadius, e.maxTargetRadius), e.target.add(e.cursor), e.zoomToCursor && ee || e.object.isOrthographicCamera ? l.radius = X(l.radius) : l.radius = X(l.radius * p), o.setFromSpherical(l), o.applyQuaternion(A), ye.copy(e.target).add(o), e.object.lookAt(e.target), e.enableDamping === !0 ? (u.theta *= 1 - e.dampingFactor, u.phi *= 1 - e.dampingFactor, v.multiplyScalar(1 - e.dampingFactor)) : (u.set(0, 0, 0), v.set(0, 0, 0));
2619
+ let Ve = !1;
2480
2620
  if (e.zoomToCursor && ee) {
2481
- let _e = null;
2621
+ let Ae = null;
2482
2622
  if (e.object.isPerspectiveCamera) {
2483
- const Oe = o.length();
2484
- _e = X(Oe * m);
2485
- const Ve = Oe - _e;
2486
- e.object.position.addScaledVector(de, Ve), e.object.updateMatrixWorld();
2623
+ const Te = o.length();
2624
+ Ae = X(Te * p);
2625
+ const ze = Te - Ae;
2626
+ e.object.position.addScaledVector(fe, ze), e.object.updateMatrixWorld();
2487
2627
  } else if (e.object.isOrthographicCamera) {
2488
- const Oe = new G(ce.x, ce.y, 0);
2489
- Oe.unproject(e.object), e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / m)), e.object.updateProjectionMatrix(), $e = !0;
2490
- const Ve = new G(ce.x, ce.y, 0);
2491
- Ve.unproject(e.object), e.object.position.sub(Ve).add(Oe), e.object.updateMatrixWorld(), _e = o.length();
2628
+ const Te = new Y(le.x, le.y, 0);
2629
+ Te.unproject(e.object), e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / p)), e.object.updateProjectionMatrix(), Ve = !0;
2630
+ const ze = new Y(le.x, le.y, 0);
2631
+ ze.unproject(e.object), e.object.position.sub(ze).add(Te), e.object.updateMatrixWorld(), Ae = o.length();
2492
2632
  } else
2493
2633
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), e.zoomToCursor = !1;
2494
- _e !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(_e).add(e.object.position) : (gt.origin.copy(e.object.position), gt.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(gt.direction)) < Ai ? n.lookAt(e.target) : (Jt.setFromNormalAndCoplanarPoint(e.object.up, e.target), gt.intersectPlane(Jt, e.target))));
2634
+ Ae !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(Ae).add(e.object.position) : (yt.origin.copy(e.object.position), yt.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(yt.direction)) < Ha ? n.lookAt(e.target) : (nn.setFromNormalAndCoplanarPoint(e.object.up, e.target), yt.intersectPlane(nn, e.target))));
2495
2635
  } else
2496
- e.object.isOrthographicCamera && (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / m)), e.object.updateProjectionMatrix(), $e = !0);
2497
- return m = 1, ee = !1, $e || A.distanceToSquared(e.object.position) > h || 8 * (1 - te.dot(e.object.quaternion)) > h || ve.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(qt), A.copy(e.object.position), te.copy(e.object.quaternion), ve.copy(e.target), !0) : !1;
2636
+ e.object.isOrthographicCamera && (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / p)), e.object.updateProjectionMatrix(), Ve = !0);
2637
+ return p = 1, ee = !1, Ve || N.distanceToSquared(e.object.position) > f || 8 * (1 - te.dot(e.object.quaternion)) > f || be.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(en), N.copy(e.object.position), te.copy(e.object.quaternion), be.copy(e.target), !0) : !1;
2498
2638
  };
2499
2639
  }(), this.dispose = function() {
2500
- e.domElement.removeEventListener("contextmenu", Se), e.domElement.removeEventListener("pointerdown", Ze), e.domElement.removeEventListener("pointercancel", je), e.domElement.removeEventListener("wheel", ut), e.domElement.removeEventListener("pointermove", Ce), e.domElement.removeEventListener("pointerup", je), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", Qe), e._domElementKeyEvents = null);
2640
+ e.domElement.removeEventListener("contextmenu", Oe), e.domElement.removeEventListener("pointerdown", Je), e.domElement.removeEventListener("pointercancel", ke), e.domElement.removeEventListener("wheel", ht), e.domElement.removeEventListener("pointermove", Se), e.domElement.removeEventListener("pointerup", ke), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", et), e._domElementKeyEvents = null);
2501
2641
  };
2502
- const e = this, a = {
2642
+ const e = this, r = {
2503
2643
  NONE: -1,
2504
2644
  ROTATE: 0,
2505
2645
  DOLLY: 1,
@@ -2509,12 +2649,12 @@ class Ii extends rn {
2509
2649
  TOUCH_DOLLY_PAN: 5,
2510
2650
  TOUCH_DOLLY_ROTATE: 6
2511
2651
  };
2512
- let s = a.NONE;
2513
- const h = 1e-6, l = new Gt(), d = new Gt();
2514
- let m = 1;
2515
- const v = new G(), E = new ue(), x = new ue(), R = new ue(), T = new ue(), B = new ue(), oe = new ue(), H = new ue(), C = new ue(), K = new ue(), de = new G(), ce = new ue();
2652
+ let s = r.NONE;
2653
+ const f = 1e-6, l = new Ht(), u = new Ht();
2654
+ let p = 1;
2655
+ const v = new Y(), E = new de(), w = new de(), R = new de(), T = new de(), G = new de(), se = new de(), H = new de(), C = new de(), K = new de(), fe = new Y(), le = new de();
2516
2656
  let ee = !1;
2517
- const u = [], p = {};
2657
+ const d = [], m = {};
2518
2658
  function b(o) {
2519
2659
  return o !== null ? 2 * Math.PI / 60 * e.autoRotateSpeed * o : 2 * Math.PI / 60 / 60 * e.autoRotateSpeed;
2520
2660
  }
@@ -2522,160 +2662,160 @@ class Ii extends rn {
2522
2662
  const y = Math.abs(o) / (100 * (window.devicePixelRatio | 0));
2523
2663
  return Math.pow(0.95, e.zoomSpeed * y);
2524
2664
  }
2525
- function F(o) {
2526
- d.theta -= o;
2665
+ function B(o) {
2666
+ u.theta -= o;
2527
2667
  }
2528
- function U(o) {
2529
- d.phi -= o;
2668
+ function $(o) {
2669
+ u.phi -= o;
2530
2670
  }
2531
- const N = function() {
2532
- const o = new G();
2533
- return function(_, A) {
2534
- o.setFromMatrixColumn(A, 0), o.multiplyScalar(-_), v.add(o);
2671
+ const F = function() {
2672
+ const o = new Y();
2673
+ return function(A, N) {
2674
+ o.setFromMatrixColumn(N, 0), o.multiplyScalar(-A), v.add(o);
2535
2675
  };
2536
2676
  }(), D = function() {
2537
- const o = new G();
2538
- return function(_, A) {
2539
- e.screenSpacePanning === !0 ? o.setFromMatrixColumn(A, 1) : (o.setFromMatrixColumn(A, 0), o.crossVectors(e.object.up, o)), o.multiplyScalar(_), v.add(o);
2677
+ const o = new Y();
2678
+ return function(A, N) {
2679
+ e.screenSpacePanning === !0 ? o.setFromMatrixColumn(N, 1) : (o.setFromMatrixColumn(N, 0), o.crossVectors(e.object.up, o)), o.multiplyScalar(A), v.add(o);
2540
2680
  };
2541
- }(), L = function() {
2542
- const o = new G();
2543
- return function(_, A) {
2681
+ }(), U = function() {
2682
+ const o = new Y();
2683
+ return function(A, N) {
2544
2684
  const te = e.domElement;
2545
2685
  if (e.object.isPerspectiveCamera) {
2546
- const ve = e.object.position;
2547
- o.copy(ve).sub(e.target);
2548
- let le = o.length();
2549
- le *= Math.tan(e.object.fov / 2 * Math.PI / 180), N(2 * _ * le / te.clientHeight, e.object.matrix), D(2 * A * le / te.clientHeight, e.object.matrix);
2686
+ const be = e.object.position;
2687
+ o.copy(be).sub(e.target);
2688
+ let ue = o.length();
2689
+ ue *= Math.tan(e.object.fov / 2 * Math.PI / 180), F(2 * A * ue / te.clientHeight, e.object.matrix), D(2 * N * ue / te.clientHeight, e.object.matrix);
2550
2690
  } else
2551
- e.object.isOrthographicCamera ? (N(_ * (e.object.right - e.object.left) / e.object.zoom / te.clientWidth, e.object.matrix), D(A * (e.object.top - e.object.bottom) / e.object.zoom / te.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
2691
+ e.object.isOrthographicCamera ? (F(A * (e.object.right - e.object.left) / e.object.zoom / te.clientWidth, e.object.matrix), D(N * (e.object.top - e.object.bottom) / e.object.zoom / te.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
2552
2692
  };
2553
2693
  }();
2554
- function Q(o) {
2555
- e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? m /= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2694
+ function J(o) {
2695
+ e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? p /= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2556
2696
  }
2557
2697
  function M(o) {
2558
- e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? m *= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2698
+ e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? p *= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2559
2699
  }
2560
- function k(o, y) {
2700
+ function I(o, y) {
2561
2701
  if (!e.zoomToCursor)
2562
2702
  return;
2563
2703
  ee = !0;
2564
- const _ = e.domElement.getBoundingClientRect(), A = o - _.left, te = y - _.top, ve = _.width, le = _.height;
2565
- ce.x = A / ve * 2 - 1, ce.y = -(te / le) * 2 + 1, de.set(ce.x, ce.y, 1).unproject(e.object).sub(e.object.position).normalize();
2704
+ const A = e.domElement.getBoundingClientRect(), N = o - A.left, te = y - A.top, be = A.width, ue = A.height;
2705
+ le.x = N / be * 2 - 1, le.y = -(te / ue) * 2 + 1, fe.set(le.x, le.y, 1).unproject(e.object).sub(e.object.position).normalize();
2566
2706
  }
2567
2707
  function X(o) {
2568
2708
  return Math.max(e.minDistance, Math.min(e.maxDistance, o));
2569
2709
  }
2570
- function pe(o) {
2710
+ function me(o) {
2571
2711
  E.set(o.clientX, o.clientY);
2572
2712
  }
2573
- function Te(o) {
2574
- k(o.clientX, o.clientX), H.set(o.clientX, o.clientY);
2713
+ function Re(o) {
2714
+ I(o.clientX, o.clientX), H.set(o.clientX, o.clientY);
2575
2715
  }
2576
- function He(o) {
2716
+ function Xe(o) {
2577
2717
  T.set(o.clientX, o.clientY);
2578
2718
  }
2579
- function at(o) {
2580
- x.set(o.clientX, o.clientY), R.subVectors(x, E).multiplyScalar(e.rotateSpeed);
2719
+ function ct(o) {
2720
+ w.set(o.clientX, o.clientY), R.subVectors(w, E).multiplyScalar(e.rotateSpeed);
2581
2721
  const y = e.domElement;
2582
- F(2 * Math.PI * R.x / y.clientHeight), U(2 * Math.PI * R.y / y.clientHeight), E.copy(x), e.update();
2722
+ B(2 * Math.PI * R.x / y.clientHeight), $(2 * Math.PI * R.y / y.clientHeight), E.copy(w), e.update();
2583
2723
  }
2584
- function wt(o) {
2585
- C.set(o.clientX, o.clientY), K.subVectors(C, H), K.y > 0 ? Q(S(K.y)) : K.y < 0 && M(S(K.y)), H.copy(C), e.update();
2724
+ function Ot(o) {
2725
+ C.set(o.clientX, o.clientY), K.subVectors(C, H), K.y > 0 ? J(S(K.y)) : K.y < 0 && M(S(K.y)), H.copy(C), e.update();
2586
2726
  }
2587
- function Ct(o) {
2588
- B.set(o.clientX, o.clientY), oe.subVectors(B, T).multiplyScalar(e.panSpeed), L(oe.x, oe.y), T.copy(B), e.update();
2727
+ function Tt(o) {
2728
+ G.set(o.clientX, o.clientY), se.subVectors(G, T).multiplyScalar(e.panSpeed), U(se.x, se.y), T.copy(G), e.update();
2589
2729
  }
2590
- function Ke(o) {
2591
- k(o.clientX, o.clientY), o.deltaY < 0 ? M(S(o.deltaY)) : o.deltaY > 0 && Q(S(o.deltaY)), e.update();
2730
+ function qe(o) {
2731
+ I(o.clientX, o.clientY), o.deltaY < 0 ? M(S(o.deltaY)) : o.deltaY > 0 && J(S(o.deltaY)), e.update();
2592
2732
  }
2593
- function Xe(o) {
2733
+ function Ze(o) {
2594
2734
  let y = !1;
2595
2735
  switch (o.code) {
2596
2736
  case e.keys.UP:
2597
- o.ctrlKey || o.metaKey || o.shiftKey ? U(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(0, e.keyPanSpeed), y = !0;
2737
+ o.ctrlKey || o.metaKey || o.shiftKey ? $(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(0, e.keyPanSpeed), y = !0;
2598
2738
  break;
2599
2739
  case e.keys.BOTTOM:
2600
- o.ctrlKey || o.metaKey || o.shiftKey ? U(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(0, -e.keyPanSpeed), y = !0;
2740
+ o.ctrlKey || o.metaKey || o.shiftKey ? $(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(0, -e.keyPanSpeed), y = !0;
2601
2741
  break;
2602
2742
  case e.keys.LEFT:
2603
- o.ctrlKey || o.metaKey || o.shiftKey ? F(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(e.keyPanSpeed, 0), y = !0;
2743
+ o.ctrlKey || o.metaKey || o.shiftKey ? B(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(e.keyPanSpeed, 0), y = !0;
2604
2744
  break;
2605
2745
  case e.keys.RIGHT:
2606
- o.ctrlKey || o.metaKey || o.shiftKey ? F(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(-e.keyPanSpeed, 0), y = !0;
2746
+ o.ctrlKey || o.metaKey || o.shiftKey ? B(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(-e.keyPanSpeed, 0), y = !0;
2607
2747
  break;
2608
2748
  }
2609
2749
  y && (o.preventDefault(), e.update());
2610
2750
  }
2611
- function Me(o) {
2612
- if (u.length === 1)
2751
+ function Pe(o) {
2752
+ if (d.length === 1)
2613
2753
  E.set(o.pageX, o.pageY);
2614
2754
  else {
2615
- const y = ge(o), _ = 0.5 * (o.pageX + y.x), A = 0.5 * (o.pageY + y.y);
2616
- E.set(_, A);
2755
+ const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
2756
+ E.set(A, N);
2617
2757
  }
2618
2758
  }
2619
- function Ue(o) {
2620
- if (u.length === 1)
2759
+ function $e(o) {
2760
+ if (d.length === 1)
2621
2761
  T.set(o.pageX, o.pageY);
2622
2762
  else {
2623
- const y = ge(o), _ = 0.5 * (o.pageX + y.x), A = 0.5 * (o.pageY + y.y);
2624
- T.set(_, A);
2763
+ const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
2764
+ T.set(A, N);
2625
2765
  }
2626
2766
  }
2627
- function Re(o) {
2628
- const y = ge(o), _ = o.pageX - y.x, A = o.pageY - y.y, te = Math.sqrt(_ * _ + A * A);
2767
+ function _e(o) {
2768
+ const y = ve(o), A = o.pageX - y.x, N = o.pageY - y.y, te = Math.sqrt(A * A + N * N);
2629
2769
  H.set(0, te);
2630
2770
  }
2631
- function St(o) {
2632
- e.enableZoom && Re(o), e.enablePan && Ue(o);
2771
+ function Mt(o) {
2772
+ e.enableZoom && _e(o), e.enablePan && $e(o);
2633
2773
  }
2634
- function ot(o) {
2635
- e.enableZoom && Re(o), e.enableRotate && Me(o);
2774
+ function lt(o) {
2775
+ e.enableZoom && _e(o), e.enableRotate && Pe(o);
2636
2776
  }
2637
- function st(o) {
2638
- if (u.length == 1)
2639
- x.set(o.pageX, o.pageY);
2777
+ function ut(o) {
2778
+ if (d.length == 1)
2779
+ w.set(o.pageX, o.pageY);
2640
2780
  else {
2641
- const _ = ge(o), A = 0.5 * (o.pageX + _.x), te = 0.5 * (o.pageY + _.y);
2642
- x.set(A, te);
2781
+ const A = ve(o), N = 0.5 * (o.pageX + A.x), te = 0.5 * (o.pageY + A.y);
2782
+ w.set(N, te);
2643
2783
  }
2644
- R.subVectors(x, E).multiplyScalar(e.rotateSpeed);
2784
+ R.subVectors(w, E).multiplyScalar(e.rotateSpeed);
2645
2785
  const y = e.domElement;
2646
- F(2 * Math.PI * R.x / y.clientHeight), U(2 * Math.PI * R.y / y.clientHeight), E.copy(x);
2786
+ B(2 * Math.PI * R.x / y.clientHeight), $(2 * Math.PI * R.y / y.clientHeight), E.copy(w);
2647
2787
  }
2648
- function ct(o) {
2649
- if (u.length === 1)
2650
- B.set(o.pageX, o.pageY);
2788
+ function dt(o) {
2789
+ if (d.length === 1)
2790
+ G.set(o.pageX, o.pageY);
2651
2791
  else {
2652
- const y = ge(o), _ = 0.5 * (o.pageX + y.x), A = 0.5 * (o.pageY + y.y);
2653
- B.set(_, A);
2792
+ const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
2793
+ G.set(A, N);
2654
2794
  }
2655
- oe.subVectors(B, T).multiplyScalar(e.panSpeed), L(oe.x, oe.y), T.copy(B);
2795
+ se.subVectors(G, T).multiplyScalar(e.panSpeed), U(se.x, se.y), T.copy(G);
2656
2796
  }
2657
- function Pe(o) {
2658
- const y = ge(o), _ = o.pageX - y.x, A = o.pageY - y.y, te = Math.sqrt(_ * _ + A * A);
2659
- C.set(0, te), K.set(0, Math.pow(C.y / H.y, e.zoomSpeed)), Q(K.y), H.copy(C);
2660
- const ve = (o.pageX + y.x) * 0.5, le = (o.pageY + y.y) * 0.5;
2661
- k(ve, le);
2797
+ function je(o) {
2798
+ const y = ve(o), A = o.pageX - y.x, N = o.pageY - y.y, te = Math.sqrt(A * A + N * N);
2799
+ C.set(0, te), K.set(0, Math.pow(C.y / H.y, e.zoomSpeed)), J(K.y), H.copy(C);
2800
+ const be = (o.pageX + y.x) * 0.5, ue = (o.pageY + y.y) * 0.5;
2801
+ I(be, ue);
2662
2802
  }
2663
- function Be(o) {
2664
- e.enableZoom && Pe(o), e.enablePan && ct(o);
2803
+ function Ge(o) {
2804
+ e.enableZoom && je(o), e.enablePan && dt(o);
2665
2805
  }
2666
- function lt(o) {
2667
- e.enableZoom && Pe(o), e.enableRotate && st(o);
2806
+ function ft(o) {
2807
+ e.enableZoom && je(o), e.enableRotate && ut(o);
2668
2808
  }
2669
- function Ze(o) {
2670
- e.enabled !== !1 && (u.length === 0 && (e.domElement.setPointerCapture(o.pointerId), e.domElement.addEventListener("pointermove", Ce), e.domElement.addEventListener("pointerup", je)), Tt(o), o.pointerType === "touch" ? dt(o) : Ot(o));
2809
+ function Je(o) {
2810
+ e.enabled !== !1 && (d.length === 0 && (e.domElement.setPointerCapture(o.pointerId), e.domElement.addEventListener("pointermove", Se), e.domElement.addEventListener("pointerup", ke)), Pt(o), o.pointerType === "touch" ? pt(o) : Rt(o));
2671
2811
  }
2672
- function Ce(o) {
2673
- e.enabled !== !1 && (o.pointerType === "touch" ? ft(o) : qe(o));
2812
+ function Se(o) {
2813
+ e.enabled !== !1 && (o.pointerType === "touch" ? mt(o) : Qe(o));
2674
2814
  }
2675
- function je(o) {
2676
- ht(o), u.length === 0 && (e.domElement.releasePointerCapture(o.pointerId), e.domElement.removeEventListener("pointermove", Ce), e.domElement.removeEventListener("pointerup", je)), e.dispatchEvent(Qt), s = a.NONE;
2815
+ function ke(o) {
2816
+ gt(o), d.length === 0 && (e.domElement.releasePointerCapture(o.pointerId), e.domElement.removeEventListener("pointermove", Se), e.domElement.removeEventListener("pointerup", ke)), e.dispatchEvent(tn), s = r.NONE;
2677
2817
  }
2678
- function Ot(o) {
2818
+ function Rt(o) {
2679
2819
  let y;
2680
2820
  switch (o.button) {
2681
2821
  case 0:
@@ -2691,537 +2831,537 @@ class Ii extends rn {
2691
2831
  y = -1;
2692
2832
  }
2693
2833
  switch (y) {
2694
- case ze.DOLLY:
2834
+ case We.DOLLY:
2695
2835
  if (e.enableZoom === !1)
2696
2836
  return;
2697
- Te(o), s = a.DOLLY;
2837
+ Re(o), s = r.DOLLY;
2698
2838
  break;
2699
- case ze.ROTATE:
2839
+ case We.ROTATE:
2700
2840
  if (o.ctrlKey || o.metaKey || o.shiftKey) {
2701
2841
  if (e.enablePan === !1)
2702
2842
  return;
2703
- He(o), s = a.PAN;
2843
+ Xe(o), s = r.PAN;
2704
2844
  } else {
2705
2845
  if (e.enableRotate === !1)
2706
2846
  return;
2707
- pe(o), s = a.ROTATE;
2847
+ me(o), s = r.ROTATE;
2708
2848
  }
2709
2849
  break;
2710
- case ze.PAN:
2850
+ case We.PAN:
2711
2851
  if (o.ctrlKey || o.metaKey || o.shiftKey) {
2712
2852
  if (e.enableRotate === !1)
2713
2853
  return;
2714
- pe(o), s = a.ROTATE;
2854
+ me(o), s = r.ROTATE;
2715
2855
  } else {
2716
2856
  if (e.enablePan === !1)
2717
2857
  return;
2718
- He(o), s = a.PAN;
2858
+ Xe(o), s = r.PAN;
2719
2859
  }
2720
2860
  break;
2721
2861
  default:
2722
- s = a.NONE;
2862
+ s = r.NONE;
2723
2863
  }
2724
- s !== a.NONE && e.dispatchEvent(jt);
2864
+ s !== r.NONE && e.dispatchEvent(At);
2725
2865
  }
2726
- function qe(o) {
2866
+ function Qe(o) {
2727
2867
  switch (s) {
2728
- case a.ROTATE:
2868
+ case r.ROTATE:
2729
2869
  if (e.enableRotate === !1)
2730
2870
  return;
2731
- at(o);
2871
+ ct(o);
2732
2872
  break;
2733
- case a.DOLLY:
2873
+ case r.DOLLY:
2734
2874
  if (e.enableZoom === !1)
2735
2875
  return;
2736
- wt(o);
2876
+ Ot(o);
2737
2877
  break;
2738
- case a.PAN:
2878
+ case r.PAN:
2739
2879
  if (e.enablePan === !1)
2740
2880
  return;
2741
- Ct(o);
2881
+ Tt(o);
2742
2882
  break;
2743
2883
  }
2744
2884
  }
2745
- function ut(o) {
2746
- e.enabled === !1 || e.enableZoom === !1 || s !== a.NONE || (o.preventDefault(), e.dispatchEvent(jt), Ke(o), e.dispatchEvent(Qt));
2885
+ function ht(o) {
2886
+ e.enabled === !1 || e.enableZoom === !1 || s !== r.NONE || (o.preventDefault(), e.dispatchEvent(At), qe(o), e.dispatchEvent(tn));
2747
2887
  }
2748
- function Qe(o) {
2749
- e.enabled === !1 || e.enablePan === !1 || Xe(o);
2888
+ function et(o) {
2889
+ e.enabled === !1 || e.enablePan === !1 || Ze(o);
2750
2890
  }
2751
- function dt(o) {
2752
- switch (Je(o), u.length) {
2891
+ function pt(o) {
2892
+ switch (tt(o), d.length) {
2753
2893
  case 1:
2754
2894
  switch (e.touches.ONE) {
2755
- case Ye.ROTATE:
2895
+ case He.ROTATE:
2756
2896
  if (e.enableRotate === !1)
2757
2897
  return;
2758
- Me(o), s = a.TOUCH_ROTATE;
2898
+ Pe(o), s = r.TOUCH_ROTATE;
2759
2899
  break;
2760
- case Ye.PAN:
2900
+ case He.PAN:
2761
2901
  if (e.enablePan === !1)
2762
2902
  return;
2763
- Ue(o), s = a.TOUCH_PAN;
2903
+ $e(o), s = r.TOUCH_PAN;
2764
2904
  break;
2765
2905
  default:
2766
- s = a.NONE;
2906
+ s = r.NONE;
2767
2907
  }
2768
2908
  break;
2769
2909
  case 2:
2770
2910
  switch (e.touches.TWO) {
2771
- case Ye.DOLLY_PAN:
2911
+ case He.DOLLY_PAN:
2772
2912
  if (e.enableZoom === !1 && e.enablePan === !1)
2773
2913
  return;
2774
- St(o), s = a.TOUCH_DOLLY_PAN;
2914
+ Mt(o), s = r.TOUCH_DOLLY_PAN;
2775
2915
  break;
2776
- case Ye.DOLLY_ROTATE:
2916
+ case He.DOLLY_ROTATE:
2777
2917
  if (e.enableZoom === !1 && e.enableRotate === !1)
2778
2918
  return;
2779
- ot(o), s = a.TOUCH_DOLLY_ROTATE;
2919
+ lt(o), s = r.TOUCH_DOLLY_ROTATE;
2780
2920
  break;
2781
2921
  default:
2782
- s = a.NONE;
2922
+ s = r.NONE;
2783
2923
  }
2784
2924
  break;
2785
2925
  default:
2786
- s = a.NONE;
2926
+ s = r.NONE;
2787
2927
  }
2788
- s !== a.NONE && e.dispatchEvent(jt);
2928
+ s !== r.NONE && e.dispatchEvent(At);
2789
2929
  }
2790
- function ft(o) {
2791
- switch (Je(o), s) {
2792
- case a.TOUCH_ROTATE:
2930
+ function mt(o) {
2931
+ switch (tt(o), s) {
2932
+ case r.TOUCH_ROTATE:
2793
2933
  if (e.enableRotate === !1)
2794
2934
  return;
2795
- st(o), e.update();
2935
+ ut(o), e.update();
2796
2936
  break;
2797
- case a.TOUCH_PAN:
2937
+ case r.TOUCH_PAN:
2798
2938
  if (e.enablePan === !1)
2799
2939
  return;
2800
- ct(o), e.update();
2940
+ dt(o), e.update();
2801
2941
  break;
2802
- case a.TOUCH_DOLLY_PAN:
2942
+ case r.TOUCH_DOLLY_PAN:
2803
2943
  if (e.enableZoom === !1 && e.enablePan === !1)
2804
2944
  return;
2805
- Be(o), e.update();
2945
+ Ge(o), e.update();
2806
2946
  break;
2807
- case a.TOUCH_DOLLY_ROTATE:
2947
+ case r.TOUCH_DOLLY_ROTATE:
2808
2948
  if (e.enableZoom === !1 && e.enableRotate === !1)
2809
2949
  return;
2810
- lt(o), e.update();
2950
+ ft(o), e.update();
2811
2951
  break;
2812
2952
  default:
2813
- s = a.NONE;
2953
+ s = r.NONE;
2814
2954
  }
2815
2955
  }
2816
- function Se(o) {
2956
+ function Oe(o) {
2817
2957
  e.enabled !== !1 && o.preventDefault();
2818
2958
  }
2819
- function Tt(o) {
2820
- u.push(o.pointerId);
2959
+ function Pt(o) {
2960
+ d.push(o.pointerId);
2821
2961
  }
2822
- function ht(o) {
2823
- delete p[o.pointerId];
2824
- for (let y = 0; y < u.length; y++)
2825
- if (u[y] == o.pointerId) {
2826
- u.splice(y, 1);
2962
+ function gt(o) {
2963
+ delete m[o.pointerId];
2964
+ for (let y = 0; y < d.length; y++)
2965
+ if (d[y] == o.pointerId) {
2966
+ d.splice(y, 1);
2827
2967
  return;
2828
2968
  }
2829
2969
  }
2830
- function Je(o) {
2831
- let y = p[o.pointerId];
2832
- y === void 0 && (y = new ue(), p[o.pointerId] = y), y.set(o.pageX, o.pageY);
2970
+ function tt(o) {
2971
+ let y = m[o.pointerId];
2972
+ y === void 0 && (y = new de(), m[o.pointerId] = y), y.set(o.pageX, o.pageY);
2833
2973
  }
2834
- function ge(o) {
2835
- const y = o.pointerId === u[0] ? u[1] : u[0];
2836
- return p[y];
2974
+ function ve(o) {
2975
+ const y = o.pointerId === d[0] ? d[1] : d[0];
2976
+ return m[y];
2837
2977
  }
2838
- e.domElement.addEventListener("contextmenu", Se), e.domElement.addEventListener("pointerdown", Ze), e.domElement.addEventListener("pointercancel", je), e.domElement.addEventListener("wheel", ut, { passive: !1 }), this.update();
2978
+ e.domElement.addEventListener("contextmenu", Oe), e.domElement.addEventListener("pointerdown", Je), e.domElement.addEventListener("pointercancel", ke), e.domElement.addEventListener("wheel", ht, { passive: !1 }), this.update();
2839
2979
  }
2840
2980
  }
2841
- const yt = (t) => {
2842
- const [n, i] = ae(t.options[t.index]), e = () => {
2981
+ const xt = (t) => {
2982
+ const [n, a] = oe(t.options[t.index]), e = () => {
2843
2983
  t.onToggle(!t.open);
2844
- }, a = (s) => {
2845
- s !== n && (t.onSelect(s), i(s)), t.onToggle(!1);
2984
+ }, r = (s) => {
2985
+ s !== n && (t.onSelect(s), a(s)), t.onToggle(!1);
2846
2986
  };
2847
2987
  return /* @__PURE__ */ c.jsxs("div", { className: `dropdown ${t.up === !0 ? "up" : ""}`, children: [
2848
2988
  /* @__PURE__ */ c.jsx("div", { className: "dropdown-toggle", onClick: e, children: n }),
2849
- t.open && /* @__PURE__ */ c.jsx("ul", { className: "dropdown-menu", children: t.options.map((s) => /* @__PURE__ */ c.jsx("li", { onClick: () => a(s), children: s }, s)) })
2989
+ t.open && /* @__PURE__ */ c.jsx("ul", { className: "dropdown-menu", children: t.options.map((s) => /* @__PURE__ */ c.jsx("li", { onClick: () => r(s), children: s }, s)) })
2850
2990
  ] });
2851
- }, ke = Xn(function(n, i) {
2852
- const [e, a] = ae(!1), s = n.options.indexOf(n.camera.name);
2991
+ }, Ie = ea(function(n, a) {
2992
+ const [e, r] = oe(!1), s = n.options.indexOf(n.camera.name);
2853
2993
  return /* @__PURE__ */ c.jsxs("div", { className: "CameraWindow", children: [
2854
- /* @__PURE__ */ c.jsx("div", { ref: i, className: "clickable", onClick: () => {
2855
- e && a(!1);
2994
+ /* @__PURE__ */ c.jsx("div", { ref: a, className: "clickable", onClick: () => {
2995
+ e && r(!1);
2856
2996
  } }),
2857
2997
  /* @__PURE__ */ c.jsx(
2858
- yt,
2998
+ xt,
2859
2999
  {
2860
3000
  index: s,
2861
3001
  open: e,
2862
3002
  options: n.options,
2863
3003
  onSelect: n.onSelect,
2864
- onToggle: (h) => {
2865
- a(h);
3004
+ onToggle: (f) => {
3005
+ r(f);
2866
3006
  },
2867
3007
  up: !0
2868
3008
  }
2869
3009
  )
2870
3010
  ] });
2871
- }), en = [
3011
+ }), an = [
2872
3012
  "Single",
2873
3013
  "Side by Side",
2874
3014
  "Stacked",
2875
3015
  "Quad"
2876
- ], ne = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map();
2877
- function Fe(t, n) {
2878
- const i = new sn(-100, 100, 100, -100, 50, 3e3);
2879
- return i.name = t, i.position.copy(n), i.lookAt(0, 0, 0), ne.set(t, i), i;
2880
- }
2881
- Fe("Top", new G(0, 1e3, 0));
2882
- Fe("Bottom", new G(0, -1e3, 0));
2883
- Fe("Left", new G(-1e3, 0, 0));
2884
- Fe("Right", new G(1e3, 0, 0));
2885
- Fe("Front", new G(0, 0, 1e3));
2886
- Fe("Back", new G(0, 0, -1e3));
2887
- Fe("Orthographic", new G(1e3, 1e3, 1e3));
2888
- const xt = new _t(60, 1, 50, 3e3);
2889
- xt.name = "Debug";
2890
- xt.position.set(500, 500, 500);
2891
- xt.lookAt(0, 0, 0);
2892
- ne.set("Debug", xt);
2893
- const tn = [
3016
+ ], ne = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new Map();
3017
+ function Be(t, n) {
3018
+ const a = new un(-100, 100, 100, -100, 50, 3e3);
3019
+ return a.name = t, a.position.copy(n), a.lookAt(0, 0, 0), ne.set(t, a), a;
3020
+ }
3021
+ Be("Top", new Y(0, 1e3, 0));
3022
+ Be("Bottom", new Y(0, -1e3, 0));
3023
+ Be("Left", new Y(-1e3, 0, 0));
3024
+ Be("Right", new Y(1e3, 0, 0));
3025
+ Be("Front", new Y(0, 0, 1e3));
3026
+ Be("Back", new Y(0, 0, -1e3));
3027
+ Be("Orthographic", new Y(1e3, 1e3, 1e3));
3028
+ const St = new Dt(60, 1, 50, 3e3);
3029
+ St.name = "Debug";
3030
+ St.position.set(500, 500, 500);
3031
+ St.lookAt(0, 0, 0);
3032
+ ne.set("Debug", St);
3033
+ const rn = [
2894
3034
  "Renderer",
2895
3035
  "Depth",
2896
3036
  "Normals",
2897
3037
  "UVs",
2898
3038
  "Wireframe"
2899
- ], Ni = new Fn(), Li = new Un(), Fi = new bi(), Ui = new Bn({
3039
+ ], Xa = new Vn(), qa = new zn(), Za = new ja(), Ja = new Yn({
2900
3040
  opacity: 0.33,
2901
3041
  transparent: !0,
2902
3042
  wireframe: !0
2903
3043
  });
2904
- let vt = "Renderer";
2905
- const V = new cn();
2906
- V.name = "Debug Scene";
2907
- let xe = new cn();
2908
- V.add(xe);
2909
- const rt = new $n();
2910
- rt.name = "helpers";
2911
- V.add(rt);
2912
- const Bi = new mi();
2913
- rt.add(Bi);
2914
- const bn = new ln(500);
2915
- bn.name = "axisHelper";
2916
- rt.add(bn);
2917
- const it = new ln(100);
2918
- it.name = "interactionHelper";
2919
- rt.add(it);
2920
- it.visible = !1;
2921
- let bt = !1, $ = ne.get("Debug"), re = ne.get("Orthographic"), Ae = ne.get("Front"), Ie = ne.get("Top"), nn = !1;
2922
- function ar(t) {
2923
- const [n, i] = ae(t.mode !== void 0 ? t.mode : "Single"), [e, a] = ae(null), [s, h] = ae(!1), [l, d] = ae(!1), [m, v] = ae(!1), [, E] = ae(Date.now()), x = we(null), R = we(null), T = we(null), B = we(null), oe = we(null), H = we(null), C = (u, p) => {
2924
- const b = ie.get(u.name);
2925
- b !== void 0 && b.dispose(), ie.delete(u.name);
2926
- const S = Ee.get(u.name);
2927
- S !== void 0 && (V.remove(S), S.dispose()), Ee.delete(u.name);
2928
- const F = new Ii(u, p);
2929
- switch (F.enableDamping = !0, F.dampingFactor = 0.05, u.name) {
3044
+ let Et = "Renderer";
3045
+ const z = new dn();
3046
+ z.name = "Debug Scene";
3047
+ let xe = new dn();
3048
+ z.add(xe);
3049
+ const st = new Wn();
3050
+ st.name = "helpers";
3051
+ z.add(st);
3052
+ const Qa = new Ra();
3053
+ st.add(Qa);
3054
+ const Cn = new fn(500);
3055
+ Cn.name = "axisHelper";
3056
+ st.add(Cn);
3057
+ const ot = new fn(100);
3058
+ ot.name = "interactionHelper";
3059
+ st.add(ot);
3060
+ ot.visible = !1;
3061
+ let wt = !1, V = ne.get("Debug"), re = ne.get("Orthographic"), Ne = ne.get("Front"), Le = ne.get("Top"), on = !1;
3062
+ function pi(t) {
3063
+ const [n, a] = oe(t.mode !== void 0 ? t.mode : "Single"), [e, r] = oe(null), [s, f] = oe(!1), [l, u] = oe(!1), [p, v] = oe(!1), [, E] = oe(Date.now()), w = Ce(null), R = Ce(null), T = Ce(null), G = Ce(null), se = Ce(null), H = Ce(null), C = (d, m) => {
3064
+ const b = ie.get(d.name);
3065
+ b !== void 0 && b.dispose(), ie.delete(d.name);
3066
+ const S = we.get(d.name);
3067
+ S !== void 0 && (z.remove(S), S.dispose()), we.delete(d.name);
3068
+ const B = new Ka(d, m);
3069
+ switch (B.enableDamping = !0, B.dampingFactor = 0.05, d.name) {
2930
3070
  case "Top":
2931
3071
  case "Bottom":
2932
3072
  case "Left":
2933
3073
  case "Right":
2934
3074
  case "Front":
2935
3075
  case "Back":
2936
- F.enableRotate = !1;
3076
+ B.enableRotate = !1;
2937
3077
  break;
2938
3078
  }
2939
- if (ie.set(u.name, F), u instanceof _t) {
2940
- const U = new zn(u);
2941
- Ee.set(u.name, U), V.add(U);
2942
- }
2943
- }, K = (u) => {
2944
- const p = Ee.get(u.name);
2945
- p !== void 0 && (V.remove(p), p.dispose(), Ee.delete(u.name));
2946
- const b = ie.get(u.name);
2947
- b !== void 0 && (b.dispose(), ie.delete(u.name));
2948
- }, de = () => {
2949
- ie.forEach((u, p) => {
2950
- u.dispose();
2951
- const b = Ee.get(p);
2952
- b !== void 0 && (V.remove(b), b.dispose()), Ee.delete(p), ie.delete(p);
2953
- }), ie.clear(), Ee.clear();
2954
- }, ce = () => {
3079
+ if (ie.set(d.name, B), d instanceof Dt) {
3080
+ const $ = new Xn(d);
3081
+ we.set(d.name, $), z.add($);
3082
+ }
3083
+ }, K = (d) => {
3084
+ const m = we.get(d.name);
3085
+ m !== void 0 && (z.remove(m), m.dispose(), we.delete(d.name));
3086
+ const b = ie.get(d.name);
3087
+ b !== void 0 && (b.dispose(), ie.delete(d.name));
3088
+ }, fe = () => {
3089
+ ie.forEach((d, m) => {
3090
+ d.dispose();
3091
+ const b = we.get(m);
3092
+ b !== void 0 && (z.remove(b), b.dispose()), we.delete(m), ie.delete(m);
3093
+ }), ie.clear(), we.clear();
3094
+ }, le = () => {
2955
3095
  switch (n) {
2956
3096
  case "Single":
2957
- C($, T.current);
3097
+ C(V, T.current);
2958
3098
  break;
2959
3099
  case "Side by Side":
2960
3100
  case "Stacked":
2961
- C($, T.current), C(re, B.current);
3101
+ C(V, T.current), C(re, G.current);
2962
3102
  break;
2963
3103
  case "Quad":
2964
- C($, T.current), C(re, B.current), C(Ae, oe.current), C(Ie, H.current);
3104
+ C(V, T.current), C(re, G.current), C(Ne, se.current), C(Le, H.current);
2965
3105
  break;
2966
3106
  }
2967
3107
  };
2968
- Ne(() => {
2969
- const u = new Vn({
2970
- canvas: x.current,
3108
+ Fe(() => {
3109
+ const d = new Hn({
3110
+ canvas: w.current,
2971
3111
  stencil: !1
2972
3112
  });
2973
- u.autoClear = !1, u.shadowMap.enabled = !0, u.setPixelRatio(devicePixelRatio), u.setClearColor(0), a(u);
2974
- }, []), Ne(() => {
2975
- const u = (S) => {
2976
- hn(xe), V.remove(xe);
2977
- const F = t.scenes.get(S.value.name);
2978
- if (F !== void 0) {
2979
- const U = new F();
2980
- t.onSceneSet !== void 0 && t.onSceneSet(U), xe = U, t.three.scene = xe, V.add(xe), nn = !0;
2981
- }
2982
- }, p = (S) => {
2983
- var N;
2984
- const F = S.value, U = (N = t.three.scene) == null ? void 0 : N.getObjectByProperty("uuid", F.uuid);
2985
- U !== void 0 && ne.set(F.name, U), E(Date.now());
3113
+ d.autoClear = !1, d.shadowMap.enabled = !0, d.setPixelRatio(devicePixelRatio), d.setClearColor(0), r(d);
3114
+ }, []), Fe(() => {
3115
+ const d = (S) => {
3116
+ gn(xe), z.remove(xe);
3117
+ const B = t.scenes.get(S.value.name);
3118
+ if (B !== void 0) {
3119
+ const $ = new B();
3120
+ t.onSceneSet !== void 0 && t.onSceneSet($), xe = $, t.three.scene = xe, z.add(xe), on = !0;
3121
+ }
3122
+ }, m = (S) => {
3123
+ var F;
3124
+ const B = S.value, $ = (F = t.three.scene) == null ? void 0 : F.getObjectByProperty("uuid", B.uuid);
3125
+ $ !== void 0 && ne.set(B.name, $), E(Date.now());
2986
3126
  }, b = (S) => {
2987
3127
  ne.delete(S.value.name), E(Date.now());
2988
3128
  };
2989
- return z.addEventListener(Y.SET_SCENE, u), z.addEventListener(Y.ADD_CAMERA, p), z.addEventListener(Y.REMOVE_CAMERA, b), () => {
2990
- z.removeEventListener(Y.SET_SCENE, u), z.removeEventListener(Y.ADD_CAMERA, p), z.removeEventListener(Y.REMOVE_CAMERA, b);
3129
+ return _.addEventListener(j.SET_SCENE, d), _.addEventListener(j.ADD_CAMERA, m), _.addEventListener(j.REMOVE_CAMERA, b), () => {
3130
+ _.removeEventListener(j.SET_SCENE, d), _.removeEventListener(j.ADD_CAMERA, m), _.removeEventListener(j.REMOVE_CAMERA, b);
2991
3131
  };
2992
- }, []), Ne(() => {
3132
+ }, []), Fe(() => {
2993
3133
  if (e === null)
2994
3134
  return;
2995
- let u = window.innerWidth, p = window.innerHeight, b = Math.floor(u / 2), S = Math.floor(p / 2), F = -1;
2996
- const U = () => {
2997
- u = window.innerWidth - 300, p = window.innerHeight, b = Math.floor(u / 2), S = Math.floor(p / 2), e.setSize(u, p);
2998
- let M = u, k = p;
3135
+ let d = window.innerWidth, m = window.innerHeight, b = Math.floor(d / 2), S = Math.floor(m / 2), B = -1;
3136
+ const $ = () => {
3137
+ d = window.innerWidth - 300, m = window.innerHeight, b = Math.floor(d / 2), S = Math.floor(m / 2), e.setSize(d, m);
3138
+ let M = d, I = m;
2999
3139
  switch (n) {
3000
3140
  case "Side by Side":
3001
- M = b, k = p;
3141
+ M = b, I = m;
3002
3142
  break;
3003
3143
  case "Stacked":
3004
- M = u, k = S;
3144
+ M = d, I = S;
3005
3145
  break;
3006
3146
  case "Quad":
3007
- M = b, k = S;
3147
+ M = b, I = S;
3008
3148
  break;
3009
3149
  }
3010
3150
  ne.forEach((X) => {
3011
- var pe;
3012
- X instanceof sn ? (X.left = M / -2, X.right = M / 2, X.top = k / 2, X.bottom = k / -2, X.updateProjectionMatrix()) : X instanceof _t && (X.aspect = M / k, X.updateProjectionMatrix(), (pe = Ee.get(X.name)) == null || pe.update());
3151
+ var me;
3152
+ X instanceof un ? (X.left = M / -2, X.right = M / 2, X.top = I / 2, X.bottom = I / -2, X.updateProjectionMatrix()) : X instanceof Dt && (X.aspect = M / I, X.updateProjectionMatrix(), (me = we.get(X.name)) == null || me.update());
3013
3153
  });
3014
- }, N = () => {
3015
- e.setViewport(0, 0, u, p), e.setScissor(0, 0, u, p), e.render(V, $);
3154
+ }, F = () => {
3155
+ e.setViewport(0, 0, d, m), e.setScissor(0, 0, d, m), e.render(z, V);
3016
3156
  }, D = () => {
3017
3157
  if (n === "Side by Side")
3018
- e.setViewport(0, 0, b, p), e.setScissor(0, 0, b, p), e.render(V, $), e.setViewport(b, 0, b, p), e.setScissor(b, 0, b, p), e.render(V, re);
3158
+ e.setViewport(0, 0, b, m), e.setScissor(0, 0, b, m), e.render(z, V), e.setViewport(b, 0, b, m), e.setScissor(b, 0, b, m), e.render(z, re);
3019
3159
  else {
3020
- const M = p - S;
3021
- e.setViewport(0, M, u, S), e.setScissor(0, M, u, S), e.render(V, $), e.setViewport(0, 0, u, S), e.setScissor(0, 0, u, S), e.render(V, re);
3160
+ const M = m - S;
3161
+ e.setViewport(0, M, d, S), e.setScissor(0, M, d, S), e.render(z, V), e.setViewport(0, 0, d, S), e.setScissor(0, 0, d, S), e.render(z, re);
3022
3162
  }
3023
- }, L = () => {
3024
- let M = 0, k = 0;
3025
- k = p - S, M = 0, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, $), M = b, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, re), k = 0, M = 0, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, Ae), M = b, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, Ie);
3026
- }, Q = () => {
3163
+ }, U = () => {
3164
+ let M = 0, I = 0;
3165
+ I = m - S, M = 0, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, V), M = b, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, re), I = 0, M = 0, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, Ne), M = b, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, Le);
3166
+ }, J = () => {
3027
3167
  switch (ie.forEach((M) => {
3028
3168
  M.update();
3029
- }), t.onSceneUpdate !== void 0 && nn && t.onSceneUpdate(xe), e.clear(), n) {
3169
+ }), t.onSceneUpdate !== void 0 && on && t.onSceneUpdate(xe), e.clear(), n) {
3030
3170
  case "Single":
3031
- N();
3171
+ F();
3032
3172
  break;
3033
3173
  case "Side by Side":
3034
3174
  case "Stacked":
3035
3175
  D();
3036
3176
  break;
3037
3177
  case "Quad":
3038
- L();
3178
+ U();
3039
3179
  break;
3040
3180
  }
3041
- F = requestAnimationFrame(Q);
3181
+ B = requestAnimationFrame(J);
3042
3182
  };
3043
- return ce(), window.addEventListener("resize", U), U(), Q(), () => {
3044
- window.removeEventListener("resize", U), cancelAnimationFrame(F), F = -1;
3183
+ return le(), window.addEventListener("resize", $), $(), J(), () => {
3184
+ window.removeEventListener("resize", $), cancelAnimationFrame(B), B = -1;
3045
3185
  };
3046
- }, [n, e]), Ne(() => {
3186
+ }, [n, e]), Fe(() => {
3047
3187
  if (e !== null) {
3048
- const u = new Gn(), p = new ue(), b = (N, D, L, Q) => {
3188
+ const d = new Kn(), m = new de(), b = (F, D, U, J) => {
3049
3189
  switch (n) {
3050
3190
  case "Quad":
3051
- N < L ? D < Q ? u.setFromCamera(p, $) : u.setFromCamera(p, Ae) : D < Q ? u.setFromCamera(p, re) : u.setFromCamera(p, Ie);
3191
+ F < U ? D < J ? d.setFromCamera(m, V) : d.setFromCamera(m, Ne) : D < J ? d.setFromCamera(m, re) : d.setFromCamera(m, Le);
3052
3192
  break;
3053
3193
  case "Side by Side":
3054
- N < L ? u.setFromCamera(p, $) : u.setFromCamera(p, re);
3194
+ F < U ? d.setFromCamera(m, V) : d.setFromCamera(m, re);
3055
3195
  break;
3056
3196
  case "Single":
3057
- u.setFromCamera(p, $);
3197
+ d.setFromCamera(m, V);
3058
3198
  break;
3059
3199
  case "Stacked":
3060
- D < Q ? u.setFromCamera(p, $) : u.setFromCamera(p, re);
3200
+ D < J ? d.setFromCamera(m, V) : d.setFromCamera(m, re);
3061
3201
  break;
3062
3202
  }
3063
- }, S = (N) => {
3064
- if (!bt)
3203
+ }, S = (F) => {
3204
+ if (!wt)
3065
3205
  return;
3066
- const D = new ue();
3206
+ const D = new de();
3067
3207
  e.getSize(D);
3068
- const L = Math.min(N.clientX, D.x), Q = Math.min(N.clientY, D.y);
3069
- p.x = We(L, 0, D.x, -1, 1), p.y = We(Q, 0, D.y, 1, -1);
3070
- const M = D.x / 2, k = D.y / 2, X = () => {
3071
- L < M ? p.x = We(L, 0, M, -1, 1) : p.x = We(L, M, D.x, -1, 1);
3072
- }, pe = () => {
3073
- Q < k ? p.y = We(Q, 0, k, 1, -1) : p.y = We(Q, k, D.y, 1, -1);
3208
+ const U = Math.min(F.clientX, D.x), J = Math.min(F.clientY, D.y);
3209
+ m.x = Ke(U, 0, D.x, -1, 1), m.y = Ke(J, 0, D.y, 1, -1);
3210
+ const M = D.x / 2, I = D.y / 2, X = () => {
3211
+ U < M ? m.x = Ke(U, 0, M, -1, 1) : m.x = Ke(U, M, D.x, -1, 1);
3212
+ }, me = () => {
3213
+ J < I ? m.y = Ke(J, 0, I, 1, -1) : m.y = Ke(J, I, D.y, 1, -1);
3074
3214
  };
3075
3215
  switch (n) {
3076
3216
  case "Quad":
3077
- X(), pe();
3217
+ X(), me();
3078
3218
  break;
3079
3219
  case "Side by Side":
3080
3220
  X();
3081
3221
  break;
3082
3222
  case "Stacked":
3083
- pe(), pe();
3223
+ me(), me();
3084
3224
  break;
3085
3225
  }
3086
- b(L, Q, M, k);
3087
- const Te = u.intersectObjects(xe.children);
3088
- Te.length > 0 && it.position.copy(Te[0].point);
3089
- }, F = (N) => {
3090
- if (!bt)
3226
+ b(U, J, M, I);
3227
+ const Re = d.intersectObjects(xe.children);
3228
+ Re.length > 0 && ot.position.copy(Re[0].point);
3229
+ }, B = (F) => {
3230
+ if (!wt)
3091
3231
  return;
3092
- const D = new ue();
3093
- if (e.getSize(D), N.clientX >= D.x)
3232
+ const D = new de();
3233
+ if (e.getSize(D), F.clientX >= D.x)
3094
3234
  return;
3095
- S(N);
3096
- const L = u.intersectObjects(xe.children);
3097
- L.length > 0 && t.three.getObject(L[0].object.uuid);
3098
- }, U = R.current;
3099
- return U.addEventListener("mousemove", S, !1), U.addEventListener("click", F, !1), () => {
3100
- U.removeEventListener("mousemove", S), U.removeEventListener("click", F);
3235
+ S(F);
3236
+ const U = d.intersectObjects(xe.children);
3237
+ U.length > 0 && t.three.getObject(U[0].object.uuid);
3238
+ }, $ = R.current;
3239
+ return $.addEventListener("mousemove", S, !1), $.addEventListener("click", B, !1), () => {
3240
+ $.removeEventListener("mousemove", S), $.removeEventListener("click", B);
3101
3241
  };
3102
3242
  }
3103
3243
  }, [n, e]);
3104
3244
  const ee = [];
3105
- return ne.forEach((u, p) => {
3106
- ee.push(p);
3245
+ return ne.forEach((d, m) => {
3246
+ ee.push(m);
3107
3247
  }), /* @__PURE__ */ c.jsxs("div", { className: "multiview", children: [
3108
- /* @__PURE__ */ c.jsx("canvas", { ref: x }),
3248
+ /* @__PURE__ */ c.jsx("canvas", { ref: w }),
3109
3249
  /* @__PURE__ */ c.jsxs("div", { className: `cameras ${n === "Single" || n === "Stacked" ? "single" : ""}`, ref: R, children: [
3110
- n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(ke, { camera: $, options: ee, ref: T, onSelect: (u) => {
3250
+ n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (d) => {
3111
3251
  var b;
3112
- (b = ie.get($.name)) == null || b.dispose();
3113
- const p = ne.get(u);
3114
- p !== void 0 && (K($), $ = p, C(p, T.current));
3252
+ (b = ie.get(V.name)) == null || b.dispose();
3253
+ const m = ne.get(d);
3254
+ m !== void 0 && (K(V), V = m, C(m, T.current));
3115
3255
  } }) }),
3116
3256
  (n === "Side by Side" || n === "Stacked") && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3117
- /* @__PURE__ */ c.jsx(ke, { camera: $, options: ee, ref: T, onSelect: (u) => {
3257
+ /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (d) => {
3118
3258
  var b;
3119
- (b = ie.get($.name)) == null || b.dispose();
3120
- const p = ne.get(u);
3121
- p !== void 0 && (K($), $ = p, C(p, T.current));
3259
+ (b = ie.get(V.name)) == null || b.dispose();
3260
+ const m = ne.get(d);
3261
+ m !== void 0 && (K(V), V = m, C(m, T.current));
3122
3262
  } }),
3123
- /* @__PURE__ */ c.jsx(ke, { camera: re, options: ee, ref: B, onSelect: (u) => {
3263
+ /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (d) => {
3124
3264
  var b;
3125
3265
  (b = ie.get(re.name)) == null || b.dispose();
3126
- const p = ne.get(u);
3127
- p !== void 0 && (K(re), re = p, C(p, B.current));
3266
+ const m = ne.get(d);
3267
+ m !== void 0 && (K(re), re = m, C(m, G.current));
3128
3268
  } })
3129
3269
  ] }),
3130
3270
  n === "Quad" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3131
- /* @__PURE__ */ c.jsx(ke, { camera: $, options: ee, ref: T, onSelect: (u) => {
3271
+ /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (d) => {
3132
3272
  var b;
3133
- (b = ie.get($.name)) == null || b.dispose();
3134
- const p = ne.get(u);
3135
- p !== void 0 && (K($), $ = p, C(p, T.current));
3273
+ (b = ie.get(V.name)) == null || b.dispose();
3274
+ const m = ne.get(d);
3275
+ m !== void 0 && (K(V), V = m, C(m, T.current));
3136
3276
  } }),
3137
- /* @__PURE__ */ c.jsx(ke, { camera: re, options: ee, ref: B, onSelect: (u) => {
3277
+ /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (d) => {
3138
3278
  var b;
3139
3279
  (b = ie.get(re.name)) == null || b.dispose();
3140
- const p = ne.get(u);
3141
- p !== void 0 && (K(re), re = p, C(p, B.current));
3280
+ const m = ne.get(d);
3281
+ m !== void 0 && (K(re), re = m, C(m, G.current));
3142
3282
  } }),
3143
- /* @__PURE__ */ c.jsx(ke, { camera: Ae, options: ee, ref: oe, onSelect: (u) => {
3283
+ /* @__PURE__ */ c.jsx(Ie, { camera: Ne, options: ee, ref: se, onSelect: (d) => {
3144
3284
  var b;
3145
- (b = ie.get(Ae.name)) == null || b.dispose();
3146
- const p = ne.get(u);
3147
- p !== void 0 && (K(Ae), Ae = p, C(p, oe.current));
3285
+ (b = ie.get(Ne.name)) == null || b.dispose();
3286
+ const m = ne.get(d);
3287
+ m !== void 0 && (K(Ne), Ne = m, C(m, se.current));
3148
3288
  } }),
3149
- /* @__PURE__ */ c.jsx(ke, { camera: Ie, options: ee, ref: H, onSelect: (u) => {
3289
+ /* @__PURE__ */ c.jsx(Ie, { camera: Le, options: ee, ref: H, onSelect: (d) => {
3150
3290
  var b;
3151
- (b = ie.get(Ie.name)) == null || b.dispose();
3152
- const p = ne.get(u);
3153
- p !== void 0 && (K(Ie), Ie = p, C(p, H.current));
3291
+ (b = ie.get(Le.name)) == null || b.dispose();
3292
+ const m = ne.get(d);
3293
+ m !== void 0 && (K(Le), Le = m, C(m, H.current));
3154
3294
  } })
3155
3295
  ] })
3156
3296
  ] }),
3157
3297
  /* @__PURE__ */ c.jsxs("div", { className: "settings", children: [
3158
3298
  /* @__PURE__ */ c.jsx(
3159
- yt,
3299
+ xt,
3160
3300
  {
3161
- index: en.indexOf(n),
3162
- options: en,
3163
- onSelect: (u) => {
3164
- u !== n && (de(), i(u));
3301
+ index: an.indexOf(n),
3302
+ options: an,
3303
+ onSelect: (d) => {
3304
+ d !== n && (fe(), a(d));
3165
3305
  },
3166
3306
  open: s,
3167
- onToggle: (u) => {
3168
- h(u), l && d(!1), m && v(!1);
3307
+ onToggle: (d) => {
3308
+ f(d), l && u(!1), p && v(!1);
3169
3309
  }
3170
3310
  }
3171
3311
  ),
3172
3312
  /* @__PURE__ */ c.jsx(
3173
- yt,
3313
+ xt,
3174
3314
  {
3175
- index: tn.indexOf(vt),
3176
- options: tn,
3177
- onSelect: (u) => {
3178
- if (u !== vt)
3179
- switch (vt = u, vt) {
3315
+ index: rn.indexOf(Et),
3316
+ options: rn,
3317
+ onSelect: (d) => {
3318
+ if (d !== Et)
3319
+ switch (Et = d, Et) {
3180
3320
  case "Depth":
3181
- V.overrideMaterial = Ni;
3321
+ z.overrideMaterial = Xa;
3182
3322
  break;
3183
3323
  case "Normals":
3184
- V.overrideMaterial = Li;
3324
+ z.overrideMaterial = qa;
3185
3325
  break;
3186
3326
  default:
3187
3327
  case "Renderer":
3188
- V.overrideMaterial = null;
3328
+ z.overrideMaterial = null;
3189
3329
  break;
3190
3330
  case "Wireframe":
3191
- V.overrideMaterial = Ui;
3331
+ z.overrideMaterial = Ja;
3192
3332
  break;
3193
3333
  case "UVs":
3194
- V.overrideMaterial = Fi;
3334
+ z.overrideMaterial = Za;
3195
3335
  break;
3196
3336
  }
3197
3337
  },
3198
3338
  open: l,
3199
- onToggle: (u) => {
3200
- s && h(!1), d(u), m && v(!1);
3339
+ onToggle: (d) => {
3340
+ s && f(!1), u(d), p && v(!1);
3201
3341
  }
3202
3342
  }
3203
3343
  ),
3204
3344
  /* @__PURE__ */ c.jsx(
3205
- yt,
3345
+ xt,
3206
3346
  {
3207
3347
  index: 0,
3208
3348
  options: [
3209
3349
  "Orbit Mode",
3210
3350
  "Selection Mode"
3211
3351
  ],
3212
- onSelect: (u) => {
3213
- bt = u === "Selection Mode", it.visible = bt;
3352
+ onSelect: (d) => {
3353
+ wt = d === "Selection Mode", ot.visible = wt;
3214
3354
  },
3215
- open: m,
3216
- onToggle: (u) => {
3217
- s && h(!1), l && d(!1), v(u);
3355
+ open: p,
3356
+ onToggle: (d) => {
3357
+ s && f(!1), l && u(!1), v(d);
3218
3358
  }
3219
3359
  }
3220
3360
  )
3221
3361
  ] })
3222
3362
  ] });
3223
3363
  }
3224
- function or(t) {
3364
+ function mi(t) {
3225
3365
  return /* @__PURE__ */ c.jsxs("div", { className: "editor", ref: t.ref, style: t.style, children: [
3226
3366
  /* @__PURE__ */ c.jsx("header", { children: t.header }),
3227
3367
  t.children,
@@ -3229,40 +3369,40 @@ function or(t) {
3229
3369
  ] });
3230
3370
  }
3231
3371
  export {
3232
- Nt as Accordion,
3233
- qi as Application,
3234
- Et as BaseRemote,
3235
- vn as ChildObject,
3236
- yi as ContainerObject,
3237
- li as Draggable,
3238
- ci as DraggableItem,
3239
- ui as Dropdown,
3240
- di as DropdownItem,
3241
- or as Editor,
3242
- mi as InfiniteGridHelper,
3243
- ki as Inspector,
3244
- ar as MultiView,
3245
- gn as NavButton,
3246
- Qi as RemoteComponents,
3247
- nr as RemoteController,
3248
- Ji as RemoteTheatre,
3249
- er as RemoteThree,
3250
- tr as RemoteTweakpane,
3251
- rr as SceneInspector,
3252
- ir as SidePanel,
3253
- Y as ToolEvents,
3254
- bi as UVMaterial,
3255
- Ki as clamp,
3256
- Qn as colorToHex,
3257
- z as debugDispatcher,
3258
- hn as dispose,
3259
- ei as disposeMaterial,
3260
- Zi as disposeTexture,
3261
- Xi as distance,
3262
- fn as hierarchyUUID,
3263
- qn as isColor,
3264
- Zn as randomID,
3265
- Jn as resetThreeObjects,
3266
- Mt as round,
3267
- Dt as totalThreeObjects
3372
+ Bt as Accordion,
3373
+ ui as Application,
3374
+ Ct as BaseRemote,
3375
+ wn as ChildObject,
3376
+ ka as ContainerObject,
3377
+ xa as Draggable,
3378
+ wa as DraggableItem,
3379
+ Ca as Dropdown,
3380
+ Sa as DropdownItem,
3381
+ mi as Editor,
3382
+ Ra as InfiniteGridHelper,
3383
+ Wa as Inspector,
3384
+ pi as MultiView,
3385
+ En as NavButton,
3386
+ oa as RemoteComponents,
3387
+ di as RemoteController,
3388
+ Ut as RemoteTheatre,
3389
+ ha as RemoteThree,
3390
+ yn as RemoteTweakpane,
3391
+ hi as SceneInspector,
3392
+ fi as SidePanel,
3393
+ j as ToolEvents,
3394
+ ja as UVMaterial,
3395
+ si as clamp,
3396
+ aa as colorToHex,
3397
+ _ as debugDispatcher,
3398
+ gn as dispose,
3399
+ ra as disposeMaterial,
3400
+ li as disposeTexture,
3401
+ ci as distance,
3402
+ mn as hierarchyUUID,
3403
+ na as isColor,
3404
+ ta as randomID,
3405
+ ia as resetThreeObjects,
3406
+ _t as round,
3407
+ It as totalThreeObjects
3268
3408
  };