evotars 0.0.18 → 0.0.20

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
- import { U as e } from "./colorToUniform-BEK5qDau.js";
1
+ import { U as e } from "./colorToUniform-CPC7AZcR.js";
2
2
  const i = {};
3
3
  function a(r) {
4
4
  let o = i[r];
@@ -126,7 +126,7 @@ const Pi = (i) => {
126
126
  },
127
127
  test: () => !0,
128
128
  load: async () => {
129
- await import("./browserAll-Djz7wsJX.js");
129
+ await import("./browserAll-Cunejw4m.js");
130
130
  }
131
131
  }, An = {
132
132
  extension: {
@@ -136,7 +136,7 @@ const Pi = (i) => {
136
136
  },
137
137
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
138
138
  load: async () => {
139
- await import("./webworkerAll-Bj2vcYLu.js");
139
+ await import("./webworkerAll-DA2Gu8Az.js");
140
140
  }
141
141
  };
142
142
  class nt {
@@ -618,15 +618,15 @@ class D {
618
618
  return Pn.identity();
619
619
  }
620
620
  }
621
- const Pn = new D(), kn = new D(), Yt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Vt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], jt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Xt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ki = [], nr = [], Oe = Math.sign;
621
+ const Pn = new D(), kn = new D(), Yt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], jt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], Vt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Xt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ki = [], nr = [], Oe = Math.sign;
622
622
  function In() {
623
623
  for (let i = 0; i < 16; i++) {
624
624
  const t = [];
625
625
  ki.push(t);
626
626
  for (let e = 0; e < 16; e++) {
627
- const s = Oe(Yt[i] * Yt[e] + jt[i] * Vt[e]), r = Oe(Vt[i] * Yt[e] + Xt[i] * Vt[e]), n = Oe(Yt[i] * jt[e] + jt[i] * Xt[e]), a = Oe(Vt[i] * jt[e] + Xt[i] * Xt[e]);
627
+ const s = Oe(Yt[i] * Yt[e] + Vt[i] * jt[e]), r = Oe(jt[i] * Yt[e] + Xt[i] * jt[e]), n = Oe(Yt[i] * Vt[e] + Vt[i] * Xt[e]), a = Oe(jt[i] * Vt[e] + Xt[i] * Xt[e]);
628
628
  for (let o = 0; o < 16; o++)
629
- if (Yt[o] === s && Vt[o] === r && jt[o] === n && Xt[o] === a) {
629
+ if (Yt[o] === s && jt[o] === r && Vt[o] === n && Xt[o] === a) {
630
630
  t.push(o);
631
631
  break;
632
632
  }
@@ -634,7 +634,7 @@ function In() {
634
634
  }
635
635
  for (let i = 0; i < 16; i++) {
636
636
  const t = new D();
637
- t.set(Yt[i], Vt[i], jt[i], Xt[i], 0, 0), nr.push(t);
637
+ t.set(Yt[i], jt[i], Vt[i], Xt[i], 0, 0), nr.push(t);
638
638
  }
639
639
  }
640
640
  In();
@@ -740,14 +740,14 @@ const H = {
740
740
  * @returns {GD8Symmetry} The Y-component of the U-axis
741
741
  * after rotating the axes.
742
742
  */
743
- uY: (i) => Vt[i],
743
+ uY: (i) => jt[i],
744
744
  /**
745
745
  * @memberof maths.groupD8
746
746
  * @param {GD8Symmetry} ind - sprite rotation angle.
747
747
  * @returns {GD8Symmetry} The X-component of the V-axis
748
748
  * after rotating the axes.
749
749
  */
750
- vX: (i) => jt[i],
750
+ vX: (i) => Vt[i],
751
751
  /**
752
752
  * @memberof maths.groupD8
753
753
  * @param {GD8Symmetry} ind - sprite rotation angle.
@@ -1884,12 +1884,12 @@ re.shared = new re();
1884
1884
  re._temp = new re();
1885
1885
  re.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
1886
1886
  let J = re;
1887
- const Vn = {
1887
+ const jn = {
1888
1888
  cullArea: null,
1889
1889
  cullable: !1,
1890
1890
  cullableChildren: !0
1891
1891
  };
1892
- function jn(i, t, e) {
1892
+ function Vn(i, t, e) {
1893
1893
  const s = i.length;
1894
1894
  let r;
1895
1895
  if (t >= s || e === 0)
@@ -1916,7 +1916,7 @@ const Xn = {
1916
1916
  const o = this.children[a];
1917
1917
  o && (r.push(o), o.parent = null);
1918
1918
  }
1919
- jn(this.children, i, e);
1919
+ Vn(this.children, i, e);
1920
1920
  const n = this.renderGroup || this.parentRenderGroup;
1921
1921
  n && n.removeChildren(r);
1922
1922
  for (let a = 0; a < r.length; ++a)
@@ -3251,7 +3251,7 @@ O.mixin(Qn);
3251
3251
  O.mixin(Kn);
3252
3252
  O.mixin(Zn);
3253
3253
  O.mixin(ea);
3254
- O.mixin(Vn);
3254
+ O.mixin(jn);
3255
3255
  class xt extends O {
3256
3256
  /**
3257
3257
  * @param options - The options for creating the sprite.
@@ -5810,7 +5810,7 @@ async function Ya(i = {}) {
5810
5810
  })()), Ye;
5811
5811
  }
5812
5812
  const Es = ["webgl", "webgpu", "canvas"];
5813
- async function Va(i) {
5813
+ async function ja(i) {
5814
5814
  let t = [];
5815
5815
  i.preference ? (t.push(i.preference), Es.forEach((n) => {
5816
5816
  n !== i.preference && t.push(n);
@@ -5823,13 +5823,13 @@ async function Va(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-CtFHd2D-.js");
5826
+ const { WebGPURenderer: o } = await import("./WebGPURenderer-DxUZUGAz.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-C-mXrQNx.js");
5832
+ const { WebGLRenderer: o } = await import("./WebGLRenderer-OBONsgum.js");
5833
5833
  e = o, s = { ...i, ...i.webgl };
5834
5834
  break;
5835
5835
  } else if (a === "canvas")
@@ -5840,7 +5840,7 @@ async function Va(i) {
5840
5840
  const r = new e();
5841
5841
  return await r.init(s), r;
5842
5842
  }
5843
- class ja {
5843
+ class Va {
5844
5844
  /**
5845
5845
  * @param loader
5846
5846
  * @param verbose - should the loader log to the console
@@ -6586,7 +6586,7 @@ class Se {
6586
6586
  return this.points[this.points.length - 1];
6587
6587
  }
6588
6588
  }
6589
- const Ve = (i, t, e, s, r, n) => {
6589
+ const je = (i, t, e, s, r, n) => {
6590
6590
  const a = i - e, o = t - s, h = Math.sqrt(a * a + o * o);
6591
6591
  return h >= r - n && h <= r + n;
6592
6592
  };
@@ -6663,7 +6663,7 @@ class ts {
6663
6663
  const { x: r, y: n, width: a, height: o, radius: h } = this, c = s / 2, l = r + h, u = n + h, d = a - h * 2, p = o - h * 2, f = r + a, g = n + o;
6664
6664
  return (t >= r - c && t <= r + c || t >= f - c && t <= f + c) && e >= u && e <= u + p || (e >= n - c && e <= n + c || e >= g - c && e <= g + c) && t >= l && t <= l + d ? !0 : (
6665
6665
  // Top-left
6666
- t < l && e < u && Ve(t, e, l, u, h, c) || t > f - h && e < u && Ve(t, e, f - h, u, h, c) || t > f - h && e > g - h && Ve(t, e, f - h, g - h, h, c) || t < l && e > g - h && Ve(t, e, l, g - h, h, c)
6666
+ t < l && e < u && je(t, e, l, u, h, c) || t > f - h && e < u && je(t, e, f - h, u, h, c) || t > f - h && e > g - h && je(t, e, f - h, g - h, h, c) || t < l && e > g - h && je(t, e, l, g - h, h, c)
6667
6667
  );
6668
6668
  }
6669
6669
  toString() {
@@ -6877,12 +6877,12 @@ class Io extends To {
6877
6877
  });
6878
6878
  }
6879
6879
  }
6880
- let je = null;
6880
+ let Ve = null;
6881
6881
  function Wr() {
6882
- if (je)
6883
- return je;
6882
+ if (Ve)
6883
+ return Ve;
6884
6884
  const i = ba();
6885
- return je = i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS), je;
6885
+ return Ve = i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS), Ve;
6886
6886
  }
6887
6887
  const Nr = {};
6888
6888
  function Eo(i, t) {
@@ -7007,9 +7007,9 @@ class Us {
7007
7007
  }
7008
7008
  }
7009
7009
  let ge = 0;
7010
- const Yr = class Vr {
7010
+ const Yr = class jr {
7011
7011
  constructor(t = {}) {
7012
- this.uid = et("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._vertexSize = 6, this._elements = [], this._batchPool = [], this._batchPoolIndex = 0, this._textureBatchPool = [], this._textureBatchPoolIndex = 0, t = { ...Vr.defaultOptions, ...t };
7012
+ this.uid = et("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._vertexSize = 6, this._elements = [], this._batchPool = [], this._batchPoolIndex = 0, this._textureBatchPool = [], this._textureBatchPoolIndex = 0, t = { ...jr.defaultOptions, ...t };
7013
7013
  const { vertexSize: e, indexSize: s } = t;
7014
7014
  this.attributeBuffer = new Bs(e * this._vertexSize * 4), this.indexBuffer = new Uint16Array(s), this._maxTextures = Wr();
7015
7015
  }
@@ -7139,7 +7139,7 @@ function Uo(i, t, e, s) {
7139
7139
  for (t *= e; r < s; )
7140
7140
  i[t] = 0, i[t + 1] = 0, t += e, r++;
7141
7141
  }
7142
- function jr(i, t, e, s, r) {
7142
+ function Vr(i, t, e, s, r) {
7143
7143
  const n = t.a, a = t.b, o = t.c, h = t.d, c = t.tx, l = t.ty;
7144
7144
  e = e || 0, s = s || 2, r = r || i.length / s - e;
7145
7145
  let u = e * s;
@@ -7219,8 +7219,8 @@ const Ai = {
7219
7219
  t[d++] = y, t[d++] = b, t[--p] = b, t[--p] = m;
7220
7220
  }
7221
7221
  for (let b = 1; b < h; b++) {
7222
- const S = Math.PI / 2 * (b / h), k = r + Math.cos(S) * a, M = n + Math.sin(S) * o, C = e + k, v = e - k, A = s + M, j = s - M;
7223
- t[l++] = C, t[l++] = A, t[--u] = A, t[--u] = v, t[d++] = v, t[d++] = j, t[--p] = j, t[--p] = C;
7222
+ const S = Math.PI / 2 * (b / h), k = r + Math.cos(S) * a, M = n + Math.sin(S) * o, C = e + k, v = e - k, A = s + M, V = s - M;
7223
+ t[l++] = C, t[l++] = A, t[--u] = A, t[--u] = v, t[d++] = v, t[d++] = V, t[--p] = V, t[--p] = C;
7224
7224
  }
7225
7225
  f = r, g = n + o, m = e + f, y = e - f, _ = s + g;
7226
7226
  const x = s - g;
@@ -7303,7 +7303,7 @@ 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, X = 0, ft = Math.sqrt(R * R + E * E);
7306
+ let M = i[0], C = i[1], v = i[2], A = i[3], V = 0, Mt = 0, R = -(C - A), E = M - v, z = 0, X = 0, ft = Math.sqrt(R * R + E * E);
7307
7307
  R /= ft, E /= ft, R *= b, E *= b;
7308
7308
  const hs = u, I = (1 - hs) * 2, F = hs * 2;
7309
7309
  f || (l.cap === "round" ? _ += Nt(
@@ -7323,8 +7323,8 @@ 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, ft = Math.sqrt(R * R + E * E), R /= ft, E /= ft, R *= b, E *= b, z = -(A - Mt), X = v - j, ft = Math.sqrt(z * z + X * X), z /= ft, X /= ft, z *= b, X *= b;
7327
- const Ft = v - M, ce = C - A, ue = v - j, de = Mt - A, ls = Ft * ue + ce * de, Fe = ce * ue - de * Ft, fe = Fe < 0;
7326
+ M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], V = 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), X = v - V, ft = Math.sqrt(z * z + X * X), z /= ft, X /= ft, z *= b, X *= b;
7327
+ const Ft = v - M, ce = C - A, ue = v - V, de = Mt - A, ls = Ft * ue + ce * de, Fe = ce * ue - de * Ft, fe = Fe < 0;
7328
7328
  if (Math.abs(Fe) < 1e-3 * Math.abs(ls)) {
7329
7329
  m.push(
7330
7330
  v - R * I,
@@ -7350,7 +7350,7 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7350
7350
  ));
7351
7351
  continue;
7352
7352
  }
7353
- const cs = (-R + M) * (-E + A) - (-R + v) * (-E + C), us = (-z + j) * (-X + A) - (-z + v) * (-X + Mt), Le = (Ft * us - ue * cs) / Fe, De = (de * cs - ce * us) / Fe, hi = (Le - v) * (Le - v) + (De - A) * (De - A), Gt = v + (Le - v) * I, zt = A + (De - A) * I, Ht = v - (Le - v) * F, Wt = A - (De - A) * F, _n = Math.min(Ft * Ft + ce * ce, ue * ue + de * de), ds = fe ? I : F, xn = _n + ds * ds * S;
7353
+ const cs = (-R + M) * (-E + A) - (-R + v) * (-E + C), us = (-z + V) * (-X + A) - (-z + v) * (-X + Mt), Le = (Ft * us - ue * cs) / Fe, De = (de * cs - ce * us) / Fe, hi = (Le - v) * (Le - v) + (De - A) * (De - A), Gt = v + (Le - v) * I, zt = A + (De - A) * I, Ht = v - (Le - v) * F, Wt = A - (De - A) * F, _n = Math.min(Ft * Ft + ce * ce, ue * ue + de * de), ds = fe ? I : F, xn = _n + ds * ds * S;
7354
7354
  hi <= xn ? l.join === "bevel" || hi / S > k ? (fe ? (m.push(Gt, zt), m.push(v + R * F, A + E * F), m.push(Gt, zt), m.push(v + z * F, A + X * F)) : (m.push(v - R * I, A - E * I), m.push(Ht, Wt), m.push(v - z * I, A - X * I), m.push(Ht, Wt)), _ += 2) : l.join === "round" ? fe ? (m.push(Gt, zt), m.push(v + R * F, A + E * F), _ += Nt(
7355
7355
  v,
7356
7356
  A,
@@ -7401,7 +7401,7 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7401
7401
  ) + 2 : l.cap === "square" && (_ += Gs(v, A, R, E, I, F, !1, m)));
7402
7402
  const yn = Os * Os;
7403
7403
  for (let U = x; U < _ + x - 2; ++U)
7404
- M = m[U * 2], C = m[U * 2 + 1], v = m[(U + 1) * 2], A = m[(U + 1) * 2 + 1], j = m[(U + 2) * 2], Mt = m[(U + 2) * 2 + 1], !(Math.abs(M * (A - Mt) + v * (Mt - C) + j * (C - A)) < yn) && o.push(U, U + 1, U + 2);
7404
+ M = m[U * 2], C = m[U * 2 + 1], v = m[(U + 1) * 2], A = m[(U + 1) * 2 + 1], V = m[(U + 2) * 2], Mt = m[(U + 2) * 2 + 1], !(Math.abs(M * (A - Mt) + v * (Mt - C) + V * (C - A)) < yn) && o.push(U, U + 1, U + 2);
7405
7405
  }
7406
7406
  function $r(i, t, e, s, r, n, a) {
7407
7407
  const o = za(i, t, 2);
@@ -7433,7 +7433,7 @@ const Wo = [], No = {
7433
7433
  const o = s / e;
7434
7434
  r[n++] = o, r[n++] = o + 1, r[n++] = o + 2, r[n++] = o + 1, r[n++] = o + 3, r[n++] = o + 2;
7435
7435
  }
7436
- }, Vo = {
7436
+ }, jo = {
7437
7437
  build(i, t) {
7438
7438
  return t[0] = i.x, t[1] = i.y, t[2] = i.x2, t[3] = i.y2, t[4] = i.x3, t[5] = i.y3, t;
7439
7439
  },
@@ -7446,11 +7446,11 @@ const Wo = [], No = {
7446
7446
  }, es = {
7447
7447
  rectangle: Yo,
7448
7448
  polygon: No,
7449
- triangle: Vo,
7449
+ triangle: jo,
7450
7450
  circle: Ai,
7451
7451
  ellipse: Ai,
7452
7452
  roundedRectangle: Ai
7453
- }, jo = new tt();
7453
+ }, Vo = new tt();
7454
7454
  function Xo(i, t) {
7455
7455
  const { geometryData: e, batches: s } = t;
7456
7456
  s.length = 0, e.indices.length = 0, e.vertices.length = 0, e.uvs.length = 0;
@@ -7465,10 +7465,10 @@ function Xo(i, t) {
7465
7465
  }
7466
7466
  }
7467
7467
  function $o(i, t, e) {
7468
- const { vertices: s, uvs: r, indices: n } = e, a = n.length, o = s.length / 2, h = [], c = es.rectangle, l = jo, u = i.image;
7468
+ const { vertices: s, uvs: r, indices: n } = e, a = n.length, o = s.length / 2, h = [], c = es.rectangle, l = Vo, u = i.image;
7469
7469
  l.x = i.dx, l.y = i.dy, l.width = i.dw, l.height = i.dh;
7470
7470
  const d = i.transform;
7471
- c.build(l, h), d && jr(h, d), c.triangulate(h, s, 2, o, n, a);
7471
+ c.build(l, h), d && Vr(h, d), c.triangulate(h, s, 2, o, n, a);
7472
7472
  const p = u.uvs;
7473
7473
  r.push(
7474
7474
  p.x0,
@@ -7487,7 +7487,7 @@ function zs(i, t, e, s, r, n) {
7487
7487
  const { vertices: a, uvs: o, indices: h } = n, c = i.shapePrimitives.length - 1;
7488
7488
  i.shapePrimitives.forEach(({ shape: l, transform: u }, d) => {
7489
7489
  const p = h.length, f = a.length / 2, g = [], m = es[l.type];
7490
- if (m.build(l, g), u && jr(g, u), s) {
7490
+ if (m.build(l, g), u && Vr(g, u), s) {
7491
7491
  const b = l.closePath ?? !0;
7492
7492
  Ho(g, t, !1, b, a, 2, f, h);
7493
7493
  } else if (e && c === d) {
@@ -7712,14 +7712,14 @@ function ah(i, t, e, s, r, n) {
7712
7712
  (i[i.length - 2] !== t || i[i.length - 1] !== e) && i.push(t, e);
7713
7713
  return;
7714
7714
  }
7715
- const p = h * h + c * c, f = l * l + u * u, g = h * l + c * u, m = n * Math.sqrt(p) / d, y = n * Math.sqrt(f) / d, _ = m * g / p, x = y * g / f, b = m * u + y * c, S = m * l + y * h, k = c * (y + _), M = h * (y + _), C = u * (m + x), v = l * (m + x), A = Math.atan2(M - S, k - b), j = Math.atan2(v - S, C - b);
7715
+ const p = h * h + c * c, f = l * l + u * u, g = h * l + c * u, m = n * Math.sqrt(p) / d, y = n * Math.sqrt(f) / d, _ = m * g / p, x = y * g / f, b = m * u + y * c, S = m * l + y * h, k = c * (y + _), M = h * (y + _), C = u * (m + x), v = l * (m + x), A = Math.atan2(M - S, k - b), V = Math.atan2(v - S, C - b);
7716
7716
  Zr(
7717
7717
  i,
7718
7718
  b + t,
7719
7719
  S + e,
7720
7720
  n,
7721
7721
  A,
7722
- j,
7722
+ V,
7723
7723
  c * l > u * h
7724
7724
  );
7725
7725
  }
@@ -7759,8 +7759,8 @@ const Hs = (i, t, e, s) => {
7759
7759
  let y = p * f - p * m - f * g;
7760
7760
  y < 0 && (y = 0), y /= p * m + f * g, y = Math.sqrt(y) * (a === o ? -1 : 1);
7761
7761
  const _ = y * r / n * u, x = y * -n / r * l, b = c * _ - h * x + (i + e) / 2, S = h * _ + c * x + (t + s) / 2, k = (l - _) / r, M = (u - x) / n, C = (-l - _) / r, v = (-u - x) / n, A = Hs(1, 0, k, M);
7762
- let j = Hs(k, M, C, v);
7763
- o === 0 && j > 0 && (j -= Ce), o === 1 && j < 0 && (j += Ce), d.centerX = b, d.centerY = S, d.ang1 = A, d.ang2 = j;
7762
+ let V = Hs(k, M, C, v);
7763
+ o === 0 && V > 0 && (V -= Ce), o === 1 && V < 0 && (V += Ce), d.centerX = b, d.centerY = S, d.ang1 = A, d.ang2 = V;
7764
7764
  };
7765
7765
  function lh(i, t, e, s, r, n, a, o = 0, h = 0, c = 0) {
7766
7766
  if (n === 0 || a === 0)
@@ -7794,13 +7794,13 @@ function lh(i, t, e, s, r, n, a, o = 0, h = 0, c = 0) {
7794
7794
  let S = i[i.length - 2], k = i[i.length - 1];
7795
7795
  const M = { x: 0, y: 0 };
7796
7796
  for (let C = 0; C < b; C++) {
7797
- const v = oh(g, m), { x: A, y: j } = Ci(v[0], n, a, u, l, y, _, M), { x: Mt, y: R } = Ci(v[1], n, a, u, l, y, _, M), { x: E, y: z } = Ci(v[2], n, a, u, l, y, _, M);
7797
+ const v = oh(g, m), { x: A, y: V } = Ci(v[0], n, a, u, l, y, _, M), { x: Mt, y: R } = Ci(v[1], n, a, u, l, y, _, M), { x: E, y: z } = Ci(v[2], n, a, u, l, y, _, M);
7798
7798
  Kr(
7799
7799
  i,
7800
7800
  S,
7801
7801
  k,
7802
7802
  A,
7803
- j,
7803
+ V,
7804
7804
  Mt,
7805
7805
  R,
7806
7806
  E,
@@ -9594,7 +9594,7 @@ class Ch {
9594
9594
  });
9595
9595
  }
9596
9596
  }
9597
- const Vs = new Ch(), Mh = [".jpeg", ".jpg", ".png", ".webp", ".avif"], Th = [
9597
+ const js = new Ch(), Mh = [".jpeg", ".jpg", ".png", ".webp", ".avif"], Th = [
9598
9598
  "image/jpeg",
9599
9599
  "image/png",
9600
9600
  "image/webp",
@@ -9624,7 +9624,7 @@ const sn = {
9624
9624
  async load(i, t, e) {
9625
9625
  var n;
9626
9626
  let s = null;
9627
- globalThis.createImageBitmap && this.config.preferCreateImageBitmap ? this.config.preferWorkers && await Vs.isImageBitmapSupported() ? s = await Vs.loadImageBitmap(i) : s = await Ph(i) : s = await new Promise((a) => {
9627
+ globalThis.createImageBitmap && this.config.preferCreateImageBitmap ? this.config.preferWorkers && await js.isImageBitmapSupported() ? s = await js.loadImageBitmap(i) : s = await Ph(i) : s = await new Promise((a) => {
9628
9628
  s = new Image(), s.crossOrigin = this.config.crossOrigin, s.src = i, s.complete ? a(s) : s.onload = () => {
9629
9629
  a(s);
9630
9630
  };
@@ -9731,7 +9731,7 @@ const Bh = {
9731
9731
  };
9732
9732
  class Lh {
9733
9733
  constructor() {
9734
- this._detections = [], this._initialized = !1, this.resolver = new oe(), this.loader = new eo(), this.cache = rt, this._backgroundLoader = new ja(this.loader), this._backgroundLoader.active = !0, this.reset();
9734
+ this._detections = [], this._initialized = !1, this.resolver = new oe(), 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
@@ -10106,7 +10106,7 @@ dt.add(
10106
10106
  nn,
10107
10107
  Fh
10108
10108
  );
10109
- const js = {
10109
+ const Vs = {
10110
10110
  loader: B.LoadParser,
10111
10111
  resolver: B.ResolveParser,
10112
10112
  cache: B.CacheParser,
@@ -10114,7 +10114,7 @@ const js = {
10114
10114
  };
10115
10115
  dt.handle(B.Asset, (i) => {
10116
10116
  const t = i.ref;
10117
- Object.entries(js).filter(([e]) => !!t[e]).forEach(([e, s]) => dt.add(Object.assign(
10117
+ Object.entries(Vs).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 @@ dt.handle(B.Asset, (i) => {
10122
10122
  )));
10123
10123
  }, (i) => {
10124
10124
  const t = i.ref;
10125
- Object.keys(js).filter((e) => !!t[e]).forEach((e) => dt.remove(t[e]));
10125
+ Object.keys(Vs).filter((e) => !!t[e]).forEach((e) => dt.remove(t[e]));
10126
10126
  });
10127
10127
  class Ze extends O {
10128
10128
  /**
@@ -11560,7 +11560,7 @@ class Je extends Dh {
11560
11560
  }
11561
11561
  }
11562
11562
  dt.add(vn, An);
11563
- const Ut = 0.02 * 1e3, Nh = (i) => i.name == "jump", Yh = (i) => i.name == "color", Vh = (i) => i.name == "grow", jh = (i) => i.name == "dash", Xh = (i) => i.name == "sprite", $h = (i) => i.name == "add_jump_hits", qh = (i) => i.name == "resurrect";
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";
11564
11564
  function Qe(i) {
11565
11565
  "@babel/helpers - typeof";
11566
11566
  return Qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -12492,11 +12492,11 @@ var Me = Object.freeze({
12492
12492
  return i._nextId++;
12493
12493
  }, i._nextId = 0, i;
12494
12494
  }()
12495
- ), Vi = new bl(), $t = (
12495
+ ), ji = new bl(), $t = (
12496
12496
  /** @class */
12497
12497
  function() {
12498
12498
  function i(t, e) {
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 = Me.Linear.None, this._interpolationFunction = ee.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = wl.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
12499
+ e === void 0 && (e = ji), 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 = Me.Linear.None, this._interpolationFunction = ee.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = wl.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
12500
12500
  }
12501
12501
  return i.prototype.getId = function() {
12502
12502
  return this._id;
@@ -12583,7 +12583,7 @@ var Me = Object.freeze({
12583
12583
  this._chainedTweens[t].stop();
12584
12584
  return this;
12585
12585
  }, i.prototype.group = function(t) {
12586
- return t === void 0 && (t = Vi), this._group = t, this;
12586
+ return t === void 0 && (t = ji), this._group = t, this;
12587
12587
  }, i.prototype.delay = function(t) {
12588
12588
  return t === void 0 && (t = 0), this._delayTime = t, this;
12589
12589
  }, i.prototype.repeat = function(t) {
@@ -12662,7 +12662,7 @@ var Me = Object.freeze({
12662
12662
  typeof s == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(s) : this._valuesStartRepeat[t] = this._valuesEnd[t], this._valuesEnd[t] = e;
12663
12663
  }, i;
12664
12664
  }()
12665
- ), Ct = Vi;
12665
+ ), Ct = ji;
12666
12666
  Ct.getAll.bind(Ct);
12667
12667
  Ct.removeAll.bind(Ct);
12668
12668
  Ct.add.bind(Ct);
@@ -12695,7 +12695,7 @@ class vl {
12695
12695
  this.timers = e;
12696
12696
  }
12697
12697
  }
12698
- const ji = new vl();
12698
+ const Vi = new vl();
12699
12699
  class Al {
12700
12700
  constructor() {
12701
12701
  w(this, "assets", {});
@@ -12809,43 +12809,43 @@ var Tl = function(t, e) {
12809
12809
  };
12810
12810
  };
12811
12811
  Rt.loop = Tl;
12812
- var V = {};
12813
- Object.defineProperty(V, "__esModule", {
12812
+ var j = {};
12813
+ Object.defineProperty(j, "__esModule", {
12814
12814
  value: !0
12815
12815
  });
12816
- V.readBits = V.readArray = V.readUnsigned = V.readString = V.peekBytes = V.readBytes = V.peekByte = V.readByte = V.buildStream = void 0;
12816
+ j.readBits = j.readArray = j.readUnsigned = j.readString = j.peekBytes = j.readBytes = j.peekByte = j.readByte = j.buildStream = void 0;
12817
12817
  var Pl = function(t) {
12818
12818
  return {
12819
12819
  data: t,
12820
12820
  pos: 0
12821
12821
  };
12822
12822
  };
12823
- V.buildStream = Pl;
12823
+ j.buildStream = Pl;
12824
12824
  var fn = function() {
12825
12825
  return function(t) {
12826
12826
  return t.data[t.pos++];
12827
12827
  };
12828
12828
  };
12829
- V.readByte = fn;
12829
+ j.readByte = fn;
12830
12830
  var kl = function() {
12831
12831
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
12832
12832
  return function(e) {
12833
12833
  return e.data[e.pos + t];
12834
12834
  };
12835
12835
  };
12836
- V.peekByte = kl;
12836
+ j.peekByte = kl;
12837
12837
  var ni = function(t) {
12838
12838
  return function(e) {
12839
12839
  return e.data.subarray(e.pos, e.pos += t);
12840
12840
  };
12841
12841
  };
12842
- V.readBytes = ni;
12842
+ j.readBytes = ni;
12843
12843
  var Il = function(t) {
12844
12844
  return function(e) {
12845
12845
  return e.data.subarray(e.pos, e.pos + t);
12846
12846
  };
12847
12847
  };
12848
- V.peekBytes = Il;
12848
+ j.peekBytes = Il;
12849
12849
  var El = function(t) {
12850
12850
  return function(e) {
12851
12851
  return Array.from(ni(t)(e)).map(function(s) {
@@ -12853,14 +12853,14 @@ var El = function(t) {
12853
12853
  }).join("");
12854
12854
  };
12855
12855
  };
12856
- V.readString = El;
12856
+ j.readString = El;
12857
12857
  var Rl = function(t) {
12858
12858
  return function(e) {
12859
12859
  var s = ni(2)(e);
12860
12860
  return t ? (s[1] << 8) + s[0] : (s[0] << 8) + s[1];
12861
12861
  };
12862
12862
  };
12863
- V.readUnsigned = Rl;
12863
+ j.readUnsigned = Rl;
12864
12864
  var Bl = function(t, e) {
12865
12865
  return function(s, r, n) {
12866
12866
  for (var a = typeof e == "function" ? e(s, r, n) : e, o = ni(t), h = new Array(a), c = 0; c < a; c++)
@@ -12868,7 +12868,7 @@ var Bl = function(t, e) {
12868
12868
  return h;
12869
12869
  };
12870
12870
  };
12871
- V.readArray = Bl;
12871
+ j.readArray = Bl;
12872
12872
  var Fl = function(t, e, s) {
12873
12873
  for (var r = 0, n = 0; n < s; n++)
12874
12874
  r += t[e + n] && Math.pow(2, s - n - 1);
@@ -12883,12 +12883,12 @@ var Fl = function(t, e, s) {
12883
12883
  }, {});
12884
12884
  };
12885
12885
  };
12886
- V.readBits = Ll;
12886
+ j.readBits = Ll;
12887
12887
  (function(i) {
12888
12888
  Object.defineProperty(i, "__esModule", {
12889
12889
  value: !0
12890
12890
  }), i.default = void 0;
12891
- var t = Rt, e = V, s = {
12891
+ var t = Rt, e = j, s = {
12892
12892
  blocks: function(d) {
12893
12893
  for (var p = 0, f = [], g = d.data.length, m = 0, y = (0, e.readByte)()(d); y !== p && y; y = (0, e.readByte)()(d)) {
12894
12894
  if (d.pos + y >= g) {
@@ -13121,14 +13121,14 @@ oi.lzw = Ul;
13121
13121
  Object.defineProperty(qt, "__esModule", {
13122
13122
  value: !0
13123
13123
  });
13124
- var pn = qt.decompressFrames = qt.decompressFrame = mn = qt.parseGIF = void 0, Ol = Nl(dn), Gl = Rt, zl = V, Hl = ai, Wl = oi;
13124
+ var pn = qt.decompressFrames = qt.decompressFrame = mn = qt.parseGIF = void 0, Ol = Nl(dn), Gl = Rt, zl = j, Hl = ai, Wl = oi;
13125
13125
  function Nl(i) {
13126
13126
  return i && i.__esModule ? i : { default: i };
13127
13127
  }
13128
13128
  var Yl = function(t) {
13129
13129
  var e = new Uint8Array(t);
13130
13130
  return (0, Gl.parse)((0, zl.buildStream)(e), Ol.default);
13131
- }, mn = qt.parseGIF = Yl, Vl = function(t) {
13131
+ }, mn = qt.parseGIF = Yl, jl = function(t) {
13132
13132
  for (var e = t.pixels.length, s = new Uint8ClampedArray(e * 4), r = 0; r < e; r++) {
13133
13133
  var n = r * 4, a = t.pixels[r], o = t.colorTable[a] || [0, 0, 0];
13134
13134
  s[n] = o[0], s[n + 1] = o[1], s[n + 2] = o[2], s[n + 3] = a !== t.transparentIndex ? 255 : 0;
@@ -13150,17 +13150,17 @@ var Yl = function(t) {
13150
13150
  height: t.image.descriptor.height
13151
13151
  }
13152
13152
  };
13153
- return r.descriptor.lct && r.descriptor.lct.exists ? o.colorTable = r.lct : o.colorTable = e, t.gce && (o.delay = (t.gce.delay || 10) * 10, o.disposalType = t.gce.extras.disposal, t.gce.extras.transparentColorGiven && (o.transparentIndex = t.gce.transparentColorIndex)), s && (o.patch = Vl(o)), o;
13153
+ return r.descriptor.lct && r.descriptor.lct.exists ? o.colorTable = r.lct : o.colorTable = e, t.gce && (o.delay = (t.gce.delay || 10) * 10, o.disposalType = t.gce.extras.disposal, t.gce.extras.transparentColorGiven && (o.transparentIndex = t.gce.transparentColorIndex)), s && (o.patch = jl(o)), o;
13154
13154
  };
13155
13155
  qt.decompressFrame = gn;
13156
- var jl = function(t, e) {
13156
+ var Vl = function(t, e) {
13157
13157
  return t.frames.filter(function(s) {
13158
13158
  return s.image;
13159
13159
  }).map(function(s) {
13160
13160
  return gn(s, t.gct, e);
13161
13161
  });
13162
13162
  };
13163
- pn = qt.decompressFrames = jl;
13163
+ pn = qt.decompressFrames = Vl;
13164
13164
  const ve = class extends xt {
13165
13165
  constructor(i, t) {
13166
13166
  super(L.EMPTY), this.animationSpeed = 1, this.loop = !0, this.duration = 0, this.autoPlay = !0, this.dirty = !1, this._currentFrame = 0, this._autoUpdate = !1, this._isConnectedToTicker = !1, this._playing = !1, this._currentTime = 0, this.onRender = () => this.updateFrame();
@@ -13315,6 +13315,12 @@ class $l {
13315
13315
  w(this, "scaleSpeed", 0.5);
13316
13316
  w(this, "timer");
13317
13317
  }
13318
+ createImageFromBuffer(t, e) {
13319
+ return new Promise((s, r) => {
13320
+ const n = new Blob([t], { type: e }), a = new Image();
13321
+ a.onload = () => s(a), a.onerror = (o) => r(o), a.src = URL.createObjectURL(n);
13322
+ });
13323
+ }
13318
13324
  async add(t) {
13319
13325
  const e = tr[t];
13320
13326
  let s;
@@ -13329,7 +13335,11 @@ class $l {
13329
13335
  break;
13330
13336
  }
13331
13337
  case "image/png": {
13332
- s = xt.from(t);
13338
+ const a = await r.arrayBuffer(), o = await this.createImageFromBuffer(
13339
+ a,
13340
+ "image/png"
13341
+ ), h = L.from(o);
13342
+ URL.revokeObjectURL(o.src), s = new xt(h);
13333
13343
  break;
13334
13344
  }
13335
13345
  default: {
@@ -13989,9 +13999,9 @@ class oc {
13989
13999
  zIndex: -1,
13990
14000
  sprite: t.viewers.sprite,
13991
14001
  color: new J(t.broadcaster.info.color)
13992
- }), ji.add(e * o, () => {
14002
+ }), Vi.add(e * o, () => {
13993
14003
  this.addRaider(h), h.spawn({ isFalling: !0 });
13994
- }), ji.add(o * e + 6e4, () => {
14004
+ }), Vi.add(o * e + 6e4, () => {
13995
14005
  this.despawnRaider(h);
13996
14006
  });
13997
14007
  }
@@ -14059,11 +14069,11 @@ class oc {
14059
14069
  if (Nh(t) && e.jump({
14060
14070
  velocityX: t.data.velocityX,
14061
14071
  velocityY: t.data.velocityY
14062
- }), jh(t) && e.dash({ force: t.data.force }), Yh(t)) {
14072
+ }), Vh(t) && e.dash({ force: t.data.force }), Yh(t)) {
14063
14073
  const s = P(t.data.color);
14064
14074
  s && s.isValid() && e.setUserProps({ color: new J(t.data.color) });
14065
14075
  }
14066
- Vh(t) && e.scale({
14076
+ jh(t) && e.scale({
14067
14077
  value: t.data.scale,
14068
14078
  duration: t.data.duration
14069
14079
  }), Xh(t) && e.setSprite(t.data.sprite), $h(t) && e.addJumpHit(t.data.count), qh(t) && e.resurrect();
@@ -14163,7 +14173,7 @@ class hc {
14163
14173
  alias: s,
14164
14174
  src: e.assets[s]
14165
14175
  });
14166
- await yt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ot(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await Va({
14176
+ await yt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ot(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await ja({
14167
14177
  preference: "webgl"
14168
14178
  }), await this.renderer.init({
14169
14179
  width: t.clientWidth,
@@ -14182,7 +14192,7 @@ class hc {
14182
14192
  this.settings = t;
14183
14193
  }
14184
14194
  update() {
14185
- ji.tick(), ct.update(), this.renderer.render(this.stage);
14195
+ Vi.tick(), ct.update(), this.renderer.render(this.stage);
14186
14196
  }
14187
14197
  }
14188
14198
  const N = new hc();
@@ -14256,8 +14266,8 @@ export {
14256
14266
  fc as a7,
14257
14267
  Nh as a8,
14258
14268
  Yh as a9,
14259
- Vh as aa,
14260
- jh as ab,
14269
+ jh as aa,
14270
+ Vh as ab,
14261
14271
  Xh as ac,
14262
14272
  $h as ad,
14263
14273
  qh as ae,
@@ -14277,7 +14287,7 @@ export {
14277
14287
  Lo as o,
14278
14288
  Io as p,
14279
14289
  kt as q,
14280
- jn as r,
14290
+ Vn as r,
14281
14291
  pr as s,
14282
14292
  St as t,
14283
14293
  et as u,
@@ -1,7 +1,7 @@
1
- import { E as b, U as pt, T as pe, O as q, M as U, N as Fe, c as Me, w as L, j as R, P as gt, t as Re, K as k, L as H, b as Q, B as D, I, Q as mt, V as xt, a as _t, W as re, X as z, R as V, Y as bt, Z as M, _ as E, $ as yt, q as B, a0 as Tt, D as $, a1 as wt, a2 as Z, a3 as vt, m as St, a4 as Ct, a5 as se, n as ge, e as P, a6 as Bt } from "./index-CIFPnF4S.js";
2
- import { U as Y, T as A, R as ne, S as Ae, i as ae, b as ke, c as Ue, j as Ge, e as Pt, r as ze, o as Ft, n as He, a as Mt, g as Rt, k as At, m as kt, B as Ie } from "./colorToUniform-BEK5qDau.js";
3
- import { C as W } from "./CanvasPool-l34IksYw.js";
4
- import { g as Ut } from "./getBatchSamplersUniformGroup-DfRszIW4.js";
1
+ import { E as b, U as pt, T as pe, O as q, M as U, N as Fe, c as Me, w as L, j as R, P as gt, t as Re, K as k, L as H, b as Q, B as D, I, Q as mt, V as xt, a as _t, W as re, X as z, R as V, Y as bt, Z as M, _ as E, $ as yt, q as B, a0 as Tt, D as $, a1 as wt, a2 as Z, a3 as vt, m as St, a4 as Ct, a5 as se, n as ge, e as P, a6 as Bt } from "./index-BYnkzXxX.js";
2
+ import { U as Y, T as A, R as ne, S as Ae, i as ae, b as ke, c as Ue, j as Ge, e as Pt, r as ze, o as Ft, n as He, a as Mt, g as Rt, k as At, m as kt, B as Ie } from "./colorToUniform-CPC7AZcR.js";
3
+ import { C as W } from "./CanvasPool-BP3W-ghP.js";
4
+ import { g as Ut } from "./getBatchSamplersUniformGroup-jycmuB9s.js";
5
5
  class We {
6
6
  /**
7
7
  * Initialize the plugin with scope of application instance