@everymatrix/casino-navigation-search 1.88.5 → 1.88.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-De2O7nY7.cjs → CasinoCategories-DPZ9O23N.cjs} +1 -1
- package/components/{CasinoCategories-D03ywWap.js → CasinoCategories-DPlQAMMs.js} +2 -2
- package/components/{CasinoCategories-DwrD955W.js → CasinoCategories-DUHuUF3Y.js} +2 -2
- package/components/{CasinoCategoriesProviders-BdtzkzB9.js → CasinoCategoriesProviders-AZK-LyHz.js} +4 -4
- package/components/{CasinoCategoriesProviders-CEig9pqM.js → CasinoCategoriesProviders-DnAFzl9y.js} +4 -4
- package/components/{CasinoCategoriesProviders-CjzJD4F5.cjs → CasinoCategoriesProviders-b868yoe6.cjs} +1 -1
- package/components/{CasinoGameThumbnail-BhUMu5jg.js → CasinoGameThumbnail-BMUwvi16.js} +2 -2
- package/components/{CasinoGameThumbnail-D-MyFmoL.js → CasinoGameThumbnail-BmHSvVP3.js} +2 -2
- package/components/{CasinoGameThumbnail-9VdwPGp6.cjs → CasinoGameThumbnail-CxoRJp_b.cjs} +1 -1
- package/components/{CasinoNavigationSearch-eJclHiIa.js → CasinoNavigationSearch-CCkQbdS5.js} +3 -4
- package/components/{CasinoNavigationSearch-DCzsTtAH.cjs → CasinoNavigationSearch-CvEgXDMX.cjs} +1 -1
- package/components/{CasinoNavigationSearch-BXnm3TTr.js → CasinoNavigationSearch-D2TFQtTD.js} +3 -3
- package/components/{CasinoProviders-mQfo2558.cjs → CasinoProviders-B9qHUUqw.cjs} +1 -1
- package/components/{CasinoProviders-BZ1HrZLf.js → CasinoProviders-Ba3olyJg.js} +2 -2
- package/components/{CasinoProviders-Bs8WnLeF.js → CasinoProviders-COFyT8ms.js} +2 -2
- package/components/{CasinoSearch-BLkMZ3g_.js → CasinoSearch-B8ruAPZm.js} +2 -2
- package/components/{CasinoSearch-BZ_ZSZxR.cjs → CasinoSearch-DAbJt683.cjs} +2 -2
- package/components/{CasinoSearch-jAxRxn7o.js → CasinoSearch-y9Hu7PaC.js} +2 -2
- package/es2015/casino-navigation-search.cjs +1 -1
- package/es2015/casino-navigation-search.js +1 -1
- package/esnext/casino-navigation-search.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-DCzsTtAH.cjs"),j=require("./CasinoSearch-BZ_ZSZxR.cjs");require("../stencil/ui-image-BX-FBhad.cjs");function q(a,t){j.addMessages(a,t)}function G(a){j.$locale.set(a)}const E={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"En İyi Kategoriler",otherCategories:"Diğer Kategoriler",loading:"Yükleniyor, lütfen bekleyin...",games:"oyunlar"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Najbolje kategorije",otherCategories:"Ostale kategorije",loading:"Učitavam",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"pt-br":{topCategories:"Categorias Principais",otherCategories:"Outras Categorias",Loading:"Carregando, por favor espere...",games:"jogos"},"es-mx":{topCategories:"Categorias Principales",otherCategories:"Otras Categorias",Loading:"Cargando, por favor espere...",games:"juegos"},"en-us":{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};function D(a){e.append_styles(a,"svelte-2l182v","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}")}function M(a,t,i){const l=a.slice();return l[23]=t[i],l}function z(a,t,i){const l=a.slice();return l[23]=t[i],l}function Y(a){let t,i,l=a[5]("topCategories")+"",g,d,c,v,_=a[5]("otherCategories")+"",C,b,p=e.ensure_array_like(a[3]),r=[];for(let o=0;o<p.length;o+=1)r[o]=I(z(a,p,o));let u=e.ensure_array_like(a[4]),m=[];for(let o=0;o<u.length;o+=1)m[o]=N(M(a,u,o));return{c(){t=e.element("div"),i=e.element("h4"),g=e.text(l),d=e.space();for(let o=0;o<r.length;o+=1)r[o].c();c=e.space(),v=e.element("h4"),C=e.text(_),b=e.space();for(let o=0;o<m.length;o+=1)m[o].c();e.attr(i,"class","CategoryTitle"),e.attr(v,"class","CategoryTitle"),e.attr(t,"class","CasinoCategories")},m(o,h){e.insert(o,t,h),e.append(t,i),e.append(i,g),e.append(t,d);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(t,null);e.append(t,c),e.append(t,v),e.append(v,C),e.append(t,b);for(let s=0;s<m.length;s+=1)m[s]&&m[s].m(t,null)},p(o,h){if(h&32&&l!==(l=o[5]("topCategories")+"")&&e.set_data(g,l),h&105){p=e.ensure_array_like(o[3]);let s;for(s=0;s<p.length;s+=1){const f=z(o,p,s);r[s]?r[s].p(f,h):(r[s]=I(f),r[s].c(),r[s].m(t,c))}for(;s<r.length;s+=1)r[s].d(1);r.length=p.length}if(h&32&&_!==(_=o[5]("otherCategories")+"")&&e.set_data(C,_),h&113){u=e.ensure_array_like(o[4]);let s;for(s=0;s<u.length;s+=1){const f=M(o,u,s);m[s]?m[s].p(f,h):(m[s]=N(f),m[s].c(),m[s].m(t,null))}for(;s<m.length;s+=1)m[s].d(1);m.length=u.length}},d(o){o&&e.detach(t),e.destroy_each(r,o),e.destroy_each(m,o)}}}function B(a){let t;return{c(){t=e.element("p"),t.textContent="Loading, please wait...",e.attr(t,"class","Message")},m(i,l){e.insert(i,t,l)},p:e.noop,d(i){i&&e.detach(t)}}}function I(a){let t,i,l,g,d,c,v,_=a[23].name+"",C,b,p,r=a[23].games.count+"",u,m,o=a[5]("games")+"",h,s,f,x;function O(){return a[15](a[23])}return{c(){t=e.element("div"),i=e.element("ui-image"),d=e.space(),c=e.element("div"),v=e.element("p"),C=e.text(_),b=e.space(),p=e.element("p"),u=e.text(r),m=e.space(),h=e.text(o),e.src_url_equal(i.src,l=a[23].icon)||e.set_custom_element_data(i,"src",l),e.set_custom_element_data(i,"alt",g=a[23].name),e.set_custom_element_data(i,"class","CategoryImage"),e.attr(c,"class","CategoryTextContainer"),e.attr(t,"class",s="Category "+(a[0]===a[23].id?"Active":""))},m(w,y){e.insert(w,t,y),e.append(t,i),e.append(t,d),e.append(t,c),e.append(c,v),e.append(v,C),e.append(c,b),e.append(c,p),e.append(p,u),e.append(p,m),e.append(p,h),f||(x=e.listen(t,"click",O),f=!0)},p(w,y){a=w,y&8&&!e.src_url_equal(i.src,l=a[23].icon)&&e.set_custom_element_data(i,"src",l),y&8&&g!==(g=a[23].name)&&e.set_custom_element_data(i,"alt",g),y&8&&_!==(_=a[23].name+"")&&e.set_data(C,_),y&8&&r!==(r=a[23].games.count+"")&&e.set_data(u,r),y&32&&o!==(o=a[5]("games")+"")&&e.set_data(h,o),y&9&&s!==(s="Category "+(a[0]===a[23].id?"Active":""))&&e.attr(t,"class",s)},d(w){w&&e.detach(t),f=!1,x()}}}function N(a){let t,i,l,g,d,c,v,_=a[23].name+"",C,b,p,r=a[23].games.count+"",u,m,o=a[5]("games")+"",h,s,f,x,O;function w(){return a[16](a[23])}return{c(){t=e.element("div"),i=e.element("ui-image"),d=e.space(),c=e.element("div"),v=e.element("p"),C=e.text(_),b=e.space(),p=e.element("p"),u=e.text(r),m=e.space(),h=e.text(o),s=e.space(),e.src_url_equal(i.src,l=a[23].icon)||e.set_custom_element_data(i,"src",l),e.set_custom_element_data(i,"alt",g=a[23].name),e.set_custom_element_data(i,"class","CategoryImage"),e.attr(c,"class","CategoryTextContainer"),e.attr(t,"class",f="Category "+(a[0]===a[23].id?"Active":""))},m(y,k){e.insert(y,t,k),e.append(t,i),e.append(t,d),e.append(t,c),e.append(c,v),e.append(v,C),e.append(c,b),e.append(c,p),e.append(p,u),e.append(p,m),e.append(p,h),e.append(t,s),x||(O=e.listen(t,"click",w),x=!0)},p(y,k){a=y,k&16&&!e.src_url_equal(i.src,l=a[23].icon)&&e.set_custom_element_data(i,"src",l),k&16&&g!==(g=a[23].name)&&e.set_custom_element_data(i,"alt",g),k&16&&_!==(_=a[23].name+"")&&e.set_data(C,_),k&16&&r!==(r=a[23].games.count+"")&&e.set_data(u,r),k&32&&o!==(o=a[5]("games")+"")&&e.set_data(h,o),k&17&&f!==(f="Category "+(a[0]===a[23].id?"Active":""))&&e.attr(t,"class",f)},d(y){y&&e.detach(t),x=!1,O()}}}function H(a){let t;function i(d,c){return d[2]?B:Y}let l=i(a),g=l(a);return{c(){t=e.element("div"),g.c()},m(d,c){e.insert(d,t,c),g.m(t,null),a[17](t)},p(d,[c]){l===(l=i(d))&&g?g.p(d,c):(g.d(1),g=l(d),g&&(g.c(),g.m(t,null)))},i:e.noop,o:e.noop,d(d){d&&e.detach(t),g.d(),a[17](null)}}}function J(a,t,i){let l;e.component_subscribe(a,j.$format,n=>i(5,l=n));let{endpoint:g=""}=t,{datasource:d=""}=t,{lang:c="en"}=t,{activecategory:v=""}=t,{excludedflags:_=""}=t,{clientstyling:C=""}=t,{clientstylingurl:b=""}=t,{translationurl:p=""}=t,{mbsource:r}=t,u,m,o=!1;const h=[];let s=[],f=[];Object.keys(E).forEach(n=>{q(n,E[n])});const x=()=>{fetch(p).then(T=>T.json()).then(T=>{Object.keys(T).forEach(L=>{q(L,T[L])})}).catch(T=>{console.log(T)})},O=()=>{i(2,o=!0);const n=new URL(`${g}/v1/casino/groups/${d}`);n.searchParams.append("language",c),fetch(n).then(T=>T.json()).then(T=>{i(2,o=!1);const L=_.split(",").map(F=>F.trim());h.push(...T.items);const S=h.filter(F=>!L.some(R=>{var A;return((A=F.flags)==null?void 0:A.indexOf(R))>=0}));i(3,s=S.filter(F=>F.isTopCategory===!0)),i(4,f=S.filter(F=>F.isTopCategory===!1))})},w=n=>{window.postMessage({type:"OpenGameCategory",categoryId:n},window.location.href)},y=()=>{G(c)};e.onMount(()=>()=>{});const k=n=>w(n.id),P=n=>w(n.id);function U(n){e.binding_callbacks[n?"unshift":"push"](()=>{u=n,i(1,u)})}return a.$$set=n=>{"endpoint"in n&&i(7,g=n.endpoint),"datasource"in n&&i(8,d=n.datasource),"lang"in n&&i(9,c=n.lang),"activecategory"in n&&i(0,v=n.activecategory),"excludedflags"in n&&i(10,_=n.excludedflags),"clientstyling"in n&&i(11,C=n.clientstyling),"clientstylingurl"in n&&i(12,b=n.clientstylingurl),"translationurl"in n&&i(13,p=n.translationurl),"mbsource"in n&&i(14,r=n.mbsource)},a.$$.update=()=>{a.$$.dirty&384&&g&&d&&O(),a.$$.dirty&8192&&p&&x(),a.$$.dirty&512&&c&&y(),a.$$.dirty&2050&&C&&u&&e.setClientStyling(u,C),a.$$.dirty&4098&&b&&u&&e.setClientStylingURL(u,b),a.$$.dirty&16386&&r&&u&&e.setStreamStyling(u,`${r}.Style`,m)},[v,u,o,s,f,l,w,g,d,c,_,C,b,p,r,k,P,U]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,J,H,e.safe_not_equal,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14},D)}get endpoint(){return this.$$.ctx[7]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[8]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(t){this.$$set({activecategory:t}),e.flush()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(t){this.$$set({excludedflags:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},datasource:{},lang:{},activecategory:{},excludedflags:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-CvEgXDMX.cjs"),j=require("./CasinoSearch-DAbJt683.cjs");require("../stencil/ui-image-BX-FBhad.cjs");function q(a,t){j.addMessages(a,t)}function G(a){j.$locale.set(a)}const E={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"En İyi Kategoriler",otherCategories:"Diğer Kategoriler",loading:"Yükleniyor, lütfen bekleyin...",games:"oyunlar"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Najbolje kategorije",otherCategories:"Ostale kategorije",loading:"Učitavam",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"pt-br":{topCategories:"Categorias Principais",otherCategories:"Outras Categorias",Loading:"Carregando, por favor espere...",games:"jogos"},"es-mx":{topCategories:"Categorias Principales",otherCategories:"Otras Categorias",Loading:"Cargando, por favor espere...",games:"juegos"},"en-us":{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};function D(a){e.append_styles(a,"svelte-2l182v","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}")}function M(a,t,i){const l=a.slice();return l[23]=t[i],l}function z(a,t,i){const l=a.slice();return l[23]=t[i],l}function Y(a){let t,i,l=a[5]("topCategories")+"",g,d,c,v,_=a[5]("otherCategories")+"",C,b,p=e.ensure_array_like(a[3]),r=[];for(let o=0;o<p.length;o+=1)r[o]=I(z(a,p,o));let u=e.ensure_array_like(a[4]),m=[];for(let o=0;o<u.length;o+=1)m[o]=N(M(a,u,o));return{c(){t=e.element("div"),i=e.element("h4"),g=e.text(l),d=e.space();for(let o=0;o<r.length;o+=1)r[o].c();c=e.space(),v=e.element("h4"),C=e.text(_),b=e.space();for(let o=0;o<m.length;o+=1)m[o].c();e.attr(i,"class","CategoryTitle"),e.attr(v,"class","CategoryTitle"),e.attr(t,"class","CasinoCategories")},m(o,h){e.insert(o,t,h),e.append(t,i),e.append(i,g),e.append(t,d);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(t,null);e.append(t,c),e.append(t,v),e.append(v,C),e.append(t,b);for(let s=0;s<m.length;s+=1)m[s]&&m[s].m(t,null)},p(o,h){if(h&32&&l!==(l=o[5]("topCategories")+"")&&e.set_data(g,l),h&105){p=e.ensure_array_like(o[3]);let s;for(s=0;s<p.length;s+=1){const f=z(o,p,s);r[s]?r[s].p(f,h):(r[s]=I(f),r[s].c(),r[s].m(t,c))}for(;s<r.length;s+=1)r[s].d(1);r.length=p.length}if(h&32&&_!==(_=o[5]("otherCategories")+"")&&e.set_data(C,_),h&113){u=e.ensure_array_like(o[4]);let s;for(s=0;s<u.length;s+=1){const f=M(o,u,s);m[s]?m[s].p(f,h):(m[s]=N(f),m[s].c(),m[s].m(t,null))}for(;s<m.length;s+=1)m[s].d(1);m.length=u.length}},d(o){o&&e.detach(t),e.destroy_each(r,o),e.destroy_each(m,o)}}}function B(a){let t;return{c(){t=e.element("p"),t.textContent="Loading, please wait...",e.attr(t,"class","Message")},m(i,l){e.insert(i,t,l)},p:e.noop,d(i){i&&e.detach(t)}}}function I(a){let t,i,l,g,d,c,v,_=a[23].name+"",C,b,p,r=a[23].games.count+"",u,m,o=a[5]("games")+"",h,s,f,x;function O(){return a[15](a[23])}return{c(){t=e.element("div"),i=e.element("ui-image"),d=e.space(),c=e.element("div"),v=e.element("p"),C=e.text(_),b=e.space(),p=e.element("p"),u=e.text(r),m=e.space(),h=e.text(o),e.src_url_equal(i.src,l=a[23].icon)||e.set_custom_element_data(i,"src",l),e.set_custom_element_data(i,"alt",g=a[23].name),e.set_custom_element_data(i,"class","CategoryImage"),e.attr(c,"class","CategoryTextContainer"),e.attr(t,"class",s="Category "+(a[0]===a[23].id?"Active":""))},m(w,y){e.insert(w,t,y),e.append(t,i),e.append(t,d),e.append(t,c),e.append(c,v),e.append(v,C),e.append(c,b),e.append(c,p),e.append(p,u),e.append(p,m),e.append(p,h),f||(x=e.listen(t,"click",O),f=!0)},p(w,y){a=w,y&8&&!e.src_url_equal(i.src,l=a[23].icon)&&e.set_custom_element_data(i,"src",l),y&8&&g!==(g=a[23].name)&&e.set_custom_element_data(i,"alt",g),y&8&&_!==(_=a[23].name+"")&&e.set_data(C,_),y&8&&r!==(r=a[23].games.count+"")&&e.set_data(u,r),y&32&&o!==(o=a[5]("games")+"")&&e.set_data(h,o),y&9&&s!==(s="Category "+(a[0]===a[23].id?"Active":""))&&e.attr(t,"class",s)},d(w){w&&e.detach(t),f=!1,x()}}}function N(a){let t,i,l,g,d,c,v,_=a[23].name+"",C,b,p,r=a[23].games.count+"",u,m,o=a[5]("games")+"",h,s,f,x,O;function w(){return a[16](a[23])}return{c(){t=e.element("div"),i=e.element("ui-image"),d=e.space(),c=e.element("div"),v=e.element("p"),C=e.text(_),b=e.space(),p=e.element("p"),u=e.text(r),m=e.space(),h=e.text(o),s=e.space(),e.src_url_equal(i.src,l=a[23].icon)||e.set_custom_element_data(i,"src",l),e.set_custom_element_data(i,"alt",g=a[23].name),e.set_custom_element_data(i,"class","CategoryImage"),e.attr(c,"class","CategoryTextContainer"),e.attr(t,"class",f="Category "+(a[0]===a[23].id?"Active":""))},m(y,k){e.insert(y,t,k),e.append(t,i),e.append(t,d),e.append(t,c),e.append(c,v),e.append(v,C),e.append(c,b),e.append(c,p),e.append(p,u),e.append(p,m),e.append(p,h),e.append(t,s),x||(O=e.listen(t,"click",w),x=!0)},p(y,k){a=y,k&16&&!e.src_url_equal(i.src,l=a[23].icon)&&e.set_custom_element_data(i,"src",l),k&16&&g!==(g=a[23].name)&&e.set_custom_element_data(i,"alt",g),k&16&&_!==(_=a[23].name+"")&&e.set_data(C,_),k&16&&r!==(r=a[23].games.count+"")&&e.set_data(u,r),k&32&&o!==(o=a[5]("games")+"")&&e.set_data(h,o),k&17&&f!==(f="Category "+(a[0]===a[23].id?"Active":""))&&e.attr(t,"class",f)},d(y){y&&e.detach(t),x=!1,O()}}}function H(a){let t;function i(d,c){return d[2]?B:Y}let l=i(a),g=l(a);return{c(){t=e.element("div"),g.c()},m(d,c){e.insert(d,t,c),g.m(t,null),a[17](t)},p(d,[c]){l===(l=i(d))&&g?g.p(d,c):(g.d(1),g=l(d),g&&(g.c(),g.m(t,null)))},i:e.noop,o:e.noop,d(d){d&&e.detach(t),g.d(),a[17](null)}}}function J(a,t,i){let l;e.component_subscribe(a,j.$format,n=>i(5,l=n));let{endpoint:g=""}=t,{datasource:d=""}=t,{lang:c="en"}=t,{activecategory:v=""}=t,{excludedflags:_=""}=t,{clientstyling:C=""}=t,{clientstylingurl:b=""}=t,{translationurl:p=""}=t,{mbsource:r}=t,u,m,o=!1;const h=[];let s=[],f=[];Object.keys(E).forEach(n=>{q(n,E[n])});const x=()=>{fetch(p).then(T=>T.json()).then(T=>{Object.keys(T).forEach(L=>{q(L,T[L])})}).catch(T=>{console.log(T)})},O=()=>{i(2,o=!0);const n=new URL(`${g}/v1/casino/groups/${d}`);n.searchParams.append("language",c),fetch(n).then(T=>T.json()).then(T=>{i(2,o=!1);const L=_.split(",").map(F=>F.trim());h.push(...T.items);const S=h.filter(F=>!L.some(R=>{var A;return((A=F.flags)==null?void 0:A.indexOf(R))>=0}));i(3,s=S.filter(F=>F.isTopCategory===!0)),i(4,f=S.filter(F=>F.isTopCategory===!1))})},w=n=>{window.postMessage({type:"OpenGameCategory",categoryId:n},window.location.href)},y=()=>{G(c)};e.onMount(()=>()=>{});const k=n=>w(n.id),P=n=>w(n.id);function U(n){e.binding_callbacks[n?"unshift":"push"](()=>{u=n,i(1,u)})}return a.$$set=n=>{"endpoint"in n&&i(7,g=n.endpoint),"datasource"in n&&i(8,d=n.datasource),"lang"in n&&i(9,c=n.lang),"activecategory"in n&&i(0,v=n.activecategory),"excludedflags"in n&&i(10,_=n.excludedflags),"clientstyling"in n&&i(11,C=n.clientstyling),"clientstylingurl"in n&&i(12,b=n.clientstylingurl),"translationurl"in n&&i(13,p=n.translationurl),"mbsource"in n&&i(14,r=n.mbsource)},a.$$.update=()=>{a.$$.dirty&384&&g&&d&&O(),a.$$.dirty&8192&&p&&x(),a.$$.dirty&512&&c&&y(),a.$$.dirty&2050&&C&&u&&e.setClientStyling(u,C),a.$$.dirty&4098&&b&&u&&e.setClientStylingURL(u,b),a.$$.dirty&16386&&r&&u&&e.setStreamStyling(u,`${r}.Style`,m)},[v,u,o,s,f,l,w,g,d,c,_,C,b,p,r,k,P,U]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,J,H,e.safe_not_equal,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14},D)}get endpoint(){return this.$$.ctx[7]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[8]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(t){this.$$set({activecategory:t}),e.flush()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(t){this.$$set({excludedflags:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},datasource:{},lang:{},activecategory:{},excludedflags:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=K;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ee, b as te, s as ae, f as x, c as ie, n as P, d as I, h as K, k as b, p as oe, q as se, v as re, e as j, w as U, x as G, t as S, j as c, u as E, m as O, E as q, z as L, l as W, A as le, B as ne, C as ge, D as ce } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as ue, $ as de, b as he } from "./CasinoSearch-
|
|
1
|
+
import { S as ee, b as te, s as ae, f as x, c as ie, n as P, d as I, h as K, k as b, p as oe, q as se, v as re, e as j, w as U, x as G, t as S, j as c, u as E, m as O, E as q, z as L, l as W, A as le, B as ne, C as ge, D as ce } from "./CasinoNavigationSearch-CCkQbdS5.js";
|
|
2
|
+
import { a as ue, $ as de, b as he } from "./CasinoSearch-y9Hu7PaC.js";
|
|
3
3
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
4
4
|
function B(t, e) {
|
|
5
5
|
ue(t, e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as $, b as ee, s as te, f as x, d as ae, n as P, e as I, j as K, m as b, q as ie, t as oe, w as se, g as j, x as U, y as D, u as S, k as c, v as E, o as O, E as q, A as L, l as V, B as re, C as le, D as ne, c as ge } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as ce, $ as ue, b as de } from "./CasinoSearch-
|
|
1
|
+
import { S as $, b as ee, s as te, f as x, d as ae, n as P, e as I, j as K, m as b, q as ie, t as oe, w as se, g as j, x as U, y as D, u as S, k as c, v as E, o as O, E as q, A as L, l as V, B as re, C as le, D as ne, c as ge } from "./CasinoNavigationSearch-D2TFQtTD.js";
|
|
2
|
+
import { a as ce, $ as ue, b as de } from "./CasinoSearch-B8ruAPZm.js";
|
|
3
3
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
4
4
|
function G(t, e) {
|
|
5
5
|
ce(t, e);
|
package/components/{CasinoCategoriesProviders-BdtzkzB9.js → CasinoCategoriesProviders-AZK-LyHz.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as L, b as K, s as q, f as g, c as R, n as j, d as U, r as I, t as z, e as f, z as i, h as G, j as u, l as D, k as b, u as M, m as P, p as J, q as Q, v as W, A as X, B as Y, C as Z, D as x } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as $, $ as ee, b as te } from "./CasinoSearch-
|
|
1
|
+
import { S as L, b as K, s as q, f as g, c as R, n as j, d as U, r as I, t as z, e as f, z as i, h as G, j as u, l as D, k as b, u as M, m as P, p as J, q as Q, v as W, A as X, B as Y, C as Z, D as x } from "./CasinoNavigationSearch-CCkQbdS5.js";
|
|
2
|
+
import { a as $, $ as ee, b as te } from "./CasinoSearch-y9Hu7PaC.js";
|
|
3
3
|
function O(s, t) {
|
|
4
4
|
$(s, t);
|
|
5
5
|
}
|
|
@@ -92,7 +92,7 @@ if (typeof window != "undefined") {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
customElements.define = s(customElements.define), import("./CasinoCategories-
|
|
95
|
+
customElements.define = s(customElements.define), import("./CasinoCategories-DPlQAMMs.js").then(({ default: t }) => {
|
|
96
96
|
!customElements.get("casino-categories") && customElements.define("casino-categories", t.element);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
@@ -108,7 +108,7 @@ if (typeof window != "undefined") {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
customElements.define = s(customElements.define), import("./CasinoProviders-
|
|
111
|
+
customElements.define = s(customElements.define), import("./CasinoProviders-Ba3olyJg.js").then(({ default: t }) => {
|
|
112
112
|
!customElements.get("casino-providers") && customElements.define("casino-providers", t.element);
|
|
113
113
|
});
|
|
114
114
|
}
|
package/components/{CasinoCategoriesProviders-CEig9pqM.js → CasinoCategoriesProviders-DnAFzl9y.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as L, b as K, s as q, f as g, d as R, n as j, e as U, r as I, u as D, g as f, A as i, j as G, k as u, l as M, m as b, v as O, o as P, q as J, t as Q, w as W, B as X, C as Y, D as Z, c as x } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as $, $ as ee, b as te } from "./CasinoSearch-
|
|
1
|
+
import { S as L, b as K, s as q, f as g, d as R, n as j, e as U, r as I, u as D, g as f, A as i, j as G, k as u, l as M, m as b, v as O, o as P, q as J, t as Q, w as W, B as X, C as Y, D as Z, c as x } from "./CasinoNavigationSearch-D2TFQtTD.js";
|
|
2
|
+
import { a as $, $ as ee, b as te } from "./CasinoSearch-B8ruAPZm.js";
|
|
3
3
|
function V(s, t) {
|
|
4
4
|
$(s, t);
|
|
5
5
|
}
|
|
@@ -92,7 +92,7 @@ if (typeof window < "u") {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
customElements.define = s(customElements.define), import("./CasinoCategories-
|
|
95
|
+
customElements.define = s(customElements.define), import("./CasinoCategories-DUHuUF3Y.js").then(({ default: t }) => {
|
|
96
96
|
!customElements.get("casino-categories") && customElements.define("casino-categories", t.element);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
@@ -108,7 +108,7 @@ if (typeof window < "u") {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
customElements.define = s(customElements.define), import("./CasinoProviders-
|
|
111
|
+
customElements.define = s(customElements.define), import("./CasinoProviders-COFyT8ms.js").then(({ default: t }) => {
|
|
112
112
|
!customElements.get("casino-providers") && customElements.define("casino-providers", t.element);
|
|
113
113
|
});
|
|
114
114
|
}
|
package/components/{CasinoCategoriesProviders-CjzJD4F5.cjs → CasinoCategoriesProviders-b868yoe6.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-CvEgXDMX.cjs"),P=require("./CasinoSearch-DAbJt683.cjs");function B(i,s){P.addMessages(i,s)}function T(i){P.$locale.set(i)}const F={en:{categories:"Categories",providers:"Suppliers"},"zh-hk":{categories:"类别",providers:"供应商"},de:{categories:"Kategorien",providers:"Anbieter"},it:{categories:"Categories",providers:"Suppliers"},fr:{categories:"Catégories",providers:"Fournisseurs"},es:{categories:"Categorias",providers:"Proveedores"},tr:{categories:"Kategoriler",providers:"Tedarikçiler"},ru:{categories:"Categories",providers:"Suppliers"},ro:{categories:"Categorii",providers:"Furnizori"},hr:{categories:"Kategorije",providers:"Provideri"},hu:{categories:"Categories",providers:"Suppliers"},pl:{categories:"Categories",providers:"Suppliers"},pt:{categories:"Categories",providers:"Suppliers"},sl:{categories:"Categories",providers:"Suppliers"},sr:{categories:"Categories",providers:"Suppliers"},"pt-br":{categories:"Categorias",providers:"Provedores"},"es-mx":{categories:"Categorias",providers:"Proveedores"},"en-us":{categories:"Categories",providers:"Suppliers"}};if(typeof window!="undefined"){let i=function(s){return function(...r){try{return s.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=i(customElements.define),Promise.resolve().then(()=>require("./CasinoCategories-DPZ9O23N.cjs")).then(({default:s})=>{!customElements.get("casino-categories")&&customElements.define("casino-categories",s.element)})}if(typeof window!="undefined"){let i=function(s){return function(...r){try{return s.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=i(customElements.define),Promise.resolve().then(()=>require("./CasinoProviders-B9qHUUqw.cjs")).then(({default:s})=>{!customElements.get("casino-providers")&&customElements.define("casino-providers",s.element)})}function M(i){e.append_styles(i,"svelte-10w1o04","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}.CasinoCategoriesProviders{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.Header{display:flex;max-width:100%;min-width:320px;margin-bottom:14px;font-size:18px;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.HeaderButton{flex:1 2 0;min-height:48px;margin:0;border:none;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));box-shadow:1px 2px 2px rgba(var(--emw--color-gray-150, #828282), 0.1)}.HeaderButton.Active{box-shadow:none;border-bottom:2px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}")}function O(i){let s,r,n,d,p=i[12]("categories")+"",y,v,S,g,m=i[12]("providers")+"",f,_,h,u,o,c,E,b,l,w,k,A;return{c(){s=e.element("div"),r=e.element("div"),n=e.element("div"),d=e.element("button"),y=e.text(p),S=e.space(),g=e.element("button"),f=e.text(m),h=e.space(),u=e.element("div"),o=e.element("casino-categories"),E=e.space(),b=e.element("div"),l=e.element("casino-providers"),e.attr(d,"class",v="HeaderButton "+(i[11]==="categories"?"Active":"")),e.attr(g,"class",_="HeaderButton "+(i[11]==="providers"?"Active":"")),e.attr(n,"class","Header"),e.set_custom_element_data(o,"endpoint",i[0]),e.set_custom_element_data(o,"datasource",i[1]),e.set_custom_element_data(o,"activecategory",i[2]),e.set_custom_element_data(o,"excludedflags",i[5]),e.set_custom_element_data(o,"lang",i[6]),e.set_custom_element_data(o,"clientstyling",i[7]),e.set_custom_element_data(o,"clientstylingurl",i[8]),e.set_custom_element_data(o,"mbsource",i[9]),e.attr(u,"class",c=i[11]==="providers"?"NotVisible":""),e.set_custom_element_data(l,"endpoint",i[3]),e.set_custom_element_data(l,"datasource",i[4]),e.set_custom_element_data(l,"lang",i[6]),e.set_custom_element_data(l,"clientstyling",i[7]),e.set_custom_element_data(l,"clientstylingurl",i[8]),e.set_custom_element_data(l,"mbsource",i[9]),e.attr(b,"class",w=i[11]==="categories"?"NotVisible":""),e.attr(r,"class","CasinoCategoriesProviders")},m(a,t){e.insert(a,s,t),e.append(s,r),e.append(r,n),e.append(n,d),e.append(d,y),e.append(n,S),e.append(n,g),e.append(g,f),e.append(r,h),e.append(r,u),e.append(u,o),e.append(r,E),e.append(r,b),e.append(b,l),i[17](s),k||(A=[e.listen(d,"click",i[15]),e.listen(g,"click",i[16])],k=!0)},p(a,[t]){t&4096&&p!==(p=a[12]("categories")+"")&&e.set_data(y,p),t&2048&&v!==(v="HeaderButton "+(a[11]==="categories"?"Active":""))&&e.attr(d,"class",v),t&4096&&m!==(m=a[12]("providers")+"")&&e.set_data(f,m),t&2048&&_!==(_="HeaderButton "+(a[11]==="providers"?"Active":""))&&e.attr(g,"class",_),t&1&&e.set_custom_element_data(o,"endpoint",a[0]),t&2&&e.set_custom_element_data(o,"datasource",a[1]),t&4&&e.set_custom_element_data(o,"activecategory",a[2]),t&32&&e.set_custom_element_data(o,"excludedflags",a[5]),t&64&&e.set_custom_element_data(o,"lang",a[6]),t&128&&e.set_custom_element_data(o,"clientstyling",a[7]),t&256&&e.set_custom_element_data(o,"clientstylingurl",a[8]),t&512&&e.set_custom_element_data(o,"mbsource",a[9]),t&2048&&c!==(c=a[11]==="providers"?"NotVisible":"")&&e.attr(u,"class",c),t&8&&e.set_custom_element_data(l,"endpoint",a[3]),t&16&&e.set_custom_element_data(l,"datasource",a[4]),t&64&&e.set_custom_element_data(l,"lang",a[6]),t&128&&e.set_custom_element_data(l,"clientstyling",a[7]),t&256&&e.set_custom_element_data(l,"clientstylingurl",a[8]),t&512&&e.set_custom_element_data(l,"mbsource",a[9]),t&2048&&w!==(w=a[11]==="categories"?"NotVisible":"")&&e.attr(b,"class",w)},i:e.noop,o:e.noop,d(a){a&&e.detach(s),i[17](null),k=!1,e.run_all(A)}}}function j(i,s,r){let n;e.component_subscribe(i,P.$format,t=>r(12,n=t));let{endpointcategories:d=""}=s,{datasourcecategories:p=""}=s,{activecategory:y=""}=s,{endpointproviders:v=""}=s,{datasourceproviders:S=""}=s,{excludedflags:g=""}=s,{lang:m="en"}=s,{clientstyling:f=""}=s,{clientstylingurl:_=""}=s,{translationurl:h=""}=s,{mbsource:u}=s,o="categories",c,E;const b=()=>{fetch(h).then(C=>C.json()).then(C=>{Object.keys(C).forEach(N=>{B(N,C[N])})}).catch(C=>{console.log(C)})};Object.keys(F).forEach(t=>{B(t,F[t])});const l=t=>{o!==t&&r(11,o=t)},w=()=>{T(m)};e.onMount(()=>()=>{});const k=()=>l("categories"),A=()=>l("providers");function a(t){e.binding_callbacks[t?"unshift":"push"](()=>{c=t,r(10,c)})}return i.$$set=t=>{"endpointcategories"in t&&r(0,d=t.endpointcategories),"datasourcecategories"in t&&r(1,p=t.datasourcecategories),"activecategory"in t&&r(2,y=t.activecategory),"endpointproviders"in t&&r(3,v=t.endpointproviders),"datasourceproviders"in t&&r(4,S=t.datasourceproviders),"excludedflags"in t&&r(5,g=t.excludedflags),"lang"in t&&r(6,m=t.lang),"clientstyling"in t&&r(7,f=t.clientstyling),"clientstylingurl"in t&&r(8,_=t.clientstylingurl),"translationurl"in t&&r(14,h=t.translationurl),"mbsource"in t&&r(9,u=t.mbsource)},i.$$.update=()=>{i.$$.dirty&16384&&h&&b(),i.$$.dirty&64&&m&&w(),i.$$.dirty&1152&&f&&c&&e.setClientStyling(c,f),i.$$.dirty&1280&&_&&c&&e.setClientStylingURL(c,_),i.$$.dirty&1536&&u&&c&&e.setStreamStyling(c,`${u}.Style`,E)},[d,p,y,v,S,g,m,f,_,u,c,o,n,l,h,k,A,a]}class H extends e.SvelteComponent{constructor(s){super(),e.init(this,s,j,O,e.safe_not_equal,{endpointcategories:0,datasourcecategories:1,activecategory:2,endpointproviders:3,datasourceproviders:4,excludedflags:5,lang:6,clientstyling:7,clientstylingurl:8,translationurl:14,mbsource:9},M)}get endpointcategories(){return this.$$.ctx[0]}set endpointcategories(s){this.$$set({endpointcategories:s}),e.flush()}get datasourcecategories(){return this.$$.ctx[1]}set datasourcecategories(s){this.$$set({datasourcecategories:s}),e.flush()}get activecategory(){return this.$$.ctx[2]}set activecategory(s){this.$$set({activecategory:s}),e.flush()}get endpointproviders(){return this.$$.ctx[3]}set endpointproviders(s){this.$$set({endpointproviders:s}),e.flush()}get datasourceproviders(){return this.$$.ctx[4]}set datasourceproviders(s){this.$$set({datasourceproviders:s}),e.flush()}get excludedflags(){return this.$$.ctx[5]}set excludedflags(s){this.$$set({excludedflags:s}),e.flush()}get lang(){return this.$$.ctx[6]}set lang(s){this.$$set({lang:s}),e.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(s){this.$$set({clientstyling:s}),e.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(s){this.$$set({clientstylingurl:s}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(s){this.$$set({translationurl:s}),e.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(s){this.$$set({mbsource:s}),e.flush()}}e.create_custom_element(H,{endpointcategories:{},datasourcecategories:{},activecategory:{},endpointproviders:{},datasourceproviders:{},excludedflags:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=H;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Kr, b as Jr, s as qr, f as L, d as Xr, n as yt, e as H, E as hn, A as tt, u as Te, g as S, F as mn, j as B, k as b, m as T, o as V, v as Re, q as Qr, t as $r, l as Ia, z as kt, w as pa, H as xe, x as Pt, y as xn, G as ht, p as _a, B as ei, C as ti, D as ai, c as ni } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as ri, $ as ii, i as fe, g as si, b as oi } from "./CasinoSearch-
|
|
1
|
+
import { S as Kr, b as Jr, s as qr, f as L, d as Xr, n as yt, e as H, E as hn, A as tt, u as Te, g as S, F as mn, j as B, k as b, m as T, o as V, v as Re, q as Qr, t as $r, l as Ia, z as kt, w as pa, H as xe, x as Pt, y as xn, G as ht, p as _a, B as ei, C as ti, D as ai, c as ni } from "./CasinoNavigationSearch-D2TFQtTD.js";
|
|
2
|
+
import { a as ri, $ as ii, i as fe, g as si, b as oi } from "./CasinoSearch-B8ruAPZm.js";
|
|
3
3
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
4
4
|
function li(e) {
|
|
5
5
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -14,8 +14,8 @@ var hn = (e, t, a) => new Promise((n, r) => {
|
|
|
14
14
|
}, o = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(i, s);
|
|
15
15
|
o((a = a.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { S as Jr, b as qr, s as Xr, f as L, c as Qr, n as yt, d as H, E as mn, z as tt, t as Te, e as S, F as gn, h as B, j as b, k as T, m as V, u as Re, p as $r, q as ei, l as Ia, y as kt, v as pa, H as xe, w as Pt, x as Nn, G as ht, o as _a, A as ti, B as ai, C as ni, D as ri } from "./CasinoNavigationSearch-
|
|
18
|
-
import { a as ii, $ as si, i as fe, g as oi, b as li } from "./CasinoSearch-
|
|
17
|
+
import { S as Jr, b as qr, s as Xr, f as L, c as Qr, n as yt, d as H, E as mn, z as tt, t as Te, e as S, F as gn, h as B, j as b, k as T, m as V, u as Re, p as $r, q as ei, l as Ia, y as kt, v as pa, H as xe, w as Pt, x as Nn, G as ht, o as _a, A as ti, B as ai, C as ni, D as ri } from "./CasinoNavigationSearch-CCkQbdS5.js";
|
|
18
|
+
import { a as ii, $ as si, i as fe, g as oi, b as li } from "./CasinoSearch-y9Hu7PaC.js";
|
|
19
19
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
20
20
|
function ui(e) {
|
|
21
21
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ja=(e,t,a)=>new Promise((n,r)=>{var i=d=>{try{l(a.next(d))}catch(m){r(m)}},o=d=>{try{l(a.throw(d))}catch(m){r(m)}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(i,o);l((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./CasinoNavigationSearch-
|
|
1
|
+
"use strict";var Ja=(e,t,a)=>new Promise((n,r)=>{var i=d=>{try{l(a.next(d))}catch(m){r(m)}},o=d=>{try{l(a.throw(d))}catch(m){r(m)}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(i,o);l((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./CasinoNavigationSearch-CvEgXDMX.cjs"),K=require("./CasinoSearch-DAbJt683.cjs");require("../stencil/ui-image-BX-FBhad.cjs");function Cr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
2
2
|
//! version : 2.29.4
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
package/components/{CasinoNavigationSearch-eJclHiIa.js → CasinoNavigationSearch-CCkQbdS5.js}
RENAMED
|
@@ -582,7 +582,7 @@ if (typeof window != "undefined") {
|
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
584
|
};
|
|
585
|
-
customElements.define = t(customElements.define), import("./CasinoSearch-
|
|
585
|
+
customElements.define = t(customElements.define), import("./CasinoSearch-y9Hu7PaC.js").then((e) => e.C).then(({ default: e }) => {
|
|
586
586
|
!customElements.get("casino-search") && customElements.define("casino-search", e.element);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
@@ -598,7 +598,7 @@ if (typeof window != "undefined") {
|
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
600
|
};
|
|
601
|
-
customElements.define = t(customElements.define), import("./CasinoCategoriesProviders-
|
|
601
|
+
customElements.define = t(customElements.define), import("./CasinoCategoriesProviders-AZK-LyHz.js").then(({ default: e }) => {
|
|
602
602
|
!customElements.get("casino-categories-providers") && customElements.define("casino-categories-providers", e.element);
|
|
603
603
|
});
|
|
604
604
|
}
|
|
@@ -643,11 +643,10 @@ function De(t, e) {
|
|
|
643
643
|
}
|
|
644
644
|
function Re(t, e) {
|
|
645
645
|
return window.emMessageBus.subscribe(e, (n) => {
|
|
646
|
-
var f;
|
|
647
646
|
if (!t)
|
|
648
647
|
return;
|
|
649
648
|
const s = t.getRootNode(), a = window[S];
|
|
650
|
-
let i =
|
|
649
|
+
let i = a[e] && a[e].sheet;
|
|
651
650
|
i ? a[e].refCount = a[e].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), a[e] = {
|
|
652
651
|
sheet: i,
|
|
653
652
|
refCount: 1
|
package/components/{CasinoNavigationSearch-DCzsTtAH.cjs → CasinoNavigationSearch-CvEgXDMX.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ye=Object.defineProperty,we=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var x=(t,e,n)=>e in t?ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W=(t,e)=>{for(var n in e||(e={}))Se.call(e,n)&&x(t,n,e[n]);if(K)for(var n of K(e))Ee.call(e,n)&&x(t,n,e[n]);return t},Y=(t,e)=>we(t,pe(e));var h=(t,e,n)=>(x(t,typeof e!="symbol"?e+"":e,n),n);var Q=(t,e,n)=>new Promise((s,u)=>{var i=c=>{try{f(n.next(c))}catch(r){u(r)}},o=c=>{try{f(n.throw(c))}catch(r){u(r)}},f=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,o);f((n=n.apply(t,e)).next())});function p(){}function ee(t){return t()}function X(){return Object.create(null)}function O(t){t.forEach(ee)}function V(t){return typeof t=="function"}function te(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let j;function ve(t,e){return t===e?!0:(j||(j=document.createElement("a")),j.href=e,t===j.href)}function Ce(t){return Object.keys(t).length===0}function ne(t,...e){if(t==null){for(const s of e)s(void 0);return p}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Le(t,e,n){t.$$.on_destroy.push(ne(e,n))}function w(t,e){t.appendChild(e)}function se(t,e,n){const s=ke(t);if(!s.getElementById(e)){const u=$("style");u.id=e,u.textContent=n,Ne(s,u)}}function ke(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ne(t,e){return w(t.head||t,e),e.sheet}function H(t,e,n){t.insertBefore(e,n||null)}function T(t){t.parentNode&&t.parentNode.removeChild(t)}function Ae(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function $(t){return document.createElement(t)}function ie(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function I(t){return document.createTextNode(t)}function re(){return I(" ")}function Oe(){return I("")}function Te(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function N(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function l(t,e,n){const s=e.toLowerCase();s in t?t[s]=typeof t[s]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:N(t,e,n)}function Me(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pe(t,e){t.value=e==null?"":e}function Be(t,e,n){t.classList.toggle(e,!!n)}class He{constructor(e=!1){h(this,"is_svg",!1);h(this,"e");h(this,"n");h(this,"t");h(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,s=null){this.e||(this.is_svg?this.e=ie(n.nodeName):this.e=$(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(s)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)H(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(T)}}function Re(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let A;function k(t){A=t}function xe(){if(!A)throw new Error("Function called outside component initialization");return A}function oe(t){xe().$$.on_mount.push(t)}const E=[],B=[];let C=[];const Z=[],ce=Promise.resolve();let q=!1;function ue(){q||(q=!0,ce.then(d))}function De(){return ue(),ce}function U(t){C.push(t)}const D=new Set;let S=0;function d(){if(S!==0)return;const t=A;do{try{for(;S<E.length;){const e=E[S];S++,k(e),qe(e.$$)}}catch(e){throw E.length=0,S=0,e}for(k(null),E.length=0,S=0;B.length;)B.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];D.has(n)||(D.add(n),n())}C.length=0}while(E.length);for(;Z.length;)Z.pop()();q=!1,D.clear(),k(t)}function qe(t){if(t.fragment!==null){t.update(),O(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(U)}}function Ue(t){const e=[],n=[];C.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),C=e}const Ve=new Set;function Ie(t,e){t&&t.i&&(Ve.delete(t),t.i(e))}function ze(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Fe(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),U(()=>{const i=t.$$.on_mount.map(ee).filter(V);t.$$.on_destroy?t.$$.on_destroy.push(...i):O(i),t.$$.on_mount=[]}),u.forEach(U)}function Ge(t,e){const n=t.$$;n.fragment!==null&&(Ue(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Je(t,e){t.$$.dirty[0]===-1&&(E.push(t),ue(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function le(t,e,n,s,u,i,o=null,f=[-1]){const c=A;k(t);const r=t.$$={fragment:null,ctx:[],props:i,update:p,not_equal:u,bound:X(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:X(),dirty:f,skip_bound:!1,root:e.target||c.$$.root};o&&o(r.root);let _=!1;if(r.ctx=n?n(t,e.props||{},(g,L,...b)=>{const y=b.length?b[0]:L;return r.ctx&&u(r.ctx[g],r.ctx[g]=y)&&(!r.skip_bound&&r.bound[g]&&r.bound[g](y),_&&Je(t,g)),L}):[],r.update(),_=!0,O(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){const g=Me(e.target);r.fragment&&r.fragment.l(g),g.forEach(T)}else r.fragment&&r.fragment.c();e.intro&&Ie(t.$$.fragment),Fe(t,e.target,e.anchor),d()}k(c)}let ae;typeof HTMLElement=="function"&&(ae=class extends HTMLElement{constructor(e,n,s){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(e,n,s){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const u=this.$$c.$on(e,n);this.$$l_u.set(n,u)}super.addEventListener(e,n,s)}removeEventListener(e,n,s){if(super.removeEventListener(e,n,s),this.$$c){const u=this.$$l_u.get(n);u&&(u(),this.$$l_u.delete(n))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(i){return()=>{let o;return{c:function(){o=$("slot"),i!=="default"&&N(o,"name",i)},m:function(r,_){H(r,o,_)},d:function(r){r&&T(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=Re(this);for(const i of this.$$s)i in s&&(n[i]=[e(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=P(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Y(W({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const u=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=P(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(u),u();for(const i in this.$$l)for(const o of this.$$l[i]){const f=this.$$c.$on(i,o);this.$$l_u.set(o,f)}this.$$l={}}})}attributeChangedCallback(e,n,s){var u;this.$$r||(e=this.$$g_p(e),this.$$d[e]=P(e,s,this.$$p_d,"toProp"),(u=this.$$c)==null||u.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function P(t,e,n,s){var i;const u=(i=n[t])==null?void 0:i.type;if(e=u==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!n[t])return e;if(s==="toAttribute")switch(u){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(u){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function fe(t,e,n,s,u,i){let o=class extends ae{constructor(){super(t,n,u),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(f=>(e[f].attribute||f).toLowerCase())}};return Object.keys(e).forEach(f=>{Object.defineProperty(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(c){var r;c=P(f,c,e),this.$$d[f]=c,(r=this.$$c)==null||r.$set({[f]:c})}})}),s.forEach(f=>{Object.defineProperty(o.prototype,f,{get(){var c;return(c=this.$$c)==null?void 0:c[f]}})}),t.element=o,o}class de{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ge(this,1),this.$destroy=p}$on(e,n){if(!V(n))return p;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!Ce(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ke="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ke);if(typeof window!="undefined"){let t=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./CasinoSearch-BZ_ZSZxR.cjs")).then(e=>e.CasinoSearch_ce).then(({default:e})=>{!customElements.get("casino-search")&&customElements.define("casino-search",e.element)})}if(typeof window!="undefined"){let t=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./CasinoCategoriesProviders-CjzJD4F5.cjs")).then(({default:e})=>{!customElements.get("casino-categories-providers")&&customElements.define("casino-categories-providers",e.element)})}const v="__WIDGET_GLOBAL_STYLE_CACHE__";function he(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function ge(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then(s=>s.text()).then(s=>{const u=document.createElement("style");u.innerHTML=s,t&&t.appendChild(u)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function me(t,e,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=We(t,e),n;window[v]||(window[v]={}),n=Ye(t,e);const i=n.unsubscribe.bind(n),o=()=>{if(window[v][e]){const f=window[v][e];f.refCount>1?f.refCount=f.refCount-1:delete window[v][e]}i()};return n.unsubscribe=o,n}function We(t,e){const n=document.createElement("style");return window.emMessageBus.subscribe(e,s=>{t&&(n.innerHTML=s,t.appendChild(n))})}function Ye(t,e){return window.emMessageBus.subscribe(e,n=>{var f;if(!t)return;const s=t.getRootNode(),u=window[v];let i=(f=u[e])==null?void 0:f.sheet;i?u[e].refCount=u[e].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),u[e]={sheet:i,refCount:1});const o=s.adoptedStyleSheets||[];o.includes(i)||(s.adoptedStyleSheets=[...o,i])})}function Qe(t){se(t,"svelte-raimvs","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}")}function Xe(t){let e,n,s,u,i,o,f;return{c(){e=$("div"),n=$("div"),s=$("casino-search"),u=re(),i=$("div"),o=$("casino-categories-providers"),l(s,"endpoint",t[0]),l(s,"datasource",t[5]),l(s,"lang",t[9]),l(s,"session",t[1]),l(s,"userid",t[2]),l(s,"showfavorites",t[8]),l(s,"clientstyling",t[10]),l(s,"clientstylingurl",t[11]),l(s,"integratedgameframedesktop",t[12]),l(s,"integratedgameframemobile",t[13]),l(s,"gamepagemodalurl",t[14]),l(s,"mbsource",t[15]),l(o,"endpointcategories",t[3]),l(o,"datasourcecategories",t[5]),l(o,"activecategory",t[6]),l(o,"endpointproviders",t[4]),l(o,"datasourceproviders",t[5]),l(o,"excludedflags",t[7]),l(o,"lang",t[9]),l(o,"clientstyling",t[10]),l(o,"clientstylingurl",t[11]),l(o,"mbsource",t[15]),N(i,"class",f=t[17]===!0?"NotVisible":"")},m(c,r){H(c,e,r),w(e,n),w(n,s),w(e,u),w(e,i),w(i,o),t[18](e)},p(c,[r]){r&1&&l(s,"endpoint",c[0]),r&32&&l(s,"datasource",c[5]),r&512&&l(s,"lang",c[9]),r&2&&l(s,"session",c[1]),r&4&&l(s,"userid",c[2]),r&256&&l(s,"showfavorites",c[8]),r&1024&&l(s,"clientstyling",c[10]),r&2048&&l(s,"clientstylingurl",c[11]),r&4096&&l(s,"integratedgameframedesktop",c[12]),r&8192&&l(s,"integratedgameframemobile",c[13]),r&16384&&l(s,"gamepagemodalurl",c[14]),r&32768&&l(s,"mbsource",c[15]),r&8&&l(o,"endpointcategories",c[3]),r&32&&l(o,"datasourcecategories",c[5]),r&64&&l(o,"activecategory",c[6]),r&16&&l(o,"endpointproviders",c[4]),r&32&&l(o,"datasourceproviders",c[5]),r&128&&l(o,"excludedflags",c[7]),r&512&&l(o,"lang",c[9]),r&1024&&l(o,"clientstyling",c[10]),r&2048&&l(o,"clientstylingurl",c[11]),r&32768&&l(o,"mbsource",c[15]),r&131072&&f!==(f=c[17]===!0?"NotVisible":"")&&N(i,"class",f)},i:p,o:p,d(c){c&&T(e),t[18](null)}}}function Ze(t,e,n){let{endpoint:s=""}=e,{session:u=""}=e,{userid:i=""}=e,{endpointcategories:o=""}=e,{endpointproviders:f=""}=e,{datasource:c=""}=e,{activecategory:r=""}=e,{excludedflags:_=""}=e,{showfavorites:g=""}=e,{lang:L="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:y=""}=e,{integratedgameframedesktop:z="false"}=e,{integratedgameframemobile:F="false"}=e,{gamepagemodalurl:G="true"}=e,{mbsource:M}=e,R,_e,m;const J=a=>{a.data&&a.data.type=="searchActive"&&n(17,R=a.data.searchStatus),a.data&&a.data.type=="searchCancelled"&&n(17,R=a.data.searchStatus)};oe(()=>(window.addEventListener("message",J,!1),()=>{window.removeEventListener("message",J)}));function be(a){B[a?"unshift":"push"](()=>{m=a,n(16,m)})}return t.$$set=a=>{"endpoint"in a&&n(0,s=a.endpoint),"session"in a&&n(1,u=a.session),"userid"in a&&n(2,i=a.userid),"endpointcategories"in a&&n(3,o=a.endpointcategories),"endpointproviders"in a&&n(4,f=a.endpointproviders),"datasource"in a&&n(5,c=a.datasource),"activecategory"in a&&n(6,r=a.activecategory),"excludedflags"in a&&n(7,_=a.excludedflags),"showfavorites"in a&&n(8,g=a.showfavorites),"lang"in a&&n(9,L=a.lang),"clientstyling"in a&&n(10,b=a.clientstyling),"clientstylingurl"in a&&n(11,y=a.clientstylingurl),"integratedgameframedesktop"in a&&n(12,z=a.integratedgameframedesktop),"integratedgameframemobile"in a&&n(13,F=a.integratedgameframemobile),"gamepagemodalurl"in a&&n(14,G=a.gamepagemodalurl),"mbsource"in a&&n(15,M=a.mbsource)},t.$$.update=()=>{t.$$.dirty&66560&&b&&m&&he(m,b),t.$$.dirty&67584&&y&&m&&ge(m,y),t.$$.dirty&98304&&M&&m&&me(m,`${M}.Style`,_e)},[s,u,i,o,f,c,r,_,g,L,b,y,z,F,G,M,m,R,be]}class $e extends de{constructor(e){super(),le(this,e,Ze,Xe,te,{endpoint:0,session:1,userid:2,endpointcategories:3,endpointproviders:4,datasource:5,activecategory:6,excludedflags:7,showfavorites:8,lang:9,clientstyling:10,clientstylingurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,gamepagemodalurl:14,mbsource:15},Qe)}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),d()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[2]}set userid(e){this.$$set({userid:e}),d()}get endpointcategories(){return this.$$.ctx[3]}set endpointcategories(e){this.$$set({endpointcategories:e}),d()}get endpointproviders(){return this.$$.ctx[4]}set endpointproviders(e){this.$$set({endpointproviders:e}),d()}get datasource(){return this.$$.ctx[5]}set datasource(e){this.$$set({datasource:e}),d()}get activecategory(){return this.$$.ctx[6]}set activecategory(e){this.$$set({activecategory:e}),d()}get excludedflags(){return this.$$.ctx[7]}set excludedflags(e){this.$$set({excludedflags:e}),d()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(e){this.$$set({showfavorites:e}),d()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),d()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),d()}get gamepagemodalurl(){return this.$$.ctx[14]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),d()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),d()}}fe($e,{endpoint:{},session:{},userid:{},endpointcategories:{},endpointproviders:{},datasource:{},activecategory:{},excludedflags:{},showfavorites:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},gamepagemodalurl:{},mbsource:{}},[],[],!0);const et=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));exports.CasinoNavigationSearch_ce=et;exports.HtmlTag=He;exports.SvelteComponent=de;exports.append=w;exports.append_styles=se;exports.attr=N;exports.binding_callbacks=B;exports.component_subscribe=Le;exports.create_custom_element=fe;exports.destroy_each=Ae;exports.detach=T;exports.element=$;exports.empty=Oe;exports.ensure_array_like=ze;exports.flush=d;exports.init=le;exports.insert=H;exports.is_function=V;exports.listen=Te;exports.noop=p;exports.onMount=oe;exports.run_all=O;exports.safe_not_equal=te;exports.setClientStyling=he;exports.setClientStylingURL=ge;exports.setStreamStyling=me;exports.set_custom_element_data=l;exports.set_data=je;exports.set_input_value=Pe;exports.space=re;exports.src_url_equal=ve;exports.subscribe=ne;exports.svg_element=ie;exports.text=I;exports.tick=De;exports.toggle_class=Be;
|
|
1
|
+
"use strict";var ye=Object.defineProperty,we=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var x=(t,e,n)=>e in t?ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W=(t,e)=>{for(var n in e||(e={}))Se.call(e,n)&&x(t,n,e[n]);if(K)for(var n of K(e))Ee.call(e,n)&&x(t,n,e[n]);return t},Y=(t,e)=>we(t,pe(e));var h=(t,e,n)=>(x(t,typeof e!="symbol"?e+"":e,n),n);var Q=(t,e,n)=>new Promise((s,u)=>{var i=c=>{try{f(n.next(c))}catch(r){u(r)}},o=c=>{try{f(n.throw(c))}catch(r){u(r)}},f=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,o);f((n=n.apply(t,e)).next())});function p(){}function ee(t){return t()}function X(){return Object.create(null)}function O(t){t.forEach(ee)}function V(t){return typeof t=="function"}function te(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let j;function ve(t,e){return t===e?!0:(j||(j=document.createElement("a")),j.href=e,t===j.href)}function Ce(t){return Object.keys(t).length===0}function ne(t,...e){if(t==null){for(const s of e)s(void 0);return p}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Le(t,e,n){t.$$.on_destroy.push(ne(e,n))}function w(t,e){t.appendChild(e)}function se(t,e,n){const s=ke(t);if(!s.getElementById(e)){const u=$("style");u.id=e,u.textContent=n,Ne(s,u)}}function ke(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ne(t,e){return w(t.head||t,e),e.sheet}function H(t,e,n){t.insertBefore(e,n||null)}function T(t){t.parentNode&&t.parentNode.removeChild(t)}function Ae(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function $(t){return document.createElement(t)}function ie(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function I(t){return document.createTextNode(t)}function re(){return I(" ")}function Oe(){return I("")}function Te(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function N(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function l(t,e,n){const s=e.toLowerCase();s in t?t[s]=typeof t[s]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:N(t,e,n)}function Me(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pe(t,e){t.value=e==null?"":e}function Be(t,e,n){t.classList.toggle(e,!!n)}class He{constructor(e=!1){h(this,"is_svg",!1);h(this,"e");h(this,"n");h(this,"t");h(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,s=null){this.e||(this.is_svg?this.e=ie(n.nodeName):this.e=$(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(s)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)H(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(T)}}function Re(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let A;function k(t){A=t}function xe(){if(!A)throw new Error("Function called outside component initialization");return A}function oe(t){xe().$$.on_mount.push(t)}const E=[],B=[];let C=[];const Z=[],ce=Promise.resolve();let q=!1;function ue(){q||(q=!0,ce.then(d))}function De(){return ue(),ce}function U(t){C.push(t)}const D=new Set;let S=0;function d(){if(S!==0)return;const t=A;do{try{for(;S<E.length;){const e=E[S];S++,k(e),qe(e.$$)}}catch(e){throw E.length=0,S=0,e}for(k(null),E.length=0,S=0;B.length;)B.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];D.has(n)||(D.add(n),n())}C.length=0}while(E.length);for(;Z.length;)Z.pop()();q=!1,D.clear(),k(t)}function qe(t){if(t.fragment!==null){t.update(),O(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(U)}}function Ue(t){const e=[],n=[];C.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),C=e}const Ve=new Set;function Ie(t,e){t&&t.i&&(Ve.delete(t),t.i(e))}function ze(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Fe(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),U(()=>{const i=t.$$.on_mount.map(ee).filter(V);t.$$.on_destroy?t.$$.on_destroy.push(...i):O(i),t.$$.on_mount=[]}),u.forEach(U)}function Ge(t,e){const n=t.$$;n.fragment!==null&&(Ue(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Je(t,e){t.$$.dirty[0]===-1&&(E.push(t),ue(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function le(t,e,n,s,u,i,o=null,f=[-1]){const c=A;k(t);const r=t.$$={fragment:null,ctx:[],props:i,update:p,not_equal:u,bound:X(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:X(),dirty:f,skip_bound:!1,root:e.target||c.$$.root};o&&o(r.root);let _=!1;if(r.ctx=n?n(t,e.props||{},(g,L,...b)=>{const y=b.length?b[0]:L;return r.ctx&&u(r.ctx[g],r.ctx[g]=y)&&(!r.skip_bound&&r.bound[g]&&r.bound[g](y),_&&Je(t,g)),L}):[],r.update(),_=!0,O(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){const g=Me(e.target);r.fragment&&r.fragment.l(g),g.forEach(T)}else r.fragment&&r.fragment.c();e.intro&&Ie(t.$$.fragment),Fe(t,e.target,e.anchor),d()}k(c)}let ae;typeof HTMLElement=="function"&&(ae=class extends HTMLElement{constructor(e,n,s){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(e,n,s){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const u=this.$$c.$on(e,n);this.$$l_u.set(n,u)}super.addEventListener(e,n,s)}removeEventListener(e,n,s){if(super.removeEventListener(e,n,s),this.$$c){const u=this.$$l_u.get(n);u&&(u(),this.$$l_u.delete(n))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(i){return()=>{let o;return{c:function(){o=$("slot"),i!=="default"&&N(o,"name",i)},m:function(r,_){H(r,o,_)},d:function(r){r&&T(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=Re(this);for(const i of this.$$s)i in s&&(n[i]=[e(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=P(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Y(W({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const u=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=P(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(u),u();for(const i in this.$$l)for(const o of this.$$l[i]){const f=this.$$c.$on(i,o);this.$$l_u.set(o,f)}this.$$l={}}})}attributeChangedCallback(e,n,s){var u;this.$$r||(e=this.$$g_p(e),this.$$d[e]=P(e,s,this.$$p_d,"toProp"),(u=this.$$c)==null||u.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function P(t,e,n,s){var i;const u=(i=n[t])==null?void 0:i.type;if(e=u==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!n[t])return e;if(s==="toAttribute")switch(u){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(u){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function fe(t,e,n,s,u,i){let o=class extends ae{constructor(){super(t,n,u),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(f=>(e[f].attribute||f).toLowerCase())}};return Object.keys(e).forEach(f=>{Object.defineProperty(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(c){var r;c=P(f,c,e),this.$$d[f]=c,(r=this.$$c)==null||r.$set({[f]:c})}})}),s.forEach(f=>{Object.defineProperty(o.prototype,f,{get(){var c;return(c=this.$$c)==null?void 0:c[f]}})}),t.element=o,o}class de{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ge(this,1),this.$destroy=p}$on(e,n){if(!V(n))return p;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!Ce(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ke="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ke);if(typeof window!="undefined"){let t=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./CasinoSearch-DAbJt683.cjs")).then(e=>e.CasinoSearch_ce).then(({default:e})=>{!customElements.get("casino-search")&&customElements.define("casino-search",e.element)})}if(typeof window!="undefined"){let t=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./CasinoCategoriesProviders-b868yoe6.cjs")).then(({default:e})=>{!customElements.get("casino-categories-providers")&&customElements.define("casino-categories-providers",e.element)})}const v="__WIDGET_GLOBAL_STYLE_CACHE__";function he(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function ge(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then(s=>s.text()).then(s=>{const u=document.createElement("style");u.innerHTML=s,t&&t.appendChild(u)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function me(t,e,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=We(t,e),n;window[v]||(window[v]={}),n=Ye(t,e);const i=n.unsubscribe.bind(n),o=()=>{if(window[v][e]){const f=window[v][e];f.refCount>1?f.refCount=f.refCount-1:delete window[v][e]}i()};return n.unsubscribe=o,n}function We(t,e){const n=document.createElement("style");return window.emMessageBus.subscribe(e,s=>{t&&(n.innerHTML=s,t.appendChild(n))})}function Ye(t,e){return window.emMessageBus.subscribe(e,n=>{if(!t)return;const s=t.getRootNode(),u=window[v];let i=u[e]&&u[e].sheet;i?u[e].refCount=u[e].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),u[e]={sheet:i,refCount:1});const o=s.adoptedStyleSheets||[];o.includes(i)||(s.adoptedStyleSheets=[...o,i])})}function Qe(t){se(t,"svelte-raimvs","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}")}function Xe(t){let e,n,s,u,i,o,f;return{c(){e=$("div"),n=$("div"),s=$("casino-search"),u=re(),i=$("div"),o=$("casino-categories-providers"),l(s,"endpoint",t[0]),l(s,"datasource",t[5]),l(s,"lang",t[9]),l(s,"session",t[1]),l(s,"userid",t[2]),l(s,"showfavorites",t[8]),l(s,"clientstyling",t[10]),l(s,"clientstylingurl",t[11]),l(s,"integratedgameframedesktop",t[12]),l(s,"integratedgameframemobile",t[13]),l(s,"gamepagemodalurl",t[14]),l(s,"mbsource",t[15]),l(o,"endpointcategories",t[3]),l(o,"datasourcecategories",t[5]),l(o,"activecategory",t[6]),l(o,"endpointproviders",t[4]),l(o,"datasourceproviders",t[5]),l(o,"excludedflags",t[7]),l(o,"lang",t[9]),l(o,"clientstyling",t[10]),l(o,"clientstylingurl",t[11]),l(o,"mbsource",t[15]),N(i,"class",f=t[17]===!0?"NotVisible":"")},m(c,r){H(c,e,r),w(e,n),w(n,s),w(e,u),w(e,i),w(i,o),t[18](e)},p(c,[r]){r&1&&l(s,"endpoint",c[0]),r&32&&l(s,"datasource",c[5]),r&512&&l(s,"lang",c[9]),r&2&&l(s,"session",c[1]),r&4&&l(s,"userid",c[2]),r&256&&l(s,"showfavorites",c[8]),r&1024&&l(s,"clientstyling",c[10]),r&2048&&l(s,"clientstylingurl",c[11]),r&4096&&l(s,"integratedgameframedesktop",c[12]),r&8192&&l(s,"integratedgameframemobile",c[13]),r&16384&&l(s,"gamepagemodalurl",c[14]),r&32768&&l(s,"mbsource",c[15]),r&8&&l(o,"endpointcategories",c[3]),r&32&&l(o,"datasourcecategories",c[5]),r&64&&l(o,"activecategory",c[6]),r&16&&l(o,"endpointproviders",c[4]),r&32&&l(o,"datasourceproviders",c[5]),r&128&&l(o,"excludedflags",c[7]),r&512&&l(o,"lang",c[9]),r&1024&&l(o,"clientstyling",c[10]),r&2048&&l(o,"clientstylingurl",c[11]),r&32768&&l(o,"mbsource",c[15]),r&131072&&f!==(f=c[17]===!0?"NotVisible":"")&&N(i,"class",f)},i:p,o:p,d(c){c&&T(e),t[18](null)}}}function Ze(t,e,n){let{endpoint:s=""}=e,{session:u=""}=e,{userid:i=""}=e,{endpointcategories:o=""}=e,{endpointproviders:f=""}=e,{datasource:c=""}=e,{activecategory:r=""}=e,{excludedflags:_=""}=e,{showfavorites:g=""}=e,{lang:L="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:y=""}=e,{integratedgameframedesktop:z="false"}=e,{integratedgameframemobile:F="false"}=e,{gamepagemodalurl:G="true"}=e,{mbsource:M}=e,R,_e,m;const J=a=>{a.data&&a.data.type=="searchActive"&&n(17,R=a.data.searchStatus),a.data&&a.data.type=="searchCancelled"&&n(17,R=a.data.searchStatus)};oe(()=>(window.addEventListener("message",J,!1),()=>{window.removeEventListener("message",J)}));function be(a){B[a?"unshift":"push"](()=>{m=a,n(16,m)})}return t.$$set=a=>{"endpoint"in a&&n(0,s=a.endpoint),"session"in a&&n(1,u=a.session),"userid"in a&&n(2,i=a.userid),"endpointcategories"in a&&n(3,o=a.endpointcategories),"endpointproviders"in a&&n(4,f=a.endpointproviders),"datasource"in a&&n(5,c=a.datasource),"activecategory"in a&&n(6,r=a.activecategory),"excludedflags"in a&&n(7,_=a.excludedflags),"showfavorites"in a&&n(8,g=a.showfavorites),"lang"in a&&n(9,L=a.lang),"clientstyling"in a&&n(10,b=a.clientstyling),"clientstylingurl"in a&&n(11,y=a.clientstylingurl),"integratedgameframedesktop"in a&&n(12,z=a.integratedgameframedesktop),"integratedgameframemobile"in a&&n(13,F=a.integratedgameframemobile),"gamepagemodalurl"in a&&n(14,G=a.gamepagemodalurl),"mbsource"in a&&n(15,M=a.mbsource)},t.$$.update=()=>{t.$$.dirty&66560&&b&&m&&he(m,b),t.$$.dirty&67584&&y&&m&&ge(m,y),t.$$.dirty&98304&&M&&m&&me(m,`${M}.Style`,_e)},[s,u,i,o,f,c,r,_,g,L,b,y,z,F,G,M,m,R,be]}class $e extends de{constructor(e){super(),le(this,e,Ze,Xe,te,{endpoint:0,session:1,userid:2,endpointcategories:3,endpointproviders:4,datasource:5,activecategory:6,excludedflags:7,showfavorites:8,lang:9,clientstyling:10,clientstylingurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,gamepagemodalurl:14,mbsource:15},Qe)}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),d()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[2]}set userid(e){this.$$set({userid:e}),d()}get endpointcategories(){return this.$$.ctx[3]}set endpointcategories(e){this.$$set({endpointcategories:e}),d()}get endpointproviders(){return this.$$.ctx[4]}set endpointproviders(e){this.$$set({endpointproviders:e}),d()}get datasource(){return this.$$.ctx[5]}set datasource(e){this.$$set({datasource:e}),d()}get activecategory(){return this.$$.ctx[6]}set activecategory(e){this.$$set({activecategory:e}),d()}get excludedflags(){return this.$$.ctx[7]}set excludedflags(e){this.$$set({excludedflags:e}),d()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(e){this.$$set({showfavorites:e}),d()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),d()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),d()}get gamepagemodalurl(){return this.$$.ctx[14]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),d()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),d()}}fe($e,{endpoint:{},session:{},userid:{},endpointcategories:{},endpointproviders:{},datasource:{},activecategory:{},excludedflags:{},showfavorites:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},gamepagemodalurl:{},mbsource:{}},[],[],!0);const et=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));exports.CasinoNavigationSearch_ce=et;exports.HtmlTag=He;exports.SvelteComponent=de;exports.append=w;exports.append_styles=se;exports.attr=N;exports.binding_callbacks=B;exports.component_subscribe=Le;exports.create_custom_element=fe;exports.destroy_each=Ae;exports.detach=T;exports.element=$;exports.empty=Oe;exports.ensure_array_like=ze;exports.flush=d;exports.init=le;exports.insert=H;exports.is_function=V;exports.listen=Te;exports.noop=p;exports.onMount=oe;exports.run_all=O;exports.safe_not_equal=te;exports.setClientStyling=he;exports.setClientStylingURL=ge;exports.setStreamStyling=me;exports.set_custom_element_data=l;exports.set_data=je;exports.set_input_value=Pe;exports.space=re;exports.src_url_equal=ve;exports.subscribe=ne;exports.svg_element=ie;exports.text=I;exports.tick=De;exports.toggle_class=Be;
|
package/components/{CasinoNavigationSearch-BXnm3TTr.js → CasinoNavigationSearch-D2TFQtTD.js}
RENAMED
|
@@ -545,7 +545,7 @@ if (typeof window < "u") {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
};
|
|
548
|
-
customElements.define = t(customElements.define), import("./CasinoSearch-
|
|
548
|
+
customElements.define = t(customElements.define), import("./CasinoSearch-B8ruAPZm.js").then((e) => e.C).then(({ default: e }) => {
|
|
549
549
|
!customElements.get("casino-search") && customElements.define("casino-search", e.element);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
@@ -561,7 +561,7 @@ if (typeof window < "u") {
|
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
563
|
};
|
|
564
|
-
customElements.define = t(customElements.define), import("./CasinoCategoriesProviders-
|
|
564
|
+
customElements.define = t(customElements.define), import("./CasinoCategoriesProviders-DnAFzl9y.js").then(({ default: e }) => {
|
|
565
565
|
!customElements.get("casino-categories-providers") && customElements.define("casino-categories-providers", e.element);
|
|
566
566
|
});
|
|
567
567
|
}
|
|
@@ -609,7 +609,7 @@ function Le(t, e) {
|
|
|
609
609
|
if (!t)
|
|
610
610
|
return;
|
|
611
611
|
const s = t.getRootNode(), i = window[p];
|
|
612
|
-
let l = i[e]
|
|
612
|
+
let l = i[e] && i[e].sheet;
|
|
613
613
|
l ? i[e].refCount = i[e].refCount + 1 : (l = new CSSStyleSheet(), l.replaceSync(n), i[e] = {
|
|
614
614
|
sheet: l,
|
|
615
615
|
refCount: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-DCzsTtAH.cjs"),T=require("./CasinoSearch-BZ_ZSZxR.cjs"),j={en:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"},"zh-hk":{popularProviders:"热门供应商",otherProviders:"其他供应商",loading:"加载请稍候...",games:"游戏"},de:{popularProviders:"Beliebte Anbieter",otherProviders:"Andere Anbieter",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},fr:{popularProviders:"Fournisseurs populaires",otherProviders:"Autres fournisseurs",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{popularProviders:"Proveedores Populares",otherProviders:"Otros Proveedores",loading:"Cargando",games:"juegos"},tr:{popularProviders:"Şimdi Oyna",otherProviders:"Rastgele oynanacak oyun yok",loading:"Son arama",games:"Oyunları Ara"},ru:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},ro:{popularProviders:"Furnizori de top",otherProviders:"Alti furnizori",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{popularProviders:"Popularni brendovi",otherProviders:"Ostali brendovi",loading:"Učitavanje",games:"Igre"},hu:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pt:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sr:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},"pt-br":{popularProviders:"provedores populares",otherProviders:"Outros provedores",Loading:"Carregando",games:"jogos"},"es-mx":{popularProviders:"Proveedores Populares",otherProviders:"Otros proveedores",Loading:"Cargando, por favor espere...",games:"juegos"},"en-us":{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"}};function F(r,t){T.addMessages(r,t)}function E(r){T.$locale.set(r)}function V(r){e.append_styles(r,"svelte-1bsli1q","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}")}function x(r,t,l){const o=r.slice();return o[21]=t[l],o}function A(r,t,l){const o=r.slice();return o[21]=t[l],o}function I(r){let t,l=r[4]("popularProviders")+"",o,n,p,d,v=r[4]("otherProviders")+"",m,_,P,h=e.ensure_array_like(r[1]),u=[];for(let a=0;a<h.length;a+=1)u[a]=q(A(r,h,a));let f=e.ensure_array_like(r[2]),c=[];for(let a=0;a<f.length;a+=1)c[a]=M(x(r,f,a));return{c(){t=e.element("h4"),o=e.text(l),n=e.space();for(let a=0;a<u.length;a+=1)u[a].c();p=e.space(),d=e.element("h4"),m=e.text(v),_=e.space();for(let a=0;a<c.length;a+=1)c[a].c();P=e.empty(),e.attr(t,"class","ProviderTitle"),e.attr(d,"class","ProviderTitle")},m(a,g){e.insert(a,t,g),e.append(t,o),e.insert(a,n,g);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(a,g);e.insert(a,p,g),e.insert(a,d,g),e.append(d,m),e.insert(a,_,g);for(let i=0;i<c.length;i+=1)c[i]&&c[i].m(a,g);e.insert(a,P,g)},p(a,g){if(g&16&&l!==(l=a[4]("popularProviders")+"")&&e.set_data(o,l),g&50){h=e.ensure_array_like(a[1]);let i;for(i=0;i<h.length;i+=1){const y=A(a,h,i);u[i]?u[i].p(y,g):(u[i]=q(y),u[i].c(),u[i].m(p.parentNode,p))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}if(g&16&&v!==(v=a[4]("otherProviders")+"")&&e.set_data(m,v),g&52){f=e.ensure_array_like(a[2]);let i;for(i=0;i<f.length;i+=1){const y=x(a,f,i);c[i]?c[i].p(y,g):(c[i]=M(y),c[i].c(),c[i].m(P.parentNode,P))}for(;i<c.length;i+=1)c[i].d(1);c.length=f.length}},d(a){a&&(e.detach(t),e.detach(n),e.detach(p),e.detach(d),e.detach(_),e.detach(P)),e.destroy_each(u,a),e.destroy_each(c,a)}}}function R(r){let t,l=r[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(l),e.attr(t,"class","Message")},m(n,p){e.insert(n,t,p),e.append(t,o)},p(n,p){p&16&&l!==(l=n[4]("loading")+"")&&e.set_data(o,l)},d(n){n&&e.detach(t)}}}function q(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,y;function C(){return r[13](r[21])}return{c(){t=e.element("div"),l=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(a),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(w,b){e.insert(w,t,b),e.append(t,l),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),i||(y=e.listen(t,"click",C),i=!0)},p(w,b){r=w,b&2&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),b&2&&n!==(n=r[21].name)&&e.attr(l,"alt",n),b&2&&m!==(m=r[21].name+"")&&e.set_data(_,m),b&2&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),b&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(w){w&&e.detach(t),i=!1,y()}}}function M(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,y,C;function w(){return r[14](r[21])}return{c(){t=e.element("div"),l=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(a),i=e.space(),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(b,k){e.insert(b,t,k),e.append(t,l),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),e.append(t,i),y||(C=e.listen(t,"click",w),y=!0)},p(b,k){r=b,k&4&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),k&4&&n!==(n=r[21].name)&&e.attr(l,"alt",n),k&4&&m!==(m=r[21].name+"")&&e.set_data(_,m),k&4&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),k&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(b){b&&e.detach(t),y=!1,C()}}}function U(r){let t;function l(p,d){return p[3]===!0?R:I}let o=l(r),n=o(r);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","CasinoProviders")},m(p,d){e.insert(p,t,d),n.m(t,null),r[15](t)},p(p,[d]){o===(o=l(p))&&n?n.p(p,d):(n.d(1),n=o(p),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(p){p&&e.detach(t),n.d(),r[15](null)}}}function G(r,t,l){let o;e.component_subscribe(r,T.$format,s=>l(4,o=s));let{endpoint:n=""}=t,{datasource:p=""}=t,{lang:d="en"}=t,{clientstyling:v=""}=t,{clientstylingurl:m=""}=t,{translationurl:_=""}=t,{mbsource:P}=t,h=[],u=[],f=[],c=!1,a,g;const i=()=>{fetch(_).then(S=>S.json()).then(S=>{Object.keys(S).forEach(L=>{F(L,S[L])})}).catch(S=>{console.log(S)})};Object.keys(j).forEach(s=>{F(s,j[s])});const y=()=>{l(3,c=!0);const s=new URL(`${n}/v1/casino/vendors`);s.searchParams.append("datasource",p),s.searchParams.append("language",d),s.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(s).then(S=>S.json()).then(S=>{l(3,c=!1),h=S.items.map(O=>O),l(1,u=h.filter(O=>O.isTopVendor===!0)),l(2,f=h.filter(O=>O.isTopVendor===!1));let L=[];L=h.flatMap(O=>O.subVendors),f.push(...L.filter(O=>O.games.count>0))})},C=(s,S,L)=>{window.postMessage({type:"OpenGameProvider",providerId:s,providerName:S,providerLogo:L},window.location.href)},w=()=>{E(d)},b=s=>C(s.id,s.name,s.logo),k=s=>C(s.id,s.name,s.logo);function z(s){e.binding_callbacks[s?"unshift":"push"](()=>{a=s,l(0,a)})}return r.$$set=s=>{"endpoint"in s&&l(6,n=s.endpoint),"datasource"in s&&l(7,p=s.datasource),"lang"in s&&l(8,d=s.lang),"clientstyling"in s&&l(9,v=s.clientstyling),"clientstylingurl"in s&&l(10,m=s.clientstylingurl),"translationurl"in s&&l(11,_=s.translationurl),"mbsource"in s&&l(12,P=s.mbsource)},r.$$.update=()=>{r.$$.dirty&448&&n&&d&&p&&y(),r.$$.dirty&256&&d&&w(),r.$$.dirty&2048&&_&&i(),r.$$.dirty&513&&v&&a&&e.setClientStyling(a,v),r.$$.dirty&1025&&m&&a&&e.setClientStylingURL(a,m),r.$$.dirty&4097&&P&&a&&e.setStreamStyling(a,`${P}.Style`,g)},[a,u,f,c,o,C,n,p,d,v,m,_,P,b,k,z]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,G,U,e.safe_not_equal,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11,mbsource:12},V)}get endpoint(){return this.$$.ctx[6]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[7]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[11]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(N,{endpoint:{},datasource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=N;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-CvEgXDMX.cjs"),T=require("./CasinoSearch-DAbJt683.cjs"),j={en:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"},"zh-hk":{popularProviders:"热门供应商",otherProviders:"其他供应商",loading:"加载请稍候...",games:"游戏"},de:{popularProviders:"Beliebte Anbieter",otherProviders:"Andere Anbieter",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},fr:{popularProviders:"Fournisseurs populaires",otherProviders:"Autres fournisseurs",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{popularProviders:"Proveedores Populares",otherProviders:"Otros Proveedores",loading:"Cargando",games:"juegos"},tr:{popularProviders:"Şimdi Oyna",otherProviders:"Rastgele oynanacak oyun yok",loading:"Son arama",games:"Oyunları Ara"},ru:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},ro:{popularProviders:"Furnizori de top",otherProviders:"Alti furnizori",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{popularProviders:"Popularni brendovi",otherProviders:"Ostali brendovi",loading:"Učitavanje",games:"Igre"},hu:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pt:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sr:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},"pt-br":{popularProviders:"provedores populares",otherProviders:"Outros provedores",Loading:"Carregando",games:"jogos"},"es-mx":{popularProviders:"Proveedores Populares",otherProviders:"Otros proveedores",Loading:"Cargando, por favor espere...",games:"juegos"},"en-us":{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"}};function F(r,t){T.addMessages(r,t)}function E(r){T.$locale.set(r)}function V(r){e.append_styles(r,"svelte-1bsli1q","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}")}function x(r,t,l){const o=r.slice();return o[21]=t[l],o}function A(r,t,l){const o=r.slice();return o[21]=t[l],o}function I(r){let t,l=r[4]("popularProviders")+"",o,n,p,d,v=r[4]("otherProviders")+"",m,_,P,h=e.ensure_array_like(r[1]),u=[];for(let a=0;a<h.length;a+=1)u[a]=q(A(r,h,a));let f=e.ensure_array_like(r[2]),c=[];for(let a=0;a<f.length;a+=1)c[a]=M(x(r,f,a));return{c(){t=e.element("h4"),o=e.text(l),n=e.space();for(let a=0;a<u.length;a+=1)u[a].c();p=e.space(),d=e.element("h4"),m=e.text(v),_=e.space();for(let a=0;a<c.length;a+=1)c[a].c();P=e.empty(),e.attr(t,"class","ProviderTitle"),e.attr(d,"class","ProviderTitle")},m(a,g){e.insert(a,t,g),e.append(t,o),e.insert(a,n,g);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(a,g);e.insert(a,p,g),e.insert(a,d,g),e.append(d,m),e.insert(a,_,g);for(let i=0;i<c.length;i+=1)c[i]&&c[i].m(a,g);e.insert(a,P,g)},p(a,g){if(g&16&&l!==(l=a[4]("popularProviders")+"")&&e.set_data(o,l),g&50){h=e.ensure_array_like(a[1]);let i;for(i=0;i<h.length;i+=1){const y=A(a,h,i);u[i]?u[i].p(y,g):(u[i]=q(y),u[i].c(),u[i].m(p.parentNode,p))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}if(g&16&&v!==(v=a[4]("otherProviders")+"")&&e.set_data(m,v),g&52){f=e.ensure_array_like(a[2]);let i;for(i=0;i<f.length;i+=1){const y=x(a,f,i);c[i]?c[i].p(y,g):(c[i]=M(y),c[i].c(),c[i].m(P.parentNode,P))}for(;i<c.length;i+=1)c[i].d(1);c.length=f.length}},d(a){a&&(e.detach(t),e.detach(n),e.detach(p),e.detach(d),e.detach(_),e.detach(P)),e.destroy_each(u,a),e.destroy_each(c,a)}}}function R(r){let t,l=r[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(l),e.attr(t,"class","Message")},m(n,p){e.insert(n,t,p),e.append(t,o)},p(n,p){p&16&&l!==(l=n[4]("loading")+"")&&e.set_data(o,l)},d(n){n&&e.detach(t)}}}function q(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,y;function C(){return r[13](r[21])}return{c(){t=e.element("div"),l=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(a),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(w,b){e.insert(w,t,b),e.append(t,l),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),i||(y=e.listen(t,"click",C),i=!0)},p(w,b){r=w,b&2&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),b&2&&n!==(n=r[21].name)&&e.attr(l,"alt",n),b&2&&m!==(m=r[21].name+"")&&e.set_data(_,m),b&2&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),b&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(w){w&&e.detach(t),i=!1,y()}}}function M(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,y,C;function w(){return r[14](r[21])}return{c(){t=e.element("div"),l=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(a),i=e.space(),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(b,k){e.insert(b,t,k),e.append(t,l),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),e.append(t,i),y||(C=e.listen(t,"click",w),y=!0)},p(b,k){r=b,k&4&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),k&4&&n!==(n=r[21].name)&&e.attr(l,"alt",n),k&4&&m!==(m=r[21].name+"")&&e.set_data(_,m),k&4&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),k&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(b){b&&e.detach(t),y=!1,C()}}}function U(r){let t;function l(p,d){return p[3]===!0?R:I}let o=l(r),n=o(r);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","CasinoProviders")},m(p,d){e.insert(p,t,d),n.m(t,null),r[15](t)},p(p,[d]){o===(o=l(p))&&n?n.p(p,d):(n.d(1),n=o(p),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(p){p&&e.detach(t),n.d(),r[15](null)}}}function G(r,t,l){let o;e.component_subscribe(r,T.$format,s=>l(4,o=s));let{endpoint:n=""}=t,{datasource:p=""}=t,{lang:d="en"}=t,{clientstyling:v=""}=t,{clientstylingurl:m=""}=t,{translationurl:_=""}=t,{mbsource:P}=t,h=[],u=[],f=[],c=!1,a,g;const i=()=>{fetch(_).then(S=>S.json()).then(S=>{Object.keys(S).forEach(L=>{F(L,S[L])})}).catch(S=>{console.log(S)})};Object.keys(j).forEach(s=>{F(s,j[s])});const y=()=>{l(3,c=!0);const s=new URL(`${n}/v1/casino/vendors`);s.searchParams.append("datasource",p),s.searchParams.append("language",d),s.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(s).then(S=>S.json()).then(S=>{l(3,c=!1),h=S.items.map(O=>O),l(1,u=h.filter(O=>O.isTopVendor===!0)),l(2,f=h.filter(O=>O.isTopVendor===!1));let L=[];L=h.flatMap(O=>O.subVendors),f.push(...L.filter(O=>O.games.count>0))})},C=(s,S,L)=>{window.postMessage({type:"OpenGameProvider",providerId:s,providerName:S,providerLogo:L},window.location.href)},w=()=>{E(d)},b=s=>C(s.id,s.name,s.logo),k=s=>C(s.id,s.name,s.logo);function z(s){e.binding_callbacks[s?"unshift":"push"](()=>{a=s,l(0,a)})}return r.$$set=s=>{"endpoint"in s&&l(6,n=s.endpoint),"datasource"in s&&l(7,p=s.datasource),"lang"in s&&l(8,d=s.lang),"clientstyling"in s&&l(9,v=s.clientstyling),"clientstylingurl"in s&&l(10,m=s.clientstylingurl),"translationurl"in s&&l(11,_=s.translationurl),"mbsource"in s&&l(12,P=s.mbsource)},r.$$.update=()=>{r.$$.dirty&448&&n&&d&&p&&y(),r.$$.dirty&256&&d&&w(),r.$$.dirty&2048&&_&&i(),r.$$.dirty&513&&v&&a&&e.setClientStyling(a,v),r.$$.dirty&1025&&m&&a&&e.setClientStylingURL(a,m),r.$$.dirty&4097&&P&&a&&e.setStreamStyling(a,`${P}.Style`,g)},[a,u,f,c,o,C,n,p,d,v,m,_,P,b,k,z]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,G,U,e.safe_not_equal,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11,mbsource:12},V)}get endpoint(){return this.$$.ctx[6]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[7]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[11]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(N,{endpoint:{},datasource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=N;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Q, b as W, s as X, f as M, c as Y, n as I, d as O, h as C, k as S, e as v, p as Z, v as $, t as A, j as c, u as E, w as N, x as R, m as L, y as ee, E as V, l as J, A as te, B as re, C as ie, D as le } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as se, $ as oe, b as ae } from "./CasinoSearch-
|
|
1
|
+
import { S as Q, b as W, s as X, f as M, c as Y, n as I, d as O, h as C, k as S, e as v, p as Z, v as $, t as A, j as c, u as E, w as N, x as R, m as L, y as ee, E as V, l as J, A as te, B as re, C as ie, D as le } from "./CasinoNavigationSearch-CCkQbdS5.js";
|
|
2
|
+
import { a as se, $ as oe, b as ae } from "./CasinoSearch-y9Hu7PaC.js";
|
|
3
3
|
const U = {
|
|
4
4
|
en: {
|
|
5
5
|
popularProviders: "Popular Suppliers",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Q, b as W, s as X, f as M, d as Y, n as I, e as O, j as C, m as S, g as v, q as Z, w as $, u as A, k as c, v as z, x as N, y as q, o as L, z as ee, E as V, l as J, B as te, C as re, D as ie, c as le } from "./CasinoNavigationSearch-
|
|
2
|
-
import { a as se, $ as oe, b as ae } from "./CasinoSearch-
|
|
1
|
+
import { S as Q, b as W, s as X, f as M, d as Y, n as I, e as O, j as C, m as S, g as v, q as Z, w as $, u as A, k as c, v as z, x as N, y as q, o as L, z as ee, E as V, l as J, B as te, C as re, D as ie, c as le } from "./CasinoNavigationSearch-D2TFQtTD.js";
|
|
2
|
+
import { a as se, $ as oe, b as ae } from "./CasinoSearch-B8ruAPZm.js";
|
|
3
3
|
const R = {
|
|
4
4
|
en: {
|
|
5
5
|
popularProviders: "Popular Suppliers",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as K, s as $t, a as Qr, r as er, i as Yr, S as Kr, b as $r, f as N, c as en, d as tn, e as G, g as b, h as bt, j as F, k as x, l as ne, m as P, o as X, p as vt, q as rn, t as nn, u as $, v as ee, w as yt, x as _t, y as an, z as tr, A as g, B as on, C as sn, D as un } from "./CasinoNavigationSearch-
|
|
1
|
+
import { n as K, s as $t, a as Qr, r as er, i as Yr, S as Kr, b as $r, f as N, c as en, d as tn, e as G, g as b, h as bt, j as F, k as x, l as ne, m as P, o as X, p as vt, q as rn, t as nn, u as $, v as ee, w as yt, x as _t, y as an, z as tr, A as g, B as on, C as sn, D as un } from "./CasinoNavigationSearch-D2TFQtTD.js";
|
|
2
2
|
const re = [];
|
|
3
3
|
function ln(e, t) {
|
|
4
4
|
return {
|
|
@@ -3988,7 +3988,7 @@ if (typeof window < "u") {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
};
|
|
3990
3990
|
};
|
|
3991
|
-
customElements.define = e(customElements.define), import("./CasinoGameThumbnail-
|
|
3991
|
+
customElements.define = e(customElements.define), import("./CasinoGameThumbnail-BMUwvi16.js").then(({ default: t }) => {
|
|
3992
3992
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", t.element);
|
|
3993
3993
|
});
|
|
3994
3994
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var st=(e,t,r)=>new Promise((n,a)=>{var o=l=>{try{u(r.next(l))}catch(c){a(c)}},s=l=>{try{u(r.throw(l))}catch(c){a(c)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);u((r=r.apply(e,t)).next())});const i=require("./CasinoNavigationSearch-DCzsTtAH.cjs"),q=[];function Lr(e,t){return{subscribe:Se(e,t).subscribe}}function Se(e,t=i.noop){let r;const n=new Set;function a(u){if(i.safe_not_equal(e,u)&&(e=u,r)){const l=!q.length;for(const c of n)c[1](),q.push(c,e);if(l){for(let c=0;c<q.length;c+=2)q[c][0](q[c+1]);q.length=0}}}function o(u){a(u(e))}function s(u,l=i.noop){const c=[u,l];return n.add(c),n.size===1&&(r=t(a,o)||i.noop),u(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:a,update:o,subscribe:s}}function $(e,t,r){const n=!Array.isArray(e),a=n?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Lr(r,(s,u)=>{let l=!1;const c=[];let h=0,m=i.noop;const p=()=>{if(h)return;m();const g=t(n?c[0]:c,s,u);o?s(g):m=i.is_function(g)?g:i.noop},d=a.map((g,b)=>i.subscribe(g,H=>{c[b]=H,h&=~(1<<b),l&&p()},()=>{h|=1<<b}));return l=!0,p(),function(){i.run_all(d),m(),l=!1}})}function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr=function(t){return Dr(t)&&!Gr(t)};function Dr(e){return!!e&&typeof e=="object"}function Gr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||kr(e)}var Fr=typeof Symbol=="function"&&Symbol.for,Ur=Fr?Symbol.for("react.element"):60103;function kr(e){return e.$$typeof===Ur}function jr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Z(jr(e),e,t):e}function Vr(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function zr(e,t){if(!t.customMerge)return Z;var r=t.customMerge(e);return typeof r=="function"?r:Z}function Wr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ut(e){return Object.keys(e).concat(Wr(e))}function Ut(e,t){try{return t in e}catch(r){return!1}}function Xr(e,t){return Ut(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function qr(e,t,r){var n={};return r.isMergeableObject(e)&&ut(e).forEach(function(a){n[a]=ae(e[a],r)}),ut(t).forEach(function(a){Xr(e,a)||(Ut(e,a)&&r.isMergeableObject(t[a])?n[a]=zr(a,r)(e[a],t[a],r):n[a]=ae(t[a],r))}),n}function Z(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Vr,r.isMergeableObject=r.isMergeableObject||Mr,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),a=Array.isArray(e),o=n===a;return o?n?r.arrayMerge(e,t,r):qr(e,t,r):ae(t,r)}Z.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Z(n,a,r)},{})};var Zr=Z,Jr=Zr;const Qr=Nr(Jr);var Me=function(e,t){return Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Me(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Me(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,a=arguments.length;n<a;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 Yr(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Ae(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;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 Ce(e,t){var r=t&&t.cache?t.cache:an,n=t&&t.serializer?t.serializer:rn,a=t&&t.strategy?t.strategy:en;return a(e,{cache:r,serializer:n})}function Kr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function $r(e,t,r,n){var a=Kr(n)?n:r(n),o=t.get(a);return typeof o=="undefined"&&(o=e.call(this,n),t.set(a,o)),o}function kt(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(a,o)),o}function jt(e,t,r,n,a){return r.bind(t,e,n,a)}function en(e,t){var r=e.length===1?$r:kt;return jt(e,this,r,t.cache.create(),t.serializer)}function tn(e,t){return jt(e,this,kt,t.cache.create(),t.serializer)}var rn=function(){return JSON.stringify(arguments)},nn=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}(),an={create:function(){return new nn}},Ie={variadic:tn},be=function(){return be=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},be.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 x;(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"})(x||(x={}));var J;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(J||(J={}));function lt(e){return e.type===x.literal}function on(e){return e.type===x.argument}function Vt(e){return e.type===x.number}function zt(e){return e.type===x.date}function Wt(e){return e.type===x.time}function Xt(e){return e.type===x.select}function qt(e){return e.type===x.plural}function sn(e){return e.type===x.pound}function Zt(e){return e.type===x.tag}function Jt(e){return!!(e&&typeof e=="object"&&e.type===J.number)}function De(e){return!!(e&&typeof e=="object"&&e.type===J.dateTime)}var Qt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,un=/(?:[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 ln(e){var t={};return e.replace(un,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 w=function(){return w=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},w.apply(this,arguments)};var hn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function cn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(hn).filter(function(p){return p.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var u=s[0],l=s.slice(1),c=0,h=l;c<h.length;c++){var m=h[c];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:l})}return r}function fn(e){return e.replace(/^(.*?)-/,"")}var ht=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Yt=/^(@+)?(\+|#+)?[rs]?$/g,mn=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function ct(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Yt,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function $t(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 pn(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)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ft(e){var t={},r=$t(e);return r||t}function dn(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=fn(a.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=w(w(w({},t),{notation:"scientific"}),a.options.reduce(function(l,c){return w(w({},l),ft(c))},{}));continue;case"engineering":t=w(w(w({},t),{notation:"engineering"}),a.options.reduce(function(l,c){return w(w({},l),ft(c))},{}));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(a.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(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(mn,function(l,c,h,m,p,d){if(c)t.minimumIntegerDigits=h.length;else{if(m&&p)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(ht.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(ht,function(l,c,h,m,p,d){return h==="*"?t.minimumFractionDigits=c.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&d?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+d.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=a.options[0];o==="w"?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=w(w({},t),ct(o)));continue}if(Yt.test(a.stem)){t=w(w({},t),ct(a.stem));continue}var s=$t(a.stem);s&&(t=w(w({},t),s));var u=pn(a.stem);u&&(t=w(w({},t),u))}return t}var fe={"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 gn(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var s=1+(o&1),u=o<2?1:3+(o>>1),l="a",c=bn(t);for((c=="H"||c=="k")&&(u=0);u-- >0;)r+=l;for(;s-- >0;)r=c+r}else a==="J"?r+="H":r+=a}return r}function bn(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 a=fe[n||""]||fe[r||""]||fe["".concat(r,"-001")]||fe["001"];return a[0]}var Oe,_n=new RegExp("^".concat(Qt.source,"*")),vn=new RegExp("".concat(Qt.source,"*$"));function v(e,t){return{start:e,end:t}}var yn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Sn=!!String.fromCodePoint,En=!!Object.fromEntries,xn=!!String.prototype.codePointAt,wn=!!String.prototype.trimStart,Tn=!!String.prototype.trimEnd,Hn=!!Number.isSafeInteger,Pn=Hn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ge=!0;try{var Bn=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ge=((Oe=Bn.exec("a"))===null||Oe===void 0?void 0:Oe[0])==="a"}catch(e){Ge=!1}var mt=yn?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Fe=Sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,s;a>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},pt=En?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],s=o[0],u=o[1];r[s]=u}return r},er=xn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},An=wn?function(t){return t.trimStart()}:function(t){return t.replace(_n,"")},Cn=Tn?function(t){return t.trimEnd()}:function(t){return t.replace(vn,"")};function tr(e,t){return new RegExp(e,t)}var Ue;if(Ge){var dt=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ue=function(t,r){var n;dt.lastIndex=r;var a=dt.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Ue=function(t,r){for(var n=[];;){var a=er(t,r);if(a===void 0||rr(a)||Ln(a))break;n.push(a),r+=a>=65536?2:1}return Fe.apply(void 0,n)};var In=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;a.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),a.push({type:x.pound,location:v(u,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&&ke(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:x.literal,value:"<".concat(a,"/>"),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,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ke(this.char()))return this.error(_.INVALID_TAG,v(u,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return a!==c?this.error(_.UNMATCHED_CLOSING_TAG,v(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:x.tag,value:a,children:s,location:v(n,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,v(u,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()&&Rn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){a+=s;continue}var u=this.tryParseLeftAngleBracket();if(u){a+=u;continue}break}var l=v(n,this.clonePosition());return{val:{type:x.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!On(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 Fe.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(),Fe(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 a=this.parseIdentifierIfPossible().value;if(!a)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:x.argument,value:a,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,a,n);default:return this.error(_.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ue(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),s=v(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,s=this.clonePosition(),u=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(u){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,v(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=Cn(m.val);if(p.length===0)return this.error(_.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));var d=v(h,this.clonePosition());c={style:p,styleLocation:d}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var b=v(a,this.clonePosition());if(c&&mt(c==null?void 0:c.style,"::",0)){var H=An(c.style.slice(2));if(u==="number"){var m=this.parseNumberSkeletonFromString(H,c.styleLocation);return m.err?m:{val:{type:x.number,value:n,location:b,style:m.val},err:null}}else{if(H.length===0)return this.error(_.EXPECT_DATE_TIME_SKELETON,b);var L=H;this.locale&&(L=gn(H,this.locale));var p={type:J.dateTime,pattern:L,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ln(L):{}},N=u==="date"?x.date:x.time;return{val:{type:N,value:n,location:b,style:p},err:null}}}return{val:{type:u==="number"?x.number:u==="date"?x.date:x.time,value:n,location:b,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,v(A,be({},A)));this.bumpSpace();var M=this.parseIdentifierIfPossible(),S=0;if(u!=="select"&&M.value==="offset"){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),M=this.parseIdentifierIfPossible(),S=m.val}var I=this.tryParsePluralOrSelectOptions(t,u,r,M);if(I.err)return I;var g=this.tryParseArgumentClose(a);if(g.err)return g;var G=v(a,this.clonePosition());return u==="select"?{val:{type:x.select,value:n,options:pt(I.val),location:G},err:null}:{val:{type:x.plural,value:n,options:pt(I.val),offset:S,pluralType:u==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(_.INVALID_ARGUMENT_TYPE,v(s,l))}},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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(a,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=cn(t)}catch(a){return this.error(_.INVALID_NUMBER_SKELETON,r)}return{val:{type:J.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?dn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,s=!1,u=[],l=new Set,c=a.value,h=a.location;;){if(c.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=v(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(l.has(c))return this.error(r==="select"?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);c==="other"&&(s=!0),this.bumpSpace();var d=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 g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(d);if(b.err)return b;u.push([c,{value:g.val,location:v(d,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,h=o.location}return u.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:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)o=!0,s=s*10+(u-48),this.bump();else break}var l=v(a,this.clonePosition());return o?(s*=n,Pn(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},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=er(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(mt(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()&&rr(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 ke(e){return e>=97&&e<=122||e>=65&&e<=90}function On(e){return ke(e)||e===47}function Rn(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 rr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ln(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 je(e){e.forEach(function(t){if(delete t.location,Xt(t)||qt(t))for(var r in t.options)delete t.options[r].location,je(t.options[r].value);else Vt(t)&&Jt(t.style)||(zt(t)||Wt(t))&&De(t.style)?delete t.style.location:Zt(t)&&je(t.children)})}function Nn(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new In(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||je(r.val),r.val}var Q;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Q||(Q={}));var xe=function(e){Ee(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gt=function(e){Ee(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Q.INVALID_VALUE,o)||this}return t}(xe),Mn=function(e){Ee(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Q.INVALID_VALUE,a)||this}return t}(xe),Dn=function(e){Ee(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,'"'),Q.MISSING_VALUE,n)||this}return t}(xe),R;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(R||(R={}));function Gn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==R.literal||r.type!==R.literal?t.push(r):n.value+=r.value,t},[])}function Fn(e){return typeof e=="function"}function pe(e,t,r,n,a,o,s){if(e.length===1&<(e[0]))return[{type:R.literal,value:e[0].value}];for(var u=[],l=0,c=e;l<c.length;l++){var h=c[l];if(lt(h)){u.push({type:R.literal,value:h.value});continue}if(sn(h)){typeof o=="number"&&u.push({type:R.literal,value:r.getNumberFormat(t).format(o)});continue}var m=h.value;if(!(a&&m in a))throw new Dn(m,s);var p=a[m];if(on(h)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),u.push({type:typeof p=="string"?R.literal:R.object,value:p});continue}if(zt(h)){var d=typeof h.style=="string"?n.date[h.style]:De(h.style)?h.style.parsedOptions:void 0;u.push({type:R.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Wt(h)){var d=typeof h.style=="string"?n.time[h.style]:De(h.style)?h.style.parsedOptions:n.time.medium;u.push({type:R.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Vt(h)){var d=typeof h.style=="string"?n.number[h.style]:Jt(h.style)?h.style.parsedOptions:void 0;d&&d.scale&&(p=p*(d.scale||1)),u.push({type:R.literal,value:r.getNumberFormat(t,d).format(p)});continue}if(Zt(h)){var g=h.children,b=h.value,H=a[b];if(!Fn(H))throw new Mn(b,"function",s);var L=pe(g,t,r,n,a,o),N=H(L.map(function(S){return S.value}));Array.isArray(N)||(N=[N]),u.push.apply(u,N.map(function(S){return{type:typeof S=="string"?R.literal:R.object,value:S}}))}if(Xt(h)){var A=h.options[p]||h.options.other;if(!A)throw new gt(h.value,p,Object.keys(h.options),s);u.push.apply(u,pe(A.value,t,r,n,a));continue}if(qt(h)){var A=h.options["=".concat(p)];if(!A){if(!Intl.PluralRules)throw new xe(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var st=(e,t,r)=>new Promise((n,a)=>{var o=l=>{try{u(r.next(l))}catch(c){a(c)}},s=l=>{try{u(r.throw(l))}catch(c){a(c)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);u((r=r.apply(e,t)).next())});const i=require("./CasinoNavigationSearch-CvEgXDMX.cjs"),q=[];function Lr(e,t){return{subscribe:Se(e,t).subscribe}}function Se(e,t=i.noop){let r;const n=new Set;function a(u){if(i.safe_not_equal(e,u)&&(e=u,r)){const l=!q.length;for(const c of n)c[1](),q.push(c,e);if(l){for(let c=0;c<q.length;c+=2)q[c][0](q[c+1]);q.length=0}}}function o(u){a(u(e))}function s(u,l=i.noop){const c=[u,l];return n.add(c),n.size===1&&(r=t(a,o)||i.noop),u(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:a,update:o,subscribe:s}}function $(e,t,r){const n=!Array.isArray(e),a=n?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Lr(r,(s,u)=>{let l=!1;const c=[];let h=0,m=i.noop;const p=()=>{if(h)return;m();const g=t(n?c[0]:c,s,u);o?s(g):m=i.is_function(g)?g:i.noop},d=a.map((g,b)=>i.subscribe(g,H=>{c[b]=H,h&=~(1<<b),l&&p()},()=>{h|=1<<b}));return l=!0,p(),function(){i.run_all(d),m(),l=!1}})}function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr=function(t){return Dr(t)&&!Gr(t)};function Dr(e){return!!e&&typeof e=="object"}function Gr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||kr(e)}var Fr=typeof Symbol=="function"&&Symbol.for,Ur=Fr?Symbol.for("react.element"):60103;function kr(e){return e.$$typeof===Ur}function jr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Z(jr(e),e,t):e}function Vr(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function zr(e,t){if(!t.customMerge)return Z;var r=t.customMerge(e);return typeof r=="function"?r:Z}function Wr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ut(e){return Object.keys(e).concat(Wr(e))}function Ut(e,t){try{return t in e}catch(r){return!1}}function Xr(e,t){return Ut(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function qr(e,t,r){var n={};return r.isMergeableObject(e)&&ut(e).forEach(function(a){n[a]=ae(e[a],r)}),ut(t).forEach(function(a){Xr(e,a)||(Ut(e,a)&&r.isMergeableObject(t[a])?n[a]=zr(a,r)(e[a],t[a],r):n[a]=ae(t[a],r))}),n}function Z(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Vr,r.isMergeableObject=r.isMergeableObject||Mr,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),a=Array.isArray(e),o=n===a;return o?n?r.arrayMerge(e,t,r):qr(e,t,r):ae(t,r)}Z.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Z(n,a,r)},{})};var Zr=Z,Jr=Zr;const Qr=Nr(Jr);var Me=function(e,t){return Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Me(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Me(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,a=arguments.length;n<a;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 Yr(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Ae(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;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 Ce(e,t){var r=t&&t.cache?t.cache:an,n=t&&t.serializer?t.serializer:rn,a=t&&t.strategy?t.strategy:en;return a(e,{cache:r,serializer:n})}function Kr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function $r(e,t,r,n){var a=Kr(n)?n:r(n),o=t.get(a);return typeof o=="undefined"&&(o=e.call(this,n),t.set(a,o)),o}function kt(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(a,o)),o}function jt(e,t,r,n,a){return r.bind(t,e,n,a)}function en(e,t){var r=e.length===1?$r:kt;return jt(e,this,r,t.cache.create(),t.serializer)}function tn(e,t){return jt(e,this,kt,t.cache.create(),t.serializer)}var rn=function(){return JSON.stringify(arguments)},nn=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}(),an={create:function(){return new nn}},Ie={variadic:tn},be=function(){return be=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},be.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 x;(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"})(x||(x={}));var J;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(J||(J={}));function lt(e){return e.type===x.literal}function on(e){return e.type===x.argument}function Vt(e){return e.type===x.number}function zt(e){return e.type===x.date}function Wt(e){return e.type===x.time}function Xt(e){return e.type===x.select}function qt(e){return e.type===x.plural}function sn(e){return e.type===x.pound}function Zt(e){return e.type===x.tag}function Jt(e){return!!(e&&typeof e=="object"&&e.type===J.number)}function De(e){return!!(e&&typeof e=="object"&&e.type===J.dateTime)}var Qt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,un=/(?:[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 ln(e){var t={};return e.replace(un,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 w=function(){return w=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},w.apply(this,arguments)};var hn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function cn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(hn).filter(function(p){return p.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var u=s[0],l=s.slice(1),c=0,h=l;c<h.length;c++){var m=h[c];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:l})}return r}function fn(e){return e.replace(/^(.*?)-/,"")}var ht=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Yt=/^(@+)?(\+|#+)?[rs]?$/g,mn=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function ct(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Yt,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function $t(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 pn(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)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ft(e){var t={},r=$t(e);return r||t}function dn(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=fn(a.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=w(w(w({},t),{notation:"scientific"}),a.options.reduce(function(l,c){return w(w({},l),ft(c))},{}));continue;case"engineering":t=w(w(w({},t),{notation:"engineering"}),a.options.reduce(function(l,c){return w(w({},l),ft(c))},{}));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(a.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(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(mn,function(l,c,h,m,p,d){if(c)t.minimumIntegerDigits=h.length;else{if(m&&p)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(ht.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(ht,function(l,c,h,m,p,d){return h==="*"?t.minimumFractionDigits=c.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&d?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+d.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=a.options[0];o==="w"?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=w(w({},t),ct(o)));continue}if(Yt.test(a.stem)){t=w(w({},t),ct(a.stem));continue}var s=$t(a.stem);s&&(t=w(w({},t),s));var u=pn(a.stem);u&&(t=w(w({},t),u))}return t}var fe={"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 gn(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var s=1+(o&1),u=o<2?1:3+(o>>1),l="a",c=bn(t);for((c=="H"||c=="k")&&(u=0);u-- >0;)r+=l;for(;s-- >0;)r=c+r}else a==="J"?r+="H":r+=a}return r}function bn(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 a=fe[n||""]||fe[r||""]||fe["".concat(r,"-001")]||fe["001"];return a[0]}var Oe,_n=new RegExp("^".concat(Qt.source,"*")),vn=new RegExp("".concat(Qt.source,"*$"));function v(e,t){return{start:e,end:t}}var yn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Sn=!!String.fromCodePoint,En=!!Object.fromEntries,xn=!!String.prototype.codePointAt,wn=!!String.prototype.trimStart,Tn=!!String.prototype.trimEnd,Hn=!!Number.isSafeInteger,Pn=Hn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ge=!0;try{var Bn=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ge=((Oe=Bn.exec("a"))===null||Oe===void 0?void 0:Oe[0])==="a"}catch(e){Ge=!1}var mt=yn?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Fe=Sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,s;a>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},pt=En?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],s=o[0],u=o[1];r[s]=u}return r},er=xn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},An=wn?function(t){return t.trimStart()}:function(t){return t.replace(_n,"")},Cn=Tn?function(t){return t.trimEnd()}:function(t){return t.replace(vn,"")};function tr(e,t){return new RegExp(e,t)}var Ue;if(Ge){var dt=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ue=function(t,r){var n;dt.lastIndex=r;var a=dt.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Ue=function(t,r){for(var n=[];;){var a=er(t,r);if(a===void 0||rr(a)||Ln(a))break;n.push(a),r+=a>=65536?2:1}return Fe.apply(void 0,n)};var In=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;a.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),a.push({type:x.pound,location:v(u,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&&ke(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:x.literal,value:"<".concat(a,"/>"),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,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ke(this.char()))return this.error(_.INVALID_TAG,v(u,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return a!==c?this.error(_.UNMATCHED_CLOSING_TAG,v(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:x.tag,value:a,children:s,location:v(n,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,v(u,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()&&Rn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){a+=s;continue}var u=this.tryParseLeftAngleBracket();if(u){a+=u;continue}break}var l=v(n,this.clonePosition());return{val:{type:x.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!On(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 Fe.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(),Fe(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 a=this.parseIdentifierIfPossible().value;if(!a)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:x.argument,value:a,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,a,n);default:return this.error(_.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ue(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),s=v(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,s=this.clonePosition(),u=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(u){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,v(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=Cn(m.val);if(p.length===0)return this.error(_.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));var d=v(h,this.clonePosition());c={style:p,styleLocation:d}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var b=v(a,this.clonePosition());if(c&&mt(c==null?void 0:c.style,"::",0)){var H=An(c.style.slice(2));if(u==="number"){var m=this.parseNumberSkeletonFromString(H,c.styleLocation);return m.err?m:{val:{type:x.number,value:n,location:b,style:m.val},err:null}}else{if(H.length===0)return this.error(_.EXPECT_DATE_TIME_SKELETON,b);var L=H;this.locale&&(L=gn(H,this.locale));var p={type:J.dateTime,pattern:L,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ln(L):{}},N=u==="date"?x.date:x.time;return{val:{type:N,value:n,location:b,style:p},err:null}}}return{val:{type:u==="number"?x.number:u==="date"?x.date:x.time,value:n,location:b,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,v(A,be({},A)));this.bumpSpace();var M=this.parseIdentifierIfPossible(),S=0;if(u!=="select"&&M.value==="offset"){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),M=this.parseIdentifierIfPossible(),S=m.val}var I=this.tryParsePluralOrSelectOptions(t,u,r,M);if(I.err)return I;var g=this.tryParseArgumentClose(a);if(g.err)return g;var G=v(a,this.clonePosition());return u==="select"?{val:{type:x.select,value:n,options:pt(I.val),location:G},err:null}:{val:{type:x.plural,value:n,options:pt(I.val),offset:S,pluralType:u==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(_.INVALID_ARGUMENT_TYPE,v(s,l))}},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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(a,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=cn(t)}catch(a){return this.error(_.INVALID_NUMBER_SKELETON,r)}return{val:{type:J.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?dn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,s=!1,u=[],l=new Set,c=a.value,h=a.location;;){if(c.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=v(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(l.has(c))return this.error(r==="select"?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);c==="other"&&(s=!0),this.bumpSpace();var d=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 g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(d);if(b.err)return b;u.push([c,{value:g.val,location:v(d,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,h=o.location}return u.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:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)o=!0,s=s*10+(u-48),this.bump();else break}var l=v(a,this.clonePosition());return o?(s*=n,Pn(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},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=er(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(mt(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()&&rr(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 ke(e){return e>=97&&e<=122||e>=65&&e<=90}function On(e){return ke(e)||e===47}function Rn(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 rr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ln(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 je(e){e.forEach(function(t){if(delete t.location,Xt(t)||qt(t))for(var r in t.options)delete t.options[r].location,je(t.options[r].value);else Vt(t)&&Jt(t.style)||(zt(t)||Wt(t))&&De(t.style)?delete t.style.location:Zt(t)&&je(t.children)})}function Nn(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new In(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||je(r.val),r.val}var Q;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Q||(Q={}));var xe=function(e){Ee(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gt=function(e){Ee(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Q.INVALID_VALUE,o)||this}return t}(xe),Mn=function(e){Ee(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Q.INVALID_VALUE,a)||this}return t}(xe),Dn=function(e){Ee(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,'"'),Q.MISSING_VALUE,n)||this}return t}(xe),R;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(R||(R={}));function Gn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==R.literal||r.type!==R.literal?t.push(r):n.value+=r.value,t},[])}function Fn(e){return typeof e=="function"}function pe(e,t,r,n,a,o,s){if(e.length===1&<(e[0]))return[{type:R.literal,value:e[0].value}];for(var u=[],l=0,c=e;l<c.length;l++){var h=c[l];if(lt(h)){u.push({type:R.literal,value:h.value});continue}if(sn(h)){typeof o=="number"&&u.push({type:R.literal,value:r.getNumberFormat(t).format(o)});continue}var m=h.value;if(!(a&&m in a))throw new Dn(m,s);var p=a[m];if(on(h)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),u.push({type:typeof p=="string"?R.literal:R.object,value:p});continue}if(zt(h)){var d=typeof h.style=="string"?n.date[h.style]:De(h.style)?h.style.parsedOptions:void 0;u.push({type:R.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Wt(h)){var d=typeof h.style=="string"?n.time[h.style]:De(h.style)?h.style.parsedOptions:n.time.medium;u.push({type:R.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Vt(h)){var d=typeof h.style=="string"?n.number[h.style]:Jt(h.style)?h.style.parsedOptions:void 0;d&&d.scale&&(p=p*(d.scale||1)),u.push({type:R.literal,value:r.getNumberFormat(t,d).format(p)});continue}if(Zt(h)){var g=h.children,b=h.value,H=a[b];if(!Fn(H))throw new Mn(b,"function",s);var L=pe(g,t,r,n,a,o),N=H(L.map(function(S){return S.value}));Array.isArray(N)||(N=[N]),u.push.apply(u,N.map(function(S){return{type:typeof S=="string"?R.literal:R.object,value:S}}))}if(Xt(h)){var A=h.options[p]||h.options.other;if(!A)throw new gt(h.value,p,Object.keys(h.options),s);u.push.apply(u,pe(A.value,t,r,n,a));continue}if(qt(h)){var A=h.options["=".concat(p)];if(!A){if(!Intl.PluralRules)throw new xe(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,Q.MISSING_INTL_API,s);var M=r.getPluralRules(t,{type:h.pluralType}).select(p-(h.offset||0));A=h.options[M]||h.options.other}if(!A)throw new gt(h.value,p,Object.keys(h.options),s);u.push.apply(u,pe(A.value,t,r,n,a,p-(h.offset||0)));continue}}return Gn(u)}function Un(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 kn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Un(e[n],t[n]),r},U({},e)):e}function Re(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function jn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ce(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ae([void 0],r,!1)))},{cache:Re(e.number),strategy:Ie.variadic}),getDateTimeFormat:Ce(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ae([void 0],r,!1)))},{cache:Re(e.dateTime),strategy:Ie.variadic}),getPluralRules:Ce(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ae([void 0],r,!1)))},{cache:Re(e.pluralRules),strategy:Ie.variadic})}}var Vn=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=o.formatToParts(l);if(c.length===1)return c[0].value;var h=c.reduce(function(m,p){return!m.length||p.type!==R.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.value,m},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return pe(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.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=a||{};s.formatters;var u=Yr(s,["formatters"]);this.ast=e.__parse(t,U(U({},u),{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=kn(e.formats,n),this.formatters=a&&a.formatters||jn(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=Nn,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 zn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let a=0;a<r.length;a++)if(typeof n=="object"){if(a>0){const o=r.slice(a,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[a]]}else n=void 0;return n}const V={},Wn=(e,t,r)=>r&&(t in V||(V[t]={}),e in V[t]||(V[t][e]=r),r),nr=(e,t)=>{if(t==null)return;if(t in V&&e in V[t])return V[t][e];const r=we(t);for(let n=0;n<r.length;n++){const a=r[n],o=qn(a,e);if(o)return Wn(e,t,o)}};let Ke;const oe=Se({});function Xn(e){return Ke[e]||null}function ar(e){return e in Ke}function qn(e,t){if(!ar(e))return null;const r=Xn(e);return zn(r,t)}function Zn(e){if(e==null)return;const t=we(e);for(let r=0;r<t.length;r++){const n=t[r];if(ar(n))return n}}function $e(e,...t){delete V[e],oe.update(r=>(r[e]=Qr.all([r[e]||{},...t]),r))}$([oe],([e])=>Object.keys(e));oe.subscribe(e=>Ke=e);const de={};function Jn(e,t){de[e].delete(t),de[e].size===0&&delete de[e]}function ir(e){return de[e]}function Qn(e){return we(e).map(t=>{const r=ir(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ve(e){return e==null?!1:we(e).some(t=>{var r;return(r=ir(t))==null?void 0:r.size})}function Yn(e,t){return Promise.all(t.map(n=>(Jn(e,n),n().then(a=>a.default||a)))).then(n=>$e(e,...n))}const ne={};function or(e){if(!Ve(e))return e in ne?ne[e]:Promise.resolve();const t=Qn(e);return ne[e]=Promise.all(t.map(([r,n])=>Yn(r,n))).then(()=>{if(Ve(e))return or(e);delete ne[e]}),ne[e]}const Kn={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"}}},$n={fallbackLocale:null,loadingDelay:200,formats:Kn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ea=$n;function Y(){return ea}const Le=Se(!1);var ta=Object.defineProperty,ra=Object.defineProperties,na=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,aa=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,_t=(e,t,r)=>t in e?ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oa=(e,t)=>{for(var r in t||(t={}))aa.call(t,r)&&_t(e,r,t[r]);if(bt)for(var r of bt(t))ia.call(t,r)&&_t(e,r,t[r]);return e},sa=(e,t)=>ra(e,na(t));let ze;const _e=Se(null);function vt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function we(e,t=Y().fallbackLocale){const r=vt(e);return t?[...new Set([...r,...vt(t)])]:r}function W(){return ze!=null?ze:void 0}_e.subscribe(e=>{ze=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ua=e=>{if(e&&Zn(e)&&Ve(e)){const{loadingDelay:t}=Y();let r;return typeof window!="undefined"&&W()!=null&&t?r=window.setTimeout(()=>Le.set(!0),t):Le.set(!0),or(e).then(()=>{_e.set(e)}).finally(()=>{clearTimeout(r),Le.set(!1)})}return _e.set(e)},X=sa(oa({},_e),{set:ua}),Te=e=>{const t=Object.create(null);return n=>{const a=JSON.stringify(n);return a in t?t[a]:t[a]=e(n)}};var la=Object.defineProperty,ve=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,yt=(e,t,r)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,et=(e,t)=>{for(var r in t||(t={}))sr.call(t,r)&&yt(e,r,t[r]);if(ve)for(var r of ve(t))ur.call(t,r)&&yt(e,r,t[r]);return e},ee=(e,t)=>{var r={};for(var n in e)sr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&ur.call(e,n)&&(r[n]=e[n]);return r};const ie=(e,t)=>{const{formats:r}=Y();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ha=Te(e=>{var t=e,{locale:r,format:n}=t,a=ee(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(a=ie("number",n)),new Intl.NumberFormat(r,a)}),ca=Te(e=>{var t=e,{locale:r,format:n}=t,a=ee(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?a=ie("date",n):Object.keys(a).length===0&&(a=ie("date","short")),new Intl.DateTimeFormat(r,a)}),fa=Te(e=>{var t=e,{locale:r,format:n}=t,a=ee(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?a=ie("time",n):Object.keys(a).length===0&&(a=ie("time","short")),new Intl.DateTimeFormat(r,a)}),ma=(e={})=>{var t=e,{locale:r=W()}=t,n=ee(t,["locale"]);return ha(et({locale:r},n))},pa=(e={})=>{var t=e,{locale:r=W()}=t,n=ee(t,["locale"]);return ca(et({locale:r},n))},da=(e={})=>{var t=e,{locale:r=W()}=t,n=ee(t,["locale"]);return fa(et({locale:r},n))},ga=Te((e,t=W())=>new Vn(e,t,Y().formats,{ignoreTag:Y().ignoreTag})),ba=(e,t={})=>{var r,n,a,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:u,locale:l=W(),default:c}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=nr(e,l);if(!h)h=(o=(a=(n=(r=Y()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))!=null?a:c)!=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(!u)return h;let m=h;try{m=ga(h,l).format(u)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return m},_a=(e,t)=>da(t).format(e),va=(e,t)=>pa(t).format(e),ya=(e,t)=>ma(t).format(e),Sa=(e,t=W())=>nr(e,t),lr=$([X,oe],()=>ba);$([X],()=>_a);$([X],()=>va);$([X],()=>ya);$([X,oe],()=>Sa);function St(e,t){$e(e,t)}function Ea(e){X.set(e)}const Et={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -15,4 +15,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
***************************************************************************** */var We=function(e,t){return We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},We(e,t)};function se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");We(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Xe(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qe(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Ze(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function j(e){return typeof e=="function"}function hr(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ne=hr(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
17
17
|
`+r.map(function(n,a){return a+1+") "+n.toString()}).join(`
|
|
18
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Je(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var He=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,a,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=Xe(s),l=u.next();!l.done;l=u.next()){var c=l.value;c.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(j(h))try{h()}catch(b){o=b instanceof Ne?b.errors:[b]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var p=Xe(m),d=p.next();!d.done;d=p.next()){var g=d.value;try{xt(g)}catch(b){o=o!=null?o:[],b instanceof Ne?o=Ze(Ze([],qe(o)),qe(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}}if(o)throw new Ne(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)xt(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)&&Je(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Je(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),cr=He.EMPTY;function fr(e){return e instanceof He||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function xt(e){j(e)?e():e.unsubscribe()}var xa={Promise:void 0},wa={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Ze([e,t],qe(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ta(e){wa.setTimeout(function(){throw e})}function wt(){}function ge(e){e()}var mr=function(e){se(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,fr(r)&&r.add(n)):n.destination=Ba,n}return t.create=function(r,n,a){return new Qe(r,n,a)},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}(He),Ha=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){me(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){me(n)}else me(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){me(r)}},e}(),Qe=function(e){se(t,e);function t(r,n,a){var o=e.call(this)||this,s;return j(r)||!r?s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0}:s=r,o.destination=new Ha(s),o}return t}(mr);function me(e){Ta(e)}function Pa(e){throw e}var Ba={closed:!0,next:wt,error:Pa,complete:wt},Aa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ca(e){return e}function Ia(e){return e.length===0?Ca:e.length===1?e[0]:function(r){return e.reduce(function(n,a){return a(n)},r)}}var Tt=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 a=this,o=Ra(t)?t:new Qe(t,r,n);return ge(function(){var s=a,u=s.operator,l=s.source;o.add(u?u.call(o,l):l?a._subscribe(o):a._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=Ht(r),new r(function(a,o){var s=new Qe({next:function(u){try{t(u)}catch(l){o(l),s.unsubscribe()}},error:o,complete:a});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[Aa]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ia(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ht(t),new t(function(n,a){var o;r.subscribe(function(s){return o=s},function(s){return a(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function Ht(e){var t;return(t=e!=null?e:xa.Promise)!==null&&t!==void 0?t:Promise}function Oa(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}function Ra(e){return e&&e instanceof mr||Oa(e)&&fr(e)}var La=hr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),pr=function(e){se(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 Pt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new La},t.prototype.next=function(r){var n=this;ge(function(){var a,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=Xe(n.currentObservers),u=s.next();!u.done;u=s.next()){var l=u.value;l.next(r)}}catch(c){a={error:c}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var n=this;ge(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var a=n.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;ge(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,a=this,o=a.hasError,s=a.isStopped,u=a.observers;return o||s?cr:(this.currentObservers=null,u.push(r),new He(function(){n.currentObservers=null,Je(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,o=n.thrownError,s=n.isStopped;a?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Tt;return r.source=this,r},t.create=function(r,n){return new Pt(r,n)},t}(Tt),Pt=function(e){se(t,e);function t(r,n){var a=e.call(this)||this;return a.destination=r,a.source=n,a}return t.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},t.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.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,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:cr},t}(pr),dr={now:function(){return(dr.delegate||Date).now()},delegate:void 0},Na=function(e){se(t,e);function t(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=dr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=a,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,a=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,u=n._timestampProvider,l=n._windowTime;a||(o.push(r),!s&&o.push(u.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,o=a._infiniteTimeWindow,s=a._buffer,u=s.slice(),l=0;l<u.length&&!r.closed;l+=o?1:2)r.next(u[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,a=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*n;if(n<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var l=a.now(),c=0,h=1;h<o.length&&o[h]<=l;h+=2)c=h;c&&o.splice(0,c+1)}},t}(pr);const Bt=[],At={},Ma=(e,t=0)=>{if(Bt.indexOf(e)==-1){const r=new Na(t);At[e]=r,Bt.push(e)}return At[e]};window.emWidgets={topic:Ma};const Da=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),ye=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;const Ga=(e,t)=>function(...r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{e.apply(this,r)},t)};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("./CasinoGameThumbnail-9VdwPGp6.cjs")).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function Ye(e){"@babel/helpers - typeof";return Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(e)}function Pe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function K(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ye(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ct(e,t){return Pe(2,arguments),K(e).getTime()-K(t).getTime()}function Fa(e,t){Pe(2,arguments);var r=K(e),n=K(t);return r.getTime()>n.getTime()}function Ua(e,t){Pe(2,arguments);var r=K(e),n=K(t);return r.getTime()<n.getTime()}function ka(e){i.append_styles(e,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function It(e,t,r){const n=e.slice();return n[55]=t[r],n}function Ot(e){let t,r=e[21]("cancel")+"",n,a,o,s;return{c(){t=i.element("small"),n=i.text(r),i.attr(t,"class",a="SearchCancelButton "+(e[16]?"NotVisible":""))},m(u,l){i.insert(u,t,l),i.append(t,n),o||(s=i.listen(t,"click",e[37]),o=!0)},p(u,l){l[0]&2097152&&r!==(r=u[21]("cancel")+"")&&i.set_data(n,r),l[0]&65536&&a!==(a="SearchCancelButton "+(u[16]?"NotVisible":""))&&i.attr(t,"class",a)},d(u){u&&i.detach(t),o=!1,s()}}}function ja(e){let t,r,n,a;function o(h,m){if(h[17]==!0&&h[14].length<2)return Wa;if(h[13].length!=0)return za}let s=o(e),u=s&&s(e),l=e[16]===!1&&Mt(e),c=e[14].length>=2&&e[13].length==0&&Gt(e);return{c(){u&&u.c(),t=i.space(),r=i.element("div"),l&&l.c(),n=i.space(),c&&c.c(),i.attr(r,"class",a="SearchResultsContainer "+(e[17]==!0?"":"NotVisible"))},m(h,m){u&&u.m(h,m),i.insert(h,t,m),i.insert(h,r,m),l&&l.m(r,null),i.append(r,n),c&&c.m(r,null)},p(h,m){s===(s=o(h))&&u?u.p(h,m):(u&&u.d(1),u=s&&s(h),u&&(u.c(),u.m(t.parentNode,t))),h[16]===!1?l?l.p(h,m):(l=Mt(h),l.c(),l.m(r,n)):l&&(l.d(1),l=null),h[14].length>=2&&h[13].length==0?c?c.p(h,m):(c=Gt(h),c.c(),c.m(r,null)):c&&(c.d(1),c=null),m[0]&131072&&a!==(a="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&i.attr(r,"class",a)},d(h){h&&(i.detach(t),i.detach(r)),u&&u.d(h),l&&l.d(),c&&c.d()}}}function Va(e){let t,r=e[21]("loading")+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","LoadingContent")},m(a,o){i.insert(a,t,o),i.append(t,n)},p(a,o){o[0]&2097152&&r!==(r=a[21]("loading")+"")&&i.set_data(n,r)},d(a){a&&i.detach(t)}}}function za(e){let t,r=e[21]("searchResult")+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","SearchMessage")},m(a,o){i.insert(a,t,o),i.append(t,n)},p(a,o){o[0]&2097152&&r!==(r=a[21]("searchResult")+"")&&i.set_data(n,r)},d(a){a&&i.detach(t)}}}function Wa(e){let t,r,n=e[13].length!==0&&Rt(e),a=e[13].length==0&&Lt(e);return{c(){n&&n.c(),t=i.space(),a&&a.c(),r=i.empty()},m(o,s){n&&n.m(o,s),i.insert(o,t,s),a&&a.m(o,s),i.insert(o,r,s)},p(o,s){o[13].length!==0?n?n.p(o,s):(n=Rt(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[13].length==0?a?a.p(o,s):(a=Lt(o),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(o){o&&(i.detach(t),i.detach(r)),n&&n.d(o),a&&a.d(o)}}}function Rt(e){let t,r=e[21]("recentSearch")+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","SearchMessage")},m(a,o){i.insert(a,t,o),i.append(t,n)},p(a,o){o[0]&2097152&&r!==(r=a[21]("recentSearch")+"")&&i.set_data(n,r)},d(a){a&&i.detach(t)}}}function Lt(e){let t,r,n,a=e[21]("noRecentSearches")+"",o,s,u=e[10]==="true"&&Nt();return{c(){t=i.element("div"),u&&u.c(),r=i.space(),n=i.element("p"),o=i.text(a),i.attr(n,"class","SearchMessage"),i.attr(t,"class",s="ResultsContainerError "+(e[10]=="true"?"WithIcon":""))},m(l,c){i.insert(l,t,c),u&&u.m(t,null),i.append(t,r),i.append(t,n),i.append(n,o)},p(l,c){l[10]==="true"?u||(u=Nt(),u.c(),u.m(t,r)):u&&(u.d(1),u=null),c[0]&2097152&&a!==(a=l[21]("noRecentSearches")+"")&&i.set_data(o,a),c[0]&1024&&s!==(s="ResultsContainerError "+(l[10]=="true"?"WithIcon":""))&&i.attr(t,"class",s)},d(l){l&&i.detach(t),u&&u.d()}}}function Nt(e){let t;return{c(){t=i.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',i.attr(t,"class","SearchErrorIcon")},m(r,n){i.insert(r,t,n)},d(r){r&&i.detach(t)}}}function Mt(e){let t,r=i.ensure_array_like(e[13]),n=[];for(let a=0;a<r.length;a+=1)n[a]=Dt(It(e,r,a));return{c(){for(let a=0;a<n.length;a+=1)n[a].c();t=i.empty()},m(a,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(a,o);i.insert(a,t,o)},p(a,o){if(o[0]&35138047){r=i.ensure_array_like(a[13]);let s;for(s=0;s<r.length;s+=1){const u=It(a,r,s);n[s]?n[s].p(u,o):(n[s]=Dt(u),n[s].c(),n[s].m(t.parentNode,t))}for(;s<n.length;s+=1)n[s].d(1);n.length=r.length}},d(a){a&&i.detach(t),i.destroy_each(n,a)}}}function Dt(e){let t,r,n,a,o,s,u,l,c,h,m,p;return{c(){var d;t=i.element("casino-game-thumbnail"),i.set_custom_element_data(t,"endpoint",e[0]),i.set_custom_element_data(t,"session",e[19]),i.set_custom_element_data(t,"userid",e[20]),i.set_custom_element_data(t,"favorites",e[8]),i.set_custom_element_data(t,"lang",e[1]),i.set_custom_element_data(t,"gamethumbnail",r=e[55].thumbnail),i.set_custom_element_data(t,"gamename",n=e[55].name),i.set_custom_element_data(t,"gamevendor",a=e[55].vendor.displayName),i.set_custom_element_data(t,"gameLaunchUrl",o=e[55].launchUrl),i.set_custom_element_data(t,"gameisnew",s=e[55].isNew),i.set_custom_element_data(t,"gametag",u=((d=e[55].advancedTags)==null?void 0:d.length)>0&&e[25](e[55].advancedTags)),i.set_custom_element_data(t,"gamecellsize",l=e[55].cellSize),i.set_custom_element_data(t,"gameid",c=e[55].id),i.set_custom_element_data(t,"showgamename",e[6]),i.set_custom_element_data(t,"gamefunmode",h=e[55].hasFunMode),i.set_custom_element_data(t,"gamefavorite",m=e[55].isFavorite),i.set_custom_element_data(t,"livelobbyendpoint",p=e[55].details?e[55].launchUrl:""),i.set_custom_element_data(t,"integratedgameframedesktop",e[4]),i.set_custom_element_data(t,"mbsource",e[11]),i.set_custom_element_data(t,"integratedgameframemobile",e[5]),i.set_custom_element_data(t,"clientstyling",e[2]),i.set_custom_element_data(t,"clientstylingurl",e[3]),i.set_custom_element_data(t,"gamepagemodalurl",e[7])},m(d,g){i.insert(d,t,g)},p(d,g){var b;g[0]&1&&i.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&i.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&i.set_custom_element_data(t,"userid",d[20]),g[0]&256&&i.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&i.set_custom_element_data(t,"lang",d[1]),g[0]&8192&&r!==(r=d[55].thumbnail)&&i.set_custom_element_data(t,"gamethumbnail",r),g[0]&8192&&n!==(n=d[55].name)&&i.set_custom_element_data(t,"gamename",n),g[0]&8192&&a!==(a=d[55].vendor.displayName)&&i.set_custom_element_data(t,"gamevendor",a),g[0]&8192&&o!==(o=d[55].launchUrl)&&i.set_custom_element_data(t,"gameLaunchUrl",o),g[0]&8192&&s!==(s=d[55].isNew)&&i.set_custom_element_data(t,"gameisnew",s),g[0]&8192&&u!==(u=((b=d[55].advancedTags)==null?void 0:b.length)>0&&d[25](d[55].advancedTags))&&i.set_custom_element_data(t,"gametag",u),g[0]&8192&&l!==(l=d[55].cellSize)&&i.set_custom_element_data(t,"gamecellsize",l),g[0]&8192&&c!==(c=d[55].id)&&i.set_custom_element_data(t,"gameid",c),g[0]&64&&i.set_custom_element_data(t,"showgamename",d[6]),g[0]&8192&&h!==(h=d[55].hasFunMode)&&i.set_custom_element_data(t,"gamefunmode",h),g[0]&8192&&m!==(m=d[55].isFavorite)&&i.set_custom_element_data(t,"gamefavorite",m),g[0]&8192&&p!==(p=d[55].details?d[55].launchUrl:"")&&i.set_custom_element_data(t,"livelobbyendpoint",p),g[0]&16&&i.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&i.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&i.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&i.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&i.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&i.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&i.detach(t)}}}function Gt(e){let t,r,n,a=e[21]("notFound")+"",o,s,u,l=e[21]("notFoundText")+"",c,h,m=e[10]==="true"&&Ft();return{c(){t=i.element("div"),m&&m.c(),r=i.space(),n=i.element("p"),o=i.text(a),s=i.space(),u=i.element("p"),c=i.text(l),i.attr(n,"class","SearchMessage"),i.attr(t,"class",h="ResultsContainerError "+(e[10]=="true"?"WithIcon":""))},m(p,d){i.insert(p,t,d),m&&m.m(t,null),i.append(t,r),i.append(t,n),i.append(n,o),i.append(t,s),i.append(t,u),i.append(u,c)},p(p,d){p[10]==="true"?m||(m=Ft(),m.c(),m.m(t,r)):m&&(m.d(1),m=null),d[0]&2097152&&a!==(a=p[21]("notFound")+"")&&i.set_data(o,a),d[0]&2097152&&l!==(l=p[21]("notFoundText")+"")&&i.set_data(c,l),d[0]&1024&&h!==(h="ResultsContainerError "+(p[10]=="true"?"WithIcon":""))&&i.attr(t,"class",h)},d(p){p&&i.detach(t),m&&m.d()}}}function Ft(e){let t;return{c(){t=i.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',i.attr(t,"class","SearchErrorIcon")},m(r,n){i.insert(r,t,n)},d(r){r&&i.detach(t)}}}function Xa(e){let t,r,n,a,o,s,u,l,c,h,m,p,d,g,b,H,L,N,A,M,S=e[9]==="true"&&Ot(e);function I(E,O){return E[18]?Va:ja}let G=I(e),P=G(e);return{c(){t=i.element("div"),r=i.element("div"),n=i.element("div"),a=i.element("div"),a.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',o=i.space(),s=i.element("input"),l=i.space(),c=i.element("span"),h=i.svg_element("svg"),m=i.svg_element("path"),d=i.space(),S&&S.c(),b=i.space(),H=i.element("div"),N=i.space(),P.c(),i.attr(a,"class","SearchIcon"),i.attr(s,"class","SearchInput"),i.attr(s,"type","search"),i.attr(s,"placeholder",u=e[21]("placeHolderSearchGames")),i.attr(s,"maxlength",qa),i.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),i.attr(m,"stroke","#717171"),i.attr(m,"stroke-width","2"),i.attr(m,"stroke-linecap","round"),i.attr(m,"stroke-linejoin","round"),i.attr(h,"width","11"),i.attr(h,"height","11"),i.attr(h,"fill","none"),i.attr(h,"xmlns","http://www.w3.org/2000/svg"),i.attr(c,"class",p="SearchClearButton "+(e[9]!="true"?"WithoutCancel":"")+" "+(e[14].length!=0?"":"NotVisible")),i.attr(n,"class",g="Search "+(e[16]?"":"SearchAnimation")),i.attr(r,"class","SearchWrap"),i.attr(H,"class",L=e[9]!="true"?"OverlayCancel":""),i.attr(t,"class",(ye(e[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(E,O){i.insert(E,t,O),i.append(t,r),i.append(r,n),i.append(n,a),i.append(n,o),i.append(n,s),i.set_input_value(s,e[14]),e[35](s),i.append(n,l),i.append(n,c),i.append(c,h),i.append(h,m),i.append(n,d),S&&S.m(n,null),i.append(t,b),i.append(t,H),i.append(t,N),P.m(t,null),e[38](t),A||(M=[i.listen(s,"input",e[34]),i.listen(s,"focus",e[23]),i.listen(s,"input",e[28]),i.listen(c,"click",e[36]),i.listen(H,"click",e[24])],A=!0)},p(E,O){O[0]&2097152&&u!==(u=E[21]("placeHolderSearchGames"))&&i.attr(s,"placeholder",u),O[0]&16384&&s.value!==E[14]&&i.set_input_value(s,E[14]),O[0]&16896&&p!==(p="SearchClearButton "+(E[9]!="true"?"WithoutCancel":"")+" "+(E[14].length!=0?"":"NotVisible"))&&i.attr(c,"class",p),E[9]==="true"?S?S.p(E,O):(S=Ot(E),S.c(),S.m(n,null)):S&&(S.d(1),S=null),O[0]&65536&&g!==(g="Search "+(E[16]?"":"SearchAnimation"))&&i.attr(n,"class",g),O[0]&512&&L!==(L=E[9]!="true"?"OverlayCancel":"")&&i.attr(H,"class",L),G===(G=I(E))&&P?P.p(E,O):(P.d(1),P=G(E),P&&(P.c(),P.m(t,null)))},i:i.noop,o:i.noop,d(E){E&&i.detach(t),e[35](null),S&&S.d(),P.d(),e[38](null),A=!1,i.run_all(M)}}}let qa=50;function Za(e,t,r){let n;i.component_subscribe(e,lr,f=>r(21,n=f));let{endpoint:a=""}=t,{datasource:o=""}=t,{session:s=""}=t,{userid:u=""}=t,{lang:l="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:m="false"}=t,{integratedgameframemobile:p="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:b=""}=t,{showfavorites:H=""}=t,{cancelbutton:L="true"}=t,{notfoundicon:N="false"}=t,{mbsource:A}=t,M=window.navigator.userAgent,S=[],I=[],G={},P="",E,O=!0,te=!1,F=!1,k,ue=!1,le,he,tt=[],br;const _r=()=>{fetch(b).then(y=>y.json()).then(y=>{Object.keys(y).forEach(T=>{St(T,y[T])})}).catch(y=>{console.log(y)})};Object.keys(Et).forEach(f=>{St(f,Et[f])});const rt=f=>{f.data&&f.data.type=="SearchedItemClicked"&&Tr(f.data.gameId),f.data.type=="UserSessionID"&&(r(19,le=f.data.session),r(20,he=f.data.userid),r(33,ue=!0)),f.data.type=="CategoryChange"&&ce()},nt=()=>{if(r(16,O=!1),r(17,te=!0),a&&o&&l&&P.length<2){r(13,S=[]);let f=localStorage.getItem("searchedGamesWds_casino"),y=[];f&&(y=f.split(","));let T=[],B=0,C=y.length;if(C>0){for(B=0;B<C;B++){let D=new URL(`${a}/v1/casino/games/${y[B]}`);D.searchParams.append("language",l),D.searchParams.append("datasource",o),D.searchParams.append("platform",ye(M)),T.push(Sr(D,y[B]))}Promise.all(T).then(D=>{D=D.filter(function(z){return!!z}),r(13,S=D.map(z=>(z.isFavorite=at(z.id),z))),S.length?re("searchSuccess","SearchWidget"):re("searchFail","SearchWidget")}).catch(D=>{re("searchError","SearchWidget")})}}ot(te),re("searchAttempt","SearchWidget"),re("SearchInitialized","SearchWidget")},re=(f,y)=>{typeof gtag=="function"&>ag("event",f,{context:y})},vr=()=>{L!="true"&&ce()},yr=f=>new Promise((y,T)=>{r(18,F=!0),fetch(f.href).then(B=>B.json()).then(B=>{r(18,F=!1),y(B)}).catch(B=>{r(18,F=!1),console.error(B),T(B)})}),Sr=(f,y)=>new Promise((T,B)=>{r(18,F=!0),y&&Object.keys(G).indexOf(y)>=0?(r(18,F=!1),T(G[y])):fetch(f).then(C=>C.json()).then(C=>{r(18,F=!1),C.error||(G[C[0].gameId]=C[0]),T(C[0])}).catch(C=>{r(18,F=!1),console.error(C),B(C)})}),Er=()=>{const f=new URL(`${a}/v1/player/${he}/favorites/`);r(18,F=!0);let y={method:"GET",headers:{"X-SessionID":le}};fetch(f.href,y).then(T=>T.json()).then(T=>{r(18,F=!1),tt=T.items.map(B=>B.id)})},xr=()=>{r(33,ue=!0),r(19,le=s),r(20,he=u)},at=f=>tt.findIndex(y=>y==f)!==-1,wr=f=>{if((f==null?void 0:f.length)===0)return"";let y,T=99999999999,B;const C=new Date(Date.now());return f.forEach((D,z)=>{const Rr=new Date(D.schedules[0].startTime),Be=new Date(D.schedules[0].endTime);Ct(new Date(Be),new Date(C))<T&&(T=Ct(new Date(Be),new Date(C)),B=z),Fa(new Date(C),new Date(Rr))&&Ua(new Date(C),new Date(Be))&&(y=f[B].name)}),y},Tr=f=>{if(I=localStorage.getItem("searchedGamesWds_casino"),I?I=I.split(","):I=[],I.indexOf(f)===-1){let y;I.unshift(f),y=I.join(","),localStorage.setItem("searchedGamesWds_casino",y)}},ce=()=>{r(14,P=""),r(16,O=!0),r(18,F=!1),r(13,S=[]),r(17,te=!1),ot(te)},it=()=>{r(14,P=""),E.focus()},ot=f=>{window.postMessage({type:f===!0?"searchActive":"searchCancelled",searchStatus:f},window.location.href)},Hr=()=>{Ea(l)},Pr=Ga(()=>st(this,null,function*(){if(P.length>=2){const f=new URL(`${a}/v1/casino/games`);f.searchParams.append("datasource",o),f.searchParams.append("expand","vendor"),f.searchParams.append("platform",ye(M)),f.searchParams.append("language",l),f.searchParams.append("pagination","offset=0,limit=30"),f.searchParams.append("filter",`name=${P}`),yr(f).then(y=>{r(13,S=y.items.map(T=>(T.isFavorite=at(T.id),T)))})}else O||nt()}),500);i.onMount(()=>(window.addEventListener("message",rt,!1),()=>{window.removeEventListener("message",rt)}));function Br(){P=this.value,r(14,P)}function Ar(f){i.binding_callbacks[f?"unshift":"push"](()=>{E=f,r(15,E)})}const Cr=()=>it(),Ir=()=>ce();function Or(f){i.binding_callbacks[f?"unshift":"push"](()=>{k=f,r(12,k)})}return e.$$set=f=>{"endpoint"in f&&r(0,a=f.endpoint),"datasource"in f&&r(29,o=f.datasource),"session"in f&&r(30,s=f.session),"userid"in f&&r(31,u=f.userid),"lang"in f&&r(1,l=f.lang),"clientstyling"in f&&r(2,c=f.clientstyling),"clientstylingurl"in f&&r(3,h=f.clientstylingurl),"integratedgameframedesktop"in f&&r(4,m=f.integratedgameframedesktop),"integratedgameframemobile"in f&&r(5,p=f.integratedgameframemobile),"showgamename"in f&&r(6,d=f.showgamename),"gamepagemodalurl"in f&&r(7,g=f.gamepagemodalurl),"translationurl"in f&&r(32,b=f.translationurl),"showfavorites"in f&&r(8,H=f.showfavorites),"cancelbutton"in f&&r(9,L=f.cancelbutton),"notfoundicon"in f&&r(10,N=f.notfoundicon),"mbsource"in f&&r(11,A=f.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&2&&l&&Hr(),e.$$.dirty[1]&2&&b&&_r(),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&1&&s&&u&&xr(),e.$$.dirty[0]&256|e.$$.dirty[1]&4&&H&&ue&&Er(),e.$$.dirty[0]&4100&&c&&k&&i.setClientStyling(k,c),e.$$.dirty[0]&4104&&h&&k&&i.setClientStylingURL(k,h),e.$$.dirty[0]&6144&&k&&i.setStreamStyling(k,`${A}.Style`,br)},[a,l,c,h,m,p,d,g,H,L,N,A,k,S,P,E,O,te,F,le,he,n,M,nt,vr,wr,ce,it,Pr,o,s,u,b,ue,Br,Ar,Cr,Ir,Or]}class gr extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Za,Xa,i.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},ka,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),i.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),i.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),i.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),i.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),i.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),i.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),i.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),i.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),i.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),i.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),i.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(gr,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);const Ja=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"}));exports.$format=lr;exports.$locale=X;exports.CasinoSearch_ce=Ja;exports.addMessages=$e;exports.getDevice=ye;exports.isMobile=Da;
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Je(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var He=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,a,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=Xe(s),l=u.next();!l.done;l=u.next()){var c=l.value;c.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(j(h))try{h()}catch(b){o=b instanceof Ne?b.errors:[b]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var p=Xe(m),d=p.next();!d.done;d=p.next()){var g=d.value;try{xt(g)}catch(b){o=o!=null?o:[],b instanceof Ne?o=Ze(Ze([],qe(o)),qe(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}}if(o)throw new Ne(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)xt(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)&&Je(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Je(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),cr=He.EMPTY;function fr(e){return e instanceof He||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function xt(e){j(e)?e():e.unsubscribe()}var xa={Promise:void 0},wa={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Ze([e,t],qe(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ta(e){wa.setTimeout(function(){throw e})}function wt(){}function ge(e){e()}var mr=function(e){se(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,fr(r)&&r.add(n)):n.destination=Ba,n}return t.create=function(r,n,a){return new Qe(r,n,a)},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}(He),Ha=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){me(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){me(n)}else me(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){me(r)}},e}(),Qe=function(e){se(t,e);function t(r,n,a){var o=e.call(this)||this,s;return j(r)||!r?s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0}:s=r,o.destination=new Ha(s),o}return t}(mr);function me(e){Ta(e)}function Pa(e){throw e}var Ba={closed:!0,next:wt,error:Pa,complete:wt},Aa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ca(e){return e}function Ia(e){return e.length===0?Ca:e.length===1?e[0]:function(r){return e.reduce(function(n,a){return a(n)},r)}}var Tt=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 a=this,o=Ra(t)?t:new Qe(t,r,n);return ge(function(){var s=a,u=s.operator,l=s.source;o.add(u?u.call(o,l):l?a._subscribe(o):a._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=Ht(r),new r(function(a,o){var s=new Qe({next:function(u){try{t(u)}catch(l){o(l),s.unsubscribe()}},error:o,complete:a});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[Aa]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ia(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ht(t),new t(function(n,a){var o;r.subscribe(function(s){return o=s},function(s){return a(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function Ht(e){var t;return(t=e!=null?e:xa.Promise)!==null&&t!==void 0?t:Promise}function Oa(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}function Ra(e){return e&&e instanceof mr||Oa(e)&&fr(e)}var La=hr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),pr=function(e){se(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 Pt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new La},t.prototype.next=function(r){var n=this;ge(function(){var a,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=Xe(n.currentObservers),u=s.next();!u.done;u=s.next()){var l=u.value;l.next(r)}}catch(c){a={error:c}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var n=this;ge(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var a=n.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;ge(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,a=this,o=a.hasError,s=a.isStopped,u=a.observers;return o||s?cr:(this.currentObservers=null,u.push(r),new He(function(){n.currentObservers=null,Je(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,o=n.thrownError,s=n.isStopped;a?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Tt;return r.source=this,r},t.create=function(r,n){return new Pt(r,n)},t}(Tt),Pt=function(e){se(t,e);function t(r,n){var a=e.call(this)||this;return a.destination=r,a.source=n,a}return t.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},t.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.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,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:cr},t}(pr),dr={now:function(){return(dr.delegate||Date).now()},delegate:void 0},Na=function(e){se(t,e);function t(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=dr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=a,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,a=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,u=n._timestampProvider,l=n._windowTime;a||(o.push(r),!s&&o.push(u.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,o=a._infiniteTimeWindow,s=a._buffer,u=s.slice(),l=0;l<u.length&&!r.closed;l+=o?1:2)r.next(u[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,a=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*n;if(n<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var l=a.now(),c=0,h=1;h<o.length&&o[h]<=l;h+=2)c=h;c&&o.splice(0,c+1)}},t}(pr);const Bt=[],At={},Ma=(e,t=0)=>{if(Bt.indexOf(e)==-1){const r=new Na(t);At[e]=r,Bt.push(e)}return At[e]};window.emWidgets={topic:Ma};const Da=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),ye=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;const Ga=(e,t)=>function(...r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{e.apply(this,r)},t)};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("./CasinoGameThumbnail-CxoRJp_b.cjs")).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function Ye(e){"@babel/helpers - typeof";return Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(e)}function Pe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function K(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ye(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ct(e,t){return Pe(2,arguments),K(e).getTime()-K(t).getTime()}function Fa(e,t){Pe(2,arguments);var r=K(e),n=K(t);return r.getTime()>n.getTime()}function Ua(e,t){Pe(2,arguments);var r=K(e),n=K(t);return r.getTime()<n.getTime()}function ka(e){i.append_styles(e,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function It(e,t,r){const n=e.slice();return n[55]=t[r],n}function Ot(e){let t,r=e[21]("cancel")+"",n,a,o,s;return{c(){t=i.element("small"),n=i.text(r),i.attr(t,"class",a="SearchCancelButton "+(e[16]?"NotVisible":""))},m(u,l){i.insert(u,t,l),i.append(t,n),o||(s=i.listen(t,"click",e[37]),o=!0)},p(u,l){l[0]&2097152&&r!==(r=u[21]("cancel")+"")&&i.set_data(n,r),l[0]&65536&&a!==(a="SearchCancelButton "+(u[16]?"NotVisible":""))&&i.attr(t,"class",a)},d(u){u&&i.detach(t),o=!1,s()}}}function ja(e){let t,r,n,a;function o(h,m){if(h[17]==!0&&h[14].length<2)return Wa;if(h[13].length!=0)return za}let s=o(e),u=s&&s(e),l=e[16]===!1&&Mt(e),c=e[14].length>=2&&e[13].length==0&&Gt(e);return{c(){u&&u.c(),t=i.space(),r=i.element("div"),l&&l.c(),n=i.space(),c&&c.c(),i.attr(r,"class",a="SearchResultsContainer "+(e[17]==!0?"":"NotVisible"))},m(h,m){u&&u.m(h,m),i.insert(h,t,m),i.insert(h,r,m),l&&l.m(r,null),i.append(r,n),c&&c.m(r,null)},p(h,m){s===(s=o(h))&&u?u.p(h,m):(u&&u.d(1),u=s&&s(h),u&&(u.c(),u.m(t.parentNode,t))),h[16]===!1?l?l.p(h,m):(l=Mt(h),l.c(),l.m(r,n)):l&&(l.d(1),l=null),h[14].length>=2&&h[13].length==0?c?c.p(h,m):(c=Gt(h),c.c(),c.m(r,null)):c&&(c.d(1),c=null),m[0]&131072&&a!==(a="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&i.attr(r,"class",a)},d(h){h&&(i.detach(t),i.detach(r)),u&&u.d(h),l&&l.d(),c&&c.d()}}}function Va(e){let t,r=e[21]("loading")+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","LoadingContent")},m(a,o){i.insert(a,t,o),i.append(t,n)},p(a,o){o[0]&2097152&&r!==(r=a[21]("loading")+"")&&i.set_data(n,r)},d(a){a&&i.detach(t)}}}function za(e){let t,r=e[21]("searchResult")+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","SearchMessage")},m(a,o){i.insert(a,t,o),i.append(t,n)},p(a,o){o[0]&2097152&&r!==(r=a[21]("searchResult")+"")&&i.set_data(n,r)},d(a){a&&i.detach(t)}}}function Wa(e){let t,r,n=e[13].length!==0&&Rt(e),a=e[13].length==0&&Lt(e);return{c(){n&&n.c(),t=i.space(),a&&a.c(),r=i.empty()},m(o,s){n&&n.m(o,s),i.insert(o,t,s),a&&a.m(o,s),i.insert(o,r,s)},p(o,s){o[13].length!==0?n?n.p(o,s):(n=Rt(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[13].length==0?a?a.p(o,s):(a=Lt(o),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(o){o&&(i.detach(t),i.detach(r)),n&&n.d(o),a&&a.d(o)}}}function Rt(e){let t,r=e[21]("recentSearch")+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","SearchMessage")},m(a,o){i.insert(a,t,o),i.append(t,n)},p(a,o){o[0]&2097152&&r!==(r=a[21]("recentSearch")+"")&&i.set_data(n,r)},d(a){a&&i.detach(t)}}}function Lt(e){let t,r,n,a=e[21]("noRecentSearches")+"",o,s,u=e[10]==="true"&&Nt();return{c(){t=i.element("div"),u&&u.c(),r=i.space(),n=i.element("p"),o=i.text(a),i.attr(n,"class","SearchMessage"),i.attr(t,"class",s="ResultsContainerError "+(e[10]=="true"?"WithIcon":""))},m(l,c){i.insert(l,t,c),u&&u.m(t,null),i.append(t,r),i.append(t,n),i.append(n,o)},p(l,c){l[10]==="true"?u||(u=Nt(),u.c(),u.m(t,r)):u&&(u.d(1),u=null),c[0]&2097152&&a!==(a=l[21]("noRecentSearches")+"")&&i.set_data(o,a),c[0]&1024&&s!==(s="ResultsContainerError "+(l[10]=="true"?"WithIcon":""))&&i.attr(t,"class",s)},d(l){l&&i.detach(t),u&&u.d()}}}function Nt(e){let t;return{c(){t=i.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',i.attr(t,"class","SearchErrorIcon")},m(r,n){i.insert(r,t,n)},d(r){r&&i.detach(t)}}}function Mt(e){let t,r=i.ensure_array_like(e[13]),n=[];for(let a=0;a<r.length;a+=1)n[a]=Dt(It(e,r,a));return{c(){for(let a=0;a<n.length;a+=1)n[a].c();t=i.empty()},m(a,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(a,o);i.insert(a,t,o)},p(a,o){if(o[0]&35138047){r=i.ensure_array_like(a[13]);let s;for(s=0;s<r.length;s+=1){const u=It(a,r,s);n[s]?n[s].p(u,o):(n[s]=Dt(u),n[s].c(),n[s].m(t.parentNode,t))}for(;s<n.length;s+=1)n[s].d(1);n.length=r.length}},d(a){a&&i.detach(t),i.destroy_each(n,a)}}}function Dt(e){let t,r,n,a,o,s,u,l,c,h,m,p;return{c(){var d;t=i.element("casino-game-thumbnail"),i.set_custom_element_data(t,"endpoint",e[0]),i.set_custom_element_data(t,"session",e[19]),i.set_custom_element_data(t,"userid",e[20]),i.set_custom_element_data(t,"favorites",e[8]),i.set_custom_element_data(t,"lang",e[1]),i.set_custom_element_data(t,"gamethumbnail",r=e[55].thumbnail),i.set_custom_element_data(t,"gamename",n=e[55].name),i.set_custom_element_data(t,"gamevendor",a=e[55].vendor.displayName),i.set_custom_element_data(t,"gameLaunchUrl",o=e[55].launchUrl),i.set_custom_element_data(t,"gameisnew",s=e[55].isNew),i.set_custom_element_data(t,"gametag",u=((d=e[55].advancedTags)==null?void 0:d.length)>0&&e[25](e[55].advancedTags)),i.set_custom_element_data(t,"gamecellsize",l=e[55].cellSize),i.set_custom_element_data(t,"gameid",c=e[55].id),i.set_custom_element_data(t,"showgamename",e[6]),i.set_custom_element_data(t,"gamefunmode",h=e[55].hasFunMode),i.set_custom_element_data(t,"gamefavorite",m=e[55].isFavorite),i.set_custom_element_data(t,"livelobbyendpoint",p=e[55].details?e[55].launchUrl:""),i.set_custom_element_data(t,"integratedgameframedesktop",e[4]),i.set_custom_element_data(t,"mbsource",e[11]),i.set_custom_element_data(t,"integratedgameframemobile",e[5]),i.set_custom_element_data(t,"clientstyling",e[2]),i.set_custom_element_data(t,"clientstylingurl",e[3]),i.set_custom_element_data(t,"gamepagemodalurl",e[7])},m(d,g){i.insert(d,t,g)},p(d,g){var b;g[0]&1&&i.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&i.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&i.set_custom_element_data(t,"userid",d[20]),g[0]&256&&i.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&i.set_custom_element_data(t,"lang",d[1]),g[0]&8192&&r!==(r=d[55].thumbnail)&&i.set_custom_element_data(t,"gamethumbnail",r),g[0]&8192&&n!==(n=d[55].name)&&i.set_custom_element_data(t,"gamename",n),g[0]&8192&&a!==(a=d[55].vendor.displayName)&&i.set_custom_element_data(t,"gamevendor",a),g[0]&8192&&o!==(o=d[55].launchUrl)&&i.set_custom_element_data(t,"gameLaunchUrl",o),g[0]&8192&&s!==(s=d[55].isNew)&&i.set_custom_element_data(t,"gameisnew",s),g[0]&8192&&u!==(u=((b=d[55].advancedTags)==null?void 0:b.length)>0&&d[25](d[55].advancedTags))&&i.set_custom_element_data(t,"gametag",u),g[0]&8192&&l!==(l=d[55].cellSize)&&i.set_custom_element_data(t,"gamecellsize",l),g[0]&8192&&c!==(c=d[55].id)&&i.set_custom_element_data(t,"gameid",c),g[0]&64&&i.set_custom_element_data(t,"showgamename",d[6]),g[0]&8192&&h!==(h=d[55].hasFunMode)&&i.set_custom_element_data(t,"gamefunmode",h),g[0]&8192&&m!==(m=d[55].isFavorite)&&i.set_custom_element_data(t,"gamefavorite",m),g[0]&8192&&p!==(p=d[55].details?d[55].launchUrl:"")&&i.set_custom_element_data(t,"livelobbyendpoint",p),g[0]&16&&i.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&i.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&i.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&i.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&i.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&i.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&i.detach(t)}}}function Gt(e){let t,r,n,a=e[21]("notFound")+"",o,s,u,l=e[21]("notFoundText")+"",c,h,m=e[10]==="true"&&Ft();return{c(){t=i.element("div"),m&&m.c(),r=i.space(),n=i.element("p"),o=i.text(a),s=i.space(),u=i.element("p"),c=i.text(l),i.attr(n,"class","SearchMessage"),i.attr(t,"class",h="ResultsContainerError "+(e[10]=="true"?"WithIcon":""))},m(p,d){i.insert(p,t,d),m&&m.m(t,null),i.append(t,r),i.append(t,n),i.append(n,o),i.append(t,s),i.append(t,u),i.append(u,c)},p(p,d){p[10]==="true"?m||(m=Ft(),m.c(),m.m(t,r)):m&&(m.d(1),m=null),d[0]&2097152&&a!==(a=p[21]("notFound")+"")&&i.set_data(o,a),d[0]&2097152&&l!==(l=p[21]("notFoundText")+"")&&i.set_data(c,l),d[0]&1024&&h!==(h="ResultsContainerError "+(p[10]=="true"?"WithIcon":""))&&i.attr(t,"class",h)},d(p){p&&i.detach(t),m&&m.d()}}}function Ft(e){let t;return{c(){t=i.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',i.attr(t,"class","SearchErrorIcon")},m(r,n){i.insert(r,t,n)},d(r){r&&i.detach(t)}}}function Xa(e){let t,r,n,a,o,s,u,l,c,h,m,p,d,g,b,H,L,N,A,M,S=e[9]==="true"&&Ot(e);function I(E,O){return E[18]?Va:ja}let G=I(e),P=G(e);return{c(){t=i.element("div"),r=i.element("div"),n=i.element("div"),a=i.element("div"),a.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',o=i.space(),s=i.element("input"),l=i.space(),c=i.element("span"),h=i.svg_element("svg"),m=i.svg_element("path"),d=i.space(),S&&S.c(),b=i.space(),H=i.element("div"),N=i.space(),P.c(),i.attr(a,"class","SearchIcon"),i.attr(s,"class","SearchInput"),i.attr(s,"type","search"),i.attr(s,"placeholder",u=e[21]("placeHolderSearchGames")),i.attr(s,"maxlength",qa),i.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),i.attr(m,"stroke","#717171"),i.attr(m,"stroke-width","2"),i.attr(m,"stroke-linecap","round"),i.attr(m,"stroke-linejoin","round"),i.attr(h,"width","11"),i.attr(h,"height","11"),i.attr(h,"fill","none"),i.attr(h,"xmlns","http://www.w3.org/2000/svg"),i.attr(c,"class",p="SearchClearButton "+(e[9]!="true"?"WithoutCancel":"")+" "+(e[14].length!=0?"":"NotVisible")),i.attr(n,"class",g="Search "+(e[16]?"":"SearchAnimation")),i.attr(r,"class","SearchWrap"),i.attr(H,"class",L=e[9]!="true"?"OverlayCancel":""),i.attr(t,"class",(ye(e[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(E,O){i.insert(E,t,O),i.append(t,r),i.append(r,n),i.append(n,a),i.append(n,o),i.append(n,s),i.set_input_value(s,e[14]),e[35](s),i.append(n,l),i.append(n,c),i.append(c,h),i.append(h,m),i.append(n,d),S&&S.m(n,null),i.append(t,b),i.append(t,H),i.append(t,N),P.m(t,null),e[38](t),A||(M=[i.listen(s,"input",e[34]),i.listen(s,"focus",e[23]),i.listen(s,"input",e[28]),i.listen(c,"click",e[36]),i.listen(H,"click",e[24])],A=!0)},p(E,O){O[0]&2097152&&u!==(u=E[21]("placeHolderSearchGames"))&&i.attr(s,"placeholder",u),O[0]&16384&&s.value!==E[14]&&i.set_input_value(s,E[14]),O[0]&16896&&p!==(p="SearchClearButton "+(E[9]!="true"?"WithoutCancel":"")+" "+(E[14].length!=0?"":"NotVisible"))&&i.attr(c,"class",p),E[9]==="true"?S?S.p(E,O):(S=Ot(E),S.c(),S.m(n,null)):S&&(S.d(1),S=null),O[0]&65536&&g!==(g="Search "+(E[16]?"":"SearchAnimation"))&&i.attr(n,"class",g),O[0]&512&&L!==(L=E[9]!="true"?"OverlayCancel":"")&&i.attr(H,"class",L),G===(G=I(E))&&P?P.p(E,O):(P.d(1),P=G(E),P&&(P.c(),P.m(t,null)))},i:i.noop,o:i.noop,d(E){E&&i.detach(t),e[35](null),S&&S.d(),P.d(),e[38](null),A=!1,i.run_all(M)}}}let qa=50;function Za(e,t,r){let n;i.component_subscribe(e,lr,f=>r(21,n=f));let{endpoint:a=""}=t,{datasource:o=""}=t,{session:s=""}=t,{userid:u=""}=t,{lang:l="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:m="false"}=t,{integratedgameframemobile:p="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:b=""}=t,{showfavorites:H=""}=t,{cancelbutton:L="true"}=t,{notfoundicon:N="false"}=t,{mbsource:A}=t,M=window.navigator.userAgent,S=[],I=[],G={},P="",E,O=!0,te=!1,F=!1,k,ue=!1,le,he,tt=[],br;const _r=()=>{fetch(b).then(y=>y.json()).then(y=>{Object.keys(y).forEach(T=>{St(T,y[T])})}).catch(y=>{console.log(y)})};Object.keys(Et).forEach(f=>{St(f,Et[f])});const rt=f=>{f.data&&f.data.type=="SearchedItemClicked"&&Tr(f.data.gameId),f.data.type=="UserSessionID"&&(r(19,le=f.data.session),r(20,he=f.data.userid),r(33,ue=!0)),f.data.type=="CategoryChange"&&ce()},nt=()=>{if(r(16,O=!1),r(17,te=!0),a&&o&&l&&P.length<2){r(13,S=[]);let f=localStorage.getItem("searchedGamesWds_casino"),y=[];f&&(y=f.split(","));let T=[],B=0,C=y.length;if(C>0){for(B=0;B<C;B++){let D=new URL(`${a}/v1/casino/games/${y[B]}`);D.searchParams.append("language",l),D.searchParams.append("datasource",o),D.searchParams.append("platform",ye(M)),T.push(Sr(D,y[B]))}Promise.all(T).then(D=>{D=D.filter(function(z){return!!z}),r(13,S=D.map(z=>(z.isFavorite=at(z.id),z))),S.length?re("searchSuccess","SearchWidget"):re("searchFail","SearchWidget")}).catch(D=>{re("searchError","SearchWidget")})}}ot(te),re("searchAttempt","SearchWidget"),re("SearchInitialized","SearchWidget")},re=(f,y)=>{typeof gtag=="function"&>ag("event",f,{context:y})},vr=()=>{L!="true"&&ce()},yr=f=>new Promise((y,T)=>{r(18,F=!0),fetch(f.href).then(B=>B.json()).then(B=>{r(18,F=!1),y(B)}).catch(B=>{r(18,F=!1),console.error(B),T(B)})}),Sr=(f,y)=>new Promise((T,B)=>{r(18,F=!0),y&&Object.keys(G).indexOf(y)>=0?(r(18,F=!1),T(G[y])):fetch(f).then(C=>C.json()).then(C=>{r(18,F=!1),C.error||(G[C[0].gameId]=C[0]),T(C[0])}).catch(C=>{r(18,F=!1),console.error(C),B(C)})}),Er=()=>{const f=new URL(`${a}/v1/player/${he}/favorites/`);r(18,F=!0);let y={method:"GET",headers:{"X-SessionID":le}};fetch(f.href,y).then(T=>T.json()).then(T=>{r(18,F=!1),tt=T.items.map(B=>B.id)})},xr=()=>{r(33,ue=!0),r(19,le=s),r(20,he=u)},at=f=>tt.findIndex(y=>y==f)!==-1,wr=f=>{if((f==null?void 0:f.length)===0)return"";let y,T=99999999999,B;const C=new Date(Date.now());return f.forEach((D,z)=>{const Rr=new Date(D.schedules[0].startTime),Be=new Date(D.schedules[0].endTime);Ct(new Date(Be),new Date(C))<T&&(T=Ct(new Date(Be),new Date(C)),B=z),Fa(new Date(C),new Date(Rr))&&Ua(new Date(C),new Date(Be))&&(y=f[B].name)}),y},Tr=f=>{if(I=localStorage.getItem("searchedGamesWds_casino"),I?I=I.split(","):I=[],I.indexOf(f)===-1){let y;I.unshift(f),y=I.join(","),localStorage.setItem("searchedGamesWds_casino",y)}},ce=()=>{r(14,P=""),r(16,O=!0),r(18,F=!1),r(13,S=[]),r(17,te=!1),ot(te)},it=()=>{r(14,P=""),E.focus()},ot=f=>{window.postMessage({type:f===!0?"searchActive":"searchCancelled",searchStatus:f},window.location.href)},Hr=()=>{Ea(l)},Pr=Ga(()=>st(this,null,function*(){if(P.length>=2){const f=new URL(`${a}/v1/casino/games`);f.searchParams.append("datasource",o),f.searchParams.append("expand","vendor"),f.searchParams.append("platform",ye(M)),f.searchParams.append("language",l),f.searchParams.append("pagination","offset=0,limit=30"),f.searchParams.append("filter",`name=${P}`),yr(f).then(y=>{r(13,S=y.items.map(T=>(T.isFavorite=at(T.id),T)))})}else O||nt()}),500);i.onMount(()=>(window.addEventListener("message",rt,!1),()=>{window.removeEventListener("message",rt)}));function Br(){P=this.value,r(14,P)}function Ar(f){i.binding_callbacks[f?"unshift":"push"](()=>{E=f,r(15,E)})}const Cr=()=>it(),Ir=()=>ce();function Or(f){i.binding_callbacks[f?"unshift":"push"](()=>{k=f,r(12,k)})}return e.$$set=f=>{"endpoint"in f&&r(0,a=f.endpoint),"datasource"in f&&r(29,o=f.datasource),"session"in f&&r(30,s=f.session),"userid"in f&&r(31,u=f.userid),"lang"in f&&r(1,l=f.lang),"clientstyling"in f&&r(2,c=f.clientstyling),"clientstylingurl"in f&&r(3,h=f.clientstylingurl),"integratedgameframedesktop"in f&&r(4,m=f.integratedgameframedesktop),"integratedgameframemobile"in f&&r(5,p=f.integratedgameframemobile),"showgamename"in f&&r(6,d=f.showgamename),"gamepagemodalurl"in f&&r(7,g=f.gamepagemodalurl),"translationurl"in f&&r(32,b=f.translationurl),"showfavorites"in f&&r(8,H=f.showfavorites),"cancelbutton"in f&&r(9,L=f.cancelbutton),"notfoundicon"in f&&r(10,N=f.notfoundicon),"mbsource"in f&&r(11,A=f.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&2&&l&&Hr(),e.$$.dirty[1]&2&&b&&_r(),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&1&&s&&u&&xr(),e.$$.dirty[0]&256|e.$$.dirty[1]&4&&H&&ue&&Er(),e.$$.dirty[0]&4100&&c&&k&&i.setClientStyling(k,c),e.$$.dirty[0]&4104&&h&&k&&i.setClientStylingURL(k,h),e.$$.dirty[0]&6144&&k&&i.setStreamStyling(k,`${A}.Style`,br)},[a,l,c,h,m,p,d,g,H,L,N,A,k,S,P,E,O,te,F,le,he,n,M,nt,vr,wr,ce,it,Pr,o,s,u,b,ue,Br,Ar,Cr,Ir,Or]}class gr extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Za,Xa,i.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},ka,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),i.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),i.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),i.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),i.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),i.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),i.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),i.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),i.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),i.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),i.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),i.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(gr,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);const Ja=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"}));exports.$format=lr;exports.$locale=X;exports.CasinoSearch_ce=Ja;exports.addMessages=$e;exports.getDevice=ye;exports.isMobile=Da;
|
|
@@ -14,7 +14,7 @@ var bt = (e, t, r) => new Promise((n, i) => {
|
|
|
14
14
|
}, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(a, o);
|
|
15
15
|
s((r = r.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { n as K, s as er, a as Yr, r as tr, i as Kr, S as $r, b as en, f as N, c as tn, d as G, e as b, g as vt, h as F, j as x, l as ne, k as P, m as X, o as yt, p as rn, q as nn, t as $, u as ee, v as _t, w as St, x as an, y as rr, z as g, A as on, B as sn, C as un, D as ln } from "./CasinoNavigationSearch-
|
|
17
|
+
import { n as K, s as er, a as Yr, r as tr, i as Kr, S as $r, b as en, f as N, c as tn, d as G, e as b, g as vt, h as F, j as x, l as ne, k as P, m as X, o as yt, p as rn, q as nn, t as $, u as ee, v as _t, w as St, x as an, y as rr, z as g, A as on, B as sn, C as un, D as ln } from "./CasinoNavigationSearch-CCkQbdS5.js";
|
|
18
18
|
const re = [];
|
|
19
19
|
function hn(e, t) {
|
|
20
20
|
return {
|
|
@@ -4004,7 +4004,7 @@ if (typeof window != "undefined") {
|
|
|
4004
4004
|
}
|
|
4005
4005
|
};
|
|
4006
4006
|
};
|
|
4007
|
-
customElements.define = e(customElements.define), import("./CasinoGameThumbnail-
|
|
4007
|
+
customElements.define = e(customElements.define), import("./CasinoGameThumbnail-BmHSvVP3.js").then(({ default: t }) => {
|
|
4008
4008
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", t.element);
|
|
4009
4009
|
});
|
|
4010
4010
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoNavigationSearch-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoNavigationSearch-CvEgXDMX.cjs")).then(e=>e.CasinoNavigationSearch_ce).then(({default:e})=>{!customElements.get("casino-navigation-search")&&customElements.define("casino-navigation-search",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoNavigationSearch-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoNavigationSearch-CCkQbdS5.js").then((e) => e.I).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-navigation-search") && customElements.define("casino-navigation-search", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|