exodeui 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  var RQ = Object.defineProperty;
2
- var cQ = (i, A, I) => A in i ? RQ(i, A, { enumerable: !0, configurable: !0, writable: !0, value: I }) : i[A] = I;
3
- var v = (i, A, I) => cQ(i, typeof A != "symbol" ? A + "" : A, I);
4
- import aC, { forwardRef as YQ, useRef as BI, useImperativeHandle as tQ, useEffect as TA, useState as LQ, useCallback as EI } from "react";
5
- var xI = { exports: {} }, ZA = {};
2
+ var cQ = (E, A, I) => A in E ? RQ(E, A, { enumerable: !0, configurable: !0, writable: !0, value: I }) : E[A] = I;
3
+ var v = (E, A, I) => cQ(E, typeof A != "symbol" ? A + "" : A, I);
4
+ import aC, { forwardRef as YQ, useRef as EI, useImperativeHandle as tQ, useEffect as TA, useState as LQ, useCallback as ZA } from "react";
5
+ var xI = { exports: {} }, OA = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
@@ -14,19 +14,19 @@ var xI = { exports: {} }, ZA = {};
14
14
  */
15
15
  var Xg;
16
16
  function rQ() {
17
- if (Xg) return ZA;
17
+ if (Xg) return OA;
18
18
  Xg = 1;
19
- var i = aC, A = Symbol.for("react.element"), I = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, C = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, B = { key: !0, ref: !0, __self: !0, __source: !0 };
20
- function E(D, o, w) {
19
+ var E = aC, A = Symbol.for("react.element"), I = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, C = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, B = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ function i(D, o, w) {
21
21
  var K, s = {}, k = null, a = null;
22
22
  w !== void 0 && (k = "" + w), o.key !== void 0 && (k = "" + o.key), o.ref !== void 0 && (a = o.ref);
23
23
  for (K in o) g.call(o, K) && !B.hasOwnProperty(K) && (s[K] = o[K]);
24
24
  if (D && D.defaultProps) for (K in o = D.defaultProps, o) s[K] === void 0 && (s[K] = o[K]);
25
25
  return { $$typeof: A, type: D, key: k, ref: a, props: s, _owner: C.current };
26
26
  }
27
- return ZA.Fragment = I, ZA.jsx = E, ZA.jsxs = E, ZA;
27
+ return OA.Fragment = I, OA.jsx = i, OA.jsxs = i, OA;
28
28
  }
29
- var OA = {};
29
+ var jA = {};
30
30
  /**
31
31
  * @license React
32
32
  * react-jsx-runtime.development.js
@@ -39,14 +39,14 @@ var OA = {};
39
39
  var mg;
40
40
  function qQ() {
41
41
  return mg || (mg = 1, process.env.NODE_ENV !== "production" && function() {
42
- var i = aC, A = Symbol.for("react.element"), I = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), D = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), R = Symbol.iterator, J = "@@iterator";
43
- function M(G) {
42
+ var E = aC, A = Symbol.for("react.element"), I = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), D = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), R = Symbol.iterator, J = "@@iterator";
43
+ function F(G) {
44
44
  if (G === null || typeof G != "object")
45
45
  return null;
46
46
  var y = R && G[R] || G[J];
47
47
  return typeof y == "function" ? y : null;
48
48
  }
49
- var F = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ var M = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
50
  function c(G) {
51
51
  {
52
52
  for (var y = arguments.length, U = new Array(y > 1 ? y - 1 : 0), L = 1; L < y; L++)
@@ -56,7 +56,7 @@ function qQ() {
56
56
  }
57
57
  function p(G, y, U) {
58
58
  {
59
- var L = F.ReactDebugCurrentFrame, n = L.getStackAddendum();
59
+ var L = M.ReactDebugCurrentFrame, n = L.getStackAddendum();
60
60
  n !== "" && (y += "%s", U = U.concat([n]));
61
61
  var b = U.map(function(e) {
62
62
  return String(e);
@@ -67,7 +67,7 @@ function qQ() {
67
67
  var j = !1, _ = !1, X = !1, iA = !1, DA = !1, aA;
68
68
  aA = Symbol.for("react.module.reference");
69
69
  function RI(G) {
70
- return !!(typeof G == "string" || typeof G == "function" || G === g || G === B || DA || G === C || G === w || G === K || iA || G === a || j || _ || X || typeof G == "object" && G !== null && (G.$$typeof === k || G.$$typeof === s || G.$$typeof === E || G.$$typeof === D || G.$$typeof === o || // This needs to include all possible module reference object
70
+ return !!(typeof G == "string" || typeof G == "function" || G === g || G === B || DA || G === C || G === w || G === K || iA || G === a || j || _ || X || typeof G == "object" && G !== null && (G.$$typeof === k || G.$$typeof === s || G.$$typeof === i || G.$$typeof === D || G.$$typeof === o || // This needs to include all possible module reference object
71
71
  // types supported by any Flight configuration anywhere since
72
72
  // we don't know which Flight build this will end up being used
73
73
  // with.
@@ -109,7 +109,7 @@ function qQ() {
109
109
  case D:
110
110
  var y = G;
111
111
  return Mg(y) + ".Consumer";
112
- case E:
112
+ case i:
113
113
  var U = G;
114
114
  return Mg(U._context) + ".Provider";
115
115
  case o:
@@ -190,8 +190,8 @@ function qQ() {
190
190
  fA < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
191
  }
192
192
  }
193
- var cI = F.ReactCurrentDispatcher, YI;
194
- function II(G, y, U) {
193
+ var cI = M.ReactCurrentDispatcher, YI;
194
+ function gI(G, y, U) {
195
195
  {
196
196
  if (YI === void 0)
197
197
  try {
@@ -204,16 +204,16 @@ function qQ() {
204
204
  ` + YI + G;
205
205
  }
206
206
  }
207
- var tI = !1, gI;
207
+ var tI = !1, CI;
208
208
  {
209
209
  var $C = typeof WeakMap == "function" ? WeakMap : Map;
210
- gI = new $C();
210
+ CI = new $C();
211
211
  }
212
212
  function qg(G, y) {
213
213
  if (!G || tI)
214
214
  return "";
215
215
  {
216
- var U = gI.get(G);
216
+ var U = CI.get(G);
217
217
  if (U !== void 0)
218
218
  return U;
219
219
  }
@@ -268,7 +268,7 @@ function qQ() {
268
268
  if (x--, m--, m < 0 || r[x] !== AA[m]) {
269
269
  var oA = `
270
270
  ` + r[x].replace(" at new ", " at ");
271
- return G.displayName && oA.includes("<anonymous>") && (oA = oA.replace("<anonymous>", G.displayName)), typeof G == "function" && gI.set(G, oA), oA;
271
+ return G.displayName && oA.includes("<anonymous>") && (oA = oA.replace("<anonymous>", G.displayName)), typeof G == "function" && CI.set(G, oA), oA;
272
272
  }
273
273
  while (x >= 1 && m >= 0);
274
274
  break;
@@ -277,8 +277,8 @@ function qQ() {
277
277
  } finally {
278
278
  tI = !1, cI.current = b, _C(), Error.prepareStackTrace = n;
279
279
  }
280
- var eA = G ? G.displayName || G.name : "", RA = eA ? II(eA) : "";
281
- return typeof G == "function" && gI.set(G, RA), RA;
280
+ var eA = G ? G.displayName || G.name : "", RA = eA ? gI(eA) : "";
281
+ return typeof G == "function" && CI.set(G, RA), RA;
282
282
  }
283
283
  function AQ(G, y, U) {
284
284
  return qg(G, !1);
@@ -287,39 +287,39 @@ function qQ() {
287
287
  var y = G.prototype;
288
288
  return !!(y && y.isReactComponent);
289
289
  }
290
- function CI(G, y, U) {
290
+ function QI(G, y, U) {
291
291
  if (G == null)
292
292
  return "";
293
293
  if (typeof G == "function")
294
294
  return qg(G, IQ(G));
295
295
  if (typeof G == "string")
296
- return II(G);
296
+ return gI(G);
297
297
  switch (G) {
298
298
  case w:
299
- return II("Suspense");
299
+ return gI("Suspense");
300
300
  case K:
301
- return II("SuspenseList");
301
+ return gI("SuspenseList");
302
302
  }
303
303
  if (typeof G == "object")
304
304
  switch (G.$$typeof) {
305
305
  case o:
306
306
  return AQ(G.render);
307
307
  case s:
308
- return CI(G.type, y, U);
308
+ return QI(G.type, y, U);
309
309
  case k: {
310
310
  var L = G, n = L._payload, b = L._init;
311
311
  try {
312
- return CI(b(n), y, U);
312
+ return QI(b(n), y, U);
313
313
  } catch {
314
314
  }
315
315
  }
316
316
  }
317
317
  return "";
318
318
  }
319
- var bA = Object.prototype.hasOwnProperty, eg = {}, Hg = F.ReactDebugCurrentFrame;
320
- function QI(G) {
319
+ var bA = Object.prototype.hasOwnProperty, eg = {}, Hg = M.ReactDebugCurrentFrame;
320
+ function BI(G) {
321
321
  if (G) {
322
- var y = G._owner, U = CI(G.type, G._source, y ? y.type : null);
322
+ var y = G._owner, U = QI(G.type, G._source, y ? y.type : null);
323
323
  Hg.setExtraStackFrame(U);
324
324
  } else
325
325
  Hg.setExtraStackFrame(null);
@@ -339,7 +339,7 @@ function qQ() {
339
339
  } catch (x) {
340
340
  r = x;
341
341
  }
342
- r && !(r instanceof Error) && (QI(n), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", U, e, typeof r), QI(null)), r instanceof Error && !(r.message in eg) && (eg[r.message] = !0, QI(n), c("Failed %s type: %s", U, r.message), QI(null));
342
+ r && !(r instanceof Error) && (BI(n), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", U, e, typeof r), BI(null)), r instanceof Error && !(r.message in eg) && (eg[r.message] = !0, BI(n), c("Failed %s type: %s", U, r.message), BI(null));
343
343
  }
344
344
  }
345
345
  }
@@ -367,7 +367,7 @@ function qQ() {
367
367
  if (BQ(G))
368
368
  return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", QQ(G)), lg(G);
369
369
  }
370
- var pg = F.ReactCurrentOwner, EQ = {
370
+ var pg = M.ReactCurrentOwner, EQ = {
371
371
  key: !0,
372
372
  ref: !0,
373
373
  __self: !0,
@@ -461,10 +461,10 @@ function qQ() {
461
461
  return hQ(G, r, AA, n, L, pg.current, e);
462
462
  }
463
463
  }
464
- var rI = F.ReactCurrentOwner, bg = F.ReactDebugCurrentFrame;
464
+ var rI = M.ReactCurrentOwner, bg = M.ReactDebugCurrentFrame;
465
465
  function qA(G) {
466
466
  if (G) {
467
- var y = G._owner, U = CI(G.type, G._source, y ? y.type : null);
467
+ var y = G._owner, U = QI(G.type, G._source, y ? y.type : null);
468
468
  bg.setExtraStackFrame(U);
469
469
  } else
470
470
  bg.setExtraStackFrame(null);
@@ -527,7 +527,7 @@ Check the top-level render call using <` + U + ">.");
527
527
  else if (eI(G))
528
528
  G._store && (G._store.validated = !0);
529
529
  else if (G) {
530
- var n = M(G);
530
+ var n = F(G);
531
531
  if (typeof n == "function" && n !== G.entries)
532
532
  for (var b = n.call(G), e; !(e = b.next()).done; )
533
533
  eI(e.value) && Og(e.value, y);
@@ -623,26 +623,26 @@ React keys must be passed directly to JSX without using spread:
623
623
  return xg(G, y, U, !1);
624
624
  }
625
625
  var FQ = yQ, MQ = aQ;
626
- OA.Fragment = g, OA.jsx = FQ, OA.jsxs = MQ;
627
- }()), OA;
626
+ jA.Fragment = g, jA.jsx = FQ, jA.jsxs = MQ;
627
+ }()), jA;
628
628
  }
629
629
  process.env.NODE_ENV === "production" ? xI.exports = rQ() : xI.exports = qQ();
630
- var eQ = xI.exports, HQ = /* @__PURE__ */ ((i) => (i.Equal = "Equal", i.NotEqual = "NotEqual", i.GreaterThan = "GreaterThan", i.LessThan = "LessThan", i.GreaterEqual = "GreaterEqual", i.LessEqual = "LessEqual", i.IsTrue = "IsTrue", i.IsFalse = "IsFalse", i))(HQ || {}), jA = /* @__PURE__ */ ((i) => (i.AND = "AND", i.OR = "OR", i.NOT = "NOT", i.XOR = "XOR", i))(jA || {});
630
+ var eQ = xI.exports, HQ = /* @__PURE__ */ ((E) => (E.Equal = "Equal", E.NotEqual = "NotEqual", E.GreaterThan = "GreaterThan", E.LessThan = "LessThan", E.GreaterEqual = "GreaterEqual", E.LessEqual = "LessEqual", E.IsTrue = "IsTrue", E.IsFalse = "IsFalse", E))(HQ || {}), WA = /* @__PURE__ */ ((E) => (E.AND = "AND", E.OR = "OR", E.NOT = "NOT", E.XOR = "XOR", E))(WA || {});
631
631
  let Q;
632
632
  const H = new Array(128).fill(void 0);
633
- function q(i) {
634
- return H[i];
633
+ function q(E) {
634
+ return H[E];
635
635
  }
636
636
  H.push(void 0, null, !0, !1);
637
- let vA = H.length;
638
- function d(i) {
639
- vA === H.length && H.push(H.length + 1);
640
- const A = vA;
641
- return vA = H[A], H[A] = i, A;
637
+ let uA = H.length;
638
+ function d(E) {
639
+ uA === H.length && H.push(H.length + 1);
640
+ const A = uA;
641
+ return uA = H[A], H[A] = E, A;
642
642
  }
643
- function iI(i, A) {
643
+ function iI(E, A) {
644
644
  try {
645
- return i.apply(this, A);
645
+ return E.apply(this, A);
646
646
  } catch (I) {
647
647
  Q.__wbindgen_export_0(d(I));
648
648
  }
@@ -651,58 +651,58 @@ const yC = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0,
651
651
  throw Error("TextDecoder not available");
652
652
  } };
653
653
  typeof TextDecoder < "u" && yC.decode();
654
- let WA = null;
655
- function XI(i, A) {
656
- return i >>>= 0, yC.decode((WA !== null && WA.byteLength !== 0 || (WA = new Uint8Array(Q.memory.buffer)), WA).subarray(i, i + A));
654
+ let xA = null;
655
+ function XI(E, A) {
656
+ return E >>>= 0, yC.decode((xA !== null && xA.byteLength !== 0 || (xA = new Uint8Array(Q.memory.buffer)), xA).subarray(E, E + A));
657
657
  }
658
- function Y(i) {
659
- return i == null;
658
+ function Y(E) {
659
+ return E == null;
660
660
  }
661
661
  let cA = null;
662
662
  function P() {
663
663
  return (cA === null || cA.buffer.detached === !0 || cA.buffer.detached === void 0 && cA.buffer !== Q.memory.buffer) && (cA = new DataView(Q.memory.buffer)), cA;
664
664
  }
665
- function DI(i) {
666
- const A = q(i);
665
+ function DI(E) {
666
+ const A = q(E);
667
667
  return function(I) {
668
- I < 132 || (H[I] = vA, vA = I);
669
- }(i), A;
668
+ I < 132 || (H[I] = uA, uA = I);
669
+ }(E), A;
670
670
  }
671
- function h(i, A) {
672
- if (!(i instanceof A)) throw new Error(`expected instance of ${A.name}`);
671
+ function h(E, A) {
672
+ if (!(E instanceof A)) throw new Error(`expected instance of ${A.name}`);
673
673
  }
674
674
  let T = 128;
675
- function O(i) {
675
+ function O(E) {
676
676
  if (T == 1) throw new Error("out of js stack");
677
- return H[--T] = i, T;
678
- }
679
- let xA = null;
680
- function lQ(i, A) {
681
- return i >>>= 0, (xA !== null && xA.byteLength !== 0 || (xA = new Int32Array(Q.memory.buffer)), xA).subarray(i / 4, i / 4 + A);
677
+ return H[--T] = E, T;
682
678
  }
683
679
  let XA = null;
680
+ function lQ(E, A) {
681
+ return E >>>= 0, (XA !== null && XA.byteLength !== 0 || (XA = new Int32Array(Q.memory.buffer)), XA).subarray(E / 4, E / 4 + A);
682
+ }
683
+ let mA = null;
684
684
  function FC() {
685
- return XA !== null && XA.byteLength !== 0 || (XA = new Float32Array(Q.memory.buffer)), XA;
685
+ return mA !== null && mA.byteLength !== 0 || (mA = new Float32Array(Q.memory.buffer)), mA;
686
686
  }
687
- function vg(i, A) {
688
- return i >>>= 0, FC().subarray(i / 4, i / 4 + A);
687
+ function vg(E, A) {
688
+ return E >>>= 0, FC().subarray(E / 4, E / 4 + A);
689
689
  }
690
- let mA = null;
690
+ let vA = null;
691
691
  function MC() {
692
- return mA !== null && mA.byteLength !== 0 || (mA = new Uint32Array(Q.memory.buffer)), mA;
692
+ return vA !== null && vA.byteLength !== 0 || (vA = new Uint32Array(Q.memory.buffer)), vA;
693
693
  }
694
694
  let BA = 0;
695
- function lI(i, A) {
696
- const I = A(4 * i.length, 4) >>> 0;
697
- return MC().set(i, I / 4), BA = i.length, I;
695
+ function lI(E, A) {
696
+ const I = A(4 * E.length, 4) >>> 0;
697
+ return MC().set(E, I / 4), BA = E.length, I;
698
698
  }
699
- function FA(i, A) {
700
- const I = A(4 * i.length, 4) >>> 0;
701
- return FC().set(i, I / 4), BA = i.length, I;
699
+ function FA(E, A) {
700
+ const I = A(4 * E.length, 4) >>> 0;
701
+ return FC().set(E, I / 4), BA = E.length, I;
702
702
  }
703
703
  const SI = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", AngX: 2, 2: "AngX" }), MA = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Generic: 5, 5: "Generic" }), gA = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolygon: 9, 9: "ConvexPolygon", RoundCuboid: 10, 10: "RoundCuboid", RoundTriangle: 11, 11: "RoundTriangle", RoundConvexPolygon: 12, 12: "RoundConvexPolygon", HalfSpace: 13, 13: "HalfSpace", Voxels: 14, 14: "Voxels" }), nI = typeof FinalizationRegistry > "u" ? { register: () => {
704
704
  }, unregister: () => {
705
- } } : new FinalizationRegistry((i) => Q.__wbg_rawbroadphase_free(i >>> 0, 1));
705
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawbroadphase_free(E >>> 0, 1));
706
706
  class JA {
707
707
  static __wrap(A) {
708
708
  A >>>= 0;
@@ -721,85 +721,85 @@ class JA {
721
721
  const A = Q.rawbroadphase_new();
722
722
  return this.__wbg_ptr = A >>> 0, nI.register(this, this.__wbg_ptr, this), this;
723
723
  }
724
- castRay(A, I, g, C, B, E, D, o, w, K, s, k) {
724
+ castRay(A, I, g, C, B, i, D, o, w, K, s, k) {
725
725
  try {
726
726
  h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N);
727
- const a = Q.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
727
+ const a = Q.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
728
728
  return a === 0 ? void 0 : Eg.__wrap(a);
729
729
  } finally {
730
730
  H[T++] = void 0;
731
731
  }
732
732
  }
733
- castRayAndGetNormal(A, I, g, C, B, E, D, o, w, K, s, k) {
733
+ castRayAndGetNormal(A, I, g, C, B, i, D, o, w, K, s, k) {
734
734
  try {
735
735
  h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N);
736
- const a = Q.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
736
+ const a = Q.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
737
737
  return a === 0 ? void 0 : aI.__wrap(a);
738
738
  } finally {
739
739
  H[T++] = void 0;
740
740
  }
741
741
  }
742
- intersectionsWithRay(A, I, g, C, B, E, D, o, w, K, s, k, a) {
742
+ intersectionsWithRay(A, I, g, C, B, i, D, o, w, K, s, k, a) {
743
743
  try {
744
- h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E, D, O(o), w, Y(K) ? 4294967297 : K >>> 0, !Y(s), Y(s) ? 0 : s, !Y(k), Y(k) ? 0 : k, O(a));
744
+ h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, O(o), w, Y(K) ? 4294967297 : K >>> 0, !Y(s), Y(s) ? 0 : s, !Y(k), Y(k) ? 0 : k, O(a));
745
745
  } finally {
746
746
  H[T++] = void 0, H[T++] = void 0;
747
747
  }
748
748
  }
749
- intersectionWithShape(A, I, g, C, B, E, D, o, w, K, s) {
749
+ intersectionWithShape(A, I, g, C, B, i, D, o, w, K, s) {
750
750
  try {
751
751
  const R = Q.__wbindgen_add_to_stack_pointer(-16);
752
- h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(E, t), Q.rawbroadphase_intersectionWithShape(R, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D, Y(o) ? 4294967297 : o >>> 0, !Y(w), Y(w) ? 0 : w, !Y(K), Y(K) ? 0 : K, O(s));
752
+ h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(i, t), Q.rawbroadphase_intersectionWithShape(R, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D, Y(o) ? 4294967297 : o >>> 0, !Y(w), Y(w) ? 0 : w, !Y(K), Y(K) ? 0 : K, O(s));
753
753
  var k = P().getInt32(R + 0, !0), a = P().getFloat64(R + 8, !0);
754
754
  return k === 0 ? void 0 : a;
755
755
  } finally {
756
756
  Q.__wbindgen_add_to_stack_pointer(16), H[T++] = void 0;
757
757
  }
758
758
  }
759
- projectPoint(A, I, g, C, B, E, D, o, w, K) {
759
+ projectPoint(A, I, g, C, B, i, D, o, w, K) {
760
760
  try {
761
761
  h(A, u), h(I, Z), h(g, W), h(C, N);
762
- const s = Q.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, E, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, O(K));
762
+ const s = Q.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, O(K));
763
763
  return s === 0 ? void 0 : oI.__wrap(s);
764
764
  } finally {
765
765
  H[T++] = void 0;
766
766
  }
767
767
  }
768
- projectPointAndGetFeature(A, I, g, C, B, E, D, o, w) {
768
+ projectPointAndGetFeature(A, I, g, C, B, i, D, o, w) {
769
769
  try {
770
770
  h(A, u), h(I, Z), h(g, W), h(C, N);
771
- const K = Q.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, Y(E) ? 4294967297 : E >>> 0, !Y(D), Y(D) ? 0 : D, !Y(o), Y(o) ? 0 : o, O(w));
771
+ const K = Q.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, Y(i) ? 4294967297 : i >>> 0, !Y(D), Y(D) ? 0 : D, !Y(o), Y(o) ? 0 : o, O(w));
772
772
  return K === 0 ? void 0 : oI.__wrap(K);
773
773
  } finally {
774
774
  H[T++] = void 0;
775
775
  }
776
776
  }
777
- intersectionsWithPoint(A, I, g, C, B, E, D, o, w, K) {
777
+ intersectionsWithPoint(A, I, g, C, B, i, D, o, w, K) {
778
778
  try {
779
- h(A, u), h(I, Z), h(g, W), h(C, N), Q.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, O(B), E, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, O(K));
779
+ h(A, u), h(I, Z), h(g, W), h(C, N), Q.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, O(B), i, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, O(K));
780
780
  } finally {
781
781
  H[T++] = void 0, H[T++] = void 0;
782
782
  }
783
783
  }
784
- castShape(A, I, g, C, B, E, D, o, w, K, s, k, a, R, J) {
784
+ castShape(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J) {
785
785
  try {
786
- h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(E, N), h(D, t);
787
- const M = Q.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o, w, K, s, Y(k) ? 4294967297 : k >>> 0, !Y(a), Y(a) ? 0 : a, !Y(R), Y(R) ? 0 : R, O(J));
788
- return M === 0 ? void 0 : NI.__wrap(M);
786
+ h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(i, N), h(D, t);
787
+ const F = Q.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, K, s, Y(k) ? 4294967297 : k >>> 0, !Y(a), Y(a) ? 0 : a, !Y(R), Y(R) ? 0 : R, O(J));
788
+ return F === 0 ? void 0 : NI.__wrap(F);
789
789
  } finally {
790
790
  H[T++] = void 0;
791
791
  }
792
792
  }
793
- intersectionsWithShape(A, I, g, C, B, E, D, o, w, K, s, k) {
793
+ intersectionsWithShape(A, I, g, C, B, i, D, o, w, K, s, k) {
794
794
  try {
795
- h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(E, t), Q.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, O(D), o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
795
+ h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(i, t), Q.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, O(D), o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
796
796
  } finally {
797
797
  H[T++] = void 0, H[T++] = void 0;
798
798
  }
799
799
  }
800
- collidersWithAabbIntersectingAabb(A, I, g, C, B, E) {
800
+ collidersWithAabbIntersectingAabb(A, I, g, C, B, i) {
801
801
  try {
802
- h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, O(E));
802
+ h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, O(i));
803
803
  } finally {
804
804
  H[T++] = void 0;
805
805
  }
@@ -807,7 +807,7 @@ class JA {
807
807
  }
808
808
  const ug = typeof FinalizationRegistry > "u" ? { register: () => {
809
809
  }, unregister: () => {
810
- } } : new FinalizationRegistry((i) => Q.__wbg_rawccdsolver_free(i >>> 0, 1));
810
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawccdsolver_free(E >>> 0, 1));
811
811
  class mI {
812
812
  __destroy_into_raw() {
813
813
  const A = this.__wbg_ptr;
@@ -824,7 +824,7 @@ class mI {
824
824
  }
825
825
  const Vg = typeof FinalizationRegistry > "u" ? { register: () => {
826
826
  }, unregister: () => {
827
- } } : new FinalizationRegistry((i) => Q.__wbg_rawcharactercollision_free(i >>> 0, 1));
827
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawcharactercollision_free(E >>> 0, 1));
828
828
  class JC {
829
829
  __destroy_into_raw() {
830
830
  const A = this.__wbg_ptr;
@@ -871,7 +871,7 @@ class JC {
871
871
  }
872
872
  const pI = typeof FinalizationRegistry > "u" ? { register: () => {
873
873
  }, unregister: () => {
874
- } } : new FinalizationRegistry((i) => Q.__wbg_rawcolliderset_free(i >>> 0, 1));
874
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawcolliderset_free(E >>> 0, 1));
875
875
  class W {
876
876
  static __wrap(A) {
877
877
  A >>>= 0;
@@ -970,8 +970,8 @@ class W {
970
970
  coSetVoxel(A, I, g, C) {
971
971
  Q.rawcolliderset_coSetVoxel(this.__wbg_ptr, A, I, g, C);
972
972
  }
973
- coPropagateVoxelChange(A, I, g, C, B, E) {
974
- Q.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr, A, I, g, C, B, E);
973
+ coPropagateVoxelChange(A, I, g, C, B, i) {
974
+ Q.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr, A, I, g, C, B, i);
975
975
  }
976
976
  coCombineVoxelStates(A, I, g, C) {
977
977
  Q.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr, A, I, g, C);
@@ -993,8 +993,8 @@ class W {
993
993
  Q.rawcolliderset_coIndices(C, this.__wbg_ptr, A);
994
994
  var I = P().getInt32(C + 0, !0), g = P().getInt32(C + 4, !0);
995
995
  let B;
996
- return I !== 0 && (B = function(E, D) {
997
- return E >>>= 0, MC().subarray(E / 4, E / 4 + D);
996
+ return I !== 0 && (B = function(i, D) {
997
+ return i >>>= 0, MC().subarray(i / 4, i / 4 + D);
998
998
  }(I, g).slice(), Q.__wbindgen_export_1(I, 4 * g, 4)), B;
999
999
  } finally {
1000
1000
  Q.__wbindgen_add_to_stack_pointer(16);
@@ -1077,14 +1077,14 @@ class W {
1077
1077
  coContainsPoint(A, I) {
1078
1078
  return h(I, N), Q.rawcolliderset_coContainsPoint(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
1079
1079
  }
1080
- coCastShape(A, I, g, C, B, E, D, o, w) {
1081
- h(I, N), h(g, t), h(C, N), h(B, l), h(E, N);
1082
- const K = Q.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D, o, w);
1080
+ coCastShape(A, I, g, C, B, i, D, o, w) {
1081
+ h(I, N), h(g, t), h(C, N), h(B, l), h(i, N);
1082
+ const K = Q.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D, o, w);
1083
1083
  return K === 0 ? void 0 : FI.__wrap(K);
1084
1084
  }
1085
- coCastCollider(A, I, g, C, B, E, D) {
1085
+ coCastCollider(A, I, g, C, B, i, D) {
1086
1086
  h(I, N), h(C, N);
1087
- const o = Q.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B, E, D);
1087
+ const o = Q.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B, i, D);
1088
1088
  return o === 0 ? void 0 : NI.__wrap(o);
1089
1089
  }
1090
1090
  coIntersectsShape(A, I, g, C) {
@@ -1092,12 +1092,12 @@ class W {
1092
1092
  }
1093
1093
  coContactShape(A, I, g, C, B) {
1094
1094
  h(I, t), h(g, N), h(C, l);
1095
- const E = Q.rawcolliderset_coContactShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B);
1096
- return E === 0 ? void 0 : uA.__wrap(E);
1095
+ const i = Q.rawcolliderset_coContactShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B);
1096
+ return i === 0 ? void 0 : VA.__wrap(i);
1097
1097
  }
1098
1098
  coContactCollider(A, I, g) {
1099
1099
  const C = Q.rawcolliderset_coContactCollider(this.__wbg_ptr, A, I, g);
1100
- return C === 0 ? void 0 : uA.__wrap(C);
1100
+ return C === 0 ? void 0 : VA.__wrap(C);
1101
1101
  }
1102
1102
  coProjectPoint(A, I, g) {
1103
1103
  h(I, N);
@@ -1112,8 +1112,8 @@ class W {
1112
1112
  }
1113
1113
  coCastRayAndGetNormal(A, I, g, C, B) {
1114
1114
  h(I, N), h(g, N);
1115
- const E = Q.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B);
1116
- return E === 0 ? void 0 : yI.__wrap(E);
1115
+ const i = Q.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B);
1116
+ return i === 0 ? void 0 : yI.__wrap(i);
1117
1117
  }
1118
1118
  coSetSensor(A, I) {
1119
1119
  Q.rawcolliderset_coSetSensor(this.__wbg_ptr, A, I);
@@ -1176,10 +1176,10 @@ class W {
1176
1176
  contains(A) {
1177
1177
  return Q.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
1178
1178
  }
1179
- createCollider(A, I, g, C, B, E, D, o, w, K, s, k, a, R, J, M, F, c, p, j, _, X, iA, DA) {
1179
+ createCollider(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J, F, M, c, p, j, _, X, iA, DA) {
1180
1180
  try {
1181
1181
  const dA = Q.__wbindgen_add_to_stack_pointer(-16);
1182
- h(I, t), h(g, N), h(C, l), h(D, N), h(DA, Z), Q.rawcolliderset_createCollider(dA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, E, D.__wbg_ptr, o, w, K, s, k, a, R, J, M, F, c, p, j, _, X, iA, DA.__wbg_ptr);
1182
+ h(I, t), h(g, N), h(C, l), h(D, N), h(DA, Z), Q.rawcolliderset_createCollider(dA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i, D.__wbg_ptr, o, w, K, s, k, a, R, J, F, M, c, p, j, _, X, iA, DA.__wbg_ptr);
1183
1183
  var aA = P().getInt32(dA + 0, !0), RI = P().getFloat64(dA + 8, !0);
1184
1184
  return aA === 0 ? void 0 : RI;
1185
1185
  } finally {
@@ -1202,7 +1202,7 @@ class W {
1202
1202
  }
1203
1203
  const Pg = typeof FinalizationRegistry > "u" ? { register: () => {
1204
1204
  }, unregister: () => {
1205
- } } : new FinalizationRegistry((i) => Q.__wbg_rawcollidershapecasthit_free(i >>> 0, 1));
1205
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawcollidershapecasthit_free(E >>> 0, 1));
1206
1206
  class NI {
1207
1207
  static __wrap(A) {
1208
1208
  A >>>= 0;
@@ -1242,7 +1242,7 @@ class NI {
1242
1242
  }
1243
1243
  const zg = typeof FinalizationRegistry > "u" ? { register: () => {
1244
1244
  }, unregister: () => {
1245
- } } : new FinalizationRegistry((i) => Q.__wbg_rawcontactforceevent_free(i >>> 0, 1));
1245
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawcontactforceevent_free(E >>> 0, 1));
1246
1246
  class gg {
1247
1247
  static __wrap(A) {
1248
1248
  A >>>= 0;
@@ -1280,7 +1280,7 @@ class gg {
1280
1280
  }
1281
1281
  const _g = typeof FinalizationRegistry > "u" ? { register: () => {
1282
1282
  }, unregister: () => {
1283
- } } : new FinalizationRegistry((i) => Q.__wbg_rawcontactmanifold_free(i >>> 0, 1));
1283
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawcontactmanifold_free(E >>> 0, 1));
1284
1284
  class Cg {
1285
1285
  static __wrap(A) {
1286
1286
  A >>>= 0;
@@ -1362,7 +1362,7 @@ class Cg {
1362
1362
  }
1363
1363
  const $g = typeof FinalizationRegistry > "u" ? { register: () => {
1364
1364
  }, unregister: () => {
1365
- } } : new FinalizationRegistry((i) => Q.__wbg_rawcontactpair_free(i >>> 0, 1));
1365
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawcontactpair_free(E >>> 0, 1));
1366
1366
  class Qg {
1367
1367
  static __wrap(A) {
1368
1368
  A >>>= 0;
@@ -1393,7 +1393,7 @@ class Qg {
1393
1393
  }
1394
1394
  const AC = typeof FinalizationRegistry > "u" ? { register: () => {
1395
1395
  }, unregister: () => {
1396
- } } : new FinalizationRegistry((i) => Q.__wbg_rawdebugrenderpipeline_free(i >>> 0, 1));
1396
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawdebugrenderpipeline_free(E >>> 0, 1));
1397
1397
  class nQ {
1398
1398
  __destroy_into_raw() {
1399
1399
  const A = this.__wbg_ptr;
@@ -1413,9 +1413,9 @@ class nQ {
1413
1413
  colors() {
1414
1414
  return DI(Q.rawdebugrenderpipeline_colors(this.__wbg_ptr));
1415
1415
  }
1416
- render(A, I, g, C, B, E, D) {
1416
+ render(A, I, g, C, B, i, D) {
1417
1417
  try {
1418
- h(A, Z), h(I, W), h(g, sA), h(C, NA), h(B, u), Q.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E, O(D));
1418
+ h(A, Z), h(I, W), h(g, sA), h(C, NA), h(B, u), Q.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, O(D));
1419
1419
  } finally {
1420
1420
  H[T++] = void 0;
1421
1421
  }
@@ -1423,7 +1423,7 @@ class nQ {
1423
1423
  }
1424
1424
  const IC = typeof FinalizationRegistry > "u" ? { register: () => {
1425
1425
  }, unregister: () => {
1426
- } } : new FinalizationRegistry((i) => Q.__wbg_rawdeserializedworld_free(i >>> 0, 1));
1426
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawdeserializedworld_free(E >>> 0, 1));
1427
1427
  class Bg {
1428
1428
  static __wrap(A) {
1429
1429
  A >>>= 0;
@@ -1477,7 +1477,7 @@ class Bg {
1477
1477
  }
1478
1478
  const gC = typeof FinalizationRegistry > "u" ? { register: () => {
1479
1479
  }, unregister: () => {
1480
- } } : new FinalizationRegistry((i) => Q.__wbg_raweventqueue_free(i >>> 0, 1));
1480
+ } } : new FinalizationRegistry((E) => Q.__wbg_raweventqueue_free(E >>> 0, 1));
1481
1481
  class UC {
1482
1482
  __destroy_into_raw() {
1483
1483
  const A = this.__wbg_ptr;
@@ -1511,7 +1511,7 @@ class UC {
1511
1511
  }
1512
1512
  const CC = typeof FinalizationRegistry > "u" ? { register: () => {
1513
1513
  }, unregister: () => {
1514
- } } : new FinalizationRegistry((i) => Q.__wbg_rawgenericjoint_free(i >>> 0, 1));
1514
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawgenericjoint_free(E >>> 0, 1));
1515
1515
  class CA {
1516
1516
  static __wrap(A) {
1517
1517
  A >>>= 0;
@@ -1528,17 +1528,17 @@ class CA {
1528
1528
  }
1529
1529
  static spring(A, I, g, C, B) {
1530
1530
  h(C, N), h(B, N);
1531
- const E = Q.rawgenericjoint_spring(A, I, g, C.__wbg_ptr, B.__wbg_ptr);
1532
- return CA.__wrap(E);
1531
+ const i = Q.rawgenericjoint_spring(A, I, g, C.__wbg_ptr, B.__wbg_ptr);
1532
+ return CA.__wrap(i);
1533
1533
  }
1534
1534
  static rope(A, I, g) {
1535
1535
  h(I, N), h(g, N);
1536
1536
  const C = Q.rawgenericjoint_rope(A, I.__wbg_ptr, g.__wbg_ptr);
1537
1537
  return CA.__wrap(C);
1538
1538
  }
1539
- static prismatic(A, I, g, C, B, E) {
1539
+ static prismatic(A, I, g, C, B, i) {
1540
1540
  h(A, N), h(I, N), h(g, N);
1541
- const D = Q.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C, B, E);
1541
+ const D = Q.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C, B, i);
1542
1542
  return D === 0 ? void 0 : CA.__wrap(D);
1543
1543
  }
1544
1544
  static fixed(A, I, g, C) {
@@ -1554,7 +1554,7 @@ class CA {
1554
1554
  }
1555
1555
  const dI = typeof FinalizationRegistry > "u" ? { register: () => {
1556
1556
  }, unregister: () => {
1557
- } } : new FinalizationRegistry((i) => Q.__wbg_rawimpulsejointset_free(i >>> 0, 1));
1557
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawimpulsejointset_free(E >>> 0, 1));
1558
1558
  class sA {
1559
1559
  static __wrap(A) {
1560
1560
  A >>>= 0;
@@ -1627,8 +1627,8 @@ class sA {
1627
1627
  jointConfigureMotorPosition(A, I, g, C, B) {
1628
1628
  Q.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr, A, I, g, C, B);
1629
1629
  }
1630
- jointConfigureMotor(A, I, g, C, B, E) {
1631
- Q.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr, A, I, g, C, B, E);
1630
+ jointConfigureMotor(A, I, g, C, B, i) {
1631
+ Q.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr, A, I, g, C, B, i);
1632
1632
  }
1633
1633
  constructor() {
1634
1634
  const A = Q.rawimpulsejointset_new();
@@ -1663,7 +1663,7 @@ class sA {
1663
1663
  }
1664
1664
  const fI = typeof FinalizationRegistry > "u" ? { register: () => {
1665
1665
  }, unregister: () => {
1666
- } } : new FinalizationRegistry((i) => Q.__wbg_rawintegrationparameters_free(i >>> 0, 1));
1666
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawintegrationparameters_free(E >>> 0, 1));
1667
1667
  class LA {
1668
1668
  static __wrap(A) {
1669
1669
  A >>>= 0;
@@ -1739,7 +1739,7 @@ class LA {
1739
1739
  }
1740
1740
  const bI = typeof FinalizationRegistry > "u" ? { register: () => {
1741
1741
  }, unregister: () => {
1742
- } } : new FinalizationRegistry((i) => Q.__wbg_rawislandmanager_free(i >>> 0, 1));
1742
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawislandmanager_free(E >>> 0, 1));
1743
1743
  class SA {
1744
1744
  static __wrap(A) {
1745
1745
  A >>>= 0;
@@ -1768,7 +1768,7 @@ class SA {
1768
1768
  }
1769
1769
  const QC = typeof FinalizationRegistry > "u" ? { register: () => {
1770
1770
  }, unregister: () => {
1771
- } } : new FinalizationRegistry((i) => Q.__wbg_rawkinematiccharactercontroller_free(i >>> 0, 1));
1771
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawkinematiccharactercontroller_free(E >>> 0, 1));
1772
1772
  class pQ {
1773
1773
  __destroy_into_raw() {
1774
1774
  const A = this.__wbg_ptr;
@@ -1853,9 +1853,9 @@ class pQ {
1853
1853
  snapToGroundEnabled() {
1854
1854
  return Q.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr) !== 0;
1855
1855
  }
1856
- computeColliderMovement(A, I, g, C, B, E, D, o, w, K, s, k) {
1856
+ computeColliderMovement(A, I, g, C, B, i, D, o, w, K, s, k) {
1857
1857
  try {
1858
- h(I, JA), h(g, u), h(C, Z), h(B, W), h(D, N), Q.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E, D.__wbg_ptr, o, Y(w) ? 4294967297 : Math.fround(w), K, Y(s) ? 4294967297 : s >>> 0, O(k));
1858
+ h(I, JA), h(g, u), h(C, Z), h(B, W), h(D, N), Q.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D.__wbg_ptr, o, Y(w) ? 4294967297 : Math.fround(w), K, Y(s) ? 4294967297 : s >>> 0, O(k));
1859
1859
  } finally {
1860
1860
  H[T++] = void 0;
1861
1861
  }
@@ -1876,7 +1876,7 @@ class pQ {
1876
1876
  }
1877
1877
  const TI = typeof FinalizationRegistry > "u" ? { register: () => {
1878
1878
  }, unregister: () => {
1879
- } } : new FinalizationRegistry((i) => Q.__wbg_rawmultibodyjointset_free(i >>> 0, 1));
1879
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawmultibodyjointset_free(E >>> 0, 1));
1880
1880
  class NA {
1881
1881
  static __wrap(A) {
1882
1882
  A >>>= 0;
@@ -1955,7 +1955,7 @@ class NA {
1955
1955
  }
1956
1956
  const ZI = typeof FinalizationRegistry > "u" ? { register: () => {
1957
1957
  }, unregister: () => {
1958
- } } : new FinalizationRegistry((i) => Q.__wbg_rawnarrowphase_free(i >>> 0, 1));
1958
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawnarrowphase_free(E >>> 0, 1));
1959
1959
  class u {
1960
1960
  static __wrap(A) {
1961
1961
  A >>>= 0;
@@ -1990,7 +1990,7 @@ class u {
1990
1990
  }
1991
1991
  const BC = typeof FinalizationRegistry > "u" ? { register: () => {
1992
1992
  }, unregister: () => {
1993
- } } : new FinalizationRegistry((i) => Q.__wbg_rawphysicspipeline_free(i >>> 0, 1));
1993
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawphysicspipeline_free(E >>> 0, 1));
1994
1994
  class dQ {
1995
1995
  __destroy_into_raw() {
1996
1996
  const A = this.__wbg_ptr;
@@ -2058,16 +2058,16 @@ class dQ {
2058
2058
  timing_user_changes() {
2059
2059
  return Q.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
2060
2060
  }
2061
- step(A, I, g, C, B, E, D, o, w, K) {
2062
- h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(E, Z), h(D, W), h(o, sA), h(w, NA), h(K, mI), Q.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr);
2061
+ step(A, I, g, C, B, i, D, o, w, K) {
2062
+ h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(i, Z), h(D, W), h(o, sA), h(w, NA), h(K, mI), Q.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr);
2063
2063
  }
2064
- stepWithEvents(A, I, g, C, B, E, D, o, w, K, s, k, a, R) {
2065
- h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(E, Z), h(D, W), h(o, sA), h(w, NA), h(K, mI), h(s, UC), Q.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr, s.__wbg_ptr, d(k), d(a), d(R));
2064
+ stepWithEvents(A, I, g, C, B, i, D, o, w, K, s, k, a, R) {
2065
+ h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(i, Z), h(D, W), h(o, sA), h(w, NA), h(K, mI), h(s, UC), Q.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr, s.__wbg_ptr, d(k), d(a), d(R));
2066
2066
  }
2067
2067
  }
2068
2068
  const EC = typeof FinalizationRegistry > "u" ? { register: () => {
2069
2069
  }, unregister: () => {
2070
- } } : new FinalizationRegistry((i) => Q.__wbg_rawpidcontroller_free(i >>> 0, 1));
2070
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawpidcontroller_free(E >>> 0, 1));
2071
2071
  class fQ {
2072
2072
  __destroy_into_raw() {
2073
2073
  const A = this.__wbg_ptr;
@@ -2104,8 +2104,8 @@ class fQ {
2104
2104
  }
2105
2105
  linear_correction(A, I, g, C, B) {
2106
2106
  h(I, Z), h(C, N), h(B, N);
2107
- const E = Q.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B.__wbg_ptr);
2108
- return N.__wrap(E);
2107
+ const i = Q.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B.__wbg_ptr);
2108
+ return N.__wrap(i);
2109
2109
  }
2110
2110
  angular_correction(A, I, g, C, B) {
2111
2111
  return h(I, Z), Q.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, B);
@@ -2113,7 +2113,7 @@ class fQ {
2113
2113
  }
2114
2114
  const iC = typeof FinalizationRegistry > "u" ? { register: () => {
2115
2115
  }, unregister: () => {
2116
- } } : new FinalizationRegistry((i) => Q.__wbg_rawpointcolliderprojection_free(i >>> 0, 1));
2116
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawpointcolliderprojection_free(E >>> 0, 1));
2117
2117
  class oI {
2118
2118
  static __wrap(A) {
2119
2119
  A >>>= 0;
@@ -2148,7 +2148,7 @@ class oI {
2148
2148
  }
2149
2149
  const DC = typeof FinalizationRegistry > "u" ? { register: () => {
2150
2150
  }, unregister: () => {
2151
- } } : new FinalizationRegistry((i) => Q.__wbg_rawpointprojection_free(i >>> 0, 1));
2151
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawpointprojection_free(E >>> 0, 1));
2152
2152
  class kI {
2153
2153
  static __wrap(A) {
2154
2154
  A >>>= 0;
@@ -2173,7 +2173,7 @@ class kI {
2173
2173
  }
2174
2174
  const oC = typeof FinalizationRegistry > "u" ? { register: () => {
2175
2175
  }, unregister: () => {
2176
- } } : new FinalizationRegistry((i) => Q.__wbg_rawraycolliderhit_free(i >>> 0, 1));
2176
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawraycolliderhit_free(E >>> 0, 1));
2177
2177
  class Eg {
2178
2178
  static __wrap(A) {
2179
2179
  A >>>= 0;
@@ -2197,7 +2197,7 @@ class Eg {
2197
2197
  }
2198
2198
  const wC = typeof FinalizationRegistry > "u" ? { register: () => {
2199
2199
  }, unregister: () => {
2200
- } } : new FinalizationRegistry((i) => Q.__wbg_rawraycolliderintersection_free(i >>> 0, 1));
2200
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawraycolliderintersection_free(E >>> 0, 1));
2201
2201
  class aI {
2202
2202
  static __wrap(A) {
2203
2203
  A >>>= 0;
@@ -2232,7 +2232,7 @@ class aI {
2232
2232
  }
2233
2233
  const GC = typeof FinalizationRegistry > "u" ? { register: () => {
2234
2234
  }, unregister: () => {
2235
- } } : new FinalizationRegistry((i) => Q.__wbg_rawrayintersection_free(i >>> 0, 1));
2235
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawrayintersection_free(E >>> 0, 1));
2236
2236
  class yI {
2237
2237
  static __wrap(A) {
2238
2238
  A >>>= 0;
@@ -2264,7 +2264,7 @@ class yI {
2264
2264
  }
2265
2265
  const OI = typeof FinalizationRegistry > "u" ? { register: () => {
2266
2266
  }, unregister: () => {
2267
- } } : new FinalizationRegistry((i) => Q.__wbg_rawrigidbodyset_free(i >>> 0, 1));
2267
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawrigidbodyset_free(E >>> 0, 1));
2268
2268
  class Z {
2269
2269
  static __wrap(A) {
2270
2270
  A >>>= 0;
@@ -2495,8 +2495,8 @@ class Z {
2495
2495
  const A = Q.rawrigidbodyset_new();
2496
2496
  return this.__wbg_ptr = A >>> 0, OI.register(this, this.__wbg_ptr, this), this;
2497
2497
  }
2498
- createRigidBody(A, I, g, C, B, E, D, o, w, K, s, k, a, R, J, M, F, c, p, j, _, X) {
2499
- return h(I, N), h(g, l), h(D, N), h(o, N), Q.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B, E, D.__wbg_ptr, o.__wbg_ptr, w, K, s, k, a, R, J, M, F, c, p, j, _, X);
2498
+ createRigidBody(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J, F, M, c, p, j, _, X) {
2499
+ return h(I, N), h(g, l), h(D, N), h(o, N), Q.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B, i, D.__wbg_ptr, o.__wbg_ptr, w, K, s, k, a, R, J, F, M, c, p, j, _, X);
2500
2500
  }
2501
2501
  remove(A, I, g, C, B) {
2502
2502
  h(I, SA), h(g, W), h(C, sA), h(B, NA), Q.rawrigidbodyset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr);
@@ -2520,7 +2520,7 @@ class Z {
2520
2520
  }
2521
2521
  const hC = typeof FinalizationRegistry > "u" ? { register: () => {
2522
2522
  }, unregister: () => {
2523
- } } : new FinalizationRegistry((i) => Q.__wbg_rawrotation_free(i >>> 0, 1));
2523
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawrotation_free(E >>> 0, 1));
2524
2524
  class l {
2525
2525
  static __wrap(A) {
2526
2526
  A >>>= 0;
@@ -2555,7 +2555,7 @@ class l {
2555
2555
  }
2556
2556
  const KC = typeof FinalizationRegistry > "u" ? { register: () => {
2557
2557
  }, unregister: () => {
2558
- } } : new FinalizationRegistry((i) => Q.__wbg_rawserializationpipeline_free(i >>> 0, 1));
2558
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawserializationpipeline_free(E >>> 0, 1));
2559
2559
  class bQ {
2560
2560
  __destroy_into_raw() {
2561
2561
  const A = this.__wbg_ptr;
@@ -2569,8 +2569,8 @@ class bQ {
2569
2569
  const A = Q.rawccdsolver_new();
2570
2570
  return this.__wbg_ptr = A >>> 0, KC.register(this, this.__wbg_ptr, this), this;
2571
2571
  }
2572
- serializeAll(A, I, g, C, B, E, D, o, w) {
2573
- return h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(E, Z), h(D, W), h(o, sA), h(w, NA), DI(Q.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
2572
+ serializeAll(A, I, g, C, B, i, D, o, w) {
2573
+ return h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(i, Z), h(D, W), h(o, sA), h(w, NA), DI(Q.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
2574
2574
  }
2575
2575
  deserializeAll(A) {
2576
2576
  const I = Q.rawserializationpipeline_deserializeAll(this.__wbg_ptr, d(A));
@@ -2579,7 +2579,7 @@ class bQ {
2579
2579
  }
2580
2580
  const sC = typeof FinalizationRegistry > "u" ? { register: () => {
2581
2581
  }, unregister: () => {
2582
- } } : new FinalizationRegistry((i) => Q.__wbg_rawshape_free(i >>> 0, 1));
2582
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawshape_free(E >>> 0, 1));
2583
2583
  class t {
2584
2584
  static __wrap(A) {
2585
2585
  A >>>= 0;
@@ -2626,11 +2626,11 @@ class t {
2626
2626
  return t.__wrap(B);
2627
2627
  }
2628
2628
  static polyline(A, I) {
2629
- const g = FA(A, Q.__wbindgen_export_2), C = BA, B = lI(I, Q.__wbindgen_export_2), E = BA, D = Q.rawshape_polyline(g, C, B, E);
2629
+ const g = FA(A, Q.__wbindgen_export_2), C = BA, B = lI(I, Q.__wbindgen_export_2), i = BA, D = Q.rawshape_polyline(g, C, B, i);
2630
2630
  return t.__wrap(D);
2631
2631
  }
2632
2632
  static trimesh(A, I, g) {
2633
- const C = FA(A, Q.__wbindgen_export_2), B = BA, E = lI(I, Q.__wbindgen_export_2), D = BA, o = Q.rawshape_trimesh(C, B, E, D, g);
2633
+ const C = FA(A, Q.__wbindgen_export_2), B = BA, i = lI(I, Q.__wbindgen_export_2), D = BA, o = Q.rawshape_trimesh(C, B, i, D, g);
2634
2634
  return o === 0 ? void 0 : t.__wrap(o);
2635
2635
  }
2636
2636
  static heightfield(A, I) {
@@ -2670,18 +2670,18 @@ class t {
2670
2670
  const g = FA(A, Q.__wbindgen_export_2), C = BA, B = Q.rawshape_roundConvexPolyline(g, C, I);
2671
2671
  return B === 0 ? void 0 : t.__wrap(B);
2672
2672
  }
2673
- castShape(A, I, g, C, B, E, D, o, w, K) {
2674
- h(A, N), h(I, l), h(g, N), h(C, t), h(B, N), h(E, l), h(D, N);
2675
- const s = Q.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o, w, K);
2673
+ castShape(A, I, g, C, B, i, D, o, w, K) {
2674
+ h(A, N), h(I, l), h(g, N), h(C, t), h(B, N), h(i, l), h(D, N);
2675
+ const s = Q.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, K);
2676
2676
  return s === 0 ? void 0 : FI.__wrap(s);
2677
2677
  }
2678
2678
  intersectsShape(A, I, g, C, B) {
2679
2679
  return h(A, N), h(I, l), h(g, t), h(C, N), h(B, l), Q.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr) !== 0;
2680
2680
  }
2681
- contactShape(A, I, g, C, B, E) {
2681
+ contactShape(A, I, g, C, B, i) {
2682
2682
  h(A, N), h(I, l), h(g, t), h(C, N), h(B, l);
2683
- const D = Q.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, E);
2684
- return D === 0 ? void 0 : uA.__wrap(D);
2683
+ const D = Q.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i);
2684
+ return D === 0 ? void 0 : VA.__wrap(D);
2685
2685
  }
2686
2686
  containsPoint(A, I, g) {
2687
2687
  return h(A, N), h(I, l), h(g, N), Q.rawshape_containsPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr) !== 0;
@@ -2694,18 +2694,18 @@ class t {
2694
2694
  intersectsRay(A, I, g, C, B) {
2695
2695
  return h(A, N), h(I, l), h(g, N), h(C, N), Q.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B) !== 0;
2696
2696
  }
2697
- castRay(A, I, g, C, B, E) {
2698
- return h(A, N), h(I, l), h(g, N), h(C, N), Q.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, E);
2697
+ castRay(A, I, g, C, B, i) {
2698
+ return h(A, N), h(I, l), h(g, N), h(C, N), Q.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i);
2699
2699
  }
2700
- castRayAndGetNormal(A, I, g, C, B, E) {
2700
+ castRayAndGetNormal(A, I, g, C, B, i) {
2701
2701
  h(A, N), h(I, l), h(g, N), h(C, N);
2702
- const D = Q.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, E);
2702
+ const D = Q.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i);
2703
2703
  return D === 0 ? void 0 : yI.__wrap(D);
2704
2704
  }
2705
2705
  }
2706
2706
  const SC = typeof FinalizationRegistry > "u" ? { register: () => {
2707
2707
  }, unregister: () => {
2708
- } } : new FinalizationRegistry((i) => Q.__wbg_rawshapecasthit_free(i >>> 0, 1));
2708
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawshapecasthit_free(E >>> 0, 1));
2709
2709
  class FI {
2710
2710
  static __wrap(A) {
2711
2711
  A >>>= 0;
@@ -2742,11 +2742,11 @@ class FI {
2742
2742
  }
2743
2743
  const NC = typeof FinalizationRegistry > "u" ? { register: () => {
2744
2744
  }, unregister: () => {
2745
- } } : new FinalizationRegistry((i) => Q.__wbg_rawshapecontact_free(i >>> 0, 1));
2746
- class uA {
2745
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawshapecontact_free(E >>> 0, 1));
2746
+ class VA {
2747
2747
  static __wrap(A) {
2748
2748
  A >>>= 0;
2749
- const I = Object.create(uA.prototype);
2749
+ const I = Object.create(VA.prototype);
2750
2750
  return I.__wbg_ptr = A, NC.register(I, I.__wbg_ptr, I), I;
2751
2751
  }
2752
2752
  __destroy_into_raw() {
@@ -2779,7 +2779,7 @@ class uA {
2779
2779
  }
2780
2780
  const jI = typeof FinalizationRegistry > "u" ? { register: () => {
2781
2781
  }, unregister: () => {
2782
- } } : new FinalizationRegistry((i) => Q.__wbg_rawvector_free(i >>> 0, 1));
2782
+ } } : new FinalizationRegistry((E) => Q.__wbg_rawvector_free(E >>> 0, 1));
2783
2783
  class N {
2784
2784
  static __wrap(A) {
2785
2785
  A >>>= 0;
@@ -2823,30 +2823,30 @@ class N {
2823
2823
  return N.__wrap(A);
2824
2824
  }
2825
2825
  }
2826
- async function RC(i) {
2826
+ async function RC(E) {
2827
2827
  if (Q !== void 0) return Q;
2828
- i !== void 0 && (Object.getPrototypeOf(i) === Object.prototype ? { module_or_path: i } = i : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), i === void 0 && (i = new URL("rapier_wasm2d_bg.wasm", "<deleted>"));
2828
+ E !== void 0 && (Object.getPrototypeOf(E) === Object.prototype ? { module_or_path: E } = E : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), E === void 0 && (E = new URL("rapier_wasm2d_bg.wasm", "<deleted>"));
2829
2829
  const A = function() {
2830
2830
  const C = { wbg: {} };
2831
- return C.wbg.__wbg_bind_c8359b1cba058168 = function(B, E, D, o) {
2832
- return d(q(B).bind(q(E), q(D), q(o)));
2831
+ return C.wbg.__wbg_bind_c8359b1cba058168 = function(B, i, D, o) {
2832
+ return d(q(B).bind(q(i), q(D), q(o)));
2833
2833
  }, C.wbg.__wbg_buffer_609cc3eee51ed158 = function(B) {
2834
2834
  return d(q(B).buffer);
2835
2835
  }, C.wbg.__wbg_call_672a4d21634d4a24 = function() {
2836
- return iI(function(B, E) {
2837
- return d(q(B).call(q(E)));
2836
+ return iI(function(B, i) {
2837
+ return d(q(B).call(q(i)));
2838
2838
  }, arguments);
2839
2839
  }, C.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
2840
- return iI(function(B, E, D) {
2841
- return d(q(B).call(q(E), q(D)));
2840
+ return iI(function(B, i, D) {
2841
+ return d(q(B).call(q(i), q(D)));
2842
2842
  }, arguments);
2843
2843
  }, C.wbg.__wbg_call_833bed5770ea2041 = function() {
2844
- return iI(function(B, E, D, o) {
2845
- return d(q(B).call(q(E), q(D), q(o)));
2844
+ return iI(function(B, i, D, o) {
2845
+ return d(q(B).call(q(i), q(D), q(o)));
2846
2846
  }, arguments);
2847
2847
  }, C.wbg.__wbg_call_b8adc8b1d0a0d8eb = function() {
2848
- return iI(function(B, E, D, o, w) {
2849
- return d(q(B).call(q(E), q(D), q(o), q(w)));
2848
+ return iI(function(B, i, D, o, w) {
2849
+ return d(q(B).call(q(i), q(D), q(o), q(w)));
2850
2850
  }, arguments);
2851
2851
  }, C.wbg.__wbg_length_3b4f022188ae8db6 = function(B) {
2852
2852
  return q(B).length;
@@ -2854,12 +2854,12 @@ async function RC(i) {
2854
2854
  return q(B).length;
2855
2855
  }, C.wbg.__wbg_new_a12002a7f91c75be = function(B) {
2856
2856
  return d(new Uint8Array(q(B)));
2857
- }, C.wbg.__wbg_newnoargs_105ed471475aaf50 = function(B, E) {
2858
- return d(new Function(XI(B, E)));
2859
- }, C.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(B, E, D) {
2860
- return d(new Uint8Array(q(B), E >>> 0, D >>> 0));
2861
- }, C.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(B, E, D) {
2862
- return d(new Float32Array(q(B), E >>> 0, D >>> 0));
2857
+ }, C.wbg.__wbg_newnoargs_105ed471475aaf50 = function(B, i) {
2858
+ return d(new Function(XI(B, i)));
2859
+ }, C.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(B, i, D) {
2860
+ return d(new Uint8Array(q(B), i >>> 0, D >>> 0));
2861
+ }, C.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(B, i, D) {
2862
+ return d(new Float32Array(q(B), i >>> 0, D >>> 0));
2863
2863
  }, C.wbg.__wbg_newwithlength_5a5efe313cfd59f1 = function(B) {
2864
2864
  return d(new Float32Array(B >>> 0));
2865
2865
  }, C.wbg.__wbg_now_2c95c9de01293173 = function(B) {
@@ -2870,10 +2870,10 @@ async function RC(i) {
2870
2870
  return d(gg.__wrap(B));
2871
2871
  }, C.wbg.__wbg_rawraycolliderintersection_new = function(B) {
2872
2872
  return d(aI.__wrap(B));
2873
- }, C.wbg.__wbg_set_10bad9bee0e9c58b = function(B, E, D) {
2874
- q(B).set(q(E), D >>> 0);
2875
- }, C.wbg.__wbg_set_65595bdd868b3009 = function(B, E, D) {
2876
- q(B).set(q(E), D >>> 0);
2873
+ }, C.wbg.__wbg_set_10bad9bee0e9c58b = function(B, i, D) {
2874
+ q(B).set(q(i), D >>> 0);
2875
+ }, C.wbg.__wbg_set_65595bdd868b3009 = function(B, i, D) {
2876
+ q(B).set(q(i), D >>> 0);
2877
2877
  }, C.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
2878
2878
  const B = typeof global > "u" ? null : global;
2879
2879
  return Y(B) ? 0 : d(B);
@@ -2887,16 +2887,16 @@ async function RC(i) {
2887
2887
  const B = typeof window > "u" ? null : window;
2888
2888
  return Y(B) ? 0 : d(B);
2889
2889
  }, C.wbg.__wbindgen_boolean_get = function(B) {
2890
- const E = q(B);
2891
- return typeof E == "boolean" ? E ? 1 : 0 : 2;
2890
+ const i = q(B);
2891
+ return typeof i == "boolean" ? i ? 1 : 0 : 2;
2892
2892
  }, C.wbg.__wbindgen_is_function = function(B) {
2893
2893
  return typeof q(B) == "function";
2894
2894
  }, C.wbg.__wbindgen_is_undefined = function(B) {
2895
2895
  return q(B) === void 0;
2896
2896
  }, C.wbg.__wbindgen_memory = function() {
2897
2897
  return d(Q.memory);
2898
- }, C.wbg.__wbindgen_number_get = function(B, E) {
2899
- const D = q(E), o = typeof D == "number" ? D : void 0;
2898
+ }, C.wbg.__wbindgen_number_get = function(B, i) {
2899
+ const D = q(i), o = typeof D == "number" ? D : void 0;
2900
2900
  P().setFloat64(B + 8, Y(o) ? 0 : o, !0), P().setInt32(B + 0, !Y(o), !0);
2901
2901
  }, C.wbg.__wbindgen_number_new = function(B) {
2902
2902
  return d(B);
@@ -2904,11 +2904,11 @@ async function RC(i) {
2904
2904
  return d(q(B));
2905
2905
  }, C.wbg.__wbindgen_object_drop_ref = function(B) {
2906
2906
  DI(B);
2907
- }, C.wbg.__wbindgen_throw = function(B, E) {
2908
- throw new Error(XI(B, E));
2907
+ }, C.wbg.__wbindgen_throw = function(B, i) {
2908
+ throw new Error(XI(B, i));
2909
2909
  }, C;
2910
2910
  }();
2911
- (typeof i == "string" || typeof Request == "function" && i instanceof Request || typeof URL == "function" && i instanceof URL) && (i = fetch(i));
2911
+ (typeof E == "string" || typeof Request == "function" && E instanceof Request || typeof URL == "function" && E instanceof URL) && (E = fetch(E));
2912
2912
  const { instance: I, module: g } = await async function(C, B) {
2913
2913
  if (typeof Response == "function" && C instanceof Response) {
2914
2914
  if (typeof WebAssembly.instantiateStreaming == "function") try {
@@ -2917,16 +2917,16 @@ async function RC(i) {
2917
2917
  if (C.headers.get("Content-Type") == "application/wasm") throw D;
2918
2918
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", D);
2919
2919
  }
2920
- const E = await C.arrayBuffer();
2921
- return await WebAssembly.instantiate(E, B);
2920
+ const i = await C.arrayBuffer();
2921
+ return await WebAssembly.instantiate(i, B);
2922
2922
  }
2923
2923
  {
2924
- const E = await WebAssembly.instantiate(C, B);
2925
- return E instanceof WebAssembly.Instance ? { instance: E, module: C } : E;
2924
+ const i = await WebAssembly.instantiate(C, B);
2925
+ return i instanceof WebAssembly.Instance ? { instance: i, module: C } : i;
2926
2926
  }
2927
- }(await i, A);
2927
+ }(await E, A);
2928
2928
  return function(C, B) {
2929
- return Q = C.exports, RC.__wbindgen_wasm_module = B, cA = null, XA = null, xA = null, mA = null, WA = null, Q;
2929
+ return Q = C.exports, RC.__wbindgen_wasm_module = B, cA = null, mA = null, XA = null, vA = null, xA = null, Q;
2930
2930
  }(I, g);
2931
2931
  }
2932
2932
  class cC {
@@ -2966,9 +2966,9 @@ class f {
2966
2966
  return l.fromAngle(A);
2967
2967
  }
2968
2968
  }
2969
- var GA, EA, vI, uI, VA, lA, z, VI, PI, wI, GI, zI, _I, hI, tA;
2970
- (function(i) {
2971
- i[i.Dynamic = 0] = "Dynamic", i[i.Fixed = 1] = "Fixed", i[i.KinematicPositionBased = 2] = "KinematicPositionBased", i[i.KinematicVelocityBased = 3] = "KinematicVelocityBased";
2969
+ var GA, EA, vI, uI, PA, lA, z, VI, PI, wI, GI, zI, _I, hI, tA;
2970
+ (function(E) {
2971
+ E[E.Dynamic = 0] = "Dynamic", E[E.Fixed = 1] = "Fixed", E[E.KinematicPositionBased = 2] = "KinematicPositionBased", E[E.KinematicVelocityBased = 3] = "KinematicVelocityBased";
2972
2972
  })(GA || (GA = {}));
2973
2973
  class $I {
2974
2974
  constructor(A, I, g) {
@@ -3331,14 +3331,14 @@ class YC {
3331
3331
  this.map.forEach((I) => I.finalizeDeserialization(A));
3332
3332
  }
3333
3333
  createRigidBody(A, I) {
3334
- let g = S.intoRaw(I.translation), C = f.intoRaw(I.rotation), B = S.intoRaw(I.linvel), E = S.intoRaw(I.centerOfMass), D = this.raw.createRigidBody(I.enabled, g, C, I.gravityScale, I.mass, I.massOnly, E, B, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
3335
- g.free(), C.free(), B.free(), E.free();
3334
+ let g = S.intoRaw(I.translation), C = f.intoRaw(I.rotation), B = S.intoRaw(I.linvel), i = S.intoRaw(I.centerOfMass), D = this.raw.createRigidBody(I.enabled, g, C, I.gravityScale, I.mass, I.massOnly, i, B, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
3335
+ g.free(), C.free(), B.free(), i.free();
3336
3336
  const o = new $I(this.raw, A, D);
3337
3337
  return o.userData = I.userData, this.map.set(D, o), o;
3338
3338
  }
3339
3339
  remove(A, I, g, C, B) {
3340
- for (let E = 0; E < this.raw.rbNumColliders(A); E += 1) g.unmap(this.raw.rbCollider(A, E));
3341
- C.forEachJointHandleAttachedToRigidBody(A, (E) => C.unmap(E)), B.forEachJointHandleAttachedToRigidBody(A, (E) => B.unmap(E)), this.raw.remove(A, I.raw, g.raw, C.raw, B.raw), this.map.delete(A);
3340
+ for (let i = 0; i < this.raw.rbNumColliders(A); i += 1) g.unmap(this.raw.rbCollider(A, i));
3341
+ C.forEachJointHandleAttachedToRigidBody(A, (i) => C.unmap(i)), B.forEachJointHandleAttachedToRigidBody(A, (i) => B.unmap(i)), this.raw.remove(A, I.raw, g.raw, C.raw, B.raw), this.map.delete(A);
3342
3342
  }
3343
3343
  len() {
3344
3344
  return this.map.len();
@@ -3423,12 +3423,12 @@ class tC {
3423
3423
  this.raw.maxCcdSubsteps = A;
3424
3424
  }
3425
3425
  }
3426
- (function(i) {
3427
- i[i.Revolute = 0] = "Revolute", i[i.Fixed = 1] = "Fixed", i[i.Prismatic = 2] = "Prismatic", i[i.Rope = 3] = "Rope", i[i.Spring = 4] = "Spring";
3428
- })(EA || (EA = {})), function(i) {
3429
- i[i.AccelerationBased = 0] = "AccelerationBased", i[i.ForceBased = 1] = "ForceBased";
3430
- }(vI || (vI = {})), function(i) {
3431
- i[i.LinX = 1] = "LinX", i[i.LinY = 2] = "LinY", i[i.LinZ = 4] = "LinZ", i[i.AngX = 8] = "AngX", i[i.AngY = 16] = "AngY", i[i.AngZ = 32] = "AngZ";
3426
+ (function(E) {
3427
+ E[E.Revolute = 0] = "Revolute", E[E.Fixed = 1] = "Fixed", E[E.Prismatic = 2] = "Prismatic", E[E.Rope = 3] = "Rope", E[E.Spring = 4] = "Spring";
3428
+ })(EA || (EA = {})), function(E) {
3429
+ E[E.AccelerationBased = 0] = "AccelerationBased", E[E.ForceBased = 1] = "ForceBased";
3430
+ }(vI || (vI = {})), function(E) {
3431
+ E[E.LinX = 1] = "LinX", E[E.LinY = 2] = "LinY", E[E.LinZ = 4] = "LinZ", E[E.AngX = 8] = "AngX", E[E.AngY = 16] = "AngY", E[E.AngZ = 32] = "AngZ";
3432
3432
  }(uI || (uI = {}));
3433
3433
  class kA {
3434
3434
  constructor(A, I, g) {
@@ -3536,8 +3536,8 @@ class YA {
3536
3536
  return B.anchor1 = A, B.anchor2 = g, B.frame1 = I, B.frame2 = C, B.jointType = EA.Fixed, B;
3537
3537
  }
3538
3538
  static spring(A, I, g, C, B) {
3539
- let E = new YA();
3540
- return E.anchor1 = C, E.anchor2 = B, E.length = A, E.stiffness = I, E.damping = g, E.jointType = EA.Spring, E;
3539
+ let i = new YA();
3540
+ return i.anchor1 = C, i.anchor2 = B, i.length = A, i.stiffness = I, i.damping = g, i.jointType = EA.Spring, i;
3541
3541
  }
3542
3542
  static rope(A, I, g) {
3543
3543
  let C = new YA();
@@ -3552,7 +3552,7 @@ class YA {
3552
3552
  return C.anchor1 = A, C.anchor2 = I, C.axis = g, C.jointType = EA.Prismatic, C;
3553
3553
  }
3554
3554
  intoRaw() {
3555
- let A, I, g = S.intoRaw(this.anchor1), C = S.intoRaw(this.anchor2), B = !1, E = 0, D = 0;
3555
+ let A, I, g = S.intoRaw(this.anchor1), C = S.intoRaw(this.anchor2), B = !1, i = 0, D = 0;
3556
3556
  switch (this.jointType) {
3557
3557
  case EA.Fixed:
3558
3558
  let o = f.intoRaw(this.frame1), w = f.intoRaw(this.frame2);
@@ -3565,7 +3565,7 @@ class YA {
3565
3565
  I = CA.rope(this.length, g, C);
3566
3566
  break;
3567
3567
  case EA.Prismatic:
3568
- A = S.intoRaw(this.axis), this.limitsEnabled && (B = !0, E = this.limits[0], D = this.limits[1]), I = CA.prismatic(g, C, A, B, E, D), A.free();
3568
+ A = S.intoRaw(this.axis), this.limitsEnabled && (B = !0, i = this.limits[0], D = this.limits[1]), I = CA.prismatic(g, C, A, B, i, D), A.free();
3569
3569
  break;
3570
3570
  case EA.Revolute:
3571
3571
  I = CA.revolute(g, C);
@@ -3586,8 +3586,8 @@ class lC {
3586
3586
  this.map.forEach((I) => I.finalizeDeserialization(A));
3587
3587
  }
3588
3588
  createJoint(A, I, g, C, B) {
3589
- const E = I.intoRaw(), D = this.raw.createJoint(E, g, C, B);
3590
- E.free();
3589
+ const i = I.intoRaw(), D = this.raw.createJoint(i, g, C, B);
3590
+ i.free();
3591
3591
  let o = kA.newTyped(this.raw, A, D);
3592
3592
  return this.map.set(D, o), o;
3593
3593
  }
@@ -3666,10 +3666,10 @@ class fC {
3666
3666
  this.raw && this.raw.free(), this.raw = void 0, this.map && this.map.clear(), this.map = void 0;
3667
3667
  }
3668
3668
  createJoint(A, I, g, C) {
3669
- const B = A.intoRaw(), E = this.raw.createJoint(B, I, g, C);
3669
+ const B = A.intoRaw(), i = this.raw.createJoint(B, I, g, C);
3670
3670
  B.free();
3671
- let D = rA.newTyped(this.raw, E);
3672
- return this.map.set(E, D), D;
3671
+ let D = rA.newTyped(this.raw, i);
3672
+ return this.map.set(i, D), D;
3673
3673
  }
3674
3674
  remove(A, I) {
3675
3675
  this.raw.remove(A, I), this.map.delete(A);
@@ -3696,9 +3696,9 @@ class fC {
3696
3696
  return this.map.getAll();
3697
3697
  }
3698
3698
  }
3699
- (function(i) {
3700
- i[i.Average = 0] = "Average", i[i.Min = 1] = "Min", i[i.Multiply = 2] = "Multiply", i[i.Max = 3] = "Max";
3701
- })(VA || (VA = {}));
3699
+ (function(E) {
3700
+ E[E.Average = 0] = "Average", E[E.Min = 1] = "Min", E[E.Multiply = 2] = "Multiply", E[E.Max = 3] = "Max";
3701
+ })(PA || (PA = {}));
3702
3702
  class bC {
3703
3703
  constructor(A) {
3704
3704
  this.raw = A || new mI();
@@ -3718,8 +3718,8 @@ class TC {
3718
3718
  this.raw.forEachActiveRigidBodyHandle(A);
3719
3719
  }
3720
3720
  }
3721
- (function(i) {
3722
- i[i.Vertex = 0] = "Vertex", i[i.Face = 1] = "Face", i[i.Unknown = 2] = "Unknown";
3721
+ (function(E) {
3722
+ E[E.Vertex = 0] = "Vertex", E[E.Face = 1] = "Face", E[E.Unknown = 2] = "Unknown";
3723
3723
  })(lA || (lA = {}));
3724
3724
  class TQ {
3725
3725
  constructor(A, I) {
@@ -3729,23 +3729,23 @@ class TQ {
3729
3729
  return { x: this.origin.x + this.dir.x * A, y: this.origin.y + this.dir.y * A };
3730
3730
  }
3731
3731
  }
3732
- class _A {
3732
+ class $A {
3733
3733
  constructor(A, I, g, C) {
3734
3734
  this.featureType = lA.Unknown, this.featureId = void 0, this.timeOfImpact = A, this.normal = I, C !== void 0 && (this.featureId = C), g !== void 0 && (this.featureType = g);
3735
3735
  }
3736
3736
  static fromRaw(A) {
3737
3737
  if (!A) return null;
3738
- const I = new _A(A.time_of_impact(), S.fromRaw(A.normal()), A.featureType(), A.featureId());
3738
+ const I = new $A(A.time_of_impact(), S.fromRaw(A.normal()), A.featureType(), A.featureId());
3739
3739
  return A.free(), I;
3740
3740
  }
3741
3741
  }
3742
- class PA {
3742
+ class zA {
3743
3743
  constructor(A, I, g, C, B) {
3744
3744
  this.featureType = lA.Unknown, this.featureId = void 0, this.collider = A, this.timeOfImpact = I, this.normal = g, B !== void 0 && (this.featureId = B), C !== void 0 && (this.featureType = C);
3745
3745
  }
3746
3746
  static fromRaw(A, I) {
3747
3747
  if (!I) return null;
3748
- const g = new PA(A.get(I.colliderHandle()), I.time_of_impact(), S.fromRaw(I.normal()), I.featureType(), I.featureId());
3748
+ const g = new zA(A.get(I.colliderHandle()), I.time_of_impact(), S.fromRaw(I.normal()), I.featureType(), I.featureId());
3749
3749
  return I.free(), g;
3750
3750
  }
3751
3751
  }
@@ -3759,23 +3759,23 @@ class JI {
3759
3759
  return I.free(), g;
3760
3760
  }
3761
3761
  }
3762
- class $A {
3762
+ class AI {
3763
3763
  constructor(A, I) {
3764
3764
  this.point = A, this.isInside = I;
3765
3765
  }
3766
3766
  static fromRaw(A) {
3767
3767
  if (!A) return null;
3768
- const I = new $A(S.fromRaw(A.point()), A.isInside());
3768
+ const I = new AI(S.fromRaw(A.point()), A.isInside());
3769
3769
  return A.free(), I;
3770
3770
  }
3771
3771
  }
3772
- class zA {
3772
+ class _A {
3773
3773
  constructor(A, I, g, C, B) {
3774
3774
  this.featureType = lA.Unknown, this.featureId = void 0, this.collider = A, this.point = I, this.isInside = g, B !== void 0 && (this.featureId = B), C !== void 0 && (this.featureType = C);
3775
3775
  }
3776
3776
  static fromRaw(A, I) {
3777
3777
  if (!I) return null;
3778
- const g = new zA(A.get(I.colliderHandle()), S.fromRaw(I.point()), I.isInside(), I.featureType(), I.featureId());
3778
+ const g = new _A(A.get(I.colliderHandle()), S.fromRaw(I.point()), I.isInside(), I.featureType(), I.featureId());
3779
3779
  return I.free(), g;
3780
3780
  }
3781
3781
  }
@@ -3789,13 +3789,13 @@ class pA {
3789
3789
  return I.free(), g;
3790
3790
  }
3791
3791
  }
3792
- class AI extends pA {
3793
- constructor(A, I, g, C, B, E) {
3794
- super(I, g, C, B, E), this.collider = A;
3792
+ class II extends pA {
3793
+ constructor(A, I, g, C, B, i) {
3794
+ super(I, g, C, B, i), this.collider = A;
3795
3795
  }
3796
3796
  static fromRaw(A, I) {
3797
3797
  if (!I) return null;
3798
- const g = new AI(A.get(I.colliderHandle()), I.time_of_impact(), S.fromRaw(I.witness1()), S.fromRaw(I.witness2()), S.fromRaw(I.normal1()), S.fromRaw(I.normal2()));
3798
+ const g = new II(A.get(I.colliderHandle()), I.time_of_impact(), S.fromRaw(I.witness1()), S.fromRaw(I.witness2()), S.fromRaw(I.normal1()), S.fromRaw(I.normal2()));
3799
3799
  return I.free(), g;
3800
3800
  }
3801
3801
  }
@@ -3806,45 +3806,45 @@ class ZC {
3806
3806
  free() {
3807
3807
  this.raw && this.raw.free(), this.raw = void 0;
3808
3808
  }
3809
- castRay(A, I, g, C, B, E, D, o, w, K, s) {
3810
- let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = JI.fromRaw(g, this.raw.castRay(A.raw, I.raw, g.raw, k, a, B, E, D, o, w, K, s));
3809
+ castRay(A, I, g, C, B, i, D, o, w, K, s) {
3810
+ let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = JI.fromRaw(g, this.raw.castRay(A.raw, I.raw, g.raw, k, a, B, i, D, o, w, K, s));
3811
3811
  return k.free(), a.free(), R;
3812
3812
  }
3813
- castRayAndGetNormal(A, I, g, C, B, E, D, o, w, K, s) {
3814
- let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = PA.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, k, a, B, E, D, o, w, K, s));
3813
+ castRayAndGetNormal(A, I, g, C, B, i, D, o, w, K, s) {
3814
+ let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = zA.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, k, a, B, i, D, o, w, K, s));
3815
3815
  return k.free(), a.free(), R;
3816
3816
  }
3817
- intersectionsWithRay(A, I, g, C, B, E, D, o, w, K, s, k) {
3817
+ intersectionsWithRay(A, I, g, C, B, i, D, o, w, K, s, k) {
3818
3818
  let a = S.intoRaw(C.origin), R = S.intoRaw(C.dir);
3819
- this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, a, R, B, E, (J) => D(PA.fromRaw(g, J)), o, w, K, s, k), a.free(), R.free();
3819
+ this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, a, R, B, i, (J) => D(zA.fromRaw(g, J)), o, w, K, s, k), a.free(), R.free();
3820
3820
  }
3821
- intersectionWithShape(A, I, g, C, B, E, D, o, w, K, s) {
3822
- let k = S.intoRaw(C), a = f.intoRaw(B), R = E.intoRaw(), J = this.raw.intersectionWithShape(A.raw, I.raw, g.raw, k, a, R, D, o, w, K, s);
3821
+ intersectionWithShape(A, I, g, C, B, i, D, o, w, K, s) {
3822
+ let k = S.intoRaw(C), a = f.intoRaw(B), R = i.intoRaw(), J = this.raw.intersectionWithShape(A.raw, I.raw, g.raw, k, a, R, D, o, w, K, s);
3823
3823
  return k.free(), a.free(), R.free(), J;
3824
3824
  }
3825
- projectPoint(A, I, g, C, B, E, D, o, w, K) {
3826
- let s = S.intoRaw(C), k = zA.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, s, B, E, D, o, w, K));
3825
+ projectPoint(A, I, g, C, B, i, D, o, w, K) {
3826
+ let s = S.intoRaw(C), k = _A.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, s, B, i, D, o, w, K));
3827
3827
  return s.free(), k;
3828
3828
  }
3829
- projectPointAndGetFeature(A, I, g, C, B, E, D, o, w) {
3830
- let K = S.intoRaw(C), s = zA.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, K, B, E, D, o, w));
3829
+ projectPointAndGetFeature(A, I, g, C, B, i, D, o, w) {
3830
+ let K = S.intoRaw(C), s = _A.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, K, B, i, D, o, w));
3831
3831
  return K.free(), s;
3832
3832
  }
3833
- intersectionsWithPoint(A, I, g, C, B, E, D, o, w, K) {
3833
+ intersectionsWithPoint(A, I, g, C, B, i, D, o, w, K) {
3834
3834
  let s = S.intoRaw(C);
3835
- this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, s, B, E, D, o, w, K), s.free();
3835
+ this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, s, B, i, D, o, w, K), s.free();
3836
3836
  }
3837
- castShape(A, I, g, C, B, E, D, o, w, K, s, k, a, R, J) {
3838
- let M = S.intoRaw(C), F = f.intoRaw(B), c = S.intoRaw(E), p = D.intoRaw(), j = AI.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, M, F, c, p, o, w, K, s, k, a, R, J));
3839
- return M.free(), F.free(), c.free(), p.free(), j;
3837
+ castShape(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J) {
3838
+ let F = S.intoRaw(C), M = f.intoRaw(B), c = S.intoRaw(i), p = D.intoRaw(), j = II.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, F, M, c, p, o, w, K, s, k, a, R, J));
3839
+ return F.free(), M.free(), c.free(), p.free(), j;
3840
3840
  }
3841
- intersectionsWithShape(A, I, g, C, B, E, D, o, w, K, s, k) {
3842
- let a = S.intoRaw(C), R = f.intoRaw(B), J = E.intoRaw();
3841
+ intersectionsWithShape(A, I, g, C, B, i, D, o, w, K, s, k) {
3842
+ let a = S.intoRaw(C), R = f.intoRaw(B), J = i.intoRaw();
3843
3843
  this.raw.intersectionsWithShape(A.raw, I.raw, g.raw, a, R, J, D, o, w, K, s, k), a.free(), R.free(), J.free();
3844
3844
  }
3845
- collidersWithAabbIntersectingAabb(A, I, g, C, B, E) {
3845
+ collidersWithAabbIntersectingAabb(A, I, g, C, B, i) {
3846
3846
  let D = S.intoRaw(C), o = S.intoRaw(B);
3847
- this.raw.collidersWithAabbIntersectingAabb(A.raw, I.raw, g.raw, D, o, E), D.free(), o.free();
3847
+ this.raw.collidersWithAabbIntersectingAabb(A.raw, I.raw, g.raw, D, o, i), D.free(), o.free();
3848
3848
  }
3849
3849
  }
3850
3850
  class OC {
@@ -3864,8 +3864,8 @@ class OC {
3864
3864
  const C = this.raw.contact_pair(A, I);
3865
3865
  if (C) {
3866
3866
  const B = C.collider1() != A;
3867
- let E;
3868
- for (E = 0; E < C.numContactManifolds(); ++E) this.tempManifold.raw = C.contactManifold(E), this.tempManifold.raw && g(this.tempManifold, B), this.tempManifold.free();
3867
+ let i;
3868
+ for (i = 0; i < C.numContactManifolds(); ++i) this.tempManifold.raw = C.contactManifold(i), this.tempManifold.raw && g(this.tempManifold, B), this.tempManifold.free();
3869
3869
  C.free();
3870
3870
  }
3871
3871
  }
@@ -3951,7 +3951,7 @@ class nA {
3951
3951
  class $ {
3952
3952
  static fromRaw(A, I) {
3953
3953
  const g = A.coShapeType(I);
3954
- let C, B, E, D, o, w, K;
3954
+ let C, B, i, D, o, w, K;
3955
3955
  switch (g) {
3956
3956
  case gA.Ball:
3957
3957
  return new og(A.coRadius(I));
@@ -3962,70 +3962,70 @@ class $ {
3962
3962
  case gA.Capsule:
3963
3963
  return o = A.coHalfHeight(I), w = A.coRadius(I), new Kg(o, w);
3964
3964
  case gA.Segment:
3965
- return E = A.coVertices(I), new sg(S.new(E[0], E[1]), S.new(E[2], E[3]));
3965
+ return i = A.coVertices(I), new sg(S.new(i[0], i[1]), S.new(i[2], i[3]));
3966
3966
  case gA.Polyline:
3967
- return E = A.coVertices(I), D = A.coIndices(I), new kg(E, D);
3967
+ return i = A.coVertices(I), D = A.coIndices(I), new kg(i, D);
3968
3968
  case gA.Triangle:
3969
- return E = A.coVertices(I), new Sg(S.new(E[0], E[1]), S.new(E[2], E[3]), S.new(E[4], E[5]));
3969
+ return i = A.coVertices(I), new Sg(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]));
3970
3970
  case gA.RoundTriangle:
3971
- return E = A.coVertices(I), B = A.coRoundRadius(I), new Ng(S.new(E[0], E[1]), S.new(E[2], E[3]), S.new(E[4], E[5]), B);
3971
+ return i = A.coVertices(I), B = A.coRoundRadius(I), new Ng(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]), B);
3972
3972
  case gA.HalfSpace:
3973
3973
  return K = S.fromRaw(A.coHalfspaceNormal(I)), new wg(K);
3974
3974
  case gA.Voxels:
3975
3975
  const s = A.coVoxelData(I), k = A.coVoxelSize(I);
3976
3976
  return new ag(s, k);
3977
3977
  case gA.TriMesh:
3978
- E = A.coVertices(I), D = A.coIndices(I);
3978
+ i = A.coVertices(I), D = A.coIndices(I);
3979
3979
  const a = A.coTriMeshFlags(I);
3980
- return new yg(E, D, a);
3980
+ return new yg(i, D, a);
3981
3981
  case gA.HeightField:
3982
3982
  const R = A.coHeightfieldScale(I), J = A.coHeightfieldHeights(I);
3983
3983
  return new Fg(J, R);
3984
3984
  case gA.ConvexPolygon:
3985
- return E = A.coVertices(I), new KI(E, !1);
3985
+ return i = A.coVertices(I), new KI(i, !1);
3986
3986
  case gA.RoundConvexPolygon:
3987
- return E = A.coVertices(I), B = A.coRoundRadius(I), new sI(E, B, !1);
3987
+ return i = A.coVertices(I), B = A.coRoundRadius(I), new sI(i, B, !1);
3988
3988
  default:
3989
3989
  throw new Error("unknown shape type: " + g);
3990
3990
  }
3991
3991
  }
3992
- castShape(A, I, g, C, B, E, D, o, w, K) {
3993
- let s = S.intoRaw(A), k = f.intoRaw(I), a = S.intoRaw(g), R = S.intoRaw(B), J = f.intoRaw(E), M = S.intoRaw(D), F = this.intoRaw(), c = C.intoRaw(), p = pA.fromRaw(null, F.castShape(s, k, a, c, R, J, M, o, w, K));
3994
- return s.free(), k.free(), a.free(), R.free(), J.free(), M.free(), F.free(), c.free(), p;
3992
+ castShape(A, I, g, C, B, i, D, o, w, K) {
3993
+ let s = S.intoRaw(A), k = f.intoRaw(I), a = S.intoRaw(g), R = S.intoRaw(B), J = f.intoRaw(i), F = S.intoRaw(D), M = this.intoRaw(), c = C.intoRaw(), p = pA.fromRaw(null, M.castShape(s, k, a, c, R, J, F, o, w, K));
3994
+ return s.free(), k.free(), a.free(), R.free(), J.free(), F.free(), M.free(), c.free(), p;
3995
3995
  }
3996
3996
  intersectsShape(A, I, g, C, B) {
3997
- let E = S.intoRaw(A), D = f.intoRaw(I), o = S.intoRaw(C), w = f.intoRaw(B), K = this.intoRaw(), s = g.intoRaw(), k = K.intersectsShape(E, D, s, o, w);
3998
- return E.free(), D.free(), o.free(), w.free(), K.free(), s.free(), k;
3997
+ let i = S.intoRaw(A), D = f.intoRaw(I), o = S.intoRaw(C), w = f.intoRaw(B), K = this.intoRaw(), s = g.intoRaw(), k = K.intersectsShape(i, D, s, o, w);
3998
+ return i.free(), D.free(), o.free(), w.free(), K.free(), s.free(), k;
3999
3999
  }
4000
- contactShape(A, I, g, C, B, E) {
4001
- let D = S.intoRaw(A), o = f.intoRaw(I), w = S.intoRaw(C), K = f.intoRaw(B), s = this.intoRaw(), k = g.intoRaw(), a = nA.fromRaw(s.contactShape(D, o, k, w, K, E));
4000
+ contactShape(A, I, g, C, B, i) {
4001
+ let D = S.intoRaw(A), o = f.intoRaw(I), w = S.intoRaw(C), K = f.intoRaw(B), s = this.intoRaw(), k = g.intoRaw(), a = nA.fromRaw(s.contactShape(D, o, k, w, K, i));
4002
4002
  return D.free(), o.free(), w.free(), K.free(), s.free(), k.free(), a;
4003
4003
  }
4004
4004
  containsPoint(A, I, g) {
4005
- let C = S.intoRaw(A), B = f.intoRaw(I), E = S.intoRaw(g), D = this.intoRaw(), o = D.containsPoint(C, B, E);
4006
- return C.free(), B.free(), E.free(), D.free(), o;
4005
+ let C = S.intoRaw(A), B = f.intoRaw(I), i = S.intoRaw(g), D = this.intoRaw(), o = D.containsPoint(C, B, i);
4006
+ return C.free(), B.free(), i.free(), D.free(), o;
4007
4007
  }
4008
4008
  projectPoint(A, I, g, C) {
4009
- let B = S.intoRaw(A), E = f.intoRaw(I), D = S.intoRaw(g), o = this.intoRaw(), w = $A.fromRaw(o.projectPoint(B, E, D, C));
4010
- return B.free(), E.free(), D.free(), o.free(), w;
4009
+ let B = S.intoRaw(A), i = f.intoRaw(I), D = S.intoRaw(g), o = this.intoRaw(), w = AI.fromRaw(o.projectPoint(B, i, D, C));
4010
+ return B.free(), i.free(), D.free(), o.free(), w;
4011
4011
  }
4012
4012
  intersectsRay(A, I, g, C) {
4013
- let B = S.intoRaw(I), E = f.intoRaw(g), D = S.intoRaw(A.origin), o = S.intoRaw(A.dir), w = this.intoRaw(), K = w.intersectsRay(B, E, D, o, C);
4014
- return B.free(), E.free(), D.free(), o.free(), w.free(), K;
4013
+ let B = S.intoRaw(I), i = f.intoRaw(g), D = S.intoRaw(A.origin), o = S.intoRaw(A.dir), w = this.intoRaw(), K = w.intersectsRay(B, i, D, o, C);
4014
+ return B.free(), i.free(), D.free(), o.free(), w.free(), K;
4015
4015
  }
4016
4016
  castRay(A, I, g, C, B) {
4017
- let E = S.intoRaw(I), D = f.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), s = K.castRay(E, D, o, w, C, B);
4018
- return E.free(), D.free(), o.free(), w.free(), K.free(), s;
4017
+ let i = S.intoRaw(I), D = f.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), s = K.castRay(i, D, o, w, C, B);
4018
+ return i.free(), D.free(), o.free(), w.free(), K.free(), s;
4019
4019
  }
4020
4020
  castRayAndGetNormal(A, I, g, C, B) {
4021
- let E = S.intoRaw(I), D = f.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), s = _A.fromRaw(K.castRayAndGetNormal(E, D, o, w, C, B));
4022
- return E.free(), D.free(), o.free(), w.free(), K.free(), s;
4021
+ let i = S.intoRaw(I), D = f.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), s = $A.fromRaw(K.castRayAndGetNormal(i, D, o, w, C, B));
4022
+ return i.free(), D.free(), o.free(), w.free(), K.free(), s;
4023
4023
  }
4024
4024
  }
4025
- (function(i) {
4026
- i[i.Ball = 0] = "Ball", i[i.Cuboid = 1] = "Cuboid", i[i.Capsule = 2] = "Capsule", i[i.Segment = 3] = "Segment", i[i.Polyline = 4] = "Polyline", i[i.Triangle = 5] = "Triangle", i[i.TriMesh = 6] = "TriMesh", i[i.HeightField = 7] = "HeightField", i[i.ConvexPolygon = 9] = "ConvexPolygon", i[i.RoundCuboid = 10] = "RoundCuboid", i[i.RoundTriangle = 11] = "RoundTriangle", i[i.RoundConvexPolygon = 12] = "RoundConvexPolygon", i[i.HalfSpace = 13] = "HalfSpace", i[i.Voxels = 14] = "Voxels";
4027
- })(z || (z = {})), function(i) {
4028
- i[i.DELETE_BAD_TOPOLOGY_TRIANGLES = 4] = "DELETE_BAD_TOPOLOGY_TRIANGLES", i[i.ORIENTED = 8] = "ORIENTED", i[i.MERGE_DUPLICATE_VERTICES = 16] = "MERGE_DUPLICATE_VERTICES", i[i.DELETE_DEGENERATE_TRIANGLES = 32] = "DELETE_DEGENERATE_TRIANGLES", i[i.DELETE_DUPLICATE_TRIANGLES = 64] = "DELETE_DUPLICATE_TRIANGLES", i[i.FIX_INTERNAL_EDGES = 144] = "FIX_INTERNAL_EDGES";
4025
+ (function(E) {
4026
+ E[E.Ball = 0] = "Ball", E[E.Cuboid = 1] = "Cuboid", E[E.Capsule = 2] = "Capsule", E[E.Segment = 3] = "Segment", E[E.Polyline = 4] = "Polyline", E[E.Triangle = 5] = "Triangle", E[E.TriMesh = 6] = "TriMesh", E[E.HeightField = 7] = "HeightField", E[E.ConvexPolygon = 9] = "ConvexPolygon", E[E.RoundCuboid = 10] = "RoundCuboid", E[E.RoundTriangle = 11] = "RoundTriangle", E[E.RoundConvexPolygon = 12] = "RoundConvexPolygon", E[E.HalfSpace = 13] = "HalfSpace", E[E.Voxels = 14] = "Voxels";
4027
+ })(z || (z = {})), function(E) {
4028
+ E[E.DELETE_BAD_TOPOLOGY_TRIANGLES = 4] = "DELETE_BAD_TOPOLOGY_TRIANGLES", E[E.ORIENTED = 8] = "ORIENTED", E[E.MERGE_DUPLICATE_VERTICES = 16] = "MERGE_DUPLICATE_VERTICES", E[E.DELETE_DEGENERATE_TRIANGLES = 32] = "DELETE_DEGENERATE_TRIANGLES", E[E.DELETE_DUPLICATE_TRIANGLES = 64] = "DELETE_DUPLICATE_TRIANGLES", E[E.FIX_INTERNAL_EDGES = 144] = "FIX_INTERNAL_EDGES";
4029
4029
  }(VI || (VI = {}));
4030
4030
  class og extends $ {
4031
4031
  constructor(A) {
@@ -4152,9 +4152,9 @@ class WC {
4152
4152
  free() {
4153
4153
  this.raw && this.raw.free(), this.raw = void 0;
4154
4154
  }
4155
- step(A, I, g, C, B, E, D, o, w, K, s, k) {
4155
+ step(A, I, g, C, B, i, D, o, w, K, s, k) {
4156
4156
  let a = S.intoRaw(A);
4157
- s ? this.raw.stepWithEvents(a, I.raw, g.raw, C.raw, B.raw, E.raw, D.raw, o.raw, w.raw, K.raw, s.raw, k, k ? k.filterContactPair : null, k ? k.filterIntersectionPair : null) : this.raw.step(a, I.raw, g.raw, C.raw, B.raw, E.raw, D.raw, o.raw, w.raw, K.raw), a.free();
4157
+ s ? this.raw.stepWithEvents(a, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw, K.raw, s.raw, k, k ? k.filterContactPair : null, k ? k.filterIntersectionPair : null) : this.raw.step(a, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw, K.raw), a.free();
4158
4158
  }
4159
4159
  }
4160
4160
  class Ag {
@@ -4164,9 +4164,9 @@ class Ag {
4164
4164
  free() {
4165
4165
  this.raw && this.raw.free(), this.raw = void 0;
4166
4166
  }
4167
- serializeAll(A, I, g, C, B, E, D, o, w) {
4167
+ serializeAll(A, I, g, C, B, i, D, o, w) {
4168
4168
  let K = S.intoRaw(A);
4169
- const s = this.raw.serializeAll(K, I.raw, g.raw, C.raw, B.raw, E.raw, D.raw, o.raw, w.raw);
4169
+ const s = this.raw.serializeAll(K, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw);
4170
4170
  return K.free(), s;
4171
4171
  }
4172
4172
  deserializeAll(A) {
@@ -4185,15 +4185,15 @@ class XC {
4185
4185
  free() {
4186
4186
  this.raw && this.raw.free(), this.raw = void 0, this.vertices = void 0, this.colors = void 0;
4187
4187
  }
4188
- render(A, I, g, C, B, E, D) {
4189
- this.raw.render(A.raw, I.raw, g.raw, C.raw, B.raw, E, I.castClosure(D)), this.vertices = this.raw.vertices(), this.colors = this.raw.colors();
4188
+ render(A, I, g, C, B, i, D) {
4189
+ this.raw.render(A.raw, I.raw, g.raw, C.raw, B.raw, i, I.castClosure(D)), this.vertices = this.raw.vertices(), this.colors = this.raw.colors();
4190
4190
  }
4191
4191
  }
4192
4192
  class mC {
4193
4193
  }
4194
4194
  class vC {
4195
- constructor(A, I, g, C, B, E) {
4196
- this.params = I, this.bodies = B, this.colliders = E, this.broadPhase = g, this.narrowPhase = C, this.raw = new pQ(A), this.rawCharacterCollision = new JC(), this._applyImpulsesToDynamicBodies = !1, this._characterMass = null;
4195
+ constructor(A, I, g, C, B, i) {
4196
+ this.params = I, this.bodies = B, this.colliders = i, this.broadPhase = g, this.narrowPhase = C, this.raw = new pQ(A), this.rawCharacterCollision = new JC(), this._applyImpulsesToDynamicBodies = !1, this._characterMass = null;
4197
4197
  }
4198
4198
  free() {
4199
4199
  this.raw && (this.raw.free(), this.rawCharacterCollision.free()), this.raw = void 0, this.rawCharacterCollision = void 0;
@@ -4278,8 +4278,8 @@ class vC {
4278
4278
  return this.raw.snapToGroundEnabled();
4279
4279
  }
4280
4280
  computeColliderMovement(A, I, g, C, B) {
4281
- let E = S.intoRaw(I);
4282
- this.raw.computeColliderMovement(this.params.dt, this.broadPhase.raw, this.narrowPhase.raw, this.bodies.raw, this.colliders.raw, A.handle, E, this._applyImpulsesToDynamicBodies, this._characterMass, g, C, this.colliders.castClosure(B)), E.free();
4281
+ let i = S.intoRaw(I);
4282
+ this.raw.computeColliderMovement(this.params.dt, this.broadPhase.raw, this.narrowPhase.raw, this.bodies.raw, this.colliders.raw, A.handle, i, this._applyImpulsesToDynamicBodies, this._characterMass, g, C, this.colliders.castClosure(B)), i.free();
4283
4283
  }
4284
4284
  computedMovement() {
4285
4285
  return S.fromRaw(this.raw.computedMovement());
@@ -4298,12 +4298,12 @@ class vC {
4298
4298
  return null;
4299
4299
  }
4300
4300
  }
4301
- (function(i) {
4302
- i[i.None = 0] = "None", i[i.LinX = 1] = "LinX", i[i.LinY = 2] = "LinY", i[i.LinZ = 4] = "LinZ", i[i.AngZ = 32] = "AngZ", i[i.AllLin = 3] = "AllLin", i[i.AllAng = 32] = "AllAng", i[i.All = 35] = "All";
4301
+ (function(E) {
4302
+ E[E.None = 0] = "None", E[E.LinX = 1] = "LinX", E[E.LinY = 2] = "LinY", E[E.LinZ = 4] = "LinZ", E[E.AngZ = 32] = "AngZ", E[E.AllLin = 3] = "AllLin", E[E.AllAng = 32] = "AllAng", E[E.All = 35] = "All";
4303
4303
  })(PI || (PI = {}));
4304
4304
  class uC {
4305
- constructor(A, I, g, C, B, E) {
4306
- this.params = A, this.bodies = I, this.raw = new fQ(g, C, B, E);
4305
+ constructor(A, I, g, C, B, i) {
4306
+ this.params = A, this.bodies = I, this.raw = new fQ(g, C, B, i);
4307
4307
  }
4308
4308
  free() {
4309
4309
  this.raw && this.raw.free(), this.raw = void 0;
@@ -4331,16 +4331,16 @@ class uC {
4331
4331
  this.raw.apply_angular_correction(this.params.dt, this.bodies.raw, A.handle, I, g);
4332
4332
  }
4333
4333
  linearCorrection(A, I, g) {
4334
- let C = S.intoRaw(I), B = S.intoRaw(g), E = this.raw.linear_correction(this.params.dt, this.bodies.raw, A.handle, C, B);
4335
- return C.free(), B.free(), S.fromRaw(E);
4334
+ let C = S.intoRaw(I), B = S.intoRaw(g), i = this.raw.linear_correction(this.params.dt, this.bodies.raw, A.handle, C, B);
4335
+ return C.free(), B.free(), S.fromRaw(i);
4336
4336
  }
4337
4337
  angularCorrection(A, I, g) {
4338
4338
  return this.raw.angular_correction(this.params.dt, this.bodies.raw, A.handle, I, g);
4339
4339
  }
4340
4340
  }
4341
4341
  class UI {
4342
- constructor(A, I, g, C, B, E, D, o, w, K, s, k, a) {
4343
- this.gravity = A, this.integrationParameters = new tC(I), this.islands = new TC(g), this.broadPhase = new ZC(C), this.narrowPhase = new OC(B), this.bodies = new YC(E), this.colliders = new PC(D), this.impulseJoints = new lC(o), this.multibodyJoints = new fC(w), this.ccdSolver = new bC(K), this.physicsPipeline = new WC(s), this.serializationPipeline = new Ag(k), this.debugRenderPipeline = new XC(a), this.characterControllers = /* @__PURE__ */ new Set(), this.pidControllers = /* @__PURE__ */ new Set(), this.impulseJoints.finalizeDeserialization(this.bodies), this.bodies.finalizeDeserialization(this.colliders), this.colliders.finalizeDeserialization(this.bodies);
4342
+ constructor(A, I, g, C, B, i, D, o, w, K, s, k, a) {
4343
+ this.gravity = A, this.integrationParameters = new tC(I), this.islands = new TC(g), this.broadPhase = new ZC(C), this.narrowPhase = new OC(B), this.bodies = new YC(i), this.colliders = new PC(D), this.impulseJoints = new lC(o), this.multibodyJoints = new fC(w), this.ccdSolver = new bC(K), this.physicsPipeline = new WC(s), this.serializationPipeline = new Ag(k), this.debugRenderPipeline = new XC(a), this.characterControllers = /* @__PURE__ */ new Set(), this.pidControllers = /* @__PURE__ */ new Set(), this.impulseJoints.finalizeDeserialization(this.bodies), this.bodies.finalizeDeserialization(this.colliders), this.colliders.finalizeDeserialization(this.bodies);
4344
4344
  }
4345
4345
  free() {
4346
4346
  this.integrationParameters.free(), this.islands.free(), this.broadPhase.free(), this.narrowPhase.free(), this.bodies.free(), this.colliders.free(), this.impulseJoints.free(), this.multibodyJoints.free(), this.ccdSolver.free(), this.physicsPipeline.free(), this.serializationPipeline.free(), this.debugRenderPipeline.free(), this.characterControllers.forEach((A) => A.free()), this.pidControllers.forEach((A) => A.free()), this.integrationParameters = void 0, this.islands = void 0, this.broadPhase = void 0, this.narrowPhase = void 0, this.bodies = void 0, this.colliders = void 0, this.ccdSolver = void 0, this.impulseJoints = void 0, this.multibodyJoints = void 0, this.physicsPipeline = void 0, this.serializationPipeline = void 0, this.debugRenderPipeline = void 0, this.characterControllers = void 0, this.pidControllers = void 0;
@@ -4453,33 +4453,33 @@ class UI {
4453
4453
  forEachActiveRigidBody(A) {
4454
4454
  this.bodies.forEachActiveRigidBody(this.islands, A);
4455
4455
  }
4456
- castRay(A, I, g, C, B, E, D, o) {
4457
- return this.broadPhase.castRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, E ? E.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
4456
+ castRay(A, I, g, C, B, i, D, o) {
4457
+ return this.broadPhase.castRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
4458
4458
  }
4459
- castRayAndGetNormal(A, I, g, C, B, E, D, o) {
4460
- return this.broadPhase.castRayAndGetNormal(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, E ? E.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
4459
+ castRayAndGetNormal(A, I, g, C, B, i, D, o) {
4460
+ return this.broadPhase.castRayAndGetNormal(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
4461
4461
  }
4462
- intersectionsWithRay(A, I, g, C, B, E, D, o, w) {
4463
- this.broadPhase.intersectionsWithRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, E, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
4462
+ intersectionsWithRay(A, I, g, C, B, i, D, o, w) {
4463
+ this.broadPhase.intersectionsWithRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
4464
4464
  }
4465
- intersectionWithShape(A, I, g, C, B, E, D, o) {
4466
- let w = this.broadPhase.intersectionWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, E ? E.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
4465
+ intersectionWithShape(A, I, g, C, B, i, D, o) {
4466
+ let w = this.broadPhase.intersectionWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
4467
4467
  return w != null ? this.colliders.get(w) : null;
4468
4468
  }
4469
- projectPoint(A, I, g, C, B, E, D) {
4470
- return this.broadPhase.projectPoint(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B ? B.handle : null, E ? E.handle : null, this.colliders.castClosure(D));
4469
+ projectPoint(A, I, g, C, B, i, D) {
4470
+ return this.broadPhase.projectPoint(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B ? B.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
4471
4471
  }
4472
- projectPointAndGetFeature(A, I, g, C, B, E) {
4473
- return this.broadPhase.projectPointAndGetFeature(this.narrowPhase, this.bodies, this.colliders, A, I, g, C ? C.handle : null, B ? B.handle : null, this.colliders.castClosure(E));
4472
+ projectPointAndGetFeature(A, I, g, C, B, i) {
4473
+ return this.broadPhase.projectPointAndGetFeature(this.narrowPhase, this.bodies, this.colliders, A, I, g, C ? C.handle : null, B ? B.handle : null, this.colliders.castClosure(i));
4474
4474
  }
4475
- intersectionsWithPoint(A, I, g, C, B, E, D) {
4476
- this.broadPhase.intersectionsWithPoint(this.narrowPhase, this.bodies, this.colliders, A, this.colliders.castClosure(I), g, C, B ? B.handle : null, E ? E.handle : null, this.colliders.castClosure(D));
4475
+ intersectionsWithPoint(A, I, g, C, B, i, D) {
4476
+ this.broadPhase.intersectionsWithPoint(this.narrowPhase, this.bodies, this.colliders, A, this.colliders.castClosure(I), g, C, B ? B.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
4477
4477
  }
4478
- castShape(A, I, g, C, B, E, D, o, w, K, s, k) {
4479
- return this.broadPhase.castShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, E, D, o, w, K ? K.handle : null, s ? s.handle : null, this.colliders.castClosure(k));
4478
+ castShape(A, I, g, C, B, i, D, o, w, K, s, k) {
4479
+ return this.broadPhase.castShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i, D, o, w, K ? K.handle : null, s ? s.handle : null, this.colliders.castClosure(k));
4480
4480
  }
4481
- intersectionsWithShape(A, I, g, C, B, E, D, o, w) {
4482
- this.broadPhase.intersectionsWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, this.colliders.castClosure(C), B, E, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
4481
+ intersectionsWithShape(A, I, g, C, B, i, D, o, w) {
4482
+ this.broadPhase.intersectionsWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, this.colliders.castClosure(C), B, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
4483
4483
  }
4484
4484
  collidersWithAabbIntersectingAabb(A, I, g) {
4485
4485
  this.broadPhase.collidersWithAabbIntersectingAabb(this.narrowPhase, this.bodies, this.colliders, A, I, this.colliders.castClosure(g));
@@ -4551,8 +4551,8 @@ class UI {
4551
4551
  return this.physicsPipeline.raw.timing_user_changes();
4552
4552
  }
4553
4553
  }
4554
- (function(i) {
4555
- i[i.NONE = 0] = "NONE", i[i.COLLISION_EVENTS = 1] = "COLLISION_EVENTS", i[i.CONTACT_FORCE_EVENTS = 2] = "CONTACT_FORCE_EVENTS";
4554
+ (function(E) {
4555
+ E[E.NONE = 0] = "NONE", E[E.COLLISION_EVENTS = 1] = "COLLISION_EVENTS", E[E.CONTACT_FORCE_EVENTS = 2] = "CONTACT_FORCE_EVENTS";
4556
4556
  })(wI || (wI = {}));
4557
4557
  class VC {
4558
4558
  free() {
@@ -4597,14 +4597,14 @@ class ZQ {
4597
4597
  this.raw.clear();
4598
4598
  }
4599
4599
  }
4600
- (function(i) {
4601
- i[i.NONE = 0] = "NONE", i[i.FILTER_CONTACT_PAIRS = 1] = "FILTER_CONTACT_PAIRS", i[i.FILTER_INTERSECTION_PAIRS = 2] = "FILTER_INTERSECTION_PAIRS";
4602
- })(GI || (GI = {})), function(i) {
4603
- i[i.EMPTY = 0] = "EMPTY", i[i.COMPUTE_IMPULSE = 1] = "COMPUTE_IMPULSE";
4604
- }(zI || (zI = {})), function(i) {
4605
- i[i.EXCLUDE_FIXED = 1] = "EXCLUDE_FIXED", i[i.EXCLUDE_KINEMATIC = 2] = "EXCLUDE_KINEMATIC", i[i.EXCLUDE_DYNAMIC = 4] = "EXCLUDE_DYNAMIC", i[i.EXCLUDE_SENSORS = 8] = "EXCLUDE_SENSORS", i[i.EXCLUDE_SOLIDS = 16] = "EXCLUDE_SOLIDS", i[i.ONLY_DYNAMIC = 3] = "ONLY_DYNAMIC", i[i.ONLY_KINEMATIC = 5] = "ONLY_KINEMATIC", i[i.ONLY_FIXED = 6] = "ONLY_FIXED";
4606
- }(_I || (_I = {})), function(i) {
4607
- i[i.DYNAMIC_DYNAMIC = 1] = "DYNAMIC_DYNAMIC", i[i.DYNAMIC_KINEMATIC = 12] = "DYNAMIC_KINEMATIC", i[i.DYNAMIC_FIXED = 2] = "DYNAMIC_FIXED", i[i.KINEMATIC_KINEMATIC = 52224] = "KINEMATIC_KINEMATIC", i[i.KINEMATIC_FIXED = 8704] = "KINEMATIC_FIXED", i[i.FIXED_FIXED = 32] = "FIXED_FIXED", i[i.DEFAULT = 15] = "DEFAULT", i[i.ALL = 60943] = "ALL";
4600
+ (function(E) {
4601
+ E[E.NONE = 0] = "NONE", E[E.FILTER_CONTACT_PAIRS = 1] = "FILTER_CONTACT_PAIRS", E[E.FILTER_INTERSECTION_PAIRS = 2] = "FILTER_INTERSECTION_PAIRS";
4602
+ })(GI || (GI = {})), function(E) {
4603
+ E[E.EMPTY = 0] = "EMPTY", E[E.COMPUTE_IMPULSE = 1] = "COMPUTE_IMPULSE";
4604
+ }(zI || (zI = {})), function(E) {
4605
+ E[E.EXCLUDE_FIXED = 1] = "EXCLUDE_FIXED", E[E.EXCLUDE_KINEMATIC = 2] = "EXCLUDE_KINEMATIC", E[E.EXCLUDE_DYNAMIC = 4] = "EXCLUDE_DYNAMIC", E[E.EXCLUDE_SENSORS = 8] = "EXCLUDE_SENSORS", E[E.EXCLUDE_SOLIDS = 16] = "EXCLUDE_SOLIDS", E[E.ONLY_DYNAMIC = 3] = "ONLY_DYNAMIC", E[E.ONLY_KINEMATIC = 5] = "ONLY_KINEMATIC", E[E.ONLY_FIXED = 6] = "ONLY_FIXED";
4606
+ }(_I || (_I = {})), function(E) {
4607
+ E[E.DYNAMIC_DYNAMIC = 1] = "DYNAMIC_DYNAMIC", E[E.DYNAMIC_KINEMATIC = 12] = "DYNAMIC_KINEMATIC", E[E.DYNAMIC_FIXED = 2] = "DYNAMIC_FIXED", E[E.KINEMATIC_KINEMATIC = 52224] = "KINEMATIC_KINEMATIC", E[E.KINEMATIC_FIXED = 8704] = "KINEMATIC_FIXED", E[E.FIXED_FIXED = 32] = "FIXED_FIXED", E[E.DEFAULT = 15] = "DEFAULT", E[E.ALL = 60943] = "ALL";
4608
4608
  }(hI || (hI = {}));
4609
4609
  class Ig {
4610
4610
  constructor(A, I, g, C) {
@@ -4808,47 +4808,47 @@ class Ig {
4808
4808
  return I.free(), g;
4809
4809
  }
4810
4810
  projectPoint(A, I) {
4811
- let g = S.intoRaw(A), C = $A.fromRaw(this.colliderSet.raw.coProjectPoint(this.handle, g, I));
4811
+ let g = S.intoRaw(A), C = AI.fromRaw(this.colliderSet.raw.coProjectPoint(this.handle, g, I));
4812
4812
  return g.free(), C;
4813
4813
  }
4814
4814
  intersectsRay(A, I) {
4815
4815
  let g = S.intoRaw(A.origin), C = S.intoRaw(A.dir), B = this.colliderSet.raw.coIntersectsRay(this.handle, g, C, I);
4816
4816
  return g.free(), C.free(), B;
4817
4817
  }
4818
- castShape(A, I, g, C, B, E, D, o) {
4819
- let w = S.intoRaw(A), K = S.intoRaw(g), s = f.intoRaw(C), k = S.intoRaw(B), a = I.intoRaw(), R = pA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, a, K, s, k, E, D, o));
4818
+ castShape(A, I, g, C, B, i, D, o) {
4819
+ let w = S.intoRaw(A), K = S.intoRaw(g), s = f.intoRaw(C), k = S.intoRaw(B), a = I.intoRaw(), R = pA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, a, K, s, k, i, D, o));
4820
4820
  return w.free(), K.free(), s.free(), k.free(), a.free(), R;
4821
4821
  }
4822
- castCollider(A, I, g, C, B, E) {
4823
- let D = S.intoRaw(A), o = S.intoRaw(g), w = AI.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, D, I.handle, o, C, B, E));
4822
+ castCollider(A, I, g, C, B, i) {
4823
+ let D = S.intoRaw(A), o = S.intoRaw(g), w = II.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, D, I.handle, o, C, B, i));
4824
4824
  return D.free(), o.free(), w;
4825
4825
  }
4826
4826
  intersectsShape(A, I, g) {
4827
- let C = S.intoRaw(I), B = f.intoRaw(g), E = A.intoRaw(), D = this.colliderSet.raw.coIntersectsShape(this.handle, E, C, B);
4828
- return C.free(), B.free(), E.free(), D;
4827
+ let C = S.intoRaw(I), B = f.intoRaw(g), i = A.intoRaw(), D = this.colliderSet.raw.coIntersectsShape(this.handle, i, C, B);
4828
+ return C.free(), B.free(), i.free(), D;
4829
4829
  }
4830
4830
  contactShape(A, I, g, C) {
4831
- let B = S.intoRaw(I), E = f.intoRaw(g), D = A.intoRaw(), o = nA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, D, B, E, C));
4832
- return B.free(), E.free(), D.free(), o;
4831
+ let B = S.intoRaw(I), i = f.intoRaw(g), D = A.intoRaw(), o = nA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, D, B, i, C));
4832
+ return B.free(), i.free(), D.free(), o;
4833
4833
  }
4834
4834
  contactCollider(A, I) {
4835
4835
  return nA.fromRaw(this.colliderSet.raw.coContactCollider(this.handle, A.handle, I));
4836
4836
  }
4837
4837
  castRay(A, I, g) {
4838
- let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), E = this.colliderSet.raw.coCastRay(this.handle, C, B, I, g);
4839
- return C.free(), B.free(), E;
4838
+ let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), i = this.colliderSet.raw.coCastRay(this.handle, C, B, I, g);
4839
+ return C.free(), B.free(), i;
4840
4840
  }
4841
4841
  castRayAndGetNormal(A, I, g) {
4842
- let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), E = _A.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, B, I, g));
4843
- return C.free(), B.free(), E;
4842
+ let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), i = $A.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, B, I, g));
4843
+ return C.free(), B.free(), i;
4844
4844
  }
4845
4845
  }
4846
- (function(i) {
4847
- i[i.Density = 0] = "Density", i[i.Mass = 1] = "Mass", i[i.MassProps = 2] = "MassProps";
4846
+ (function(E) {
4847
+ E[E.Density = 0] = "Density", E[E.Mass = 1] = "Mass", E[E.MassProps = 2] = "MassProps";
4848
4848
  })(tA || (tA = {}));
4849
4849
  class V {
4850
4850
  constructor(A) {
4851
- this.enabled = !0, this.shape = A, this.massPropsMode = tA.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = f.identity(), this.translation = S.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = VA.Average, this.restitutionCombineRule = VA.Average, this.activeCollisionTypes = hI.DEFAULT, this.activeEvents = wI.NONE, this.activeHooks = GI.NONE, this.mass = 0, this.centerOfMass = S.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0;
4851
+ this.enabled = !0, this.shape = A, this.massPropsMode = tA.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = f.identity(), this.translation = S.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = PA.Average, this.restitutionCombineRule = PA.Average, this.activeCollisionTypes = hI.DEFAULT, this.activeEvents = wI.NONE, this.activeHooks = GI.NONE, this.mass = 0, this.centerOfMass = S.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0;
4852
4852
  }
4853
4853
  static ball(A) {
4854
4854
  const I = new og(A);
@@ -4988,8 +4988,8 @@ class PC {
4988
4988
  createCollider(A, I, g) {
4989
4989
  let C = g != null && g != null;
4990
4990
  if (C && isNaN(g)) throw Error("Cannot create a collider with a parent rigid-body handle that is not a number.");
4991
- let B = I.shape.intoRaw(), E = S.intoRaw(I.translation), D = f.intoRaw(I.rotation), o = S.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, B, E, D, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, C, C ? g : 0, A.raw);
4992
- B.free(), E.free(), D.free(), o.free();
4991
+ let B = I.shape.intoRaw(), i = S.intoRaw(I.translation), D = f.intoRaw(I.rotation), o = S.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, B, i, D, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, C, C ? g : 0, A.raw);
4992
+ B.free(), i.free(), D.free(), o.free();
4993
4993
  let K = C ? A.get(g) : null, s = new Ig(this, w, K, I.shape);
4994
4994
  return this.map.set(w, s), s;
4995
4995
  }
@@ -5015,9 +5015,9 @@ class PC {
5015
5015
  return this.map.getAll();
5016
5016
  }
5017
5017
  }
5018
- function OQ(i, A, I, g) {
5018
+ function OQ(E, A, I, g) {
5019
5019
  return new (I || (I = Promise))(function(C, B) {
5020
- function E(w) {
5020
+ function i(w) {
5021
5021
  try {
5022
5022
  o(g.next(w));
5023
5023
  } catch (K) {
@@ -5035,32 +5035,32 @@ function OQ(i, A, I, g) {
5035
5035
  var K;
5036
5036
  w.done ? C(w.value) : (K = w.value, K instanceof I ? K : new I(function(s) {
5037
5037
  s(K);
5038
- })).then(E, D);
5038
+ })).then(i, D);
5039
5039
  }
5040
- o((g = g.apply(i, [])).next());
5040
+ o((g = g.apply(E, [])).next());
5041
5041
  });
5042
5042
  }
5043
- for (var jQ = { byteLength: function(i) {
5044
- var A = kC(i), I = A[0], g = A[1];
5043
+ for (var jQ = { byteLength: function(E) {
5044
+ var A = kC(E), I = A[0], g = A[1];
5045
5045
  return 3 * (I + g) / 4 - g;
5046
- }, toByteArray: function(i) {
5047
- var A, I, g = kC(i), C = g[0], B = g[1], E = new WQ(function(w, K, s) {
5046
+ }, toByteArray: function(E) {
5047
+ var A, I, g = kC(E), C = g[0], B = g[1], i = new WQ(function(w, K, s) {
5048
5048
  return 3 * (K + s) / 4 - s;
5049
5049
  }(0, C, B)), D = 0, o = B > 0 ? C - 4 : C;
5050
- for (I = 0; I < o; I += 4) A = wA[i.charCodeAt(I)] << 18 | wA[i.charCodeAt(I + 1)] << 12 | wA[i.charCodeAt(I + 2)] << 6 | wA[i.charCodeAt(I + 3)], E[D++] = A >> 16 & 255, E[D++] = A >> 8 & 255, E[D++] = 255 & A;
5051
- return B === 2 && (A = wA[i.charCodeAt(I)] << 2 | wA[i.charCodeAt(I + 1)] >> 4, E[D++] = 255 & A), B === 1 && (A = wA[i.charCodeAt(I)] << 10 | wA[i.charCodeAt(I + 1)] << 4 | wA[i.charCodeAt(I + 2)] >> 2, E[D++] = A >> 8 & 255, E[D++] = 255 & A), E;
5052
- }, fromByteArray: function(i) {
5053
- for (var A, I = i.length, g = I % 3, C = [], B = 16383, E = 0, D = I - g; E < D; E += B) C.push(XQ(i, E, E + B > D ? D : E + B));
5054
- return g === 1 ? (A = i[I - 1], C.push(KA[A >> 2] + KA[A << 4 & 63] + "==")) : g === 2 && (A = (i[I - 2] << 8) + i[I - 1], C.push(KA[A >> 10] + KA[A >> 4 & 63] + KA[A << 2 & 63] + "=")), C.join("");
5050
+ for (I = 0; I < o; I += 4) A = wA[E.charCodeAt(I)] << 18 | wA[E.charCodeAt(I + 1)] << 12 | wA[E.charCodeAt(I + 2)] << 6 | wA[E.charCodeAt(I + 3)], i[D++] = A >> 16 & 255, i[D++] = A >> 8 & 255, i[D++] = 255 & A;
5051
+ return B === 2 && (A = wA[E.charCodeAt(I)] << 2 | wA[E.charCodeAt(I + 1)] >> 4, i[D++] = 255 & A), B === 1 && (A = wA[E.charCodeAt(I)] << 10 | wA[E.charCodeAt(I + 1)] << 4 | wA[E.charCodeAt(I + 2)] >> 2, i[D++] = A >> 8 & 255, i[D++] = 255 & A), i;
5052
+ }, fromByteArray: function(E) {
5053
+ for (var A, I = E.length, g = I % 3, C = [], B = 16383, i = 0, D = I - g; i < D; i += B) C.push(XQ(E, i, i + B > D ? D : i + B));
5054
+ return g === 1 ? (A = E[I - 1], C.push(KA[A >> 2] + KA[A << 4 & 63] + "==")) : g === 2 && (A = (E[I - 2] << 8) + E[I - 1], C.push(KA[A >> 10] + KA[A >> 4 & 63] + KA[A << 2 & 63] + "=")), C.join("");
5055
5055
  } }, KA = [], wA = [], WQ = typeof Uint8Array < "u" ? Uint8Array : Array, WI = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", HA = 0, xQ = WI.length; HA < xQ; ++HA) KA[HA] = WI[HA], wA[WI.charCodeAt(HA)] = HA;
5056
- function kC(i) {
5057
- var A = i.length;
5056
+ function kC(E) {
5057
+ var A = E.length;
5058
5058
  if (A % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
5059
- var I = i.indexOf("=");
5059
+ var I = E.indexOf("=");
5060
5060
  return I === -1 && (I = A), [I, I === A ? 0 : 4 - I % 4];
5061
5061
  }
5062
- function XQ(i, A, I) {
5063
- for (var g, C, B = [], E = A; E < I; E += 3) g = (i[E] << 16 & 16711680) + (i[E + 1] << 8 & 65280) + (255 & i[E + 2]), B.push(KA[(C = g) >> 18 & 63] + KA[C >> 12 & 63] + KA[C >> 6 & 63] + KA[63 & C]);
5062
+ function XQ(E, A, I) {
5063
+ for (var g, C, B = [], i = A; i < I; i += 3) g = (E[i] << 16 & 16711680) + (E[i + 1] << 8 & 65280) + (255 & E[i + 2]), B.push(KA[(C = g) >> 18 & 63] + KA[C >> 12 & 63] + KA[C >> 6 & 63] + KA[63 & C]);
5064
5064
  return B.join("");
5065
5065
  }
5066
5066
  function mQ() {
@@ -5070,20 +5070,20 @@ function mQ() {
5070
5070
  }
5071
5071
  function vQ() {
5072
5072
  return function() {
5073
- let i, A;
5073
+ let E, A;
5074
5074
  try {
5075
5075
  const C = Q.__wbindgen_add_to_stack_pointer(-16);
5076
5076
  Q.version(C);
5077
5077
  var I = P().getInt32(C + 0, !0), g = P().getInt32(C + 4, !0);
5078
- return i = I, A = g, XI(I, g);
5078
+ return E = I, A = g, XI(I, g);
5079
5079
  } finally {
5080
- Q.__wbindgen_add_to_stack_pointer(16), Q.__wbindgen_export_1(i, A, 1);
5080
+ Q.__wbindgen_add_to_stack_pointer(16), Q.__wbindgen_export_1(E, A, 1);
5081
5081
  }
5082
5082
  }();
5083
5083
  }
5084
- function uQ(i) {
5084
+ function uQ(E) {
5085
5085
  var A;
5086
- A = i, Q.reserve_memory(A);
5086
+ A = E, Q.reserve_memory(A);
5087
5087
  }
5088
5088
  wA[45] = 62, wA[95] = 63;
5089
5089
  var QA = Object.freeze({ __proto__: null, version: vQ, reserveMemory: uQ, Vector2: cC, VectorOps: S, RotationOps: f, get RigidBodyType() {
@@ -5095,7 +5095,7 @@ var QA = Object.freeze({ __proto__: null, version: vQ, reserveMemory: uQ, Vector
5095
5095
  }, get JointAxesMask() {
5096
5096
  return uI;
5097
5097
  }, ImpulseJoint: kA, UnitImpulseJoint: ig, FixedImpulseJoint: LC, RopeImpulseJoint: rC, SpringImpulseJoint: qC, PrismaticImpulseJoint: eC, RevoluteImpulseJoint: HC, JointData: YA, ImpulseJointSet: lC, MultibodyJoint: rA, UnitMultibodyJoint: Dg, FixedMultibodyJoint: nC, PrismaticMultibodyJoint: pC, RevoluteMultibodyJoint: dC, MultibodyJointSet: fC, get CoefficientCombineRule() {
5098
- return VA;
5098
+ return PA;
5099
5099
  }, CCDSolver: bC, IslandManager: TC, BroadPhase: ZC, NarrowPhase: OC, TempContactManifold: jC, Shape: $, get ShapeType() {
5100
5100
  return z;
5101
5101
  }, get TriMeshFlags() {
@@ -5106,7 +5106,7 @@ var QA = Object.freeze({ __proto__: null, version: vQ, reserveMemory: uQ, Vector
5106
5106
  return tA;
5107
5107
  }, ColliderDesc: V, ColliderSet: PC, get FeatureType() {
5108
5108
  return lA;
5109
- }, Ray: TQ, RayIntersection: _A, RayColliderIntersection: PA, RayColliderHit: JI, PointProjection: $A, PointColliderProjection: zA, ShapeCastHit: pA, ColliderShapeCastHit: AI, ShapeContact: nA, World: UI, PhysicsPipeline: WC, SerializationPipeline: Ag, get ActiveEvents() {
5109
+ }, Ray: TQ, RayIntersection: $A, RayColliderIntersection: zA, RayColliderHit: JI, PointProjection: AI, PointColliderProjection: _A, ShapeCastHit: pA, ColliderShapeCastHit: II, ShapeContact: nA, World: UI, PhysicsPipeline: WC, SerializationPipeline: Ag, get ActiveEvents() {
5110
5110
  return wI;
5111
5111
  }, TempContactForceEvent: VC, EventQueue: ZQ, get ActiveHooks() {
5112
5112
  return GI;
@@ -5169,8 +5169,8 @@ class VQ {
5169
5169
  if (A.friction !== void 0 && C.setFriction(A.friction), A.restitution !== void 0 && C.setRestitution(A.restitution), A.density !== void 0)
5170
5170
  C.setDensity(A.density);
5171
5171
  else if (A.mass !== void 0 && !A.isStatic) {
5172
- const E = A.width * A.height;
5173
- C.setDensity(A.mass / E);
5172
+ const i = A.width * A.height;
5173
+ C.setDensity(A.mass / i);
5174
5174
  }
5175
5175
  A.isSensor && C.setSensor(!0);
5176
5176
  const B = this.world.createCollider(C, g);
@@ -5289,17 +5289,17 @@ class PQ {
5289
5289
  this.physicsEngine && ((g = this.artboard) == null || g.objects.forEach((C) => {
5290
5290
  var B;
5291
5291
  if ((B = C.physics) != null && B.enabled && C.type === "Shape") {
5292
- const E = this.objectStates.get(C.id);
5293
- if (!E) return;
5292
+ const i = this.objectStates.get(C.id);
5293
+ if (!i) return;
5294
5294
  const D = C.geometry.width || 100, o = C.geometry.height || 100;
5295
5295
  this.physicsEngine.createBody({
5296
5296
  id: C.id,
5297
5297
  type: C.geometry.type,
5298
- x: E.x,
5299
- y: E.y,
5298
+ x: i.x,
5299
+ y: i.y,
5300
5300
  width: D,
5301
5301
  height: o,
5302
- rotation: E.rotation * (Math.PI / 180),
5302
+ rotation: i.rotation * (Math.PI / 180),
5303
5303
  // Convert deg to rad
5304
5304
  isStatic: C.physics.bodyType === "Static",
5305
5305
  mass: C.physics.mass,
@@ -5324,7 +5324,7 @@ class PQ {
5324
5324
  const I = this.artboard.animations.find((g) => g.name === "onLoad");
5325
5325
  I && this.layerStates.set("intro", {
5326
5326
  currentStateIds: ["onLoad"],
5327
- animations: [{ animation: I, state: null }],
5327
+ animations: [{ animation: I, state: { loop: !0 } }],
5328
5328
  time: 0,
5329
5329
  duration: I.duration
5330
5330
  });
@@ -5338,10 +5338,10 @@ class PQ {
5338
5338
  const C = [];
5339
5339
  let B = 0;
5340
5340
  if (this.artboard && this.activeStateMachine) {
5341
- const E = this.activeStateMachine.layers.find((D) => D.name === A);
5342
- if (E)
5341
+ const i = this.activeStateMachine.layers.find((D) => D.name === A);
5342
+ if (i)
5343
5343
  for (const D of I) {
5344
- const o = E.states.find((w) => w.id === D);
5344
+ const o = i.states.find((w) => w.id === D);
5345
5345
  if (o) {
5346
5346
  let w = null;
5347
5347
  o.animationId && (w = this.artboard.animations.find((K) => K.id === o.animationId) || null), w || (w = this.artboard.animations.find((K) => K.name === o.name || K.id === o.name || o.name === "Entry" && K.name === "Rotate") || null), w && (C.push({ animation: w, state: o }), B = Math.max(B, w.duration));
@@ -5372,10 +5372,10 @@ class PQ {
5372
5372
  this.updateInput(A, I);
5373
5373
  }
5374
5374
  updateInput(A, I) {
5375
- var E, D;
5375
+ var i, D;
5376
5376
  let g;
5377
5377
  if (this.inputs.has(A)) {
5378
- const o = (E = this.activeStateMachine) == null ? void 0 : E.inputs.find((w) => w.id === A);
5378
+ const o = (i = this.activeStateMachine) == null ? void 0 : i.inputs.find((w) => w.id === A);
5379
5379
  o && typeof o.value == "object" && (g = o.value.type);
5380
5380
  } else {
5381
5381
  const o = this.inputNameMap.get(A);
@@ -5396,10 +5396,10 @@ class PQ {
5396
5396
  const g = [];
5397
5397
  let C = !1;
5398
5398
  for (const B of I.currentStateIds) {
5399
- const E = A.states.find((o) => o.id === B);
5400
- if (!E) continue;
5399
+ const i = A.states.find((o) => o.id === B);
5400
+ if (!i) continue;
5401
5401
  let D = !1;
5402
- for (const o of E.transitions)
5402
+ for (const o of i.transitions)
5403
5403
  this.checkConditions(o.conditions) && (g.push(o.targetStateId), D = !0, C = !0, o.conditions && o.conditions.forEach((w) => {
5404
5404
  var s;
5405
5405
  const K = (s = this.activeStateMachine) == null ? void 0 : s.inputs.find((k) => k.id === w.inputId);
@@ -5412,10 +5412,10 @@ class PQ {
5412
5412
  }
5413
5413
  if (!C) {
5414
5414
  const B = this.findGlobalTransition(A, I.currentStateIds);
5415
- B && (g.length = 0, g.push(B.targetStateId), C = !0, B.conditions && B.conditions.forEach((E) => {
5415
+ B && (g.length = 0, g.push(B.targetStateId), C = !0, B.conditions && B.conditions.forEach((i) => {
5416
5416
  var o;
5417
- const D = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((w) => w.id === E.inputId);
5418
- if (D && typeof D.value == "object" && D.value.type === "Number" && (this.setInternalInput(E.inputId, 0), this.inputNameMap.has(D.name))) {
5417
+ const D = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((w) => w.id === i.inputId);
5418
+ if (D && typeof D.value == "object" && D.value.type === "Number" && (this.setInternalInput(i.inputId, 0), this.inputNameMap.has(D.name))) {
5419
5419
  const w = this.inputNameMap.get(D.name);
5420
5420
  w == null || w.forEach((K) => this.setInternalInput(K, 0));
5421
5421
  }
@@ -5452,34 +5452,34 @@ class PQ {
5452
5452
  }
5453
5453
  checkConditions(A) {
5454
5454
  return !A || A.length === 0 ? !0 : A.every((I) => {
5455
- const g = I.inputId, C = I.op, B = I.value, E = this.evaluateLogicTree(g);
5456
- if (E === void 0)
5455
+ const g = I.inputId, C = I.op, B = I.value, i = this.evaluateLogicTree(g);
5456
+ if (i === void 0)
5457
5457
  return console.log(`[Engine] Condition Check Failed: Input ${g} is undefined`), !1;
5458
5458
  let D = !1;
5459
5459
  switch (C) {
5460
5460
  case "Equal":
5461
- D = E == B;
5461
+ D = i == B;
5462
5462
  break;
5463
5463
  case "NotEqual":
5464
- D = E != B;
5464
+ D = i != B;
5465
5465
  break;
5466
5466
  case "GreaterThan":
5467
- D = E > B;
5467
+ D = i > B;
5468
5468
  break;
5469
5469
  case "LessThan":
5470
- D = E < B;
5470
+ D = i < B;
5471
5471
  break;
5472
5472
  case "GreaterEqual":
5473
- D = E >= B;
5473
+ D = i >= B;
5474
5474
  break;
5475
5475
  case "LessEqual":
5476
- D = E <= B;
5476
+ D = i <= B;
5477
5477
  break;
5478
5478
  case "IsTrue":
5479
- D = E === !0;
5479
+ D = i === !0;
5480
5480
  break;
5481
5481
  case "IsFalse":
5482
- D = E === !1;
5482
+ D = i === !1;
5483
5483
  break;
5484
5484
  default:
5485
5485
  D = !1;
@@ -5488,23 +5488,23 @@ class PQ {
5488
5488
  });
5489
5489
  }
5490
5490
  evaluateLogicTree(A, I, g = /* @__PURE__ */ new Set()) {
5491
- var E, D, o;
5491
+ var i, D, o;
5492
5492
  if (g.has(A)) return !1;
5493
5493
  g.add(A);
5494
- const C = (D = (E = this.activeStateMachine) == null ? void 0 : E.logicNodes) == null ? void 0 : D.find((w) => w.id === A);
5494
+ const C = (D = (i = this.activeStateMachine) == null ? void 0 : i.logicNodes) == null ? void 0 : D.find((w) => w.id === A);
5495
5495
  if (C) {
5496
5496
  const w = (K, s) => {
5497
5497
  const k = C.inputs.find((a) => a.id === K);
5498
5498
  return k ? k.sourceId ? this.evaluateLogicTree(k.sourceId, k.sourceHandleId, g) : k.value !== void 0 ? k.value : s : s;
5499
5499
  };
5500
5500
  switch (C.op) {
5501
- case jA.AND:
5501
+ case WA.AND:
5502
5502
  return w("a", !1) && w("b", !1);
5503
- case jA.OR:
5503
+ case WA.OR:
5504
5504
  return w("a", !1) || w("b", !1);
5505
- case jA.NOT:
5505
+ case WA.NOT:
5506
5506
  return !w("in", !1);
5507
- case jA.XOR:
5507
+ case WA.XOR:
5508
5508
  return !!w("a", !1) != !!w("b", !1);
5509
5509
  default:
5510
5510
  return 0;
@@ -5530,8 +5530,8 @@ class PQ {
5530
5530
  this.artboard && (this.physicsEngine && (this.physicsEngine.step(A), this.artboard.objects.forEach((I) => {
5531
5531
  var g;
5532
5532
  if ((g = I.physics) != null && g.enabled) {
5533
- const C = this.physicsEngine.getPosition(I.id), B = this.physicsEngine.getRotation(I.id), E = this.objectStates.get(I.id);
5534
- E && C !== null && (E.x = C.x, E.y = C.y), E && B !== null && (E.rotation = B * (180 / Math.PI));
5533
+ const C = this.physicsEngine.getPosition(I.id), B = this.physicsEngine.getRotation(I.id), i = this.objectStates.get(I.id);
5534
+ i && C !== null && (i.x = C.x, i.y = C.y), i && B !== null && (i.rotation = B * (180 / Math.PI));
5535
5535
  }
5536
5536
  })), this.activeStateMachine && (this.evaluateTransitions(), this.layerStates.forEach((I) => {
5537
5537
  I.animations.length > 0 && (I.time += A, I.time > I.duration && (I.animations.some((C) => {
@@ -5541,9 +5541,9 @@ class PQ {
5541
5541
  this.applyAnimation(g.animation, I.time);
5542
5542
  }));
5543
5543
  })), this.activeTriggers.forEach((I, g) => {
5544
- var C, B, E, D, o, w, K;
5544
+ var C, B, i, D, o, w, K;
5545
5545
  if (I.phase === "entry")
5546
- I.time += A, I.time >= I.animation.duration && ((E = (B = (C = this.artboard) == null ? void 0 : C.objects.find((s) => s.id === g)) == null ? void 0 : B.triggers) == null || E.find((s) => s.id === I.triggerId), I.phase = "hold", I.elapsedHold = 0, I.time = I.animation.duration), this.applyAnimation(I.animation, I.time);
5546
+ I.time += A, I.time >= I.animation.duration && ((i = (B = (C = this.artboard) == null ? void 0 : C.objects.find((s) => s.id === g)) == null ? void 0 : B.triggers) == null || i.find((s) => s.id === I.triggerId), I.phase = "hold", I.elapsedHold = 0, I.time = I.animation.duration), this.applyAnimation(I.animation, I.time);
5547
5547
  else if (I.phase === "hold") {
5548
5548
  const s = (w = (o = (D = this.artboard) == null ? void 0 : D.objects.find((a) => a.id === g)) == null ? void 0 : o.triggers) == null ? void 0 : w.find((a) => a.id === I.triggerId), k = (s == null ? void 0 : s.duration) || 0;
5549
5549
  if (I.elapsedHold += A * 1e3, I.elapsedHold >= k)
@@ -5557,21 +5557,21 @@ class PQ {
5557
5557
  }
5558
5558
  handlePointerInput(A, I, g, C, B) {
5559
5559
  if (!this.artboard) return;
5560
- const E = this.calculateTransform(
5560
+ const i = this.calculateTransform(
5561
5561
  C,
5562
5562
  B,
5563
5563
  this.artboard.width,
5564
5564
  this.artboard.height,
5565
5565
  this.layout.fit,
5566
5566
  this.layout.alignment
5567
- ), D = (I - E.tx) / E.scaleX - this.artboard.width / 2, o = (g - E.ty) / E.scaleY - this.artboard.height / 2;
5567
+ ), D = (I - i.tx) / i.scaleX - this.artboard.width / 2, o = (g - i.ty) / i.scaleY - this.artboard.height / 2;
5568
5568
  this.handlePointerEvent(A, D, o);
5569
5569
  }
5570
5570
  handlePointerEvent(A, I, g) {
5571
5571
  if (!this.artboard) return;
5572
5572
  let C = null;
5573
- for (let E = this.artboard.objects.length - 1; E >= 0; E--) {
5574
- const D = this.artboard.objects[E];
5573
+ for (let i = this.artboard.objects.length - 1; i >= 0; i--) {
5574
+ const D = this.artboard.objects[i];
5575
5575
  if (this.hitTest(D, I, g)) {
5576
5576
  C = D;
5577
5577
  break;
@@ -5583,8 +5583,8 @@ class PQ {
5583
5583
  return;
5584
5584
  }
5585
5585
  if (C) {
5586
- let E = A;
5587
- A === "click" ? E = "onClick" : A === "down" ? E = "onPointerDown" : A === "up" ? E = "onPointerUp" : A === "blur" && (E = "onPointerLeave"), this.fireEventForObject(C.id, E);
5586
+ let i = A;
5587
+ A === "click" ? i = "onClick" : A === "down" ? i = "onPointerDown" : A === "up" ? i = "onPointerUp" : A === "blur" && (i = "onPointerLeave"), this.fireEventForObject(C.id, i);
5588
5588
  }
5589
5589
  }
5590
5590
  fireEventForObject(A, I) {
@@ -5594,8 +5594,8 @@ class PQ {
5594
5594
  console.log(`[Engine] Firing event ${I} on ${g.name}`);
5595
5595
  const C = /* @__PURE__ */ new Set([I]);
5596
5596
  I === "onPointerEnter" && C.add("hover"), I === "onPointerLeave" && C.add("blur"), I === "onPointerDown" && C.add("pointerDown"), I === "onPointerUp" && C.add("pointerUp");
5597
- const E = (g.interactions || []).find((w) => C.has(w.event));
5598
- E && (console.log(`[Engine] Interaction matched: ${I} (as ${E.event}) -> ${E.targetInputId}`), E.action === "setInput" ? this.updateInput(E.targetInputId, E.value) : E.action === "fireTrigger" && this.updateInput(E.targetInputId, !0));
5597
+ const i = (g.interactions || []).find((w) => C.has(w.event));
5598
+ i && (console.log(`[Engine] Interaction matched: ${I} (as ${i.event}) -> ${i.targetInputId}`), i.action === "setInput" ? this.updateInput(i.targetInputId, i.value) : i.action === "fireTrigger" && this.updateInput(i.targetInputId, !0));
5599
5599
  const o = (g.triggers || []).find((w) => C.has(w.eventType));
5600
5600
  if (o && o.entryAnimationId) {
5601
5601
  console.log(`[Engine] Trigger matched: ${I} (as ${o.eventType}) -> Animation ${o.entryAnimationId}`);
@@ -5612,8 +5612,8 @@ class PQ {
5612
5612
  hitTest(A, I, g) {
5613
5613
  const C = this.objectStates.get(A.id);
5614
5614
  if (!C) return !1;
5615
- const B = A.geometry.width || 100, E = A.geometry.height || 100, D = I - C.x, o = g - C.y;
5616
- return Math.abs(D) <= B / 2 && Math.abs(o) <= E / 2;
5615
+ const B = A.geometry.width || 100, i = A.geometry.height || 100, D = I - C.x, o = g - C.y;
5616
+ return Math.abs(D) <= B / 2 && Math.abs(o) <= i / 2;
5617
5617
  }
5618
5618
  applyAnimation(A, I) {
5619
5619
  A.tracks.forEach((g) => {
@@ -5621,17 +5621,17 @@ class PQ {
5621
5621
  const C = (o = this.artboard) == null ? void 0 : o.objects.find((s) => s.id === g.object_id);
5622
5622
  if (((w = C == null ? void 0 : C.physics) == null ? void 0 : w.enabled) && C.physics.bodyType !== "Static" && (["x", "y", "rotation"].includes(g.property) || g.property.startsWith("transform.")))
5623
5623
  return;
5624
- const E = this.objectStates.get(g.object_id);
5625
- if (!E) return;
5624
+ const i = this.objectStates.get(g.object_id);
5625
+ if (!i) return;
5626
5626
  const D = this.interpolate(g.keyframes, I);
5627
5627
  if (g.property.includes(".")) {
5628
5628
  const s = g.property.split(".");
5629
- let k = E;
5629
+ let k = i;
5630
5630
  for (let a = 0; a < s.length - 1; a++)
5631
5631
  k[s[a]] || (k[s[a]] = {}), k = k[s[a]];
5632
5632
  s.includes("shadow") && s.includes("color"), k[s[s.length - 1]] = D;
5633
5633
  } else
5634
- E[g.property] = D;
5634
+ i[g.property] = D;
5635
5635
  if (this.physicsEngine && ((K = C == null ? void 0 : C.physics) != null && K.enabled) && C.physics.bodyType === "Static")
5636
5636
  if (g.property === "x" || g.property === "transform.x") {
5637
5637
  const s = this.physicsEngine.getPosition(g.object_id);
@@ -5652,8 +5652,8 @@ class PQ {
5652
5652
  g = A[D], C = A[D + 1];
5653
5653
  break;
5654
5654
  }
5655
- const B = C.time - g.time, E = (I - g.time) / B;
5656
- return typeof g.value == "string" && g.value.startsWith("#") ? this.interpolateColor(g.value, C.value, E) : g.value + (C.value - g.value) * E;
5655
+ const B = C.time - g.time, i = (I - g.time) / B;
5656
+ return typeof g.value == "string" && g.value.startsWith("#") ? this.interpolateColor(g.value, C.value, i) : g.value + (C.value - g.value) * i;
5657
5657
  }
5658
5658
  interpolateColor(A, I, g) {
5659
5659
  const C = (s) => {
@@ -5663,7 +5663,7 @@ class PQ {
5663
5663
  g: parseInt(k.substring(2, 4), 16),
5664
5664
  b: parseInt(k.substring(4, 6), 16)
5665
5665
  };
5666
- }, B = C(A), E = C(I), D = Math.round(B.r + (E.r - B.r) * g), o = Math.round(B.g + (E.g - B.g) * g), w = Math.round(B.b + (E.b - B.b) * g), K = (s) => {
5666
+ }, B = C(A), i = C(I), D = Math.round(B.r + (i.r - B.r) * g), o = Math.round(B.g + (i.g - B.g) * g), w = Math.round(B.b + (i.b - B.b) * g), K = (s) => {
5667
5667
  const k = Math.max(0, Math.min(255, s)).toString(16);
5668
5668
  return k.length === 1 ? "0" + k : k;
5669
5669
  };
@@ -5673,7 +5673,7 @@ class PQ {
5673
5673
  if (!this.artboard)
5674
5674
  return;
5675
5675
  A.clearRect(0, 0, I, g);
5676
- const C = this.artboard.width, B = this.artboard.height, E = this.calculateTransform(
5676
+ const C = this.artboard.width, B = this.artboard.height, i = this.calculateTransform(
5677
5677
  I,
5678
5678
  g,
5679
5679
  C,
@@ -5681,11 +5681,11 @@ class PQ {
5681
5681
  this.layout.fit,
5682
5682
  this.layout.alignment
5683
5683
  );
5684
- A.save(), A.translate(E.tx, E.ty), A.scale(E.scaleX, E.scaleY), A.translate(C / 2, B / 2), A.fillStyle = this.artboard.backgroundColor || "#000000", A.fillRect(-C / 2, -B / 2, C, B), A.beginPath(), A.rect(-C / 2, -B / 2, C, B), A.clip(), this.artboard.objects.forEach((D) => {
5684
+ A.save(), A.translate(i.tx, i.ty), A.scale(i.scaleX, i.scaleY), A.translate(C / 2, B / 2), A.fillStyle = this.artboard.backgroundColor || "#000000", A.fillRect(-C / 2, -B / 2, C, B), A.beginPath(), A.rect(-C / 2, -B / 2, C, B), A.clip(), this.artboard.objects.forEach((D) => {
5685
5685
  this.renderObject(A, D);
5686
5686
  }), A.restore();
5687
5687
  }
5688
- calculateTransform(A, I, g, C, B, E) {
5688
+ calculateTransform(A, I, g, C, B, i) {
5689
5689
  let D = 1, o = 1, w = 1;
5690
5690
  const K = g / C, s = A / I;
5691
5691
  switch (B) {
@@ -5716,7 +5716,7 @@ class PQ {
5716
5716
  }
5717
5717
  const k = g * D, a = C * o;
5718
5718
  let R = 0, J = 0;
5719
- return E.includes("Left") ? R = 0 : E.includes("Right") ? R = A - k : R = (A - k) / 2, E.includes("Top") ? J = 0 : E.includes("Bottom") ? J = I - a : J = (I - a) / 2, { scaleX: D, scaleY: o, tx: R, ty: J };
5719
+ return i.includes("Left") ? R = 0 : i.includes("Right") ? R = A - k : R = (A - k) / 2, i.includes("Top") ? J = 0 : i.includes("Bottom") ? J = I - a : J = (I - a) / 2, { scaleX: D, scaleY: o, tx: R, ty: J };
5720
5720
  }
5721
5721
  renderObject(A, I) {
5722
5722
  const g = this.objectStates.get(I.id);
@@ -5724,21 +5724,26 @@ class PQ {
5724
5724
  console.warn("No state for object:", I.id);
5725
5725
  return;
5726
5726
  }
5727
- const C = g.geometry || I.geometry, B = C.width || 0, E = C.height || 0, D = g.x, o = g.y;
5727
+ const C = g.geometry || I.geometry, B = C.width || 0, i = C.height || 0, D = g.x, o = g.y;
5728
5728
  A.save(), A.translate(D, o), A.rotate(g.rotation * Math.PI / 180), A.scale(g.scale_x, g.scale_y);
5729
5729
  const w = g.style || I.style;
5730
5730
  if (C.type === "Text") {
5731
5731
  let K = C.text;
5732
5732
  if (C.textInputId) {
5733
- const s = this.inputs.get(C.textInputId);
5734
- s !== void 0 && (K = String(s), g.geometry && (g.geometry.text = K));
5733
+ const F = this.inputs.get(C.textInputId);
5734
+ F !== void 0 && (K = String(F), g.geometry && (g.geometry.text = K));
5735
5735
  }
5736
- A.font = `${C.fontSize}px ${C.fontFamily}`, A.textAlign = "left", A.textBaseline = "top", w.fill && (A.fillStyle = w.fill.color, A.globalAlpha = (g.opacity ?? 1) * (w.fill.opacity ?? 1), A.fillText(K, 0, 0)), w.stroke && w.stroke.width > 0 && (A.strokeStyle = w.stroke.color, A.lineWidth = w.stroke.width, A.globalAlpha = (g.opacity ?? 1) * (w.stroke.opacity ?? 1), A.strokeText(K, 0, 0));
5736
+ const s = C.align || "center", k = C.width || 0;
5737
+ A.textAlign = s, A.textBaseline = "middle";
5738
+ let a = 0;
5739
+ s === "left" && (a = -k / 2), s === "right" && (a = k / 2);
5740
+ const R = C.fontWeight || "normal", J = C.fontStyle || "normal";
5741
+ A.font = `${J} ${R} ${C.fontSize}px ${C.fontFamily}`, w.fill && (A.fillStyle = w.fill.color, A.globalAlpha = (g.opacity ?? 1) * (w.fill.opacity ?? 1), A.fillText(K, a, 0)), w.stroke && w.stroke.width > 0 && (A.strokeStyle = w.stroke.color, A.lineWidth = w.stroke.width, A.globalAlpha = (g.opacity ?? 1) * (w.stroke.opacity ?? 1), A.strokeText(K, a, 0));
5737
5742
  } else if (C.type === "Image") {
5738
5743
  const K = C.src;
5739
5744
  if (K) {
5740
5745
  let s = this.imageCache.get(K);
5741
- s || (s = new Image(), s.src = K, this.imageCache.set(K, s)), s.complete && s.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(s, -B / 2, -E / 2, B, E));
5746
+ s || (s = new Image(), s.src = K, this.imageCache.set(K, s)), s.complete && s.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(s, -B / 2, -i / 2, B, i));
5742
5747
  }
5743
5748
  } else if (C.type === "SVG") {
5744
5749
  const K = C.svgContent;
@@ -5748,31 +5753,31 @@ class PQ {
5748
5753
  if (!a) {
5749
5754
  a = new Image();
5750
5755
  let R = K;
5751
- C.colors && C.colors.length > 0 && s.length > 0 && C.colors.forEach((F, c) => {
5756
+ C.colors && C.colors.length > 0 && s.length > 0 && C.colors.forEach((M, c) => {
5752
5757
  if (s[c]) {
5753
- const p = F.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), j = new RegExp(p, "gi");
5758
+ const p = M.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), j = new RegExp(p, "gi");
5754
5759
  R = R.replace(j, s[c]);
5755
5760
  }
5756
5761
  });
5757
- const J = new Blob([R], { type: "image/svg+xml" }), M = URL.createObjectURL(J);
5758
- a.src = M, this.imageCache.set(k, a);
5762
+ const J = new Blob([R], { type: "image/svg+xml" }), F = URL.createObjectURL(J);
5763
+ a.src = F, this.imageCache.set(k, a);
5759
5764
  }
5760
- a.complete && a.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(a, -B / 2, -E / 2, B, E));
5765
+ a.complete && a.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(a, -B / 2, -i / 2, B, i));
5761
5766
  }
5762
5767
  } else if (C.type === "LineGraph")
5763
- this.renderLineGraph(A, C, B, E);
5768
+ this.renderLineGraph(A, C, B, i);
5764
5769
  else {
5765
5770
  if (A.beginPath(), C.type === "Rectangle")
5766
- C.corner_radius && A.roundRect ? A.roundRect(-B / 2, -E / 2, B, E, C.corner_radius) : A.rect(-B / 2, -E / 2, B, E);
5771
+ C.corner_radius && A.roundRect ? A.roundRect(-B / 2, -i / 2, B, i, C.corner_radius) : A.rect(-B / 2, -i / 2, B, i);
5767
5772
  else if (C.type === "Ellipse")
5768
- A.ellipse(0, 0, B / 2, E / 2, 0, 0, 2 * Math.PI);
5773
+ A.ellipse(0, 0, B / 2, i / 2, 0, 0, 2 * Math.PI);
5769
5774
  else if (C.type === "Triangle")
5770
- A.moveTo(0, -E / 2), A.lineTo(B / 2, E / 2), A.lineTo(-B / 2, E / 2), A.closePath();
5775
+ A.moveTo(0, -i / 2), A.lineTo(B / 2, i / 2), A.lineTo(-B / 2, i / 2), A.closePath();
5771
5776
  else if (C.type === "Star") {
5772
5777
  const K = C.inner_radius, s = C.outer_radius, k = C.points || 5;
5773
5778
  for (let a = 0; a < k * 2; a++) {
5774
- const R = a * Math.PI / k - Math.PI / 2, J = a % 2 === 0 ? s : K, M = J * Math.cos(R), F = J * Math.sin(R);
5775
- a === 0 ? A.moveTo(M, F) : A.lineTo(M, F);
5779
+ const R = a * Math.PI / k - Math.PI / 2, J = a % 2 === 0 ? s : K, F = J * Math.cos(R), M = J * Math.sin(R);
5780
+ a === 0 ? A.moveTo(F, M) : A.lineTo(F, M);
5776
5781
  }
5777
5782
  A.closePath();
5778
5783
  }
@@ -5807,101 +5812,101 @@ class PQ {
5807
5812
  A.save(), A.fillStyle = "#6366f1", A.font = "12px Inter, system-ui, sans-serif", A.textAlign = "center", A.textBaseline = "middle", A.fillText("NO DATA", 0, 0), A.restore();
5808
5813
  return;
5809
5814
  }
5810
- let E = 1 / 0, D = -1 / 0, o = 0;
5815
+ let i = 1 / 0, D = -1 / 0, o = 0;
5811
5816
  if (B.forEach((J) => {
5812
- let M = J.data;
5817
+ let F = J.data;
5813
5818
  if (J.isVarEnabled && J.inputId) {
5814
- let F = this.inputs.get(J.inputId);
5815
- if (F === void 0) {
5819
+ let M = this.inputs.get(J.inputId);
5820
+ if (M === void 0) {
5816
5821
  const c = this.inputNameMap.get(J.inputId);
5817
- c && c.length > 0 && (F = this.inputs.get(c[0]));
5822
+ c && c.length > 0 && (M = this.inputs.get(c[0]));
5818
5823
  }
5819
- F && Array.isArray(F) && (M = F);
5824
+ M && Array.isArray(M) && (F = M);
5820
5825
  }
5821
- if (M && M.length > 0) {
5822
- const F = M.filter((c) => typeof c == "number" && !isNaN(c));
5823
- F.length > 0 && (E = Math.min(E, ...F), D = Math.max(D, ...F), o = Math.max(o, M.length));
5826
+ if (F && F.length > 0) {
5827
+ const M = F.filter((c) => typeof c == "number" && !isNaN(c));
5828
+ M.length > 0 && (i = Math.min(i, ...M), D = Math.max(D, ...M), o = Math.max(o, F.length));
5824
5829
  }
5825
- J._resolvedData = M;
5830
+ J._resolvedData = F;
5826
5831
  }), o < 2) return;
5827
- const w = D - E, K = g / (o - 1), s = (J) => {
5828
- const M = w === 0 ? 0.5 : (J - E) / w;
5829
- return C / 2 - M * C;
5832
+ const w = D - i, K = g / (o - 1), s = (J) => {
5833
+ const F = w === 0 ? 0.5 : (J - i) / w;
5834
+ return C / 2 - F * C;
5830
5835
  }, k = (J) => J * K - g / 2, a = I.axisColor || "#333333";
5831
5836
  if (I.showXAxis && (A.beginPath(), A.strokeStyle = I.xAxisColor || a, A.lineWidth = 1, A.moveTo(-g / 2, C / 2), A.lineTo(g / 2, C / 2), A.stroke()), I.showYAxis && (A.beginPath(), A.strokeStyle = I.yAxisColor || a, A.lineWidth = 1, A.moveTo(-g / 2, -C / 2), A.lineTo(-g / 2, C / 2), A.stroke()), A.fillStyle = I.axisLabelColor || "#333333", A.font = `${I.axisLabelFontSize || 10}px Inter, sans-serif`, I.showXLabels) {
5832
5837
  A.textAlign = "center", A.textBaseline = "top";
5833
5838
  for (let J = 0; J < o; J++) {
5834
- const M = k(J);
5835
- A.fillText(`${J + 1}`, M, C / 2 + 5);
5839
+ const F = k(J);
5840
+ A.fillText(`${J + 1}`, F, C / 2 + 5);
5836
5841
  }
5837
5842
  }
5838
5843
  if (I.showYLabels) {
5839
5844
  A.textAlign = "right", A.textBaseline = "middle";
5840
- const J = -g / 2 - 5, M = (D + E) / 2;
5841
- A.fillText(D.toFixed(1), J, s(D)), A.fillText(M.toFixed(1), J, s(M)), A.fillText(E.toFixed(1), J, s(E));
5845
+ const J = -g / 2 - 5, F = (D + i) / 2;
5846
+ A.fillText(D.toFixed(1), J, s(D)), A.fillText(F.toFixed(1), J, s(F)), A.fillText(i.toFixed(1), J, s(i));
5842
5847
  }
5843
5848
  const R = 10;
5844
5849
  if (B.forEach((J) => {
5845
- const M = J._resolvedData;
5846
- if (!(!M || M.length < 2)) {
5850
+ const F = J._resolvedData;
5851
+ if (!(!F || F.length < 2)) {
5847
5852
  if (J.showArea) {
5848
- if (A.beginPath(), A.moveTo(k(0), C / 2), A.lineTo(k(0), s(M[0])), J.smoothing && M.length > 2)
5849
- for (let F = 0; F < M.length - 1; F++) {
5850
- const c = M[F === 0 ? F : F - 1], p = M[F], j = M[F + 1], _ = M[F + 1 === M.length - 1 ? F + 1 : F + 2];
5853
+ if (A.beginPath(), A.moveTo(k(0), C / 2), A.lineTo(k(0), s(F[0])), J.smoothing && F.length > 2)
5854
+ for (let M = 0; M < F.length - 1; M++) {
5855
+ const c = F[M === 0 ? M : M - 1], p = F[M], j = F[M + 1], _ = F[M + 1 === F.length - 1 ? M + 1 : M + 2];
5851
5856
  for (let X = 1; X <= R; X++) {
5852
5857
  const iA = X / R, DA = this._catmullRom(c, p, j, _, iA);
5853
- A.lineTo(k(F + iA), s(DA));
5858
+ A.lineTo(k(M + iA), s(DA));
5854
5859
  }
5855
5860
  }
5856
5861
  else
5857
- for (let F = 1; F < M.length; F++)
5858
- A.lineTo(k(F), s(M[F]));
5859
- A.lineTo(k(M.length - 1), C / 2), A.closePath(), A.globalAlpha = I.areaOpacity ?? 0.3, A.fillStyle = J.areaColor || "rgba(139, 92, 246, 0.2)", A.fill(), A.globalAlpha = 1;
5862
+ for (let M = 1; M < F.length; M++)
5863
+ A.lineTo(k(M), s(F[M]));
5864
+ A.lineTo(k(F.length - 1), C / 2), A.closePath(), A.globalAlpha = I.areaOpacity ?? 0.3, A.fillStyle = J.areaColor || "rgba(139, 92, 246, 0.2)", A.fill(), A.globalAlpha = 1;
5860
5865
  }
5861
- if (A.beginPath(), A.strokeStyle = J.lineColor || "#3b82f6", A.lineWidth = J.lineWidth || 2, A.lineJoin = "round", A.lineCap = "round", A.moveTo(k(0), s(M[0])), J.smoothing && M.length > 2)
5862
- for (let F = 0; F < M.length - 1; F++) {
5863
- const c = M[F === 0 ? F : F - 1], p = M[F], j = M[F + 1], _ = M[F + 1 === M.length - 1 ? F + 1 : F + 2];
5866
+ if (A.beginPath(), A.strokeStyle = J.lineColor || "#3b82f6", A.lineWidth = J.lineWidth || 2, A.lineJoin = "round", A.lineCap = "round", A.moveTo(k(0), s(F[0])), J.smoothing && F.length > 2)
5867
+ for (let M = 0; M < F.length - 1; M++) {
5868
+ const c = F[M === 0 ? M : M - 1], p = F[M], j = F[M + 1], _ = F[M + 1 === F.length - 1 ? M + 1 : M + 2];
5864
5869
  for (let X = 1; X <= R; X++) {
5865
5870
  const iA = X / R, DA = this._catmullRom(c, p, j, _, iA);
5866
- A.lineTo(k(F + iA), s(DA));
5871
+ A.lineTo(k(M + iA), s(DA));
5867
5872
  }
5868
5873
  }
5869
5874
  else
5870
- for (let F = 1; F < M.length; F++)
5871
- A.lineTo(k(F), s(M[F]));
5872
- A.stroke(), J.showPoints && M.forEach((F, c) => {
5873
- const p = k(c), j = s(F);
5875
+ for (let M = 1; M < F.length; M++)
5876
+ A.lineTo(k(M), s(F[M]));
5877
+ A.stroke(), J.showPoints && F.forEach((M, c) => {
5878
+ const p = k(c), j = s(M);
5874
5879
  A.beginPath(), A.arc(p, j, (J.pointSize || 6) / 2, 0, Math.PI * 2), A.fillStyle = J.pointFill || "#ffffff", A.fill(), A.strokeStyle = J.pointStrokeColor || J.lineColor || "#3b82f6", A.lineWidth = J.pointStrokeWidth || 1, A.stroke();
5875
5880
  });
5876
5881
  }
5877
5882
  }), I.showLegend && B.length > 0) {
5878
5883
  const J = g / 2 - 10;
5879
- let M = -C / 2 + 15;
5880
- const F = I.legendFontSize || 10, c = F + 5;
5881
- A.font = `${F}px Inter, sans-serif`, A.textAlign = "right", A.textBaseline = "alphabetic", B.forEach((p) => {
5884
+ let F = -C / 2 + 15;
5885
+ const M = I.legendFontSize || 10, c = M + 5;
5886
+ A.font = `${M}px Inter, sans-serif`, A.textAlign = "right", A.textBaseline = "alphabetic", B.forEach((p) => {
5882
5887
  const _ = p.label || "Series", X = A.measureText(_).width;
5883
- A.beginPath(), A.rect(J - X - 8 - 5, M - (8 / 2 + 2), 8, 8), A.fillStyle = p.lineColor || "#3b82f6", A.fill(), A.fillStyle = I.legendColor || "#333333", A.fillText(_, J, M), M += c;
5888
+ A.beginPath(), A.rect(J - X - 8 - 5, F - (8 / 2 + 2), 8, 8), A.fillStyle = p.lineColor || "#3b82f6", A.fill(), A.fillStyle = I.legendColor || "#333333", A.fillText(_, J, F), F += c;
5884
5889
  });
5885
5890
  }
5886
5891
  }
5887
5892
  _catmullRom(A, I, g, C, B) {
5888
- const E = (g - A) * 0.5, D = (C - I) * 0.5, o = B * B, w = B * o;
5889
- return (2 * I - 2 * g + E + D) * w + (-3 * I + 3 * g - 2 * E - D) * o + E * B + I;
5893
+ const i = (g - A) * 0.5, D = (C - I) * 0.5, o = B * B, w = B * o;
5894
+ return (2 * I - 2 * g + i + D) * w + (-3 * I + 3 * g - 2 * i - D) * o + i * B + I;
5890
5895
  }
5891
5896
  }
5892
5897
  const $Q = YQ(
5893
- ({ artboard: i, src: A, className: I, style: g, autoPlay: C = !0, fit: B = "Contain", alignment: E = "Center", onReady: D, onTrigger: o, onInputUpdate: w }, K) => {
5894
- const s = BI(null), k = BI(new PQ()), a = BI(), R = BI(0);
5898
+ ({ artboard: E, src: A, className: I, style: g, autoPlay: C = !0, fit: B = "Contain", alignment: i = "Center", onReady: D, onTrigger: o, onInputUpdate: w }, K) => {
5899
+ const s = EI(null), k = EI(new PQ()), a = EI(), R = EI(0);
5895
5900
  tQ(K, () => s.current), TA(() => {
5896
- console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), k.current.setLayout(B, E);
5897
- }, [B, E]), TA(() => {
5901
+ console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), k.current.setLayout(B, i);
5902
+ }, [B, i]), TA(() => {
5898
5903
  o && k.current.setTriggerCallback(o);
5899
5904
  }, [o]), TA(() => {
5900
5905
  w && k.current.setInputUpdateCallback(w);
5901
5906
  }, [w]), TA(() => {
5902
5907
  (async () => {
5903
- const F = k.current;
5904
- let c = i;
5908
+ const M = k.current;
5909
+ let c = E;
5905
5910
  if (!c && A)
5906
5911
  try {
5907
5912
  c = await (await fetch(A)).json();
@@ -5909,27 +5914,27 @@ const $Q = YQ(
5909
5914
  console.error("Failed to load ExodeUI animation:", p);
5910
5915
  return;
5911
5916
  }
5912
- c && (F.load(c), D && D(F));
5917
+ c && (M.load(c), D && D(M));
5913
5918
  })();
5914
- }, [i, A]), TA(() => {
5915
- const M = k.current, F = s.current;
5916
- if (!F) return;
5917
- const c = F.getContext("2d");
5919
+ }, [E, A]), TA(() => {
5920
+ const F = k.current, M = s.current;
5921
+ if (!M) return;
5922
+ const c = M.getContext("2d");
5918
5923
  if (!c) return;
5919
5924
  const p = (j) => {
5920
5925
  R.current || (R.current = j);
5921
5926
  const _ = (j - R.current) / 1e3;
5922
- R.current = j, C && M.advance(_);
5923
- const X = window.devicePixelRatio || 1, iA = F.getBoundingClientRect(), DA = Math.floor(iA.width * X), aA = Math.floor(iA.height * X);
5924
- (F.width !== DA || F.height !== aA) && (F.width = DA, F.height = aA), M.render(c, DA, aA), a.current = requestAnimationFrame(p);
5927
+ R.current = j, C && F.advance(_);
5928
+ const X = window.devicePixelRatio || 1, iA = M.getBoundingClientRect(), DA = Math.floor(iA.width * X), aA = Math.floor(iA.height * X);
5929
+ (M.width !== DA || M.height !== aA) && (M.width = DA, M.height = aA), F.render(c, DA, aA), a.current = requestAnimationFrame(p);
5925
5930
  };
5926
5931
  return a.current = requestAnimationFrame(p), () => {
5927
5932
  a.current && cancelAnimationFrame(a.current);
5928
5933
  };
5929
5934
  }, [C]);
5930
- const J = (M, F) => {
5931
- const c = M.currentTarget.getBoundingClientRect(), p = M.clientX - c.left, j = M.clientY - c.top, _ = c.width, X = c.height;
5932
- k.current.handlePointerInput(F, p, j, _, X);
5935
+ const J = (F, M) => {
5936
+ const c = F.currentTarget.getBoundingClientRect(), p = F.clientX - c.left, j = F.clientY - c.top, _ = c.width, X = c.height;
5937
+ k.current.handlePointerInput(M, p, j, _, X);
5933
5938
  };
5934
5939
  return /* @__PURE__ */ eQ.jsx(
5935
5940
  "canvas",
@@ -5937,39 +5942,42 @@ const $Q = YQ(
5937
5942
  ref: s,
5938
5943
  style: { width: "100%", height: "100%", ...g },
5939
5944
  className: I,
5940
- onPointerDown: (M) => J(M, "down"),
5941
- onPointerUp: (M) => J(M, "up"),
5942
- onPointerMove: (M) => J(M, "move"),
5943
- onPointerLeave: (M) => J(M, "blur"),
5944
- onClick: (M) => J(M, "click")
5945
+ onPointerDown: (F) => J(F, "down"),
5946
+ onPointerUp: (F) => J(F, "up"),
5947
+ onPointerMove: (F) => J(F, "move"),
5948
+ onPointerLeave: (F) => J(F, "blur"),
5949
+ onClick: (F) => J(F, "click")
5945
5950
  }
5946
5951
  );
5947
5952
  }
5948
5953
  );
5949
5954
  function AB() {
5950
- const [i, A] = LQ(null), I = EI((E, D) => {
5951
- i == null || i.setInputBool(E, D);
5952
- }, [i]), g = EI((E, D) => {
5953
- i == null || i.setInputNumber(E, D);
5954
- }, [i]), C = EI((E) => {
5955
- i == null || i.fireTrigger(E);
5956
- }, [i]), B = EI((E, D) => {
5957
- i == null || i.setInputText(E, D);
5958
- }, [i]);
5955
+ const [E, A] = LQ(null), I = ZA((D, o) => {
5956
+ E == null || E.setInputBool(D, o);
5957
+ }, [E]), g = ZA((D, o) => {
5958
+ E == null || E.setInputNumber(D, o);
5959
+ }, [E]), C = ZA((D) => {
5960
+ E == null || E.fireTrigger(D);
5961
+ }, [E]), B = ZA((D, o) => {
5962
+ E == null || E.setInputText(D, o);
5963
+ }, [E]), i = ZA((D, o) => {
5964
+ E == null || E.setInputNumberArray(D, o);
5965
+ }, [E]);
5959
5966
  return {
5960
5967
  setEngine: A,
5961
5968
  // Pass this to onReady
5962
- engine: i,
5969
+ engine: E,
5963
5970
  setInputBool: I,
5964
5971
  setInputNumber: g,
5965
5972
  fireTrigger: C,
5966
- setInputText: B
5973
+ setInputText: B,
5974
+ setInputNumberArray: i
5967
5975
  };
5968
5976
  }
5969
5977
  export {
5970
5978
  HQ as ConditionOp,
5971
5979
  $Q as ExodeUICanvas,
5972
5980
  PQ as ExodeUIEngine,
5973
- jA as LogicOp,
5981
+ WA as LogicOp,
5974
5982
  AB as useExodeUI
5975
5983
  };