@betorigami/games 0.7.3 → 0.7.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +104 -104
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -90,7 +90,7 @@ function yi({ context: e, subscribe: t }) {
90
90
  };
91
91
  }
92
92
  const co = globalThis, Zo = co.ShadowRoot && (co.ShadyCSS === void 0 || co.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ko = Symbol(), es = /* @__PURE__ */ new WeakMap();
93
- let Is = class {
93
+ let Os = class {
94
94
  constructor(e, t, i) {
95
95
  if (this._$cssResult$ = !0, i !== Ko) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
96
96
  this.cssText = e, this.t = t;
@@ -114,11 +114,11 @@ const H = (e, ...t) => {
114
114
  if (typeof a == "number") return a;
115
115
  throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
116
116
  })(r) + e[s + 1], e[0]);
117
- return new Is(i, e, Ko);
117
+ return new Os(i, e, Ko);
118
118
  }, is = Zo ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
119
119
  let i = "";
120
120
  for (const o of t.cssRules) i += o.cssText;
121
- return ((o) => new Is(typeof o == "string" ? o : o + "", void 0, Ko))(i);
121
+ return ((o) => new Os(typeof o == "string" ? o : o + "", void 0, Ko))(i);
122
122
  })(e) : e, { is: Qs, defineProperty: Js, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols: ir, getPrototypeOf: or } = Object, Ye = globalThis, os = Ye.trustedTypes, sr = os ? os.emptyScript : "", Eo = Ye.reactiveElementPolyfillSupport, Gi = (e, t) => e, po = { toAttribute(e, t) {
123
123
  switch (t) {
124
124
  case Boolean:
@@ -357,7 +357,7 @@ let Ei = class extends HTMLElement {
357
357
  }
358
358
  };
359
359
  Ei.elementStyles = [], Ei.shadowRootOptions = { mode: "open" }, Ei[Gi("elementProperties")] = /* @__PURE__ */ new Map(), Ei[Gi("finalized")] = /* @__PURE__ */ new Map(), Eo == null || Eo({ ReactiveElement: Ei }), (Ye.reactiveElementVersions ?? (Ye.reactiveElementVersions = [])).push("2.1.0");
360
- const Zi = globalThis, go = Zi.trustedTypes, rs = go ? go.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, as = "$lit$", Ke = `lit$${Math.random().toFixed(9).slice(2)}$`, Os = "?" + Ke, rr = `<${Os}>`, fi = document, Xi = () => fi.createComment(""), Qi = (e) => e === null || typeof e != "object" && typeof e != "function", Uo = Array.isArray, Do = `[
360
+ const Zi = globalThis, go = Zi.trustedTypes, rs = go ? go.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, as = "$lit$", Ke = `lit$${Math.random().toFixed(9).slice(2)}$`, Is = "?" + Ke, rr = `<${Is}>`, fi = document, Xi = () => fi.createComment(""), Qi = (e) => e === null || typeof e != "object" && typeof e != "function", Uo = Array.isArray, Do = `[
361
361
  \f\r]`, Bi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ns = /-->/g, ls = />/g, Qe = RegExp(`>|${Do}(?:([^\\s"'>=/]+)(${Do}*=${Do}*(?:[^
362
362
  \f\r"'\`<>=]|("|')|))|$)`, "g"), cs = /'/g, ds = /"/g, us = /^(?:script|style|textarea|title)$/i, Bs = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), x = Bs(1), St = Bs(2), Ut = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), hs = /* @__PURE__ */ new WeakMap(), mi = fi.createTreeWalker(fi, 129);
363
363
  function Ps(e, t) {
@@ -371,11 +371,11 @@ class Ji {
371
371
  let s = 0, a = 0;
372
372
  const g = t.length - 1, w = this.parts, [L, V] = ((k, C) => {
373
373
  const D = k.length - 1, A = [];
374
- let I, it = C === 2 ? "<svg>" : C === 3 ? "<math>" : "", W = Bi;
374
+ let O, it = C === 2 ? "<svg>" : C === 3 ? "<math>" : "", W = Bi;
375
375
  for (let dt = 0; dt < D; dt++) {
376
376
  const tt = k[dt];
377
377
  let Yt, ot, ut = -1, Xe = 0;
378
- for (; Xe < tt.length && (W.lastIndex = Xe, ot = W.exec(tt), ot !== null); ) Xe = W.lastIndex, W === Bi ? ot[1] === "!--" ? W = ns : ot[1] !== void 0 ? W = ls : ot[2] !== void 0 ? (us.test(ot[2]) && (I = RegExp("</" + ot[2], "g")), W = Qe) : ot[3] !== void 0 && (W = Qe) : W === Qe ? ot[0] === ">" ? (W = I ?? Bi, ut = -1) : ot[1] === void 0 ? ut = -2 : (ut = W.lastIndex - ot[2].length, Yt = ot[1], W = ot[3] === void 0 ? Qe : ot[3] === '"' ? ds : cs) : W === ds || W === cs ? W = Qe : W === ns || W === ls ? W = Bi : (W = Qe, I = void 0);
378
+ for (; Xe < tt.length && (W.lastIndex = Xe, ot = W.exec(tt), ot !== null); ) Xe = W.lastIndex, W === Bi ? ot[1] === "!--" ? W = ns : ot[1] !== void 0 ? W = ls : ot[2] !== void 0 ? (us.test(ot[2]) && (O = RegExp("</" + ot[2], "g")), W = Qe) : ot[3] !== void 0 && (W = Qe) : W === Qe ? ot[0] === ">" ? (W = O ?? Bi, ut = -1) : ot[1] === void 0 ? ut = -2 : (ut = W.lastIndex - ot[2].length, Yt = ot[1], W = ot[3] === void 0 ? Qe : ot[3] === '"' ? ds : cs) : W === ds || W === cs ? W = Qe : W === ns || W === ls ? W = Bi : (W = Qe, O = void 0);
379
379
  const Xt = W === Qe && k[dt + 1].startsWith("/>") ? " " : "";
380
380
  it += W === Bi ? tt + rr : ut >= 0 ? (A.push(Yt), tt.slice(0, ut) + as + tt.slice(ut) + Ke + Xt) : tt + Ke + (ut === -2 ? dt : Xt);
381
381
  }
@@ -399,7 +399,7 @@ class Ji {
399
399
  r.append(k[C], Xi());
400
400
  }
401
401
  }
402
- } else if (r.nodeType === 8) if (r.data === Os) w.push({ type: 2, index: s });
402
+ } else if (r.nodeType === 8) if (r.data === Is) w.push({ type: 2, index: s });
403
403
  else {
404
404
  let k = -1;
405
405
  for (; (k = r.data.indexOf(Ke, k + 1)) !== -1; ) w.push({ type: 7, index: s }), k += Ke.length - 1;
@@ -436,7 +436,7 @@ let ar = class {
436
436
  for (; g !== void 0; ) {
437
437
  if (s === g.index) {
438
438
  let w;
439
- g.type === 2 ? w = new Ii(r, r.nextSibling, this, e) : g.type === 1 ? w = new g.ctor(r, g.name, g.strings, this, e) : g.type === 6 && (w = new dr(r, this, e)), this._$AV.push(w), g = i[++a];
439
+ g.type === 2 ? w = new Oi(r, r.nextSibling, this, e) : g.type === 1 ? w = new g.ctor(r, g.name, g.strings, this, e) : g.type === 6 && (w = new dr(r, this, e)), this._$AV.push(w), g = i[++a];
440
440
  }
441
441
  s !== (g == null ? void 0 : g.index) && (r = mi.nextNode(), s++);
442
442
  }
@@ -447,7 +447,7 @@ let ar = class {
447
447
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
448
448
  }
449
449
  };
450
- class Ii {
450
+ class Oi {
451
451
  get _$AU() {
452
452
  var t;
453
453
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -495,7 +495,7 @@ class Ii {
495
495
  Uo(this._$AH) || (this._$AH = [], this._$AR());
496
496
  const i = this._$AH;
497
497
  let o, r = 0;
498
- for (const s of t) r === i.length ? i.push(o = new Ii(this.O(Xi()), this.O(Xi()), this, this.options)) : o = i[r], o._$AI(s), r++;
498
+ for (const s of t) r === i.length ? i.push(o = new Oi(this.O(Xi()), this.O(Xi()), this, this.options)) : o = i[r], o._$AI(s), r++;
499
499
  r < i.length && (this._$AR(o && o._$AB.nextSibling, r), i.length = r);
500
500
  }
501
501
  _$AR(t = this._$AA.nextSibling, i) {
@@ -576,8 +576,8 @@ class dr {
576
576
  _i(this, t);
577
577
  }
578
578
  }
579
- const ur = { I: Ii }, Ao = Zi.litHtmlPolyfillSupport;
580
- Ao == null || Ao(Ji, Ii), (Zi.litHtmlVersions ?? (Zi.litHtmlVersions = [])).push("3.3.0");
579
+ const ur = { I: Oi }, Ao = Zi.litHtmlPolyfillSupport;
580
+ Ao == null || Ao(Ji, Oi), (Zi.litHtmlVersions ?? (Zi.litHtmlVersions = [])).push("3.3.0");
581
581
  const bi = globalThis;
582
582
  let qt = class extends Ei {
583
583
  constructor() {
@@ -595,7 +595,7 @@ let qt = class extends Ei {
595
595
  let a = s._$litPart$;
596
596
  if (a === void 0) {
597
597
  const g = (r == null ? void 0 : r.renderBefore) ?? null;
598
- s._$litPart$ = a = new Ii(o.insertBefore(Xi(), g), g, void 0, r ?? {});
598
+ s._$litPart$ = a = new Oi(o.insertBefore(Xi(), g), g, void 0, r ?? {});
599
599
  }
600
600
  return a._$AI(i), a;
601
601
  })(t, this.renderRoot, this.renderOptions);
@@ -961,7 +961,7 @@ const { I: vr } = ur, Rs = (e) => e.strings === void 0, ms = () => document.crea
961
961
  }
962
962
  }
963
963
  return i;
964
- }, Je = (e, t, i = e) => (e._$AI(t, i), e), wr = {}, Vs = (e, t = wr) => e._$AH = t, Io = (e) => {
964
+ }, Je = (e, t, i = e) => (e._$AI(t, i), e), wr = {}, Vs = (e, t = wr) => e._$AH = t, Oo = (e) => {
965
965
  var o;
966
966
  (o = e._$AP) == null || o.call(e, !1, !0);
967
967
  let t = e._$AA;
@@ -1028,7 +1028,7 @@ class Sr extends $o {
1028
1028
  const bo = () => new kr();
1029
1029
  class kr {
1030
1030
  }
1031
- const Oo = /* @__PURE__ */ new WeakMap(), fo = xo(class extends Sr {
1031
+ const Io = /* @__PURE__ */ new WeakMap(), fo = xo(class extends Sr {
1032
1032
  render(e) {
1033
1033
  return _;
1034
1034
  }
@@ -1040,13 +1040,13 @@ const Oo = /* @__PURE__ */ new WeakMap(), fo = xo(class extends Sr {
1040
1040
  rt(e) {
1041
1041
  if (this.isConnected || (e = void 0), typeof this.G == "function") {
1042
1042
  const t = this.ht ?? globalThis;
1043
- let i = Oo.get(t);
1044
- i === void 0 && (i = /* @__PURE__ */ new WeakMap(), Oo.set(t, i)), i.get(this.G) !== void 0 && this.G.call(this.ht, void 0), i.set(this.G, e), e !== void 0 && this.G.call(this.ht, e);
1043
+ let i = Io.get(t);
1044
+ i === void 0 && (i = /* @__PURE__ */ new WeakMap(), Io.set(t, i)), i.get(this.G) !== void 0 && this.G.call(this.ht, void 0), i.set(this.G, e), e !== void 0 && this.G.call(this.ht, e);
1045
1045
  } else this.G.value = e;
1046
1046
  }
1047
1047
  get lt() {
1048
1048
  var e, t;
1049
- return typeof this.G == "function" ? (e = Oo.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1049
+ return typeof this.G == "function" ? (e = Io.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1050
1050
  }
1051
1051
  disconnected() {
1052
1052
  this.lt === this.ct && this.rt(void 0);
@@ -1266,7 +1266,7 @@ var Mr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, be = (e, t
1266
1266
  return o && s && Mr(t, i, s), s;
1267
1267
  };
1268
1268
  const Er = St`<svg class="spinner" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2.25"></circle><path d="M1.72559 4.97461L6.90836 10.1576L10.9407 6.236" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="15" stroke-dashoffset="45"></path><g style="transform-origin: 8px 8px;" transform="rotate(360deg)"><circle cx="8" cy="8" r="7" stroke-dasharray="45" stroke-linecap="round" stroke="currentColor" stroke-width="2.25" stroke-dashoffset="30" style="transform-origin: 8px 8px;" transform="rotate(180deg)"></circle></g></svg>`;
1269
- let It = class extends R {
1269
+ let Ot = class extends R {
1270
1270
  constructor() {
1271
1271
  super(...arguments), this.variant = "primary", this.disabled = !1, this.ariaLabel = null, this.ariaDescribedby = null, this.type = "button", this.isLoading = !1, this.fullWidth = !1, this.enableHaptics = !1;
1272
1272
  }
@@ -1304,7 +1304,7 @@ let It = class extends R {
1304
1304
  `;
1305
1305
  }
1306
1306
  };
1307
- It.styles = [U, Lr], It.shadowRootOptions = { ...qt.shadowRootOptions, delegatesFocus: !0 }, be([l({ type: String, reflect: !0 })], It.prototype, "variant", 2), be([l({ type: Boolean, reflect: !0 })], It.prototype, "disabled", 2), be([l({ type: String, attribute: "aria-label" })], It.prototype, "ariaLabel", 2), be([l({ type: String, attribute: "aria-describedby" })], It.prototype, "ariaDescribedby", 2), be([l({ type: String })], It.prototype, "type", 2), be([l({ type: Boolean, reflect: !0 })], It.prototype, "isLoading", 2), be([l({ type: Boolean, reflect: !0 })], It.prototype, "fullWidth", 2), be([l({ type: Boolean, attribute: "enable-haptics" })], It.prototype, "enableHaptics", 2), It = be([B("origami-button")], It);
1307
+ Ot.styles = [U, Lr], Ot.shadowRootOptions = { ...qt.shadowRootOptions, delegatesFocus: !0 }, be([l({ type: String, reflect: !0 })], Ot.prototype, "variant", 2), be([l({ type: Boolean, reflect: !0 })], Ot.prototype, "disabled", 2), be([l({ type: String, attribute: "aria-label" })], Ot.prototype, "ariaLabel", 2), be([l({ type: String, attribute: "aria-describedby" })], Ot.prototype, "ariaDescribedby", 2), be([l({ type: String })], Ot.prototype, "type", 2), be([l({ type: Boolean, reflect: !0 })], Ot.prototype, "isLoading", 2), be([l({ type: Boolean, reflect: !0 })], Ot.prototype, "fullWidth", 2), be([l({ type: Boolean, attribute: "enable-haptics" })], Ot.prototype, "enableHaptics", 2), Ot = be([B("origami-button")], Ot);
1308
1308
  const Dr = H`
1309
1309
  :host {
1310
1310
  display: inline-flex;
@@ -1370,7 +1370,7 @@ let io = class extends R {
1370
1370
  }
1371
1371
  };
1372
1372
  io.styles = [U, Dr], bs([l({ type: String, reflect: !0 })], io.prototype, "position", 2), io = bs([B("origami-button-group")], io);
1373
- const Ir = xo(class extends $o {
1373
+ const Or = xo(class extends $o {
1374
1374
  constructor(e) {
1375
1375
  if (super(e), e.type !== ps && e.type !== Ho && e.type !== gs) throw Error("The `live` directive is not allowed on child or event bindings");
1376
1376
  if (!Rs(e)) throw Error("`live` bindings can only contain a single expression");
@@ -1388,7 +1388,7 @@ const Ir = xo(class extends $o {
1388
1388
  } else if (e.type === Ho && i.getAttribute(o) === t + "") return Ut;
1389
1389
  return Vs(e), t;
1390
1390
  }
1391
- }), Or = H`
1391
+ }), Ir = H`
1392
1392
  /* ===== HOST STYLES ===== */
1393
1393
  :host {
1394
1394
  --input-text-color: white;
@@ -1978,8 +1978,8 @@ let nt = class extends qt {
1978
1978
  if (!this.tooltipRef.value || !this.triggerRef.value || !this.open) return;
1979
1979
  const e = this.tooltipRef.value, t = this.triggerRef.value, i = this.triggerSlot.assignedElements()[0] || t, o = this.position, r = this.offset, s = i.getBoundingClientRect(), a = e.getBoundingClientRect(), g = window.innerWidth, w = window.innerHeight, L = s.top, V = w - s.bottom, k = s.left, C = g - s.right;
1980
1980
  let D = o;
1981
- const A = (I) => {
1982
- switch (I) {
1981
+ const A = (O) => {
1982
+ switch (O) {
1983
1983
  case "top":
1984
1984
  case "top-start":
1985
1985
  case "top-end":
@@ -2001,11 +2001,11 @@ let nt = class extends qt {
2001
2001
  }
2002
2002
  };
2003
2003
  if (A(o)) {
2004
- const I = Rr[o];
2005
- if (A(I)) {
2004
+ const O = Rr[o];
2005
+ if (A(O)) {
2006
2006
  const it = ["top", "right", "bottom", "left"].find((W) => !A(W));
2007
2007
  it && (D = it);
2008
- } else D = I;
2008
+ } else D = O;
2009
2009
  }
2010
2010
  e.setAttribute("data-position", D);
2011
2011
  }
@@ -2113,7 +2113,7 @@ let j = class extends R {
2113
2113
  ${fo(this.inputRef)}
2114
2114
  id=${this.inputId}
2115
2115
  type=${this.type}
2116
- .value=${Ir(this.value)}
2116
+ .value=${Or(this.value)}
2117
2117
  @input=${this.handleInput}
2118
2118
  @paste=${this.handlePaste}
2119
2119
  @beforeinput=${this.handleBeforeInput}
@@ -2174,7 +2174,7 @@ let j = class extends R {
2174
2174
  return !!this.querySelector('[slot="right-addon"]');
2175
2175
  }
2176
2176
  };
2177
- j.styles = [U, Or], K([l({ type: String })], j.prototype, "value", 2), K([l({ type: String })], j.prototype, "label", 2), K([l({ type: String })], j.prototype, "placeholder", 2), K([l({ type: String, reflect: !0 })], j.prototype, "type", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "disabled", 2), K([l({ type: String })], j.prototype, "rightText", 2), K([l({ type: Number })], j.prototype, "min", 2), K([l({ type: Number })], j.prototype, "max", 2), K([l({ type: Number })], j.prototype, "step", 2), K([l({ type: String })], j.prototype, "addonButtonsPosition", 2), K([l({ type: String })], j.prototype, "name", 2), K([l({ type: String })], j.prototype, "autocomplete", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "required", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "readonly", 2), K([l({ type: String })], j.prototype, "pattern", 2), K([l({ type: Boolean })], j.prototype, "validateOnInput", 2), K([l({ type: Boolean })], j.prototype, "tooltipFullWidth", 2), K([l({ type: String })], j.prototype, "validationPattern", 2), K([l({ type: String })], j.prototype, "validationMessage", 2), K([l({ type: String })], j.prototype, "inputMode", 2), K([l({ type: Boolean })], j.prototype, "hideRightLabel", 2), K([l({ type: Boolean })], j.prototype, "clickable", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "forceActiveBorder", 2), K([l({ type: Function, attribute: !1 })], j.prototype, "handleBeforeInput", 2), K([l({ type: Number })], j.prototype, "tooltipOffset", 2), K([T()], j.prototype, "errorMessage", 2), K([T()], j.prototype, "_isIconRotating", 2), K([l({ type: String })], j.prototype, "errorTooltipMessage", 2), K([T()], j.prototype, "_iconRotationState", 2), j = K([B("origami-input")], j);
2177
+ j.styles = [U, Ir], K([l({ type: String })], j.prototype, "value", 2), K([l({ type: String })], j.prototype, "label", 2), K([l({ type: String })], j.prototype, "placeholder", 2), K([l({ type: String, reflect: !0 })], j.prototype, "type", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "disabled", 2), K([l({ type: String })], j.prototype, "rightText", 2), K([l({ type: Number })], j.prototype, "min", 2), K([l({ type: Number })], j.prototype, "max", 2), K([l({ type: Number })], j.prototype, "step", 2), K([l({ type: String })], j.prototype, "addonButtonsPosition", 2), K([l({ type: String })], j.prototype, "name", 2), K([l({ type: String })], j.prototype, "autocomplete", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "required", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "readonly", 2), K([l({ type: String })], j.prototype, "pattern", 2), K([l({ type: Boolean })], j.prototype, "validateOnInput", 2), K([l({ type: Boolean })], j.prototype, "tooltipFullWidth", 2), K([l({ type: String })], j.prototype, "validationPattern", 2), K([l({ type: String })], j.prototype, "validationMessage", 2), K([l({ type: String })], j.prototype, "inputMode", 2), K([l({ type: Boolean })], j.prototype, "hideRightLabel", 2), K([l({ type: Boolean })], j.prototype, "clickable", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "forceActiveBorder", 2), K([l({ type: Function, attribute: !1 })], j.prototype, "handleBeforeInput", 2), K([l({ type: Number })], j.prototype, "tooltipOffset", 2), K([T()], j.prototype, "errorMessage", 2), K([T()], j.prototype, "_isIconRotating", 2), K([l({ type: String })], j.prototype, "errorTooltipMessage", 2), K([T()], j.prototype, "_iconRotationState", 2), j = K([B("origami-input")], j);
2178
2178
  const Ur = H`
2179
2179
  :host {
2180
2180
  display: block;
@@ -2563,7 +2563,7 @@ function Ft(e) {
2563
2563
  var t = 0 | e;
2564
2564
  return e > 0 || e === t ? t : t - 1;
2565
2565
  }
2566
- function Ot(e) {
2566
+ function It(e) {
2567
2567
  for (var t, i, o = 1, r = e.length, s = e[0] + ""; o < r; ) {
2568
2568
  for (t = e[o++] + "", i = N - t.length; i--; t = "0" + t) ;
2569
2569
  s += t;
@@ -2603,7 +2603,7 @@ function fe(e, t, i) {
2603
2603
  return e;
2604
2604
  }
2605
2605
  var $ = function e(t) {
2606
- var i, o, r, s, a, g, w, L, V, k, C = S.prototype = { constructor: S, toString: null, valueOf: null }, D = new S(1), A = 20, I = 4, it = -7, W = 21, dt = -1e7, tt = 1e7, Yt = !1, ot = 1, ut = 0, Xe = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, Xt = "0123456789abcdefghijklmnopqrstuvwxyz", So = !0;
2606
+ var i, o, r, s, a, g, w, L, V, k, C = S.prototype = { constructor: S, toString: null, valueOf: null }, D = new S(1), A = 20, O = 4, it = -7, W = 21, dt = -1e7, tt = 1e7, Yt = !1, ot = 1, ut = 0, Xe = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, Xt = "0123456789abcdefghijklmnopqrstuvwxyz", So = !0;
2607
2607
  function S(n, c) {
2608
2608
  var d, f, u, h, m, p, y, v, b = this;
2609
2609
  if (!(b instanceof S)) return new S(n, c);
@@ -2621,7 +2621,7 @@ var $ = function e(t) {
2621
2621
  }
2622
2622
  (h = v.indexOf(".")) > -1 && (v = v.replace(".", "")), (m = v.search(/e/i)) > 0 ? (h < 0 && (h = m), h += +v.slice(m + 1), v = v.substring(0, m)) : h < 0 && (h = v.length);
2623
2623
  } else {
2624
- if (Q(c, 2, Xt.length, "Base"), c == 10 && So) return Dt(b = new S(n), A + b.e + 1, I);
2624
+ if (Q(c, 2, Xt.length, "Base"), c == 10 && So) return Dt(b = new S(n), A + b.e + 1, O);
2625
2625
  if (v = String(n), p = typeof n == "number") {
2626
2626
  if (0 * n != 0) return r(b, v, p, c);
2627
2627
  if (b.s = 1 / n < 0 ? (v = v.slice(1), -1) : 1, S.DEBUG && v.replace(/^0\.0*|\./, "").length > 15) throw Error(fs + n);
@@ -2658,9 +2658,9 @@ var $ = function e(t) {
2658
2658
  }
2659
2659
  function ko(n, c, d, f) {
2660
2660
  var u, h, m, p, y;
2661
- if (d == null ? d = I : Q(d, 0, 8), !n.c) return n.toString();
2662
- if (u = n.c[0], m = n.e, c == null) y = Ot(n.c), y = f == 1 || f == 2 && (m <= it || m >= W) ? so(y, m) : fe(y, m, "0");
2663
- else if (h = (n = Dt(new S(n), c, d)).e, p = (y = Ot(n.c)).length, f == 1 || f == 2 && (c <= h || h <= it)) {
2661
+ if (d == null ? d = O : Q(d, 0, 8), !n.c) return n.toString();
2662
+ if (u = n.c[0], m = n.e, c == null) y = It(n.c), y = f == 1 || f == 2 && (m <= it || m >= W) ? so(y, m) : fe(y, m, "0");
2663
+ else if (h = (n = Dt(new S(n), c, d)).e, p = (y = It(n.c)).length, f == 1 || f == 2 && (c <= h || h <= it)) {
2664
2664
  for (; p < c; y += "0", p++) ;
2665
2665
  y = so(y, h);
2666
2666
  } else if (c -= m, y = fe(y, h, "0"), h + 1 > p) {
@@ -2678,21 +2678,21 @@ var $ = function e(t) {
2678
2678
  return (d = f + d * N - 1) > tt ? n.c = n.e = null : d < dt ? n.c = [n.e = 0] : (n.e = d, n.c = c), n;
2679
2679
  }
2680
2680
  function Dt(n, c, d, f) {
2681
- var u, h, m, p, y, v, b, M = n.c, O = Po;
2681
+ var u, h, m, p, y, v, b, M = n.c, I = Po;
2682
2682
  if (M) {
2683
2683
  t: {
2684
2684
  for (u = 1, p = M[0]; p >= 10; p /= 10, u++) ;
2685
- if ((h = c - u) < 0) h += N, m = c, y = M[v = 0], b = Vt(y / O[u - m - 1] % 10);
2685
+ if ((h = c - u) < 0) h += N, m = c, y = M[v = 0], b = Vt(y / I[u - m - 1] % 10);
2686
2686
  else if ((v = Bo((h + 1) / N)) >= M.length) {
2687
2687
  if (!f) break t;
2688
2688
  for (; M.length <= v; M.push(0)) ;
2689
2689
  y = b = 0, u = 1, m = (h %= N) - N + 1;
2690
2690
  } else {
2691
2691
  for (y = p = M[v], u = 1; p >= 10; p /= 10, u++) ;
2692
- b = (m = (h %= N) - N + u) < 0 ? 0 : Vt(y / O[u - m - 1] % 10);
2692
+ b = (m = (h %= N) - N + u) < 0 ? 0 : Vt(y / I[u - m - 1] % 10);
2693
2693
  }
2694
- if (f = f || c < 0 || M[v + 1] != null || (m < 0 ? y : y % O[u - m - 1]), f = d < 4 ? (b || f) && (d == 0 || d == (n.s < 0 ? 3 : 2)) : b > 5 || b == 5 && (d == 4 || f || d == 6 && (h > 0 ? m > 0 ? y / O[u - m] : 0 : M[v - 1]) % 10 & 1 || d == (n.s < 0 ? 8 : 7)), c < 1 || !M[0]) return M.length = 0, f ? (c -= n.e + 1, M[0] = O[(N - c % N) % N], n.e = -c || 0) : M[0] = n.e = 0, n;
2695
- if (h == 0 ? (M.length = v, p = 1, v--) : (M.length = v + 1, p = O[N - h], M[v] = m > 0 ? Vt(y / O[u - m] % O[m]) * p : 0), f) for (; ; ) {
2694
+ if (f = f || c < 0 || M[v + 1] != null || (m < 0 ? y : y % I[u - m - 1]), f = d < 4 ? (b || f) && (d == 0 || d == (n.s < 0 ? 3 : 2)) : b > 5 || b == 5 && (d == 4 || f || d == 6 && (h > 0 ? m > 0 ? y / I[u - m] : 0 : M[v - 1]) % 10 & 1 || d == (n.s < 0 ? 8 : 7)), c < 1 || !M[0]) return M.length = 0, f ? (c -= n.e + 1, M[0] = I[(N - c % N) % N], n.e = -c || 0) : M[0] = n.e = 0, n;
2695
+ if (h == 0 ? (M.length = v, p = 1, v--) : (M.length = v + 1, p = I[N - h], M[v] = m > 0 ? Vt(y / I[u - m] % I[m]) * p : 0), f) for (; ; ) {
2696
2696
  if (v == 0) {
2697
2697
  for (h = 1, m = M[0]; m >= 10; m /= 10, h++) ;
2698
2698
  for (m = M[0] += p, p = 1; m >= 10; m /= 10, p++) ;
@@ -2710,13 +2710,13 @@ var $ = function e(t) {
2710
2710
  }
2711
2711
  function me(n) {
2712
2712
  var c, d = n.e;
2713
- return d === null ? n.toString() : (c = Ot(n.c), c = d <= it || d >= W ? so(c, d) : fe(c, d, "0"), n.s < 0 ? "-" + c : c);
2713
+ return d === null ? n.toString() : (c = It(n.c), c = d <= it || d >= W ? so(c, d) : fe(c, d, "0"), n.s < 0 ? "-" + c : c);
2714
2714
  }
2715
2715
  return S.clone = e, S.ROUND_UP = 0, S.ROUND_DOWN = 1, S.ROUND_CEIL = 2, S.ROUND_FLOOR = 3, S.ROUND_HALF_UP = 4, S.ROUND_HALF_DOWN = 5, S.ROUND_HALF_EVEN = 6, S.ROUND_HALF_CEIL = 7, S.ROUND_HALF_FLOOR = 8, S.EUCLID = 9, S.config = S.set = function(n) {
2716
2716
  var c, d;
2717
2717
  if (n != null) {
2718
2718
  if (typeof n != "object") throw Error(Ct + "Object expected: " + n);
2719
- if (n.hasOwnProperty(c = "DECIMAL_PLACES") && (Q(d = n[c], 0, kt, c), A = d), n.hasOwnProperty(c = "ROUNDING_MODE") && (Q(d = n[c], 0, 8, c), I = d), n.hasOwnProperty(c = "EXPONENTIAL_AT") && ((d = n[c]) && d.pop ? (Q(d[0], -1e9, 0, c), Q(d[1], 0, kt, c), it = d[0], W = d[1]) : (Q(d, -1e9, kt, c), it = -(W = d < 0 ? -d : d))), n.hasOwnProperty(c = "RANGE")) if ((d = n[c]) && d.pop) Q(d[0], -1e9, -1, c), Q(d[1], 1, kt, c), dt = d[0], tt = d[1];
2719
+ if (n.hasOwnProperty(c = "DECIMAL_PLACES") && (Q(d = n[c], 0, kt, c), A = d), n.hasOwnProperty(c = "ROUNDING_MODE") && (Q(d = n[c], 0, 8, c), O = d), n.hasOwnProperty(c = "EXPONENTIAL_AT") && ((d = n[c]) && d.pop ? (Q(d[0], -1e9, 0, c), Q(d[1], 0, kt, c), it = d[0], W = d[1]) : (Q(d, -1e9, kt, c), it = -(W = d < 0 ? -d : d))), n.hasOwnProperty(c = "RANGE")) if ((d = n[c]) && d.pop) Q(d[0], -1e9, -1, c), Q(d[1], 1, kt, c), dt = d[0], tt = d[1];
2720
2720
  else {
2721
2721
  if (Q(d, -1e9, kt, c), !d) throw Error(Ct + c + " cannot be zero: " + d);
2722
2722
  dt = -(tt = d < 0 ? -d : d);
@@ -2737,7 +2737,7 @@ var $ = function e(t) {
2737
2737
  So = d.slice(0, 10) == "0123456789", Xt = d;
2738
2738
  }
2739
2739
  }
2740
- return { DECIMAL_PLACES: A, ROUNDING_MODE: I, EXPONENTIAL_AT: [it, W], RANGE: [dt, tt], CRYPTO: Yt, MODULO_MODE: ot, POW_PRECISION: ut, FORMAT: Xe, ALPHABET: Xt };
2740
+ return { DECIMAL_PLACES: A, ROUNDING_MODE: O, EXPONENTIAL_AT: [it, W], RANGE: [dt, tt], CRYPTO: Yt, MODULO_MODE: ot, POW_PRECISION: ut, FORMAT: Xe, ALPHABET: Xt };
2741
2741
  }, S.isBigNumber = function(n) {
2742
2742
  if (!n || n._isBigNumber !== !0) return !1;
2743
2743
  if (!S.DEBUG) return !0;
@@ -2795,10 +2795,10 @@ var $ = function e(t) {
2795
2795
  return y.reverse();
2796
2796
  }
2797
2797
  return function(d, f, u, h, m) {
2798
- var p, y, v, b, M, O, P, Z, et = d.indexOf("."), at = A, z = I;
2799
- for (et >= 0 && (b = ut, ut = 0, d = d.replace(".", ""), O = (Z = new S(f)).pow(d.length - et), ut = b, Z.c = c(fe(Ot(O.c), O.e, "0"), 10, u, n), Z.e = Z.c.length), v = b = (P = c(d, f, u, m ? (p = Xt, n) : (p = n, Xt))).length; P[--b] == 0; P.pop()) ;
2798
+ var p, y, v, b, M, I, P, Z, et = d.indexOf("."), at = A, z = O;
2799
+ for (et >= 0 && (b = ut, ut = 0, d = d.replace(".", ""), I = (Z = new S(f)).pow(d.length - et), ut = b, Z.c = c(fe(It(I.c), I.e, "0"), 10, u, n), Z.e = Z.c.length), v = b = (P = c(d, f, u, m ? (p = Xt, n) : (p = n, Xt))).length; P[--b] == 0; P.pop()) ;
2800
2800
  if (!P[0]) return p.charAt(0);
2801
- if (et < 0 ? --v : (O.c = P, O.e = v, O.s = h, P = (O = i(O, Z, at, z, u)).c, M = O.r, v = O.e), et = P[y = v + at + 1], b = u / 2, M = M || y < 0 || P[y + 1] != null, M = z < 4 ? (et != null || M) && (z == 0 || z == (O.s < 0 ? 3 : 2)) : et > b || et == b && (z == 4 || M || z == 6 && 1 & P[y - 1] || z == (O.s < 0 ? 8 : 7)), y < 1 || !P[0]) d = M ? fe(p.charAt(1), -at, p.charAt(0)) : p.charAt(0);
2801
+ if (et < 0 ? --v : (I.c = P, I.e = v, I.s = h, P = (I = i(I, Z, at, z, u)).c, M = I.r, v = I.e), et = P[y = v + at + 1], b = u / 2, M = M || y < 0 || P[y + 1] != null, M = z < 4 ? (et != null || M) && (z == 0 || z == (I.s < 0 ? 3 : 2)) : et > b || et == b && (z == 4 || M || z == 6 && 1 & P[y - 1] || z == (I.s < 0 ? 8 : 7)), y < 1 || !P[0]) d = M ? fe(p.charAt(1), -at, p.charAt(0)) : p.charAt(0);
2802
2802
  else {
2803
2803
  if (P.length = y, M) for (--u; ++P[--y] > u; ) P[y] = 0, y || (++v, P = [1].concat(P));
2804
2804
  for (b = P.length; !P[--b]; ) ;
@@ -2809,8 +2809,8 @@ var $ = function e(t) {
2809
2809
  };
2810
2810
  }(), i = /* @__PURE__ */ function() {
2811
2811
  function n(f, u, h) {
2812
- var m, p, y, v, b = 0, M = f.length, O = u % Ee, P = u / Ee | 0;
2813
- for (f = f.slice(); M--; ) b = ((p = O * (y = f[M] % Ee) + (m = P * y + (v = f[M] / Ee | 0) * O) % Ee * Ee + b) / h | 0) + (m / Ee | 0) + P * v, f[M] = p % h;
2812
+ var m, p, y, v, b = 0, M = f.length, I = u % Ee, P = u / Ee | 0;
2813
+ for (f = f.slice(); M--; ) b = ((p = I * (y = f[M] % Ee) + (m = P * y + (v = f[M] / Ee | 0) * I) % Ee * Ee + b) / h | 0) + (m / Ee | 0) + P * v, f[M] = p % h;
2814
2814
  return b && (f = [b].concat(f)), f;
2815
2815
  }
2816
2816
  function c(f, u, h, m) {
@@ -2827,20 +2827,20 @@ var $ = function e(t) {
2827
2827
  for (; !f[0] && f.length > 1; f.splice(0, 1)) ;
2828
2828
  }
2829
2829
  return function(f, u, h, m, p) {
2830
- var y, v, b, M, O, P, Z, et, at, z, q, ht, to, Mo, To, Qt, Oi, At = f.s == u.s ? 1 : -1, ft = f.c, J = u.c;
2830
+ var y, v, b, M, I, P, Z, et, at, z, q, ht, to, Mo, To, Qt, Ii, At = f.s == u.s ? 1 : -1, ft = f.c, J = u.c;
2831
2831
  if (!(ft && ft[0] && J && J[0])) return new S(f.s && u.s && (ft ? !J || ft[0] != J[0] : J) ? ft && ft[0] == 0 || !J ? 0 * At : At / 0 : NaN);
2832
2832
  for (at = (et = new S(At)).c = [], At = h + (v = f.e - u.e) + 1, p || (p = Wt, v = Ft(f.e / N) - Ft(u.e / N), At = At / N | 0), b = 0; J[b] == (ft[b] || 0); b++) ;
2833
2833
  if (J[b] > (ft[b] || 0) && v--, At < 0) at.push(1), M = !0;
2834
2834
  else {
2835
- for (Mo = ft.length, Qt = J.length, b = 0, At += 2, (O = Vt(p / (J[0] + 1))) > 1 && (J = n(J, O, p), ft = n(ft, O, p), Qt = J.length, Mo = ft.length), to = Qt, q = (z = ft.slice(0, Qt)).length; q < Qt; z[q++] = 0) ;
2836
- Oi = J.slice(), Oi = [0].concat(Oi), To = J[0], J[1] >= p / 2 && To++;
2835
+ for (Mo = ft.length, Qt = J.length, b = 0, At += 2, (I = Vt(p / (J[0] + 1))) > 1 && (J = n(J, I, p), ft = n(ft, I, p), Qt = J.length, Mo = ft.length), to = Qt, q = (z = ft.slice(0, Qt)).length; q < Qt; z[q++] = 0) ;
2836
+ Ii = J.slice(), Ii = [0].concat(Ii), To = J[0], J[1] >= p / 2 && To++;
2837
2837
  do {
2838
- if (O = 0, (y = c(J, z, Qt, q)) < 0) {
2839
- if (ht = z[0], Qt != q && (ht = ht * p + (z[1] || 0)), (O = Vt(ht / To)) > 1) for (O >= p && (O = p - 1), Z = (P = n(J, O, p)).length, q = z.length; c(P, z, Z, q) == 1; ) O--, d(P, Qt < Z ? Oi : J, Z, p), Z = P.length, y = 1;
2840
- else O == 0 && (y = O = 1), Z = (P = J.slice()).length;
2841
- if (Z < q && (P = [0].concat(P)), d(z, P, q, p), q = z.length, y == -1) for (; c(J, z, Qt, q) < 1; ) O++, d(z, Qt < q ? Oi : J, q, p), q = z.length;
2842
- } else y === 0 && (O++, z = [0]);
2843
- at[b++] = O, z[0] ? z[q++] = ft[to] || 0 : (z = [ft[to]], q = 1);
2838
+ if (I = 0, (y = c(J, z, Qt, q)) < 0) {
2839
+ if (ht = z[0], Qt != q && (ht = ht * p + (z[1] || 0)), (I = Vt(ht / To)) > 1) for (I >= p && (I = p - 1), Z = (P = n(J, I, p)).length, q = z.length; c(P, z, Z, q) == 1; ) I--, d(P, Qt < Z ? Ii : J, Z, p), Z = P.length, y = 1;
2840
+ else I == 0 && (y = I = 1), Z = (P = J.slice()).length;
2841
+ if (Z < q && (P = [0].concat(P)), d(z, P, q, p), q = z.length, y == -1) for (; c(J, z, Qt, q) < 1; ) I++, d(z, Qt < q ? Ii : J, q, p), q = z.length;
2842
+ } else y === 0 && (I++, z = [0]);
2843
+ at[b++] = I, z[0] ? z[q++] = ft[to] || 0 : (z = [ft[to]], q = 1);
2844
2844
  } while ((to++ < Mo || z[0] != null) && At--);
2845
2845
  M = z[0] != null, at[0] || at.splice(0, 1);
2846
2846
  }
@@ -2868,12 +2868,12 @@ var $ = function e(t) {
2868
2868
  return ti(this, new S(n, c));
2869
2869
  }, C.decimalPlaces = C.dp = function(n, c) {
2870
2870
  var d, f, u, h = this;
2871
- if (n != null) return Q(n, 0, kt), c == null ? c = I : Q(c, 0, 8), Dt(new S(h), n + h.e + 1, c);
2871
+ if (n != null) return Q(n, 0, kt), c == null ? c = O : Q(c, 0, 8), Dt(new S(h), n + h.e + 1, c);
2872
2872
  if (!(d = h.c)) return null;
2873
2873
  if (f = ((u = d.length - 1) - Ft(this.e / N)) * N, u = d[u]) for (; u % 10 == 0; u /= 10, f--) ;
2874
2874
  return f < 0 && (f = 0), f;
2875
2875
  }, C.dividedBy = C.div = function(n, c) {
2876
- return i(this, new S(n, c), A, I);
2876
+ return i(this, new S(n, c), A, O);
2877
2877
  }, C.dividedToIntegerBy = C.idiv = function(n, c) {
2878
2878
  return i(this, new S(n, c), 0, 1);
2879
2879
  }, C.exponentiatedBy = C.pow = function(n, c) {
@@ -2902,10 +2902,10 @@ var $ = function e(t) {
2902
2902
  }
2903
2903
  b = b.times(b), h ? b.c && b.c.length > h && (b.c.length = h) : f && (b = b.mod(c));
2904
2904
  }
2905
- return f ? v : (p && (v = D.div(v)), c ? v.mod(c) : h ? Dt(v, ut, I, void 0) : v);
2905
+ return f ? v : (p && (v = D.div(v)), c ? v.mod(c) : h ? Dt(v, ut, O, void 0) : v);
2906
2906
  }, C.integerValue = function(n) {
2907
2907
  var c = new S(this);
2908
- return n == null ? n = I : Q(n, 0, 8), Dt(c, c.e + 1, n);
2908
+ return n == null ? n = O : Q(n, 0, 8), Dt(c, c.e + 1, n);
2909
2909
  }, C.isEqualTo = C.eq = function(n, c) {
2910
2910
  return ti(this, new S(n, c)) === 0;
2911
2911
  }, C.isFinite = function() {
@@ -2935,7 +2935,7 @@ var $ = function e(t) {
2935
2935
  var y = m.e / N, v = n.e / N, b = m.c, M = n.c;
2936
2936
  if (!y || !v) {
2937
2937
  if (!b || !M) return b ? (n.s = -c, n) : new S(M ? m : NaN);
2938
- if (!b[0] || !M[0]) return M[0] ? (n.s = -c, n) : new S(b[0] ? m : I == 3 ? -0 : 0);
2938
+ if (!b[0] || !M[0]) return M[0] ? (n.s = -c, n) : new S(b[0] ? m : O == 3 ? -0 : 0);
2939
2939
  }
2940
2940
  if (y = Ft(y), v = Ft(v), b = b.slice(), p = y - v) {
2941
2941
  for ((h = p < 0) ? (p = -p, u = b) : (v = y, u = M), u.reverse(), c = p; c--; u.push(0)) ;
@@ -2953,16 +2953,16 @@ var $ = function e(t) {
2953
2953
  b[f] -= M[f];
2954
2954
  }
2955
2955
  for (; b[0] == 0; b.splice(0, 1), --v) ;
2956
- return b[0] ? Lo(n, b, v) : (n.s = I == 3 ? -1 : 1, n.c = [n.e = 0], n);
2956
+ return b[0] ? Lo(n, b, v) : (n.s = O == 3 ? -1 : 1, n.c = [n.e = 0], n);
2957
2957
  }, C.modulo = C.mod = function(n, c) {
2958
2958
  var d, f, u = this;
2959
2959
  return n = new S(n, c), !u.c || !n.s || n.c && !n.c[0] ? new S(NaN) : !n.c || u.c && !u.c[0] ? new S(u) : (ot == 9 ? (f = n.s, n.s = 1, d = i(u, n, 0, 3), n.s = f, d.s *= f) : d = i(u, n, 0, ot), (n = u.minus(d.times(n))).c[0] || ot != 1 || (n.s = u.s), n);
2960
2960
  }, C.multipliedBy = C.times = function(n, c) {
2961
- var d, f, u, h, m, p, y, v, b, M, O, P, Z, et, at, z = this, q = z.c, ht = (n = new S(n, c)).c;
2961
+ var d, f, u, h, m, p, y, v, b, M, I, P, Z, et, at, z = this, q = z.c, ht = (n = new S(n, c)).c;
2962
2962
  if (!(q && ht && q[0] && ht[0])) return !z.s || !n.s || q && !q[0] && !ht || ht && !ht[0] && !q ? n.c = n.e = n.s = null : (n.s *= z.s, q && ht ? (n.c = [0], n.e = 0) : n.c = n.e = null), n;
2963
2963
  for (f = Ft(z.e / N) + Ft(n.e / N), n.s *= z.s, (y = q.length) < (M = ht.length) && (Z = q, q = ht, ht = Z, u = y, y = M, M = u), u = y + M, Z = []; u--; Z.push(0)) ;
2964
2964
  for (et = Wt, at = Ee, u = M; --u >= 0; ) {
2965
- for (d = 0, O = ht[u] % at, P = ht[u] / at | 0, h = u + (m = y); h > u; ) d = ((v = O * (v = q[--m] % at) + (p = P * v + (b = q[m] / at | 0) * O) % at * at + Z[h] + d) / et | 0) + (p / at | 0) + P * b, Z[h--] = v % et;
2965
+ for (d = 0, I = ht[u] % at, P = ht[u] / at | 0, h = u + (m = y); h > u; ) d = ((v = I * (v = q[--m] % at) + (p = P * v + (b = q[m] / at | 0) * I) % at * at + Z[h] + d) / et | 0) + (p / at | 0) + P * b, Z[h--] = v % et;
2966
2966
  Z[h] = d;
2967
2967
  }
2968
2968
  return d ? ++f : Z.splice(0, 1), Lo(n, Z, f);
@@ -2986,7 +2986,7 @@ var $ = function e(t) {
2986
2986
  return u && (p = [u].concat(p), ++m), Lo(n, p, m);
2987
2987
  }, C.precision = C.sd = function(n, c) {
2988
2988
  var d, f, u, h = this;
2989
- if (n != null && n !== !!n) return Q(n, 1, kt), c == null ? c = I : Q(c, 0, 8), Dt(new S(h), n, c);
2989
+ if (n != null && n !== !!n) return Q(n, 1, kt), c == null ? c = O : Q(c, 0, 8), Dt(new S(h), n, c);
2990
2990
  if (!(d = h.c)) return null;
2991
2991
  if (f = (u = d.length - 1) * N + 1, u = d[u]) {
2992
2992
  for (; u % 10 == 0; u /= 10, f--) ;
@@ -2998,8 +2998,8 @@ var $ = function e(t) {
2998
2998
  }, C.squareRoot = C.sqrt = function() {
2999
2999
  var n, c, d, f, u, h = this, m = h.c, p = h.s, y = h.e, v = A + 4, b = new S("0.5");
3000
3000
  if (p !== 1 || !m || !m[0]) return new S(!p || p < 0 && (!m || m[0]) ? NaN : m ? h : 1 / 0);
3001
- if ((p = Math.sqrt(+me(h))) == 0 || p == 1 / 0 ? (((c = Ot(m)).length + y) % 2 == 0 && (c += "0"), p = Math.sqrt(+c), y = Ft((y + 1) / 2) - (y < 0 || y % 2), d = new S(c = p == 1 / 0 ? "5e" + y : (c = p.toExponential()).slice(0, c.indexOf("e") + 1) + y)) : d = new S(p + ""), d.c[0]) {
3002
- for ((p = (y = d.e) + v) < 3 && (p = 0); ; ) if (u = d, d = b.times(u.plus(i(h, u, v, 1))), Ot(u.c).slice(0, p) === (c = Ot(d.c)).slice(0, p)) {
3001
+ if ((p = Math.sqrt(+me(h))) == 0 || p == 1 / 0 ? (((c = It(m)).length + y) % 2 == 0 && (c += "0"), p = Math.sqrt(+c), y = Ft((y + 1) / 2) - (y < 0 || y % 2), d = new S(c = p == 1 / 0 ? "5e" + y : (c = p.toExponential()).slice(0, c.indexOf("e") + 1) + y)) : d = new S(p + ""), d.c[0]) {
3002
+ for ((p = (y = d.e) + v) < 3 && (p = 0); ; ) if (u = d, d = b.times(u.plus(i(h, u, v, 1))), It(u.c).slice(0, p) === (c = It(d.c)).slice(0, p)) {
3003
3003
  if (d.e < y && --p, (c = c.slice(p - 3, p + 1)) != "9999" && (f || c != "4999")) {
3004
3004
  +c && (+c.slice(1) || c.charAt(0) != "5") || (Dt(d, d.e + A + 2, 1), n = !d.times(d).eq(h));
3005
3005
  break;
@@ -3011,7 +3011,7 @@ var $ = function e(t) {
3011
3011
  v += 4, p += 4, f = 1;
3012
3012
  }
3013
3013
  }
3014
- return Dt(d, d.e + A + 1, I, n);
3014
+ return Dt(d, d.e + A + 1, O, n);
3015
3015
  }, C.toExponential = function(n, c) {
3016
3016
  return n != null && (Q(n, 0, kt), n++), ko(this, n, c, 1);
3017
3017
  }, C.toFixed = function(n, c) {
@@ -3021,27 +3021,27 @@ var $ = function e(t) {
3021
3021
  if (d == null) n != null && c && typeof c == "object" ? (d = c, c = null) : n && typeof n == "object" ? (d = n, n = c = null) : d = Xe;
3022
3022
  else if (typeof d != "object") throw Error(Ct + "Argument not an object: " + d);
3023
3023
  if (f = u.toFixed(n, c), u.c) {
3024
- var h, m = f.split("."), p = +d.groupSize, y = +d.secondaryGroupSize, v = d.groupSeparator || "", b = m[0], M = m[1], O = u.s < 0, P = O ? b.slice(1) : b, Z = P.length;
3024
+ var h, m = f.split("."), p = +d.groupSize, y = +d.secondaryGroupSize, v = d.groupSeparator || "", b = m[0], M = m[1], I = u.s < 0, P = I ? b.slice(1) : b, Z = P.length;
3025
3025
  if (y && (h = p, p = y, y = h, Z -= h), p > 0 && Z > 0) {
3026
3026
  for (h = Z % p || p, b = P.substr(0, h); h < Z; h += p) b += v + P.substr(h, p);
3027
- y > 0 && (b += v + P.slice(h)), O && (b = "-" + b);
3027
+ y > 0 && (b += v + P.slice(h)), I && (b = "-" + b);
3028
3028
  }
3029
3029
  f = M ? b + (d.decimalSeparator || "") + ((y = +d.fractionGroupSize) ? M.replace(new RegExp("\\d{" + y + "}\\B", "g"), "$&" + (d.fractionGroupSeparator || "")) : M) : b;
3030
3030
  }
3031
3031
  return (d.prefix || "") + f + (d.suffix || "");
3032
3032
  }, C.toFraction = function(n) {
3033
- var c, d, f, u, h, m, p, y, v, b, M, O, P = this, Z = P.c;
3033
+ var c, d, f, u, h, m, p, y, v, b, M, I, P = this, Z = P.c;
3034
3034
  if (n != null && (!(p = new S(n)).isInteger() && (p.c || p.s !== 1) || p.lt(D))) throw Error(Ct + "Argument " + (p.isInteger() ? "out of range: " : "not an integer: ") + me(p));
3035
3035
  if (!Z) return new S(P);
3036
- for (c = new S(D), v = d = new S(D), f = y = new S(D), O = Ot(Z), h = c.e = O.length - P.e - 1, c.c[0] = Po[(m = h % N) < 0 ? N + m : m], n = !n || p.comparedTo(c) > 0 ? h > 0 ? c : v : p, m = tt, tt = 1 / 0, p = new S(O), y.c[0] = 0; b = i(p, c, 0, 1), (u = d.plus(b.times(f))).comparedTo(n) != 1; ) d = f, f = u, v = y.plus(b.times(u = v)), y = u, c = p.minus(b.times(u = c)), p = u;
3037
- return u = i(n.minus(d), f, 0, 1), y = y.plus(u.times(v)), d = d.plus(u.times(f)), y.s = v.s = P.s, M = i(v, f, h *= 2, I).minus(P).abs().comparedTo(i(y, d, h, I).minus(P).abs()) < 1 ? [v, f] : [y, d], tt = m, M;
3036
+ for (c = new S(D), v = d = new S(D), f = y = new S(D), I = It(Z), h = c.e = I.length - P.e - 1, c.c[0] = Po[(m = h % N) < 0 ? N + m : m], n = !n || p.comparedTo(c) > 0 ? h > 0 ? c : v : p, m = tt, tt = 1 / 0, p = new S(I), y.c[0] = 0; b = i(p, c, 0, 1), (u = d.plus(b.times(f))).comparedTo(n) != 1; ) d = f, f = u, v = y.plus(b.times(u = v)), y = u, c = p.minus(b.times(u = c)), p = u;
3037
+ return u = i(n.minus(d), f, 0, 1), y = y.plus(u.times(v)), d = d.plus(u.times(f)), y.s = v.s = P.s, M = i(v, f, h *= 2, O).minus(P).abs().comparedTo(i(y, d, h, O).minus(P).abs()) < 1 ? [v, f] : [y, d], tt = m, M;
3038
3038
  }, C.toNumber = function() {
3039
3039
  return +me(this);
3040
3040
  }, C.toPrecision = function(n, c) {
3041
3041
  return n != null && Q(n, 1, kt), ko(this, n, c, 2);
3042
3042
  }, C.toString = function(n) {
3043
3043
  var c, d = this, f = d.s, u = d.e;
3044
- return u === null ? f ? (c = "Infinity", f < 0 && (c = "-" + c)) : c = "NaN" : (n == null ? c = u <= it || u >= W ? so(Ot(d.c), u) : fe(Ot(d.c), u, "0") : n === 10 && So ? c = fe(Ot((d = Dt(new S(d), A + u + 1, I)).c), d.e, "0") : (Q(n, 2, Xt.length, "Base"), c = o(fe(Ot(d.c), u, "0"), 10, n, f, !0)), f < 0 && d.c[0] && (c = "-" + c)), c;
3044
+ return u === null ? f ? (c = "Infinity", f < 0 && (c = "-" + c)) : c = "NaN" : (n == null ? c = u <= it || u >= W ? so(It(d.c), u) : fe(It(d.c), u, "0") : n === 10 && So ? c = fe(It((d = Dt(new S(d), A + u + 1, O)).c), d.e, "0") : (Q(n, 2, Xt.length, "Base"), c = o(fe(It(d.c), u, "0"), 10, n, f, !0)), f < 0 && d.c[0] && (c = "-" + c)), c;
3045
3045
  }, C.valueOf = C.toJSON = function() {
3046
3046
  return me(this);
3047
3047
  }, C._isBigNumber = !0, C[Symbol.toStringTag] = "BigNumber", C[Symbol.for("nodejs.util.inspect.custom")] = C.valueOf, t != null && S.set(t), S;
@@ -3408,7 +3408,7 @@ const st = class st {
3408
3408
  }
3409
3409
  async cashout() {
3410
3410
  try {
3411
- const t = await fetch(`${this.baseUrl}/cashout`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${this.authToken}` } }), i = await t.json();
3411
+ const t = await fetch(`${this.baseUrl}/cashout`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${this.authToken}` }, body: JSON.stringify({}) }), i = await t.json();
3412
3412
  if (!i.id) throw new Error("Unknown error");
3413
3413
  return { success: !0, data: i };
3414
3414
  } catch (t) {
@@ -4794,7 +4794,7 @@ const _a = H`
4794
4794
  origami-limbo-multiplier {
4795
4795
  pointer-events: none;
4796
4796
  }
4797
- `, Ia = H`
4797
+ `, Oa = H`
4798
4798
  :host {
4799
4799
  display: block;
4800
4800
  --success-color: var(--win-success-color, #4ef382);
@@ -4896,9 +4896,9 @@ const _a = H`
4896
4896
  margin: 0;
4897
4897
  }
4898
4898
  `;
4899
- var Oa = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, _e = (e, t, i, o) => {
4899
+ var Ia = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, _e = (e, t, i, o) => {
4900
4900
  for (var r, s = o > 1 ? void 0 : o ? Ba(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
4901
- return o && s && Oa(t, i, s), s;
4901
+ return o && s && Ia(t, i, s), s;
4902
4902
  };
4903
4903
  const Pa = { Keno: St`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" viewBox="0 0 14 15" fill="none">
4904
4904
  <path d="M0 11V4L3.5 0.5H10.5L14 4V11L10.5 14.5H3.5L0 11Z" fill="#D9D9D9"/>
@@ -4963,7 +4963,7 @@ let ie = class extends qt {
4963
4963
  `;
4964
4964
  }
4965
4965
  };
4966
- ie.styles = [U, Ia], _e([l({ type: Object })], ie.prototype, "payout", 2), _e([l({ type: Number })], ie.prototype, "multiplier", 2), _e([l({ type: String })], ie.prototype, "currencySymbol", 2), _e([l({ type: String })], ie.prototype, "title", 2), _e([l({ type: String })], ie.prototype, "description", 2), _e([l({ type: Number })], ie.prototype, "gemCount", 2), _e([l({ type: String })], ie.prototype, "gameType", 2), ie = _e([B("origami-game-win-popup")], ie);
4966
+ ie.styles = [U, Oa], _e([l({ type: Object })], ie.prototype, "payout", 2), _e([l({ type: Number })], ie.prototype, "multiplier", 2), _e([l({ type: String })], ie.prototype, "currencySymbol", 2), _e([l({ type: String })], ie.prototype, "title", 2), _e([l({ type: String })], ie.prototype, "description", 2), _e([l({ type: Number })], ie.prototype, "gemCount", 2), _e([l({ type: String })], ie.prototype, "gameType", 2), ie = _e([B("origami-game-win-popup")], ie);
4967
4967
  const Na = St`<svg xmlns="http://www.w3.org/2000/svg" width="65" height="69" viewBox="0 0 65 69" fill="none">
4968
4968
  <path d="M7.24675 10.3565C12.1607 5.44252 16.9688 2.2828 17.9855 3.29949L21.6645 6.97856C21.7391 6.9491 21.8139 6.9206 21.8886 6.89173C21.9245 6.87787 21.9598 6.86274 21.9957 6.84901C22.139 6.79423 22.2832 6.74198 22.4271 6.68936C22.4976 6.6636 22.5679 6.63758 22.6386 6.61233C22.7811 6.56135 22.9239 6.51136 23.0671 6.46248C23.1263 6.44226 23.1856 6.42212 23.245 6.40226C23.7408 6.23625 24.2401 6.08371 24.7421 5.9429C24.8028 5.92586 24.8633 5.90776 24.9241 5.89108C25.0925 5.84493 25.2614 5.80067 25.4304 5.75734C25.4582 5.75021 25.4859 5.74268 25.5137 5.73563C25.6933 5.69011 25.8734 5.64701 26.0536 5.60469C26.0816 5.59811 26.1096 5.59158 26.1376 5.58508C36.4359 3.19585 47.6965 6.01242 55.7224 14.0384C68.092 26.4081 68.092 46.4631 55.7224 58.8328C44.8011 69.7541 27.8904 71.0307 15.5662 62.6666C15.5401 62.6489 15.5139 62.6312 15.4878 62.6134C15.0733 62.3303 14.6639 62.0368 14.2603 61.7318C14.2129 61.696 14.1653 61.6607 14.1181 61.6246C13.937 61.4862 13.7577 61.3446 13.5789 61.2017C13.5333 61.1652 13.4872 61.1292 13.4417 61.0925C13.2654 60.9499 13.0904 60.8052 12.9165 60.6583C12.878 60.6258 12.8387 60.5944 12.8003 60.5617C12.6641 60.4455 12.5303 60.3262 12.3956 60.2074C12.3093 60.1313 12.2221 60.0562 12.1365 59.9791C11.7265 59.6095 11.3234 59.2276 10.9286 58.8328C9.3824 57.2866 8.02965 55.6202 6.87002 53.8639C5.71034 52.1075 4.74417 50.2609 3.97106 48.3544C1.65178 42.6349 1.07128 36.3751 2.23098 30.3855C2.6002 28.4786 3.14769 26.5998 3.86953 24.7738L0.190507 21.0947C-0.826159 20.078 2.3329 15.2705 7.24675 10.3565Z" fill="#E11717"/>
4969
4969
  <path d="M55.7227 14.0379C68.0923 26.4076 68.0923 46.4629 55.7227 58.8326C43.3531 71.2023 23.2981 71.2023 10.9285 58.8326C-1.44103 46.4629 -1.44103 26.4076 10.9285 14.0379C23.2981 1.66819 43.3531 1.66819 55.7227 14.0379Z" fill="#BD2828"/>
@@ -5331,7 +5331,7 @@ const Ha = H`
5331
5331
  margin: 0 auto;
5332
5332
  }
5333
5333
  `;
5334
- var Wa = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ie = (e, t, i, o) => {
5334
+ var Wa = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Oe = (e, t, i, o) => {
5335
5335
  for (var r, s = o > 1 ? void 0 : o ? za(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
5336
5336
  return o && s && Wa(t, i, s), s;
5337
5337
  };
@@ -5383,7 +5383,7 @@ let oe = class extends R {
5383
5383
  `;
5384
5384
  }
5385
5385
  };
5386
- oe.styles = [U, Ha], Ie([l({ type: Boolean })], oe.prototype, "isAuto", 2), Ie([l({ type: Array })], oe.prototype, "autobetSelectedTiles", 2), Ie([l({ type: Boolean })], oe.prototype, "autobetInProgress", 2), Ie([l({ type: Object })], oe.prototype, "minesState", 2), Ie([l({ type: Boolean })], oe.prototype, "hasWon", 2), Ie([l({ type: Boolean })], oe.prototype, "hitBomb", 2), Ie([yi({ context: ge, subscribe: !0 })], oe.prototype, "gameData", 2), oe = Ie([B("origami-mines-grid")], oe);
5386
+ oe.styles = [U, Ha], Oe([l({ type: Boolean })], oe.prototype, "isAuto", 2), Oe([l({ type: Array })], oe.prototype, "autobetSelectedTiles", 2), Oe([l({ type: Boolean })], oe.prototype, "autobetInProgress", 2), Oe([l({ type: Object })], oe.prototype, "minesState", 2), Oe([l({ type: Boolean })], oe.prototype, "hasWon", 2), Oe([l({ type: Boolean })], oe.prototype, "hitBomb", 2), Oe([yi({ context: ge, subscribe: !0 })], oe.prototype, "gameData", 2), oe = Oe([B("origami-mines-grid")], oe);
5387
5387
  const ja = H`
5388
5388
  :host {
5389
5389
  --multiplier-success-color: #daff01;
@@ -5432,7 +5432,7 @@ var Ga = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, wi = (e, t
5432
5432
  for (var r, s = o > 1 ? void 0 : o ? Za(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
5433
5433
  return o && s && Ga(t, i, s), s;
5434
5434
  };
5435
- let Oe = class extends R {
5435
+ let Ie = class extends R {
5436
5436
  constructor() {
5437
5437
  super(...arguments), this.resultMultiplier = null, this.isWin = !0, this.betId = "", this.betTargetMultiplier = 2, this.currentValue = 1, this.animationFrame = null, this.startTime = null;
5438
5438
  }
@@ -5464,7 +5464,7 @@ let Oe = class extends R {
5464
5464
  return x`<div class=${e}>${t}X</div>`;
5465
5465
  }
5466
5466
  };
5467
- Oe.styles = [U, ja], wi([l({ type: Number })], Oe.prototype, "resultMultiplier", 2), wi([l({ type: Boolean })], Oe.prototype, "isWin", 2), wi([l({ type: String })], Oe.prototype, "betId", 2), wi([l({ type: Number })], Oe.prototype, "betTargetMultiplier", 2), wi([T()], Oe.prototype, "currentValue", 2), Oe = wi([B("origami-limbo-multiplier")], Oe);
5467
+ Ie.styles = [U, ja], wi([l({ type: Number })], Ie.prototype, "resultMultiplier", 2), wi([l({ type: Boolean })], Ie.prototype, "isWin", 2), wi([l({ type: String })], Ie.prototype, "betId", 2), wi([l({ type: Number })], Ie.prototype, "betTargetMultiplier", 2), wi([T()], Ie.prototype, "currentValue", 2), Ie = wi([B("origami-limbo-multiplier")], Ie);
5468
5468
  const Ka = St`<svg width="46" height="52" viewBox="0 0 46 52" fill="none" xmlns="http://www.w3.org/2000/svg">
5469
5469
  <path d="M43.28 11.128L25.05 0.608042C24.358 0.209672 23.5735 0 22.775 0C21.9765 0 21.192 0.209672 20.5 0.608042L2.28 11.128C1.58744 11.5267 1.0121 12.1008 0.611853 12.7924C0.211608 13.4841 0.000579365 14.2689 0 15.068L0 36.068C0.000579365 36.8672 0.211608 37.652 0.611853 38.3437C1.0121 39.0353 1.58744 39.6094 2.28 40.008L20.5 50.578C21.192 50.9764 21.9765 51.1861 22.775 51.1861C23.5735 51.1861 24.358 50.9764 25.05 50.578L43.28 40.058C43.97 39.6573 44.5428 39.0826 44.9411 38.3912C45.3395 37.6998 45.5494 36.916 45.55 36.118V15.118C45.5582 14.3117 45.3525 13.5175 44.9537 12.8166C44.5549 12.1156 43.9774 11.533 43.28 11.128Z" fill="white"/>
5470
5470
  <path d="M21.13 24.638L1.85 13.508C1.66327 13.399 1.45112 13.3412 1.23491 13.3403C1.01871 13.3395 0.806098 13.3956 0.618505 13.5031C0.430911 13.6106 0.274964 13.7656 0.166378 13.9526C0.0577928 14.1395 0.000405611 14.3518 0 14.568L0 36.568C0.000480311 37.2143 0.170694 37.8491 0.493607 38.409C0.81652 38.9688 1.28081 39.434 1.84 39.758L20.93 50.758C21.4928 51.0812 22.131 51.2502 22.78 51.248C25.6097 43.5601 25.6097 35.1159 22.78 27.428C22.7682 26.8603 22.6102 26.3052 22.3212 25.8165C22.0321 25.3277 21.6218 24.9218 21.13 24.638Z" fill="#F0F0F0"/>
@@ -6213,7 +6213,7 @@ let Pe = class extends qt {
6213
6213
  super(...arguments), this.gameType = "keno";
6214
6214
  }
6215
6215
  render() {
6216
- var e, t, i, o, r, s, a, g, w, L, V, k, C, D, A, I, it, W, dt, tt;
6216
+ var e, t, i, o, r, s, a, g, w, L, V, k, C, D, A, O, it, W, dt, tt;
6217
6217
  switch (this.gameType) {
6218
6218
  case "mines":
6219
6219
  return x`
@@ -6245,7 +6245,7 @@ let Pe = class extends qt {
6245
6245
  case "keno":
6246
6246
  return x`
6247
6247
  <origami-keno-grid
6248
- .selectedTiles=${((I = this.kenoData) == null ? void 0 : I.selectedTiles) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}
6248
+ .selectedTiles=${((O = this.kenoData) == null ? void 0 : O.selectedTiles) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}
6249
6249
  .resultTiles=${((it = this.kenoData) == null ? void 0 : it.resultTiles) || [5, 8, 22, 24, 23, 37]}
6250
6250
  ?isPlaying=${((W = this.kenoData) == null ? void 0 : W.isPlaying) ?? !1}
6251
6251
  ?gameOver=${((dt = this.kenoData) == null ? void 0 : dt.gameOver) ?? !0}
@@ -8325,7 +8325,7 @@ const En = H`
8325
8325
  return this.dt(e, t, i).values;
8326
8326
  }
8327
8327
  update(e, [t, i, o]) {
8328
- const r = ((I) => I._$AH)(e), { values: s, keys: a } = this.dt(t, i, o);
8328
+ const r = ((O) => O._$AH)(e), { values: s, keys: a } = this.dt(t, i, o);
8329
8329
  if (!Array.isArray(r)) return this.ut = a, s;
8330
8330
  const g = this.ut ?? (this.ut = []), w = [];
8331
8331
  let L, V, k = 0, C = r.length - 1, D = 0, A = s.length - 1;
@@ -8336,21 +8336,21 @@ const En = H`
8336
8336
  else if (g[k] === a[A]) w[A] = Je(r[k], s[A]), Pi(e, w[A + 1], r[k]), k++, A--;
8337
8337
  else if (g[C] === a[D]) w[D] = Je(r[C], s[D]), Pi(e, r[k], r[C]), C--, D++;
8338
8338
  else if (L === void 0 && (L = Ts(a, D, A), V = Ts(g, k, C)), L.has(g[k])) if (L.has(g[C])) {
8339
- const I = V.get(a[D]), it = I !== void 0 ? r[I] : null;
8339
+ const O = V.get(a[D]), it = O !== void 0 ? r[O] : null;
8340
8340
  if (it === null) {
8341
8341
  const W = Pi(e, r[k]);
8342
8342
  Je(W, s[D]), w[D] = W;
8343
- } else w[D] = Je(it, s[D]), Pi(e, r[k], it), r[I] = null;
8343
+ } else w[D] = Je(it, s[D]), Pi(e, r[k], it), r[O] = null;
8344
8344
  D++;
8345
- } else Io(r[C]), C--;
8346
- else Io(r[k]), k++;
8345
+ } else Oo(r[C]), C--;
8346
+ else Oo(r[k]), k++;
8347
8347
  for (; D <= A; ) {
8348
- const I = Pi(e, w[A + 1]);
8349
- Je(I, s[D]), w[D++] = I;
8348
+ const O = Pi(e, w[A + 1]);
8349
+ Je(O, s[D]), w[D++] = O;
8350
8350
  }
8351
8351
  for (; k <= C; ) {
8352
- const I = r[k++];
8353
- I !== null && Io(I);
8352
+ const O = r[k++];
8353
+ O !== null && Oo(O);
8354
8354
  }
8355
8355
  return this.ut = a, Vs(e, w), Ut;
8356
8356
  }
@@ -8467,8 +8467,8 @@ const En = H`
8467
8467
  visibility: hidden;
8468
8468
  }
8469
8469
  `;
8470
- var _n = Object.defineProperty, In = Object.getOwnPropertyDescriptor, lo = (e, t, i, o) => {
8471
- for (var r, s = o > 1 ? void 0 : o ? In(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
8470
+ var _n = Object.defineProperty, On = Object.getOwnPropertyDescriptor, lo = (e, t, i, o) => {
8471
+ for (var r, s = o > 1 ? void 0 : o ? On(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
8472
8472
  return o && s && _n(t, i, s), s;
8473
8473
  };
8474
8474
  let Si = class extends R {
@@ -8509,9 +8509,9 @@ let Si = class extends R {
8509
8509
  }
8510
8510
  };
8511
8511
  Si.styles = [U, An], lo([l({ type: Array })], Si.prototype, "history", 2), lo([l({ type: String })], Si.prototype, "gameType", 2), lo([T()], Si.prototype, "animatingInIds", 2), Si = lo([B("origami-history-pills")], Si);
8512
- var On = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, Re = (e, t, i, o) => {
8512
+ var In = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, Re = (e, t, i, o) => {
8513
8513
  for (var r, s = o > 1 ? void 0 : o ? Bn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
8514
- return o && s && On(t, i, s), s;
8514
+ return o && s && In(t, i, s), s;
8515
8515
  };
8516
8516
  let ae = class extends R {
8517
8517
  constructor() {
@@ -8571,12 +8571,12 @@ const Jo = class Jo extends R {
8571
8571
  this.hasPendingBet = !0;
8572
8572
  let A = !0;
8573
8573
  for (; A && !this.autobetStopping; ) {
8574
- const [I] = await Promise.all([this.executeAutobet(i, s), xt(this.betDelay)]);
8575
- if (I.hasError) {
8576
- I.errorMessage ? alert(I.errorMessage) : alert("An error occurred during autobet"), A = !1;
8574
+ const [O] = await Promise.all([this.executeAutobet(i, s), xt(this.betDelay)]);
8575
+ if (O.hasError) {
8576
+ O.errorMessage ? alert(O.errorMessage) : alert("An error occurred during autobet"), A = !1;
8577
8577
  continue;
8578
8578
  }
8579
- r = r.plus(I.pnl), s = this.adjustBetAmount(i, I.gameOutcome, o, s), (g = this.gameData) == null || g.updateBalance($(s)), this.isPnLWithinLimits(i, r) ? ((w = this.gameData) == null ? void 0 : w.autobetNumberOfBets) !== 0 ? ((V = this.gameData) == null || V.updateAutobetNumberOfBets(((L = this.gameData) == null ? void 0 : L.autobetNumberOfBets) - 1), A = !Number.isNaN((k = this.gameData) == null ? void 0 : k.autobetNumberOfBets) && !!((C = this.gameData) != null && C.autobetNumberOfBets) && ((D = this.gameData) == null ? void 0 : D.autobetNumberOfBets) > 0, A && await xt(500)) : A = !0 : A = !1;
8579
+ r = r.plus(O.pnl), s = this.adjustBetAmount(i, O.gameOutcome, o, s), (g = this.gameData) == null || g.updateBalance($(s)), this.isPnLWithinLimits(i, r) ? ((w = this.gameData) == null ? void 0 : w.autobetNumberOfBets) !== 0 ? ((V = this.gameData) == null || V.updateAutobetNumberOfBets(((L = this.gameData) == null ? void 0 : L.autobetNumberOfBets) - 1), A = !Number.isNaN((k = this.gameData) == null ? void 0 : k.autobetNumberOfBets) && !!((C = this.gameData) != null && C.autobetNumberOfBets) && ((D = this.gameData) == null ? void 0 : D.autobetNumberOfBets) > 0, A && await xt(500)) : A = !0 : A = !1;
8580
8580
  }
8581
8581
  } catch (A) {
8582
8582
  console.error("Error occurred in toggle autobet", A), alert("An unexpected error occurred");
@@ -9923,7 +9923,7 @@ const F = class F extends wt {
9923
9923
  return [...t, { id: crypto.randomUUID(), data: { mines: { ...L, minesResult: g ? F.minePositions ?? [] : [] } }, type: r, actionIndex: w, originalActionId: null, betAmount: s, payoutAmount: a }];
9924
9924
  }
9925
9925
  static updateBetResult(t) {
9926
- const { prevResult: i = null, amount: o, minesCount: r, selectedTiles: s, isComplete: a = !1, actionType: g = Le.INTERMEDIATE_NON_BET_ACTION } = t, w = !s.some((I) => F.minePositions.includes(I)) && (!a || s.length > 0), L = s.filter((I) => !F.minePositions.includes(I)).length, V = w ? wt.calculateMinesMultiplier(L, r) : $(0), k = w ? $(o).multipliedBy(V).toString() : "0";
9926
+ const { prevResult: i = null, amount: o, minesCount: r, selectedTiles: s, isComplete: a = !1, actionType: g = Le.INTERMEDIATE_NON_BET_ACTION } = t, w = !s.some((O) => F.minePositions.includes(O)) && (!a || s.length > 0), L = s.filter((O) => !F.minePositions.includes(O)).length, V = w ? wt.calculateMinesMultiplier(L, r) : $(0), k = w ? $(o).multipliedBy(V).toString() : "0";
9927
9927
  let C = (i == null ? void 0 : i.actions) || [];
9928
9928
  i || (C = F.addAction([], [], r, Le.START_BET, o, "0"));
9929
9929
  const D = a ? Le.END_BET : g, A = D === Le.END_BET;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/games",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",