@everymatrix/casino-tournaments-thumbnail-controller 1.94.113 → 1.94.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/components/{CasinoTournamentsThumbnail-PFCjOTsz.js → CasinoTournamentsThumbnail-9fRQ6gHt.js} +3 -3
  2. package/components/{CasinoTournamentsThumbnail-B20MsTdM.cjs → CasinoTournamentsThumbnail-Bm9rL34M.cjs} +1 -1
  3. package/components/{CasinoTournamentsThumbnail-tMp1UZfe.js → CasinoTournamentsThumbnail-dHgrfhc5.js} +3 -3
  4. package/components/{CasinoTournamentsThumbnailController-BtNMIASP.js → CasinoTournamentsThumbnailController-1nfp9czM.js} +4 -4
  5. package/components/{CasinoTournamentsThumbnailController-CIFNqXkR.cjs → CasinoTournamentsThumbnailController-CLlsgHiS.cjs} +1 -1
  6. package/components/{CasinoTournamentsThumbnailController-C97WOO_o.js → CasinoTournamentsThumbnailController-DupHXpvD.js} +4 -4
  7. package/components/{CasinoTournamentsThumbnailDuration-DA7A_yuE.js → CasinoTournamentsThumbnailDuration-B1dTex-W.js} +38 -38
  8. package/components/{CasinoTournamentsThumbnailDuration-DIMiFY37.cjs → CasinoTournamentsThumbnailDuration-C7QQvMiB.cjs} +1 -1
  9. package/components/{CasinoTournamentsThumbnailDuration-CVikthfr.js → CasinoTournamentsThumbnailDuration-D0D8el4I.js} +38 -38
  10. package/components/{CasinoTournamentsThumbnailGamesSlider-BNG7JJ70.cjs → CasinoTournamentsThumbnailGamesSlider-Cn8utb6L.cjs} +1 -1
  11. package/components/{CasinoTournamentsThumbnailGamesSlider-PPr8Z7Aq.js → CasinoTournamentsThumbnailGamesSlider-D1BF0aLn.js} +1 -1
  12. package/components/{CasinoTournamentsThumbnailGamesSlider-zl6euXPu.js → CasinoTournamentsThumbnailGamesSlider-D4MGPHIT.js} +1 -1
  13. package/components/{CasinoTournamentsThumbnailPrizes-AcuQqBlk.js → CasinoTournamentsThumbnailPrizes-BWeypuuc.js} +1 -1
  14. package/components/{CasinoTournamentsThumbnailPrizes-Dz_b5TnK.js → CasinoTournamentsThumbnailPrizes-BeH7rivE.js} +1 -1
  15. package/components/{CasinoTournamentsThumbnailPrizes-CkuPAMbK.cjs → CasinoTournamentsThumbnailPrizes-D_gmITmO.cjs} +1 -1
  16. package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
  17. package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
  18. package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/{index-97d17652-Ce2P8K1l.js → index-97d17652-B6BYeRne.js} +170 -176
  21. package/stencil/index-97d17652-BOr4KAqq.js +558 -0
  22. package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
  23. package/stencil/index-b2193545-BB6id_PQ.cjs +1 -0
  24. package/stencil/index-b2193545-Dg04r8Mf.js +519 -0
  25. package/stencil/index-b2193545-oPMLiBVn.js +503 -0
  26. package/stencil/{ui-image-DPF2VUSh.js → ui-image-BiEqrTjD.js} +1 -1
  27. package/stencil/{ui-image-B-ffqvMi.js → ui-image-DyN7Fe9v.js} +1 -1
  28. package/stencil/{ui-image-YrA8NUbD.cjs → ui-image-GKGnzjWQ.cjs} +1 -1
  29. package/stencil/{ui-image-b7b48fe5-CEPR_2Zl.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  30. package/stencil/{ui-image-b7b48fe5-DdUCzkcr.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  31. package/stencil/{ui-image-b7b48fe5-CynWE8qT.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  32. package/stencil/{ui-image_2-Do1rIyeJ.js → ui-image_2-CmVho0dS.js} +2 -2
  33. package/stencil/{ui-image_2-C0sJC5CL.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
  34. package/stencil/{ui-image_2-N1zHirfP.js → ui-image_2-Daq38JGa.js} +2 -2
  35. package/stencil/{ui-skeleton-D8QGodCK.js → ui-skeleton-CCeXOW4G.js} +2 -2
  36. package/stencil/{ui-skeleton-FgDBSZBf.cjs → ui-skeleton-CImpq9cv.cjs} +1 -1
  37. package/stencil/{ui-skeleton-CfNwtLVl.js → ui-skeleton-DGlqF493.js} +2 -2
  38. package/stencil/{ui-skeleton-ed169f8f-BwpJu25a.cjs → ui-skeleton-ed169f8f-B7StGL8M.cjs} +1 -1
  39. package/stencil/{ui-skeleton-ed169f8f-DaSOpH4g.js → ui-skeleton-ed169f8f-CLXtOZ1A.js} +1 -1
  40. package/stencil/{ui-skeleton-ed169f8f-B9Q0WmRZ.js → ui-skeleton-ed169f8f-Dc_jq3n7.js} +1 -1
  41. package/stencil/index-97d17652-BeQGJyxy.js +0 -532
  42. package/stencil/index-97d17652-QrAXVnlo.cjs +0 -1
  43. package/stencil/index-b2193545-Cwb6Y-jS.js +0 -493
  44. package/stencil/index-b2193545-K2OnpxTQ.js +0 -509
  45. package/stencil/index-b2193545-bAuKWs0t.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { $ as ee, a as be, b as fe, S as he, i as pe, s as ke, f as h, c as ye, n as ae, d as A, e as m, g as v, h as c, j as p, k as J, l as Se, o as Ce, r as ie, m as R, p as $, q as X, t as w, u as _e, v as Ae, w as te, x as Y, y as ve, z as Te, A as we, B as Me, C as Je, D as Re } from "./CasinoTournamentsThumbnailController-C97WOO_o.js";
2
- import "../stencil/ui-skeleton-CfNwtLVl.js";
3
- import "../stencil/ui-image-DPF2VUSh.js";
1
+ import { $ as ee, a as be, b as fe, S as he, i as pe, s as ke, f as h, c as ye, n as ae, d as A, e as m, g as v, h as c, j as p, k as J, l as Se, o as Ce, r as ie, m as R, p as $, q as X, t as w, u as _e, v as Ae, w as te, x as Y, y as ve, z as Te, A as we, B as Me, C as Je, D as Re } from "./CasinoTournamentsThumbnailController-DupHXpvD.js";
2
+ import "../stencil/ui-skeleton-DGlqF493.js";
3
+ import "../stencil/ui-image-BiEqrTjD.js";
4
4
  function De({ withLocale: i, translations: e }) {
5
5
  ee.subscribe((t) => {
6
6
  t == null && (be.set(e), ee.set(i));
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-CIFNqXkR.cjs");require("../stencil/ui-skeleton-FgDBSZBf.cjs");require("../stencil/ui-image-YrA8NUbD.cjs");function ee({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function te(a){e.$locale.set(a)}const G={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",preciseNumberOfBets:"precise number of bets",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görmek için",here:"tıklayın",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Başlangıç saati:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Çevrim",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function ie(a){e.append_styles(a,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(r,l){e.insert(r,t,l),e.insert(r,i,l),e.insert(r,s,l)},d(r){r&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,r,l,u,d,m,b,k,y=a[15]("scoreCriteria")+"",j,B,S,N,M,J=a[15](a[9]==="minBetCount"?"minbet":a[9])+"",C,R,A,D,P,p,v,I=a[15]("seegames")+"",T,z,_,x=a[15]("here")+"",O,w,F,W,h=a[0]&&V(a),f=a[6]=="true"&&H(a);function L(o,c){return o[3]?ne:ae}let E=L(a),n=E(a),g=a[2]&&Z(a);return{c(){h&&h.c(),t=e.space(),f&&f.c(),i=e.space(),n.c(),s=e.space(),r=e.element("div"),l=e.element("div"),u=e.text(a[1]),d=e.space(),g&&g.c(),m=e.space(),b=e.element("div"),k=e.element("p"),j=e.text(y),B=e.text(`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-CLlsgHiS.cjs");require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function ee({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function te(a){e.$locale.set(a)}const G={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",preciseNumberOfBets:"precise number of bets",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görmek için",here:"tıklayın",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Başlangıç saati:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Çevrim",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function ie(a){e.append_styles(a,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(r,l){e.insert(r,t,l),e.insert(r,i,l),e.insert(r,s,l)},d(r){r&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,r,l,u,d,m,b,k,y=a[15]("scoreCriteria")+"",j,B,S,N,M,J=a[15](a[9]==="minBetCount"?"minbet":a[9])+"",C,R,A,D,P,p,v,I=a[15]("seegames")+"",T,z,_,x=a[15]("here")+"",O,w,F,W,h=a[0]&&V(a),f=a[6]=="true"&&H(a);function L(o,c){return o[3]?ne:ae}let E=L(a),n=E(a),g=a[2]&&Z(a);return{c(){h&&h.c(),t=e.space(),f&&f.c(),i=e.space(),n.c(),s=e.space(),r=e.element("div"),l=e.element("div"),u=e.text(a[1]),d=e.space(),g&&g.c(),m=e.space(),b=e.element("div"),k=e.element("p"),j=e.text(y),B=e.text(`:
2
2
  `),S=e.element("span"),N=e.text(a[13]),M=e.text(`
3
3
  (`),C=e.text(J),R=e.space(),A=e.text(a[5]),D=e.text(")"),P=e.space(),p=e.element("div"),v=e.element("p"),T=e.text(I),z=e.space(),_=e.element("a"),O=e.text(x),e.attr(l,"class","Title"),e.attr(l,"part","Title"),e.attr(S,"part","ScoreCriteriaSpan"),e.attr(k,"part","ScoreCriteriaP"),e.attr(b,"class","ScoreCriteria"),e.attr(b,"part","ScoreCriteria"),e.attr(_,"part","GamesAnchor"),e.attr(_,"href",a[7]),e.attr(_,"target",w=a[8]==="true"?"_self":"_blank"),e.attr(v,"part","GamesP"),e.attr(p,"class","Games"),e.attr(p,"part","Games"),e.attr(r,"class","Details"),e.attr(r,"part","Details")},m(o,c){h&&h.m(o,c),e.insert(o,t,c),f&&f.m(o,c),e.insert(o,i,c),n.m(o,c),e.insert(o,s,c),e.insert(o,r,c),e.append(r,l),e.append(l,u),e.append(r,d),g&&g.m(r,null),e.append(r,m),e.append(r,b),e.append(b,k),e.append(k,j),e.append(k,B),e.append(k,S),e.append(S,N),e.append(k,M),e.append(k,C),e.append(k,R),e.append(k,A),e.append(k,D),e.append(r,P),e.append(r,p),e.append(p,v),e.append(v,T),e.append(v,z),e.append(v,_),e.append(_,O),F||(W=[e.listen(l,"click",a[20]),e.action_destroyer(a[18].call(null,S)),e.listen(_,"click",a[19])],F=!0)},p(o,c){o[0]?h?h.p(o,c):(h=V(o),h.c(),h.m(t.parentNode,t)):h&&(h.d(1),h=null),o[6]=="true"?f?f.p(o,c):(f=H(o),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null),E===(E=L(o))&&n?n.p(o,c):(n.d(1),n=E(o),n&&(n.c(),n.m(s.parentNode,s))),c[0]&2&&e.set_data(u,o[1]),o[2]?g?g.p(o,c):(g=Z(o),g.c(),g.m(r,m)):g&&(g.d(1),g=null),c[0]&32768&&y!==(y=o[15]("scoreCriteria")+"")&&e.set_data(j,y),c[0]&8192&&e.set_data(N,o[13]),c[0]&33280&&J!==(J=o[15](o[9]==="minBetCount"?"minbet":o[9])+"")&&e.set_data(C,J),c[0]&32&&e.set_data(A,o[5]),c[0]&32768&&I!==(I=o[15]("seegames")+"")&&e.set_data(T,I),c[0]&32768&&x!==(x=o[15]("here")+"")&&e.set_data(O,x),c[0]&128&&e.attr(_,"href",o[7]),c[0]&256&&w!==(w=o[8]==="true"?"_self":"_blank")&&e.attr(_,"target",w)},d(o){o&&(e.detach(t),e.detach(i),e.detach(s),e.detach(r)),h&&h.d(o),f&&f.d(o),n.d(o),g&&g.d(),F=!1,e.run_all(W)}}}function V(a){let t,i,s,r,l,u;return{c(){t=e.element("div"),i=e.text(a[12]),e.attr(t,"class",s="Status "+a[14]),e.attr(t,"part",r="Status "+a[14])},m(d,m){e.insert(d,t,m),e.append(t,i),l||(u=e.action_destroyer(a[17].call(null,t)),l=!0)},p(d,m){m[0]&4096&&e.set_data(i,d[12]),m[0]&16384&&s!==(s="Status "+d[14])&&e.attr(t,"class",s),m[0]&16384&&r!==(r="Status "+d[14])&&e.attr(t,"part",r)},d(d){d&&e.detach(t),l=!1,u()}}}function H(a){let t,i=a[4]&&Y(a);return{c(){i&&i.c(),t=e.empty()},m(s,r){i&&i.m(s,r),e.insert(s,t,r)},p(s,r){s[4]?i?i.p(s,r):(i=Y(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(s){s&&e.detach(t),i&&i.d(s)}}}function Y(a){let t,i=a[15]("enrolled")+"",s;return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(r,l){e.insert(r,t,l),e.append(t,s)},p(r,l){l[0]&32768&&i!==(i=r[15]("enrolled")+"")&&e.set_data(s,i)},d(r){r&&e.detach(t)}}}function ae(a){let t,i,s,r,l,u,d;return{c(){t=e.element("div"),i=e.element("ui-image"),e.src_url_equal(i.src,s="https://i.stack.imgur.com/y9DpT.jpg")||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",r="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,b){e.insert(m,t,b),e.append(t,i),u||(d=[e.action_destroyer(a[17].call(null,t)),e.listen(t,"click",a[20])],u=!0)},p(m,b){b[0]&1&&r!==(r="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",r),b[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),u=!1,e.run_all(d)}}}function ne(a){let t,i,s,r,l,u,d;return{c(){t=e.element("div"),i=e.element("ui-image"),e.set_custom_element_data(i,"class","UIImage"),e.src_url_equal(i.src,s=a[3])||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",r="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,b){e.insert(m,t,b),e.append(t,i),u||(d=[e.action_destroyer(a[17].call(null,t)),e.listen(t,"click",a[20])],u=!0)},p(m,b){b[0]&8&&!e.src_url_equal(i.src,s=m[3])&&e.set_custom_element_data(i,"src",s),b[0]&1&&r!==(r="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",r),b[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),u=!1,e.run_all(d)}}}function Z(a){let t,i,s,r,l;return{c(){t=e.element("div"),i=e.text(a[11]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(u,d){e.insert(u,t,d),e.append(t,i),r||(l=e.action_destroyer(s=a[16].call(null,t,a[2])),r=!0)},p(u,d){d[0]&2048&&e.set_data(i,u[11]),s&&e.is_function(s.update)&&d[0]&4&&s.update.call(null,u[2])},d(u){u&&e.detach(t),r=!1,l()}}}function re(a){let t,i,s,r=a[1]==="undefined"&&q(),l=a[1]!=="undefined"&&K(a);return{c(){t=e.element("div"),r&&r.c(),i=e.space(),l&&l.c(),e.attr(t,"class",s=`Thumbnail ${a[1]==="undefined"?"Loading":""}`),e.attr(t,"part","Thumbnail")},m(u,d){e.insert(u,t,d),r&&r.m(t,null),e.append(t,i),l&&l.m(t,null),a[30](t)},p(u,d){u[1]==="undefined"?r||(r=q(),r.c(),r.m(t,i)):r&&(r.d(1),r=null),u[1]!=="undefined"?l?l.p(u,d):(l=K(u),l.c(),l.m(t,null)):l&&(l.d(1),l=null),d[0]&2&&s!==(s=`Thumbnail ${u[1]==="undefined"?"Loading":""}`)&&e.attr(t,"class",s)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),r&&r.d(),l&&l.d(),a[30](null)}}}function se(a,t,i){let s;e.component_subscribe(a,e.$format,n=>i(15,s=n));let{userid:r=""}=t,{title:l=""}=t,{startdate:u=""}=t,{status:d=""}=t,{tourid:m=""}=t,{thumbnail:b=""}=t,{userenrolled:k=""}=t,{scorecriteria:y=""}=t,{minbetcount:j=""}=t,{showenrolled:B="false"}=t,{detailsevent:S=""}=t,{gameurl:N=""}=t,{lang:M="en"}=t,{keepbrowsercontext:J="false"}=t,{clientstyling:C=""}=t,{clientstylingurl:R=""}=t,{translationurl:A=""}=t,{mbsource:D}=t,{betcountmode:P="minbet"}=t,p,v,I="",T="",z="",_="";ee({withLocale:"en",translations:{}});const x=()=>{fetch(A).then(n=>n.json()).then(n=>{Object.keys(n).forEach(g=>{U(g,n[g])}),u&&L()}).catch(n=>{console.log(n)})};Object.keys(G).forEach(n=>{U(n,G[n])});const O=n=>{n.data&&n.data.type==`TournamentStatus_${m}`&&i(0,d=n.data.status)},w=()=>{const n={month:"long"};let g=new Date(u),o=new Intl.DateTimeFormat("en",n).format(g),c=g.getDate(),X=g.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const $=()=>s(d==="Unstarted"?"startingAt":"startedAt");i(11,I=`${c} `+s(`${o}`)+", "+$()+` ${X}`)},F=()=>{d=="Unstarted"&&(i(12,T=s("scheduled")),i(14,_="StatusUnstarted")),d=="Running"&&(i(12,T=s("ongoing")),i(14,_="StatusRunning")),(d=="Closed"||d=="Closing")&&i(12,T=s("finished")),d=="Closed"&&i(14,_="StatusClosed"),d=="Closing"&&i(14,_="StatusClosing")},W=()=>{if(!y||y.length<=1){i(13,z=y);return}i(13,z=s(y.charAt(0).toLowerCase()+y.slice(1)))},h=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:m},window.location.href)},f=()=>{S&&window.postMessage({type:S,tournamentId:m,showLeaderboard:!0},window.location.href)};e.onMount(()=>(setTimeout(()=>L(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));const L=()=>{te(M),W(),F(),u&&w()};function E(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,i(10,p)})}return a.$$set=n=>{"userid"in n&&i(21,r=n.userid),"title"in n&&i(1,l=n.title),"startdate"in n&&i(2,u=n.startdate),"status"in n&&i(0,d=n.status),"tourid"in n&&i(22,m=n.tourid),"thumbnail"in n&&i(3,b=n.thumbnail),"userenrolled"in n&&i(4,k=n.userenrolled),"scorecriteria"in n&&i(23,y=n.scorecriteria),"minbetcount"in n&&i(5,j=n.minbetcount),"showenrolled"in n&&i(6,B=n.showenrolled),"detailsevent"in n&&i(24,S=n.detailsevent),"gameurl"in n&&i(7,N=n.gameurl),"lang"in n&&i(25,M=n.lang),"keepbrowsercontext"in n&&i(8,J=n.keepbrowsercontext),"clientstyling"in n&&i(26,C=n.clientstyling),"clientstylingurl"in n&&i(27,R=n.clientstylingurl),"translationurl"in n&&i(28,A=n.translationurl),"mbsource"in n&&i(29,D=n.mbsource),"betcountmode"in n&&i(9,P=n.betcountmode)},a.$$.update=()=>{a.$$.dirty[0]&67109888&&C&&p&&e.setClientStyling(p,C),a.$$.dirty[0]&134218752&&R&&p&&e.setClientStylingURL(p,R),a.$$.dirty[0]&536871936&&D&&p&&e.setStreamStyling(p,`${D}.Style`,v),a.$$.dirty[0]&268435456&&A&&x(),a.$$.dirty[0]&1&&d&&F(),a.$$.dirty[0]&33554434&&l&&M&&L(),a.$$.dirty[0]&4&&u&&w(),a.$$.dirty[0]&8388608&&y&&W()},[d,l,u,b,k,j,B,N,J,P,p,I,T,z,_,s,w,F,W,h,f,r,m,y,S,M,C,R,A,D,E]}class Q extends e.SvelteComponent{constructor(t){super(),e.init(this,t,se,re,e.safe_not_equal,{userid:21,title:1,startdate:2,status:0,tourid:22,thumbnail:3,userenrolled:4,scorecriteria:23,minbetcount:5,showenrolled:6,detailsevent:24,gameurl:7,lang:25,keepbrowsercontext:8,clientstyling:26,clientstylingurl:27,translationurl:28,mbsource:29,betcountmode:9},ie,[-1,-1])}get userid(){return this.$$.ctx[21]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[22]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get detailsevent(){return this.$$.ctx[24]}set detailsevent(t){this.$$set({detailsevent:t}),e.flush()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[25]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[28]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[29]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get betcountmode(){return this.$$.ctx[9]}set betcountmode(t){this.$$set({betcountmode:t}),e.flush()}}e.create_custom_element(Q,{userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},betcountmode:{}},[],[],!0);exports.default=Q;
@@ -1,6 +1,6 @@
1
- import { $ as ee, a as be, b as fe, S as he, i as pe, f as h, s as ke, c as ye, d as Se, n as ae, e as A, g as m, h as v, j as c, k as p, l as J, m as Ce, o as _e, r as ie, p as R, q as $, t as X, u as w, v as Ae, w as ve, x as te, y as Y, z as Te, A as we, B as Me, C as Je, D as Re } from "./CasinoTournamentsThumbnailController-BtNMIASP.js";
2
- import "../stencil/ui-skeleton-D8QGodCK.js";
3
- import "../stencil/ui-image-B-ffqvMi.js";
1
+ import { $ as ee, a as be, b as fe, S as he, i as pe, f as h, s as ke, c as ye, d as Se, n as ae, e as A, g as m, h as v, j as c, k as p, l as J, m as Ce, o as _e, r as ie, p as R, q as $, t as X, u as w, v as Ae, w as ve, x as te, y as Y, z as Te, A as we, B as Me, C as Je, D as Re } from "./CasinoTournamentsThumbnailController-1nfp9czM.js";
2
+ import "../stencil/ui-skeleton-CCeXOW4G.js";
3
+ import "../stencil/ui-image-DyN7Fe9v.js";
4
4
  function De({ withLocale: i, translations: e }) {
5
5
  ee.subscribe((t) => {
6
6
  t == null && (be.set(e), ee.set(i));
@@ -4444,7 +4444,7 @@ if (typeof window < "u") {
4444
4444
  }
4445
4445
  };
4446
4446
  };
4447
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-tMp1UZfe.js").then(({ default: t }) => {
4447
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-dHgrfhc5.js").then(({ default: t }) => {
4448
4448
  !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
4449
4449
  });
4450
4450
  }
@@ -4460,7 +4460,7 @@ if (typeof window < "u") {
4460
4460
  }
4461
4461
  };
4462
4462
  };
4463
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-CVikthfr.js").then(({ default: t }) => {
4463
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-D0D8el4I.js").then(({ default: t }) => {
4464
4464
  !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
4465
4465
  "casino-tournaments-thumbnail-duration",
4466
4466
  t.element
@@ -4479,7 +4479,7 @@ if (typeof window < "u") {
4479
4479
  }
4480
4480
  };
4481
4481
  };
4482
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-Dz_b5TnK.js").then(({ default: t }) => {
4482
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BeH7rivE.js").then(({ default: t }) => {
4483
4483
  !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
4484
4484
  });
4485
4485
  }
@@ -4495,7 +4495,7 @@ if (typeof window < "u") {
4495
4495
  }
4496
4496
  };
4497
4497
  };
4498
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-zl6euXPu.js").then(
4498
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-D4MGPHIT.js").then(
4499
4499
  ({ default: t }) => {
4500
4500
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
4501
4501
  "casino-tournaments-thumbnail-games-slider",
@@ -15,4 +15,4 @@ PERFORMANCE OF THIS SOFTWARE.
15
15
  `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
16
16
  `):"",this.name="UnsubscriptionError",this.errors=r}});function xt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var qe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=vt(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(b){t={error:b}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(V(h))try{h()}catch(b){o=b instanceof ft?b.errors:[b]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var c=vt(f),y=c.next();!y.done;y=c.next()){var p=y.value;try{sr(p)}catch(b){o=o!=null?o:[],b instanceof ft?o=wt(wt([],Et(o)),Et(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{y&&!y.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}if(o)throw new ft(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)sr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&xt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&xt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Vr=qe.EMPTY;function Xr(e){return e instanceof qe||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function sr(e){V(e)?e():e.unsubscribe()}var li={Promise:void 0},hi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,wt([e,t],Et(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function fi(e){hi.setTimeout(function(){throw e})}function ar(){}function Ue(e){e()}var Wr=function(e){Te(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Xr(r)&&r.add(n)):n.destination=mi,n}return t.create=function(r,n,i){return new St(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(qe),ci=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Fe(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Fe(n)}else Fe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Fe(r)}},e}(),St=function(e){Te(t,e);function t(r,n,i){var o=e.call(this)||this,s;return V(r)||!r?s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:s=r,o.destination=new ci(s),o}return t}(Wr);function Fe(e){fi(e)}function di(e){throw e}var mi={closed:!0,next:ar,error:di,complete:ar},pi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function bi(e){return e}function gi(e){return e.length===0?bi:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var ur=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=_i(t)?t:new St(t,r,n);return Ue(function(){var s=i,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=lr(r),new r(function(i,o){var s=new St({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[pi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return gi(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=lr(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function lr(e){var t;return(t=e!=null?e:li.Promise)!==null&&t!==void 0?t:Promise}function yi(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function _i(e){return e&&e instanceof Wr||yi(e)&&Xr(e)}var vi=$r(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Jr=function(e){Te(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new hr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new vi},t.prototype.next=function(r){var n=this;Ue(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=vt(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Ue(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ue(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Vr:(this.currentObservers=null,a.push(r),new qe(function(){n.currentObservers=null,xt(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new ur;return r.source=this,r},t.create=function(r,n){return new hr(r,n)},t}(ur),hr=function(e){Te(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Vr},t}(Jr),qr={now:function(){return(qr.delegate||Date).now()},delegate:void 0},Ei=function(e){Te(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=qr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=o?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=i.now(),l=0,h=1;h<o.length&&o[h]<=u;h+=2)l=h;l&&o.splice(0,l+1)}},t}(Jr);const fr=[],cr={},wi=(e,t=0)=>{if(fr.indexOf(e)==-1){const r=new Ei(t);cr[e]=r,fr.push(e)}return cr[e]},oe=[];function xi(e,t){return{subscribe:Ze(e,t).subscribe}}function Ze(e,t=C){let r;const n=new Set;function i(a){if(Mt(e,a)&&(e=a,r)){const u=!oe.length;for(const l of n)l[1](),oe.push(l,e);if(u){for(let l=0;l<oe.length;l+=2)oe[l][0](oe[l+1]);oe.length=0}}}function o(a){i(a(e))}function s(a,u=C){const l=[a,u];return n.add(l),n.size===1&&(r=t(i,o)||C),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function de(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return xi(r,(s,a)=>{let u=!1;const l=[];let h=0,f=C;const c=()=>{if(h)return;f();const p=t(n?l[0]:l,s,a);o?s(p):f=Q(p)?p:C},y=i.map((p,b)=>Mr(p,I=>{l[b]=I,h&=~(1<<b),u&&c()},()=>{h|=1<<b}));return u=!0,c(),function(){ee(y),f(),u=!1}})}function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ti=function(t){return Bi(t)&&!Hi(t)};function Bi(e){return!!e&&typeof e=="object"}function Hi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Oi(e)}var Ai=typeof Symbol=="function"&&Symbol.for,Pi=Ai?Symbol.for("react.element"):60103;function Oi(e){return e.$$typeof===Pi}function Ci(e){return Array.isArray(e)?[]:{}}function xe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?le(Ci(e),e,t):e}function Ii(e,t,r){return e.concat(t).map(function(n){return xe(n,r)})}function Li(e,t){if(!t.customMerge)return le;var r=t.customMerge(e);return typeof r=="function"?r:le}function Ni(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dr(e){return Object.keys(e).concat(Ni(e))}function Zr(e,t){try{return t in e}catch(r){return!1}}function Mi(e,t){return Zr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ri(e,t,r){var n={};return r.isMergeableObject(e)&&dr(e).forEach(function(i){n[i]=xe(e[i],r)}),dr(t).forEach(function(i){Mi(e,i)||(Zr(e,i)&&r.isMergeableObject(t[i])?n[i]=Li(i,r)(e[i],t[i],r):n[i]=xe(t[i],r))}),n}function le(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ii,r.isMergeableObject=r.isMergeableObject||Ti,r.cloneUnlessOtherwiseSpecified=xe;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Ri(e,t,r):xe(t,r)}le.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return le(n,i,r)},{})};var Fi=le,ki=Fi;const Di=Si(ki);var Tt=function(e,t){return Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Tt(e,t)};function Qe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var U=function(){return U=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},U.apply(this,arguments)};function Ui(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function ct(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function dt(e,t){var r=t&&t.cache?t.cache:Wi,n=t&&t.serializer?t.serializer:Vi,i=t&&t.strategy?t.strategy:zi;return i(e,{cache:r,serializer:n})}function ji(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Gi(e,t,r,n){var i=ji(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Qr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Yr(e,t,r,n,i){return r.bind(t,e,n,i)}function zi(e,t){var r=e.length===1?Gi:Qr;return Yr(e,this,r,t.cache.create(),t.serializer)}function $i(e,t){return Yr(e,this,Qr,t.cache.create(),t.serializer)}var Vi=function(){return JSON.stringify(arguments)},Xi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Wi={create:function(){return new Xi}},mt={variadic:$i},Ve=function(){return Ve=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ve.apply(this,arguments)};var _;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(_||(_={}));var S;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(S||(S={}));var he;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(he||(he={}));function mr(e){return e.type===S.literal}function Ji(e){return e.type===S.argument}function Kr(e){return e.type===S.number}function en(e){return e.type===S.date}function tn(e){return e.type===S.time}function rn(e){return e.type===S.select}function nn(e){return e.type===S.plural}function qi(e){return e.type===S.pound}function on(e){return e.type===S.tag}function sn(e){return!!(e&&typeof e=="object"&&e.type===he.number)}function Bt(e){return!!(e&&typeof e=="object"&&e.type===he.dateTime)}var an=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Zi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Qi(e){var t={};return e.replace(Zi,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var T=function(){return T=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},T.apply(this,arguments)};var Yi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ki(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Yi).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,h=u;l<h.length;l++){var f=h[l];if(f.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function eo(e){return e.replace(/^(.*?)-/,"")}var pr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,un=/^(@+)?(\+|#+)?[rs]?$/g,to=/(\*)(0+)|(#+)(0+)|(0+)/g,ln=/^(0+)$/;function br(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(un,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function hn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ro(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!ln.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function gr(e){var t={},r=hn(e);return r||t}function no(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=eo(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=T(T(T({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return T(T({},u),gr(l))},{}));continue;case"engineering":t=T(T(T({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return T(T({},u),gr(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(to,function(u,l,h,f,c,y){if(l)t.minimumIntegerDigits=h.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ln.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(pr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(pr,function(u,l,h,f,c,y){return h==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:c&&y?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+y.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=T(T({},t),br(o)));continue}if(un.test(i.stem)){t=T(T({},t),br(i.stem));continue}var s=hn(i.stem);s&&(t=T(T({},t),s));var a=ro(i.stem);a&&(t=T(T({},t),a))}return t}var ke={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function io(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=oo(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;s-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function oo(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=ke[n||""]||ke[r||""]||ke["".concat(r,"-001")]||ke["001"];return i[0]}var pt,so=new RegExp("^".concat(an.source,"*")),ao=new RegExp("".concat(an.source,"*$"));function v(e,t){return{start:e,end:t}}var uo=!!String.prototype.startsWith&&"_a".startsWith("a",1),lo=!!String.fromCodePoint,ho=!!Object.fromEntries,fo=!!String.prototype.codePointAt,co=!!String.prototype.trimStart,mo=!!String.prototype.trimEnd,po=!!Number.isSafeInteger,bo=po?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ht=!0;try{var go=cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ht=((pt=go.exec("a"))===null||pt===void 0?void 0:pt[0])==="a"}catch(e){Ht=!1}var yr=uo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},At=lo?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},_r=ho?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],a=o[1];r[s]=a}return r},fn=fo?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},yo=co?function(t){return t.trimStart()}:function(t){return t.replace(so,"")},_o=mo?function(t){return t.trimEnd()}:function(t){return t.replace(ao,"")};function cn(e,t){return new RegExp(e,t)}var Pt;if(Ht){var vr=cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pt=function(t,r){var n;vr.lastIndex=r;var i=vr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Pt=function(t,r){for(var n=[];;){var i=fn(t,r);if(i===void 0||dn(i)||xo(i))break;n.push(i),r+=i>=65536?2:1}return At.apply(void 0,n)};var vo=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:S.pound,location:v(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(_.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ot(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:S.literal,value:"<".concat(i,"/>"),location:v(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ot(this.char()))return this.error(_.INVALID_TAG,v(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(_.UNMATCHED_CLOSING_TAG,v(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:S.tag,value:i,children:s,location:v(n,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,v(a,this.clonePosition())))}else return this.error(_.UNCLOSED_TAG,v(n,this.clonePosition()))}else return this.error(_.INVALID_TAG,v(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=v(n,this.clonePosition());return{val:{type:S.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Eo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return At.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),At(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_.EMPTY_ARGUMENT,v(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(_.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:S.argument,value:i,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(_.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Pt(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=v(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,v(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=_o(f.val);if(c.length===0)return this.error(_.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));var y=v(h,this.clonePosition());l={style:c,styleLocation:y}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var b=v(i,this.clonePosition());if(l&&yr(l==null?void 0:l.style,"::",0)){var I=yo(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(I,l.styleLocation);return f.err?f:{val:{type:S.number,value:n,location:b,style:f.val},err:null}}else{if(I.length===0)return this.error(_.EXPECT_DATE_TIME_SKELETON,b);var J=I;this.locale&&(J=io(I,this.locale));var c={type:he.dateTime,pattern:J,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Qi(J):{}},k=a==="date"?S.date:S.time;return{val:{type:k,value:n,location:b,style:c},err:null}}}return{val:{type:a==="number"?S.number:a==="date"?S.date:S.time,value:n,location:b,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,v(P,Ve({},P)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),D=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),j=this.parseIdentifierIfPossible(),D=f.val}var G=this.tryParsePluralOrSelectOptions(t,a,r,j);if(G.err)return G;var p=this.tryParseArgumentClose(i);if(p.err)return p;var Y=v(i,this.clonePosition());return a==="select"?{val:{type:S.select,value:n,options:_r(G.val),location:Y},err:null}:{val:{type:S.plural,value:n,options:_r(G.val),offset:D,pluralType:a==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(_.INVALID_ARGUMENT_TYPE,v(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Ki(t)}catch(i){return this.error(_.INVALID_NUMBER_SKELETON,r)}return{val:{type:he.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?no(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=v(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(s=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var b=this.tryParseArgumentClose(y);if(b.err)return b;a.push([l,{value:p.val,location:v(y,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return a.length===0?this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR:_.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(_.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=v(i,this.clonePosition());return o?(s*=n,bo(s)?{val:s,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=fn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(yr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Ot(e){return e>=97&&e<=122||e>=65&&e<=90}function Eo(e){return Ot(e)||e===47}function wo(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function dn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function xo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ct(e){e.forEach(function(t){if(delete t.location,rn(t)||nn(t))for(var r in t.options)delete t.options[r].location,Ct(t.options[r].value);else Kr(t)&&sn(t.style)||(en(t)||tn(t))&&Bt(t.style)?delete t.style.location:on(t)&&Ct(t.children)})}function So(e,t){t===void 0&&(t={}),t=Ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new vo(e,t).parse();if(r.err){var n=SyntaxError(_[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ct(r.val),r.val}var fe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(fe||(fe={}));var Ye=function(e){Qe(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Er=function(e){Qe(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),fe.INVALID_VALUE,o)||this}return t}(Ye),To=function(e){Qe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),fe.INVALID_VALUE,i)||this}return t}(Ye),Bo=function(e){Qe(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),fe.MISSING_VALUE,n)||this}return t}(Ye),O;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(O||(O={}));function Ho(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==O.literal||r.type!==O.literal?t.push(r):n.value+=r.value,t},[])}function Ao(e){return typeof e=="function"}function je(e,t,r,n,i,o,s){if(e.length===1&&mr(e[0]))return[{type:O.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];if(mr(h)){a.push({type:O.literal,value:h.value});continue}if(qi(h)){typeof o=="number"&&a.push({type:O.literal,value:r.getNumberFormat(t).format(o)});continue}var f=h.value;if(!(i&&f in i))throw new Bo(f,s);var c=i[f];if(Ji(h)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?O.literal:O.object,value:c});continue}if(en(h)){var y=typeof h.style=="string"?n.date[h.style]:Bt(h.style)?h.style.parsedOptions:void 0;a.push({type:O.literal,value:r.getDateTimeFormat(t,y).format(c)});continue}if(tn(h)){var y=typeof h.style=="string"?n.time[h.style]:Bt(h.style)?h.style.parsedOptions:n.time.medium;a.push({type:O.literal,value:r.getDateTimeFormat(t,y).format(c)});continue}if(Kr(h)){var y=typeof h.style=="string"?n.number[h.style]:sn(h.style)?h.style.parsedOptions:void 0;y&&y.scale&&(c=c*(y.scale||1)),a.push({type:O.literal,value:r.getNumberFormat(t,y).format(c)});continue}if(on(h)){var p=h.children,b=h.value,I=i[b];if(!Ao(I))throw new To(b,"function",s);var J=je(p,t,r,n,i,o),k=I(J.map(function(D){return D.value}));Array.isArray(k)||(k=[k]),a.push.apply(a,k.map(function(D){return{type:typeof D=="string"?O.literal:O.object,value:D}}))}if(rn(h)){var P=h.options[c]||h.options.other;if(!P)throw new Er(h.value,c,Object.keys(h.options),s);a.push.apply(a,je(P.value,t,r,n,i));continue}if(nn(h)){var P=h.options["=".concat(c)];if(!P){if(!Intl.PluralRules)throw new Ye(`Intl.PluralRules is not available in this environment.
17
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
18
- `,fe.MISSING_INTL_API,s);var j=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));P=h.options[j]||h.options.other}if(!P)throw new Er(h.value,c,Object.keys(h.options),s);a.push.apply(a,je(P.value,t,r,n,i,c-(h.offset||0)));continue}}return Ho(a)}function Po(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Oo(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Po(e[n],t[n]),r},U({},e)):e}function bt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Co(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ct([void 0],r,!1)))},{cache:bt(e.number),strategy:mt.variadic}),getDateTimeFormat:dt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ct([void 0],r,!1)))},{cache:bt(e.dateTime),strategy:mt.variadic}),getPluralRules:dt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ct([void 0],r,!1)))},{cache:bt(e.pluralRules),strategy:mt.variadic})}}var Io=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(f,c){return!f.length||c.type!==O.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return je(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Ui(s,["formatters"]);this.ast=e.__parse(t,U(U({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Oo(e.formats,n),this.formatters=i&&i.formatters||Co(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=So,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Lo(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const q={},No=(e,t,r)=>r&&(t in q||(q[t]={}),e in q[t]||(q[t][e]=r),r),mn=(e,t)=>{if(t==null)return;if(t in q&&e in q[t])return q[t][e];const r=Ke(t);for(let n=0;n<r.length;n++){const i=r[n],o=Ro(i,e);if(o)return No(e,t,o)}};let Rt;const te=Ze({});function Mo(e){return Rt[e]||null}function pn(e){return e in Rt}function Ro(e,t){if(!pn(e))return null;const r=Mo(e);return Lo(r,t)}function Fo(e){if(e==null)return;const t=Ke(e);for(let r=0;r<t.length;r++){const n=t[r];if(pn(n))return n}}function Ft(e,...t){delete q[e],te.update(r=>(r[e]=Di.all([r[e]||{},...t]),r))}de([te],([e])=>Object.keys(e));te.subscribe(e=>Rt=e);const Ge={};function ko(e,t){Ge[e].delete(t),Ge[e].size===0&&delete Ge[e]}function bn(e){return Ge[e]}function Do(e){return Ke(e).map(t=>{const r=bn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function It(e){return e==null?!1:Ke(e).some(t=>{var r;return(r=bn(t))==null?void 0:r.size})}function Uo(e,t){return Promise.all(t.map(n=>(ko(e,n),n().then(i=>i.default||i)))).then(n=>Ft(e,...n))}const ve={};function gn(e){if(!It(e))return e in ve?ve[e]:Promise.resolve();const t=Do(e);return ve[e]=Promise.all(t.map(([r,n])=>Uo(r,n))).then(()=>{if(It(e))return gn(e);delete ve[e]}),ve[e]}const jo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Go={fallbackLocale:null,loadingDelay:200,formats:jo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},zo=Go;function ce(){return zo}const gt=Ze(!1);var $o=Object.defineProperty,Vo=Object.defineProperties,Xo=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,xr=(e,t,r)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qo=(e,t)=>{for(var r in t||(t={}))Wo.call(t,r)&&xr(e,r,t[r]);if(wr)for(var r of wr(t))Jo.call(t,r)&&xr(e,r,t[r]);return e},Zo=(e,t)=>Vo(e,Xo(t));let Lt;const Xe=Ze(null);function Sr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ke(e,t=ce().fallbackLocale){const r=Sr(e);return t?[...new Set([...r,...Sr(t)])]:r}function re(){return Lt!=null?Lt:void 0}Xe.subscribe(e=>{Lt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Qo=e=>{if(e&&Fo(e)&&It(e)){const{loadingDelay:t}=ce();let r;return typeof window!="undefined"&&re()!=null&&t?r=window.setTimeout(()=>gt.set(!0),t):gt.set(!0),gn(e).then(()=>{Xe.set(e)}).finally(()=>{clearTimeout(r),gt.set(!1)})}return Xe.set(e)},W=Zo(qo({},Xe),{set:Qo}),et=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Yo=Object.defineProperty,We=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,Tr=(e,t,r)=>t in e?Yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kt=(e,t)=>{for(var r in t||(t={}))yn.call(t,r)&&Tr(e,r,t[r]);if(We)for(var r of We(t))_n.call(t,r)&&Tr(e,r,t[r]);return e},me=(e,t)=>{var r={};for(var n in e)yn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&We)for(var n of We(e))t.indexOf(n)<0&&_n.call(e,n)&&(r[n]=e[n]);return r};const Se=(e,t)=>{const{formats:r}=ce();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ko=et(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Se("number",n)),new Intl.NumberFormat(r,i)}),es=et(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Se("date",n):Object.keys(i).length===0&&(i=Se("date","short")),new Intl.DateTimeFormat(r,i)}),ts=et(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Se("time",n):Object.keys(i).length===0&&(i=Se("time","short")),new Intl.DateTimeFormat(r,i)}),rs=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Ko(kt({locale:r},n))},ns=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return es(kt({locale:r},n))},is=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return ts(kt({locale:r},n))},os=et((e,t=re())=>new Io(e,t,ce().formats,{ignoreTag:ce().ignoreTag})),ss=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=re(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=mn(e,u);if(!h)h=(o=(i=(n=(r=ce()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=os(h,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},as=(e,t)=>is(t).format(e),us=(e,t)=>ns(t).format(e),ls=(e,t)=>rs(t).format(e),hs=(e,t=re())=>mn(e,t),vn=de([W,te],()=>ss);de([W],()=>as);de([W],()=>us);de([W],()=>ls);de([W,te],()=>hs);window.emWidgets={topic:wi};const Nt=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function fs({withLocale:e,translations:t}){W.subscribe(r=>{r==null&&(te.set(t),W.set(e))})}function Br(e,t){Ft(e,t)}function cs(e){W.set(e)}const Hr={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},ae="__WIDGET_GLOBAL_STYLE_CACHE__";function En(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function wn(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function xn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ds(e,t),r;window[ae]||(window[ae]={}),r=ms(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[ae][t]){const a=window[ae][t];a.refCount>1?a.refCount=a.refCount-1:delete window[ae][t]}o()};return r.unsubscribe=s,r}function ds(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function ms(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[ae];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const s=n.adoptedStyleSheets||[];s.includes(o)||(n.adoptedStyleSheets=[...s,o])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-B20MsTdM.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-DIMiFY37.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CkuPAMbK.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-BNG7JJ70.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function ps(e){kr(e,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function bs(e){let t,r,n,i,o,s,a,u=e[26]&&Ar(e);function l(p,b){if(!p[16])return vs;if(p[25]!="Closed"&&p[25]!="Closing")return _s;if(p[3]=="true")return ys}let h=l(e),f=h&&h(e),c=(e[19]||e[21])&&Cr(e),y=e[4]=="true"&&Ir(e);return{c(){u&&u.c(),t=R(),r=B("casino-tournaments-thumbnail-duration"),n=R(),i=B("div"),f&&f.c(),o=R(),c&&c.c(),s=R(),y&&y.c(),a=Je(),m(r,"clientstyling",e[11]),m(r,"clientstylingurl",e[12]),m(r,"translationurl",e[13]),m(r,"status",e[25]),m(r,"startdate",e[23]),m(r,"lang",e[8]),m(r,"mbsource",e[14]),m(r,"enddate",e[24]),m(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),g(i,"class","TournamentButtons"),g(i,"part","TournamentButtons")},m(p,b){u&&u.m(p,b),w(p,t,b),w(p,r,b),w(p,n,b),w(p,i,b),f&&f.m(i,null),w(p,o,b),c&&c.m(p,b),w(p,s,b),y&&y.m(p,b),w(p,a,b)},p(p,b){p[26]?u?u.p(p,b):(u=Ar(p),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),b[0]&2048&&m(r,"clientstyling",p[11]),b[0]&4096&&m(r,"clientstylingurl",p[12]),b[0]&8192&&m(r,"translationurl",p[13]),b[0]&33554432&&m(r,"status",p[25]),b[0]&8388608&&m(r,"startdate",p[23]),b[0]&256&&m(r,"lang",p[8]),b[0]&16384&&m(r,"mbsource",p[14]),b[0]&16777216&&m(r,"enddate",p[24]),h===(h=l(p))&&f?f.p(p,b):(f&&f.d(1),f=h&&h(p),f&&(f.c(),f.m(i,null))),p[19]||p[21]?c?c.p(p,b):(c=Cr(p),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null),p[4]=="true"?y?y.p(p,b):(y=Ir(p),y.c(),y.m(a.parentNode,a)):y&&(y.d(1),y=null)},d(p){p&&(E(t),E(r),E(n),E(i),E(o),E(s),E(a)),u&&u.d(p),f&&f.d(),c&&c.d(p),y&&y.d(p)}}}function gs(e){let t,r,n;return{c(){t=B("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',r=R(),n=B("div"),n.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',g(t,"class","TournamentPrizes"),g(t,"part","TournamentPrizes"),g(n,"class","TournamentButtons"),g(n,"part","TournamentButtons")},m(i,o){w(i,t,o),w(i,r,o),w(i,n,o)},p:C,d(i){i&&(E(t),E(r),E(n))}}}function Ar(e){let t,r,n,i;return{c(){t=B("casino-tournaments-thumbnail-prizes"),m(t,"tourid",e[26]),m(t,"clientstyling",e[11]),m(t,"clientstylingurl",e[12]),m(t,"mbsource",e[14]),m(t,"translationurl",e[13]),m(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(o,s){w(o,t,s),n||(i=Fr(r=e[39].call(null,t,e[26])),n=!0)},p(o,s){s[0]&67108864&&m(t,"tourid",o[26]),s[0]&2048&&m(t,"clientstyling",o[11]),s[0]&4096&&m(t,"clientstylingurl",o[12]),s[0]&16384&&m(t,"mbsource",o[14]),s[0]&8192&&m(t,"translationurl",o[13]),r&&Q(r.update)&&s[0]&67108864&&r.update.call(null,o[26])},d(o){o&&E(t),n=!1,i()}}}function ys(e){let t,r=e[34]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsLargeButton"),g(t,"part","DetailsLargeButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[37].bind(this,e[26]))&&e[37].bind(this,e[26]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&8&&r!==(r=e[34]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function _s(e){let t,r,n=e[3]=="true"&&Pr(e);function i(a,u){return a[28]?ws:Es}let o=i(e),s=o(e);return{c(){n&&n.c(),t=R(),s.c(),r=Je()},m(a,u){n&&n.m(a,u),w(a,t,u),s.m(a,u),w(a,r,u)},p(a,u){a[3]=="true"?n?n.p(a,u):(n=Pr(a),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o===(o=i(a))&&s?s.p(a,u):(s.d(1),s=o(a),s&&(s.c(),s.m(r.parentNode,r)))},d(a){a&&(E(t),E(r)),n&&n.d(a),s.d(a)}}}function vs(e){let t,r=e[34]("login")+"",n,i,o,s=e[34]("register")+"",a,u,l;return{c(){t=B("button"),n=F(r),i=R(),o=B("button"),a=F(s),g(t,"class","LoginButton"),g(t,"part","LoginButton"),g(o,"class","RegisterButton"),g(o,"part","RegisterButton")},m(h,f){w(h,t,f),H(t,n),w(h,i,f),w(h,o,f),H(o,a),u||(l=[Z(t,"click",e[35]),Z(o,"click",e[36])],u=!0)},p(h,f){f[1]&8&&r!==(r=h[34]("login")+"")&&X(n,r),f[1]&8&&s!==(s=h[34]("register")+"")&&X(a,s)},d(h){h&&(E(t),E(i),E(o)),u=!1,ee(l)}}}function Pr(e){let t,r=e[34]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsButton"),g(t,"part","DetailsButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[37].bind(this,e[26]))&&e[37].bind(this,e[26]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&8&&r!==(r=e[34]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function Es(e){let t,r,n,i,o;function s(l,h){return l[18]==!0?Ss:xs}let a=s(e),u=a(e);return{c(){t=B("button"),u.c(),g(t,"class",r="JoinButton "+(e[7]?"JoinButtonFullSize":"")),g(t,"part",n="JoinButton "+(e[7]?"JoinButtonFullSize":"")),t.disabled=e[19]},m(l,h){w(l,t,h),u.m(t,null),i||(o=Z(t,"click",e[50]),i=!0)},p(l,h){a===(a=s(l))&&u?u.p(l,h):(u.d(1),u=a(l),u&&(u.c(),u.m(t,null))),h[0]&128&&r!==(r="JoinButton "+(l[7]?"JoinButtonFullSize":""))&&g(t,"class",r),h[0]&128&&n!==(n="JoinButton "+(l[7]?"JoinButtonFullSize":""))&&g(t,"part",n),h[0]&524288&&(t.disabled=l[19])},d(l){l&&E(t),u.d(),i=!1,o()}}}function ws(e){let t,r=e[3]=="true"&&Or(e);return{c(){r&&r.c(),t=Je()},m(n,i){r&&r.m(n,i),w(n,t,i)},p(n,i){n[3]=="true"?r?r.p(n,i):(r=Or(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&E(t),r&&r.d(n)}}}function xs(e){let t,r=e[34]("join")+"",n,i,o,s,a,u,l,h;return{c(){t=B("span"),n=F(r),i=R(),o=K("svg"),s=K("defs"),a=K("style"),u=F(".a{fill:var(--emw--color-white, #FFFFFF);}"),l=K("g"),h=K("path"),g(t,"part","JoinButtonSpan"),g(h,"class","a"),g(h,"part","a JoinButtonSvgA"),g(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),g(h,"transform","translate(26 26) rotate(180)"),g(l,"transform","translate(26 26) rotate(180)"),g(o,"part","JoinButtonSvg"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","26"),g(o,"height","26"),g(o,"viewBox","0 0 26 26")},m(f,c){w(f,t,c),H(t,n),w(f,i,c),w(f,o,c),H(o,s),H(s,a),H(a,u),H(o,l),H(l,h)},p(f,c){c[1]&8&&r!==(r=f[34]("join")+"")&&X(n,r)},d(f){f&&(E(t),E(i),E(o))}}}function Ss(e){let t,r;return{c(){t=K("svg"),r=K("circle"),g(r,"cx","20"),g(r,"cy","20"),g(r,"r","18"),g(t,"class","spinner"),g(t,"part","spinner")},m(n,i){w(n,t,i),H(t,r)},p:C,d(n){n&&E(t)}}}function Or(e){let t,r=e[34]("enrolled")+"",n;return{c(){t=B("button"),n=F(r),g(t,"class","EnrolledButton"),g(t,"part","EnrolledButton"),t.disabled=!0},m(i,o){w(i,t,o),H(t,n)},p(i,o){o[1]&8&&r!==(r=i[34]("enrolled")+"")&&X(n,r)},d(i){i&&E(t)}}}function Cr(e){let t,r=e[34]("joinerror")+"",n,i,o;return{c(){t=B("span"),n=F(r),i=R(),o=F(e[20]),g(t,"class","ErrorText"),g(t,"part","ErrorText")},m(s,a){w(s,t,a),H(t,n),H(t,i),H(t,o)},p(s,a){a[1]&8&&r!==(r=s[34]("joinerror")+"")&&X(n,r),a[0]&1048576&&X(o,s[20])},d(s){s&&E(t)}}}function Ir(e){let t,r,n=e[17]&&Lr();return{c(){n&&n.c(),t=R(),r=B("casino-tournaments-thumbnail-games-slider"),m(r,"clientstyling",e[11]),m(r,"clientstylingurl",e[12]),m(r,"translationurl",e[13]),m(r,"tournamenturl",e[2]),m(r,"mbsource",e[14]),m(r,"lang",e[8]),m(r,"scrollby","2"),m(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(i,o){n&&n.m(i,o),w(i,t,o),w(i,r,o)},p(i,o){i[17]?n||(n=Lr(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[0]&2048&&m(r,"clientstyling",i[11]),o[0]&4096&&m(r,"clientstylingurl",i[12]),o[0]&8192&&m(r,"translationurl",i[13]),o[0]&4&&m(r,"tournamenturl",i[2]),o[0]&16384&&m(r,"mbsource",i[14]),o[0]&256&&m(r,"lang",i[8])},d(i){i&&(E(t),E(r)),n&&n.d(i)}}}function Lr(e){let t;return{c(){t=B("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',g(t,"class","TournamentsGamesSlider")},m(r,n){w(r,t,n)},d(r){r&&E(t)}}}function Ts(e){let t,r,n,i,o,s,a;function u(f,c){return f[17]?gs:bs}let l=u(e),h=l(e);return{c(){t=B("div"),r=B("div"),n=B("casino-tournaments-thumbnail"),i=R(),h.c(),m(n,"detailsevent",e[9]),m(n,"userid",e[1]),m(n,"title",e[22]),m(n,"status",e[25]),m(n,"startdate",e[23]),m(n,"tourid",e[26]),m(n,"scorecriteria",e[29]),m(n,"minbetcount",e[30]),m(n,"thumbnail",e[27]),m(n,"showenrolled",e[5]),m(n,"gameurl",e[32]),m(n,"betcountmode",e[0]),m(n,"mbsource",e[14]),m(n,"userenrolled",e[28]),m(n,"clientstyling",e[11]),m(n,"clientstylingurl",e[12]),m(n,"translationurl",e[13]),m(n,"lang",e[8]),m(n,"keepbrowsercontext",e[10]),m(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),g(r,"class",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[33]?"elementToFadeOut":"elementToFadeIn")),g(r,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[33]?"elementToFadeOut":"elementToFadeIn")+" "+(e[33]?"elementToFadeOut":"elementToFadeIn")),g(t,"class",a=`${e[17]?"Loading":""}`)},m(f,c){w(f,t,c),H(t,r),H(r,n),H(r,i),h.m(r,null),e[51](t)},p(f,c){c[0]&512&&m(n,"detailsevent",f[9]),c[0]&2&&m(n,"userid",f[1]),c[0]&4194304&&m(n,"title",f[22]),c[0]&33554432&&m(n,"status",f[25]),c[0]&8388608&&m(n,"startdate",f[23]),c[0]&67108864&&m(n,"tourid",f[26]),c[0]&536870912&&m(n,"scorecriteria",f[29]),c[0]&1073741824&&m(n,"minbetcount",f[30]),c[0]&134217728&&m(n,"thumbnail",f[27]),c[0]&32&&m(n,"showenrolled",f[5]),c[1]&2&&m(n,"gameurl",f[32]),c[0]&1&&m(n,"betcountmode",f[0]),c[0]&16384&&m(n,"mbsource",f[14]),c[0]&268435456&&m(n,"userenrolled",f[28]),c[0]&2048&&m(n,"clientstyling",f[11]),c[0]&4096&&m(n,"clientstylingurl",f[12]),c[0]&8192&&m(n,"translationurl",f[13]),c[0]&256&&m(n,"lang",f[8]),c[0]&1024&&m(n,"keepbrowsercontext",f[10]),l===(l=u(f))&&h?h.p(f,c):(h.d(1),h=l(f),h&&(h.c(),h.m(r,null))),c[0]&192|c[1]&4&&o!==(o="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"class",o),c[0]&192|c[1]&4&&s!==(s="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"part",s),c[0]&131072&&a!==(a=`${f[17]?"Loading":""}`)&&g(t,"class",a)},i:C,o:C,d(f){f&&E(t),h.d(),e[51](null)}}}function Bs(e,t,r){let n;Rr(e,vn,d=>r(34,n=d));let{session:i=""}=t,{userid:o=""}=t,{tournamenturl:s=""}=t,{touridx:a}=t,{endpoint:u=""}=t,{showdetails:l=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:c=""}=t,{fullsize:y=""}=t,{lang:p=""}=t,{loginevent:b=""}=t,{registerevent:I=""}=t,{detailsevent:J=""}=t,{loginurl:k=""}=t,{registerurl:P=""}=t,{currency:j=""}=t,{keepbrowsercontext:D="false"}=t,{clientstyling:G=""}=t,{clientstylingurl:Y=""}=t,{translationurl:Be=""}=t,{tournamentinfo:He}=t,{mbsource:Ae}=t,{tournamentid:tt}=t,{betcountmode:Pe="minBetCount"}=t,z,Tn,pe=!1,Oe="",be=!0,Dt=window.navigator.userAgent,Ce=!1,Ie=!1,Ut="There was an error while trying to join the tournament",rt=!1,nt,jt,Gt,ge,$,zt,it,$t,Vt,Xt=[],ot=[],Wt="#",Le=!1;fs({withLocale:"en",translations:{}});const Bn=()=>{fetch(Be).then(A=>A.json()).then(A=>{Object.keys(A).forEach(N=>{Br(N,A[N])})}).catch(A=>{console.log(A)})};Object.keys(Hr).forEach(d=>{Br(d,Hr[d])});const Jt=d=>{Hn(d),st(d),Qt(this,$)},qt=d=>{if(d.data&&d.data.type=="UserSessionID"&&(r(16,pe=!0),Oe=d.data.session,Yt(u)),d.data.type=="UpdateTournamentView"){let A=d.data.tournamentData;if($&&$!=A.id)return;Jt(A)}if(d.data&&d.data.type==`UpdateSingleTournament_${a}`){let A=d.data.tournamentData,N=a<4?a*100:Math.random()*300+300;r(33,Le=a==1),setTimeout(()=>{r(33,Le=!0),r(26,$=A.id),Jt(A)},N),setTimeout(()=>{r(33,Le=!1)},N+200)}},Hn=d=>{d.state!=ge&&(r(25,ge=d.state),window.postMessage({type:`TournamentStatus_${$}`,status:ge},window.location.href))},An=()=>{b&&(window.postMessage({type:b,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),k&&(window.location=k)},Pn=()=>{I&&(window.postMessage({type:I,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),P&&(window.location=P)},On=d=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:d,showLeaderboard:!0},window.location.href)},Zt=(d,A)=>Ne(this,null,function*(){var er;r(19,Ie=!1),r(21,rt=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:d},window.location.href),r(18,Ce=!0);let N=new URL(`${u}/v1/bonus/claim`),ne=new Headers,at={};N.searchParams.append("language",p),N.searchParams.append("platform",Nt(Dt)),ne.append("Content-Type","application/json"),ne.append("X-SessionID",Oe),A&&A.length>=1&&(at={language:p,bonusCode:A[0].code,currency:j,type:"tournament"});let ye={method:"PUT",headers:ne,body:JSON.stringify(at)};const Kt=()=>{r(18,Ce=!1),r(28,it=!0)},ut=L=>{r(18,Ce=!1),L&&r(20,Ut=L),r(19,Ie=!0)},_e=yield Ne(this,null,function*(){let L;try{L=yield fetch(N,ye),L=yield L.json()}catch(Ps){ut()}return L});if(_e)if(_e.success==!0)Kt();else if(_e.errorMessage.match("VersionMismatchException")){let L;L=yield fetch(`${u}/tournaments/${$}`,{headers:{"X-SessionID":i}}),L=yield L.json(),(er=L==null?void 0:L.item)!=null&&er.playerEnrolled?Kt():(ut(_e.errorMessage),r(21,rt=!0),r(19,Ie=!1))}else ut(_e.errorMessage)}),Qt=(d,A)=>{window.postMessage({type:`TournamentPrizes_${A}`,prizes:Xt},window.location.href)},st=d=>{d&&(r(22,nt=d.nameOrTitle||""),r(23,jt=d.startTime),r(24,Gt=d.endTime),r(25,ge=d.state),r(26,$=d.id),r(27,zt=d.thumbnail),r(28,it=d.playerEnrolled==="true"||d.playerEnrolled==!0||!1),r(29,$t=d.scoreCriteria),r(0,Pe=d.betCountMode||"minBetCount"),r(30,Vt=d[Pe]),Xt=d.prizes,r(31,ot=d.wallets||[]),r(32,Wt=d.termsUrl||"#"))},Yt=d=>{r(17,be=!0);const A=d?`${d}/v1/tournaments/${tt}`:s,N=new URL(A),ne=new Headers;N.searchParams.append("language",p),N.searchParams.append("platform",Nt(Dt)),pe&&ne.append("X-SessionID",Oe),fetch(N,{method:"GET",headers:ne}).then(ye=>ye.json()).then(ye=>{st(ye.item)}).finally(()=>{r(17,be=!1)})},Cn=()=>{r(16,pe=(i==null?void 0:i.length)>10),pe&&(Oe=i)},In=()=>{if(He){st(He);return}r(17,be=!0),Yt(u)};Dr(()=>(r(17,be=!nt),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",qt,!1),()=>{window.removeEventListener("message",qt)}));const Ln=()=>Zt($,ot);function Nn(d){ze[d?"unshift":"push"](()=>{z=d,r(15,z)})}return e.$$set=d=>{"session"in d&&r(40,i=d.session),"userid"in d&&r(1,o=d.userid),"tournamenturl"in d&&r(2,s=d.tournamenturl),"touridx"in d&&r(41,a=d.touridx),"endpoint"in d&&r(42,u=d.endpoint),"showdetails"in d&&r(3,l=d.showdetails),"showslider"in d&&r(4,h=d.showslider),"showenrolled"in d&&r(5,f=d.showenrolled),"maxwidth"in d&&r(6,c=d.maxwidth),"fullsize"in d&&r(7,y=d.fullsize),"lang"in d&&r(8,p=d.lang),"loginevent"in d&&r(43,b=d.loginevent),"registerevent"in d&&r(44,I=d.registerevent),"detailsevent"in d&&r(9,J=d.detailsevent),"loginurl"in d&&r(45,k=d.loginurl),"registerurl"in d&&r(46,P=d.registerurl),"currency"in d&&r(47,j=d.currency),"keepbrowsercontext"in d&&r(10,D=d.keepbrowsercontext),"clientstyling"in d&&r(11,G=d.clientstyling),"clientstylingurl"in d&&r(12,Y=d.clientstylingurl),"translationurl"in d&&r(13,Be=d.translationurl),"tournamentinfo"in d&&r(48,He=d.tournamentinfo),"mbsource"in d&&r(14,Ae=d.mbsource),"tournamentid"in d&&r(49,tt=d.tournamentid),"betcountmode"in d&&r(0,Pe=d.betcountmode)},e.$$.update=()=>{e.$$.dirty[0]&256&&p&&cs(p),e.$$.dirty[0]&8192&&Be&&Bn(),e.$$.dirty[1]&512&&i&&Cn(),e.$$.dirty[0]&260&&s&&p&&In(),e.$$.dirty[0]&34816&&G&&z&&En(z,G),e.$$.dirty[0]&36864&&Y&&z&&wn(z,Y),e.$$.dirty[0]&49152&&Ae&&z&&xn(z,`${Ae}.Style`,Tn)},[Pe,o,s,l,h,f,c,y,p,J,D,G,Y,Be,Ae,z,pe,be,Ce,Ie,Ut,rt,nt,jt,Gt,ge,$,zt,it,$t,Vt,ot,Wt,Le,n,An,Pn,On,Zt,Qt,i,a,u,b,I,k,P,j,He,tt,Ln,Nn]}class Sn extends zr{constructor(t){super(),Ur(this,t,Bs,Ts,Mt,{session:40,userid:1,tournamenturl:2,touridx:41,endpoint:42,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:43,registerevent:44,detailsevent:9,loginurl:45,registerurl:46,currency:47,keepbrowsercontext:10,clientstyling:11,clientstylingurl:12,translationurl:13,tournamentinfo:48,mbsource:14,tournamentid:49,betcountmode:0},ps,[-1,-1,-1])}get session(){return this.$$.ctx[40]}set session(t){this.$$set({session:t}),x()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),x()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),x()}get touridx(){return this.$$.ctx[41]}set touridx(t){this.$$set({touridx:t}),x()}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),x()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),x()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),x()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),x()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),x()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),x()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),x()}get loginevent(){return this.$$.ctx[43]}set loginevent(t){this.$$set({loginevent:t}),x()}get registerevent(){return this.$$.ctx[44]}set registerevent(t){this.$$set({registerevent:t}),x()}get detailsevent(){return this.$$.ctx[9]}set detailsevent(t){this.$$set({detailsevent:t}),x()}get loginurl(){return this.$$.ctx[45]}set loginurl(t){this.$$set({loginurl:t}),x()}get registerurl(){return this.$$.ctx[46]}set registerurl(t){this.$$set({registerurl:t}),x()}get currency(){return this.$$.ctx[47]}set currency(t){this.$$set({currency:t}),x()}get keepbrowsercontext(){return this.$$.ctx[10]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),x()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),x()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),x()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),x()}get tournamentinfo(){return this.$$.ctx[48]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),x()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),x()}get tournamentid(){return this.$$.ctx[49]}set tournamentid(t){this.$$set({tournamentid:t}),x()}get betcountmode(){return this.$$.ctx[0]}set betcountmode(t){this.$$set({betcountmode:t}),x()}}Gr(Sn,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{},betcountmode:{}},[],[],!0);const Hs=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=te;exports.$format=vn;exports.$locale=W;exports.CasinoTournamentsThumbnailController_ce=Hs;exports.SvelteComponent=zr;exports.action_destroyer=Fr;exports.addMessages=Ft;exports.add_iframe_resize_listener=Jn;exports.add_render_callback=$e;exports.append=H;exports.append_styles=kr;exports.attr=g;exports.binding_callbacks=ze;exports.component_subscribe=Rr;exports.create_custom_element=Gr;exports.destroy_each=$n;exports.detach=E;exports.element=B;exports.empty=Je;exports.ensure_array_like=ii;exports.flush=x;exports.getDevice=Nt;exports.init=Ur;exports.insert=w;exports.is_function=Q;exports.listen=Z;exports.noop=C;exports.onMount=Dr;exports.run_all=ee;exports.safe_not_equal=Mt;exports.setClientStyling=En;exports.setClientStylingURL=wn;exports.setStreamStyling=xn;exports.set_custom_element_data=m;exports.set_data=X;exports.set_style=Xn;exports.space=R;exports.src_url_equal=Un;exports.text=F;exports.toggle_class=qn;
18
+ `,fe.MISSING_INTL_API,s);var j=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));P=h.options[j]||h.options.other}if(!P)throw new Er(h.value,c,Object.keys(h.options),s);a.push.apply(a,je(P.value,t,r,n,i,c-(h.offset||0)));continue}}return Ho(a)}function Po(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Oo(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Po(e[n],t[n]),r},U({},e)):e}function bt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Co(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ct([void 0],r,!1)))},{cache:bt(e.number),strategy:mt.variadic}),getDateTimeFormat:dt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ct([void 0],r,!1)))},{cache:bt(e.dateTime),strategy:mt.variadic}),getPluralRules:dt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ct([void 0],r,!1)))},{cache:bt(e.pluralRules),strategy:mt.variadic})}}var Io=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(f,c){return!f.length||c.type!==O.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return je(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Ui(s,["formatters"]);this.ast=e.__parse(t,U(U({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Oo(e.formats,n),this.formatters=i&&i.formatters||Co(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=So,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Lo(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const q={},No=(e,t,r)=>r&&(t in q||(q[t]={}),e in q[t]||(q[t][e]=r),r),mn=(e,t)=>{if(t==null)return;if(t in q&&e in q[t])return q[t][e];const r=Ke(t);for(let n=0;n<r.length;n++){const i=r[n],o=Ro(i,e);if(o)return No(e,t,o)}};let Rt;const te=Ze({});function Mo(e){return Rt[e]||null}function pn(e){return e in Rt}function Ro(e,t){if(!pn(e))return null;const r=Mo(e);return Lo(r,t)}function Fo(e){if(e==null)return;const t=Ke(e);for(let r=0;r<t.length;r++){const n=t[r];if(pn(n))return n}}function Ft(e,...t){delete q[e],te.update(r=>(r[e]=Di.all([r[e]||{},...t]),r))}de([te],([e])=>Object.keys(e));te.subscribe(e=>Rt=e);const Ge={};function ko(e,t){Ge[e].delete(t),Ge[e].size===0&&delete Ge[e]}function bn(e){return Ge[e]}function Do(e){return Ke(e).map(t=>{const r=bn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function It(e){return e==null?!1:Ke(e).some(t=>{var r;return(r=bn(t))==null?void 0:r.size})}function Uo(e,t){return Promise.all(t.map(n=>(ko(e,n),n().then(i=>i.default||i)))).then(n=>Ft(e,...n))}const ve={};function gn(e){if(!It(e))return e in ve?ve[e]:Promise.resolve();const t=Do(e);return ve[e]=Promise.all(t.map(([r,n])=>Uo(r,n))).then(()=>{if(It(e))return gn(e);delete ve[e]}),ve[e]}const jo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Go={fallbackLocale:null,loadingDelay:200,formats:jo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},zo=Go;function ce(){return zo}const gt=Ze(!1);var $o=Object.defineProperty,Vo=Object.defineProperties,Xo=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,xr=(e,t,r)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qo=(e,t)=>{for(var r in t||(t={}))Wo.call(t,r)&&xr(e,r,t[r]);if(wr)for(var r of wr(t))Jo.call(t,r)&&xr(e,r,t[r]);return e},Zo=(e,t)=>Vo(e,Xo(t));let Lt;const Xe=Ze(null);function Sr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ke(e,t=ce().fallbackLocale){const r=Sr(e);return t?[...new Set([...r,...Sr(t)])]:r}function re(){return Lt!=null?Lt:void 0}Xe.subscribe(e=>{Lt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Qo=e=>{if(e&&Fo(e)&&It(e)){const{loadingDelay:t}=ce();let r;return typeof window!="undefined"&&re()!=null&&t?r=window.setTimeout(()=>gt.set(!0),t):gt.set(!0),gn(e).then(()=>{Xe.set(e)}).finally(()=>{clearTimeout(r),gt.set(!1)})}return Xe.set(e)},W=Zo(qo({},Xe),{set:Qo}),et=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Yo=Object.defineProperty,We=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,Tr=(e,t,r)=>t in e?Yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kt=(e,t)=>{for(var r in t||(t={}))yn.call(t,r)&&Tr(e,r,t[r]);if(We)for(var r of We(t))_n.call(t,r)&&Tr(e,r,t[r]);return e},me=(e,t)=>{var r={};for(var n in e)yn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&We)for(var n of We(e))t.indexOf(n)<0&&_n.call(e,n)&&(r[n]=e[n]);return r};const Se=(e,t)=>{const{formats:r}=ce();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ko=et(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Se("number",n)),new Intl.NumberFormat(r,i)}),es=et(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Se("date",n):Object.keys(i).length===0&&(i=Se("date","short")),new Intl.DateTimeFormat(r,i)}),ts=et(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Se("time",n):Object.keys(i).length===0&&(i=Se("time","short")),new Intl.DateTimeFormat(r,i)}),rs=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Ko(kt({locale:r},n))},ns=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return es(kt({locale:r},n))},is=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return ts(kt({locale:r},n))},os=et((e,t=re())=>new Io(e,t,ce().formats,{ignoreTag:ce().ignoreTag})),ss=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=re(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=mn(e,u);if(!h)h=(o=(i=(n=(r=ce()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=os(h,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},as=(e,t)=>is(t).format(e),us=(e,t)=>ns(t).format(e),ls=(e,t)=>rs(t).format(e),hs=(e,t=re())=>mn(e,t),vn=de([W,te],()=>ss);de([W],()=>as);de([W],()=>us);de([W],()=>ls);de([W,te],()=>hs);window.emWidgets={topic:wi};const Nt=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function fs({withLocale:e,translations:t}){W.subscribe(r=>{r==null&&(te.set(t),W.set(e))})}function Br(e,t){Ft(e,t)}function cs(e){W.set(e)}const Hr={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},ae="__WIDGET_GLOBAL_STYLE_CACHE__";function En(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function wn(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function xn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ds(e,t),r;window[ae]||(window[ae]={}),r=ms(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[ae][t]){const a=window[ae][t];a.refCount>1?a.refCount=a.refCount-1:delete window[ae][t]}o()};return r.unsubscribe=s,r}function ds(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function ms(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[ae];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const s=n.adoptedStyleSheets||[];s.includes(o)||(n.adoptedStyleSheets=[...s,o])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-Bm9rL34M.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-C7QQvMiB.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-D_gmITmO.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-Cn8utb6L.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function ps(e){kr(e,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function bs(e){let t,r,n,i,o,s,a,u=e[26]&&Ar(e);function l(p,b){if(!p[16])return vs;if(p[25]!="Closed"&&p[25]!="Closing")return _s;if(p[3]=="true")return ys}let h=l(e),f=h&&h(e),c=(e[19]||e[21])&&Cr(e),y=e[4]=="true"&&Ir(e);return{c(){u&&u.c(),t=R(),r=B("casino-tournaments-thumbnail-duration"),n=R(),i=B("div"),f&&f.c(),o=R(),c&&c.c(),s=R(),y&&y.c(),a=Je(),m(r,"clientstyling",e[11]),m(r,"clientstylingurl",e[12]),m(r,"translationurl",e[13]),m(r,"status",e[25]),m(r,"startdate",e[23]),m(r,"lang",e[8]),m(r,"mbsource",e[14]),m(r,"enddate",e[24]),m(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),g(i,"class","TournamentButtons"),g(i,"part","TournamentButtons")},m(p,b){u&&u.m(p,b),w(p,t,b),w(p,r,b),w(p,n,b),w(p,i,b),f&&f.m(i,null),w(p,o,b),c&&c.m(p,b),w(p,s,b),y&&y.m(p,b),w(p,a,b)},p(p,b){p[26]?u?u.p(p,b):(u=Ar(p),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),b[0]&2048&&m(r,"clientstyling",p[11]),b[0]&4096&&m(r,"clientstylingurl",p[12]),b[0]&8192&&m(r,"translationurl",p[13]),b[0]&33554432&&m(r,"status",p[25]),b[0]&8388608&&m(r,"startdate",p[23]),b[0]&256&&m(r,"lang",p[8]),b[0]&16384&&m(r,"mbsource",p[14]),b[0]&16777216&&m(r,"enddate",p[24]),h===(h=l(p))&&f?f.p(p,b):(f&&f.d(1),f=h&&h(p),f&&(f.c(),f.m(i,null))),p[19]||p[21]?c?c.p(p,b):(c=Cr(p),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null),p[4]=="true"?y?y.p(p,b):(y=Ir(p),y.c(),y.m(a.parentNode,a)):y&&(y.d(1),y=null)},d(p){p&&(E(t),E(r),E(n),E(i),E(o),E(s),E(a)),u&&u.d(p),f&&f.d(),c&&c.d(p),y&&y.d(p)}}}function gs(e){let t,r,n;return{c(){t=B("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',r=R(),n=B("div"),n.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',g(t,"class","TournamentPrizes"),g(t,"part","TournamentPrizes"),g(n,"class","TournamentButtons"),g(n,"part","TournamentButtons")},m(i,o){w(i,t,o),w(i,r,o),w(i,n,o)},p:C,d(i){i&&(E(t),E(r),E(n))}}}function Ar(e){let t,r,n,i;return{c(){t=B("casino-tournaments-thumbnail-prizes"),m(t,"tourid",e[26]),m(t,"clientstyling",e[11]),m(t,"clientstylingurl",e[12]),m(t,"mbsource",e[14]),m(t,"translationurl",e[13]),m(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(o,s){w(o,t,s),n||(i=Fr(r=e[39].call(null,t,e[26])),n=!0)},p(o,s){s[0]&67108864&&m(t,"tourid",o[26]),s[0]&2048&&m(t,"clientstyling",o[11]),s[0]&4096&&m(t,"clientstylingurl",o[12]),s[0]&16384&&m(t,"mbsource",o[14]),s[0]&8192&&m(t,"translationurl",o[13]),r&&Q(r.update)&&s[0]&67108864&&r.update.call(null,o[26])},d(o){o&&E(t),n=!1,i()}}}function ys(e){let t,r=e[34]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsLargeButton"),g(t,"part","DetailsLargeButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[37].bind(this,e[26]))&&e[37].bind(this,e[26]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&8&&r!==(r=e[34]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function _s(e){let t,r,n=e[3]=="true"&&Pr(e);function i(a,u){return a[28]?ws:Es}let o=i(e),s=o(e);return{c(){n&&n.c(),t=R(),s.c(),r=Je()},m(a,u){n&&n.m(a,u),w(a,t,u),s.m(a,u),w(a,r,u)},p(a,u){a[3]=="true"?n?n.p(a,u):(n=Pr(a),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o===(o=i(a))&&s?s.p(a,u):(s.d(1),s=o(a),s&&(s.c(),s.m(r.parentNode,r)))},d(a){a&&(E(t),E(r)),n&&n.d(a),s.d(a)}}}function vs(e){let t,r=e[34]("login")+"",n,i,o,s=e[34]("register")+"",a,u,l;return{c(){t=B("button"),n=F(r),i=R(),o=B("button"),a=F(s),g(t,"class","LoginButton"),g(t,"part","LoginButton"),g(o,"class","RegisterButton"),g(o,"part","RegisterButton")},m(h,f){w(h,t,f),H(t,n),w(h,i,f),w(h,o,f),H(o,a),u||(l=[Z(t,"click",e[35]),Z(o,"click",e[36])],u=!0)},p(h,f){f[1]&8&&r!==(r=h[34]("login")+"")&&X(n,r),f[1]&8&&s!==(s=h[34]("register")+"")&&X(a,s)},d(h){h&&(E(t),E(i),E(o)),u=!1,ee(l)}}}function Pr(e){let t,r=e[34]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsButton"),g(t,"part","DetailsButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[37].bind(this,e[26]))&&e[37].bind(this,e[26]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&8&&r!==(r=e[34]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function Es(e){let t,r,n,i,o;function s(l,h){return l[18]==!0?Ss:xs}let a=s(e),u=a(e);return{c(){t=B("button"),u.c(),g(t,"class",r="JoinButton "+(e[7]?"JoinButtonFullSize":"")),g(t,"part",n="JoinButton "+(e[7]?"JoinButtonFullSize":"")),t.disabled=e[19]},m(l,h){w(l,t,h),u.m(t,null),i||(o=Z(t,"click",e[50]),i=!0)},p(l,h){a===(a=s(l))&&u?u.p(l,h):(u.d(1),u=a(l),u&&(u.c(),u.m(t,null))),h[0]&128&&r!==(r="JoinButton "+(l[7]?"JoinButtonFullSize":""))&&g(t,"class",r),h[0]&128&&n!==(n="JoinButton "+(l[7]?"JoinButtonFullSize":""))&&g(t,"part",n),h[0]&524288&&(t.disabled=l[19])},d(l){l&&E(t),u.d(),i=!1,o()}}}function ws(e){let t,r=e[3]=="true"&&Or(e);return{c(){r&&r.c(),t=Je()},m(n,i){r&&r.m(n,i),w(n,t,i)},p(n,i){n[3]=="true"?r?r.p(n,i):(r=Or(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&E(t),r&&r.d(n)}}}function xs(e){let t,r=e[34]("join")+"",n,i,o,s,a,u,l,h;return{c(){t=B("span"),n=F(r),i=R(),o=K("svg"),s=K("defs"),a=K("style"),u=F(".a{fill:var(--emw--color-white, #FFFFFF);}"),l=K("g"),h=K("path"),g(t,"part","JoinButtonSpan"),g(h,"class","a"),g(h,"part","a JoinButtonSvgA"),g(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),g(h,"transform","translate(26 26) rotate(180)"),g(l,"transform","translate(26 26) rotate(180)"),g(o,"part","JoinButtonSvg"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","26"),g(o,"height","26"),g(o,"viewBox","0 0 26 26")},m(f,c){w(f,t,c),H(t,n),w(f,i,c),w(f,o,c),H(o,s),H(s,a),H(a,u),H(o,l),H(l,h)},p(f,c){c[1]&8&&r!==(r=f[34]("join")+"")&&X(n,r)},d(f){f&&(E(t),E(i),E(o))}}}function Ss(e){let t,r;return{c(){t=K("svg"),r=K("circle"),g(r,"cx","20"),g(r,"cy","20"),g(r,"r","18"),g(t,"class","spinner"),g(t,"part","spinner")},m(n,i){w(n,t,i),H(t,r)},p:C,d(n){n&&E(t)}}}function Or(e){let t,r=e[34]("enrolled")+"",n;return{c(){t=B("button"),n=F(r),g(t,"class","EnrolledButton"),g(t,"part","EnrolledButton"),t.disabled=!0},m(i,o){w(i,t,o),H(t,n)},p(i,o){o[1]&8&&r!==(r=i[34]("enrolled")+"")&&X(n,r)},d(i){i&&E(t)}}}function Cr(e){let t,r=e[34]("joinerror")+"",n,i,o;return{c(){t=B("span"),n=F(r),i=R(),o=F(e[20]),g(t,"class","ErrorText"),g(t,"part","ErrorText")},m(s,a){w(s,t,a),H(t,n),H(t,i),H(t,o)},p(s,a){a[1]&8&&r!==(r=s[34]("joinerror")+"")&&X(n,r),a[0]&1048576&&X(o,s[20])},d(s){s&&E(t)}}}function Ir(e){let t,r,n=e[17]&&Lr();return{c(){n&&n.c(),t=R(),r=B("casino-tournaments-thumbnail-games-slider"),m(r,"clientstyling",e[11]),m(r,"clientstylingurl",e[12]),m(r,"translationurl",e[13]),m(r,"tournamenturl",e[2]),m(r,"mbsource",e[14]),m(r,"lang",e[8]),m(r,"scrollby","2"),m(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(i,o){n&&n.m(i,o),w(i,t,o),w(i,r,o)},p(i,o){i[17]?n||(n=Lr(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[0]&2048&&m(r,"clientstyling",i[11]),o[0]&4096&&m(r,"clientstylingurl",i[12]),o[0]&8192&&m(r,"translationurl",i[13]),o[0]&4&&m(r,"tournamenturl",i[2]),o[0]&16384&&m(r,"mbsource",i[14]),o[0]&256&&m(r,"lang",i[8])},d(i){i&&(E(t),E(r)),n&&n.d(i)}}}function Lr(e){let t;return{c(){t=B("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',g(t,"class","TournamentsGamesSlider")},m(r,n){w(r,t,n)},d(r){r&&E(t)}}}function Ts(e){let t,r,n,i,o,s,a;function u(f,c){return f[17]?gs:bs}let l=u(e),h=l(e);return{c(){t=B("div"),r=B("div"),n=B("casino-tournaments-thumbnail"),i=R(),h.c(),m(n,"detailsevent",e[9]),m(n,"userid",e[1]),m(n,"title",e[22]),m(n,"status",e[25]),m(n,"startdate",e[23]),m(n,"tourid",e[26]),m(n,"scorecriteria",e[29]),m(n,"minbetcount",e[30]),m(n,"thumbnail",e[27]),m(n,"showenrolled",e[5]),m(n,"gameurl",e[32]),m(n,"betcountmode",e[0]),m(n,"mbsource",e[14]),m(n,"userenrolled",e[28]),m(n,"clientstyling",e[11]),m(n,"clientstylingurl",e[12]),m(n,"translationurl",e[13]),m(n,"lang",e[8]),m(n,"keepbrowsercontext",e[10]),m(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),g(r,"class",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[33]?"elementToFadeOut":"elementToFadeIn")),g(r,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[33]?"elementToFadeOut":"elementToFadeIn")+" "+(e[33]?"elementToFadeOut":"elementToFadeIn")),g(t,"class",a=`${e[17]?"Loading":""}`)},m(f,c){w(f,t,c),H(t,r),H(r,n),H(r,i),h.m(r,null),e[51](t)},p(f,c){c[0]&512&&m(n,"detailsevent",f[9]),c[0]&2&&m(n,"userid",f[1]),c[0]&4194304&&m(n,"title",f[22]),c[0]&33554432&&m(n,"status",f[25]),c[0]&8388608&&m(n,"startdate",f[23]),c[0]&67108864&&m(n,"tourid",f[26]),c[0]&536870912&&m(n,"scorecriteria",f[29]),c[0]&1073741824&&m(n,"minbetcount",f[30]),c[0]&134217728&&m(n,"thumbnail",f[27]),c[0]&32&&m(n,"showenrolled",f[5]),c[1]&2&&m(n,"gameurl",f[32]),c[0]&1&&m(n,"betcountmode",f[0]),c[0]&16384&&m(n,"mbsource",f[14]),c[0]&268435456&&m(n,"userenrolled",f[28]),c[0]&2048&&m(n,"clientstyling",f[11]),c[0]&4096&&m(n,"clientstylingurl",f[12]),c[0]&8192&&m(n,"translationurl",f[13]),c[0]&256&&m(n,"lang",f[8]),c[0]&1024&&m(n,"keepbrowsercontext",f[10]),l===(l=u(f))&&h?h.p(f,c):(h.d(1),h=l(f),h&&(h.c(),h.m(r,null))),c[0]&192|c[1]&4&&o!==(o="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"class",o),c[0]&192|c[1]&4&&s!==(s="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"part",s),c[0]&131072&&a!==(a=`${f[17]?"Loading":""}`)&&g(t,"class",a)},i:C,o:C,d(f){f&&E(t),h.d(),e[51](null)}}}function Bs(e,t,r){let n;Rr(e,vn,d=>r(34,n=d));let{session:i=""}=t,{userid:o=""}=t,{tournamenturl:s=""}=t,{touridx:a}=t,{endpoint:u=""}=t,{showdetails:l=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:c=""}=t,{fullsize:y=""}=t,{lang:p=""}=t,{loginevent:b=""}=t,{registerevent:I=""}=t,{detailsevent:J=""}=t,{loginurl:k=""}=t,{registerurl:P=""}=t,{currency:j=""}=t,{keepbrowsercontext:D="false"}=t,{clientstyling:G=""}=t,{clientstylingurl:Y=""}=t,{translationurl:Be=""}=t,{tournamentinfo:He}=t,{mbsource:Ae}=t,{tournamentid:tt}=t,{betcountmode:Pe="minBetCount"}=t,z,Tn,pe=!1,Oe="",be=!0,Dt=window.navigator.userAgent,Ce=!1,Ie=!1,Ut="There was an error while trying to join the tournament",rt=!1,nt,jt,Gt,ge,$,zt,it,$t,Vt,Xt=[],ot=[],Wt="#",Le=!1;fs({withLocale:"en",translations:{}});const Bn=()=>{fetch(Be).then(A=>A.json()).then(A=>{Object.keys(A).forEach(N=>{Br(N,A[N])})}).catch(A=>{console.log(A)})};Object.keys(Hr).forEach(d=>{Br(d,Hr[d])});const Jt=d=>{Hn(d),st(d),Qt(this,$)},qt=d=>{if(d.data&&d.data.type=="UserSessionID"&&(r(16,pe=!0),Oe=d.data.session,Yt(u)),d.data.type=="UpdateTournamentView"){let A=d.data.tournamentData;if($&&$!=A.id)return;Jt(A)}if(d.data&&d.data.type==`UpdateSingleTournament_${a}`){let A=d.data.tournamentData,N=a<4?a*100:Math.random()*300+300;r(33,Le=a==1),setTimeout(()=>{r(33,Le=!0),r(26,$=A.id),Jt(A)},N),setTimeout(()=>{r(33,Le=!1)},N+200)}},Hn=d=>{d.state!=ge&&(r(25,ge=d.state),window.postMessage({type:`TournamentStatus_${$}`,status:ge},window.location.href))},An=()=>{b&&(window.postMessage({type:b,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),k&&(window.location=k)},Pn=()=>{I&&(window.postMessage({type:I,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),P&&(window.location=P)},On=d=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:d,showLeaderboard:!0},window.location.href)},Zt=(d,A)=>Ne(this,null,function*(){var er;r(19,Ie=!1),r(21,rt=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:d},window.location.href),r(18,Ce=!0);let N=new URL(`${u}/v1/bonus/claim`),ne=new Headers,at={};N.searchParams.append("language",p),N.searchParams.append("platform",Nt(Dt)),ne.append("Content-Type","application/json"),ne.append("X-SessionID",Oe),A&&A.length>=1&&(at={language:p,bonusCode:A[0].code,currency:j,type:"tournament"});let ye={method:"PUT",headers:ne,body:JSON.stringify(at)};const Kt=()=>{r(18,Ce=!1),r(28,it=!0)},ut=L=>{r(18,Ce=!1),L&&r(20,Ut=L),r(19,Ie=!0)},_e=yield Ne(this,null,function*(){let L;try{L=yield fetch(N,ye),L=yield L.json()}catch(Ps){ut()}return L});if(_e)if(_e.success==!0)Kt();else if(_e.errorMessage.match("VersionMismatchException")){let L;L=yield fetch(`${u}/tournaments/${$}`,{headers:{"X-SessionID":i}}),L=yield L.json(),(er=L==null?void 0:L.item)!=null&&er.playerEnrolled?Kt():(ut(_e.errorMessage),r(21,rt=!0),r(19,Ie=!1))}else ut(_e.errorMessage)}),Qt=(d,A)=>{window.postMessage({type:`TournamentPrizes_${A}`,prizes:Xt},window.location.href)},st=d=>{d&&(r(22,nt=d.nameOrTitle||""),r(23,jt=d.startTime),r(24,Gt=d.endTime),r(25,ge=d.state),r(26,$=d.id),r(27,zt=d.thumbnail),r(28,it=d.playerEnrolled==="true"||d.playerEnrolled==!0||!1),r(29,$t=d.scoreCriteria),r(0,Pe=d.betCountMode||"minBetCount"),r(30,Vt=d[Pe]),Xt=d.prizes,r(31,ot=d.wallets||[]),r(32,Wt=d.termsUrl||"#"))},Yt=d=>{r(17,be=!0);const A=d?`${d}/v1/tournaments/${tt}`:s,N=new URL(A),ne=new Headers;N.searchParams.append("language",p),N.searchParams.append("platform",Nt(Dt)),pe&&ne.append("X-SessionID",Oe),fetch(N,{method:"GET",headers:ne}).then(ye=>ye.json()).then(ye=>{st(ye.item)}).finally(()=>{r(17,be=!1)})},Cn=()=>{r(16,pe=(i==null?void 0:i.length)>10),pe&&(Oe=i)},In=()=>{if(He){st(He);return}r(17,be=!0),Yt(u)};Dr(()=>(r(17,be=!nt),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",qt,!1),()=>{window.removeEventListener("message",qt)}));const Ln=()=>Zt($,ot);function Nn(d){ze[d?"unshift":"push"](()=>{z=d,r(15,z)})}return e.$$set=d=>{"session"in d&&r(40,i=d.session),"userid"in d&&r(1,o=d.userid),"tournamenturl"in d&&r(2,s=d.tournamenturl),"touridx"in d&&r(41,a=d.touridx),"endpoint"in d&&r(42,u=d.endpoint),"showdetails"in d&&r(3,l=d.showdetails),"showslider"in d&&r(4,h=d.showslider),"showenrolled"in d&&r(5,f=d.showenrolled),"maxwidth"in d&&r(6,c=d.maxwidth),"fullsize"in d&&r(7,y=d.fullsize),"lang"in d&&r(8,p=d.lang),"loginevent"in d&&r(43,b=d.loginevent),"registerevent"in d&&r(44,I=d.registerevent),"detailsevent"in d&&r(9,J=d.detailsevent),"loginurl"in d&&r(45,k=d.loginurl),"registerurl"in d&&r(46,P=d.registerurl),"currency"in d&&r(47,j=d.currency),"keepbrowsercontext"in d&&r(10,D=d.keepbrowsercontext),"clientstyling"in d&&r(11,G=d.clientstyling),"clientstylingurl"in d&&r(12,Y=d.clientstylingurl),"translationurl"in d&&r(13,Be=d.translationurl),"tournamentinfo"in d&&r(48,He=d.tournamentinfo),"mbsource"in d&&r(14,Ae=d.mbsource),"tournamentid"in d&&r(49,tt=d.tournamentid),"betcountmode"in d&&r(0,Pe=d.betcountmode)},e.$$.update=()=>{e.$$.dirty[0]&256&&p&&cs(p),e.$$.dirty[0]&8192&&Be&&Bn(),e.$$.dirty[1]&512&&i&&Cn(),e.$$.dirty[0]&260&&s&&p&&In(),e.$$.dirty[0]&34816&&G&&z&&En(z,G),e.$$.dirty[0]&36864&&Y&&z&&wn(z,Y),e.$$.dirty[0]&49152&&Ae&&z&&xn(z,`${Ae}.Style`,Tn)},[Pe,o,s,l,h,f,c,y,p,J,D,G,Y,Be,Ae,z,pe,be,Ce,Ie,Ut,rt,nt,jt,Gt,ge,$,zt,it,$t,Vt,ot,Wt,Le,n,An,Pn,On,Zt,Qt,i,a,u,b,I,k,P,j,He,tt,Ln,Nn]}class Sn extends zr{constructor(t){super(),Ur(this,t,Bs,Ts,Mt,{session:40,userid:1,tournamenturl:2,touridx:41,endpoint:42,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:43,registerevent:44,detailsevent:9,loginurl:45,registerurl:46,currency:47,keepbrowsercontext:10,clientstyling:11,clientstylingurl:12,translationurl:13,tournamentinfo:48,mbsource:14,tournamentid:49,betcountmode:0},ps,[-1,-1,-1])}get session(){return this.$$.ctx[40]}set session(t){this.$$set({session:t}),x()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),x()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),x()}get touridx(){return this.$$.ctx[41]}set touridx(t){this.$$set({touridx:t}),x()}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),x()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),x()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),x()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),x()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),x()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),x()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),x()}get loginevent(){return this.$$.ctx[43]}set loginevent(t){this.$$set({loginevent:t}),x()}get registerevent(){return this.$$.ctx[44]}set registerevent(t){this.$$set({registerevent:t}),x()}get detailsevent(){return this.$$.ctx[9]}set detailsevent(t){this.$$set({detailsevent:t}),x()}get loginurl(){return this.$$.ctx[45]}set loginurl(t){this.$$set({loginurl:t}),x()}get registerurl(){return this.$$.ctx[46]}set registerurl(t){this.$$set({registerurl:t}),x()}get currency(){return this.$$.ctx[47]}set currency(t){this.$$set({currency:t}),x()}get keepbrowsercontext(){return this.$$.ctx[10]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),x()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),x()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),x()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),x()}get tournamentinfo(){return this.$$.ctx[48]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),x()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),x()}get tournamentid(){return this.$$.ctx[49]}set tournamentid(t){this.$$set({tournamentid:t}),x()}get betcountmode(){return this.$$.ctx[0]}set betcountmode(t){this.$$set({betcountmode:t}),x()}}Gr(Sn,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{},betcountmode:{}},[],[],!0);const Hs=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=te;exports.$format=vn;exports.$locale=W;exports.CasinoTournamentsThumbnailController_ce=Hs;exports.SvelteComponent=zr;exports.action_destroyer=Fr;exports.addMessages=Ft;exports.add_iframe_resize_listener=Jn;exports.add_render_callback=$e;exports.append=H;exports.append_styles=kr;exports.attr=g;exports.binding_callbacks=ze;exports.component_subscribe=Rr;exports.create_custom_element=Gr;exports.destroy_each=$n;exports.detach=E;exports.element=B;exports.empty=Je;exports.ensure_array_like=ii;exports.flush=x;exports.getDevice=Nt;exports.init=Ur;exports.insert=w;exports.is_function=Q;exports.listen=Z;exports.noop=C;exports.onMount=Dr;exports.run_all=ee;exports.safe_not_equal=Mt;exports.setClientStyling=En;exports.setClientStylingURL=wn;exports.setStreamStyling=xn;exports.set_custom_element_data=m;exports.set_data=X;exports.set_style=Xn;exports.space=R;exports.src_url_equal=Un;exports.text=F;exports.toggle_class=qn;
@@ -4481,7 +4481,7 @@ if (typeof window != "undefined") {
4481
4481
  }
4482
4482
  };
4483
4483
  };
4484
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-PFCjOTsz.js").then(({ default: t }) => {
4484
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-9fRQ6gHt.js").then(({ default: t }) => {
4485
4485
  !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
4486
4486
  });
4487
4487
  }
@@ -4497,7 +4497,7 @@ if (typeof window != "undefined") {
4497
4497
  }
4498
4498
  };
4499
4499
  };
4500
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-DA7A_yuE.js").then(({ default: t }) => {
4500
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-B1dTex-W.js").then(({ default: t }) => {
4501
4501
  !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
4502
4502
  "casino-tournaments-thumbnail-duration",
4503
4503
  t.element
@@ -4516,7 +4516,7 @@ if (typeof window != "undefined") {
4516
4516
  }
4517
4517
  };
4518
4518
  };
4519
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-AcuQqBlk.js").then(({ default: t }) => {
4519
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BWeypuuc.js").then(({ default: t }) => {
4520
4520
  !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
4521
4521
  });
4522
4522
  }
@@ -4532,7 +4532,7 @@ if (typeof window != "undefined") {
4532
4532
  }
4533
4533
  };
4534
4534
  };
4535
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-PPr8Z7Aq.js").then(
4535
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-D1BF0aLn.js").then(
4536
4536
  ({ default: t }) => {
4537
4537
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
4538
4538
  "casino-tournaments-thumbnail-games-slider",