@everymatrix/casino-categories 1.34.3 → 1.36.0

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.
@@ -568,7 +568,7 @@ this.formats=yt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
568
568
  // and Intl.DateTimeFormat instances.
569
569
  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}();const Ht={},Ct=(e,t,r)=>r?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=r),r):r,_t=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const r=zt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return Ct(e,t,i)}};let Bt;const At=$({});function Lt(e){return e in Bt}function Pt(e,t){if(!Lt(e))return null;const r=function(e){return Bt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function St(e,...t){delete Ht[e],At.update((r=>(r[e]=z.all([r[e]||{},...t]),r)))}F([At],(([e])=>Object.keys(e))),At.subscribe((e=>Bt=e));const Ot={};function wt(e){return Ot[e]}function Nt(e){return null!=e&&zt(e).some((e=>{var t;return null==(t=wt(e))?void 0:t.size}))}function It(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ot[e].delete(t),0===Ot[e].size&&delete Ot[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>St(e,...t)))}const Mt={};function Rt(e){if(!Nt(e))return e in Mt?Mt[e]:Promise.resolve();const t=function(e){return zt(e).map((e=>{const t=wt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Mt[e]=Promise.all(t.map((([e,t])=>It(e,t)))).then((()=>{if(Nt(e))return Rt(e);delete Mt[e]})),Mt[e]}const Ut={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Gt(){return Ut}const Dt=$(!1);var $t=Object.defineProperty,Ft=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,r)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Kt;const Yt=$(null);function Zt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function zt(e,t=Gt().fallbackLocale){const r=Zt(e);return t?[...new Set([...r,...Zt(t)])]:r}function Wt(){return null!=Kt?Kt:void 0}Yt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(Jt=((e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Xt(e,r,t[r]);if(kt)for(var r of kt(t))Vt.call(t,r)&&Xt(e,r,t[r]);return e})({},Yt),Ft(Jt,xt({set:e=>{if(e&&function(e){if(null==e)return;const t=zt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Nt(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Wt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Rt(e).then((()=>{Yt.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return Yt.set(e)}})));var Jt;const qt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var er=Object.defineProperty,tr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ir=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))rr.call(t,r)&&ir(e,r,t[r]);if(tr)for(var r of tr(t))nr.call(t,r)&&ir(e,r,t[r]);return e},sr=(e,t)=>{var r={};for(var n in e)rr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tr)for(var n of tr(e))t.indexOf(n)<0&&nr.call(e,n)&&(r[n]=e[n]);return r};const ar=(e,t)=>{const{formats:r}=Gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ar("number",n)),new Intl.NumberFormat(r,i)})),lr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ar("date",n):0===Object.keys(i).length&&(i=ar("date","short")),new Intl.DateTimeFormat(r,i)})),cr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ar("time",n):0===Object.keys(i).length&&(i=ar("time","short")),new Intl.DateTimeFormat(r,i)})),ur=qt((
570
570
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571
- (e,t=Wt())=>new Tt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),fr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Wt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=_t(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Gt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=ur(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return cr(or({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return lr(or({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return hr(or({locale:r},n))})(t).format(e),dr=(e,t=Wt())=>_t(e,t),br=F([Qt,At],(()=>fr));function Er(e,t){St(e,t)}F([Qt],(()=>pr)),F([Qt],(()=>gr)),F([Qt],(()=>mr)),F([Qt,At],(()=>dr));const yr={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:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},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"}};
571
+ (e,t=Wt())=>new Tt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),fr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Wt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=_t(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Gt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=ur(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return cr(or({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return lr(or({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return hr(or({locale:r},n))})(t).format(e),dr=(e,t=Wt())=>_t(e,t),br=F([Qt,At],(()=>fr));function Er(e,t){St(e,t)}F([Qt],(()=>pr)),F([Qt],(()=>gr)),F([Qt],(()=>mr)),F([Qt,At],(()=>dr));const yr={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"}};
572
572
  /* src/CasinoCategories.svelte generated by Svelte v3.59.2 */function vr(e,t,r){const n=e.slice();return n[24]=t[r],n}function Tr(e,t,r){const n=e.slice();return n[24]=t[r],n}
573
573
  // (80:2) {:else}
574
574
  function Hr(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[5]("topCategories")+"",b=/*$_*/e[5]("otherCategories")+"",v=/*topCategories*/e[3],T=[];for(let t=0;t<v.length;t+=1)T[t]=_r(Tr(e,v,t));let H=/*otherCategories*/e[4],C=[];for(let t=0;t<H.length;t+=1)C[t]=Br(vr(e,H,t));return{c(){t=g("div"),r=g("h4"),n=m(l),i=d();for(let e=0;e<T.length;e+=1)T[e].c();o=d(),s=g("h4"),a=m(b),h=d();for(let e=0;e<C.length;e+=1)C[e].c();E(r,"class","CategoryTitle"),E(s,"class","CategoryTitle"),E(t,"class","CasinoCategories")},m(e,l){u(e,t,l),c(t,r),c(r,n),c(t,i);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(t,null);c(t,o),c(t,s),c(s,a),c(t,h);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(t,null)},p(e,r){if(/*$_*/32&r&&l!==(l=/*$_*/e[5]("topCategories")+"")&&y(n,l),/*activecategory, topCategories, openGameCategory, $_*/105&r){let n;for(v=/*topCategories*/e[3],n=0;n<v.length;n+=1){const i=Tr(e,v,n);T[n]?T[n].p(i,r):(T[n]=_r(i),T[n].c(),T[n].m(t,o))}for(;n<T.length;n+=1)T[n].d(1);T.length=v.length}if(/*$_*/32&r&&b!==(b=/*$_*/e[5]("otherCategories")+"")&&y(a,b),/*activecategory, otherCategories, openGameCategory, $_*/113&r){let n;for(H=/*otherCategories*/e[4],n=0;n<H.length;n+=1){const i=vr(e,H,n);C[n]?C[n].p(i,r):(C[n]=Br(i),C[n].c(),C[n].m(t,null))}for(;n<C.length;n+=1)C[n].d(1);C.length=H.length}},d(e){e&&f(t),p(T,e),p(C,e)}}}