var tt = Object.defineProperty, rt = Object.defineProperties;
var nt = Object.getOwnPropertyDescriptors;
var Oe = Object.getOwnPropertySymbols;
var at = Object.prototype.hasOwnProperty, it = Object.prototype.propertyIsEnumerable;
var Pe = (r, e, t) => e in r ? tt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Te = (r, e) => {
  for (var t in e || (e = {}))
    at.call(e, t) && Pe(r, t, e[t]);
  if (Oe)
    for (var t of Oe(e))
      it.call(e, t) && Pe(r, t, e[t]);
  return r;
}, De = (r, e) => rt(r, nt(e));
var V = (r, e, t) => new Promise((a, n) => {
  var i = (c) => {
    try {
      l(t.next(c));
    } catch (u) {
      n(u);
    }
  }, o = (c) => {
    try {
      l(t.throw(c));
    } catch (u) {
      n(u);
    }
  }, l = (c) => c.done ? a(c.value) : Promise.resolve(c.value).then(i, o);
  l((t = t.apply(r, e)).next());
});
import { a as ot, $ as st, S as lt, i as ut, f as ie, c as ct, s as dt, b as ft, e as v, d as y, t as D, g as h, z as de, h as Y, j as s, l as ee, k as S, n as le, m as E, r as mt, p as ht, q as gt, o as vt, v as pt, A as be, B as te, C as he, D as Se, y as bt, w as we } from "./CasinoCoinroyaleContainer-DvCA68hm.js";
import { s as wt, a as _t, b as yt } from "./CasinoCoinroyaleDetails-DeSsuEYj.js";
import "../stencil/ui-skeleton-CWuMYFGQ.js";
function _e(r) {
  "@babel/helpers - typeof";
  return _e = 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;
  }, _e(r);
}
function ue(r) {
  if (r === null || r === !0 || r === !1)
    return NaN;
  var e = Number(r);
  return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
}
function I(r, e) {
  if (e.length < r)
    throw new TypeError(r + " argument" + (r > 1 ? "s" : "") + " required, but only " + e.length + " present");
}
function Z(r) {
  I(1, arguments);
  var e = Object.prototype.toString.call(r);
  return r instanceof Date || _e(r) === "object" && e === "[object Date]" ? new Date(r.getTime()) : typeof r == "number" || e === "[object Number]" ? new Date(r) : ((typeof r == "string" || e === "[object String]") && typeof console != "undefined" && (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 xt(r, e) {
  I(2, arguments);
  var t = Z(r).getTime(), a = ue(e);
  return new Date(t + a);
}
var kt = {};
function ke() {
  return kt;
}
function Ct(r) {
  var e = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate(), r.getHours(), r.getMinutes(), r.getSeconds(), r.getMilliseconds()));
  return e.setUTCFullYear(r.getFullYear()), r.getTime() - e.getTime();
}
function Tt(r) {
  return I(1, arguments), r instanceof Date || _e(r) === "object" && Object.prototype.toString.call(r) === "[object Date]";
}
function Mt(r) {
  if (I(1, arguments), !Tt(r) && typeof r != "number")
    return !1;
  var e = Z(r);
  return !isNaN(Number(e));
}
function Ot(r, e) {
  I(2, arguments);
  var t = ue(e);
  return xt(r, -t);
}
var Pt = 864e5;
function Dt(r) {
  I(1, arguments);
  var e = Z(r), t = e.getTime();
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
  var a = e.getTime(), n = t - a;
  return Math.floor(n / Pt) + 1;
}
function ye(r) {
  I(1, arguments);
  var e = 1, t = Z(r), a = t.getUTCDay(), n = (a < e ? 7 : 0) + a - e;
  return t.setUTCDate(t.getUTCDate() - n), t.setUTCHours(0, 0, 0, 0), t;
}
function Je(r) {
  I(1, arguments);
  var e = Z(r), t = e.getUTCFullYear(), a = /* @__PURE__ */ new Date(0);
  a.setUTCFullYear(t + 1, 0, 4), a.setUTCHours(0, 0, 0, 0);
  var n = ye(a), i = /* @__PURE__ */ new Date(0);
  i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
  var o = ye(i);
  return e.getTime() >= n.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
}
function St(r) {
  I(1, arguments);
  var e = Je(r), t = /* @__PURE__ */ new Date(0);
  t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
  var a = ye(t);
  return a;
}
var Wt = 6048e5;
function Ut(r) {
  I(1, arguments);
  var e = Z(r), t = ye(e).getTime() - St(e).getTime();
  return Math.round(t / Wt) + 1;
}
function xe(r, e) {
  var t, a, n, i, o, l, c, u;
  I(1, arguments);
  var f = ke(), g = ue((t = (a = (n = (i = e == null ? void 0 : 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 && n !== void 0 ? n : f.weekStartsOn) !== null && a !== void 0 ? a : (c = f.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && t !== void 0 ? t : 0);
  if (!(g >= 0 && g <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  var d = Z(r), b = d.getUTCDay(), p = (b < g ? 7 : 0) + b - g;
  return d.setUTCDate(d.getUTCDate() - p), d.setUTCHours(0, 0, 0, 0), d;
}
function Ke(r, e) {
  var t, a, n, i, o, l, c, u;
  I(1, arguments);
  var f = Z(r), g = f.getUTCFullYear(), d = ke(), b = ue((t = (a = (n = (i = e == null ? void 0 : 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 && n !== void 0 ? n : d.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = d.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
  if (!(b >= 1 && b <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var p = /* @__PURE__ */ new Date(0);
  p.setUTCFullYear(g + 1, 0, b), p.setUTCHours(0, 0, 0, 0);
  var _ = xe(p, e), w = /* @__PURE__ */ new Date(0);
  w.setUTCFullYear(g, 0, b), w.setUTCHours(0, 0, 0, 0);
  var x = xe(w, e);
  return f.getTime() >= _.getTime() ? g + 1 : f.getTime() >= x.getTime() ? g : g - 1;
}
function zt(r, e) {
  var t, a, n, i, o, l, c, u;
  I(1, arguments);
  var f = ke(), g = ue((t = (a = (n = (i = e == null ? void 0 : 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 && n !== void 0 ? n : f.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = f.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), d = Ke(r, e), b = /* @__PURE__ */ new Date(0);
  b.setUTCFullYear(d, 0, g), b.setUTCHours(0, 0, 0, 0);
  var p = xe(b, e);
  return p;
}
var Yt = 6048e5;
function Et(r, e) {
  I(1, arguments);
  var t = Z(r), a = xe(t, e).getTime() - zt(t, e).getTime();
  return Math.round(a / Yt) + 1;
}
function k(r, e) {
  for (var t = r < 0 ? "-" : "", a = Math.abs(r).toString(); a.length < e; )
    a = "0" + a;
  return t + a;
}
var oe = {
  // Year
  y: function(e, t) {
    var a = e.getUTCFullYear(), n = a > 0 ? a : 1 - a;
    return k(t === "yy" ? n % 100 : n, t.length);
  },
  // Month
  M: function(e, t) {
    var a = e.getUTCMonth();
    return t === "M" ? String(a + 1) : k(a + 1, 2);
  },
  // Day of the month
  d: function(e, t) {
    return k(e.getUTCDate(), t.length);
  },
  // AM or PM
  a: function(e, t) {
    var a = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return a.toUpperCase();
      case "aaa":
        return a;
      case "aaaaa":
        return a[0];
      case "aaaa":
      default:
        return a === "am" ? "a.m." : "p.m.";
    }
  },
  // Hour [1-12]
  h: function(e, t) {
    return k(e.getUTCHours() % 12 || 12, t.length);
  },
  // Hour [0-23]
  H: function(e, t) {
    return k(e.getUTCHours(), t.length);
  },
  // Minute
  m: function(e, t) {
    return k(e.getUTCMinutes(), t.length);
  },
  // Second
  s: function(e, t) {
    return k(e.getUTCSeconds(), t.length);
  },
  // Fraction of second
  S: function(e, t) {
    var a = t.length, n = e.getUTCMilliseconds(), i = Math.floor(n * Math.pow(10, a - 3));
    return k(i, t.length);
  }
}, fe = {
  am: "am",
  pm: "pm",
  midnight: "midnight",
  noon: "noon",
  morning: "morning",
  afternoon: "afternoon",
  evening: "evening",
  night: "night"
}, Lt = {
  // Era
  G: function(e, t, a) {
    var n = e.getUTCFullYear() > 0 ? 1 : 0;
    switch (t) {
      case "G":
      case "GG":
      case "GGG":
        return a.era(n, {
          width: "abbreviated"
        });
      case "GGGGG":
        return a.era(n, {
          width: "narrow"
        });
      case "GGGG":
      default:
        return a.era(n, {
          width: "wide"
        });
    }
  },
  // Year
  y: function(e, t, a) {
    if (t === "yo") {
      var n = e.getUTCFullYear(), i = n > 0 ? n : 1 - n;
      return a.ordinalNumber(i, {
        unit: "year"
      });
    }
    return oe.y(e, t);
  },
  // Local week-numbering year
  Y: function(e, t, a, n) {
    var i = Ke(e, n), o = i > 0 ? i : 1 - i;
    if (t === "YY") {
      var l = o % 100;
      return k(l, 2);
    }
    return t === "Yo" ? a.ordinalNumber(o, {
      unit: "year"
    }) : k(o, t.length);
  },
  // ISO week-numbering year
  R: function(e, t) {
    var a = Je(e);
    return k(a, 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 a = e.getUTCFullYear();
    return k(a, t.length);
  },
  // Quarter
  Q: function(e, t, a) {
    var n = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "Q":
        return String(n);
      case "QQ":
        return k(n, 2);
      case "Qo":
        return a.ordinalNumber(n, {
          unit: "quarter"
        });
      case "QQQ":
        return a.quarter(n, {
          width: "abbreviated",
          context: "formatting"
        });
      case "QQQQQ":
        return a.quarter(n, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return a.quarter(n, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone quarter
  q: function(e, t, a) {
    var n = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "q":
        return String(n);
      case "qq":
        return k(n, 2);
      case "qo":
        return a.ordinalNumber(n, {
          unit: "quarter"
        });
      case "qqq":
        return a.quarter(n, {
          width: "abbreviated",
          context: "standalone"
        });
      case "qqqqq":
        return a.quarter(n, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return a.quarter(n, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Month
  M: function(e, t, a) {
    var n = e.getUTCMonth();
    switch (t) {
      case "M":
      case "MM":
        return oe.M(e, t);
      case "Mo":
        return a.ordinalNumber(n + 1, {
          unit: "month"
        });
      case "MMM":
        return a.month(n, {
          width: "abbreviated",
          context: "formatting"
        });
      case "MMMMM":
        return a.month(n, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return a.month(n, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone month
  L: function(e, t, a) {
    var n = e.getUTCMonth();
    switch (t) {
      case "L":
        return String(n + 1);
      case "LL":
        return k(n + 1, 2);
      case "Lo":
        return a.ordinalNumber(n + 1, {
          unit: "month"
        });
      case "LLL":
        return a.month(n, {
          width: "abbreviated",
          context: "standalone"
        });
      case "LLLLL":
        return a.month(n, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return a.month(n, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Local week of year
  w: function(e, t, a, n) {
    var i = Et(e, n);
    return t === "wo" ? a.ordinalNumber(i, {
      unit: "week"
    }) : k(i, t.length);
  },
  // ISO week of year
  I: function(e, t, a) {
    var n = Ut(e);
    return t === "Io" ? a.ordinalNumber(n, {
      unit: "week"
    }) : k(n, t.length);
  },
  // Day of the month
  d: function(e, t, a) {
    return t === "do" ? a.ordinalNumber(e.getUTCDate(), {
      unit: "date"
    }) : oe.d(e, t);
  },
  // Day of year
  D: function(e, t, a) {
    var n = Dt(e);
    return t === "Do" ? a.ordinalNumber(n, {
      unit: "dayOfYear"
    }) : k(n, t.length);
  },
  // Day of week
  E: function(e, t, a) {
    var n = e.getUTCDay();
    switch (t) {
      case "E":
      case "EE":
      case "EEE":
        return a.day(n, {
          width: "abbreviated",
          context: "formatting"
        });
      case "EEEEE":
        return a.day(n, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return a.day(n, {
          width: "short",
          context: "formatting"
        });
      case "EEEE":
      default:
        return a.day(n, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Local day of week
  e: function(e, t, a, n) {
    var i = e.getUTCDay(), o = (i - n.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "e":
        return String(o);
      case "ee":
        return k(o, 2);
      case "eo":
        return a.ordinalNumber(o, {
          unit: "day"
        });
      case "eee":
        return a.day(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "eeeee":
        return a.day(i, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return a.day(i, {
          width: "short",
          context: "formatting"
        });
      case "eeee":
      default:
        return a.day(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone local day of week
  c: function(e, t, a, n) {
    var i = e.getUTCDay(), o = (i - n.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "c":
        return String(o);
      case "cc":
        return k(o, t.length);
      case "co":
        return a.ordinalNumber(o, {
          unit: "day"
        });
      case "ccc":
        return a.day(i, {
          width: "abbreviated",
          context: "standalone"
        });
      case "ccccc":
        return a.day(i, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return a.day(i, {
          width: "short",
          context: "standalone"
        });
      case "cccc":
      default:
        return a.day(i, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // ISO day of week
  i: function(e, t, a) {
    var n = e.getUTCDay(), i = n === 0 ? 7 : n;
    switch (t) {
      case "i":
        return String(i);
      case "ii":
        return k(i, t.length);
      case "io":
        return a.ordinalNumber(i, {
          unit: "day"
        });
      case "iii":
        return a.day(n, {
          width: "abbreviated",
          context: "formatting"
        });
      case "iiiii":
        return a.day(n, {
          width: "narrow",
          context: "formatting"
        });
      case "iiiiii":
        return a.day(n, {
          width: "short",
          context: "formatting"
        });
      case "iiii":
      default:
        return a.day(n, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM or PM
  a: function(e, t, a) {
    var n = e.getUTCHours(), i = n / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return a.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "aaa":
        return a.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "aaaaa":
        return a.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return a.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM, PM, midnight, noon
  b: function(e, t, a) {
    var n = e.getUTCHours(), i;
    switch (n === 12 ? i = fe.noon : n === 0 ? i = fe.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
      case "b":
      case "bb":
        return a.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "bbb":
        return a.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "bbbbb":
        return a.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return a.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // in the morning, in the afternoon, in the evening, at night
  B: function(e, t, a) {
    var n = e.getUTCHours(), i;
    switch (n >= 17 ? i = fe.evening : n >= 12 ? i = fe.afternoon : n >= 4 ? i = fe.morning : i = fe.night, t) {
      case "B":
      case "BB":
      case "BBB":
        return a.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "BBBBB":
        return a.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return a.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Hour [1-12]
  h: function(e, t, a) {
    if (t === "ho") {
      var n = e.getUTCHours() % 12;
      return n === 0 && (n = 12), a.ordinalNumber(n, {
        unit: "hour"
      });
    }
    return oe.h(e, t);
  },
  // Hour [0-23]
  H: function(e, t, a) {
    return t === "Ho" ? a.ordinalNumber(e.getUTCHours(), {
      unit: "hour"
    }) : oe.H(e, t);
  },
  // Hour [0-11]
  K: function(e, t, a) {
    var n = e.getUTCHours() % 12;
    return t === "Ko" ? a.ordinalNumber(n, {
      unit: "hour"
    }) : k(n, t.length);
  },
  // Hour [1-24]
  k: function(e, t, a) {
    var n = e.getUTCHours();
    return n === 0 && (n = 24), t === "ko" ? a.ordinalNumber(n, {
      unit: "hour"
    }) : k(n, t.length);
  },
  // Minute
  m: function(e, t, a) {
    return t === "mo" ? a.ordinalNumber(e.getUTCMinutes(), {
      unit: "minute"
    }) : oe.m(e, t);
  },
  // Second
  s: function(e, t, a) {
    return t === "so" ? a.ordinalNumber(e.getUTCSeconds(), {
      unit: "second"
    }) : oe.s(e, t);
  },
  // Fraction of second
  S: function(e, t) {
    return oe.S(e, t);
  },
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, t, a, n) {
    var i = n._originalDate || e, o = i.getTimezoneOffset();
    if (o === 0)
      return "Z";
    switch (t) {
      case "X":
        return Ue(o);
      case "XXXX":
      case "XX":
        return se(o);
      case "XXXXX":
      case "XXX":
      default:
        return se(o, ":");
    }
  },
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
  x: function(e, t, a, n) {
    var i = n._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "x":
        return Ue(o);
      case "xxxx":
      case "xx":
        return se(o);
      case "xxxxx":
      case "xxx":
      default:
        return se(o, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, t, a, n) {
    var i = n._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + We(o, ":");
      case "OOOO":
      default:
        return "GMT" + se(o, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, t, a, n) {
    var i = n._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "z":
      case "zz":
      case "zzz":
        return "GMT" + We(o, ":");
      case "zzzz":
      default:
        return "GMT" + se(o, ":");
    }
  },
  // Seconds timestamp
  t: function(e, t, a, n) {
    var i = n._originalDate || e, o = Math.floor(i.getTime() / 1e3);
    return k(o, t.length);
  },
  // Milliseconds timestamp
  T: function(e, t, a, n) {
    var i = n._originalDate || e, o = i.getTime();
    return k(o, t.length);
  }
};
function We(r, e) {
  var t = r > 0 ? "-" : "+", a = Math.abs(r), n = Math.floor(a / 60), i = a % 60;
  if (i === 0)
    return t + String(n);
  var o = e;
  return t + String(n) + o + k(i, 2);
}
function Ue(r, e) {
  if (r % 60 === 0) {
    var t = r > 0 ? "-" : "+";
    return t + k(Math.abs(r) / 60, 2);
  }
  return se(r, e);
}
function se(r, e) {
  var t = e || "", a = r > 0 ? "-" : "+", n = Math.abs(r), i = k(Math.floor(n / 60), 2), o = k(n % 60, 2);
  return a + i + t + o;
}
var ze = 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"
      });
  }
}, $e = 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"
      });
  }
}, Ft = function(e, t) {
  var a = e.match(/(P+)(p+)?/) || [], n = a[1], i = a[2];
  if (!i)
    return ze(e, t);
  var o;
  switch (n) {
    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}}", ze(n, t)).replace("{{time}}", $e(i, t));
}, Nt = {
  p: $e,
  P: Ft
}, Rt = ["D", "DD"], qt = ["YY", "YYYY"];
function Ht(r) {
  return Rt.indexOf(r) !== -1;
}
function jt(r) {
  return qt.indexOf(r) !== -1;
}
function Ye(r, e, t) {
  if (r === "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 (r === "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 (r === "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 (r === "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 Bt = {
  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"
  }
}, At = function(e, t, a) {
  var n, i = Bt[e];
  return typeof i == "string" ? n = i : t === 1 ? n = i.one : n = i.other.replace("{{count}}", t.toString()), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "in " + n : n + " ago" : n;
};
function Me(r) {
  return function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : r.defaultWidth, a = r.formats[t] || r.formats[r.defaultWidth];
    return a;
  };
}
var It = {
  full: "EEEE, MMMM do, y",
  long: "MMMM do, y",
  medium: "MMM d, y",
  short: "MM/dd/yyyy"
}, Gt = {
  full: "h:mm:ss a zzzz",
  long: "h:mm:ss a z",
  medium: "h:mm:ss a",
  short: "h:mm a"
}, Qt = {
  full: "{{date}} 'at' {{time}}",
  long: "{{date}} 'at' {{time}}",
  medium: "{{date}}, {{time}}",
  short: "{{date}}, {{time}}"
}, Xt = {
  date: Me({
    formats: It,
    defaultWidth: "full"
  }),
  time: Me({
    formats: Gt,
    defaultWidth: "full"
  }),
  dateTime: Me({
    formats: Qt,
    defaultWidth: "full"
  })
}, Vt = {
  lastWeek: "'last' eeee 'at' p",
  yesterday: "'yesterday at' p",
  today: "'today at' p",
  tomorrow: "'tomorrow at' p",
  nextWeek: "eeee 'at' p",
  other: "P"
}, Zt = function(e, t, a, n) {
  return Vt[e];
};
function ge(r) {
  return function(e, t) {
    var a = t != null && t.context ? String(t.context) : "standalone", n;
    if (a === "formatting" && r.formattingValues) {
      var i = r.defaultFormattingWidth || r.defaultWidth, o = t != null && t.width ? String(t.width) : i;
      n = r.formattingValues[o] || r.formattingValues[i];
    } else {
      var l = r.defaultWidth, c = t != null && t.width ? String(t.width) : r.defaultWidth;
      n = r.values[c] || r.values[l];
    }
    var u = r.argumentCallback ? r.argumentCallback(e) : e;
    return n[u];
  };
}
var Jt = {
  narrow: ["B", "A"],
  abbreviated: ["BC", "AD"],
  wide: ["Before Christ", "Anno Domini"]
}, Kt = {
  narrow: ["1", "2", "3", "4"],
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
}, $t = {
  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"]
}, er = {
  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"]
}, tr = {
  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"
  }
}, rr = {
  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"
  }
}, nr = function(e, t) {
  var a = Number(e), n = a % 100;
  if (n > 20 || n < 10)
    switch (n % 10) {
      case 1:
        return a + "st";
      case 2:
        return a + "nd";
      case 3:
        return a + "rd";
    }
  return a + "th";
}, ar = {
  ordinalNumber: nr,
  era: ge({
    values: Jt,
    defaultWidth: "wide"
  }),
  quarter: ge({
    values: Kt,
    defaultWidth: "wide",
    argumentCallback: function(e) {
      return e - 1;
    }
  }),
  month: ge({
    values: $t,
    defaultWidth: "wide"
  }),
  day: ge({
    values: er,
    defaultWidth: "wide"
  }),
  dayPeriod: ge({
    values: tr,
    defaultWidth: "wide",
    formattingValues: rr,
    defaultFormattingWidth: "wide"
  })
};
function ve(r) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.width, n = a && r.matchPatterns[a] || r.matchPatterns[r.defaultMatchWidth], i = e.match(n);
    if (!i)
      return null;
    var o = i[0], l = a && r.parsePatterns[a] || r.parsePatterns[r.defaultParseWidth], c = Array.isArray(l) ? or(l, function(g) {
      return g.test(o);
    }) : ir(l, function(g) {
      return g.test(o);
    }), u;
    u = r.valueCallback ? r.valueCallback(c) : c, u = t.valueCallback ? t.valueCallback(u) : u;
    var f = e.slice(o.length);
    return {
      value: u,
      rest: f
    };
  };
}
function ir(r, e) {
  for (var t in r)
    if (r.hasOwnProperty(t) && e(r[t]))
      return t;
}
function or(r, e) {
  for (var t = 0; t < r.length; t++)
    if (e(r[t]))
      return t;
}
function sr(r) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = e.match(r.matchPattern);
    if (!a)
      return null;
    var n = a[0], i = e.match(r.parsePattern);
    if (!i)
      return null;
    var o = r.valueCallback ? r.valueCallback(i[0]) : i[0];
    o = t.valueCallback ? t.valueCallback(o) : o;
    var l = e.slice(n.length);
    return {
      value: o,
      rest: l
    };
  };
}
var lr = /^(\d+)(th|st|nd|rd)?/i, ur = /\d+/i, cr = {
  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
}, dr = {
  any: [/^b/i, /^(a|c)/i]
}, fr = {
  narrow: /^[1234]/i,
  abbreviated: /^q[1234]/i,
  wide: /^[1234](th|st|nd|rd)? quarter/i
}, mr = {
  any: [/1/i, /2/i, /3/i, /4/i]
}, hr = {
  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
}, gr = {
  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]
}, vr = {
  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
}, pr = {
  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]
}, br = {
  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
}, wr = {
  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
  }
}, _r = {
  ordinalNumber: sr({
    matchPattern: lr,
    parsePattern: ur,
    valueCallback: function(e) {
      return parseInt(e, 10);
    }
  }),
  era: ve({
    matchPatterns: cr,
    defaultMatchWidth: "wide",
    parsePatterns: dr,
    defaultParseWidth: "any"
  }),
  quarter: ve({
    matchPatterns: fr,
    defaultMatchWidth: "wide",
    parsePatterns: mr,
    defaultParseWidth: "any",
    valueCallback: function(e) {
      return e + 1;
    }
  }),
  month: ve({
    matchPatterns: hr,
    defaultMatchWidth: "wide",
    parsePatterns: gr,
    defaultParseWidth: "any"
  }),
  day: ve({
    matchPatterns: vr,
    defaultMatchWidth: "wide",
    parsePatterns: pr,
    defaultParseWidth: "any"
  }),
  dayPeriod: ve({
    matchPatterns: br,
    defaultMatchWidth: "any",
    parsePatterns: wr,
    defaultParseWidth: "any"
  })
}, yr = {
  code: "en-US",
  formatDistance: At,
  formatLong: Xt,
  formatRelative: Zt,
  localize: ar,
  match: _r,
  options: {
    weekStartsOn: 0,
    firstWeekContainsDate: 1
  }
}, xr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, kr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Cr = /^'([^]*?)'?$/, Tr = /''/g, Mr = /[a-zA-Z]/;
function Or(r, e, t) {
  var a, n, i, o, l, c, u, f, g, d, b, p, _, w;
  I(2, arguments);
  var x = String(e), C = ke(), O = (a = (n = void 0) !== null && n !== void 0 ? n : C.locale) !== null && a !== void 0 ? a : yr, L = ue((i = (o = (l = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && l !== void 0 ? l : C.firstWeekContainsDate) !== null && o !== void 0 ? o : (u = C.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
  if (!(L >= 1 && L <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var M = ue((g = (d = (b = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && b !== void 0 ? b : C.weekStartsOn) !== null && d !== void 0 ? d : (_ = C.locale) === null || _ === void 0 || (w = _.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && g !== void 0 ? g : 0);
  if (!(M >= 0 && M <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  if (!O.localize)
    throw new RangeError("locale must contain localize property");
  if (!O.formatLong)
    throw new RangeError("locale must contain formatLong property");
  var F = Z(r);
  if (!Mt(F))
    throw new RangeError("Invalid time value");
  var Q = Ct(F), J = Ot(F, Q), N = {
    firstWeekContainsDate: L,
    weekStartsOn: M,
    locale: O,
    _originalDate: F
  }, G = x.match(kr).map(function(W) {
    var R = W[0];
    if (R === "p" || R === "P") {
      var A = Nt[R];
      return A(W, O.formatLong);
    }
    return W;
  }).join("").match(xr).map(function(W) {
    if (W === "''")
      return "'";
    var R = W[0];
    if (R === "'")
      return Pr(W);
    var A = Lt[R];
    if (A)
      return jt(W) && Ye(W, e, String(r)), Ht(W) && Ye(W, e, String(r)), A(J, W, O.localize, N);
    if (R.match(Mr))
      throw new RangeError("Format string contains an unescaped latin alphabet character `" + R + "`");
    return W;
  }).join("");
  return G;
}
function Pr(r) {
  var e = r.match(Cr);
  return e ? e[1].replace(Tr, "'") : r;
}
const Ee = (r) => window.postMessage(r, window.location.href), Dr = "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", Le = "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", Fe = "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", Sr = "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 pe = /* @__PURE__ */ ((r) => (r.lotteries = "lotteries", r.outcome = "outcome", r.draw = "draw", r))(pe || {}), me = /* @__PURE__ */ ((r) => (r.en = "en", r.default = "*", r))(me || {});
const Wr = (r) => V(void 0, null, function* () {
  const { path: e, params: t = {}, options: a = {} } = r, n = new URL(e);
  return Object.keys(t).map((i) => {
    n.searchParams.append(i, t[i]);
  }), yield Ur(n, a);
}), Ur = (t, ...a) => V(void 0, [t, ...a], function* (r, e = {}) {
  let n;
  try {
    n = yield fetch(r, e), n = yield n.text(), n = JSON.parse(n);
  } catch (i) {
    throw new Error(i.message);
  }
  return n;
}), Ne = (r, e, t) => V(void 0, null, function* () {
  const { session: a } = t, n = {
    headers: Te({
      "Content-Type": "application/json",
      accept: "text/plain"
    }, a ? { "x-SessionId": a } : {})
  }, o = {
    [pe.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=flipCoin"
      },
      options: n
    }),
    [pe.outcome]: () => {
      const { id: l } = t;
      return {
        path: `/wof/outcome/${l}`,
        params: {
          filter: "Types[]=flipCoin"
        },
        options: n
      };
    }
  }[r]();
  return o.path = e + "/v1" + o.path, yield Wr(o);
}), Re = {
  lotteries: (r, e) => V(void 0, null, function* () {
    const t = yield Ne(pe.lotteries, r, { session: e });
    return (t == null ? void 0 : t.items) || [];
  }),
  outcome: (r, e, t) => V(void 0, null, function* () {
    return yield Ne(pe.outcome, r, { session: e, id: t });
  })
}, zr = (r) => {
  var e;
  return ((e = r == null ? void 0 : r.current) == null ? void 0 : e.remainingTimes) > 0 && (r == null ? void 0 : r.next);
};
function qe(r, e) {
  ot(r, e);
}
function Yr(r) {
  st.set(r);
}
const He = {
  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 Er(r) {
  ft(r, "svelte-1qb7jfq", `.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.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 135px)}.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-loader{border-radius:var(--emw--border-radius-large, 16px);padding:20px;line-height:15px}.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}@container (max-width: 1300px){.drawer{padding:20px 40px}}@container (max-width: 992px){.drawer{width:70%}}@container (max-width: 768px){.drawer{width:80%}}@container (max-width: 576px){.drawer{width:90%}}.drawer .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 155px)}.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, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.coins-history-loader{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.coins-history-loader-body{display:flex}.coins-history-dot .Skeleton{border-radius:var(--emw--border-radius-large, 50%);margin-right:10px}.coins-history-text .Skeleton{margin-right:20px}.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:-1px;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 je(r, e, t) {
  const a = r.slice();
  return a[43] = e[t], a;
}
function Be(r, e, t) {
  const a = r.slice();
  return a[46] = e[t], a[48] = t, a;
}
function Ae(r, e, t) {
  const a = r.slice();
  return a[40] = e[t], a[42] = t, a;
}
function Lr(r, e, t) {
  const a = r.slice();
  return a[33] = e[t], a;
}
function Fr(r, e, t) {
  const a = r.slice();
  return a[33] = e[t], a;
}
function Nr(r, e, t) {
  const a = r.slice();
  return a[33] = e[t], a;
}
function Ie(r) {
  let e, t, a, n, i, o = (
    /*$_*/
    r[10]("infoTooltip") + ""
  ), l, c, u;
  return {
    c() {
      e = v("div"), t = v("div"), a = v("button"), n = y(), i = v("span"), l = D(o), h(a, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
    },
    m(f, g) {
      Y(f, e, g), s(e, t), s(t, a), s(t, n), s(t, i), s(i, l), c || (u = ee(
        a,
        "click",
        /*showHideToolip*/
        r[13]
      ), c = !0);
    },
    p(f, g) {
      g[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      f[10]("infoTooltip") + "") && S(l, o);
    },
    d(f) {
      f && E(e), c = !1, u();
    }
  };
}
function Rr(r) {
  let e, t, a = (
    /*$_*/
    r[10]("rulesDescription") + ""
  ), n, i, o, l, c, u = (
    /*$_*/
    r[10]("prizeAgenda") + ""
  ), f, g, d, b, p = (
    /*$_*/
    r[10]("tournamentTicket") + ""
  ), _, w, x, C = (
    /*$_*/
    r[10]("freeSpins") + ""
  ), O, L, M, F = (
    /*$_*/
    r[10]("bonusMoney") + ""
  ), Q, J, N, G = (
    /*$_*/
    r[10]("loyaltyPoints") + ""
  ), W, R, A, K = (
    /*$_*/
    r[10]("luckyWheel") + ""
  ), U, re, X, q = (
    /*$_*/
    r[10]("mysteryChest") + ""
  ), T, m, P, H = (
    /*$_*/
    r[10]("coinRoyale") + ""
  ), ne, Ce, $, ae = (
    /*$_*/
    r[10]("customRewards") + ""
  ), ce, j = (
    /*hasUrl*/
    r[8] && Ge(r)
  );
  return {
    c() {
      e = v("div"), t = v("span"), n = D(a), i = y(), j && j.c(), o = y(), l = v("section"), c = v("span"), f = D(u), g = y(), d = v("ul"), b = v("li"), _ = D(p), w = y(), x = v("li"), O = D(C), L = y(), M = v("li"), Q = D(F), J = y(), N = v("li"), W = D(G), R = y(), A = v("li"), U = D(K), re = y(), X = v("li"), T = D(q), m = y(), P = v("li"), ne = D(H), Ce = y(), $ = v("li"), ce = D(ae), h(t, "class", "coins-rules__description"), h(c, "class", "coins-rules__prize-title"), h(b, "class", "coins-rules__list__item"), h(x, "class", "coins-rules__list__item"), h(M, "class", "coins-rules__list__item"), h(N, "class", "coins-rules__list__item"), h(A, "class", "coins-rules__list__item"), h(X, "class", "coins-rules__list__item"), h(P, "class", "coins-rules__list__item"), h($, "class", "coins-rules__list__item"), h(d, "class", "coins-rules__list"), h(e, "class", "coins-rules");
    },
    m(z, B) {
      Y(z, e, B), s(e, t), s(t, n), s(e, i), j && j.m(e, null), s(e, o), s(e, l), s(l, c), s(c, f), s(l, g), s(l, d), s(d, b), s(b, _), s(d, w), s(d, x), s(x, O), s(d, L), s(d, M), s(M, Q), s(d, J), s(d, N), s(N, W), s(d, R), s(d, A), s(A, U), s(d, re), s(d, X), s(X, T), s(d, m), s(d, P), s(P, ne), s(d, Ce), s(d, $), s($, ce);
    },
    p(z, B) {
      B[0] & /*$_*/
      1024 && a !== (a = /*$_*/
      z[10]("rulesDescription") + "") && S(n, a), /*hasUrl*/
      z[8] ? j ? j.p(z, B) : (j = Ge(z), j.c(), j.m(e, o)) : j && (j.d(1), j = null), B[0] & /*$_*/
      1024 && u !== (u = /*$_*/
      z[10]("prizeAgenda") + "") && S(f, u), B[0] & /*$_*/
      1024 && p !== (p = /*$_*/
      z[10]("tournamentTicket") + "") && S(_, p), B[0] & /*$_*/
      1024 && C !== (C = /*$_*/
      z[10]("freeSpins") + "") && S(O, C), B[0] & /*$_*/
      1024 && F !== (F = /*$_*/
      z[10]("bonusMoney") + "") && S(Q, F), B[0] & /*$_*/
      1024 && G !== (G = /*$_*/
      z[10]("loyaltyPoints") + "") && S(W, G), B[0] & /*$_*/
      1024 && K !== (K = /*$_*/
      z[10]("luckyWheel") + "") && S(U, K), B[0] & /*$_*/
      1024 && q !== (q = /*$_*/
      z[10]("mysteryChest") + "") && S(T, q), B[0] & /*$_*/
      1024 && H !== (H = /*$_*/
      z[10]("coinRoyale") + "") && S(ne, H), B[0] & /*$_*/
      1024 && ae !== (ae = /*$_*/
      z[10]("customRewards") + "") && S(ce, ae);
    },
    d(z) {
      z && E(e), j && j.d();
    }
  };
}
function qr(r) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyalesHistory*/
      i[9].length > 0 ? Ir : Ar
    );
  }
  let a = t(r), n = a(r);
  return {
    c() {
      n.c(), e = be();
    },
    m(i, o) {
      n.m(i, o), Y(i, e, o);
    },
    p(i, o) {
      a === (a = t(i)) && n ? n.p(i, o) : (n.d(1), n = a(i), n && (n.c(), n.m(e.parentNode, e)));
    },
    d(i) {
      i && E(e), n.d(i);
    }
  };
}
function Hr(r) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyales*/
      i[6].length > 0 ? Qr : Gr
    );
  }
  let a = t(r), n = a(r);
  return {
    c() {
      n.c(), e = be();
    },
    m(i, o) {
      n.m(i, o), Y(i, e, o);
    },
    p(i, o) {
      a === (a = t(i)) && n ? n.p(i, o) : (n.d(1), n = a(i), n && (n.c(), n.m(e.parentNode, e)));
    },
    d(i) {
      i && E(e), n.d(i);
    }
  };
}
function jr(r) {
  let e, t = te([1, 2, 3]), a = [];
  for (let n = 0; n < 3; n += 1)
    a[n] = Vr(Lr(r, t, n));
  return {
    c() {
      for (let n = 0; n < 3; n += 1)
        a[n].c();
      e = be();
    },
    m(n, i) {
      for (let o = 0; o < 3; o += 1)
        a[o] && a[o].m(n, i);
      Y(n, e, i);
    },
    p: le,
    d(n) {
      n && E(e), he(a, n);
    }
  };
}
function Br(r) {
  let e, t = te([1, 2, 3, 4, 5, 6, 7]), a = [];
  for (let n = 0; n < 7; n += 1)
    a[n] = Zr(Nr(r, t, n));
  return {
    c() {
      for (let n = 0; n < 7; n += 1)
        a[n].c();
      e = be();
    },
    m(n, i) {
      for (let o = 0; o < 7; o += 1)
        a[o] && a[o].m(n, i);
      Y(n, e, i);
    },
    p: le,
    d(n) {
      n && E(e), he(a, n);
    }
  };
}
function Ge(r) {
  let e, t, a = (
    /*$_*/
    r[10]("terms") + ""
  ), n, i, o;
  return {
    c() {
      e = v("a"), t = v("span"), n = D(a), i = y(), o = v("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
        e,
        "href",
        /*terms*/
        r[0]
      ), h(e, "target", "_blank");
    },
    m(l, c) {
      Y(l, e, c), s(e, t), s(t, n), s(e, i), s(e, o);
    },
    p(l, c) {
      c[0] & /*$_*/
      1024 && a !== (a = /*$_*/
      l[10]("terms") + "") && S(n, a), c[0] & /*terms*/
      1 && h(
        e,
        "href",
        /*terms*/
        l[0]
      );
    },
    d(l) {
      l && E(e);
    }
  };
}
function Ar(r) {
  let e, t = (
    /*$_*/
    r[10]("noHistoryYet") + ""
  ), a;
  return {
    c() {
      e = v("div"), a = D(t), h(e, "class", "coins-empty");
    },
    m(n, i) {
      Y(n, e, i), s(e, a);
    },
    p(n, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      n[10]("noHistoryYet") + "") && S(a, t);
    },
    d(n) {
      n && E(e);
    }
  };
}
function Ir(r) {
  let e, t = te(
    /*coinRoyalesHistory*/
    r[9]
  ), a = [];
  for (let n = 0; n < t.length; n += 1)
    a[n] = Ve(je(r, t, n));
  return {
    c() {
      for (let n = 0; n < a.length; n += 1)
        a[n].c();
      e = be();
    },
    m(n, i) {
      for (let o = 0; o < a.length; o += 1)
        a[o] && a[o].m(n, i);
      Y(n, e, i);
    },
    p(n, i) {
      if (i[0] & /*showMore, coinRoyalesHistory, $_*/
      17920) {
        t = te(
          /*coinRoyalesHistory*/
          n[9]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = je(n, t, o);
          a[o] ? a[o].p(l, i) : (a[o] = Ve(l), a[o].c(), a[o].m(e.parentNode, e));
        }
        for (; o < a.length; o += 1)
          a[o].d(1);
        a.length = t.length;
      }
    },
    d(n) {
      n && E(e), he(a, n);
    }
  };
}
function Qe(r) {
  var p, _;
  let e, t, a, n, i = (
    /*outcome*/
    ((p = r[46]) == null ? void 0 : p.name) + ""
  ), o, l, c, u, f, g, d = (
    /*outcome*/
    ((_ = r[46]) == null ? void 0 : _.date) + ""
  ), b;
  return {
    c() {
      var w;
      e = v("div"), t = v("span"), t.textContent = `${/*index*/
      r[48] + 1}`, a = y(), n = v("p"), o = D(i), l = y(), c = v("img"), f = y(), g = v("span"), b = D(d), h(t, "class", "index"), we(c.src, u = /*outcome*/
      (w = r[46]) != null && w.state ? Fe : Le) || h(c, "src", u), h(c, "alt", ""), h(n, "class", "name"), h(g, "class", "time"), h(e, "class", "coins-history__list__item");
    },
    m(w, x) {
      Y(w, e, x), s(e, t), s(e, a), s(e, n), s(n, o), s(n, l), s(n, c), s(e, f), s(e, g), s(g, b);
    },
    p(w, x) {
      var C, O, L;
      x[0] & /*coinRoyalesHistory*/
      512 && i !== (i = /*outcome*/
      ((C = w[46]) == null ? void 0 : C.name) + "") && S(o, i), x[0] & /*coinRoyalesHistory*/
      512 && !we(c.src, u = /*outcome*/
      (O = w[46]) != null && O.state ? Fe : Le) && h(c, "src", u), x[0] & /*coinRoyalesHistory*/
      512 && d !== (d = /*outcome*/
      ((L = w[46]) == null ? void 0 : L.date) + "") && S(b, d);
    },
    d(w) {
      w && E(e);
    }
  };
}
function Xe(r) {
  let e, t = (
    /*$_*/
    r[10]("more") + ""
  ), a, n, i, o, l, c;
  function u() {
    return (
      /*click_handler_1*/
      r[24](
        /*history*/
        r[43]
      )
    );
  }
  return {
    c() {
      e = v("button"), a = D(t), n = y(), i = v("img"), we(i.src, o = Sr) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
    },
    m(f, g) {
      Y(f, e, g), s(e, a), s(e, n), s(e, i), l || (c = ee(e, "click", u), l = !0);
    },
    p(f, g) {
      r = f, g[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      r[10]("more") + "") && S(a, t);
    },
    d(f) {
      f && E(e), l = !1, c();
    }
  };
}
function Ve(r) {
  var g;
  let e, t, a = (
    /*history*/
    r[43].name + ""
  ), n, i, o, l, c = te(
    /*history*/
    r[43].outcomes.slice(
      0,
      /*history*/
      r[43].endPos
    )
  ), u = [];
  for (let d = 0; d < c.length; d += 1)
    u[d] = Qe(Be(r, c, d));
  let f = (
    /*history*/
    ((g = r[43].outcomes) == null ? void 0 : g.length) > 3 && /*history*/
    r[43].endPos === 3 && Xe(r)
  );
  return {
    c() {
      e = v("div"), t = v("div"), n = D(a), i = y();
      for (let d = 0; d < u.length; d += 1)
        u[d].c();
      o = y(), f && f.c(), l = y(), h(t, "class", "coins-history__title"), h(e, "class", "coins-history__list");
    },
    m(d, b) {
      Y(d, e, b), s(e, t), s(t, n), s(e, i);
      for (let p = 0; p < u.length; p += 1)
        u[p] && u[p].m(e, null);
      s(e, o), f && f.m(e, null), s(e, l);
    },
    p(d, b) {
      var p;
      if (b[0] & /*coinRoyalesHistory*/
      512 && a !== (a = /*history*/
      d[43].name + "") && S(n, a), b[0] & /*coinRoyalesHistory*/
      512) {
        c = te(
          /*history*/
          d[43].outcomes.slice(
            0,
            /*history*/
            d[43].endPos
          )
        );
        let _;
        for (_ = 0; _ < c.length; _ += 1) {
          const w = Be(d, c, _);
          u[_] ? u[_].p(w, b) : (u[_] = Qe(w), u[_].c(), u[_].m(e, o));
        }
        for (; _ < u.length; _ += 1)
          u[_].d(1);
        u.length = c.length;
      }
      /*history*/
      ((p = d[43].outcomes) == null ? void 0 : p.length) > 3 && /*history*/
      d[43].endPos === 3 ? f ? f.p(d, b) : (f = Xe(d), f.c(), f.m(e, l)) : f && (f.d(1), f = null);
    },
    d(d) {
      d && E(e), he(u, d), f && f.d();
    }
  };
}
function Gr(r) {
  let e, t = (
    /*$_*/
    r[10]("noCoinYet") + ""
  ), a;
  return {
    c() {
      e = v("div"), a = D(t), h(e, "class", "coins-empty");
    },
    m(n, i) {
      Y(n, e, i), s(e, a);
    },
    p(n, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      n[10]("noCoinYet") + "") && S(a, t);
    },
    d(n) {
      n && E(e);
    }
  };
}
function Qr(r) {
  let e, t = te(
    /*coinRoyales*/
    r[6]
  ), a = [];
  for (let n = 0; n < t.length; n += 1)
    a[n] = Ze(Ae(r, t, n));
  return {
    c() {
      e = v("div");
      for (let n = 0; n < a.length; n += 1)
        a[n].c();
      h(e, "class", "coins-list");
    },
    m(n, i) {
      Y(n, e, i);
      for (let o = 0; o < a.length; o += 1)
        a[o] && a[o].m(e, null);
    },
    p(n, i) {
      if (i[0] & /*openCoinDetails, coinRoyales, lang*/
      65602) {
        t = te(
          /*coinRoyales*/
          n[6]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Ae(n, t, o);
          a[o] ? a[o].p(l, i) : (a[o] = Ze(l), a[o].c(), a[o].m(e, null));
        }
        for (; o < a.length; o += 1)
          a[o].d(1);
        a.length = t.length;
      }
    },
    d(n) {
      n && E(e), he(a, n);
    }
  };
}
function Ze(r) {
  var w, x;
  let e, t = (
    /*coin*/
    (r[40].program.name[
      /*lang*/
      r[1]
    ] || /*coin*/
    r[40].program.name[me.default]) + ""
  ), a, n, i, o, l, c, u, f = (
    /*coin*/
    ((x = (w = r[40]) == null ? void 0 : w.current) == null ? void 0 : x.remainingTimes) + ""
  ), g, d, b, p;
  function _() {
    return (
      /*click_handler*/
      r[23](
        /*coin*/
        r[40]
      )
    );
  }
  return {
    c() {
      e = v("button"), a = D(t), n = y(), i = v("div"), o = v("img"), c = y(), u = v("span"), g = D(f), d = y(), we(o.src, l = Dr) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
    },
    m(C, O) {
      Y(C, e, O), s(e, a), s(e, n), s(e, i), s(i, o), s(i, c), s(i, u), s(u, g), s(e, d), b || (p = ee(e, "click", _), b = !0);
    },
    p(C, O) {
      var L, M;
      r = C, O[0] & /*coinRoyales, lang*/
      66 && t !== (t = /*coin*/
      (r[40].program.name[
        /*lang*/
        r[1]
      ] || /*coin*/
      r[40].program.name[me.default]) + "") && S(a, t), O[0] & /*coinRoyales*/
      64 && f !== (f = /*coin*/
      ((M = (L = r[40]) == null ? void 0 : L.current) == null ? void 0 : M.remainingTimes) + "") && S(g, f);
    },
    d(C) {
      C && E(e), b = !1, p();
    }
  };
}
function Xr(r) {
  let e;
  return {
    c() {
      e = v("div"), e.innerHTML = '<ui-skeleton class="coins-history-dot" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="coins-history-text" structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="text" width="50px" height="16px"></ui-skeleton>', h(e, "class", "coins-history-loader-body");
    },
    m(t, a) {
      Y(t, e, a);
    },
    p: le,
    d(t) {
      t && E(e);
    }
  };
}
function Vr(r) {
  let e, t, a, n, i = te([1, 2, 3]), o = [];
  for (let l = 0; l < 3; l += 1)
    o[l] = Xr(Fr(r, i, l));
  return {
    c() {
      e = v("div"), t = v("ui-skeleton"), a = y();
      for (let l = 0; l < 3; l += 1)
        o[l].c();
      n = y(), Se(t, "structure", "text"), Se(t, "height", "16px"), h(e, "class", "coins-history-loader");
    },
    m(l, c) {
      Y(l, e, c), s(e, t), s(e, a);
      for (let u = 0; u < 3; u += 1)
        o[u] && o[u].m(e, null);
      s(e, n);
    },
    p: le,
    d(l) {
      l && E(e), he(o, l);
    }
  };
}
function Zr(r) {
  let e;
  return {
    c() {
      e = v("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', h(e, "class", "coins-loader");
    },
    m(t, a) {
      Y(t, e, a);
    },
    p: le,
    d(t) {
      t && E(e);
    }
  };
}
function Jr(r) {
  let e, t, a, n, i, o, l, c, u, f = (
    /*$_*/
    r[10]("headerTitle") + ""
  ), g, d, b, p, _, w, x, C = (
    /*$_*/
    r[10]("play") + ""
  ), O, L, M, F = (
    /*$_*/
    r[10]("history") + ""
  ), Q, J, N, G = (
    /*$_*/
    r[10]("rules") + ""
  ), W, R, A, K, U = (
    /*tooltip*/
    r[7] && Ie(r)
  );
  function re(T, m) {
    return (
      /*coinsLoading*/
      T[5] ? Br : (
        /*historyLoading*/
        T[4] ? jr : (
          /*activeTab*/
          T[3] === 1 ? Hr : (
            /*activeTab*/
            T[3] === 2 ? qr : Rr
          )
        )
      )
    );
  }
  let X = re(r), q = X(r);
  return {
    c() {
      e = v("div"), t = v("button"), a = y(), n = v("div"), U && U.c(), i = y(), o = v("div"), l = v("button"), c = y(), u = v("div"), g = D(f), d = y(), b = v("button"), p = y(), _ = v("div"), w = v("div"), x = v("button"), O = D(C), L = y(), M = v("button"), Q = D(F), J = y(), N = v("button"), W = D(G), R = y(), q.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(u, "class", "coins-header__title"), h(b, "class", "icon-button close"), h(o, "class", "coins-header"), h(x, "data-index", "1"), h(x, "class", "coins-tabs__tab"), de(
        x,
        "active",
        /*activeTab*/
        r[3] === 1
      ), h(M, "data-index", "2"), h(M, "class", "coins-tabs__tab"), de(
        M,
        "active",
        /*activeTab*/
        r[3] === 2
      ), h(N, "data-index", "3"), h(N, "class", "coins-tabs__tab"), de(
        N,
        "active",
        /*activeTab*/
        r[3] === 3
      ), h(w, "class", "coins-tabs__container"), h(_, "class", "coins-tabs"), h(n, "class", "drawer " + /*mobileView*/
      (r[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
    },
    m(T, m) {
      Y(T, e, m), s(e, t), s(e, a), s(e, n), U && U.m(n, null), s(n, i), s(n, o), s(o, l), s(o, c), s(o, u), s(u, g), s(o, d), s(o, b), s(n, p), s(n, _), s(_, w), s(w, x), s(x, O), s(w, L), s(w, M), s(M, Q), s(w, J), s(w, N), s(N, W), s(n, R), q.m(n, null), r[25](e), A || (K = [
        ee(
          t,
          "click",
          /*onClose*/
          r[12]
        ),
        ee(
          l,
          "click",
          /*showHideToolip*/
          r[13]
        ),
        ee(
          b,
          "click",
          /*onClose*/
          r[12]
        ),
        ee(
          x,
          "click",
          /*handleTabChange*/
          r[15]
        ),
        ee(
          M,
          "click",
          /*handleTabChange*/
          r[15]
        ),
        ee(
          N,
          "click",
          /*handleTabChange*/
          r[15]
        )
      ], A = !0);
    },
    p(T, m) {
      /*tooltip*/
      T[7] ? U ? U.p(T, m) : (U = Ie(T), U.c(), U.m(n, i)) : U && (U.d(1), U = null), m[0] & /*$_*/
      1024 && f !== (f = /*$_*/
      T[10]("headerTitle") + "") && S(g, f), m[0] & /*$_*/
      1024 && C !== (C = /*$_*/
      T[10]("play") + "") && S(O, C), m[0] & /*activeTab*/
      8 && de(
        x,
        "active",
        /*activeTab*/
        T[3] === 1
      ), m[0] & /*$_*/
      1024 && F !== (F = /*$_*/
      T[10]("history") + "") && S(Q, F), m[0] & /*activeTab*/
      8 && de(
        M,
        "active",
        /*activeTab*/
        T[3] === 2
      ), m[0] & /*$_*/
      1024 && G !== (G = /*$_*/
      T[10]("rules") + "") && S(W, G), m[0] & /*activeTab*/
      8 && de(
        N,
        "active",
        /*activeTab*/
        T[3] === 3
      ), X === (X = re(T)) && q ? q.p(T, m) : (q.d(1), q = X(T), q && (q.c(), q.m(n, null)));
    },
    i: le,
    o: le,
    d(T) {
      T && E(e), U && U.d(), q.d(), r[25](null), A = !1, mt(K);
    }
  };
}
function Kr(r, e, t) {
  let a;
  ht(r, bt, (m) => t(10, a = m));
  let { terms: n = "" } = e, { lang: i = me.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: f = "" } = e, { mbsource: g } = e, d = window.navigator.userAgent, b = gt(d), p, _ = 1, w = !1, x = !1, C = [], O = !1, L = !1, M, F;
  const Q = (m) => /(https?:\/\/[^\s]+)/g.test(m), J = () => {
    Ee({ type: "CloseCoinRoyaleDrawer" });
  }, N = () => {
    t(7, O = !O);
  }, G = () => V(this, null, function* () {
    t(4, w = !0);
    let m = C.map((P) => ({
      id: P.program.id,
      name: P.program.name[i] || P.program.name[me.default],
      partitions: P.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (m.length > 0) {
      const P = m.map((H, ne) => V(this, null, function* () {
        const $ = (yield Re.outcome(o, l, H == null ? void 0 : H.id)).items || [];
        if ($.length === 0) {
          m[ne] = null;
          return;
        }
        m[ne] = De(Te({}, H), {
          endPos: $.length > 3 ? 3 : $.length,
          outcomes: $.map((ae) => {
            var B;
            const ce = ((B = H.partitions[ae.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : B.name) || {}, j = ae.draw.state === "fulfilled", z = Or(new Date(ae.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: ce[i] || ce[me.default],
              state: j,
              date: z
            };
          })
        });
      }));
      yield Promise.all(P);
    }
    t(9, M = m.filter((P) => !!P)), t(4, w = !1);
  }), W = () => V(this, null, function* () {
    t(5, x = !0);
    const m = yield Re.lotteries(o, l);
    t(6, C = m.filter((P) => zr(P))), t(5, x = !1);
  }), R = (m) => {
    var H;
    const P = M.findIndex((ne) => ne.id === m);
    t(9, M[P].endPos = (H = M[P].outcomes) == null ? void 0 : H.length, M);
  }, A = (m) => V(this, null, function* () {
    t(3, _ = +m.target.getAttribute("data-index")), _ === 2 && (yield G());
  }), K = () => {
    fetch(f).then((P) => P.json()).then((P) => {
      Object.keys(P).forEach((H) => {
        qe(H, P[H]);
      });
    });
  };
  Object.keys(He).forEach((m) => {
    qe(m, He[m]);
  });
  const U = () => {
    Yr(i);
  }, re = (m) => {
    Ee({
      type: "OpenCoinRoyaleDetails",
      data: m
    });
  };
  vt(() => {
    t(8, L = Q(n)), W(), window.emMessageBus && F && F.unsubscribe();
  });
  const X = (m) => {
    re(m);
  }, q = (m) => R(m.id);
  function T(m) {
    pt[m ? "unshift" : "push"](() => {
      p = m, t(2, p);
    });
  }
  return r.$$set = (m) => {
    "terms" in m && t(0, n = 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, c = m.clientstyling), "clientstylingurl" in m && t(20, u = m.clientstylingurl), "translationurl" in m && t(21, f = m.translationurl), "mbsource" in m && t(22, g = m.mbsource);
  }, r.$$.update = () => {
    r.$$.dirty[0] & /*lang*/
    2 && i && U(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    524292 && c && p && yt(p, c), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    1048580 && u && p && wt(p, u), r.$$.dirty[0] & /*translationurl*/
    2097152 && f && K(), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
    4194308 && g && p && _t(p, `${g}.Style`);
  }, [
    n,
    i,
    p,
    _,
    w,
    x,
    C,
    O,
    L,
    M,
    a,
    b,
    J,
    N,
    R,
    A,
    re,
    o,
    l,
    c,
    u,
    f,
    g,
    X,
    q,
    T
  ];
}
class et extends lt {
  constructor(e) {
    super(), ut(
      this,
      e,
      Kr,
      Jr,
      dt,
      {
        terms: 0,
        lang: 1,
        endpoint: 17,
        session: 18,
        clientstyling: 19,
        clientstylingurl: 20,
        translationurl: 21,
        mbsource: 22
      },
      Er,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), ie();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), ie();
  }
  get endpoint() {
    return this.$$.ctx[17];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), ie();
  }
  get session() {
    return this.$$.ctx[18];
  }
  set session(e) {
    this.$$set({ session: e }), ie();
  }
  get clientstyling() {
    return this.$$.ctx[19];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), ie();
  }
  get clientstylingurl() {
    return this.$$.ctx[20];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), ie();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), ie();
  }
  get mbsource() {
    return this.$$.ctx[22];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), ie();
  }
}
ct(et, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: et
}, Symbol.toStringTag, { value: "Module" }));
export {
  nn as C,
  Or as f
};
