excalibur 0.32.0-alpha.1564 → 0.32.0-alpha.1565

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.
@@ -1,4 +1,4 @@
1
- /*! excalibur - 0.32.0-alpha.1564+00e394f - 2025-11-24
1
+ /*! excalibur - 0.32.0-alpha.1565+76be137 - 2025-11-24
2
2
  https://github.com/excaliburjs/Excalibur
3
3
  Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
4
4
  Licensed BSD-2-Clause
@@ -410,7 +410,7 @@ function Gt(r, t, e = new fe()) {
410
410
  function Xh(r, t, e = new fe()) {
411
411
  return e ? e.integer(r, t) : Math.round(Gt(r, t));
412
412
  }
413
- const ln = class W {
413
+ const ln = class G {
414
414
  /**
415
415
  * @param x X component of the Vector
416
416
  * @param y Y component of the Vector
@@ -422,50 +422,50 @@ const ln = class W {
422
422
  * A (0, 0) vector
423
423
  */
424
424
  static get Zero() {
425
- return new W(0, 0);
425
+ return new G(0, 0);
426
426
  }
427
427
  /**
428
428
  * A (1, 1) vector
429
429
  */
430
430
  static get One() {
431
- return new W(1, 1);
431
+ return new G(1, 1);
432
432
  }
433
433
  /**
434
434
  * A (0.5, 0.5) vector
435
435
  */
436
436
  static get Half() {
437
- return new W(0.5, 0.5);
437
+ return new G(0.5, 0.5);
438
438
  }
439
439
  /**
440
440
  * A unit vector pointing up (0, -1)
441
441
  */
442
442
  static get Up() {
443
- return new W(0, -1);
443
+ return new G(0, -1);
444
444
  }
445
445
  /**
446
446
  * A unit vector pointing down (0, 1)
447
447
  */
448
448
  static get Down() {
449
- return new W(0, 1);
449
+ return new G(0, 1);
450
450
  }
451
451
  /**
452
452
  * A unit vector pointing left (-1, 0)
453
453
  */
454
454
  static get Left() {
455
- return new W(-1, 0);
455
+ return new G(-1, 0);
456
456
  }
457
457
  /**
458
458
  * A unit vector pointing right (1, 0)
459
459
  */
460
460
  static get Right() {
461
- return new W(1, 0);
461
+ return new G(1, 0);
462
462
  }
463
463
  /**
464
464
  * Returns a vector of unit length in the direction of the specified angle in Radians.
465
465
  * @param angle The angle to generate the vector
466
466
  */
467
467
  static fromAngle(t) {
468
- return new W(Math.cos(t), Math.sin(t));
468
+ return new G(Math.cos(t), Math.sin(t));
469
469
  }
470
470
  /**
471
471
  * Checks if vector is not null, undefined, or if any of its components are NaN or Infinity.
@@ -482,10 +482,10 @@ const ln = class W {
482
482
  return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
483
483
  }
484
484
  static min(t, e) {
485
- return new W(Math.min(t.x, e.x), Math.min(t.y, e.y));
485
+ return new G(Math.min(t.x, e.x), Math.min(t.y, e.y));
486
486
  }
487
487
  static max(t, e) {
488
- return new W(Math.max(t.x, e.x), Math.max(t.y, e.y));
488
+ return new G(Math.max(t.x, e.x), Math.max(t.y, e.y));
489
489
  }
490
490
  /**
491
491
  * Get the x component of the vector
@@ -525,7 +525,7 @@ const ln = class W {
525
525
  * @param vector The other point to compare to
526
526
  * @param tolerance Amount of euclidean distance off we are willing to tolerate
527
527
  */
528
- equals(t, e = W.EQUALS_EPSILON) {
528
+ equals(t, e = G.EQUALS_EPSILON) {
529
529
  return Math.abs(this.x - t.x) <= e && Math.abs(this.y - t.y) <= e;
530
530
  }
531
531
  /**
@@ -539,7 +539,7 @@ const ln = class W {
539
539
  return Math.sqrt(e * e + i * i);
540
540
  }
541
541
  squareDistance(t) {
542
- t || (t = W.Zero);
542
+ t || (t = G.Zero);
543
543
  const e = this.x - t.x, i = this.y - t.y;
544
544
  return e * e + i * i;
545
545
  }
@@ -585,7 +585,7 @@ const ln = class W {
585
585
  */
586
586
  normalize() {
587
587
  const t = this.distance();
588
- return t === 0 ? W.Zero : new W(this.x / t, this.y / t);
588
+ return t === 0 ? G.Zero : new G(this.x / t, this.y / t);
589
589
  }
590
590
  /**
591
591
  * Returns the average (midpoint) between the current point and the specified
@@ -594,8 +594,8 @@ const ln = class W {
594
594
  return this.add(t).scale(0.5);
595
595
  }
596
596
  scale(t, e) {
597
- const i = e || new W(0, 0);
598
- return t instanceof W ? (i.x = this.x * t.x, i.y = this.y * t.y) : (i.x = this.x * t, i.y = this.y * t), i;
597
+ const i = e || new G(0, 0);
598
+ return t instanceof G ? (i.x = this.x * t.x, i.y = this.y * t.y) : (i.x = this.x * t, i.y = this.y * t), i;
599
599
  }
600
600
  /**
601
601
  * Adds one vector to another
@@ -603,14 +603,14 @@ const ln = class W {
603
603
  * @param dest Optionally copy the result into a provided vector
604
604
  */
605
605
  add(t, e) {
606
- return e ? (e.x = this.x + t.x, e.y = this.y + t.y, e) : new W(this.x + t.x, this.y + t.y);
606
+ return e ? (e.x = this.x + t.x, e.y = this.y + t.y, e) : new G(this.x + t.x, this.y + t.y);
607
607
  }
608
608
  /**
609
609
  * Subtracts a vector from another, if you subtract vector `B.sub(A)` the resulting vector points from A -> B
610
610
  * @param v The vector to subtract
611
611
  */
612
612
  sub(t, e) {
613
- const i = e || new W(0, 0), s = this.x - t.x, n = this.y - t.y;
613
+ const i = e || new G(0, 0), s = this.x - t.x, n = this.y - t.y;
614
614
  return i.x = s, i.y = n, i;
615
615
  }
616
616
  /**
@@ -644,19 +644,19 @@ const ln = class W {
644
644
  return this.x * t.x + this.y * t.y;
645
645
  }
646
646
  cross(t) {
647
- if (t instanceof W)
647
+ if (t instanceof G)
648
648
  return this.x * t.y - this.y * t.x;
649
649
  if (typeof t == "number")
650
- return new W(t * this.y, -t * this.x);
650
+ return new G(t * this.y, -t * this.x);
651
651
  }
652
652
  static cross(t, e) {
653
- return new W(-t * e.y, t * e.x);
653
+ return new G(-t * e.y, t * e.x);
654
654
  }
655
655
  /**
656
656
  * Returns the perpendicular vector to this one
657
657
  */
658
658
  perpendicular() {
659
- return new W(this.y, -this.x);
659
+ return new G(this.y, -this.x);
660
660
  }
661
661
  /**
662
662
  * Returns the normal vector to this one, same as the perpendicular of length 1
@@ -702,8 +702,8 @@ const ln = class W {
702
702
  * Positive angle means rotation clockwise.
703
703
  */
704
704
  rotate(t, e, i) {
705
- const s = i || new W(0, 0);
706
- e || (e = new W(0, 0));
705
+ const s = i || new G(0, 0);
706
+ e || (e = new G(0, 0));
707
707
  const n = Math.sin(t), o = Math.cos(t), a = o * (this.x - e.x) - n * (this.y - e.y) + e.x, h = n * (this.x - e.x) + o * (this.y - e.y) + e.y;
708
708
  return s.x = a, s.y = h, s;
709
709
  }
@@ -711,7 +711,7 @@ const ln = class W {
711
711
  * Creates new vector that has the same values as the previous.
712
712
  */
713
713
  clone(t) {
714
- const e = t != null ? t : new W(0, 0);
714
+ const e = t != null ? t : new G(0, 0);
715
715
  return e.x = this.x, e.y = this.y, e;
716
716
  }
717
717
  /**
@@ -731,7 +731,7 @@ const ln = class W {
731
731
  */
732
732
  lerp(t, e) {
733
733
  e = F(e, 0, 1);
734
- const i = new W(0, 0);
734
+ const i = new G(0, 0);
735
735
  return i.x = this.x + (t.x - this.x) * e, i.y = this.y + (t.y - this.y) * e, i;
736
736
  }
737
737
  };
@@ -842,8 +842,8 @@ class Tt {
842
842
  const i = e || new m(0, 0), s = t, n = s.x * this.data[0] + s.y * this.data[4] + this.data[12], o = s.x * this.data[1] + s.y * this.data[5] + this.data[13];
843
843
  return i.x = n, i.y = o, i;
844
844
  } else {
845
- const i = e || new Tt(), s = t, n = this.data[0], o = this.data[1], a = this.data[2], h = this.data[3], l = this.data[4], c = this.data[5], d = this.data[6], u = this.data[7], _ = this.data[8], g = this.data[9], f = this.data[10], x = this.data[11], p = this.data[12], v = this.data[13], T = this.data[14], y = this.data[15], C = s.data[0], E = s.data[1], b = s.data[2], D = s.data[3], k = s.data[4], V = s.data[5], X = s.data[6], st = s.data[7], Y = s.data[8], U = s.data[9], ot = s.data[10], ct = s.data[11], P = s.data[12], re = s.data[13], oe = s.data[14], ae = s.data[15];
846
- i.data[0] = n * C + l * E + _ * b + p * D, i.data[1] = o * C + c * E + g * b + v * D, i.data[2] = a * C + d * E + f * b + T * D, i.data[3] = h * C + u * E + x * b + y * D, i.data[4] = n * k + l * V + _ * X + p * st, i.data[5] = o * k + c * V + g * X + v * st, i.data[6] = a * k + d * V + f * X + T * st, i.data[7] = h * k + u * V + x * X + y * st, i.data[8] = n * Y + l * U + _ * ot + p * ct, i.data[9] = o * Y + c * U + g * ot + v * ct, i.data[10] = a * Y + d * U + f * ot + T * ct, i.data[11] = h * Y + u * U + x * ot + y * ct, i.data[12] = n * P + l * re + _ * oe + p * ae, i.data[13] = o * P + c * re + g * oe + v * ae, i.data[14] = a * P + d * re + f * oe + T * ae, i.data[15] = h * P + u * re + x * oe + y * ae;
845
+ const i = e || new Tt(), s = t, n = this.data[0], o = this.data[1], a = this.data[2], h = this.data[3], l = this.data[4], c = this.data[5], d = this.data[6], u = this.data[7], _ = this.data[8], g = this.data[9], f = this.data[10], x = this.data[11], p = this.data[12], v = this.data[13], T = this.data[14], y = this.data[15], C = s.data[0], E = s.data[1], b = s.data[2], B = s.data[3], L = s.data[4], z = s.data[5], X = s.data[6], st = s.data[7], Y = s.data[8], H = s.data[9], ot = s.data[10], ct = s.data[11], P = s.data[12], re = s.data[13], oe = s.data[14], ae = s.data[15];
846
+ i.data[0] = n * C + l * E + _ * b + p * B, i.data[1] = o * C + c * E + g * b + v * B, i.data[2] = a * C + d * E + f * b + T * B, i.data[3] = h * C + u * E + x * b + y * B, i.data[4] = n * L + l * z + _ * X + p * st, i.data[5] = o * L + c * z + g * X + v * st, i.data[6] = a * L + d * z + f * X + T * st, i.data[7] = h * L + u * z + x * X + y * st, i.data[8] = n * Y + l * H + _ * ot + p * ct, i.data[9] = o * Y + c * H + g * ot + v * ct, i.data[10] = a * Y + d * H + f * ot + T * ct, i.data[11] = h * Y + u * H + x * ot + y * ct, i.data[12] = n * P + l * re + _ * oe + p * ae, i.data[13] = o * P + c * re + g * oe + v * ae, i.data[14] = a * P + d * re + f * oe + T * ae, i.data[15] = h * P + u * re + x * oe + y * ae;
847
847
  const Le = this.getScale();
848
848
  return i._scaleSignX = q(Le.x) * q(i._scaleSignX), i._scaleSignY = q(Le.y) * q(i._scaleSignY), i;
849
849
  }
@@ -2919,7 +2919,7 @@ class A extends Dt {
2919
2919
  return t._transform = this._transform.clone(), t;
2920
2920
  }
2921
2921
  }
