evotars 0.0.15 → 0.0.17

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.
@@ -13,7 +13,7 @@ const ki = (i) => {
13
13
  else
14
14
  throw new Error("Invalid extension type");
15
15
  return typeof i.type == "string" && (i.type = [i.type]), i;
16
- }, Oe = (i, t) => ki(i).priority ?? t, ft = {
16
+ }, Oe = (i, t) => ki(i).priority ?? t, dt = {
17
17
  /** @ignore */
18
18
  _addHandlers: {},
19
19
  /** @ignore */
@@ -126,7 +126,7 @@ const ki = (i) => {
126
126
  },
127
127
  test: () => !0,
128
128
  load: async () => {
129
- await import("./browserAll-CctCOtCx.js");
129
+ await import("./browserAll-zTAvu1L3.js");
130
130
  }
131
131
  }, An = {
132
132
  extension: {
@@ -136,10 +136,10 @@ const ki = (i) => {
136
136
  },
137
137
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
138
138
  load: async () => {
139
- await import("./webworkerAll-B33vuHnD.js");
139
+ await import("./webworkerAll-D0zJeDoF.js");
140
140
  }
141
141
  };
142
- class at {
142
+ class nt {
143
143
  /**
144
144
  * Creates a new `ObservablePoint`
145
145
  * @param observer - Observer to pass to listen for change events.
@@ -155,7 +155,7 @@ class at {
155
155
  * @returns a copy of this observable point
156
156
  */
157
157
  clone(t) {
158
- return new at(t ?? this._observer, this._x, this._y);
158
+ return new nt(t ?? this._observer, this._x, this._y);
159
159
  }
160
160
  /**
161
161
  * Sets the point to a new `x` and `y` position.
@@ -1445,12 +1445,12 @@ var Dn = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Tt = function(i) {
1445
1445
  return typeof i == "string" ? i.length > 0 : typeof i == "number";
1446
1446
  }, K = function(i, t, e) {
1447
1447
  return t === void 0 && (t = 0), e === void 0 && (e = Math.pow(10, t)), Math.round(e * i) / e + 0;
1448
- }, dt = function(i, t, e) {
1448
+ }, ut = function(i, t, e) {
1449
1449
  return t === void 0 && (t = 0), e === void 0 && (e = 1), i > e ? e : i > t ? i : t;
1450
1450
  }, ur = function(i) {
1451
1451
  return (i = isFinite(i) ? i % 360 : 0) > 0 ? i : i + 360;
1452
1452
  }, _s = function(i) {
1453
- return { r: dt(i.r, 0, 255), g: dt(i.g, 0, 255), b: dt(i.b, 0, 255), a: dt(i.a) };
1453
+ return { r: ut(i.r, 0, 255), g: ut(i.g, 0, 255), b: ut(i.b, 0, 255), a: ut(i.a) };
1454
1454
  }, di = function(i) {
1455
1455
  return { r: K(i.r), g: K(i.g), b: K(i.b), a: K(i.a, 3) };
1456
1456
  }, Un = /^#([0-9a-f]{3,8})$/i, He = function(i) {
@@ -1465,7 +1465,7 @@ var Dn = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Tt = function(i) {
1465
1465
  var n = Math.floor(t), a = s * (1 - e), o = s * (1 - (t - n) * e), h = s * (1 - (1 - t + n) * e), c = n % 6;
1466
1466
  return { r: 255 * [s, o, a, a, h, s][c], g: 255 * [h, s, s, o, a, a][c], b: 255 * [a, a, h, s, s, o][c], a: r };
1467
1467
  }, xs = function(i) {
1468
- return { h: ur(i.h), s: dt(i.s, 0, 100), l: dt(i.l, 0, 100), a: dt(i.a) };
1468
+ return { h: ur(i.h), s: ut(i.s, 0, 100), l: ut(i.l, 0, 100), a: ut(i.a) };
1469
1469
  }, bs = function(i) {
1470
1470
  return { h: K(i.h), s: K(i.s), l: K(i.l), a: K(i.a, 3) };
1471
1471
  }, ws = function(i) {
@@ -1500,7 +1500,7 @@ var Dn = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Tt = function(i) {
1500
1500
  if (!Tt(t) || !Tt(e) || !Tt(s))
1501
1501
  return null;
1502
1502
  var a = function(o) {
1503
- return { h: ur(o.h), s: dt(o.s, 0, 100), v: dt(o.v, 0, 100), a: dt(o.a) };
1503
+ return { h: ur(o.h), s: ut(o.s, 0, 100), v: ut(o.v, 0, 100), a: ut(o.a) };
1504
1504
  }({ h: Number(t), s: Number(e), v: Number(s), a: Number(n) });
1505
1505
  return fr(a);
1506
1506
  }, "hsv"]] }, vs = function(i, t) {
@@ -1514,12 +1514,12 @@ var Dn = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Tt = function(i) {
1514
1514
  return typeof i == "string" ? vs(i.trim(), Ei.string) : typeof i == "object" && i !== null ? vs(i, Ei.object) : [null, void 0];
1515
1515
  }, fi = function(i, t) {
1516
1516
  var e = Se(i);
1517
- return { h: e.h, s: dt(e.s + 100 * t, 0, 100), l: e.l, a: e.a };
1517
+ return { h: e.h, s: ut(e.s + 100 * t, 0, 100), l: e.l, a: e.a };
1518
1518
  }, pi = function(i) {
1519
1519
  return (299 * i.r + 587 * i.g + 114 * i.b) / 1e3 / 255;
1520
1520
  }, As = function(i, t) {
1521
1521
  var e = Se(i);
1522
- return { h: e.h, s: e.s, l: dt(e.l + 100 * t, 0, 100), a: e.a };
1522
+ return { h: e.h, s: e.s, l: ut(e.l + 100 * t, 0, 100), a: e.a };
1523
1523
  }, Ri = function() {
1524
1524
  function i(t) {
1525
1525
  this.parsed = Wn(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
@@ -2167,7 +2167,7 @@ class qn {
2167
2167
  }
2168
2168
  }
2169
2169
  const Bi = new qn();
2170
- ft.handleByList(B.MaskEffect, Bi._effectClasses);
2170
+ dt.handleByList(B.MaskEffect, Bi._effectClasses);
2171
2171
  const Kn = {
2172
2172
  _maskEffect: null,
2173
2173
  _filterEffect: null,
@@ -2892,11 +2892,11 @@ function na(i, t, e = {}) {
2892
2892
  for (const s in t)
2893
2893
  !e[s] && t[s] !== void 0 && (i[s] = t[s]);
2894
2894
  }
2895
- const gi = new at(null), yi = new at(null), _i = new at(null, 1, 1), Ps = 1, aa = 2, xi = 4;
2895
+ const gi = new nt(null), yi = new nt(null), _i = new nt(null, 1, 1), Ps = 1, aa = 2, xi = 4;
2896
2896
  class O extends Bt {
2897
2897
  constructor(t = {}) {
2898
2898
  var e, s;
2899
- super(), this.uid = et("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.updateTick = -1, this.localTransform = new D(), this.relativeGroupTransform = new D(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new at(this, 0, 0), this._scale = _i, this._pivot = yi, this._skew = gi, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didChangeId = 0, this._didLocalTransformChangeId = -1, na(this, t, {
2899
+ super(), this.uid = et("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.updateTick = -1, this.localTransform = new D(), this.relativeGroupTransform = new D(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new nt(this, 0, 0), this._scale = _i, this._pivot = yi, this._skew = gi, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didChangeId = 0, this._didLocalTransformChangeId = -1, na(this, t, {
2900
2900
  children: !0,
2901
2901
  parent: !0,
2902
2902
  effects: !0
@@ -3036,20 +3036,20 @@ class O extends Bt {
3036
3036
  * @since 4.0.0
3037
3037
  */
3038
3038
  get pivot() {
3039
- return this._pivot === yi && (this._pivot = new at(this, 0, 0)), this._pivot;
3039
+ return this._pivot === yi && (this._pivot = new nt(this, 0, 0)), this._pivot;
3040
3040
  }
3041
3041
  set pivot(t) {
3042
- this._pivot === yi && (this._pivot = new at(this, 0, 0)), typeof t == "number" ? this._pivot.set(t) : this._pivot.copyFrom(t);
3042
+ this._pivot === yi && (this._pivot = new nt(this, 0, 0)), typeof t == "number" ? this._pivot.set(t) : this._pivot.copyFrom(t);
3043
3043
  }
3044
3044
  /**
3045
3045
  * The skew factor for the object in radians.
3046
3046
  * @since 4.0.0
3047
3047
  */
3048
3048
  get skew() {
3049
- return this._skew === gi && (this._skew = new at(this, 0, 0)), this._skew;
3049
+ return this._skew === gi && (this._skew = new nt(this, 0, 0)), this._skew;
3050
3050
  }
3051
3051
  set skew(t) {
3052
- this._skew === gi && (this._skew = new at(this, 0, 0)), this._skew.copyFrom(t);
3052
+ this._skew === gi && (this._skew = new nt(this, 0, 0)), this._skew.copyFrom(t);
3053
3053
  }
3054
3054
  /**
3055
3055
  * The scale factors of this object along the local coordinate axes.
@@ -3058,10 +3058,10 @@ class O extends Bt {
3058
3058
  * @since 4.0.0
3059
3059
  */
3060
3060
  get scale() {
3061
- return this._scale === _i && (this._scale = new at(this, 1, 1)), this._scale;
3061
+ return this._scale === _i && (this._scale = new nt(this, 1, 1)), this._scale;
3062
3062
  }
3063
3063
  set scale(t) {
3064
- this._scale === _i && (this._scale = new at(this, 0, 0)), typeof t == "number" ? this._scale.set(t) : this._scale.copyFrom(t);
3064
+ this._scale === _i && (this._scale = new nt(this, 0, 0)), typeof t == "number" ? this._scale.set(t) : this._scale.copyFrom(t);
3065
3065
  }
3066
3066
  /**
3067
3067
  * The width of the Container, setting this will actually modify the scale to achieve the value set.
@@ -3262,7 +3262,7 @@ class xt extends O {
3262
3262
  super({
3263
3263
  label: "Sprite",
3264
3264
  ...o
3265
- }), this.renderPipeId = "sprite", this.batched = !0, this._didSpriteUpdate = !1, this._bounds = { minX: 0, maxX: 1, minY: 0, maxY: 0 }, this._sourceBounds = { minX: 0, maxX: 1, minY: 0, maxY: 0 }, this._boundsDirty = !0, this._sourceBoundsDirty = !0, this._roundPixels = 0, this._anchor = new at(
3265
+ }), this.renderPipeId = "sprite", this.batched = !0, this._didSpriteUpdate = !1, this._bounds = { minX: 0, maxX: 1, minY: 0, maxY: 0 }, this._sourceBounds = { minX: 0, maxX: 1, minY: 0, maxY: 0 }, this._boundsDirty = !0, this._sourceBoundsDirty = !0, this._roundPixels = 0, this._anchor = new nt(
3266
3266
  {
3267
3267
  _onUpdate: () => {
3268
3268
  this.onViewUpdate();
@@ -3610,9 +3610,9 @@ class bi {
3610
3610
  return this.next = t ? null : e, this.previous = null, e;
3611
3611
  }
3612
3612
  }
3613
- const Tr = class lt {
3613
+ const Tr = class ht {
3614
3614
  constructor() {
3615
- this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new bi(null, null, 1 / 0), this.deltaMS = 1 / lt.targetFPMS, this.elapsedMS = 1 / lt.targetFPMS, this._tick = (t) => {
3615
+ this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new bi(null, null, 1 / 0), this.deltaMS = 1 / ht.targetFPMS, this.elapsedMS = 1 / ht.targetFPMS, this._tick = (t) => {
3616
3616
  this._requestId = null, this.started && (this.update(t), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
3617
3617
  };
3618
3618
  }
@@ -3754,7 +3754,7 @@ const Tr = class lt {
3754
3754
  return;
3755
3755
  this._lastFrame = t - n % this._minElapsedMS;
3756
3756
  }
3757
- this.deltaMS = e, this.deltaTime = this.deltaMS * lt.targetFPMS;
3757
+ this.deltaMS = e, this.deltaTime = this.deltaMS * ht.targetFPMS;
3758
3758
  const s = this._head;
3759
3759
  let r = s.next;
3760
3760
  for (; r; )
@@ -3790,7 +3790,7 @@ const Tr = class lt {
3790
3790
  return 1e3 / this._maxElapsedMS;
3791
3791
  }
3792
3792
  set minFPS(t) {
3793
- const e = Math.min(this.maxFPS, t), s = Math.min(Math.max(0, e) / 1e3, lt.targetFPMS);
3793
+ const e = Math.min(this.maxFPS, t), s = Math.min(Math.max(0, e) / 1e3, ht.targetFPMS);
3794
3794
  this._maxElapsedMS = 1 / s;
3795
3795
  }
3796
3796
  /**
@@ -3858,11 +3858,11 @@ const Tr = class lt {
3858
3858
  * @static
3859
3859
  */
3860
3860
  static get shared() {
3861
- if (!lt._shared) {
3862
- const t = lt._shared = new lt();
3861
+ if (!ht._shared) {
3862
+ const t = ht._shared = new ht();
3863
3863
  t.autoStart = !0, t._protected = !0;
3864
3864
  }
3865
- return lt._shared;
3865
+ return ht._shared;
3866
3866
  }
3867
3867
  /**
3868
3868
  * The system ticker instance used by {@link BasePrepare} for core timing
@@ -3875,15 +3875,15 @@ const Tr = class lt {
3875
3875
  * @static
3876
3876
  */
3877
3877
  static get system() {
3878
- if (!lt._system) {
3879
- const t = lt._system = new lt();
3878
+ if (!ht._system) {
3879
+ const t = ht._system = new ht();
3880
3880
  t.autoStart = !0, t._protected = !0;
3881
3881
  }
3882
- return lt._system;
3882
+ return ht._system;
3883
3883
  }
3884
3884
  };
3885
3885
  Tr.targetFPMS = 0.06;
3886
- let ht = Tr, wi;
3886
+ let ot = Tr, wi;
3887
3887
  async function Pr() {
3888
3888
  return wi ?? (wi = (async () => {
3889
3889
  var a;
@@ -3921,7 +3921,7 @@ const ii = class kr extends Ot {
3921
3921
  updateFrame() {
3922
3922
  if (!this.destroyed) {
3923
3923
  if (this._updateFPS) {
3924
- const t = ht.shared.elapsedMS * this.resource.playbackRate;
3924
+ const t = ot.shared.elapsedMS * this.resource.playbackRate;
3925
3925
  this._msToNextUpdate = Math.floor(this._msToNextUpdate - t);
3926
3926
  }
3927
3927
  (!this._updateFPS || this._msToNextUpdate <= 0) && (this._msToNextUpdate = this._updateFPS ? Math.floor(1e3 / this._updateFPS) : 0), this.isValid && this.update();
@@ -4036,9 +4036,9 @@ const ii = class kr extends Ot {
4036
4036
  * - If `_autoUpdate` is disabled or the video isn't playing, any active update mechanisms are halted.
4037
4037
  */
4038
4038
  _configureAutoUpdate() {
4039
- this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.resource.requestVideoFrameCallback ? (this._isConnectedToTicker && (ht.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0), this._videoFrameRequestCallbackHandle === null && (this._videoFrameRequestCallbackHandle = this.resource.requestVideoFrameCallback(
4039
+ this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.resource.requestVideoFrameCallback ? (this._isConnectedToTicker && (ot.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0), this._videoFrameRequestCallbackHandle === null && (this._videoFrameRequestCallbackHandle = this.resource.requestVideoFrameCallback(
4040
4040
  this._videoFrameRequestCallback
4041
- ))) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || (ht.shared.add(this.updateFrame, this), this._isConnectedToTicker = !0, this._msToNextUpdate = 0)) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker && (ht.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0));
4041
+ ))) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || (ot.shared.add(this.updateFrame, this), this._isConnectedToTicker = !0, this._msToNextUpdate = 0)) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker && (ot.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0));
4042
4042
  }
4043
4043
  static test(t) {
4044
4044
  return globalThis.HTMLVideoElement && t instanceof HTMLVideoElement || globalThis.VideoFrame && t instanceof VideoFrame;
@@ -4070,7 +4070,7 @@ ii.MIME_TYPES = {
4070
4070
  m4v: "video/mp4"
4071
4071
  };
4072
4072
  let qe = ii;
4073
- const yt = (i, t, e = !1) => (Array.isArray(i) || (i = [i]), t ? i.map((s) => typeof s == "string" || e ? t(s) : s) : i);
4073
+ const gt = (i, t, e = !1) => (Array.isArray(i) || (i = [i]), t ? i.map((s) => typeof s == "string" || e ? t(s) : s) : i);
4074
4074
  class la {
4075
4075
  constructor() {
4076
4076
  this._parsers = [], this._cache = /* @__PURE__ */ new Map(), this._cacheMap = /* @__PURE__ */ new Map();
@@ -4100,7 +4100,7 @@ class la {
4100
4100
  * @param value - The value to store in the cache or from which cacheable assets will be derived.
4101
4101
  */
4102
4102
  set(t, e) {
4103
- const s = yt(t);
4103
+ const s = gt(t);
4104
4104
  let r;
4105
4105
  for (let h = 0; h < this.parsers.length; h++) {
4106
4106
  const c = this.parsers[h];
@@ -4147,8 +4147,8 @@ class la {
4147
4147
  return this._parsers;
4148
4148
  }
4149
4149
  }
4150
- const nt = new la(), Fi = [];
4151
- ft.handleByList(B.TextureSource, Fi);
4150
+ const rt = new la(), Fi = [];
4151
+ dt.handleByList(B.TextureSource, Fi);
4152
4152
  function ca(i = {}) {
4153
4153
  const t = i && i.resource, e = t ? i.resource : i, s = t ? i : { resource: i };
4154
4154
  for (let r = 0; r < Fi.length; r++) {
@@ -4160,20 +4160,20 @@ function ca(i = {}) {
4160
4160
  }
4161
4161
  function ua(i = {}, t = !1) {
4162
4162
  const e = i && i.resource, s = e ? i.resource : i, r = e ? i : { resource: i };
4163
- if (!t && nt.has(s))
4164
- return nt.get(s);
4163
+ if (!t && rt.has(s))
4164
+ return rt.get(s);
4165
4165
  const n = new L({ source: ca(r) });
4166
4166
  return n.on("destroy", () => {
4167
- nt.has(s) && nt.remove(s);
4168
- }), t || nt.set(s, n), n;
4167
+ rt.has(s) && rt.remove(s);
4168
+ }), t || rt.set(s, n), n;
4169
4169
  }
4170
4170
  function da(i, t = !1) {
4171
- return typeof i == "string" ? nt.get(i) : i instanceof Ot ? new L({ source: i }) : ua(i, t);
4171
+ return typeof i == "string" ? rt.get(i) : i instanceof Ot ? new L({ source: i }) : ua(i, t);
4172
4172
  }
4173
4173
  L.from = da;
4174
- ft.add(Ar, Sr, Cr, qe, Fe, Mr, qi);
4174
+ dt.add(Ar, Sr, Cr, qe, Fe, Mr, qi);
4175
4175
  var Zt = /* @__PURE__ */ ((i) => (i[i.Low = 0] = "Low", i[i.Normal = 1] = "Normal", i[i.High = 2] = "High", i))(Zt || {});
4176
- function mt(i) {
4176
+ function pt(i) {
4177
4177
  if (typeof i != "string")
4178
4178
  throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`);
4179
4179
  }
@@ -4261,7 +4261,7 @@ const bt = {
4261
4261
  * @param path - The path to get the protocol from
4262
4262
  */
4263
4263
  getProtocol(i) {
4264
- mt(i), i = this.toPosix(i);
4264
+ pt(i), i = this.toPosix(i);
4265
4265
  const t = /^file:\/\/\//.exec(i);
4266
4266
  if (t)
4267
4267
  return t[0];
@@ -4278,7 +4278,7 @@ const bt = {
4278
4278
  * @param customRootUrl - The root URL to use
4279
4279
  */
4280
4280
  toAbsolute(i, t, e) {
4281
- if (mt(i), this.isDataUrl(i) || this.isBlobUrl(i))
4281
+ if (pt(i), this.isDataUrl(i) || this.isBlobUrl(i))
4282
4282
  return i;
4283
4283
  const s = me(this.toPosix(t ?? N.get().getBaseUrl())), r = me(this.toPosix(e ?? this.rootname(s)));
4284
4284
  return i = this.toPosix(i), i.startsWith("/") ? bt.join(r, i.slice(1)) : this.isAbsolute(i) ? i : this.join(s, i);
@@ -4288,7 +4288,7 @@ const bt = {
4288
4288
  * @param path - The path to normalize
4289
4289
  */
4290
4290
  normalize(i) {
4291
- if (mt(i), i.length === 0)
4291
+ if (pt(i), i.length === 0)
4292
4292
  return ".";
4293
4293
  if (this.isDataUrl(i) || this.isBlobUrl(i))
4294
4294
  return i;
@@ -4305,7 +4305,7 @@ const bt = {
4305
4305
  * @param path - The path to test
4306
4306
  */
4307
4307
  isAbsolute(i) {
4308
- return mt(i), i = this.toPosix(i), this.hasProtocol(i) ? !0 : i.startsWith("/");
4308
+ return pt(i), i = this.toPosix(i), this.hasProtocol(i) ? !0 : i.startsWith("/");
4309
4309
  },
4310
4310
  /**
4311
4311
  * Joins all given path segments together using the platform-specific separator as a delimiter,
@@ -4318,7 +4318,7 @@ const bt = {
4318
4318
  let t;
4319
4319
  for (let e = 0; e < i.length; ++e) {
4320
4320
  const s = i[e];
4321
- if (mt(s), s.length > 0)
4321
+ if (pt(s), s.length > 0)
4322
4322
  if (t === void 0)
4323
4323
  t = s;
4324
4324
  else {
@@ -4333,7 +4333,7 @@ const bt = {
4333
4333
  * @param path - The path to parse
4334
4334
  */
4335
4335
  dirname(i) {
4336
- if (mt(i), i.length === 0)
4336
+ if (pt(i), i.length === 0)
4337
4337
  return ".";
4338
4338
  i = this.toPosix(i);
4339
4339
  let t = i.charCodeAt(0);
@@ -4356,7 +4356,7 @@ const bt = {
4356
4356
  * @param path - The path to parse
4357
4357
  */
4358
4358
  rootname(i) {
4359
- mt(i), i = this.toPosix(i);
4359
+ pt(i), i = this.toPosix(i);
4360
4360
  let t = "";
4361
4361
  if (i.startsWith("/") ? t = "/" : t = this.getProtocol(i), this.isUrl(i)) {
4362
4362
  const e = i.indexOf("/", t.length);
@@ -4370,7 +4370,7 @@ const bt = {
4370
4370
  * @param ext - Optional extension to remove
4371
4371
  */
4372
4372
  basename(i, t) {
4373
- mt(i), t && mt(t), i = me(this.toPosix(i));
4373
+ pt(i), t && pt(t), i = me(this.toPosix(i));
4374
4374
  let e = 0, s = -1, r = !0, n;
4375
4375
  if (t !== void 0 && t.length > 0 && t.length <= i.length) {
4376
4376
  if (t.length === i.length && t === i)
@@ -4405,7 +4405,7 @@ const bt = {
4405
4405
  * @param path - The path to parse
4406
4406
  */
4407
4407
  extname(i) {
4408
- mt(i), i = me(this.toPosix(i));
4408
+ pt(i), i = me(this.toPosix(i));
4409
4409
  let t = -1, e = 0, s = -1, r = !0, n = 0;
4410
4410
  for (let a = i.length - 1; a >= 0; --a) {
4411
4411
  const o = i.charCodeAt(a);
@@ -4425,7 +4425,7 @@ const bt = {
4425
4425
  * @param path - The path to parse
4426
4426
  */
4427
4427
  parse(i) {
4428
- mt(i);
4428
+ pt(i);
4429
4429
  const t = { root: "", dir: "", base: "", ext: "", name: "" };
4430
4430
  if (i.length === 0)
4431
4431
  return t;
@@ -4602,7 +4602,7 @@ class he {
4602
4602
  */
4603
4603
  getAlias(t) {
4604
4604
  const { alias: e, src: s } = t;
4605
- return yt(
4605
+ return gt(
4606
4606
  e || s,
4607
4607
  (n) => typeof n == "string" ? n : Array.isArray(n) ? n.map((a) => (a == null ? void 0 : a.src) ?? a) : n != null && n.src ? n.src : n,
4608
4608
  !0
@@ -4691,10 +4691,10 @@ class he {
4691
4691
  let s;
4692
4692
  s = (n) => {
4693
4693
  this.hasKey(n) && it(`[Resolver] already has key: ${n} overwriting`);
4694
- }, yt(e).forEach((n) => {
4694
+ }, gt(e).forEach((n) => {
4695
4695
  const { src: a } = n;
4696
4696
  let { data: o, format: h, loadParser: c } = n;
4697
- const l = yt(a).map((p) => typeof p == "string" ? ga(p) : Array.isArray(p) ? p : [p]), u = this.getAlias(n);
4697
+ const l = gt(a).map((p) => typeof p == "string" ? ga(p) : Array.isArray(p) ? p : [p]), u = this.getAlias(n);
4698
4698
  Array.isArray(u) ? u.forEach(s) : s(u);
4699
4699
  const d = [];
4700
4700
  l.forEach((p) => {
@@ -4772,7 +4772,7 @@ class he {
4772
4772
  */
4773
4773
  resolveBundle(t) {
4774
4774
  const e = Ze(t);
4775
- t = yt(t);
4775
+ t = gt(t);
4776
4776
  const s = {};
4777
4777
  return t.forEach((r) => {
4778
4778
  const n = this._bundles[r];
@@ -4803,7 +4803,7 @@ class he {
4803
4803
  }
4804
4804
  resolve(t) {
4805
4805
  const e = Ze(t);
4806
- t = yt(t);
4806
+ t = gt(t);
4807
4807
  const s = {};
4808
4808
  return t.forEach((r) => {
4809
4809
  if (!this._resolverHash[r])
@@ -5092,7 +5092,7 @@ const xa = {
5092
5092
  }
5093
5093
  }
5094
5094
  };
5095
- ft.add(xa);
5095
+ dt.add(xa);
5096
5096
  let Jt;
5097
5097
  function ba() {
5098
5098
  return (!Jt || Jt != null && Jt.isContextLost()) && (Jt = N.get().createCanvas().getContext("webgl", {})), Jt;
@@ -5179,7 +5179,7 @@ class wa {
5179
5179
  }
5180
5180
  }
5181
5181
  const Di = [];
5182
- ft.handleByNamedList(B.Environment, Di);
5182
+ dt.handleByNamedList(B.Environment, Di);
5183
5183
  async function va(i) {
5184
5184
  if (i)
5185
5185
  for (let t = 0; t < Di.length; t++) {
@@ -5823,13 +5823,13 @@ async function ja(i) {
5823
5823
  for (let n = 0; n < t.length; n++) {
5824
5824
  const a = t[n];
5825
5825
  if (a === "webgpu" && await Ya()) {
5826
- const { WebGPURenderer: o } = await import("./WebGPURenderer-B713L7ek.js");
5826
+ const { WebGPURenderer: o } = await import("./WebGPURenderer-ptwrch0v.js");
5827
5827
  e = o, s = { ...i, ...i.webgpu };
5828
5828
  break;
5829
5829
  } else if (a === "webgl" && Na(
5830
5830
  i.failIfMajorPerformanceCaveat ?? Gr.defaultOptions.failIfMajorPerformanceCaveat
5831
5831
  )) {
5832
- const { WebGLRenderer: o } = await import("./WebGLRenderer-DdYX4Qpw.js");
5832
+ const { WebGLRenderer: o } = await import("./WebGLRenderer-gNt6Tn3N.js");
5833
5833
  e = o, s = { ...i, ...i.webgl };
5834
5834
  break;
5835
5835
  } else if (a === "canvas")
@@ -6019,7 +6019,7 @@ class eo {
6019
6019
  async load(t, e) {
6020
6020
  this._parsersValidated || this._validateParsers();
6021
6021
  let s = 0;
6022
- const r = {}, n = Ze(t), a = yt(t, (c) => ({
6022
+ const r = {}, n = Ze(t), a = gt(t, (c) => ({
6023
6023
  alias: [c],
6024
6024
  src: c
6025
6025
  })), o = a.length, h = a.map(async (c) => {
@@ -6047,7 +6047,7 @@ ${u}`);
6047
6047
  * @param assetsToUnloadIn - urls that you want to unload, or a single one!
6048
6048
  */
6049
6049
  async unload(t) {
6050
- const s = yt(t, (r) => ({
6050
+ const s = gt(t, (r) => ({
6051
6051
  alias: [r],
6052
6052
  src: r
6053
6053
  })).map(async (r) => {
@@ -6156,7 +6156,7 @@ const go = {
6156
6156
  });
6157
6157
  await d.load(), e.add(d), a.push(d);
6158
6158
  }
6159
- return nt.set(`${o}-and-url`, {
6159
+ return rt.set(`${o}-and-url`, {
6160
6160
  url: i,
6161
6161
  fontFaces: a
6162
6162
  }), a.length === 1 ? a[0] : a;
@@ -6165,7 +6165,7 @@ const go = {
6165
6165
  },
6166
6166
  unload(i) {
6167
6167
  (Array.isArray(i) ? i : [i]).forEach((t) => {
6168
- nt.remove(t.family), N.get().getFontFaceSet().delete(t);
6168
+ rt.remove(t.family), N.get().getFontFaceSet().delete(t);
6169
6169
  });
6170
6170
  }
6171
6171
  };
@@ -6670,7 +6670,7 @@ class es {
6670
6670
  return `[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`;
6671
6671
  }
6672
6672
  }
6673
- var ot = /* @__PURE__ */ ((i) => (i[i.MAP_READ = 1] = "MAP_READ", i[i.MAP_WRITE = 2] = "MAP_WRITE", i[i.COPY_SRC = 4] = "COPY_SRC", i[i.COPY_DST = 8] = "COPY_DST", i[i.INDEX = 16] = "INDEX", i[i.VERTEX = 32] = "VERTEX", i[i.UNIFORM = 64] = "UNIFORM", i[i.STORAGE = 128] = "STORAGE", i[i.INDIRECT = 256] = "INDIRECT", i[i.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", i[i.STATIC = 1024] = "STATIC", i))(ot || {});
6673
+ var at = /* @__PURE__ */ ((i) => (i[i.MAP_READ = 1] = "MAP_READ", i[i.MAP_WRITE = 2] = "MAP_WRITE", i[i.COPY_SRC = 4] = "COPY_SRC", i[i.COPY_DST = 8] = "COPY_DST", i[i.INDEX = 16] = "INDEX", i[i.VERTEX = 32] = "VERTEX", i[i.UNIFORM = 64] = "UNIFORM", i[i.STORAGE = 128] = "STORAGE", i[i.INDIRECT = 256] = "INDIRECT", i[i.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", i[i.STATIC = 1024] = "STATIC", i))(at || {});
6674
6674
  class Re extends Bt {
6675
6675
  /**
6676
6676
  * Creates a new Buffer with the given options
@@ -6697,10 +6697,10 @@ class Re extends Bt {
6697
6697
  }
6698
6698
  /** whether the buffer is static or not */
6699
6699
  get static() {
6700
- return !!(this.descriptor.usage & ot.STATIC);
6700
+ return !!(this.descriptor.usage & at.STATIC);
6701
6701
  }
6702
6702
  set static(t) {
6703
- t ? this.descriptor.usage |= ot.STATIC : this.descriptor.usage &= ~ot.STATIC;
6703
+ t ? this.descriptor.usage |= at.STATIC : this.descriptor.usage &= ~at.STATIC;
6704
6704
  }
6705
6705
  /**
6706
6706
  * Sets the data in the buffer to the given value. This will immediately update the buffer on the GPU.
@@ -6737,8 +6737,8 @@ class Re extends Bt {
6737
6737
  }
6738
6738
  function Hr(i, t) {
6739
6739
  if (!(i instanceof Re)) {
6740
- let e = t ? ot.INDEX : ot.VERTEX;
6741
- i instanceof Array && (t ? (i = new Uint32Array(i), e = ot.INDEX | ot.COPY_DST) : (i = new Float32Array(i), e = ot.VERTEX | ot.COPY_DST)), i = new Re({
6740
+ let e = t ? at.INDEX : at.VERTEX;
6741
+ i instanceof Array && (t ? (i = new Uint32Array(i), e = at.INDEX | at.COPY_DST) : (i = new Float32Array(i), e = at.VERTEX | at.COPY_DST)), i = new Re({
6742
6742
  data: i,
6743
6743
  label: t ? "index-mesh-buffer" : "vertex-mesh-buffer",
6744
6744
  usage: e
@@ -6833,12 +6833,12 @@ class Io extends To {
6833
6833
  const e = new Re({
6834
6834
  data: Po,
6835
6835
  label: "attribute-batch-buffer",
6836
- usage: ot.VERTEX | ot.COPY_DST,
6836
+ usage: at.VERTEX | at.COPY_DST,
6837
6837
  shrinkToFit: !1
6838
6838
  }), s = new Re({
6839
6839
  data: ko,
6840
6840
  label: "index-batch-buffer",
6841
- usage: ot.INDEX | ot.COPY_DST,
6841
+ usage: at.INDEX | at.COPY_DST,
6842
6842
  // | BufferUsage.STATIC,
6843
6843
  shrinkToFit: !1
6844
6844
  }), r = 6 * 4;
@@ -7303,8 +7303,8 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7303
7303
  const m = r, y = i.length / 2;
7304
7304
  let _ = i.length;
7305
7305
  const x = m.length / 2, b = l.width / 2, S = b * b, k = l.miterLimit * l.miterLimit;
7306
- let M = i[0], C = i[1], v = i[2], A = i[3], j = 0, Mt = 0, R = -(C - A), E = M - v, z = 0, V = 0, pt = Math.sqrt(R * R + E * E);
7307
- R /= pt, E /= pt, R *= b, E *= b;
7306
+ let M = i[0], C = i[1], v = i[2], A = i[3], j = 0, Mt = 0, R = -(C - A), E = M - v, z = 0, V = 0, ft = Math.sqrt(R * R + E * E);
7307
+ R /= ft, E /= ft, R *= b, E *= b;
7308
7308
  const ls = u, I = (1 - ls) * 2, F = ls * 2;
7309
7309
  f || (l.cap === "round" ? _ += Nt(
7310
7310
  M - R * (I - F) * 0.5,
@@ -7323,7 +7323,7 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7323
7323
  C + E * F
7324
7324
  );
7325
7325
  for (let U = 1; U < y - 1; ++U) {
7326
- M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], j = i[(U + 1) * 2], Mt = i[(U + 1) * 2 + 1], R = -(C - A), E = M - v, pt = Math.sqrt(R * R + E * E), R /= pt, E /= pt, R *= b, E *= b, z = -(A - Mt), V = v - j, pt = Math.sqrt(z * z + V * V), z /= pt, V /= pt, z *= b, V *= b;
7326
+ M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], j = i[(U + 1) * 2], Mt = i[(U + 1) * 2 + 1], R = -(C - A), E = M - v, ft = Math.sqrt(R * R + E * E), R /= ft, E /= ft, R *= b, E *= b, z = -(A - Mt), V = v - j, ft = Math.sqrt(z * z + V * V), z /= ft, V /= ft, z *= b, V *= b;
7327
7327
  const Ft = v - M, ue = C - A, de = v - j, fe = Mt - A, cs = Ft * de + ue * fe, Le = ue * de - fe * Ft, pe = Le < 0;
7328
7328
  if (Math.abs(Le) < 1e-3 * Math.abs(cs)) {
7329
7329
  m.push(
@@ -7389,7 +7389,7 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7389
7389
  !1
7390
7390
  ) + 2 : l.join === "miter" && li / S <= k && (pe ? (m.push(Ht, Wt), m.push(Ht, Wt)) : (m.push(Gt, zt), m.push(Gt, zt)), _ += 2), m.push(v - z * I, A - V * I), m.push(v + z * F, A + V * F), _ += 2);
7391
7391
  }
7392
- M = i[(y - 2) * 2], C = i[(y - 2) * 2 + 1], v = i[(y - 1) * 2], A = i[(y - 1) * 2 + 1], R = -(C - A), E = M - v, pt = Math.sqrt(R * R + E * E), R /= pt, E /= pt, R *= b, E *= b, m.push(v - R * I, A - E * I), m.push(v + R * F, A + E * F), f || (l.cap === "round" ? _ += Nt(
7392
+ M = i[(y - 2) * 2], C = i[(y - 2) * 2 + 1], v = i[(y - 1) * 2], A = i[(y - 1) * 2 + 1], R = -(C - A), E = M - v, ft = Math.sqrt(R * R + E * E), R /= ft, E /= ft, R *= b, E *= b, m.push(v - R * I, A - E * I), m.push(v + R * F, A + E * F), f || (l.cap === "round" ? _ += Nt(
7393
7393
  v - R * (I - F) * 0.5,
7394
7394
  A - E * (I - F) * 0.5,
7395
7395
  v - R * I,
@@ -9425,7 +9425,7 @@ function as(i, t, e) {
9425
9425
  source: i,
9426
9426
  label: e
9427
9427
  }), r = () => {
9428
- delete t.promiseCache[e], nt.has(e) && nt.remove(e);
9428
+ delete t.promiseCache[e], rt.has(e) && rt.remove(e);
9429
9429
  };
9430
9430
  return s.source.once("destroy", () => {
9431
9431
  t.promiseCache[e] && (it("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."), r());
@@ -9731,7 +9731,7 @@ const Bh = {
9731
9731
  };
9732
9732
  class Lh {
9733
9733
  constructor() {
9734
- this._detections = [], this._initialized = !1, this.resolver = new he(), this.loader = new eo(), this.cache = nt, this._backgroundLoader = new Va(this.loader), this._backgroundLoader.active = !0, this.reset();
9734
+ this._detections = [], this._initialized = !1, this.resolver = new he(), this.loader = new eo(), this.cache = rt, this._backgroundLoader = new Va(this.loader), this._backgroundLoader.active = !0, this.reset();
9735
9735
  }
9736
9736
  /**
9737
9737
  * Best practice is to call this function before any loading commences
@@ -9807,7 +9807,7 @@ class Lh {
9807
9807
  }
9808
9808
  async load(t, e) {
9809
9809
  this._initialized || await this.init();
9810
- const s = Ze(t), r = yt(t).map((o) => {
9810
+ const s = Ze(t), r = gt(t).map((o) => {
9811
9811
  if (typeof o != "string") {
9812
9812
  const h = this.resolver.getAlias(o);
9813
9813
  return h.some((c) => !this.resolver.hasKey(c)) && this.add(o), Array.isArray(h) ? h[0] : h;
@@ -9971,10 +9971,10 @@ class Lh {
9971
9971
  }
9972
9972
  get(t) {
9973
9973
  if (typeof t == "string")
9974
- return nt.get(t);
9974
+ return rt.get(t);
9975
9975
  const e = {};
9976
9976
  for (let s = 0; s < t.length; s++)
9977
- e[s] = nt.get(t[s]);
9977
+ e[s] = rt.get(t[s]);
9978
9978
  return e;
9979
9979
  }
9980
9980
  /**
@@ -9992,7 +9992,7 @@ class Lh {
9992
9992
  const o = r[a.src], h = [a.src];
9993
9993
  a.alias && h.push(...a.alias), h.forEach((c) => {
9994
9994
  n[c] = o;
9995
- }), nt.set(h, o);
9995
+ }), rt.set(h, o);
9996
9996
  }), n;
9997
9997
  }
9998
9998
  /**
@@ -10020,7 +10020,7 @@ class Lh {
10020
10020
  */
10021
10021
  async unload(t) {
10022
10022
  this._initialized || await this.init();
10023
- const e = yt(t).map((r) => typeof r != "string" ? r.src : r), s = this.resolver.resolve(e);
10023
+ const e = gt(t).map((r) => typeof r != "string" ? r.src : r), s = this.resolver.resolve(e);
10024
10024
  await this._unloadFromResolved(s);
10025
10025
  }
10026
10026
  /**
@@ -10045,14 +10045,14 @@ class Lh {
10045
10045
  * @param bundleIds - the bundle id or ids to unload
10046
10046
  */
10047
10047
  async unloadBundle(t) {
10048
- this._initialized || await this.init(), t = yt(t);
10048
+ this._initialized || await this.init(), t = gt(t);
10049
10049
  const e = this.resolver.resolveBundle(t), s = Object.keys(e).map((r) => this._unloadFromResolved(e[r]));
10050
10050
  await Promise.all(s);
10051
10051
  }
10052
10052
  async _unloadFromResolved(t) {
10053
10053
  const e = Object.values(t);
10054
10054
  e.forEach((s) => {
10055
- nt.remove(s.src);
10055
+ rt.remove(s.src);
10056
10056
  }), await this.loader.unload(e);
10057
10057
  }
10058
10058
  /**
@@ -10087,9 +10087,9 @@ class Lh {
10087
10087
  });
10088
10088
  }
10089
10089
  }
10090
- const rt = new Lh();
10091
- ft.handleByList(B.LoadParser, rt.loader.parsers).handleByList(B.ResolveParser, rt.resolver.parsers).handleByList(B.CacheParser, rt.cache.parsers).handleByList(B.DetectionParser, rt.detections);
10092
- ft.add(
10090
+ const yt = new Lh();
10091
+ dt.handleByList(B.LoadParser, yt.loader.parsers).handleByList(B.ResolveParser, yt.resolver.parsers).handleByList(B.CacheParser, yt.cache.parsers).handleByList(B.DetectionParser, yt.detections);
10092
+ dt.add(
10093
10093
  Xa,
10094
10094
  qa,
10095
10095
  $a,
@@ -10112,9 +10112,9 @@ const Xs = {
10112
10112
  cache: B.CacheParser,
10113
10113
  detection: B.DetectionParser
10114
10114
  };
10115
- ft.handle(B.Asset, (i) => {
10115
+ dt.handle(B.Asset, (i) => {
10116
10116
  const t = i.ref;
10117
- Object.entries(Xs).filter(([e]) => !!t[e]).forEach(([e, s]) => ft.add(Object.assign(
10117
+ Object.entries(Xs).filter(([e]) => !!t[e]).forEach(([e, s]) => dt.add(Object.assign(
10118
10118
  t[e],
10119
10119
  // Allow the function to optionally define it's own
10120
10120
  // ExtensionMetadata, the use cases here is priority for LoaderParsers
@@ -10122,7 +10122,7 @@ ft.handle(B.Asset, (i) => {
10122
10122
  )));
10123
10123
  }, (i) => {
10124
10124
  const t = i.ref;
10125
- Object.keys(Xs).filter((e) => !!t[e]).forEach((e) => ft.remove(t[e]));
10125
+ Object.keys(Xs).filter((e) => !!t[e]).forEach((e) => dt.remove(t[e]));
10126
10126
  });
10127
10127
  class Je extends O {
10128
10128
  /**
@@ -10482,11 +10482,11 @@ class Be extends xt {
10482
10482
  }
10483
10483
  /** Stops the AnimatedSprite. */
10484
10484
  stop() {
10485
- this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1));
10485
+ this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1));
10486
10486
  }
10487
10487
  /** Plays the AnimatedSprite. */
10488
10488
  play() {
10489
- this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ht.shared.add(this.update, this, Pe.HIGH), this._isConnectedToTicker = !0));
10489
+ this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ot.shared.add(this.update, this, Pe.HIGH), this._isConnectedToTicker = !0));
10490
10490
  }
10491
10491
  /**
10492
10492
  * Stops the AnimatedSprite and goes to a specific frame.
@@ -10599,7 +10599,7 @@ class Be extends xt {
10599
10599
  return this._autoUpdate;
10600
10600
  }
10601
10601
  set autoUpdate(t) {
10602
- t !== this._autoUpdate && (this._autoUpdate = t, !this._autoUpdate && this._isConnectedToTicker ? (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ht.shared.add(this.update, this), this._isConnectedToTicker = !0));
10602
+ t !== this._autoUpdate && (this._autoUpdate = t, !this._autoUpdate && this._isConnectedToTicker ? (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ot.shared.add(this.update, this), this._isConnectedToTicker = !0));
10603
10603
  }
10604
10604
  }
10605
10605
  class Dh extends O {
@@ -10607,7 +10607,7 @@ class Dh extends O {
10607
10607
  const { text: s, resolution: r, style: n, anchor: a, width: o, height: h, roundPixels: c, ...l } = t;
10608
10608
  super({
10609
10609
  ...l
10610
- }), this.batched = !0, this.resolution = null, this._didTextUpdate = !0, this._roundPixels = 0, this._bounds = new St(), this._boundsDirty = !0, this._styleClass = e, this.text = s ?? "", this.style = n, this.resolution = r ?? null, this.allowChildren = !1, this._anchor = new at(
10610
+ }), this.batched = !0, this.resolution = null, this._didTextUpdate = !0, this._roundPixels = 0, this._bounds = new St(), this._boundsDirty = !0, this._styleClass = e, this.text = s ?? "", this.style = n, this.resolution = r ?? null, this.allowChildren = !1, this._anchor = new nt(
10611
10611
  {
10612
10612
  _onUpdate: () => {
10613
10613
  this.onViewUpdate();
@@ -11559,36 +11559,8 @@ class Qe extends Dh {
11559
11559
  t.minX = -s._x * n - e, t.maxX = t.minX + n + e * 2, t.minY = -s._y * a - e, t.maxY = t.minY + a + e * 2;
11560
11560
  }
11561
11561
  }
11562
- ft.add(vn, An);
11563
- const Ut = 0.02 * 1e3;
11564
- class It {
11565
- constructor(t = 0, e) {
11566
- w(this, "isCompleted", !1);
11567
- this.current = t, this.onComplete = e;
11568
- }
11569
- tick(t = Ut) {
11570
- this.isCompleted || (this.current -= t, this.current < 0 && this.complete());
11571
- }
11572
- complete() {
11573
- var t;
11574
- this.isCompleted = !0, (t = this.onComplete) == null || t.call(this);
11575
- }
11576
- }
11577
- class Nh {
11578
- constructor() {
11579
- w(this, "timers", []);
11580
- }
11581
- add(t, e) {
11582
- this.timers.push(new It(t, e));
11583
- }
11584
- tick(t = Ut) {
11585
- const e = [];
11586
- for (const s of this.timers)
11587
- s.isCompleted || (s.tick(t), e.push(s));
11588
- this.timers = e;
11589
- }
11590
- }
11591
- const ji = new Nh(), Yh = (i) => i.name == "jump", jh = (i) => i.name == "color", Vh = (i) => i.name == "grow", Xh = (i) => i.name == "dash", $h = (i) => i.name == "sprite", qh = (i) => i.name == "add_jump_hits", Kh = (i) => i.name == "resurrect";
11562
+ dt.add(vn, An);
11563
+ const Ut = 0.02 * 1e3, Nh = (i) => i.name == "jump", Yh = (i) => i.name == "color", jh = (i) => i.name == "grow", Vh = (i) => i.name == "dash", Xh = (i) => i.name == "sprite", $h = (i) => i.name == "add_jump_hits", qh = (i) => i.name == "resurrect";
11592
11564
  function ti(i) {
11593
11565
  "@babel/helpers - typeof";
11594
11566
  return ti = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -11597,13 +11569,13 @@ function ti(i) {
11597
11569
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
11598
11570
  }, ti(i);
11599
11571
  }
11600
- var Zh = /^\s+/, Jh = /\s+$/;
11572
+ var Kh = /^\s+/, Zh = /\s+$/;
11601
11573
  function P(i, t) {
11602
11574
  if (i = i || "", t = t || {}, i instanceof P)
11603
11575
  return i;
11604
11576
  if (!(this instanceof P))
11605
11577
  return new P(i, t);
11606
- var e = Qh(i);
11578
+ var e = Jh(i);
11607
11579
  this._originalInput = i, this._r = e.r, this._g = e.g, this._b = e.b, this._a = e.a, this._roundA = Math.round(100 * this._a) / 100, this._format = t.format || e.format, this._gradientType = t.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = e.ok;
11608
11580
  }
11609
11581
  P.prototype = {
@@ -11669,7 +11641,7 @@ P.prototype = {
11669
11641
  return "#" + this.toHex(t);
11670
11642
  },
11671
11643
  toHex8: function(t) {
11672
- return sl(this._r, this._g, this._b, this._a, t);
11644
+ return il(this._r, this._g, this._b, this._a, t);
11673
11645
  },
11674
11646
  toHex8String: function(t) {
11675
11647
  return "#" + this.toHex8(t);
@@ -11697,7 +11669,7 @@ P.prototype = {
11697
11669
  return this._a == 1 ? "rgb(" + Math.round(G(this._r, 255) * 100) + "%, " + Math.round(G(this._g, 255) * 100) + "%, " + Math.round(G(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(G(this._r, 255) * 100) + "%, " + Math.round(G(this._g, 255) * 100) + "%, " + Math.round(G(this._b, 255) * 100) + "%, " + this._roundA + ")";
11698
11670
  },
11699
11671
  toName: function() {
11700
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ml[Zs(this._r, this._g, this._b, !0)] || !1;
11672
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : pl[Zs(this._r, this._g, this._b, !0)] || !1;
11701
11673
  },
11702
11674
  toFilter: function(t) {
11703
11675
  var e = "#" + Js(this._r, this._g, this._b, this._a), s = e, r = this._gradientType ? "GradientType = 1, " : "";
@@ -11721,40 +11693,40 @@ P.prototype = {
11721
11693
  return this._r = s._r, this._g = s._g, this._b = s._b, this.setAlpha(s._a), this;
11722
11694
  },
11723
11695
  lighten: function() {
11724
- return this._applyModification(ol, arguments);
11696
+ return this._applyModification(al, arguments);
11725
11697
  },
11726
11698
  brighten: function() {
11727
- return this._applyModification(hl, arguments);
11699
+ return this._applyModification(ol, arguments);
11728
11700
  },
11729
11701
  darken: function() {
11730
- return this._applyModification(ll, arguments);
11702
+ return this._applyModification(hl, arguments);
11731
11703
  },
11732
11704
  desaturate: function() {
11733
- return this._applyModification(rl, arguments);
11705
+ return this._applyModification(sl, arguments);
11734
11706
  },
11735
11707
  saturate: function() {
11736
- return this._applyModification(nl, arguments);
11708
+ return this._applyModification(rl, arguments);
11737
11709
  },
11738
11710
  greyscale: function() {
11739
- return this._applyModification(al, arguments);
11711
+ return this._applyModification(nl, arguments);
11740
11712
  },
11741
11713
  spin: function() {
11742
- return this._applyModification(cl, arguments);
11714
+ return this._applyModification(ll, arguments);
11743
11715
  },
11744
11716
  _applyCombination: function(t, e) {
11745
11717
  return t.apply(null, [this].concat([].slice.call(e)));
11746
11718
  },
11747
11719
  analogous: function() {
11748
- return this._applyCombination(fl, arguments);
11720
+ return this._applyCombination(dl, arguments);
11749
11721
  },
11750
11722
  complement: function() {
11751
- return this._applyCombination(ul, arguments);
11723
+ return this._applyCombination(cl, arguments);
11752
11724
  },
11753
11725
  monochromatic: function() {
11754
- return this._applyCombination(pl, arguments);
11726
+ return this._applyCombination(fl, arguments);
11755
11727
  },
11756
11728
  splitcomplement: function() {
11757
- return this._applyCombination(dl, arguments);
11729
+ return this._applyCombination(ul, arguments);
11758
11730
  },
11759
11731
  // Disabled until https://github.com/bgrins/TinyColor/issues/254
11760
11732
  // polyad: function (number) {
@@ -11776,13 +11748,13 @@ P.fromRatio = function(i, t) {
11776
11748
  }
11777
11749
  return P(i, t);
11778
11750
  };
11779
- function Qh(i) {
11751
+ function Jh(i) {
11780
11752
  var t = {
11781
11753
  r: 0,
11782
11754
  g: 0,
11783
11755
  b: 0
11784
11756
  }, e = 1, s = null, r = null, n = null, a = !1, o = !1;
11785
- return typeof i == "string" && (i = xl(i)), ti(i) == "object" && (Pt(i.r) && Pt(i.g) && Pt(i.b) ? (t = tl(i.r, i.g, i.b), a = !0, o = String(i.r).substr(-1) === "%" ? "prgb" : "rgb") : Pt(i.h) && Pt(i.s) && Pt(i.v) ? (s = we(i.s), r = we(i.v), t = il(i.h, s, r), a = !0, o = "hsv") : Pt(i.h) && Pt(i.s) && Pt(i.l) && (s = we(i.s), n = we(i.l), t = el(i.h, s, n), a = !0, o = "hsl"), i.hasOwnProperty("a") && (e = i.a)), e = ln(e), {
11757
+ return typeof i == "string" && (i = _l(i)), ti(i) == "object" && (Pt(i.r) && Pt(i.g) && Pt(i.b) ? (t = Qh(i.r, i.g, i.b), a = !0, o = String(i.r).substr(-1) === "%" ? "prgb" : "rgb") : Pt(i.h) && Pt(i.s) && Pt(i.v) ? (s = we(i.s), r = we(i.v), t = el(i.h, s, r), a = !0, o = "hsv") : Pt(i.h) && Pt(i.s) && Pt(i.l) && (s = we(i.s), n = we(i.l), t = tl(i.h, s, n), a = !0, o = "hsl"), i.hasOwnProperty("a") && (e = i.a)), e = ln(e), {
11786
11758
  ok: a,
11787
11759
  format: i.format || o,
11788
11760
  r: Math.min(255, Math.max(t.r, 0)),
@@ -11791,7 +11763,7 @@ function Qh(i) {
11791
11763
  a: e
11792
11764
  };
11793
11765
  }
11794
- function tl(i, t, e) {
11766
+ function Qh(i, t, e) {
11795
11767
  return {
11796
11768
  r: G(i, 255) * 255,
11797
11769
  g: G(t, 255) * 255,
@@ -11824,7 +11796,7 @@ function qs(i, t, e) {
11824
11796
  l: o
11825
11797
  };
11826
11798
  }
11827
- function el(i, t, e) {
11799
+ function tl(i, t, e) {
11828
11800
  var s, r, n;
11829
11801
  i = G(i, 360), t = G(t, 100), e = G(e, 100);
11830
11802
  function a(c, l, u) {
@@ -11867,7 +11839,7 @@ function Ks(i, t, e) {
11867
11839
  v: o
11868
11840
  };
11869
11841
  }
11870
- function il(i, t, e) {
11842
+ function el(i, t, e) {
11871
11843
  i = G(i, 360) * 6, t = G(t, 100), e = G(e, 100);
11872
11844
  var s = Math.floor(i), r = i - s, n = e * (1 - t), a = e * (1 - r * t), o = e * (1 - (1 - r) * t), h = s % 6, c = [e, a, n, n, o, e][h], l = [o, e, e, a, n, n][h], u = [n, n, o, e, e, a][h];
11873
11845
  return {
@@ -11880,7 +11852,7 @@ function Zs(i, t, e, s) {
11880
11852
  var r = [_t(Math.round(i).toString(16)), _t(Math.round(t).toString(16)), _t(Math.round(e).toString(16))];
11881
11853
  return s && r[0].charAt(0) == r[0].charAt(1) && r[1].charAt(0) == r[1].charAt(1) && r[2].charAt(0) == r[2].charAt(1) ? r[0].charAt(0) + r[1].charAt(0) + r[2].charAt(0) : r.join("");
11882
11854
  }
11883
- function sl(i, t, e, s, r) {
11855
+ function il(i, t, e, s, r) {
11884
11856
  var n = [_t(Math.round(i).toString(16)), _t(Math.round(t).toString(16)), _t(Math.round(e).toString(16)), _t(cn(s))];
11885
11857
  return r && n[0].charAt(0) == n[0].charAt(1) && n[1].charAt(0) == n[1].charAt(1) && n[2].charAt(0) == n[2].charAt(1) && n[3].charAt(0) == n[3].charAt(1) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) + n[3].charAt(0) : n.join("");
11886
11858
  }
@@ -11898,39 +11870,39 @@ P.random = function() {
11898
11870
  b: Math.random()
11899
11871
  });
11900
11872
  };
11901
- function rl(i, t) {
11873
+ function sl(i, t) {
11902
11874
  t = t === 0 ? 0 : t || 10;
11903
11875
  var e = P(i).toHsl();
11904
11876
  return e.s -= t / 100, e.s = ni(e.s), P(e);
11905
11877
  }
11906
- function nl(i, t) {
11878
+ function rl(i, t) {
11907
11879
  t = t === 0 ? 0 : t || 10;
11908
11880
  var e = P(i).toHsl();
11909
11881
  return e.s += t / 100, e.s = ni(e.s), P(e);
11910
11882
  }
11911
- function al(i) {
11883
+ function nl(i) {
11912
11884
  return P(i).desaturate(100);
11913
11885
  }
11914
- function ol(i, t) {
11886
+ function al(i, t) {
11915
11887
  t = t === 0 ? 0 : t || 10;
11916
11888
  var e = P(i).toHsl();
11917
11889
  return e.l += t / 100, e.l = ni(e.l), P(e);
11918
11890
  }
11919
- function hl(i, t) {
11891
+ function ol(i, t) {
11920
11892
  t = t === 0 ? 0 : t || 10;
11921
11893
  var e = P(i).toRgb();
11922
11894
  return e.r = Math.max(0, Math.min(255, e.r - Math.round(255 * -(t / 100)))), e.g = Math.max(0, Math.min(255, e.g - Math.round(255 * -(t / 100)))), e.b = Math.max(0, Math.min(255, e.b - Math.round(255 * -(t / 100)))), P(e);
11923
11895
  }
11924
- function ll(i, t) {
11896
+ function hl(i, t) {
11925
11897
  t = t === 0 ? 0 : t || 10;
11926
11898
  var e = P(i).toHsl();
11927
11899
  return e.l -= t / 100, e.l = ni(e.l), P(e);
11928
11900
  }
11929
- function cl(i, t) {
11901
+ function ll(i, t) {
11930
11902
  var e = P(i).toHsl(), s = (e.h + t) % 360;
11931
11903
  return e.h = s < 0 ? 360 + s : s, P(e);
11932
11904
  }
11933
- function ul(i) {
11905
+ function cl(i) {
11934
11906
  var t = P(i).toHsl();
11935
11907
  return t.h = (t.h + 180) % 360, P(t);
11936
11908
  }
@@ -11945,7 +11917,7 @@ function Qs(i, t) {
11945
11917
  }));
11946
11918
  return s;
11947
11919
  }
11948
- function dl(i) {
11920
+ function ul(i) {
11949
11921
  var t = P(i).toHsl(), e = t.h;
11950
11922
  return [P(i), P({
11951
11923
  h: (e + 72) % 360,
@@ -11957,14 +11929,14 @@ function dl(i) {
11957
11929
  l: t.l
11958
11930
  })];
11959
11931
  }
11960
- function fl(i, t, e) {
11932
+ function dl(i, t, e) {
11961
11933
  t = t || 6, e = e || 30;
11962
11934
  var s = P(i).toHsl(), r = 360 / e, n = [P(i)];
11963
11935
  for (s.h = (s.h - (r * t >> 1) + 720) % 360; --t; )
11964
11936
  s.h = (s.h + r) % 360, n.push(P(s));
11965
11937
  return n;
11966
11938
  }
11967
- function pl(i, t) {
11939
+ function fl(i, t) {
11968
11940
  t = t || 6;
11969
11941
  for (var e = P(i).toHsv(), s = e.h, r = e.s, n = e.v, a = [], o = 1 / t; t--; )
11970
11942
  a.push(P({
@@ -11990,7 +11962,7 @@ P.readability = function(i, t) {
11990
11962
  };
11991
11963
  P.isReadable = function(i, t, e) {
11992
11964
  var s = P.readability(i, t), r, n;
11993
- switch (n = !1, r = bl(e), r.level + r.size) {
11965
+ switch (n = !1, r = xl(e), r.level + r.size) {
11994
11966
  case "AAsmall":
11995
11967
  case "AAAlarge":
11996
11968
  n = s >= 4.5;
@@ -12014,7 +11986,7 @@ P.mostReadable = function(i, t, e) {
12014
11986
  size: h
12015
11987
  }) || !a ? s : (e.includeFallbackColors = !1, P.mostReadable(i, ["#fff", "#000"], e));
12016
11988
  };
12017
- var Vi = P.names = {
11989
+ var ji = P.names = {
12018
11990
  aliceblue: "f0f8ff",
12019
11991
  antiquewhite: "faebd7",
12020
11992
  aqua: "0ff",
@@ -12164,8 +12136,8 @@ var Vi = P.names = {
12164
12136
  whitesmoke: "f5f5f5",
12165
12137
  yellow: "ff0",
12166
12138
  yellowgreen: "9acd32"
12167
- }, ml = P.hexNames = gl(Vi);
12168
- function gl(i) {
12139
+ }, pl = P.hexNames = ml(ji);
12140
+ function ml(i) {
12169
12141
  var t = {};
12170
12142
  for (var e in i)
12171
12143
  i.hasOwnProperty(e) && (t[i[e]] = e);
@@ -12175,20 +12147,20 @@ function ln(i) {
12175
12147
  return i = parseFloat(i), (isNaN(i) || i < 0 || i > 1) && (i = 1), i;
12176
12148
  }
12177
12149
  function G(i, t) {
12178
- yl(i) && (i = "100%");
12179
- var e = _l(i);
12150
+ gl(i) && (i = "100%");
12151
+ var e = yl(i);
12180
12152
  return i = Math.min(t, Math.max(0, parseFloat(i))), e && (i = parseInt(i * t, 10) / 100), Math.abs(i - t) < 1e-6 ? 1 : i % t / parseFloat(t);
12181
12153
  }
12182
12154
  function ni(i) {
12183
12155
  return Math.min(1, Math.max(0, i));
12184
12156
  }
12185
- function ct(i) {
12157
+ function lt(i) {
12186
12158
  return parseInt(i, 16);
12187
12159
  }
12188
- function yl(i) {
12160
+ function gl(i) {
12189
12161
  return typeof i == "string" && i.indexOf(".") != -1 && parseFloat(i) === 1;
12190
12162
  }
12191
- function _l(i) {
12163
+ function yl(i) {
12192
12164
  return typeof i == "string" && i.indexOf("%") != -1;
12193
12165
  }
12194
12166
  function _t(i) {
@@ -12201,9 +12173,9 @@ function cn(i) {
12201
12173
  return Math.round(parseFloat(i) * 255).toString(16);
12202
12174
  }
12203
12175
  function tr(i) {
12204
- return ct(i) / 255;
12176
+ return lt(i) / 255;
12205
12177
  }
12206
- var gt = function() {
12178
+ var mt = function() {
12207
12179
  var i = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", e = "(?:" + t + ")|(?:" + i + ")", s = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?", r = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?";
12208
12180
  return {
12209
12181
  CSS_UNIT: new RegExp(e),
@@ -12220,13 +12192,13 @@ var gt = function() {
12220
12192
  };
12221
12193
  }();
12222
12194
  function Pt(i) {
12223
- return !!gt.CSS_UNIT.exec(i);
12195
+ return !!mt.CSS_UNIT.exec(i);
12224
12196
  }
12225
- function xl(i) {
12226
- i = i.replace(Zh, "").replace(Jh, "").toLowerCase();
12197
+ function _l(i) {
12198
+ i = i.replace(Kh, "").replace(Zh, "").toLowerCase();
12227
12199
  var t = !1;
12228
- if (Vi[i])
12229
- i = Vi[i], t = !0;
12200
+ if (ji[i])
12201
+ i = ji[i], t = !0;
12230
12202
  else if (i == "transparent")
12231
12203
  return {
12232
12204
  r: 0,
@@ -12236,58 +12208,58 @@ function xl(i) {
12236
12208
  format: "name"
12237
12209
  };
12238
12210
  var e;
12239
- return (e = gt.rgb.exec(i)) ? {
12211
+ return (e = mt.rgb.exec(i)) ? {
12240
12212
  r: e[1],
12241
12213
  g: e[2],
12242
12214
  b: e[3]
12243
- } : (e = gt.rgba.exec(i)) ? {
12215
+ } : (e = mt.rgba.exec(i)) ? {
12244
12216
  r: e[1],
12245
12217
  g: e[2],
12246
12218
  b: e[3],
12247
12219
  a: e[4]
12248
- } : (e = gt.hsl.exec(i)) ? {
12220
+ } : (e = mt.hsl.exec(i)) ? {
12249
12221
  h: e[1],
12250
12222
  s: e[2],
12251
12223
  l: e[3]
12252
- } : (e = gt.hsla.exec(i)) ? {
12224
+ } : (e = mt.hsla.exec(i)) ? {
12253
12225
  h: e[1],
12254
12226
  s: e[2],
12255
12227
  l: e[3],
12256
12228
  a: e[4]
12257
- } : (e = gt.hsv.exec(i)) ? {
12229
+ } : (e = mt.hsv.exec(i)) ? {
12258
12230
  h: e[1],
12259
12231
  s: e[2],
12260
12232
  v: e[3]
12261
- } : (e = gt.hsva.exec(i)) ? {
12233
+ } : (e = mt.hsva.exec(i)) ? {
12262
12234
  h: e[1],
12263
12235
  s: e[2],
12264
12236
  v: e[3],
12265
12237
  a: e[4]
12266
- } : (e = gt.hex8.exec(i)) ? {
12267
- r: ct(e[1]),
12268
- g: ct(e[2]),
12269
- b: ct(e[3]),
12238
+ } : (e = mt.hex8.exec(i)) ? {
12239
+ r: lt(e[1]),
12240
+ g: lt(e[2]),
12241
+ b: lt(e[3]),
12270
12242
  a: tr(e[4]),
12271
12243
  format: t ? "name" : "hex8"
12272
- } : (e = gt.hex6.exec(i)) ? {
12273
- r: ct(e[1]),
12274
- g: ct(e[2]),
12275
- b: ct(e[3]),
12244
+ } : (e = mt.hex6.exec(i)) ? {
12245
+ r: lt(e[1]),
12246
+ g: lt(e[2]),
12247
+ b: lt(e[3]),
12276
12248
  format: t ? "name" : "hex"
12277
- } : (e = gt.hex4.exec(i)) ? {
12278
- r: ct(e[1] + "" + e[1]),
12279
- g: ct(e[2] + "" + e[2]),
12280
- b: ct(e[3] + "" + e[3]),
12249
+ } : (e = mt.hex4.exec(i)) ? {
12250
+ r: lt(e[1] + "" + e[1]),
12251
+ g: lt(e[2] + "" + e[2]),
12252
+ b: lt(e[3] + "" + e[3]),
12281
12253
  a: tr(e[4] + "" + e[4]),
12282
12254
  format: t ? "name" : "hex8"
12283
- } : (e = gt.hex3.exec(i)) ? {
12284
- r: ct(e[1] + "" + e[1]),
12285
- g: ct(e[2] + "" + e[2]),
12286
- b: ct(e[3] + "" + e[3]),
12255
+ } : (e = mt.hex3.exec(i)) ? {
12256
+ r: lt(e[1] + "" + e[1]),
12257
+ g: lt(e[2] + "" + e[2]),
12258
+ b: lt(e[3] + "" + e[3]),
12287
12259
  format: t ? "name" : "hex"
12288
12260
  } : !1;
12289
12261
  }
12290
- function bl(i) {
12262
+ function xl(i) {
12291
12263
  var t, e;
12292
12264
  return i = i || {
12293
12265
  level: "AA",
@@ -12440,7 +12412,7 @@ var Te = Object.freeze({
12440
12412
  }
12441
12413
  }), ve = function() {
12442
12414
  return performance.now();
12443
- }, wl = (
12415
+ }, bl = (
12444
12416
  /** @class */
12445
12417
  function() {
12446
12418
  function i() {
@@ -12511,7 +12483,7 @@ var Te = Object.freeze({
12511
12483
  return (2 * t - 2 * e + n + a) * h + (-3 * t + 3 * e - 2 * n - a) * o + n * r + t;
12512
12484
  }
12513
12485
  }
12514
- }, vl = (
12486
+ }, wl = (
12515
12487
  /** @class */
12516
12488
  function() {
12517
12489
  function i() {
@@ -12520,11 +12492,11 @@ var Te = Object.freeze({
12520
12492
  return i._nextId++;
12521
12493
  }, i._nextId = 0, i;
12522
12494
  }()
12523
- ), Xi = new wl(), $t = (
12495
+ ), Vi = new bl(), $t = (
12524
12496
  /** @class */
12525
12497
  function() {
12526
12498
  function i(t, e) {
12527
- e === void 0 && (e = Xi), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Te.Linear.None, this._interpolationFunction = ie.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = vl.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
12499
+ e === void 0 && (e = Vi), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Te.Linear.None, this._interpolationFunction = ie.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = wl.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
12528
12500
  }
12529
12501
  return i.prototype.getId = function() {
12530
12502
  return this._id;
@@ -12611,7 +12583,7 @@ var Te = Object.freeze({
12611
12583
  this._chainedTweens[t].stop();
12612
12584
  return this;
12613
12585
  }, i.prototype.group = function(t) {
12614
- return t === void 0 && (t = Xi), this._group = t, this;
12586
+ return t === void 0 && (t = Vi), this._group = t, this;
12615
12587
  }, i.prototype.delay = function(t) {
12616
12588
  return t === void 0 && (t = 0), this._delayTime = t, this;
12617
12589
  }, i.prototype.repeat = function(t) {
@@ -12690,12 +12662,40 @@ var Te = Object.freeze({
12690
12662
  typeof s == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(s) : this._valuesStartRepeat[t] = this._valuesEnd[t], this._valuesEnd[t] = e;
12691
12663
  }, i;
12692
12664
  }()
12693
- ), Ct = Xi;
12665
+ ), Ct = Vi;
12694
12666
  Ct.getAll.bind(Ct);
12695
12667
  Ct.removeAll.bind(Ct);
12696
12668
  Ct.add.bind(Ct);
12697
12669
  Ct.remove.bind(Ct);
12698
12670
  Ct.update.bind(Ct);
12671
+ class It {
12672
+ constructor(t = 0, e) {
12673
+ w(this, "isCompleted", !1);
12674
+ this.current = t, this.onComplete = e;
12675
+ }
12676
+ tick(t = Ut) {
12677
+ this.isCompleted || (this.current -= t, this.current < 0 && this.complete());
12678
+ }
12679
+ complete() {
12680
+ var t;
12681
+ this.isCompleted = !0, (t = this.onComplete) == null || t.call(this);
12682
+ }
12683
+ }
12684
+ class vl {
12685
+ constructor() {
12686
+ w(this, "timers", []);
12687
+ }
12688
+ add(t, e) {
12689
+ this.timers.push(new It(t, e));
12690
+ }
12691
+ tick(t = Ut) {
12692
+ const e = [];
12693
+ for (const s of this.timers)
12694
+ s.isCompleted || (s.tick(t), e.push(s));
12695
+ this.timers = e;
12696
+ }
12697
+ }
12698
+ const Xi = new vl();
12699
12699
  class Al {
12700
12700
  constructor() {
12701
12701
  w(this, "assets", {});
@@ -12726,7 +12726,7 @@ class Sl {
12726
12726
  return;
12727
12727
  if (this.sprites[t])
12728
12728
  return this.sprites[t];
12729
- const s = await rt.load(e.image), r = new Li(s, e.sprite);
12729
+ const s = await yt.load(e.image), r = new Li(s, e.sprite);
12730
12730
  return await r.parse(), this.sprites[t] = {
12731
12731
  sheet: r,
12732
12732
  data: {
@@ -13207,10 +13207,10 @@ const Ae = class extends xt {
13207
13207
  return new Ae(n, { width: f, height: g, ...t });
13208
13208
  }
13209
13209
  stop() {
13210
- this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1));
13210
+ this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1));
13211
13211
  }
13212
13212
  play() {
13213
- this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ht.shared.add(this.update, this, Pe.HIGH), this._isConnectedToTicker = !0), !this.loop && this.currentFrame === this._frames.length - 1 && (this._currentTime = 0));
13213
+ this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ot.shared.add(this.update, this, Pe.HIGH), this._isConnectedToTicker = !0), !this.loop && this.currentFrame === this._frames.length - 1 && (this._currentTime = 0));
13214
13214
  }
13215
13215
  get progress() {
13216
13216
  return this._currentTime / this.duration;
@@ -13222,7 +13222,7 @@ const Ae = class extends xt {
13222
13222
  var n, a;
13223
13223
  if (!this._playing)
13224
13224
  return;
13225
- const t = this.animationSpeed * i.deltaTime / ht.targetFPMS, e = this._currentTime + t, s = e % this.duration, r = this._frames.findIndex((o) => o.start <= s && o.end > s);
13225
+ const t = this.animationSpeed * i.deltaTime / ot.targetFPMS, e = this._currentTime + t, s = e % this.duration, r = this._frames.findIndex((o) => o.start <= s && o.end > s);
13226
13226
  e >= this.duration ? this.loop ? (this._currentTime = s, this.updateFrameIndex(r), (n = this.onLoop) == null || n.call(this)) : (this._currentTime = this.duration, this.updateFrameIndex(this._frames.length - 1), (a = this.onComplete) == null || a.call(this), this.stop()) : (this._currentTime = s, this.updateFrameIndex(r));
13227
13227
  }
13228
13228
  updateFrame() {
@@ -13235,7 +13235,7 @@ const Ae = class extends xt {
13235
13235
  return this._autoUpdate;
13236
13236
  }
13237
13237
  set autoUpdate(i) {
13238
- i !== this._autoUpdate && (this._autoUpdate = i, !this._autoUpdate && this._isConnectedToTicker ? (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ht.shared.add(this.update, this), this._isConnectedToTicker = !0));
13238
+ i !== this._autoUpdate && (this._autoUpdate = i, !this._autoUpdate && this._isConnectedToTicker ? (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ot.shared.add(this.update, this), this._isConnectedToTicker = !0));
13239
13239
  }
13240
13240
  get currentFrame() {
13241
13241
  return this._currentFrame;
@@ -13304,7 +13304,7 @@ const Xl = {
13304
13304
  }
13305
13305
  }
13306
13306
  };
13307
- ft.add(Xl);
13307
+ dt.add(Xl);
13308
13308
  const er = {};
13309
13309
  class $l {
13310
13310
  constructor() {
@@ -13375,7 +13375,6 @@ class ql {
13375
13375
  w(this, "boxBorderColor", 2236962);
13376
13376
  w(this, "fadeShift", 10);
13377
13377
  w(this, "isChecking", !0);
13378
- w(this, "messageQueue", []);
13379
13378
  w(this, "showTween");
13380
13379
  w(this, "hideTween");
13381
13380
  w(this, "timer");
@@ -13387,17 +13386,13 @@ class ql {
13387
13386
  }
13388
13387
  update(t) {
13389
13388
  var s, r, n, a, o;
13390
- if ((s = this.timer) == null || s.tick(), (r = this.showTween) == null || r.update(), (n = this.hideTween) == null || n.update(), this.isChecking && this.messageQueue.length > 0) {
13391
- this.isChecking = !1;
13392
- const h = this.messageQueue.shift();
13393
- h && (this.beforeShow(), this.show(h));
13394
- }
13395
- this.container.position.x = t.position.x ?? this.container.position.x, this.container.position.y = t.position.y ?? this.container.position.y;
13389
+ (s = this.timer) == null || s.tick(), (r = this.showTween) == null || r.update(), (n = this.hideTween) == null || n.update(), this.container.position.x = t.position.x ?? this.container.position.x, this.container.position.y = t.position.y ?? this.container.position.y;
13396
13390
  const e = ((a = this.showTween) == null ? void 0 : a.isPlaying()) || ((o = this.hideTween) == null ? void 0 : o.isPlaying());
13397
13391
  !this.isChecking && !e && this.timer && (this.animated.position.y = Math.sin(this.timer.current * 25e-4) * 4 - 2);
13398
13392
  }
13399
13393
  add(t) {
13400
- this.messageQueue.push(t);
13394
+ var e, s;
13395
+ this.isChecking = !1, (e = this.hideTween) == null || e.stop(), (s = this.showTween) == null || s.stop(), t && (this.beforeShow(), this.show(t));
13401
13396
  }
13402
13397
  drawBox(t) {
13403
13398
  const e = {
@@ -13622,7 +13617,7 @@ class tc {
13622
13617
  this.jumps -= 1, this.draw();
13623
13618
  }
13624
13619
  createSprite(t) {
13625
- const e = rt.get(t), s = xt.from(e);
13620
+ const e = yt.get(t), s = xt.from(e);
13626
13621
  return s.anchor.set(0, 0.5), s.scale.set(2, 2), s.texture.source.scaleMode = "nearest", s;
13627
13622
  }
13628
13623
  draw() {
@@ -13666,7 +13661,7 @@ class Qt {
13666
13661
  w(this, "name", new Kl());
13667
13662
  w(this, "info", new tc());
13668
13663
  w(this, "message", new ql(() => {
13669
- this.state.zIndex = ut.zIndexEvotarMax(this.container.zIndex);
13664
+ this.state.zIndex = ct.zIndexEvotarMax(this.container.zIndex);
13670
13665
  }));
13671
13666
  w(this, "emoteSpitter", new $l());
13672
13667
  w(this, "velocity", {
@@ -13731,8 +13726,8 @@ class Qt {
13731
13726
  this.deathTimer && this.deathTimer.complete();
13732
13727
  }
13733
13728
  async die() {
13734
- this.state.isImmortal || (this.isDead = !0, this.container.visible = !1, ut.kill(this), this.deathTimer = new It(1e3 * 60 * 1, () => {
13735
- !this.isDespawned && this.isDead && (this.isDead = !1, this.container.visible = !0, this.state.scale = 1, ut.resurrect(this));
13729
+ this.state.isImmortal || (this.isDead = !0, this.container.visible = !1, ct.kill(this), this.deathTimer = new It(1e3 * 60 * 1, () => {
13730
+ !this.isDespawned && this.isDead && (this.isDead = !1, this.container.visible = !0, this.state.scale = 1, ct.resurrect(this));
13736
13731
  }));
13737
13732
  }
13738
13733
  spawn(t = { isFalling: !1 }) {
@@ -13740,7 +13735,7 @@ class Qt {
13740
13735
  return;
13741
13736
  const e = this.sprite.data.collider, s = this.sprite.data.size, r = -(e.y + e.h - s.h / 2), n = t.isFalling ? r : Z.renderer.height, a = s.w * this.getScale(), o = t.positionX != null ? t.positionX * this.screenBounds.right : Math.random() * (this.screenBounds.right - a) + a / 2, h = n * this.getScale();
13742
13737
  if (this.container.x = o, this.container.y = h, this.state.direction = Math.random() > 0.5 ? 1 : -1, !t.isFalling) {
13743
- const c = ut.zIndexEvotarMin(this.container.zIndex);
13738
+ const c = ct.zIndexEvotarMin(this.container.zIndex);
13744
13739
  this.state.zIndex = c, this.container.alpha = 0, this.spawnTween = new $t(this.container).to({ alpha: 1 }, 500).onComplete(t.onComplete).start();
13745
13740
  }
13746
13741
  this.stateTimer = new It(5e3, () => {
@@ -13816,7 +13811,7 @@ class Qt {
13816
13811
  this.container.position.set(e.x, e.y), this.isHitJumping && this.jumpHit();
13817
13812
  }
13818
13813
  jumpHit() {
13819
- const t = ut.getEvotars();
13814
+ const t = ct.getEvotars();
13820
13815
  for (const e in t) {
13821
13816
  const s = t[e];
13822
13817
  if (s) {
@@ -13887,7 +13882,7 @@ class Qt {
13887
13882
  }
13888
13883
  class sc {
13889
13884
  play(t, e, s) {
13890
- const r = rt.get(t), n = ei.createAnimatedSprite(t, r);
13885
+ const r = yt.get(t), n = ei.createAnimatedSprite(t, r);
13891
13886
  n && (Z.stage.addChild(n), n.zIndex = 1e3, n.scale.set(s, s), n.position.set(e.x, e.y), n.anchor.set(0.5, 0.5), n.loop = !1, n.texture.source.scaleMode = "nearest", n.play(), n.onComplete = () => {
13892
13887
  Z.stage.removeChild(n);
13893
13888
  });
@@ -13905,7 +13900,7 @@ class nc {
13905
13900
  });
13906
13901
  w(this, "fadeTween");
13907
13902
  this.evotar = t;
13908
- const e = Math.random() > 0.5 ? "rip1" : "rip2", s = rt.get(e);
13903
+ const e = Math.random() > 0.5 ? "rip1" : "rip2", s = yt.get(e);
13909
13904
  this.sprite = xt.from(s);
13910
13905
  }
13911
13906
  isOnGround(t) {
@@ -13988,9 +13983,9 @@ class oc {
13988
13983
  zIndex: -1,
13989
13984
  sprite: t.viewers.sprite,
13990
13985
  color: new J(t.broadcaster.info.color)
13991
- }), ji.add(e * a, () => {
13986
+ }), Xi.add(e * a, () => {
13992
13987
  this.addRaider(o), o.spawn({ isFalling: !0 });
13993
- }), ji.add(a * e + 6e4, () => {
13988
+ }), Xi.add(a * e + 6e4, () => {
13994
13989
  this.despawnRaider(o);
13995
13990
  });
13996
13991
  }
@@ -14053,17 +14048,17 @@ class oc {
14053
14048
  }
14054
14049
  }
14055
14050
  doAction(t, e) {
14056
- if (Yh(t) && e.jump({
14051
+ if (Nh(t) && e.jump({
14057
14052
  velocityX: t.data.velocityX,
14058
14053
  velocityY: t.data.velocityY
14059
- }), Xh(t) && e.dash({ force: t.data.force }), jh(t)) {
14054
+ }), Vh(t) && e.dash({ force: t.data.force }), Yh(t)) {
14060
14055
  const s = P(t.data.color);
14061
14056
  s && s.isValid() && e.setUserProps({ color: new J(t.data.color) });
14062
14057
  }
14063
- Vh(t) && e.scale({
14058
+ jh(t) && e.scale({
14064
14059
  value: t.data.scale,
14065
14060
  duration: t.data.duration
14066
- }), $h(t) && e.setSprite(t.data.sprite), qh(t) && e.addJumpHit(t.data.count), Kh(t) && e.resurrect();
14061
+ }), Xh(t) && e.setSprite(t.data.sprite), $h(t) && e.addJumpHit(t.data.count), qh(t) && e.resurrect();
14067
14062
  }
14068
14063
  prepareEvotarProps(t, e, s) {
14069
14064
  const r = {
@@ -14143,7 +14138,7 @@ class oc {
14143
14138
  return Object.values(this.viewers).reduce((e, s) => s && e >= s.container.zIndex ? s.container.zIndex - 1 : e, t);
14144
14139
  }
14145
14140
  }
14146
- const ut = new oc();
14141
+ const ct = new oc();
14147
14142
  class hc {
14148
14143
  constructor() {
14149
14144
  w(this, "stage", new O());
@@ -14154,10 +14149,16 @@ class hc {
14154
14149
  w(this, "ticker");
14155
14150
  }
14156
14151
  async initialize(t, e) {
14157
- ei.initialize(e.spriteLoaderFn), un.initialize(e.sounds), e.font && await rt.load({
14152
+ ei.initialize(e.spriteLoaderFn), un.initialize(e.sounds), e.font && await yt.load({
14158
14153
  src: e.font,
14159
14154
  data: { family: "Custom Font" }
14160
- }), rt.add({ alias: "poof", src: "/client/poof.json" }), rt.add({ alias: "rip1", src: "/client/rip1.png" }), rt.add({ alias: "rip2", src: "/client/rip2.png" }), rt.add({ alias: "skull", src: "/client/skull.png" }), rt.add({ alias: "weight", src: "/client/weight.png" }), await rt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ht(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await ja({
14155
+ });
14156
+ for (const s in e.assets)
14157
+ yt.add({
14158
+ alias: s,
14159
+ src: e.assets[s]
14160
+ });
14161
+ await yt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ot(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await ja({
14161
14162
  preference: "webgl"
14162
14163
  }), await this.renderer.init({
14163
14164
  width: t.clientWidth,
@@ -14165,7 +14166,7 @@ class hc {
14165
14166
  backgroundAlpha: 0
14166
14167
  }), t.appendChild(this.renderer.canvas), window.onresize = () => {
14167
14168
  this.renderer.resize(t.clientWidth, t.clientHeight);
14168
- }, this.stage.sortableChildren = !0, ut.subscribe({
14169
+ }, this.stage.sortableChildren = !0, ct.subscribe({
14169
14170
  onAdd: (s) => this.stage.addChild(s.container),
14170
14171
  onDelete: (s) => {
14171
14172
  this.stage.removeChild(s.container), this.stage.removeChild(s.trail.container);
@@ -14176,21 +14177,21 @@ class hc {
14176
14177
  this.settings = t;
14177
14178
  }
14178
14179
  update() {
14179
- ji.tick(), ut.update(), this.renderer.render(this.stage);
14180
+ Xi.tick(), ct.update(), this.renderer.render(this.stage);
14180
14181
  }
14181
14182
  }
14182
14183
  const Z = new hc();
14183
14184
  class fc {
14184
14185
  constructor(t, e) {
14185
14186
  w(this, "isRendered", !1);
14186
- w(this, "processMessage", (t) => ut.processMessage(t));
14187
- w(this, "processAction", (t) => ut.processAction(t));
14188
- w(this, "processChatters", (t) => ut.processChatters(t));
14189
- w(this, "processRaid", (t) => ut.processRaid(t));
14187
+ w(this, "processMessage", (t) => ct.processMessage(t));
14188
+ w(this, "processAction", (t) => ct.processAction(t));
14189
+ w(this, "processChatters", (t) => ct.processChatters(t));
14190
+ w(this, "processRaid", (t) => ct.processRaid(t));
14190
14191
  this.root = t, this.options = e;
14191
14192
  }
14192
14193
  get manager() {
14193
- return ut;
14194
+ return ct;
14194
14195
  }
14195
14196
  updateSettings(t) {
14196
14197
  Z.updateSettings(t);
@@ -14213,7 +14214,7 @@ class fc {
14213
14214
  export {
14214
14215
  zh as $,
14215
14216
  Gr as A,
14216
- ot as B,
14217
+ at as B,
14217
14218
  O as C,
14218
14219
  N as D,
14219
14220
  B as E,
@@ -14231,13 +14232,13 @@ export {
14231
14232
  gh as Q,
14232
14233
  tt as R,
14233
14234
  Fo as S,
14234
- ht as T,
14235
+ ot as T,
14235
14236
  Pe as U,
14236
14237
  tn as V,
14237
14238
  Gh as W,
14238
14239
  an as X,
14239
14240
  Fe as Y,
14240
- nt as Z,
14241
+ rt as Z,
14241
14242
  hn as _,
14242
14243
  Bt as a,
14243
14244
  Xr as a0,
@@ -14248,17 +14249,17 @@ export {
14248
14249
  Ln as a5,
14249
14250
  qr as a6,
14250
14251
  fc as a7,
14251
- Yh as a8,
14252
- jh as a9,
14253
- Vh as aa,
14254
- Xh as ab,
14255
- $h as ac,
14256
- qh as ad,
14257
- Kh as ae,
14252
+ Nh as a8,
14253
+ Yh as a9,
14254
+ jh as aa,
14255
+ Vh as ab,
14256
+ Xh as ac,
14257
+ $h as ad,
14258
+ qh as ae,
14258
14259
  Re as b,
14259
14260
  wa as c,
14260
14261
  Dr as d,
14261
- ft as e,
14262
+ dt as e,
14262
14263
  Ls as f,
14263
14264
  Eo as g,
14264
14265
  Mr as h,