@needle-tools/engine 5.1.0-beta.1 → 5.1.0-beta.2
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/components.needle.json +1 -1
- package/dist/{materialx-jkHmVPez.js → materialx-BCzyAHFr.js} +1 -1
- package/dist/{materialx-B47Bz-xs.umd.cjs → materialx-BdEC3ugB.umd.cjs} +1 -1
- package/dist/{materialx-B85WjP7E.min.js → materialx-DnlAB5wd.min.js} +1 -1
- package/dist/{needle-engine.bundle-CWiO9cA8.umd.cjs → needle-engine.bundle-BcPtAnC9.umd.cjs} +98 -98
- package/dist/{needle-engine.bundle-DxJaiP7e.min.js → needle-engine.bundle-D0UTRn3W.min.js} +112 -112
- package/dist/{needle-engine.bundle-CFo3xWPu.js → needle-engine.bundle-H5HXbUCS.js} +2604 -2607
- package/dist/needle-engine.d.ts +8 -8
- package/dist/needle-engine.js +87 -87
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{vendor-1UvpPPSB.umd.cjs → vendor-CsClD1Nd.umd.cjs} +1 -1
- package/dist/{vendor-BQ2Vuntm.min.js → vendor-DQu6PDTB.min.js} +19 -19
- package/dist/{vendor-BslSKZPo.js → vendor-J7NvM88N.js} +342 -342
- package/lib/engine/api.d.ts +1 -1
- package/lib/engine/api.js +1 -1
- package/lib/engine/api.js.map +1 -1
- package/lib/engine/engine_init.js +2 -2
- package/lib/engine/engine_init.js.map +1 -1
- package/lib/engine/engine_license.d.ts +7 -7
- package/lib/engine/engine_license.js +72 -72
- package/lib/engine/engine_license.js.map +1 -1
- package/lib/engine/engine_networking_blob.js +3 -3
- package/lib/engine/engine_networking_blob.js.map +1 -1
- package/lib/engine/engine_utils_qrcode.js +2 -2
- package/lib/engine/engine_utils_qrcode.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +2 -2
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +2 -2
- package/lib/engine/webcomponents/needle menu/needle-menu.js +9 -9
- package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.js +2 -2
- package/lib/engine/webcomponents/needle-engine.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.loading.js +2 -2
- package/lib/engine/webcomponents/needle-engine.loading.js.map +1 -1
- package/lib/engine/xr/TempXRContext.js +2 -2
- package/lib/engine/xr/TempXRContext.js.map +1 -1
- package/lib/engine-components/NeedleMenu.d.ts +1 -1
- package/lib/engine-components/NeedleMenu.js +1 -1
- package/lib/engine-components/export/usdz/USDZExporter.js +4 -4
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +9 -5
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
- package/lib/engine-components/particlesystem/ParticleSystem.js +4 -0
- package/lib/engine-components/particlesystem/ParticleSystem.js.map +1 -1
- package/lib/engine-components/webxr/WebXRImageTracking.js +3 -0
- package/lib/engine-components/webxr/WebXRImageTracking.js.map +1 -1
- package/package.json +2 -2
- package/plugins/common/license.js +4 -4
- package/plugins/vite/build-pipeline.js +33 -2
- package/plugins/vite/license.js +4 -4
- package/src/engine/api.ts +1 -1
- package/src/engine/engine_init.ts +2 -2
- package/src/engine/engine_license.ts +69 -69
- package/src/engine/engine_networking_blob.ts +3 -3
- package/src/engine/engine_utils_qrcode.ts +2 -2
- package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +2 -2
- package/src/engine/webcomponents/needle menu/needle-menu.ts +10 -10
- package/src/engine/webcomponents/needle-engine.loading.ts +6 -6
- package/src/engine/webcomponents/needle-engine.ts +2 -2
- package/src/engine/xr/TempXRContext.ts +2 -2
- package/src/engine-components/NeedleMenu.ts +2 -2
- package/src/engine-components/export/usdz/USDZExporter.ts +4 -4
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +12 -5
- package/src/engine-components/particlesystem/ParticleSystem.ts +4 -0
- package/src/engine-components/webxr/WebXRImageTracking.ts +1 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Object3D as cc, PlaneGeometry as lc, Layers as Br, MeshBasicMaterial as ea, DoubleSide as Gs, AdditiveBlending as uc, InstancedBufferAttribute as yn, DynamicDrawUsage as ee, InstancedBufferGeometry as jl, Uniform$1 as Re, ShaderMaterial as Ws, BufferGeometry as yi, BufferAttribute as he, Mesh as Zr, MeshStandardMaterial as Gl, MeshPhysicalMaterial as Wl, ShaderChunk as $l, Triangle as Mn, Vector3 as H, Box3 as Fe, Matrix4 as Oe, Line3 as tn, Plane as hc, Vector2 as fn, BackSide as Hl, REVISION as fc, Ray as ql, FrontSide as na, LineSegments as dc, LineLoop as pc, Line as mc, Points as yc, Sphere as Xl, BatchedMesh as Yl, Matrix3 as Zl, Vector4 as vo,
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return typeof r == "string" &&
|
|
1
|
+
import { Object3D as cc, PlaneGeometry as lc, Layers as Br, MeshBasicMaterial as ea, DoubleSide as Gs, AdditiveBlending as uc, InstancedBufferAttribute as yn, DynamicDrawUsage as ee, InstancedBufferGeometry as jl, Uniform$1 as Re, ShaderMaterial as Ws, BufferGeometry as yi, BufferAttribute as he, Mesh as Zr, MeshStandardMaterial as Gl, MeshPhysicalMaterial as Wl, ShaderChunk as $l, Triangle as Mn, Vector3 as H, Box3 as Fe, Matrix4 as Oe, Line3 as tn, Plane as hc, Vector2 as fn, BackSide as Hl, REVISION as fc, Ray as ql, FrontSide as na, LineSegments as dc, LineLoop as pc, Line as mc, Points as yc, Sphere as Xl, BatchedMesh as Yl, Matrix3 as Zl, Vector4 as vo, InterpolateDiscrete as Kl, InterpolateLinear as gc, AnimationClip as Ql, QuaternionKeyframeTrack as tu, ColorKeyframeTrack as eu, VectorKeyframeTrack as nu, BooleanKeyframeTrack as iu, NumberKeyframeTrack as ru, PropertyBinding as ia } from "./three.js";
|
|
2
|
+
const su = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
3
|
+
function ou(r) {
|
|
4
|
+
return typeof r == "string" && su.test(r);
|
|
5
5
|
}
|
|
6
6
|
const Ft = [];
|
|
7
7
|
for (let r = 0; r < 256; ++r)
|
|
8
8
|
Ft.push((r + 256).toString(16).slice(1));
|
|
9
|
-
function
|
|
9
|
+
function au(r, t = 0) {
|
|
10
10
|
return Ft[r[t + 0]] + Ft[r[t + 1]] + Ft[r[t + 2]] + Ft[r[t + 3]] + "-" + Ft[r[t + 4]] + Ft[r[t + 5]] + "-" + Ft[r[t + 6]] + Ft[r[t + 7]] + "-" + Ft[r[t + 8]] + Ft[r[t + 9]] + "-" + Ft[r[t + 10]] + Ft[r[t + 11]] + Ft[r[t + 12]] + Ft[r[t + 13]] + Ft[r[t + 14]] + Ft[r[t + 15]];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
if (!
|
|
12
|
+
function cu(r) {
|
|
13
|
+
if (!ou(r))
|
|
14
14
|
throw TypeError("Invalid UUID");
|
|
15
15
|
let t;
|
|
16
16
|
const e = new Uint8Array(16);
|
|
17
17
|
return e[0] = (t = parseInt(r.slice(0, 8), 16)) >>> 24, e[1] = t >>> 16 & 255, e[2] = t >>> 8 & 255, e[3] = t & 255, e[4] = (t = parseInt(r.slice(9, 13), 16)) >>> 8, e[5] = t & 255, e[6] = (t = parseInt(r.slice(14, 18), 16)) >>> 8, e[7] = t & 255, e[8] = (t = parseInt(r.slice(19, 23), 16)) >>> 8, e[9] = t & 255, e[10] = (t = parseInt(r.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = t / 4294967296 & 255, e[12] = t >>> 24 & 255, e[13] = t >>> 16 & 255, e[14] = t >>> 8 & 255, e[15] = t & 255, e;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function lu(r) {
|
|
20
20
|
r = unescape(encodeURIComponent(r));
|
|
21
21
|
const t = [];
|
|
22
22
|
for (let e = 0; e < r.length; ++e)
|
|
23
23
|
t.push(r.charCodeAt(e));
|
|
24
24
|
return t;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
26
|
+
const uu = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", hu = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
27
|
+
function fu(r, t, e) {
|
|
28
28
|
function n(i, s, a, o) {
|
|
29
29
|
var c;
|
|
30
|
-
if (typeof i == "string" && (i =
|
|
30
|
+
if (typeof i == "string" && (i = lu(i)), typeof s == "string" && (s = cu(s)), ((c = s) === null || c === void 0 ? void 0 : c.length) !== 16)
|
|
31
31
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
32
32
|
let l = new Uint8Array(16 + i.length);
|
|
33
33
|
if (l.set(s), l.set(i, s.length), l = e(l), l[6] = l[6] & 15 | t, l[8] = l[8] & 63 | 128, a) {
|
|
@@ -36,15 +36,15 @@ function du(r, t, e) {
|
|
|
36
36
|
a[o + h] = l[h];
|
|
37
37
|
return a;
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return au(l);
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
42
|
n.name = r;
|
|
43
43
|
} catch {
|
|
44
44
|
}
|
|
45
|
-
return n.DNS =
|
|
45
|
+
return n.DNS = uu, n.URL = hu, n;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function du(r, t, e, n) {
|
|
48
48
|
switch (r) {
|
|
49
49
|
case 0:
|
|
50
50
|
return t & e ^ ~t & n;
|
|
@@ -59,7 +59,7 @@ function pu(r, t, e, n) {
|
|
|
59
59
|
function gs(r, t) {
|
|
60
60
|
return r << t | r >>> 32 - t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function pu(r) {
|
|
63
63
|
const t = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
64
64
|
if (typeof r == "string") {
|
|
65
65
|
const a = unescape(encodeURIComponent(r));
|
|
@@ -84,14 +84,14 @@ function mu(r) {
|
|
|
84
84
|
o[p] = gs(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1);
|
|
85
85
|
let c = e[0], l = e[1], h = e[2], d = e[3], m = e[4];
|
|
86
86
|
for (let p = 0; p < 80; ++p) {
|
|
87
|
-
const b = Math.floor(p / 20), T = gs(c, 5) +
|
|
87
|
+
const b = Math.floor(p / 20), T = gs(c, 5) + du(b, l, h, d) + m + t[b] + o[p] >>> 0;
|
|
88
88
|
m = d, d = h, h = gs(l, 30) >>> 0, l = c, c = T;
|
|
89
89
|
}
|
|
90
90
|
e[0] = e[0] + c >>> 0, e[1] = e[1] + l >>> 0, e[2] = e[2] + h >>> 0, e[3] = e[3] + d >>> 0, e[4] = e[4] + m >>> 0;
|
|
91
91
|
}
|
|
92
92
|
return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const Td = fu("v5", 80, pu), vs = 2, Ue = 4, Ze = 4, mu = 4, cn = new Int32Array(2), ra = new Float32Array(cn.buffer), sa = new Float64Array(cn.buffer), cr = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
95
95
|
class Qe {
|
|
96
96
|
constructor(t, e) {
|
|
97
97
|
this.low = t | 0, this.high = e | 0;
|
|
@@ -596,7 +596,7 @@ class vc {
|
|
|
596
596
|
* Finalize a buffer, poiting to the given `root_table`.
|
|
597
597
|
*/
|
|
598
598
|
finish(t, e, n) {
|
|
599
|
-
const i = n ?
|
|
599
|
+
const i = n ? mu : 0;
|
|
600
600
|
if (e) {
|
|
601
601
|
const s = e;
|
|
602
602
|
if (this.prep(this.minalign, Ue + Ze + i), s.length != Ze)
|
|
@@ -750,13 +750,13 @@ async function Sc(r) {
|
|
|
750
750
|
return t.json();
|
|
751
751
|
throw new Error(t.statusText);
|
|
752
752
|
}
|
|
753
|
-
async function
|
|
753
|
+
async function yu(r) {
|
|
754
754
|
return await Sc(`${r}/profilesList.json`);
|
|
755
755
|
}
|
|
756
|
-
async function
|
|
756
|
+
async function Cd(r, t, e = null, n = !0) {
|
|
757
757
|
if (!r)
|
|
758
758
|
throw new Error("No xrInputSource supplied");
|
|
759
|
-
const i = await
|
|
759
|
+
const i = await yu(t);
|
|
760
760
|
let s;
|
|
761
761
|
if (r.profiles.some((c) => {
|
|
762
762
|
const l = i[c];
|
|
@@ -789,13 +789,13 @@ async function Md(r, t, e = null, n = !0) {
|
|
|
789
789
|
}
|
|
790
790
|
return { profile: a, assetPath: o };
|
|
791
791
|
}
|
|
792
|
-
const
|
|
792
|
+
const gu = {
|
|
793
793
|
xAxis: 0,
|
|
794
794
|
yAxis: 0,
|
|
795
795
|
button: 0,
|
|
796
796
|
state: It.ComponentState.DEFAULT
|
|
797
797
|
};
|
|
798
|
-
function
|
|
798
|
+
function vu(r = 0, t = 0) {
|
|
799
799
|
let e = r, n = t;
|
|
800
800
|
if (Math.sqrt(r * r + t * t) > 1) {
|
|
801
801
|
const a = Math.atan2(t, r);
|
|
@@ -806,9 +806,9 @@ function Su(r = 0, t = 0) {
|
|
|
806
806
|
normalizedYAxis: n * 0.5 + 0.5
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
class
|
|
809
|
+
class Su {
|
|
810
810
|
constructor(t) {
|
|
811
|
-
this.componentProperty = t.componentProperty, this.states = t.states, this.valueNodeName = t.valueNodeName, this.valueNodeProperty = t.valueNodeProperty, this.valueNodeProperty === It.VisualResponseProperty.TRANSFORM && (this.minNodeName = t.minNodeName, this.maxNodeName = t.maxNodeName), this.value = 0, this.updateFromComponent(
|
|
811
|
+
this.componentProperty = t.componentProperty, this.states = t.states, this.valueNodeName = t.valueNodeName, this.valueNodeProperty = t.valueNodeProperty, this.valueNodeProperty === It.VisualResponseProperty.TRANSFORM && (this.minNodeName = t.minNodeName, this.maxNodeName = t.maxNodeName), this.value = 0, this.updateFromComponent(gu);
|
|
812
812
|
}
|
|
813
813
|
/**
|
|
814
814
|
* Computes the visual response's interpolation weight based on component state
|
|
@@ -824,7 +824,7 @@ class xu {
|
|
|
824
824
|
button: n,
|
|
825
825
|
state: i
|
|
826
826
|
}) {
|
|
827
|
-
const { normalizedXAxis: s, normalizedYAxis: a } =
|
|
827
|
+
const { normalizedXAxis: s, normalizedYAxis: a } = vu(t, e);
|
|
828
828
|
switch (this.componentProperty) {
|
|
829
829
|
case It.ComponentProperty.X_AXIS:
|
|
830
830
|
this.value = this.states.includes(i) ? s : 0.5;
|
|
@@ -843,7 +843,7 @@ class xu {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
class
|
|
846
|
+
class xu {
|
|
847
847
|
/**
|
|
848
848
|
* @param {Object} componentId - Id of the component
|
|
849
849
|
* @param {Object} componentDescription - Description of the component to be created
|
|
@@ -852,7 +852,7 @@ class _u {
|
|
|
852
852
|
if (!t || !e || !e.visualResponses || !e.gamepadIndices || Object.keys(e.gamepadIndices).length === 0)
|
|
853
853
|
throw new Error("Invalid arguments supplied");
|
|
854
854
|
this.id = t, this.type = e.type, this.rootNodeName = e.rootNodeName, this.touchPointNodeName = e.touchPointNodeName, this.visualResponses = {}, Object.keys(e.visualResponses).forEach((n) => {
|
|
855
|
-
const i = new
|
|
855
|
+
const i = new Su(e.visualResponses[n]);
|
|
856
856
|
this.visualResponses[n] = i;
|
|
857
857
|
}), this.gamepadIndices = Object.assign({}, e.gamepadIndices), this.values = {
|
|
858
858
|
state: It.ComponentState.DEFAULT,
|
|
@@ -878,7 +878,7 @@ class _u {
|
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
class
|
|
881
|
+
class Md {
|
|
882
882
|
/**
|
|
883
883
|
* @param {Object} xrInputSource - The XRInputSource to build the MotionController around
|
|
884
884
|
* @param {Object} profile - The best matched profile description for the supplied xrInputSource
|
|
@@ -891,7 +891,7 @@ class wd {
|
|
|
891
891
|
throw new Error("No profile supplied");
|
|
892
892
|
this.xrInputSource = t, this.assetUrl = n, this.id = e.profileId, this.layoutDescription = e.layouts[t.handedness], this.components = {}, Object.keys(this.layoutDescription.components).forEach((i) => {
|
|
893
893
|
const s = this.layoutDescription.components[i];
|
|
894
|
-
this.components[i] = new
|
|
894
|
+
this.components[i] = new xu(i, s);
|
|
895
895
|
}), this.updateFromGamepad();
|
|
896
896
|
}
|
|
897
897
|
get gripSpace() {
|
|
@@ -921,7 +921,7 @@ class wd {
|
|
|
921
921
|
const Wt = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
|
|
922
922
|
let oa = 1234567;
|
|
923
923
|
const xc = Math.PI / 180, _c = 180 / Math.PI;
|
|
924
|
-
function
|
|
924
|
+
function _u() {
|
|
925
925
|
const r = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
|
|
926
926
|
return (Wt[r & 255] + Wt[r >> 8 & 255] + Wt[r >> 16 & 255] + Wt[r >> 24 & 255] + "-" + Wt[t & 255] + Wt[t >> 8 & 255] + "-" + Wt[t >> 16 & 15 | 64] + Wt[t >> 24 & 255] + "-" + Wt[e & 63 | 128] + Wt[e >> 8 & 255] + "-" + Wt[e >> 16 & 255] + Wt[e >> 24 & 255] + Wt[n & 255] + Wt[n >> 8 & 255] + Wt[n >> 16 & 255] + Wt[n >> 24 & 255]).toLowerCase();
|
|
927
927
|
}
|
|
@@ -931,57 +931,57 @@ function Ne(r, t, e) {
|
|
|
931
931
|
function bc(r, t) {
|
|
932
932
|
return (r % t + t) % t;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function bu(r, t, e, n, i) {
|
|
935
935
|
return n + (r - t) * (i - n) / (e - t);
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Tu(r, t, e) {
|
|
938
938
|
return r !== t ? (e - r) / (t - r) : 0;
|
|
939
939
|
}
|
|
940
940
|
function Tc(r, t, e) {
|
|
941
941
|
return (1 - e) * r + e * t;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Cu(r, t, e, n) {
|
|
944
944
|
return Tc(r, t, 1 - Math.exp(-e * n));
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Mu(r, t = 1) {
|
|
947
947
|
return t - Math.abs(bc(r, t * 2) - t);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function wu(r, t, e) {
|
|
950
950
|
return r <= t ? 0 : r >= e ? 1 : (r = (r - t) / (e - t), r * r * (3 - 2 * r));
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function Pu(r, t, e) {
|
|
953
953
|
return r <= t ? 0 : r >= e ? 1 : (r = (r - t) / (e - t), r * r * r * (r * (r * 6 - 15) + 10));
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Eu(r, t) {
|
|
956
956
|
return r + Math.floor(Math.random() * (t - r + 1));
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function ku(r, t) {
|
|
959
959
|
return r + Math.random() * (t - r);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Ru(r) {
|
|
962
962
|
return r * (0.5 - Math.random());
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Au(r) {
|
|
965
965
|
r !== void 0 && (oa = r);
|
|
966
966
|
let t = oa += 1831565813;
|
|
967
967
|
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function Ou(r) {
|
|
970
970
|
return r * xc;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function zu(r) {
|
|
973
973
|
return r * _c;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Iu(r) {
|
|
976
976
|
return (r & r - 1) === 0 && r !== 0;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Bu(r) {
|
|
979
979
|
return Math.pow(2, Math.ceil(Math.log(r) / Math.LN2));
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Nu(r) {
|
|
982
982
|
return Math.pow(2, Math.floor(Math.log(r) / Math.LN2));
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function Uu(r, t, e, n, i) {
|
|
985
985
|
const s = Math.cos, a = Math.sin, o = s(e / 2), c = a(e / 2), l = s((t + n) / 2), h = a((t + n) / 2), d = s((t - n) / 2), m = a((t - n) / 2), p = s((n - t) / 2), b = a((n - t) / 2);
|
|
986
986
|
switch (i) {
|
|
987
987
|
case "XYX":
|
|
@@ -1006,7 +1006,7 @@ function Du(r, t, e, n, i) {
|
|
|
1006
1006
|
console.warn("../math.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + i);
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Du(r, t) {
|
|
1010
1010
|
switch (t.constructor) {
|
|
1011
1011
|
case Float32Array:
|
|
1012
1012
|
return r;
|
|
@@ -1026,7 +1026,7 @@ function Lu(r, t) {
|
|
|
1026
1026
|
throw new Error("Invalid component type.");
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Lu(r, t) {
|
|
1030
1030
|
switch (t.constructor) {
|
|
1031
1031
|
case Float32Array:
|
|
1032
1032
|
return r;
|
|
@@ -1049,28 +1049,28 @@ function Fu(r, t) {
|
|
|
1049
1049
|
const Zn = {
|
|
1050
1050
|
DEG2RAD: xc,
|
|
1051
1051
|
RAD2DEG: _c,
|
|
1052
|
-
generateUUID:
|
|
1052
|
+
generateUUID: _u,
|
|
1053
1053
|
clamp: Ne,
|
|
1054
1054
|
euclideanModulo: bc,
|
|
1055
|
-
mapLinear:
|
|
1056
|
-
inverseLerp:
|
|
1055
|
+
mapLinear: bu,
|
|
1056
|
+
inverseLerp: Tu,
|
|
1057
1057
|
lerp: Tc,
|
|
1058
|
-
damp:
|
|
1059
|
-
pingpong:
|
|
1060
|
-
smoothstep:
|
|
1061
|
-
smootherstep:
|
|
1062
|
-
randInt:
|
|
1063
|
-
randFloat:
|
|
1064
|
-
randFloatSpread:
|
|
1065
|
-
seededRandom:
|
|
1066
|
-
degToRad:
|
|
1067
|
-
radToDeg:
|
|
1068
|
-
isPowerOfTwo:
|
|
1069
|
-
ceilPowerOfTwo:
|
|
1070
|
-
floorPowerOfTwo:
|
|
1071
|
-
setQuaternionFromProperEuler:
|
|
1072
|
-
normalize:
|
|
1073
|
-
denormalize:
|
|
1058
|
+
damp: Cu,
|
|
1059
|
+
pingpong: Mu,
|
|
1060
|
+
smoothstep: wu,
|
|
1061
|
+
smootherstep: Pu,
|
|
1062
|
+
randInt: Eu,
|
|
1063
|
+
randFloat: ku,
|
|
1064
|
+
randFloatSpread: Ru,
|
|
1065
|
+
seededRandom: Au,
|
|
1066
|
+
degToRad: Ou,
|
|
1067
|
+
radToDeg: zu,
|
|
1068
|
+
isPowerOfTwo: Iu,
|
|
1069
|
+
ceilPowerOfTwo: Bu,
|
|
1070
|
+
floorPowerOfTwo: Nu,
|
|
1071
|
+
setQuaternionFromProperEuler: Uu,
|
|
1072
|
+
normalize: Lu,
|
|
1073
|
+
denormalize: Du
|
|
1074
1074
|
};
|
|
1075
1075
|
class rt {
|
|
1076
1076
|
constructor(t = 0, e = 0, n = 0, i = 1) {
|
|
@@ -1600,7 +1600,7 @@ class Le {
|
|
|
1600
1600
|
return e[3] = 0, e[7] = 0, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, this;
|
|
1601
1601
|
}
|
|
1602
1602
|
makeRotationFromQuaternion(t) {
|
|
1603
|
-
return this.compose(
|
|
1603
|
+
return this.compose(Fu, t, Vu);
|
|
1604
1604
|
}
|
|
1605
1605
|
lookAt(t, e, n) {
|
|
1606
1606
|
const i = this.elements;
|
|
@@ -1724,7 +1724,7 @@ class Le {
|
|
|
1724
1724
|
return t[e] = n[0], t[e + 1] = n[1], t[e + 2] = n[2], t[e + 3] = n[3], t[e + 4] = n[4], t[e + 5] = n[5], t[e + 6] = n[6], t[e + 7] = n[7], t[e + 8] = n[8], t[e + 9] = n[9], t[e + 10] = n[10], t[e + 11] = n[11], t[e + 12] = n[12], t[e + 13] = n[13], t[e + 14] = n[14], t[e + 15] = n[15], t;
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
|
-
const Bn = new G(), Ee = new Le(),
|
|
1727
|
+
const Bn = new G(), Ee = new Le(), Fu = new G(0, 0, 0), Vu = new G(1, 1, 1), rn = new G(), ur = new G(), ue = new G(), la = new Le(), ua = new rt();
|
|
1728
1728
|
class Si {
|
|
1729
1729
|
constructor(t = 0, e = 0, n = 0, i = Si.DEFAULT_ORDER) {
|
|
1730
1730
|
this.isEuler = !0, this._x = t, this._y = e, this._z = n, this._order = i;
|
|
@@ -2384,7 +2384,7 @@ class wn {
|
|
|
2384
2384
|
return new wn(t.p0, t.p1, t.p2, t.p3);
|
|
2385
2385
|
}
|
|
2386
2386
|
}
|
|
2387
|
-
const xi = (r) => ({ r: r.x, g: r.y, b: r.z, a: r.w }), _i = (r) => new fe(r.r, r.g, r.b, r.a),
|
|
2387
|
+
const xi = (r) => ({ r: r.x, g: r.y, b: r.z, a: r.w }), _i = (r) => new fe(r.r, r.g, r.b, r.a), Ju = (r, t) => {
|
|
2388
2388
|
switch (t) {
|
|
2389
2389
|
case "Vector3":
|
|
2390
2390
|
return new G(r.x, r.y, r.z);
|
|
@@ -2397,7 +2397,7 @@ const xi = (r) => ({ r: r.x, g: r.y, b: r.z, a: r.w }), _i = (r) => new fe(r.r,
|
|
|
2397
2397
|
default:
|
|
2398
2398
|
return r;
|
|
2399
2399
|
}
|
|
2400
|
-
},
|
|
2400
|
+
}, ju = (r, t) => {
|
|
2401
2401
|
switch (t) {
|
|
2402
2402
|
case "Vector3":
|
|
2403
2403
|
return { x: r.x, y: r.y, z: r.z };
|
|
@@ -2491,11 +2491,11 @@ class un {
|
|
|
2491
2491
|
return this.keys[0][0].constructor.name, {
|
|
2492
2492
|
type: "CLinearFunction",
|
|
2493
2493
|
subType: this.subType,
|
|
2494
|
-
keys: this.keys.map(([t, e]) => ({ value:
|
|
2494
|
+
keys: this.keys.map(([t, e]) => ({ value: ju(t, this.subType), pos: e }))
|
|
2495
2495
|
};
|
|
2496
2496
|
}
|
|
2497
2497
|
static fromJSON(t) {
|
|
2498
|
-
return new un(t.keys.map((e) => [
|
|
2498
|
+
return new un(t.keys.map((e) => [Ju(e.value, t.subType), e.pos]), t.subType);
|
|
2499
2499
|
}
|
|
2500
2500
|
clone() {
|
|
2501
2501
|
return this.subType === "Number" ? new un(this.keys.map(([t, e]) => [t, e]), this.subType) : new un(this.keys.map(([t, e]) => [t.clone(), e]), this.subType);
|
|
@@ -2647,7 +2647,7 @@ class En {
|
|
|
2647
2647
|
return new En(this.a, this.b);
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
class
|
|
2650
|
+
class Gu {
|
|
2651
2651
|
constructor() {
|
|
2652
2652
|
this.functions = new Array();
|
|
2653
2653
|
}
|
|
@@ -2694,7 +2694,7 @@ class Wu {
|
|
|
2694
2694
|
return this.functions.length;
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
|
-
class bi extends
|
|
2697
|
+
class bi extends Gu {
|
|
2698
2698
|
constructor(t = [[new wn(0, 1 / 3, 1 / 3 * 2, 1), 0]]) {
|
|
2699
2699
|
super(), this.type = "function", this.functions = t;
|
|
2700
2700
|
}
|
|
@@ -2858,7 +2858,7 @@ class kn {
|
|
|
2858
2858
|
return new kn(this.x, this.y, this.z);
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function Wu(r) {
|
|
2862
2862
|
return r.type === "Vector3Function" ? kn.fromJSON(r) : new kn(new it(0), new it(0), new it(0));
|
|
2863
2863
|
}
|
|
2864
2864
|
function $r(r) {
|
|
@@ -2872,7 +2872,7 @@ function $r(r) {
|
|
|
2872
2872
|
case "Euler":
|
|
2873
2873
|
return Cc(r);
|
|
2874
2874
|
case "Vector3Function":
|
|
2875
|
-
return
|
|
2875
|
+
return Wu(r);
|
|
2876
2876
|
default:
|
|
2877
2877
|
return new it(0);
|
|
2878
2878
|
}
|
|
@@ -2973,7 +2973,7 @@ class wi {
|
|
|
2973
2973
|
function fr(r, t) {
|
|
2974
2974
|
return Math.floor(Math.random() * (t - r)) + r;
|
|
2975
2975
|
}
|
|
2976
|
-
const Kr = new G(0, 1, 0), Qr = new G(0, 0, 0),
|
|
2976
|
+
const Kr = new G(0, 1, 0), Qr = new G(0, 0, 0), $u = new G(1, 1, 1), ha = new G(0, 0, 1);
|
|
2977
2977
|
class Pi {
|
|
2978
2978
|
constructor(t = {}) {
|
|
2979
2979
|
var e, n, i, s, a, o, c;
|
|
@@ -3246,7 +3246,7 @@ const Hs = {
|
|
|
3246
3246
|
loadJSON: Ri.fromJSON
|
|
3247
3247
|
}
|
|
3248
3248
|
};
|
|
3249
|
-
function
|
|
3249
|
+
function Hu(r, t) {
|
|
3250
3250
|
return Hs[r.type].loadJSON(r, t);
|
|
3251
3251
|
}
|
|
3252
3252
|
class Ai {
|
|
@@ -3483,7 +3483,7 @@ class bs {
|
|
|
3483
3483
|
return this.next !== null;
|
|
3484
3484
|
}
|
|
3485
3485
|
}
|
|
3486
|
-
class
|
|
3486
|
+
class qu {
|
|
3487
3487
|
constructor() {
|
|
3488
3488
|
this.length = 0, this.head = this.tail = null;
|
|
3489
3489
|
}
|
|
@@ -3537,7 +3537,7 @@ class Xu {
|
|
|
3537
3537
|
yield t.data, t = t.next;
|
|
3538
3538
|
}
|
|
3539
3539
|
}
|
|
3540
|
-
class
|
|
3540
|
+
class Xu {
|
|
3541
3541
|
constructor() {
|
|
3542
3542
|
this.startSpeed = 0, this.startColor = new fe(), this.startSize = new G(1, 1, 1), this.position = new G(), this.velocity = new G(), this.age = 0, this.life = 1, this.size = new G(1, 1, 1), this.speedModifier = 1, this.rotation = 0, this.color = new fe(), this.uvTile = 0, this.memory = [];
|
|
3543
3543
|
}
|
|
@@ -3548,17 +3548,17 @@ class Yu {
|
|
|
3548
3548
|
this.memory.length = 0;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
class
|
|
3551
|
+
class Yu {
|
|
3552
3552
|
constructor(t, e, n) {
|
|
3553
3553
|
this.position = t, this.size = e, this.color = n;
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
class qs {
|
|
3557
3557
|
constructor() {
|
|
3558
|
-
this.startSpeed = 0, this.startColor = new fe(), this.startSize = new G(1, 1, 1), this.position = new G(), this.velocity = new G(), this.age = 0, this.life = 1, this.size = new G(1, 1, 1), this.length = 100, this.speedModifier = 1, this.color = new fe(), this.previous = new
|
|
3558
|
+
this.startSpeed = 0, this.startColor = new fe(), this.startSize = new G(1, 1, 1), this.position = new G(), this.velocity = new G(), this.age = 0, this.life = 1, this.size = new G(1, 1, 1), this.length = 100, this.speedModifier = 1, this.color = new fe(), this.previous = new qu(), this.uvTile = 0, this.memory = [];
|
|
3559
3559
|
}
|
|
3560
3560
|
update() {
|
|
3561
|
-
for (this.age <= this.life ? this.previous.push(new
|
|
3561
|
+
for (this.age <= this.life ? this.previous.push(new Yu(this.position.clone(), this.size.x, this.color.clone())) : this.previous.length > 0 && this.previous.dequeue(); this.previous.length > this.length; )
|
|
3562
3562
|
this.previous.dequeue();
|
|
3563
3563
|
}
|
|
3564
3564
|
get died() {
|
|
@@ -3755,11 +3755,11 @@ class ji {
|
|
|
3755
3755
|
t.set(this.v_.x / i, this.v2_.x / s, e.velocity.x, e.position.x, this.v_.y / i, this.v2_.y / s, e.velocity.y, e.position.y, this.v_.z / i, this.v2_.z / s, e.velocity.z, e.position.z, 0, 0, 0, 1);
|
|
3756
3756
|
}
|
|
3757
3757
|
else
|
|
3758
|
-
e.rotation instanceof rt ? n = e.rotation : (this.q_.setFromAxisAngle(ha, e.rotation), n = this.q_), t.compose(e.position, n,
|
|
3758
|
+
e.rotation instanceof rt ? n = e.rotation : (this.q_.setFromAxisAngle(ha, e.rotation), n = this.q_), t.compose(e.position, n, $u);
|
|
3759
3759
|
this.particleSystem.worldSpace || t.multiplyMatrices(this.particleSystem.emitter.matrixWorld, t);
|
|
3760
3760
|
}
|
|
3761
3761
|
}
|
|
3762
|
-
const
|
|
3762
|
+
const Zu = 0.5 * (Math.sqrt(3) - 1), ei = (3 - Math.sqrt(3)) / 6, Ku = 1 / 3, Ie = 1 / 6, Qu = (Math.sqrt(5) - 1) / 4, Ut = (5 - Math.sqrt(5)) / 20, zt = new Float32Array([
|
|
3763
3763
|
1,
|
|
3764
3764
|
1,
|
|
3765
3765
|
0,
|
|
@@ -3928,15 +3928,15 @@ const Ku = 0.5 * (Math.sqrt(3) - 1), ei = (3 - Math.sqrt(3)) / 6, Qu = 1 / 3, Ie
|
|
|
3928
3928
|
]);
|
|
3929
3929
|
class Mc {
|
|
3930
3930
|
constructor(t = Math.random) {
|
|
3931
|
-
const e = typeof t == "function" ? t :
|
|
3932
|
-
this.p =
|
|
3931
|
+
const e = typeof t == "function" ? t : eh(t);
|
|
3932
|
+
this.p = th(e), this.perm = new Uint8Array(512), this.permMod12 = new Uint8Array(512);
|
|
3933
3933
|
for (let n = 0; n < 512; n++)
|
|
3934
3934
|
this.perm[n] = this.p[n & 255], this.permMod12[n] = this.perm[n] % 12;
|
|
3935
3935
|
}
|
|
3936
3936
|
noise2D(t, e) {
|
|
3937
3937
|
const n = this.permMod12, i = this.perm;
|
|
3938
3938
|
let s = 0, a = 0, o = 0;
|
|
3939
|
-
const c = (t + e) *
|
|
3939
|
+
const c = (t + e) * Zu, l = Math.floor(t + c), h = Math.floor(e + c), d = (l + h) * ei, m = l - d, p = h - d, b = t - m, T = e - p;
|
|
3940
3940
|
let g, v;
|
|
3941
3941
|
b > T ? (g = 1, v = 0) : (g = 0, v = 1);
|
|
3942
3942
|
const x = b - g + ei, _ = T - v + ei, C = b - 1 + 2 * ei, M = T - 1 + 2 * ei, P = l & 255, E = h & 255;
|
|
@@ -3960,7 +3960,7 @@ class Mc {
|
|
|
3960
3960
|
noise3D(t, e, n) {
|
|
3961
3961
|
const i = this.permMod12, s = this.perm;
|
|
3962
3962
|
let a, o, c, l;
|
|
3963
|
-
const h = (t + e + n) *
|
|
3963
|
+
const h = (t + e + n) * Ku, d = Math.floor(t + h), m = Math.floor(e + h), p = Math.floor(n + h), b = (d + m + p) * Ie, T = d - b, g = m - b, v = p - b, x = t - T, _ = e - g, C = n - v;
|
|
3964
3964
|
let M, P, E, O, z, R;
|
|
3965
3965
|
x >= _ ? _ >= C ? (M = 1, P = 0, E = 0, O = 1, z = 1, R = 0) : x >= C ? (M = 1, P = 0, E = 0, O = 1, z = 0, R = 1) : (M = 0, P = 0, E = 1, O = 1, z = 0, R = 1) : _ < C ? (M = 0, P = 0, E = 1, O = 0, z = 1, R = 1) : x < C ? (M = 0, P = 1, E = 0, O = 0, z = 1, R = 1) : (M = 0, P = 1, E = 0, O = 1, z = 1, R = 0);
|
|
3966
3966
|
const B = x - M + Ie, A = _ - P + Ie, N = C - E + Ie, L = x - O + 2 * Ie, V = _ - z + 2 * Ie, $ = C - R + 2 * Ie, Q = x - 1 + 3 * Ie, W = _ - 1 + 3 * Ie, yt = C - 1 + 3 * Ie, nt = d & 255, ht = m & 255, st = p & 255;
|
|
@@ -3997,7 +3997,7 @@ class Mc {
|
|
|
3997
3997
|
noise4D(t, e, n, i) {
|
|
3998
3998
|
const s = this.perm;
|
|
3999
3999
|
let a, o, c, l, h;
|
|
4000
|
-
const d = (t + e + n + i) *
|
|
4000
|
+
const d = (t + e + n + i) * Qu, m = Math.floor(t + d), p = Math.floor(e + d), b = Math.floor(n + d), T = Math.floor(i + d), g = (m + p + b + T) * Ut, v = m - g, x = p - g, _ = b - g, C = T - g, M = t - v, P = e - x, E = n - _, O = i - C;
|
|
4001
4001
|
let z = 0, R = 0, B = 0, A = 0;
|
|
4002
4002
|
M > P ? z++ : R++, M > E ? z++ : B++, M > O ? z++ : A++, P > E ? R++ : B++, P > O ? R++ : A++, E > O ? B++ : A++;
|
|
4003
4003
|
const N = z >= 3 ? 1 : 0, L = R >= 3 ? 1 : 0, V = B >= 3 ? 1 : 0, $ = A >= 3 ? 1 : 0, Q = z >= 2 ? 1 : 0, W = R >= 2 ? 1 : 0, yt = B >= 2 ? 1 : 0, nt = A >= 2 ? 1 : 0, ht = z >= 1 ? 1 : 0, st = R >= 1 ? 1 : 0, vt = B >= 1 ? 1 : 0, Tt = A >= 1 ? 1 : 0, ot = M - N + Ut, ft = P - L + Ut, at = E - V + Ut, Yt = O - $ + Ut, Jt = M - Q + 2 * Ut, jt = P - W + 2 * Ut, Zt = E - yt + 2 * Ut, _t = O - nt + 2 * Ut, gt = M - ht + 3 * Ut, ct = P - st + 3 * Ut, de = E - vt + 3 * Ut, Rt = O - Tt + 3 * Ut, dt = M - 1 + 4 * Ut, se = P - 1 + 4 * Ut, _e = E - 1 + 4 * Ut, be = O - 1 + 4 * Ut, oe = m & 255, Te = p & 255, pe = b & 255, me = T & 255;
|
|
@@ -4039,7 +4039,7 @@ class Mc {
|
|
|
4039
4039
|
return 27 * (a + o + c + l + h);
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4042
|
+
function th(r) {
|
|
4043
4043
|
const t = new Uint8Array(256);
|
|
4044
4044
|
for (let e = 0; e < 256; e++)
|
|
4045
4045
|
t[e] = e;
|
|
@@ -4049,15 +4049,15 @@ function eh(r) {
|
|
|
4049
4049
|
}
|
|
4050
4050
|
return t;
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function eh(r) {
|
|
4053
4053
|
let t = 0, e = 0, n = 0, i = 1;
|
|
4054
|
-
const s =
|
|
4054
|
+
const s = nh();
|
|
4055
4055
|
return t = s(" "), e = s(" "), n = s(" "), t -= s(r), t < 0 && (t += 1), e -= s(r), e < 0 && (e += 1), n -= s(r), n < 0 && (n += 1), function() {
|
|
4056
4056
|
const a = 2091639 * t + i * 23283064365386963e-26;
|
|
4057
4057
|
return t = e, e = n, n = a - (i = a | 0);
|
|
4058
4058
|
};
|
|
4059
4059
|
}
|
|
4060
|
-
function
|
|
4060
|
+
function nh() {
|
|
4061
4061
|
let r = 4022871197;
|
|
4062
4062
|
return function(t) {
|
|
4063
4063
|
t = t.toString();
|
|
@@ -4417,19 +4417,19 @@ const Hr = {
|
|
|
4417
4417
|
loadJSON: Xi.fromJSON
|
|
4418
4418
|
}
|
|
4419
4419
|
};
|
|
4420
|
-
function
|
|
4420
|
+
function ih(r, t) {
|
|
4421
4421
|
return Hr[r.type] ? Hr[r.type].loadJSON(r, t) : null;
|
|
4422
4422
|
}
|
|
4423
|
-
const
|
|
4424
|
-
function
|
|
4425
|
-
if (!
|
|
4423
|
+
const rh = [];
|
|
4424
|
+
function sh(r) {
|
|
4425
|
+
if (!rh.find((e) => e.id === r.id)) {
|
|
4426
4426
|
for (const e of r.emitterShapes)
|
|
4427
4427
|
Hs[e.type] || (Hs[e.type] = e);
|
|
4428
4428
|
for (const e of r.behaviors)
|
|
4429
4429
|
Hr[e.type] || (Hr[e.type] = e);
|
|
4430
4430
|
}
|
|
4431
4431
|
}
|
|
4432
|
-
var
|
|
4432
|
+
var oh = `
|
|
4433
4433
|
#ifdef SOFT_PARTICLES
|
|
4434
4434
|
|
|
4435
4435
|
/* #ifdef LOGDEPTH
|
|
@@ -4451,7 +4451,7 @@ var ah = `
|
|
|
4451
4451
|
|
|
4452
4452
|
//gl_FragColor = vec4(softParticlesFade , 0, 0, 1);
|
|
4453
4453
|
#endif
|
|
4454
|
-
`,
|
|
4454
|
+
`, ah = `
|
|
4455
4455
|
#ifdef SOFT_PARTICLES
|
|
4456
4456
|
|
|
4457
4457
|
uniform sampler2D depthTexture;
|
|
@@ -4473,17 +4473,17 @@ var ah = `
|
|
|
4473
4473
|
}
|
|
4474
4474
|
|
|
4475
4475
|
#endif
|
|
4476
|
-
`,
|
|
4476
|
+
`, ch = `
|
|
4477
4477
|
#ifdef SOFT_PARTICLES
|
|
4478
4478
|
varying vec4 projPosition;
|
|
4479
4479
|
varying float linearDepth;
|
|
4480
4480
|
#endif
|
|
4481
|
-
`,
|
|
4481
|
+
`, lh = `
|
|
4482
4482
|
#ifdef SOFT_PARTICLES
|
|
4483
4483
|
projPosition = gl_Position;
|
|
4484
4484
|
linearDepth = -mvPosition.z;
|
|
4485
4485
|
#endif
|
|
4486
|
-
`,
|
|
4486
|
+
`, uh = `
|
|
4487
4487
|
#ifdef USE_MAP
|
|
4488
4488
|
vec4 texelColor = texture2D( map, vUv);
|
|
4489
4489
|
#ifdef TILE_BLEND
|
|
@@ -4491,7 +4491,7 @@ var ah = `
|
|
|
4491
4491
|
#endif
|
|
4492
4492
|
diffuseColor *= texelColor;
|
|
4493
4493
|
#endif
|
|
4494
|
-
`,
|
|
4494
|
+
`, hh = `
|
|
4495
4495
|
#if defined( USE_UV ) || defined( USE_ANISOTROPY )
|
|
4496
4496
|
|
|
4497
4497
|
varying vec2 vUv;
|
|
@@ -4642,7 +4642,7 @@ var ah = `
|
|
|
4642
4642
|
varying vec2 vThicknessMapUv;
|
|
4643
4643
|
|
|
4644
4644
|
#endif
|
|
4645
|
-
`,
|
|
4645
|
+
`, fh = `
|
|
4646
4646
|
#ifdef UV_TILE
|
|
4647
4647
|
attribute float uvTile;
|
|
4648
4648
|
uniform vec2 tileCount;
|
|
@@ -4812,7 +4812,7 @@ var ah = `
|
|
|
4812
4812
|
varying vec2 vThicknessMapUv;
|
|
4813
4813
|
|
|
4814
4814
|
#endif
|
|
4815
|
-
`,
|
|
4815
|
+
`, dh = `
|
|
4816
4816
|
#ifdef UV_TILE
|
|
4817
4817
|
mat3 tileTransform = makeTileTransform(floor(uvTile));
|
|
4818
4818
|
#ifdef TILE_BLEND
|
|
@@ -4952,10 +4952,10 @@ vThicknessMapUv = ( tileTransform * thicknessMapTransform * vec3( THICKNESSMAP_U
|
|
|
4952
4952
|
|
|
4953
4953
|
`;
|
|
4954
4954
|
const sn = $l;
|
|
4955
|
-
function
|
|
4956
|
-
sn.tile_pars_vertex =
|
|
4955
|
+
function ph() {
|
|
4956
|
+
sn.tile_pars_vertex = fh, sn.tile_vertex = dh, sn.tile_pars_fragment = hh, sn.tile_fragment = uh, sn.soft_pars_vertex = ch, sn.soft_vertex = lh, sn.soft_pars_fragment = ah, sn.soft_fragment = oh;
|
|
4957
4957
|
}
|
|
4958
|
-
class
|
|
4958
|
+
class mh extends cc {
|
|
4959
4959
|
constructor(t) {
|
|
4960
4960
|
super(), this.type = "ParticleEmitter", this.system = t;
|
|
4961
4961
|
}
|
|
@@ -5015,9 +5015,9 @@ class wc extends Zr {
|
|
|
5015
5015
|
e && e.value !== t && (e.value = t, this.material.needsUpdate = !0);
|
|
5016
5016
|
}
|
|
5017
5017
|
}
|
|
5018
|
-
const
|
|
5018
|
+
const yh = new G(0, 0, 1), Ms = new rt(), gh = new G(), vh = new G();
|
|
5019
5019
|
new G();
|
|
5020
|
-
const fa = 60,
|
|
5020
|
+
const fa = 60, Sh = new lc(1, 1, 1, 1);
|
|
5021
5021
|
class Xs {
|
|
5022
5022
|
set time(t) {
|
|
5023
5023
|
this.emissionState.time = t;
|
|
@@ -5129,7 +5129,7 @@ class Xs {
|
|
|
5129
5129
|
t.speedFactor !== void 0 && (A.speedFactor = t.speedFactor), A.speedFactor = (g = A.speedFactor) !== null && g !== void 0 ? g : 0, A.lengthFactor = (v = A.lengthFactor) !== null && v !== void 0 ? v : 0;
|
|
5130
5130
|
}
|
|
5131
5131
|
this.rendererSettings = {
|
|
5132
|
-
instancingGeometry: (x = t.instancingGeometry) !== null && x !== void 0 ? x :
|
|
5132
|
+
instancingGeometry: (x = t.instancingGeometry) !== null && x !== void 0 ? x : Sh,
|
|
5133
5133
|
renderMode: (_ = t.renderMode) !== null && _ !== void 0 ? _ : J.BillBoard,
|
|
5134
5134
|
renderOrder: (C = t.renderOrder) !== null && C !== void 0 ? C : 0,
|
|
5135
5135
|
material: t.material,
|
|
@@ -5140,7 +5140,7 @@ class Xs {
|
|
|
5140
5140
|
softNearFade: (z = t.softNearFade) !== null && z !== void 0 ? z : 0,
|
|
5141
5141
|
softFarFade: (R = t.softFarFade) !== null && R !== void 0 ? R : 0,
|
|
5142
5142
|
layers: (B = t.layers) !== null && B !== void 0 ? B : new Br()
|
|
5143
|
-
}, this.neededToUpdateRender = !0, this.particles = new Array(), this.startTileIndex = t.startTileIndex || new it(0), this.emitter = new
|
|
5143
|
+
}, this.neededToUpdateRender = !0, this.particles = new Array(), this.startTileIndex = t.startTileIndex || new it(0), this.emitter = new mh(this), this.paused = !1, this.particleNum = 0, this.emissionState = {
|
|
5144
5144
|
isBursting: !1,
|
|
5145
5145
|
burstParticleIndex: 0,
|
|
5146
5146
|
burstParticleCount: 0,
|
|
@@ -5162,11 +5162,11 @@ class Xs {
|
|
|
5162
5162
|
}
|
|
5163
5163
|
spawn(t, e, n) {
|
|
5164
5164
|
Ms.setFromRotationMatrix(n);
|
|
5165
|
-
const i =
|
|
5165
|
+
const i = gh, s = Ms, a = vh;
|
|
5166
5166
|
n.decompose(i, s, a);
|
|
5167
5167
|
for (let o = 0; o < t; o++) {
|
|
5168
5168
|
for (e.burstParticleIndex = o, this.particleNum++; this.particles.length < this.particleNum; )
|
|
5169
|
-
this.rendererSettings.renderMode === J.Trail ? this.particles.push(new qs()) : this.particles.push(new
|
|
5169
|
+
this.rendererSettings.renderMode === J.Trail ? this.particles.push(new qs()) : this.particles.push(new Xu());
|
|
5170
5170
|
const c = this.particles[this.particleNum - 1];
|
|
5171
5171
|
if (c.reset(), c.speedModifier = 1, this.startColor.startGen(c.memory), this.startColor.genColor(c.memory, c.startColor, this.emissionState.time), c.color.copy(c.startColor), this.startSpeed.startGen(c.memory), c.startSpeed = this.startSpeed.genValue(c.memory, e.time / this.duration), this.startLife.startGen(c.memory), c.life = this.startLife.genValue(c.memory, e.time / this.duration), c.age = 0, this.startSize.startGen(c.memory), this.startSize.type === "vec3function")
|
|
5172
5172
|
this.startSize.genValue(c.memory, c.startSize, e.time / this.duration);
|
|
@@ -5176,7 +5176,7 @@ class Xs {
|
|
|
5176
5176
|
}
|
|
5177
5177
|
if (this.startTileIndex.startGen(c.memory), c.uvTile = this.startTileIndex.genValue(c.memory), c.size.copy(c.startSize), this.rendererSettings.renderMode === J.Mesh || this.rendererSettings.renderMode === J.BillBoard || this.rendererSettings.renderMode === J.VerticalBillBoard || this.rendererSettings.renderMode === J.HorizontalBillBoard || this.rendererSettings.renderMode === J.StretchedBillBoard) {
|
|
5178
5178
|
const l = c;
|
|
5179
|
-
this.startRotation.startGen(c.memory), this.rendererSettings.renderMode === J.Mesh ? (l.rotation instanceof rt || (l.rotation = new rt()), this.startRotation.type === "rotation" ? this.startRotation.genValue(c.memory, l.rotation, 1, e.time / this.duration) : l.rotation.setFromAxisAngle(
|
|
5179
|
+
this.startRotation.startGen(c.memory), this.rendererSettings.renderMode === J.Mesh ? (l.rotation instanceof rt || (l.rotation = new rt()), this.startRotation.type === "rotation" ? this.startRotation.genValue(c.memory, l.rotation, 1, e.time / this.duration) : l.rotation.setFromAxisAngle(yh, this.startRotation.genValue(l.memory, e.time / this.duration))) : this.startRotation.type === "rotation" ? l.rotation = 0 : l.rotation = this.startRotation.genValue(l.memory, e.time / this.duration);
|
|
5180
5180
|
} else if (this.rendererSettings.renderMode === J.Trail) {
|
|
5181
5181
|
const l = c;
|
|
5182
5182
|
this.rendererEmitterSettings.startLength.startGen(l.memory), l.length = this.rendererEmitterSettings.startLength.genValue(l.memory, e.time / this.duration);
|
|
@@ -5326,7 +5326,7 @@ class Xs {
|
|
|
5326
5326
|
}
|
|
5327
5327
|
static fromJSON(t, e, n) {
|
|
5328
5328
|
var i, s;
|
|
5329
|
-
const a =
|
|
5329
|
+
const a = Hu(t.shape, e);
|
|
5330
5330
|
let o;
|
|
5331
5331
|
if (t.renderMode === J.Trail) {
|
|
5332
5332
|
const h = t.rendererEmitterSettings;
|
|
@@ -5388,7 +5388,7 @@ class Xs {
|
|
|
5388
5388
|
worldSpace: t.worldSpace
|
|
5389
5389
|
});
|
|
5390
5390
|
return l.behaviors = t.behaviors.map((h) => {
|
|
5391
|
-
const d =
|
|
5391
|
+
const d = ih(h, l);
|
|
5392
5392
|
return d.type === "EmitSubParticleSystem" && (n[h.subParticleSystem] = d), d;
|
|
5393
5393
|
}), l;
|
|
5394
5394
|
}
|
|
@@ -5663,7 +5663,7 @@ outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoat
|
|
|
5663
5663
|
#include <fog_fragment>
|
|
5664
5664
|
#include <premultiplied_alpha_fragment>
|
|
5665
5665
|
#include <dithering_fragment>
|
|
5666
|
-
}`,
|
|
5666
|
+
}`, xh = `
|
|
5667
5667
|
#include <common>
|
|
5668
5668
|
#include <color_pars_vertex>
|
|
5669
5669
|
#include <logdepthbuf_pars_vertex>
|
|
@@ -5709,7 +5709,7 @@ void main() {
|
|
|
5709
5709
|
#include <tile_vertex>
|
|
5710
5710
|
#include <soft_vertex>
|
|
5711
5711
|
}
|
|
5712
|
-
`,
|
|
5712
|
+
`, _h = `
|
|
5713
5713
|
#include <common>
|
|
5714
5714
|
#include <color_pars_vertex>
|
|
5715
5715
|
#include <logdepthbuf_pars_vertex>
|
|
@@ -5831,7 +5831,7 @@ void main() {
|
|
|
5831
5831
|
vWorldPosition = worldPosition.xyz;
|
|
5832
5832
|
#endif
|
|
5833
5833
|
}
|
|
5834
|
-
`,
|
|
5834
|
+
`, bh = `
|
|
5835
5835
|
#include <common>
|
|
5836
5836
|
#include <color_pars_vertex>
|
|
5837
5837
|
#include <logdepthbuf_pars_vertex>
|
|
@@ -5876,7 +5876,7 @@ void main() {
|
|
|
5876
5876
|
function Ys(r) {
|
|
5877
5877
|
return r === 0 ? "uv" : `uv${r}`;
|
|
5878
5878
|
}
|
|
5879
|
-
class
|
|
5879
|
+
class Th extends Gl {
|
|
5880
5880
|
constructor(t) {
|
|
5881
5881
|
super(t);
|
|
5882
5882
|
}
|
|
@@ -5884,7 +5884,7 @@ class Ch extends Gl {
|
|
|
5884
5884
|
super.onBeforeCompile(t, e), t.vertexShader = _o, t.fragmentShader = xo;
|
|
5885
5885
|
}
|
|
5886
5886
|
}
|
|
5887
|
-
class
|
|
5887
|
+
class Ch extends Wl {
|
|
5888
5888
|
constructor(t) {
|
|
5889
5889
|
super(t);
|
|
5890
5890
|
}
|
|
@@ -5892,7 +5892,7 @@ class Mh extends Wl {
|
|
|
5892
5892
|
super.onBeforeCompile(t, e), t.vertexShader = _o, t.fragmentShader = xo;
|
|
5893
5893
|
}
|
|
5894
5894
|
}
|
|
5895
|
-
class
|
|
5895
|
+
class Mh extends wc {
|
|
5896
5896
|
constructor(t) {
|
|
5897
5897
|
super(t), this.vector_ = new G(), this.vector2_ = new G(), this.vector3_ = new G(), this.quaternion_ = new rt(), this.quaternion2_ = new rt(), this.quaternion3_ = new rt(), this.rotationMat_ = new De(), this.rotationMat2_ = new De(), this.maxParticles = 1e3, this.setupBuffers(), this.rebuildMaterial();
|
|
5898
5898
|
}
|
|
@@ -5926,9 +5926,9 @@ class wh extends wc {
|
|
|
5926
5926
|
let a = !1;
|
|
5927
5927
|
if (this.settings.renderMode === J.BillBoard || this.settings.renderMode === J.VerticalBillBoard || this.settings.renderMode === J.HorizontalBillBoard || this.settings.renderMode === J.Mesh) {
|
|
5928
5928
|
let o, c;
|
|
5929
|
-
this.settings.renderMode === J.Mesh ? this.settings.material.type === "MeshStandardMaterial" || this.settings.material.type === "MeshPhysicalMaterial" ? (e.USE_COLOR = "", o = _o, c = xo, a = !0) : (o =
|
|
5929
|
+
this.settings.renderMode === J.Mesh ? this.settings.material.type === "MeshStandardMaterial" || this.settings.material.type === "MeshPhysicalMaterial" ? (e.USE_COLOR = "", o = _o, c = xo, a = !0) : (o = _h, c = ws) : (o = xh, c = ws), this.settings.renderMode === J.VerticalBillBoard ? e.VERTICAL = "" : this.settings.renderMode === J.HorizontalBillBoard && (e.HORIZONTAL = "");
|
|
5930
5930
|
let l = !1;
|
|
5931
|
-
this.settings.renderMode === J.Mesh && (this.settings.material.type === "MeshStandardMaterial" ? (this.material = new
|
|
5931
|
+
this.settings.renderMode === J.Mesh && (this.settings.material.type === "MeshStandardMaterial" ? (this.material = new Th({}), this.material.copy(this.settings.material), this.material.uniforms = t, this.material.defines = e, l = !0) : this.settings.material.type === "MeshPhysicalMaterial" && (this.material = new Ch({}), this.material.copy(this.settings.material), this.material.uniforms = t, this.material.defines = e, l = !0)), l || (this.material = new Ws({
|
|
5932
5932
|
uniforms: t,
|
|
5933
5933
|
defines: e,
|
|
5934
5934
|
vertexShader: o,
|
|
@@ -5949,7 +5949,7 @@ class wh extends wc {
|
|
|
5949
5949
|
t.speedFactor = new Re(1), this.material = new Ws({
|
|
5950
5950
|
uniforms: t,
|
|
5951
5951
|
defines: e,
|
|
5952
|
-
vertexShader:
|
|
5952
|
+
vertexShader: bh,
|
|
5953
5953
|
fragmentShader: ws,
|
|
5954
5954
|
transparent: this.settings.material.transparent,
|
|
5955
5955
|
depthWrite: !this.settings.material.transparent,
|
|
@@ -6001,7 +6001,7 @@ class wh extends wc {
|
|
|
6001
6001
|
this.geometry.dispose();
|
|
6002
6002
|
}
|
|
6003
6003
|
}
|
|
6004
|
-
var
|
|
6004
|
+
var wh = `
|
|
6005
6005
|
|
|
6006
6006
|
#include <common>
|
|
6007
6007
|
#include <tile_pars_fragment>
|
|
@@ -6034,7 +6034,7 @@ void main() {
|
|
|
6034
6034
|
|
|
6035
6035
|
#include <fog_fragment>
|
|
6036
6036
|
#include <tonemapping_fragment>
|
|
6037
|
-
}`,
|
|
6037
|
+
}`, Ph = `
|
|
6038
6038
|
#include <common>
|
|
6039
6039
|
#include <tile_pars_vertex>
|
|
6040
6040
|
#include <color_pars_vertex>
|
|
@@ -6110,7 +6110,7 @@ void main() {
|
|
|
6110
6110
|
|
|
6111
6111
|
#include <fog_vertex>
|
|
6112
6112
|
}`;
|
|
6113
|
-
class
|
|
6113
|
+
class Eh extends wc {
|
|
6114
6114
|
constructor(t) {
|
|
6115
6115
|
super(t), this.vector_ = new G(), this.vector2_ = new G(), this.vector3_ = new G(), this.quaternion_ = new rt(), this.maxParticles = 1e4, this.setupBuffers(), this.rebuildMaterial();
|
|
6116
6116
|
}
|
|
@@ -6139,8 +6139,8 @@ class kh extends wc {
|
|
|
6139
6139
|
this.material = new Ws({
|
|
6140
6140
|
uniforms: t,
|
|
6141
6141
|
defines: e,
|
|
6142
|
-
vertexShader:
|
|
6143
|
-
fragmentShader:
|
|
6142
|
+
vertexShader: Ph,
|
|
6143
|
+
fragmentShader: wh,
|
|
6144
6144
|
transparent: this.settings.material.transparent,
|
|
6145
6145
|
depthWrite: !this.settings.material.transparent,
|
|
6146
6146
|
side: this.settings.material.side,
|
|
@@ -6241,7 +6241,7 @@ class Yi {
|
|
|
6241
6241
|
update(t, e) {
|
|
6242
6242
|
}
|
|
6243
6243
|
}
|
|
6244
|
-
|
|
6244
|
+
sh({
|
|
6245
6245
|
id: "three.quarks",
|
|
6246
6246
|
emitterShapes: [{
|
|
6247
6247
|
type: "mesh_surface",
|
|
@@ -6269,14 +6269,14 @@ class bo extends cc {
|
|
|
6269
6269
|
let n;
|
|
6270
6270
|
switch (e.renderMode) {
|
|
6271
6271
|
case J.Trail:
|
|
6272
|
-
n = new
|
|
6272
|
+
n = new Eh(e);
|
|
6273
6273
|
break;
|
|
6274
6274
|
case J.Mesh:
|
|
6275
6275
|
case J.BillBoard:
|
|
6276
6276
|
case J.VerticalBillBoard:
|
|
6277
6277
|
case J.HorizontalBillBoard:
|
|
6278
6278
|
case J.StretchedBillBoard:
|
|
6279
|
-
n = new
|
|
6279
|
+
n = new Mh(e);
|
|
6280
6280
|
break;
|
|
6281
6281
|
}
|
|
6282
6282
|
this.depthTexture && n.applyDepthTexture(this.depthTexture), n.addSystem(t), this.batches.push(n), this.systemToBatchIndex.set(t, this.batches.length - 1), this.add(n);
|
|
@@ -6301,10 +6301,10 @@ class bo extends cc {
|
|
|
6301
6301
|
this.batches[e].update();
|
|
6302
6302
|
}
|
|
6303
6303
|
}
|
|
6304
|
-
const
|
|
6305
|
-
|
|
6304
|
+
const wd = bo;
|
|
6305
|
+
ph();
|
|
6306
6306
|
console.log("%c Particle system powered by three.quarks. https://quarks.art/", "font-size: 14px; font-weight: bold;");
|
|
6307
|
-
const Pc = /* @__PURE__ */ Math.sqrt(5),
|
|
6307
|
+
const Pc = /* @__PURE__ */ Math.sqrt(5), kh = (Pc - 1) / 4, Dt = (5 - Pc) / 20, dr = (r) => Math.floor(r) | 0, pr = /* @__PURE__ */ new Float64Array([
|
|
6308
6308
|
0,
|
|
6309
6309
|
1,
|
|
6310
6310
|
1,
|
|
@@ -6434,11 +6434,11 @@ const Pc = /* @__PURE__ */ Math.sqrt(5), Rh = (Pc - 1) / 4, Dt = (5 - Pc) / 20,
|
|
|
6434
6434
|
-1,
|
|
6435
6435
|
0
|
|
6436
6436
|
]);
|
|
6437
|
-
function
|
|
6438
|
-
const t =
|
|
6437
|
+
function Pd(r = Math.random) {
|
|
6438
|
+
const t = Rh(r), e = new Float64Array(t).map((a) => pr[a % 32 * 4]), n = new Float64Array(t).map((a) => pr[a % 32 * 4 + 1]), i = new Float64Array(t).map((a) => pr[a % 32 * 4 + 2]), s = new Float64Array(t).map((a) => pr[a % 32 * 4 + 3]);
|
|
6439
6439
|
return function(o, c, l, h) {
|
|
6440
6440
|
let d, m, p, b, T;
|
|
6441
|
-
const g = (o + c + l + h) *
|
|
6441
|
+
const g = (o + c + l + h) * kh, v = dr(o + g), x = dr(c + g), _ = dr(l + g), C = dr(h + g), M = (v + x + _ + C) * Dt, P = v - M, E = x - M, O = _ - M, z = C - M, R = o - P, B = c - E, A = l - O, N = h - z;
|
|
6442
6442
|
let L = 0, V = 0, $ = 0, Q = 0;
|
|
6443
6443
|
R > B ? L++ : V++, R > A ? L++ : $++, R > N ? L++ : Q++, B > A ? V++ : $++, B > N ? V++ : Q++, A > N ? $++ : Q++;
|
|
6444
6444
|
const W = L >= 3 ? 1 : 0, yt = V >= 3 ? 1 : 0, nt = $ >= 3 ? 1 : 0, ht = Q >= 3 ? 1 : 0, st = L >= 2 ? 1 : 0, vt = V >= 2 ? 1 : 0, Tt = $ >= 2 ? 1 : 0, ot = Q >= 2 ? 1 : 0, ft = L >= 1 ? 1 : 0, at = V >= 1 ? 1 : 0, Yt = $ >= 1 ? 1 : 0, Jt = Q >= 1 ? 1 : 0, jt = R - W + Dt, Zt = B - yt + Dt, _t = A - nt + Dt, gt = N - ht + Dt, ct = R - st + 2 * Dt, de = B - vt + 2 * Dt, Rt = A - Tt + 2 * Dt, dt = N - ot + 2 * Dt, se = R - ft + 3 * Dt, _e = B - at + 3 * Dt, be = A - Yt + 3 * Dt, oe = N - Jt + 3 * Dt, Te = R - 1 + 4 * Dt, pe = B - 1 + 4 * Dt, me = A - 1 + 4 * Dt, Ce = N - 1 + 4 * Dt, At = v & 255, Kt = x & 255, le = _ & 255, Qt = C & 255;
|
|
@@ -6480,7 +6480,7 @@ function Ed(r = Math.random) {
|
|
|
6480
6480
|
return 27 * (d + m + p + b + T);
|
|
6481
6481
|
};
|
|
6482
6482
|
}
|
|
6483
|
-
function
|
|
6483
|
+
function Rh(r) {
|
|
6484
6484
|
const e = new Uint8Array(512);
|
|
6485
6485
|
for (let n = 0; n < 512 / 2; n++)
|
|
6486
6486
|
e[n] = n;
|
|
@@ -6535,7 +6535,7 @@ function pa() {
|
|
|
6535
6535
|
})(Ps)), Ps.exports;
|
|
6536
6536
|
}
|
|
6537
6537
|
var Es, ma;
|
|
6538
|
-
function
|
|
6538
|
+
function Ah() {
|
|
6539
6539
|
if (ma) return Es;
|
|
6540
6540
|
ma = 1;
|
|
6541
6541
|
var r = pa().BufferBuilder, t = pa().binaryFeatures, e = {
|
|
@@ -6819,8 +6819,8 @@ function Oh() {
|
|
|
6819
6819
|
}
|
|
6820
6820
|
return Es;
|
|
6821
6821
|
}
|
|
6822
|
-
var
|
|
6823
|
-
const ya = /* @__PURE__ */ To(
|
|
6822
|
+
var Oh = Ah();
|
|
6823
|
+
const ya = /* @__PURE__ */ To(Oh);
|
|
6824
6824
|
let Ec = !0, kc = !0;
|
|
6825
6825
|
function fi(r, t, e) {
|
|
6826
6826
|
const n = r.match(t);
|
|
@@ -6870,10 +6870,10 @@ function Kn(r, t, e) {
|
|
|
6870
6870
|
configurable: !0
|
|
6871
6871
|
});
|
|
6872
6872
|
}
|
|
6873
|
-
function
|
|
6873
|
+
function zh(r) {
|
|
6874
6874
|
return typeof r != "boolean" ? new Error("Argument type: " + typeof r + ". Please use a boolean.") : (Ec = r, r ? "adapter.js logging disabled" : "adapter.js logging enabled");
|
|
6875
6875
|
}
|
|
6876
|
-
function
|
|
6876
|
+
function Ih(r) {
|
|
6877
6877
|
return typeof r != "boolean" ? new Error("Argument type: " + typeof r + ". Please use a boolean.") : (kc = !r, "adapter.js deprecation warnings " + (r ? "disabled" : "enabled"));
|
|
6878
6878
|
}
|
|
6879
6879
|
function Co() {
|
|
@@ -6886,7 +6886,7 @@ function Co() {
|
|
|
6886
6886
|
function ts(r, t) {
|
|
6887
6887
|
kc && console.warn(r + " is deprecated, please use " + t + " instead.");
|
|
6888
6888
|
}
|
|
6889
|
-
function
|
|
6889
|
+
function Bh(r) {
|
|
6890
6890
|
const t = { browser: null, version: null };
|
|
6891
6891
|
if (typeof r > "u" || !r.navigator)
|
|
6892
6892
|
return t.browser = "Not a browser.", t;
|
|
@@ -7041,7 +7041,7 @@ function Ac(r, t) {
|
|
|
7041
7041
|
});
|
|
7042
7042
|
}
|
|
7043
7043
|
}
|
|
7044
|
-
function
|
|
7044
|
+
function Nh(r, t) {
|
|
7045
7045
|
if (!(r.navigator.mediaDevices && "getDisplayMedia" in r.navigator.mediaDevices) && r.navigator.mediaDevices) {
|
|
7046
7046
|
if (typeof t != "function") {
|
|
7047
7047
|
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
@@ -7445,7 +7445,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7445
7445
|
fixNegotiationNeeded: Lc,
|
|
7446
7446
|
shimAddTrackRemoveTrack: Dc,
|
|
7447
7447
|
shimAddTrackRemoveTrackWithNative: Uc,
|
|
7448
|
-
shimGetDisplayMedia:
|
|
7448
|
+
shimGetDisplayMedia: Nh,
|
|
7449
7449
|
shimGetSendersWithDtmf: Ic,
|
|
7450
7450
|
shimGetStats: Bc,
|
|
7451
7451
|
shimGetUserMedia: Ac,
|
|
@@ -7454,7 +7454,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7454
7454
|
shimPeerConnection: Ks,
|
|
7455
7455
|
shimSenderReceiverGetStats: Nc
|
|
7456
7456
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7457
|
-
function
|
|
7457
|
+
function Uh(r, t) {
|
|
7458
7458
|
let e = !1;
|
|
7459
7459
|
return r = JSON.parse(JSON.stringify(r)), r.filter((n) => {
|
|
7460
7460
|
if (n && (n.urls || n.url)) {
|
|
@@ -7885,7 +7885,7 @@ t=0 0\r
|
|
|
7885
7885
|
})(ks)), ks.exports;
|
|
7886
7886
|
}
|
|
7887
7887
|
var Rs, ba;
|
|
7888
|
-
function
|
|
7888
|
+
function Dh() {
|
|
7889
7889
|
if (ba) return Rs;
|
|
7890
7890
|
ba = 1;
|
|
7891
7891
|
var r = Fc();
|
|
@@ -8823,8 +8823,8 @@ a=mid:` + C.mid + `\r
|
|
|
8823
8823
|
}), p;
|
|
8824
8824
|
}, Rs;
|
|
8825
8825
|
}
|
|
8826
|
-
var
|
|
8827
|
-
const
|
|
8826
|
+
var Lh = Dh();
|
|
8827
|
+
const Fh = /* @__PURE__ */ To(Lh);
|
|
8828
8828
|
function Vc(r) {
|
|
8829
8829
|
const t = r && r.navigator, e = function(i) {
|
|
8830
8830
|
return {
|
|
@@ -8866,12 +8866,12 @@ function Qs(r, t) {
|
|
|
8866
8866
|
return this._dtmf === void 0 && (this.track.kind === "audio" ? this._dtmf = new r.RTCDtmfSender(this) : this.track.kind === "video" && (this._dtmf = null)), this._dtmf;
|
|
8867
8867
|
}
|
|
8868
8868
|
}), r.RTCDtmfSender && !r.RTCDTMFSender && (r.RTCDTMFSender = r.RTCDtmfSender);
|
|
8869
|
-
const e =
|
|
8869
|
+
const e = Fh(
|
|
8870
8870
|
r,
|
|
8871
8871
|
t.version
|
|
8872
8872
|
);
|
|
8873
8873
|
r.RTCPeerConnection = function(i) {
|
|
8874
|
-
return i && i.iceServers && (i.iceServers =
|
|
8874
|
+
return i && i.iceServers && (i.iceServers = Uh(
|
|
8875
8875
|
i.iceServers,
|
|
8876
8876
|
t.version
|
|
8877
8877
|
), Co("ICE servers after filtering:", i.iceServers)), new e(i);
|
|
@@ -8915,7 +8915,7 @@ function Gc(r, t) {
|
|
|
8915
8915
|
}
|
|
8916
8916
|
}
|
|
8917
8917
|
}
|
|
8918
|
-
function
|
|
8918
|
+
function Vh(r, t) {
|
|
8919
8919
|
r.navigator.mediaDevices && "getDisplayMedia" in r.navigator.mediaDevices || r.navigator.mediaDevices && (r.navigator.mediaDevices.getDisplayMedia = function(n) {
|
|
8920
8920
|
if (!(n && n.video)) {
|
|
8921
8921
|
const i = new DOMException("getDisplayMedia without video constraints is undefined");
|
|
@@ -9069,7 +9069,7 @@ const Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9069
9069
|
shimAddTransceiver: Yc,
|
|
9070
9070
|
shimCreateAnswer: Qc,
|
|
9071
9071
|
shimCreateOffer: Kc,
|
|
9072
|
-
shimGetDisplayMedia:
|
|
9072
|
+
shimGetDisplayMedia: Vh,
|
|
9073
9073
|
shimGetParameters: Zc,
|
|
9074
9074
|
shimGetUserMedia: Gc,
|
|
9075
9075
|
shimOnTrack: Wc,
|
|
@@ -9244,8 +9244,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9244
9244
|
shimRemoteStreamsAPI: el,
|
|
9245
9245
|
shimTrackEventTransceiver: ol
|
|
9246
9246
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9247
|
-
var
|
|
9248
|
-
const Nr = /* @__PURE__ */ To(
|
|
9247
|
+
var Jh = Fc();
|
|
9248
|
+
const Nr = /* @__PURE__ */ To(Jh);
|
|
9249
9249
|
function Ur(r) {
|
|
9250
9250
|
if (!r.RTCIceCandidate || r.RTCIceCandidate && "foundation" in r.RTCIceCandidate.prototype)
|
|
9251
9251
|
return;
|
|
@@ -9420,7 +9420,7 @@ function Dr(r, t) {
|
|
|
9420
9420
|
return arguments[0] ? (t.browser === "chrome" && t.version < 78 || t.browser === "firefox" && t.version < 68 || t.browser === "safari") && arguments[0] && arguments[0].candidate === "" ? Promise.resolve() : e.apply(this, arguments) : (arguments[1] && arguments[1].apply(null), Promise.resolve());
|
|
9421
9421
|
});
|
|
9422
9422
|
}
|
|
9423
|
-
const
|
|
9423
|
+
const jh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9424
9424
|
__proto__: null,
|
|
9425
9425
|
removeExtmapAllowMixed: no,
|
|
9426
9426
|
shimAddIceCandidateNullOrEmpty: Dr,
|
|
@@ -9429,18 +9429,18 @@ const Gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9429
9429
|
shimRTCIceCandidate: Ur,
|
|
9430
9430
|
shimSendThrowTypeError: pi
|
|
9431
9431
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9432
|
-
function
|
|
9432
|
+
function Gh({ window: r } = {}, t = {
|
|
9433
9433
|
shimChrome: !0,
|
|
9434
9434
|
shimFirefox: !0,
|
|
9435
9435
|
shimEdge: !0,
|
|
9436
9436
|
shimSafari: !0
|
|
9437
9437
|
}) {
|
|
9438
|
-
const e = Co, n =
|
|
9438
|
+
const e = Co, n = Bh(r), i = {
|
|
9439
9439
|
browserDetails: n,
|
|
9440
|
-
commonShim:
|
|
9440
|
+
commonShim: jh,
|
|
9441
9441
|
extractVersion: fi,
|
|
9442
|
-
disableLog:
|
|
9443
|
-
disableWarnings:
|
|
9442
|
+
disableLog: zh,
|
|
9443
|
+
disableWarnings: Ih
|
|
9444
9444
|
};
|
|
9445
9445
|
switch (n.browser) {
|
|
9446
9446
|
case "chrome":
|
|
@@ -9471,7 +9471,7 @@ function Wh({ window: r } = {}, t = {
|
|
|
9471
9471
|
}
|
|
9472
9472
|
return i;
|
|
9473
9473
|
}
|
|
9474
|
-
const wa =
|
|
9474
|
+
const wa = Gh({ window: typeof window > "u" ? void 0 : window });
|
|
9475
9475
|
function Ve(r, t, e, n) {
|
|
9476
9476
|
Object.defineProperty(r, t, { get: e, set: n, enumerable: !0, configurable: !0 });
|
|
9477
9477
|
}
|
|
@@ -9537,7 +9537,7 @@ var As = (
|
|
|
9537
9537
|
}
|
|
9538
9538
|
],
|
|
9539
9539
|
sdpSemantics: "unified-plan"
|
|
9540
|
-
},
|
|
9540
|
+
}, Wh = (
|
|
9541
9541
|
/** @class */
|
|
9542
9542
|
(function() {
|
|
9543
9543
|
function r() {
|
|
@@ -9605,18 +9605,18 @@ var As = (
|
|
|
9605
9605
|
return location.protocol === "https:";
|
|
9606
9606
|
}, r;
|
|
9607
9607
|
})()
|
|
9608
|
-
), et = new
|
|
9608
|
+
), et = new Wh(), ll = {};
|
|
9609
9609
|
Ve(ll, "Peer", () => so, (r) => so = r);
|
|
9610
|
-
var tr = {},
|
|
9610
|
+
var tr = {}, $h = Object.prototype.hasOwnProperty, re = "~";
|
|
9611
9611
|
function Zi() {
|
|
9612
9612
|
}
|
|
9613
9613
|
Object.create && (Zi.prototype = /* @__PURE__ */ Object.create(null), new Zi().__proto__ || (re = !1));
|
|
9614
|
-
function
|
|
9614
|
+
function Hh(r, t, e) {
|
|
9615
9615
|
this.fn = r, this.context = t, this.once = e || !1;
|
|
9616
9616
|
}
|
|
9617
9617
|
function ul(r, t, e, n, i) {
|
|
9618
9618
|
if (typeof e != "function") throw new TypeError("The listener must be a function");
|
|
9619
|
-
var s = new
|
|
9619
|
+
var s = new Hh(e, n || r, i), a = re ? re + t : t;
|
|
9620
9620
|
return r._events[a] ? r._events[a].fn ? r._events[a] = [
|
|
9621
9621
|
r._events[a],
|
|
9622
9622
|
s
|
|
@@ -9631,7 +9631,7 @@ function qt() {
|
|
|
9631
9631
|
qt.prototype.eventNames = function() {
|
|
9632
9632
|
var t = [], e, n;
|
|
9633
9633
|
if (this._eventsCount === 0) return t;
|
|
9634
|
-
for (n in e = this._events)
|
|
9634
|
+
for (n in e = this._events) $h.call(e, n) && t.push(re ? n.slice(1) : n);
|
|
9635
9635
|
return Object.getOwnPropertySymbols ? t.concat(Object.getOwnPropertySymbols(e)) : t;
|
|
9636
9636
|
};
|
|
9637
9637
|
qt.prototype.listeners = function(t) {
|
|
@@ -9745,11 +9745,11 @@ var gn = function(r, t) {
|
|
|
9745
9745
|
if (e || arguments.length === 2)
|
|
9746
9746
|
for (var n = 0, i = t.length, s; n < i; n++) (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
9747
9747
|
return r.concat(s || Array.prototype.slice.call(t));
|
|
9748
|
-
},
|
|
9748
|
+
}, qh = "PeerJS: ", ce;
|
|
9749
9749
|
(function(r) {
|
|
9750
9750
|
r[r.Disabled = 0] = "Disabled", r[r.Errors = 1] = "Errors", r[r.Warnings = 2] = "Warnings", r[r.All = 3] = "All";
|
|
9751
9751
|
})(ce || (ce = {}));
|
|
9752
|
-
var
|
|
9752
|
+
var Xh = (
|
|
9753
9753
|
/** @class */
|
|
9754
9754
|
(function() {
|
|
9755
9755
|
function r() {
|
|
@@ -9784,7 +9784,7 @@ var Yh = (
|
|
|
9784
9784
|
}, r.prototype._print = function(t) {
|
|
9785
9785
|
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
9786
9786
|
var i = vn([
|
|
9787
|
-
|
|
9787
|
+
qh
|
|
9788
9788
|
], gn(e), !1);
|
|
9789
9789
|
for (var s in i) i[s] instanceof Error && (i[s] = "(" + i[s].name + ") " + i[s].message);
|
|
9790
9790
|
t >= ce.All ? console.log.apply(console, vn([], gn(i), !1)) : t >= ce.Warnings ? console.warn.apply(console, vn([
|
|
@@ -9794,7 +9794,7 @@ var Yh = (
|
|
|
9794
9794
|
], gn(i), !1));
|
|
9795
9795
|
}, r;
|
|
9796
9796
|
})()
|
|
9797
|
-
), Ea = new
|
|
9797
|
+
), Ea = new Xh(), hl = {};
|
|
9798
9798
|
Ve(hl, "Socket", () => ka, (r) => ka = r);
|
|
9799
9799
|
var Ae;
|
|
9800
9800
|
(function(r) {
|
|
@@ -9818,7 +9818,7 @@ var Vt;
|
|
|
9818
9818
|
})(Vt || (Vt = {}));
|
|
9819
9819
|
var Mo = {};
|
|
9820
9820
|
Mo = JSON.parse('{"name":"peerjs","version":"1.4.7","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","types":"dist/types.d.ts","engines":{"node":">= 10"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"cover 99%, not dead"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"cover 99%, not dead"},"source":"lib/global.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"mocha -r ts-node/register -r jsdom-global/register test/**/*.ts","format":"prettier --write .","semantic-release":"semantic-release"},"devDependencies":{"@parcel/config-default":"^2.5.0","@parcel/packager-ts":"^2.5.0","@parcel/transformer-typescript-tsc":"^2.5.0","@parcel/transformer-typescript-types":"^2.5.0","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.18","chai":"^4.3.6","git-authors-cli":"^1.0.40","jsdom":"^19.0.0","jsdom-global":"^3.0.2","mocha":"^9.2.0","mock-socket":"8.0.5","parcel":"^2.5.0","parcel-transformer-tsc-sourcemaps":"^1.0.2","prettier":"^2.6.2","semantic-release":"^19.0.2","standard":"^16.0.4","ts-node":"^10.5.0","typescript":"^4.5.5"},"dependencies":{"@swc/helpers":"^0.3.13","eventemitter3":"^4.0.7","peerjs-js-binarypack":"1.0.1","webrtc-adapter":"^7.7.1"}}');
|
|
9821
|
-
var
|
|
9821
|
+
var Yh = /* @__PURE__ */ (function() {
|
|
9822
9822
|
var r = function(t, e) {
|
|
9823
9823
|
return r = Object.setPrototypeOf || {
|
|
9824
9824
|
__proto__: []
|
|
@@ -9836,7 +9836,7 @@ var Zh = /* @__PURE__ */ (function() {
|
|
|
9836
9836
|
}
|
|
9837
9837
|
t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
9838
9838
|
};
|
|
9839
|
-
})(),
|
|
9839
|
+
})(), Zh = function(r, t) {
|
|
9840
9840
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
9841
9841
|
if (!e) return r;
|
|
9842
9842
|
var n = e.call(r), i, s = [], a;
|
|
@@ -9854,11 +9854,11 @@ var Zh = /* @__PURE__ */ (function() {
|
|
|
9854
9854
|
}
|
|
9855
9855
|
}
|
|
9856
9856
|
return s;
|
|
9857
|
-
},
|
|
9857
|
+
}, Kh = function(r, t, e) {
|
|
9858
9858
|
if (e || arguments.length === 2)
|
|
9859
9859
|
for (var n = 0, i = t.length, s; n < i; n++) (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
9860
9860
|
return r.concat(s || Array.prototype.slice.call(t));
|
|
9861
|
-
},
|
|
9861
|
+
}, Qh = function(r) {
|
|
9862
9862
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
9863
9863
|
if (e) return e.call(r);
|
|
9864
9864
|
if (r && typeof r.length == "number") return {
|
|
@@ -9873,7 +9873,7 @@ var Zh = /* @__PURE__ */ (function() {
|
|
|
9873
9873
|
}, ka = (
|
|
9874
9874
|
/** @class */
|
|
9875
9875
|
(function(r) {
|
|
9876
|
-
|
|
9876
|
+
Yh(t, r);
|
|
9877
9877
|
function t(e, n, i, s, a, o) {
|
|
9878
9878
|
o === void 0 && (o = 5e3);
|
|
9879
9879
|
var c = r.call(this) || this;
|
|
@@ -9916,10 +9916,10 @@ var Zh = /* @__PURE__ */ (function() {
|
|
|
9916
9916
|
}, t.prototype._wsOpen = function() {
|
|
9917
9917
|
return !!this._socket && this._socket.readyState === 1;
|
|
9918
9918
|
}, t.prototype._sendQueuedMessages = function() {
|
|
9919
|
-
var e, n, i =
|
|
9919
|
+
var e, n, i = Kh([], Zh(this._messagesQueue), !1);
|
|
9920
9920
|
this._messagesQueue = [];
|
|
9921
9921
|
try {
|
|
9922
|
-
for (var s =
|
|
9922
|
+
for (var s = Qh(i), a = s.next(); !a.done; a = s.next()) {
|
|
9923
9923
|
var o = a.value;
|
|
9924
9924
|
this.send(o);
|
|
9925
9925
|
}
|
|
@@ -10384,7 +10384,7 @@ var qr = function() {
|
|
|
10384
10384
|
})()
|
|
10385
10385
|
), Po = {};
|
|
10386
10386
|
Ve(Po, "BaseConnection", () => Aa, (r) => Aa = r);
|
|
10387
|
-
var
|
|
10387
|
+
var tf = /* @__PURE__ */ (function() {
|
|
10388
10388
|
var r = function(t, e) {
|
|
10389
10389
|
return r = Object.setPrototypeOf || {
|
|
10390
10390
|
__proto__: []
|
|
@@ -10405,7 +10405,7 @@ var ef = /* @__PURE__ */ (function() {
|
|
|
10405
10405
|
})(), Aa = (
|
|
10406
10406
|
/** @class */
|
|
10407
10407
|
(function(r) {
|
|
10408
|
-
|
|
10408
|
+
tf(t, r);
|
|
10409
10409
|
function t(e, n, i) {
|
|
10410
10410
|
var s = r.call(this) || this;
|
|
10411
10411
|
return s.peer = e, s.provider = n, s.options = i, s._open = !1, s.metadata = i.metadata, s;
|
|
@@ -10418,7 +10418,7 @@ var ef = /* @__PURE__ */ (function() {
|
|
|
10418
10418
|
configurable: !0
|
|
10419
10419
|
}), t;
|
|
10420
10420
|
})(tr.EventEmitter)
|
|
10421
|
-
),
|
|
10421
|
+
), ef = /* @__PURE__ */ (function() {
|
|
10422
10422
|
var r = function(t, e) {
|
|
10423
10423
|
return r = Object.setPrototypeOf || {
|
|
10424
10424
|
__proto__: []
|
|
@@ -10444,7 +10444,7 @@ var ef = /* @__PURE__ */ (function() {
|
|
|
10444
10444
|
}
|
|
10445
10445
|
return r;
|
|
10446
10446
|
}, Xr.apply(this, arguments);
|
|
10447
|
-
},
|
|
10447
|
+
}, nf = function(r) {
|
|
10448
10448
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
10449
10449
|
if (e) return e.call(r);
|
|
10450
10450
|
if (r && typeof r.length == "number") return {
|
|
@@ -10459,7 +10459,7 @@ var ef = /* @__PURE__ */ (function() {
|
|
|
10459
10459
|
}, Oa = (
|
|
10460
10460
|
/** @class */
|
|
10461
10461
|
(function(r) {
|
|
10462
|
-
|
|
10462
|
+
ef(t, r);
|
|
10463
10463
|
function t(e, n, i) {
|
|
10464
10464
|
var s = r.call(this, e, n, i) || this;
|
|
10465
10465
|
return s._localStream = s.options._stream, s.connectionId = s.options.connectionId || t.ID_PREFIX + et.randomToken(), s._negotiator = new wo.Negotiator(s), s._localStream && s._negotiator.startConnection({
|
|
@@ -10511,7 +10511,7 @@ var ef = /* @__PURE__ */ (function() {
|
|
|
10511
10511
|
}));
|
|
10512
10512
|
var a = this.provider._getMessages(this.connectionId);
|
|
10513
10513
|
try {
|
|
10514
|
-
for (var o =
|
|
10514
|
+
for (var o = nf(a), c = o.next(); !c.done; c = o.next()) {
|
|
10515
10515
|
var l = c.value;
|
|
10516
10516
|
this.handleMessage(l);
|
|
10517
10517
|
}
|
|
@@ -10535,7 +10535,7 @@ var ef = /* @__PURE__ */ (function() {
|
|
|
10535
10535
|
Ve(ro, "DataConnection", () => Ia, (r) => Ia = r);
|
|
10536
10536
|
var fl = {};
|
|
10537
10537
|
Ve(fl, "EncodingQueue", () => za, (r) => za = r);
|
|
10538
|
-
var
|
|
10538
|
+
var rf = /* @__PURE__ */ (function() {
|
|
10539
10539
|
var r = function(t, e) {
|
|
10540
10540
|
return r = Object.setPrototypeOf || {
|
|
10541
10541
|
__proto__: []
|
|
@@ -10556,7 +10556,7 @@ var sf = /* @__PURE__ */ (function() {
|
|
|
10556
10556
|
})(), za = (
|
|
10557
10557
|
/** @class */
|
|
10558
10558
|
(function(r) {
|
|
10559
|
-
|
|
10559
|
+
rf(t, r);
|
|
10560
10560
|
function t() {
|
|
10561
10561
|
var e = r.call(this) || this;
|
|
10562
10562
|
return e.fileReader = new FileReader(), e._queue = [], e._processing = !1, e.fileReader.onload = function(n) {
|
|
@@ -10591,7 +10591,7 @@ var sf = /* @__PURE__ */ (function() {
|
|
|
10591
10591
|
this.size !== 0 && (this.processing || (this._processing = !0, this.fileReader.readAsArrayBuffer(this.queue.shift())));
|
|
10592
10592
|
}, t;
|
|
10593
10593
|
})(tr.EventEmitter)
|
|
10594
|
-
),
|
|
10594
|
+
), sf = /* @__PURE__ */ (function() {
|
|
10595
10595
|
var r = function(t, e) {
|
|
10596
10596
|
return r = Object.setPrototypeOf || {
|
|
10597
10597
|
__proto__: []
|
|
@@ -10609,7 +10609,7 @@ var sf = /* @__PURE__ */ (function() {
|
|
|
10609
10609
|
}
|
|
10610
10610
|
t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
10611
10611
|
};
|
|
10612
|
-
})(),
|
|
10612
|
+
})(), of = function(r) {
|
|
10613
10613
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
10614
10614
|
if (e) return e.call(r);
|
|
10615
10615
|
if (r && typeof r.length == "number") return {
|
|
@@ -10624,7 +10624,7 @@ var sf = /* @__PURE__ */ (function() {
|
|
|
10624
10624
|
}, Ia = (
|
|
10625
10625
|
/** @class */
|
|
10626
10626
|
(function(r) {
|
|
10627
|
-
|
|
10627
|
+
sf(t, r);
|
|
10628
10628
|
function t(e, n, i) {
|
|
10629
10629
|
var s = r.call(this, e, n, i) || this;
|
|
10630
10630
|
return s.stringify = JSON.stringify, s.parse = JSON.parse, s._buffer = [], s._bufferSize = 0, s._buffering = !1, s._chunkedData = {}, s._encodingQueue = new fl.EncodingQueue(), s.connectionId = s.options.connectionId || t.ID_PREFIX + et.randomToken(), s.label = s.options.label || s.connectionId, s.serialization = s.options.serialization || Xe.Binary, s.reliable = !!s.options.reliable, s._encodingQueue.on("done", function(a) {
|
|
@@ -10737,7 +10737,7 @@ var sf = /* @__PURE__ */ (function() {
|
|
|
10737
10737
|
var n, i, s = et.chunk(e);
|
|
10738
10738
|
j.default.log("DC#".concat(this.connectionId, " Try to send ").concat(s.length, " chunks..."));
|
|
10739
10739
|
try {
|
|
10740
|
-
for (var a =
|
|
10740
|
+
for (var a = of(s), o = a.next(); !o.done; o = a.next()) {
|
|
10741
10741
|
var c = o.value;
|
|
10742
10742
|
this.send(c, !0);
|
|
10743
10743
|
}
|
|
@@ -10956,7 +10956,7 @@ var Ba = function(r, t, e, n) {
|
|
|
10956
10956
|
});
|
|
10957
10957
|
}, r;
|
|
10958
10958
|
})()
|
|
10959
|
-
),
|
|
10959
|
+
), af = /* @__PURE__ */ (function() {
|
|
10960
10960
|
var r = function(t, e) {
|
|
10961
10961
|
return r = Object.setPrototypeOf || {
|
|
10962
10962
|
__proto__: []
|
|
@@ -10994,7 +10994,7 @@ var Ba = function(r, t, e, n) {
|
|
|
10994
10994
|
}
|
|
10995
10995
|
};
|
|
10996
10996
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
10997
|
-
},
|
|
10997
|
+
}, cf = function(r, t) {
|
|
10998
10998
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
10999
10999
|
if (!e) return r;
|
|
11000
11000
|
var n = e.call(r), i, s = [], a;
|
|
@@ -11015,7 +11015,7 @@ var Ba = function(r, t, e, n) {
|
|
|
11015
11015
|
}, so = (
|
|
11016
11016
|
/** @class */
|
|
11017
11017
|
(function(r) {
|
|
11018
|
-
|
|
11018
|
+
af(t, r);
|
|
11019
11019
|
function t(e, n) {
|
|
11020
11020
|
var i = r.call(this) || this;
|
|
11021
11021
|
i._id = null, i._lastServerId = null, i._destroyed = !1, i._disconnected = !1, i._open = !1, i._connections = /* @__PURE__ */ new Map(), i._lostMessages = /* @__PURE__ */ new Map();
|
|
@@ -11072,7 +11072,7 @@ var Ba = function(r, t, e, n) {
|
|
|
11072
11072
|
var e, n, i = /* @__PURE__ */ Object.create(null);
|
|
11073
11073
|
try {
|
|
11074
11074
|
for (var s = ii(this._connections), a = s.next(); !a.done; a = s.next()) {
|
|
11075
|
-
var o =
|
|
11075
|
+
var o = cf(a.value, 2), c = o[0], l = o[1];
|
|
11076
11076
|
i[c] = l;
|
|
11077
11077
|
}
|
|
11078
11078
|
} catch (h) {
|
|
@@ -11321,16 +11321,16 @@ var Ba = function(r, t, e, n) {
|
|
|
11321
11321
|
});
|
|
11322
11322
|
}, t.DEFAULT_KEY = "peerjs", t;
|
|
11323
11323
|
})(tr.EventEmitter)
|
|
11324
|
-
),
|
|
11325
|
-
const
|
|
11324
|
+
), lf = ll.Peer;
|
|
11325
|
+
const Ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11326
11326
|
__proto__: null,
|
|
11327
11327
|
get Peer() {
|
|
11328
11328
|
return so;
|
|
11329
11329
|
},
|
|
11330
|
-
default:
|
|
11330
|
+
default: lf,
|
|
11331
11331
|
util: et
|
|
11332
11332
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11333
|
-
class
|
|
11333
|
+
class uf {
|
|
11334
11334
|
/**
|
|
11335
11335
|
* Creates a new ExponentialBackoff.
|
|
11336
11336
|
* @param base the base of the exponentiation
|
|
@@ -11637,7 +11637,7 @@ class pl {
|
|
|
11637
11637
|
globalThis.clearTimeout(this.retryTimeout);
|
|
11638
11638
|
}
|
|
11639
11639
|
}
|
|
11640
|
-
class
|
|
11640
|
+
class hf {
|
|
11641
11641
|
/**
|
|
11642
11642
|
* Creates a new WebsocketBuilder.
|
|
11643
11643
|
*
|
|
@@ -11832,11 +11832,11 @@ class ff {
|
|
|
11832
11832
|
} }), this;
|
|
11833
11833
|
}
|
|
11834
11834
|
}
|
|
11835
|
-
const
|
|
11835
|
+
const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11836
11836
|
__proto__: null,
|
|
11837
|
-
ExponentialBackoff:
|
|
11837
|
+
ExponentialBackoff: uf,
|
|
11838
11838
|
Websocket: pl,
|
|
11839
|
-
WebsocketBuilder:
|
|
11839
|
+
WebsocketBuilder: hf,
|
|
11840
11840
|
get WebsocketEvent() {
|
|
11841
11841
|
return lt;
|
|
11842
11842
|
}
|
|
@@ -11915,19 +11915,19 @@ function zs(r, t, e, n, i) {
|
|
|
11915
11915
|
}
|
|
11916
11916
|
n[0] = s, n[1] = a, n[2] = o, n[3] = c, n[4] = l, n[5] = h, i[0] = d, i[1] = m, i[2] = p, i[3] = b, i[4] = T, i[5] = g;
|
|
11917
11917
|
}
|
|
11918
|
-
const qe = 32,
|
|
11918
|
+
const qe = 32, ff = (r, t) => r.candidate - t.candidate, on = /* @__PURE__ */ new Array(qe).fill().map(() => ({
|
|
11919
11919
|
count: 0,
|
|
11920
11920
|
bounds: new Float32Array(6),
|
|
11921
11921
|
rightCacheBounds: new Float32Array(6),
|
|
11922
11922
|
leftCacheBounds: new Float32Array(6),
|
|
11923
11923
|
candidate: 0
|
|
11924
11924
|
})), vr = /* @__PURE__ */ new Float32Array(6);
|
|
11925
|
-
function
|
|
11925
|
+
function df(r, t, e, n, i, s) {
|
|
11926
11926
|
let a = -1, o = 0;
|
|
11927
11927
|
if (s === Eo)
|
|
11928
11928
|
a = La(t), a !== -1 && (o = (t[a] + t[a + 3]) / 2);
|
|
11929
11929
|
else if (s === ml)
|
|
11930
|
-
a = La(r), a !== -1 && (o =
|
|
11930
|
+
a = La(r), a !== -1 && (o = pf(e, n, i, a));
|
|
11931
11931
|
else if (s === yl) {
|
|
11932
11932
|
const c = ri(r);
|
|
11933
11933
|
let l = Os * i;
|
|
@@ -11950,7 +11950,7 @@ function pf(r, t, e, n, i, s) {
|
|
|
11950
11950
|
z[R] = 1 / 0, z[R + 3] = -1 / 0, O[R] = 1 / 0, O[R + 3] = -1 / 0, E[R] = 1 / 0, E[R + 3] = -1 / 0;
|
|
11951
11951
|
gr(M, e, E);
|
|
11952
11952
|
}
|
|
11953
|
-
x.sort(
|
|
11953
|
+
x.sort(ff);
|
|
11954
11954
|
let C = i;
|
|
11955
11955
|
for (let M = 0; M < C; M++) {
|
|
11956
11956
|
const P = x[M];
|
|
@@ -12010,7 +12010,7 @@ function pf(r, t, e, n, i, s) {
|
|
|
12010
12010
|
console.warn(`BVH: Invalid build strategy value ${s} used.`);
|
|
12011
12011
|
return { axis: a, pos: o };
|
|
12012
12012
|
}
|
|
12013
|
-
function
|
|
12013
|
+
function pf(r, t, e, n) {
|
|
12014
12014
|
let i = 0;
|
|
12015
12015
|
const s = r.offset;
|
|
12016
12016
|
for (let a = t, o = t + e; a < o; a++)
|
|
@@ -12022,7 +12022,7 @@ class Is {
|
|
|
12022
12022
|
this.boundingData = new Float32Array(6);
|
|
12023
12023
|
}
|
|
12024
12024
|
}
|
|
12025
|
-
function
|
|
12025
|
+
function mf(r, t, e, n, i, s) {
|
|
12026
12026
|
let a = n, o = n + i - 1;
|
|
12027
12027
|
const c = s.pos, l = s.axis * 2, h = e.offset || 0;
|
|
12028
12028
|
for (; ; ) {
|
|
@@ -12045,11 +12045,11 @@ function yf(r, t, e, n, i, s) {
|
|
|
12045
12045
|
}
|
|
12046
12046
|
}
|
|
12047
12047
|
let Sl, Vr, ao, xl;
|
|
12048
|
-
const
|
|
12048
|
+
const yf = Math.pow(2, 32);
|
|
12049
12049
|
function co(r) {
|
|
12050
12050
|
return "count" in r ? 1 : 1 + co(r.left) + co(r.right);
|
|
12051
12051
|
}
|
|
12052
|
-
function
|
|
12052
|
+
function gf(r, t, e) {
|
|
12053
12053
|
return Sl = new Float32Array(e), Vr = new Uint32Array(e), ao = new Uint16Array(e), xl = new Uint8Array(e), lo(r, t);
|
|
12054
12054
|
}
|
|
12055
12055
|
function lo(r, t) {
|
|
@@ -12062,12 +12062,12 @@ function lo(r, t) {
|
|
|
12062
12062
|
const { left: a, right: o, splitAxis: c } = t, l = r + $t;
|
|
12063
12063
|
let h = lo(l, a);
|
|
12064
12064
|
const d = r / $t, p = h / $t - d;
|
|
12065
|
-
if (p >
|
|
12065
|
+
if (p > yf)
|
|
12066
12066
|
throw new Error("MeshBVH: Cannot store relative child node offset greater than 32 bits.");
|
|
12067
12067
|
return Vr[e + 6] = p, Vr[e + 7] = c, lo(h, o);
|
|
12068
12068
|
}
|
|
12069
12069
|
}
|
|
12070
|
-
function
|
|
12070
|
+
function vf(r, t, e, n, i) {
|
|
12071
12071
|
const {
|
|
12072
12072
|
maxDepth: s,
|
|
12073
12073
|
verbose: a,
|
|
@@ -12084,10 +12084,10 @@ function Sf(r, t, e, n, i) {
|
|
|
12084
12084
|
function g(v, x, _, C = null, M = 0) {
|
|
12085
12085
|
if (!p && M >= s && (p = !0, a && console.warn(`BVH: Max depth of ${s} reached when generating BVH. Consider increasing maxDepth.`)), _ <= o || M >= s)
|
|
12086
12086
|
return T(x + _), v.offset = x, v.count = _, v;
|
|
12087
|
-
const P =
|
|
12087
|
+
const P = df(v.boundingData, C, t, x, _, c);
|
|
12088
12088
|
if (P.axis === -1)
|
|
12089
12089
|
return T(x + _), v.offset = x, v.count = _, v;
|
|
12090
|
-
const E =
|
|
12090
|
+
const E = mf(h, d, t, x, _, P);
|
|
12091
12091
|
if (E === x || E === x + _)
|
|
12092
12092
|
T(x + _), v.offset = x, v.count = _;
|
|
12093
12093
|
else {
|
|
@@ -12100,14 +12100,14 @@ function Sf(r, t, e, n, i) {
|
|
|
12100
12100
|
return v;
|
|
12101
12101
|
}
|
|
12102
12102
|
}
|
|
12103
|
-
function
|
|
12103
|
+
function Sf(r, t) {
|
|
12104
12104
|
const e = t.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer, n = r.getRootRanges(t.range), i = n[0], s = n[n.length - 1], a = {
|
|
12105
12105
|
offset: i.offset,
|
|
12106
12106
|
count: s.offset + s.count - i.offset
|
|
12107
12107
|
}, o = new Float32Array(6 * a.count);
|
|
12108
12108
|
o.offset = a.offset, r.computePrimitiveBounds(a.offset, a.count, o), r._roots = n.map((c) => {
|
|
12109
|
-
const l =
|
|
12110
|
-
return
|
|
12109
|
+
const l = vf(r, o, c.offset, c.count, t), h = co(l), d = new e($t * h);
|
|
12110
|
+
return gf(0, l, d), d;
|
|
12111
12111
|
});
|
|
12112
12112
|
}
|
|
12113
12113
|
class Ro {
|
|
@@ -12122,7 +12122,7 @@ class Ro {
|
|
|
12122
12122
|
this._primitives.push(t);
|
|
12123
12123
|
}
|
|
12124
12124
|
}
|
|
12125
|
-
class
|
|
12125
|
+
class xf {
|
|
12126
12126
|
constructor() {
|
|
12127
12127
|
this.float32Array = null, this.uint16Array = null, this.uint32Array = null;
|
|
12128
12128
|
const t = [];
|
|
@@ -12134,10 +12134,10 @@ class _f {
|
|
|
12134
12134
|
};
|
|
12135
12135
|
}
|
|
12136
12136
|
}
|
|
12137
|
-
const mt = /* @__PURE__ */ new
|
|
12137
|
+
const mt = /* @__PURE__ */ new xf();
|
|
12138
12138
|
let hn, $n;
|
|
12139
12139
|
const Nn = [], Sr = /* @__PURE__ */ new Ro(() => new Fe());
|
|
12140
|
-
function
|
|
12140
|
+
function _f(r, t, e, n, i, s) {
|
|
12141
12141
|
hn = Sr.getPrimitive(), $n = Sr.getPrimitive(), Nn.push(hn, $n), mt.setBuffer(r._roots[t]);
|
|
12142
12142
|
const a = uo(0, r.geometry, e, n, i, s);
|
|
12143
12143
|
mt.clearBuffer(), Sr.releasePrimitive(hn), Sr.releasePrimitive($n), Nn.pop(), Nn.pop();
|
|
@@ -12209,7 +12209,7 @@ function uo(r, t, e, n, i = null, s = 0, a = 0) {
|
|
|
12209
12209
|
}
|
|
12210
12210
|
const vi = /* @__PURE__ */ new mt.constructor(), Yr = /* @__PURE__ */ new mt.constructor(), ln = /* @__PURE__ */ new Ro(() => new Fe()), Un = /* @__PURE__ */ new Fe(), Dn = /* @__PURE__ */ new Fe(), Bs = /* @__PURE__ */ new Fe(), Ns = /* @__PURE__ */ new Fe();
|
|
12211
12211
|
let Us = !1;
|
|
12212
|
-
function
|
|
12212
|
+
function bf(r, t, e, n) {
|
|
12213
12213
|
if (Us)
|
|
12214
12214
|
throw new Error("MeshBVH: Recursive calls to bvhcast not supported.");
|
|
12215
12215
|
Us = !0;
|
|
@@ -12430,7 +12430,7 @@ class _l {
|
|
|
12430
12430
|
t = {
|
|
12431
12431
|
...vl,
|
|
12432
12432
|
...t
|
|
12433
|
-
},
|
|
12433
|
+
}, Sf(this, t);
|
|
12434
12434
|
}
|
|
12435
12435
|
getRootRanges() {
|
|
12436
12436
|
throw new Error("BVH: getRootRanges() not implemented");
|
|
@@ -12534,7 +12534,7 @@ class _l {
|
|
|
12534
12534
|
const h = this._roots;
|
|
12535
12535
|
for (let d = 0, m = h.length; d < m; d++) {
|
|
12536
12536
|
const p = h[d];
|
|
12537
|
-
if (c =
|
|
12537
|
+
if (c = _f(this, d, n, i, e, l), c)
|
|
12538
12538
|
break;
|
|
12539
12539
|
l += p.byteLength / $t;
|
|
12540
12540
|
}
|
|
@@ -12542,10 +12542,10 @@ class _l {
|
|
|
12542
12542
|
}
|
|
12543
12543
|
bvhcast(t, e, n) {
|
|
12544
12544
|
let { intersectsRanges: i } = n;
|
|
12545
|
-
return
|
|
12545
|
+
return bf(this, t, e, i);
|
|
12546
12546
|
}
|
|
12547
12547
|
}
|
|
12548
|
-
function
|
|
12548
|
+
function Tf() {
|
|
12549
12549
|
return typeof SharedArrayBuffer < "u";
|
|
12550
12550
|
}
|
|
12551
12551
|
function Ao(r) {
|
|
@@ -12554,32 +12554,32 @@ function Ao(r) {
|
|
|
12554
12554
|
function ns(r) {
|
|
12555
12555
|
return Ao(r) / 3;
|
|
12556
12556
|
}
|
|
12557
|
-
function
|
|
12557
|
+
function Cf(r, t = ArrayBuffer) {
|
|
12558
12558
|
return r > 65535 ? new Uint32Array(new t(4 * r)) : new Uint16Array(new t(2 * r));
|
|
12559
12559
|
}
|
|
12560
|
-
function
|
|
12560
|
+
function Mf(r, t) {
|
|
12561
12561
|
if (!r.index) {
|
|
12562
|
-
const e = r.attributes.position.count, n = t.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer, i =
|
|
12562
|
+
const e = r.attributes.position.count, n = t.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer, i = Cf(e, n);
|
|
12563
12563
|
r.setIndex(new he(i, 1));
|
|
12564
12564
|
for (let s = 0; s < e; s++)
|
|
12565
12565
|
i[s] = s;
|
|
12566
12566
|
}
|
|
12567
12567
|
}
|
|
12568
|
-
function
|
|
12568
|
+
function wf(r, t, e) {
|
|
12569
12569
|
const n = Ao(r) / e, i = t || r.drawRange, s = i.start / e, a = (i.start + i.count) / e, o = Math.max(0, s), c = Math.min(n, a) - o;
|
|
12570
12570
|
return {
|
|
12571
12571
|
offset: Math.floor(o),
|
|
12572
12572
|
count: Math.floor(c)
|
|
12573
12573
|
};
|
|
12574
12574
|
}
|
|
12575
|
-
function
|
|
12575
|
+
function Pf(r, t) {
|
|
12576
12576
|
return r.groups.map((e) => ({
|
|
12577
12577
|
offset: e.start / t,
|
|
12578
12578
|
count: e.count / t
|
|
12579
12579
|
}));
|
|
12580
12580
|
}
|
|
12581
12581
|
function ja(r, t, e) {
|
|
12582
|
-
const n =
|
|
12582
|
+
const n = wf(r, t, e), i = Pf(r, e);
|
|
12583
12583
|
if (!i.length)
|
|
12584
12584
|
return [n];
|
|
12585
12585
|
const s = [], a = n.offset, o = n.offset + n.count, c = Ao(r) / e, l = [];
|
|
@@ -12631,7 +12631,7 @@ class Tl extends _l {
|
|
|
12631
12631
|
if (t.index && t.index.isInterleavedBufferAttribute)
|
|
12632
12632
|
throw new Error("BVH: InterleavedBufferAttribute is not supported for the index attribute.");
|
|
12633
12633
|
} else throw new Error("BVH: Only BufferGeometries are supported.");
|
|
12634
|
-
if (e.useSharedArrayBuffer && !
|
|
12634
|
+
if (e.useSharedArrayBuffer && !Tf())
|
|
12635
12635
|
throw new Error("BVH: SharedArrayBuffer is not available.");
|
|
12636
12636
|
super(), this.geometry = t, this.resolvePrimitiveIndex = e.indirect ? (n) => this._indirectBuffer[n] : (n) => n, this.primitiveBuffer = null, this.primitiveBufferStride = null, this._indirectBuffer = null, e = {
|
|
12637
12637
|
...vl,
|
|
@@ -12644,7 +12644,7 @@ class Tl extends _l {
|
|
|
12644
12644
|
const i = ja(e, t.range, n), s = bl(i, t.useSharedArrayBuffer);
|
|
12645
12645
|
this._indirectBuffer = s;
|
|
12646
12646
|
} else
|
|
12647
|
-
|
|
12647
|
+
Mf(e, t);
|
|
12648
12648
|
super.init(t), !e.boundingBox && t.setBoundingBox && (e.boundingBox = this.getBoundingBox(new Fe()));
|
|
12649
12649
|
}
|
|
12650
12650
|
// Abstract methods to be implemented by subclasses
|
|
@@ -12694,7 +12694,7 @@ en.prototype.setFromBox = /* @__PURE__ */ (function() {
|
|
|
12694
12694
|
this.min = a, this.max = o;
|
|
12695
12695
|
};
|
|
12696
12696
|
})();
|
|
12697
|
-
const
|
|
12697
|
+
const Ef = /* @__PURE__ */ (function() {
|
|
12698
12698
|
const r = /* @__PURE__ */ new H(), t = /* @__PURE__ */ new H(), e = /* @__PURE__ */ new H();
|
|
12699
12699
|
return function(i, s, a) {
|
|
12700
12700
|
const o = i.start, c = r, l = s.start, h = t;
|
|
@@ -12706,7 +12706,7 @@ const kf = /* @__PURE__ */ (function() {
|
|
|
12706
12706
|
})(), Oo = /* @__PURE__ */ (function() {
|
|
12707
12707
|
const r = /* @__PURE__ */ new fn(), t = /* @__PURE__ */ new H(), e = /* @__PURE__ */ new H();
|
|
12708
12708
|
return function(i, s, a, o) {
|
|
12709
|
-
|
|
12709
|
+
Ef(i, s, r);
|
|
12710
12710
|
let c = r.x, l = r.y;
|
|
12711
12711
|
if (c >= 0 && c <= 1 && l >= 0 && l <= 1) {
|
|
12712
12712
|
i.at(c, a), s.at(l, o);
|
|
@@ -12732,7 +12732,7 @@ const kf = /* @__PURE__ */ (function() {
|
|
|
12732
12732
|
}
|
|
12733
12733
|
}
|
|
12734
12734
|
};
|
|
12735
|
-
})(),
|
|
12735
|
+
})(), kf = /* @__PURE__ */ (function() {
|
|
12736
12736
|
const r = /* @__PURE__ */ new H(), t = /* @__PURE__ */ new H(), e = /* @__PURE__ */ new hc(), n = /* @__PURE__ */ new tn();
|
|
12737
12737
|
return function(s, a) {
|
|
12738
12738
|
const { radius: o, center: c } = s, { a: l, b: h, c: d } = a;
|
|
@@ -12744,7 +12744,7 @@ const kf = /* @__PURE__ */ (function() {
|
|
|
12744
12744
|
}
|
|
12745
12745
|
return !1;
|
|
12746
12746
|
};
|
|
12747
|
-
})(),
|
|
12747
|
+
})(), Rf = ["x", "y", "z"], Ye = 1e-15, Ga = Ye * Ye;
|
|
12748
12748
|
function ge(r) {
|
|
12749
12749
|
return Math.abs(r) < Ye;
|
|
12750
12750
|
}
|
|
@@ -12753,7 +12753,7 @@ class xe extends Mn {
|
|
|
12753
12753
|
super(...t), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new H()), this.satBounds = new Array(4).fill().map(() => new en()), this.points = [this.a, this.b, this.c], this.plane = new hc(), this.isDegenerateIntoSegment = !1, this.isDegenerateIntoPoint = !1, this.degenerateSegment = new tn(), this.needsUpdate = !0;
|
|
12754
12754
|
}
|
|
12755
12755
|
intersectsSphere(t) {
|
|
12756
|
-
return
|
|
12756
|
+
return kf(t, this);
|
|
12757
12757
|
}
|
|
12758
12758
|
update() {
|
|
12759
12759
|
const t = this.a, e = this.b, n = this.c, i = this.points, s = this.satAxes, a = this.satBounds, o = s[0], c = a[0];
|
|
@@ -12872,7 +12872,7 @@ xe.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
12872
12872
|
let ht = 0, st = Math.abs(nt.x);
|
|
12873
12873
|
const vt = Math.abs(nt.y);
|
|
12874
12874
|
vt > st && (st = vt, ht = 1), Math.abs(nt.z) > st && (ht = 2);
|
|
12875
|
-
const ot =
|
|
12875
|
+
const ot = Rf[ht], ft = this.a[ot], at = this.b[ot], Yt = this.c[ot], Jt = C.a[ot], jt = C.b[ot], Zt = C.c[ot];
|
|
12876
12876
|
if (b(this, ft, at, Yt, N, L, R, B, A, h, o))
|
|
12877
12877
|
return m(this, C, M, P);
|
|
12878
12878
|
if (b(C, Jt, jt, Zt, W, yt, V, $, Q, d, c))
|
|
@@ -13043,13 +13043,13 @@ Xt.prototype.distanceToBox = /* @__PURE__ */ (function() {
|
|
|
13043
13043
|
return Math.sqrt(b);
|
|
13044
13044
|
};
|
|
13045
13045
|
})();
|
|
13046
|
-
class
|
|
13046
|
+
class Af extends Ro {
|
|
13047
13047
|
constructor() {
|
|
13048
13048
|
super(() => new xe());
|
|
13049
13049
|
}
|
|
13050
13050
|
}
|
|
13051
|
-
const Se = /* @__PURE__ */ new
|
|
13052
|
-
function
|
|
13051
|
+
const Se = /* @__PURE__ */ new Af(), si = /* @__PURE__ */ new H(), Ds = /* @__PURE__ */ new H();
|
|
13052
|
+
function Of(r, t, e = {}, n = 0, i = 1 / 0) {
|
|
13053
13053
|
const s = n * n, a = i * i;
|
|
13054
13054
|
let o = 1 / 0, c = null;
|
|
13055
13055
|
if (r.shapecast(
|
|
@@ -13066,8 +13066,8 @@ function zf(r, t, e = {}, n = 0, i = 1 / 0) {
|
|
|
13066
13066
|
const l = Math.sqrt(o);
|
|
13067
13067
|
return e.point ? e.point.copy(Ds) : e.point = Ds.clone(), e.distance = l, e.faceIndex = c, e;
|
|
13068
13068
|
}
|
|
13069
|
-
const xr = parseInt(fc) >= 169,
|
|
13070
|
-
function
|
|
13069
|
+
const xr = parseInt(fc) >= 169, zf = parseInt(fc) <= 161, Sn = /* @__PURE__ */ new H(), xn = /* @__PURE__ */ new H(), _n = /* @__PURE__ */ new H(), _r = /* @__PURE__ */ new fn(), br = /* @__PURE__ */ new fn(), Tr = /* @__PURE__ */ new fn(), Wa = /* @__PURE__ */ new H(), $a = /* @__PURE__ */ new H(), Ha = /* @__PURE__ */ new H(), oi = /* @__PURE__ */ new H();
|
|
13070
|
+
function If(r, t, e, n, i, s, a, o) {
|
|
13071
13071
|
let c;
|
|
13072
13072
|
if (s === Hl ? c = r.intersectTriangle(n, e, t, !0, i) : c = r.intersectTriangle(t, e, n, s !== Gs, i), c === null) return null;
|
|
13073
13073
|
const l = r.origin.distanceTo(i);
|
|
@@ -13078,7 +13078,7 @@ function Bf(r, t, e, n, i, s, a, o) {
|
|
|
13078
13078
|
}
|
|
13079
13079
|
function qa(r, t, e, n, i, s, a, o, c, l, h) {
|
|
13080
13080
|
Sn.fromBufferAttribute(t, s), xn.fromBufferAttribute(t, a), _n.fromBufferAttribute(t, o);
|
|
13081
|
-
const d =
|
|
13081
|
+
const d = If(r, Sn, xn, _n, oi, c, l, h);
|
|
13082
13082
|
if (d) {
|
|
13083
13083
|
if (n) {
|
|
13084
13084
|
_r.fromBufferAttribute(n, s), br.fromBufferAttribute(n, a), Tr.fromBufferAttribute(n, o), d.uv = new fn();
|
|
@@ -13088,7 +13088,7 @@ function qa(r, t, e, n, i, s, a, o, c, l, h) {
|
|
|
13088
13088
|
if (i) {
|
|
13089
13089
|
_r.fromBufferAttribute(i, s), br.fromBufferAttribute(i, a), Tr.fromBufferAttribute(i, o), d.uv1 = new fn();
|
|
13090
13090
|
const p = Mn.getInterpolation(oi, Sn, xn, _n, _r, br, Tr, d.uv1);
|
|
13091
|
-
xr || (d.uv1 = p),
|
|
13091
|
+
xr || (d.uv1 = p), zf && (d.uv2 = d.uv1);
|
|
13092
13092
|
}
|
|
13093
13093
|
if (e) {
|
|
13094
13094
|
Wa.fromBufferAttribute(e, s), $a.fromBufferAttribute(e, a), Ha.fromBufferAttribute(e, o), d.normal = new H();
|
|
@@ -13146,12 +13146,12 @@ function Pt(r, t, e, n) {
|
|
|
13146
13146
|
let o = t, c = t + 1, l = t + 2;
|
|
13147
13147
|
e && (o = e.getX(o), c = e.getX(c), l = e.getX(l)), i.x = n.getX(o), i.y = n.getY(o), i.z = n.getZ(o), s.x = n.getX(c), s.y = n.getY(c), s.z = n.getZ(c), a.x = n.getX(l), a.y = n.getY(l), a.z = n.getZ(l);
|
|
13148
13148
|
}
|
|
13149
|
-
function
|
|
13149
|
+
function Bf(r, t, e, n, i, s, a, o) {
|
|
13150
13150
|
const { geometry: c, _indirectBuffer: l } = r;
|
|
13151
13151
|
for (let h = n, d = n + i; h < d; h++)
|
|
13152
13152
|
is(c, t, e, h, s, a, o);
|
|
13153
13153
|
}
|
|
13154
|
-
function
|
|
13154
|
+
function Nf(r, t, e, n, i, s, a) {
|
|
13155
13155
|
const { geometry: o, _indirectBuffer: c } = r;
|
|
13156
13156
|
let l = 1 / 0, h = null;
|
|
13157
13157
|
for (let d = n, m = n + i; d < m; d++) {
|
|
@@ -13160,7 +13160,7 @@ function Uf(r, t, e, n, i, s, a) {
|
|
|
13160
13160
|
}
|
|
13161
13161
|
return h;
|
|
13162
13162
|
}
|
|
13163
|
-
function
|
|
13163
|
+
function Uf(r, t, e, n, i, s, a) {
|
|
13164
13164
|
const { geometry: o } = e, { index: c } = o, l = o.attributes.position;
|
|
13165
13165
|
for (let h = r, d = t + r; h < d; h++) {
|
|
13166
13166
|
let m;
|
|
@@ -13169,7 +13169,7 @@ function Df(r, t, e, n, i, s, a) {
|
|
|
13169
13169
|
}
|
|
13170
13170
|
return !1;
|
|
13171
13171
|
}
|
|
13172
|
-
function
|
|
13172
|
+
function Df(r, t = null) {
|
|
13173
13173
|
t && Array.isArray(t) && (t = new Set(t));
|
|
13174
13174
|
const e = r.geometry, n = e.index ? e.index.array : null, i = e.attributes.position;
|
|
13175
13175
|
let s, a, o, c, l = 0;
|
|
@@ -13218,14 +13218,14 @@ function dn(r, t, e, n, i) {
|
|
|
13218
13218
|
let v = t[r], x = t[r + 3], _ = t[r + 1], C = t[r + 3 + 1], M = t[r + 2], P = t[r + 3 + 2];
|
|
13219
13219
|
return d >= 0 ? (s = (v - b) * d, a = (x - b) * d) : (s = (x - b) * d, a = (v - b) * d), m >= 0 ? (o = (_ - T) * m, c = (C - T) * m) : (o = (C - T) * m, c = (_ - T) * m), s > c || o > a || ((o > s || isNaN(s)) && (s = o), (c < a || isNaN(a)) && (a = c), p >= 0 ? (l = (M - g) * p, h = (P - g) * p) : (l = (P - g) * p, h = (M - g) * p), s > h || l > a) ? !1 : ((l > s || s !== s) && (s = l), (h < a || a !== a) && (a = h), s <= i && a >= n);
|
|
13220
13220
|
}
|
|
13221
|
-
function
|
|
13221
|
+
function Lf(r, t, e, n, i, s, a, o) {
|
|
13222
13222
|
const { geometry: c, _indirectBuffer: l } = r;
|
|
13223
13223
|
for (let h = n, d = n + i; h < d; h++) {
|
|
13224
13224
|
let m = l ? l[h] : h;
|
|
13225
13225
|
is(c, t, e, m, s, a, o);
|
|
13226
13226
|
}
|
|
13227
13227
|
}
|
|
13228
|
-
function
|
|
13228
|
+
function Ff(r, t, e, n, i, s, a) {
|
|
13229
13229
|
const { geometry: o, _indirectBuffer: c } = r;
|
|
13230
13230
|
let l = 1 / 0, h = null;
|
|
13231
13231
|
for (let d = n, m = n + i; d < m; d++) {
|
|
@@ -13234,7 +13234,7 @@ function Vf(r, t, e, n, i, s, a) {
|
|
|
13234
13234
|
}
|
|
13235
13235
|
return h;
|
|
13236
13236
|
}
|
|
13237
|
-
function
|
|
13237
|
+
function Vf(r, t, e, n, i, s, a) {
|
|
13238
13238
|
const { geometry: o } = e, { index: c } = o, l = o.attributes.position;
|
|
13239
13239
|
for (let h = r, d = t + r; h < d; h++) {
|
|
13240
13240
|
let m;
|
|
@@ -13243,14 +13243,14 @@ function Jf(r, t, e, n, i, s, a) {
|
|
|
13243
13243
|
}
|
|
13244
13244
|
return !1;
|
|
13245
13245
|
}
|
|
13246
|
-
function
|
|
13246
|
+
function Jf(r, t, e, n, i, s, a) {
|
|
13247
13247
|
mt.setBuffer(r._roots[t]), ho(0, r, e, n, i, s, a), mt.clearBuffer();
|
|
13248
13248
|
}
|
|
13249
13249
|
function ho(r, t, e, n, i, s, a) {
|
|
13250
13250
|
const { float32Array: o, uint16Array: c, uint32Array: l } = mt, h = r * 2;
|
|
13251
13251
|
if (kt(h, c)) {
|
|
13252
13252
|
const m = Ht(r, l), p = ie(h, c);
|
|
13253
|
-
|
|
13253
|
+
Bf(t, e, n, m, p, i, s, a);
|
|
13254
13254
|
} else {
|
|
13255
13255
|
const m = Bt(r);
|
|
13256
13256
|
dn(m, o, n, s, a) && ho(m, t, e, n, i, s, a);
|
|
@@ -13258,8 +13258,8 @@ function ho(r, t, e, n, i, s, a) {
|
|
|
13258
13258
|
dn(p, o, n, s, a) && ho(p, t, e, n, i, s, a);
|
|
13259
13259
|
}
|
|
13260
13260
|
}
|
|
13261
|
-
const
|
|
13262
|
-
function
|
|
13261
|
+
const jf = ["x", "y", "z"];
|
|
13262
|
+
function Gf(r, t, e, n, i, s) {
|
|
13263
13263
|
mt.setBuffer(r._roots[t]);
|
|
13264
13264
|
const a = fo(0, r, e, n, i, s);
|
|
13265
13265
|
return mt.clearBuffer(), a;
|
|
@@ -13269,9 +13269,9 @@ function fo(r, t, e, n, i, s) {
|
|
|
13269
13269
|
let l = r * 2;
|
|
13270
13270
|
if (kt(l, o)) {
|
|
13271
13271
|
const d = Ht(r, c), m = ie(l, o);
|
|
13272
|
-
return
|
|
13272
|
+
return Nf(t, e, n, d, m, i, s);
|
|
13273
13273
|
} else {
|
|
13274
|
-
const d = ko(r, c), m =
|
|
13274
|
+
const d = ko(r, c), m = jf[d], b = n.direction[m] >= 0;
|
|
13275
13275
|
let T, g;
|
|
13276
13276
|
b ? (T = Bt(r), g = Nt(r, c)) : (T = Nt(r, c), g = Bt(r));
|
|
13277
13277
|
const x = dn(T, a, n, i, s) ? fo(T, t, e, n, i, s) : null;
|
|
@@ -13288,7 +13288,7 @@ function fo(r, t, e, n, i, s) {
|
|
|
13288
13288
|
}
|
|
13289
13289
|
}
|
|
13290
13290
|
const Cr = /* @__PURE__ */ new Fe(), Fn = /* @__PURE__ */ new xe(), Vn = /* @__PURE__ */ new xe(), ai = /* @__PURE__ */ new Oe(), Ya = /* @__PURE__ */ new Xt(), Mr = /* @__PURE__ */ new Xt();
|
|
13291
|
-
function
|
|
13291
|
+
function Wf(r, t, e, n) {
|
|
13292
13292
|
mt.setBuffer(r._roots[t]);
|
|
13293
13293
|
const i = po(0, r, e, n);
|
|
13294
13294
|
return mt.clearBuffer(), i;
|
|
@@ -13323,12 +13323,12 @@ function po(r, t, e, n, i = null) {
|
|
|
13323
13323
|
return xt(h, s, Cr), !!(i.intersectsBox(Cr) && po(h, t, e, n, i) || (xt(d, s, Cr), i.intersectsBox(Cr) && po(d, t, e, n, i)));
|
|
13324
13324
|
}
|
|
13325
13325
|
}
|
|
13326
|
-
const wr = /* @__PURE__ */ new Oe(), Ls = /* @__PURE__ */ new Xt(), ci = /* @__PURE__ */ new Xt(),
|
|
13327
|
-
function
|
|
13326
|
+
const wr = /* @__PURE__ */ new Oe(), Ls = /* @__PURE__ */ new Xt(), ci = /* @__PURE__ */ new Xt(), $f = /* @__PURE__ */ new H(), Hf = /* @__PURE__ */ new H(), qf = /* @__PURE__ */ new H(), Xf = /* @__PURE__ */ new H();
|
|
13327
|
+
function Yf(r, t, e, n = {}, i = {}, s = 0, a = 1 / 0) {
|
|
13328
13328
|
t.boundingBox || t.computeBoundingBox(), Ls.set(t.boundingBox.min, t.boundingBox.max, e), Ls.needsUpdate = !0;
|
|
13329
13329
|
const o = r.geometry, c = o.attributes.position, l = o.index, h = t.attributes.position, d = t.index, m = Se.getPrimitive(), p = Se.getPrimitive();
|
|
13330
|
-
let b =
|
|
13331
|
-
i && (g =
|
|
13330
|
+
let b = $f, T = Hf, g = null, v = null;
|
|
13331
|
+
i && (g = qf, v = Xf);
|
|
13332
13332
|
let x = 1 / 0, _ = null, C = null;
|
|
13333
13333
|
return wr.copy(e).invert(), ci.matrix.copy(wr), r.shapecast(
|
|
13334
13334
|
{
|
|
@@ -13367,7 +13367,7 @@ function Zf(r, t, e, n = {}, i = {}, s = 0, a = 1 / 0) {
|
|
|
13367
13367
|
}
|
|
13368
13368
|
), Se.releasePrimitive(m), Se.releasePrimitive(p), x === 1 / 0 ? null : (n.point ? n.point.copy(T) : n.point = T.clone(), n.distance = x, n.faceIndex = _, i && (i.point ? i.point.copy(v) : i.point = v.clone(), i.point.applyMatrix4(wr), T.applyMatrix4(wr), i.distance = T.sub(i.point).length(), i.faceIndex = C), n);
|
|
13369
13369
|
}
|
|
13370
|
-
function
|
|
13370
|
+
function Zf(r, t = null) {
|
|
13371
13371
|
t && Array.isArray(t) && (t = new Set(t));
|
|
13372
13372
|
const e = r.geometry, n = e.index ? e.index.array : null, i = e.attributes.position;
|
|
13373
13373
|
let s, a, o, c, l = 0;
|
|
@@ -13414,14 +13414,14 @@ function Kf(r, t = null) {
|
|
|
13414
13414
|
}
|
|
13415
13415
|
}
|
|
13416
13416
|
}
|
|
13417
|
-
function
|
|
13417
|
+
function Kf(r, t, e, n, i, s, a) {
|
|
13418
13418
|
mt.setBuffer(r._roots[t]), mo(0, r, e, n, i, s, a), mt.clearBuffer();
|
|
13419
13419
|
}
|
|
13420
13420
|
function mo(r, t, e, n, i, s, a) {
|
|
13421
13421
|
const { float32Array: o, uint16Array: c, uint32Array: l } = mt, h = r * 2;
|
|
13422
13422
|
if (kt(h, c)) {
|
|
13423
13423
|
const m = Ht(r, l), p = ie(h, c);
|
|
13424
|
-
|
|
13424
|
+
Lf(t, e, n, m, p, i, s, a);
|
|
13425
13425
|
} else {
|
|
13426
13426
|
const m = Bt(r);
|
|
13427
13427
|
dn(m, o, n, s, a) && mo(m, t, e, n, i, s, a);
|
|
@@ -13429,8 +13429,8 @@ function mo(r, t, e, n, i, s, a) {
|
|
|
13429
13429
|
dn(p, o, n, s, a) && mo(p, t, e, n, i, s, a);
|
|
13430
13430
|
}
|
|
13431
13431
|
}
|
|
13432
|
-
const
|
|
13433
|
-
function
|
|
13432
|
+
const Qf = ["x", "y", "z"];
|
|
13433
|
+
function td(r, t, e, n, i, s) {
|
|
13434
13434
|
mt.setBuffer(r._roots[t]);
|
|
13435
13435
|
const a = yo(0, r, e, n, i, s);
|
|
13436
13436
|
return mt.clearBuffer(), a;
|
|
@@ -13440,9 +13440,9 @@ function yo(r, t, e, n, i, s) {
|
|
|
13440
13440
|
let l = r * 2;
|
|
13441
13441
|
if (kt(l, o)) {
|
|
13442
13442
|
const d = Ht(r, c), m = ie(l, o);
|
|
13443
|
-
return
|
|
13443
|
+
return Ff(t, e, n, d, m, i, s);
|
|
13444
13444
|
} else {
|
|
13445
|
-
const d = ko(r, c), m =
|
|
13445
|
+
const d = ko(r, c), m = Qf[d], b = n.direction[m] >= 0;
|
|
13446
13446
|
let T, g;
|
|
13447
13447
|
b ? (T = Bt(r), g = Nt(r, c)) : (T = Nt(r, c), g = Bt(r));
|
|
13448
13448
|
const x = dn(T, a, n, i, s) ? yo(T, t, e, n, i, s) : null;
|
|
@@ -13459,7 +13459,7 @@ function yo(r, t, e, n, i, s) {
|
|
|
13459
13459
|
}
|
|
13460
13460
|
}
|
|
13461
13461
|
const Pr = /* @__PURE__ */ new Fe(), Jn = /* @__PURE__ */ new xe(), jn = /* @__PURE__ */ new xe(), li = /* @__PURE__ */ new Oe(), Za = /* @__PURE__ */ new Xt(), Er = /* @__PURE__ */ new Xt();
|
|
13462
|
-
function
|
|
13462
|
+
function ed(r, t, e, n) {
|
|
13463
13463
|
mt.setBuffer(r._roots[t]);
|
|
13464
13464
|
const i = go(0, r, e, n);
|
|
13465
13465
|
return mt.clearBuffer(), i;
|
|
@@ -13495,12 +13495,12 @@ function go(r, t, e, n, i = null) {
|
|
|
13495
13495
|
return xt(h, s, Pr), !!(i.intersectsBox(Pr) && go(h, t, e, n, i) || (xt(d, s, Pr), i.intersectsBox(Pr) && go(d, t, e, n, i)));
|
|
13496
13496
|
}
|
|
13497
13497
|
}
|
|
13498
|
-
const kr = /* @__PURE__ */ new Oe(), Fs = /* @__PURE__ */ new Xt(), ui = /* @__PURE__ */ new Xt(),
|
|
13499
|
-
function
|
|
13498
|
+
const kr = /* @__PURE__ */ new Oe(), Fs = /* @__PURE__ */ new Xt(), ui = /* @__PURE__ */ new Xt(), nd = /* @__PURE__ */ new H(), id = /* @__PURE__ */ new H(), rd = /* @__PURE__ */ new H(), sd = /* @__PURE__ */ new H();
|
|
13499
|
+
function od(r, t, e, n = {}, i = {}, s = 0, a = 1 / 0) {
|
|
13500
13500
|
t.boundingBox || t.computeBoundingBox(), Fs.set(t.boundingBox.min, t.boundingBox.max, e), Fs.needsUpdate = !0;
|
|
13501
13501
|
const o = r.geometry, c = o.attributes.position, l = o.index, h = t.attributes.position, d = t.index, m = Se.getPrimitive(), p = Se.getPrimitive();
|
|
13502
|
-
let b =
|
|
13503
|
-
i && (g =
|
|
13502
|
+
let b = nd, T = id, g = null, v = null;
|
|
13503
|
+
i && (g = rd, v = sd);
|
|
13504
13504
|
let x = 1 / 0, _ = null, C = null;
|
|
13505
13505
|
return kr.copy(e).invert(), ui.matrix.copy(kr), r.shapecast(
|
|
13506
13506
|
{
|
|
@@ -13668,11 +13668,11 @@ class Ki extends Tl {
|
|
|
13668
13668
|
return n;
|
|
13669
13669
|
}
|
|
13670
13670
|
refit(t = null) {
|
|
13671
|
-
return (this.indirect ?
|
|
13671
|
+
return (this.indirect ? Zf : Df)(this, t);
|
|
13672
13672
|
}
|
|
13673
13673
|
/* Core Cast Functions */
|
|
13674
13674
|
raycast(t, e = na, n = 0, i = 1 / 0) {
|
|
13675
|
-
const s = this._roots, a = [], o = this.indirect ?
|
|
13675
|
+
const s = this._roots, a = [], o = this.indirect ? Kf : Jf;
|
|
13676
13676
|
for (let c = 0, l = s.length; c < l; c++)
|
|
13677
13677
|
o(this, c, e, t, a, n, i);
|
|
13678
13678
|
return a;
|
|
@@ -13680,7 +13680,7 @@ class Ki extends Tl {
|
|
|
13680
13680
|
raycastFirst(t, e = na, n = 0, i = 1 / 0) {
|
|
13681
13681
|
const s = this._roots;
|
|
13682
13682
|
let a = null;
|
|
13683
|
-
const o = this.indirect ?
|
|
13683
|
+
const o = this.indirect ? td : Gf;
|
|
13684
13684
|
for (let c = 0, l = s.length; c < l; c++) {
|
|
13685
13685
|
const h = o(this, c, e, t, n, i);
|
|
13686
13686
|
h != null && (a == null || h.distance < a.distance) && (a = h);
|
|
@@ -13689,7 +13689,7 @@ class Ki extends Tl {
|
|
|
13689
13689
|
}
|
|
13690
13690
|
intersectsGeometry(t, e) {
|
|
13691
13691
|
let n = !1;
|
|
13692
|
-
const i = this._roots, s = this.indirect ?
|
|
13692
|
+
const i = this._roots, s = this.indirect ? ed : Wf;
|
|
13693
13693
|
for (let a = 0, o = i.length; a < o && (n = s(this, a, t, e), !n); a++)
|
|
13694
13694
|
;
|
|
13695
13695
|
return n;
|
|
@@ -13702,7 +13702,7 @@ class Ki extends Tl {
|
|
|
13702
13702
|
scratchPrimitive: e,
|
|
13703
13703
|
// TODO: is the performance significant enough for the added complexity here?
|
|
13704
13704
|
// can we just use one function?
|
|
13705
|
-
iterate: this.indirect ?
|
|
13705
|
+
iterate: this.indirect ? Vf : Uf
|
|
13706
13706
|
}
|
|
13707
13707
|
);
|
|
13708
13708
|
return Se.releasePrimitive(e), n;
|
|
@@ -13763,7 +13763,7 @@ class Ki extends Tl {
|
|
|
13763
13763
|
);
|
|
13764
13764
|
}
|
|
13765
13765
|
closestPointToGeometry(t, e, n = {}, i = {}, s = 0, a = 1 / 0) {
|
|
13766
|
-
return (this.indirect ?
|
|
13766
|
+
return (this.indirect ? od : Yf)(
|
|
13767
13767
|
this,
|
|
13768
13768
|
t,
|
|
13769
13769
|
e,
|
|
@@ -13774,7 +13774,7 @@ class Ki extends Tl {
|
|
|
13774
13774
|
);
|
|
13775
13775
|
}
|
|
13776
13776
|
closestPointToPoint(t, e = {}, n = 0, i = 1 / 0) {
|
|
13777
|
-
return
|
|
13777
|
+
return Of(
|
|
13778
13778
|
this,
|
|
13779
13779
|
t,
|
|
13780
13780
|
e,
|
|
@@ -13791,9 +13791,9 @@ const Gn = {
|
|
|
13791
13791
|
Points: yc.prototype.raycast,
|
|
13792
13792
|
BatchedMesh: Yl.prototype.raycast
|
|
13793
13793
|
}, Lt = /* @__PURE__ */ new Zr(), Or = [];
|
|
13794
|
-
function
|
|
13794
|
+
function ad(r, t) {
|
|
13795
13795
|
if (this.isBatchedMesh)
|
|
13796
|
-
|
|
13796
|
+
cd.call(this, r, t);
|
|
13797
13797
|
else {
|
|
13798
13798
|
const { geometry: e } = this;
|
|
13799
13799
|
if (e.boundsTree)
|
|
@@ -13816,7 +13816,7 @@ function cd(r, t) {
|
|
|
13816
13816
|
}
|
|
13817
13817
|
}
|
|
13818
13818
|
}
|
|
13819
|
-
function
|
|
13819
|
+
function cd(r, t) {
|
|
13820
13820
|
if (this.boundsTrees) {
|
|
13821
13821
|
const e = this.boundsTrees, n = this._drawInfo || this._instanceInfo, i = this._drawRanges || this._geometryInfo, s = this.matrixWorld;
|
|
13822
13822
|
Lt.material = this.material, Lt.geometry = this.geometry;
|
|
@@ -13842,7 +13842,7 @@ function ld(r, t) {
|
|
|
13842
13842
|
} else
|
|
13843
13843
|
Gn.BatchedMesh.call(this, r, t);
|
|
13844
13844
|
}
|
|
13845
|
-
function
|
|
13845
|
+
function ld(r = {}) {
|
|
13846
13846
|
const { type: t = Ki } = r;
|
|
13847
13847
|
return this.boundsTree = new t(this, r), this.boundsTree;
|
|
13848
13848
|
}
|
|
@@ -13870,7 +13870,7 @@ function Cl(r, t, e = 0) {
|
|
|
13870
13870
|
new i(n.buffer, s, r.array.length).set(r.array);
|
|
13871
13871
|
}
|
|
13872
13872
|
}
|
|
13873
|
-
function
|
|
13873
|
+
function ud(r, t, e) {
|
|
13874
13874
|
const n = r.elements, i = t.elements;
|
|
13875
13875
|
for (let s = 0, a = i.length; s < a; s++)
|
|
13876
13876
|
n[s] += i[s] * e;
|
|
@@ -13882,7 +13882,7 @@ function oc(r, t, e) {
|
|
|
13882
13882
|
const c = rc.getComponent(o);
|
|
13883
13883
|
if (c !== 0) {
|
|
13884
13884
|
const l = ic.getComponent(o);
|
|
13885
|
-
sc.multiplyMatrices(s[l].matrixWorld, a[l]),
|
|
13885
|
+
sc.multiplyMatrices(s[l].matrixWorld, a[l]), ud(Ir, sc, c);
|
|
13886
13886
|
}
|
|
13887
13887
|
}
|
|
13888
13888
|
return Ir.multiply(r.bindMatrix).premultiply(r.bindMatrixInverse), e.transformDirection(Ir), e;
|
|
@@ -13895,7 +13895,7 @@ function js(r, t, e, n, i) {
|
|
|
13895
13895
|
}
|
|
13896
13896
|
i.add(zr);
|
|
13897
13897
|
}
|
|
13898
|
-
function
|
|
13898
|
+
function hd(r, t = { useGroups: !1, updateIndex: !1, skipAttributes: [] }, e = new yi()) {
|
|
13899
13899
|
const n = r[0].index !== null, { useGroups: i = !1, updateIndex: s = !1, skipAttributes: a = [] } = t, o = new Set(Object.keys(r[0].attributes)), c = {};
|
|
13900
13900
|
let l = 0;
|
|
13901
13901
|
e.clearGroups();
|
|
@@ -13959,7 +13959,7 @@ function fd(r, t = { useGroups: !1, updateIndex: !1, skipAttributes: [] }, e = n
|
|
|
13959
13959
|
}
|
|
13960
13960
|
return e;
|
|
13961
13961
|
}
|
|
13962
|
-
function
|
|
13962
|
+
function fd(r, t) {
|
|
13963
13963
|
if (r === null || t === null)
|
|
13964
13964
|
return r === t;
|
|
13965
13965
|
if (r.length !== t.length)
|
|
@@ -13969,7 +13969,7 @@ function dd(r, t) {
|
|
|
13969
13969
|
return !1;
|
|
13970
13970
|
return !0;
|
|
13971
13971
|
}
|
|
13972
|
-
function
|
|
13972
|
+
function dd(r) {
|
|
13973
13973
|
const { index: t, attributes: e } = r;
|
|
13974
13974
|
if (t)
|
|
13975
13975
|
for (let n = 0, i = t.count; n < i; n += 3) {
|
|
@@ -13987,7 +13987,7 @@ function pd(r) {
|
|
|
13987
13987
|
}
|
|
13988
13988
|
return r;
|
|
13989
13989
|
}
|
|
13990
|
-
class
|
|
13990
|
+
class pd {
|
|
13991
13991
|
constructor(t) {
|
|
13992
13992
|
this.matrixWorld = new Oe(), this.geometryHash = null, this.boneMatrices = null, this.primitiveCount = -1, this.mesh = t, this.update();
|
|
13993
13993
|
}
|
|
@@ -14002,10 +14002,10 @@ class md {
|
|
|
14002
14002
|
}
|
|
14003
14003
|
didChange() {
|
|
14004
14004
|
const t = this.mesh, e = t.geometry, n = (e.index ? e.index.count : e.attributes.position.count) / 3;
|
|
14005
|
-
return !(this.matrixWorld.equals(t.matrixWorld) && this.geometryHash === e.attributes.position.version &&
|
|
14005
|
+
return !(this.matrixWorld.equals(t.matrixWorld) && this.geometryHash === e.attributes.position.version && fd(t.skeleton && t.skeleton.boneMatrices || null, this.boneMatrices) && this.primitiveCount === n);
|
|
14006
14006
|
}
|
|
14007
14007
|
}
|
|
14008
|
-
class
|
|
14008
|
+
class md {
|
|
14009
14009
|
constructor(t) {
|
|
14010
14010
|
Array.isArray(t) || (t = [t]);
|
|
14011
14011
|
const e = [];
|
|
@@ -14026,7 +14026,7 @@ class yd {
|
|
|
14026
14026
|
const { meshes: n, useGroups: i, _intermediateGeometry: s, _diffMap: a } = this;
|
|
14027
14027
|
for (let o = 0, c = n.length; o < c; o++) {
|
|
14028
14028
|
const l = n[o], h = s[o], d = a.get(l);
|
|
14029
|
-
!d || d.didChange(l) ? (this._convertToStaticGeometry(l, h), e.push(!1), d ? d.update() : a.set(l, new
|
|
14029
|
+
!d || d.didChange(l) ? (this._convertToStaticGeometry(l, h), e.push(!1), d ? d.update() : a.set(l, new pd(l))) : e.push(!0);
|
|
14030
14030
|
}
|
|
14031
14031
|
if (s.length === 0) {
|
|
14032
14032
|
t.setIndex(null);
|
|
@@ -14036,7 +14036,7 @@ class yd {
|
|
|
14036
14036
|
for (const c in this.attributes)
|
|
14037
14037
|
t.setAttribute(this.attributes[c], new he(new Float32Array(0), 4, !1));
|
|
14038
14038
|
} else
|
|
14039
|
-
|
|
14039
|
+
hd(s, { useGroups: i, skipAttributes: e }, t);
|
|
14040
14040
|
for (const o in t.attributes)
|
|
14041
14041
|
t.attributes[o].needsUpdate = !0;
|
|
14042
14042
|
return t;
|
|
@@ -14052,10 +14052,10 @@ class yd {
|
|
|
14052
14052
|
const _ = this.attributes[x];
|
|
14053
14053
|
_ === "position" || _ === "tangent" || _ === "normal" || !(_ in o) || (c[_] || e.setAttribute(_, mi(o[_])), hi(o[_], c[_]), Cl(o[_], c[_]));
|
|
14054
14054
|
}
|
|
14055
|
-
return t.matrixWorld.determinant() < 0 &&
|
|
14055
|
+
return t.matrixWorld.determinant() < 0 && dd(e), e;
|
|
14056
14056
|
}
|
|
14057
14057
|
}
|
|
14058
|
-
const
|
|
14058
|
+
const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14059
14059
|
__proto__: null,
|
|
14060
14060
|
AVERAGE: ml,
|
|
14061
14061
|
BVH: _l,
|
|
@@ -14067,12 +14067,12 @@ const Ad = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14067
14067
|
OrientedBox: Xt,
|
|
14068
14068
|
SAH: yl,
|
|
14069
14069
|
SKIP_GENERATION: es,
|
|
14070
|
-
StaticGeometryGenerator:
|
|
14071
|
-
acceleratedRaycast:
|
|
14072
|
-
computeBoundsTree:
|
|
14070
|
+
StaticGeometryGenerator: md,
|
|
14071
|
+
acceleratedRaycast: ad,
|
|
14072
|
+
computeBoundsTree: ld,
|
|
14073
14073
|
generateIndirectBuffer: bl
|
|
14074
14074
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14075
|
-
class
|
|
14075
|
+
class Ad {
|
|
14076
14076
|
constructor(t) {
|
|
14077
14077
|
this.name = "WorkerBase", this.running = !1, this.worker = t, this.worker.onerror = (e) => {
|
|
14078
14078
|
throw e.message ? new Error(`${this.name}: Could not create Web Worker with error "${e.message}"`) : new Error(`${this.name}: Could not create Web Worker.`);
|
|
@@ -14100,14 +14100,14 @@ const ve = {
|
|
|
14100
14100
|
material: "material",
|
|
14101
14101
|
camera: "camera",
|
|
14102
14102
|
light: "light"
|
|
14103
|
-
}, an = "KHR_animation_pointer",
|
|
14103
|
+
}, an = "KHR_animation_pointer", yd = {
|
|
14104
14104
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
14105
14105
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
14106
14106
|
CUBICSPLINE: void 0,
|
|
14107
14107
|
LINEAR: gc,
|
|
14108
|
-
STEP:
|
|
14108
|
+
STEP: Kl
|
|
14109
14109
|
};
|
|
14110
|
-
class
|
|
14110
|
+
class gd {
|
|
14111
14111
|
/** @type {import("three/examples/jsm/loaders/GLTFLoader").GLTFParser} */
|
|
14112
14112
|
constructor(t) {
|
|
14113
14113
|
this.name = an, this.parser = t, this.animationPointerResolver = null;
|
|
@@ -14124,7 +14124,7 @@ class vd {
|
|
|
14124
14124
|
return this.parser.getDependency("node", n);
|
|
14125
14125
|
}
|
|
14126
14126
|
loadAnimationTargetFromChannelWithAnimationPointer(t) {
|
|
14127
|
-
|
|
14127
|
+
Sd();
|
|
14128
14128
|
const e = t.target, n = e.extensions && e.extensions[an] && e.path && e.path === "pointer";
|
|
14129
14129
|
if (!n) return null;
|
|
14130
14130
|
let i, s = ve.node, a;
|
|
@@ -14332,7 +14332,7 @@ class vd {
|
|
|
14332
14332
|
const b = l[3];
|
|
14333
14333
|
if (t.type === "Group") {
|
|
14334
14334
|
for (const T of t.children)
|
|
14335
|
-
T
|
|
14335
|
+
T.morphTargetInfluences && (l[3] = T.name, l[4] = b, p(this.parser));
|
|
14336
14336
|
return c;
|
|
14337
14337
|
}
|
|
14338
14338
|
}
|
|
@@ -14351,21 +14351,21 @@ class vd {
|
|
|
14351
14351
|
switch (n.itemSize) {
|
|
14352
14352
|
case 1:
|
|
14353
14353
|
Object.prototype.toString.call(n.array) === "[object Uint8Array]" && // UNSIGNED_BYTE as a strong hint
|
|
14354
|
-
m(t, o) ? (T =
|
|
14354
|
+
m(t, o) ? (T = iu, g = !0) : T = ru;
|
|
14355
14355
|
break;
|
|
14356
14356
|
case 2:
|
|
14357
14357
|
case 3:
|
|
14358
|
-
T =
|
|
14358
|
+
T = nu;
|
|
14359
14359
|
break;
|
|
14360
14360
|
case 4:
|
|
14361
|
-
o.endsWith(".quaternion") ? T =
|
|
14361
|
+
o.endsWith(".quaternion") ? T = tu : T = eu;
|
|
14362
14362
|
break;
|
|
14363
14363
|
}
|
|
14364
14364
|
if (!T) {
|
|
14365
14365
|
console.warn("Unsupported output accessor format", n);
|
|
14366
14366
|
return;
|
|
14367
14367
|
}
|
|
14368
|
-
const v = i.interpolation !== void 0 ?
|
|
14368
|
+
const v = i.interpolation !== void 0 ? yd[i.interpolation] : gc;
|
|
14369
14369
|
let x = b._getArrayFromAccessor(n);
|
|
14370
14370
|
o.endsWith(".fov") && (x = x.map((C) => C / Math.PI * 180)), g && (x = x.map((C) => C > 0));
|
|
14371
14371
|
const _ = new T(
|
|
@@ -14423,15 +14423,15 @@ class vd {
|
|
|
14423
14423
|
for (let B = 0; B < R.length; B++)
|
|
14424
14424
|
x.push(R[B]);
|
|
14425
14425
|
}
|
|
14426
|
-
return new
|
|
14426
|
+
return new Ql(a, void 0, x);
|
|
14427
14427
|
});
|
|
14428
14428
|
}
|
|
14429
14429
|
}
|
|
14430
|
-
let ac = !1,
|
|
14431
|
-
function
|
|
14430
|
+
let ac = !1, vd = null;
|
|
14431
|
+
function Sd() {
|
|
14432
14432
|
if (ac) return;
|
|
14433
14433
|
ac = !0;
|
|
14434
|
-
const r =
|
|
14434
|
+
const r = vd ||= ia.findNode;
|
|
14435
14435
|
ia.findNode = function(t, e) {
|
|
14436
14436
|
if (!e) return r(t, e);
|
|
14437
14437
|
if (e.startsWith(".materials.")) {
|
|
@@ -14465,11 +14465,11 @@ function xd() {
|
|
|
14465
14465
|
return r(t, e);
|
|
14466
14466
|
};
|
|
14467
14467
|
}
|
|
14468
|
-
const
|
|
14468
|
+
const Od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14469
14469
|
__proto__: null,
|
|
14470
|
-
GLTFAnimationPointerExtension:
|
|
14470
|
+
GLTFAnimationPointerExtension: gd
|
|
14471
14471
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14472
|
-
var
|
|
14472
|
+
var xd = Object.defineProperty, _d = (r, t, e) => t in r ? xd(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, wt = (r, t, e) => (_d(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14473
14473
|
(function() {
|
|
14474
14474
|
class r {
|
|
14475
14475
|
}
|
|
@@ -16343,33 +16343,33 @@ var _d = Object.defineProperty, bd = (r, t, e) => t in r ? _d(r, t, { enumerable
|
|
|
16343
16343
|
}
|
|
16344
16344
|
})();
|
|
16345
16345
|
})();
|
|
16346
|
-
const
|
|
16346
|
+
const Id = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16347
16347
|
__proto__: null
|
|
16348
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16348
|
+
}, Symbol.toStringTag, { value: "Module" })), Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16349
16349
|
__proto__: null
|
|
16350
16350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
16351
16351
|
export {
|
|
16352
|
-
|
|
16352
|
+
wd as BatchedParticleRenderer,
|
|
16353
16353
|
vc as Builder,
|
|
16354
16354
|
Jr as ByteBuffer,
|
|
16355
16355
|
Xn as ConstantColor,
|
|
16356
16356
|
it as ConstantValue,
|
|
16357
16357
|
Le as Matrix4,
|
|
16358
16358
|
Ki as MeshBVH,
|
|
16359
|
-
|
|
16359
|
+
Md as MotionController,
|
|
16360
16360
|
Xs as ParticleSystem,
|
|
16361
16361
|
J as RenderMode,
|
|
16362
|
-
|
|
16362
|
+
mu as SIZE_PREFIX_LENGTH,
|
|
16363
16363
|
qs as TrailParticle,
|
|
16364
16364
|
fe as Vector4,
|
|
16365
|
-
|
|
16366
|
-
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16365
|
+
Ad as WorkerBase,
|
|
16366
|
+
Bd as __viteBrowserExternal,
|
|
16367
|
+
Ed as bundler,
|
|
16368
|
+
Pd as createNoise4D,
|
|
16369
|
+
Cd as fetchProfile,
|
|
16370
|
+
kd as index,
|
|
16371
|
+
Rd as index$1,
|
|
16372
|
+
Od as index$2,
|
|
16373
|
+
Id as scrollTimeline,
|
|
16374
|
+
Td as v5
|
|
16375
16375
|
};
|