2922
- class H extends Dt {
2922
+ class O extends Dt {
2923
2923
  constructor() {
2924
2924
  super(...arguments), this.vel = m.Zero, this.maxVel = m.One.scaleEqual(1 / 0), this.acc = m.Zero, this.scaleFactor = m.Zero, this.angularVelocity = 0, this.torque = 0, this.inertia = 1, this.integration = {
2925
2925
  onScreenOnly: !1
@@ -3044,7 +3044,7 @@ mask: ${(this.mask >>> 0).toString(2).padStart(32, "0")}
3044
3044
  Wi.All = new Wi("Collide with all groups", -1, -1);
3045
3045
  let Ae = Wi;
3046
3046
  var mn = /* @__PURE__ */ ((r) => (r.Kill = "kill", r.PreKill = "prekill", r.PostKill = "postkill", r.PreDraw = "predraw", r.PostDraw = "postdraw", r.PreDebugDraw = "predebugdraw", r.PostDebugDraw = "postdebugdraw", r.PreUpdate = "preupdate", r.PostUpdate = "postupdate", r.PreFrame = "preframe", r.PostFrame = "postframe", r.PreCollision = "precollision", r.CollisionStart = "collisionstart", r.CollisionEnd = "collisionend", r.PostCollision = "postcollision", r.Initialize = "initialize", r.Activate = "activate", r.Deactivate = "deactivate", r.ExitViewport = "exitviewport", r.EnterViewport = "enterviewport", r.ExitTrigger = "exit", r.EnterTrigger = "enter", r.Connect = "connect", r.Disconnect = "disconnect", r.Button = "button", r.Axis = "axis", r.Visible = "visible", r.Hidden = "hidden", r.Start = "start", r.Stop = "stop", r.PointerUp = "pointerup", r.PointerDown = "pointerdown", r.PointerMove = "pointermove", r.PointerEnter = "pointerenter", r.PointerLeave = "pointerleave", r.PointerCancel = "pointercancel", r.PointerWheel = "pointerwheel", r.Up = "up", r.Down = "down", r.Move = "move", r.Enter = "enter", r.Leave = "leave", r.Cancel = "cancel", r.Wheel = "wheel", r.Press = "press", r.Release = "release", r.Hold = "hold", r.PointerDragStart = "pointerdragstart", r.PointerDragEnd = "pointerdragend", r.PointerDragEnter = "pointerdragenter", r.PointerDragLeave = "pointerdragleave", r.PointerDragMove = "pointerdragmove", r.ActionStart = "actionstart", r.ActionComplete = "actioncomplete", r.Add = "add", r.Remove = "remove", r))(mn || {});
3047
- class L {
3047
+ class k {
3048
3048
  constructor() {
3049
3049
  this.other = null, this._bubbles = !0;
3050
3050
  }
@@ -3065,92 +3065,92 @@ class L {
3065
3065
  this.bubbles = !1;
3066
3066
  }
3067
3067
  }
3068
- class hs extends L {
3068
+ class hs extends k {
3069
3069
  constructor(t) {
3070
3070
  super(), this.self = t, this.target = t;
3071
3071
  }
3072
3072
  }
3073
- class xn extends L {
3073
+ class xn extends k {
3074
3074
  constructor(t) {
3075
3075
  super(), this.self = t, this.target = t;
3076
3076
  }
3077
3077
  }
3078
- class vn extends L {
3078
+ class vn extends k {
3079
3079
  constructor(t) {
3080
3080
  super(), this.self = t, this.target = t;
3081
3081
  }
3082
3082
  }
3083
- class wn extends L {
3083
+ class wn extends k {
3084
3084
  constructor(t) {
3085
3085
  super(), this.self = t, this.target = t;
3086
3086
  }
3087
3087
  }
3088
- class bn extends L {
3088
+ class bn extends k {
3089
3089
  constructor(t) {
3090
3090
  super(), this.self = t, this.target = t;
3091
3091
  }
3092
3092
  }
3093
- class je extends L {
3093
+ class je extends k {
3094
3094
  constructor(t, e, i) {
3095
3095
  super(), this.ctx = t, this.elapsed = e, this.self = i, this.target = i;
3096
3096
  }
3097
3097
  }
3098
- class Ze extends L {
3098
+ class Ze extends k {
3099
3099
  constructor(t, e, i) {
3100
3100
  super(), this.ctx = t, this.elapsed = e, this.self = i, this.target = i;
3101
3101
  }
3102
3102
  }
3103
- class yn extends L {
3103
+ class yn extends k {
3104
3104
  constructor(t, e, i) {
3105
3105
  super(), this.ctx = t, this.elapsed = e, this.self = i, this.target = i;
3106
3106
  }
3107
3107
  }
3108
- class Cn extends L {
3108
+ class Cn extends k {
3109
3109
  constructor(t, e, i) {
3110
3110
  super(), this.ctx = t, this.elapsed = e, this.self = i, this.target = i;
3111
3111
  }
3112
3112
  }
3113
- class Tn extends L {
3113
+ class Tn extends k {
3114
3114
  constructor(t, e) {
3115
3115
  super(), this.ctx = t, this.self = e, this.target = e;
3116
3116
  }
3117
3117
  }
3118
- class Sn extends L {
3118
+ class Sn extends k {
3119
3119
  constructor(t, e) {
3120
3120
  super(), this.ctx = t, this.self = e, this.target = e;
3121
3121
  }
3122
3122
  }
3123
- class ge extends L {
3123
+ class ge extends k {
3124
3124
  constructor(t, e, i) {
3125
3125
  super(), this.engine = t, this.elapsed = e, this.self = i, this.target = i;
3126
3126
  }
3127
3127
  }
3128
- class pe extends L {
3128
+ class pe extends k {
3129
3129
  constructor(t, e, i) {
3130
3130
  super(), this.engine = t, this.elapsed = e, this.self = i, this.target = i;
3131
3131
  }
3132
3132
  }
3133
- class Pn extends L {
3133
+ class Pn extends k {
3134
3134
  constructor(t, e) {
3135
3135
  super(), this.engine = t, this.prevStats = e, this.target = t;
3136
3136
  }
3137
3137
  }
3138
- class An extends L {
3138
+ class An extends k {
3139
3139
  constructor(t, e) {
3140
3140
  super(), this.engine = t, this.stats = e, this.target = t;
3141
3141
  }
3142
3142
  }
3143
- class En extends L {
3143
+ class En extends k {
3144
3144
  constructor(t, e) {
3145
3145
  super(), this.index = t, this.gamepad = e, this.target = e;
3146
3146
  }
3147
3147
  }
3148
- class In extends L {
3148
+ class In extends k {
3149
3149
  constructor(t, e) {
3150
3150
  super(), this.index = t, this.gamepad = e, this.target = e;
3151
3151
  }
3152
3152
  }
3153
- class Rn extends L {
3153
+ class Rn extends k {
3154
3154
  /**
3155
3155
  * @param button The Gamepad {@apilink Buttons} if not known by excalibur {@apilink Buttons.Unknown} is returned, use index to disambiguate.
3156
3156
  * @param index The canonical index of the gamepad button from the system
@@ -3161,7 +3161,7 @@ class Rn extends L {
3161
3161
  super(), this.button = t, this.index = e, this.value = i, this.self = s, this.target = s;
3162
3162
  }
3163
3163
  }
3164
- class Mn extends L {
3164
+ class Mn extends k {
3165
3165
  /**
3166
3166
  * @param axis The Gamepad axis
3167
3167
  * @param value A numeric value between -1 and 1
@@ -3171,17 +3171,17 @@ class Mn extends L {
3171
3171
  super(), this.axis = t, this.value = e, this.self = i, this.target = i;
3172
3172
  }
3173
3173
  }
3174
- class Fn extends L {
3174
+ class Fn extends k {
3175
3175
  constructor(t) {
3176
3176
  super(), this.self = t, this.target = t;
3177
3177
  }
3178
3178
  }
3179
- class Dn extends L {
3179
+ class Dn extends k {
3180
3180
  constructor(t) {
3181
3181
  super(), this.self = t, this.target = t;
3182
3182
  }
3183
3183
  }
3184
- class Ee extends L {
3184
+ class Ee extends k {
3185
3185
  /**
3186
3186
  * @param self The actor the event was thrown on
3187
3187
  * @param other The actor that will collided with the current actor
@@ -3192,7 +3192,7 @@ class Ee extends L {
3192
3192
  super(), this.self = t, this.other = e, this.side = i, this.intersection = s, this.contact = n, this.target = t;
3193
3193
  }
3194
3194
  }
3195
- class Ie extends L {
3195
+ class Ie extends k {
3196
3196
  /**
3197
3197
  * @param self The actor the event was thrown on
3198
3198
  * @param other The actor that did collide with the current actor
@@ -3223,7 +3223,7 @@ class Xi {
3223
3223
  this.self = t, this.other = e, this.side = i, this.intersection = s, this.contact = n;
3224
3224
  }
3225
3225
  }
3226
- class ui extends L {
3226
+ class ui extends k {
3227
3227
  /**
3228
3228
  *
3229
3229
  * @param self
@@ -3235,7 +3235,7 @@ class ui extends L {
3235
3235
  super(), this.self = t, this.other = e, this.side = i, this.contact = s, this.target = t;
3236
3236
  }
3237
3237
  }
3238
- class _i extends L {
3238
+ class _i extends k {
3239
3239
  /**
3240
3240
  *
3241
3241
  */
@@ -3243,7 +3243,7 @@ class _i extends L {
3243
3243
  super(), this.self = t, this.other = e, this.side = i, this.lastContact = s, this.target = t;
3244
3244
  }
3245
3245
  }
3246
- class Qe extends L {
3246
+ class Qe extends k {
3247
3247
  /**
3248
3248
  * @param engine The reference to the current engine
3249
3249
  */
@@ -3251,7 +3251,7 @@ class Qe extends L {
3251
3251
  super(), this.engine = t, this.self = e, this.target = e;
3252
3252
  }
3253
3253
  }
3254
- class Bn extends L {
3254
+ class Bn extends k {
3255
3255
  /**
3256
3256
  * @param context The context for the scene activation
3257
3257
  */
@@ -3259,7 +3259,7 @@ class Bn extends L {
3259
3259
  super(), this.context = t, this.self = e, this.target = e;
3260
3260
  }
3261
3261
  }
3262
- class Ln extends L {
3262
+ class Ln extends k {
3263
3263
  /**
3264
3264
  * @param context The context for the scene deactivation
3265
3265
  */
@@ -3267,42 +3267,42 @@ class Ln extends L {
3267
3267
  super(), this.context = t, this.self = e, this.target = e;
3268
3268
  }
3269
3269
  }
3270
- class kn extends L {
3270
+ class kn extends k {
3271
3271
  constructor(t) {
3272
3272
  super(), this.self = t, this.target = t;
3273
3273
  }
3274
3274
  }
3275
- class zn extends L {
3275
+ class zn extends k {
3276
3276
  constructor(t) {
3277
3277
  super(), this.self = t, this.target = t;
3278
3278
  }
3279
3279
  }
3280
- class Un extends L {
3280
+ class Un extends k {
3281
3281
  constructor(t, e) {
3282
3282
  super(), this.self = t, this.entity = e, this.target = t;
3283
3283
  }
3284
3284
  }
3285
- class Hn extends L {
3285
+ class Hn extends k {
3286
3286
  constructor(t, e) {
3287
3287
  super(), this.self = t, this.entity = e, this.target = t;
3288
3288
  }
3289
3289
  }
3290
- class On extends L {
3290
+ class On extends k {
3291
3291
  constructor(t, e) {
3292
3292
  super(), this.action = t, this.self = e, this.target = e;
3293
3293
  }
3294
3294
  }
3295
- class Nn extends L {
3295
+ class Nn extends k {
3296
3296
  constructor(t, e) {
3297
3297
  super(), this.action = t, this.self = e, this.target = e;
3298
3298
  }
3299
3299
  }
3300
- class Wn extends L {
3300
+ class Wn extends k {
3301
3301
  constructor(t, e) {
3302
3302
  super(), this.engine = t, this.self = e, this.target = e;
3303
3303
  }
3304
3304
  }
3305
- class Gn extends L {
3305
+ class Gn extends k {
3306
3306
  constructor(t, e) {
3307
3307
  super(), this.engine = t, this.self = e, this.target = e;
3308
3308
  }
@@ -3325,7 +3325,7 @@ const Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3325
3325
  EventTypes: mn,
3326
3326
  ExitTriggerEvent: Hn,
3327
3327
  ExitViewPortEvent: kn,
3328
- GameEvent: L,
3328
+ GameEvent: k,
3329
3329
  GameStartEvent: wn,
3330
3330
  GameStopEvent: bn,
3331
3331
  GamepadAxisEvent: Mn,
@@ -4278,7 +4278,7 @@ Check your bundler settings to make sure this is not the case! Excalibur has ESM
4278
4278
  this.systemManager.clear();
4279
4279
  }
4280
4280
  }
4281
- var G = /* @__PURE__ */ ((r) => (r.None = "None", r.Top = "Top", r.Bottom = "Bottom", r.Left = "Left", r.Right = "Right", r))(G || {});
4281
+ var V = /* @__PURE__ */ ((r) => (r.None = "None", r.Top = "Top", r.Bottom = "Bottom", r.Left = "Left", r.Right = "Right", r))(V || {});
4282
4282
  ((r) => {
4283
4283
  function t(i) {
4284
4284
  return i === "Top" ? "Bottom" : i === "Bottom" ? "Top" : i === "Left" ? "Right" : i === "Right" ? "Left" : "None";
@@ -4288,7 +4288,7 @@ var G = /* @__PURE__ */ ((r) => (r.None = "None", r.Top = "Top", r.Bottom = "Bot
4288
4288
  return Math.abs(i.x) >= Math.abs(i.y) ? i.x <= 0 ? "Left" : "Right" : i.y <= 0 ? "Top" : "Bottom";
4289
4289
  }
4290
4290
  r.fromDirection = e;
4291
- })(G || (G = {}));
4291
+ })(V || (V = {}));
4292
4292
  const Zn = class ut {
4293
4293
  /**
4294
4294
  * Constructor allows passing of either an object with all coordinate components,
@@ -4320,7 +4320,7 @@ const Zn = class ut {
4320
4320
  * @param intersection Intersection vector between 2 bounding boxes
4321
4321
  */
4322
4322
  static getSideFromIntersection(t) {
4323
- return t && t ? Math.abs(t.x) > Math.abs(t.y) ? t.x < 0 ? G.Right : G.Left : t.y < 0 ? G.Bottom : G.Top : G.None;
4323
+ return t && t ? Math.abs(t.x) > Math.abs(t.y) ? t.x < 0 ? V.Right : V.Left : t.y < 0 ? V.Bottom : V.Top : V.None;
4324
4324
  }
4325
4325
  static fromPoints(t) {
4326
4326
  let e = 1 / 0, i = 1 / 0, s = -1 / 0, n = -1 / 0;
@@ -4543,7 +4543,7 @@ class xt {
4543
4543
  var i, s;
4544
4544
  if (t.id === e.id || t.owner && e.owner && t.owner.id === e.owner.id || t.localBounds.hasZeroDimensions() || e.localBounds.hasZeroDimensions())
4545
4545
  return !1;
4546
- const n = (i = t == null ? void 0 : t.owner) == null ? void 0 : i.get(O), o = (s = e == null ? void 0 : e.owner) == null ? void 0 : s.get(O);
4546
+ const n = (i = t == null ? void 0 : t.owner) == null ? void 0 : i.get(N), o = (s = e == null ? void 0 : e.owner) == null ? void 0 : s.get(N);
4547
4547
  return !(!n || !o || !n.group.canCollide(o.group) || n.collisionType === R.Fixed && o.collisionType === R.Fixed || o.collisionType === R.PreventCollision || n.collisionType === R.PreventCollision || !n.isActive || !o.isActive);
4548
4548
  }
4549
4549
  /**
@@ -4659,7 +4659,7 @@ class Qn {
4659
4659
  if (i.bounds.contains(s))
4660
4660
  return !1;
4661
4661
  if (this._remove(i), s.left -= this._config.boundsPadding, s.top -= this._config.boundsPadding, s.right += this._config.boundsPadding, s.bottom += this._config.boundsPadding, t.owner) {
4662
- const n = (e = t.owner) == null ? void 0 : e.get(O);
4662
+ const n = (e = t.owner) == null ? void 0 : e.get(N);
4663
4663
  if (n) {
4664
4664
  const o = n.vel.x * 32 / 1e3 * this._config.velocityMultiplier, a = n.vel.y * 32 / 1e3 * this._config.velocityMultiplier;
4665
4665
  o < 0 ? s.left += o : s.right += o, a < 0 ? s.top += a : s.bottom += a;
@@ -4785,7 +4785,7 @@ class $i {
4785
4785
  var i, s, n;
4786
4786
  const o = [], a = (i = e == null ? void 0 : e.maxDistance) != null ? i : 1 / 0, h = e == null ? void 0 : e.collisionGroup, l = h ? h.category : (s = e == null ? void 0 : e.collisionMask) != null ? s : Ae.All.category, c = (n = e == null ? void 0 : e.searchAllColliders) != null ? n : !1;
4787
4787
  return this._dynamicCollisionTree.rayCastQuery(t, a, (d) => {
4788
- const _ = d.owner.get(O);
4788
+ const _ = d.owner.get(N);
4789
4789
  if (e != null && e.ignoreCollisionGroupAll && _.group === Ae.All)
4790
4790
  return !1;
4791
4791
  const g = (l & _.group.category) !== 0;
@@ -4846,7 +4846,7 @@ class $i {
4846
4846
  broadphase(t, e, i) {
4847
4847
  const s = e / 1e3, n = t.filter((a) => {
4848
4848
  var h, l;
4849
- const c = (h = a.owner) == null ? void 0 : h.get(O);
4849
+ const c = (h = a.owner) == null ? void 0 : h.get(N);
4850
4850
  return ((l = a.owner) == null ? void 0 : l.isActive) && c.collisionType !== R.PreventCollision;
4851
4851
  });
4852
4852
  this._collisionPairCache = [], this._pairs.clear();
@@ -4861,7 +4861,7 @@ class $i {
4861
4861
  });
4862
4862
  if (i && (i.physics.pairs = this._collisionPairCache.length), this._config.continuous.checkForFastBodies)
4863
4863
  for (const a of n) {
4864
- const h = a.owner.get(O);
4864
+ const h = a.owner.get(N);
4865
4865
  if ((h == null ? void 0 : h.collisionType) !== R.Active)
4866
4866
  continue;
4867
4867
  const l = h.vel.magnitude * s + // velocity term
@@ -5291,7 +5291,7 @@ class _t extends Ti {
5291
5291
  point: _,
5292
5292
  normal: _.sub(n).normalize(),
5293
5293
  collider: this,
5294
- body: (i = this.owner) == null ? void 0 : i.get(O),
5294
+ body: (i = this.owner) == null ? void 0 : i.get(N),
5295
5295
  distance: u
5296
5296
  };
5297
5297
  }
@@ -5306,7 +5306,7 @@ class _t extends Ti {
5306
5306
  point: v,
5307
5307
  normal: v.sub(n).normalize(),
5308
5308
  collider: this,
5309
- body: (s = this.owner) == null ? void 0 : s.get(O),
5309
+ body: (s = this.owner) == null ? void 0 : s.get(N),
5310
5310
  distance: p
5311
5311
  };
5312
5312
  }
@@ -5399,7 +5399,7 @@ class ve {
5399
5399
  const f = ((l = t.composite) == null ? void 0 : l.compositeStrategy) === "separate" ? t.id : (d = (c = t.composite) == null ? void 0 : c.id) != null ? d : t.id, x = ((u = e.composite) == null ? void 0 : u.compositeStrategy) === "separate" ? e.id : (g = (_ = e.composite) == null ? void 0 : _.id) != null ? g : e.id;
5400
5400
  this.id += "|" + xt.calculatePairHash(f, x);
5401
5401
  }
5402
- this.colliderA.owner && (this.bodyA = this.colliderA.owner.get(O)), this.colliderB.owner && (this.bodyB = this.colliderB.owner.get(O));
5402
+ this.colliderA.owner && (this.bodyA = this.colliderA.owner.get(N)), this.colliderB.owner && (this.bodyB = this.colliderB.owner.get(N));
5403
5403
  }
5404
5404
  /**
5405
5405
  * Match contact awake state, except if body's are Fixed
@@ -5777,7 +5777,7 @@ class St extends Ti {
5777
5777
  distance: o,
5778
5778
  normal: this.asLine().normal(),
5779
5779
  collider: this,
5780
- body: (i = this.owner) == null ? void 0 : i.get(O),
5780
+ body: (i = this.owner) == null ? void 0 : i.get(N),
5781
5781
  point: t.getPoint(o)
5782
5782
  };
5783
5783
  }
@@ -6242,7 +6242,7 @@ class dt extends Ti {
6242
6242
  return h >= 0 ? {
6243
6243
  collider: this,
6244
6244
  distance: o,
6245
- body: (i = this.owner) == null ? void 0 : i.get(O),
6245
+ body: (i = this.owner) == null ? void 0 : i.get(N),
6246
6246
  point: t.getPoint(o),
6247
6247
  normal: a.normal()
6248
6248
  } : null;
@@ -7321,7 +7321,7 @@ ei.filtering = vt.Blended;
7321
7321
  ei.wrapping = { x: gt.Clamp, y: gt.Clamp };
7322
7322
  ei._MAX_TEXTURE_SIZE = 4096;
7323
7323
  let We = ei;
7324
- const z = {
7324
+ const U = {
7325
7325
  Filtering: "filtering",
7326
7326
  WrappingX: "wrapping-x",
7327
7327
  WrappingY: "wrapping-y"
@@ -7365,7 +7365,7 @@ class Xt {
7365
7365
  */
7366
7366
  static fromHtmlImageElement(t, e) {
7367
7367
  const i = new Xt("");
7368
- if (i._src = "image-element", i.data = t, i.data.setAttribute("data-original-src", "image-element"), e != null && e.filtering ? i.data.setAttribute(z.Filtering, e == null ? void 0 : e.filtering) : i.data.setAttribute(z.Filtering, vt.Blended), e != null && e.wrapping) {
7368
+ if (i._src = "image-element", i.data = t, i.data.setAttribute("data-original-src", "image-element"), e != null && e.filtering ? i.data.setAttribute(U.Filtering, e == null ? void 0 : e.filtering) : i.data.setAttribute(U.Filtering, vt.Blended), e != null && e.wrapping) {
7369
7369
  let s;
7370
7370
  typeof e.wrapping == "string" ? s = {
7371
7371
  x: e.wrapping,
@@ -7373,14 +7373,14 @@ class Xt {
7373
7373
  } : s = {
7374
7374
  x: e.wrapping.x,
7375
7375
  y: e.wrapping.y
7376
- }, i.data.setAttribute(z.WrappingX, s.x), i.data.setAttribute(z.WrappingY, s.y);
7376
+ }, i.data.setAttribute(U.WrappingX, s.x), i.data.setAttribute(U.WrappingY, s.y);
7377
7377
  } else
7378
- i.data.setAttribute(z.WrappingX, gt.Clamp), i.data.setAttribute(z.WrappingY, gt.Clamp);
7378
+ i.data.setAttribute(U.WrappingX, gt.Clamp), i.data.setAttribute(U.WrappingY, gt.Clamp);
7379
7379
  return We.checkImageSizeSupportedAndLog(t), i._readyFuture.resolve(t), i;
7380
7380
  }
7381
7381
  static fromHtmlCanvasElement(t, e) {
7382
7382
  const i = new Xt("");
7383
- if (i._src = "canvas-element-blob", i.data.setAttribute("data-original-src", "canvas-element-blob"), e != null && e.filtering ? i.data.setAttribute(z.Filtering, e == null ? void 0 : e.filtering) : i.data.setAttribute(z.Filtering, vt.Blended), e != null && e.wrapping) {
7383
+ if (i._src = "canvas-element-blob", i.data.setAttribute("data-original-src", "canvas-element-blob"), e != null && e.filtering ? i.data.setAttribute(U.Filtering, e == null ? void 0 : e.filtering) : i.data.setAttribute(U.Filtering, vt.Blended), e != null && e.wrapping) {
7384
7384
  let s;
7385
7385
  typeof e.wrapping == "string" ? s = {
7386
7386
  x: e.wrapping,
@@ -7388,9 +7388,9 @@ class Xt {
7388
7388
  } : s = {
7389
7389
  x: e.wrapping.x,
7390
7390
  y: e.wrapping.y
7391
- }, i.data.setAttribute(z.WrappingX, s.x), i.data.setAttribute(z.WrappingY, s.y);
7391
+ }, i.data.setAttribute(U.WrappingX, s.x), i.data.setAttribute(U.WrappingY, s.y);
7392
7392
  } else
7393
- i.data.setAttribute(z.WrappingX, gt.Clamp), i.data.setAttribute(z.WrappingY, gt.Clamp);
7393
+ i.data.setAttribute(U.WrappingX, gt.Clamp), i.data.setAttribute(U.WrappingY, gt.Clamp);
7394
7394
  return We.checkImageSizeSupportedAndLog(t), t.toBlob((s) => {
7395
7395
  const n = URL.createObjectURL(s);
7396
7396
  i.image.onload = () => {
@@ -7432,7 +7432,7 @@ class Xt {
7432
7432
  } catch (n) {
7433
7433
  throw `Error loading ImageSource from path '${this.path}' with error [${n.message}]`;
7434
7434
  }
7435
- return this.data.setAttribute(z.Filtering, this.filtering), this.data.setAttribute(z.WrappingX, (e = (t = this.wrapping) == null ? void 0 : t.x) != null ? e : gt.Clamp), this.data.setAttribute(z.WrappingY, (s = (i = this.wrapping) == null ? void 0 : i.y) != null ? s : gt.Clamp), this._readyFuture.resolve(this.data), this.data;
7435
+ return this.data.setAttribute(U.Filtering, this.filtering), this.data.setAttribute(U.WrappingX, (e = (t = this.wrapping) == null ? void 0 : t.x) != null ? e : gt.Clamp), this.data.setAttribute(U.WrappingY, (s = (i = this.wrapping) == null ? void 0 : i.y) != null ? s : gt.Clamp), this._readyFuture.resolve(this.data), this.data;
7436
7436
  }
7437
7437
  /**
7438
7438
  * Build a sprite from this ImageSource
@@ -8027,7 +8027,7 @@ class gr extends Mt {
8027
8027
  _applyTransform(t) {
8028
8028
  const e = t.getAncestors();
8029
8029
  for (let i = 0; i < e.length; i++) {
8030
- const s = e[i], n = s == null ? void 0 : s.get(A), o = s == null ? void 0 : s.get(O);
8030
+ const s = e[i], n = s == null ? void 0 : s.get(A), o = s == null ? void 0 : s.get(N);
8031
8031
  if (n) {
8032
8032
  let a = n.get();
8033
8033
  if (o && this._engine.fixedUpdateTimestep && o.__oldTransformCaptured && o.enableFixedUpdateInterpolate) {
@@ -9107,7 +9107,7 @@ const Tr = class ze {
9107
9107
  }
9108
9108
  }
9109
9109
  _loadImageSource(t) {
9110
- const e = t.image, i = e.getAttribute(z.Filtering), s = i ? Ke(i) : void 0, n = Ut(e.getAttribute(z.WrappingX)), o = Ut(e.getAttribute(z.WrappingY)), a = e.getAttribute("forceUpload") === "true", h = this._textureLoader.load(
9110
+ const e = t.image, i = e.getAttribute(U.Filtering), s = i ? Ke(i) : void 0, n = Ut(e.getAttribute(U.WrappingX)), o = Ut(e.getAttribute(U.WrappingY)), a = e.getAttribute("forceUpload") === "true", h = this._textureLoader.load(
9111
9111
  e,
9112
9112
  {
9113
9113
  filtering: s,
@@ -9590,7 +9590,7 @@ xe._SCALE_FACTOR = new m(0, 0);
9590
9590
  let Sr = xe;
9591
9591
  class vs extends It {
9592
9592
  constructor(t) {
9593
- super(), this.beginColor = S.White, this.endColor = S.White, this.life = 300, this.fade = !1, this._rRate = 1, this._gRate = 1, this._bRate = 1, this._aRate = 0, this._currentColor = S.White, this.size = 5, this.sizeRate = 0, this.visible = !0, this.isOffscreen = !1, this.particleTransform = "global", this.name = `Particle#${this.id}`, this.addComponent(this.transform = new A()), this.addComponent(this.motion = new H()), this.addComponent(this.graphics = new Z()), this.configure(t);
9593
+ super(), this.beginColor = S.White, this.endColor = S.White, this.life = 300, this.fade = !1, this._rRate = 1, this._gRate = 1, this._bRate = 1, this._aRate = 0, this._currentColor = S.White, this.size = 5, this.sizeRate = 0, this.visible = !0, this.isOffscreen = !1, this.particleTransform = "global", this.name = `Particle#${this.id}`, this.addComponent(this.transform = new A()), this.addComponent(this.motion = new O()), this.addComponent(this.graphics = new Z()), this.configure(t);
9594
9594
  }
9595
9595
  registerEmitter(t) {
9596
9596
  if (this._emitter = t, this.particleTransform === "global") {
@@ -9648,7 +9648,7 @@ class Xo {
9648
9648
  }), this._shader.compile(), this._shader.use(), this._shader.setUniformMatrix("u_matrix", this._context.ortho);
9649
9649
  }
9650
9650
  _getTexture(t) {
9651
- const e = t.getAttribute(z.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(z.WrappingX)), n = Ut(t.getAttribute(z.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
9651
+ const e = t.getAttribute(U.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(U.WrappingX)), n = Ut(t.getAttribute(U.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
9652
9652
  t,
9653
9653
  {
9654
9654
  filtering: i,
@@ -10300,7 +10300,7 @@ class ea {
10300
10300
  draw(t, e, i) {
10301
10301
  this._isFull() && this.flush(), this._pointCount++;
10302
10302
  const s = this._context.getTransform(), n = this._context.opacity, o = this._context.snapToPixel, a = s.multiply(t);
10303
- o && (a.x = ~~(a.x + B), a.y = ~~(a.y + B));
10303
+ o && (a.x = ~~(a.x + D), a.y = ~~(a.y + D));
10304
10304
  const h = this._buffer.bufferData;
10305
10305
  h[this._vertexIndex++] = a.x, h[this._vertexIndex++] = a.y, h[this._vertexIndex++] = e.r / 255, h[this._vertexIndex++] = e.g / 255, h[this._vertexIndex++] = e.b / 255, h[this._vertexIndex++] = e.a * n, h[this._vertexIndex++] = i * Math.max(s.getScaleX(), s.getScaleY());
10306
10306
  }
@@ -10537,7 +10537,7 @@ class aa {
10537
10537
  _addImageAsTexture(t) {
10538
10538
  if (this._images.has(t))
10539
10539
  return;
10540
- const e = t.getAttribute(z.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(z.WrappingX)), n = Ut(t.getAttribute(z.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
10540
+ const e = t.getAttribute(U.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(U.WrappingX)), n = Ut(t.getAttribute(U.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
10541
10541
  t,
10542
10542
  {
10543
10543
  filtering: i,
@@ -10577,9 +10577,9 @@ class aa {
10577
10577
  let x = g || s || 0, p = f || n || 0;
10578
10578
  this._view[0] = 0, this._view[1] = 0, this._view[2] = (c = s != null ? s : g) != null ? c : 0, this._view[3] = (d = n != null ? n : f) != null ? d : 0, this._dest[0] = e != null ? e : 1, this._dest[1] = i != null ? i : 1, o !== void 0 && a !== void 0 && h !== void 0 && l !== void 0 && (this._view[0] = e != null ? e : 1, this._view[1] = i != null ? i : 1, this._view[2] = (u = s != null ? s : g) != null ? u : 0, this._view[3] = (_ = n != null ? n : f) != null ? _ : 0, this._dest[0] = o, this._dest[1] = a, x = h, p = l), e = this._view[0], i = this._view[1];
10579
10579
  const v = this._view[2], T = this._view[3], y = this._context.getTransform(), C = this._context.opacity, E = this._context.snapToPixel;
10580
- this._quad[0] = this._dest[0], this._quad[1] = this._dest[1], this._quad[2] = this._dest[0] + x, this._quad[3] = this._dest[1], this._quad[4] = this._dest[0], this._quad[5] = this._dest[1] + p, this._quad[6] = this._dest[0] + x, this._quad[7] = this._dest[1] + p, y.multiplyQuadInPlace(this._quad), E && (this._quad[0] = ~~(this._quad[0] + q(this._quad[0]) * B), this._quad[1] = ~~(this._quad[1] + q(this._quad[1]) * B), this._quad[2] = ~~(this._quad[2] + q(this._quad[2]) * B), this._quad[3] = ~~(this._quad[3] + q(this._quad[3]) * B), this._quad[4] = ~~(this._quad[4] + q(this._quad[4]) * B), this._quad[5] = ~~(this._quad[5] + q(this._quad[5]) * B), this._quad[6] = ~~(this._quad[6] + q(this._quad[6]) * B), this._quad[7] = ~~(this._quad[7] + q(this._quad[7]) * B));
10581
- const b = this._context.tint || this._defaultTint, D = this._getTextureIdForImage(t), k = g || x, V = f || p, X = (e + this.uvPadding) / k, st = (i + this.uvPadding) / V, Y = (e + v - this.uvPadding) / k, U = (i + T - this.uvPadding) / V, ot = g, ct = f, P = this._layout.vertexBuffer.bufferData;
10582
- P[this._vertexIndex++] = this._quad[0], P[this._vertexIndex++] = this._quad[1], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = X, P[this._vertexIndex++] = st, P[this._vertexIndex++] = D, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a, P[this._vertexIndex++] = this._quad[4], P[this._vertexIndex++] = this._quad[5], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = X, P[this._vertexIndex++] = U, P[this._vertexIndex++] = D, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a, P[this._vertexIndex++] = this._quad[2], P[this._vertexIndex++] = this._quad[3], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = Y, P[this._vertexIndex++] = st, P[this._vertexIndex++] = D, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a, P[this._vertexIndex++] = this._quad[6], P[this._vertexIndex++] = this._quad[7], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = Y, P[this._vertexIndex++] = U, P[this._vertexIndex++] = D, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a;
10580
+ this._quad[0] = this._dest[0], this._quad[1] = this._dest[1], this._quad[2] = this._dest[0] + x, this._quad[3] = this._dest[1], this._quad[4] = this._dest[0], this._quad[5] = this._dest[1] + p, this._quad[6] = this._dest[0] + x, this._quad[7] = this._dest[1] + p, y.multiplyQuadInPlace(this._quad), E && (this._quad[0] = ~~(this._quad[0] + q(this._quad[0]) * D), this._quad[1] = ~~(this._quad[1] + q(this._quad[1]) * D), this._quad[2] = ~~(this._quad[2] + q(this._quad[2]) * D), this._quad[3] = ~~(this._quad[3] + q(this._quad[3]) * D), this._quad[4] = ~~(this._quad[4] + q(this._quad[4]) * D), this._quad[5] = ~~(this._quad[5] + q(this._quad[5]) * D), this._quad[6] = ~~(this._quad[6] + q(this._quad[6]) * D), this._quad[7] = ~~(this._quad[7] + q(this._quad[7]) * D));
10581
+ const b = this._context.tint || this._defaultTint, B = this._getTextureIdForImage(t), L = g || x, z = f || p, X = (e + this.uvPadding) / L, st = (i + this.uvPadding) / z, Y = (e + v - this.uvPadding) / L, H = (i + T - this.uvPadding) / z, ot = g, ct = f, P = this._layout.vertexBuffer.bufferData;
10582
+ P[this._vertexIndex++] = this._quad[0], P[this._vertexIndex++] = this._quad[1], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = X, P[this._vertexIndex++] = st, P[this._vertexIndex++] = B, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a, P[this._vertexIndex++] = this._quad[4], P[this._vertexIndex++] = this._quad[5], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = X, P[this._vertexIndex++] = H, P[this._vertexIndex++] = B, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a, P[this._vertexIndex++] = this._quad[2], P[this._vertexIndex++] = this._quad[3], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = Y, P[this._vertexIndex++] = st, P[this._vertexIndex++] = B, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a, P[this._vertexIndex++] = this._quad[6], P[this._vertexIndex++] = this._quad[7], P[this._vertexIndex++] = C, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = Y, P[this._vertexIndex++] = H, P[this._vertexIndex++] = B, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a;
10583
10583
  }
10584
10584
  hasPendingDraws() {
10585
10585
  return this._imageCount !== 0;
@@ -10759,14 +10759,14 @@ class ca {
10759
10759
  drawLine(t, e, i, s = 1) {
10760
10760
  this._isFull() && this.flush(), this._rectangleCount++;
10761
10761
  const n = this._context.getTransform(), o = this._context.opacity, a = this._context.snapToPixel, h = e.sub(t), l = h.magnitude, c = h.normalize().perpendicular(), d = s / 2, u = n.multiply(c.scale(d, this._scratch1).add(t, this._scratch1), this._scratch1), _ = n.multiply(c.scale(-d, this._scratch2).add(t, this._scratch2), this._scratch2), g = n.multiply(c.scale(d, this._scratch3).add(e, this._scratch3), this._scratch3), f = n.multiply(c.scale(-d, this._scratch4).add(e, this._scratch4), this._scratch4);
10762
- a && (u.x = ~~(u.x + B), u.y = ~~(u.y + B), g.x = ~~(g.x + B), g.y = ~~(g.y + B), _.x = ~~(_.x + B), _.y = ~~(_.y + B), f.x = ~~(f.x + B), f.y = ~~(f.y + B));
10762
+ a && (u.x = ~~(u.x + D), u.y = ~~(u.y + D), g.x = ~~(g.x + D), g.y = ~~(g.y + D), _.x = ~~(_.x + D), _.y = ~~(_.y + D), f.x = ~~(f.x + D), f.y = ~~(f.y + D));
10763
10763
  const x = 0, p = 0, v = 1, T = 1, y = this._transparent, C = 0, E = 1, b = this._layout.vertexBuffer.bufferData;
10764
10764
  b[this._vertexIndex++] = u.x, b[this._vertexIndex++] = u.y, b[this._vertexIndex++] = x, b[this._vertexIndex++] = p, b[this._vertexIndex++] = l, b[this._vertexIndex++] = s, b[this._vertexIndex++] = o, b[this._vertexIndex++] = i.r / 255, b[this._vertexIndex++] = i.g / 255, b[this._vertexIndex++] = i.b / 255, b[this._vertexIndex++] = i.a, b[this._vertexIndex++] = y.r / 255, b[this._vertexIndex++] = y.g / 255, b[this._vertexIndex++] = y.b / 255, b[this._vertexIndex++] = y.a, b[this._vertexIndex++] = C / E, b[this._vertexIndex++] = _.x, b[this._vertexIndex++] = _.y, b[this._vertexIndex++] = x, b[this._vertexIndex++] = T, b[this._vertexIndex++] = l, b[this._vertexIndex++] = s, b[this._vertexIndex++] = o, b[this._vertexIndex++] = i.r / 255, b[this._vertexIndex++] = i.g / 255, b[this._vertexIndex++] = i.b / 255, b[this._vertexIndex++] = i.a, b[this._vertexIndex++] = y.r / 255, b[this._vertexIndex++] = y.g / 255, b[this._vertexIndex++] = y.b / 255, b[this._vertexIndex++] = y.a, b[this._vertexIndex++] = C / E, b[this._vertexIndex++] = g.x, b[this._vertexIndex++] = g.y, b[this._vertexIndex++] = v, b[this._vertexIndex++] = p, b[this._vertexIndex++] = l, b[this._vertexIndex++] = s, b[this._vertexIndex++] = o, b[this._vertexIndex++] = i.r / 255, b[this._vertexIndex++] = i.g / 255, b[this._vertexIndex++] = i.b / 255, b[this._vertexIndex++] = i.a, b[this._vertexIndex++] = y.r / 255, b[this._vertexIndex++] = y.g / 255, b[this._vertexIndex++] = y.b / 255, b[this._vertexIndex++] = y.a, b[this._vertexIndex++] = C / E, b[this._vertexIndex++] = f.x, b[this._vertexIndex++] = f.y, b[this._vertexIndex++] = v, b[this._vertexIndex++] = T, b[this._vertexIndex++] = l, b[this._vertexIndex++] = s, b[this._vertexIndex++] = o, b[this._vertexIndex++] = i.r / 255, b[this._vertexIndex++] = i.g / 255, b[this._vertexIndex++] = i.b / 255, b[this._vertexIndex++] = i.a, b[this._vertexIndex++] = y.r / 255, b[this._vertexIndex++] = y.g / 255, b[this._vertexIndex++] = y.b / 255, b[this._vertexIndex++] = y.a, b[this._vertexIndex++] = C / E;
10765
10765
  }
10766
10766
  drawRectangle(t, e, i, s, n = S.Transparent, o = 0) {
10767
10767
  this._isFull() && this.flush(), this._rectangleCount++;
10768
10768
  const a = this._context.getTransform(), h = this._context.opacity, l = this._context.snapToPixel, c = a.multiply(t.add(w(0, 0))), d = a.multiply(t.add(w(e, 0))), u = a.multiply(t.add(w(e, i))), _ = a.multiply(t.add(w(0, i)));
10769
- l && (c.x = ~~(c.x + B), c.y = ~~(c.y + B), d.x = ~~(d.x + B), d.y = ~~(d.y + B), _.x = ~~(_.x + B), _.y = ~~(_.y + B), u.x = ~~(u.x + B), u.y = ~~(u.y + B));
10769
+ l && (c.x = ~~(c.x + D), c.y = ~~(c.y + D), d.x = ~~(d.x + D), d.y = ~~(d.y + D), _.x = ~~(_.x + D), _.y = ~~(_.y + D), u.x = ~~(u.x + D), u.y = ~~(u.y + D));
10770
10770
  const g = 0, f = 0, x = 1, p = 1, v = this._layout.vertexBuffer.bufferData;
10771
10771
  v[this._vertexIndex++] = c.x, v[this._vertexIndex++] = c.y, v[this._vertexIndex++] = g, v[this._vertexIndex++] = f, v[this._vertexIndex++] = e, v[this._vertexIndex++] = i, v[this._vertexIndex++] = h, v[this._vertexIndex++] = s.r / 255, v[this._vertexIndex++] = s.g / 255, v[this._vertexIndex++] = s.b / 255, v[this._vertexIndex++] = s.a, v[this._vertexIndex++] = n.r / 255, v[this._vertexIndex++] = n.g / 255, v[this._vertexIndex++] = n.b / 255, v[this._vertexIndex++] = n.a, v[this._vertexIndex++] = o, v[this._vertexIndex++] = _.x, v[this._vertexIndex++] = _.y, v[this._vertexIndex++] = g, v[this._vertexIndex++] = p, v[this._vertexIndex++] = e, v[this._vertexIndex++] = i, v[this._vertexIndex++] = h, v[this._vertexIndex++] = s.r / 255, v[this._vertexIndex++] = s.g / 255, v[this._vertexIndex++] = s.b / 255, v[this._vertexIndex++] = s.a, v[this._vertexIndex++] = n.r / 255, v[this._vertexIndex++] = n.g / 255, v[this._vertexIndex++] = n.b / 255, v[this._vertexIndex++] = n.a, v[this._vertexIndex++] = o, v[this._vertexIndex++] = d.x, v[this._vertexIndex++] = d.y, v[this._vertexIndex++] = x, v[this._vertexIndex++] = f, v[this._vertexIndex++] = e, v[this._vertexIndex++] = i, v[this._vertexIndex++] = h, v[this._vertexIndex++] = s.r / 255, v[this._vertexIndex++] = s.g / 255, v[this._vertexIndex++] = s.b / 255, v[this._vertexIndex++] = s.a, v[this._vertexIndex++] = n.r / 255, v[this._vertexIndex++] = n.g / 255, v[this._vertexIndex++] = n.b / 255, v[this._vertexIndex++] = n.a, v[this._vertexIndex++] = o, v[this._vertexIndex++] = u.x, v[this._vertexIndex++] = u.y, v[this._vertexIndex++] = x, v[this._vertexIndex++] = p, v[this._vertexIndex++] = e, v[this._vertexIndex++] = i, v[this._vertexIndex++] = h, v[this._vertexIndex++] = s.r / 255, v[this._vertexIndex++] = s.g / 255, v[this._vertexIndex++] = s.b / 255, v[this._vertexIndex++] = s.a, v[this._vertexIndex++] = n.r / 255, v[this._vertexIndex++] = n.g / 255, v[this._vertexIndex++] = n.b / 255, v[this._vertexIndex++] = n.a, v[this._vertexIndex++] = o;
10772
10772
  }
@@ -10906,7 +10906,7 @@ class _a {
10906
10906
  draw(t, e, i, s = S.Transparent, n = 0) {
10907
10907
  this._isFull() && this.flush(), this._circleCount++;
10908
10908
  const o = this._context.getTransform(), a = this._context.opacity, h = this._context.snapToPixel, l = o.multiply(t.add(w(-e, -e))), c = o.multiply(t.add(w(e, -e))), d = o.multiply(t.add(w(e, e))), u = o.multiply(t.add(w(-e, e)));
10909
- h && (l.x = ~~(l.x + B), l.y = ~~(l.y + B), c.x = ~~(c.x + B), c.y = ~~(c.y + B), u.x = ~~(u.x + B), u.y = ~~(u.y + B), d.x = ~~(d.x + B), d.y = ~~(d.y + B));
10909
+ h && (l.x = ~~(l.x + D), l.y = ~~(l.y + D), c.x = ~~(c.x + D), c.y = ~~(c.y + D), u.x = ~~(u.x + D), u.y = ~~(u.y + D), d.x = ~~(d.x + D), d.y = ~~(d.y + D));
10910
10910
  const _ = 0, g = 0, f = 1, x = 1, p = this._layout.vertexBuffer.bufferData;
10911
10911
  p[this._vertexIndex++] = l.x, p[this._vertexIndex++] = l.y, p[this._vertexIndex++] = _, p[this._vertexIndex++] = g, p[this._vertexIndex++] = a, p[this._vertexIndex++] = i.r / 255, p[this._vertexIndex++] = i.g / 255, p[this._vertexIndex++] = i.b / 255, p[this._vertexIndex++] = i.a, p[this._vertexIndex++] = s.r / 255, p[this._vertexIndex++] = s.g / 255, p[this._vertexIndex++] = s.b / 255, p[this._vertexIndex++] = s.a, p[this._vertexIndex++] = n / e, p[this._vertexIndex++] = u.x, p[this._vertexIndex++] = u.y, p[this._vertexIndex++] = _, p[this._vertexIndex++] = x, p[this._vertexIndex++] = a, p[this._vertexIndex++] = i.r / 255, p[this._vertexIndex++] = i.g / 255, p[this._vertexIndex++] = i.b / 255, p[this._vertexIndex++] = i.a, p[this._vertexIndex++] = s.r / 255, p[this._vertexIndex++] = s.g / 255, p[this._vertexIndex++] = s.b / 255, p[this._vertexIndex++] = s.a, p[this._vertexIndex++] = n / e, p[this._vertexIndex++] = c.x, p[this._vertexIndex++] = c.y, p[this._vertexIndex++] = f, p[this._vertexIndex++] = g, p[this._vertexIndex++] = a, p[this._vertexIndex++] = i.r / 255, p[this._vertexIndex++] = i.g / 255, p[this._vertexIndex++] = i.b / 255, p[this._vertexIndex++] = i.a, p[this._vertexIndex++] = s.r / 255, p[this._vertexIndex++] = s.g / 255, p[this._vertexIndex++] = s.b / 255, p[this._vertexIndex++] = s.a, p[this._vertexIndex++] = n / e, p[this._vertexIndex++] = d.x, p[this._vertexIndex++] = d.y, p[this._vertexIndex++] = f, p[this._vertexIndex++] = x, p[this._vertexIndex++] = a, p[this._vertexIndex++] = i.r / 255, p[this._vertexIndex++] = i.g / 255, p[this._vertexIndex++] = i.b / 255, p[this._vertexIndex++] = i.a, p[this._vertexIndex++] = s.r / 255, p[this._vertexIndex++] = s.g / 255, p[this._vertexIndex++] = s.b / 255, p[this._vertexIndex++] = s.a, p[this._vertexIndex++] = n / e;
10912
10912
  }
@@ -10960,15 +10960,15 @@ class Ns {
10960
10960
  if (!x)
10961
10961
  return;
10962
10962
  const p = this._context.getTransform(), v = this._context.opacity, T = x.getShader(), y = this._layout.vertexBuffer.bufferData;
10963
- let C = 0, E = (t == null ? void 0 : t.width) || s || 0, b = (t == null ? void 0 : t.height) || n || 0, D = [0, 0, (c = s != null ? s : t == null ? void 0 : t.width) != null ? c : 0, (d = n != null ? n : t == null ? void 0 : t.height) != null ? d : 0], k = [e != null ? e : 1, i != null ? i : 1];
10964
- o !== void 0 && a !== void 0 && h !== void 0 && l !== void 0 && (D = [e != null ? e : 1, i != null ? i : 1, (u = s != null ? s : t == null ? void 0 : t.width) != null ? u : 0, (_ = n != null ? n : t == null ? void 0 : t.height) != null ? _ : 0], k = [o, a], E = h, b = l), e = D[0], i = D[1];
10965
- const V = D[2], X = D[3], st = w(k[0], k[1]), Y = w(k[0] + E, k[1]), U = w(k[0], k[1] + b), ot = w(k[0] + E, k[1] + b), ct = t.width || E, P = t.height || b, re = e / ct, oe = i / P, ae = (e + V - 0.01) / ct, Le = (i + X - 0.01) / P, Fi = p.getPosition(), Ms = Fi.add(ot), Fs = Fi.x / this._context.width, Ds = Fi.y / this._context.height, Bs = Ms.x / this._context.width, Ls = Ms.y / this._context.height;
10966
- y[C++] = st.x, y[C++] = st.y, y[C++] = re, y[C++] = oe, y[C++] = Fs, y[C++] = Ds, y[C++] = U.x, y[C++] = U.y, y[C++] = re, y[C++] = Le, y[C++] = Fs, y[C++] = Ls, y[C++] = Y.x, y[C++] = Y.y, y[C++] = ae, y[C++] = oe, y[C++] = Bs, y[C++] = Ds, y[C++] = ot.x, y[C++] = ot.y, y[C++] = ae, y[C++] = Le, y[C++] = Bs, y[C++] = Ls;
10963
+ let C = 0, E = (t == null ? void 0 : t.width) || s || 0, b = (t == null ? void 0 : t.height) || n || 0, B = [0, 0, (c = s != null ? s : t == null ? void 0 : t.width) != null ? c : 0, (d = n != null ? n : t == null ? void 0 : t.height) != null ? d : 0], L = [e != null ? e : 1, i != null ? i : 1];
10964
+ o !== void 0 && a !== void 0 && h !== void 0 && l !== void 0 && (B = [e != null ? e : 1, i != null ? i : 1, (u = s != null ? s : t == null ? void 0 : t.width) != null ? u : 0, (_ = n != null ? n : t == null ? void 0 : t.height) != null ? _ : 0], L = [o, a], E = h, b = l), e = B[0], i = B[1];
10965
+ const z = B[2], X = B[3], st = w(L[0], L[1]), Y = w(L[0] + E, L[1]), H = w(L[0], L[1] + b), ot = w(L[0] + E, L[1] + b), ct = t.width || E, P = t.height || b, re = e / ct, oe = i / P, ae = (e + z - 0.01) / ct, Le = (i + X - 0.01) / P, Fi = p.getPosition(), Ms = Fi.add(ot), Fs = Fi.x / this._context.width, Ds = Fi.y / this._context.height, Bs = Ms.x / this._context.width, Ls = Ms.y / this._context.height;
10966
+ y[C++] = st.x, y[C++] = st.y, y[C++] = re, y[C++] = oe, y[C++] = Fs, y[C++] = Ds, y[C++] = H.x, y[C++] = H.y, y[C++] = re, y[C++] = Le, y[C++] = Fs, y[C++] = Ls, y[C++] = Y.x, y[C++] = Y.y, y[C++] = ae, y[C++] = oe, y[C++] = Bs, y[C++] = Ds, y[C++] = ot.x, y[C++] = ot.y, y[C++] = ae, y[C++] = Le, y[C++] = Bs, y[C++] = Ls;
10967
10967
  let ks = this._addImageAsTexture(t);
10968
- x.use(), this._layout.shader = T, this._layout.use(!0), T.trySetUniformFloat("u_time_ms", performance.now()), T.trySetUniformFloat("u_opacity", v), T.trySetUniformFloatVector("u_resolution", w(this._context.width, this._context.height)), T.trySetUniformFloatVector("u_graphic_resolution", w(ct, P)), T.trySetUniformFloatVector("u_size", w(V, X)), T.trySetUniformMatrix("u_matrix", this._context.ortho), T.trySetUniformMatrix("u_transform", p.to4x4()), x.isOverridingGraphic && (g = x.images.u_graphic) != null && g.image && (ks = this._addImageAsTexture(x.images.u_graphic.image)), f.activeTexture(f.TEXTURE0 + 0), f.bindTexture(f.TEXTURE_2D, ks), T.trySetUniformInt("u_graphic", 0), x.isUsingScreenTexture && (f.activeTexture(f.TEXTURE0 + 1), f.bindTexture(f.TEXTURE_2D, this._context.materialScreenTexture), T.trySetUniformInt("u_screen_texture", 1)), this._quads.bind(), f.drawElements(f.TRIANGLES, 6, this._quads.bufferGlType, 0), it.DrawnImagesCount++, it.DrawCallCount++;
10968
+ x.use(), this._layout.shader = T, this._layout.use(!0), T.trySetUniformFloat("u_time_ms", performance.now()), T.trySetUniformFloat("u_opacity", v), T.trySetUniformFloatVector("u_resolution", w(this._context.width, this._context.height)), T.trySetUniformFloatVector("u_graphic_resolution", w(ct, P)), T.trySetUniformFloatVector("u_size", w(z, X)), T.trySetUniformMatrix("u_matrix", this._context.ortho), T.trySetUniformMatrix("u_transform", p.to4x4()), x.isOverridingGraphic && (g = x.images.u_graphic) != null && g.image && (ks = this._addImageAsTexture(x.images.u_graphic.image)), f.activeTexture(f.TEXTURE0 + 0), f.bindTexture(f.TEXTURE_2D, ks), T.trySetUniformInt("u_graphic", 0), x.isUsingScreenTexture && (f.activeTexture(f.TEXTURE0 + 1), f.bindTexture(f.TEXTURE_2D, this._context.materialScreenTexture), T.trySetUniformInt("u_screen_texture", 1)), this._quads.bind(), f.drawElements(f.TRIANGLES, 6, this._quads.bufferGlType, 0), it.DrawnImagesCount++, it.DrawCallCount++;
10969
10969
  }
10970
10970
  _addImageAsTexture(t) {
10971
- const e = t.getAttribute(z.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(z.WrappingX)), n = Ut(t.getAttribute(z.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
10971
+ const e = t.getAttribute(U.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(U.WrappingX)), n = Ut(t.getAttribute(U.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
10972
10972
  t,
10973
10973
  {
10974
10974
  filtering: i,
@@ -11181,7 +11181,7 @@ class ma {
11181
11181
  _addImageAsTexture(t) {
11182
11182
  if (this._images.has(t))
11183
11183
  return;
11184
- const e = t.getAttribute(z.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(z.WrappingX)), n = Ut(t.getAttribute(z.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
11184
+ const e = t.getAttribute(U.Filtering), i = e ? Ke(e) : void 0, s = Ut(t.getAttribute(U.WrappingX)), n = Ut(t.getAttribute(U.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
11185
11185
  t,
11186
11186
  {
11187
11187
  filtering: i,
@@ -11222,9 +11222,9 @@ class ma {
11222
11222
  let x = g || s || 0, p = f || n || 0;
11223
11223
  this._view[0] = 0, this._view[1] = 0, this._view[2] = (c = s != null ? s : g) != null ? c : 0, this._view[3] = (d = n != null ? n : f) != null ? d : 0, this._dest[0] = e != null ? e : 1, this._dest[1] = i != null ? i : 1, o !== void 0 && a !== void 0 && h !== void 0 && l !== void 0 && (this._view[0] = e != null ? e : 1, this._view[1] = i != null ? i : 1, this._view[2] = (u = s != null ? s : g) != null ? u : 0, this._view[3] = (_ = n != null ? n : f) != null ? _ : 0, this._dest[0] = o, this._dest[1] = a, x = h, p = l), e = this._view[0], i = this._view[1];
11224
11224
  const v = this._view[2], T = this._view[3], y = this._context.getTransform(), C = this._context.opacity;
11225
- this._context.snapToPixel && (this._dest[0] = ~~(this._dest[0] + B), this._dest[1] = ~~(this._dest[1] + B));
11226
- const b = this._context.tint || this._defaultTint, D = this._getTextureIdForImage(t), k = g || x, V = f || p, X = (e + this.uvPadding) / k, st = (i + this.uvPadding) / V, Y = (e + v - this.uvPadding) / k, U = (i + T - this.uvPadding) / V, ot = g, ct = f, P = this._transformData.bufferData;
11227
- P[this._vertexIndex++] = this._dest[0], P[this._vertexIndex++] = this._dest[1], P[this._vertexIndex++] = y.data[0], P[this._vertexIndex++] = y.data[1], P[this._vertexIndex++] = y.data[2], P[this._vertexIndex++] = y.data[3], P[this._vertexIndex++] = y.data[4], P[this._vertexIndex++] = y.data[5], P[this._vertexIndex++] = C, P[this._vertexIndex++] = x, P[this._vertexIndex++] = p, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = D, P[this._vertexIndex++] = X, P[this._vertexIndex++] = st, P[this._vertexIndex++] = Y, P[this._vertexIndex++] = U, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a;
11225
+ this._context.snapToPixel && (this._dest[0] = ~~(this._dest[0] + D), this._dest[1] = ~~(this._dest[1] + D));
11226
+ const b = this._context.tint || this._defaultTint, B = this._getTextureIdForImage(t), L = g || x, z = f || p, X = (e + this.uvPadding) / L, st = (i + this.uvPadding) / z, Y = (e + v - this.uvPadding) / L, H = (i + T - this.uvPadding) / z, ot = g, ct = f, P = this._transformData.bufferData;
11227
+ P[this._vertexIndex++] = this._dest[0], P[this._vertexIndex++] = this._dest[1], P[this._vertexIndex++] = y.data[0], P[this._vertexIndex++] = y.data[1], P[this._vertexIndex++] = y.data[2], P[this._vertexIndex++] = y.data[3], P[this._vertexIndex++] = y.data[4], P[this._vertexIndex++] = y.data[5], P[this._vertexIndex++] = C, P[this._vertexIndex++] = x, P[this._vertexIndex++] = p, P[this._vertexIndex++] = ot, P[this._vertexIndex++] = ct, P[this._vertexIndex++] = B, P[this._vertexIndex++] = X, P[this._vertexIndex++] = st, P[this._vertexIndex++] = Y, P[this._vertexIndex++] = H, P[this._vertexIndex++] = b.r / 255, P[this._vertexIndex++] = b.g / 255, P[this._vertexIndex++] = b.b / 255, P[this._vertexIndex++] = b.a;
11228
11228
  }
11229
11229
  hasPendingDraws() {
11230
11230
  return this._imageCount !== 0;
@@ -11236,7 +11236,7 @@ class ma {
11236
11236
  this._shader.use(), this._bindData(t), this._shader.setUniformMatrix("u_matrix", this._context.ortho), this._shader.setUniformBoolean("u_pixelart", this.pixelArtSampler), this._bindTextures(t), t.drawArraysInstanced(t.TRIANGLES, 0, 6, this._imageCount), it.DrawnImagesCount += this._imageCount, it.DrawCallCount++, t.bindVertexArray(null), this._imageCount = 0, this._vertexIndex = 0, this._textures.length = 0, this._textureIndex = 0, this._textureToIndex.clear(), this._images.clear(), this._imageToWidth.clear(), this._imageToHeight.clear();
11237
11237
  }
11238
11238
  }
11239
- const B = 1e-4;
11239
+ const D = 1e-4;
11240
11240
  class xa {
11241
11241
  constructor(t) {
11242
11242
  this._webglCtx = t, this._debugText = new _r();
@@ -11479,7 +11479,7 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
11479
11479
  this._transform.restore(), this._state.restore();
11480
11480
  }
11481
11481
  translate(t, e) {
11482
- this._transform.translate(this.snapToPixel ? ~~(t + B) : t, this.snapToPixel ? ~~(e + B) : e);
11482
+ this._transform.translate(this.snapToPixel ? ~~(t + D) : t, this.snapToPixel ? ~~(e + D) : e);
11483
11483
  }
11484
11484
  rotate(t) {
11485
11485
  this._transform.rotate(t);
@@ -12143,12 +12143,12 @@ class va {
12143
12143
  }
12144
12144
  }
12145
12145
  let wa = 0;
12146
- function N() {
12146
+ function W() {
12147
12147
  return wa++;
12148
12148
  }
12149
12149
  class ba {
12150
12150
  constructor(t, e, i) {
12151
- this.id = N(), this._stopped = !1, this._repeatBuilder = e, this._repeatContext = new Ri(t), this._actionQueue = this._repeatContext.getQueue(), this._repeat = i, this._originalRepeat = i, this._repeatBuilder(this._repeatContext), this._repeat--;
12151
+ this.id = W(), this._stopped = !1, this._repeatBuilder = e, this._repeatContext = new Ri(t), this._actionQueue = this._repeatContext.getQueue(), this._repeat = i, this._originalRepeat = i, this._repeatBuilder(this._repeatContext), this._repeat--;
12152
12152
  }
12153
12153
  update(t) {
12154
12154
  this._actionQueue.isComplete() && (this._actionQueue.clearActions(), this._repeatBuilder(this._repeatContext), this._repeat--), this._actionQueue.update(t);
@@ -12165,7 +12165,7 @@ class ba {
12165
12165
  }
12166
12166
  class ya {
12167
12167
  constructor(t, e) {
12168
- this.id = N(), this._stopped = !1, this._repeatBuilder = e, this._repeatContext = new Ri(t), this._actionQueue = this._repeatContext.getQueue(), this._repeatBuilder(this._repeatContext);
12168
+ this.id = W(), this._stopped = !1, this._repeatBuilder = e, this._repeatContext = new Ri(t), this._actionQueue = this._repeatContext.getQueue(), this._repeatBuilder(this._repeatContext);
12169
12169
  }
12170
12170
  update(t) {
12171
12171
  this._stopped || (this._actionQueue.isComplete() && (this._actionQueue.clearActions(), this._repeatBuilder(this._repeatContext)), this._actionQueue.update(t));
@@ -12184,9 +12184,9 @@ function Ca(r) {
12184
12184
  }
12185
12185
  class Ta {
12186
12186
  constructor(t, e) {
12187
- this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._legacyEasing = Et.Linear, this._easing = as, this._useLegacyEasing = !1;
12187
+ this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._legacyEasing = Et.Linear, this._easing = as, this._useLegacyEasing = !1;
12188
12188
  var i;
12189
- if (this._offset = e.offset, this._easing = (i = e.easing) != null ? i : this._easing, Me(e.easing) && (this._legacyEasing = e.easing, this._useLegacyEasing = !0), this._tx = t.get(A), this._motion = t.get(H), !this._tx)
12189
+ if (this._offset = e.offset, this._easing = (i = e.easing) != null ? i : this._easing, Me(e.easing) && (this._legacyEasing = e.easing, this._useLegacyEasing = !0), this._tx = t.get(A), this._motion = t.get(O), !this._tx)
12190
12190
  throw new Error(`Entity ${t.name} has no TransformComponent, can only MoveBy on Entities with TransformComponents.`);
12191
12191
  this._durationMs = e.duration, this._currentMs = this._durationMs;
12192
12192
  }
@@ -12210,7 +12210,7 @@ class Ta {
12210
12210
  }
12211
12211
  class Ws {
12212
12212
  constructor(t, e, i, s) {
12213
- if (this.id = N(), this._started = !1, this._stopped = !1, this._entity = t, this._tx = t.get(A), this._motion = t.get(H), this._speed = s, this._offset = new m(e, i), s <= 0)
12213
+ if (this.id = W(), this._started = !1, this._stopped = !1, this._entity = t, this._tx = t.get(A), this._motion = t.get(O), this._speed = s, this._offset = new m(e, i), s <= 0)
12214
12214
  throw I.getInstance().error("Attempted to moveBy with speed less than or equal to zero : " + s), new Error("Speed must be greater than 0 pixels per second");
12215
12215
  }
12216
12216
  update(t) {
@@ -12232,9 +12232,9 @@ function Sa(r) {
12232
12232
  }
12233
12233
  class Pa {
12234
12234
  constructor(t, e) {
12235
- this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._easing = as, this._legacyEasing = Et.Linear, this._useLegacyEasing = !1;
12235
+ this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._easing = as, this._legacyEasing = Et.Linear, this._useLegacyEasing = !1;
12236
12236
  var i;
12237
- if (this._end = e.pos, this._easing = (i = e.easing) != null ? i : this._easing, Me(e.easing) && (this._legacyEasing = e.easing, this._useLegacyEasing = !0), this._tx = t.get(A), this._motion = t.get(H), !this._tx)
12237
+ if (this._end = e.pos, this._easing = (i = e.easing) != null ? i : this._easing, Me(e.easing) && (this._legacyEasing = e.easing, this._useLegacyEasing = !0), this._tx = t.get(A), this._motion = t.get(O), !this._tx)
12238
12238
  throw new Error(`Entity ${t.name} has no TransformComponent, can only moveTo on Entities with TransformComponents.`);
12239
12239
  this._durationMs = e.duration, this._currentMs = this._durationMs;
12240
12240
  }
@@ -12258,7 +12258,7 @@ class Pa {
12258
12258
  }
12259
12259
  class Gs {
12260
12260
  constructor(t, e, i, s) {
12261
- this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._end = new m(e, i), this._speed = s;
12261
+ this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._end = new m(e, i), this._speed = s;
12262
12262
  }
12263
12263
  update(t) {
12264
12264
  this._started || (this._started = !0, this._start = new m(this._tx.pos.x, this._tx.pos.y), this._distance = this._start.distance(this._end), this._dir = this._end.sub(this._start).normalize());
@@ -12281,9 +12281,9 @@ function Ll(r) {
12281
12281
  }
12282
12282
  class Aa {
12283
12283
  constructor(t, e) {
12284
- this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._endAngle = 0, this._startAngle = 0;
12284
+ this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._endAngle = 0, this._startAngle = 0;
12285
12285
  var i;
12286
- if (this._endAngle = e.angle, this._tx = t.get(A), this._motion = t.get(H), !this._tx)
12286
+ if (this._endAngle = e.angle, this._tx = t.get(A), this._motion = t.get(O), !this._tx)
12287
12287
  throw new Error(`Entity ${t.name} has no TransformComponent, can only RotateTo on Entities with TransformComponents.`);
12288
12288
  this._durationMs = e.duration, this._rotationType = (i = e.rotationType) != null ? i : J.ShortestPath, this._currentMs = this._durationMs;
12289
12289
  }
@@ -12304,7 +12304,7 @@ class Aa {
12304
12304
  }
12305
12305
  class Ea {
12306
12306
  constructor(t, e, i, s) {
12307
- this.id = N(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._end = e, this._speed = i, this._rotationType = s || J.ShortestPath;
12307
+ this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._end = e, this._speed = i, this._rotationType = s || J.ShortestPath;
12308
12308
  }
12309
12309
  update(t) {
12310
12310
  if (!this._started) {
@@ -12343,9 +12343,9 @@ function kl(r) {
12343
12343
  }
12344
12344
  class Ia {
12345
12345
  constructor(t, e) {
12346
- this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._offset = 0, this._startAngle = 0, this._endAngle = 0;
12346
+ this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._offset = 0, this._startAngle = 0, this._endAngle = 0;
12347
12347
  var i;
12348
- if (this._offset = e.angleRadiansOffset, this._tx = t.get(A), this._motion = t.get(H), !this._tx)
12348
+ if (this._offset = e.angleRadiansOffset, this._tx = t.get(A), this._motion = t.get(O), !this._tx)
12349
12349
  throw new Error(`Entity ${t.name} has no TransformComponent, can only RotateBy on Entities with TransformComponents.`);
12350
12350
  this._durationMs = e.duration, this._rotationType = (i = e.rotationType) != null ? i : J.ShortestPath, this._currentMs = this._durationMs;
12351
12351
  }
@@ -12366,7 +12366,7 @@ class Ia {
12366
12366
  }
12367
12367
  class Ra {
12368
12368
  constructor(t, e, i, s) {
12369
- this.id = N(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._speed = i, this._offset = e, this._rotationType = s || J.ShortestPath;
12369
+ this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._speed = i, this._offset = e, this._rotationType = s || J.ShortestPath;
12370
12370
  }
12371
12371
  update(t) {
12372
12372
  if (!this._started) {
@@ -12405,7 +12405,7 @@ function Ma(r) {
12405
12405
  }
12406
12406
  class Fa {
12407
12407
  constructor(t, e) {
12408
- if (this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._endScale = w(1, 1), this._startScale = w(1, 1), this._endScale = e.scale, this._tx = t.get(A), this._motion = t.get(H), !this._tx)
12408
+ if (this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._endScale = w(1, 1), this._startScale = w(1, 1), this._endScale = e.scale, this._tx = t.get(A), this._motion = t.get(O), !this._tx)
12409
12409
  throw new Error(`Entity ${t.name} has no TransformComponent, can only ScaleTo on Entities with TransformComponents.`);
12410
12410
  this._durationMs = e.duration, this._currentMs = this._durationMs;
12411
12411
  }
@@ -12426,7 +12426,7 @@ class Fa {
12426
12426
  }
12427
12427
  class Da {
12428
12428
  constructor(t, e, i, s, n) {
12429
- this.id = N(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._endX = e, this._endY = i, this._speedX = s, this._speedY = n;
12429
+ this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._endX = e, this._endY = i, this._speedX = s, this._speedY = n;
12430
12430
  }
12431
12431
  update(t) {
12432
12432
  if (this._started || (this._started = !0, this._startX = this._tx.scale.x, this._startY = this._tx.scale.y, this._distanceX = Math.abs(this._endX - this._startX), this._distanceY = Math.abs(this._endY - this._startY)), Math.abs(this._tx.scale.x - this._startX) >= this._distanceX)
@@ -12458,7 +12458,7 @@ function Ba(r) {
12458
12458
  }
12459
12459
  class La {
12460
12460
  constructor(t, e) {
12461
- if (this.entity = t, this.id = N(), this._started = !1, this._stopped = !1, this._endScale = w(1, 1), this._scaleOffset = w(0, 0), this._startScale = w(1, 1), this._scaleOffset = e.scaleOffset, this._tx = t.get(A), this._motion = t.get(H), !this._tx)
12461
+ if (this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._endScale = w(1, 1), this._scaleOffset = w(0, 0), this._startScale = w(1, 1), this._scaleOffset = e.scaleOffset, this._tx = t.get(A), this._motion = t.get(O), !this._tx)
12462
12462
  throw new Error(`Entity ${t.name} has no TransformComponent, can only ScaleBy on Entities with TransformComponents.`);
12463
12463
  this._durationMs = e.duration, this._currentMs = this._durationMs;
12464
12464
  }
@@ -12479,7 +12479,7 @@ class La {
12479
12479
  }
12480
12480
  class ka {
12481
12481
  constructor(t, e, i, s) {
12482
- this.id = N(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._offset = new m(e, i), this._speedX = this._speedY = s;
12482
+ this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._offset = new m(e, i), this._speedX = this._speedY = s;
12483
12483
  }
12484
12484
  update(t) {
12485
12485
  this._started || (this._started = !0, this._startScale = this._tx.scale.clone(), this._endScale = this._startScale.add(this._offset), this._distanceX = Math.abs(this._endScale.x - this._startScale.x), this._distanceY = Math.abs(this._endScale.y - this._startScale.y), this._directionX = this._endScale.x < this._startScale.x ? -1 : 1, this._directionY = this._endScale.y < this._startScale.y ? -1 : 1), this._motion.scaleFactor.x = this._speedX * this._directionX, this._motion.scaleFactor.y = this._speedY * this._directionY, this.isComplete() && (this._tx.scale = this._endScale, this._motion.scaleFactor.x = 0, this._motion.scaleFactor.y = 0);
@@ -12496,7 +12496,7 @@ class ka {
12496
12496
  }
12497
12497
  class Vs {
12498
12498
  constructor(t) {
12499
- this.id = N(), this._hasBeenCalled = !1, this._method = t;
12499
+ this.id = W(), this._hasBeenCalled = !1, this._method = t;
12500
12500
  }
12501
12501
  update(t) {
12502
12502
  this._method(), this._hasBeenCalled = !0;
@@ -12513,7 +12513,7 @@ class Vs {
12513
12513
  }
12514
12514
  class za {
12515
12515
  constructor(t, e, i, s, n) {
12516
- this.easingFcn = n, this.id = N(), this._currentLerpTime = 0, this._lerpDuration = 1 * 1e3, this._lerpStart = new m(0, 0), this._lerpEnd = new m(0, 0), this._initialized = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._lerpDuration = s, this._lerpEnd = new m(e, i);
12516
+ this.easingFcn = n, this.id = W(), this._currentLerpTime = 0, this._lerpDuration = 1 * 1e3, this._lerpStart = new m(0, 0), this._lerpEnd = new m(0, 0), this._initialized = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._lerpDuration = s, this._lerpEnd = new m(e, i);
12517
12517
  }
12518
12518
  _initialize() {
12519
12519
  this._lerpStart = new m(this._tx.pos.x, this._tx.pos.y), this._currentLerpTime = 0;
@@ -12540,7 +12540,7 @@ class za {
12540
12540
  }
12541
12541
  class Ua {
12542
12542
  constructor(t, e, i, s, n) {
12543
- this.easingFcn = n, this.id = N(), this._currentLerpTime = 0, this._lerpDuration = 1 * 1e3, this._lerpStart = new m(0, 0), this._lerpEnd = new m(0, 0), this._initialized = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._lerpDuration = s, this._offset = new m(e, i);
12543
+ this.easingFcn = n, this.id = W(), this._currentLerpTime = 0, this._lerpDuration = 1 * 1e3, this._lerpStart = new m(0, 0), this._lerpEnd = new m(0, 0), this._initialized = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._lerpDuration = s, this._offset = new m(e, i);
12544
12544
  }
12545
12545
  _initialize() {
12546
12546
  this._lerpStart = new m(this._tx.pos.x, this._tx.pos.y), this._currentLerpTime = 0, this._lerpEnd = this._lerpStart.add(this._offset);
@@ -12567,7 +12567,7 @@ class Ua {
12567
12567
  }
12568
12568
  class Ha {
12569
12569
  constructor(t, e, i, s = 1) {
12570
- this.id = N(), this._timeVisible = 0, this._timeNotVisible = 0, this._elapsedTime = 0, this._totalTime = 0, this._stopped = !1, this._started = !1, this._graphics = t.get(Z), this._timeVisible = e, this._timeNotVisible = i, this._duration = (e + i) * s;
12570
+ this.id = W(), this._timeVisible = 0, this._timeNotVisible = 0, this._elapsedTime = 0, this._totalTime = 0, this._stopped = !1, this._started = !1, this._graphics = t.get(Z), this._timeVisible = e, this._timeNotVisible = i, this._duration = (e + i) * s;
12571
12571
  }
12572
12572
  update(t) {
12573
12573
  this._started || (this._started = !0, this._elapsedTime = 0, this._totalTime = 0), this._graphics && (this._elapsedTime += t, this._totalTime += t, this._graphics.isVisible && this._elapsedTime >= this._timeVisible && (this._graphics.isVisible = !1, this._elapsedTime = 0), !this._graphics.isVisible && this._elapsedTime >= this._timeNotVisible && (this._graphics.isVisible = !0, this._elapsedTime = 0), this.isComplete() && (this._graphics.isVisible = !0));
@@ -12584,7 +12584,7 @@ class Ha {
12584
12584
  }
12585
12585
  class Oa {
12586
12586
  constructor(t, e, i) {
12587
- this.id = N(), this._multiplier = 1, this._started = !1, this._stopped = !1, this._graphics = t.get(Z), this._endOpacity = e, this._remainingTime = this._originalTime = i;
12587
+ this.id = W(), this._multiplier = 1, this._started = !1, this._stopped = !1, this._graphics = t.get(Z), this._endOpacity = e, this._remainingTime = this._originalTime = i;
12588
12588
  }
12589
12589
  update(t) {
12590
12590
  this._graphics && (this._started || (this._started = !0, this._remainingTime = this._originalTime, this._endOpacity < this._graphics.opacity ? this._multiplier = -1 : this._multiplier = 1), this._remainingTime > 0 && (this._graphics.opacity += this._multiplier * (Math.abs(this._graphics.opacity - this._endOpacity) * t) / this._remainingTime), this._remainingTime -= t, this.isComplete() && (this._graphics.opacity = this._endOpacity), I.getInstance().debug("[Action fade] Actor opacity:", this._graphics.opacity));
@@ -12601,7 +12601,7 @@ class Oa {
12601
12601
  }
12602
12602
  class Na {
12603
12603
  constructor(t) {
12604
- this.id = N(), this._elapsedTime = 0, this._started = !1, this._stopped = !1, this._delay = t;
12604
+ this.id = W(), this._elapsedTime = 0, this._started = !1, this._stopped = !1, this._delay = t;
12605
12605
  }
12606
12606
  update(t) {
12607
12607
  this._started || (this._started = !0), this._elapsedTime += t;
@@ -12618,7 +12618,7 @@ class Na {
12618
12618
  }
12619
12619
  class Wa {
12620
12620
  constructor(t) {
12621
- this.id = N(), this._stopped = !1, this._entity = t;
12621
+ this.id = W(), this._stopped = !1, this._entity = t;
12622
12622
  }
12623
12623
  update(t) {
12624
12624
  this._entity.get(Ve).clearActions(), this._entity.kill(), this._stopped = !0;
@@ -12633,7 +12633,7 @@ class Wa {
12633
12633
  }
12634
12634
  class qs {
12635
12635
  constructor(t, e, i) {
12636
- this.id = N(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(H), this._followTx = e.get(A), this._followMotion = e.get(H), this._current = new m(this._tx.pos.x, this._tx.pos.y), this._end = new m(this._followTx.pos.x, this._followTx.pos.y), this._maximumDistance = i !== void 0 ? i : this._current.distance(this._end), this._speed = 0;
12636
+ this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(A), this._motion = t.get(O), this._followTx = e.get(A), this._followMotion = e.get(O), this._current = new m(this._tx.pos.x, this._tx.pos.y), this._end = new m(this._followTx.pos.x, this._followTx.pos.y), this._maximumDistance = i !== void 0 ? i : this._current.distance(this._end), this._speed = 0;
12637
12637
  }
12638
12638
  update(t) {
12639
12639
  this._started || (this._started = !0, this._distanceBetween = this._current.distance(this._end), this._dir = this._end.sub(this._current).normalize());
@@ -12657,7 +12657,7 @@ class qs {
12657
12657
  }
12658
12658
  class ki {
12659
12659
  constructor(t, e, i, s) {
12660
- this.id = N(), this._started = !1, this._stopped = !1, this._speedWasSpecified = !1, this._tolerance = 1, this._tx = t.get(A), this._motion = t.get(H), this._meetTx = e.get(A), this._meetMotion = e.get(H), this._current = new m(this._tx.pos.x, this._tx.pos.y), this._end = new m(this._meetTx.pos.x, this._meetTx.pos.y), this._speed = i || 0, i !== void 0 && (this._speedWasSpecified = !0), s !== void 0 && (this._tolerance = s);
12660
+ this.id = W(), this._started = !1, this._stopped = !1, this._speedWasSpecified = !1, this._tolerance = 1, this._tx = t.get(A), this._motion = t.get(O), this._meetTx = e.get(A), this._meetMotion = e.get(O), this._current = new m(this._tx.pos.x, this._tx.pos.y), this._end = new m(this._meetTx.pos.x, this._meetTx.pos.y), this._speed = i || 0, i !== void 0 && (this._speedWasSpecified = !0), s !== void 0 && (this._tolerance = s);
12661
12661
  }
12662
12662
  update(t) {
12663
12663
  this._started || (this._started = !0, this._distanceBetween = this._current.distance(this._end), this._dir = this._end.sub(this._current).normalize());
@@ -12678,7 +12678,7 @@ class ki {
12678
12678
  }
12679
12679
  class Ga {
12680
12680
  constructor(t, e, i = 1e3) {
12681
- this.id = N(), this._stopped = !1, this._started = !1, this._total = 0, this._currentDuration = 0;
12681
+ this.id = W(), this._stopped = !1, this._started = !1, this._total = 0, this._currentDuration = 0;
12682
12682
  var s;
12683
12683
  this._graphics = t.get(Z), this._duration = i, this._entity = t, this._material = (s = t.scene) == null ? void 0 : s.engine.graphicsContext.createMaterial({
12684
12684
  name: "flash-material",
@@ -12718,7 +12718,7 @@ class Ga {
12718
12718
  }
12719
12719
  class Va {
12720
12720
  constructor(t, e) {
12721
- this.id = N(), this._started = !1, this._stopped = !1, this._mode = "dynamic";
12721
+ this.id = W(), this._started = !1, this._stopped = !1, this._mode = "dynamic";
12722
12722
  var i;
12723
12723
  if (this._entity = t, this._tx = this._entity.get(A), !this._tx)
12724
12724
  throw new Error(`Entity ${t.name} has no TransformComponent, can only curveTo on Entities with TransformComponents.`);
@@ -12744,7 +12744,7 @@ class Va {
12744
12744
  }
12745
12745
  class qa {
12746
12746
  constructor(t, e) {
12747
- this.id = N(), this._started = !1, this._stopped = !1, this._mode = "dynamic";
12747
+ this.id = W(), this._started = !1, this._stopped = !1, this._mode = "dynamic";
12748
12748
  var i;
12749
12749
  if (this._entity = t, this._tx = this._entity.get(A), !this._tx)
12750
12750
  throw new Error(`Entity ${t.name} has no TransformComponent, can only curveTo on Entities with TransformComponents.`);
@@ -12964,7 +12964,7 @@ class Ri {
12964
12964
  }
12965
12965
  class Ve extends Dt {
12966
12966
  constructor() {
12967
- super(...arguments), this.dependencies = [A, H], this._ctx = null;
12967
+ super(...arguments), this.dependencies = [A, O], this._ctx = null;
12968
12968
  }
12969
12969
  onAdd(t) {
12970
12970
  this._ctx = new Ri(t);
@@ -13208,14 +13208,14 @@ const Ul = {
13208
13208
  * @param config
13209
13209
  */
13210
13210
  constructor(t) {
13211
- super(), this.events = new $(), this._anchor = Pt(m.Half, (D) => this._handleAnchorChange(D)), this._offset = Pt(m.Zero, (D) => this._handleOffsetChange(D)), this.logger = I.getInstance(), this._draggable = !1, this._dragging = !1, this._pointerDragStartHandler = () => {
13211
+ super(), this.events = new $(), this._anchor = Pt(m.Half, (z) => this._handleAnchorChange(z)), this._offset = Pt(m.Zero, (z) => this._handleOffsetChange(z)), this.logger = I.getInstance(), this._draggable = !1, this._dragging = !1, this._pointerDragStartHandler = () => {
13212
13212
  this._dragging = !0;
13213
13213
  }, this._pointerDragEndHandler = () => {
13214
13214
  this._dragging = !1;
13215
- }, this._pointerDragMoveHandler = (D) => {
13216
- this._dragging && (this.pos = D.worldPos);
13217
- }, this._pointerDragLeaveHandler = (D) => {
13218
- this._dragging && (this.pos = D.worldPos);
13215
+ }, this._pointerDragMoveHandler = (z) => {
13216
+ this._dragging && (this.pos = z.worldPos);
13217
+ }, this._pointerDragLeaveHandler = (z) => {
13218
+ this._dragging && (this.pos = z.worldPos);
13219
13219
  };
13220
13220
  const {
13221
13221
  name: e,
@@ -13239,7 +13239,9 @@ const Ul = {
13239
13239
  anchor: y,
13240
13240
  offset: C,
13241
13241
  collisionType: E,
13242
- collisionGroup: b
13242
+ collisionGroup: b,
13243
+ graphic: B,
13244
+ material: L
13243
13245
  } = {
13244
13246
  ...t
13245
13247
  };
@@ -13247,7 +13249,7 @@ const Ul = {
13247
13249
  anchor: this.anchor,
13248
13250
  offset: this.offset,
13249
13251
  opacity: T
13250
- }), this.addComponent(this.graphics), this.motion = new H(), this.addComponent(this.motion), this.vel = u != null ? u : m.Zero, this.acc = _ != null ? _ : m.Zero, this.angularVelocity = f != null ? f : 0, this.actions = new Ve(), this.addComponent(this.actions), this.body = new O(), this.addComponent(this.body), this.body.collisionType = E != null ? E : R.Passive, b && (this.body.group = b), p && (this.color = p), d ? (this.collider = new et(d), this.addComponent(this.collider)) : c ? (this.collider = new et(ft.Circle(c)), this.addComponent(this.collider), p && this.graphics.add(
13252
+ }), this.addComponent(this.graphics), this.motion = new O(), this.addComponent(this.motion), this.vel = u != null ? u : m.Zero, this.acc = _ != null ? _ : m.Zero, this.angularVelocity = f != null ? f : 0, this.actions = new Ve(), this.addComponent(this.actions), this.body = new N(), this.addComponent(this.body), this.body.collisionType = E != null ? E : R.Passive, b && (this.body.group = b), p && (this.color = p), d ? (this.collider = new et(d), this.addComponent(this.collider)) : c ? (this.collider = new et(ft.Circle(c)), this.addComponent(this.collider), p && this.graphics.add(
13251
13253
  new gs({
13252
13254
  color: p,
13253
13255
  radius: c
@@ -13258,7 +13260,7 @@ const Ul = {
13258
13260
  width: h,
13259
13261
  height: l
13260
13262
  })
13261
- )) : (this.collider = new et(), this.addComponent(this.collider)), this.graphics.isVisible = v != null ? v : !0;
13263
+ )) : (this.collider = new et(), this.addComponent(this.collider)), this.graphics.isVisible = v != null ? v : !0, B && this.graphics.use(B), L && (this.graphics.material = L);
13262
13264
  }
13263
13265
  /**
13264
13266
  * Gets the position vector of the actor in pixels
@@ -13886,7 +13888,7 @@ var he = /* @__PURE__ */ ((r) => (r.Rotation = "rotation", r.X = "x", r.Y = "y",
13886
13888
  const bs = class hi extends Dt {
13887
13889
  constructor(t) {
13888
13890
  var e, i, s;
13889
- super(), this.dependencies = [A, H], this.id = Pe("body", hi._ID++), this.events = new $(), this.oldTransform = new se(), this.__oldTransformCaptured = !1, this.enableFixedUpdateInterpolate = !0, this.collisionType = R.PreventCollision, this.group = Ae.All, this._sleeping = !1, this.bounciness = 0.2, this.friction = 0.99, this.useGravity = !0, this.limitDegreeOfFreedom = [], this._oldGlobalPos = m.Zero, this.oldVel = new m(0, 0), this.oldAcc = m.Zero, this._impulseScratch = w(0, 0), this._distanceFromCenterScratch = w(0, 0), t ? (this.collisionType = (e = t.type) != null ? e : this.collisionType, this.group = (i = t.group) != null ? i : this.group, this.useGravity = (s = t.useGravity) != null ? s : this.useGravity, this._bodyConfig = {
13891
+ super(), this.dependencies = [A, O], this.id = Pe("body", hi._ID++), this.events = new $(), this.oldTransform = new se(), this.__oldTransformCaptured = !1, this.enableFixedUpdateInterpolate = !0, this.collisionType = R.PreventCollision, this.group = Ae.All, this._sleeping = !1, this.bounciness = 0.2, this.friction = 0.99, this.useGravity = !0, this.limitDegreeOfFreedom = [], this._oldGlobalPos = m.Zero, this.oldVel = new m(0, 0), this.oldAcc = m.Zero, this._impulseScratch = w(0, 0), this._distanceFromCenterScratch = w(0, 0), t ? (this.collisionType = (e = t.type) != null ? e : this.collisionType, this.group = (i = t.group) != null ? i : this.group, this.useGravity = (s = t.useGravity) != null ? s : this.useGravity, this._bodyConfig = {
13890
13892
  ...ie().bodies,
13891
13893
  ...t.config
13892
13894
  }) : this._bodyConfig = {
@@ -14005,7 +14007,7 @@ const bs = class hi extends Dt {
14005
14007
  }
14006
14008
  onAdd(t) {
14007
14009
  var e, i;
14008
- this.transform = (e = this.owner) == null ? void 0 : e.get(A), this.motion = (i = this.owner) == null ? void 0 : i.get(H);
14010
+ this.transform = (e = this.owner) == null ? void 0 : e.get(A), this.motion = (i = this.owner) == null ? void 0 : i.get(O);
14009
14011
  }
14010
14012
  get pos() {
14011
14013
  return this.transform.pos;
@@ -14184,7 +14186,7 @@ bs._ID = 0;
14184
14186
  bs._DEFAULT_CONFIG = {
14185
14187
  ...ie().bodies
14186
14188
  };
14187
- let O = bs;
14189
+ let N = bs;
14188
14190
  class Mr {
14189
14191
  constructor(t, e) {
14190
14192
  this.object = t, this.id = -1, this.cells = [], this.hasZeroBounds = !1, this.gridSize = e, this.bounds = t.bounds, this.hasZeroBounds = this.bounds.hasZeroDimensions(), this.leftX = Math.floor(this.bounds.left / this.gridSize), this.rightX = Math.floor(this.bounds.right / this.gridSize), this.bottomY = Math.floor(this.bounds.bottom / this.gridSize), this.topY = Math.floor(this.bounds.top / this.gridSize);
@@ -14313,14 +14315,14 @@ class Xa extends Mr {
14313
14315
  var i, s, n;
14314
14316
  super(t, e), this.collider = t, this.id = -1, this.hasZeroBounds = !1, this.cells = [], this.gridSize = e;
14315
14317
  const o = t.bounds;
14316
- this.hasZeroBounds = o.hasZeroDimensions(), this.leftX = Math.floor(o.left / this.gridSize), this.rightX = Math.floor(o.right / this.gridSize), this.bottomY = Math.floor(o.bottom / this.gridSize), this.topY = Math.floor(o.top / this.gridSize), this.owner = t.owner, this.body = (i = this.owner) == null ? void 0 : i.get(O), this.collisionType = (n = (s = this.body) == null ? void 0 : s.collisionType) != null ? n : R.PreventCollision;
14318
+ this.hasZeroBounds = o.hasZeroDimensions(), this.leftX = Math.floor(o.left / this.gridSize), this.rightX = Math.floor(o.right / this.gridSize), this.bottomY = Math.floor(o.bottom / this.gridSize), this.topY = Math.floor(o.top / this.gridSize), this.owner = t.owner, this.body = (i = this.owner) == null ? void 0 : i.get(N), this.collisionType = (n = (s = this.body) == null ? void 0 : s.collisionType) != null ? n : R.PreventCollision;
14317
14319
  }
14318
14320
  /**
14319
14321
  * Updates the hashed bounds coordinates
14320
14322
  */
14321
14323
  update() {
14322
14324
  var t, e, i;
14323
- super.update(), this.body = (t = this.owner) == null ? void 0 : t.get(O), this.collisionType = (i = (e = this.body) == null ? void 0 : e.collisionType) != null ? i : R.PreventCollision, this.hasZeroBounds = this.collider.localBounds.hasZeroDimensions();
14325
+ super.update(), this.body = (t = this.owner) == null ? void 0 : t.get(N), this.collisionType = (i = (e = this.body) == null ? void 0 : e.collisionType) != null ? i : R.PreventCollision, this.hasZeroBounds = this.collider.localBounds.hasZeroDimensions();
14324
14326
  }
14325
14327
  }
14326
14328
  class Xs {
@@ -14346,42 +14348,42 @@ class Xs {
14346
14348
  let T = ~~x, y = ~~p, C = 0, E = 0;
14347
14349
  d.x < 0 ? (v.x = -1, C = (x - T) * g) : (v.x = 1, C = (T + 1 - x) * g), d.y < 0 ? (v.y = -1, E = (p - y) * f) : (v.y = 1, E = (y + 1 - p) * f);
14348
14350
  const b = /* @__PURE__ */ new Set();
14349
- let D = !1, k = 9999;
14350
- for (; !D && k > 0 && (k--, !!this.hashGrid.bounds.contains(w(T * this.gridSize, y * this.gridSize))); ) {
14351
- const V = Vt.calculateHashKey(T, y), X = this.hashGrid.sparseHashGrid.get(V);
14351
+ let B = !1, L = 9999;
14352
+ for (; !B && L > 0 && (L--, !!this.hashGrid.bounds.contains(w(T * this.gridSize, y * this.gridSize))); ) {
14353
+ const z = Vt.calculateHashKey(T, y), X = this.hashGrid.sparseHashGrid.get(z);
14352
14354
  if (X) {
14353
14355
  const st = [];
14354
14356
  for (let Y = 0; Y < X.proxies.length; Y++) {
14355
- const U = X.proxies[Y];
14356
- if (!b.has(U.collider.id.value)) {
14357
- if (b.add(U.collider.id.value), U.body) {
14358
- if (e != null && e.ignoreCollisionGroupAll && U.body.group === Ae.All)
14357
+ const H = X.proxies[Y];
14358
+ if (!b.has(H.collider.id.value)) {
14359
+ if (b.add(H.collider.id.value), H.body) {
14360
+ if (e != null && e.ignoreCollisionGroupAll && H.body.group === Ae.All)
14359
14361
  continue;
14360
- const ct = (l & U.body.group.category) !== 0;
14361
- if (U.body.group && !ct)
14362
+ const ct = (l & H.body.group.category) !== 0;
14363
+ if (H.body.group && !ct)
14362
14364
  continue;
14363
14365
  }
14364
- const ot = U.collider.rayCast(t, a);
14366
+ const ot = H.collider.rayCast(t, a);
14365
14367
  ot && st.push(ot);
14366
14368
  }
14367
14369
  }
14368
- st.sort((Y, U) => Y.distance - U.distance);
14370
+ st.sort((Y, H) => Y.distance - H.distance);
14369
14371
  for (let Y = 0; Y < st.length; Y++) {
14370
- const U = st[Y];
14372
+ const H = st[Y];
14371
14373
  if (e != null && e.filter) {
14372
- if (e.filter(U) && (o.push(U), !c)) {
14373
- D = !0;
14374
+ if (e.filter(H) && (o.push(H), !c)) {
14375
+ B = !0;
14374
14376
  break;
14375
14377
  }
14376
- } else if (o.push(U), !c) {
14377
- D = !0;
14378
+ } else if (o.push(H), !c) {
14379
+ B = !0;
14378
14380
  break;
14379
14381
  }
14380
14382
  }
14381
14383
  }
14382
14384
  C < E ? (T += v.x, C += g) : (y += v.y, E += f);
14383
14385
  }
14384
- return o.sort((V, X) => V.distance - X.distance), !c && o.length ? [o[0]] : o;
14386
+ return o.sort((z, X) => z.distance - X.distance), !c && o.length ? [o[0]] : o;
14385
14387
  }
14386
14388
  /**
14387
14389
  * Adds the collider to the internal data structure for collision tracking
@@ -14622,10 +14624,10 @@ class Ys {
14622
14624
  s.cancel();
14623
14625
  continue;
14624
14626
  }
14625
- const o = G.fromDirection(s.mtv), a = s.mtv.negate(), h = Math.abs(s.info.separation);
14626
- this.distanceMap.set(s.id, h), this.directionMap.set(s.id, o === G.Left || o === G.Right ? "horizontal" : "vertical"), s.colliderA.events.emit("precollision", new Ee(s.colliderA, s.colliderB, o, a, s)), s.colliderB.events.emit(
14627
+ const o = V.fromDirection(s.mtv), a = s.mtv.negate(), h = Math.abs(s.info.separation);
14628
+ this.distanceMap.set(s.id, h), this.directionMap.set(s.id, o === V.Left || o === V.Right ? "horizontal" : "vertical"), s.colliderA.events.emit("precollision", new Ee(s.colliderA, s.colliderB, o, a, s)), s.colliderB.events.emit(
14627
14629
  "precollision",
14628
- new Ee(s.colliderB, s.colliderA, G.getOpposite(o), a.negate(), s)
14630
+ new Ee(s.colliderB, s.colliderA, V.getOpposite(o), a.negate(), s)
14629
14631
  );
14630
14632
  }
14631
14633
  this._compositeContactsIds.clear();
@@ -14636,13 +14638,13 @@ class Ys {
14636
14638
  const n = t[s];
14637
14639
  if (n.isCanceled())
14638
14640
  continue;
14639
- const o = n.colliderA, a = n.colliderB, h = (e = o.owner) == null ? void 0 : e.get(O), l = (i = a.owner) == null ? void 0 : i.get(O);
14641
+ const o = n.colliderA, a = n.colliderB, h = (e = o.owner) == null ? void 0 : e.get(N), l = (i = a.owner) == null ? void 0 : i.get(N);
14640
14642
  if (h && l && (h.collisionType === R.Passive || l.collisionType === R.Passive))
14641
14643
  continue;
14642
- const c = G.fromDirection(n.mtv), d = n.mtv.negate();
14644
+ const c = V.fromDirection(n.mtv), d = n.mtv.negate();
14643
14645
  n.colliderA.events.emit("postcollision", new Ie(n.colliderA, n.colliderB, c, d, n)), n.colliderB.events.emit(
14644
14646
  "postcollision",
14645
- new Ie(n.colliderB, n.colliderA, G.getOpposite(c), d.negate(), n)
14647
+ new Ie(n.colliderB, n.colliderA, V.getOpposite(c), d.negate(), n)
14646
14648
  );
14647
14649
  }
14648
14650
  }
@@ -14657,7 +14659,7 @@ class Ys {
14657
14659
  return;
14658
14660
  }
14659
14661
  let n = t.mtv;
14660
- const o = t.colliderA, a = t.colliderB, h = (e = o.owner) == null ? void 0 : e.get(O), l = (i = a.owner) == null ? void 0 : i.get(O);
14662
+ const o = t.colliderA, a = t.colliderB, h = (e = o.owner) == null ? void 0 : e.get(N), l = (i = a.owner) == null ? void 0 : i.get(N);
14661
14663
  if (h && l) {
14662
14664
  if (h.collisionType === R.Passive || l.collisionType === R.Passive)
14663
14665
  return;
@@ -14668,7 +14670,7 @@ class Ys {
14668
14670
  var e, i;
14669
14671
  if (t.isCanceled())
14670
14672
  return;
14671
- const s = t.colliderA, n = t.colliderB, o = (e = s.owner) == null ? void 0 : e.get(O), a = (i = n.owner) == null ? void 0 : i.get(O);
14673
+ const s = t.colliderA, n = t.colliderB, o = (e = s.owner) == null ? void 0 : e.get(N), a = (i = n.owner) == null ? void 0 : i.get(N);
14672
14674
  if (o && a) {
14673
14675
  if (o.collisionType === R.Passive || a.collisionType === R.Passive)
14674
14676
  return;
@@ -14751,8 +14753,8 @@ class $s {
14751
14753
  l.cancel();
14752
14754
  continue;
14753
14755
  }
14754
- const c = G.fromDirection(l.mtv), d = Math.abs(((e = l == null ? void 0 : l.info) == null ? void 0 : e.separation) || 0);
14755
- this.distanceMap.set(l.id, d), this.directionMap.set(l.id, c === G.Left || c === G.Right ? "horizontal" : "vertical"), l.colliderA.events.emit(
14756
+ const c = V.fromDirection(l.mtv), d = Math.abs(((e = l == null ? void 0 : l.info) == null ? void 0 : e.separation) || 0);
14757
+ this.distanceMap.set(l.id, d), this.directionMap.set(l.id, c === V.Left || c === V.Right ? "horizontal" : "vertical"), l.colliderA.events.emit(
14756
14758
  "precollision",
14757
14759
  new Ee(l.colliderA, l.colliderB, c, l.mtv, l)
14758
14760
  ), l.colliderA.events.emit(
@@ -14760,10 +14762,10 @@ class $s {
14760
14762
  new qi(l.colliderA, l.colliderB, c, l.mtv, l)
14761
14763
  ), l.colliderB.events.emit(
14762
14764
  "precollision",
14763
- new Ee(l.colliderB, l.colliderA, G.getOpposite(c), l.mtv.negate(), l)
14765
+ new Ee(l.colliderB, l.colliderA, V.getOpposite(c), l.mtv.negate(), l)
14764
14766
  ), l.colliderB.events.emit(
14765
14767
  "beforecollisionresolve",
14766
- new qi(l.colliderB, l.colliderA, G.getOpposite(c), l.mtv.negate(), l)
14768
+ new qi(l.colliderB, l.colliderA, V.getOpposite(c), l.mtv.negate(), l)
14767
14769
  ), l.matchAwake();
14768
14770
  }
14769
14771
  const a = Array.from(this.idToContactConstraint.keys());
@@ -14775,10 +14777,10 @@ class $s {
14775
14777
  const _ = l.bodyA, g = l.colliderA, f = l.bodyB, x = l.colliderB;
14776
14778
  if (_ && f)
14777
14779
  for (let p = 0; p < l.points.length; p++) {
14778
- const v = l.points[p], T = l.normal, y = l.tangent, C = v.sub(g.center), E = v.sub(x.center), b = C.cross(T), D = E.cross(T), k = _.inverseMass + f.inverseMass + _.inverseInertia * b * b + f.inverseInertia * D * D, V = C.cross(y), X = E.cross(y), st = _.inverseMass + f.inverseMass + _.inverseInertia * V * V + f.inverseInertia * X * X;
14779
- d[u] && ((n = (s = d[u]) == null ? void 0 : s.point) == null ? void 0 : n.squareDistance(v)) < 4 ? (d[u].point = v, d[u].local = l.localPoints[u]) : d[u] = new Ya(v, l.localPoints[u], l), d[u].aToContact = C, d[u].bToContact = E, d[u].normalMass = 1 / k, d[u].tangentMass = 1 / st;
14780
- const Y = _.bounciness > f.bounciness ? _.bounciness : f.bounciness, U = l.normal.dot(d[u].getRelativeVelocity());
14781
- d[u].originalVelocityAndRestitution = 0, U < -0.1 && (d[u].originalVelocityAndRestitution = -Y * U), u++;
14780
+ const v = l.points[p], T = l.normal, y = l.tangent, C = v.sub(g.center), E = v.sub(x.center), b = C.cross(T), B = E.cross(T), L = _.inverseMass + f.inverseMass + _.inverseInertia * b * b + f.inverseInertia * B * B, z = C.cross(y), X = E.cross(y), st = _.inverseMass + f.inverseMass + _.inverseInertia * z * z + f.inverseInertia * X * X;
14781
+ d[u] && ((n = (s = d[u]) == null ? void 0 : s.point) == null ? void 0 : n.squareDistance(v)) < 4 ? (d[u].point = v, d[u].local = l.localPoints[u]) : d[u] = new Ya(v, l.localPoints[u], l), d[u].aToContact = C, d[u].bToContact = E, d[u].normalMass = 1 / L, d[u].tangentMass = 1 / st;
14782
+ const Y = _.bounciness > f.bounciness ? _.bounciness : f.bounciness, H = l.normal.dot(d[u].getRelativeVelocity());
14783
+ d[u].originalVelocityAndRestitution = 0, H < -0.1 && (d[u].originalVelocityAndRestitution = -Y * H), u++;
14782
14784
  }
14783
14785
  this.idToContactConstraint.set(l.id, d);
14784
14786
  }
@@ -14801,7 +14803,7 @@ class $s {
14801
14803
  continue;
14802
14804
  s.updateMotion(), n.updateMotion();
14803
14805
  }
14804
- const o = G.fromDirection(i.mtv);
14806
+ const o = V.fromDirection(i.mtv);
14805
14807
  i.colliderA.events.emit(
14806
14808
  "postcollision",
14807
14809
  new Ie(i.colliderA, i.colliderB, o, i.mtv, i)
@@ -14810,10 +14812,10 @@ class $s {
14810
14812
  new Xi(i.colliderA, i.colliderB, o, i.mtv, i)
14811
14813
  ), i.colliderB.events.emit(
14812
14814
  "postcollision",
14813
- new Ie(i.colliderB, i.colliderA, G.getOpposite(o), i.mtv.negate(), i)
14815
+ new Ie(i.colliderB, i.colliderA, V.getOpposite(o), i.mtv.negate(), i)
14814
14816
  ), i.colliderB.events.emit(
14815
14817
  "aftercollisionresolve",
14816
- new Xi(i.colliderB, i.colliderA, G.getOpposite(o), i.mtv.negate(), i)
14818
+ new Xi(i.colliderB, i.colliderA, V.getOpposite(o), i.mtv.negate(), i)
14817
14819
  );
14818
14820
  }
14819
14821
  this.lastFrameContacts.clear();
@@ -14900,7 +14902,7 @@ class ys extends Mt {
14900
14902
  constructor(t, e) {
14901
14903
  super(), this.world = t, this.physics = e, this.systemType = Rt.Update, this._physicsConfigDirty = !1, this.query = this.world.query({
14902
14904
  components: {
14903
- all: [A, H]
14905
+ all: [A, O]
14904
14906
  },
14905
14907
  tags: {
14906
14908
  not: this.physics.config.integration.onScreenOnly ? ["ex.offscreen"] : []
@@ -14913,9 +14915,9 @@ class ys extends Mt {
14913
14915
  let e, i;
14914
14916
  const s = this.query.entities, o = this.physics.config.substep;
14915
14917
  for (let a = 0; a < s.length; a++) {
14916
- if (e = s[a].get(A), i = s[a].get(H), i.integration.onScreenOnly && s[a].hasTag("ex.offscreen"))
14918
+ if (e = s[a].get(A), i = s[a].get(O), i.integration.onScreenOnly && s[a].hasTag("ex.offscreen"))
14917
14919
  continue;
14918
- const h = s[a].get(O);
14920
+ const h = s[a].get(N);
14919
14921
  if (this._physicsConfigDirty && h && h.updatePhysicsConfig(this.physics.config.bodies), h != null && h.isSleeping)
14920
14922
  continue;
14921
14923
  const l = i.acc.clone();
@@ -14923,7 +14925,7 @@ class ys extends Mt {
14923
14925
  }
14924
14926
  this._physicsConfigDirty && (this._physicsConfigDirty = !1, this.query = this.world.query({
14925
14927
  components: {
14926
- all: [A, H]
14928
+ all: [A, O]
14927
14929
  },
14928
14930
  tags: {
14929
14931
  not: this.physics.config.integration.onScreenOnly ? ["ex.offscreen"] : []
@@ -14932,7 +14934,7 @@ class ys extends Mt {
14932
14934
  }
14933
14935
  captureOldTransformWithChildren(t) {
14934
14936
  var e;
14935
- (e = t.get(O)) == null || e.captureOldTransform();
14937
+ (e = t.get(N)) == null || e.captureOldTransform();
14936
14938
  for (let i = 0; i < t.children.length; i++)
14937
14939
  this.captureOldTransformWithChildren(t.children[i]);
14938
14940
  }
@@ -15007,12 +15009,12 @@ class Cs extends Mt {
15007
15009
  runContactStartEnd() {
15008
15010
  for (const [t, e] of this._currentFrameContacts)
15009
15011
  if (!this._lastFrameContacts.has(t)) {
15010
- const i = e.colliderA, s = e.colliderB, n = G.fromDirection(e.mtv), o = G.getOpposite(n);
15012
+ const i = e.colliderA, s = e.colliderB, n = V.fromDirection(e.mtv), o = V.getOpposite(n);
15011
15013
  i.events.emit("collisionstart", new ui(i, s, n, e)), i.events.emit("contactstart", new Gi(i, s, n, e)), s.events.emit("collisionstart", new ui(s, i, o, e)), s.events.emit("contactstart", new Gi(s, i, o, e));
15012
15014
  }
15013
15015
  for (const [t, e] of this._lastFrameContacts)
15014
15016
  if (!this._currentFrameContacts.has(t)) {
15015
- const i = e.colliderA, s = e.colliderB, n = G.fromDirection(e.mtv), o = G.getOpposite(n);
15017
+ const i = e.colliderA, s = e.colliderB, n = V.fromDirection(e.mtv), o = V.getOpposite(n);
15016
15018
  i.events.emit("collisionend", new _i(i, s, n, e)), i.events.emit("contactend", new Vi(i, s, n, e)), s.events.emit("collisionend", new _i(s, i, o, e)), s.events.emit("contactend", new Vi(s, i, o, e));
15017
15019
  }
15018
15020
  }
@@ -15021,7 +15023,7 @@ Cs.priority = Zt.Higher;
15021
15023
  class $a {
15022
15024
  constructor(t) {
15023
15025
  this.$configUpdate = new mt(), this._configDirty = !1, this.config = t, this.$configUpdate.subscribe((e) => {
15024
- this._configDirty = !0, O.updateDefaultPhysicsConfig(e.bodies);
15026
+ this._configDirty = !0, N.updateDefaultPhysicsConfig(e.bodies);
15025
15027
  }), this._config.spatialPartition === pi.SparseHashGrid ? this._collisionProcessor = new Xs(this._config.sparseHashGrid) : this._collisionProcessor = new $i(this._config);
15026
15028
  }
15027
15029
  get config() {
@@ -15846,7 +15848,7 @@ class Qa {
15846
15848
  return this._instance.playbackRate.value;
15847
15849
  }
15848
15850
  }
15849
- class Lr extends L {
15851
+ class Lr extends k {
15850
15852
  constructor(t, e = "MediaEvent") {
15851
15853
  super(), this.target = t, this._name = e;
15852
15854
  }
@@ -16828,15 +16830,15 @@ class oh extends It {
16828
16830
  */
16829
16831
  constructor(t) {
16830
16832
  var e, i, s;
16831
- super([], t.name), this.events = new $(), this._token = 0, this.logger = I.getInstance(), this.tiles = [], this._rows = [], this._cols = [], this.renderFromTopOfGraphic = !1, this.meshingLookBehind = 10, this._collidersDirty = !0, this._oldRotation = 0, this._originalOffsets = /* @__PURE__ */ new WeakMap(), this.meshingLookBehind = (e = t.meshingLookBehind) != null ? e : this.meshingLookBehind, this.addComponent(new A()), this.addComponent(new H()), this.addComponent(
16832
- new O({
16833
+ super([], t.name), this.events = new $(), this._token = 0, this.logger = I.getInstance(), this.tiles = [], this._rows = [], this._cols = [], this.renderFromTopOfGraphic = !1, this.meshingLookBehind = 10, this._collidersDirty = !0, this._oldRotation = 0, this._originalOffsets = /* @__PURE__ */ new WeakMap(), this.meshingLookBehind = (e = t.meshingLookBehind) != null ? e : this.meshingLookBehind, this.addComponent(new A()), this.addComponent(new O()), this.addComponent(
16834
+ new N({
16833
16835
  type: R.Fixed
16834
16836
  })
16835
16837
  ), this.addComponent(
16836
16838
  new Z({
16837
16839
  onPostDraw: (o, a) => this.draw(o, a)
16838
16840
  })
16839
- ), this.addComponent(new _s((o, a) => this.debug(o, a), !1)), this.addComponent(new et()), this.addComponent(new _e()), this.pointer = this.get(_e), this._graphics = this.get(Z), this.transform = this.get(A), this._motion = this.get(H), this.collider = this.get(et), this._composite = this.collider.useCompositeCollider([]), this.transform.pos = (i = t.pos) != null ? i : m.Zero, this._oldPos = this.transform.pos.clone(), this._oldScale = this.transform.scale.clone(), this.renderFromTopOfGraphic = (s = t.renderFromTopOfGraphic) != null ? s : this.renderFromTopOfGraphic, this.tileWidth = t.tileWidth, this.tileHeight = t.tileHeight, this.rows = t.rows, this.columns = t.columns, this._pointerEventDispatcher = new Ss(), this.tiles = new Array(this.rows * this.columns), this._rows = new Array(this.rows), this._cols = new Array(this.columns);
16841
+ ), this.addComponent(new _s((o, a) => this.debug(o, a), !1)), this.addComponent(new et()), this.addComponent(new _e()), this.pointer = this.get(_e), this._graphics = this.get(Z), this.transform = this.get(A), this._motion = this.get(O), this.collider = this.get(et), this._composite = this.collider.useCompositeCollider([]), this.transform.pos = (i = t.pos) != null ? i : m.Zero, this._oldPos = this.transform.pos.clone(), this._oldScale = this.transform.scale.clone(), this.renderFromTopOfGraphic = (s = t.renderFromTopOfGraphic) != null ? s : this.renderFromTopOfGraphic, this.tileWidth = t.tileWidth, this.tileHeight = t.tileHeight, this.rows = t.rows, this.columns = t.columns, this._pointerEventDispatcher = new Ss(), this.tiles = new Array(this.rows * this.columns), this._rows = new Array(this.rows), this._cols = new Array(this.columns);
16840
16842
  let n = [];
16841
16843
  for (let o = 0; o < this.columns; o++) {
16842
16844
  for (let a = 0; a < this.rows; a++) {
@@ -17389,7 +17391,7 @@ class Gl extends It {
17389
17391
  super(
17390
17392
  [
17391
17393
  new A(),
17392
- new O({
17394
+ new N({
17393
17395
  type: R.Fixed
17394
17396
  }),
17395
17397
  new et(),
@@ -17969,7 +17971,7 @@ class ph {
17969
17971
  }
17970
17972
  if (t.snapToPixel) {
17971
17973
  const e = this.drawPos.clone(this._snapPos);
17972
- e.x = ~~(e.x + B * q(e.x)), e.y = ~~(e.y + B * q(e.y)), e.clone(this.drawPos), this.updateTransform(e);
17974
+ e.x = ~~(e.x + D * q(e.x)), e.y = ~~(e.y + D * q(e.y)), e.clone(this.drawPos), this.updateTransform(e);
17973
17975
  }
17974
17976
  t.multiply(this.transform);
17975
17977
  }
@@ -18040,22 +18042,22 @@ class Gr extends Mt {
18040
18042
  m.fromAngle(o.rotation).scale(50).add(m.Zero),
18041
18043
  a.rotationColor,
18042
18044
  2
18043
- ), this._graphicsContext.debug.drawText(`rot deg(${no(o.rotation).toFixed(2)})`, C), C = C.add(E)), (a.showAll || a.showScale) && this._graphicsContext.drawLine(m.Zero, o.scale.add(m.Zero), a.scaleColor, 2)), _ = y.get(Z), _ && (g.showAll || g.showBounds) && _.localBounds.draw(this._graphicsContext, g.boundsColor), f = y.get(_s), f && (f.useTransform || this._graphicsContext.restore(), f.draw(this._graphicsContext, this._engine.debug), f.useTransform || (this._graphicsContext.save(), this._applyTransform(y))), x = y.get(O), x && ((p.showAll || p.showCollisionGroup) && (this._graphicsContext.debug.drawText(`collision group(${x.group.name})`, C), C = C.add(E)), (p.showAll || p.showCollisionType) && (this._graphicsContext.debug.drawText(`collision type(${x.collisionType})`, C), C = C.add(E)), (p.showAll || p.showMass) && (this._graphicsContext.debug.drawText(`mass(${x.mass})`, C), C = C.add(E)), (p.showAll || p.showMotion) && (this._graphicsContext.debug.drawText(`motion(${x.sleepMotion})`, C), C = C.add(E)), (p.showAll || p.showSleeping) && (this._graphicsContext.debug.drawText(`sleeping(${x.canSleep ? x.isSleeping : "cant sleep"})`, C), C = C.add(E))), this._graphicsContext.restore(), this._graphicsContext.save(), o.coordPlane === ht.Screen && this._graphicsContext.translate(this._engine.screen.contentArea.left, this._engine.screen.contentArea.top), this._graphicsContext.z = a.debugZIndex, h = y.get(H), h && ((l.showAll || l.showVelocity) && (this._graphicsContext.debug.drawText(`vel${h.vel.toString(2)}`, C.add(o.globalPos)), this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.vel), l.velocityColor, 2), C = C.add(E)), (l.showAll || l.showAcceleration) && this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.acc), l.accelerationColor, 2)), c = y.get(et), c) {
18045
+ ), this._graphicsContext.debug.drawText(`rot deg(${no(o.rotation).toFixed(2)})`, C), C = C.add(E)), (a.showAll || a.showScale) && this._graphicsContext.drawLine(m.Zero, o.scale.add(m.Zero), a.scaleColor, 2)), _ = y.get(Z), _ && (g.showAll || g.showBounds) && _.localBounds.draw(this._graphicsContext, g.boundsColor), f = y.get(_s), f && (f.useTransform || this._graphicsContext.restore(), f.draw(this._graphicsContext, this._engine.debug), f.useTransform || (this._graphicsContext.save(), this._applyTransform(y))), x = y.get(N), x && ((p.showAll || p.showCollisionGroup) && (this._graphicsContext.debug.drawText(`collision group(${x.group.name})`, C), C = C.add(E)), (p.showAll || p.showCollisionType) && (this._graphicsContext.debug.drawText(`collision type(${x.collisionType})`, C), C = C.add(E)), (p.showAll || p.showMass) && (this._graphicsContext.debug.drawText(`mass(${x.mass})`, C), C = C.add(E)), (p.showAll || p.showMotion) && (this._graphicsContext.debug.drawText(`motion(${x.sleepMotion})`, C), C = C.add(E)), (p.showAll || p.showSleeping) && (this._graphicsContext.debug.drawText(`sleeping(${x.canSleep ? x.isSleeping : "cant sleep"})`, C), C = C.add(E))), this._graphicsContext.restore(), this._graphicsContext.save(), o.coordPlane === ht.Screen && this._graphicsContext.translate(this._engine.screen.contentArea.left, this._engine.screen.contentArea.top), this._graphicsContext.z = a.debugZIndex, h = y.get(O), h && ((l.showAll || l.showVelocity) && (this._graphicsContext.debug.drawText(`vel${h.vel.toString(2)}`, C.add(o.globalPos)), this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.vel), l.velocityColor, 2), C = C.add(E)), (l.showAll || l.showAcceleration) && this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.acc), l.accelerationColor, 2)), c = y.get(et), c) {
18044
18046
  const b = c.get();
18045
18047
  if ((d.showAll || d.showGeometry) && b && b.debug(this._graphicsContext, d.geometryColor, {
18046
18048
  lineWidth: d.geometryLineWidth,
18047
18049
  pointSize: d.geometryPointSize
18048
18050
  }), d.showAll || d.showBounds) {
18049
18051
  if (b instanceof lt) {
18050
- const D = b.getColliders();
18051
- for (const k of D) {
18052
- const V = k.bounds, X = w(V.left, V.top);
18053
- this._graphicsContext.debug.drawRect(X.x, X.y, V.width, V.height, { color: d.boundsColor }), (d.showAll || d.showOwner) && this._graphicsContext.debug.drawText(`owner id(${k.owner.id})`, X);
18052
+ const B = b.getColliders();
18053
+ for (const L of B) {
18054
+ const z = L.bounds, X = w(z.left, z.top);
18055
+ this._graphicsContext.debug.drawRect(X.x, X.y, z.width, z.height, { color: d.boundsColor }), (d.showAll || d.showOwner) && this._graphicsContext.debug.drawText(`owner id(${L.owner.id})`, X);
18054
18056
  }
18055
18057
  c.bounds.draw(this._graphicsContext, d.boundsColor);
18056
18058
  } else if (b) {
18057
- const D = c.bounds, k = w(D.left, D.top);
18058
- this._graphicsContext.debug.drawRect(k.x, k.y, D.width, D.height, { color: d.boundsColor }), (d.showAll || d.showOwner) && this._graphicsContext.debug.drawText(`owner id(${c.owner.id})`, k);
18059
+ const B = c.bounds, L = w(B.left, B.top);
18060
+ this._graphicsContext.debug.drawRect(L.x, L.y, B.width, B.height, { color: d.boundsColor }), (d.showAll || d.showOwner) && this._graphicsContext.debug.drawText(`owner id(${c.owner.id})`, L);
18059
18061
  }
18060
18062
  }
18061
18063
  }
@@ -18441,7 +18443,7 @@ function $r() {
18441
18443
  return Xr() ? (r = window, I.getInstance().warnOnce("Excalibur might be in a cross-origin iframe, in order to receive keyboard events it must be in focus")) : Yr() ? (r = window, I.getInstance().warnOnce("Excalibur might be in a iframe, in order to receive keyboard events it must be in focus")) : r = window.top, r;
18442
18444
  }
18443
18445
  var wh = /* @__PURE__ */ ((r) => (r.Backquote = "Backquote", r.Backslash = "Backslash", r.BracketLeft = "BracketLeft", r.BracketRight = "BracketRight", r.Comma = "Comma", r.Key0 = "Digit0", r.Key1 = "Digit1", r.Key2 = "Digit2", r.Key3 = "Digit3", r.Key4 = "Digit4", r.Key5 = "Digit5", r.Key6 = "Digit6", r.Key7 = "Digit7", r.Key8 = "Digit8", r.Key9 = "Digit9", r.Digit0 = "Digit0", r.Digit1 = "Digit1", r.Digit2 = "Digit2", r.Digit3 = "Digit3", r.Digit4 = "Digit4", r.Digit5 = "Digit5", r.Digit6 = "Digit6", r.Digit7 = "Digit7", r.Digit8 = "Digit8", r.Digit9 = "Digit9", r.Equal = "Equal", r.IntlBackslash = "IntlBackslash", r.IntlRo = "IntlRo", r.IntlYen = "IntlYen", r.A = "KeyA", r.B = "KeyB", r.C = "KeyC", r.D = "KeyD", r.E = "KeyE", r.F = "KeyF", r.G = "KeyG", r.H = "KeyH", r.I = "KeyI", r.J = "KeyJ", r.K = "KeyK", r.L = "KeyL", r.M = "KeyM", r.N = "KeyN", r.O = "KeyO", r.P = "KeyP", r.Q = "KeyQ", r.R = "KeyR", r.S = "KeyS", r.T = "KeyT", r.U = "KeyU", r.V = "KeyV", r.W = "KeyW", r.X = "KeyX", r.Y = "KeyY", r.Z = "KeyZ", r.KeyA = "KeyA", r.KeyB = "KeyB", r.KeyC = "KeyC", r.KeyD = "KeyD", r.KeyE = "KeyE", r.KeyF = "KeyF", r.KeyG = "KeyG", r.KeyH = "KeyH", r.KeyI = "KeyI", r.KeyJ = "KeyJ", r.KeyK = "KeyK", r.KeyL = "KeyL", r.KeyM = "KeyM", r.KeyN = "KeyN", r.KeyO = "KeyO", r.KeyP = "KeyP", r.KeyQ = "KeyQ", r.KeyR = "KeyR", r.KeyS = "KeyS", r.KeyT = "KeyT", r.KeyU = "KeyU", r.KeyV = "KeyV", r.KeyW = "KeyW", r.KeyX = "KeyX", r.KeyY = "KeyY", r.KeyZ = "KeyZ", r.Minus = "Minus", r.Period = "Period", r.Quote = "Quote", r.Semicolon = "Semicolon", r.Slash = "Slash", r.AltLeft = "AltLeft", r.AltRight = "AltRight", r.Alt = "Alt", r.AltGraph = "AltGraph", r.Backspace = "Backspace", r.CapsLock = "CapsLock", r.ContextMenu = "ContextMenu", r.ControlLeft = "ControlLeft", r.ControlRight = "ControlRight", r.Enter = "Enter", r.MetaLeft = "MetaLeft", r.MetaRight = "MetaRight", r.ShiftLeft = "ShiftLeft", r.ShiftRight = "ShiftRight", r.Space = "Space", r.Tab = "Tab", r.Convert = "Convert", r.KanaMode = "KanaMode", r.NonConvert = "NonConvert", r.Delete = "Delete", r.End = "End", r.Help = "Help", r.Home = "Home", r.Insert = "Insert", r.PageDown = "PageDown", r.PageUp = "PageUp", r.Up = "ArrowUp", r.Down = "ArrowDown", r.Left = "ArrowLeft", r.Right = "ArrowRight", r.ArrowUp = "ArrowUp", r.ArrowDown = "ArrowDown", r.ArrowLeft = "ArrowLeft", r.ArrowRight = "ArrowRight", r.NumLock = "NumLock", r.Numpad0 = "Numpad0", r.Numpad1 = "Numpad1", r.Numpad2 = "Numpad2", r.Numpad3 = "Numpad3", r.Numpad4 = "Numpad4", r.Numpad5 = "Numpad5", r.Numpad6 = "Numpad6", r.Numpad7 = "Numpad7", r.Numpad8 = "Numpad8", r.Numpad9 = "Numpad9", r.Num0 = "Numpad0", r.Num1 = "Numpad1", r.Num2 = "Numpad2", r.Num3 = "Numpad3", r.Num4 = "Numpad4", r.Num5 = "Numpad5", r.Num6 = "Numpad6", r.Num7 = "Numpad7", r.Num8 = "Numpad8", r.Num9 = "Numpad9", r.NumAdd = "NumpadAdd", r.NumpadAdd = "NumpadAdd", r.NumDecimal = "NumpadDecimal", r.NumpadDecimal = "NumpadDecimal", r.NumDivide = "NumpadDivide", r.NumpadDivide = "NumpadDivide", r.NumEnter = "NumpadEnter", r.NumpadEnter = "NumpadEnter", r.NumMultiply = "NumpadMultiply", r.NumpadMultiply = "NumpadMultiply", r.NumSubtract = "NumpadSubtract", r.NumpadSubtract = "NumpadSubtract", r.Esc = "Escape", r.Escape = "Escape", r.F1 = "F1", r.F2 = "F2", r.F3 = "F3", r.F4 = "F4", r.F5 = "F5", r.F6 = "F6", r.F7 = "F7", r.F8 = "F8", r.F9 = "F9", r.F10 = "F10", r.F11 = "F11", r.F12 = "F12", r.F13 = "F13", r.F14 = "F14", r.F15 = "F15", r.F16 = "F16", r.F17 = "F17", r.F18 = "F18", r.F19 = "F19", r.F20 = "F20", r.PrintScreen = "PrintScreen", r.ScrollLock = "ScrollLock", r.Pause = "Pause", r.Unidentified = "Unidentified", r))(wh || {});
18444
- class si extends L {
18446
+ class si extends k {
18445
18447
  /**
18446
18448
  * @param key The key responsible for throwing the event
18447
18449
  * @param value The key's typed value the browser detected
@@ -20280,8 +20282,8 @@ const Mi = class Kt {
20280
20282
  C.preventDefault(), this.clock.stop(), this._logger.fatalOnce("WebGL Graphics Lost", C);
20281
20283
  const b = document.createElement("div");
20282
20284
  b.id = "ex-webgl-graphics-context-lost", b.style.position = "absolute", b.style.zIndex = "99", b.style.left = "50%", b.style.top = "50%", b.style.display = "flex", b.style.flexDirection = "column", b.style.transform = "translate(-50%, -50%)", b.style.backgroundColor = "white", b.style.padding = "10px", b.style.borderStyle = "solid 1px";
20283
- const D = document.createElement("div");
20284
- if (D.innerHTML = `
20285
+ const B = document.createElement("div");
20286
+ if (B.innerHTML = `
20285
20287
  <h1>There was an issue rendering, please refresh the page.</h1>
20286
20288
  <div>
20287
20289
  <p>WebGL Graphics Context Lost</p>
@@ -20297,10 +20299,10 @@ const Mi = class Kt {
20297
20299
  <li>Graphics driver was updated</li>
20298
20300
  </ul>
20299
20301
  </div>
20300
- `, b.appendChild(D), (E = this.canvas) != null && E.parentElement) {
20302
+ `, b.appendChild(B), (E = this.canvas) != null && E.parentElement) {
20301
20303
  this.canvas.parentElement.appendChild(b);
20302
- const k = D.querySelector("#ex-webgl-graphics-reload");
20303
- k == null || k.addEventListener("click", () => location.reload());
20304
+ const L = B.querySelector("#ex-webgl-graphics-reload");
20305
+ L == null || L.addEventListener("click", () => location.reload());
20304
20306
  }
20305
20307
  }, this._performanceThresholdTriggered = !1, this._fpsSamples = [], this._disposed = !1, this._isLoading = !1, this._hideLoader = !1, this._isReadyFuture = new yt(), this.currentFrameElapsedMs = 0, this.currentFrameLagMs = 0, this._lagMs = 0, this._screenShotRequests = [];
20306
20308
  var e, i, s, n, o, a, h, l, c;
@@ -21280,7 +21282,7 @@ class Ql extends Ft {
21280
21282
  }
21281
21283
  class to {
21282
21284
  constructor(t, e) {
21283
- this.id = N(), this._stopped = !1, this._sequenceBuilder = e, this._sequenceContext = new Ri(t), this._actionQueue = this._sequenceContext.getQueue(), this._sequenceBuilder(this._sequenceContext);
21285
+ this.id = W(), this._stopped = !1, this._sequenceBuilder = e, this._sequenceContext = new Ri(t), this._actionQueue = this._sequenceContext.getQueue(), this._sequenceBuilder(this._sequenceContext);
21284
21286
  }
21285
21287
  update(t) {
21286
21288
  this._actionQueue.update(t);
@@ -21300,7 +21302,7 @@ class to {
21300
21302
  }
21301
21303
  class Jl {
21302
21304
  constructor(t) {
21303
- this.id = N(), this._actions = t;
21305
+ this.id = W(), this._actions = t;
21304
21306
  }
21305
21307
  update(t) {
21306
21308
  for (let e = 0; e < this._actions.length; e++)
@@ -22209,7 +22211,7 @@ class wc {
22209
22211
  }
22210
22212
  }
22211
22213
  }
22212
- const an = "0.32.0-alpha.1564+00e394f";
22214
+ const an = "0.32.0-alpha.1565+76be137";
22213
22215
  hn();
22214
22216
  export {
22215
22217
  Nn as ActionCompleteEvent,
@@ -22236,7 +22238,7 @@ export {
22236
22238
  lr as BaseAlign,
22237
22239
  Ci as BezierCurve,
22238
22240
  Ha as Blink,
22239
- O as BodyComponent,
22241
+ N as BodyComponent,
22240
22242
  M as BoundingBox,
22241
22243
  en as BrowserComponent,
22242
22244
  Ah as BrowserEvents,
@@ -22332,7 +22334,7 @@ export {
22332
22334
  Eh as FpsSampler,
22333
22335
  wi as FrameStats,
22334
22336
  yt as Future,
22335
- L as GameEvent,
22337
+ k as GameEvent,
22336
22338
  wn as GameStartEvent,
22337
22339
  bn as GameStopEvent,
22338
22340
  Ui as Gamepad,
@@ -22359,7 +22361,7 @@ export {
22359
22361
  er as HorizontalFirst,
22360
22362
  vt as ImageFiltering,
22361
22363
  Xt as ImageSource,
22362
- z as ImageSourceAttributeConstants,
22364
+ U as ImageSourceAttributeConstants,
22363
22365
  gt as ImageWrapping,
22364
22366
  Qe as InitializeEvent,
22365
22367
  jr as InputHost,
@@ -22387,7 +22389,7 @@ export {
22387
22389
  ro as MatrixLocations,
22388
22390
  Lr as MediaEvent,
22389
22391
  ki as Meet,
22390
- H as MotionComponent,
22392
+ O as MotionComponent,
22391
22393
  ys as MotionSystem,
22392
22394
  Ws as MoveBy,
22393
22395
  Ta as MoveByWithOptions,
@@ -22479,7 +22481,7 @@ export {
22479
22481
  wo as SeparationInfo,
22480
22482
  Ht as Shader,
22481
22483
  ft as Shape,
22482
- G as Side,
22484
+ V as Side,
22483
22485
  pc as Slide,
22484
22486
  ls as SolverStrategy,
22485
22487
  kr as Sound,
@@ -22605,11 +22607,11 @@ export {
22605
22607
  yi as lerpVector,
22606
22608
  as as linear,
22607
22609
  Nh as maxMessages,
22608
- N as nextActionId,
22610
+ W as nextActionId,
22609
22611
  vc as obsolete,
22610
22612
  Ke as parseImageFiltering,
22611
22613
  Ut as parseImageWrapping,
22612
- B as pixelSnapEpsilon,
22614
+ D as pixelSnapEpsilon,
22613
22615
  Gt as randomInRange,
22614
22616
  Xh as randomIntInRange,
22615
22617
  qh as range,