@truelab/truengine 1.0.0-1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/truengine.js CHANGED
@@ -1,8 +1,8 @@
1
- var Na = Object.defineProperty;
2
- var Xa = (s, e, t) => e in s ? Na(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
1
+ var Wa = Object.defineProperty;
2
+ var Xa = (s, e, t) => e in s ? Wa(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var y = (s, e, t) => Xa(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { g as Va, L as Jn, S as Tt, A as vr, B as $a, C as fi, P as Ha, G as Ci, T as Ve, a as Ni, b as We, n as Ua, e as Ga, i as qi, c as de, s as Ds, d as ja, f as qa, h as za, r as en, D as Ka, j as Qa, k as Ja, l as yr, m as Ji, M as Za, o as wr, R as nn, p as vi, q as ye, t as to, u as eo, v as io, w as Mt, x as no, F as so, y as Ri } from "./pixi-chunk.js";
5
- import { g as re, C as ro, S as Zn } from "./gsap-chunk.js";
4
+ import { g as Va, L as Jn, S as Tt, A as vr, B as $a, C as fi, P as Ha, G as Ci, T as Ke, a as Wi, b as Ne, n as Ua, e as Ga, i as qi, c as de, s as Ds, d as ja, f as qa, h as za, r as en, D as Ka, j as Qa, k as Ja, l as yr, m as Ji, M as Za, o as wr, R as nn, p as vi, q as ye, t as to, u as eo, v as io, w as Mt, x as no, F as so, y as Ri } from "./pixi-chunk.js";
5
+ import { g as ee, C as ro, S as Zn } from "./gsap-chunk.js";
6
6
  import { B as ed, o as id, a as nd, q as sd, j as rd, E as ad, p as od, L as ld, M as hd, P as cd, d as ud, e as dd, f as fd, h as pd, Q as md, k as gd, l as _d, n as vd, m as yd, c as wd, c as bd, b as xd, T as Sd, i as Ad } from "./gsap-chunk.js";
7
7
  var On = /* @__PURE__ */ ((s) => (s[s.LOW = 0] = "LOW", s[s.MEDIUM = 100] = "MEDIUM", s[s.HIGH = 200] = "HIGH", s))(On || {}), ct = /* @__PURE__ */ ((s) => (s[s.TOP = 0] = "TOP", s[s.BOTTOM = 1] = "BOTTOM", s[s.CENTER = 2] = "CENTER", s[s.LEFT = 3] = "LEFT", s[s.RIGHT = 4] = "RIGHT", s))(ct || {}), br = /* @__PURE__ */ ((s) => (s[s.bitmapfont = 0] = "bitmapfont", s[s.dragonbones = 1] = "dragonbones", s[s.sound = 2] = "sound", s[s.spritesheet = 3] = "spritesheet", s[s.texture = 4] = "texture", s[s.webfont = 5] = "webfont", s[s.spine = 6] = "spine", s))(br || {}), ao = /* @__PURE__ */ ((s) => (s.freerounds = "freerounds", s))(ao || {}), Fe = /* @__PURE__ */ ((s) => (s.none = "none", s.in = "power2.in", s.out = "power2.out", s.inOut = "power2.inOut", s.backOut = "back.out(1.4)", s.bounceOut = "bounce.out", s.elasticOut = "elastic.out(1, 0.4)", s))(Fe || {});
8
8
  const Xt = window.navigator.userAgent;
@@ -68,13 +68,13 @@ function Yc() {
68
68
  function co() {
69
69
  return window.devicePixelRatio > 1;
70
70
  }
71
- function Wc() {
71
+ function Nc() {
72
72
  return window.location !== window.parent.location;
73
73
  }
74
74
  function uo() {
75
75
  return Modernizr && !!Modernizr.webp;
76
76
  }
77
- function Nc() {
77
+ function Wc() {
78
78
  return Modernizr && !!Modernizr.fullscreen;
79
79
  }
80
80
  class fo {
@@ -95,7 +95,7 @@ function po(s, e) {
95
95
  function Xc(s) {
96
96
  Xi.has(s) && Xi.delete(s);
97
97
  }
98
- function Ws(s, e) {
98
+ function Ns(s, e) {
99
99
  let t;
100
100
  return {
101
101
  call: () => {
@@ -115,7 +115,7 @@ function Vc(s) {
115
115
  function pn(s) {
116
116
  return Ln.has(s) ? Ln.has(s) : !1;
117
117
  }
118
- function ne(s, e, t = "") {
118
+ function se(s, e, t = "") {
119
119
  pn("dev") && ts.log([
120
120
  {
121
121
  data: `${s}:`,
@@ -478,7 +478,7 @@ let be = (Rt = class {
478
478
  * @param isOnce - callable at once
479
479
  */
480
480
  on(e, t, i, n = On.MEDIUM, r = !1) {
481
- return Rt.events.has(e) ? (Rt.events.get(e).push({ group: t, listener: i, priority: n, isOnce: r }), Rt.events.get(e).sort((o, h) => h.priority - o.priority)) : Rt.events.set(e, [{ group: t, listener: i, priority: n, isOnce: r }]), ne("On", e, `(${t}) listening... [${Rt.events.get(e).length}]`), this;
481
+ return Rt.events.has(e) ? (Rt.events.get(e).push({ group: t, listener: i, priority: n, isOnce: r }), Rt.events.get(e).sort((o, h) => h.priority - o.priority)) : Rt.events.set(e, [{ group: t, listener: i, priority: n, isOnce: r }]), se("On", e, `(${t}) listening... [${Rt.events.get(e).length}]`), this;
482
482
  }
483
483
  /**
484
484
  * Добавляет одноразовый слушатель на событие
@@ -508,7 +508,7 @@ let be = (Rt = class {
508
508
  }
509
509
  /** */
510
510
  clear(e) {
511
- ne("Clear", `(${e})`);
511
+ se("Clear", `(${e})`);
512
512
  for (const [t, i] of Rt.events) {
513
513
  const n = i.filter((r) => r.group !== e);
514
514
  Rt.events.set(t, n);
@@ -525,7 +525,7 @@ let be = (Rt = class {
525
525
  * @withoutcontext
526
526
  */
527
527
  async emit(e, t) {
528
- if (ne("Emit", e, t), Rt.events.has(e)) {
528
+ if (se("Emit", e, t), Rt.events.has(e)) {
529
529
  for (const n of Rt.events.get(e))
530
530
  await n.listener(t);
531
531
  const i = Rt.events.get(e).filter((n) => n.isOnce !== !0);
@@ -665,9 +665,9 @@ class Ti extends be {
665
665
  }
666
666
  }
667
667
  const es = new Ti(), vt = (s, e) => es.get(s, e), ai = (s) => es.registry().get(s), xo = (s, e, t) => es.langs().get(s, e, t);
668
- var wn = { exports: {} }, Ns;
668
+ var wn = { exports: {} }, Ws;
669
669
  function So() {
670
- return Ns || (Ns = 1, function(s) {
670
+ return Ws || (Ws = 1, function(s) {
671
671
  (function() {
672
672
  function e(A, k, O) {
673
673
  return A.call.apply(A.bind, arguments);
@@ -809,16 +809,16 @@ function So() {
809
809
  this.c = A, this.f = A.o.document.documentElement, this.h = k, this.a = new x("-"), this.j = k.events !== !1, this.g = k.classes !== !1;
810
810
  }
811
811
  function L(A) {
812
- A.g && f(A.f, [A.a.c("wf", "loading")]), N(A, "loading");
812
+ A.g && f(A.f, [A.a.c("wf", "loading")]), W(A, "loading");
813
813
  }
814
814
  function D(A) {
815
815
  if (A.g) {
816
816
  var k = a(A.f, A.a.c("wf", "active")), O = [], B = [A.a.c("wf", "loading")];
817
817
  k || O.push(A.a.c("wf", "inactive")), f(A.f, O, B);
818
818
  }
819
- N(A, "inactive");
819
+ W(A, "inactive");
820
820
  }
821
- function N(A, k, O) {
821
+ function W(A, k, O) {
822
822
  A.j && A.h[k] && (O ? A.h[k](O.c, C(O)) : A.h[k]());
823
823
  }
824
824
  function Y() {
@@ -866,7 +866,7 @@ function So() {
866
866
  function X(A, k, O, B, G, Q, tt) {
867
867
  this.v = A, this.B = k, this.c = O, this.a = B, this.s = tt || "BESbswy", this.f = {}, this.w = G || 3e3, this.u = Q || null, this.m = this.j = this.h = this.g = null, this.g = new q(this.c, this.s), this.h = new q(this.c, this.s), this.j = new q(this.c, this.s), this.m = new q(this.c, this.s), A = new w(this.a.c + ",serif", C(this.a)), A = I(A), this.g.a.style.cssText = A, A = new w(this.a.c + ",sans-serif", C(this.a)), A = I(A), this.h.a.style.cssText = A, A = new w("serif", C(this.a)), A = I(A), this.j.a.style.cssText = A, A = new w("sans-serif", C(this.a)), A = I(A), this.m.a.style.cssText = A, j(this.g), j(this.h), j(this.j), j(this.m);
868
868
  }
869
- var W = { D: "serif", C: "sans-serif" }, V = null;
869
+ var N = { D: "serif", C: "sans-serif" }, V = null;
870
870
  function $() {
871
871
  if (V === null) {
872
872
  var A = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
@@ -878,7 +878,7 @@ function So() {
878
878
  this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = n(), J(this);
879
879
  };
880
880
  function U(A, k, O) {
881
- for (var B in W) if (W.hasOwnProperty(B) && k === A.f[W[B]] && O === A.f[W[B]]) return !0;
881
+ for (var B in N) if (N.hasOwnProperty(B) && k === A.f[N[B]] && O === A.f[N[B]]) return !0;
882
882
  return !1;
883
883
  }
884
884
  function J(A) {
@@ -901,17 +901,17 @@ function So() {
901
901
  var ft = null;
902
902
  nt.prototype.g = function(A) {
903
903
  var k = this.a;
904
- k.g && f(k.f, [k.a.c("wf", A.c, C(A).toString(), "active")], [k.a.c("wf", A.c, C(A).toString(), "loading"), k.a.c("wf", A.c, C(A).toString(), "inactive")]), N(k, "fontactive", A), this.m = !0, Pt(this);
904
+ k.g && f(k.f, [k.a.c("wf", A.c, C(A).toString(), "active")], [k.a.c("wf", A.c, C(A).toString(), "loading"), k.a.c("wf", A.c, C(A).toString(), "inactive")]), W(k, "fontactive", A), this.m = !0, Pt(this);
905
905
  }, nt.prototype.h = function(A) {
906
906
  var k = this.a;
907
907
  if (k.g) {
908
908
  var O = a(k.f, k.a.c("wf", A.c, C(A).toString(), "active")), B = [], G = [k.a.c("wf", A.c, C(A).toString(), "loading")];
909
909
  O || B.push(k.a.c("wf", A.c, C(A).toString(), "inactive")), f(k.f, B, G);
910
910
  }
911
- N(k, "fontinactive", A), Pt(this);
911
+ W(k, "fontinactive", A), Pt(this);
912
912
  };
913
913
  function Pt(A) {
914
- --A.f == 0 && A.j && (A.m ? (A = A.a, A.g && f(A.f, [A.a.c("wf", "active")], [A.a.c("wf", "loading"), A.a.c("wf", "inactive")]), N(A, "active")) : D(A.a));
914
+ --A.f == 0 && A.j && (A.m ? (A = A.a, A.g && f(A.f, [A.a.c("wf", "active")], [A.a.c("wf", "loading"), A.a.c("wf", "inactive")]), W(A, "active")) : D(A.a));
915
915
  }
916
916
  function gt(A) {
917
917
  this.j = A, this.a = new Y(), this.h = 0, this.f = this.g = !0;
@@ -928,12 +928,12 @@ function So() {
928
928
  k.f += O.length, Q && (k.j = Q);
929
929
  var lt, _t = [];
930
930
  for (lt = 0; lt < O.length; lt++) {
931
- var mt = O[lt], wt = at[mt.c], Nt = k.a, he = mt;
932
- if (Nt.g && f(Nt.f, [Nt.a.c("wf", he.c, C(he).toString(), "loading")]), N(Nt, "fontloading", he), Nt = null, ft === null) if (window.FontFace) {
931
+ var mt = O[lt], wt = at[mt.c], Wt = k.a, he = mt;
932
+ if (Wt.g && f(Wt.f, [Wt.a.c("wf", he.c, C(he).toString(), "loading")]), W(Wt, "fontloading", he), Wt = null, ft === null) if (window.FontFace) {
933
933
  var he = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Ei = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
934
934
  ft = he ? 42 < parseInt(he[1], 10) : !Ei;
935
935
  } else ft = !1;
936
- ft ? Nt = new R(i(k.g, k), i(k.h, k), k.c, mt, k.s, wt) : Nt = new X(i(k.g, k), i(k.h, k), k.c, mt, k.s, tt, wt), _t.push(Nt);
936
+ ft ? Wt = new R(i(k.g, k), i(k.h, k), k.c, mt, k.s, wt) : Wt = new X(i(k.g, k), i(k.h, k), k.c, mt, k.s, tt, wt), _t.push(Wt);
937
937
  }
938
938
  for (lt = 0; lt < _t.length; lt++) _t[lt].start();
939
939
  }
@@ -986,10 +986,10 @@ function So() {
986
986
  A(at, Q);
987
987
  });
988
988
  };
989
- function ee(A, k) {
990
- A ? this.c = A : this.c = Ge, this.a = [], this.f = [], this.g = k || "";
989
+ function ie(A, k) {
990
+ A ? this.c = A : this.c = Ue, this.a = [], this.f = [], this.g = k || "";
991
991
  }
992
- var Ge = "https://fonts.googleapis.com/css";
992
+ var Ue = "https://fonts.googleapis.com/css";
993
993
  function Ee(A, k) {
994
994
  for (var O = k.length, B = 0; B < O; B++) {
995
995
  var G = k[B].split(":");
@@ -1020,7 +1020,7 @@ function So() {
1020
1020
  if (wt == null) mt = "";
1021
1021
  else {
1022
1022
  if (mt = wt[2], mt = mt == null || mt == "" ? "n" : Ae[mt], wt = wt[1], wt == null || wt == "") wt = "4";
1023
- else var Nt = Se[wt], wt = Nt || (isNaN(wt) ? "4" : wt.substr(0, 1));
1023
+ else var Wt = Se[wt], wt = Wt || (isNaN(wt) ? "4" : wt.substr(0, 1));
1024
1024
  mt = [mt, wt].join("");
1025
1025
  }
1026
1026
  } else mt = "";
@@ -1036,7 +1036,7 @@ function So() {
1036
1036
  }
1037
1037
  var ke = { Arimo: !0, Cousine: !0, Tinos: !0 };
1038
1038
  zt.prototype.load = function(A) {
1039
- var k = new m(), O = this.c, B = new ee(this.a.api, this.a.text), G = this.a.families;
1039
+ var k = new m(), O = this.c, B = new ie(this.a.api, this.a.text), G = this.a.families;
1040
1040
  Ee(B, G);
1041
1041
  var Q = new Ie(G);
1042
1042
  le(Q), d(O, oe(B), _(k)), g(k, function() {
@@ -1430,7 +1430,7 @@ class To {
1430
1430
  }
1431
1431
  }
1432
1432
  }
1433
- let Cr = class Wi {
1433
+ let Cr = class Ni {
1434
1434
  /** Создает объкт с белым непрозрачным цветом по умолчанию */
1435
1435
  constructor() {
1436
1436
  y(this, "r");
@@ -1444,14 +1444,14 @@ let Cr = class Wi {
1444
1444
  * @returns новый объект цвета
1445
1445
  */
1446
1446
  static hex(e) {
1447
- return new Wi().setHex(e);
1447
+ return new Ni().setHex(e);
1448
1448
  }
1449
1449
  /** Создает объект с заданным цветом
1450
1450
  * @param hexString цвет в формате "0xffffff"
1451
1451
  * @returns новый объект цвета
1452
1452
  */
1453
1453
  static hexString(e) {
1454
- return new Wi().setHexString(e);
1454
+ return new Ni().setHexString(e);
1455
1455
  }
1456
1456
  /** Создает объект с заданным цветом
1457
1457
  * @param r значение красного канала [0..1]
@@ -1460,7 +1460,7 @@ let Cr = class Wi {
1460
1460
  * @returns новый объект цвета
1461
1461
  */
1462
1462
  static rgb(e, t, i) {
1463
- return new Wi().setRGB(e, t, i);
1463
+ return new Ni().setRGB(e, t, i);
1464
1464
  }
1465
1465
  /** Создает объект с заданным цветом
1466
1466
  * @param r значение красного канала [0..1]
@@ -1470,7 +1470,7 @@ let Cr = class Wi {
1470
1470
  * @returns новый объект цвета
1471
1471
  */
1472
1472
  static rgba(e, t, i, n) {
1473
- return new Wi().setRGBA(e, t, i, n);
1473
+ return new Ni().setRGBA(e, t, i, n);
1474
1474
  }
1475
1475
  /** Задает значение цвета
1476
1476
  * @param hex: цвет в формате 0xffffff
@@ -1694,20 +1694,20 @@ window.PIXI = Ha;
1694
1694
  return typeof I === R;
1695
1695
  }
1696
1696
  function n() {
1697
- var I, R, X, W, V, $, U;
1697
+ var I, R, X, N, V, $, U;
1698
1698
  for (var J in w)
1699
1699
  if (w.hasOwnProperty(J)) {
1700
1700
  if (I = [], R = w[J], R.name && (I.push(R.name.toLowerCase()), R.options && R.options.aliases && R.options.aliases.length))
1701
1701
  for (X = 0; X < R.options.aliases.length; X++) I.push(R.options.aliases[X].toLowerCase());
1702
- for (W = i(R.fn, "function") ? R.fn() : R.fn, V = 0; V < I.length; V++)
1703
- $ = I[V], U = $.split("."), U.length === 1 ? b[U[0]] = W : (!b[U[0]] || b[U[0]] instanceof Boolean || (b[U[0]] = new Boolean(b[U[0]])), b[U[0]][U[1]] = W), x.push((W ? "" : "no-") + U.join("-"));
1702
+ for (N = i(R.fn, "function") ? R.fn() : R.fn, V = 0; V < I.length; V++)
1703
+ $ = I[V], U = $.split("."), U.length === 1 ? b[U[0]] = N : (!b[U[0]] || b[U[0]] instanceof Boolean || (b[U[0]] = new Boolean(b[U[0]])), b[U[0]][U[1]] = N), x.push((N ? "" : "no-") + U.join("-"));
1704
1704
  }
1705
1705
  }
1706
1706
  function r(I) {
1707
1707
  var R = F.className, X = b._config.classPrefix || "";
1708
1708
  if (T && (R = R.baseVal), b._config.enableJSClass) {
1709
- var W = new RegExp("(^|\\s)" + X + "no-js(\\s|$)");
1710
- R = R.replace(W, "$1" + X + "js$2");
1709
+ var N = new RegExp("(^|\\s)" + X + "no-js(\\s|$)");
1710
+ R = R.replace(N, "$1" + X + "js$2");
1711
1711
  }
1712
1712
  b._config.enableClasses && (R += " " + X + I.join(" " + X), T ? F.className.baseVal = R : F.className = R);
1713
1713
  }
@@ -1715,15 +1715,15 @@ window.PIXI = Ha;
1715
1715
  if (typeof I == "object") for (var X in I) C(I, X) && o(X, I[X]);
1716
1716
  else {
1717
1717
  I = I.toLowerCase();
1718
- var W = I.split("."), V = b[W[0]];
1719
- if (W.length == 2 && (V = V[W[1]]), typeof V < "u") return b;
1720
- R = typeof R == "function" ? R() : R, W.length == 1 ? b[W[0]] = R : (!b[W[0]] || b[W[0]] instanceof Boolean || (b[W[0]] = new Boolean(b[W[0]])), b[W[0]][W[1]] = R), r([(R && R != 0 ? "" : "no-") + W.join("-")]), b._trigger(I, R);
1718
+ var N = I.split("."), V = b[N[0]];
1719
+ if (N.length == 2 && (V = V[N[1]]), typeof V < "u") return b;
1720
+ R = typeof R == "function" ? R() : R, N.length == 1 ? b[N[0]] = R : (!b[N[0]] || b[N[0]] instanceof Boolean || (b[N[0]] = new Boolean(b[N[0]])), b[N[0]][N[1]] = R), r([(R && R != 0 ? "" : "no-") + N.join("-")]), b._trigger(I, R);
1721
1721
  }
1722
1722
  return b;
1723
1723
  }
1724
1724
  function h(I) {
1725
- return I.replace(/([a-z])-([a-z])/g, function(R, X, W) {
1726
- return X + W.toUpperCase();
1725
+ return I.replace(/([a-z])-([a-z])/g, function(R, X, N) {
1726
+ return X + N.toUpperCase();
1727
1727
  }).replace(/^-/, "");
1728
1728
  }
1729
1729
  function u(I, R) {
@@ -1738,8 +1738,8 @@ window.PIXI = Ha;
1738
1738
  };
1739
1739
  }
1740
1740
  function a(I, R, X) {
1741
- var W;
1742
- for (var V in I) if (I[V] in R) return X === !1 ? I[V] : (W = R[I[V]], i(W, "function") ? f(W, X || R) : W);
1741
+ var N;
1742
+ for (var V in I) if (I[V] in R) return X === !1 ? I[V] : (N = R[I[V]], i(N, "function") ? f(N, X || R) : N);
1743
1743
  return !1;
1744
1744
  }
1745
1745
  function c(I) {
@@ -1748,23 +1748,23 @@ window.PIXI = Ha;
1748
1748
  }).replace(/^ms-/, "-ms-");
1749
1749
  }
1750
1750
  function d(I, R, X) {
1751
- var W;
1751
+ var N;
1752
1752
  if ("getComputedStyle" in s) {
1753
- W = getComputedStyle.call(s, I, R);
1753
+ N = getComputedStyle.call(s, I, R);
1754
1754
  var V = s.console;
1755
- if (W !== null) W = W.getPropertyValue(X);
1755
+ if (N !== null) N = N.getPropertyValue(X);
1756
1756
  else if (V) {
1757
1757
  var $ = V.error ? "error" : "log";
1758
1758
  V[$].call(V, "getComputedStyle returning null, its possible modernizr test results are inaccurate");
1759
1759
  }
1760
- } else W = I.currentStyle && I.currentStyle[X];
1761
- return W;
1760
+ } else N = I.currentStyle && I.currentStyle[X];
1761
+ return N;
1762
1762
  }
1763
1763
  function p() {
1764
1764
  var I = e.body;
1765
1765
  return I || (I = l(T ? "svg" : "body"), I.fake = !0), I;
1766
1766
  }
1767
- function m(I, R, X, W) {
1767
+ function m(I, R, X, N) {
1768
1768
  var V, $, U, J, rt = "modernizr", it = l("div"), nt = p();
1769
1769
  if (parseInt(X, 10)) for (; X--; ) U = l("div"), U.id = rt + (X + 1), it.appendChild(U);
1770
1770
  return V = l("style"), V.type = "text/css", V.id = "s" + rt, (nt.fake ? nt : it).appendChild(V), nt.appendChild(it), V.styleSheet ? V.styleSheet.cssText = I : V.appendChild(e.createTextNode(I)), it.id = rt, nt.fake && (nt.style.background = "", nt.style.overflow = "hidden", J = F.style.overflow, F.style.overflow = "hidden", F.appendChild(nt)), $ = R(it, I), nt.fake ? (nt.parentNode.removeChild(nt), F.style.overflow = J, F.offsetHeight) : it.parentNode.removeChild(it), !!$;
@@ -1776,18 +1776,18 @@ window.PIXI = Ha;
1776
1776
  return !1;
1777
1777
  }
1778
1778
  if ("CSSSupportsRule" in s) {
1779
- for (var W = []; X--; ) W.push("(" + c(I[X]) + ":" + R + ")");
1780
- return W = W.join(" or "), m("@supports (" + W + ") { #modernizr { position: absolute; } }", function(V) {
1779
+ for (var N = []; X--; ) N.push("(" + c(I[X]) + ":" + R + ")");
1780
+ return N = N.join(" or "), m("@supports (" + N + ") { #modernizr { position: absolute; } }", function(V) {
1781
1781
  return d(V, null, "position") == "absolute";
1782
1782
  });
1783
1783
  }
1784
1784
  return t;
1785
1785
  }
1786
- function g(I, R, X, W) {
1786
+ function g(I, R, X, N) {
1787
1787
  function V() {
1788
1788
  U && (delete z.style, delete z.modElem);
1789
1789
  }
1790
- if (W = i(W, "undefined") ? !1 : W, !i(X, "undefined")) {
1790
+ if (N = i(N, "undefined") ? !1 : N, !i(X, "undefined")) {
1791
1791
  var $ = _(I, X);
1792
1792
  if (!i($, "undefined")) return $;
1793
1793
  }
@@ -1795,7 +1795,7 @@ window.PIXI = Ha;
1795
1795
  U = !0, z.modElem = l(ft.shift()), z.style = z.modElem.style;
1796
1796
  for (rt = I.length, J = 0; rt > J; J++)
1797
1797
  if (it = I[J], nt = z.style[it], u(it, "-") && (it = h(it)), z.style[it] !== t) {
1798
- if (W || i(X, "undefined")) return V(), R == "pfx" ? it : !0;
1798
+ if (N || i(X, "undefined")) return V(), R == "pfx" ? it : !0;
1799
1799
  try {
1800
1800
  z.style[it] = X;
1801
1801
  } catch {
@@ -1804,9 +1804,9 @@ window.PIXI = Ha;
1804
1804
  }
1805
1805
  return V(), !1;
1806
1806
  }
1807
- function v(I, R, X, W, V) {
1807
+ function v(I, R, X, N, V) {
1808
1808
  var $ = I.charAt(0).toUpperCase() + I.slice(1), U = (I + " " + L.join($ + " ") + $).split(" ");
1809
- return i(R, "string") || i(R, "undefined") ? g(U, R, W, V) : (U = (I + " " + N.join($ + " ") + $).split(" "), a(U, R, X));
1809
+ return i(R, "string") || i(R, "undefined") ? g(U, R, N, V) : (U = (I + " " + W.join($ + " ") + $).split(" "), a(U, R, X));
1810
1810
  }
1811
1811
  var x = [], w = [], S = {
1812
1812
  _version: "3.6.0",
@@ -1843,17 +1843,17 @@ window.PIXI = Ha;
1843
1843
  if (this._l[I]) {
1844
1844
  var X = this._l[I];
1845
1845
  setTimeout(function() {
1846
- var W;
1847
- for (W = 0; W < X.length; W++) X[W](R);
1846
+ var N;
1847
+ for (N = 0; N < X.length; N++) X[N](R);
1848
1848
  }, 0), delete this._l[I];
1849
1849
  }
1850
1850
  }, b._q.push(function() {
1851
1851
  S.addTest = o;
1852
1852
  }), b.addAsyncTest(function() {
1853
- function I(W, V, $) {
1853
+ function I(N, V, $) {
1854
1854
  function U(rt) {
1855
- var it = rt && rt.type === "load" ? J.width == 1 : !1, nt = W === "webp";
1856
- o(W, nt && it ? new Boolean(it) : it), $ && $(rt);
1855
+ var it = rt && rt.type === "load" ? J.width == 1 : !1, nt = N === "webp";
1856
+ o(N, nt && it ? new Boolean(it) : it), $ && $(rt);
1857
1857
  }
1858
1858
  var J = new Image();
1859
1859
  J.onerror = U, J.onload = U, J.src = V;
@@ -1876,26 +1876,26 @@ window.PIXI = Ha;
1876
1876
  name: "webp.lossless"
1877
1877
  }
1878
1878
  ], X = R.shift();
1879
- I(X.name, X.uri, function(W) {
1880
- if (W && W.type === "load") for (var V = 0; V < R.length; V++) I(R[V].name, R[V].uri);
1879
+ I(X.name, X.uri, function(N) {
1880
+ if (N && N.type === "load") for (var V = 0; V < R.length; V++) I(R[V].name, R[V].uri);
1881
1881
  });
1882
1882
  });
1883
1883
  var E = "Moz O ms Webkit", L = S._config.usePrefixes ? E.split(" ") : [];
1884
1884
  S._cssomPrefixes = L;
1885
1885
  var D = function(I) {
1886
- var R, X = prefixes.length, W = s.CSSRule;
1887
- if (typeof W > "u") return t;
1886
+ var R, X = prefixes.length, N = s.CSSRule;
1887
+ if (typeof N > "u") return t;
1888
1888
  if (!I) return !1;
1889
- if (I = I.replace(/^@/, ""), R = I.replace(/-/g, "_").toUpperCase() + "_RULE", R in W) return "@" + I;
1889
+ if (I = I.replace(/^@/, ""), R = I.replace(/-/g, "_").toUpperCase() + "_RULE", R in N) return "@" + I;
1890
1890
  for (var V = 0; X > V; V++) {
1891
1891
  var $ = prefixes[V], U = $.toUpperCase() + "_" + R;
1892
- if (U in W) return "@-" + $.toLowerCase() + "-" + I;
1892
+ if (U in N) return "@-" + $.toLowerCase() + "-" + I;
1893
1893
  }
1894
1894
  return !1;
1895
1895
  };
1896
1896
  S.atRule = D;
1897
- var N = S._config.usePrefixes ? E.toLowerCase().split(" ") : [];
1898
- S._domPrefixes = N;
1897
+ var W = S._config.usePrefixes ? E.toLowerCase().split(" ") : [];
1898
+ S._domPrefixes = W;
1899
1899
  var Y = { elem: l("modernizr") };
1900
1900
  b._q.push(function() {
1901
1901
  delete Y.elem;
@@ -1964,7 +1964,7 @@ class Ct extends be {
1964
1964
  }
1965
1965
  }
1966
1966
  function me(s, e, t = !0) {
1967
- return e = Object.assign({ duration: 1, delay: 0 }, e), t && re.killTweensOf(s), re.to(s, e);
1967
+ return e = Object.assign({ duration: 1, delay: 0 }, e), t && ee.killTweensOf(s), ee.to(s, e);
1968
1968
  }
1969
1969
  function Po(s, e, t, i = 300 / 1e3) {
1970
1970
  const r = Math.min(s, e) < 1 ? 1e4 : 1, o = { value: s * r };
@@ -2030,17 +2030,17 @@ K.decimalPlaces = K.dp = function() {
2030
2030
  return t < 0 ? 0 : t;
2031
2031
  };
2032
2032
  K.dividedBy = K.div = function(s) {
2033
- return ze(this, new this.constructor(s));
2033
+ return qe(this, new this.constructor(s));
2034
2034
  };
2035
2035
  K.dividedToIntegerBy = K.idiv = function(s) {
2036
2036
  var e = this, t = e.constructor;
2037
- return xt(ze(e, new t(s), 0, 1), t.precision);
2037
+ return xt(qe(e, new t(s), 0, 1), t.precision);
2038
2038
  };
2039
2039
  K.equals = K.eq = function(s) {
2040
2040
  return !this.cmp(s);
2041
2041
  };
2042
2042
  K.exponent = function() {
2043
- return Wt(this);
2043
+ return Nt(this);
2044
2044
  };
2045
2045
  K.greaterThan = K.gt = function(s) {
2046
2046
  return this.cmp(s) > 0;
@@ -2072,7 +2072,7 @@ K.logarithm = K.log = function(s) {
2072
2072
  s = new i(10);
2073
2073
  else if (s = new i(s), s.s < 1 || s.eq(pe)) throw Error(we + "NaN");
2074
2074
  if (t.s < 1) throw Error(we + (t.s ? "NaN" : "-Infinity"));
2075
- return t.eq(pe) ? new i(0) : (Ft = !1, e = ze(Ui(t, r), Ui(s, r), r), Ft = !0, xt(e, n));
2075
+ return t.eq(pe) ? new i(0) : (Ft = !1, e = qe(Ui(t, r), Ui(s, r), r), Ft = !0, xt(e, n));
2076
2076
  };
2077
2077
  K.minus = K.sub = function(s) {
2078
2078
  var e = this;
@@ -2081,7 +2081,7 @@ K.minus = K.sub = function(s) {
2081
2081
  K.modulo = K.mod = function(s) {
2082
2082
  var e, t = this, i = t.constructor, n = i.precision;
2083
2083
  if (s = new i(s), !s.s) throw Error(we + "NaN");
2084
- return t.s ? (Ft = !1, e = ze(t, s, 0, 1).times(s), Ft = !0, t.minus(e)) : xt(new i(t), n);
2084
+ return t.s ? (Ft = !1, e = qe(t, s, 0, 1).times(s), Ft = !0, t.minus(e)) : xt(new i(t), n);
2085
2085
  };
2086
2086
  K.naturalExponential = K.exp = function() {
2087
2087
  return Pr(this);
@@ -2100,7 +2100,7 @@ K.plus = K.add = function(s) {
2100
2100
  K.precision = K.sd = function(s) {
2101
2101
  var e, t, i, n = this;
2102
2102
  if (s !== void 0 && s !== !!s && s !== 1 && s !== 0) throw Error(pi + s);
2103
- if (e = Wt(n) + 1, i = n.d.length - 1, t = i * kt + 1, i = n.d[i], i) {
2103
+ if (e = Nt(n) + 1, i = n.d.length - 1, t = i * kt + 1, i = n.d[i], i) {
2104
2104
  for (; i % 10 == 0; i /= 10) t--;
2105
2105
  for (i = n.d[0]; i >= 10; i /= 10) t++;
2106
2106
  }
@@ -2112,8 +2112,8 @@ K.squareRoot = K.sqrt = function() {
2112
2112
  if (!h.s) return new u(0);
2113
2113
  throw Error(we + "NaN");
2114
2114
  }
2115
- for (s = Wt(h), Ft = !1, n = Math.sqrt(+h), n == 0 || n == 1 / 0 ? (e = De(h.d), (e.length + s) % 2 == 0 && (e += "0"), n = Math.sqrt(e), s = Fi((s + 1) / 2) - (s < 0 || s % 2), n == 1 / 0 ? e = "5e" + s : (e = n.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + s), i = new u(e)) : i = new u(n.toString()), t = u.precision, n = o = t + 3; ; )
2116
- if (r = i, i = r.plus(ze(h, r, o + 2)).times(0.5), De(r.d).slice(0, o) === (e = De(i.d)).slice(0, o)) {
2115
+ for (s = Nt(h), Ft = !1, n = Math.sqrt(+h), n == 0 || n == 1 / 0 ? (e = De(h.d), (e.length + s) % 2 == 0 && (e += "0"), n = Math.sqrt(e), s = Fi((s + 1) / 2) - (s < 0 || s % 2), n == 1 / 0 ? e = "5e" + s : (e = n.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + s), i = new u(e)) : i = new u(n.toString()), t = u.precision, n = o = t + 3; ; )
2116
+ if (r = i, i = r.plus(qe(h, r, o + 2)).times(0.5), De(r.d).slice(0, o) === (e = De(i.d)).slice(0, o)) {
2117
2117
  if (e = e.slice(o - 3, o + 1), n == o && e == "4999") {
2118
2118
  if (xt(r, t + 1, 0), r.times(r).eq(h)) {
2119
2119
  i = r;
@@ -2139,19 +2139,19 @@ K.times = K.mul = function(s) {
2139
2139
  };
2140
2140
  K.toDecimalPlaces = K.todp = function(s, e) {
2141
2141
  var t = this, i = t.constructor;
2142
- return t = new i(t), s === void 0 ? t : ($e(s, 0, Pi), e === void 0 ? e = i.rounding : $e(e, 0, 8), xt(t, s + Wt(t) + 1, e));
2142
+ return t = new i(t), s === void 0 ? t : (Ve(s, 0, Pi), e === void 0 ? e = i.rounding : Ve(e, 0, 8), xt(t, s + Nt(t) + 1, e));
2143
2143
  };
2144
2144
  K.toExponential = function(s, e) {
2145
2145
  var t, i = this, n = i.constructor;
2146
- return s === void 0 ? t = _i(i, !0) : ($e(s, 0, Pi), e === void 0 ? e = n.rounding : $e(e, 0, 8), i = xt(new n(i), s + 1, e), t = _i(i, !0, s + 1)), t;
2146
+ return s === void 0 ? t = _i(i, !0) : (Ve(s, 0, Pi), e === void 0 ? e = n.rounding : Ve(e, 0, 8), i = xt(new n(i), s + 1, e), t = _i(i, !0, s + 1)), t;
2147
2147
  };
2148
2148
  K.toFixed = function(s, e) {
2149
2149
  var t, i, n = this, r = n.constructor;
2150
- return s === void 0 ? _i(n) : ($e(s, 0, Pi), e === void 0 ? e = r.rounding : $e(e, 0, 8), i = xt(new r(n), s + Wt(n) + 1, e), t = _i(i.abs(), !1, s + Wt(i) + 1), n.isneg() && !n.isZero() ? "-" + t : t);
2150
+ return s === void 0 ? _i(n) : (Ve(s, 0, Pi), e === void 0 ? e = r.rounding : Ve(e, 0, 8), i = xt(new r(n), s + Nt(n) + 1, e), t = _i(i.abs(), !1, s + Nt(i) + 1), n.isneg() && !n.isZero() ? "-" + t : t);
2151
2151
  };
2152
2152
  K.toInteger = K.toint = function() {
2153
2153
  var s = this, e = s.constructor;
2154
- return xt(new e(s), Wt(s) + 1, e.rounding);
2154
+ return xt(new e(s), Nt(s) + 1, e.rounding);
2155
2155
  };
2156
2156
  K.toNumber = function() {
2157
2157
  return +this;
@@ -2176,14 +2176,14 @@ K.toPower = K.pow = function(s) {
2176
2176
  };
2177
2177
  K.toPrecision = function(s, e) {
2178
2178
  var t, i, n = this, r = n.constructor;
2179
- return s === void 0 ? (t = Wt(n), i = _i(n, t <= r.toExpNeg || t >= r.toExpPos)) : ($e(s, 1, Pi), e === void 0 ? e = r.rounding : $e(e, 0, 8), n = xt(new r(n), s, e), t = Wt(n), i = _i(n, s <= t || t <= r.toExpNeg, s)), i;
2179
+ return s === void 0 ? (t = Nt(n), i = _i(n, t <= r.toExpNeg || t >= r.toExpPos)) : (Ve(s, 1, Pi), e === void 0 ? e = r.rounding : Ve(e, 0, 8), n = xt(new r(n), s, e), t = Nt(n), i = _i(n, s <= t || t <= r.toExpNeg, s)), i;
2180
2180
  };
2181
2181
  K.toSignificantDigits = K.tosd = function(s, e) {
2182
2182
  var t = this, i = t.constructor;
2183
- return s === void 0 ? (s = i.precision, e = i.rounding) : ($e(s, 1, Pi), e === void 0 ? e = i.rounding : $e(e, 0, 8)), xt(new i(t), s, e);
2183
+ return s === void 0 ? (s = i.precision, e = i.rounding) : (Ve(s, 1, Pi), e === void 0 ? e = i.rounding : Ve(e, 0, 8)), xt(new i(t), s, e);
2184
2184
  };
2185
2185
  K.toString = K.valueOf = K.val = K.toJSON = K[Symbol.for("nodejs.util.inspect.custom")] = function() {
2186
- var s = this, e = Wt(s), t = s.constructor;
2186
+ var s = this, e = Nt(s), t = s.constructor;
2187
2187
  return _i(s, e <= t.toExpNeg || e >= t.toExpPos);
2188
2188
  };
2189
2189
  function Tr(s, e) {
@@ -2199,7 +2199,7 @@ function Tr(s, e) {
2199
2199
  for (t && (u.unshift(t), ++n), h = u.length; u[--h] == 0; ) u.pop();
2200
2200
  return e.d = u, e.e = n, Ft ? xt(e, a) : e;
2201
2201
  }
2202
- function $e(s, e, t) {
2202
+ function Ve(s, e, t) {
2203
2203
  if (s !== ~~s || s < e || s > t)
2204
2204
  throw Error(pi + s);
2205
2205
  }
@@ -2214,7 +2214,7 @@ function De(s) {
2214
2214
  for (; o % 10 === 0; ) o /= 10;
2215
2215
  return r + o;
2216
2216
  }
2217
- var ze = /* @__PURE__ */ function() {
2217
+ var qe = /* @__PURE__ */ function() {
2218
2218
  function s(i, n) {
2219
2219
  var r, o = 0, h = i.length;
2220
2220
  for (i = i.slice(); h--; )
@@ -2243,7 +2243,7 @@ var ze = /* @__PURE__ */ function() {
2243
2243
  if (!i.s) return new T(i);
2244
2244
  if (!n.s) throw Error(we + "Division by zero");
2245
2245
  for (u = i.e - n.e, C = D.length, S = L.length, d = new T(E), p = d.d = [], l = 0; D[l] == (L[l] || 0); ) ++l;
2246
- if (D[l] > (L[l] || 0) && --u, r == null ? v = r = T.precision : o ? v = r + (Wt(i) - Wt(n)) + 1 : v = r, v < 0) return new T(0);
2246
+ if (D[l] > (L[l] || 0) && --u, r == null ? v = r = T.precision : o ? v = r + (Nt(i) - Nt(n)) + 1 : v = r, v < 0) return new T(0);
2247
2247
  if (v = v / kt + 2 | 0, l = 0, C == 1)
2248
2248
  for (f = 0, D = D[0], v++; (l < S || f) && v--; l++)
2249
2249
  x = f * Ut + (L[l] || 0), p[l] = x / D | 0, f = x % D | 0;
@@ -2254,24 +2254,24 @@ var ze = /* @__PURE__ */ function() {
2254
2254
  f = 0, h = e(D, m, C, _), h < 0 ? (g = m[0], C != _ && (g = g * Ut + (m[1] || 0)), f = g / b | 0, f > 1 ? (f >= Ut && (f = Ut - 1), a = s(D, f), c = a.length, _ = m.length, h = e(a, m, c, _), h == 1 && (f--, t(a, C < c ? F : D, c))) : (f == 0 && (h = f = 1), a = D.slice()), c = a.length, c < _ && a.unshift(0), t(m, a, _), h == -1 && (_ = m.length, h = e(D, m, C, _), h < 1 && (f++, t(m, C < _ ? F : D, _))), _ = m.length) : h === 0 && (f++, m = [0]), p[l++] = f, h && m[0] ? m[_++] = L[w] || 0 : (m = [L[w]], _ = 1);
2255
2255
  while ((w++ < S || m[0] !== void 0) && v--);
2256
2256
  }
2257
- return p[0] || p.shift(), d.e = u, xt(d, o ? r + Wt(d) + 1 : r);
2257
+ return p[0] || p.shift(), d.e = u, xt(d, o ? r + Nt(d) + 1 : r);
2258
2258
  };
2259
2259
  }();
2260
2260
  function Pr(s, e) {
2261
2261
  var t, i, n, r, o, h, u = 0, l = 0, f = s.constructor, a = f.precision;
2262
- if (Wt(s) > 16) throw Error(ns + Wt(s));
2262
+ if (Nt(s) > 16) throw Error(ns + Nt(s));
2263
2263
  if (!s.s) return new f(pe);
2264
2264
  for (Ft = !1, h = a, o = new f(0.03125); s.abs().gte(0.1); )
2265
2265
  s = s.times(o), l += 5;
2266
2266
  for (i = Math.log(di(2, l)) / Math.LN10 * 2 + 5 | 0, h += i, t = n = r = new f(pe), f.precision = h; ; ) {
2267
- if (n = xt(n.times(s), h), t = t.times(++u), o = r.plus(ze(n, t, h)), De(o.d).slice(0, h) === De(r.d).slice(0, h)) {
2267
+ if (n = xt(n.times(s), h), t = t.times(++u), o = r.plus(qe(n, t, h)), De(o.d).slice(0, h) === De(r.d).slice(0, h)) {
2268
2268
  for (; l--; ) r = xt(r.times(r), h);
2269
2269
  return f.precision = a, e == null ? (Ft = !0, xt(r, a)) : r;
2270
2270
  }
2271
2271
  r = o;
2272
2272
  }
2273
2273
  }
2274
- function Wt(s) {
2274
+ function Nt(s) {
2275
2275
  for (var e = s.e * kt, t = s.d[0]; t >= 10; t /= 10) e++;
2276
2276
  return e;
2277
2277
  }
@@ -2290,15 +2290,15 @@ function Ui(s, e) {
2290
2290
  if (d.eq(pe)) return new m(0);
2291
2291
  if (e == null ? (Ft = !1, l = _) : l = e, d.eq(10))
2292
2292
  return e == null && (Ft = !0), bn(m, l);
2293
- if (l += c, m.precision = l, t = De(p), i = t.charAt(0), r = Wt(d), Math.abs(r) < 15e14) {
2293
+ if (l += c, m.precision = l, t = De(p), i = t.charAt(0), r = Nt(d), Math.abs(r) < 15e14) {
2294
2294
  for (; i < 7 && i != 1 || i == 1 && t.charAt(1) > 3; )
2295
2295
  d = d.times(s), t = De(d.d), i = t.charAt(0), a++;
2296
- r = Wt(d), i > 1 ? (d = new m("0." + t), r++) : d = new m(i + "." + t.slice(1));
2296
+ r = Nt(d), i > 1 ? (d = new m("0." + t), r++) : d = new m(i + "." + t.slice(1));
2297
2297
  } else
2298
2298
  return u = bn(m, l + 2, _).times(r + ""), d = Ui(new m(i + "." + t.slice(1)), l - c).plus(u), m.precision = _, e == null ? (Ft = !0, xt(d, _)) : d;
2299
- for (h = o = d = ze(d.minus(pe), d.plus(pe), l), f = xt(d.times(d), l), n = 3; ; ) {
2300
- if (o = xt(o.times(f), l), u = h.plus(ze(o, new m(n), l)), De(u.d).slice(0, l) === De(h.d).slice(0, l))
2301
- return h = h.times(2), r !== 0 && (h = h.plus(bn(m, l + 2, _).times(r + ""))), h = ze(h, new m(a), l), m.precision = _, e == null ? (Ft = !0, xt(h, _)) : h;
2299
+ for (h = o = d = qe(d.minus(pe), d.plus(pe), l), f = xt(d.times(d), l), n = 3; ; ) {
2300
+ if (o = xt(o.times(f), l), u = h.plus(qe(o, new m(n), l)), De(u.d).slice(0, l) === De(h.d).slice(0, l))
2301
+ return h = h.times(2), r !== 0 && (h = h.plus(bn(m, l + 2, _).times(r + ""))), h = qe(h, new m(a), l), m.precision = _, e == null ? (Ft = !0, xt(h, _)) : h;
2302
2302
  h = u, n += 2;
2303
2303
  }
2304
2304
  }
@@ -2330,7 +2330,7 @@ function xt(s, e, t) {
2330
2330
  }
2331
2331
  if (t !== void 0 && (r = di(10, o - n - 1), h = l / r % 10 | 0, u = e < 0 || a[f + 1] !== void 0 || l % r, u = t < 4 ? (h || u) && (t == 0 || t == (s.s < 0 ? 3 : 2)) : h > 5 || h == 5 && (t == 4 || u || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
2332
2332
  (i > 0 ? n > 0 ? l / di(10, o - n) : 0 : a[f - 1]) % 10 & 1 || t == (s.s < 0 ? 8 : 7))), e < 1 || !a[0])
2333
- return u ? (r = Wt(s), a.length = 1, e = e - r - 1, a[0] = di(10, (kt - e % kt) % kt), s.e = Fi(-e / kt) || 0) : (a.length = 1, a[0] = s.e = s.s = 0), s;
2333
+ return u ? (r = Nt(s), a.length = 1, e = e - r - 1, a[0] = di(10, (kt - e % kt) % kt), s.e = Fi(-e / kt) || 0) : (a.length = 1, a[0] = s.e = s.s = 0), s;
2334
2334
  if (i == 0 ? (a.length = f, r = 1, f--) : (a.length = f + 1, r = di(10, kt - i), a[f] = n > 0 ? (l / di(10, o - n) % di(10, n) | 0) * r : 0), u)
2335
2335
  for (; ; )
2336
2336
  if (f == 0) {
@@ -2342,7 +2342,7 @@ function xt(s, e, t) {
2342
2342
  }
2343
2343
  for (i = a.length; a[--i] === 0; ) a.pop();
2344
2344
  if (Ft && (s.e > an || s.e < -an))
2345
- throw Error(ns + Wt(s));
2345
+ throw Error(ns + Nt(s));
2346
2346
  return s;
2347
2347
  }
2348
2348
  function Fr(s, e) {
@@ -2373,7 +2373,7 @@ function Fr(s, e) {
2373
2373
  return u[0] ? (e.d = u, e.e = i, Ft ? xt(e, d) : e) : new c(0);
2374
2374
  }
2375
2375
  function _i(s, e, t) {
2376
- var i, n = Wt(s), r = De(s.d), o = r.length;
2376
+ var i, n = Nt(s), r = De(s.d), o = r.length;
2377
2377
  return e ? (t && (i = t - o) > 0 ? r = r.charAt(0) + "." + r.slice(1) + ei(i) : o > 1 && (r = r.charAt(0) + "." + r.slice(1)), r = r + (n < 0 ? "e" : "e+") + n) : n < 0 ? (r = "0." + ei(-n - 1) + r, t && (i = t - o) > 0 && (r += ei(i))) : n >= o ? (r += ei(n + 1 - o), t && (i = t - n - 1) > 0 && (r = r + "." + ei(i))) : ((i = n + 1) < o && (r = r.slice(0, i) + "." + r.slice(i)), t && (i = t - o) > 0 && (n + 1 === o && (r += "."), r += ei(i))), s.s < 0 ? "-" + r : r;
2378
2378
  }
2379
2379
  function Vs(s, e) {
@@ -2480,7 +2480,7 @@ const Sn = [
2480
2480
  y(this, "_maxHeight", null);
2481
2481
  y(this, "_isWordWrapScaleMode", !1);
2482
2482
  y(this, "_isUpscaleMode", !1);
2483
- this._text = i, this._style = new Ve(n), r && r.upscale && (this._isUpscaleMode = !0, this._saveUpscaleStyles(n));
2483
+ this._text = i, this._style = new Ke(n), r && r.upscale && (this._isUpscaleMode = !0, this._saveUpscaleStyles(n));
2484
2484
  }
2485
2485
  /**
2486
2486
  * Установить текст и отрисовать с новым текстом
@@ -2504,7 +2504,7 @@ const Sn = [
2504
2504
  * @param instance
2505
2505
  */
2506
2506
  async create(t) {
2507
- return await super.create(t), this.instance.addChild(this._container = new fi()), this._container.addChild(this._label = new Ni(this._text, this._style)), this.draw();
2507
+ return await super.create(t), this.instance.addChild(this._container = new fi()), this._container.addChild(this._label = new Wi(this._text, this._style)), this.draw();
2508
2508
  }
2509
2509
  /**
2510
2510
  * Уничтожить компонент
@@ -2588,7 +2588,7 @@ const Sn = [
2588
2588
  });
2589
2589
  }
2590
2590
  };
2591
- y(fn, "defaultStyle", new Ve({
2591
+ y(fn, "defaultStyle", new Ke({
2592
2592
  fontFamily: "Ui",
2593
2593
  fontWeight: "600",
2594
2594
  fontSize: "20",
@@ -2601,7 +2601,7 @@ class Io extends Ct {
2601
2601
  constructor(t = "fps.component") {
2602
2602
  super(t);
2603
2603
  y(this, "_config", {
2604
- textStyle: new Ve({
2604
+ textStyle: new Ke({
2605
2605
  ...Yt.defaultStyle,
2606
2606
  fontSize: et.isDesktop ? 24 : 16,
2607
2607
  fill: 0
@@ -2620,7 +2620,7 @@ class Io extends Ct {
2620
2620
  /** */
2621
2621
  async create(t) {
2622
2622
  if (this._isDebug)
2623
- return await super.create(t), this._rect = gi(0, 0, this._config.width, this._config.height, 3, 16777215), this.instance.addChild(this._rect), this._text = new Yt("fps.text", "", this._config.textStyle), await this._text.create(this.instance), this._text.setPivot(ct.CENTER, ct.CENTER), this._text.position.set(this._config.width / 2, this._config.height / 2), this._text.setMaxSize({ width: this._config.width - 4 }), this.instance.setPivot(ct.LEFT, ct.BOTTOM), this.on("fps:show", this.name, ({ value: i }) => i ? this.start() : this.stop()), this._ticker = We.shared, this.hide(), this;
2623
+ return await super.create(t), this._rect = gi(0, 0, this._config.width, this._config.height, 3, 16777215), this.instance.addChild(this._rect), this._text = new Yt("fps.text", "", this._config.textStyle), await this._text.create(this.instance), this._text.setPivot(ct.CENTER, ct.CENTER), this._text.position.set(this._config.width / 2, this._config.height / 2), this._text.setMaxSize({ width: this._config.width - 4 }), this.instance.setPivot(ct.LEFT, ct.BOTTOM), this.on("fps:show", this.name, ({ value: i }) => i ? this.start() : this.stop()), this._ticker = Ne.shared, this.hide(), this;
2624
2624
  }
2625
2625
  /** */
2626
2626
  start() {
@@ -2726,7 +2726,7 @@ class Oo extends Ti {
2726
2726
  * - добавляет дефолтные компоненты
2727
2727
  */
2728
2728
  init() {
2729
- const t = Ws(() => this.redraw(), 30), i = Ws(() => this.redraw(), 500);
2729
+ const t = Ns(() => this.redraw(), 30), i = Ns(() => this.redraw(), 500);
2730
2730
  return this.component("grid", new Ro()), this.component("fps", new Io()), window.addEventListener("resize", t.call), window.addEventListener("orientationchange", i.call), this.on("fullscreen:on", this.constructor.name, i.call).on(
2731
2731
  "fullscreen:off",
2732
2732
  this.constructor.name,
@@ -2739,7 +2739,7 @@ class Oo extends Ti {
2739
2739
  async createComponent(t) {
2740
2740
  const i = this._components.get(t);
2741
2741
  if (i)
2742
- return i.created = !0, i.instance && this.instance.parent.addChild(i.instance), ne(this.constructor.name, `Component created: ${i.name}`), await i.create(), this;
2742
+ return i.created = !0, i.instance && this.instance.parent.addChild(i.instance), se(this.constructor.name, `Component created: ${i.name}`), await i.create(), this;
2743
2743
  }
2744
2744
  /**
2745
2745
  * Создает зарегистрированные компоненты и панели
@@ -2749,7 +2749,7 @@ class Oo extends Ti {
2749
2749
  this.started = !0;
2750
2750
  const t = [];
2751
2751
  for (const [, i] of this._panels)
2752
- t.push(i.create()), this.instance.addChild(i.instance), i.created = !0, ne(this.constructor.name, `Panel created: ${i.name}`);
2752
+ t.push(i.create()), this.instance.addChild(i.instance), i.created = !0, se(this.constructor.name, `Panel created: ${i.name}`);
2753
2753
  for (const [i, n] of this._components)
2754
2754
  n.created || t.push(this.createComponent(i));
2755
2755
  return await Promise.all(t), this.started;
@@ -2776,7 +2776,7 @@ class Oo extends Ti {
2776
2776
  * @param panel
2777
2777
  */
2778
2778
  panel(t, i = null) {
2779
- return i && (i.hide(), ne(this.constructor.name, `Panel registered: ${i.name}`), this._panels.set(t, this.registry().set("panel:" + t, i))), this._panels.has(t) || Vi(this.constructor.name, `This panel name is not registered: ${t}`), this._panels.get(t);
2779
+ return i && (i.hide(), se(this.constructor.name, `Panel registered: ${i.name}`), this._panels.set(t, this.registry().set("panel:" + t, i))), this._panels.has(t) || Vi(this.constructor.name, `This panel name is not registered: ${t}`), this._panels.get(t);
2780
2780
  }
2781
2781
  /**
2782
2782
  * Регистрация компонента в продюсере (либо его получение)
@@ -2784,7 +2784,7 @@ class Oo extends Ti {
2784
2784
  * @param component
2785
2785
  */
2786
2786
  component(t, i = null) {
2787
- return i && (ne(this.constructor.name, `Component registered: ${i.name}`), this._components.set(t, i)), this._components.has(t) || Vi(this.constructor.name, `This component name is not registered: ${t}`), this._components.get(t);
2787
+ return i && (se(this.constructor.name, `Component registered: ${i.name}`), this._components.set(t, i)), this._components.has(t) || Vi(this.constructor.name, `This component name is not registered: ${t}`), this._components.get(t);
2788
2788
  }
2789
2789
  /**
2790
2790
  * Регистрация сцены в продюсере (либо ее получение)
@@ -2792,7 +2792,7 @@ class Oo extends Ti {
2792
2792
  * @param scene
2793
2793
  */
2794
2794
  scene(t = this.currentScene, i = null) {
2795
- return i && (i.hide(), i.producer = this, i.producer.instance.addChild(i.instance), this._scenes.set(t, this.registry().set("scene:" + t, i)), ne(this.constructor.name, `Scene registered: ${i.name} (by name: ${t})`)), this._scenes.has(t) || Vi(this.constructor.name, `This scene name is not registered: ${t}`), this._scenes.get(t);
2795
+ return i && (i.hide(), i.producer = this, i.producer.instance.addChild(i.instance), this._scenes.set(t, this.registry().set("scene:" + t, i)), se(this.constructor.name, `Scene registered: ${i.name} (by name: ${t})`)), this._scenes.has(t) || Vi(this.constructor.name, `This scene name is not registered: ${t}`), this._scenes.get(t);
2796
2796
  }
2797
2797
  /**
2798
2798
  * Создание и отображение сцены.
@@ -2815,7 +2815,7 @@ class Oo extends Ti {
2815
2815
  async create(t) {
2816
2816
  if (!this._scenes.has(t)) throw "Scene is not registered";
2817
2817
  const i = this._scenes.get(t);
2818
- return await i.hide(), i.destroyed ? (i.destroyed = !1, ne(this.constructor.name, `Scene created: ${i.name}`), await i.create(), !0) : (ne(this.constructor.name, `Scene already created: ${i.name}`), !1);
2818
+ return await i.hide(), i.destroyed ? (i.destroyed = !1, se(this.constructor.name, `Scene created: ${i.name}`), await i.create(), !0) : (se(this.constructor.name, `Scene already created: ${i.name}`), !1);
2819
2819
  }
2820
2820
  /**
2821
2821
  * Отображение сцены.
@@ -2826,7 +2826,7 @@ class Oo extends Ti {
2826
2826
  async show(t, i = !0) {
2827
2827
  if (!this._scenes.has(t)) throw "Scene is not registered";
2828
2828
  const n = this._scenes.get(t);
2829
- return n.hidden ? (n.hidden = !1, ne(this.constructor.name, `Scene show: ${n.name}`), i && await this.redraw(), await n.show(), !0) : (ne(this.constructor.name, `Scene already visible ${n.name}`), !1);
2829
+ return n.hidden ? (n.hidden = !1, se(this.constructor.name, `Scene show: ${n.name}`), i && await this.redraw(), await n.show(), !0) : (se(this.constructor.name, `Scene already visible ${n.name}`), !1);
2830
2830
  }
2831
2831
  /**
2832
2832
  * Уничтожение сцены
@@ -2835,7 +2835,7 @@ class Oo extends Ti {
2835
2835
  async destroy(t) {
2836
2836
  if (!this._scenes.has(t)) throw "Scene is not registered";
2837
2837
  const i = this._scenes.get(t);
2838
- !i.hidden && await i.hide(), !i.destroyed && await i.destroy() && ne(this.constructor.name, `Scene destroyed: ${t}`), i.destroyed = !0, i.hidden = !0;
2838
+ !i.hidden && await i.hide(), !i.destroyed && await i.destroy() && se(this.constructor.name, `Scene destroyed: ${t}`), i.destroyed = !0, i.hidden = !0;
2839
2839
  }
2840
2840
  }
2841
2841
  const Dn = {
@@ -2859,10 +2859,10 @@ class Lo extends be {
2859
2859
  /** */
2860
2860
  _onChange() {
2861
2861
  clearTimeout(this._windowFocusTimeout), document.hidden ? this._windowFocusTimeout = setTimeout(() => {
2862
- this.onBlur && this.onBlur(), re.ticker.lagSmoothing(0, 0), We.shared.stop(), this._tickerInterval = window.setInterval(() => {
2863
- We.shared.update();
2862
+ this.onBlur && this.onBlur(), ee.ticker.lagSmoothing(0, 0), Ne.shared.stop(), this._tickerInterval = window.setInterval(() => {
2863
+ Ne.shared.update();
2864
2864
  }, 30);
2865
- }, 300) : (this.onFocus && this.onFocus(), re.ticker.lagSmoothing(1e3, 16), We.shared.start(), clearInterval(this._tickerInterval));
2865
+ }, 300) : (this.onFocus && this.onFocus(), ee.ticker.lagSmoothing(1e3, 16), Ne.shared.start(), clearInterval(this._tickerInterval));
2866
2866
  }
2867
2867
  }
2868
2868
  class Bo extends be {
@@ -3015,10 +3015,10 @@ var An = Rr.filter(function(s) {
3015
3015
  }, s.use = function(e, t) {
3016
3016
  e.data && An.indexOf(e.extension) > -1 ? e.sound = Dt().add(e.name, { loaded: t, preload: !0, url: e.url, source: e.data }) : t();
3017
3017
  }, s.extension = "loader", s;
3018
- }(), Wo = 0, No = function(s) {
3018
+ }(), No = 0, Wo = function(s) {
3019
3019
  function e(t) {
3020
3020
  var i = s.call(this) || this;
3021
- return i.id = Wo++, i.init(t), i;
3021
+ return i.id = No++, i.init(t), i;
3022
3022
  }
3023
3023
  return fe(e, s), e.prototype.set = function(t, i) {
3024
3024
  if (this[t] === void 0) throw new Error("Property with name ".concat(t, " does not exist."));
@@ -3087,14 +3087,14 @@ var An = Rr.filter(function(s) {
3087
3087
  }, e.prototype.play = function(t) {
3088
3088
  var i = this, n = t.start, r = t.end, o = t.speed, h = t.loop, u = t.volume, l = t.muted;
3089
3089
  this._speed = o, this._volume = u, this._loop = !!h, this._muted = l, this.refresh(), this.loop && r !== null && (this.loop = !1), this._start = n, this._end = r || this._duration, this._start = Math.max(0, this._start - e.PADDING), this._end = Math.min(this._end + e.PADDING, this._duration), this._source.onloadedmetadata = function() {
3090
- i._source && (i._source.currentTime = n, i._source.onloadedmetadata = null, i.emit("progress", n, i._duration), We.shared.add(i._onUpdate, i));
3090
+ i._source && (i._source.currentTime = n, i._source.onloadedmetadata = null, i.emit("progress", n, i._duration), Ne.shared.add(i._onUpdate, i));
3091
3091
  }, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
3092
3092
  }, e.prototype._onUpdate = function() {
3093
3093
  this.emit("progress", this.progress, this._duration), this._source.currentTime >= this._end && !this._source.loop && this._onComplete();
3094
3094
  }, e.prototype._onComplete = function() {
3095
- We.shared.remove(this._onUpdate, this), this._internalStop(), this.emit("progress", 1, this._duration), this.emit("end", this);
3095
+ Ne.shared.remove(this._onUpdate, this), this._internalStop(), this.emit("progress", 1, this._duration), this.emit("end", this);
3096
3096
  }, e.prototype.destroy = function() {
3097
- We.shared.remove(this._onUpdate, this), this.removeAllListeners();
3097
+ Ne.shared.remove(this._onUpdate, this), this.removeAllListeners();
3098
3098
  var t = this._source;
3099
3099
  t && (t.onended = null, t.onplay = null, t.onpause = null, this._internalStop()), this._source = null, this._speed = 1, this._volume = 1, this._loop = !1, this._end = null, this._start = 0, this._duration = 0, this._playing = !1, this._pausedReal = !1, this._paused = !1, this._muted = !1, this._media && (this._media.context.off("refresh", this.refresh, this), this._media.context.off("refreshPaused", this.refreshPaused, this), this._media = null);
3100
3100
  }, e.prototype.toString = function() {
@@ -3107,7 +3107,7 @@ var An = Rr.filter(function(s) {
3107
3107
  return fe(e, s), e.prototype.init = function(t) {
3108
3108
  this.parent = t, this._source = t.options.source || new Audio(), t.url && (this._source.src = t.url);
3109
3109
  }, e.prototype.create = function() {
3110
- return new No(this);
3110
+ return new Wo(this);
3111
3111
  }, Object.defineProperty(e.prototype, "isPlayable", { get: function() {
3112
3112
  return !!this._source && this._source.readyState === 4;
3113
3113
  }, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, "duration", { get: function() {
@@ -3245,7 +3245,7 @@ var An = Rr.filter(function(s) {
3245
3245
  var d = this._source.buffer.duration;
3246
3246
  this._duration = d, this._end = n, this._lastUpdate = this._now(), this._elapsed = i, this._source.onended = this._onComplete.bind(this), this._loop ? (this._source.loopEnd = n, this._source.loopStart = i, this._source.start(0, i)) : n ? this._source.start(0, i, n - i) : this._source.start(0, i), this.emit("start"), this._update(!0), this.enableTicker(!0);
3247
3247
  }, e.prototype.enableTicker = function(t) {
3248
- We.shared.remove(this._updateListener, this), t && We.shared.add(this._updateListener, this);
3248
+ Ne.shared.remove(this._updateListener, this), t && Ne.shared.add(this._updateListener, this);
3249
3249
  }, Object.defineProperty(e.prototype, "progress", { get: function() {
3250
3250
  return this._progress;
3251
3251
  }, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, "paused", { get: function() {
@@ -3851,7 +3851,7 @@ var Li = function(s) {
3851
3851
  "extensions" in Ua ? Ga.add(Yn) : Jn.registerPlugin(Yn);
3852
3852
  const Cn = /* @__PURE__ */ new Map();
3853
3853
  function Qt(s, e) {
3854
- const t = re.timeline(e);
3854
+ const t = ee.timeline(e);
3855
3855
  return s && (Cn.has(s) && Cn.get(s).kill(), Cn.set(s, t)), t;
3856
3856
  }
3857
3857
  class zo extends be {
@@ -4108,7 +4108,7 @@ class qc extends Ti {
4108
4108
  y(this, "_processing", !1);
4109
4109
  // флаг блокировки работы с сервером
4110
4110
  y(this, "_pressedKeys", /* @__PURE__ */ new Map());
4111
- ne("Engine", `Constructor: ${i}`), this.canvas = t, this.name = i, qa(), Ds.GC_MAX_IDLE = 36e3, n && "failIfMajorPerformanceCaveat" in n && (Ds.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = n.failIfMajorPerformanceCaveat), this.driver = new ja({
4111
+ se("Engine", `Constructor: ${i}`), this.canvas = t, this.name = i, qa(), Ds.GC_MAX_IDLE = 36e3, n && "failIfMajorPerformanceCaveat" in n && (Ds.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = n.failIfMajorPerformanceCaveat), this.driver = new ja({
4112
4112
  autoStart: !1,
4113
4113
  view: this.canvas,
4114
4114
  backgroundAlpha: 0,
@@ -4517,18 +4517,18 @@ var te;
4517
4517
  (function(s) {
4518
4518
  s[s.mixIn = 0] = "mixIn", s[s.mixOut = 1] = "mixOut";
4519
4519
  })(te || (te = {}));
4520
- var Ne;
4520
+ var We;
4521
4521
  (function(s) {
4522
4522
  s[s.Fixed = 0] = "Fixed", s[s.Percent = 1] = "Percent";
4523
- })(Ne || (Ne = {}));
4523
+ })(We || (We = {}));
4524
4524
  var mi;
4525
4525
  (function(s) {
4526
4526
  s[s.Tangent = 0] = "Tangent", s[s.Chain = 1] = "Chain", s[s.ChainScale = 2] = "ChainScale";
4527
4527
  })(mi || (mi = {}));
4528
- var se;
4528
+ var re;
4529
4529
  (function(s) {
4530
4530
  s[s.Normal = 0] = "Normal", s[s.OnlyTranslation = 1] = "OnlyTranslation", s[s.NoRotationOrReflection = 2] = "NoRotationOrReflection", s[s.NoScale = 3] = "NoScale", s[s.NoScaleOrReflection = 4] = "NoScaleOrReflection";
4531
- })(se || (se = {}));
4531
+ })(re || (re = {}));
4532
4532
  /*! *****************************************************************************
4533
4533
  Copyright (c) Microsoft Corporation.
4534
4534
 
@@ -4543,17 +4543,17 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4543
4543
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4544
4544
  PERFORMANCE OF THIS SOFTWARE.
4545
4545
  ***************************************************************************** */
4546
- var Wn = function(s, e) {
4547
- return Wn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
4546
+ var Nn = function(s, e) {
4547
+ return Nn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
4548
4548
  t.__proto__ = i;
4549
4549
  } || function(t, i) {
4550
4550
  for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
4551
- }, Wn(s, e);
4551
+ }, Nn(s, e);
4552
4552
  };
4553
4553
  function Mi(s, e) {
4554
4554
  if (typeof e != "function" && e !== null)
4555
4555
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
4556
- Wn(s, e);
4556
+ Nn(s, e);
4557
4557
  function t() {
4558
4558
  this.constructor = s;
4559
4559
  }
@@ -4587,7 +4587,7 @@ var ni;
4587
4587
  (function(s) {
4588
4588
  s[s.MirroredRepeat = 33648] = "MirroredRepeat", s[s.ClampToEdge = 33071] = "ClampToEdge", s[s.Repeat = 10497] = "Repeat";
4589
4589
  })(ni || (ni = {}));
4590
- var Nn = (
4590
+ var Wn = (
4591
4591
  /** @class */
4592
4592
  function() {
4593
4593
  function s() {
@@ -4863,7 +4863,7 @@ var Nn = (
4863
4863
  return s !== null && s.apply(this, arguments) || this;
4864
4864
  }
4865
4865
  return e;
4866
- }(Nn)
4866
+ }(Wn)
4867
4867
  ), sl = /* @__PURE__ */ function(s) {
4868
4868
  return function(e) {
4869
4869
  return s[0] = e, s[0];
@@ -5021,7 +5021,7 @@ var Z = (
5021
5021
  return e[t[0].toUpperCase() + t.slice(1)];
5022
5022
  }, s.SUPPORTS_TYPED_ARRAYS = typeof Float32Array < "u", s;
5023
5023
  }()
5024
- ), Wr = (
5024
+ ), Nr = (
5025
5025
  /** @class */
5026
5026
  function() {
5027
5027
  function s(e) {
@@ -5058,7 +5058,7 @@ var Z = (
5058
5058
  /** @class */
5059
5059
  function() {
5060
5060
  function s() {
5061
- this.minX = 0, this.minY = 0, this.maxX = 0, this.maxY = 0, this.boundingBoxes = new Array(), this.polygons = new Array(), this.polygonPool = new Wr(function() {
5061
+ this.minX = 0, this.minY = 0, this.maxX = 0, this.maxY = 0, this.boundingBoxes = new Array(), this.polygons = new Array(), this.polygonPool = new Nr(function() {
5062
5062
  return Z.newFloatArray(16);
5063
5063
  });
5064
5064
  }
@@ -5167,7 +5167,7 @@ var Z = (
5167
5167
  }
5168
5168
  return e;
5169
5169
  }(Ja)
5170
- ), Nr = (
5170
+ ), Wr = (
5171
5171
  /** @class */
5172
5172
  function(s) {
5173
5173
  Mi(e, s);
@@ -5319,13 +5319,13 @@ var Z = (
5319
5319
  }
5320
5320
  d.alpha = a.color.a;
5321
5321
  }
5322
- for (var L = this.skeleton.drawOrder, D = null, N = null, l = 0, f = L.length; l < f; l++) {
5322
+ for (var L = this.skeleton.drawOrder, D = null, W = null, l = 0, f = L.length; l < f; l++) {
5323
5323
  var a = r[L[l].data.index], d = this.slotContainers[L[l].data.index];
5324
- if (N || d.parent !== null && d.parent !== this && (d.parent.removeChild(d), d.parent = this), a.currentGraphics && a.getAttachment())
5325
- N = a.clippingContainer, D = a.getAttachment(), N.children.length = 0, this.children[l] = d, D.endSlot === a.data && (D.endSlot = null);
5326
- else if (N) {
5324
+ if (W || d.parent !== null && d.parent !== this && (d.parent.removeChild(d), d.parent = this), a.currentGraphics && a.getAttachment())
5325
+ W = a.clippingContainer, D = a.getAttachment(), W.children.length = 0, this.children[l] = d, D.endSlot === a.data && (D.endSlot = null);
5326
+ else if (W) {
5327
5327
  var Y = this.tempClipContainers[l];
5328
- Y || (Y = this.tempClipContainers[l] = this.newContainer(), Y.visible = !1), this.children[l] = Y, d.parent = null, N.addChild(d), D.endSlot == a.data && (N.renderable = !0, N = null, D = null);
5328
+ Y || (Y = this.tempClipContainers[l] = this.newContainer(), Y.visible = !1), this.children[l] = Y, d.parent = null, W.addChild(d), D.endSlot == a.data && (W.renderable = !0, W = null, D = null);
5329
5329
  } else
5330
5330
  this.children[l] = d;
5331
5331
  }
@@ -5364,7 +5364,7 @@ var Z = (
5364
5364
  if (!r)
5365
5365
  return !1;
5366
5366
  var o = r.getAttachment(), h = o.region;
5367
- return i ? (h = new Nn(), h.texture = i, h.size = n, r.hackRegion = h, r.hackAttachment = o) : (r.hackRegion = null, r.hackAttachment = null), r.currentSprite ? this.setSpriteRegion(o, r.currentSprite, h) : r.currentMesh && this.setMeshRegion(o, r.currentMesh, h), !0;
5367
+ return i ? (h = new Wn(), h.texture = i, h.size = n, r.hackRegion = h, r.hackAttachment = o) : (r.hackRegion = null, r.hackAttachment = null), r.currentSprite ? this.setSpriteRegion(o, r.currentSprite, h) : r.currentMesh && this.setMeshRegion(o, r.currentMesh, h), !0;
5368
5368
  }, e.prototype.hackTextureBySlotName = function(t, i, n) {
5369
5369
  i === void 0 && (i = null), n === void 0 && (n = null);
5370
5370
  var r = this.skeleton.findSlotIndex(t);
@@ -5379,7 +5379,7 @@ var Z = (
5379
5379
  var l = u.getAttachment();
5380
5380
  if (i === l.name) {
5381
5381
  var f = h.region;
5382
- return n ? (f = new Nn(), f.texture = n, f.size = r, u.hackRegion = f, u.hackAttachment = l) : (u.hackRegion = null, u.hackAttachment = null), u.currentSprite && u.currentSprite.region != f ? (this.setSpriteRegion(l, u.currentSprite, f), u.currentSprite.region = f) : u.currentMesh && u.currentMesh.region != f && this.setMeshRegion(l, u.currentMesh, f), !0;
5382
+ return n ? (f = new Wn(), f.texture = n, f.size = r, u.hackRegion = f, u.hackAttachment = l) : (u.hackRegion = null, u.hackAttachment = null), u.currentSprite && u.currentSprite.region != f ? (this.setSpriteRegion(l, u.currentSprite, f), u.currentSprite.region = f) : u.currentMesh && u.currentMesh.region != f && this.setMeshRegion(l, u.currentMesh, f), !0;
5383
5383
  }
5384
5384
  return !1;
5385
5385
  }, e.prototype.newContainer = function() {
@@ -5417,7 +5417,7 @@ var Z = (
5417
5417
  }, e.clippingPolygon = [], e;
5418
5418
  }(fi)
5419
5419
  );
5420
- Object.defineProperty(Nr.prototype, "visible", {
5420
+ Object.defineProperty(Wr.prototype, "visible", {
5421
5421
  get: function() {
5422
5422
  return this._visible;
5423
5423
  },
@@ -5570,21 +5570,21 @@ var Xr = (
5570
5570
  var L = u.bones;
5571
5571
  if (l.length == 0)
5572
5572
  for (var w = o, _ = F * 3; w < n; w += h) {
5573
- var D = 0, N = 0, E = a[C++];
5573
+ var D = 0, W = 0, E = a[C++];
5574
5574
  for (E += C; C < E; C++, _ += 3) {
5575
5575
  var c = L[a[C]].matrix, S = f[_], b = f[_ + 1], Y = f[_ + 2];
5576
- D += (S * c.a + b * c.c + c.tx) * Y, N += (S * c.b + b * c.d + c.ty) * Y;
5576
+ D += (S * c.a + b * c.c + c.tx) * Y, W += (S * c.b + b * c.d + c.ty) * Y;
5577
5577
  }
5578
- r[w] = D, r[w + 1] = N;
5578
+ r[w] = D, r[w + 1] = W;
5579
5579
  }
5580
5580
  else
5581
5581
  for (var z = l, w = o, _ = F * 3, q = F << 1; w < n; w += h) {
5582
- var D = 0, N = 0, E = a[C++];
5582
+ var D = 0, W = 0, E = a[C++];
5583
5583
  for (E += C; C < E; C++, _ += 3, q += 2) {
5584
5584
  var c = L[a[C]].matrix, S = f[_] + z[q], b = f[_ + 1] + z[q + 1], Y = f[_ + 2];
5585
- D += (S * c.a + b * c.c + c.tx) * Y, N += (S * c.b + b * c.d + c.ty) * Y;
5585
+ D += (S * c.a + b * c.c + c.tx) * Y, W += (S * c.b + b * c.d + c.ty) * Y;
5586
5586
  }
5587
- r[w] = D, r[w + 1] = N;
5587
+ r[w] = D, r[w + 1] = W;
5588
5588
  }
5589
5589
  }, e.prototype.copyTo = function(t) {
5590
5590
  this.bones ? (t.bones = new Array(this.bones.length), Z.arrayCopy(this.bones, 0, t.bones, 0, this.bones.length)) : t.bones = null, this.vertices && (t.vertices = Z.newFloatArray(this.vertices.length), Z.arrayCopy(this.vertices, 0, t.vertices, 0, this.vertices.length)), t.worldVerticesLength = this.worldVerticesLength, t.timelineAttachment = this.timelineAttachment;
@@ -5804,7 +5804,7 @@ var Hr = [
5804
5804
  return n - i;
5805
5805
  }, s;
5806
5806
  }()
5807
- ), He = (
5807
+ ), $e = (
5808
5808
  /** @class */
5809
5809
  function(s) {
5810
5810
  ot(e, s);
@@ -5847,7 +5847,7 @@ var Hr = [
5847
5847
  return d + (t - c) / (this.frames[i] - c) * (this.frames[i + n] - d);
5848
5848
  }, e;
5849
5849
  }(Ot)
5850
- ), Ue = (
5850
+ ), He = (
5851
5851
  /** @class */
5852
5852
  function(s) {
5853
5853
  ot(e, s);
@@ -5895,7 +5895,7 @@ var Hr = [
5895
5895
  /*BEZIER*/
5896
5896
  );
5897
5897
  }, e;
5898
- }(He)
5898
+ }($e)
5899
5899
  ), ls = (
5900
5900
  /** @class */
5901
5901
  function(s) {
@@ -5914,7 +5914,7 @@ var Hr = [
5914
5914
  /*VALUE2*/
5915
5915
  ] = r;
5916
5916
  }, e;
5917
- }(He)
5917
+ }($e)
5918
5918
  ), ln = (
5919
5919
  /** @class */
5920
5920
  function(s) {
@@ -5950,7 +5950,7 @@ var Hr = [
5950
5950
  }
5951
5951
  }
5952
5952
  }, e;
5953
- }(Ue)
5953
+ }(He)
5954
5954
  ), Ur = (
5955
5955
  /** @class */
5956
5956
  function(s) {
@@ -6078,7 +6078,7 @@ var Hr = [
6078
6078
  }
6079
6079
  }
6080
6080
  }, e;
6081
- }(Ue)
6081
+ }(He)
6082
6082
  ), jr = (
6083
6083
  /** @class */
6084
6084
  function(s) {
@@ -6115,7 +6115,7 @@ var Hr = [
6115
6115
  }
6116
6116
  }
6117
6117
  }, e;
6118
- }(Ue)
6118
+ }(He)
6119
6119
  ), qr = (
6120
6120
  /** @class */
6121
6121
  function(s) {
@@ -6279,7 +6279,7 @@ var Hr = [
6279
6279
  }
6280
6280
  }
6281
6281
  }, e;
6282
- }(Ue)
6282
+ }(He)
6283
6283
  ), Kr = (
6284
6284
  /** @class */
6285
6285
  function(s) {
@@ -6334,7 +6334,7 @@ var Hr = [
6334
6334
  }
6335
6335
  }
6336
6336
  }, e;
6337
- }(Ue)
6337
+ }(He)
6338
6338
  ), Qr = (
6339
6339
  /** @class */
6340
6340
  function(s) {
@@ -6462,7 +6462,7 @@ var Hr = [
6462
6462
  }
6463
6463
  }
6464
6464
  }, e;
6465
- }(Ue)
6465
+ }(He)
6466
6466
  ), Zr = (
6467
6467
  /** @class */
6468
6468
  function(s) {
@@ -6499,7 +6499,7 @@ var Hr = [
6499
6499
  }
6500
6500
  }
6501
6501
  }, e;
6502
- }(Ue)
6502
+ }(He)
6503
6503
  ), ta = (
6504
6504
  /** @class */
6505
6505
  function(s) {
@@ -6630,7 +6630,7 @@ var Hr = [
6630
6630
  o == 1 ? a.set(d, p, m, _) : (h == M.setup && a.setFromColor(l.data.color), a.add((d - a.r) * o, (p - a.g) * o, (m - a.b) * o, (_ - a.a) * o));
6631
6631
  }
6632
6632
  }, e;
6633
- }(He)
6633
+ }($e)
6634
6634
  ), ea = (
6635
6635
  /** @class */
6636
6636
  function(s) {
@@ -6747,7 +6747,7 @@ var Hr = [
6747
6747
  }
6748
6748
  }
6749
6749
  }, e;
6750
- }(He)
6750
+ }($e)
6751
6751
  ), ia = (
6752
6752
  /** @class */
6753
6753
  function(s) {
@@ -6775,7 +6775,7 @@ var Hr = [
6775
6775
  o == 1 ? f.a = c : (h == M.setup && (f.a = l.data.color.a), f.a += (c - f.a) * o);
6776
6776
  }
6777
6777
  }, e;
6778
- }(Ue)
6778
+ }(He)
6779
6779
  ), na = (
6780
6780
  /** @class */
6781
6781
  function(s) {
@@ -6967,7 +6967,7 @@ var Hr = [
6967
6967
  }
6968
6968
  }
6969
6969
  }, e;
6970
- }(He)
6970
+ }($e)
6971
6971
  ), sa = (
6972
6972
  /** @class */
6973
6973
  function(s) {
@@ -7142,7 +7142,7 @@ var Hr = [
7142
7142
  }
7143
7143
  }
7144
7144
  }, e;
7145
- }(He)
7145
+ }($e)
7146
7146
  ), xi = (
7147
7147
  /** @class */
7148
7148
  function(s) {
@@ -7287,24 +7287,24 @@ var Hr = [
7287
7287
  }
7288
7288
  return;
7289
7289
  }
7290
- var D = Ot.search1(p, n), N = this.getCurvePercent(n, D), Y = c[D], z = c[D + 1];
7290
+ var D = Ot.search1(p, n), W = this.getCurvePercent(n, D), Y = c[D], z = c[D + 1];
7291
7291
  if (o == 1)
7292
7292
  if (h == M.add) {
7293
7293
  var m = f;
7294
7294
  if (m.bones)
7295
7295
  for (var I = 0; I < d; I++) {
7296
7296
  var j = Y[I];
7297
- a[I] += j + (z[I] - j) * N;
7297
+ a[I] += j + (z[I] - j) * W;
7298
7298
  }
7299
7299
  else
7300
7300
  for (var _ = m.vertices, q = 0; q < d; q++) {
7301
7301
  var j = Y[q];
7302
- a[q] += j + (z[q] - j) * N - _[q];
7302
+ a[q] += j + (z[q] - j) * W - _[q];
7303
7303
  }
7304
7304
  } else
7305
7305
  for (var R = 0; R < d; R++) {
7306
7306
  var j = Y[R];
7307
- a[R] = j + (z[R] - j) * N;
7307
+ a[R] = j + (z[R] - j) * W;
7308
7308
  }
7309
7309
  else
7310
7310
  switch (h) {
@@ -7313,12 +7313,12 @@ var Hr = [
7313
7313
  if (X.bones)
7314
7314
  for (var V = 0; V < d; V++) {
7315
7315
  var j = Y[V];
7316
- a[V] = (j + (z[V] - j) * N) * o;
7316
+ a[V] = (j + (z[V] - j) * W) * o;
7317
7317
  }
7318
7318
  else
7319
- for (var _ = X.vertices, W = 0; W < d; W++) {
7320
- var j = Y[W], C = _[W];
7321
- a[W] = C + (j + (z[W] - j) * N - C) * o;
7319
+ for (var _ = X.vertices, N = 0; N < d; N++) {
7320
+ var j = Y[N], C = _[N];
7321
+ a[N] = C + (j + (z[N] - j) * W - C) * o;
7322
7322
  }
7323
7323
  break;
7324
7324
  }
@@ -7326,7 +7326,7 @@ var Hr = [
7326
7326
  case M.replace:
7327
7327
  for (var $ = 0; $ < d; $++) {
7328
7328
  var j = Y[$];
7329
- a[$] += (j + (z[$] - j) * N - a[$]) * o;
7329
+ a[$] += (j + (z[$] - j) * W - a[$]) * o;
7330
7330
  }
7331
7331
  break;
7332
7332
  case M.add:
@@ -7334,18 +7334,18 @@ var Hr = [
7334
7334
  if (m.bones)
7335
7335
  for (var J = 0; J < d; J++) {
7336
7336
  var j = Y[J];
7337
- a[J] += (j + (z[J] - j) * N) * o;
7337
+ a[J] += (j + (z[J] - j) * W) * o;
7338
7338
  }
7339
7339
  else
7340
7340
  for (var _ = m.vertices, U = 0; U < d; U++) {
7341
7341
  var j = Y[U];
7342
- a[U] += (j + (z[U] - j) * N - _[U]) * o;
7342
+ a[U] += (j + (z[U] - j) * W - _[U]) * o;
7343
7343
  }
7344
7344
  }
7345
7345
  }
7346
7346
  }
7347
7347
  }, e;
7348
- }(He)
7348
+ }($e)
7349
7349
  ), hs = (
7350
7350
  /** @class */
7351
7351
  function(s) {
@@ -7528,7 +7528,7 @@ var Hr = [
7528
7528
  ] != 0));
7529
7529
  }
7530
7530
  }, e;
7531
- }(He)
7531
+ }($e)
7532
7532
  ), oa = (
7533
7533
  /** @class */
7534
7534
  function(s) {
@@ -7699,7 +7699,7 @@ var Hr = [
7699
7699
  l.mixRotate += (c - l.mixRotate) * o, l.mixX += (d - l.mixX) * o, l.mixY += (p - l.mixY) * o, l.mixScaleX += (m - l.mixScaleX) * o, l.mixScaleY += (_ - l.mixScaleY) * o, l.mixShearY += (g - l.mixShearY) * o;
7700
7700
  }
7701
7701
  }, e;
7702
- }(He)
7702
+ }($e)
7703
7703
  ), la = (
7704
7704
  /** @class */
7705
7705
  function(s) {
@@ -7726,7 +7726,7 @@ var Hr = [
7726
7726
  h == M.setup ? l.position = l.data.position + (a - l.data.position) * o : l.position += (a - l.position) * o;
7727
7727
  }
7728
7728
  }, e;
7729
- }(Ue)
7729
+ }(He)
7730
7730
  ), ha = (
7731
7731
  /** @class */
7732
7732
  function(s) {
@@ -7753,7 +7753,7 @@ var Hr = [
7753
7753
  h == M.setup ? l.spacing = l.data.spacing + (a - l.data.spacing) * o : l.spacing += (a - l.spacing) * o;
7754
7754
  }
7755
7755
  }, e;
7756
- }(Ue)
7756
+ }(He)
7757
7757
  ), ca = (
7758
7758
  /** @class */
7759
7759
  function(s) {
@@ -7866,7 +7866,7 @@ var Hr = [
7866
7866
  l.mixRotate += (a - l.mixRotate) * o, l.mixX += (c - l.mixX) * o, l.mixY += (d - l.mixY) * o;
7867
7867
  }
7868
7868
  }, e;
7869
- }(He)
7869
+ }($e)
7870
7870
  ), ua = (
7871
7871
  /** @class */
7872
7872
  function(s) {
@@ -7933,7 +7933,7 @@ var Hr = [
7933
7933
  /** @class */
7934
7934
  function() {
7935
7935
  function s(e) {
7936
- this.tracks = new Array(), this.timeScale = 1, this.unkeyedState = 0, this.events = new Array(), this.listeners = new Array(), this.queue = new bl(this), this.propertyIDs = new Yr(), this.animationsChanged = !1, this.trackEntryPool = new Wr(function() {
7936
+ this.tracks = new Array(), this.timeScale = 1, this.unkeyedState = 0, this.events = new Array(), this.listeners = new Array(), this.queue = new bl(this), this.propertyIDs = new Yr(), this.animationsChanged = !1, this.trackEntryPool = new Nr(function() {
7937
7937
  return new wl();
7938
7938
  }), this.data = e;
7939
7939
  }
@@ -8302,45 +8302,45 @@ var Hr = [
8302
8302
  this.objects = [], this.drainDisabled = !1, this.animState = e;
8303
8303
  }
8304
8304
  return s.prototype.start = function(e) {
8305
- this.objects.push(ie.start), this.objects.push(e), this.animState.animationsChanged = !0;
8305
+ this.objects.push(ne.start), this.objects.push(e), this.animState.animationsChanged = !0;
8306
8306
  }, s.prototype.interrupt = function(e) {
8307
- this.objects.push(ie.interrupt), this.objects.push(e);
8307
+ this.objects.push(ne.interrupt), this.objects.push(e);
8308
8308
  }, s.prototype.end = function(e) {
8309
- this.objects.push(ie.end), this.objects.push(e), this.animState.animationsChanged = !0;
8309
+ this.objects.push(ne.end), this.objects.push(e), this.animState.animationsChanged = !0;
8310
8310
  }, s.prototype.dispose = function(e) {
8311
- this.objects.push(ie.dispose), this.objects.push(e);
8311
+ this.objects.push(ne.dispose), this.objects.push(e);
8312
8312
  }, s.prototype.complete = function(e) {
8313
- this.objects.push(ie.complete), this.objects.push(e);
8313
+ this.objects.push(ne.complete), this.objects.push(e);
8314
8314
  }, s.prototype.event = function(e, t) {
8315
- this.objects.push(ie.event), this.objects.push(e), this.objects.push(t);
8315
+ this.objects.push(ne.event), this.objects.push(e), this.objects.push(t);
8316
8316
  }, s.prototype.drain = function() {
8317
8317
  if (!this.drainDisabled) {
8318
8318
  this.drainDisabled = !0;
8319
8319
  for (var e = this.objects, t = this.animState.listeners, i = 0; i < e.length; i += 2) {
8320
8320
  var n = e[i], r = e[i + 1];
8321
8321
  switch (n) {
8322
- case ie.start:
8322
+ case ne.start:
8323
8323
  r.listener && r.listener.start && r.listener.start(r);
8324
8324
  for (var o = 0; o < t.length; o++) {
8325
8325
  var h = t[o];
8326
8326
  h.start && h.start(r);
8327
8327
  }
8328
8328
  break;
8329
- case ie.interrupt:
8329
+ case ne.interrupt:
8330
8330
  r.listener && r.listener.interrupt && r.listener.interrupt(r);
8331
8331
  for (var o = 0; o < t.length; o++) {
8332
8332
  var h = t[o];
8333
8333
  h.interrupt && h.interrupt(r);
8334
8334
  }
8335
8335
  break;
8336
- case ie.end:
8336
+ case ne.end:
8337
8337
  r.listener && r.listener.end && r.listener.end(r);
8338
8338
  for (var o = 0; o < t.length; o++) {
8339
8339
  var h = t[o];
8340
8340
  h.end && h.end(r);
8341
8341
  }
8342
8342
  // Fall through.
8343
- case ie.dispose:
8343
+ case ne.dispose:
8344
8344
  r.listener && r.listener.dispose && r.listener.dispose(r);
8345
8345
  for (var o = 0; o < t.length; o++) {
8346
8346
  var h = t[o];
@@ -8348,14 +8348,14 @@ var Hr = [
8348
8348
  }
8349
8349
  this.animState.trackEntryPool.free(r);
8350
8350
  break;
8351
- case ie.complete:
8351
+ case ne.complete:
8352
8352
  r.listener && r.listener.complete && r.listener.complete(r);
8353
8353
  for (var o = 0; o < t.length; o++) {
8354
8354
  var h = t[o];
8355
8355
  h.complete && h.complete(r);
8356
8356
  }
8357
8357
  break;
8358
- case ie.event:
8358
+ case ne.event:
8359
8359
  var u = e[i++ + 2];
8360
8360
  r.listener && r.listener.event && r.listener.event(r, u);
8361
8361
  for (var o = 0; o < t.length; o++) {
@@ -8371,10 +8371,10 @@ var Hr = [
8371
8371
  this.objects.length = 0;
8372
8372
  }, s;
8373
8373
  }()
8374
- ), ie;
8374
+ ), ne;
8375
8375
  (function(s) {
8376
8376
  s[s.start = 0] = "start", s[s.interrupt = 1] = "interrupt", s[s.end = 2] = "end", s[s.dispose = 3] = "dispose", s[s.complete = 4] = "complete", s[s.event = 5] = "event";
8377
- })(ie || (ie = {}));
8377
+ })(ne || (ne = {}));
8378
8378
  var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8379
8379
  /** @class */
8380
8380
  function() {
@@ -8486,29 +8486,29 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8486
8486
  }
8487
8487
  var p = u.matrix.a, m = u.matrix.c, _ = u.matrix.b, g = u.matrix.d;
8488
8488
  switch (l.tx = p * e + m * t + u.matrix.tx, l.ty = _ * e + g * t + u.matrix.ty, this.data.transformMode) {
8489
- case se.Normal: {
8489
+ case re.Normal: {
8490
8490
  var d = i + 90 + h, v = H.cosDeg(i + o) * n, x = H.cosDeg(d) * r, w = H.sinDeg(i + o) * n, S = H.sinDeg(d) * r;
8491
8491
  l.a = p * v + m * w, l.c = p * x + m * S, l.b = _ * v + g * w, l.d = _ * x + g * S;
8492
8492
  return;
8493
8493
  }
8494
- case se.OnlyTranslation: {
8494
+ case re.OnlyTranslation: {
8495
8495
  var d = i + 90 + h;
8496
8496
  l.a = H.cosDeg(i + o) * n, l.c = H.cosDeg(d) * r, l.b = H.sinDeg(i + o) * n, l.d = H.sinDeg(d) * r;
8497
8497
  break;
8498
8498
  }
8499
- case se.NoRotationOrReflection: {
8499
+ case re.NoRotationOrReflection: {
8500
8500
  var b = p * p + _ * _, C = 0;
8501
8501
  b > 1e-4 ? (b = Math.abs(p * g - m * _) / b, p /= f, _ /= a, m = _ * b, g = p * b, C = Math.atan2(_, p) * H.radDeg) : (p = 0, _ = 0, C = 90 - Math.atan2(g, m) * H.radDeg);
8502
8502
  var F = i + o - C, T = i + h - C + 90, v = H.cosDeg(F) * n, x = H.cosDeg(T) * r, w = H.sinDeg(F) * n, S = H.sinDeg(T) * r;
8503
8503
  l.a = p * v - m * w, l.c = p * x - m * S, l.b = _ * v + g * w, l.d = _ * x + g * S;
8504
8504
  break;
8505
8505
  }
8506
- case se.NoScale:
8507
- case se.NoScaleOrReflection: {
8508
- var E = H.cosDeg(i), L = H.sinDeg(i), D = (p * E + m * L) / f, N = (_ * E + g * L) / a, b = Math.sqrt(D * D + N * N);
8509
- b > 1e-5 && (b = 1 / b), D *= b, N *= b, b = Math.sqrt(D * D + N * N), this.data.transformMode == se.NoScale && p * g - m * _ < 0 != (f < 0 != a < 0) && (b = -b);
8510
- var Y = Math.PI / 2 + Math.atan2(N, D), z = Math.cos(Y) * b, q = Math.sin(Y) * b, v = H.cosDeg(o) * n, x = H.cosDeg(90 + h) * r, w = H.sinDeg(o) * n, S = H.sinDeg(90 + h) * r;
8511
- l.a = D * v + z * w, l.c = D * x + z * S, l.b = N * v + q * w, l.d = N * x + q * S;
8506
+ case re.NoScale:
8507
+ case re.NoScaleOrReflection: {
8508
+ var E = H.cosDeg(i), L = H.sinDeg(i), D = (p * E + m * L) / f, W = (_ * E + g * L) / a, b = Math.sqrt(D * D + W * W);
8509
+ b > 1e-5 && (b = 1 / b), D *= b, W *= b, b = Math.sqrt(D * D + W * W), this.data.transformMode == re.NoScale && p * g - m * _ < 0 != (f < 0 != a < 0) && (b = -b);
8510
+ var Y = Math.PI / 2 + Math.atan2(W, D), z = Math.cos(Y) * b, q = Math.sin(Y) * b, v = H.cosDeg(o) * n, x = H.cosDeg(90 + h) * r, w = H.sinDeg(o) * n, S = H.sinDeg(90 + h) * r;
8511
+ l.a = D * v + z * w, l.c = D * x + z * S, l.b = W * v + q * w, l.d = W * x + q * S;
8512
8512
  break;
8513
8513
  }
8514
8514
  }
@@ -8562,7 +8562,7 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8562
8562
  /** @class */
8563
8563
  /* @__PURE__ */ function() {
8564
8564
  function s(e, t, i) {
8565
- if (this.index = 0, this.parent = null, this.length = 0, this.x = 0, this.y = 0, this.rotation = 0, this.scaleX = 1, this.scaleY = 1, this.shearX = 0, this.shearY = 0, this.transformMode = se.Normal, this.skinRequired = !1, this.color = new ht(), e < 0)
8565
+ if (this.index = 0, this.parent = null, this.length = 0, this.x = 0, this.y = 0, this.rotation = 0, this.scaleX = 1, this.scaleY = 1, this.shearX = 0, this.shearY = 0, this.transformMode = re.Normal, this.skinRequired = !1, this.color = new ht(), e < 0)
8566
8566
  throw new Error("index must be >= 0.");
8567
8567
  if (!t)
8568
8568
  throw new Error("name cannot be null.");
@@ -8636,10 +8636,10 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8636
8636
  throw new Error("IK bone must have parent.");
8637
8637
  var l = u.a, f = u.c, a = u.b, c = u.d, d = -e.ashearX - e.arotation, p = 0, m = 0, _ = e.skeleton.scaleX, g = -e.skeleton.scaleY;
8638
8638
  switch (e.data.transformMode) {
8639
- case se.OnlyTranslation:
8639
+ case re.OnlyTranslation:
8640
8640
  p = t - e.worldX, m = i - e.worldY, m = -m;
8641
8641
  break;
8642
- case se.NoRotationOrReflection:
8642
+ case re.NoRotationOrReflection:
8643
8643
  var v = Math.abs(l * c - f * a) / (l * l + a * a), x = l / _, w = a / g;
8644
8644
  f = -w * v * _, c = x * v * g, d += Math.atan2(w, x) * H.radDeg;
8645
8645
  // Fall through
@@ -8651,8 +8651,8 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8651
8651
  var F = e.ascaleX, T = e.ascaleY;
8652
8652
  if (n || r) {
8653
8653
  switch (e.data.transformMode) {
8654
- case se.NoScale:
8655
- case se.NoScaleOrReflection:
8654
+ case re.NoScale:
8655
+ case re.NoScaleOrReflection:
8656
8656
  p = t - e.worldX, m = i - e.worldY;
8657
8657
  }
8658
8658
  var E = e.data.length * F, L = Math.sqrt(p * p + m * m);
@@ -8665,13 +8665,13 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8665
8665
  }, s.prototype.apply2 = function(e, t, i, n, r, o, h, u, l) {
8666
8666
  var f = e.ax, a = e.ay, c = e.ascaleX, d = e.ascaleY, p = c, m = d, _ = t.ascaleX, g = e.matrix, v = 0, x = 0, w = 0;
8667
8667
  c < 0 ? (c = -c, v = 180, w = -1) : (v = 0, w = 1), d < 0 && (d = -d, w = -w), _ < 0 ? (_ = -_, x = 180) : x = 0;
8668
- var S = t.ax, b = 0, C = 0, F = 0, T = g.a, E = g.c, L = g.b, D = g.d, N = Math.abs(c - d) <= 1e-4;
8669
- !N || o ? (b = 0, C = T * S + g.tx, F = L * S + g.ty) : (b = t.ay, C = T * S + E * b + g.tx, F = L * S + D * b + g.ty);
8668
+ var S = t.ax, b = 0, C = 0, F = 0, T = g.a, E = g.c, L = g.b, D = g.d, W = Math.abs(c - d) <= 1e-4;
8669
+ !W || o ? (b = 0, C = T * S + g.tx, F = L * S + g.ty) : (b = t.ay, C = T * S + E * b + g.tx, F = L * S + D * b + g.ty);
8670
8670
  var Y = e.parent.matrix;
8671
8671
  if (!Y)
8672
8672
  throw new Error("IK parent must itself have a parent.");
8673
8673
  T = Y.a, E = Y.c, L = Y.b, D = Y.d;
8674
- var z = 1 / (T * D - E * L), q = C - Y.tx, j = F - Y.ty, I = (q * D - j * E) * z - f, R = (j * T - q * L) * z - a, X = Math.sqrt(I * I + R * R), W = t.data.length * _, V, $;
8674
+ var z = 1 / (T * D - E * L), q = C - Y.tx, j = F - Y.ty, I = (q * D - j * E) * z - f, R = (j * T - q * L) * z - a, X = Math.sqrt(I * I + R * R), N = t.data.length * _, V, $;
8675
8675
  if (X < 1e-4) {
8676
8676
  this.apply1(e, i, n, !1, o, !1, l), t.updateWorldTransformWith(S, b, 0, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
8677
8677
  return;
@@ -8680,25 +8680,25 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8680
8680
  var U = (q * D - j * E) * z - f, J = (j * T - q * L) * z - a, rt = U * U + J * J;
8681
8681
  if (u != 0) {
8682
8682
  u *= c * (_ + 1) * 0.5;
8683
- var it = Math.sqrt(rt), nt = it - X - W * c + u;
8683
+ var it = Math.sqrt(rt), nt = it - X - N * c + u;
8684
8684
  if (nt > 0) {
8685
8685
  var ft = Math.min(1, nt / (u * 2)) - 1;
8686
8686
  ft = (nt - u * (1 - ft * ft)) / it, U -= ft * U, J -= ft * J, rt = U * U + J * J;
8687
8687
  }
8688
8688
  }
8689
- t: if (N) {
8690
- W *= c;
8691
- var Pt = (rt - X * X - W * W) / (2 * X * W);
8692
- Pt < -1 ? (Pt = -1, $ = Math.PI * r) : Pt > 1 ? (Pt = 1, $ = 0, o && (T = (Math.sqrt(rt) / (X + W) - 1) * l + 1, p *= T, h && (m *= T))) : $ = Math.acos(Pt) * r, T = X + W * Pt, E = W * Math.sin($), V = Math.atan2(J * T - U * E, U * T + J * E);
8689
+ t: if (W) {
8690
+ N *= c;
8691
+ var Pt = (rt - X * X - N * N) / (2 * X * N);
8692
+ Pt < -1 ? (Pt = -1, $ = Math.PI * r) : Pt > 1 ? (Pt = 1, $ = 0, o && (T = (Math.sqrt(rt) / (X + N) - 1) * l + 1, p *= T, h && (m *= T))) : $ = Math.acos(Pt) * r, T = X + N * Pt, E = N * Math.sin($), V = Math.atan2(J * T - U * E, U * T + J * E);
8693
8693
  } else {
8694
- T = c * W, E = d * W;
8694
+ T = c * N, E = d * N;
8695
8695
  var gt = T * T, Lt = E * E, ae = Math.atan2(J, U);
8696
8696
  L = Lt * X * X + gt * rt - gt * Lt;
8697
8697
  var Bt = -2 * Lt * X, xe = Lt - gt;
8698
8698
  if (D = Bt * Bt - 4 * xe * L, D >= 0) {
8699
- var ee = Math.sqrt(D);
8700
- Bt < 0 && (ee = -ee), ee = -(Bt + ee) * 0.5;
8701
- var Ge = ee / xe, Ee = L / ee, oe = Math.abs(Ge) < Math.abs(Ee) ? Ge : Ee;
8699
+ var ie = Math.sqrt(D);
8700
+ Bt < 0 && (ie = -ie), ie = -(Bt + ie) * 0.5;
8701
+ var Ue = ie / xe, Ee = L / ie, oe = Math.abs(Ue) < Math.abs(Ee) ? Ue : Ee;
8702
8702
  if (oe * oe <= rt) {
8703
8703
  j = Math.sqrt(rt - oe * oe) * r, V = ae - Math.atan2(j, oe), $ = Math.atan2(j / d, (oe - X) / c);
8704
8704
  break t;
@@ -8738,7 +8738,7 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8738
8738
  ot(e, s);
8739
8739
  function e(t) {
8740
8740
  var i = s.call(this, t, 0, !1) || this;
8741
- return i.bones = new Array(), i._target = null, i.positionMode = Ne.Fixed, i.spacingMode = Vt.Fixed, i.rotateMode = mi.Chain, i.offsetRotation = 0, i.position = 0, i.spacing = 0, i.mixRotate = 0, i.mixX = 0, i.mixY = 0, i;
8741
+ return i.bones = new Array(), i._target = null, i.positionMode = We.Fixed, i.spacingMode = Vt.Fixed, i.rotateMode = mi.Chain, i.offsetRotation = 0, i.position = 0, i.spacing = 0, i.mixRotate = 0, i.mixX = 0, i.mixY = 0, i;
8742
8742
  }
8743
8743
  return Object.defineProperty(e.prototype, "target", {
8744
8744
  get: function() {
@@ -8831,13 +8831,13 @@ var Tl = (
8831
8831
  D = r.rotateMode == mi.Chain;
8832
8832
  else {
8833
8833
  D = !1;
8834
- var N = this.target.bone.matrix;
8835
- L *= N.a * N.d - N.b * N.c > 0 ? H.degRad : -H.degRad;
8834
+ var W = this.target.bone.matrix;
8835
+ L *= W.a * W.d - W.b * W.c > 0 ? H.degRad : -H.degRad;
8836
8836
  }
8837
- for (var p = 0, N = 3; p < l; p++, N += 3) {
8837
+ for (var p = 0, W = 3; p < l; p++, W += 3) {
8838
8838
  var _ = u[p], Y = _.matrix;
8839
8839
  Y.tx += (T - Y.tx) * i, Y.ty += (E - Y.ty) * n;
8840
- var v = F[N], x = F[N + 1], z = v - T, q = x - E;
8840
+ var v = F[W], x = F[W + 1], z = v - T, q = x - E;
8841
8841
  if (h) {
8842
8842
  var j = c[p];
8843
8843
  if (j != 0) {
@@ -8846,14 +8846,14 @@ var Tl = (
8846
8846
  }
8847
8847
  }
8848
8848
  if (T = v, E = x, t > 0) {
8849
- var R = Y.a, X = Y.c, W = Y.b, V = Y.d, $ = 0, U = 0, J = 0;
8850
- if (o ? $ = F[N - 1] : a[p + 1] == 0 ? $ = F[N + 2] : $ = Math.atan2(q, z), $ -= Math.atan2(W, R), D) {
8849
+ var R = Y.a, X = Y.c, N = Y.b, V = Y.d, $ = 0, U = 0, J = 0;
8850
+ if (o ? $ = F[W - 1] : a[p + 1] == 0 ? $ = F[W + 2] : $ = Math.atan2(q, z), $ -= Math.atan2(N, R), D) {
8851
8851
  U = Math.cos($), J = Math.sin($);
8852
8852
  var rt = _.data.length;
8853
- T += (rt * (U * R - J * W) - z) * t, E += (rt * (J * R + U * W) - q) * t;
8853
+ T += (rt * (U * R - J * N) - z) * t, E += (rt * (J * R + U * N) - q) * t;
8854
8854
  } else
8855
8855
  $ += L;
8856
- $ > H.PI ? $ -= H.PI2 : $ < -H.PI && ($ += H.PI2), $ *= t, U = Math.cos($), J = Math.sin($), Y.a = U * R - J * W, Y.c = U * X - J * V, Y.b = J * R + U * W, Y.d = J * X + U * V;
8856
+ $ > H.PI ? $ -= H.PI2 : $ < -H.PI && ($ += H.PI2), $ *= t, U = Math.cos($), J = Math.sin($), Y.a = U * R - J * N, Y.c = U * X - J * V, Y.b = J * R + U * N, Y.d = J * X + U * V;
8857
8857
  }
8858
8858
  _.updateAppliedTransform();
8859
8859
  }
@@ -8865,7 +8865,7 @@ var Tl = (
8865
8865
  var d = e.lengths;
8866
8866
  a -= l ? 1 : 2;
8867
8867
  var p = d[a];
8868
- this.data.positionMode == Ne.Percent && (r *= p);
8868
+ this.data.positionMode == We.Percent && (r *= p);
8869
8869
  var m;
8870
8870
  switch (this.data.spacingMode) {
8871
8871
  case Vt.Percent:
@@ -8908,9 +8908,9 @@ var Tl = (
8908
8908
  return h;
8909
8909
  }
8910
8910
  l ? (f += 2, u = Z.setArraySize(this.world, f), e.computeWorldVertices(n, 2, f - 4, u, 0, 2), e.computeWorldVertices(n, 0, 2, u, f - 4, 2), u[f - 2] = u[0], u[f - 1] = u[1]) : (a--, f -= 4, u = Z.setArraySize(this.world, f), e.computeWorldVertices(n, 2, f, u, 0, 2));
8911
- for (var C = Z.setArraySize(this.curves, a), F = 0, T = u[0], E = u[1], L = 0, D = 0, N = 0, Y = 0, z = 0, q = 0, j = 0, I = 0, R = 0, X = 0, W = 0, V = 0, $ = 0, U = 0, _ = 0, J = 2; _ < a; _++, J += 6)
8912
- L = u[J], D = u[J + 1], N = u[J + 2], Y = u[J + 3], z = u[J + 4], q = u[J + 5], j = (T - L * 2 + N) * 0.1875, I = (E - D * 2 + Y) * 0.1875, R = ((L - N) * 3 - T + z) * 0.09375, X = ((D - Y) * 3 - E + q) * 0.09375, W = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.75 + j + R * 0.16666667, U = (D - E) * 0.75 + I + X * 0.16666667, F += Math.sqrt($ * $ + U * U), $ += W, U += V, W += R, V += X, F += Math.sqrt($ * $ + U * U), $ += W, U += V, F += Math.sqrt($ * $ + U * U), $ += W + R, U += V + X, F += Math.sqrt($ * $ + U * U), C[_] = F, T = z, E = q;
8913
- this.data.positionMode == Ne.Percent && (r *= F);
8911
+ for (var C = Z.setArraySize(this.curves, a), F = 0, T = u[0], E = u[1], L = 0, D = 0, W = 0, Y = 0, z = 0, q = 0, j = 0, I = 0, R = 0, X = 0, N = 0, V = 0, $ = 0, U = 0, _ = 0, J = 2; _ < a; _++, J += 6)
8912
+ L = u[J], D = u[J + 1], W = u[J + 2], Y = u[J + 3], z = u[J + 4], q = u[J + 5], j = (T - L * 2 + W) * 0.1875, I = (E - D * 2 + Y) * 0.1875, R = ((L - W) * 3 - T + z) * 0.09375, X = ((D - Y) * 3 - E + q) * 0.09375, N = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.75 + j + R * 0.16666667, U = (D - E) * 0.75 + I + X * 0.16666667, F += Math.sqrt($ * $ + U * U), $ += N, U += V, N += R, V += X, F += Math.sqrt($ * $ + U * U), $ += N, U += V, F += Math.sqrt($ * $ + U * U), $ += N + R, U += V + X, F += Math.sqrt($ * $ + U * U), C[_] = F, T = z, E = q;
8913
+ this.data.positionMode == We.Percent && (r *= F);
8914
8914
  var rt;
8915
8915
  switch (this.data.spacingMode) {
8916
8916
  case Vt.Percent:
@@ -8950,9 +8950,9 @@ var Tl = (
8950
8950
  if (v != c) {
8951
8951
  c = v;
8952
8952
  var gt = v * 6;
8953
- for (T = u[gt], E = u[gt + 1], L = u[gt + 2], D = u[gt + 3], N = u[gt + 4], Y = u[gt + 5], z = u[gt + 6], q = u[gt + 7], j = (T - L * 2 + N) * 0.03, I = (E - D * 2 + Y) * 0.03, R = ((L - N) * 3 - T + z) * 6e-3, X = ((D - Y) * 3 - E + q) * 6e-3, W = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.3 + j + R * 0.16666667, U = (D - E) * 0.3 + I + X * 0.16666667, nt = Math.sqrt($ * $ + U * U), it[0] = nt, gt = 1; gt < 8; gt++)
8954
- $ += W, U += V, W += R, V += X, nt += Math.sqrt($ * $ + U * U), it[gt] = nt;
8955
- $ += W, U += V, nt += Math.sqrt($ * $ + U * U), it[8] = nt, $ += W + R, U += V + X, nt += Math.sqrt($ * $ + U * U), it[9] = nt, ft = 0;
8953
+ for (T = u[gt], E = u[gt + 1], L = u[gt + 2], D = u[gt + 3], W = u[gt + 4], Y = u[gt + 5], z = u[gt + 6], q = u[gt + 7], j = (T - L * 2 + W) * 0.03, I = (E - D * 2 + Y) * 0.03, R = ((L - W) * 3 - T + z) * 6e-3, X = ((D - Y) * 3 - E + q) * 6e-3, N = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.3 + j + R * 0.16666667, U = (D - E) * 0.3 + I + X * 0.16666667, nt = Math.sqrt($ * $ + U * U), it[0] = nt, gt = 1; gt < 8; gt++)
8954
+ $ += N, U += V, N += R, V += X, nt += Math.sqrt($ * $ + U * U), it[gt] = nt;
8955
+ $ += N, U += V, nt += Math.sqrt($ * $ + U * U), it[8] = nt, $ += N + R, U += V + X, nt += Math.sqrt($ * $ + U * U), it[9] = nt, ft = 0;
8956
8956
  }
8957
8957
  for (w *= nt; ; ft++) {
8958
8958
  var Lt = it[ft];
@@ -8966,7 +8966,7 @@ var Tl = (
8966
8966
  break;
8967
8967
  }
8968
8968
  }
8969
- this.addCurvePosition(w * 0.1, T, E, L, D, N, Y, z, q, h, g, i || _ > 0 && x == 0);
8969
+ this.addCurvePosition(w * 0.1, T, E, L, D, W, Y, z, q, h, g, i || _ > 0 && x == 0);
8970
8970
  }
8971
8971
  return h;
8972
8972
  }, s.prototype.addBeforePosition = function(e, t, i, n, r) {
@@ -9038,8 +9038,8 @@ var Tl = (
9038
9038
  S.a = L * b - D * F, S.c = L * C - D * T, S.b = D * b + L * F, S.d = D * C + L * T;
9039
9039
  }
9040
9040
  if (h) {
9041
- var N = this.temp;
9042
- u.localToWorld(N.set(this.data.offsetX, this.data.offsetY)), S.tx += (N.x - S.tx) * t, S.ty += (N.y - S.ty) * i;
9041
+ var W = this.temp;
9042
+ u.localToWorld(W.set(this.data.offsetX, this.data.offsetY)), S.tx += (W.x - S.tx) * t, S.ty += (W.y - S.ty) * i;
9043
9043
  }
9044
9044
  if (n != 0) {
9045
9045
  var Y = Math.sqrt(S.a * S.a + S.b * S.b);
@@ -9067,8 +9067,8 @@ var Tl = (
9067
9067
  S.a = L * b - D * F, S.c = L * C - D * T, S.b = D * b + L * F, S.d = D * C + L * T;
9068
9068
  }
9069
9069
  if (h) {
9070
- var N = this.temp;
9071
- u.localToWorld(N.set(this.data.offsetX, this.data.offsetY)), S.tx += N.x * t, S.ty += N.y * i;
9070
+ var W = this.temp;
9071
+ u.localToWorld(W.set(this.data.offsetX, this.data.offsetY)), S.tx += W.x * t, S.ty += W.y * i;
9072
9072
  }
9073
9073
  if (n != 0) {
9074
9074
  var Y = (Math.sqrt(f * f + c * c) - 1 + this.data.offsetScaleX) * n + 1;
@@ -9776,7 +9776,7 @@ var Tl = (
9776
9776
  m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), x = n.readInt(!0);
9777
9777
  for (var S = 0; S < x; S++)
9778
9778
  m.bones.push(i.bones[n.readInt(!0)]);
9779
- m.target = i.slots[n.readInt(!0)], m.positionMode = n.readInt(!0), m.spacingMode = n.readInt(!0), m.rotateMode = n.readInt(!0), m.offsetRotation = n.readFloat(), m.position = n.readFloat(), m.positionMode == Ne.Fixed && (m.position *= t), m.spacing = n.readFloat(), (m.spacingMode == Vt.Length || m.spacingMode == Vt.Fixed) && (m.spacing *= t), m.mixRotate = n.readFloat(), m.mixX = n.readFloat(), m.mixY = n.readFloat(), i.pathConstraints.push(m);
9779
+ m.target = i.slots[n.readInt(!0)], m.positionMode = n.readInt(!0), m.spacingMode = n.readInt(!0), m.rotateMode = n.readInt(!0), m.offsetRotation = n.readFloat(), m.position = n.readFloat(), m.positionMode == We.Fixed && (m.position *= t), m.spacing = n.readFloat(), (m.spacingMode == Vt.Length || m.spacingMode == Vt.Fixed) && (m.spacing *= t), m.mixRotate = n.readFloat(), m.mixX = n.readFloat(), m.mixY = n.readFloat(), i.pathConstraints.push(m);
9780
9780
  }
9781
9781
  var F = this.readSkin(n, i, !0, l);
9782
9782
  F && (i.defaultSkin = F, i.skins.push(F));
@@ -9811,10 +9811,10 @@ var Tl = (
9811
9811
  }
9812
9812
  f = n.readInt(!0);
9813
9813
  for (var a = 0; a < f; a++) {
9814
- var N = n.readString();
9815
- if (!N)
9814
+ var W = n.readString();
9815
+ if (!W)
9816
9816
  throw new Error("Animatio name must not be null.");
9817
- i.animations.push(this.readAnimation(n, N, i));
9817
+ i.animations.push(this.readAnimation(n, W, i));
9818
9818
  }
9819
9819
  return i;
9820
9820
  }, s.prototype.readSkin = function(e, t, i, n) {
@@ -9867,10 +9867,10 @@ var Tl = (
9867
9867
  return L ? (L.path = l, ht.rgba8888ToColor(L.color, g), L.bones = S.bones, L.vertices = S.vertices, L.worldVerticesLength = w << 1, L.triangles = F, L.regionUVs = new Float32Array(C), L.hullLength = T << 1, L.sequence = v, o && (L.edges = E, L.width = m * h, L.height = _ * h), L) : null;
9868
9868
  }
9869
9869
  case It.LinkedMesh: {
9870
- var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(), N = e.readStringRef(), Y = e.readBoolean(), v = this.readSequence(e), m = 0, _ = 0;
9870
+ var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(), W = e.readStringRef(), Y = e.readBoolean(), v = this.readSequence(e), m = 0, _ = 0;
9871
9871
  o && (m = e.readFloat(), _ = e.readFloat()), l || (l = u);
9872
9872
  var L = this.attachmentLoader.newMeshAttachment(i, u, l, v);
9873
- return L ? (L.path = l, ht.rgba8888ToColor(L.color, g), L.sequence = v, o && (L.width = m * h, L.height = _ * h), this.linkedMeshes.push(new Il(L, D, n, N, Y)), L) : null;
9873
+ return L ? (L.path = l, ht.rgba8888ToColor(L.color, g), L.sequence = v, o && (L.width = m * h, L.height = _ * h), this.linkedMeshes.push(new Il(L, D, n, W, Y)), L) : null;
9874
9874
  }
9875
9875
  case It.Path: {
9876
9876
  for (var z = e.readBoolean(), q = e.readBoolean(), w = e.readInt(!0), S = this.readVertices(e, w), j = Z.newArray(w / 3, 0), I = 0, R = j.length; I < R; I++)
@@ -9883,8 +9883,8 @@ var Tl = (
9883
9883
  return X ? (X.x = a * h, X.y = c * h, X.rotation = f, o && ht.rgba8888ToColor(X.color, g), X) : null;
9884
9884
  }
9885
9885
  case It.Clipping: {
9886
- var W = e.readInt(!0), w = e.readInt(!0), S = this.readVertices(e, w), g = o ? e.readInt32() : 0, V = this.attachmentLoader.newClippingAttachment(i, u);
9887
- return V ? (V.endSlot = t.slots[W], V.worldVerticesLength = w << 1, V.vertices = S.vertices, V.bones = S.bones, o && ht.rgba8888ToColor(V.color, g), V) : null;
9886
+ var N = e.readInt(!0), w = e.readInt(!0), S = this.readVertices(e, w), g = o ? e.readInt32() : 0, V = this.attachmentLoader.newClippingAttachment(i, u);
9887
+ return V ? (V.endSlot = t.slots[N], V.worldVerticesLength = w << 1, V.vertices = S.vertices, V.bones = S.bones, o && ht.rgba8888ToColor(V.color, g), V) : null;
9888
9888
  }
9889
9889
  }
9890
9890
  return null;
@@ -9963,30 +9963,30 @@ var Tl = (
9963
9963
  }
9964
9964
  case jl: {
9965
9965
  for (var _ = e.readInt(!0), p = new na(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, x, w, S, F, T, E), m != d; m++) {
9966
- var C = e.readFloat(), D = e.readUnsignedByte() / 255, N = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, z = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, j = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
9966
+ var C = e.readFloat(), D = e.readUnsignedByte() / 255, W = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, z = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, j = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
9967
9967
  switch (e.readByte()) {
9968
9968
  case Te:
9969
9969
  p.setStepped(m);
9970
9970
  break;
9971
9971
  case Pe:
9972
- ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x, N, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, S, z, 1), ut(e, p, b++, m, 4, g, C, F, q, 1), ut(e, p, b++, m, 5, g, C, T, j, 1), ut(e, p, b++, m, 6, g, C, E, I, 1);
9972
+ ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x, W, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, S, z, 1), ut(e, p, b++, m, 4, g, C, F, q, 1), ut(e, p, b++, m, 5, g, C, T, j, 1), ut(e, p, b++, m, 6, g, C, E, I, 1);
9973
9973
  }
9974
- g = C, v = D, x = N, w = Y, S = z, F = q, T = j, E = I;
9974
+ g = C, v = D, x = W, w = Y, S = z, F = q, T = j, E = I;
9975
9975
  }
9976
9976
  n.push(p);
9977
9977
  break;
9978
9978
  }
9979
9979
  case ql: {
9980
9980
  for (var _ = e.readInt(!0), p = new sa(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, x, w, F, T, E), m != d; m++) {
9981
- var C = e.readFloat(), D = e.readUnsignedByte() / 255, N = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, j = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
9981
+ var C = e.readFloat(), D = e.readUnsignedByte() / 255, W = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, j = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
9982
9982
  switch (e.readByte()) {
9983
9983
  case Te:
9984
9984
  p.setStepped(m);
9985
9985
  break;
9986
9986
  case Pe:
9987
- ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x, N, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, F, q, 1), ut(e, p, b++, m, 4, g, C, T, j, 1), ut(e, p, b++, m, 5, g, C, E, I, 1);
9987
+ ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x, W, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, F, q, 1), ut(e, p, b++, m, 4, g, C, T, j, 1), ut(e, p, b++, m, 5, g, C, E, I, 1);
9988
9988
  }
9989
- g = C, v = D, x = N, w = Y, F = q, T = j, E = I;
9989
+ g = C, v = D, x = W, w = Y, F = q, T = j, E = I;
9990
9990
  }
9991
9991
  n.push(p);
9992
9992
  break;
@@ -10012,38 +10012,38 @@ var Tl = (
10012
10012
  var X = e.readByte(), c = e.readInt(!0), _ = e.readInt(!0);
10013
10013
  switch (X) {
10014
10014
  case Ol:
10015
- n.push(je(e, new ln(c, _, R), 1));
10015
+ n.push(Ge(e, new ln(c, _, R), 1));
10016
10016
  break;
10017
10017
  case Ll:
10018
10018
  n.push(Pn(e, new Ur(c, _, R), r));
10019
10019
  break;
10020
10020
  case Bl:
10021
- n.push(je(e, new Gr(c, _, R), r));
10021
+ n.push(Ge(e, new Gr(c, _, R), r));
10022
10022
  break;
10023
10023
  case Dl:
10024
- n.push(je(e, new jr(c, _, R), r));
10024
+ n.push(Ge(e, new jr(c, _, R), r));
10025
10025
  break;
10026
10026
  case Yl:
10027
10027
  n.push(Pn(e, new qr(c, _, R), 1));
10028
10028
  break;
10029
- case Wl:
10030
- n.push(je(e, new zr(c, _, R), 1));
10031
- break;
10032
10029
  case Nl:
10033
- n.push(je(e, new Kr(c, _, R), 1));
10030
+ n.push(Ge(e, new zr(c, _, R), 1));
10031
+ break;
10032
+ case Wl:
10033
+ n.push(Ge(e, new Kr(c, _, R), 1));
10034
10034
  break;
10035
10035
  case Xl:
10036
10036
  n.push(Pn(e, new Qr(c, _, R), 1));
10037
10037
  break;
10038
10038
  case Vl:
10039
- n.push(je(e, new Jr(c, _, R), 1));
10039
+ n.push(Ge(e, new Jr(c, _, R), 1));
10040
10040
  break;
10041
10041
  case $l:
10042
- n.push(je(e, new Zr(c, _, R), 1));
10042
+ n.push(Ge(e, new Zr(c, _, R), 1));
10043
10043
  }
10044
10044
  }
10045
10045
  for (var o = 0, h = e.readInt(!0); o < h; o++) {
10046
- for (var W = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new aa(c, e.readInt(!0), W), g = e.readFloat(), V = e.readFloat(), $ = e.readFloat() * r, m = 0, b = 0; p.setFrame(m, g, V, $, e.readByte(), e.readBoolean(), e.readBoolean()), m != d; m++) {
10046
+ for (var N = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new aa(c, e.readInt(!0), N), g = e.readFloat(), V = e.readFloat(), $ = e.readFloat() * r, m = 0, b = 0; p.setFrame(m, g, V, $, e.readByte(), e.readBoolean(), e.readBoolean()), m != d; m++) {
10047
10047
  var C = e.readFloat(), U = e.readFloat(), J = e.readFloat() * r;
10048
10048
  switch (e.readByte()) {
10049
10049
  case Te:
@@ -10057,30 +10057,30 @@ var Tl = (
10057
10057
  n.push(p);
10058
10058
  }
10059
10059
  for (var o = 0, h = e.readInt(!0); o < h; o++) {
10060
- for (var W = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new oa(c, e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), it = e.readFloat(), nt = e.readFloat(), ft = e.readFloat(), Pt = e.readFloat(), gt = e.readFloat(), m = 0, b = 0; p.setFrame(m, g, rt, it, nt, ft, Pt, gt), m != d; m++) {
10061
- var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat(), xe = e.readFloat(), ee = e.readFloat(), Ge = e.readFloat();
10060
+ for (var N = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new oa(c, e.readInt(!0), N), g = e.readFloat(), rt = e.readFloat(), it = e.readFloat(), nt = e.readFloat(), ft = e.readFloat(), Pt = e.readFloat(), gt = e.readFloat(), m = 0, b = 0; p.setFrame(m, g, rt, it, nt, ft, Pt, gt), m != d; m++) {
10061
+ var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat(), xe = e.readFloat(), ie = e.readFloat(), Ue = e.readFloat();
10062
10062
  switch (e.readByte()) {
10063
10063
  case Te:
10064
10064
  p.setStepped(m);
10065
10065
  break;
10066
10066
  case Pe:
10067
- ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, it, ae, 1), ut(e, p, b++, m, 2, g, C, nt, Bt, 1), ut(e, p, b++, m, 3, g, C, ft, xe, 1), ut(e, p, b++, m, 4, g, C, Pt, ee, 1), ut(e, p, b++, m, 5, g, C, gt, Ge, 1);
10067
+ ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, it, ae, 1), ut(e, p, b++, m, 2, g, C, nt, Bt, 1), ut(e, p, b++, m, 3, g, C, ft, xe, 1), ut(e, p, b++, m, 4, g, C, Pt, ie, 1), ut(e, p, b++, m, 5, g, C, gt, Ue, 1);
10068
10068
  }
10069
- g = C, rt = Lt, it = ae, nt = Bt, ft = xe, Pt = ee, gt = Ge;
10069
+ g = C, rt = Lt, it = ae, nt = Bt, ft = xe, Pt = ie, gt = Ue;
10070
10070
  }
10071
10071
  n.push(p);
10072
10072
  }
10073
10073
  for (var o = 0, h = e.readInt(!0); o < h; o++)
10074
- for (var W = e.readInt(!0), Ee = i.pathConstraints[W], l = 0, f = e.readInt(!0); l < f; l++)
10074
+ for (var N = e.readInt(!0), Ee = i.pathConstraints[N], l = 0, f = e.readInt(!0); l < f; l++)
10075
10075
  switch (e.readByte()) {
10076
10076
  case Ql:
10077
- n.push(je(e, new la(e.readInt(!0), e.readInt(!0), W), Ee.positionMode == Ne.Fixed ? r : 1));
10077
+ n.push(Ge(e, new la(e.readInt(!0), e.readInt(!0), N), Ee.positionMode == We.Fixed ? r : 1));
10078
10078
  break;
10079
10079
  case Jl:
10080
- n.push(je(e, new ha(e.readInt(!0), e.readInt(!0), W), Ee.spacingMode == Vt.Length || Ee.spacingMode == Vt.Fixed ? r : 1));
10080
+ n.push(Ge(e, new ha(e.readInt(!0), e.readInt(!0), N), Ee.spacingMode == Vt.Length || Ee.spacingMode == Vt.Fixed ? r : 1));
10081
10081
  break;
10082
10082
  case Zl:
10083
- for (var p = new ca(e.readInt(!0), e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), it = e.readFloat(), nt = e.readFloat(), m = 0, b = 0, d = p.getFrameCount() - 1; p.setFrame(m, g, rt, it, nt), m != d; m++) {
10083
+ for (var p = new ca(e.readInt(!0), e.readInt(!0), N), g = e.readFloat(), rt = e.readFloat(), it = e.readFloat(), nt = e.readFloat(), m = 0, b = 0, d = p.getFrameCount() - 1; p.setFrame(m, g, rt, it, nt), m != d; m++) {
10084
10084
  var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat();
10085
10085
  switch (e.readByte()) {
10086
10086
  case Te:
@@ -10170,9 +10170,9 @@ var Tl = (
10170
10170
  }
10171
10171
  n.push(p);
10172
10172
  }
10173
- for (var Nt = 0, o = 0, h = n.length; o < h; o++)
10174
- Nt = Math.max(Nt, n[o].getDuration());
10175
- return new os(t, n, Nt);
10173
+ for (var Wt = 0, o = 0, h = n.length; o < h; o++)
10174
+ Wt = Math.max(Wt, n[o].getDuration());
10175
+ return new os(t, n, Wt);
10176
10176
  }, s.BlendModeValues = [ye.NORMAL, ye.ADD, ye.MULTIPLY, ye.SCREEN], s;
10177
10177
  }()
10178
10178
  ), Il = (
@@ -10192,7 +10192,7 @@ var Tl = (
10192
10192
  return s;
10193
10193
  }()
10194
10194
  );
10195
- function je(s, e, t) {
10195
+ function Ge(s, e, t) {
10196
10196
  for (var i = s.readFloat(), n = s.readFloat() * t, r = 0, o = 0, h = e.getFrameCount() - 1; e.setFrame(r, i, n), r != h; r++) {
10197
10197
  var u = s.readFloat(), l = s.readFloat() * t;
10198
10198
  switch (s.readByte()) {
@@ -10223,7 +10223,7 @@ function Pn(s, e, t) {
10223
10223
  function ut(s, e, t, i, n, r, o, h, u, l) {
10224
10224
  e.setBezier(t, i, n, r, h, s.readFloat(), s.readFloat() * l, s.readFloat(), s.readFloat() * l, o, u);
10225
10225
  }
10226
- var Ol = 0, Ll = 1, Bl = 2, Dl = 3, Yl = 4, Wl = 5, Nl = 6, Xl = 7, Vl = 8, $l = 9, Hl = 0, Ul = 1, Gl = 2, jl = 3, ql = 4, zl = 5, er = 0, Kl = 1, Ql = 0, Jl = 1, Zl = 2, Te = 1, Pe = 2;
10226
+ var Ol = 0, Ll = 1, Bl = 2, Dl = 3, Yl = 4, Nl = 5, Wl = 6, Xl = 7, Vl = 8, $l = 9, Hl = 0, Ul = 1, Gl = 2, jl = 3, ql = 4, zl = 5, er = 0, Kl = 1, Ql = 0, Jl = 1, Zl = 2, Te = 1, Pe = 2;
10227
10227
  (function(s) {
10228
10228
  ot(e, s);
10229
10229
  function e() {
@@ -10254,7 +10254,7 @@ var th = (
10254
10254
  if (a != null && (f = i.findBone(a), f == null))
10255
10255
  throw new Error("Parent bone not found: " + a);
10256
10256
  var c = new da(i.bones.length, l.name, f);
10257
- c.length = P(l, "length", 0) * t, c.x = P(l, "x", 0) * t, c.y = P(l, "y", 0) * t, c.rotation = P(l, "rotation", 0), c.scaleX = P(l, "scaleX", 1), c.scaleY = P(l, "scaleY", 1), c.shearX = P(l, "shearX", 0), c.shearY = P(l, "shearY", 0), c.transformMode = Z.enumValue(se, P(l, "transform", "Normal")), c.skinRequired = P(l, "skin", !1);
10257
+ c.length = P(l, "length", 0) * t, c.x = P(l, "x", 0) * t, c.y = P(l, "y", 0) * t, c.rotation = P(l, "rotation", 0), c.scaleX = P(l, "scaleX", 1), c.scaleY = P(l, "scaleY", 1), c.shearX = P(l, "shearX", 0), c.shearY = P(l, "shearY", 0), c.transformMode = Z.enumValue(re, P(l, "transform", "Normal")), c.skinRequired = P(l, "skin", !1);
10258
10258
  var d = P(l, "color", null);
10259
10259
  d && c.color.setFromString(d), i.bones.push(c);
10260
10260
  }
@@ -10308,7 +10308,7 @@ var th = (
10308
10308
  var S = g.target, b = i.findSlot(S);
10309
10309
  if (!b)
10310
10310
  throw new Error("Couldn't find target slot " + S + " for path constraint " + g.name + ".");
10311
- c.target = b, c.positionMode = Z.enumValue(Ne, P(g, "positionMode", "Percent")), c.spacingMode = Z.enumValue(Vt, P(g, "spacingMode", "Length")), c.rotateMode = Z.enumValue(mi, P(g, "rotateMode", "Tangent")), c.offsetRotation = P(g, "rotation", 0), c.position = P(g, "position", 0), c.positionMode == Ne.Fixed && (c.position *= t), c.spacing = P(g, "spacing", 0), (c.spacingMode == Vt.Length || c.spacingMode == Vt.Fixed) && (c.spacing *= t), c.mixRotate = P(g, "mixRotate", 1), c.mixX = P(g, "mixX", 1), c.mixY = P(g, "mixY", c.mixX), i.pathConstraints.push(c);
10311
+ c.target = b, c.positionMode = Z.enumValue(We, P(g, "positionMode", "Percent")), c.spacingMode = Z.enumValue(Vt, P(g, "spacingMode", "Length")), c.rotateMode = Z.enumValue(mi, P(g, "rotateMode", "Tangent")), c.offsetRotation = P(g, "rotation", 0), c.position = P(g, "position", 0), c.positionMode == We.Fixed && (c.position *= t), c.spacing = P(g, "spacing", 0), (c.spacingMode == Vt.Length || c.spacingMode == Vt.Fixed) && (c.spacing *= t), c.mixRotate = P(g, "mixRotate", 1), c.mixX = P(g, "mixX", 1), c.mixY = P(g, "mixY", c.mixX), i.pathConstraints.push(c);
10312
10312
  }
10313
10313
  if (n.skins)
10314
10314
  for (var u = 0; u < n.skins.length; u++) {
@@ -10346,9 +10346,9 @@ var th = (
10346
10346
  if (!D)
10347
10347
  throw new Error("Couldn't find slot " + L + " for skin " + C.name + ".");
10348
10348
  var p = C.attachments[L];
10349
- for (var N in p) {
10350
- var Y = this.readAttachment(p[N], F, D.index, N, i);
10351
- Y && F.setAttachment(D.index, N, Y);
10349
+ for (var W in p) {
10350
+ var Y = this.readAttachment(p[W], F, D.index, W, i);
10351
+ Y && F.setAttachment(D.index, W, Y);
10352
10352
  }
10353
10353
  }
10354
10354
  i.skins.push(F), F.name == "default" && (i.defaultSkin = F);
@@ -10369,8 +10369,8 @@ var th = (
10369
10369
  }
10370
10370
  if (n.animations)
10371
10371
  for (var X in n.animations) {
10372
- var W = n.animations[X];
10373
- this.readAnimation(W, X, i);
10372
+ var N = n.animations[X];
10373
+ this.readAnimation(N, X, i);
10374
10374
  }
10375
10375
  return i;
10376
10376
  }, s.prototype.readAttachment = function(e, t, i, n, r) {
@@ -10548,36 +10548,36 @@ var th = (
10548
10548
  throw new Error("Bone not found: " + T);
10549
10549
  var D = L.index;
10550
10550
  for (var f in E) {
10551
- var a = E[f], N = a.length;
10552
- if (N != 0) {
10551
+ var a = E[f], W = a.length;
10552
+ if (W != 0) {
10553
10553
  if (f === "rotate")
10554
- r.push(Re(a, new ln(N, N, D), 0, 1));
10554
+ r.push(Re(a, new ln(W, W, D), 0, 1));
10555
10555
  else if (f === "translate") {
10556
- var d = new Ur(N, N << 1, D);
10556
+ var d = new Ur(W, W << 1, D);
10557
10557
  r.push(Fn(a, d, "x", "y", 0, n));
10558
10558
  } else if (f === "translatex") {
10559
- var d = new Gr(N, N, D);
10559
+ var d = new Gr(W, W, D);
10560
10560
  r.push(Re(a, d, 0, n));
10561
10561
  } else if (f === "translatey") {
10562
- var d = new jr(N, N, D);
10562
+ var d = new jr(W, W, D);
10563
10563
  r.push(Re(a, d, 0, n));
10564
10564
  } else if (f === "scale") {
10565
- var d = new qr(N, N << 1, D);
10565
+ var d = new qr(W, W << 1, D);
10566
10566
  r.push(Fn(a, d, "x", "y", 1, 1));
10567
10567
  } else if (f === "scalex") {
10568
- var d = new zr(N, N, D);
10568
+ var d = new zr(W, W, D);
10569
10569
  r.push(Re(a, d, 1, 1));
10570
10570
  } else if (f === "scaley") {
10571
- var d = new Kr(N, N, D);
10571
+ var d = new Kr(W, W, D);
10572
10572
  r.push(Re(a, d, 1, 1));
10573
10573
  } else if (f === "shear") {
10574
- var d = new Qr(N, N << 1, D);
10574
+ var d = new Qr(W, W << 1, D);
10575
10575
  r.push(Fn(a, d, "x", "y", 0, 1));
10576
10576
  } else if (f === "shearx") {
10577
- var d = new Jr(N, N, D);
10577
+ var d = new Jr(W, W, D);
10578
10578
  r.push(Re(a, d, 0, 1));
10579
10579
  } else if (f === "sheary") {
10580
- var d = new Zr(N, N, D);
10580
+ var d = new Zr(W, W, D);
10581
10581
  r.push(Re(a, d, 0, 1));
10582
10582
  }
10583
10583
  }
@@ -10597,8 +10597,8 @@ var th = (
10597
10597
  d.shrink(v);
10598
10598
  break;
10599
10599
  }
10600
- var w = P(x, "time", 0), X = P(x, "mix", 1), W = P(x, "softness", 0) * n, b = m.curve;
10601
- b && (v = dt(b, d, v, p, 0, _, w, I, X, 1), v = dt(b, d, v, p, 1, _, w, R, W, n)), _ = w, I = X, R = W, m = x;
10600
+ var w = P(x, "time", 0), X = P(x, "mix", 1), N = P(x, "softness", 0) * n, b = m.curve;
10601
+ b && (v = dt(b, d, v, p, 0, _, w, I, X, 1), v = dt(b, d, v, p, 1, _, w, R, N, n)), _ = w, I = X, R = N, m = x;
10602
10602
  }
10603
10603
  r.push(d);
10604
10604
  }
@@ -10635,7 +10635,7 @@ var th = (
10635
10635
  var Bt = a.length;
10636
10636
  if (f === "position") {
10637
10637
  var d = new la(Bt, Bt, j);
10638
- r.push(Re(a, d, 0, q.positionMode == Ne.Fixed ? n : 1));
10638
+ r.push(Re(a, d, 0, q.positionMode == We.Fixed ? n : 1));
10639
10639
  } else if (f === "spacing") {
10640
10640
  var d = new ha(Bt, Bt, j);
10641
10641
  r.push(Re(a, d, 0, q.spacingMode == Vt.Length || q.spacingMode == Vt.Fixed ? n : 1));
@@ -10658,9 +10658,9 @@ var th = (
10658
10658
  if (e.deform) {
10659
10659
  e.attachments = {};
10660
10660
  for (var xe in e.deform) {
10661
- var ee = e.deform[xe], Ge = e.attachments[xe] = {};
10662
- for (var o in ee) {
10663
- var h = ee[o], Ee = Ge[o] = {};
10661
+ var ie = e.deform[xe], Ue = e.attachments[xe] = {};
10662
+ for (var o in ie) {
10663
+ var h = ie[o], Ee = Ue[o] = {};
10664
10664
  for (var oe in h)
10665
10665
  Ee[oe] = {
10666
10666
  deform: h[oe]
@@ -10724,18 +10724,18 @@ var th = (
10724
10724
  var _t = e.drawOrder[O], mt = null, wt = P(_t, "offsets", null);
10725
10725
  if (wt) {
10726
10726
  mt = Z.newArray(lt, -1);
10727
- for (var Nt = Z.newArray(lt - wt.length, 0), he = 0, Ei = 0, Je = 0; Je < wt.length; Je++) {
10727
+ for (var Wt = Z.newArray(lt - wt.length, 0), he = 0, Ei = 0, Je = 0; Je < wt.length; Je++) {
10728
10728
  var Bs = wt[Je], u = i.findSlot(Bs.slot);
10729
10729
  if (!u)
10730
10730
  throw new Error("Slot not found: " + u);
10731
10731
  for (var l = u.index; he != l; )
10732
- Nt[Ei++] = he++;
10732
+ Wt[Ei++] = he++;
10733
10733
  mt[he + Bs.offset] = he++;
10734
10734
  }
10735
10735
  for (; he < lt; )
10736
- Nt[Ei++] = he++;
10736
+ Wt[Ei++] = he++;
10737
10737
  for (var Je = lt - 1; Je >= 0; Je--)
10738
- mt[Je] == -1 && (mt[Je] = Nt[--Ei]);
10738
+ mt[Je] == -1 && (mt[Je] = Wt[--Ei]);
10739
10739
  }
10740
10740
  d.setFrame(p, P(_t, "time", 0), mt);
10741
10741
  }
@@ -10816,7 +10816,7 @@ var ih = (
10816
10816
  return e.prototype.createSkeleton = function(t) {
10817
10817
  this.skeleton = new Ml(t), this.skeleton.updateWorldTransform(), this.stateData = new Al(t), this.state = new yl(this.stateData);
10818
10818
  }, e;
10819
- }(Nr)
10819
+ }(Wr)
10820
10820
  );
10821
10821
  /*! *****************************************************************************
10822
10822
  Copyright (c) Microsoft Corporation.
@@ -11155,14 +11155,14 @@ class Zc extends Ct {
11155
11155
  y(this, "_volatilityOdds", this._volatilityLevels.veryHigh);
11156
11156
  y(this, "_winLevels");
11157
11157
  y(this, "_coinsTextComponent");
11158
- y(this, "_coinsTextStyle", new Ve({
11158
+ y(this, "_coinsTextStyle", new Ke({
11159
11159
  ...Yt.defaultStyle,
11160
11160
  fontSize: 120,
11161
11161
  stroke: 0,
11162
11162
  strokeThickness: 6
11163
11163
  }));
11164
11164
  y(this, "_currencyTextComponent");
11165
- y(this, "_currencyTextStyle", new Ve({
11165
+ y(this, "_currencyTextStyle", new Ke({
11166
11166
  ...Yt.defaultStyle,
11167
11167
  fontSize: 80,
11168
11168
  stroke: 0,
@@ -11627,7 +11627,7 @@ class eu extends Un {
11627
11627
  constructor(t, i, n, r = null, o = !1, h, u) {
11628
11628
  super(t, n, r, o);
11629
11629
  y(this, "buttonText");
11630
- y(this, "buttonTextStyle", new Ve({
11630
+ y(this, "buttonTextStyle", new Ke({
11631
11631
  ...Yt.defaultStyle,
11632
11632
  fontWeight: "700",
11633
11633
  fontSize: et.isDesktop ? 26 : 16,
@@ -13145,7 +13145,7 @@ class au extends Ct {
13145
13145
  y(this, "_stateClicked", !1);
13146
13146
  y(this, "_text", null);
13147
13147
  y(this, "_initialText");
13148
- y(this, "textStyle", new Ve({
13148
+ y(this, "textStyle", new Ke({
13149
13149
  ...Yt.defaultStyle,
13150
13150
  fontFamily: "Ui",
13151
13151
  fontWeight: "500",
@@ -13301,7 +13301,7 @@ class Ye {
13301
13301
  }
13302
13302
  let ji = vi.from;
13303
13303
  const Be = Math.PI / 180;
13304
- function Ke(s, e) {
13304
+ function ze(s, e) {
13305
13305
  if (!s)
13306
13306
  return;
13307
13307
  const t = Math.sin(s), i = Math.cos(s), n = e.x * i - e.y * t, r = e.x * t + e.y * i;
@@ -13370,7 +13370,7 @@ var At;
13370
13370
  (function(s) {
13371
13371
  s[s.Spawn = 0] = "Spawn", s[s.Normal = 2] = "Normal", s[s.Late = 5] = "Late";
13372
13372
  })(At || (At = {}));
13373
- const In = We.shared, hi = Symbol("Position particle per emitter position");
13373
+ const In = Ne.shared, hi = Symbol("Position particle per emitter position");
13374
13374
  class yt {
13375
13375
  /**
13376
13376
  * @param particleParent The container to add the particles to.
@@ -13466,7 +13466,7 @@ class yt {
13466
13466
  if (this.rotation === e)
13467
13467
  return;
13468
13468
  const t = e - this.rotation;
13469
- this.rotation = e, Ke(t, this.spawnPos), this._posChanged = !0;
13469
+ this.rotation = e, ze(t, this.spawnPos), this._posChanged = !0;
13470
13470
  }
13471
13471
  /**
13472
13472
  * Changes the spawn position of the emitter.
@@ -13582,7 +13582,7 @@ class yt {
13582
13582
  const a = this.initBehaviors[f];
13583
13583
  if (a === hi)
13584
13584
  for (let c = u, d; c; c = d) {
13585
- d = c.next, this.rotation !== 0 && (Ke(this.rotation, c.position), c.rotation += this.rotation), c.position.x += o, c.position.y += h, c.age += -this._spawnTimer;
13585
+ d = c.next, this.rotation !== 0 && (ze(this.rotation, c.position), c.rotation += this.rotation), c.position.x += o, c.position.y += h, c.age += -this._spawnTimer;
13586
13586
  let p = c.age * c.oneOverLife;
13587
13587
  this.customEase && (this.customEase.length === 4 ? p = this.customEase(p, 0, 1, 1) : p = this.customEase(p)), c.agePercent = p;
13588
13588
  }
@@ -13630,7 +13630,7 @@ class yt {
13630
13630
  const o = this.initBehaviors[r];
13631
13631
  if (o === hi)
13632
13632
  for (let h = i, u; h; h = u)
13633
- u = h.next, this.rotation !== 0 && (Ke(this.rotation, h.position), h.rotation += this.rotation), h.position.x += e, h.position.y += t;
13633
+ u = h.next, this.rotation !== 0 && (ze(this.rotation, h.position), h.rotation += this.rotation), h.position.x += e, h.position.y += t;
13634
13634
  else
13635
13635
  o.initParticles(i);
13636
13636
  }
@@ -13681,7 +13681,7 @@ class _n {
13681
13681
  getRandPos(e) {
13682
13682
  this.innerRadius !== this.radius ? e.x = Math.random() * (this.radius - this.innerRadius) + this.innerRadius : e.x = this.radius, e.y = 0;
13683
13683
  const t = Math.random() * Math.PI * 2;
13684
- this.rotation && (e.rotation += t), Ke(t, e.position), e.position.x += this.x, e.position.y += this.y;
13684
+ this.rotation && (e.rotation += t), ze(t, e.position), e.position.x += this.x, e.position.y += this.y;
13685
13685
  }
13686
13686
  }
13687
13687
  _n.type = "torus";
@@ -13751,7 +13751,7 @@ class ms {
13751
13751
  let t = e;
13752
13752
  for (; t; ) {
13753
13753
  const i = Math.random() * (this.maxStart - this.minStart) + this.minStart;
13754
- t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), Ke(t.rotation, t.config.velocity), t = t.next;
13754
+ t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), ze(t.rotation, t.config.velocity), t = t.next;
13755
13755
  }
13756
13756
  }
13757
13757
  updateParticle(e, t) {
@@ -13938,7 +13938,7 @@ class bs {
13938
13938
  let t = 0, i = e;
13939
13939
  for (; i; ) {
13940
13940
  let n;
13941
- this.spacing ? n = this.start + this.spacing * t : n = Math.random() * Math.PI * 2, i.rotation = n, this.distance && (i.position.x = this.distance, Ke(n, i.position)), i = i.next, ++t;
13941
+ this.spacing ? n = this.start + this.spacing * t : n = Math.random() * Math.PI * 2, i.rotation = n, this.distance && (i.position.x = this.distance, ze(n, i.position)), i = i.next, ++t;
13942
13942
  }
13943
13943
  }
13944
13944
  }
@@ -14027,13 +14027,13 @@ const bi = new Mt(), Ca = [
14027
14027
  "sqrt",
14028
14028
  "tan",
14029
14029
  "tanh"
14030
- ], Wh = new RegExp([
14030
+ ], Nh = new RegExp([
14031
14031
  // Allow the 4 basic operations, parentheses and all numbers/decimals, as well
14032
14032
  // as 'x', for the variable usage.
14033
14033
  "[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"
14034
14034
  ].concat(Ca).join("|"), "g");
14035
- function Nh(s) {
14036
- const e = s.match(Wh);
14035
+ function Wh(s) {
14036
+ const e = s.match(Nh);
14037
14037
  for (let t = e.length - 1; t >= 0; --t)
14038
14038
  Ca.indexOf(e[t]) >= 0 && (e[t] = `Math.${e[t]}`);
14039
14039
  return s = e.join(""), new Function("x", `return ${s};`);
@@ -14046,7 +14046,7 @@ class Cs {
14046
14046
  this.path = e.path;
14047
14047
  else
14048
14048
  try {
14049
- this.path = Nh(e.path);
14049
+ this.path = Wh(e.path);
14050
14050
  } catch {
14051
14051
  this.path = null;
14052
14052
  }
@@ -14064,7 +14064,7 @@ class Cs {
14064
14064
  }
14065
14065
  updateParticle(e, t) {
14066
14066
  const i = this.list.interpolate(e.agePercent) * e.config.speedMult;
14067
- e.config.movement += i * t, bi.x = e.config.movement, bi.y = this.path(bi.x), Ke(e.config.initRotation, bi), e.position.x = e.config.initPosition.x + bi.x, e.position.y = e.config.initPosition.y + bi.y;
14067
+ e.config.movement += i * t, bi.x = e.config.movement, bi.y = this.path(bi.x), ze(e.config.initRotation, bi), e.position.x = e.config.initPosition.x + bi.x, e.position.y = e.config.initPosition.y + bi.y;
14068
14068
  }
14069
14069
  }
14070
14070
  Cs.type = "movePath";
@@ -14218,7 +14218,7 @@ class Os {
14218
14218
  let t = e;
14219
14219
  for (; t; ) {
14220
14220
  const i = Math.random() * (1 - this.minMult) + this.minMult;
14221
- t.config.speedMult = i, t.config.velocity ? t.config.velocity.set(this.list.first.value * i, 0) : t.config.velocity = new Mt(this.list.first.value * i, 0), Ke(t.rotation, t.config.velocity), t = t.next;
14221
+ t.config.speedMult = i, t.config.velocity ? t.config.velocity.set(this.list.first.value * i, 0) : t.config.velocity = new Mt(this.list.first.value * i, 0), ze(t.rotation, t.config.velocity), t = t.next;
14222
14222
  }
14223
14223
  }
14224
14224
  updateParticle(e, t) {
@@ -14236,7 +14236,7 @@ class Ls {
14236
14236
  let t = e;
14237
14237
  for (; t; ) {
14238
14238
  const i = Math.random() * (this.max - this.min) + this.min;
14239
- t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), Ke(t.rotation, t.config.velocity), t = t.next;
14239
+ t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), ze(t.rotation, t.config.velocity), t = t.next;
14240
14240
  }
14241
14241
  }
14242
14242
  updateParticle(e, t) {
@@ -14392,7 +14392,7 @@ function hn(s, e, t = !0) {
14392
14392
  }
14393
14393
  }
14394
14394
  }
14395
- const nr = new Ve({
14395
+ const nr = new Ke({
14396
14396
  ...Yt.defaultStyle,
14397
14397
  fontSize: 100,
14398
14398
  stroke: 0,
@@ -14917,7 +14917,7 @@ class fu extends Ct {
14917
14917
  async create(t) {
14918
14918
  return this.instance.hitArea = new nn(0, 0, this._config.width, this._config.height), this.instance.interactive = !0, this.instance.buttonMode = !0, this._hintContainer = new jt("hint.container"), this._hintContainer.buttonMode = !0, this._hintContainer.interactive = !0, this._hintContainer.on("pointerup", (i) => {
14919
14919
  i.stopPropagation(), this.close();
14920
- }), this._spritePlate = bt.assets.has(this._config.assetsName.plate) ? bt.getSprite(this._config.assetsName.plate, this._config.texturesNames.plate) : new Tt(), this._spriteSymbol = new Tt(), this._spritePlate.anchor.set(0.5), this._spriteSymbol.anchor.set(0.5), this._textLengths = new Ni("", this._config.styleLengths), this._textBets = new Ni("", this._config.styleBets), this._textDescription = new Ni("", this._config.styleDescription), this._textLengths.anchor.set(0, 0.5), this._textBets.anchor.set(0, 0.5), this._textDescription.anchor.set(0, 0.5), this.instance.on("pointerup", (i) => {
14920
+ }), this._spritePlate = bt.assets.has(this._config.assetsName.plate) ? bt.getSprite(this._config.assetsName.plate, this._config.texturesNames.plate) : new Tt(), this._spriteSymbol = new Tt(), this._spritePlate.anchor.set(0.5), this._spriteSymbol.anchor.set(0.5), this._textLengths = new Wi("", this._config.styleLengths), this._textBets = new Wi("", this._config.styleBets), this._textDescription = new Wi("", this._config.styleDescription), this._textLengths.anchor.set(0, 0.5), this._textBets.anchor.set(0, 0.5), this._textDescription.anchor.set(0, 0.5), this.instance.on("pointerup", (i) => {
14921
14921
  const { x: n, y: r } = i.data.getLocalPosition(this.instance);
14922
14922
  this.emit(`${this.name}:click`, { x: n, y: r });
14923
14923
  }), this.on("renderer:pointerup", this.name, (i) => {
@@ -15057,7 +15057,7 @@ function qh(s) {
15057
15057
  });
15058
15058
  }
15059
15059
  function zh(s, e = 10, t = "power1.inOut") {
15060
- const i = [], n = re.parseEase(t), r = (s.length - 1) * e;
15060
+ const i = [], n = ee.parseEase(t), r = (s.length - 1) * e;
15061
15061
  for (let o = 0; o < r; o += 1) {
15062
15062
  const h = Math.floor(o / e), u = s[h], l = s[h + 1], f = (o - h * e) / e, a = l.y - u.y, c = l.x - u.x;
15063
15063
  i.push(new Mt(u.x + c * f, u.y + a * n(f)));
@@ -15079,7 +15079,7 @@ class mu extends jh {
15079
15079
  async animate(t) {
15080
15080
  const { duration: i } = this._config.static, n = this.createLine(t);
15081
15081
  n.alpha = 0;
15082
- const r = re.timeline().to(n, { pixi: { alpha: 1 }, duration: (i.fadeIn || 200) / 1e3 }).to(
15082
+ const r = ee.timeline().to(n, { pixi: { alpha: 1 }, duration: (i.fadeIn || 200) / 1e3 }).to(
15083
15083
  n,
15084
15084
  { pixi: { alpha: 0 }, duration: (i.fadeOut || 200) / 1e3 },
15085
15085
  `+=${(i.display || 0) / 1e3}`
@@ -15110,12 +15110,12 @@ class mu extends jh {
15110
15110
  /** Show preview line */
15111
15111
  async showPreviewLine(t) {
15112
15112
  const i = this.createLine(t);
15113
- i.alpha = 0, re.timeline().to(i, { pixi: { alpha: 1 }, duration: 0.2 }).to(i, { pixi: { alpha: 0 }, duration: 0.2 }, "+=1.8"), this.previewLines.push(i);
15113
+ i.alpha = 0, ee.timeline().to(i, { pixi: { alpha: 1 }, duration: 0.2 }).to(i, { pixi: { alpha: 0 }, duration: 0.2 }, "+=1.8"), this.previewLines.push(i);
15114
15114
  }
15115
15115
  /** Hide preview line with animation */
15116
15116
  async hidePreviewLine() {
15117
15117
  const t = this.previewLines.map((i) => new Promise((n) => {
15118
- re.timeline().to(i, { pixi: { alpha: 0 }, duration: 0.2 }).then(() => {
15118
+ ee.timeline().to(i, { pixi: { alpha: 0 }, duration: 0.2 }).then(() => {
15119
15119
  i.destroy(), this.instance.removeChildren(), n();
15120
15120
  });
15121
15121
  }));
@@ -15148,7 +15148,7 @@ var si, cn, sr, ve, Hi, Pa, jn, vn, Fa = function() {
15148
15148
  return typeof e == "function";
15149
15149
  }, Ea = function(e) {
15150
15150
  return console.warn(e);
15151
- }, Kh = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ri = 0.212671, qe = 0.71516, Oe = 0.072169, Ia = function(e) {
15151
+ }, Kh = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ri = 0.212671, je = 0.71516, Oe = 0.072169, Ia = function(e) {
15152
15152
  return qn(ve[e]) ? ve[e] : ve.filters[e];
15153
15153
  }, yn = function(e, t) {
15154
15154
  var i = [], n = 0, r = 0, o, h;
@@ -15159,15 +15159,15 @@ var si, cn, sr, ve, Hi, Pa, jn, vn, Fa = function() {
15159
15159
  }
15160
15160
  return i;
15161
15161
  }, rr = function(e, t) {
15162
- var i = 1 - t, n = i * ri, r = i * qe, o = i * Oe;
15162
+ var i = 1 - t, n = i * ri, r = i * je, o = i * Oe;
15163
15163
  return yn([n + t, r, o, 0, 0, n, r + t, o, 0, 0, n, r, o + t, 0, 0, 0, 0, 0, 1, 0], e);
15164
15164
  }, ar = function(e, t, i) {
15165
15165
  var n = cn(t), r = n[0] / 255, o = n[1] / 255, h = n[2] / 255, u = 1 - i;
15166
- return yn([u + i * r * ri, i * r * qe, i * r * Oe, 0, 0, i * o * ri, u + i * o * qe, i * o * Oe, 0, 0, i * h * ri, i * h * qe, u + i * h * Oe, 0, 0, 0, 0, 0, 1, 0], e);
15166
+ return yn([u + i * r * ri, i * r * je, i * r * Oe, 0, 0, i * o * ri, u + i * o * je, i * o * Oe, 0, 0, i * h * ri, i * h * je, u + i * h * Oe, 0, 0, 0, 0, 0, 1, 0], e);
15167
15167
  }, or = function(e, t) {
15168
15168
  t *= Math.PI / 180;
15169
15169
  var i = Math.cos(t), n = Math.sin(t);
15170
- return yn([ri + i * (1 - ri) + n * -0.212671, qe + i * -0.71516 + n * -0.71516, Oe + i * -0.072169 + n * (1 - Oe), 0, 0, ri + i * -0.212671 + n * 0.143, qe + i * (1 - qe) + n * 0.14, Oe + i * -0.072169 + n * -0.283, 0, 0, ri + i * -0.212671 + n * -0.787329, qe + i * -0.71516 + n * qe, Oe + i * (1 - Oe) + n * Oe, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], e);
15170
+ return yn([ri + i * (1 - ri) + n * -0.212671, je + i * -0.71516 + n * -0.71516, Oe + i * -0.072169 + n * (1 - Oe), 0, 0, ri + i * -0.212671 + n * 0.143, je + i * (1 - je) + n * 0.14, Oe + i * -0.072169 + n * -0.283, 0, 0, ri + i * -0.212671 + n * -0.787329, je + i * -0.71516 + n * je, Oe + i * (1 - Oe) + n * Oe, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], e);
15171
15171
  }, lr = function(e, t) {
15172
15172
  return yn([t, 0, 0, 0, 0.5 * (1 - t), 0, t, 0, 0, 0.5 * (1 - t), 0, 0, t, 0, 0.5 * (1 - t), 0, 0, 0, 1, 0], e);
15173
15173
  }, Ra = function(e, t) {
@@ -15295,7 +15295,7 @@ var La = {
15295
15295
  }
15296
15296
  };
15297
15297
  Ma() && si.registerPlugin(La);
15298
- re.registerPlugin(La);
15298
+ ee.registerPlugin(La);
15299
15299
  class Ba extends Ct {
15300
15300
  constructor(t, i, n) {
15301
15301
  super(t);
@@ -15309,10 +15309,9 @@ class Ba extends Ct {
15309
15309
  y(this, "_occupiedPositions", []);
15310
15310
  this._config = i, this._grid = n;
15311
15311
  }
15312
- async animate(t, i) {
15313
- if (!i) return;
15314
- const n = this._getPayoutPosition(t, i), r = await this._createPayoutContainer(i, n, this._getContainerOptions());
15315
- await this._animateContainer(r), await this._afterAnimate(), this._clear();
15312
+ async animate(t) {
15313
+ const i = this._getPayoutPosition(t), n = await this._createPayoutContainer(t, i, this._getContainerOptions());
15314
+ await this._animateContainer(n), await this._afterAnimate(), this._clear();
15316
15315
  }
15317
15316
  /**
15318
15317
  * Hook: called after animation completes
@@ -15323,10 +15322,10 @@ class Ba extends Ct {
15323
15322
  * Gets the position where payout should be displayed
15324
15323
  * Default: uses center of grid
15325
15324
  */
15326
- _getPayoutPosition(t, i) {
15327
- var o, h;
15328
- const n = ((o = this._config.positioning) == null ? void 0 : o.customPosition) || this._getCenterPosition(), r = ((h = this._config.positioning) == null ? void 0 : h.offset) || { x: 0, y: 0 };
15329
- return { x: n.x + r.x, y: n.y + r.y };
15325
+ _getPayoutPosition(t) {
15326
+ var r, o;
15327
+ const i = ((r = this._config.positioning) == null ? void 0 : r.customPosition) || this._getCenterPosition(), n = ((o = this._config.positioning) == null ? void 0 : o.offset) || { x: 0, y: 0 };
15328
+ return { x: i.x + n.x, y: i.y + n.y };
15330
15329
  }
15331
15330
  /**
15332
15331
  * Gets options for _createPayoutContainer
@@ -15351,9 +15350,14 @@ class Ba extends Ct {
15351
15350
  }), h = this._getAnimationVars(i == null ? void 0 : i.animateHide, {
15352
15351
  duration: 0.2,
15353
15352
  pixi: { alpha: 0, scale: 0.8 }
15354
- }), u = `payout.animation.${Date.now()}.${Math.random()}`, l = Qt(u).set(t, n).to(t, o).to(t, { delay: r / 1e3, ...h }).timeScale(st(1, this._config.fastModeTimeScale || 1));
15353
+ });
15354
+ this._applyInitialState(t, n);
15355
+ const u = `payout.animation.${Date.now()}.${Math.random()}`, l = Qt(u).set(t, n).to(t, o).to(t, { delay: r / 1e3, ...h }).timeScale(st(1, this._config.fastModeTimeScale || 1));
15355
15356
  this._timelines.push(l), await l;
15356
15357
  }
15358
+ _applyInitialState(t, i) {
15359
+ i && ee.set(t, i);
15360
+ }
15357
15361
  _createGlowSprite(t, i) {
15358
15362
  if (!(t != null && t.enabled) || !t.assetName || !t.textureName)
15359
15363
  return null;
@@ -15379,23 +15383,23 @@ class Ba extends Ct {
15379
15383
  return { textComponent: r, currencyComponent: o };
15380
15384
  }
15381
15385
  _formatCoinsText(t, i, n) {
15382
- const r = n.showCurrency !== !1 && !n.currencyStyle;
15383
- let o;
15386
+ const r = n.showCurrency !== !1 && !n.currencyStyle, o = typeof i.coins == "number" ? i.coins : 0;
15387
+ let h;
15384
15388
  if (typeof truelogic < "u" && truelogic.cashFormatter)
15385
15389
  if (t instanceof sn && r) {
15386
- t.coinsFormat(i, !0);
15390
+ t.coinsFormat(o, !0);
15387
15391
  return;
15388
15392
  } else
15389
- o = truelogic.cashFormatter.formatCoins(i, { showCurrency: r });
15393
+ h = truelogic.cashFormatter.formatCoins(o, { showCurrency: r });
15390
15394
  else
15391
- o = r && n.currency ? `${i.toLocaleString()} ${n.currency}` : i.toLocaleString();
15392
- t.text = o;
15395
+ h = r && n.currency ? `${o.toLocaleString()} ${n.currency}` : o.toLocaleString();
15396
+ t.text = h;
15393
15397
  }
15394
15398
  _applyTextAndCurrencyScaling(t, i, n) {
15395
- if (!i) return;
15396
15399
  let r = t.scale.x;
15397
15400
  const o = n ?? (this._grid.reelWidth ? this._grid.reelWidth * 1.5 : void 0);
15398
- o && t.width > o && (r = o / t.width, t.scale.set(r)), r < 1 && (i.scale.set(r), i.position.set(
15401
+ if (o && t.width > o && (r = o / t.width, t.scale.set(r)), !i) return;
15402
+ r < 1 && (i.scale.set(r), i.position.set(
15399
15403
  (i.position.x || 0) * r,
15400
15404
  (i.position.y || 0) * r
15401
15405
  ));
@@ -15568,7 +15572,9 @@ class gu extends Ba {
15568
15572
  duration: 0.2,
15569
15573
  pixi: { alpha: 0, scale: 0.8 },
15570
15574
  ease: Fe.out
15571
- }), h = `payout.animation.${Date.now()}.${Math.random()}`, u = Qt(h).set(e, i).to(e, r).to(e, { delay: n / 1e3, ...o }).timeScale(st(1, this._config.fastModeTimeScale || 1));
15575
+ });
15576
+ this._applyInitialState(e, i);
15577
+ const h = `payout.animation.${Date.now()}.${Math.random()}`, u = Qt(h).set(e, i).to(e, r).to(e, { delay: n / 1e3, ...o }).timeScale(st(1, this._config.fastModeTimeScale || 1));
15572
15578
  this._timelines.push(u), await u;
15573
15579
  }
15574
15580
  }
@@ -16030,7 +16036,7 @@ class vu extends Ct {
16030
16036
  durationUp: E,
16031
16037
  easeDown: L,
16032
16038
  easeUp: D,
16033
- scaleX: N,
16039
+ scaleX: W,
16034
16040
  scaleY: Y
16035
16041
  } = this._config.cascade.bounce;
16036
16042
  F[0] && f !== "clear" && this._tlMotion.to(
@@ -16038,7 +16044,7 @@ class vu extends Ct {
16038
16044
  {
16039
16045
  y: this._gridY[c] + st(...F),
16040
16046
  duration: st(...T),
16041
- scaleX: st(...N),
16047
+ scaleX: st(...W),
16042
16048
  scaleY: st(...Y),
16043
16049
  ease: L
16044
16050
  },
@@ -16324,7 +16330,7 @@ function fr(s, e = 200, t = mn(0, 16777215), i = !1) {
16324
16330
  dropShadowBlur: 5,
16325
16331
  dropShadowDistance: e / 4
16326
16332
  });
16327
- const r = new Ni(s.toString(), n);
16333
+ const r = new Wi(s.toString(), n);
16328
16334
  return r.updateText(!1), r.texture;
16329
16335
  }
16330
16336
  function ue(s) {
@@ -16572,7 +16578,7 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16572
16578
  fastModeTimeScale: 1,
16573
16579
  text: {
16574
16580
  showCurrency: !0,
16575
- style: new Ve({
16581
+ style: {
16576
16582
  fontFamily: "Ui",
16577
16583
  fontWeight: "600",
16578
16584
  fontSize: 112,
@@ -16583,7 +16589,7 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16583
16589
  letterSpacing: 1,
16584
16590
  stroke: 1646398,
16585
16591
  strokeThickness: 4
16586
- })
16592
+ }
16587
16593
  },
16588
16594
  animation: {
16589
16595
  durationDisplay: 1e3,
@@ -16844,11 +16850,10 @@ class yu extends Ct {
16844
16850
  * Анимирует один payout (выплату)
16845
16851
  * Может быть вызван параллельно много раз
16846
16852
  */
16847
- async animatePayout(t, i) {
16848
- if (!this._config.components.payout) return;
16853
+ async animatePayout(t, i = !0) {
16849
16854
  const n = t.positions.slice(0, t.length), r = this.getAllPositions().filter((o) => !n.includes(o));
16850
16855
  this._moveWinSymbolsToFront(n), this.playSoundWin(n), this._toggleInactiveSymbols(r, !0), await Promise.all([
16851
- this._payoutComponent.animate(t, i),
16856
+ i ? this._payoutComponent.animate(t) : null,
16852
16857
  this._config.components.frames.enabled ? this._framesComponent.start(n) : null,
16853
16858
  Promise.all(n.map((o) => this.getSymbolByPosition(o).animateWin()))
16854
16859
  ]), this._moveWinSymbolsBack(n), this._toggleInactiveSymbols(r, !1);
@@ -16856,8 +16861,10 @@ class yu extends Ct {
16856
16861
  /**
16857
16862
  * Анимирует общую сумму выигрыша (total win)
16858
16863
  */
16859
- async animateTotalPayout(t, i) {
16860
- this._config.components.totalPayout && await this._totalPayoutComponent.animate(t, i);
16864
+ async animateTotalPayout(t) {
16865
+ if (!this._config.components.totalPayout) return;
16866
+ const i = { symbol: 0, coins: t, length: 0, positions: [] };
16867
+ await this._totalPayoutComponent.animate(i);
16861
16868
  }
16862
16869
  /**
16863
16870
  * Алиас для animateLine через лайнс компонент
@@ -16865,11 +16872,6 @@ class yu extends Ct {
16865
16872
  async animateLine(t) {
16866
16873
  await this._linesComponent.animate(t.line);
16867
16874
  }
16868
- /** @deprecated Использовать animatePayout вместо animateWin */
16869
- async animateWin(t, i) {
16870
- const n = this.getWinsPositions(t), r = this.getAllPositions().filter((o) => !n.includes(o));
16871
- this._moveWinSymbolsToFront(n), this.playSoundWin(n), this._toggleInactiveSymbols(r, !0), await this.animateWinSymbols(t, i), this._moveWinSymbolsBack(n), this._toggleInactiveSymbols(r, !1);
16872
- }
16873
16875
  /** */
16874
16876
  _moveWinSymbolsToFront(t) {
16875
16877
  if (!this._config.order.sortWinSymbols) return;
@@ -16926,10 +16928,7 @@ class yu extends Ct {
16926
16928
  for (; !this._linesComponent.disabled; ) {
16927
16929
  const n = t[i], r = n.line.slice(0, n.length);
16928
16930
  await Promise.all([
16929
- this.animatePayout(
16930
- { symbol: 0, coins: n.coins, length: n.length, positions: r },
16931
- n.coins
16932
- ),
16931
+ this.animatePayout({ symbol: 0, coins: n.coins, length: n.length, positions: r }, !0),
16933
16932
  this.animateLine(n)
16934
16933
  ]), i < t.length - 1 ? i++ : i = 0;
16935
16934
  }
@@ -16938,25 +16937,6 @@ class yu extends Ct {
16938
16937
  stopLines() {
16939
16938
  !this._config.components.lines.enabled || this._linesComponent.disabled || (this._linesComponent.disabled = !0, this._linesComponent.break());
16940
16939
  }
16941
- /** Animates symbols */
16942
- async animateWinSymbols(t, i, n = !0) {
16943
- const r = this._config.components.frames.enabled && n, o = this.getWinsPositions(t), h = i !== void 0 ? i : t.reduce((l, f) => l + (f.coins || 0), 0);
16944
- let u = Promise.resolve();
16945
- if (this._config.components.payout || this._config.components.totalPayout) {
16946
- const l = t.some((f) => f.line !== void 0);
16947
- l && this._config.components.totalPayout && h > 0 ? u = this._totalPayoutComponent.animate(
16948
- { symbol: 0, coins: h, length: 0, positions: [] },
16949
- h
16950
- ) : !l && this._config.components.payout && t.length > 0 && (u = Promise.all(
16951
- t.map((f) => this._payoutComponent.animate(f, f.coins))
16952
- ).then());
16953
- }
16954
- await Promise.all([
16955
- r ? this._framesComponent.start(o) : null,
16956
- u,
16957
- Promise.all(o.map((l) => this.getSymbolByPosition(l).animateWin()))
16958
- ]);
16959
- }
16960
16940
  /** */
16961
16941
  _toggleInactiveSymbols(t, i) {
16962
16942
  t.forEach((n) => this.getSymbolByPosition(n).toggleInactive(i));
@@ -17475,7 +17455,7 @@ class Su extends Ct {
17475
17455
  assetName: "welcome",
17476
17456
  emptyTexture: "volatility-empty.png",
17477
17457
  fullTexture: "volatility-fill.png",
17478
- textStyle: new Ve({
17458
+ textStyle: new Ke({
17479
17459
  fontFamily: "UI",
17480
17460
  fill: 16777215,
17481
17461
  fontSize: et.isDesktop ? 24 : 16,
@@ -17562,10 +17542,10 @@ class Su extends Ct {
17562
17542
  }
17563
17543
  }
17564
17544
  function Au(s, e, t = !0) {
17565
- return e = Object.assign({ duration: 1, delay: 0 }, e), t && re.killTweensOf(s), re.from(s, e);
17545
+ return e = Object.assign({ duration: 1, delay: 0 }, e), t && ee.killTweensOf(s), ee.from(s, e);
17566
17546
  }
17567
17547
  function Cu(s, e, t, i = !0) {
17568
- return t = Object.assign({ duration: 1, delay: 0 }, t), i && re.killTweensOf(s), re.fromTo(s, e, t);
17548
+ return t = Object.assign({ duration: 1, delay: 0 }, t), i && ee.killTweensOf(s), ee.fromTo(s, e, t);
17569
17549
  }
17570
17550
  function ku(s, e) {
17571
17551
  const t = [];
@@ -17662,8 +17642,8 @@ function Yu(s, e, t) {
17662
17642
  const i = Math.min(e, t), n = Math.max(e, t);
17663
17643
  return s >= i && s <= n;
17664
17644
  }
17665
- const Wu = (s) => Object.keys(s).reduce((e, t) => ({ ...e, [t]: t }), {});
17666
- function Nu(s, e, t = 0) {
17645
+ const Nu = (s) => Object.keys(s).reduce((e, t) => ({ ...e, [t]: t }), {});
17646
+ function Wu(s, e, t = 0) {
17667
17647
  let i = e;
17668
17648
  const n = vt("gameplay_speed", 50) / 50 - 1;
17669
17649
  return i = s - i * n, t > 0 ? parseFloat(i.toFixed(t)) : Math.round(i);
@@ -18101,10 +18081,10 @@ function xc() {
18101
18081
  L();
18102
18082
  else {
18103
18083
  d._playLock = !0, d._state = "loading";
18104
- var N = function() {
18105
- d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent, N, !1);
18084
+ var W = function() {
18085
+ d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent, W, !1);
18106
18086
  };
18107
- T.addEventListener(t._canPlayEvent, N, !1), d._clearTimer(g._id);
18087
+ T.addEventListener(t._canPlayEvent, W, !1), d._clearTimer(g._id);
18108
18088
  }
18109
18089
  }
18110
18090
  return g._id;
@@ -19107,7 +19087,7 @@ const Ku = () => {
19107
19087
  return this.valueOf();
19108
19088
  };
19109
19089
  };
19110
- class Wa extends Ti {
19090
+ class Na extends Ti {
19111
19091
  /**
19112
19092
  * Конструктор сцены (но не объектов на ней)
19113
19093
  * @param name
@@ -19144,7 +19124,7 @@ class Wa extends Ti {
19144
19124
  this.instance.hide();
19145
19125
  }
19146
19126
  }
19147
- class Qu extends Wa {
19127
+ class Qu extends Na {
19148
19128
  /** @constructor */
19149
19129
  constructor(t = "background.scene") {
19150
19130
  super(t);
@@ -19218,7 +19198,7 @@ class Qu extends Wa {
19218
19198
  t.pivot.set(t.width / 2, t.height / 2), t.position.set(et.gameWidth / 2, et.gameHeight / 2);
19219
19199
  }
19220
19200
  }
19221
- class Ju extends Wa {
19201
+ class Ju extends Na {
19222
19202
  constructor() {
19223
19203
  super(...arguments);
19224
19204
  y(this, "_maskGraphics", new Ci());
@@ -19236,7 +19216,7 @@ class Ju extends Wa {
19236
19216
  export {
19237
19217
  Ct as AbstractComponent,
19238
19218
  rh as AbstractHtmlComponent,
19239
- Wa as AbstractScene,
19219
+ Na as AbstractScene,
19240
19220
  bt as Assets,
19241
19221
  ed as Back,
19242
19222
  Qu as BackgroundScene,
@@ -19367,7 +19347,7 @@ export {
19367
19347
  $s as convertToFixed,
19368
19348
  wc as createRadialGradient,
19369
19349
  Ou as createRadialWBGradient,
19370
- Ws as debounce,
19350
+ Ns as debounce,
19371
19351
  hh as debugContainer,
19372
19352
  Mu as debugLine,
19373
19353
  hn as deepMerge,
@@ -19381,14 +19361,14 @@ export {
19381
19361
  oc as drawReel,
19382
19362
  Fe as ease,
19383
19363
  Vi as error,
19384
- ne as eventlog,
19364
+ se as eventlog,
19385
19365
  vt as get,
19386
19366
  mo as getUrlParams,
19387
19367
  kc as getUserAgent,
19388
19368
  Ah as gradientTexture,
19389
19369
  Ad as gsap,
19390
19370
  Hc as hasUrlParams,
19391
- Wc as inIframe,
19371
+ Nc as inIframe,
19392
19372
  Oc as isAndroid,
19393
19373
  Lc as isAndroidTablet,
19394
19374
  Gc as isArray,
@@ -19398,7 +19378,7 @@ export {
19398
19378
  Tc as isDesktop,
19399
19379
  Fc as isEdge,
19400
19380
  Pc as isFirefox,
19401
- Nc as isFullscreenSupported,
19381
+ Wc as isFullscreenSupported,
19402
19382
  ki as isIEMobile,
19403
19383
  Ec as isIOS,
19404
19384
  Rc as isIPhone,
@@ -19423,7 +19403,7 @@ export {
19423
19403
  Ru as loadJS,
19424
19404
  Eu as loadResources,
19425
19405
  Yu as numberBetween,
19426
- Wu as objectKeysToEnum,
19406
+ Nu as objectKeysToEnum,
19427
19407
  po as once,
19428
19408
  Du as radian,
19429
19409
  ko as randomExclude,
@@ -19436,7 +19416,7 @@ export {
19436
19416
  Si as sleep,
19437
19417
  ui as slotCheats,
19438
19418
  uc as slotComponentConfig,
19439
- Nu as speedDuration,
19419
+ Wu as speedDuration,
19440
19420
  st as speedMode,
19441
19421
  Xu as timeFull,
19442
19422
  Vu as timeNowFull,