@truelab/truengine 1.0.2 → 1.0.3

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
@@ -43,10 +43,10 @@ function Rc() {
43
43
  function Oc() {
44
44
  return Xt.match(/Android/i) && !ki();
45
45
  }
46
- function Lc() {
46
+ function Bc() {
47
47
  return Xt.match(/Tablet/i) && Xt.match(/Android/i) && !ki();
48
48
  }
49
- function Bc() {
49
+ function Lc() {
50
50
  return "standalone" in window.navigator;
51
51
  }
52
52
  function lo() {
@@ -108,12 +108,12 @@ function Ws(s, e) {
108
108
  }
109
109
  };
110
110
  }
111
- const Ln = /* @__PURE__ */ new Map();
111
+ const Bn = /* @__PURE__ */ new Map();
112
112
  function Vc(s) {
113
- Ln.set(s, !0);
113
+ Bn.set(s, !0);
114
114
  }
115
115
  function pn(s) {
116
- return Ln.has(s) ? Ln.has(s) : !1;
116
+ return Bn.has(s) ? Bn.has(s) : !1;
117
117
  }
118
118
  function se(s, e, t = "") {
119
119
  pn("dev") && ts.log([
@@ -164,7 +164,7 @@ function Uc() {
164
164
  function Gc(s) {
165
165
  return Object.prototype.toString.call(s) === "[object Array]";
166
166
  }
167
- function Bn(s) {
167
+ function Ln(s) {
168
168
  return Object.prototype.toString.call(s) === "[object Object]";
169
169
  }
170
170
  function jc(s) {
@@ -664,7 +664,7 @@ class Ti extends be {
664
664
  return wi.has(t) && (this[t] = () => this.service(t)), this;
665
665
  }
666
666
  }
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);
667
+ const es = new Ti(), wt = (s, e) => es.get(s, e), ai = (s) => es.registry().get(s), xo = (s, e, t) => es.langs().get(s, e, t);
668
668
  var wn = { exports: {} }, Ns;
669
669
  function So() {
670
670
  return Ns || (Ns = 1, function(s) {
@@ -675,10 +675,10 @@ function So() {
675
675
  function t(A, k, O) {
676
676
  if (!A) throw Error();
677
677
  if (2 < arguments.length) {
678
- var B = Array.prototype.slice.call(arguments, 2);
678
+ var L = Array.prototype.slice.call(arguments, 2);
679
679
  return function() {
680
680
  var G = Array.prototype.slice.call(arguments);
681
- return Array.prototype.unshift.apply(G, B), A.apply(k, G);
681
+ return Array.prototype.unshift.apply(G, L), A.apply(k, G);
682
682
  };
683
683
  }
684
684
  return function() {
@@ -695,9 +695,9 @@ function So() {
695
695
  this.a = A, this.o = k || A, this.c = this.o.document;
696
696
  }
697
697
  var o = !!window.FontFace;
698
- function h(A, k, O, B) {
698
+ function h(A, k, O, L) {
699
699
  if (k = A.c.createElement(k), O) for (var G in O) O.hasOwnProperty(G) && (G == "style" ? k.style.cssText = O[G] : k.setAttribute(G, O[G]));
700
- return B && k.appendChild(A.c.createTextNode(B)), k;
700
+ return L && k.appendChild(A.c.createTextNode(L)), k;
701
701
  }
702
702
  function u(A, k, O) {
703
703
  A = A.c.getElementsByTagName(k)[0], A || (A = document.documentElement), A.insertBefore(O, A.lastChild);
@@ -707,44 +707,44 @@ function So() {
707
707
  }
708
708
  function f(A, k, O) {
709
709
  k = k || [], O = O || [];
710
- for (var B = A.className.split(/\s+/), G = 0; G < k.length; G += 1) {
711
- for (var Q = !1, tt = 0; tt < B.length; tt += 1) if (k[G] === B[tt]) {
710
+ for (var L = A.className.split(/\s+/), G = 0; G < k.length; G += 1) {
711
+ for (var Q = !1, tt = 0; tt < L.length; tt += 1) if (k[G] === L[tt]) {
712
712
  Q = !0;
713
713
  break;
714
714
  }
715
- Q || B.push(k[G]);
715
+ Q || L.push(k[G]);
716
716
  }
717
- for (k = [], G = 0; G < B.length; G += 1) {
718
- for (Q = !1, tt = 0; tt < O.length; tt += 1) if (B[G] === O[tt]) {
717
+ for (k = [], G = 0; G < L.length; G += 1) {
718
+ for (Q = !1, tt = 0; tt < O.length; tt += 1) if (L[G] === O[tt]) {
719
719
  Q = !0;
720
720
  break;
721
721
  }
722
- Q || k.push(B[G]);
722
+ Q || k.push(L[G]);
723
723
  }
724
724
  A.className = k.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
725
725
  }
726
726
  function a(A, k) {
727
- for (var O = A.className.split(/\s+/), B = 0, G = O.length; B < G; B++) if (O[B] == k) return !0;
727
+ for (var O = A.className.split(/\s+/), L = 0, G = O.length; L < G; L++) if (O[L] == k) return !0;
728
728
  return !1;
729
729
  }
730
730
  function c(A) {
731
731
  return A.o.location.hostname || A.a.location.hostname;
732
732
  }
733
733
  function d(A, k, O) {
734
- function B() {
734
+ function L() {
735
735
  at && G && Q && (at(tt), at = null);
736
736
  }
737
737
  k = h(A, "link", { rel: "stylesheet", href: k, media: "all" });
738
738
  var G = !1, Q = !0, tt = null, at = O || null;
739
739
  o ? (k.onload = function() {
740
- G = !0, B();
740
+ G = !0, L();
741
741
  }, k.onerror = function() {
742
- G = !0, tt = Error("Stylesheet failed to load"), B();
742
+ G = !0, tt = Error("Stylesheet failed to load"), L();
743
743
  }) : setTimeout(function() {
744
- G = !0, B();
744
+ G = !0, L();
745
745
  }, 0), u(A, "head", k);
746
746
  }
747
- function p(A, k, O, B) {
747
+ function p(A, k, O, L) {
748
748
  var G = A.c.getElementsByTagName("head")[0];
749
749
  if (G) {
750
750
  var Q = h(A, "script", { src: k }), tt = !1;
@@ -752,7 +752,7 @@ function So() {
752
752
  tt || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (tt = !0, O && O(null), Q.onload = Q.onreadystatechange = null, Q.parentNode.tagName == "HEAD" && G.removeChild(Q));
753
753
  }, G.appendChild(Q), setTimeout(function() {
754
754
  tt || (tt = !0, O && O(Error("Script load timeout")));
755
- }, B || 5e3), Q;
755
+ }, L || 5e3), Q;
756
756
  }
757
757
  return null;
758
758
  }
@@ -770,10 +770,10 @@ function So() {
770
770
  function v(A) {
771
771
  A.a == 0 && A.c && (A.c(), A.c = null);
772
772
  }
773
- function x(A) {
773
+ function S(A) {
774
774
  this.a = A || "-";
775
775
  }
776
- x.prototype.c = function(A) {
776
+ S.prototype.c = function(A) {
777
777
  for (var k = [], O = 0; O < arguments.length; O++) k.push(arguments[O].replace(/[\W_]+/g, "").toLowerCase());
778
778
  return k.join(this.a);
779
779
  };
@@ -782,15 +782,15 @@ function So() {
782
782
  var O = (k || "n4").match(/^([nio])([1-9])$/i);
783
783
  O && (this.a = O[1], this.f = parseInt(O[2], 10));
784
784
  }
785
- function S(A) {
785
+ function x(A) {
786
786
  return F(A) + " " + (A.f + "00") + " 300px " + b(A.c);
787
787
  }
788
788
  function b(A) {
789
789
  var k = [];
790
790
  A = A.split(/,\s*/);
791
791
  for (var O = 0; O < A.length; O++) {
792
- var B = A[O].replace(/['"]/g, "");
793
- B.indexOf(" ") != -1 || /^\d/.test(B) ? k.push("'" + B + "'") : k.push(B);
792
+ var L = A[O].replace(/['"]/g, "");
793
+ L.indexOf(" ") != -1 || /^\d/.test(L) ? k.push("'" + L + "'") : k.push(L);
794
794
  }
795
795
  return k.join(",");
796
796
  }
@@ -802,19 +802,19 @@ function So() {
802
802
  return A.a === "o" ? k = "oblique" : A.a === "i" && (k = "italic"), k;
803
803
  }
804
804
  function T(A) {
805
- var k = 4, O = "n", B = null;
806
- return A && ((B = A.match(/(normal|oblique|italic)/i)) && B[1] && (O = B[1].substr(0, 1).toLowerCase()), (B = A.match(/([1-9]00|normal|bold)/i)) && B[1] && (/bold/i.test(B[1]) ? k = 7 : /[1-9]00/.test(B[1]) && (k = parseInt(B[1].substr(0, 1), 10)))), O + k;
805
+ var k = 4, O = "n", L = null;
806
+ return A && ((L = A.match(/(normal|oblique|italic)/i)) && L[1] && (O = L[1].substr(0, 1).toLowerCase()), (L = A.match(/([1-9]00|normal|bold)/i)) && L[1] && (/bold/i.test(L[1]) ? k = 7 : /[1-9]00/.test(L[1]) && (k = parseInt(L[1].substr(0, 1), 10)))), O + k;
807
807
  }
808
808
  function E(A, k) {
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;
809
+ this.c = A, this.f = A.o.document.documentElement, this.h = k, this.a = new S("-"), this.j = k.events !== !1, this.g = k.classes !== !1;
810
810
  }
811
- function L(A) {
811
+ function B(A) {
812
812
  A.g && f(A.f, [A.a.c("wf", "loading")]), N(A, "loading");
813
813
  }
814
814
  function D(A) {
815
815
  if (A.g) {
816
- var k = a(A.f, A.a.c("wf", "active")), O = [], B = [A.a.c("wf", "loading")];
817
- k || O.push(A.a.c("wf", "inactive")), f(A.f, O, B);
816
+ var k = a(A.f, A.a.c("wf", "active")), O = [], L = [A.a.c("wf", "loading")];
817
+ k || O.push(A.a.c("wf", "inactive")), f(A.f, O, L);
818
818
  }
819
819
  N(A, "inactive");
820
820
  }
@@ -825,12 +825,12 @@ function So() {
825
825
  this.c = {};
826
826
  }
827
827
  function z(A, k, O) {
828
- var B = [], G;
828
+ var L = [], G;
829
829
  for (G in k) if (k.hasOwnProperty(G)) {
830
830
  var Q = A.c[G];
831
- Q && B.push(Q(k[G], O));
831
+ Q && L.push(Q(k[G], O));
832
832
  }
833
- return B;
833
+ return L;
834
834
  }
835
835
  function q(A, k) {
836
836
  this.c = A, this.f = k, this.a = h(this.c, "span", { "aria-hidden": "true" }, this.f);
@@ -841,13 +841,13 @@ function So() {
841
841
  function I(A) {
842
842
  return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + b(A.c) + ";" + ("font-style:" + F(A) + ";font-weight:" + (A.f + "00") + ";");
843
843
  }
844
- function R(A, k, O, B, G, Q) {
845
- this.g = A, this.j = k, this.a = B, this.c = O, this.f = G || 3e3, this.h = Q || void 0;
844
+ function R(A, k, O, L, G, Q) {
845
+ this.g = A, this.j = k, this.a = L, this.c = O, this.f = G || 3e3, this.h = Q || void 0;
846
846
  }
847
847
  R.prototype.start = function() {
848
- var A = this.c.o.document, k = this, O = n(), B = new Promise(function(tt, at) {
848
+ var A = this.c.o.document, k = this, O = n(), L = new Promise(function(tt, at) {
849
849
  function lt() {
850
- n() - O >= k.f ? at() : A.fonts.load(S(k.a), k.h).then(function(_t) {
850
+ n() - O >= k.f ? at() : A.fonts.load(x(k.a), k.h).then(function(_t) {
851
851
  1 <= _t.length ? tt() : setTimeout(lt, 25);
852
852
  }, function() {
853
853
  at();
@@ -857,14 +857,14 @@ function So() {
857
857
  }), G = null, Q = new Promise(function(tt, at) {
858
858
  G = setTimeout(at, k.f);
859
859
  });
860
- Promise.race([Q, B]).then(function() {
860
+ Promise.race([Q, L]).then(function() {
861
861
  G && (clearTimeout(G), G = null), k.g(k.a);
862
862
  }, function() {
863
863
  k.j(k.a);
864
864
  });
865
865
  };
866
- function X(A, k, O, B, G, Q, tt) {
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);
866
+ function X(A, k, O, L, G, Q, tt) {
867
+ this.v = A, this.B = k, this.c = O, this.a = L, 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
869
  var W = { D: "serif", C: "sans-serif" }, V = null;
870
870
  function $() {
@@ -878,12 +878,12 @@ 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 L in W) if (W.hasOwnProperty(L) && k === A.f[W[L]] && O === A.f[W[L]]) return !0;
882
882
  return !1;
883
883
  }
884
884
  function J(A) {
885
- var k = A.g.a.offsetWidth, O = A.h.a.offsetWidth, B;
886
- (B = k === A.f.serif && O === A.f["sans-serif"]) || (B = $() && U(A, k, O)), B ? n() - A.A >= A.w ? $() && U(A, k, O) && (A.u === null || A.u.hasOwnProperty(A.a.c)) ? nt(A, A.v) : nt(A, A.B) : rt(A) : nt(A, A.v);
885
+ var k = A.g.a.offsetWidth, O = A.h.a.offsetWidth, L;
886
+ (L = k === A.f.serif && O === A.f["sans-serif"]) || (L = $() && U(A, k, O)), L ? n() - A.A >= A.w ? $() && U(A, k, O) && (A.u === null || A.u.hasOwnProperty(A.a.c)) ? nt(A, A.v) : nt(A, A.B) : rt(A) : nt(A, A.v);
887
887
  }
888
888
  function rt(A) {
889
889
  setTimeout(i(function() {
@@ -905,8 +905,8 @@ function So() {
905
905
  }, st.prototype.h = function(A) {
906
906
  var k = this.a;
907
907
  if (k.g) {
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
- O || B.push(k.a.c("wf", A.c, C(A).toString(), "inactive")), f(k.f, B, G);
908
+ var O = a(k.f, k.a.c("wf", A.c, C(A).toString(), "active")), L = [], G = [k.a.c("wf", A.c, C(A).toString(), "loading")];
909
+ O || L.push(k.a.c("wf", A.c, C(A).toString(), "inactive")), f(k.f, L, G);
910
910
  }
911
911
  N(k, "fontinactive", A), Pt(this);
912
912
  };
@@ -919,41 +919,41 @@ function So() {
919
919
  gt.prototype.load = function(A) {
920
920
  this.c = new r(this.j, A.context || this.j), this.g = A.events !== !1, this.f = A.classes !== !1, ae(this, new E(this.c, A), A);
921
921
  };
922
- function Lt(A, k, O, B, G) {
922
+ function Bt(A, k, O, L, G) {
923
923
  var Q = --A.h == 0;
924
924
  (A.f || A.g) && setTimeout(function() {
925
- var tt = G || null, at = B || null || {};
925
+ var tt = G || null, at = L || null || {};
926
926
  if (O.length === 0 && Q) D(k.a);
927
927
  else {
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;
931
+ var mt = O[lt], yt = at[mt.c], Nt = k.a, he = mt;
932
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) {
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 ? Nt = new R(i(k.g, k), i(k.h, k), k.c, mt, k.s, yt) : Nt = new X(i(k.g, k), i(k.h, k), k.c, mt, k.s, tt, yt), _t.push(Nt);
937
937
  }
938
938
  for (lt = 0; lt < _t.length; lt++) _t[lt].start();
939
939
  }
940
940
  }, 0);
941
941
  }
942
942
  function ae(A, k, O) {
943
- var G = [], B = O.timeout;
944
- L(k);
945
- var G = z(A.a, O, A.c), Q = new st(A.c, k, B);
943
+ var G = [], L = O.timeout;
944
+ B(k);
945
+ var G = z(A.a, O, A.c), Q = new st(A.c, k, L);
946
946
  for (A.h = G.length, k = 0, O = G.length; k < O; k++) G[k].load(function(tt, at, lt) {
947
- Lt(A, Q, tt, at, lt);
947
+ Bt(A, Q, tt, at, lt);
948
948
  });
949
949
  }
950
- function Bt(A, k) {
950
+ function Lt(A, k) {
951
951
  this.c = A, this.a = k;
952
952
  }
953
- Bt.prototype.load = function(A) {
953
+ Lt.prototype.load = function(A) {
954
954
  function k() {
955
- if (Q["__mti_fntLst" + B]) {
956
- var tt = Q["__mti_fntLst" + B](), at = [], lt;
955
+ if (Q["__mti_fntLst" + L]) {
956
+ var tt = Q["__mti_fntLst" + L](), at = [], lt;
957
957
  if (tt) for (var _t = 0; _t < tt.length; _t++) {
958
958
  var mt = tt[_t].fontfamily;
959
959
  tt[_t].fontStyle != null && tt[_t].fontWeight != null ? (lt = tt[_t].fontStyle + tt[_t].fontWeight, at.push(new w(mt, lt))) : at.push(new w(mt));
@@ -963,25 +963,25 @@ function So() {
963
963
  k();
964
964
  }, 50);
965
965
  }
966
- var O = this, B = O.a.projectId, G = O.a.version;
967
- if (B) {
966
+ var O = this, L = O.a.projectId, G = O.a.version;
967
+ if (L) {
968
968
  var Q = O.c.o;
969
- p(this.c, (O.a.api || "https://fast.fonts.net/jsapi") + "/" + B + ".js" + (G ? "?v=" + G : ""), function(tt) {
970
- tt ? A([]) : (Q["__MonotypeConfiguration__" + B] = function() {
969
+ p(this.c, (O.a.api || "https://fast.fonts.net/jsapi") + "/" + L + ".js" + (G ? "?v=" + G : ""), function(tt) {
970
+ tt ? A([]) : (Q["__MonotypeConfiguration__" + L] = function() {
971
971
  return O.a;
972
972
  }, k());
973
- }).id = "__MonotypeAPIScript__" + B;
973
+ }).id = "__MonotypeAPIScript__" + L;
974
974
  } else A([]);
975
975
  };
976
976
  function xe(A, k) {
977
977
  this.c = A, this.a = k;
978
978
  }
979
979
  xe.prototype.load = function(A) {
980
- var k, O, B = this.a.urls || [], G = this.a.families || [], Q = this.a.testStrings || {}, tt = new m();
981
- for (k = 0, O = B.length; k < O; k++) d(this.c, B[k], _(tt));
980
+ var k, O, L = this.a.urls || [], G = this.a.families || [], Q = this.a.testStrings || {}, tt = new m();
981
+ for (k = 0, O = L.length; k < O; k++) d(this.c, L[k], _(tt));
982
982
  var at = [];
983
- for (k = 0, O = G.length; k < O; k++) if (B = G[k].split(":"), B[1]) for (var lt = B[1].split(","), _t = 0; _t < lt.length; _t += 1) at.push(new w(B[0], lt[_t]));
984
- else at.push(new w(B[0]));
983
+ for (k = 0, O = G.length; k < O; k++) if (L = G[k].split(":"), L[1]) for (var lt = L[1].split(","), _t = 0; _t < lt.length; _t += 1) at.push(new w(L[0], lt[_t]));
984
+ else at.push(new w(L[0]));
985
985
  g(tt, function() {
986
986
  A(at, Q);
987
987
  });
@@ -991,8 +991,8 @@ function So() {
991
991
  }
992
992
  var Ue = "https://fonts.googleapis.com/css";
993
993
  function Ee(A, k) {
994
- for (var O = k.length, B = 0; B < O; B++) {
995
- var G = k[B].split(":");
994
+ for (var O = k.length, L = 0; L < O; L++) {
995
+ var G = k[L].split(":");
996
996
  G.length == 3 && A.f.push(G.pop());
997
997
  var Q = "";
998
998
  G.length == 2 && G[1] != "" && (Q = ":"), A.a.push(G.join(Q));
@@ -1001,7 +1001,7 @@ function So() {
1001
1001
  function oe(A) {
1002
1002
  if (A.a.length == 0) throw Error("No fonts to load!");
1003
1003
  if (A.c.indexOf("kit=") != -1) return A.c;
1004
- for (var k = A.a.length, O = [], B = 0; B < k; B++) O.push(A.a[B].replace(/ /g, "+"));
1004
+ for (var k = A.a.length, O = [], L = 0; L < k; L++) O.push(A.a[L].replace(/ /g, "+"));
1005
1005
  return k = A.c + "?family=" + O.join("%7C"), 0 < A.f.length && (k += "&subset=" + A.f.join(",")), 0 < A.g.length && (k += "&text=" + encodeURIComponent(A.g)), k;
1006
1006
  }
1007
1007
  function Ie(A) {
@@ -1010,25 +1010,25 @@ function So() {
1010
1010
  var ge = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, Se = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, Ae = { i: "i", italic: "i", n: "n", normal: "n" }, Ce = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
1011
1011
  function le(A) {
1012
1012
  for (var k = A.f.length, O = 0; O < k; O++) {
1013
- var B = A.f[O].split(":"), G = B[0].replace(/\+/g, " "), Q = ["n4"];
1014
- if (2 <= B.length) {
1015
- var tt, at = B[1];
1013
+ var L = A.f[O].split(":"), G = L[0].replace(/\+/g, " "), Q = ["n4"];
1014
+ if (2 <= L.length) {
1015
+ var tt, at = L[1];
1016
1016
  if (tt = [], at) for (var at = at.split(","), lt = at.length, _t = 0; _t < lt; _t++) {
1017
1017
  var mt;
1018
1018
  if (mt = at[_t], mt.match(/^[\w-]+$/)) {
1019
- var wt = Ce.exec(mt.toLowerCase());
1020
- if (wt == null) mt = "";
1019
+ var yt = Ce.exec(mt.toLowerCase());
1020
+ if (yt == null) mt = "";
1021
1021
  else {
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));
1024
- mt = [mt, wt].join("");
1022
+ if (mt = yt[2], mt = mt == null || mt == "" ? "n" : Ae[mt], yt = yt[1], yt == null || yt == "") yt = "4";
1023
+ else var Nt = Se[yt], yt = Nt || (isNaN(yt) ? "4" : yt.substr(0, 1));
1024
+ mt = [mt, yt].join("");
1025
1025
  }
1026
1026
  } else mt = "";
1027
1027
  mt && tt.push(mt);
1028
1028
  }
1029
- 0 < tt.length && (Q = tt), B.length == 3 && (B = B[2], tt = [], B = B ? B.split(",") : tt, 0 < B.length && (B = ge[B[0]]) && (A.c[G] = B));
1029
+ 0 < tt.length && (Q = tt), L.length == 3 && (L = L[2], tt = [], L = L ? L.split(",") : tt, 0 < L.length && (L = ge[L[0]]) && (A.c[G] = L));
1030
1030
  }
1031
- for (A.c[G] || (B = ge[G]) && (A.c[G] = B), B = 0; B < Q.length; B += 1) A.a.push(new w(G, Q[B]));
1031
+ for (A.c[G] || (L = ge[G]) && (A.c[G] = L), L = 0; L < Q.length; L += 1) A.a.push(new w(G, Q[L]));
1032
1032
  }
1033
1033
  }
1034
1034
  function zt(A, k) {
@@ -1036,10 +1036,10 @@ 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 ie(this.a.api, this.a.text), G = this.a.families;
1040
- Ee(B, G);
1039
+ var k = new m(), O = this.c, L = new ie(this.a.api, this.a.text), G = this.a.families;
1040
+ Ee(L, G);
1041
1041
  var Q = new Ie(G);
1042
- le(Q), d(O, oe(B), _(k)), g(k, function() {
1042
+ le(Q), d(O, oe(L), _(k)), g(k, function() {
1043
1043
  A(Q.a, Q.c, ke);
1044
1044
  });
1045
1045
  };
@@ -1048,11 +1048,11 @@ function So() {
1048
1048
  }
1049
1049
  Gt.prototype.load = function(A) {
1050
1050
  var k = this.a.id, O = this.c.o;
1051
- k ? p(this.c, (this.a.api || "https://use.typekit.net") + "/" + k + ".js", function(B) {
1052
- if (B) A([]);
1051
+ k ? p(this.c, (this.a.api || "https://use.typekit.net") + "/" + k + ".js", function(L) {
1052
+ if (L) A([]);
1053
1053
  else if (O.Typekit && O.Typekit.config && O.Typekit.config.fn) {
1054
- B = O.Typekit.config.fn;
1055
- for (var G = [], Q = 0; Q < B.length; Q += 2) for (var tt = B[Q], at = B[Q + 1], lt = 0; lt < at.length; lt++) G.push(new w(tt, at[lt]));
1054
+ L = O.Typekit.config.fn;
1055
+ for (var G = [], Q = 0; Q < L.length; Q += 2) for (var tt = L[Q], at = L[Q + 1], lt = 0; lt < at.length; lt++) G.push(new w(tt, at[lt]));
1056
1056
  try {
1057
1057
  O.Typekit.load({ events: !1, classes: !1, async: !0 });
1058
1058
  } catch {
@@ -1065,13 +1065,13 @@ function So() {
1065
1065
  this.c = A, this.f = k, this.a = [];
1066
1066
  }
1067
1067
  $t.prototype.load = function(A) {
1068
- var k = this.f.id, O = this.c.o, B = this;
1068
+ var k = this.f.id, O = this.c.o, L = this;
1069
1069
  k ? (O.__webfontfontdeckmodule__ || (O.__webfontfontdeckmodule__ = {}), O.__webfontfontdeckmodule__[k] = function(G, Q) {
1070
1070
  for (var tt = 0, at = Q.fonts.length; tt < at; ++tt) {
1071
1071
  var lt = Q.fonts[tt];
1072
- B.a.push(new w(lt.name, T("font-weight:" + lt.weight + ";font-style:" + lt.style)));
1072
+ L.a.push(new w(lt.name, T("font-weight:" + lt.weight + ";font-style:" + lt.style)));
1073
1073
  }
1074
- A(B.a);
1074
+ A(L.a);
1075
1075
  }, p(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + c(this.c) + "/" + k + ".js", function(G) {
1076
1076
  G && A([]);
1077
1077
  })) : A([]);
@@ -1082,7 +1082,7 @@ function So() {
1082
1082
  }, Kt.a.c.fontdeck = function(A, k) {
1083
1083
  return new $t(k, A);
1084
1084
  }, Kt.a.c.monotype = function(A, k) {
1085
- return new Bt(k, A);
1085
+ return new Lt(k, A);
1086
1086
  }, Kt.a.c.typekit = function(A, k) {
1087
1087
  return new Gt(k, A);
1088
1088
  }, Kt.a.c.google = function(A, k) {
@@ -1099,9 +1099,9 @@ const Co = /* @__PURE__ */ Va(Ao), dn = class dn extends be {
1099
1099
  super(...arguments);
1100
1100
  y(this, "PIXI_RESOURCES", "pixi.loader");
1101
1101
  y(this, "WEBFONT_RESOURCES", "webfont.loader");
1102
- y(this, "_baseUrl", vt("loader.baseurl", ""));
1103
- y(this, "_concurrency", vt("loader.concurrency", 20));
1104
- y(this, "_bindToGPU", vt("loader.bind.gpu", ["png", "jpg", "webp"]));
1102
+ y(this, "_baseUrl", wt("loader.baseurl", ""));
1103
+ y(this, "_concurrency", wt("loader.concurrency", 20));
1104
+ y(this, "_bindToGPU", wt("loader.bind.gpu", ["png", "jpg", "webp"]));
1105
1105
  y(this, "_queue", /* @__PURE__ */ new Map([
1106
1106
  [this.PIXI_RESOURCES, /* @__PURE__ */ new Set()],
1107
1107
  [this.WEBFONT_RESOURCES, /* @__PURE__ */ new Set()]
@@ -1114,18 +1114,18 @@ const Co = /* @__PURE__ */ Va(Ao), dn = class dn extends be {
1114
1114
  async _pixiLoader(t) {
1115
1115
  const n = [], u = async (f, a = 10) => new Promise((c) => {
1116
1116
  const d = [], p = new Jn(this._baseUrl, this._concurrency), m = ai("renderer");
1117
- f.forEach((_) => p.add(_, vt("loader.options", null))), p.pre((_, g) => {
1118
- _.url.includes("?c=") || (_.url += `?c=${vt("commit", "")}`), g();
1117
+ f.forEach((_) => p.add(_, wt("loader.options", null))), p.pre((_, g) => {
1118
+ _.url.includes("?c=") || (_.url += `?c=${wt("commit", "")}`), g();
1119
1119
  }), p.onProgress.add((_, g) => {
1120
1120
  var v;
1121
1121
  a === 10 && this.emit("pixi.loader:progress", { progress: _.progress, tag: t }), dn.resources.set(g.url, g), (v = this._bindToGPU) != null && v.includes(g.extension) && d.push(g);
1122
1122
  }), p.onError.add((_, g, v) => {
1123
1123
  Vi(`Failed to load: ${v.url}`);
1124
- const x = v.name.replace(/_image$/, "").replace(/_atlas_page_.+$/, "").replace(/_atlas$/, "");
1125
- if (delete g.resources[x], a > 0) {
1126
- const w = 100 * 1.2 ** (10 - a), S = w * 0.5 * (Math.random() * 2 - 1), b = Math.max(0, Math.floor(w + S));
1124
+ const S = v.name.replace(/_image$/, "").replace(/_atlas_page_.+$/, "").replace(/_atlas$/, "");
1125
+ if (delete g.resources[S], a > 0) {
1126
+ const w = 100 * 1.2 ** (10 - a), x = w * 0.5 * (Math.random() * 2 - 1), b = Math.max(0, Math.floor(w + x));
1127
1127
  n.push(
1128
- gi(b).then(() => u([x], a - 1))
1128
+ gi(b).then(() => u([S], a - 1))
1129
1129
  );
1130
1130
  }
1131
1131
  }), p.load(() => {
@@ -1169,7 +1169,7 @@ const Jt = class Jt extends ii {
1169
1169
  */
1170
1170
  add(e) {
1171
1171
  let t = null;
1172
- const i = vt("realDeviceAssetNames", []);
1172
+ const i = wt("realDeviceAssetNames", []);
1173
1173
  for (const n in e) {
1174
1174
  const r = i.includes(n);
1175
1175
  if (!Jt.assets.has(n)) {
@@ -1226,7 +1226,7 @@ const Jt = class Jt extends ii {
1226
1226
  r = e[n];
1227
1227
  break;
1228
1228
  }
1229
- return r ? `${r}?c=${vt("commit", "")}` : null;
1229
+ return r ? `${r}?c=${wt("commit", "")}` : null;
1230
1230
  }
1231
1231
  /**
1232
1232
  * Получить конфиг ассета по имени
@@ -1315,7 +1315,7 @@ class sn extends $a {
1315
1315
  /** Следует ли показывать валюту */
1316
1316
  y(this, "_withCurrency", !0);
1317
1317
  y(this, "_maxWidthCustom", null);
1318
- this._fontFace = n, this._currency = i.currency || vt("currency", ""), this._space = i.space ?? null, this._currency && this.hasMissing(this._currency) && (this._withCurrency = !1), this.refresh();
1318
+ this._fontFace = n, this._currency = i.currency || wt("currency", ""), this._space = i.space ?? null, this._currency && this.hasMissing(this._currency) && (this._withCurrency = !1), this.refresh();
1319
1319
  }
1320
1320
  /** Догступ к fontFace, на всякий случай */
1321
1321
  get fontFace() {
@@ -1700,7 +1700,7 @@ window.PIXI = Ha;
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
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("-"));
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), S.push((W ? "" : "no-") + U.join("-"));
1704
1704
  }
1705
1705
  }
1706
1706
  function r(I) {
@@ -1805,10 +1805,10 @@ window.PIXI = Ha;
1805
1805
  return V(), !1;
1806
1806
  }
1807
1807
  function v(I, R, X, W, V) {
1808
- var $ = I.charAt(0).toUpperCase() + I.slice(1), U = (I + " " + L.join($ + " ") + $).split(" ");
1808
+ var $ = I.charAt(0).toUpperCase() + I.slice(1), U = (I + " " + B.join($ + " ") + $).split(" ");
1809
1809
  return i(R, "string") || i(R, "undefined") ? g(U, R, W, V) : (U = (I + " " + N.join($ + " ") + $).split(" "), a(U, R, X));
1810
1810
  }
1811
- var x = [], w = [], S = {
1811
+ var S = [], w = [], x = {
1812
1812
  _version: "3.6.0",
1813
1813
  _config: { classPrefix: "", enableClasses: !0, enableJSClass: !0, usePrefixes: !0 },
1814
1814
  _q: [],
@@ -1826,7 +1826,7 @@ window.PIXI = Ha;
1826
1826
  }
1827
1827
  }, b = function() {
1828
1828
  };
1829
- b.prototype = S, b = new b();
1829
+ b.prototype = x, b = new b();
1830
1830
  var C, F = e.documentElement, T = F.nodeName.toLowerCase() === "svg";
1831
1831
  (function() {
1832
1832
  var I = {}.hasOwnProperty;
@@ -1835,11 +1835,11 @@ window.PIXI = Ha;
1835
1835
  } : function(R, X) {
1836
1836
  return I.call(R, X);
1837
1837
  };
1838
- })(), S._l = {}, S.on = function(I, R) {
1838
+ })(), x._l = {}, x.on = function(I, R) {
1839
1839
  this._l[I] || (this._l[I] = []), this._l[I].push(R), b.hasOwnProperty(I) && setTimeout(function() {
1840
1840
  b._trigger(I, b[I]);
1841
1841
  }, 0);
1842
- }, S._trigger = function(I, R) {
1842
+ }, x._trigger = function(I, R) {
1843
1843
  if (this._l[I]) {
1844
1844
  var X = this._l[I];
1845
1845
  setTimeout(function() {
@@ -1848,7 +1848,7 @@ window.PIXI = Ha;
1848
1848
  }, 0), delete this._l[I];
1849
1849
  }
1850
1850
  }, b._q.push(function() {
1851
- S.addTest = o;
1851
+ x.addTest = o;
1852
1852
  }), b.addAsyncTest(function() {
1853
1853
  function I(W, V, $) {
1854
1854
  function U(rt) {
@@ -1880,8 +1880,8 @@ window.PIXI = Ha;
1880
1880
  if (W && W.type === "load") for (var V = 0; V < R.length; V++) I(R[V].name, R[V].uri);
1881
1881
  });
1882
1882
  });
1883
- var E = "Moz O ms Webkit", L = S._config.usePrefixes ? E.split(" ") : [];
1884
- S._cssomPrefixes = L;
1883
+ var E = "Moz O ms Webkit", B = x._config.usePrefixes ? E.split(" ") : [];
1884
+ x._cssomPrefixes = B;
1885
1885
  var D = function(I) {
1886
1886
  var R, X = prefixes.length, W = s.CSSRule;
1887
1887
  if (typeof W > "u") return t;
@@ -1893,9 +1893,9 @@ window.PIXI = Ha;
1893
1893
  }
1894
1894
  return !1;
1895
1895
  };
1896
- S.atRule = D;
1897
- var N = S._config.usePrefixes ? E.toLowerCase().split(" ") : [];
1898
- S._domPrefixes = N;
1896
+ x.atRule = D;
1897
+ var N = x._config.usePrefixes ? E.toLowerCase().split(" ") : [];
1898
+ x._domPrefixes = N;
1899
1899
  var Y = { elem: l("modernizr") };
1900
1900
  b._q.push(function() {
1901
1901
  delete Y.elem;
@@ -1903,11 +1903,11 @@ window.PIXI = Ha;
1903
1903
  var z = { style: Y.elem.style };
1904
1904
  b._q.unshift(function() {
1905
1905
  delete z.style;
1906
- }), S.testAllProps = v;
1907
- var q = S.prefixed = function(I, R, X) {
1906
+ }), x.testAllProps = v;
1907
+ var q = x.prefixed = function(I, R, X) {
1908
1908
  return I.indexOf("@") === 0 ? D(I) : (I.indexOf("-") != -1 && (I = h(I)), R ? v(I, R, X) : v(I, "pfx"));
1909
1909
  };
1910
- b.addTest("fullscreen", !(!q("exitFullscreen", e, !1) && !q("cancelFullScreen", e, !1))), n(), r(x), delete S.addTest, delete S.addAsyncTest;
1910
+ b.addTest("fullscreen", !(!q("exitFullscreen", e, !1) && !q("cancelFullScreen", e, !1))), n(), r(S), delete x.addTest, delete x.addAsyncTest;
1911
1911
  for (var j = 0; j < b._q.length; j++) b._q[j]();
1912
1912
  s.Modernizr = b;
1913
1913
  })(window, document);
@@ -2239,20 +2239,20 @@ var qe = /* @__PURE__ */ function() {
2239
2239
  for (; !i[0] && i.length > 1; ) i.shift();
2240
2240
  }
2241
2241
  return function(i, n, r, o) {
2242
- var h, u, l, f, a, c, d, p, m, _, g, v, x, w, S, b, C, F, T = i.constructor, E = i.s == n.s ? 1 : -1, L = i.d, D = n.d;
2242
+ var h, u, l, f, a, c, d, p, m, _, g, v, S, w, x, b, C, F, T = i.constructor, E = i.s == n.s ? 1 : -1, B = i.d, D = n.d;
2243
2243
  if (!i.s) return new T(i);
2244
2244
  if (!n.s) throw Error(we + "Division by zero");
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);
2245
+ for (u = i.e - n.e, C = D.length, x = B.length, d = new T(E), p = d.d = [], l = 0; D[l] == (B[l] || 0); ) ++l;
2246
+ if (D[l] > (B[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);
2247
2247
  if (v = v / kt + 2 | 0, l = 0, C == 1)
2248
- for (f = 0, D = D[0], v++; (l < S || f) && v--; l++)
2249
- x = f * Ut + (L[l] || 0), p[l] = x / D | 0, f = x % D | 0;
2248
+ for (f = 0, D = D[0], v++; (l < x || f) && v--; l++)
2249
+ S = f * Ut + (B[l] || 0), p[l] = S / D | 0, f = S % D | 0;
2250
2250
  else {
2251
- for (f = Ut / (D[0] + 1) | 0, f > 1 && (D = s(D, f), L = s(L, f), C = D.length, S = L.length), w = C, m = L.slice(0, C), _ = m.length; _ < C; ) m[_++] = 0;
2251
+ for (f = Ut / (D[0] + 1) | 0, f > 1 && (D = s(D, f), B = s(B, f), C = D.length, x = B.length), w = C, m = B.slice(0, C), _ = m.length; _ < C; ) m[_++] = 0;
2252
2252
  F = D.slice(), F.unshift(0), b = D[0], D[1] >= Ut / 2 && ++b;
2253
2253
  do
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
- while ((w++ < S || m[0] !== void 0) && v--);
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[_++] = B[w] || 0 : (m = [B[w]], _ = 1);
2255
+ while ((w++ < x || m[0] !== void 0) && v--);
2256
2256
  }
2257
2257
  return p[0] || p.shift(), d.e = u, xt(d, o ? r + Wt(d) + 1 : r);
2258
2258
  };
@@ -2611,7 +2611,7 @@ class Io extends Ct {
2611
2611
  height: 30,
2612
2612
  margin: 10
2613
2613
  });
2614
- y(this, "_isDebug", vt("client", { debug: !1 }).debug);
2614
+ y(this, "_isDebug", wt("client", { debug: !1 }).debug);
2615
2615
  y(this, "_updateInterval");
2616
2616
  y(this, "_ticker");
2617
2617
  y(this, "_rect");
@@ -2843,7 +2843,7 @@ const Dn = {
2843
2843
  Producer: Oo,
2844
2844
  Assets: bt
2845
2845
  };
2846
- class Lo extends be {
2846
+ class Bo extends be {
2847
2847
  /**
2848
2848
  * @constructor
2849
2849
  * @param engine TEngine
@@ -2865,7 +2865,7 @@ class Lo extends be {
2865
2865
  }, 300) : (this.onFocus && this.onFocus(), ee.ticker.lagSmoothing(1e3, 16), We.shared.start(), clearInterval(this._tickerInterval));
2866
2866
  }
2867
2867
  }
2868
- class Bo extends be {
2868
+ class Lo extends be {
2869
2869
  constructor() {
2870
2870
  super(...arguments);
2871
2871
  y(this, "name");
@@ -3298,7 +3298,7 @@ var An = Rr.filter(function(s) {
3298
3298
  }
3299
3299
  this._source = null, this._progress = 1, this.emit("progress", 1, this._duration), this.emit("end", this);
3300
3300
  }, e;
3301
- }(qi), Lr = function() {
3301
+ }(qi), Br = function() {
3302
3302
  function s(e, t) {
3303
3303
  this._output = t, this._input = e;
3304
3304
  }
@@ -3337,7 +3337,7 @@ var An = Rr.filter(function(s) {
3337
3337
  }, Object.defineProperty(e.prototype, "bufferSize", { get: function() {
3338
3338
  return this.script.bufferSize;
3339
3339
  }, enumerable: !1, configurable: !0 }), e.BUFFER_SIZE = 0, e;
3340
- }(Lr), Go = function() {
3340
+ }(Br), Go = function() {
3341
3341
  function s() {
3342
3342
  }
3343
3343
  return s.prototype.init = function(e) {
@@ -3572,7 +3572,7 @@ var An = Rr.filter(function(s) {
3572
3572
  }, n);
3573
3573
  r && r.catch(n);
3574
3574
  }, e;
3575
- }(Lr), qo = function() {
3575
+ }(Br), qo = function() {
3576
3576
  function s() {
3577
3577
  this.init();
3578
3578
  }
@@ -3845,7 +3845,7 @@ var An = Rr.filter(function(s) {
3845
3845
  }
3846
3846
  return fe(e, s), e;
3847
3847
  }(li);
3848
- var Li = function(s) {
3848
+ var Bi = function(s) {
3849
3849
  return Er = s, s;
3850
3850
  }(new qo());
3851
3851
  "extensions" in Ua ? Ga.add(Yn) : Jn.registerPlugin(Yn);
@@ -3869,11 +3869,11 @@ class zo extends be {
3869
3869
  }
3870
3870
  /** Глобальная громкость */
3871
3871
  set sounds(t) {
3872
- Li.volumeAll !== t && (Li.volumeAll = t, t ? Li.unmuteAll() : Li.muteAll());
3872
+ Bi.volumeAll !== t && (Bi.volumeAll = t, t ? Bi.unmuteAll() : Bi.muteAll());
3873
3873
  }
3874
3874
  /** Глобальная громкость */
3875
3875
  get sounds() {
3876
- return Li.volumeAll;
3876
+ return Bi.volumeAll;
3877
3877
  }
3878
3878
  /** Включена ли музыка */
3879
3879
  get ambience() {
@@ -4055,7 +4055,7 @@ class Ko {
4055
4055
  const t = window.localStorage.getItem(this._key);
4056
4056
  if (t !== null) {
4057
4057
  const i = JSON.parse(t);
4058
- Bn(i) && (this._cached = i);
4058
+ Ln(i) && (this._cached = i);
4059
4059
  }
4060
4060
  } catch {
4061
4061
  this._isAvailable = !1;
@@ -4114,7 +4114,7 @@ class qc extends Ti {
4114
4114
  backgroundAlpha: 0,
4115
4115
  sharedTicker: !0,
4116
4116
  resolution: et.devicePixelRatio
4117
- }), this.driver.renderer.view.style.touchAction = "auto", this.driver.stop(), globalThis.__PIXI_APP__ = this.driver, this.registry().set("renderer", this.driver.renderer), n && this.settings().setMany(n), this.get("enableScissorMask", !1) && (this.registry().get("renderer").mask.enableScissor = !0), this.producer = new Dn.Producer(), this.assets = new Dn.Assets(), this.register("sounds", () => new zo()), this.register("storage", () => new Ko()), this.register("focus", () => new Lo()), this.register("skip", () => new Bo()), r && (this.driver.stage = r), this.driver.stage.addChild(this.producer.instance);
4117
+ }), this.driver.renderer.view.style.touchAction = "auto", this.driver.stop(), globalThis.__PIXI_APP__ = this.driver, this.registry().set("renderer", this.driver.renderer), n && this.settings().setMany(n), this.get("enableScissorMask", !1) && (this.registry().get("renderer").mask.enableScissor = !0), this.producer = new Dn.Producer(), this.assets = new Dn.Assets(), this.register("sounds", () => new zo()), this.register("storage", () => new Ko()), this.register("focus", () => new Bo()), this.register("skip", () => new Lo()), r && (this.driver.stage = r), this.driver.stage.addChild(this.producer.instance);
4118
4118
  }
4119
4119
  /**
4120
4120
  * Старт приложения
@@ -4186,7 +4186,7 @@ class qc extends Ti {
4186
4186
  }
4187
4187
  }
4188
4188
  }
4189
- var Br = /* @__PURE__ */ ((s) => (s.strictBreak = "strictBreak", s.strictProgress = "strictProgress", s.crossfadeBreak = "crossfadeBreak", s.crossfadeProgress = "crossfadeProgress", s.continueFlow = "continueFlow", s))(Br || {});
4189
+ var Lr = /* @__PURE__ */ ((s) => (s.strictBreak = "strictBreak", s.strictProgress = "strictProgress", s.crossfadeBreak = "crossfadeBreak", s.crossfadeProgress = "crossfadeProgress", s.continueFlow = "continueFlow", s))(Lr || {});
4190
4190
  class zc {
4191
4191
  /**
4192
4192
  * @constructor
@@ -4217,7 +4217,7 @@ class zc {
4217
4217
  n.forEach((o, h) => {
4218
4218
  this._tracks.set(h, new To(o, Ar.excludeRandom));
4219
4219
  }), i && Object.values(i).forEach((o) => {
4220
- Br[o.method] && this._trackSwitcher.set(this._getKey(o.from, o.to), o.method);
4220
+ Lr[o.method] && this._trackSwitcher.set(this._getKey(o.from, o.to), o.method);
4221
4221
  });
4222
4222
  const r = new Ti();
4223
4223
  this.howl = () => r.service("howl");
@@ -4373,7 +4373,7 @@ class Zo {
4373
4373
  t && this._callbacksFast.add(t), i && this._callbacksSkip.add(i), await e(), t && this._callbacksFast.delete(t), i && this._callbacksSkip.delete(i);
4374
4374
  }
4375
4375
  }
4376
- const Bi = new Zo(), bi = {
4376
+ const Li = new Zo(), bi = {
4377
4377
  music: "music",
4378
4378
  samples: "samples",
4379
4379
  dealer: "dealer"
@@ -4796,15 +4796,15 @@ var Nn = (
4796
4796
  d();
4797
4797
  else {
4798
4798
  m == null && (m = [], _ = []), m.push(o[0]);
4799
- for (var v = [], x = 0; x < g; x++)
4800
- v.push(parseInt(o[x + 1]));
4799
+ for (var v = [], S = 0; S < g; S++)
4800
+ v.push(parseInt(o[S + 1]));
4801
4801
  _.push(v);
4802
4802
  }
4803
4803
  }
4804
4804
  l.originalWidth == 0 && l.originalHeight == 0 && (l.originalWidth = l.width, l.originalHeight = l.height);
4805
4805
  var w = h.baseTexture.resolution;
4806
4806
  l.x /= w, l.y /= w, l.width /= w, l.height /= w, l.originalWidth /= w, l.originalHeight /= w, l.offsetX /= w, l.offsetY /= w;
4807
- var S = l.rotate % 4 !== 0, b = new nn(l.x, l.y, S ? l.height : l.width, S ? l.width : l.height), C = new nn(0, 0, l.originalWidth, l.originalHeight), F = new nn(l.offsetX, l.originalHeight - l.height - l.offsetY, l.width, l.height);
4807
+ var x = l.rotate % 4 !== 0, b = new nn(l.x, l.y, x ? l.height : l.width, x ? l.width : l.height), C = new nn(0, 0, l.originalWidth, l.originalHeight), F = new nn(l.offsetX, l.originalHeight - l.height - l.offsetY, l.width, l.height);
4808
4808
  p.texture = new yi(p.page.baseTexture, b, C, F, l.rotate), p.index = l.index, p.texture.updateUvs(), n.regions.push(p);
4809
4809
  }
4810
4810
  }
@@ -5122,10 +5122,10 @@ var Z = (
5122
5122
  return null;
5123
5123
  }, s.prototype.intersectsSegmentPolygon = function(e, t, i, n, r) {
5124
5124
  for (var o = e, h = e.length, u = t - n, l = i - r, f = t * r - i * n, a = o[h - 2], c = o[h - 1], d = 0; d < h; d += 2) {
5125
- var p = o[d], m = o[d + 1], _ = a * m - c * p, g = a - p, v = c - m, x = u * v - l * g, w = (f * g - u * _) / x;
5125
+ var p = o[d], m = o[d + 1], _ = a * m - c * p, g = a - p, v = c - m, S = u * v - l * g, w = (f * g - u * _) / S;
5126
5126
  if ((w >= a && w <= p || w >= p && w <= a) && (w >= t && w <= n || w >= n && w <= t)) {
5127
- var S = (f * v - l * _) / x;
5128
- if ((S >= c && S <= m || S >= m && S <= c) && (S >= i && S <= r || S >= r && S <= i))
5127
+ var x = (f * v - l * _) / S;
5128
+ if ((x >= c && x <= m || x >= m && x <= c) && (x >= i && x <= r || x >= r && x <= i))
5129
5129
  return !0;
5130
5130
  }
5131
5131
  a = p, c = m;
@@ -5276,8 +5276,8 @@ var Z = (
5276
5276
  if (a.currentSprite && (a.currentSprite.visible = !1), a.sprites = a.sprites || {}, a.sprites[v] !== void 0)
5277
5277
  a.sprites[v].visible = !0;
5278
5278
  else {
5279
- var x = this.createSprite(a, c, v);
5280
- d.addChild(x);
5279
+ var S = this.createSprite(a, c, v);
5280
+ d.addChild(S);
5281
5281
  }
5282
5282
  a.currentSprite = a.sprites[v], a.currentSpriteName = v;
5283
5283
  }
@@ -5293,9 +5293,9 @@ var Z = (
5293
5293
  a.currentMesh && (a.currentMesh.renderable = !1);
5294
5294
  break;
5295
5295
  }
5296
- var S = c.id;
5297
- if (a.currentMeshId === void 0 || a.currentMeshId !== S) {
5298
- var b = S;
5296
+ var x = c.id;
5297
+ if (a.currentMeshId === void 0 || a.currentMeshId !== x) {
5298
+ var b = x;
5299
5299
  if (a.currentMesh && (a.currentMesh.visible = !1), a.meshes = a.meshes || {}, a.meshes[b] !== void 0)
5300
5300
  a.meshes[b].visible = !0;
5301
5301
  else {
@@ -5319,8 +5319,8 @@ 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++) {
5323
- var a = r[L[l].data.index], d = this.slotContainers[L[l].data.index];
5322
+ for (var B = this.skeleton.drawOrder, D = null, N = null, l = 0, f = B.length; l < f; l++) {
5323
+ var a = r[B[l].data.index], d = this.slotContainers[B[l].data.index];
5324
5324
  if (N || d.parent !== null && d.parent !== this && (d.parent.removeChild(d), d.parent = this), a.currentGraphics && a.getAttachment())
5325
5325
  N = a.clippingContainer, D = a.getAttachment(), N.children.length = 0, this.children[l] = d, D.endSlot === a.data && (D.endSlot = null);
5326
5326
  else if (N) {
@@ -5469,13 +5469,13 @@ var pl = (
5469
5469
  }, _ = t.url.substr(0, t.url.lastIndexOf("/") + 1);
5470
5470
  _ = _.replace(this.baseUrl, "");
5471
5471
  var g = u.imageNamePrefix || t.name + "_atlas_page_", v = u.images ? zs(u.images) : u.image ? zs({ default: u.image }) : u.imageLoader ? u.imageLoader(this, g, _, m) : ml(this, g, _, m);
5472
- function x(w) {
5473
- new il(w, v, function(S) {
5474
- S && e.parseData(t, o, S, h), i();
5472
+ function S(w) {
5473
+ new il(w, v, function(x) {
5474
+ x && e.parseData(t, o, x, h), i();
5475
5475
  });
5476
5476
  }
5477
- u.atlasRawData ? x(u.atlasRawData) : this.add(t.name + "_atlas", c, p, function(w) {
5478
- w.error ? i() : x(w.data);
5477
+ u.atlasRawData ? S(u.atlasRawData) : this.add(t.name + "_atlas", c, p, function(w) {
5478
+ w.error ? i() : S(w.data);
5479
5479
  });
5480
5480
  }
5481
5481
  };
@@ -5557,9 +5557,9 @@ var Xr = (
5557
5557
  var u = t.bone.skeleton, l = t.deform, f = this.vertices, a = this.bones;
5558
5558
  if (!a) {
5559
5559
  l.length > 0 && (f = l);
5560
- for (var c = t.bone.matrix, d = c.tx, p = c.ty, m = c.a, _ = c.c, g = c.b, v = c.d, x = i, w = o; w < n; x += 2, w += h) {
5561
- var S = f[x], b = f[x + 1];
5562
- r[w] = S * m + b * _ + d, r[w + 1] = S * g + b * v + p;
5560
+ for (var c = t.bone.matrix, d = c.tx, p = c.ty, m = c.a, _ = c.c, g = c.b, v = c.d, S = i, w = o; w < n; S += 2, w += h) {
5561
+ var x = f[S], b = f[S + 1];
5562
+ r[w] = x * m + b * _ + d, r[w + 1] = x * g + b * v + p;
5563
5563
  }
5564
5564
  return;
5565
5565
  }
@@ -5567,13 +5567,13 @@ var Xr = (
5567
5567
  var E = a[C];
5568
5568
  C += E + 1, F += E;
5569
5569
  }
5570
- var L = u.bones;
5570
+ var B = u.bones;
5571
5571
  if (l.length == 0)
5572
5572
  for (var w = o, _ = F * 3; w < n; w += h) {
5573
5573
  var D = 0, N = 0, E = a[C++];
5574
5574
  for (E += C; C < E; C++, _ += 3) {
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;
5575
+ var c = B[a[C]].matrix, x = f[_], b = f[_ + 1], Y = f[_ + 2];
5576
+ D += (x * c.a + b * c.c + c.tx) * Y, N += (x * c.b + b * c.d + c.ty) * Y;
5577
5577
  }
5578
5578
  r[w] = D, r[w + 1] = N;
5579
5579
  }
@@ -5581,8 +5581,8 @@ var Xr = (
5581
5581
  for (var z = l, w = o, _ = F * 3, q = F << 1; w < n; w += h) {
5582
5582
  var D = 0, N = 0, E = a[C++];
5583
5583
  for (E += C; C < E; C++, _ += 3, q += 2) {
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;
5584
+ var c = B[a[C]].matrix, x = f[_] + z[q], b = f[_ + 1] + z[q + 1], Y = f[_ + 2];
5585
+ D += (x * c.a + b * c.c + c.tx) * Y, N += (x * c.b + b * c.d + c.ty) * Y;
5586
5586
  }
5587
5587
  r[w] = D, r[w + 1] = N;
5588
5588
  }
@@ -5683,8 +5683,8 @@ var Xr = (
5683
5683
  return e.prototype.updateRegion = function() {
5684
5684
  if (!this.region)
5685
5685
  throw new Error("Region not set.");
5686
- var t = this.region, i = this.width / this.region.originalWidth * this.scaleX, n = this.height / this.region.originalHeight * this.scaleY, r = -this.width / 2 * this.scaleX + this.region.offsetX * i, o = -this.height / 2 * this.scaleY + this.region.offsetY * n, h = r + this.region.width * i, u = o + this.region.height * n, l = this.rotation * Math.PI / 180, f = Math.cos(l), a = Math.sin(l), c = this.x, d = this.y, p = r * f + c, m = r * a, _ = o * f + d, g = o * a, v = h * f + c, x = h * a, w = u * f + d, S = u * a, b = this.offset;
5687
- b[0] = p - g, b[1] = _ + m, b[2] = p - S, b[3] = w + m, b[4] = v - S, b[5] = w + x, b[6] = v - g, b[7] = _ + x;
5686
+ var t = this.region, i = this.width / this.region.originalWidth * this.scaleX, n = this.height / this.region.originalHeight * this.scaleY, r = -this.width / 2 * this.scaleX + this.region.offsetX * i, o = -this.height / 2 * this.scaleY + this.region.offsetY * n, h = r + this.region.width * i, u = o + this.region.height * n, l = this.rotation * Math.PI / 180, f = Math.cos(l), a = Math.sin(l), c = this.x, d = this.y, p = r * f + c, m = r * a, _ = o * f + d, g = o * a, v = h * f + c, S = h * a, w = u * f + d, x = u * a, b = this.offset;
5687
+ b[0] = p - g, b[1] = _ + m, b[2] = p - x, b[3] = w + m, b[4] = v - x, b[5] = w + S, b[6] = v - g, b[7] = _ + S;
5688
5688
  var C = this.uvs;
5689
5689
  t.degrees == 90 ? (C[2] = t.u, C[3] = t.v2, C[4] = t.u, C[5] = t.v, C[6] = t.u2, C[7] = t.v, C[0] = t.u2, C[1] = t.v2) : (C[0] = t.u, C[1] = t.v2, C[2] = t.u, C[3] = t.v, C[4] = t.u2, C[5] = t.v, C[6] = t.u2, C[7] = t.v2);
5690
5690
  }, e.prototype.computeWorldVertices = function(t, i, n, r) {
@@ -5828,8 +5828,8 @@ var Hr = [
5828
5828
  }, e.prototype.setBezier = function(t, i, n, r, o, h, u, l, f, a, c) {
5829
5829
  var d = this.curves, p = this.getFrameCount() + t * 18;
5830
5830
  n == 0 && (d[i] = 2 + p);
5831
- for (var m = (r - h * 2 + l) * 0.03, _ = (o - u * 2 + f) * 0.03, g = ((h - l) * 3 - r + a) * 6e-3, v = ((u - f) * 3 - o + c) * 6e-3, x = m * 2 + g, w = _ * 2 + v, S = (h - r) * 0.3 + m + g * 0.16666667, b = (u - o) * 0.3 + _ + v * 0.16666667, C = r + S, F = o + b, T = p + 18; p < T; p += 2)
5832
- d[p] = C, d[p + 1] = F, S += x, b += w, x += g, w += v, C += S, F += b;
5831
+ for (var m = (r - h * 2 + l) * 0.03, _ = (o - u * 2 + f) * 0.03, g = ((h - l) * 3 - r + a) * 6e-3, v = ((u - f) * 3 - o + c) * 6e-3, S = m * 2 + g, w = _ * 2 + v, x = (h - r) * 0.3 + m + g * 0.16666667, b = (u - o) * 0.3 + _ + v * 0.16666667, C = r + x, F = o + b, T = p + 18; p < T; p += 2)
5832
+ d[p] = C, d[p + 1] = F, x += S, b += w, S += g, w += v, C += x, F += b;
5833
5833
  }, e.prototype.getBezierValue = function(t, i, n, r) {
5834
5834
  var o = this.curves;
5835
5835
  if (o[r] > t) {
@@ -6553,7 +6553,7 @@ var Hr = [
6553
6553
  ];
6554
6554
  switch (v) {
6555
6555
  case 0:
6556
- var x = f[g];
6556
+ var S = f[g];
6557
6557
  d = f[
6558
6558
  g + 1
6559
6559
  /*R*/
@@ -6567,10 +6567,10 @@ var Hr = [
6567
6567
  g + 4
6568
6568
  /*A*/
6569
6569
  ];
6570
- var w = (n - x) / (f[
6570
+ var w = (n - S) / (f[
6571
6571
  g + 5
6572
6572
  /*ENTRIES*/
6573
- ] - x);
6573
+ ] - S);
6574
6574
  d += (f[
6575
6575
  g + 5 + 1
6576
6576
  /*R*/
@@ -6688,20 +6688,20 @@ var Hr = [
6688
6688
  _ + 3
6689
6689
  /*B*/
6690
6690
  ];
6691
- var x = (n - v) / (f[
6691
+ var S = (n - v) / (f[
6692
6692
  _ + 4
6693
6693
  /*ENTRIES*/
6694
6694
  ] - v);
6695
6695
  d += (f[
6696
6696
  _ + 4 + 1
6697
6697
  /*R*/
6698
- ] - d) * x, p += (f[
6698
+ ] - d) * S, p += (f[
6699
6699
  _ + 4 + 2
6700
6700
  /*G*/
6701
- ] - p) * x, m += (f[
6701
+ ] - p) * S, m += (f[
6702
6702
  _ + 4 + 3
6703
6703
  /*B*/
6704
- ] - m) * x;
6704
+ ] - m) * S;
6705
6705
  break;
6706
6706
  case 1:
6707
6707
  d = f[
@@ -6828,7 +6828,7 @@ var Hr = [
6828
6828
  }
6829
6829
  return;
6830
6830
  }
6831
- var m = 0, _ = 0, g = 0, v = 0, x = 0, w = 0, S = 0, b = Ot.search(
6831
+ var m = 0, _ = 0, g = 0, v = 0, S = 0, w = 0, x = 0, b = Ot.search(
6832
6832
  f,
6833
6833
  n,
6834
6834
  8
@@ -6849,13 +6849,13 @@ var Hr = [
6849
6849
  ], v = f[
6850
6850
  b + 4
6851
6851
  /*A*/
6852
- ], x = f[
6852
+ ], S = f[
6853
6853
  b + 5
6854
6854
  /*R2*/
6855
6855
  ], w = f[
6856
6856
  b + 6
6857
6857
  /*G2*/
6858
- ], S = f[
6858
+ ], x = f[
6859
6859
  b + 7
6860
6860
  /*B2*/
6861
6861
  ];
@@ -6875,16 +6875,16 @@ var Hr = [
6875
6875
  ] - g) * T, v += (f[
6876
6876
  b + 8 + 4
6877
6877
  /*A*/
6878
- ] - v) * T, x += (f[
6878
+ ] - v) * T, S += (f[
6879
6879
  b + 8 + 5
6880
6880
  /*R2*/
6881
- ] - x) * T, w += (f[
6881
+ ] - S) * T, w += (f[
6882
6882
  b + 8 + 6
6883
6883
  /*G2*/
6884
- ] - w) * T, S += (f[
6884
+ ] - w) * T, x += (f[
6885
6885
  b + 8 + 7
6886
6886
  /*B2*/
6887
- ] - S) * T;
6887
+ ] - x) * T;
6888
6888
  break;
6889
6889
  case 1:
6890
6890
  m = f[
@@ -6899,13 +6899,13 @@ var Hr = [
6899
6899
  ], v = f[
6900
6900
  b + 4
6901
6901
  /*A*/
6902
- ], x = f[
6902
+ ], S = f[
6903
6903
  b + 5
6904
6904
  /*R2*/
6905
6905
  ], w = f[
6906
6906
  b + 6
6907
6907
  /*G2*/
6908
- ], S = f[
6908
+ ], x = f[
6909
6909
  b + 7
6910
6910
  /*B2*/
6911
6911
  ];
@@ -6935,7 +6935,7 @@ var Hr = [
6935
6935
  4,
6936
6936
  C + 18 * 3 - 2
6937
6937
  /*BEZIER*/
6938
- ), x = this.getBezierValue(
6938
+ ), S = this.getBezierValue(
6939
6939
  n,
6940
6940
  b,
6941
6941
  5,
@@ -6947,7 +6947,7 @@ var Hr = [
6947
6947
  6,
6948
6948
  C + 18 * 5 - 2
6949
6949
  /*BEZIER*/
6950
- ), S = this.getBezierValue(
6950
+ ), x = this.getBezierValue(
6951
6951
  n,
6952
6952
  b,
6953
6953
  7,
@@ -6956,14 +6956,14 @@ var Hr = [
6956
6956
  );
6957
6957
  }
6958
6958
  if (o == 1)
6959
- a.set(m, _, g, v), c.r = x, c.g = w, c.b = S;
6959
+ a.set(m, _, g, v), c.r = S, c.g = w, c.b = x;
6960
6960
  else {
6961
6961
  if (h == M.setup) {
6962
6962
  a.setFromColor(l.data.color);
6963
6963
  var p = l.data.darkColor;
6964
6964
  c.r = p.r, c.g = p.g, c.b = p.b;
6965
6965
  }
6966
- a.add((m - a.r) * o, (_ - a.g) * o, (g - a.b) * o, (v - a.a) * o), c.r += (x - c.r) * o, c.g += (w - c.g) * o, c.b += (S - c.b) * o;
6966
+ a.add((m - a.r) * o, (_ - a.g) * o, (g - a.b) * o, (v - a.a) * o), c.r += (S - c.r) * o, c.g += (w - c.g) * o, c.b += (x - c.b) * o;
6967
6967
  }
6968
6968
  }
6969
6969
  }, e;
@@ -7016,129 +7016,129 @@ var Hr = [
7016
7016
  }
7017
7017
  return;
7018
7018
  }
7019
- var m = 0, _ = 0, g = 0, v = 0, x = 0, w = 0, S = Ot.search(
7019
+ var m = 0, _ = 0, g = 0, v = 0, S = 0, w = 0, x = Ot.search(
7020
7020
  f,
7021
7021
  n,
7022
7022
  7
7023
7023
  /*ENTRIES*/
7024
7024
  ), b = this.curves[
7025
- S / 7
7025
+ x / 7
7026
7026
  /*ENTRIES*/
7027
7027
  ];
7028
7028
  switch (b) {
7029
7029
  case 0:
7030
- var C = f[S];
7030
+ var C = f[x];
7031
7031
  m = f[
7032
- S + 1
7032
+ x + 1
7033
7033
  /*R*/
7034
7034
  ], _ = f[
7035
- S + 2
7035
+ x + 2
7036
7036
  /*G*/
7037
7037
  ], g = f[
7038
- S + 3
7038
+ x + 3
7039
7039
  /*B*/
7040
7040
  ], v = f[
7041
- S + 4
7041
+ x + 4
7042
7042
  /*R2*/
7043
- ], x = f[
7044
- S + 5
7043
+ ], S = f[
7044
+ x + 5
7045
7045
  /*G2*/
7046
7046
  ], w = f[
7047
- S + 6
7047
+ x + 6
7048
7048
  /*B2*/
7049
7049
  ];
7050
7050
  var F = (n - C) / (f[
7051
- S + 7
7051
+ x + 7
7052
7052
  /*ENTRIES*/
7053
7053
  ] - C);
7054
7054
  m += (f[
7055
- S + 7 + 1
7055
+ x + 7 + 1
7056
7056
  /*R*/
7057
7057
  ] - m) * F, _ += (f[
7058
- S + 7 + 2
7058
+ x + 7 + 2
7059
7059
  /*G*/
7060
7060
  ] - _) * F, g += (f[
7061
- S + 7 + 3
7061
+ x + 7 + 3
7062
7062
  /*B*/
7063
7063
  ] - g) * F, v += (f[
7064
- S + 7 + 4
7064
+ x + 7 + 4
7065
7065
  /*R2*/
7066
- ] - v) * F, x += (f[
7067
- S + 7 + 5
7066
+ ] - v) * F, S += (f[
7067
+ x + 7 + 5
7068
7068
  /*G2*/
7069
- ] - x) * F, w += (f[
7070
- S + 7 + 6
7069
+ ] - S) * F, w += (f[
7070
+ x + 7 + 6
7071
7071
  /*B2*/
7072
7072
  ] - w) * F;
7073
7073
  break;
7074
7074
  case 1:
7075
7075
  m = f[
7076
- S + 1
7076
+ x + 1
7077
7077
  /*R*/
7078
7078
  ], _ = f[
7079
- S + 2
7079
+ x + 2
7080
7080
  /*G*/
7081
7081
  ], g = f[
7082
- S + 3
7082
+ x + 3
7083
7083
  /*B*/
7084
7084
  ], v = f[
7085
- S + 4
7085
+ x + 4
7086
7086
  /*R2*/
7087
- ], x = f[
7088
- S + 5
7087
+ ], S = f[
7088
+ x + 5
7089
7089
  /*G2*/
7090
7090
  ], w = f[
7091
- S + 6
7091
+ x + 6
7092
7092
  /*B2*/
7093
7093
  ];
7094
7094
  break;
7095
7095
  default:
7096
7096
  m = this.getBezierValue(
7097
7097
  n,
7098
- S,
7098
+ x,
7099
7099
  1,
7100
7100
  b - 2
7101
7101
  /*BEZIER*/
7102
7102
  ), _ = this.getBezierValue(
7103
7103
  n,
7104
- S,
7104
+ x,
7105
7105
  2,
7106
7106
  b + 18 - 2
7107
7107
  /*BEZIER*/
7108
7108
  ), g = this.getBezierValue(
7109
7109
  n,
7110
- S,
7110
+ x,
7111
7111
  3,
7112
7112
  b + 18 * 2 - 2
7113
7113
  /*BEZIER*/
7114
7114
  ), v = this.getBezierValue(
7115
7115
  n,
7116
- S,
7116
+ x,
7117
7117
  4,
7118
7118
  b + 18 * 3 - 2
7119
7119
  /*BEZIER*/
7120
- ), x = this.getBezierValue(
7120
+ ), S = this.getBezierValue(
7121
7121
  n,
7122
- S,
7122
+ x,
7123
7123
  5,
7124
7124
  b + 18 * 4 - 2
7125
7125
  /*BEZIER*/
7126
7126
  ), w = this.getBezierValue(
7127
7127
  n,
7128
- S,
7128
+ x,
7129
7129
  6,
7130
7130
  b + 18 * 5 - 2
7131
7131
  /*BEZIER*/
7132
7132
  );
7133
7133
  }
7134
7134
  if (o == 1)
7135
- a.r = m, a.g = _, a.b = g, c.r = v, c.g = x, c.b = w;
7135
+ a.r = m, a.g = _, a.b = g, c.r = v, c.g = S, c.b = w;
7136
7136
  else {
7137
7137
  if (h == M.setup) {
7138
7138
  var d = l.data.color, p = l.data.darkColor;
7139
7139
  a.r = d.r, a.g = d.g, a.b = d.b, c.r = p.r, c.g = p.g, c.b = p.b;
7140
7140
  }
7141
- a.r += (m - a.r) * o, a.g += (_ - a.g) * o, a.b += (g - a.b) * o, c.r += (v - c.r) * o, c.g += (x - c.g) * o, c.b += (w - c.b) * o;
7141
+ a.r += (m - a.r) * o, a.g += (_ - a.g) * o, a.b += (g - a.b) * o, c.r += (v - c.r) * o, c.g += (S - c.g) * o, c.b += (w - c.b) * o;
7142
7142
  }
7143
7143
  }
7144
7144
  }, e;
@@ -7191,8 +7191,8 @@ var Hr = [
7191
7191
  }, e.prototype.setBezier = function(t, i, n, r, o, h, u, l, f, a, c) {
7192
7192
  var d = this.curves, p = this.getFrameCount() + t * 18;
7193
7193
  n == 0 && (d[i] = 2 + p);
7194
- for (var m = (r - h * 2 + l) * 0.03, _ = f * 0.03 - u * 0.06, g = ((h - l) * 3 - r + a) * 6e-3, v = (u - f + 0.33333333) * 0.018, x = m * 2 + g, w = _ * 2 + v, S = (h - r) * 0.3 + m + g * 0.16666667, b = u * 0.3 + _ + v * 0.16666667, C = r + S, F = b, T = p + 18; p < T; p += 2)
7195
- d[p] = C, d[p + 1] = F, S += x, b += w, x += g, w += v, C += S, F += b;
7194
+ for (var m = (r - h * 2 + l) * 0.03, _ = f * 0.03 - u * 0.06, g = ((h - l) * 3 - r + a) * 6e-3, v = (u - f + 0.33333333) * 0.018, S = m * 2 + g, w = _ * 2 + v, x = (h - r) * 0.3 + m + g * 0.16666667, b = u * 0.3 + _ + v * 0.16666667, C = r + x, F = b, T = p + 18; p < T; p += 2)
7195
+ d[p] = C, d[p + 1] = F, x += S, b += w, S += g, w += v, C += x, F += b;
7196
7196
  }, e.prototype.getCurvePercent = function(t, i) {
7197
7197
  var n = this.curves, r = n[i];
7198
7198
  switch (r) {
@@ -7253,19 +7253,19 @@ var Hr = [
7253
7253
  for (var w = 0; w < d; w++)
7254
7254
  a[w] += v[w];
7255
7255
  else
7256
- for (var _ = m.vertices, x = 0; x < d; x++)
7257
- a[x] += v[x] - _[x];
7256
+ for (var _ = m.vertices, S = 0; S < d; S++)
7257
+ a[S] += v[S] - _[S];
7258
7258
  } else
7259
7259
  Z.arrayCopy(v, 0, a, 0, d);
7260
7260
  else
7261
7261
  switch (h) {
7262
7262
  case M.setup: {
7263
- var S = f;
7264
- if (S.bones)
7263
+ var x = f;
7264
+ if (x.bones)
7265
7265
  for (var F = 0; F < d; F++)
7266
7266
  a[F] = v[F] * o;
7267
7267
  else
7268
- for (var _ = S.vertices, b = 0; b < d; b++) {
7268
+ for (var _ = x.vertices, b = 0; b < d; b++) {
7269
7269
  var C = _[b];
7270
7270
  a[b] = C + (v[b] - C) * o;
7271
7271
  }
@@ -7279,8 +7279,8 @@ var Hr = [
7279
7279
  case M.add:
7280
7280
  var m = f;
7281
7281
  if (m.bones)
7282
- for (var L = 0; L < d; L++)
7283
- a[L] += v[L] * o;
7282
+ for (var B = 0; B < d; B++)
7283
+ a[B] += v[B] * o;
7284
7284
  else
7285
7285
  for (var _ = m.vertices, E = 0; E < d; E++)
7286
7286
  a[E] += (v[E] - _[E]) * o;
@@ -7582,11 +7582,11 @@ var Hr = [
7582
7582
  n,
7583
7583
  7
7584
7584
  /*ENTRIES*/
7585
- ), x = this.curves[
7585
+ ), S = this.curves[
7586
7586
  v / 7
7587
7587
  /*ENTRIES*/
7588
7588
  ];
7589
- switch (x) {
7589
+ switch (S) {
7590
7590
  case 0:
7591
7591
  var w = f[v];
7592
7592
  c = f[
@@ -7608,29 +7608,29 @@ var Hr = [
7608
7608
  v + 6
7609
7609
  /*SHEARY*/
7610
7610
  ];
7611
- var S = (n - w) / (f[
7611
+ var x = (n - w) / (f[
7612
7612
  v + 7
7613
7613
  /*ENTRIES*/
7614
7614
  ] - w);
7615
7615
  c += (f[
7616
7616
  v + 7 + 1
7617
7617
  /*ROTATE*/
7618
- ] - c) * S, d += (f[
7618
+ ] - c) * x, d += (f[
7619
7619
  v + 7 + 2
7620
7620
  /*X*/
7621
- ] - d) * S, p += (f[
7621
+ ] - d) * x, p += (f[
7622
7622
  v + 7 + 3
7623
7623
  /*Y*/
7624
- ] - p) * S, m += (f[
7624
+ ] - p) * x, m += (f[
7625
7625
  v + 7 + 4
7626
7626
  /*SCALEX*/
7627
- ] - m) * S, _ += (f[
7627
+ ] - m) * x, _ += (f[
7628
7628
  v + 7 + 5
7629
7629
  /*SCALEY*/
7630
- ] - _) * S, g += (f[
7630
+ ] - _) * x, g += (f[
7631
7631
  v + 7 + 6
7632
7632
  /*SHEARY*/
7633
- ] - g) * S;
7633
+ ] - g) * x;
7634
7634
  break;
7635
7635
  case 1:
7636
7636
  c = f[
@@ -7658,37 +7658,37 @@ var Hr = [
7658
7658
  n,
7659
7659
  v,
7660
7660
  1,
7661
- x - 2
7661
+ S - 2
7662
7662
  /*BEZIER*/
7663
7663
  ), d = this.getBezierValue(
7664
7664
  n,
7665
7665
  v,
7666
7666
  2,
7667
- x + 18 - 2
7667
+ S + 18 - 2
7668
7668
  /*BEZIER*/
7669
7669
  ), p = this.getBezierValue(
7670
7670
  n,
7671
7671
  v,
7672
7672
  3,
7673
- x + 18 * 2 - 2
7673
+ S + 18 * 2 - 2
7674
7674
  /*BEZIER*/
7675
7675
  ), m = this.getBezierValue(
7676
7676
  n,
7677
7677
  v,
7678
7678
  4,
7679
- x + 18 * 3 - 2
7679
+ S + 18 * 3 - 2
7680
7680
  /*BEZIER*/
7681
7681
  ), _ = this.getBezierValue(
7682
7682
  n,
7683
7683
  v,
7684
7684
  5,
7685
- x + 18 * 4 - 2
7685
+ S + 18 * 4 - 2
7686
7686
  /*BEZIER*/
7687
7687
  ), g = this.getBezierValue(
7688
7688
  n,
7689
7689
  v,
7690
7690
  6,
7691
- x + 18 * 5 - 2
7691
+ S + 18 * 5 - 2
7692
7692
  /*BEZIER*/
7693
7693
  );
7694
7694
  }
@@ -7898,9 +7898,9 @@ var Hr = [
7898
7898
  }
7899
7899
  var d = Ot.search(c, n, e.ENTRIES), p = c[d], m = c[d + e.MODE], _ = c[d + e.DELAY];
7900
7900
  if (this.attachment.sequence) {
7901
- var g = m >> 4, v = this.attachment.sequence.regions.length, x = Hr[m & 15];
7902
- if (x != qt.hold)
7903
- switch (g += (n - p) / _ + 1e-5 | 0, x) {
7901
+ var g = m >> 4, v = this.attachment.sequence.regions.length, S = Hr[m & 15];
7902
+ if (S != qt.hold)
7903
+ switch (g += (n - p) / _ + 1e-5 | 0, S) {
7904
7904
  case qt.once:
7905
7905
  g = Math.min(v - 1, g);
7906
7906
  break;
@@ -7998,21 +7998,21 @@ var Hr = [
7998
7998
  g instanceof Si ? this.applyAttachmentTimeline(g, e, c, u, !0) : g.apply(e, f, c, d, l, u, te.mixIn);
7999
7999
  }
8000
8000
  else {
8001
- var v = h.timelineMode, x = h.shortestRotation, w = !x && h.timelinesRotation.length != m << 1;
8001
+ var v = h.timelineMode, S = h.shortestRotation, w = !S && h.timelinesRotation.length != m << 1;
8002
8002
  w && (h.timelinesRotation.length = m << 1);
8003
8003
  for (var _ = 0; _ < m; _++) {
8004
- var S = p[_], b = v[_] == kn ? u : M.setup;
8005
- !x && S instanceof ln ? this.applyRotateTimeline(S, e, c, l, b, h.timelinesRotation, _ << 1, w) : S instanceof Si ? this.applyAttachmentTimeline(S, e, c, u, !0) : (Z.webkit602BugfixHelper(l, u), S.apply(e, f, c, d, l, b, te.mixIn));
8004
+ var x = p[_], b = v[_] == kn ? u : M.setup;
8005
+ !S && x instanceof ln ? this.applyRotateTimeline(x, e, c, l, b, h.timelinesRotation, _ << 1, w) : x instanceof Si ? this.applyAttachmentTimeline(x, e, c, u, !0) : (Z.webkit602BugfixHelper(l, u), x.apply(e, f, c, d, l, b, te.mixIn));
8006
8006
  }
8007
8007
  }
8008
8008
  this.queueEvents(h, a), t.length = 0, h.nextAnimationLast = a, h.nextTrackLast = h.trackTime;
8009
8009
  }
8010
8010
  }
8011
8011
  for (var C = this.unkeyedState + Js, F = e.slots, T = 0, E = e.slots.length; T < E; T++) {
8012
- var L = F[T];
8013
- if (L.attachmentState == C) {
8014
- var D = L.data.attachmentName;
8015
- L.setAttachment(D ? e.getAttachment(L.data.index, D) : null);
8012
+ var B = F[T];
8013
+ if (B.attachmentState == C) {
8014
+ var D = B.data.attachmentName;
8015
+ B.setAttachment(D ? e.getAttachment(B.data.index, D) : null);
8016
8016
  }
8017
8017
  }
8018
8018
  return this.unkeyedState += 2, this.queue.drain(), n;
@@ -8026,13 +8026,13 @@ var Hr = [
8026
8026
  for (var _ = 0; _ < l; _++)
8027
8027
  u[_].apply(t, c, p, m, a, i, te.mixOut);
8028
8028
  else {
8029
- var g = n.timelineMode, v = n.timelineHoldMix, x = n.shortestRotation, w = !x && n.timelinesRotation.length != l << 1;
8029
+ var g = n.timelineMode, v = n.timelineHoldMix, S = n.shortestRotation, w = !S && n.timelinesRotation.length != l << 1;
8030
8030
  w && (n.timelinesRotation.length = l << 1), n.totalAlpha = 0;
8031
8031
  for (var _ = 0; _ < l; _++) {
8032
- var S = u[_], b = te.mixOut, C = void 0, F = 0;
8032
+ var x = u[_], b = te.mixOut, C = void 0, F = 0;
8033
8033
  switch (g[_]) {
8034
8034
  case kn:
8035
- if (!h && S instanceof $i)
8035
+ if (!h && x instanceof $i)
8036
8036
  continue;
8037
8037
  C = i, F = a;
8038
8038
  break;
@@ -8051,7 +8051,7 @@ var Hr = [
8051
8051
  F = f * Math.max(0, 1 - T.mixTime / T.mixDuration);
8052
8052
  break;
8053
8053
  }
8054
- n.totalAlpha += F, !x && S instanceof ln ? this.applyRotateTimeline(S, t, p, F, C, n.timelinesRotation, _ << 1, w) : S instanceof Si ? this.applyAttachmentTimeline(S, t, p, C, o) : (Z.webkit602BugfixHelper(F, i), h && S instanceof $i && C == M.setup && (b = te.mixIn), S.apply(t, c, p, m, F, C, b));
8054
+ n.totalAlpha += F, !S && x instanceof ln ? this.applyRotateTimeline(x, t, p, F, C, n.timelinesRotation, _ << 1, w) : x instanceof Si ? this.applyAttachmentTimeline(x, t, p, C, o) : (Z.webkit602BugfixHelper(F, i), h && x instanceof $i && C == M.setup && (b = te.mixIn), x.apply(t, c, p, m, F, C, b));
8055
8055
  }
8056
8056
  }
8057
8057
  return e.mixDuration > 0 && this.queueEvents(n, d), this.events.length = 0, n.nextAnimationLast = d, n.nextTrackLast = n.trackTime, r;
@@ -8487,8 +8487,8 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
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
8489
  case re.Normal: {
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
- l.a = p * v + m * w, l.c = p * x + m * S, l.b = _ * v + g * w, l.d = _ * x + g * S;
8490
+ var d = i + 90 + h, v = H.cosDeg(i + o) * n, S = H.cosDeg(d) * r, w = H.sinDeg(i + o) * n, x = H.sinDeg(d) * r;
8491
+ l.a = p * v + m * w, l.c = p * S + m * x, l.b = _ * v + g * w, l.d = _ * S + g * x;
8492
8492
  return;
8493
8493
  }
8494
8494
  case re.OnlyTranslation: {
@@ -8499,16 +8499,16 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8499
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
- 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
- l.a = p * v - m * w, l.c = p * x - m * S, l.b = _ * v + g * w, l.d = _ * x + g * S;
8502
+ var F = i + o - C, T = i + h - C + 90, v = H.cosDeg(F) * n, S = H.cosDeg(T) * r, w = H.sinDeg(F) * n, x = H.sinDeg(T) * r;
8503
+ l.a = p * v - m * w, l.c = p * S - m * x, l.b = _ * v + g * w, l.d = _ * S + g * x;
8504
8504
  break;
8505
8505
  }
8506
8506
  case re.NoScale:
8507
8507
  case re.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);
8508
+ var E = H.cosDeg(i), B = H.sinDeg(i), D = (p * E + m * B) / f, N = (_ * E + g * B) / a, b = Math.sqrt(D * D + N * N);
8509
8509
  b > 1e-5 && (b = 1 / b), D *= b, N *= b, b = Math.sqrt(D * D + N * N), this.data.transformMode == re.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;
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, S = H.cosDeg(90 + h) * r, w = H.sinDeg(o) * n, x = H.sinDeg(90 + h) * r;
8511
+ l.a = D * v + z * w, l.c = D * S + z * x, l.b = N * v + q * w, l.d = N * S + q * x;
8512
8512
  break;
8513
8513
  }
8514
8514
  }
@@ -8640,12 +8640,12 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8640
8640
  p = t - e.worldX, m = i - e.worldY, m = -m;
8641
8641
  break;
8642
8642
  case re.NoRotationOrReflection:
8643
- var v = Math.abs(l * c - f * a) / (l * l + a * a), x = l / _, w = a / g;
8644
- f = -w * v * _, c = x * v * g, d += Math.atan2(w, x) * H.radDeg;
8643
+ var v = Math.abs(l * c - f * a) / (l * l + a * a), S = l / _, w = a / g;
8644
+ f = -w * v * _, c = S * v * g, d += Math.atan2(w, S) * H.radDeg;
8645
8645
  // Fall through
8646
8646
  default:
8647
- var S = t - u.tx, b = i - u.ty, C = l * c - f * a;
8648
- p = (S * c - b * f) / C - e.ax, m = (b * l - S * a) / C - e.ay;
8647
+ var x = t - u.tx, b = i - u.ty, C = l * c - f * a;
8648
+ p = (x * c - b * f) / C - e.ax, m = (b * l - x * a) / C - e.ay;
8649
8649
  }
8650
8650
  d += Math.atan2(m, p) * H.radDeg, e.ascaleX < 0 && (d += 180), d > 180 ? d -= 360 : d < -180 && (d += 360);
8651
8651
  var F = e.ascaleX, T = e.ascaleY;
@@ -8655,29 +8655,29 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8655
8655
  case re.NoScaleOrReflection:
8656
8656
  p = t - e.worldX, m = i - e.worldY;
8657
8657
  }
8658
- var E = e.data.length * F, L = Math.sqrt(p * p + m * m);
8659
- if (n && L < E || r && L > E && E > 1e-4) {
8660
- var v = (L / E - 1) * h + 1;
8658
+ var E = e.data.length * F, B = Math.sqrt(p * p + m * m);
8659
+ if (n && B < E || r && B > E && E > 1e-4) {
8660
+ var v = (B / E - 1) * h + 1;
8661
8661
  F *= v, o && (T *= v);
8662
8662
  }
8663
8663
  }
8664
8664
  e.updateWorldTransformWith(e.ax, e.ay, e.arotation + d * h, F, T, e.ashearX, e.ashearY);
8665
8665
  }, s.prototype.apply2 = function(e, t, i, n, r, o, h, u, l) {
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
- 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);
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, S = 0, w = 0;
8667
+ c < 0 ? (c = -c, v = 180, w = -1) : (v = 0, w = 1), d < 0 && (d = -d, w = -w), _ < 0 ? (_ = -_, S = 180) : S = 0;
8668
+ var x = t.ax, b = 0, C = 0, F = 0, T = g.a, E = g.c, B = g.b, D = g.d, N = Math.abs(c - d) <= 1e-4;
8669
+ !N || o ? (b = 0, C = T * x + g.tx, F = B * x + g.ty) : (b = t.ay, C = T * x + E * b + g.tx, F = B * x + 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
- 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, $;
8673
+ T = Y.a, E = Y.c, B = Y.b, D = Y.d;
8674
+ var z = 1 / (T * D - E * B), q = C - Y.tx, j = F - Y.ty, I = (q * D - j * E) * z - f, R = (j * T - q * B) * z - a, X = Math.sqrt(I * I + R * R), W = t.data.length * _, V, $;
8675
8675
  if (X < 1e-4) {
8676
- this.apply1(e, i, n, !1, o, !1, l), t.updateWorldTransformWith(S, b, 0, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
8676
+ this.apply1(e, i, n, !1, o, !1, l), t.updateWorldTransformWith(x, b, 0, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
8677
8677
  return;
8678
8678
  }
8679
8679
  q = i - Y.tx, j = n - Y.ty;
8680
- var U = (q * D - j * E) * z - f, J = (j * T - q * L) * z - a, rt = U * U + J * J;
8680
+ var U = (q * D - j * E) * z - f, J = (j * T - q * B) * z - a, rt = U * U + J * J;
8681
8681
  if (u != 0) {
8682
8682
  u *= c * (_ + 1) * 0.5;
8683
8683
  var nt = Math.sqrt(rt), st = nt - X - W * c + u;
@@ -8692,23 +8692,23 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8692
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);
8693
8693
  } else {
8694
8694
  T = c * W, E = d * W;
8695
- var gt = T * T, Lt = E * E, ae = Math.atan2(J, U);
8696
- L = Lt * X * X + gt * rt - gt * Lt;
8697
- var Bt = -2 * Lt * X, xe = Lt - gt;
8698
- if (D = Bt * Bt - 4 * xe * L, D >= 0) {
8695
+ var gt = T * T, Bt = E * E, ae = Math.atan2(J, U);
8696
+ B = Bt * X * X + gt * rt - gt * Bt;
8697
+ var Lt = -2 * Bt * X, xe = Bt - gt;
8698
+ if (D = Lt * Lt - 4 * xe * B, D >= 0) {
8699
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;
8700
+ Lt < 0 && (ie = -ie), ie = -(Lt + ie) * 0.5;
8701
+ var Ue = ie / xe, Ee = B / 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;
8705
8705
  }
8706
8706
  }
8707
8707
  var Ie = H.PI, ge = X - T, Se = ge * ge, Ae = 0, Ce = 0, le = X + T, zt = le * le, ke = 0;
8708
- L = -T * X / (gt - Lt), L >= -1 && L <= 1 && (L = Math.acos(L), q = T * Math.cos(L) + X, j = E * Math.sin(L), D = q * q + j * j, D < Se && (Ie = L, Se = D, ge = q, Ae = j), D > zt && (Ce = L, zt = D, le = q, ke = j)), rt <= (Se + zt) * 0.5 ? (V = ae - Math.atan2(Ae * r, ge), $ = Ie * r) : (V = ae - Math.atan2(ke * r, le), $ = Ce * r);
8708
+ B = -T * X / (gt - Bt), B >= -1 && B <= 1 && (B = Math.acos(B), q = T * Math.cos(B) + X, j = E * Math.sin(B), D = q * q + j * j, D < Se && (Ie = B, Se = D, ge = q, Ae = j), D > zt && (Ce = B, zt = D, le = q, ke = j)), rt <= (Se + zt) * 0.5 ? (V = ae - Math.atan2(Ae * r, ge), $ = Ie * r) : (V = ae - Math.atan2(ke * r, le), $ = Ce * r);
8709
8709
  }
8710
- var Gt = Math.atan2(b, S) * w, $t = e.arotation;
8711
- V = (V - Gt) * H.radDeg + v - $t, V > 180 ? V -= 360 : V < -180 && (V += 360), e.updateWorldTransformWith(f, a, $t + V * l, p, m, 0, 0), $t = t.arotation, $ = (($ + Gt) * H.radDeg - t.ashearX) * w + x - $t, $ > 180 ? $ -= 360 : $ < -180 && ($ += 360), t.updateWorldTransformWith(S, b, $t + $ * l, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
8710
+ var Gt = Math.atan2(b, x) * w, $t = e.arotation;
8711
+ V = (V - Gt) * H.radDeg + v - $t, V > 180 ? V -= 360 : V < -180 && (V += 360), e.updateWorldTransformWith(f, a, $t + V * l, p, m, 0, 0), $t = t.arotation, $ = (($ + Gt) * H.radDeg - t.ashearX) * w + S - $t, $ > 180 ? $ -= 360 : $ < -180 && ($ += 360), t.updateWorldTransformWith(x, b, $t + $ * l, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
8712
8712
  }, s;
8713
8713
  }()
8714
8714
  ), ma = (
@@ -8793,8 +8793,8 @@ var Tl = (
8793
8793
  if (g < s.epsilon)
8794
8794
  c[p] = 0;
8795
8795
  else {
8796
- var v = g * _.matrix.a, x = g * _.matrix.b;
8797
- c[p] = Math.sqrt(v * v + x * x);
8796
+ var v = g * _.matrix.a, S = g * _.matrix.b;
8797
+ c[p] = Math.sqrt(v * v + S * S);
8798
8798
  }
8799
8799
  }
8800
8800
  Z.arrayFill(a, 1, f, d);
@@ -8805,8 +8805,8 @@ var Tl = (
8805
8805
  if (g < s.epsilon)
8806
8806
  h && (c[p] = 0), a[++p] = d;
8807
8807
  else {
8808
- var v = g * _.matrix.a, x = g * _.matrix.b, S = Math.sqrt(v * v + x * x);
8809
- h && (c[p] = S), a[++p] = S, w += S;
8808
+ var v = g * _.matrix.a, S = g * _.matrix.b, x = Math.sqrt(v * v + S * S);
8809
+ h && (c[p] = x), a[++p] = x, w += x;
8810
8810
  }
8811
8811
  }
8812
8812
  if (w > 0) {
@@ -8821,23 +8821,23 @@ var Tl = (
8821
8821
  if (g < s.epsilon)
8822
8822
  h && (c[p] = 0), a[++p] = d;
8823
8823
  else {
8824
- var v = g * _.matrix.a, x = g * _.matrix.b, C = Math.sqrt(v * v + x * x);
8824
+ var v = g * _.matrix.a, S = g * _.matrix.b, C = Math.sqrt(v * v + S * S);
8825
8825
  h && (c[p] = C), a[++p] = (b ? g + d : d) * C / g;
8826
8826
  }
8827
8827
  }
8828
8828
  }
8829
- var F = this.computeWorldPositions(e, f, o), T = F[0], E = F[1], L = r.offsetRotation, D = !1;
8830
- if (L == 0)
8829
+ var F = this.computeWorldPositions(e, f, o), T = F[0], E = F[1], B = r.offsetRotation, D = !1;
8830
+ if (B == 0)
8831
8831
  D = r.rotateMode == mi.Chain;
8832
8832
  else {
8833
8833
  D = !1;
8834
8834
  var N = this.target.bone.matrix;
8835
- L *= N.a * N.d - N.b * N.c > 0 ? H.degRad : -H.degRad;
8835
+ B *= N.a * N.d - N.b * N.c > 0 ? H.degRad : -H.degRad;
8836
8836
  }
8837
8837
  for (var p = 0, N = 3; p < l; p++, N += 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[N], S = F[N + 1], z = v - T, q = S - E;
8841
8841
  if (h) {
8842
8842
  var j = c[p];
8843
8843
  if (j != 0) {
@@ -8845,14 +8845,14 @@ var Tl = (
8845
8845
  Y.a *= I, Y.b *= I;
8846
8846
  }
8847
8847
  }
8848
- if (T = v, E = x, t > 0) {
8848
+ if (T = v, E = S, t > 0) {
8849
8849
  var R = Y.a, X = Y.c, W = Y.b, V = Y.d, $ = 0, U = 0, J = 0;
8850
8850
  if (o ? $ = F[N - 1] : a[p + 1] == 0 ? $ = F[N + 2] : $ = Math.atan2(q, z), $ -= Math.atan2(W, R), D) {
8851
8851
  U = Math.cos($), J = Math.sin($);
8852
8852
  var rt = _.data.length;
8853
8853
  T += (rt * (U * R - J * W) - z) * t, E += (rt * (J * R + U * W) - q) * t;
8854
8854
  } else
8855
- $ += L;
8855
+ $ += B;
8856
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;
8857
8857
  }
8858
8858
  _.updateAppliedTransform();
@@ -8879,8 +8879,8 @@ var Tl = (
8879
8879
  }
8880
8880
  u = Z.setArraySize(this.world, 8);
8881
8881
  for (var _ = 0, g = 0, v = 0; _ < t; _++, g += 3) {
8882
- var x = o[_] * m;
8883
- r += x;
8882
+ var S = o[_] * m;
8883
+ r += S;
8884
8884
  var w = r;
8885
8885
  if (l)
8886
8886
  w %= p, w < 0 && (w += p), v = 0;
@@ -8892,24 +8892,24 @@ var Tl = (
8892
8892
  continue;
8893
8893
  }
8894
8894
  for (; ; v++) {
8895
- var S = d[v];
8896
- if (!(w > S)) {
8895
+ var x = d[v];
8896
+ if (!(w > x)) {
8897
8897
  if (v == 0)
8898
- w /= S;
8898
+ w /= x;
8899
8899
  else {
8900
8900
  var b = d[v - 1];
8901
- w = (w - b) / (S - b);
8901
+ w = (w - b) / (x - b);
8902
8902
  }
8903
8903
  break;
8904
8904
  }
8905
8905
  }
8906
- v != c && (c = v, l && v == a ? (e.computeWorldVertices(n, f - 4, 4, u, 0, 2), e.computeWorldVertices(n, 0, 4, u, 4, 2)) : e.computeWorldVertices(n, v * 6 + 2, 8, u, 0, 2)), this.addCurvePosition(w, u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], h, g, i || _ > 0 && x == 0);
8906
+ v != c && (c = v, l && v == a ? (e.computeWorldVertices(n, f - 4, 4, u, 0, 2), e.computeWorldVertices(n, 0, 4, u, 4, 2)) : e.computeWorldVertices(n, v * 6 + 2, 8, u, 0, 2)), this.addCurvePosition(w, u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], h, g, i || _ > 0 && S == 0);
8907
8907
  }
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;
8911
+ for (var C = Z.setArraySize(this.curves, a), F = 0, T = u[0], E = u[1], B = 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
+ B = u[J], D = u[J + 1], N = u[J + 2], Y = u[J + 3], z = u[J + 4], q = u[J + 5], j = (T - B * 2 + N) * 0.1875, I = (E - D * 2 + Y) * 0.1875, R = ((B - N) * 3 - T + z) * 0.09375, X = ((D - Y) * 3 - E + q) * 0.09375, W = j * 2 + R, V = I * 2 + X, $ = (B - 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
8913
  this.data.positionMode == Ne.Percent && (r *= F);
8914
8914
  var rt;
8915
8915
  switch (this.data.spacingMode) {
@@ -8923,8 +8923,8 @@ var Tl = (
8923
8923
  rt = 1;
8924
8924
  }
8925
8925
  for (var nt = this.segments, st = 0, _ = 0, g = 0, v = 0, ft = 0; _ < t; _++, g += 3) {
8926
- var x = o[_] * rt;
8927
- r += x;
8926
+ var S = o[_] * rt;
8927
+ r += S;
8928
8928
  var w = r;
8929
8929
  if (l)
8930
8930
  w %= F, w < 0 && (w += F), v = 0;
@@ -8950,23 +8950,23 @@ 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, st = Math.sqrt($ * $ + U * U), nt[0] = st, gt = 1; gt < 8; gt++)
8953
+ for (T = u[gt], E = u[gt + 1], B = 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 - B * 2 + N) * 0.03, I = (E - D * 2 + Y) * 0.03, R = ((B - N) * 3 - T + z) * 6e-3, X = ((D - Y) * 3 - E + q) * 6e-3, W = j * 2 + R, V = I * 2 + X, $ = (B - T) * 0.3 + j + R * 0.16666667, U = (D - E) * 0.3 + I + X * 0.16666667, st = Math.sqrt($ * $ + U * U), nt[0] = st, gt = 1; gt < 8; gt++)
8954
8954
  $ += W, U += V, W += R, V += X, st += Math.sqrt($ * $ + U * U), nt[gt] = st;
8955
8955
  $ += W, U += V, st += Math.sqrt($ * $ + U * U), nt[8] = st, $ += W + R, U += V + X, st += Math.sqrt($ * $ + U * U), nt[9] = st, ft = 0;
8956
8956
  }
8957
8957
  for (w *= st; ; ft++) {
8958
- var Lt = nt[ft];
8959
- if (!(w > Lt)) {
8958
+ var Bt = nt[ft];
8959
+ if (!(w > Bt)) {
8960
8960
  if (ft == 0)
8961
- w /= Lt;
8961
+ w /= Bt;
8962
8962
  else {
8963
8963
  var b = nt[ft - 1];
8964
- w = ft + (w - b) / (Lt - b);
8964
+ w = ft + (w - b) / (Bt - b);
8965
8965
  }
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, B, D, N, Y, z, q, h, g, i || _ > 0 && S == 0);
8970
8970
  }
8971
8971
  return h;
8972
8972
  }, s.prototype.addBeforePosition = function(e, t, i, n, r) {
@@ -8980,7 +8980,7 @@ var Tl = (
8980
8980
  f[a] = t, f[a + 1] = i, f[a + 2] = Math.atan2(r - i, n - t);
8981
8981
  return;
8982
8982
  }
8983
- var d = e * e, p = d * e, m = 1 - e, _ = m * m, g = _ * m, v = m * e, x = v * 3, w = m * x, S = x * e, b = t * g + n * w + o * S + u * p, C = i * g + r * w + h * S + l * p;
8983
+ var d = e * e, p = d * e, m = 1 - e, _ = m * m, g = _ * m, v = m * e, S = v * 3, w = m * S, x = S * e, b = t * g + n * w + o * x + u * p, C = i * g + r * w + h * x + l * p;
8984
8984
  f[a] = b, f[a + 1] = C, c && (e < 1e-3 ? f[a + 2] = Math.atan2(r - i, n - t) : f[a + 2] = Math.atan2(C - (i * _ + r * v * 2 + h * d), b - (t * _ + n * v * 2 + o * d)));
8985
8985
  }, s.NONE = -1, s.BEFORE = -2, s.AFTER = -3, s.epsilon = 1e-5, s;
8986
8986
  }()
@@ -9029,62 +9029,62 @@ var Tl = (
9029
9029
  }, s.prototype.update = function() {
9030
9030
  this.mixRotate == 0 && this.mixX == 0 && this.mixY == 0 && this.mixScaleX == 0 && this.mixScaleX == 0 && this.mixShearY == 0 || (this.data.local ? this.data.relative ? this.applyRelativeLocal() : this.applyAbsoluteLocal() : this.data.relative ? this.applyRelativeWorld() : this.applyAbsoluteWorld());
9031
9031
  }, s.prototype.applyAbsoluteWorld = function() {
9032
- for (var e = this.mixRotate, t = this.mixX, i = this.mixY, n = this.mixScaleX, r = this.mixScaleY, o = this.mixShearY, h = t != 0 || i != 0, u = this.target, l = u.matrix, f = l.a, a = l.c, c = l.b, d = l.d, p = f * d - a * c > 0 ? H.degRad : -H.degRad, m = this.data.offsetRotation * p, _ = this.data.offsetShearY * p, g = this.bones, v = 0, x = g.length; v < x; v++) {
9033
- var w = g[v], S = w.matrix;
9032
+ for (var e = this.mixRotate, t = this.mixX, i = this.mixY, n = this.mixScaleX, r = this.mixScaleY, o = this.mixShearY, h = t != 0 || i != 0, u = this.target, l = u.matrix, f = l.a, a = l.c, c = l.b, d = l.d, p = f * d - a * c > 0 ? H.degRad : -H.degRad, m = this.data.offsetRotation * p, _ = this.data.offsetShearY * p, g = this.bones, v = 0, S = g.length; v < S; v++) {
9033
+ var w = g[v], x = w.matrix;
9034
9034
  if (e != 0) {
9035
- var b = S.a, C = S.c, F = S.b, T = S.d, E = Math.atan2(c, f) - Math.atan2(F, b) + m;
9035
+ var b = x.a, C = x.c, F = x.b, T = x.d, E = Math.atan2(c, f) - Math.atan2(F, b) + m;
9036
9036
  E > H.PI ? E -= H.PI2 : E < -H.PI && (E += H.PI2), E *= e;
9037
- var L = Math.cos(E), D = Math.sin(E);
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;
9037
+ var B = Math.cos(E), D = Math.sin(E);
9038
+ x.a = B * b - D * F, x.c = B * C - D * T, x.b = D * b + B * F, x.d = D * C + B * T;
9039
9039
  }
9040
9040
  if (h) {
9041
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;
9042
+ u.localToWorld(N.set(this.data.offsetX, this.data.offsetY)), x.tx += (N.x - x.tx) * t, x.ty += (N.y - x.ty) * i;
9043
9043
  }
9044
9044
  if (n != 0) {
9045
- var Y = Math.sqrt(S.a * S.a + S.b * S.b);
9046
- Y != 0 && (Y = (Y + (Math.sqrt(f * f + c * c) - Y + this.data.offsetScaleX) * n) / Y), S.a *= Y, S.b *= Y;
9045
+ var Y = Math.sqrt(x.a * x.a + x.b * x.b);
9046
+ Y != 0 && (Y = (Y + (Math.sqrt(f * f + c * c) - Y + this.data.offsetScaleX) * n) / Y), x.a *= Y, x.b *= Y;
9047
9047
  }
9048
9048
  if (r != 0) {
9049
- var Y = Math.sqrt(S.c * S.c + S.d * S.d);
9050
- Y != 0 && (Y = (Y + (Math.sqrt(a * a + d * d) - Y + this.data.offsetScaleY) * r) / Y), S.c *= Y, S.d *= Y;
9049
+ var Y = Math.sqrt(x.c * x.c + x.d * x.d);
9050
+ Y != 0 && (Y = (Y + (Math.sqrt(a * a + d * d) - Y + this.data.offsetScaleY) * r) / Y), x.c *= Y, x.d *= Y;
9051
9051
  }
9052
9052
  if (o > 0) {
9053
- var C = S.c, T = S.d, z = Math.atan2(T, C), E = Math.atan2(d, a) - Math.atan2(c, f) - (z - Math.atan2(S.b, S.a));
9053
+ var C = x.c, T = x.d, z = Math.atan2(T, C), E = Math.atan2(d, a) - Math.atan2(c, f) - (z - Math.atan2(x.b, x.a));
9054
9054
  E > H.PI ? E -= H.PI2 : E < -H.PI && (E += H.PI2), E = z + (E + _) * o;
9055
9055
  var Y = Math.sqrt(C * C + T * T);
9056
- S.c = Math.cos(E) * Y, S.d = Math.sin(E) * Y;
9056
+ x.c = Math.cos(E) * Y, x.d = Math.sin(E) * Y;
9057
9057
  }
9058
9058
  w.updateAppliedTransform();
9059
9059
  }
9060
9060
  }, s.prototype.applyRelativeWorld = function() {
9061
- for (var e = this.mixRotate, t = this.mixX, i = this.mixY, n = this.mixScaleX, r = this.mixScaleY, o = this.mixShearY, h = t != 0 || i != 0, u = this.target, l = u.matrix, f = l.a, a = l.c, c = l.b, d = l.d, p = f * d - a * c > 0 ? H.degRad : -H.degRad, m = this.data.offsetRotation * p, _ = this.data.offsetShearY * p, g = this.bones, v = 0, x = g.length; v < x; v++) {
9062
- var w = g[v], S = w.matrix;
9061
+ for (var e = this.mixRotate, t = this.mixX, i = this.mixY, n = this.mixScaleX, r = this.mixScaleY, o = this.mixShearY, h = t != 0 || i != 0, u = this.target, l = u.matrix, f = l.a, a = l.c, c = l.b, d = l.d, p = f * d - a * c > 0 ? H.degRad : -H.degRad, m = this.data.offsetRotation * p, _ = this.data.offsetShearY * p, g = this.bones, v = 0, S = g.length; v < S; v++) {
9062
+ var w = g[v], x = w.matrix;
9063
9063
  if (e != 0) {
9064
- var b = S.a, C = S.c, F = S.b, T = S.d, E = Math.atan2(c, f) + m;
9064
+ var b = x.a, C = x.c, F = x.b, T = x.d, E = Math.atan2(c, f) + m;
9065
9065
  E > H.PI ? E -= H.PI2 : E < -H.PI && (E += H.PI2), E *= e;
9066
- var L = Math.cos(E), D = Math.sin(E);
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;
9066
+ var B = Math.cos(E), D = Math.sin(E);
9067
+ x.a = B * b - D * F, x.c = B * C - D * T, x.b = D * b + B * F, x.d = D * C + B * T;
9068
9068
  }
9069
9069
  if (h) {
9070
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;
9071
+ u.localToWorld(N.set(this.data.offsetX, this.data.offsetY)), x.tx += N.x * t, x.ty += N.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;
9075
- S.a *= Y, S.b *= Y;
9075
+ x.a *= Y, x.b *= Y;
9076
9076
  }
9077
9077
  if (r != 0) {
9078
9078
  var Y = (Math.sqrt(a * a + d * d) - 1 + this.data.offsetScaleY) * r + 1;
9079
- S.c *= Y, S.d *= Y;
9079
+ x.c *= Y, x.d *= Y;
9080
9080
  }
9081
9081
  if (o > 0) {
9082
9082
  var E = Math.atan2(d, a) - Math.atan2(c, f);
9083
9083
  E > H.PI ? E -= H.PI2 : E < -H.PI && (E += H.PI2);
9084
- var C = S.c, T = S.d;
9084
+ var C = x.c, T = x.d;
9085
9085
  E = Math.atan2(T, C) + (E - H.PI / 2 + _) * o;
9086
9086
  var Y = Math.sqrt(C * C + T * T);
9087
- S.c = Math.cos(E) * Y, S.d = Math.sin(E) * Y;
9087
+ x.c = Math.cos(E) * Y, x.d = Math.sin(E) * Y;
9088
9088
  }
9089
9089
  w.updateAppliedTransform();
9090
9090
  }
@@ -9432,8 +9432,8 @@ var Tl = (
9432
9432
  }
9433
9433
  if (d)
9434
9434
  for (var _ = 0, g = d.length; _ < g; _ += 2) {
9435
- var v = d[_], x = d[_ + 1];
9436
- r = Math.min(r, v), o = Math.min(o, x), h = Math.max(h, v), u = Math.max(u, x);
9435
+ var v = d[_], S = d[_ + 1];
9436
+ r = Math.min(r, v), o = Math.min(o, S), h = Math.max(h, v), u = Math.max(u, S);
9437
9437
  }
9438
9438
  }
9439
9439
  }
@@ -9746,35 +9746,35 @@ var Tl = (
9746
9746
  v != -1 && ht.rgb888ToColor(m.darkColor = new ht(), v), m.attachmentName = n.readStringRef(), m.blendMode = n.readInt(!0), i.slots.push(m);
9747
9747
  }
9748
9748
  f = n.readInt(!0);
9749
- for (var a = 0, x = void 0; a < f; a++) {
9749
+ for (var a = 0, S = void 0; a < f; a++) {
9750
9750
  var w = n.readString();
9751
9751
  if (!w)
9752
9752
  throw new Error("IK constraint data name must not be null.");
9753
9753
  var m = new ma(w);
9754
- m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), x = n.readInt(!0);
9755
- for (var S = 0; S < x; S++)
9754
+ m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), S = n.readInt(!0);
9755
+ for (var x = 0; x < S; x++)
9756
9756
  m.bones.push(i.bones[n.readInt(!0)]);
9757
9757
  m.target = i.bones[n.readInt(!0)], m.mix = n.readFloat(), m.softness = n.readFloat() * t, m.bendDirection = n.readByte(), m.compress = n.readBoolean(), m.stretch = n.readBoolean(), m.uniform = n.readBoolean(), i.ikConstraints.push(m);
9758
9758
  }
9759
9759
  f = n.readInt(!0);
9760
- for (var a = 0, x = void 0; a < f; a++) {
9760
+ for (var a = 0, S = void 0; a < f; a++) {
9761
9761
  var b = n.readString();
9762
9762
  if (!b)
9763
9763
  throw new Error("Transform constraint data name must not be null.");
9764
9764
  var m = new ya(b);
9765
- m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), x = n.readInt(!0);
9766
- for (var S = 0; S < x; S++)
9765
+ m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), S = n.readInt(!0);
9766
+ for (var x = 0; x < S; x++)
9767
9767
  m.bones.push(i.bones[n.readInt(!0)]);
9768
9768
  m.target = i.bones[n.readInt(!0)], m.local = n.readBoolean(), m.relative = n.readBoolean(), m.offsetRotation = n.readFloat(), m.offsetX = n.readFloat() * t, m.offsetY = n.readFloat() * t, m.offsetScaleX = n.readFloat(), m.offsetScaleY = n.readFloat(), m.offsetShearY = n.readFloat(), m.mixRotate = n.readFloat(), m.mixX = n.readFloat(), m.mixY = n.readFloat(), m.mixScaleX = n.readFloat(), m.mixScaleY = n.readFloat(), m.mixShearY = n.readFloat(), i.transformConstraints.push(m);
9769
9769
  }
9770
9770
  f = n.readInt(!0);
9771
- for (var a = 0, x = void 0; a < f; a++) {
9771
+ for (var a = 0, S = void 0; a < f; a++) {
9772
9772
  var C = n.readString();
9773
9773
  if (!C)
9774
9774
  throw new Error("Path constraint data name must not be null.");
9775
9775
  var m = new ga(C);
9776
- m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), x = n.readInt(!0);
9777
- for (var S = 0; S < x; S++)
9776
+ m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), S = n.readInt(!0);
9777
+ for (var x = 0; x < S; x++)
9778
9778
  m.bones.push(i.bones[n.readInt(!0)]);
9779
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);
9780
9780
  }
@@ -9796,10 +9796,10 @@ var Tl = (
9796
9796
  throw new Error("Not skin found for linked mesh.");
9797
9797
  if (!E.parent)
9798
9798
  throw new Error("Linked mesh parent must not be null");
9799
- var L = T.getAttachment(E.slotIndex, E.parent);
9800
- if (!L)
9799
+ var B = T.getAttachment(E.slotIndex, E.parent);
9800
+ if (!B)
9801
9801
  throw new Error("Parent mesh not found: " + E.parent);
9802
- E.mesh.timelineAttachment = E.inheritTimeline ? L : E.mesh, E.mesh.setParentMesh(L);
9802
+ E.mesh.timelineAttachment = E.inheritTimeline ? B : E.mesh, E.mesh.setParentMesh(B);
9803
9803
  }
9804
9804
  this.linkedMeshes.length = 0, f = n.readInt(!0);
9805
9805
  for (var a = 0; a < f; a++) {
@@ -9853,38 +9853,38 @@ var Tl = (
9853
9853
  case It.Region: {
9854
9854
  var l = e.readStringRef(), f = e.readFloat(), a = e.readFloat(), c = e.readFloat(), d = e.readFloat(), p = e.readFloat(), m = e.readFloat(), _ = e.readFloat(), g = e.readInt32(), v = this.readSequence(e);
9855
9855
  l || (l = u);
9856
- var x = this.attachmentLoader.newRegionAttachment(i, u, l, v);
9857
- return x ? (x.path = l, x.x = a * h, x.y = c * h, x.scaleX = d, x.scaleY = p, x.rotation = f, x.width = m * h, x.height = _ * h, ht.rgba8888ToColor(x.color, g), x.sequence = v, v == null && x.updateRegion(), x) : null;
9856
+ var S = this.attachmentLoader.newRegionAttachment(i, u, l, v);
9857
+ return S ? (S.path = l, S.x = a * h, S.y = c * h, S.scaleX = d, S.scaleY = p, S.rotation = f, S.width = m * h, S.height = _ * h, ht.rgba8888ToColor(S.color, g), S.sequence = v, v == null && S.updateRegion(), S) : null;
9858
9858
  }
9859
9859
  case It.BoundingBox: {
9860
- var w = e.readInt(!0), S = this.readVertices(e, w), g = o ? e.readInt32() : 0, b = this.attachmentLoader.newBoundingBoxAttachment(i, u);
9861
- return b ? (b.worldVerticesLength = w << 1, b.vertices = S.vertices, b.bones = S.bones, o && ht.rgba8888ToColor(b.color, g), b) : null;
9860
+ var w = e.readInt(!0), x = this.readVertices(e, w), g = o ? e.readInt32() : 0, b = this.attachmentLoader.newBoundingBoxAttachment(i, u);
9861
+ return b ? (b.worldVerticesLength = w << 1, b.vertices = x.vertices, b.bones = x.bones, o && ht.rgba8888ToColor(b.color, g), b) : null;
9862
9862
  }
9863
9863
  case It.Mesh: {
9864
- var l = e.readStringRef(), g = e.readInt32(), w = e.readInt(!0), C = this.readFloatArray(e, w << 1, 1), F = this.readShortArray(e), S = this.readVertices(e, w), T = e.readInt(!0), v = this.readSequence(e), E = [], m = 0, _ = 0;
9864
+ var l = e.readStringRef(), g = e.readInt32(), w = e.readInt(!0), C = this.readFloatArray(e, w << 1, 1), F = this.readShortArray(e), x = this.readVertices(e, w), T = e.readInt(!0), v = this.readSequence(e), E = [], m = 0, _ = 0;
9865
9865
  o && (E = this.readShortArray(e), m = e.readFloat(), _ = e.readFloat()), l || (l = u);
9866
- var L = this.attachmentLoader.newMeshAttachment(i, u, l, v);
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;
9866
+ var B = this.attachmentLoader.newMeshAttachment(i, u, l, v);
9867
+ return B ? (B.path = l, ht.rgba8888ToColor(B.color, g), B.bones = x.bones, B.vertices = x.vertices, B.worldVerticesLength = w << 1, B.triangles = F, B.regionUVs = new Float32Array(C), B.hullLength = T << 1, B.sequence = v, o && (B.edges = E, B.width = m * h, B.height = _ * h), B) : null;
9868
9868
  }
9869
9869
  case It.LinkedMesh: {
9870
9870
  var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(), N = e.readStringRef(), Y = e.readBoolean(), v = this.readSequence(e), m = 0, _ = 0;
9871
9871
  o && (m = e.readFloat(), _ = e.readFloat()), l || (l = u);
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;
9872
+ var B = this.attachmentLoader.newMeshAttachment(i, u, l, v);
9873
+ return B ? (B.path = l, ht.rgba8888ToColor(B.color, g), B.sequence = v, o && (B.width = m * h, B.height = _ * h), this.linkedMeshes.push(new Il(B, D, n, N, Y)), B) : null;
9874
9874
  }
9875
9875
  case It.Path: {
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++)
9876
+ for (var z = e.readBoolean(), q = e.readBoolean(), w = e.readInt(!0), x = this.readVertices(e, w), j = Z.newArray(w / 3, 0), I = 0, R = j.length; I < R; I++)
9877
9877
  j[I] = e.readFloat() * h;
9878
9878
  var g = o ? e.readInt32() : 0, l = this.attachmentLoader.newPathAttachment(i, u);
9879
- return l ? (l.closed = z, l.constantSpeed = q, l.worldVerticesLength = w << 1, l.vertices = S.vertices, l.bones = S.bones, l.lengths = j, o && ht.rgba8888ToColor(l.color, g), l) : null;
9879
+ return l ? (l.closed = z, l.constantSpeed = q, l.worldVerticesLength = w << 1, l.vertices = x.vertices, l.bones = x.bones, l.lengths = j, o && ht.rgba8888ToColor(l.color, g), l) : null;
9880
9880
  }
9881
9881
  case It.Point: {
9882
9882
  var f = e.readFloat(), a = e.readFloat(), c = e.readFloat(), g = o ? e.readInt32() : 0, X = this.attachmentLoader.newPointAttachment(i, u);
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 W = e.readInt(!0), w = e.readInt(!0), x = 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 = x.vertices, V.bones = x.bones, o && ht.rgba8888ToColor(V.color, g), V) : null;
9888
9888
  }
9889
9889
  }
9890
9890
  return null;
@@ -9932,76 +9932,76 @@ var Tl = (
9932
9932
  break;
9933
9933
  }
9934
9934
  case Ul: {
9935
- for (var _ = e.readInt(!0), p = new ta(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, x, w, S), m != d; m++) {
9936
- var C = e.readFloat(), F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, L = e.readUnsignedByte() / 255;
9935
+ for (var _ = e.readInt(!0), p = new ta(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, S, w, x), m != d; m++) {
9936
+ var C = e.readFloat(), F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, B = e.readUnsignedByte() / 255;
9937
9937
  switch (e.readByte()) {
9938
9938
  case Te:
9939
9939
  p.setStepped(m);
9940
9940
  break;
9941
9941
  case Pe:
9942
- ut(e, p, b++, m, 0, g, C, v, F, 1), ut(e, p, b++, m, 1, g, C, x, T, 1), ut(e, p, b++, m, 2, g, C, w, E, 1), ut(e, p, b++, m, 3, g, C, S, L, 1);
9942
+ ut(e, p, b++, m, 0, g, C, v, F, 1), ut(e, p, b++, m, 1, g, C, S, T, 1), ut(e, p, b++, m, 2, g, C, w, E, 1), ut(e, p, b++, m, 3, g, C, x, B, 1);
9943
9943
  }
9944
- g = C, v = F, x = T, w = E, S = L;
9944
+ g = C, v = F, S = T, w = E, x = B;
9945
9945
  }
9946
9946
  n.push(p);
9947
9947
  break;
9948
9948
  }
9949
9949
  case Gl: {
9950
- for (var _ = e.readInt(!0), p = new ea(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, x, w), m != d; m++) {
9950
+ for (var _ = e.readInt(!0), p = new ea(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, S, w), m != d; m++) {
9951
9951
  var C = e.readFloat(), F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255;
9952
9952
  switch (e.readByte()) {
9953
9953
  case Te:
9954
9954
  p.setStepped(m);
9955
9955
  break;
9956
9956
  case Pe:
9957
- ut(e, p, b++, m, 0, g, C, v, F, 1), ut(e, p, b++, m, 1, g, C, x, T, 1), ut(e, p, b++, m, 2, g, C, w, E, 1);
9957
+ ut(e, p, b++, m, 0, g, C, v, F, 1), ut(e, p, b++, m, 1, g, C, S, T, 1), ut(e, p, b++, m, 2, g, C, w, E, 1);
9958
9958
  }
9959
- g = C, v = F, x = T, w = E;
9959
+ g = C, v = F, S = T, w = E;
9960
9960
  }
9961
9961
  n.push(p);
9962
9962
  break;
9963
9963
  }
9964
9964
  case jl: {
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++) {
9965
+ for (var _ = e.readInt(!0), p = new na(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, S, w, x, F, T, E), m != d; m++) {
9966
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;
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, S, N, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, x, 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, S = N, w = Y, x = z, F = q, T = j, E = I;
9975
9975
  }
9976
9976
  n.push(p);
9977
9977
  break;
9978
9978
  }
9979
9979
  case ql: {
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++) {
9980
+ for (var _ = e.readInt(!0), p = new sa(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, S = 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, S, w, F, T, E), m != d; m++) {
9981
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;
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, S, 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);
9988
9988
  }
9989
- g = C, v = D, x = N, w = Y, F = q, T = j, E = I;
9989
+ g = C, v = D, S = N, w = Y, F = q, T = j, E = I;
9990
9990
  }
9991
9991
  n.push(p);
9992
9992
  break;
9993
9993
  }
9994
9994
  case zl: {
9995
- for (var p = new ia(c, e.readInt(!0), u), g = e.readFloat(), S = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, S), m != d; m++) {
9996
- var C = e.readFloat(), L = e.readUnsignedByte() / 255;
9995
+ for (var p = new ia(c, e.readInt(!0), u), g = e.readFloat(), x = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, x), m != d; m++) {
9996
+ var C = e.readFloat(), B = e.readUnsignedByte() / 255;
9997
9997
  switch (e.readByte()) {
9998
9998
  case Te:
9999
9999
  p.setStepped(m);
10000
10000
  break;
10001
10001
  case Pe:
10002
- ut(e, p, b++, m, 0, g, C, S, L, 1);
10002
+ ut(e, p, b++, m, 0, g, C, x, B, 1);
10003
10003
  }
10004
- g = C, S = L;
10004
+ g = C, x = B;
10005
10005
  }
10006
10006
  n.push(p);
10007
10007
  }
@@ -10014,10 +10014,10 @@ var Tl = (
10014
10014
  case Ol:
10015
10015
  n.push(Ge(e, new ln(c, _, R), 1));
10016
10016
  break;
10017
- case Ll:
10017
+ case Bl:
10018
10018
  n.push(Pn(e, new Ur(c, _, R), r));
10019
10019
  break;
10020
- case Bl:
10020
+ case Ll:
10021
10021
  n.push(Ge(e, new Gr(c, _, R), r));
10022
10022
  break;
10023
10023
  case Dl:
@@ -10058,15 +10058,15 @@ var Tl = (
10058
10058
  }
10059
10059
  for (var o = 0, h = e.readInt(!0); o < h; o++) {
10060
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(), nt = e.readFloat(), st = e.readFloat(), ft = e.readFloat(), Pt = e.readFloat(), gt = e.readFloat(), m = 0, b = 0; p.setFrame(m, g, rt, nt, st, 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();
10061
+ var C = e.readFloat(), Bt = e.readFloat(), ae = e.readFloat(), Lt = 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, nt, ae, 1), ut(e, p, b++, m, 2, g, C, st, 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);
10067
+ ut(e, p, b++, m, 0, g, C, rt, Bt, 1), ut(e, p, b++, m, 1, g, C, nt, ae, 1), ut(e, p, b++, m, 2, g, C, st, Lt, 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, nt = ae, st = Bt, ft = xe, Pt = ie, gt = Ue;
10069
+ g = C, rt = Bt, nt = ae, st = Lt, ft = xe, Pt = ie, gt = Ue;
10070
10070
  }
10071
10071
  n.push(p);
10072
10072
  }
@@ -10081,15 +10081,15 @@ var Tl = (
10081
10081
  break;
10082
10082
  case Zl:
10083
10083
  for (var p = new ca(e.readInt(!0), e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), nt = e.readFloat(), st = e.readFloat(), m = 0, b = 0, d = p.getFrameCount() - 1; p.setFrame(m, g, rt, nt, st), m != d; m++) {
10084
- var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat();
10084
+ var C = e.readFloat(), Bt = e.readFloat(), ae = e.readFloat(), Lt = e.readFloat();
10085
10085
  switch (e.readByte()) {
10086
10086
  case Te:
10087
10087
  p.setStepped(m);
10088
10088
  break;
10089
10089
  case Pe:
10090
- ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, nt, ae, 1), ut(e, p, b++, m, 2, g, C, st, Bt, 1);
10090
+ ut(e, p, b++, m, 0, g, C, rt, Bt, 1), ut(e, p, b++, m, 1, g, C, nt, ae, 1), ut(e, p, b++, m, 2, g, C, st, Lt, 1);
10091
10091
  }
10092
- g = C, rt = Lt, nt = ae, st = Bt;
10092
+ g = C, rt = Bt, nt = ae, st = Lt;
10093
10093
  }
10094
10094
  n.push(p);
10095
10095
  }
@@ -10146,17 +10146,17 @@ var Tl = (
10146
10146
  }
10147
10147
  var O = e.readInt(!0);
10148
10148
  if (O > 0) {
10149
- for (var p = new $i(O), B = i.slots.length, o = 0; o < O; o++) {
10150
- for (var g = e.readFloat(), G = e.readInt(!0), Q = Z.newArray(B, 0), l = B - 1; l >= 0; l--)
10149
+ for (var p = new $i(O), L = i.slots.length, o = 0; o < O; o++) {
10150
+ for (var g = e.readFloat(), G = e.readInt(!0), Q = Z.newArray(L, 0), l = L - 1; l >= 0; l--)
10151
10151
  Q[l] = -1;
10152
- for (var tt = Z.newArray(B - G, 0), at = 0, lt = 0, l = 0; l < G; l++) {
10152
+ for (var tt = Z.newArray(L - G, 0), at = 0, lt = 0, l = 0; l < G; l++) {
10153
10153
  for (var u = e.readInt(!0); at != u; )
10154
10154
  tt[lt++] = at++;
10155
10155
  Q[at + e.readInt(!0)] = at++;
10156
10156
  }
10157
- for (; at < B; )
10157
+ for (; at < L; )
10158
10158
  tt[lt++] = at++;
10159
- for (var l = B - 1; l >= 0; l--)
10159
+ for (var l = L - 1; l >= 0; l--)
10160
10160
  Q[l] == -1 && (Q[l] = tt[--lt]);
10161
10161
  p.setFrame(o, g, Q);
10162
10162
  }
@@ -10165,8 +10165,8 @@ var Tl = (
10165
10165
  var _t = e.readInt(!0);
10166
10166
  if (_t > 0) {
10167
10167
  for (var p = new hs(_t), o = 0; o < _t; o++) {
10168
- var g = e.readFloat(), mt = i.events[e.readInt(!0)], wt = new fa(g, mt);
10169
- wt.intValue = e.readInt(!1), wt.floatValue = e.readFloat(), wt.stringValue = e.readBoolean() ? e.readString() : mt.stringValue, wt.data.audioPath && (wt.volume = e.readFloat(), wt.balance = e.readFloat()), p.setFrame(o, wt);
10168
+ var g = e.readFloat(), mt = i.events[e.readInt(!0)], yt = new fa(g, mt);
10169
+ yt.intValue = e.readInt(!1), yt.floatValue = e.readFloat(), yt.stringValue = e.readBoolean() ? e.readString() : mt.stringValue, yt.data.audioPath && (yt.volume = e.readFloat(), yt.balance = e.readFloat()), p.setFrame(o, yt);
10170
10170
  }
10171
10171
  n.push(p);
10172
10172
  }
@@ -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, Bl = 1, Ll = 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;
10227
10227
  (function(s) {
10228
10228
  ot(e, s);
10229
10229
  function e() {
@@ -10273,9 +10273,9 @@ var th = (
10273
10273
  var g = n.ik[u], c = new ma(g.name);
10274
10274
  c.order = P(g, "order", 0), c.skinRequired = P(g, "skin", !1);
10275
10275
  for (var v = 0; v < g.bones.length; v++) {
10276
- var x = g.bones[v], w = i.findBone(x);
10276
+ var S = g.bones[v], w = i.findBone(S);
10277
10277
  if (w == null)
10278
- throw new Error("IK bone not found: " + x);
10278
+ throw new Error("IK bone not found: " + S);
10279
10279
  c.bones.push(w);
10280
10280
  }
10281
10281
  c.target = i.findBone(g.target), c.mix = P(g, "mix", 1), c.softness = P(g, "softness", 0) * t, c.bendDirection = P(g, "bendPositive", !0) ? 1 : -1, c.compress = P(g, "compress", !1), c.stretch = P(g, "stretch", !1), c.uniform = P(g, "uniform", !1), i.ikConstraints.push(c);
@@ -10285,14 +10285,14 @@ var th = (
10285
10285
  var g = n.transform[u], c = new ya(g.name);
10286
10286
  c.order = P(g, "order", 0), c.skinRequired = P(g, "skin", !1);
10287
10287
  for (var v = 0; v < g.bones.length; v++) {
10288
- var x = g.bones[v], w = i.findBone(x);
10288
+ var S = g.bones[v], w = i.findBone(S);
10289
10289
  if (!w)
10290
- throw new Error("Couldn't find bone " + x + " for transform constraint " + g.name + ".");
10290
+ throw new Error("Couldn't find bone " + S + " for transform constraint " + g.name + ".");
10291
10291
  c.bones.push(w);
10292
10292
  }
10293
- var S = g.target, b = i.findBone(S);
10293
+ var x = g.target, b = i.findBone(x);
10294
10294
  if (!b)
10295
- throw new Error("Couldn't find target bone " + S + " for transform constraint " + g.name + ".");
10295
+ throw new Error("Couldn't find target bone " + x + " for transform constraint " + g.name + ".");
10296
10296
  c.target = b, c.local = P(g, "local", !1), c.relative = P(g, "relative", !1), c.offsetRotation = P(g, "rotation", 0), c.offsetX = P(g, "x", 0) * t, c.offsetY = P(g, "y", 0) * t, c.offsetScaleX = P(g, "scaleX", 0), c.offsetScaleY = P(g, "scaleY", 0), c.offsetShearY = P(g, "shearY", 0), c.mixRotate = P(g, "mixRotate", 1), c.mixX = P(g, "mixX", 1), c.mixY = P(g, "mixY", c.mixX), c.mixScaleX = P(g, "mixScaleX", 1), c.mixScaleY = P(g, "mixScaleY", c.mixScaleX), c.mixShearY = P(g, "mixShearY", 1), i.transformConstraints.push(c);
10297
10297
  }
10298
10298
  if (n.path)
@@ -10300,14 +10300,14 @@ var th = (
10300
10300
  var g = n.path[u], c = new ga(g.name);
10301
10301
  c.order = P(g, "order", 0), c.skinRequired = P(g, "skin", !1);
10302
10302
  for (var v = 0; v < g.bones.length; v++) {
10303
- var x = g.bones[v], w = i.findBone(x);
10303
+ var S = g.bones[v], w = i.findBone(S);
10304
10304
  if (!w)
10305
- throw new Error("Couldn't find bone " + x + " for path constraint " + g.name + ".");
10305
+ throw new Error("Couldn't find bone " + S + " for path constraint " + g.name + ".");
10306
10306
  c.bones.push(w);
10307
10307
  }
10308
- var S = g.target, b = i.findSlot(S);
10308
+ var x = g.target, b = i.findSlot(x);
10309
10309
  if (!b)
10310
- throw new Error("Couldn't find target slot " + S + " for path constraint " + g.name + ".");
10310
+ throw new Error("Couldn't find target slot " + x + " for path constraint " + g.name + ".");
10311
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);
10312
10312
  }
10313
10313
  if (n.skins)
@@ -10315,9 +10315,9 @@ var th = (
10315
10315
  var C = n.skins[u], F = new $n(C.name);
10316
10316
  if (C.bones)
10317
10317
  for (var v = 0; v < C.bones.length; v++) {
10318
- var x = C.bones[v], w = i.findBone(x);
10318
+ var S = C.bones[v], w = i.findBone(S);
10319
10319
  if (!w)
10320
- throw new Error("Couldn't find bone " + x + " for skin " + C.name + ".");
10320
+ throw new Error("Couldn't find bone " + S + " for skin " + C.name + ".");
10321
10321
  F.bones.push(w);
10322
10322
  }
10323
10323
  if (C.ik)
@@ -10341,11 +10341,11 @@ var th = (
10341
10341
  throw new Error("Couldn't find path constraint " + T + " for skin " + C.name + ".");
10342
10342
  F.constraints.push(E);
10343
10343
  }
10344
- for (var L in C.attachments) {
10345
- var D = i.findSlot(L);
10344
+ for (var B in C.attachments) {
10345
+ var D = i.findSlot(B);
10346
10346
  if (!D)
10347
- throw new Error("Couldn't find slot " + L + " for skin " + C.name + ".");
10348
- var p = C.attachments[L];
10347
+ throw new Error("Couldn't find slot " + B + " for skin " + C.name + ".");
10348
+ var p = C.attachments[B];
10349
10349
  for (var N in p) {
10350
10350
  var Y = this.readAttachment(p[N], F, D.index, N, i);
10351
10351
  Y && F.setAttachment(D.index, N, Y);
@@ -10428,20 +10428,20 @@ var th = (
10428
10428
  return f && v.color.setFromString(f), v;
10429
10429
  }
10430
10430
  case "clipping": {
10431
- var x = this.attachmentLoader.newClippingAttachment(t, n);
10432
- if (!x)
10431
+ var S = this.attachmentLoader.newClippingAttachment(t, n);
10432
+ if (!S)
10433
10433
  return null;
10434
10434
  var w = P(e, "end", null);
10435
10435
  if (w != null) {
10436
- var S = r.findSlot(w);
10437
- if (S == null)
10436
+ var x = r.findSlot(w);
10437
+ if (x == null)
10438
10438
  throw new Error("Clipping end slot not found: " + w);
10439
- x.endSlot = S;
10439
+ S.endSlot = x;
10440
10440
  }
10441
10441
  var m = e.vertexCount;
10442
- this.readVertices(e, x, m << 1);
10442
+ this.readVertices(e, S, m << 1);
10443
10443
  var f = P(e, "color", null);
10444
- return f && x.color.setFromString(f), x;
10444
+ return f && S.color.setFromString(f), S;
10445
10445
  }
10446
10446
  }
10447
10447
  return null;
@@ -10490,25 +10490,25 @@ var th = (
10490
10490
  } else if (f == "rgba") {
10491
10491
  for (var d = new ta(c, c << 2, l), m = a[0], _ = P(m, "time", 0), g = ht.fromString(m.color), p = 0, v = 0; ; p++) {
10492
10492
  d.setFrame(p, _, g.r, g.g, g.b, g.a);
10493
- var x = a[p + 1];
10494
- if (!x) {
10493
+ var S = a[p + 1];
10494
+ if (!S) {
10495
10495
  d.shrink(v);
10496
10496
  break;
10497
10497
  }
10498
- var w = P(x, "time", 0), S = ht.fromString(x.color), b = m.curve;
10499
- b && (v = dt(b, d, v, p, 0, _, w, g.r, S.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, S.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, S.b, 1), v = dt(b, d, v, p, 3, _, w, g.a, S.a, 1)), _ = w, g = S, m = x;
10498
+ var w = P(S, "time", 0), x = ht.fromString(S.color), b = m.curve;
10499
+ b && (v = dt(b, d, v, p, 0, _, w, g.r, x.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, x.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, x.b, 1), v = dt(b, d, v, p, 3, _, w, g.a, x.a, 1)), _ = w, g = x, m = S;
10500
10500
  }
10501
10501
  r.push(d);
10502
10502
  } else if (f == "rgb") {
10503
10503
  for (var d = new ea(c, c * 3, l), m = a[0], _ = P(m, "time", 0), g = ht.fromString(m.color), p = 0, v = 0; ; p++) {
10504
10504
  d.setFrame(p, _, g.r, g.g, g.b);
10505
- var x = a[p + 1];
10506
- if (!x) {
10505
+ var S = a[p + 1];
10506
+ if (!S) {
10507
10507
  d.shrink(v);
10508
10508
  break;
10509
10509
  }
10510
- var w = P(x, "time", 0), S = ht.fromString(x.color), b = m.curve;
10511
- b && (v = dt(b, d, v, p, 0, _, w, g.r, S.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, S.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, S.b, 1)), _ = w, g = S, m = x;
10510
+ var w = P(S, "time", 0), x = ht.fromString(S.color), b = m.curve;
10511
+ b && (v = dt(b, d, v, p, 0, _, w, g.r, x.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, x.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, x.b, 1)), _ = w, g = x, m = S;
10512
10512
  }
10513
10513
  r.push(d);
10514
10514
  } else if (f == "alpha")
@@ -10516,25 +10516,25 @@ var th = (
10516
10516
  else if (f == "rgba2") {
10517
10517
  for (var d = new na(c, c * 7, l), m = a[0], _ = P(m, "time", 0), g = ht.fromString(m.light), C = ht.fromString(m.dark), p = 0, v = 0; ; p++) {
10518
10518
  d.setFrame(p, _, g.r, g.g, g.b, g.a, C.r, C.g, C.b);
10519
- var x = a[p + 1];
10520
- if (!x) {
10519
+ var S = a[p + 1];
10520
+ if (!S) {
10521
10521
  d.shrink(v);
10522
10522
  break;
10523
10523
  }
10524
- var w = P(x, "time", 0), S = ht.fromString(x.light), F = ht.fromString(x.dark), b = m.curve;
10525
- b && (v = dt(b, d, v, p, 0, _, w, g.r, S.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, S.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, S.b, 1), v = dt(b, d, v, p, 3, _, w, g.a, S.a, 1), v = dt(b, d, v, p, 4, _, w, C.r, F.r, 1), v = dt(b, d, v, p, 5, _, w, C.g, F.g, 1), v = dt(b, d, v, p, 6, _, w, C.b, F.b, 1)), _ = w, g = S, C = F, m = x;
10524
+ var w = P(S, "time", 0), x = ht.fromString(S.light), F = ht.fromString(S.dark), b = m.curve;
10525
+ b && (v = dt(b, d, v, p, 0, _, w, g.r, x.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, x.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, x.b, 1), v = dt(b, d, v, p, 3, _, w, g.a, x.a, 1), v = dt(b, d, v, p, 4, _, w, C.r, F.r, 1), v = dt(b, d, v, p, 5, _, w, C.g, F.g, 1), v = dt(b, d, v, p, 6, _, w, C.b, F.b, 1)), _ = w, g = x, C = F, m = S;
10526
10526
  }
10527
10527
  r.push(d);
10528
10528
  } else if (f == "rgb2") {
10529
10529
  for (var d = new sa(c, c * 6, l), m = a[0], _ = P(m, "time", 0), g = ht.fromString(m.light), C = ht.fromString(m.dark), p = 0, v = 0; ; p++) {
10530
10530
  d.setFrame(p, _, g.r, g.g, g.b, C.r, C.g, C.b);
10531
- var x = a[p + 1];
10532
- if (!x) {
10531
+ var S = a[p + 1];
10532
+ if (!S) {
10533
10533
  d.shrink(v);
10534
10534
  break;
10535
10535
  }
10536
- var w = P(x, "time", 0), S = ht.fromString(x.light), F = ht.fromString(x.dark), b = m.curve;
10537
- b && (v = dt(b, d, v, p, 0, _, w, g.r, S.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, S.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, S.b, 1), v = dt(b, d, v, p, 3, _, w, C.r, F.r, 1), v = dt(b, d, v, p, 4, _, w, C.g, F.g, 1), v = dt(b, d, v, p, 5, _, w, C.b, F.b, 1)), _ = w, g = S, C = F, m = x;
10536
+ var w = P(S, "time", 0), x = ht.fromString(S.light), F = ht.fromString(S.dark), b = m.curve;
10537
+ b && (v = dt(b, d, v, p, 0, _, w, g.r, x.r, 1), v = dt(b, d, v, p, 1, _, w, g.g, x.g, 1), v = dt(b, d, v, p, 2, _, w, g.b, x.b, 1), v = dt(b, d, v, p, 3, _, w, C.r, F.r, 1), v = dt(b, d, v, p, 4, _, w, C.g, F.g, 1), v = dt(b, d, v, p, 5, _, w, C.b, F.b, 1)), _ = w, g = x, C = F, m = S;
10538
10538
  }
10539
10539
  r.push(d);
10540
10540
  }
@@ -10543,10 +10543,10 @@ var th = (
10543
10543
  }
10544
10544
  if (e.bones)
10545
10545
  for (var T in e.bones) {
10546
- var E = e.bones[T], L = i.findBone(T);
10547
- if (!L)
10546
+ var E = e.bones[T], B = i.findBone(T);
10547
+ if (!B)
10548
10548
  throw new Error("Bone not found: " + T);
10549
- var D = L.index;
10549
+ var D = B.index;
10550
10550
  for (var f in E) {
10551
10551
  var a = E[f], N = a.length;
10552
10552
  if (N != 0) {
@@ -10592,13 +10592,13 @@ var th = (
10592
10592
  throw new Error("IK Constraint not found: " + Y);
10593
10593
  for (var j = i.ikConstraints.indexOf(q), d = new aa(z.length, z.length << 1, j), _ = P(m, "time", 0), I = P(m, "mix", 1), R = P(m, "softness", 0) * n, p = 0, v = 0; ; p++) {
10594
10594
  d.setFrame(p, _, I, R, P(m, "bendPositive", !0) ? 1 : -1, P(m, "compress", !1), P(m, "stretch", !1));
10595
- var x = z[p + 1];
10596
- if (!x) {
10595
+ var S = z[p + 1];
10596
+ if (!S) {
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(S, "time", 0), X = P(S, "mix", 1), W = P(S, "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 = S;
10602
10602
  }
10603
10603
  r.push(d);
10604
10604
  }
@@ -10612,13 +10612,13 @@ var th = (
10612
10612
  throw new Error("Transform constraint not found: " + Y);
10613
10613
  for (var j = i.transformConstraints.indexOf(q), d = new oa(a.length, a.length * 6, j), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), U = P(m, "mixY", $), J = P(m, "mixScaleX", 1), rt = P(m, "mixScaleY", J), nt = P(m, "mixShearY", 1), p = 0, v = 0; ; p++) {
10614
10614
  d.setFrame(p, _, V, $, U, J, rt, nt);
10615
- var x = a[p + 1];
10616
- if (!x) {
10615
+ var S = a[p + 1];
10616
+ if (!S) {
10617
10617
  d.shrink(v);
10618
10618
  break;
10619
10619
  }
10620
- var w = P(x, "time", 0), st = P(x, "mixRotate", 1), ft = P(x, "mixX", 1), Pt = P(x, "mixY", ft), gt = P(x, "mixScaleX", 1), Lt = P(x, "mixScaleY", gt), ae = P(x, "mixShearY", 1), b = m.curve;
10621
- b && (v = dt(b, d, v, p, 0, _, w, V, st, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1), v = dt(b, d, v, p, 3, _, w, J, gt, 1), v = dt(b, d, v, p, 4, _, w, rt, Lt, 1), v = dt(b, d, v, p, 5, _, w, nt, ae, 1)), _ = w, V = st, $ = ft, U = Pt, J = gt, rt = Lt, J = gt, m = x;
10620
+ var w = P(S, "time", 0), st = P(S, "mixRotate", 1), ft = P(S, "mixX", 1), Pt = P(S, "mixY", ft), gt = P(S, "mixScaleX", 1), Bt = P(S, "mixScaleY", gt), ae = P(S, "mixShearY", 1), b = m.curve;
10621
+ b && (v = dt(b, d, v, p, 0, _, w, V, st, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1), v = dt(b, d, v, p, 3, _, w, J, gt, 1), v = dt(b, d, v, p, 4, _, w, rt, Bt, 1), v = dt(b, d, v, p, 5, _, w, nt, ae, 1)), _ = w, V = st, $ = ft, U = Pt, J = gt, rt = Bt, J = gt, m = S;
10622
10622
  }
10623
10623
  r.push(d);
10624
10624
  }
@@ -10632,23 +10632,23 @@ var th = (
10632
10632
  for (var f in z) {
10633
10633
  var a = z[f], m = a[0];
10634
10634
  if (m) {
10635
- var Bt = a.length;
10635
+ var Lt = a.length;
10636
10636
  if (f === "position") {
10637
- var d = new la(Bt, Bt, j);
10637
+ var d = new la(Lt, Lt, j);
10638
10638
  r.push(Re(a, d, 0, q.positionMode == Ne.Fixed ? n : 1));
10639
10639
  } else if (f === "spacing") {
10640
- var d = new ha(Bt, Bt, j);
10640
+ var d = new ha(Lt, Lt, j);
10641
10641
  r.push(Re(a, d, 0, q.spacingMode == Vt.Length || q.spacingMode == Vt.Fixed ? n : 1));
10642
10642
  } else if (f === "mix") {
10643
- for (var d = new ca(Bt, Bt * 3, j), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), U = P(m, "mixY", $), p = 0, v = 0; ; p++) {
10643
+ for (var d = new ca(Lt, Lt * 3, j), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), U = P(m, "mixY", $), p = 0, v = 0; ; p++) {
10644
10644
  d.setFrame(p, _, V, $, U);
10645
- var x = a[p + 1];
10646
- if (!x) {
10645
+ var S = a[p + 1];
10646
+ if (!S) {
10647
10647
  d.shrink(v);
10648
10648
  break;
10649
10649
  }
10650
- var w = P(x, "time", 0), st = P(x, "mixRotate", 1), ft = P(x, "mixX", 1), Pt = P(x, "mixY", ft), b = m.curve;
10651
- b && (v = dt(b, d, v, p, 0, _, w, V, st, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1)), _ = w, V = st, $ = ft, U = Pt, m = x;
10650
+ var w = P(S, "time", 0), st = P(S, "mixRotate", 1), ft = P(S, "mixX", 1), Pt = P(S, "mixY", ft), b = m.curve;
10651
+ b && (v = dt(b, d, v, p, 0, _, w, V, st, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1)), _ = w, V = st, $ = ft, U = Pt, m = S;
10652
10652
  }
10653
10653
  r.push(d);
10654
10654
  }
@@ -10691,20 +10691,20 @@ var th = (
10691
10691
  Et = Z.newFloatArray(Kt);
10692
10692
  var k = P(m, "offset", 0);
10693
10693
  if (Z.arrayCopy(A, 0, Et, k, A.length), n != 1)
10694
- for (var O = k, B = O + A.length; O < B; O++)
10694
+ for (var O = k, L = O + A.length; O < L; O++)
10695
10695
  Et[O] *= n;
10696
10696
  if (!Gt)
10697
10697
  for (var O = 0; O < Kt; O++)
10698
10698
  Et[O] += $t[O];
10699
10699
  }
10700
10700
  d.setFrame(p, _, Et);
10701
- var x = a[p + 1];
10702
- if (!x) {
10701
+ var S = a[p + 1];
10702
+ if (!S) {
10703
10703
  d.shrink(v);
10704
10704
  break;
10705
10705
  }
10706
- var w = P(x, "time", 0), b = m.curve;
10707
- b && (v = dt(b, d, v, p, 0, _, w, 0, 1, 1)), _ = w, m = x;
10706
+ var w = P(S, "time", 0), b = m.curve;
10707
+ b && (v = dt(b, d, v, p, 0, _, w, 0, 1, 1)), _ = w, m = S;
10708
10708
  }
10709
10709
  r.push(d);
10710
10710
  } else if (ke == "sequence") {
@@ -10721,16 +10721,16 @@ var th = (
10721
10721
  }
10722
10722
  if (e.drawOrder) {
10723
10723
  for (var d = new $i(e.drawOrder.length), lt = i.slots.length, p = 0, O = 0; O < e.drawOrder.length; O++, p++) {
10724
- var _t = e.drawOrder[O], mt = null, wt = P(_t, "offsets", null);
10725
- if (wt) {
10724
+ var _t = e.drawOrder[O], mt = null, yt = P(_t, "offsets", null);
10725
+ if (yt) {
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++) {
10728
- var Bs = wt[Je], u = i.findSlot(Bs.slot);
10727
+ for (var Nt = Z.newArray(lt - yt.length, 0), he = 0, Ei = 0, Je = 0; Je < yt.length; Je++) {
10728
+ var Ls = yt[Je], u = i.findSlot(Ls.slot);
10729
10729
  if (!u)
10730
10730
  throw new Error("Slot not found: " + u);
10731
10731
  for (var l = u.index; he != l; )
10732
10732
  Nt[Ei++] = he++;
10733
- mt[he + Bs.offset] = he++;
10733
+ mt[he + Ls.offset] = he++;
10734
10734
  }
10735
10735
  for (; he < lt; )
10736
10736
  Nt[Ei++] = he++;
@@ -10751,7 +10751,7 @@ var th = (
10751
10751
  }
10752
10752
  r.push(d);
10753
10753
  }
10754
- for (var Qi = 0, O = 0, B = r.length; O < B; O++)
10754
+ for (var Qi = 0, O = 0, L = r.length; O < L; O++)
10755
10755
  Qi = Math.max(Qi, r[O].getDuration());
10756
10756
  if (isNaN(Qi))
10757
10757
  throw new Error("Error while parsing animation, duration is NaN");
@@ -11220,9 +11220,9 @@ class Zc extends Ct {
11220
11220
  /** @inheritdoc */
11221
11221
  async create(t) {
11222
11222
  return await super.create(t), this._winLevels = {
11223
- big: this._volatilityOdds[0] * vt("client", { coinRatio: 20 }).coinRatio,
11224
- super: this._volatilityOdds[1] * vt("client", { coinRatio: 20 }).coinRatio,
11225
- epic: this._volatilityOdds[2] * vt("client", { coinRatio: 20 }).coinRatio
11223
+ big: this._volatilityOdds[0] * wt("client", { coinRatio: 20 }).coinRatio,
11224
+ super: this._volatilityOdds[1] * wt("client", { coinRatio: 20 }).coinRatio,
11225
+ epic: this._volatilityOdds[2] * wt("client", { coinRatio: 20 }).coinRatio
11226
11226
  }, this.instance.interactive = !0, this.instance.buttonMode = !0, this._addBigWinContainer(), await Promise.all([this._addBlackout(), this._addTitle(), this._addCoinsLabel(), this._addCurrencyLabel()]), this.instance.sortChildren(), this.instance.buttonMode = !0, this.instance.interactive = !0, this.instance.hide(), this._bigWinContainer.sortChildren(), this.on("skip.bigwin:active", this.name, () => {
11227
11227
  this.skip();
11228
11228
  }), this;
@@ -11321,7 +11321,7 @@ class Zc extends Ct {
11321
11321
  }
11322
11322
  /** Starts Big Win callback */
11323
11323
  async _big() {
11324
- this._debug("big"), this._currencyTextComponent.text = vt("currency", "EUR"), this._hasLabel && (this._labelTextComponent.show(), this._labelTextComponent.text = `${"big".toLocaleUpperCase()} WIN`), this.instance.show(), this._bigWinContainer.hide(), await this._blackoutComponent.turnOn(
11324
+ this._debug("big"), this._currencyTextComponent.text = wt("currency", "EUR"), this._hasLabel && (this._labelTextComponent.show(), this._labelTextComponent.text = `${"big".toLocaleUpperCase()} WIN`), this.instance.show(), this._bigWinContainer.hide(), await this._blackoutComponent.turnOn(
11325
11325
  this._blackoutParams.color,
11326
11326
  this._blackoutParams.alpha,
11327
11327
  this._blackoutParams.duration
@@ -12054,8 +12054,8 @@ class vh extends Xe {
12054
12054
  o = g.clientX, h = u = g.clientY, r = !0, l = this.getValue(), f = 0, window.addEventListener("mousemove", d), window.addEventListener("mouseup", p);
12055
12055
  }, d = (g) => {
12056
12056
  if (r) {
12057
- const v = g.clientX - o, x = g.clientY - h;
12058
- Math.abs(x) > a ? (g.preventDefault(), this.$input.blur(), r = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(v) > a && p();
12057
+ const v = g.clientX - o, S = g.clientY - h;
12058
+ Math.abs(S) > a ? (g.preventDefault(), this.$input.blur(), r = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(v) > a && p();
12059
12059
  }
12060
12060
  if (!r) {
12061
12061
  const v = g.clientY - u;
@@ -12073,10 +12073,10 @@ class vh extends Xe {
12073
12073
  }
12074
12074
  _initSlider() {
12075
12075
  this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("hasSlider");
12076
- const e = (g, v, x, w, S) => (g - v) / (x - v) * (S - w) + w, t = (g) => {
12076
+ const e = (g, v, S, w, x) => (g - v) / (S - v) * (x - w) + w, t = (g) => {
12077
12077
  const v = this.$slider.getBoundingClientRect();
12078
- let x = e(g, v.left, v.right, this._min, this._max);
12079
- this._snapClampSetValue(x);
12078
+ let S = e(g, v.left, v.right, this._min, this._max);
12079
+ this._snapClampSetValue(S);
12080
12080
  }, i = (g) => {
12081
12081
  this._setDraggingStyle(!0), t(g.clientX), window.addEventListener("mousemove", n), window.addEventListener("mouseup", r);
12082
12082
  }, n = (g) => {
@@ -12091,8 +12091,8 @@ class vh extends Xe {
12091
12091
  g.touches.length > 1 || (this._hasScrollBar ? (h = g.touches[0].clientX, u = g.touches[0].clientY, o = !0) : l(g), window.addEventListener("touchmove", a, { passive: !1 }), window.addEventListener("touchend", c));
12092
12092
  }, a = (g) => {
12093
12093
  if (o) {
12094
- const v = g.touches[0].clientX - h, x = g.touches[0].clientY - u;
12095
- Math.abs(v) > Math.abs(x) ? l(g) : (window.removeEventListener("touchmove", a), window.removeEventListener("touchend", c));
12094
+ const v = g.touches[0].clientX - h, S = g.touches[0].clientY - u;
12095
+ Math.abs(v) > Math.abs(S) ? l(g) : (window.removeEventListener("touchmove", a), window.removeEventListener("touchend", c));
12096
12096
  } else
12097
12097
  g.preventDefault(), t(g.touches[0].clientX);
12098
12098
  }, c = () => {
@@ -12102,8 +12102,8 @@ class vh extends Xe {
12102
12102
  const _ = (g) => {
12103
12103
  if (Math.abs(g.deltaX) < Math.abs(g.deltaY) && this._hasScrollBar) return;
12104
12104
  g.preventDefault();
12105
- const x = this._normalizeMouseWheel(g) * this._step;
12106
- this._snapClampSetValue(this.getValue() + x), this.$input.value = this.getValue(), clearTimeout(m), m = setTimeout(d, p);
12105
+ const S = this._normalizeMouseWheel(g) * this._step;
12106
+ this._snapClampSetValue(this.getValue() + S), this.$input.value = this.getValue(), clearTimeout(m), m = setTimeout(d, p);
12107
12107
  };
12108
12108
  this.$slider.addEventListener("mousedown", i), this.$slider.addEventListener("touchstart", f, { passive: !1 }), this.$slider.addEventListener("wheel", _, { passive: !1 });
12109
12109
  }
@@ -13300,7 +13300,7 @@ class Ye {
13300
13300
  }
13301
13301
  }
13302
13302
  let ji = yi.from;
13303
- const Be = Math.PI / 180;
13303
+ const Le = Math.PI / 180;
13304
13304
  function ze(s, e) {
13305
13305
  if (!s)
13306
13306
  return;
@@ -13371,7 +13371,7 @@ var At;
13371
13371
  s[s.Spawn = 0] = "Spawn", s[s.Normal = 2] = "Normal", s[s.Late = 5] = "Late";
13372
13372
  })(At || (At = {}));
13373
13373
  const In = We.shared, hi = Symbol("Position particle per emitter position");
13374
- class yt {
13374
+ class vt {
13375
13375
  /**
13376
13376
  * @param particleParent The container to add the particles to.
13377
13377
  * @param particleImages A texture or array of textures to use
@@ -13394,7 +13394,7 @@ class yt {
13394
13394
  * @param constructor The behavior class to register.
13395
13395
  */
13396
13396
  static registerBehavior(e) {
13397
- yt.knownBehaviors[e.type] = e;
13397
+ vt.knownBehaviors[e.type] = e;
13398
13398
  }
13399
13399
  /**
13400
13400
  * Time between particle spawns in seconds. If this value is not a number greater than 0,
@@ -13424,7 +13424,7 @@ class yt {
13424
13424
  return;
13425
13425
  this.cleanup(), this._origConfig = e, this.minLifetime = e.lifetime.min, this.maxLifetime = e.lifetime.max, e.ease ? this.customEase = typeof e.ease == "function" ? e.ease : Sa(e.ease) : this.customEase = null, this.particlesPerWave = 1, e.particlesPerWave && e.particlesPerWave > 1 && (this.particlesPerWave = e.particlesPerWave), this.frequency = e.frequency, this.spawnChance = typeof e.spawnChance == "number" && e.spawnChance > 0 ? e.spawnChance : 1, this.emitterLifetime = e.emitterLifetime || -1, this.maxParticles = e.maxParticles > 0 ? e.maxParticles : 1e3, this.addAtBack = !!e.addAtBack, this.rotation = 0, this.ownerPos.set(0), e.pos ? this.spawnPos.copyFrom(e.pos) : this.spawnPos.set(0), this._prevEmitterPos.copyFrom(this.spawnPos), this._prevPosIsValid = !1, this._spawnTimer = 0, this.emit = e.emit === void 0 ? !0 : !!e.emit, this.autoUpdate = !!e.autoUpdate;
13426
13426
  const t = e.behaviors.map((i) => {
13427
- const n = yt.knownBehaviors[i.type];
13427
+ const n = vt.knownBehaviors[i.type];
13428
13428
  return n ? new n(i.config) : (console.error(`Unknown behavior: ${i.type}`), null);
13429
13429
  }).filter((i) => !!i);
13430
13430
  t.push(hi), t.sort((i, n) => i === hi ? n.order === At.Spawn ? 1 : -1 : n === hi ? i.order === At.Spawn ? -1 : 1 : i.order - n.order), this.initBehaviors = t.slice(), this.updateBehaviors = t.filter((i) => i !== hi && i.updateParticle), this.recycleBehaviors = t.filter((i) => i !== hi && i.recycleParticle);
@@ -13434,7 +13434,7 @@ class yt {
13434
13434
  * @param type The behavior type to find.
13435
13435
  */
13436
13436
  getBehavior(e) {
13437
- return yt.knownBehaviors[e] && this.initBehaviors.find((t) => t instanceof yt.knownBehaviors[e]) || null;
13437
+ return vt.knownBehaviors[e] && this.initBehaviors.find((t) => t instanceof vt.knownBehaviors[e]) || null;
13438
13438
  }
13439
13439
  /**
13440
13440
  * Fills the pool with the specified number of particles, so that they don't have to be instantiated later.
@@ -13663,7 +13663,7 @@ class yt {
13663
13663
  this._poolFirst = this._parent = this.spawnPos = this.ownerPos = this.customEase = this._completeCallback = null, this.initBehaviors.length = this.updateBehaviors.length = this.recycleBehaviors.length = 0;
13664
13664
  }
13665
13665
  }
13666
- yt.knownBehaviors = {};
13666
+ vt.knownBehaviors = {};
13667
13667
  class fs {
13668
13668
  constructor(e) {
13669
13669
  this.x = e.x, this.y = e.y, this.w = e.w, this.h = e.h;
@@ -13773,14 +13773,14 @@ function Oh(s) {
13773
13773
  const e = this.first.value, t = this.first.next.value, i = (t.r - e.r) * s + e.r, n = (t.g - e.g) * s + e.g, r = (t.b - e.b) * s + e.b;
13774
13774
  return gn(i, n, r);
13775
13775
  }
13776
- function Lh(s) {
13776
+ function Bh(s) {
13777
13777
  this.ease && (s = this.ease(s));
13778
13778
  let e = this.first, t = e.next;
13779
13779
  for (; s > t.time; )
13780
13780
  e = t, t = t.next;
13781
13781
  return s = (s - e.time) / (t.time - e.time), (t.value - e.value) * s + e.value;
13782
13782
  }
13783
- function Bh(s) {
13783
+ function Lh(s) {
13784
13784
  this.ease && (s = this.ease(s));
13785
13785
  let e = this.first, t = e.next;
13786
13786
  for (; s > t.time; )
@@ -13817,7 +13817,7 @@ class Ki {
13817
13817
  * @param first.isStepped If the values should be stepped instead of interpolated linearly.
13818
13818
  */
13819
13819
  reset(e) {
13820
- this.first = e, e.next && e.next.time >= 1 ? this.interpolate = this.isColor ? Oh : Rh : e.isStepped ? this.interpolate = this.isColor ? Yh : Dh : this.interpolate = this.isColor ? Bh : Lh, this.ease = this.first.ease;
13820
+ this.first = e, e.next && e.next.time >= 1 ? this.interpolate = this.isColor ? Oh : Rh : e.isStepped ? this.interpolate = this.isColor ? Yh : Dh : this.interpolate = this.isColor ? Lh : Bh, this.ease = this.first.ease;
13821
13821
  }
13822
13822
  }
13823
13823
  class gs {
@@ -13932,7 +13932,7 @@ ws.type = "blendMode";
13932
13932
  ws.editorConfig = null;
13933
13933
  class bs {
13934
13934
  constructor(e) {
13935
- this.order = At.Spawn, this.spacing = e.spacing * Be, this.start = e.start * Be, this.distance = e.distance;
13935
+ this.order = At.Spawn, this.spacing = e.spacing * Le, this.start = e.start * Le, this.distance = e.distance;
13936
13936
  }
13937
13937
  initParticles(e) {
13938
13938
  let t = 0, i = e;
@@ -14095,7 +14095,7 @@ Ts.type = "textureRandom";
14095
14095
  Ts.editorConfig = null;
14096
14096
  class Ps {
14097
14097
  constructor(e) {
14098
- this.order = At.Normal, this.minStart = e.minStart * Be, this.maxStart = e.maxStart * Be, this.minSpeed = e.minSpeed * Be, this.maxSpeed = e.maxSpeed * Be, this.accel = e.accel * Be;
14098
+ this.order = At.Normal, this.minStart = e.minStart * Le, this.maxStart = e.maxStart * Le, this.minSpeed = e.minSpeed * Le, this.maxSpeed = e.maxSpeed * Le, this.accel = e.accel * Le;
14099
14099
  }
14100
14100
  initParticles(e) {
14101
14101
  let t = e;
@@ -14114,7 +14114,7 @@ Ps.type = "rotation";
14114
14114
  Ps.editorConfig = null;
14115
14115
  class Fs {
14116
14116
  constructor(e) {
14117
- this.order = At.Normal, this.min = e.min * Be, this.max = e.max * Be;
14117
+ this.order = At.Normal, this.min = e.min * Le, this.max = e.max * Le;
14118
14118
  }
14119
14119
  initParticles(e) {
14120
14120
  let t = e;
@@ -14126,7 +14126,7 @@ Fs.type = "rotationStatic";
14126
14126
  Fs.editorConfig = null;
14127
14127
  class Ms {
14128
14128
  constructor(e) {
14129
- this.order = At.Late + 1, this.rotation = (e.rotation || 0) * Be;
14129
+ this.order = At.Late + 1, this.rotation = (e.rotation || 0) * Le;
14130
14130
  }
14131
14131
  initParticles(e) {
14132
14132
  let t = e;
@@ -14228,7 +14228,7 @@ class Os {
14228
14228
  }
14229
14229
  Os.type = "moveSpeed";
14230
14230
  Os.editorConfig = null;
14231
- class Ls {
14231
+ class Bs {
14232
14232
  constructor(e) {
14233
14233
  this.order = At.Late, this.min = e.min, this.max = e.max;
14234
14234
  }
@@ -14244,30 +14244,30 @@ class Ls {
14244
14244
  e.x += i.x * t, e.y += i.y * t;
14245
14245
  }
14246
14246
  }
14247
- Ls.type = "moveSpeedStatic";
14248
- Ls.editorConfig = null;
14249
- yt.registerBehavior(ms);
14250
- yt.registerBehavior(gs);
14251
- yt.registerBehavior(_s);
14252
- yt.registerBehavior(vs);
14253
- yt.registerBehavior(ys);
14254
- yt.registerBehavior(ws);
14255
- yt.registerBehavior(bs);
14256
- yt.registerBehavior(xs);
14257
- yt.registerBehavior(Ss);
14258
- yt.registerBehavior(As);
14259
- yt.registerBehavior(Cs);
14260
- yt.registerBehavior(ks);
14261
- yt.registerBehavior(Ts);
14262
- yt.registerBehavior(Ps);
14263
- yt.registerBehavior(Fs);
14264
- yt.registerBehavior(Ms);
14265
- yt.registerBehavior(Es);
14266
- yt.registerBehavior(Is);
14267
- yt.registerBehavior(Me);
14268
- yt.registerBehavior(Rs);
14269
- yt.registerBehavior(Os);
14270
- yt.registerBehavior(Ls);
14247
+ Bs.type = "moveSpeedStatic";
14248
+ Bs.editorConfig = null;
14249
+ vt.registerBehavior(ms);
14250
+ vt.registerBehavior(gs);
14251
+ vt.registerBehavior(_s);
14252
+ vt.registerBehavior(vs);
14253
+ vt.registerBehavior(ys);
14254
+ vt.registerBehavior(ws);
14255
+ vt.registerBehavior(bs);
14256
+ vt.registerBehavior(xs);
14257
+ vt.registerBehavior(Ss);
14258
+ vt.registerBehavior(As);
14259
+ vt.registerBehavior(Cs);
14260
+ vt.registerBehavior(ks);
14261
+ vt.registerBehavior(Ts);
14262
+ vt.registerBehavior(Ps);
14263
+ vt.registerBehavior(Fs);
14264
+ vt.registerBehavior(Ms);
14265
+ vt.registerBehavior(Es);
14266
+ vt.registerBehavior(Is);
14267
+ vt.registerBehavior(Me);
14268
+ vt.registerBehavior(Rs);
14269
+ vt.registerBehavior(Os);
14270
+ vt.registerBehavior(Bs);
14271
14271
  class ou extends Ct {
14272
14272
  constructor() {
14273
14273
  super(...arguments);
@@ -14309,7 +14309,7 @@ class ou extends Ct {
14309
14309
  }
14310
14310
  /** Starts particles animation */
14311
14311
  start() {
14312
- this._emitter || (this._emitter = new yt(this.instance, this._emitterConfig), this._emitter.emit = !0, this._elapsed = Date.now(), this._particlesTL = this._particlesTL = Qt(this.name, { repeat: -1 }).call(() => this._updateParticles()).call(() => {
14312
+ this._emitter || (this._emitter = new vt(this.instance, this._emitterConfig), this._emitter.emit = !0, this._elapsed = Date.now(), this._particlesTL = this._particlesTL = Qt(this.name, { repeat: -1 }).call(() => this._updateParticles()).call(() => {
14313
14313
  }, null, 1 / this._fps));
14314
14314
  }
14315
14315
  /** Stops particle animation */
@@ -14377,10 +14377,10 @@ class lu extends Ct {
14377
14377
  function hn(s, e, t = !0) {
14378
14378
  for (const i in e) {
14379
14379
  const n = e[i];
14380
- if (Bn(n)) {
14380
+ if (Ln(n)) {
14381
14381
  if (!(i in s) || s[i] === null || s[i] === void 0)
14382
14382
  s[i] = {};
14383
- else if (!Bn(s[i]))
14383
+ else if (!Ln(s[i]))
14384
14384
  if (t)
14385
14385
  s[i] = {};
14386
14386
  else
@@ -14820,7 +14820,7 @@ class ka extends Ct {
14820
14820
  }
14821
14821
  }
14822
14822
  function it(s, e, t) {
14823
- return vt("skipActive", !1) && t !== void 0 ? t : vt("fastPlayEnabled", !1) ? e : s;
14823
+ return wt("skipActive", !1) && t !== void 0 ? t : wt("fastPlayEnabled", !1) ? e : s;
14824
14824
  }
14825
14825
  class uu extends ka {
14826
14826
  constructor() {
@@ -14903,6 +14903,7 @@ class fu extends Ct {
14903
14903
  y(this, "_textBets");
14904
14904
  y(this, "_textDescription");
14905
14905
  y(this, "_current", null);
14906
+ y(this, "_isEnabled", !0);
14906
14907
  this._config = t, this.instance.disabled(
14907
14908
  this,
14908
14909
  () => {
@@ -14922,6 +14923,8 @@ class fu extends Ct {
14922
14923
  this.emit(`${this.name}:click`, { x: n, y: r });
14923
14924
  }), this.on("renderer:pointerup", this.name, (i) => {
14924
14925
  i.target && (i.target === this.instance || i.target === this._spritePlate) || this.close();
14926
+ }), truelogic.emitter.game.on("stake:changed", () => {
14927
+ this._current && this.setPayouts(this._current.code);
14925
14928
  }), this._hintContainer.addChild(
14926
14929
  this._spritePlate,
14927
14930
  this._spriteSymbol,
@@ -14940,41 +14943,98 @@ class fu extends Ct {
14940
14943
  }
14941
14944
  /** Opens hint */
14942
14945
  async open(t, i, n) {
14946
+ var l, f;
14947
+ if (!this._isEnabled) return;
14943
14948
  this.close();
14944
- const r = this._getPosition("plate", t, n);
14945
- if (this._spritePlate.position.set(r.x, r.y), this._spritePlate.scale.x = this._config.shouldReflect && t === this._config.numReels - 1 ? -1 : 1, this._spriteSymbol.texture = this._config.textures.symbols.get(n), this._hintContainer.position = this._config.grid[t][i], this._config.descriptions.has(n)) {
14946
- this._textBets.visible = !1, this._textLengths.visible = !1, this._textDescription.visible = !0, this._textDescription.text = this._config.descriptions.get(n);
14947
- const o = this._getPosition("description", t, n);
14948
- this._textDescription.style = this._getStyle("styleDescription", t, n), this._textDescription.position.set(o.x, o.y);
14949
- } else {
14950
- if (!this._config.paytable[n]) return;
14951
- this._textDescription.visible = !1, this._textBets.visible = !0, this._textLengths.visible = !0;
14952
- const { lengths: o, bets: h } = this._config.paytable[n].reduce(
14953
- (f, a, c) => (a > 0 && (f.lengths.push(c + this._config.startLength), f.bets.push(`${a / vt("client", { coinRatio: 20 }).coinRatio}${this._config.betsSuffix}`)), f),
14954
- { lengths: [], bets: [] }
14955
- );
14956
- this._config.sort === 0 && (o.reverse(), h.reverse()), this._textLengths.text = o.join(`
14957
- `), this._textBets.text = h.join(`
14958
- `), this._textLengths.style = this._getStyle("styleLengths", t, n), this._textBets.style = this._getStyle("styleBets", t, n);
14959
- const u = this._getPosition("lengths", t, n), l = this._getPosition("bets", t, n);
14960
- this._textLengths.position.set(u.x, u.y), this._textBets.position.set(l.x, l.y);
14961
- }
14949
+ const r = (l = this._config.paytable) == null ? void 0 : l[n];
14950
+ if (!r || !r.some((a) => a > 0))
14951
+ return;
14952
+ const o = this._getPosition("plate", t, n), h = this._getDirection(t);
14953
+ this._spritePlate.position.set(o.x, o.y);
14954
+ const u = ((f = this._config.reverseReels) != null && f.length || this._config.shouldReflect) && h === "right";
14955
+ if (this._spritePlate.scale.x = u ? -1 : 1, this._spriteSymbol.texture = this._config.textures.symbols.get(n), this._hintContainer.position = this._config.grid[t][i], this._config.paytable[n] ? this.setPayouts(n, t) : (this._textBets.visible = !1, this._textLengths.visible = !1), this._config.descriptions.has(n)) {
14956
+ this._textDescription.visible = !0, this._textDescription.text = this._config.descriptions.get(n);
14957
+ const a = this._getPosition("description", t, n);
14958
+ this._textDescription.style = this._getStyle("styleDescription", t, n), this._textDescription.position.set(a.x, a.y);
14959
+ } else
14960
+ this._textDescription.visible = !1;
14962
14961
  this.instance.addChild(this._hintContainer), this._current = { iReel: t, iRow: i, code: n }, this._config.events && this.emit(`${this.name}:open`, this._current);
14963
14962
  }
14964
14963
  /** Get actual property position */
14965
14964
  _getPosition(t, i, n) {
14966
- const r = i === this._config.numReels - 1 ? "right" : "left";
14965
+ const r = this._getDirection(i);
14967
14966
  return this._config.transformSymbols && this._config.transformSymbols[r] && this._config.transformSymbols[r].get(n) && this._config.transformSymbols[r].get(n).position && this._config.transformSymbols[r].get(n).position[t] ? this._config.transformSymbols[r].get(n).position[t] : this._config.transform[r].position[t];
14968
14967
  }
14968
+ /** Get direction for reel */
14969
+ _getDirection(t) {
14970
+ return this._config.reverseReels && this._config.reverseReels.includes(t) || (!this._config.reverseReels || this._config.reverseReels.length === 0) && typeof this._config.numReels == "number" && t === this._config.numReels - 1 ? "right" : "left";
14971
+ }
14972
+ /** Calculate adaptive text scale factor based on text width */
14973
+ _calculateScaleFactor(t) {
14974
+ const { maxWidth: i } = this._config;
14975
+ return !i || t <= i ? 1 : i / t;
14976
+ }
14977
+ /** Apply adaptive text scaling */
14978
+ _applyAdaptiveScale(t) {
14979
+ const i = this._calculateScaleFactor(t.width);
14980
+ t.scale.set(i);
14981
+ }
14969
14982
  /** Get actual property style */
14970
14983
  _getStyle(t, i, n) {
14971
- const r = i === this._config.numReels - 1 ? "right" : "left", o = this._config.transformSymbols && this._config.transformSymbols[r] && this._config.transformSymbols[r].get(n) && this._config.transformSymbols[r].get(n)[t], h = this._config.transform && this._config.transform[r] && this._config.transform[r][t];
14984
+ const r = this._getDirection(i), o = this._config.transformSymbols && this._config.transformSymbols[r] && this._config.transformSymbols[r].get(n) && this._config.transformSymbols[r].get(n)[t], h = this._config.transform && this._config.transform[r] && this._config.transform[r][t];
14972
14985
  return o ? this._config.transformSymbols[r].get(n)[t] : h ? this._config.transform[r][t] : this._config[t];
14973
14986
  }
14987
+ /** Updates payouts text based on current paytable (called on stake change) */
14988
+ setPayouts(t, i) {
14989
+ if (!this._config.paytable[t]) return;
14990
+ this._textBets.visible = !0, this._textLengths.visible = !0;
14991
+ const { lengths: n, bets: r } = this._config.paytable[t].reduce(
14992
+ (l, f, a) => {
14993
+ var c;
14994
+ if (f > 0)
14995
+ if (l.lengths.push(a + this._config.startLength), this._config.xBets ? !this._config.xBets.symbols || this._config.xBets.symbols.includes(t) : !1) {
14996
+ const p = this._config.coinRatio ?? 20, m = ((c = this._config.xBets) == null ? void 0 : c.suffix) ?? "";
14997
+ l.bets.push(`${f / p}${m}`);
14998
+ } else if (this._config.betsSuffix) {
14999
+ const p = this._config.coinRatio ?? 20;
15000
+ l.bets.push(`${f / p}${this._config.betsSuffix}`);
15001
+ } else
15002
+ l.bets.push(truelogic.cashFormatter.formatCoins(f, { showCurrency: !0 }));
15003
+ return l;
15004
+ },
15005
+ { lengths: [], bets: [] }
15006
+ );
15007
+ if (this._config.sort === 0 && (n.reverse(), r.reverse()), this._textLengths.text = n.join(`
15008
+ `), this._textBets.text = r.join(`
15009
+ `), i !== void 0) {
15010
+ this._textLengths.style = this._getStyle("styleLengths", i, t), this._textBets.style = this._getStyle("styleBets", i, t);
15011
+ const l = this._getPosition("lengths", i, t), f = this._getPosition("bets", i, t);
15012
+ this._textLengths.position.set(l.x, l.y), this._textBets.position.set(f.x, f.y);
15013
+ }
15014
+ this._textLengths.scale.set(1), this._textBets.scale.set(1), this._textDescription.scale.set(1);
15015
+ const o = this._textBets.width, h = this._textDescription.width;
15016
+ this._applyAdaptiveScale(this._textLengths), this._applyAdaptiveScale(this._textBets), this._applyAdaptiveScale(this._textDescription);
15017
+ const { maxWidth: u } = this._config;
15018
+ if (u && o > u) {
15019
+ const l = u / o;
15020
+ this._textLengths.scale.set(l), this._textBets.scale.set(l), this._textDescription.scale.set(l);
15021
+ } else if (u && this._textDescription.visible && h > u) {
15022
+ const l = u / h;
15023
+ this._textDescription.scale.set(l);
15024
+ }
15025
+ }
14974
15026
  /** Closes hint */
14975
15027
  async close() {
14976
15028
  this._current !== null && (this._config.events && this.emit(`${this.name}:close`, this._current), this._current = null, this.instance.removeChild(this._hintContainer));
14977
15029
  }
15030
+ /** Enable hints */
15031
+ enable() {
15032
+ this._isEnabled = !0;
15033
+ }
15034
+ /** Disable hints */
15035
+ disable() {
15036
+ this._isEnabled = !1, this.close();
15037
+ }
14978
15038
  }
14979
15039
  class Gh extends Ct {
14980
15040
  /** @constructor */
@@ -15253,7 +15313,7 @@ var si, cn, sr, ve, Hi, Pa, jn, vn, Fa = function() {
15253
15313
  }, tn, Di;
15254
15314
  for (tn = 0; tn < ur.length; tn++)
15255
15315
  Di = ur[tn], zn[Di + "X"] = Di, zn[Di + "Y"] = Di;
15256
- var La = {
15316
+ var Ba = {
15257
15317
  version: "3.13.0",
15258
15318
  name: "pixi",
15259
15319
  register: function(e, t, i) {
@@ -15294,9 +15354,9 @@ var La = {
15294
15354
  }
15295
15355
  }
15296
15356
  };
15297
- Ma() && si.registerPlugin(La);
15298
- ee.registerPlugin(La);
15299
- class Ba extends Ct {
15357
+ Ma() && si.registerPlugin(Ba);
15358
+ ee.registerPlugin(Ba);
15359
+ class La extends Ct {
15300
15360
  constructor(t, i, n) {
15301
15361
  super(t);
15302
15362
  y(this, "_config");
@@ -15541,7 +15601,7 @@ class Ba extends Ct {
15541
15601
  return this;
15542
15602
  }
15543
15603
  }
15544
- class gu extends Ba {
15604
+ class gu extends La {
15545
15605
  constructor(e, t) {
15546
15606
  super("payout.component", e, t);
15547
15607
  }
@@ -15581,7 +15641,7 @@ class gu extends Ba {
15581
15641
  this._timelines.push(u), await u;
15582
15642
  }
15583
15643
  }
15584
- class _u extends Ba {
15644
+ class _u extends La {
15585
15645
  constructor(t, i) {
15586
15646
  super("total-payout.component", t, i ?? t.grid);
15587
15647
  y(this, "_timelineTotal", null);
@@ -15640,7 +15700,7 @@ function oc(s, e, t = 30, i = t) {
15640
15700
  n.lineStyle(1, 16777215, (100 - o * h) / 100), n.moveTo(0, e - (i - h)), n.lineTo(s, e - (i - h));
15641
15701
  return n;
15642
15702
  }
15643
- var Le = /* @__PURE__ */ ((s) => (s.slot = "slot", s.cascade = "cascade", s))(Le || {}), Da = /* @__PURE__ */ ((s) => (s.clear = "clear", s.fall = "fall", s.move = "move", s.refill = "refill", s))(Da || {});
15703
+ var Be = /* @__PURE__ */ ((s) => (s.slot = "slot", s.cascade = "cascade", s))(Be || {}), Da = /* @__PURE__ */ ((s) => (s.clear = "clear", s.fall = "fall", s.move = "move", s.refill = "refill", s))(Da || {});
15644
15704
  class vu extends Ct {
15645
15705
  /** @constructor */
15646
15706
  constructor(t, i) {
@@ -15725,7 +15785,7 @@ class vu extends Ct {
15725
15785
  if (i === null) return;
15726
15786
  const n = {
15727
15787
  name: this._config.sounds.symbolsStop.get(i),
15728
- tag: vt("skipActive", !1) ? "stop_reel" : `symbol_${i}_reel_${this.iReel}`
15788
+ tag: wt("skipActive", !1) ? "stop_reel" : `symbol_${i}_reel_${this.iReel}`
15729
15789
  };
15730
15790
  this.emit("sounds:play", n), this._playingSounds.push(n);
15731
15791
  }
@@ -15847,7 +15907,7 @@ class vu extends Ct {
15847
15907
  /** Animates intrigue */
15848
15908
  async animateIntrigue() {
15849
15909
  const t = this._config.components.intrigue.motion;
15850
- this._breakableSleep = me({}, { duration: it.apply(this, t.delay) / 1e3 }), await this._breakableSleep, vt("skipActive", !1) || await this.setTimeScale(it(...t.timeScale), {
15910
+ this._breakableSleep = me({}, { duration: it.apply(this, t.delay) / 1e3 }), await this._breakableSleep, wt("skipActive", !1) || await this.setTimeScale(it(...t.timeScale), {
15851
15911
  duration: it.apply(this, t.duration) / 1e3,
15852
15912
  ease: t.ease
15853
15913
  });
@@ -15906,7 +15966,7 @@ class vu extends Ct {
15906
15966
  const { timeScale: t } = this._config.timings.cascade.clear;
15907
15967
  return this._symbols.forEach((i) => {
15908
15968
  this._animateMotion({ type: "clear", symbol: i });
15909
- }), Bi.wait(
15969
+ }), Li.wait(
15910
15970
  () => this._tlMotion.then(),
15911
15971
  () => this._tlMotion.timeScale(it(...t)),
15912
15972
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
@@ -15918,7 +15978,7 @@ class vu extends Ct {
15918
15978
  const { timeScale: n } = this._config.timings.cascade.fall;
15919
15979
  return this._symbols.forEach((r) => {
15920
15980
  this._animateMotion({ type: "fall", symbol: r, toPosition: r.iRow, hasIntrigue: i });
15921
- }), this._tlMotion.timeScale(vt("skipActive", !1) ? this._config.cascade.skipTimeScale : 1), Bi.wait(
15981
+ }), this._tlMotion.timeScale(wt("skipActive", !1) ? this._config.cascade.skipTimeScale : 1), Li.wait(
15922
15982
  () => this._tlMotion.then(),
15923
15983
  () => this._tlMotion.timeScale(it(...n)),
15924
15984
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
@@ -15952,7 +16012,7 @@ class vu extends Ct {
15952
16012
  playingReelIdx: r,
15953
16013
  hasIntrigue: o
15954
16014
  });
15955
- }), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
16015
+ }), this._tlMotion.call(() => this.instance.removeMask()), Li.wait(
15956
16016
  () => this._tlMotion.then(),
15957
16017
  () => this._tlMotion.timeScale(it(...h.timeScale)),
15958
16018
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
@@ -15965,7 +16025,7 @@ class vu extends Ct {
15965
16025
  return t.reverse().forEach(({ from: r, to: o }, h) => {
15966
16026
  const u = this.getSymbol(r), l = this.getSymbol(o), { iRow: f } = u, a = new Mt().copyFrom(u);
15967
16027
  u.iRow = l.iRow, l.iRow = f, l.position.copyFrom(a), this._symbols[r + 1] = l, this._symbols[o + 1] = u, this._animateMotion({ type: "move", symbol: u, toPosition: o, playingRowIdx: h, playingReelIdx: i });
15968
- }), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
16028
+ }), this._tlMotion.call(() => this.instance.removeMask()), Li.wait(
15969
16029
  () => this._tlMotion.then(),
15970
16030
  () => this._tlMotion.timeScale(it(...n)),
15971
16031
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
@@ -15985,7 +16045,7 @@ class vu extends Ct {
15985
16045
  playingReelIdx: n,
15986
16046
  hasIntrigue: r
15987
16047
  });
15988
- }), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
16048
+ }), this._tlMotion.call(() => this.instance.removeMask()), Li.wait(
15989
16049
  () => this._tlMotion.then(),
15990
16050
  () => this._tlMotion.timeScale(it(...o)),
15991
16051
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
@@ -16007,8 +16067,8 @@ class vu extends Ct {
16007
16067
  toPosition: -1,
16008
16068
  hasIntrigue: !1,
16009
16069
  ...t
16010
- }, { height: g, indentTop: v } = this._config.components.symbol.size, x = m * (g + v), w = it(...i) + (this._config.cascade.distanceRelative ? x : 0), S = it(...r) * d, b = _ ? 0 : it(...o) * p;
16011
- let C = S + b;
16070
+ }, { height: g, indentTop: v } = this._config.components.symbol.size, S = m * (g + v), w = it(...i) + (this._config.cascade.distanceRelative ? S : 0), x = it(...r) * d, b = _ ? 0 : it(...o) * p;
16071
+ let C = x + b;
16012
16072
  if (_) {
16013
16073
  const { rowsIntrigueDelay: z, reelsIntrigueDelay: q, onRefill: j } = this._config.intrigue;
16014
16074
  j && (C += it(...z) * d, C += it(...q));
@@ -16037,7 +16097,7 @@ class vu extends Ct {
16037
16097
  distance: F,
16038
16098
  durationDown: T,
16039
16099
  durationUp: E,
16040
- easeDown: L,
16100
+ easeDown: B,
16041
16101
  easeUp: D,
16042
16102
  scaleX: N,
16043
16103
  scaleY: Y
@@ -16049,7 +16109,7 @@ class vu extends Ct {
16049
16109
  duration: it(...T),
16050
16110
  scaleX: it(...N),
16051
16111
  scaleY: it(...Y),
16052
- ease: L
16112
+ ease: B
16053
16113
  },
16054
16114
  C + it(...n)
16055
16115
  ).to(
@@ -16073,7 +16133,7 @@ class vu extends Ct {
16073
16133
  }
16074
16134
  const ci = () => {
16075
16135
  var s;
16076
- return vt("test", !1) && !!((s = vt("client", null)) != null && s.cheat);
16136
+ return wt("test", !1) && !!((s = wt("client", null)) != null && s.cheat);
16077
16137
  };
16078
16138
  class lc {
16079
16139
  constructor() {
@@ -16089,11 +16149,11 @@ class lc {
16089
16149
  [
16090
16150
  {
16091
16151
  name: t.animationTypeSlot,
16092
- value: this._config.components.reel.animationType === Le.slot
16152
+ value: this._config.components.reel.animationType === Be.slot
16093
16153
  },
16094
16154
  {
16095
16155
  name: t.animationTypeCascade,
16096
- value: this._config.components.reel.animationType === Le.cascade
16156
+ value: this._config.components.reel.animationType === Be.cascade
16097
16157
  }
16098
16158
  ].forEach(({ name: n, value: r }) => {
16099
16159
  this.emit("cheat.custom:add", { name: n, value: r, group: e });
@@ -16101,10 +16161,10 @@ class lc {
16101
16161
  if (o !== e) return null;
16102
16162
  switch (n) {
16103
16163
  case t.animationTypeSlot:
16104
- this._config.components.reel.animationType = r ? Le.slot : Le.cascade;
16164
+ this._config.components.reel.animationType = r ? Be.slot : Be.cascade;
16105
16165
  break;
16106
16166
  case t.animationTypeCascade:
16107
- this._config.components.reel.animationType = r ? Le.cascade : Le.slot;
16167
+ this._config.components.reel.animationType = r ? Be.cascade : Be.slot;
16108
16168
  break;
16109
16169
  }
16110
16170
  });
@@ -16364,7 +16424,7 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16364
16424
  components: {
16365
16425
  reel: {
16366
16426
  numRows: 3,
16367
- animationType: Le.slot,
16427
+ animationType: Be.slot,
16368
16428
  intrigue: {
16369
16429
  onRefill: !0,
16370
16430
  onStop: !0,
@@ -16544,7 +16604,6 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16544
16604
  },
16545
16605
  hints: {
16546
16606
  enabled: !1,
16547
- shouldReflect: !1,
16548
16607
  events: !1,
16549
16608
  sort: Ta.asc,
16550
16609
  assetsName: {
@@ -16554,7 +16613,6 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16554
16613
  plate: "hint.png"
16555
16614
  },
16556
16615
  startLength: 0,
16557
- betsSuffix: " × bet",
16558
16616
  descriptions: /* @__PURE__ */ new Map(),
16559
16617
  styleLengths: { fontFamily: "Ui", fontSize: 40, lineHeight: 50, fill: 16777215 },
16560
16618
  styleBets: { fontFamily: "Ui", fontSize: 35, lineHeight: 50, fill: 16777215 },
@@ -16670,7 +16728,7 @@ class yu extends Ct {
16670
16728
  /** Calc min stop time (ms) */
16671
16729
  get minSpinTime() {
16672
16730
  const t = this._config.components.reel, i = this._config.spinDelay.stop[0] || 0, n = this._config.order.stop.length, { numRows: r } = t;
16673
- if (t.animationType === Le.cascade) {
16731
+ if (t.animationType === Be.cascade) {
16674
16732
  const { duration: f, rowsDelay: a, reelsDelay: c } = t.timings.cascade[Da.fall], { distance: d, durationDown: p, durationUp: m } = t.cascade.bounce, _ = !!d[0];
16675
16733
  return (c[0] * (n - 1) + f[0] + a[0] * (r - 1) + (_ ? p[0] + m[0] : 0)) * 1e3;
16676
16734
  }
@@ -16773,27 +16831,27 @@ class yu extends Ct {
16773
16831
  }
16774
16832
  }
16775
16833
  /** Stops spin */
16776
- async stop(t) {
16834
+ async stop(t, i) {
16777
16835
  if (!this._isMotion) return;
16778
16836
  await Promise.all(this._startPromises);
16779
- const i = [], { numRows: n } = this._config.components.reel, r = this.getIntrigueReels(t), o = this._config.components.reel.intrigue.onStop;
16780
- for (const [h, u] of this._config.order.stop.entries()) {
16781
- const l = this._config.components.reel.animationType === Le.slot ? it(...this._config.spinDelay.stop) : 0;
16782
- h > 0 && l && !vt("skipActive", !1) && (this._breakableSleep = me({}, { duration: l / 1e3 }), await this._breakableSleep);
16783
- let f = !1;
16784
- for (let a = 0; a < u.length; a++) {
16785
- const c = u[a];
16837
+ const n = [], { numRows: r } = this._config.components.reel, o = i === !1 ? [] : i ?? (t ? this.getIntrigueReels(t) : []), h = this._config.components.reel.intrigue.onStop && o.length > 0;
16838
+ for (const [u, l] of this._config.order.stop.entries()) {
16839
+ const f = this._config.components.reel.animationType === Be.slot ? it(...this._config.spinDelay.stop) : 0;
16840
+ u > 0 && f && !wt("skipActive", !1) && (this._breakableSleep = me({}, { duration: f / 1e3 }), await this._breakableSleep);
16841
+ let a = !1;
16842
+ for (let c = 0; c < l.length; c++) {
16843
+ const d = l[c];
16786
16844
  if (!t) {
16787
- i.push(this._reels[c].stop());
16845
+ n.push(this._reels[d].stop());
16788
16846
  break;
16789
16847
  }
16790
- f = o && r.includes(c) && !vt("skipActive", !1), f && (await Promise.all(i), this._config.components.intrigue.enabled && this._intrigueComponent.start(c));
16791
- const d = t.slice(c * n, c * n + n);
16792
- i.push(this._reels[c].stop(d, f));
16848
+ a = h && o.includes(d) && !wt("skipActive", !1), a && (await Promise.all(n), this._config.components.intrigue.enabled && this._intrigueComponent.start(d));
16849
+ const p = t.slice(d * r, d * r + r);
16850
+ n.push(this._reels[d].stop(p, a));
16793
16851
  }
16794
- f && (await Promise.all(i), this._config.components.intrigue.enabled && this._intrigueComponent.stop());
16852
+ a && (await Promise.all(n), this._config.components.intrigue.enabled && this._intrigueComponent.stop());
16795
16853
  }
16796
- await Promise.all(i), this._isMotion = !1, this._config.events.stop && this.emit(`${this.name}:stop`), this._config.components.hints.enabled && (this._hintsComponent.disabled = !1);
16854
+ await Promise.all(n), this._isMotion = !1, this._config.events.stop && this.emit(`${this.name}:stop`), this._config.components.hints.enabled && (this._hintsComponent.disabled = !1);
16797
16855
  }
16798
16856
  /** Stops spin force */
16799
16857
  async stopForce(t = []) {
@@ -16804,30 +16862,30 @@ class yu extends Ct {
16804
16862
  ), this._isMotion = !1;
16805
16863
  }
16806
16864
  /** */
16807
- async refill(t, i = [], n = []) {
16808
- this._config.components.reel.cascade.refillAwaitsMove ? (await this._animateMove(n), await this._animateRefill(t, i)) : await this._animateMoveAndRefill(t, i, n);
16865
+ async refill(t, i = [], n = [], r) {
16866
+ this._config.components.reel.cascade.refillAwaitsMove ? (await this._animateMove(n), await this._animateRefill(t, i, r)) : await this._animateMoveAndRefill(t, i, n, r);
16809
16867
  }
16810
16868
  /** */
16811
- async _animateMoveAndRefill(t, i, n) {
16812
- const { numRows: r } = this._config.components.reel, o = this._getIReelsFromPositions(i), h = this._config.components.reel.intrigue.onRefill ? this.getIntrigueReels(t, i) : [], u = [];
16813
- let l = -1;
16814
- for (let f = 0; f < o.length; f++) {
16815
- const a = o[f], c = this.getReel(a), d = t.slice(a * r, a * r + r), p = i.filter((x) => c.getIndexes().includes(x)).map((x) => c.getIRowFromIndex(x)), m = n.filter((x) => c.getIndexes().includes(x.from)).map(({ from: x, to: w }) => ({ from: c.getIRowFromIndex(x), to: c.getIRowFromIndex(w) })), _ = h.includes(a);
16816
- _ && !vt("skipActive", !1) && await Promise.all(u);
16817
- const g = _ ? 0 : ++l, v = c.moveAndRefill(
16818
- d,
16869
+ async _animateMoveAndRefill(t, i, n, r) {
16870
+ const { numRows: o } = this._config.components.reel, h = this._getIReelsFromPositions(i), u = r === !1 ? [] : r ?? (this._config.components.reel.intrigue.onRefill ? this.getIntrigueReels(t, i) : []), l = [];
16871
+ let f = -1;
16872
+ for (let a = 0; a < h.length; a++) {
16873
+ const c = h[a], d = this.getReel(c), p = t.slice(c * o, c * o + o), m = i.filter((w) => d.getIndexes().includes(w)).map((w) => d.getIRowFromIndex(w)), _ = n.filter((w) => d.getIndexes().includes(w.from)).map(({ from: w, to: x }) => ({ from: d.getIRowFromIndex(w), to: d.getIRowFromIndex(x) })), g = u.includes(c);
16874
+ g && !wt("skipActive", !1) && await Promise.all(l);
16875
+ const v = g ? 0 : ++f, S = d.moveAndRefill(
16819
16876
  p,
16820
16877
  m,
16821
- g,
16822
- h.includes(a)
16878
+ _,
16879
+ v,
16880
+ u.includes(c)
16823
16881
  );
16824
- if (_ && !vt("skipActive", !1)) {
16825
- const { enabled: x } = this._config.components.intrigue;
16826
- x && this._intrigueComponent.start(a), await v, x && this._intrigueComponent.stop(a);
16882
+ if (g && !wt("skipActive", !1)) {
16883
+ const { enabled: w } = this._config.components.intrigue;
16884
+ w && this._intrigueComponent.start(c), await S, w && this._intrigueComponent.stop(c);
16827
16885
  } else
16828
- u.push(v);
16886
+ l.push(S);
16829
16887
  }
16830
- await Promise.all(u);
16888
+ await Promise.all(l);
16831
16889
  }
16832
16890
  /** */
16833
16891
  async _animateMove(t) {
@@ -16840,12 +16898,12 @@ class yu extends Ct {
16840
16898
  );
16841
16899
  }
16842
16900
  /** */
16843
- async _animateRefill(t, i) {
16844
- const { numRows: n } = this._config.components.reel, r = this._getIReelsFromPositions(i), o = this._config.components.reel.intrigue.onRefill ? this.getIntrigueReels(t, i) : [];
16901
+ async _animateRefill(t, i, n) {
16902
+ const { numRows: r } = this._config.components.reel, o = this._getIReelsFromPositions(i), h = n === !1 ? [] : n ?? (this._config.components.reel.intrigue.onRefill ? this.getIntrigueReels(t, i) : []);
16845
16903
  await Promise.all(
16846
- r.map((h, u) => {
16847
- const l = this.getReel(h), f = t.slice(h * n, h * n + n), a = i.filter((c) => l.getIndexes().includes(c)).map((c) => l.getIRowFromIndex(c));
16848
- return l.refill(f, a, u, o.includes(h));
16904
+ o.map((u, l) => {
16905
+ const f = this.getReel(u), a = t.slice(u * r, u * r + r), c = i.filter((d) => f.getIndexes().includes(d)).map((d) => f.getIRowFromIndex(d));
16906
+ return f.refill(a, c, l, h.includes(u));
16849
16907
  })
16850
16908
  );
16851
16909
  }
@@ -17049,6 +17107,14 @@ class yu extends Ct {
17049
17107
  getSymbolByVector(t, i) {
17050
17108
  return this._reels[t].getSymbol(i);
17051
17109
  }
17110
+ /** Enable hints */
17111
+ enableHints() {
17112
+ this._config.components.hints.enabled && this._hintsComponent && this._hintsComponent.enable();
17113
+ }
17114
+ /** Disable hints */
17115
+ disableHints() {
17116
+ this._config.components.hints.enabled && this._hintsComponent && this._hintsComponent.disable();
17117
+ }
17052
17118
  /** Gets symbol component (one dimensional coords) */
17053
17119
  getSymbolByPosition(t) {
17054
17120
  const { iReel: i, iRow: n } = this.getVectorByPosition(t);
@@ -17119,7 +17185,7 @@ class yu extends Ct {
17119
17185
  () => ue(this._config.texturesNames.static ? this._config.texturesNames.static.length : 8)
17120
17186
  )), this._config.components.reel.components.intrigue = this._config.components.intrigue, this._config.components.hints.enabled) {
17121
17187
  const { hints: l } = this._config.components;
17122
- !l.width && (l.width = this.slotWidth), !l.height && (l.height = this.slotHeight), !l.assetsName.symbols && (l.assetsName.symbols = this._config.assetsName.static), !l.paytable && (l.paytable = vt("client", { paytable: [] }).paytable), !l.styleDescription && (l.styleDescription = l.styleBets), !l.numReels && (l.numReels = this._config.numReels);
17188
+ !l.width && (l.width = this.slotWidth), !l.height && (l.height = this.slotHeight), !l.assetsName.symbols && (l.assetsName.symbols = this._config.assetsName.static), !l.paytable && (l.paytable = wt("client", { paytable: [] }).paytable), !l.styleDescription && (l.styleDescription = l.styleBets), !l.numReels && (l.numReels = this._config.numReels);
17123
17189
  }
17124
17190
  const r = new Map(
17125
17191
  ue(t * i).map((l) => [l, this.getPointByPosition(l)])
@@ -17661,7 +17727,7 @@ function Qn(s, e, t, i, n, r = !1, o = 0.01) {
17661
17727
  }
17662
17728
  return m;
17663
17729
  }
17664
- function Lu(s, e, t, i, n = 50, r = !1) {
17730
+ function Bu(s, e, t, i, n = 50, r = !1) {
17665
17731
  const o = [];
17666
17732
  let h = 0, u = s.x, l = s.y, f, a;
17667
17733
  o.push([0, 0]);
@@ -17676,7 +17742,7 @@ function Lu(s, e, t, i, n = 50, r = !1) {
17676
17742
  };
17677
17743
  return r && (c.intervals = o), c;
17678
17744
  }
17679
- function Bu(s, e, t = !0) {
17745
+ function Lu(s, e, t = !0) {
17680
17746
  const i = s.x - e.x, n = s.y - e.y;
17681
17747
  return t ? Math.round(Math.sqrt(i * i + n * n)) : Math.sqrt(i * i + n * n);
17682
17748
  }
@@ -17691,7 +17757,7 @@ function Yu(s, e, t) {
17691
17757
  const Wu = (s) => Object.keys(s).reduce((e, t) => ({ ...e, [t]: t }), {});
17692
17758
  function Nu(s, e, t = 0) {
17693
17759
  let i = e;
17694
- const n = vt("gameplay_speed", 50) / 50 - 1;
17760
+ const n = wt("gameplay_speed", 50) / 50 - 1;
17695
17761
  return i = s - i * n, t > 0 ? parseFloat(i.toFixed(t)) : Math.round(i);
17696
17762
  }
17697
17763
  function Xu(s) {
@@ -17726,8 +17792,8 @@ class qu extends be {
17726
17792
  /** @constructor */
17727
17793
  constructor() {
17728
17794
  super();
17729
- y(this, "_casinoUrl", vt("casinoUrl", null));
17730
- y(this, "_returnUrl", vt("returnUrl", null));
17795
+ y(this, "_casinoUrl", wt("casinoUrl", null));
17796
+ y(this, "_returnUrl", wt("returnUrl", null));
17731
17797
  y(this, "available", !0);
17732
17798
  window.addEventListener("message", (t) => {
17733
17799
  if (this.available && t.data && t.data.name)
@@ -17871,7 +17937,7 @@ function xc() {
17871
17937
  }
17872
17938
  if (!c || typeof c.canPlayType != "function")
17873
17939
  return a;
17874
- var d = c.canPlayType("audio/mpeg;").replace(/^no$/, ""), p = a._navigator ? a._navigator.userAgent : "", m = p.match(/OPR\/(\d+)/g), _ = m && parseInt(m[0].split("/")[1], 10) < 33, g = p.indexOf("Safari") !== -1 && p.indexOf("Chrome") === -1, v = p.match(/Version\/(.*?) /), x = g && v && parseInt(v[1], 10) < 15;
17940
+ var d = c.canPlayType("audio/mpeg;").replace(/^no$/, ""), p = a._navigator ? a._navigator.userAgent : "", m = p.match(/OPR\/(\d+)/g), _ = m && parseInt(m[0].split("/")[1], 10) < 33, g = p.indexOf("Safari") !== -1 && p.indexOf("Chrome") === -1, v = p.match(/Version\/(.*?) /), S = g && v && parseInt(v[1], 10) < 15;
17875
17941
  return a._codecs = {
17876
17942
  mp3: !!(!_ && (d || c.canPlayType("audio/mp3;").replace(/^no$/, ""))),
17877
17943
  mpeg: !!d,
@@ -17884,8 +17950,8 @@ function xc() {
17884
17950
  m4a: !!(c.canPlayType("audio/x-m4a;") || c.canPlayType("audio/m4a;") || c.canPlayType("audio/aac;")).replace(/^no$/, ""),
17885
17951
  m4b: !!(c.canPlayType("audio/x-m4b;") || c.canPlayType("audio/m4b;") || c.canPlayType("audio/aac;")).replace(/^no$/, ""),
17886
17952
  mp4: !!(c.canPlayType("audio/x-mp4;") || c.canPlayType("audio/mp4;") || c.canPlayType("audio/aac;")).replace(/^no$/, ""),
17887
- weba: !!(!x && c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "")),
17888
- webm: !!(!x && c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "")),
17953
+ weba: !!(!S && c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "")),
17954
+ webm: !!(!S && c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "")),
17889
17955
  dolby: !!c.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/, ""),
17890
17956
  flac: !!(c.canPlayType("audio/x-flac;") || c.canPlayType("audio/flac;")).replace(/^no$/, "")
17891
17957
  }, a;
@@ -17916,9 +17982,9 @@ function xc() {
17916
17982
  v && v._node && !v._node._unlocked && (v._node._unlocked = !0, v._node.load());
17917
17983
  }
17918
17984
  a._autoResume();
17919
- var x = a.ctx.createBufferSource();
17920
- x.buffer = a._scratchBuffer, x.connect(a.ctx.destination), typeof x.start > "u" ? x.noteOn(0) : x.start(0), typeof a.ctx.resume == "function" && a.ctx.resume(), x.onended = function() {
17921
- x.disconnect(0), a._audioUnlocked = !0, document.removeEventListener("touchstart", c, !0), document.removeEventListener("touchend", c, !0), document.removeEventListener("click", c, !0), document.removeEventListener("keydown", c, !0);
17985
+ var S = a.ctx.createBufferSource();
17986
+ S.buffer = a._scratchBuffer, S.connect(a.ctx.destination), typeof S.start > "u" ? S.noteOn(0) : S.start(0), typeof a.ctx.resume == "function" && a.ctx.resume(), S.onended = function() {
17987
+ S.disconnect(0), a._audioUnlocked = !0, document.removeEventListener("touchstart", c, !0), document.removeEventListener("touchend", c, !0), document.removeEventListener("click", c, !0), document.removeEventListener("keydown", c, !0);
17922
17988
  for (var w = 0; w < a._howls.length; w++)
17923
17989
  a._howls[w]._emit("unlock");
17924
17990
  };
@@ -18082,12 +18148,12 @@ function xc() {
18082
18148
  if (p && !g._paused)
18083
18149
  return c || d._loadQueue("play"), g._id;
18084
18150
  d._webAudio && t._autoResume();
18085
- var x = Math.max(0, g._seek > 0 ? g._seek : d._sprite[a][0] / 1e3), w = Math.max(0, (d._sprite[a][0] + d._sprite[a][1]) / 1e3 - x), S = w * 1e3 / Math.abs(g._rate), b = d._sprite[a][0] / 1e3, C = (d._sprite[a][0] + d._sprite[a][1]) / 1e3;
18151
+ var S = Math.max(0, g._seek > 0 ? g._seek : d._sprite[a][0] / 1e3), w = Math.max(0, (d._sprite[a][0] + d._sprite[a][1]) / 1e3 - S), x = w * 1e3 / Math.abs(g._rate), b = d._sprite[a][0] / 1e3, C = (d._sprite[a][0] + d._sprite[a][1]) / 1e3;
18086
18152
  g._sprite = a, g._ended = !1;
18087
18153
  var F = function() {
18088
- g._paused = !1, g._seek = x, g._start = b, g._stop = C, g._loop = !!(g._loop || d._sprite[a][2]);
18154
+ g._paused = !1, g._seek = S, g._start = b, g._stop = C, g._loop = !!(g._loop || d._sprite[a][2]);
18089
18155
  };
18090
- if (x >= C) {
18156
+ if (S >= C) {
18091
18157
  d._ended(g);
18092
18158
  return;
18093
18159
  }
@@ -18096,14 +18162,14 @@ function xc() {
18096
18162
  var E = function() {
18097
18163
  d._playLock = !1, F(), d._refreshBuffer(g);
18098
18164
  var Y = g._muted || d._muted ? 0 : g._volume;
18099
- T.gain.setValueAtTime(Y, t.ctx.currentTime), g._playStart = t.ctx.currentTime, typeof T.bufferSource.start > "u" ? g._loop ? T.bufferSource.noteGrainOn(0, x, 86400) : T.bufferSource.noteGrainOn(0, x, w) : g._loop ? T.bufferSource.start(0, x, 86400) : T.bufferSource.start(0, x, w), S !== 1 / 0 && (d._endTimers[g._id] = setTimeout(d._ended.bind(d, g), S)), c || setTimeout(function() {
18165
+ T.gain.setValueAtTime(Y, t.ctx.currentTime), g._playStart = t.ctx.currentTime, typeof T.bufferSource.start > "u" ? g._loop ? T.bufferSource.noteGrainOn(0, S, 86400) : T.bufferSource.noteGrainOn(0, S, w) : g._loop ? T.bufferSource.start(0, S, 86400) : T.bufferSource.start(0, S, w), x !== 1 / 0 && (d._endTimers[g._id] = setTimeout(d._ended.bind(d, g), x)), c || setTimeout(function() {
18100
18166
  d._emit("play", g._id), d._loadQueue();
18101
18167
  }, 0);
18102
18168
  };
18103
18169
  t.state === "running" && t.ctx.state !== "interrupted" ? E() : (d._playLock = !0, d.once("resume", E), d._clearTimer(g._id));
18104
18170
  } else {
18105
- var L = function() {
18106
- T.currentTime = x, T.muted = g._muted || d._muted || t._muted || T.muted, T.volume = g._volume * t.volume(), T.playbackRate = g._rate;
18171
+ var B = function() {
18172
+ T.currentTime = S, T.muted = g._muted || d._muted || t._muted || T.muted, T.volume = g._volume * t.volume(), T.playbackRate = g._rate;
18107
18173
  try {
18108
18174
  var Y = T.play();
18109
18175
  if (Y && typeof Promise < "u" && (Y instanceof Promise || typeof Y.then == "function") ? (d._playLock = !0, F(), Y.then(function() {
@@ -18114,7 +18180,7 @@ function xc() {
18114
18180
  d._emit("playerror", g._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
18115
18181
  return;
18116
18182
  }
18117
- a !== "__default" || g._loop ? d._endTimers[g._id] = setTimeout(d._ended.bind(d, g), S) : (d._endTimers[g._id] = function() {
18183
+ a !== "__default" || g._loop ? d._endTimers[g._id] = setTimeout(d._ended.bind(d, g), x) : (d._endTimers[g._id] = function() {
18118
18184
  d._ended(g), T.removeEventListener("ended", d._endTimers[g._id], !1);
18119
18185
  }, T.addEventListener("ended", d._endTimers[g._id], !1));
18120
18186
  } catch (z) {
@@ -18124,11 +18190,11 @@ function xc() {
18124
18190
  T.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (T.src = d._src, T.load());
18125
18191
  var D = window && window.ejecta || !T.readyState && t._navigator.isCocoonJS;
18126
18192
  if (T.readyState >= 3 || D)
18127
- L();
18193
+ B();
18128
18194
  else {
18129
18195
  d._playLock = !0, d._state = "loading";
18130
18196
  var N = function() {
18131
- d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent, N, !1);
18197
+ d._state = "loaded", B(), T.removeEventListener(t._canPlayEvent, N, !1);
18132
18198
  };
18133
18199
  T.addEventListener(t._canPlayEvent, N, !1), d._clearTimer(g._id);
18134
18200
  }
@@ -18264,8 +18330,8 @@ function xc() {
18264
18330
  var v = m._soundById(_[g]);
18265
18331
  if (v) {
18266
18332
  if (p || m._stopFade(_[g]), m._webAudio && !v._muted) {
18267
- var x = t.ctx.currentTime, w = x + d / 1e3;
18268
- v._volume = a, v._node.gain.setValueAtTime(a, x), v._node.gain.linearRampToValueAtTime(c, w);
18333
+ var S = t.ctx.currentTime, w = S + d / 1e3;
18334
+ v._volume = a, v._node.gain.setValueAtTime(a, S), v._node.gain.linearRampToValueAtTime(c, w);
18269
18335
  }
18270
18336
  m._startFadeInterval(v, a, c, d, _[g], typeof p > "u");
18271
18337
  }
@@ -18282,11 +18348,11 @@ function xc() {
18282
18348
  * @param {Boolean} isGroup If true, set the volume on the group.
18283
18349
  */
18284
18350
  _startFadeInterval: function(a, c, d, p, m, _) {
18285
- var g = this, v = c, x = d - c, w = Math.abs(x / 0.01), S = Math.max(4, w > 0 ? p / w : p), b = Date.now();
18351
+ var g = this, v = c, S = d - c, w = Math.abs(S / 0.01), x = Math.max(4, w > 0 ? p / w : p), b = Date.now();
18286
18352
  a._fadeTo = d, a._interval = setInterval(function() {
18287
18353
  var C = (Date.now() - b) / p;
18288
- b = Date.now(), v += x * C, v = Math.round(v * 100) / 100, x < 0 ? v = Math.max(d, v) : v = Math.min(d, v), g._webAudio ? a._volume = v : g.volume(v, a._id, !0), _ && (g._volume = v), (d < c && v <= d || d > c && v >= d) && (clearInterval(a._interval), a._interval = null, a._fadeTo = null, g.volume(d, a._id), g._emit("fade", a._id));
18289
- }, S);
18354
+ b = Date.now(), v += S * C, v = Math.round(v * 100) / 100, S < 0 ? v = Math.max(d, v) : v = Math.min(d, v), g._webAudio ? a._volume = v : g.volume(v, a._id, !0), _ && (g._volume = v), (d < c && v <= d || d > c && v >= d) && (clearInterval(a._interval), a._interval = null, a._fadeTo = null, g.volume(d, a._id), g._emit("fade", a._id));
18355
+ }, x);
18290
18356
  },
18291
18357
  /**
18292
18358
  * Internal method that stops the currently playing fade when
@@ -18349,8 +18415,8 @@ function xc() {
18349
18415
  for (var v = 0; v < p.length; v++)
18350
18416
  if (g = a._soundById(p[v]), g) {
18351
18417
  a.playing(p[v]) && (g._rateSeek = a.seek(p[v]), g._playStart = a._webAudio ? t.ctx.currentTime : g._playStart), g._rate = d, a._webAudio && g._node && g._node.bufferSource ? g._node.bufferSource.playbackRate.setValueAtTime(d, t.ctx.currentTime) : g._node && (g._node.playbackRate = d);
18352
- var x = a.seek(p[v]), w = (a._sprite[g._sprite][0] + a._sprite[g._sprite][1]) / 1e3 - x, S = w * 1e3 / Math.abs(g._rate);
18353
- (a._endTimers[p[v]] || !g._paused) && (a._clearTimer(p[v]), a._endTimers[p[v]] = setTimeout(a._ended.bind(a, g), S)), a._emit("rate", g._id);
18418
+ var S = a.seek(p[v]), w = (a._sprite[g._sprite][0] + a._sprite[g._sprite][1]) / 1e3 - S, x = w * 1e3 / Math.abs(g._rate);
18419
+ (a._endTimers[p[v]] || !g._paused) && (a._clearTimer(p[v]), a._endTimers[p[v]] = setTimeout(a._ended.bind(a, g), x)), a._emit("rate", g._id);
18354
18420
  }
18355
18421
  } else
18356
18422
  return g = a._soundById(p), g ? g._rate : a._rate;
@@ -18386,19 +18452,19 @@ function xc() {
18386
18452
  if (typeof d == "number" && d >= 0) {
18387
18453
  var v = a.playing(p);
18388
18454
  v && a.pause(p, !0), g._seek = d, g._ended = !1, a._clearTimer(p), !a._webAudio && g._node && !isNaN(g._node.duration) && (g._node.currentTime = d);
18389
- var x = function() {
18455
+ var S = function() {
18390
18456
  v && a.play(p, !0), a._emit("seek", p);
18391
18457
  };
18392
18458
  if (v && !a._webAudio) {
18393
18459
  var w = function() {
18394
- a._playLock ? setTimeout(w, 0) : x();
18460
+ a._playLock ? setTimeout(w, 0) : S();
18395
18461
  };
18396
18462
  setTimeout(w, 0);
18397
18463
  } else
18398
- x();
18464
+ S();
18399
18465
  } else if (a._webAudio) {
18400
- var S = a.playing(p) ? t.ctx.currentTime - g._playStart : 0, b = g._rateSeek ? g._rateSeek - g._seek : 0;
18401
- return g._seek + (b + S * Math.abs(g._rate));
18466
+ var x = a.playing(p) ? t.ctx.currentTime - g._playStart : 0, b = g._rateSeek ? g._rateSeek - g._seek : 0;
18467
+ return g._seek + (b + x * Math.abs(g._rate));
18402
18468
  } else
18403
18469
  return g._node.currentTime;
18404
18470
  return a;
@@ -19292,7 +19358,7 @@ export {
19292
19358
  _o as EDevice,
19293
19359
  Qo as EEngineAllowEvents,
19294
19360
  On as EEventPriority,
19295
- Le as EGameAnimationType,
19361
+ Be as EGameAnimationType,
19296
19362
  Uh as EHintPropertyPosition,
19297
19363
  Hh as EHintPropertyStyle,
19298
19364
  Ta as EHintSort,
@@ -19303,7 +19369,7 @@ export {
19303
19369
  ao as EPromoType,
19304
19370
  Ar as ESelectType,
19305
19371
  bi as ESoundsType,
19306
- Br as ETrackSwitch,
19372
+ Lr as ETrackSwitch,
19307
19373
  ad as Elastic,
19308
19374
  be as Emitter,
19309
19375
  qc as Engine,
@@ -19318,7 +19384,7 @@ export {
19318
19384
  pu as FWIntrigueSpineComponent,
19319
19385
  jh as FWLinesComponent,
19320
19386
  mu as FWLinesStaticComponent,
19321
- Ba as FWPayoutBaseComponent,
19387
+ La as FWPayoutBaseComponent,
19322
19388
  gu as FWPayoutComponent,
19323
19389
  vu as FWReelComponent,
19324
19390
  hu as FWRetriggerComponent,
@@ -19328,7 +19394,7 @@ export {
19328
19394
  bu as FWSymbolSpineComponent,
19329
19395
  _u as FWTotalPayoutComponent,
19330
19396
  ru as FillFrameComponent,
19331
- Lo as FocusServise,
19397
+ Bo as FocusServise,
19332
19398
  Ro as GridComponent,
19333
19399
  qu as IFrameService,
19334
19400
  yo as LangsService,
@@ -19354,7 +19420,7 @@ export {
19354
19420
  Jo as Sequence,
19355
19421
  bo as SettingsService,
19356
19422
  Zn as Sine,
19357
- Bo as SkipService,
19423
+ Lo as SkipService,
19358
19424
  Zo as Skipable,
19359
19425
  Xh as SlidesReelComponent,
19360
19426
  cu as SlideshowComponent,
@@ -19386,7 +19452,7 @@ export {
19386
19452
  Pu as arrayUnique,
19387
19453
  Fu as arraysIntersect,
19388
19454
  Qn as bezierQubic,
19389
- Lu as bezierQubicLength,
19455
+ Bu as bezierQubicLength,
19390
19456
  et as borderView,
19391
19457
  Xc as clear,
19392
19458
  $c as clickEvent,
@@ -19402,13 +19468,13 @@ export {
19402
19468
  su as displayObjectToBase64,
19403
19469
  nu as displayObjectToImage,
19404
19470
  Sh as displayObjectToTexture,
19405
- Bu as distance,
19471
+ Lu as distance,
19406
19472
  _i as drawRect,
19407
19473
  oc as drawReel,
19408
19474
  Fe as ease,
19409
19475
  Vi as error,
19410
19476
  se as eventlog,
19411
- vt as get,
19477
+ wt as get,
19412
19478
  mo as getUrlParams,
19413
19479
  kc as getUserAgent,
19414
19480
  Ah as gradientTexture,
@@ -19416,7 +19482,7 @@ export {
19416
19482
  Hc as hasUrlParams,
19417
19483
  Wc as inIframe,
19418
19484
  Oc as isAndroid,
19419
- Lc as isAndroidTablet,
19485
+ Bc as isAndroidTablet,
19420
19486
  Gc as isArray,
19421
19487
  jc as isBoolean,
19422
19488
  ci as isCheatsAvailable,
@@ -19432,8 +19498,8 @@ export {
19432
19498
  Ic as isMac,
19433
19499
  xr as isMobile,
19434
19500
  pn as isMode,
19435
- Bc as isNativeApp,
19436
- Bn as isObject,
19501
+ Lc as isNativeApp,
19502
+ Ln as isObject,
19437
19503
  Dc as isPlatformLandscapeMode,
19438
19504
  ho as isPlatformPortraitMode,
19439
19505
  lo as isPortraitMode,
@@ -19458,7 +19524,7 @@ export {
19458
19524
  ue as range,
19459
19525
  ai as registry,
19460
19526
  Vc as setMode,
19461
- Bi as skipable,
19527
+ Li as skipable,
19462
19528
  gi as sleep,
19463
19529
  ui as slotCheats,
19464
19530
  uc as slotComponentConfig,