import { a as Ve, $ as Ze, S as Je, i as Ke, f as ne, c as $e, s as et, b as tt, e as p, d as w, t as O, g as h, y as le, h as q, j as s, l as $, k as P, n as xe, m as H, r as nt, p as rt, q as at, o as it, u as ot, z as ke, x as st, A as de, B as Ce, v as ge } from "./CasinoCoinroyaleContainer-Cfhery4H.js";
import { s as lt, a as ut, b as ct } from "./CasinoCoinroyaleDetails-bpbc2gGZ.js";
import "../stencil/ui-skeleton-NZtdK490.js";
function ve(n) {
  "@babel/helpers - typeof";
  return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
    return typeof e;
  } : function(e) {
    return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  }, ve(n);
}
function ie(n) {
  if (n === null || n === !0 || n === !1)
    return NaN;
  var e = Number(n);
  return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
}
function B(n, e) {
  if (e.length < n)
    throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
}
function V(n) {
  B(1, arguments);
  var e = Object.prototype.toString.call(n);
  return n instanceof Date || ve(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
}
function dt(n, e) {
  B(2, arguments);
  var t = V(n).getTime(), r = ie(e);
  return new Date(t + r);
}
var ft = {};
function we() {
  return ft;
}
function mt(n) {
  var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
  return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
}
function ht(n) {
  return B(1, arguments), n instanceof Date || ve(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
}
function gt(n) {
  if (B(1, arguments), !ht(n) && typeof n != "number")
    return !1;
  var e = V(n);
  return !isNaN(Number(e));
}
function vt(n, e) {
  B(2, arguments);
  var t = ie(e);
  return dt(n, -t);
}
var pt = 864e5;
function bt(n) {
  B(1, arguments);
  var e = V(n), t = e.getTime();
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
  var r = e.getTime(), a = t - r;
  return Math.floor(a / pt) + 1;
}
function pe(n) {
  B(1, arguments);
  var e = 1, t = V(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
  return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
}
function Ie(n) {
  B(1, arguments);
  var e = V(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
  r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
  var a = pe(r), i = /* @__PURE__ */ new Date(0);
  i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
  var o = pe(i);
  return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
}
function wt(n) {
  B(1, arguments);
  var e = Ie(n), t = /* @__PURE__ */ new Date(0);
  t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
  var r = pe(t);
  return r;
}
var _t = 6048e5;
function yt(n) {
  B(1, arguments);
  var e = V(n), t = pe(e).getTime() - wt(e).getTime();
  return Math.round(t / _t) + 1;
}
function be(n, e) {
  var t, r, a, i, o, l, f, c;
  B(1, arguments);
  var d = we(), u = ie((t = (r = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : d.weekStartsOn) !== null && r !== void 0 ? r : (f = d.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && t !== void 0 ? t : 0);
  if (!(u >= 0 && u <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  var g = V(n), v = g.getUTCDay(), b = (v < u ? 7 : 0) + v - u;
  return g.setUTCDate(g.getUTCDate() - b), g.setUTCHours(0, 0, 0, 0), g;
}
function Ge(n, e) {
  var t, r, a, i, o, l, f, c;
  B(1, arguments);
  var d = V(n), u = d.getUTCFullYear(), g = we(), v = ie((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : g.firstWeekContainsDate) !== null && r !== void 0 ? r : (f = g.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
  if (!(v >= 1 && v <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var b = /* @__PURE__ */ new Date(0);
  b.setUTCFullYear(u + 1, 0, v), b.setUTCHours(0, 0, 0, 0);
  var k = be(b, e), _ = /* @__PURE__ */ new Date(0);
  _.setUTCFullYear(u, 0, v), _.setUTCHours(0, 0, 0, 0);
  var C = be(_, e);
  return d.getTime() >= k.getTime() ? u + 1 : d.getTime() >= C.getTime() ? u : u - 1;
}
function xt(n, e) {
  var t, r, a, i, o, l, f, c;
  B(1, arguments);
  var d = we(), u = ie((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : d.firstWeekContainsDate) !== null && r !== void 0 ? r : (f = d.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), g = Ge(n, e), v = /* @__PURE__ */ new Date(0);
  v.setUTCFullYear(g, 0, u), v.setUTCHours(0, 0, 0, 0);
  var b = be(v, e);
  return b;
}
var kt = 6048e5;
function Ct(n, e) {
  B(1, arguments);
  var t = V(n), r = be(t, e).getTime() - xt(t, e).getTime();
  return Math.round(r / kt) + 1;
}
function y(n, e) {
  for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
    r = "0" + r;
  return t + r;
}
var re = {
  // Year
  y: function(e, t) {
    var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
    return y(t === "yy" ? a % 100 : a, t.length);
  },
  // Month
  M: function(e, t) {
    var r = e.getUTCMonth();
    return t === "M" ? String(r + 1) : y(r + 1, 2);
  },
  // Day of the month
  d: function(e, t) {
    return y(e.getUTCDate(), t.length);
  },
  // AM or PM
  a: function(e, t) {
    var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return r.toUpperCase();
      case "aaa":
        return r;
      case "aaaaa":
        return r[0];
      case "aaaa":
      default:
        return r === "am" ? "a.m." : "p.m.";
    }
  },
  // Hour [1-12]
  h: function(e, t) {
    return y(e.getUTCHours() % 12 || 12, t.length);
  },
  // Hour [0-23]
  H: function(e, t) {
    return y(e.getUTCHours(), t.length);
  },
  // Minute
  m: function(e, t) {
    return y(e.getUTCMinutes(), t.length);
  },
  // Second
  s: function(e, t) {
    return y(e.getUTCSeconds(), t.length);
  },
  // Fraction of second
  S: function(e, t) {
    var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
    return y(i, t.length);
  }
}, ue = {
  am: "am",
  pm: "pm",
  midnight: "midnight",
  noon: "noon",
  morning: "morning",
  afternoon: "afternoon",
  evening: "evening",
  night: "night"
}, Tt = {
  // Era
  G: function(e, t, r) {
    var a = e.getUTCFullYear() > 0 ? 1 : 0;
    switch (t) {
      case "G":
      case "GG":
      case "GGG":
        return r.era(a, {
          width: "abbreviated"
        });
      case "GGGGG":
        return r.era(a, {
          width: "narrow"
        });
      case "GGGG":
      default:
        return r.era(a, {
          width: "wide"
        });
    }
  },
  // Year
  y: function(e, t, r) {
    if (t === "yo") {
      var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
      return r.ordinalNumber(i, {
        unit: "year"
      });
    }
    return re.y(e, t);
  },
  // Local week-numbering year
  Y: function(e, t, r, a) {
    var i = Ge(e, a), o = i > 0 ? i : 1 - i;
    if (t === "YY") {
      var l = o % 100;
      return y(l, 2);
    }
    return t === "Yo" ? r.ordinalNumber(o, {
      unit: "year"
    }) : y(o, t.length);
  },
  // ISO week-numbering year
  R: function(e, t) {
    var r = Ie(e);
    return y(r, t.length);
  },
  // Extended year. This is a single number designating the year of this calendar system.
  // The main difference between `y` and `u` localizers are B.C. years:
  // | Year | `y` | `u` |
  // |------|-----|-----|
  // | AC 1 |   1 |   1 |
  // | BC 1 |   1 |   0 |
  // | BC 2 |   2 |  -1 |
  // Also `yy` always returns the last two digits of a year,
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
  u: function(e, t) {
    var r = e.getUTCFullYear();
    return y(r, t.length);
  },
  // Quarter
  Q: function(e, t, r) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "Q":
        return String(a);
      case "QQ":
        return y(a, 2);
      case "Qo":
        return r.ordinalNumber(a, {
          unit: "quarter"
        });
      case "QQQ":
        return r.quarter(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "QQQQQ":
        return r.quarter(a, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return r.quarter(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone quarter
  q: function(e, t, r) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "q":
        return String(a);
      case "qq":
        return y(a, 2);
      case "qo":
        return r.ordinalNumber(a, {
          unit: "quarter"
        });
      case "qqq":
        return r.quarter(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "qqqqq":
        return r.quarter(a, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return r.quarter(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Month
  M: function(e, t, r) {
    var a = e.getUTCMonth();
    switch (t) {
      case "M":
      case "MM":
        return re.M(e, t);
      case "Mo":
        return r.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "MMM":
        return r.month(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "MMMMM":
        return r.month(a, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return r.month(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone month
  L: function(e, t, r) {
    var a = e.getUTCMonth();
    switch (t) {
      case "L":
        return String(a + 1);
      case "LL":
        return y(a + 1, 2);
      case "Lo":
        return r.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "LLL":
        return r.month(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "LLLLL":
        return r.month(a, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return r.month(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Local week of year
  w: function(e, t, r, a) {
    var i = Ct(e, a);
    return t === "wo" ? r.ordinalNumber(i, {
      unit: "week"
    }) : y(i, t.length);
  },
  // ISO week of year
  I: function(e, t, r) {
    var a = yt(e);
    return t === "Io" ? r.ordinalNumber(a, {
      unit: "week"
    }) : y(a, t.length);
  },
  // Day of the month
  d: function(e, t, r) {
    return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
      unit: "date"
    }) : re.d(e, t);
  },
  // Day of year
  D: function(e, t, r) {
    var a = bt(e);
    return t === "Do" ? r.ordinalNumber(a, {
      unit: "dayOfYear"
    }) : y(a, t.length);
  },
  // Day of week
  E: function(e, t, r) {
    var a = e.getUTCDay();
    switch (t) {
      case "E":
      case "EE":
      case "EEE":
        return r.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "EEEEE":
        return r.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return r.day(a, {
          width: "short",
          context: "formatting"
        });
      case "EEEE":
      default:
        return r.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Local day of week
  e: function(e, t, r, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "e":
        return String(o);
      case "ee":
        return y(o, 2);
      case "eo":
        return r.ordinalNumber(o, {
          unit: "day"
        });
      case "eee":
        return r.day(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "eeeee":
        return r.day(i, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return r.day(i, {
          width: "short",
          context: "formatting"
        });
      case "eeee":
      default:
        return r.day(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone local day of week
  c: function(e, t, r, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "c":
        return String(o);
      case "cc":
        return y(o, t.length);
      case "co":
        return r.ordinalNumber(o, {
          unit: "day"
        });
      case "ccc":
        return r.day(i, {
          width: "abbreviated",
          context: "standalone"
        });
      case "ccccc":
        return r.day(i, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return r.day(i, {
          width: "short",
          context: "standalone"
        });
      case "cccc":
      default:
        return r.day(i, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // ISO day of week
  i: function(e, t, r) {
    var a = e.getUTCDay(), i = a === 0 ? 7 : a;
    switch (t) {
      case "i":
        return String(i);
      case "ii":
        return y(i, t.length);
      case "io":
        return r.ordinalNumber(i, {
          unit: "day"
        });
      case "iii":
        return r.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "iiiii":
        return r.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "iiiiii":
        return r.day(a, {
          width: "short",
          context: "formatting"
        });
      case "iiii":
      default:
        return r.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM or PM
  a: function(e, t, r) {
    var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "aaa":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "aaaaa":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM, PM, midnight, noon
  b: function(e, t, r) {
    var a = e.getUTCHours(), i;
    switch (a === 12 ? i = ue.noon : a === 0 ? i = ue.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
      case "b":
      case "bb":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "bbb":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "bbbbb":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // in the morning, in the afternoon, in the evening, at night
  B: function(e, t, r) {
    var a = e.getUTCHours(), i;
    switch (a >= 17 ? i = ue.evening : a >= 12 ? i = ue.afternoon : a >= 4 ? i = ue.morning : i = ue.night, t) {
      case "B":
      case "BB":
      case "BBB":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "BBBBB":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Hour [1-12]
  h: function(e, t, r) {
    if (t === "ho") {
      var a = e.getUTCHours() % 12;
      return a === 0 && (a = 12), r.ordinalNumber(a, {
        unit: "hour"
      });
    }
    return re.h(e, t);
  },
  // Hour [0-23]
  H: function(e, t, r) {
    return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
      unit: "hour"
    }) : re.H(e, t);
  },
  // Hour [0-11]
  K: function(e, t, r) {
    var a = e.getUTCHours() % 12;
    return t === "Ko" ? r.ordinalNumber(a, {
      unit: "hour"
    }) : y(a, t.length);
  },
  // Hour [1-24]
  k: function(e, t, r) {
    var a = e.getUTCHours();
    return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
      unit: "hour"
    }) : y(a, t.length);
  },
  // Minute
  m: function(e, t, r) {
    return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
      unit: "minute"
    }) : re.m(e, t);
  },
  // Second
  s: function(e, t, r) {
    return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
      unit: "second"
    }) : re.s(e, t);
  },
  // Fraction of second
  S: function(e, t) {
    return re.S(e, t);
  },
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    if (o === 0)
      return "Z";
    switch (t) {
      case "X":
        return Me(o);
      case "XXXX":
      case "XX":
        return ae(o);
      case "XXXXX":
      case "XXX":
      default:
        return ae(o, ":");
    }
  },
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
  x: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "x":
        return Me(o);
      case "xxxx":
      case "xx":
        return ae(o);
      case "xxxxx":
      case "xxx":
      default:
        return ae(o, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + Te(o, ":");
      case "OOOO":
      default:
        return "GMT" + ae(o, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "z":
      case "zz":
      case "zzz":
        return "GMT" + Te(o, ":");
      case "zzzz":
      default:
        return "GMT" + ae(o, ":");
    }
  },
  // Seconds timestamp
  t: function(e, t, r, a) {
    var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
    return y(o, t.length);
  },
  // Milliseconds timestamp
  T: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTime();
    return y(o, t.length);
  }
};
function Te(n, e) {
  var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
  if (i === 0)
    return t + String(a);
  var o = e;
  return t + String(a) + o + y(i, 2);
}
function Me(n, e) {
  if (n % 60 === 0) {
    var t = n > 0 ? "-" : "+";
    return t + y(Math.abs(n) / 60, 2);
  }
  return ae(n, e);
}
function ae(n, e) {
  var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = y(Math.floor(a / 60), 2), o = y(a % 60, 2);
  return r + i + t + o;
}
var Oe = function(e, t) {
  switch (e) {
    case "P":
      return t.date({
        width: "short"
      });
    case "PP":
      return t.date({
        width: "medium"
      });
    case "PPP":
      return t.date({
        width: "long"
      });
    case "PPPP":
    default:
      return t.date({
        width: "full"
      });
  }
}, Qe = function(e, t) {
  switch (e) {
    case "p":
      return t.time({
        width: "short"
      });
    case "pp":
      return t.time({
        width: "medium"
      });
    case "ppp":
      return t.time({
        width: "long"
      });
    case "pppp":
    default:
      return t.time({
        width: "full"
      });
  }
}, Mt = function(e, t) {
  var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
  if (!i)
    return Oe(e, t);
  var o;
  switch (a) {
    case "P":
      o = t.dateTime({
        width: "short"
      });
      break;
    case "PP":
      o = t.dateTime({
        width: "medium"
      });
      break;
    case "PPP":
      o = t.dateTime({
        width: "long"
      });
      break;
    case "PPPP":
    default:
      o = t.dateTime({
        width: "full"
      });
      break;
  }
  return o.replace("{{date}}", Oe(a, t)).replace("{{time}}", Qe(i, t));
}, Ot = {
  p: Qe,
  P: Mt
}, Pt = ["D", "DD"], Dt = ["YY", "YYYY"];
function St(n) {
  return Pt.indexOf(n) !== -1;
}
function Wt(n) {
  return Dt.indexOf(n) !== -1;
}
function Pe(n, e, t) {
  if (n === "YYYY")
    throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (n === "YY")
    throw new RangeError("Use `yy` instead of `YY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (n === "D")
    throw new RangeError("Use `d` instead of `D` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (n === "DD")
    throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
}
var Ut = {
  lessThanXSeconds: {
    one: "less than a second",
    other: "less than {{count}} seconds"
  },
  xSeconds: {
    one: "1 second",
    other: "{{count}} seconds"
  },
  halfAMinute: "half a minute",
  lessThanXMinutes: {
    one: "less than a minute",
    other: "less than {{count}} minutes"
  },
  xMinutes: {
    one: "1 minute",
    other: "{{count}} minutes"
  },
  aboutXHours: {
    one: "about 1 hour",
    other: "about {{count}} hours"
  },
  xHours: {
    one: "1 hour",
    other: "{{count}} hours"
  },
  xDays: {
    one: "1 day",
    other: "{{count}} days"
  },
  aboutXWeeks: {
    one: "about 1 week",
    other: "about {{count}} weeks"
  },
  xWeeks: {
    one: "1 week",
    other: "{{count}} weeks"
  },
  aboutXMonths: {
    one: "about 1 month",
    other: "about {{count}} months"
  },
  xMonths: {
    one: "1 month",
    other: "{{count}} months"
  },
  aboutXYears: {
    one: "about 1 year",
    other: "about {{count}} years"
  },
  xYears: {
    one: "1 year",
    other: "{{count}} years"
  },
  overXYears: {
    one: "over 1 year",
    other: "over {{count}} years"
  },
  almostXYears: {
    one: "almost 1 year",
    other: "almost {{count}} years"
  }
}, zt = function(e, t, r) {
  var a, i = Ut[e];
  return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + a : a + " ago" : a;
};
function ye(n) {
  return function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : n.defaultWidth, r = n.formats[t] || n.formats[n.defaultWidth];
    return r;
  };
}
var Yt = {
  full: "EEEE, MMMM do, y",
  long: "MMMM do, y",
  medium: "MMM d, y",
  short: "MM/dd/yyyy"
}, Et = {
  full: "h:mm:ss a zzzz",
  long: "h:mm:ss a z",
  medium: "h:mm:ss a",
  short: "h:mm a"
}, Lt = {
  full: "{{date}} 'at' {{time}}",
  long: "{{date}} 'at' {{time}}",
  medium: "{{date}}, {{time}}",
  short: "{{date}}, {{time}}"
}, Ft = {
  date: ye({
    formats: Yt,
    defaultWidth: "full"
  }),
  time: ye({
    formats: Et,
    defaultWidth: "full"
  }),
  dateTime: ye({
    formats: Lt,
    defaultWidth: "full"
  })
}, Nt = {
  lastWeek: "'last' eeee 'at' p",
  yesterday: "'yesterday at' p",
  today: "'today at' p",
  tomorrow: "'tomorrow at' p",
  nextWeek: "eeee 'at' p",
  other: "P"
}, Rt = function(e, t, r, a) {
  return Nt[e];
};
function fe(n) {
  return function(e, t) {
    var r = t != null && t.context ? String(t.context) : "standalone", a;
    if (r === "formatting" && n.formattingValues) {
      var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
      a = n.formattingValues[o] || n.formattingValues[i];
    } else {
      var l = n.defaultWidth, f = t != null && t.width ? String(t.width) : n.defaultWidth;
      a = n.values[f] || n.values[l];
    }
    var c = n.argumentCallback ? n.argumentCallback(e) : e;
    return a[c];
  };
}
var qt = {
  narrow: ["B", "A"],
  abbreviated: ["BC", "AD"],
  wide: ["Before Christ", "Anno Domini"]
}, Ht = {
  narrow: ["1", "2", "3", "4"],
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
}, Bt = {
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
}, jt = {
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
}, At = {
  narrow: {
    am: "a",
    pm: "p",
    midnight: "mi",
    noon: "n",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  },
  abbreviated: {
    am: "AM",
    pm: "PM",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  },
  wide: {
    am: "a.m.",
    pm: "p.m.",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  }
}, It = {
  narrow: {
    am: "a",
    pm: "p",
    midnight: "mi",
    noon: "n",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  },
  abbreviated: {
    am: "AM",
    pm: "PM",
    midnight: "midnight",
    noon: "noon",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  },
  wide: {
    am: "a.m.",
    pm: "p.m.",
    midnight: "midnight",
    noon: "noon",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  }
}, Gt = function(e, t) {
  var r = Number(e), a = r % 100;
  if (a > 20 || a < 10)
    switch (a % 10) {
      case 1:
        return r + "st";
      case 2:
        return r + "nd";
      case 3:
        return r + "rd";
    }
  return r + "th";
}, Qt = {
  ordinalNumber: Gt,
  era: fe({
    values: qt,
    defaultWidth: "wide"
  }),
  quarter: fe({
    values: Ht,
    defaultWidth: "wide",
    argumentCallback: function(e) {
      return e - 1;
    }
  }),
  month: fe({
    values: Bt,
    defaultWidth: "wide"
  }),
  day: fe({
    values: jt,
    defaultWidth: "wide"
  }),
  dayPeriod: fe({
    values: At,
    defaultWidth: "wide",
    formattingValues: It,
    defaultFormattingWidth: "wide"
  })
};
function me(n) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, a = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], i = e.match(a);
    if (!i)
      return null;
    var o = i[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], f = Array.isArray(l) ? Vt(l, function(u) {
      return u.test(o);
    }) : Xt(l, function(u) {
      return u.test(o);
    }), c;
    c = n.valueCallback ? n.valueCallback(f) : f, c = t.valueCallback ? t.valueCallback(c) : c;
    var d = e.slice(o.length);
    return {
      value: c,
      rest: d
    };
  };
}
function Xt(n, e) {
  for (var t in n)
    if (n.hasOwnProperty(t) && e(n[t]))
      return t;
}
function Vt(n, e) {
  for (var t = 0; t < n.length; t++)
    if (e(n[t]))
      return t;
}
function Zt(n) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
    if (!r)
      return null;
    var a = r[0], i = e.match(n.parsePattern);
    if (!i)
      return null;
    var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
    o = t.valueCallback ? t.valueCallback(o) : o;
    var l = e.slice(a.length);
    return {
      value: o,
      rest: l
    };
  };
}
var Jt = /^(\d+)(th|st|nd|rd)?/i, Kt = /\d+/i, $t = {
  narrow: /^(b|a)/i,
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
  wide: /^(before christ|before common era|anno domini|common era)/i
}, en = {
  any: [/^b/i, /^(a|c)/i]
}, tn = {
  narrow: /^[1234]/i,
  abbreviated: /^q[1234]/i,
  wide: /^[1234](th|st|nd|rd)? quarter/i
}, nn = {
  any: [/1/i, /2/i, /3/i, /4/i]
}, rn = {
  narrow: /^[jfmasond]/i,
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
}, an = {
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
}, on = {
  narrow: /^[smtwf]/i,
  short: /^(su|mo|tu|we|th|fr|sa)/i,
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
}, sn = {
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
}, ln = {
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
}, un = {
  any: {
    am: /^a/i,
    pm: /^p/i,
    midnight: /^mi/i,
    noon: /^no/i,
    morning: /morning/i,
    afternoon: /afternoon/i,
    evening: /evening/i,
    night: /night/i
  }
}, cn = {
  ordinalNumber: Zt({
    matchPattern: Jt,
    parsePattern: Kt,
    valueCallback: function(e) {
      return parseInt(e, 10);
    }
  }),
  era: me({
    matchPatterns: $t,
    defaultMatchWidth: "wide",
    parsePatterns: en,
    defaultParseWidth: "any"
  }),
  quarter: me({
    matchPatterns: tn,
    defaultMatchWidth: "wide",
    parsePatterns: nn,
    defaultParseWidth: "any",
    valueCallback: function(e) {
      return e + 1;
    }
  }),
  month: me({
    matchPatterns: rn,
    defaultMatchWidth: "wide",
    parsePatterns: an,
    defaultParseWidth: "any"
  }),
  day: me({
    matchPatterns: on,
    defaultMatchWidth: "wide",
    parsePatterns: sn,
    defaultParseWidth: "any"
  }),
  dayPeriod: me({
    matchPatterns: ln,
    defaultMatchWidth: "any",
    parsePatterns: un,
    defaultParseWidth: "any"
  })
}, dn = {
  code: "en-US",
  formatDistance: zt,
  formatLong: Ft,
  formatRelative: Rt,
  localize: Qt,
  match: cn,
  options: {
    weekStartsOn: 0,
    firstWeekContainsDate: 1
  }
}, fn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, mn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hn = /^'([^]*?)'?$/, gn = /''/g, vn = /[a-zA-Z]/;
function pn(n, e, t) {
  var r, a, i, o, l, f, c, d, u, g, v, b, k, _;
  B(2, arguments);
  var C = String(e), W = we(), z = (r = (a = void 0) !== null && a !== void 0 ? a : W.locale) !== null && r !== void 0 ? r : dn, G = ie((i = (o = (l = (f = void 0) !== null && f !== void 0 ? f : void 0) !== null && l !== void 0 ? l : W.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = W.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
  if (!(G >= 1 && G <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var T = ie((u = (g = (v = (b = void 0) !== null && b !== void 0 ? b : void 0) !== null && v !== void 0 ? v : W.weekStartsOn) !== null && g !== void 0 ? g : (k = W.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && u !== void 0 ? u : 0);
  if (!(T >= 0 && T <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  if (!z.localize)
    throw new RangeError("locale must contain localize property");
  if (!z.formatLong)
    throw new RangeError("locale must contain formatLong property");
  var Y = V(n);
  if (!gt(Y))
    throw new RangeError("Invalid time value");
  var Q = mt(Y), Z = vt(Y, Q), E = {
    firstWeekContainsDate: G,
    weekStartsOn: T,
    locale: z,
    _originalDate: Y
  }, j = C.match(mn).map(function(D) {
    var L = D[0];
    if (L === "p" || L === "P") {
      var R = Ot[L];
      return R(D, z.formatLong);
    }
    return D;
  }).join("").match(fn).map(function(D) {
    if (D === "''")
      return "'";
    var L = D[0];
    if (L === "'")
      return bn(D);
    var R = Tt[L];
    if (R)
      return Wt(D) && Pe(D, e, String(n)), St(D) && Pe(D, e, String(n)), R(Z, D, z.localize, E);
    if (L.match(vn))
      throw new RangeError("Format string contains an unescaped latin alphabet character `" + L + "`");
    return D;
  }).join("");
  return j;
}
function bn(n) {
  var e = n.match(hn);
  return e ? e[1].replace(gn, "'") : n;
}
const De = (n) => window.postMessage(n, window.location.href), wn = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Se = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", We = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", _n = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
var he = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(he || {}), ce = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(ce || {});
const yn = async (n) => {
  const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
  return Object.keys(t).map((i) => {
    a.searchParams.append(i, t[i]);
  }), await xn(a, r);
}, xn = async (n, e = {}) => {
  let t;
  try {
    t = await fetch(n, e), t = await t.text(), t = JSON.parse(t);
  } catch (r) {
    throw new Error(r.message);
  }
  return t;
}, Ue = async (n, e, t) => {
  const { session: r } = t, a = {
    headers: {
      "Content-Type": "application/json",
      accept: "text/plain",
      ...r ? { "x-SessionId": r } : {}
    }
  }, o = {
    [he.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=flipCoin"
      },
      options: a
    }),
    [he.outcome]: () => {
      const { id: l } = t;
      return {
        path: `/wof/outcome/${l}`,
        params: {
          filter: "Types[]=flipCoin"
        },
        options: a
      };
    }
  }[n]();
  return o.path = e + "/v1" + o.path, await yn(o);
}, ze = {
  lotteries: async (n, e) => (await Ue(he.lotteries, n, { session: e }))?.items || [],
  outcome: async (n, e, t) => await Ue(he.outcome, n, { session: e, id: t })
}, kn = (n) => n?.current?.remainingTimes > 0 && n?.next;
function Ye(n, e) {
  Ve(n, e);
}
function Cn(n) {
  Ze.set(n);
}
const Ee = {
  en: {
    headerTitle: "Coin Royales",
    infoTooltip: "Flip a virtual coin and take a chance to win!",
    play: "Play",
    history: "History",
    rules: "Rules",
    noCoinYet: "There are no available Coin Royale",
    noHistoryYet: "There is no history yet",
    more: "More",
    rulesDescription: "Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",
    terms: "Terms&Conditions link",
    prizeAgenda: "Prize agenda",
    tournamentTicket: "Tournament ticket",
    freeSpins: "Free spins",
    bonusMoney: "Bonus Money",
    loyaltyPoints: "Loyalty Points&Coins",
    luckyWheel: "LuckyWheel",
    mysteryChest: "Mystery Chest",
    coinRoyale: "Coin Royale",
    customRewards: "Custom Rewards"
  }
};
function Tn(n) {
  tt(n, "svelte-rd1kop", `.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 16px);overflow:hidden}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-2px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}`);
}
function Le(n, e, t) {
  const r = n.slice();
  return r[36] = e[t], r;
}
function Fe(n, e, t) {
  const r = n.slice();
  return r[39] = e[t], r[41] = t, r;
}
function Ne(n, e, t) {
  const r = n.slice();
  return r[33] = e[t], r[35] = t, r;
}
function Re(n) {
  let e, t, r, a, i, o = (
    /*$_*/
    n[10]("infoTooltip") + ""
  ), l, f, c;
  return {
    c() {
      e = p("div"), t = p("div"), r = p("button"), a = w(), i = p("span"), l = O(o), h(r, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
    },
    m(d, u) {
      q(d, e, u), s(e, t), s(t, r), s(t, a), s(t, i), s(i, l), f || (c = $(
        r,
        "click",
        /*showHideToolip*/
        n[13]
      ), f = !0);
    },
    p(d, u) {
      u[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      d[10]("infoTooltip") + "") && P(l, o);
    },
    d(d) {
      d && H(e), f = !1, c();
    }
  };
}
function Mn(n) {
  let e, t, r = (
    /*$_*/
    n[10]("rulesDescription") + ""
  ), a, i, o, l, f, c = (
    /*$_*/
    n[10]("prizeAgenda") + ""
  ), d, u, g, v, b = (
    /*$_*/
    n[10]("tournamentTicket") + ""
  ), k, _, C, W = (
    /*$_*/
    n[10]("freeSpins") + ""
  ), z, G, T, Y = (
    /*$_*/
    n[10]("bonusMoney") + ""
  ), Q, Z, E, j = (
    /*$_*/
    n[10]("loyaltyPoints") + ""
  ), D, L, R, J = (
    /*$_*/
    n[10]("luckyWheel") + ""
  ), S, ee, X, F = (
    /*$_*/
    n[10]("mysteryChest") + ""
  ), x, m, M, A = (
    /*$_*/
    n[10]("coinRoyale") + ""
  ), oe, _e, K, te = (
    /*$_*/
    n[10]("customRewards") + ""
  ), se, N = (
    /*hasUrl*/
    n[8] && qe(n)
  );
  return {
    c() {
      e = p("div"), t = p("span"), a = O(r), i = w(), N && N.c(), o = w(), l = p("section"), f = p("span"), d = O(c), u = w(), g = p("ul"), v = p("li"), k = O(b), _ = w(), C = p("li"), z = O(W), G = w(), T = p("li"), Q = O(Y), Z = w(), E = p("li"), D = O(j), L = w(), R = p("li"), S = O(J), ee = w(), X = p("li"), x = O(F), m = w(), M = p("li"), oe = O(A), _e = w(), K = p("li"), se = O(te), h(t, "class", "coins-rules__description"), h(f, "class", "coins-rules__prize-title"), h(v, "class", "coins-rules__list__item"), h(C, "class", "coins-rules__list__item"), h(T, "class", "coins-rules__list__item"), h(E, "class", "coins-rules__list__item"), h(R, "class", "coins-rules__list__item"), h(X, "class", "coins-rules__list__item"), h(M, "class", "coins-rules__list__item"), h(K, "class", "coins-rules__list__item"), h(g, "class", "coins-rules__list"), h(e, "class", "coins-rules");
    },
    m(U, I) {
      q(U, e, I), s(e, t), s(t, a), s(e, i), N && N.m(e, null), s(e, o), s(e, l), s(l, f), s(f, d), s(l, u), s(l, g), s(g, v), s(v, k), s(g, _), s(g, C), s(C, z), s(g, G), s(g, T), s(T, Q), s(g, Z), s(g, E), s(E, D), s(g, L), s(g, R), s(R, S), s(g, ee), s(g, X), s(X, x), s(g, m), s(g, M), s(M, oe), s(g, _e), s(g, K), s(K, se);
    },
    p(U, I) {
      I[0] & /*$_*/
      1024 && r !== (r = /*$_*/
      U[10]("rulesDescription") + "") && P(a, r), /*hasUrl*/
      U[8] ? N ? N.p(U, I) : (N = qe(U), N.c(), N.m(e, o)) : N && (N.d(1), N = null), I[0] & /*$_*/
      1024 && c !== (c = /*$_*/
      U[10]("prizeAgenda") + "") && P(d, c), I[0] & /*$_*/
      1024 && b !== (b = /*$_*/
      U[10]("tournamentTicket") + "") && P(k, b), I[0] & /*$_*/
      1024 && W !== (W = /*$_*/
      U[10]("freeSpins") + "") && P(z, W), I[0] & /*$_*/
      1024 && Y !== (Y = /*$_*/
      U[10]("bonusMoney") + "") && P(Q, Y), I[0] & /*$_*/
      1024 && j !== (j = /*$_*/
      U[10]("loyaltyPoints") + "") && P(D, j), I[0] & /*$_*/
      1024 && J !== (J = /*$_*/
      U[10]("luckyWheel") + "") && P(S, J), I[0] & /*$_*/
      1024 && F !== (F = /*$_*/
      U[10]("mysteryChest") + "") && P(x, F), I[0] & /*$_*/
      1024 && A !== (A = /*$_*/
      U[10]("coinRoyale") + "") && P(oe, A), I[0] & /*$_*/
      1024 && te !== (te = /*$_*/
      U[10]("customRewards") + "") && P(se, te);
    },
    d(U) {
      U && H(e), N && N.d();
    }
  };
}
function On(n) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyalesHistory*/
      i[9].length > 0 ? Wn : Sn
    );
  }
  let r = t(n), a = r(n);
  return {
    c() {
      a.c(), e = ke();
    },
    m(i, o) {
      a.m(i, o), q(i, e, o);
    },
    p(i, o) {
      r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && H(e), a.d(i);
    }
  };
}
function Pn(n) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyales*/
      i[6].length > 0 ? zn : Un
    );
  }
  let r = t(n), a = r(n);
  return {
    c() {
      a.c(), e = ke();
    },
    m(i, o) {
      a.m(i, o), q(i, e, o);
    },
    p(i, o) {
      r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && H(e), a.d(i);
    }
  };
}
function Dn(n) {
  let e;
  return {
    c() {
      e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="110px"></ui-skeleton>', h(e, "class", "coins-loader");
    },
    m(t, r) {
      q(t, e, r);
    },
    p: xe,
    d(t) {
      t && H(e);
    }
  };
}
function qe(n) {
  let e, t, r = (
    /*$_*/
    n[10]("terms") + ""
  ), a, i, o;
  return {
    c() {
      e = p("a"), t = p("span"), a = O(r), i = w(), o = p("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
        e,
        "href",
        /*terms*/
        n[0]
      ), h(e, "target", "_blank");
    },
    m(l, f) {
      q(l, e, f), s(e, t), s(t, a), s(e, i), s(e, o);
    },
    p(l, f) {
      f[0] & /*$_*/
      1024 && r !== (r = /*$_*/
      l[10]("terms") + "") && P(a, r), f[0] & /*terms*/
      1 && h(
        e,
        "href",
        /*terms*/
        l[0]
      );
    },
    d(l) {
      l && H(e);
    }
  };
}
function Sn(n) {
  let e, t = (
    /*$_*/
    n[10]("noHistoryYet") + ""
  ), r;
  return {
    c() {
      e = p("div"), r = O(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      q(a, e, i), s(e, r);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noHistoryYet") + "") && P(r, t);
    },
    d(a) {
      a && H(e);
    }
  };
}
function Wn(n) {
  let e, t = de(
    /*coinRoyalesHistory*/
    n[9]
  ), r = [];
  for (let a = 0; a < t.length; a += 1)
    r[a] = je(Le(n, t, a));
  return {
    c() {
      for (let a = 0; a < r.length; a += 1)
        r[a].c();
      e = ke();
    },
    m(a, i) {
      for (let o = 0; o < r.length; o += 1)
        r[o] && r[o].m(a, i);
      q(a, e, i);
    },
    p(a, i) {
      if (i[0] & /*showMore, coinRoyalesHistory, $_*/
      17920) {
        t = de(
          /*coinRoyalesHistory*/
          a[9]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Le(a, t, o);
          r[o] ? r[o].p(l, i) : (r[o] = je(l), r[o].c(), r[o].m(e.parentNode, e));
        }
        for (; o < r.length; o += 1)
          r[o].d(1);
        r.length = t.length;
      }
    },
    d(a) {
      a && H(e), Ce(r, a);
    }
  };
}
function He(n) {
  let e, t, r, a, i = (
    /*outcome*/
    n[39]?.name + ""
  ), o, l, f, c, d, u, g = (
    /*outcome*/
    n[39]?.date + ""
  ), v;
  return {
    c() {
      e = p("div"), t = p("span"), t.textContent = `${/*index*/
      n[41] + 1}`, r = w(), a = p("p"), o = O(i), l = w(), f = p("img"), d = w(), u = p("span"), v = O(g), h(t, "class", "index"), ge(f.src, c = /*outcome*/
      n[39]?.state ? We : Se) || h(f, "src", c), h(f, "alt", ""), h(a, "class", "name"), h(u, "class", "time"), h(e, "class", "coins-history__list__item");
    },
    m(b, k) {
      q(b, e, k), s(e, t), s(e, r), s(e, a), s(a, o), s(a, l), s(a, f), s(e, d), s(e, u), s(u, v);
    },
    p(b, k) {
      k[0] & /*coinRoyalesHistory*/
      512 && i !== (i = /*outcome*/
      b[39]?.name + "") && P(o, i), k[0] & /*coinRoyalesHistory*/
      512 && !ge(f.src, c = /*outcome*/
      b[39]?.state ? We : Se) && h(f, "src", c), k[0] & /*coinRoyalesHistory*/
      512 && g !== (g = /*outcome*/
      b[39]?.date + "") && P(v, g);
    },
    d(b) {
      b && H(e);
    }
  };
}
function Be(n) {
  let e, t = (
    /*$_*/
    n[10]("more") + ""
  ), r, a, i, o, l, f;
  function c() {
    return (
      /*click_handler_1*/
      n[24](
        /*history*/
        n[36]
      )
    );
  }
  return {
    c() {
      e = p("button"), r = O(t), a = w(), i = p("img"), ge(i.src, o = _n) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
    },
    m(d, u) {
      q(d, e, u), s(e, r), s(e, a), s(e, i), l || (f = $(e, "click", c), l = !0);
    },
    p(d, u) {
      n = d, u[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      n[10]("more") + "") && P(r, t);
    },
    d(d) {
      d && H(e), l = !1, f();
    }
  };
}
function je(n) {
  let e, t, r = (
    /*history*/
    n[36].name + ""
  ), a, i, o, l, f = de(
    /*history*/
    n[36].outcomes.slice(
      0,
      /*history*/
      n[36].endPos
    )
  ), c = [];
  for (let u = 0; u < f.length; u += 1)
    c[u] = He(Fe(n, f, u));
  let d = (
    /*history*/
    n[36].outcomes?.length > 3 && /*history*/
    n[36].endPos === 3 && Be(n)
  );
  return {
    c() {
      e = p("div"), t = p("div"), a = O(r), i = w();
      for (let u = 0; u < c.length; u += 1)
        c[u].c();
      o = w(), d && d.c(), l = w(), h(t, "class", "coins-history__title"), h(e, "class", "coins-history__list");
    },
    m(u, g) {
      q(u, e, g), s(e, t), s(t, a), s(e, i);
      for (let v = 0; v < c.length; v += 1)
        c[v] && c[v].m(e, null);
      s(e, o), d && d.m(e, null), s(e, l);
    },
    p(u, g) {
      if (g[0] & /*coinRoyalesHistory*/
      512 && r !== (r = /*history*/
      u[36].name + "") && P(a, r), g[0] & /*coinRoyalesHistory*/
      512) {
        f = de(
          /*history*/
          u[36].outcomes.slice(
            0,
            /*history*/
            u[36].endPos
          )
        );
        let v;
        for (v = 0; v < f.length; v += 1) {
          const b = Fe(u, f, v);
          c[v] ? c[v].p(b, g) : (c[v] = He(b), c[v].c(), c[v].m(e, o));
        }
        for (; v < c.length; v += 1)
          c[v].d(1);
        c.length = f.length;
      }
      /*history*/
      u[36].outcomes?.length > 3 && /*history*/
      u[36].endPos === 3 ? d ? d.p(u, g) : (d = Be(u), d.c(), d.m(e, l)) : d && (d.d(1), d = null);
    },
    d(u) {
      u && H(e), Ce(c, u), d && d.d();
    }
  };
}
function Un(n) {
  let e, t = (
    /*$_*/
    n[10]("noCoinYet") + ""
  ), r;
  return {
    c() {
      e = p("div"), r = O(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      q(a, e, i), s(e, r);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noCoinYet") + "") && P(r, t);
    },
    d(a) {
      a && H(e);
    }
  };
}
function zn(n) {
  let e, t = de(
    /*coinRoyales*/
    n[6]
  ), r = [];
  for (let a = 0; a < t.length; a += 1)
    r[a] = Ae(Ne(n, t, a));
  return {
    c() {
      e = p("div");
      for (let a = 0; a < r.length; a += 1)
        r[a].c();
      h(e, "class", "coins-list");
    },
    m(a, i) {
      q(a, e, i);
      for (let o = 0; o < r.length; o += 1)
        r[o] && r[o].m(e, null);
    },
    p(a, i) {
      if (i[0] & /*openCoinDetails, coinRoyales, lang*/
      65602) {
        t = de(
          /*coinRoyales*/
          a[6]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Ne(a, t, o);
          r[o] ? r[o].p(l, i) : (r[o] = Ae(l), r[o].c(), r[o].m(e, null));
        }
        for (; o < r.length; o += 1)
          r[o].d(1);
        r.length = t.length;
      }
    },
    d(a) {
      a && H(e), Ce(r, a);
    }
  };
}
function Ae(n) {
  let e, t = (
    /*coin*/
    (n[33].program.name[
      /*lang*/
      n[1]
    ] || /*coin*/
    n[33].program.name[ce.default]) + ""
  ), r, a, i, o, l, f, c, d = (
    /*coin*/
    n[33]?.current?.remainingTimes + ""
  ), u, g, v, b;
  function k() {
    return (
      /*click_handler*/
      n[23](
        /*coin*/
        n[33]
      )
    );
  }
  return {
    c() {
      e = p("button"), r = O(t), a = w(), i = p("div"), o = p("img"), f = w(), c = p("span"), u = O(d), g = w(), ge(o.src, l = wn) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
    },
    m(_, C) {
      q(_, e, C), s(e, r), s(e, a), s(e, i), s(i, o), s(i, f), s(i, c), s(c, u), s(e, g), v || (b = $(e, "click", k), v = !0);
    },
    p(_, C) {
      n = _, C[0] & /*coinRoyales, lang*/
      66 && t !== (t = /*coin*/
      (n[33].program.name[
        /*lang*/
        n[1]
      ] || /*coin*/
      n[33].program.name[ce.default]) + "") && P(r, t), C[0] & /*coinRoyales*/
      64 && d !== (d = /*coin*/
      n[33]?.current?.remainingTimes + "") && P(u, d);
    },
    d(_) {
      _ && H(e), v = !1, b();
    }
  };
}
function Yn(n) {
  let e, t, r, a, i, o, l, f, c, d = (
    /*$_*/
    n[10]("headerTitle") + ""
  ), u, g, v, b, k, _, C, W = (
    /*$_*/
    n[10]("play") + ""
  ), z, G, T, Y = (
    /*$_*/
    n[10]("history") + ""
  ), Q, Z, E, j = (
    /*$_*/
    n[10]("rules") + ""
  ), D, L, R, J, S = (
    /*tooltip*/
    n[7] && Re(n)
  );
  function ee(x, m) {
    return (
      /*coinsLoading*/
      x[5] || /*historyLoading*/
      x[4] ? Dn : (
        /*activeTab*/
        x[3] === 1 ? Pn : (
          /*activeTab*/
          x[3] === 2 ? On : Mn
        )
      )
    );
  }
  let X = ee(n), F = X(n);
  return {
    c() {
      e = p("div"), t = p("button"), r = w(), a = p("div"), S && S.c(), i = w(), o = p("div"), l = p("button"), f = w(), c = p("div"), u = O(d), g = w(), v = p("button"), b = w(), k = p("div"), _ = p("div"), C = p("button"), z = O(W), G = w(), T = p("button"), Q = O(Y), Z = w(), E = p("button"), D = O(j), L = w(), F.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(c, "class", "coins-header__title"), h(v, "class", "icon-button close"), h(o, "class", "coins-header"), h(C, "data-index", "1"), h(C, "class", "coins-tabs__tab"), le(
        C,
        "active",
        /*activeTab*/
        n[3] === 1
      ), h(T, "data-index", "2"), h(T, "class", "coins-tabs__tab"), le(
        T,
        "active",
        /*activeTab*/
        n[3] === 2
      ), h(E, "data-index", "3"), h(E, "class", "coins-tabs__tab"), le(
        E,
        "active",
        /*activeTab*/
        n[3] === 3
      ), h(_, "class", "coins-tabs__container"), h(k, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
      (n[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
    },
    m(x, m) {
      q(x, e, m), s(e, t), s(e, r), s(e, a), S && S.m(a, null), s(a, i), s(a, o), s(o, l), s(o, f), s(o, c), s(c, u), s(o, g), s(o, v), s(a, b), s(a, k), s(k, _), s(_, C), s(C, z), s(_, G), s(_, T), s(T, Q), s(_, Z), s(_, E), s(E, D), s(a, L), F.m(a, null), n[25](e), R || (J = [
        $(
          t,
          "click",
          /*onClose*/
          n[12]
        ),
        $(
          l,
          "click",
          /*showHideToolip*/
          n[13]
        ),
        $(
          v,
          "click",
          /*onClose*/
          n[12]
        ),
        $(
          C,
          "click",
          /*handleTabChange*/
          n[15]
        ),
        $(
          T,
          "click",
          /*handleTabChange*/
          n[15]
        ),
        $(
          E,
          "click",
          /*handleTabChange*/
          n[15]
        )
      ], R = !0);
    },
    p(x, m) {
      /*tooltip*/
      x[7] ? S ? S.p(x, m) : (S = Re(x), S.c(), S.m(a, i)) : S && (S.d(1), S = null), m[0] & /*$_*/
      1024 && d !== (d = /*$_*/
      x[10]("headerTitle") + "") && P(u, d), m[0] & /*$_*/
      1024 && W !== (W = /*$_*/
      x[10]("play") + "") && P(z, W), m[0] & /*activeTab*/
      8 && le(
        C,
        "active",
        /*activeTab*/
        x[3] === 1
      ), m[0] & /*$_*/
      1024 && Y !== (Y = /*$_*/
      x[10]("history") + "") && P(Q, Y), m[0] & /*activeTab*/
      8 && le(
        T,
        "active",
        /*activeTab*/
        x[3] === 2
      ), m[0] & /*$_*/
      1024 && j !== (j = /*$_*/
      x[10]("rules") + "") && P(D, j), m[0] & /*activeTab*/
      8 && le(
        E,
        "active",
        /*activeTab*/
        x[3] === 3
      ), X === (X = ee(x)) && F ? F.p(x, m) : (F.d(1), F = X(x), F && (F.c(), F.m(a, null)));
    },
    i: xe,
    o: xe,
    d(x) {
      x && H(e), S && S.d(), F.d(), n[25](null), R = !1, nt(J);
    }
  };
}
function En(n, e, t) {
  let r;
  rt(n, st, (m) => t(10, r = m));
  let { terms: a = "" } = e, { lang: i = ce.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: d = "" } = e, { mbsource: u } = e, g = window.navigator.userAgent, v = at(g), b, k = 1, _ = !1, C = !1, W = [], z = !1, G = !1, T, Y;
  const Q = (m) => /(https?:\/\/[^\s]+)/g.test(m), Z = () => {
    De({ type: "CloseCoinRoyaleDrawer" });
  }, E = () => {
    t(7, z = !z);
  }, j = async () => {
    t(4, _ = !0);
    let m = W.map((M) => ({
      id: M.program.id,
      name: M.program.name[i] || M.program.name[ce.default],
      partitions: M.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (m.length > 0) {
      const M = m.map(async (A, oe) => {
        const K = (await ze.outcome(o, l, A?.id)).items || [];
        if (K.length === 0) {
          m[oe] = null;
          return;
        }
        m[oe] = {
          ...A,
          endPos: K.length > 3 ? 3 : K.length,
          outcomes: K.map((te) => {
            const se = A.partitions[te.draw.result.wheelOfFortunePartitionIndex]?.name || {}, N = te.draw.state === "fulfilled", U = pn(new Date(te.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: se[i] || se[ce.default],
              state: N,
              date: U
            };
          })
        };
      });
      await Promise.all(M);
    }
    t(9, T = m.filter((M) => !!M)), t(4, _ = !1);
  }, D = async () => {
    t(5, C = !0);
    const m = await ze.lotteries(o, l);
    t(6, W = m.filter((M) => kn(M))), t(5, C = !1);
  }, L = (m) => {
    const M = T.findIndex((A) => A.id === m);
    t(9, T[M].endPos = T[M].outcomes?.length, T);
  }, R = async (m) => {
    t(3, k = +m.target.getAttribute("data-index")), k === 2 && await j();
  }, J = () => {
    fetch(d).then((M) => M.json()).then((M) => {
      Object.keys(M).forEach((A) => {
        Ye(A, M[A]);
      });
    });
  };
  Object.keys(Ee).forEach((m) => {
    Ye(m, Ee[m]);
  });
  const S = () => {
    Cn(i);
  }, ee = (m) => {
    De({
      type: "OpenCoinRoyaleDetails",
      data: m
    });
  };
  it(() => {
    t(8, G = Q(a)), D(), window.emMessageBus && Y && Y.unsubscribe();
  });
  const X = (m) => {
    ee(m);
  }, F = (m) => L(m.id);
  function x(m) {
    ot[m ? "unshift" : "push"](() => {
      b = m, t(2, b);
    });
  }
  return n.$$set = (m) => {
    "terms" in m && t(0, a = m.terms), "lang" in m && t(1, i = m.lang), "endpoint" in m && t(17, o = m.endpoint), "session" in m && t(18, l = m.session), "clientstyling" in m && t(19, f = m.clientstyling), "clientstylingurl" in m && t(20, c = m.clientstylingurl), "translationurl" in m && t(21, d = m.translationurl), "mbsource" in m && t(22, u = m.mbsource);
  }, n.$$.update = () => {
    n.$$.dirty[0] & /*lang*/
    2 && i && S(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    524292 && f && b && ct(b, f), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    1048580 && c && b && lt(b, c), n.$$.dirty[0] & /*translationurl*/
    2097152 && d && J(), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
    4194308 && u && b && ut(b, `${u}.Style`);
  }, [
    a,
    i,
    b,
    k,
    _,
    C,
    W,
    z,
    G,
    T,
    r,
    v,
    Z,
    E,
    L,
    R,
    ee,
    o,
    l,
    f,
    c,
    d,
    u,
    X,
    F,
    x
  ];
}
class Xe extends Je {
  constructor(e) {
    super(), Ke(
      this,
      e,
      En,
      Yn,
      et,
      {
        terms: 0,
        lang: 1,
        endpoint: 17,
        session: 18,
        clientstyling: 19,
        clientstylingurl: 20,
        translationurl: 21,
        mbsource: 22
      },
      Tn,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), ne();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), ne();
  }
  get endpoint() {
    return this.$$.ctx[17];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), ne();
  }
  get session() {
    return this.$$.ctx[18];
  }
  set session(e) {
    this.$$set({ session: e }), ne();
  }
  get clientstyling() {
    return this.$$.ctx[19];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), ne();
  }
  get clientstylingurl() {
    return this.$$.ctx[20];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), ne();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), ne();
  }
  get mbsource() {
    return this.$$.ctx[22];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), ne();
  }
}
$e(Xe, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Xe
}, Symbol.toStringTag, { value: "Module" }));
export {
  Rn as C,
  pn as f
};
