@everymatrix/casino-random-game 1.33.1 → 1.33.3
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.
|
@@ -631,7 +631,7 @@ this.formats=Ar(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.
|
|
|
631
631
|
// and Intl.DateTimeFormat instances.
|
|
632
632
|
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 Pr={},Rr=(e,t,r)=>r?(t in Pr||(Pr[t]={}),e in Pr[t]||(Pr[t][e]=r),r):r,Lr=(e,t)=>{if(null==t)return;if(t in Pr&&e in Pr[t])return Pr[t][e];const r=tn(t);for(let n=0;n<r.length;n++){const o=Ir(r[n],e);if(o)return Rr(e,t,o)}};let Or;const Cr=ze({});function xr(e){return e in Or}function Ir(e,t){if(!xr(e))return null;const r=function(e){return Or[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 Nr(e,...t){delete Pr[e],Cr.update((r=>(r[e]=tt.all([r[e]||{},...t]),r)))}Xe([Cr],(([e])=>Object.keys(e))),Cr.subscribe((e=>Or=e));const Gr={};function Mr(e){return Gr[e]}function Ur(e){return null!=e&&tn(e).some((e=>{var t;return null==(t=Mr(e))?void 0:t.size}))}function Dr(e,t){const r=Promise.all(t.map((t=>(function(e,t){Gr[e].delete(t),0===Gr[e].size&&delete Gr[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Nr(e,...t)))}const Fr={};function $r(e){if(!Ur(e))return e in Fr?Fr[e]:Promise.resolve();const t=function(e){return tn(e).map((e=>{const t=Mr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Fr[e]=Promise.all(t.map((([e,t])=>Dr(e,t)))).then((()=>{if(Ur(e))return $r(e);delete Fr[e]})),Fr[e]}const kr={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 jr(){return kr}const Vr=ze(!1);var zr=Object.defineProperty,Xr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Jr=(e,t,r)=>t in e?zr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let qr;const Qr=ze(null);function en(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function tn(e,t=jr().fallbackLocale){const r=en(e);return t?[...new Set([...r,...en(t)])]:r}function rn(){return null!=qr?qr:void 0}Qr.subscribe((e=>{qr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const nn=(on=((e,t)=>{for(var r in t||(t={}))Yr.call(t,r)&&Jr(e,r,t[r]);if(Kr)for(var r of Kr(t))Zr.call(t,r)&&Jr(e,r,t[r]);return e})({},Qr),Xr(on,Wr({set:e=>{if(e&&function(e){if(null==e)return;const t=tn(e);for(let e=0;e<t.length;e++){const r=t[e];if(xr(r))return r}}(e)&&Ur(e)){const{loadingDelay:t}=jr();let r;return"undefined"!=typeof window&&null!=rn()&&t?r=window.setTimeout((()=>Vr.set(!0)),t):Vr.set(!0),$r(e).then((()=>{Qr.set(e)})).finally((()=>{clearTimeout(r),Vr.set(!1)}))}return Qr.set(e)}})));var on;const an=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var sn=Object.defineProperty,ln=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,hn=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fn=(e,t)=>{for(var r in t||(t={}))cn.call(t,r)&&hn(e,r,t[r]);if(ln)for(var r of ln(t))un.call(t,r)&&hn(e,r,t[r]);return e},pn=(e,t)=>{var r={};for(var n in e)cn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ln)for(var n of ln(e))t.indexOf(n)<0&&un.call(e,n)&&(r[n]=e[n]);return r};const dn=(e,t)=>{const{formats:r}=jr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},mn=an((e=>{var t=e,{locale:r,format:n}=t,o=pn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=dn("number",n)),new Intl.NumberFormat(r,o)})),yn=an((e=>{var t=e,{locale:r,format:n}=t,o=pn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=dn("date",n):0===Object.keys(o).length&&(o=dn("date","short")),new Intl.DateTimeFormat(r,o)})),bn=an((e=>{var t=e,{locale:r,format:n}=t,o=pn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=dn("time",n):0===Object.keys(o).length&&(o=dn("time","short")),new Intl.DateTimeFormat(r,o)})),gn=an((
|
|
633
633
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
634
|
-
(e,t=rn())=>new Sr(e,t,jr().formats,{ignoreTag:jr().ignoreTag}))),vn=(e,t={})=>{var r,n,o,i;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=rn(),default:c}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Lr(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(i=null!=(o=null==(n=(r=jr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?o:c)?i:e;if(!s)return u;let h=u;try{h=gn(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},En=(e,t)=>((e={})=>{var t=e,{locale:r=rn()}=t,n=pn(t,["locale"]);return bn(fn({locale:r},n))})(t).format(e),wn=(e,t)=>((e={})=>{var t=e,{locale:r=rn()}=t,n=pn(t,["locale"]);return yn(fn({locale:r},n))})(t).format(e),_n=(e,t)=>((e={})=>{var t=e,{locale:r=rn()}=t,n=pn(t,["locale"]);return mn(fn({locale:r},n))})(t).format(e),Tn=(e,t=rn())=>Lr(e,t),Bn=Xe([nn,Cr],(()=>vn));Xe([nn],(()=>En)),Xe([nn],(()=>wn)),Xe([nn],(()=>_n)),Xe([nn,Cr],(()=>Tn)),window.emWidgets={topic:(e,t=0)=>{if(-1==ke.indexOf(e)){let r=new $e(t);je[e]=r,ke.push(e)}return je[e]}};function An(e,t){Nr(e,t)}const Hn={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna",noGames:"There are no random games to play"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"
|
|
634
|
+
(e,t=rn())=>new Sr(e,t,jr().formats,{ignoreTag:jr().ignoreTag}))),vn=(e,t={})=>{var r,n,o,i;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=rn(),default:c}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Lr(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(i=null!=(o=null==(n=(r=jr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?o:c)?i:e;if(!s)return u;let h=u;try{h=gn(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},En=(e,t)=>((e={})=>{var t=e,{locale:r=rn()}=t,n=pn(t,["locale"]);return bn(fn({locale:r},n))})(t).format(e),wn=(e,t)=>((e={})=>{var t=e,{locale:r=rn()}=t,n=pn(t,["locale"]);return yn(fn({locale:r},n))})(t).format(e),_n=(e,t)=>((e={})=>{var t=e,{locale:r=rn()}=t,n=pn(t,["locale"]);return mn(fn({locale:r},n))})(t).format(e),Tn=(e,t=rn())=>Lr(e,t),Bn=Xe([nn,Cr],(()=>vn));Xe([nn],(()=>En)),Xe([nn],(()=>wn)),Xe([nn],(()=>_n)),Xe([nn,Cr],(()=>Tn)),window.emWidgets={topic:(e,t=0)=>{if(-1==ke.indexOf(e)){let r=new $e(t);je[e]=r,ke.push(e)}return je[e]}};function An(e,t){Nr(e,t)}const Hn={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna",noGames:"There are no random games to play"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"}};
|
|
635
635
|
/* src/CasinoRandomGame.svelte generated by Svelte v3.59.2 */function Sn(e,t,r){const n=e.slice();return n[36]=t[r],n[38]=r,n}
|
|
636
636
|
// (157:4) {#if show}
|
|
637
637
|
function Pn(e){let t,r,n,o,i,a,s,l=!/*slotDone*/e[7]&&Rn(e),c=/*slotDone*/e[7]&&On(e);return{c(){t=p("div"),r=p("div"),n=p("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',o=m(),l&&l.c(),i=m(),c&&c.c(),b(n,"class","ModalCloseBtn"),b(n,"role","button"),b(r,"class","ModalContainer"),b(t,"class","ModalWindow")},m(f,p){h(f,t,p),u(t,r),u(r,n),u(r,o),l&&l.m(r,null),u(r,i),c&&c.m(r,null),a||(s=y(n,"click",/*closeModal*/e[12]),a=!0)},p(e,t){/*slotDone*/e[7]?l&&(l.d(1),l=null):l?l.p(e,t):(l=Rn(e),l.c(),l.m(r,i)),/*slotDone*/e[7]?c?c.p(e,t):(c=On(e),c.c(),c.m(r,null)):c&&(c.d(1),c=null)},d(e){e&&f(t),l&&l.d(),c&&c.d(),a=!1,s()}}}
|