@everymatrix/casino-categories 1.28.8 → 1.29.2

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.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t){e.appendChild(t)}function u(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function E(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t){t=""+t,e.data!==t&&(e.data=t)}function v(e){const t={};for(const r of e)t[r.name]=r.value;return t}function T(e){a=e}const H=[],_=[];let C=[];const B=[],A=Promise.resolve();let L=!1;function P(e){C.push(e)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t){e.appendChild(t)}function u(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function E(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t){t=""+t,e.data!==t&&(e.data=t)}function v(e){const t={};for(const r of e)t[r.name]=r.value;return t}function T(e){a=e}const H=[],C=[];let _=[];const B=[],A=Promise.resolve();let L=!1;function P(e){_.push(e)}
2
2
  // flush() calls callbacks in this order:
3
3
  // 1. All beforeUpdate callbacks, in order: parents before children
4
4
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -27,16 +27,16 @@ if(0!==O)return;const e=a;do{
27
27
  // and update components
28
28
  try{for(;O<H.length;){const e=H[O];O++,T(e),N(e.$$)}}catch(e){
29
29
  // reset dirty state to not end up in a deadlocked state and then rethrow
30
- throw H.length=0,O=0,e}for(T(null),H.length=0,O=0;_.length;)_.pop()();
30
+ throw H.length=0,O=0,e}for(T(null),H.length=0,O=0;C.length;)C.pop()();
31
31
  // then, once components are updated, call
32
32
  // afterUpdate functions. This may cause
33
33
  // subsequent updates...
34
- for(let e=0;e<C.length;e+=1){const t=C[e];S.has(t)||(
34
+ for(let e=0;e<_.length;e+=1){const t=_[e];S.has(t)||(
35
35
  // ...so guard against infinite loops
36
- S.add(t),t())}C.length=0}while(H.length);for(;B.length;)B.pop()();L=!1,S.clear(),T(e)}function N(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}
36
+ S.add(t),t())}_.length=0}while(H.length);for(;B.length;)B.pop()();L=!1,S.clear(),T(e)}function N(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}
37
37
  /**
38
38
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
39
- */const I=new Set;function M(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];C.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),C=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
39
+ */const I=new Set;function M(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];_.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),_=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
40
40
  // TODO null out other refs, including component.$$ (but need to
41
41
  // preserve final state?)
42
42
  r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,A.then(w)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,h,l,c,u,p,g=[-1]){const m=a;T(o);const d=o.$$={fragment:null,ctx:[],
@@ -241,9 +241,9 @@ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `
241
241
  // @generated from regex-gen.ts
242
242
  var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ye=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function He(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ye,(function(e,r,n){
243
243
  // @@@ case
244
- return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function _e(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 Ce(e){
244
+ return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Ce(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 _e(e){
245
245
  // Engineering
246
- var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Be(e){var t=_e(e);return t||{}}
246
+ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Be(e){var t=Ce(e);return t||{}}
247
247
  /**
248
248
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
249
249
  */function Ae(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");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=te(te(te({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return te(te({},e),Be(t))}),{}));continue;case"engineering":t=te(te(te({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return te(te({},e),Be(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
@@ -262,7 +262,7 @@ return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDi
262
262
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
263
263
  "w"===o?t=te(te({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=te(te({},t),He(o)))}
264
264
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
265
- else if(ye.test(i.stem))t=te(te({},t),He(i.stem));else{var s=_e(i.stem);s&&(t=te(te({},t),s));var a=Ce(i.stem);a&&(t=te(te({},t),a))}}return t}
265
+ else if(ye.test(i.stem))t=te(te({},t),He(i.stem));else{var s=Ce(i.stem);s&&(t=te(te({},t),s));var a=_e(i.stem);a&&(t=te(te({},t),a))}}return t}
266
266
  // @generated from time-data-gen.ts
267
267
  // prettier-ignore
268
268
  var Le,Pe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
@@ -566,23 +566,23 @@ this.formats=yt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
566
566
  // Default format options used as the prototype of the `formats` provided to the
567
567
  // constructor. These are used when constructing the internal Intl.NumberFormat
568
568
  // and Intl.DateTimeFormat instances.
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={},_t=(e,t,r)=>r?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=r),r):r,Ct=(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 _t(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((
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=Ct(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())=>Ct(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"}};
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"}};
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
- 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]=Cr(Tr(e,v,t));let H=/*otherCategories*/e[4],_=[];for(let t=0;t<H.length;t+=1)_[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<_.length;e+=1)_[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<_.length;e+=1)_[e]&&_[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]=Cr(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);_[n]?_[n].p(i,r):(_[n]=Br(i),_[n].c(),_[n].m(t,null))}for(;n<_.length;n+=1)_[n].d(1);_.length=H.length}},d(e){e&&f(t),p(T,e),p(_,e)}}}
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)}}}
575
575
  // (78:2) {#if isLoading}
576
- function _r(t){let r;return{c(){r=g("p"),r.textContent="Loading, please wait...",E(r,"class","Message")},m(e,t){u(e,r,t)},p:e,d(e){e&&f(r)}}}
576
+ function Cr(t){let r;return{c(){r=g("p"),r.textContent="Loading, please wait...",E(r,"class","Message")},m(e,t){u(e,r,t)},p:e,d(e){e&&f(r)}}}
577
577
  // (83:4) {#each topCategories as category}
578
- function Cr(e){let t,r,n,i,o,s,a,l,p,v,T,H,_,C,B,A,L=/*category*/e[24].name+"",P=/*category*/e[24].games.count+"",S=/*$_*/e[5]("games")+"";function O(){/*click_handler*/
579
- return e[14](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(L),p=d(),v=g("p"),T=m(P),H=d(),_=m(S),h(r.src,n=/*category*/e[24].icon)||E(r,"src",n),E(r,"alt",i=/*category*/e[24].name),E(r,"class","CategoryImage"),E(s,"class","CategoryTextContainer"),E(t,"class",C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,_),B||(A=b(t,"click",O),B=!0)},p(o,s){e=o,/*topCategories*/8&s&&!h(r.src,n=/*category*/e[24].icon)&&E(r,"src",n),/*topCategories*/8&s&&i!==(i=/*category*/e[24].name)&&E(r,"alt",i),/*topCategories*/8&s&&L!==(L=/*category*/e[24].name+"")&&y(l,L),/*topCategories*/8&s&&P!==(P=/*category*/e[24].games.count+"")&&y(T,P),/*$_*/32&s&&S!==(S=/*$_*/e[5]("games")+"")&&y(_,S),/*activecategory, topCategories*/9&s&&C!==(C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&E(t,"class",C)},d(e){e&&f(t),B=!1,A()}}}
578
+ function _r(e){let t,r,n,i,o,s,a,l,p,v,T,H,C,_,B,A,L=/*category*/e[24].name+"",P=/*category*/e[24].games.count+"",S=/*$_*/e[5]("games")+"";function O(){/*click_handler*/
579
+ return e[14](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(L),p=d(),v=g("p"),T=m(P),H=d(),C=m(S),h(r.src,n=/*category*/e[24].icon)||E(r,"src",n),E(r,"alt",i=/*category*/e[24].name),E(r,"class","CategoryImage"),E(s,"class","CategoryTextContainer"),E(t,"class",_="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,C),B||(A=b(t,"click",O),B=!0)},p(o,s){e=o,/*topCategories*/8&s&&!h(r.src,n=/*category*/e[24].icon)&&E(r,"src",n),/*topCategories*/8&s&&i!==(i=/*category*/e[24].name)&&E(r,"alt",i),/*topCategories*/8&s&&L!==(L=/*category*/e[24].name+"")&&y(l,L),/*topCategories*/8&s&&P!==(P=/*category*/e[24].games.count+"")&&y(T,P),/*$_*/32&s&&S!==(S=/*$_*/e[5]("games")+"")&&y(C,S),/*activecategory, topCategories*/9&s&&_!==(_="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&E(t,"class",_)},d(e){e&&f(t),B=!1,A()}}}
580
580
  // (93:4) {#each otherCategories as category}
581
- function Br(e){let t,r,n,i,o,s,a,l,p,v,T,H,_,C,B,A,L,P=/*category*/e[24].name+"",S=/*category*/e[24].games.count+"",O=/*$_*/e[5]("games")+"";function w(){/*click_handler_1*/
582
- return e[15](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(P),p=d(),v=g("p"),T=m(S),H=d(),_=m(O),C=d(),h(r.src,n=/*category*/e[24].icon)||E(r,"src",n),E(r,"alt",i=/*category*/e[24].name),E(r,"class","CategoryImage"),E(s,"class","CategoryTextContainer"),E(t,"class",B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,_),c(t,C),A||(L=b(t,"click",w),A=!0)},p(o,s){e=o,/*otherCategories*/16&s&&!h(r.src,n=/*category*/e[24].icon)&&E(r,"src",n),/*otherCategories*/16&s&&i!==(i=/*category*/e[24].name)&&E(r,"alt",i),/*otherCategories*/16&s&&P!==(P=/*category*/e[24].name+"")&&y(l,P),/*otherCategories*/16&s&&S!==(S=/*category*/e[24].games.count+"")&&y(T,S),/*$_*/32&s&&O!==(O=/*$_*/e[5]("games")+"")&&y(_,O),/*activecategory, otherCategories*/17&s&&B!==(B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&E(t,"class",B)},d(e){e&&f(t),A=!1,L()}}}function Ar(t){let r;function n(e,t){/*isLoading*/
583
- return e[2]?_r:Hr}let i=n(t),o=i(t);return{c(){r=g("div"),o.c(),this.c=e},m(e,n){u(e,r,n),o.m(r,null),
581
+ function Br(e){let t,r,n,i,o,s,a,l,p,v,T,H,C,_,B,A,L,P=/*category*/e[24].name+"",S=/*category*/e[24].games.count+"",O=/*$_*/e[5]("games")+"";function w(){/*click_handler_1*/
582
+ return e[15](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(P),p=d(),v=g("p"),T=m(S),H=d(),C=m(O),_=d(),h(r.src,n=/*category*/e[24].icon)||E(r,"src",n),E(r,"alt",i=/*category*/e[24].name),E(r,"class","CategoryImage"),E(s,"class","CategoryTextContainer"),E(t,"class",B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,C),c(t,_),A||(L=b(t,"click",w),A=!0)},p(o,s){e=o,/*otherCategories*/16&s&&!h(r.src,n=/*category*/e[24].icon)&&E(r,"src",n),/*otherCategories*/16&s&&i!==(i=/*category*/e[24].name)&&E(r,"alt",i),/*otherCategories*/16&s&&P!==(P=/*category*/e[24].name+"")&&y(l,P),/*otherCategories*/16&s&&S!==(S=/*category*/e[24].games.count+"")&&y(T,S),/*$_*/32&s&&O!==(O=/*$_*/e[5]("games")+"")&&y(C,O),/*activecategory, otherCategories*/17&s&&B!==(B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&E(t,"class",B)},d(e){e&&f(t),A=!1,L()}}}function Ar(t){let r;function n(e,t){/*isLoading*/
583
+ return e[2]?Cr:Hr}let i=n(t),o=i(t);return{c(){r=g("div"),o.c(),this.c=e},m(e,n){u(e,r,n),o.m(r,null),
584
584
  /*div_binding*/t[16](r)},p(e,[t]){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r,null)))},i:e,o:e,d(e){e&&f(r),o.d(),
585
585
  /*div_binding*/t[16](null)}}}function Lr(e,t,r){let n;var i,o;i=br,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,{endpoint:a=""}=t,{datasource:h=""}=t,{lang:c="en"}=t,{activecategory:u=""}=t,{excludedflags:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{translationurl:m=""}=t,d=!1;const b=[];let E=[],y=[];Object.keys(yr).forEach((e=>{Er(e,yr[e])}));const v=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e},window.location.href)},T=()=>{var e;e=c,Qt.set(e)};return e.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"datasource"in e&&r(8,h=e.datasource),"lang"in e&&r(9,c=e.lang),"activecategory"in e&&r(0,u=e.activecategory),"excludedflags"in e&&r(10,f=e.excludedflags),"clientstyling"in e&&r(11,p=e.clientstyling),"clientstylingurl"in e&&r(12,g=e.clientstylingurl),"translationurl"in e&&r(13,m=e.translationurl)},e.$$.update=()=>{/*endpoint, datasource*/384&e.$$.dirty&&a&&h&&(()=>{r(2,d=!0);const e=new URL(`${a}/v1/casino/groups/${h}`);e.searchParams.append("language",c),fetch(e).then((e=>e.json())).then((e=>{r(2,d=!1);const t=f.split(",").map((e=>e.trim()));b.push(...e.items);
586
586
  // remove those items which have a flag matching the excluded flags
587
- const n=b.filter((e=>!t.some((t=>{var r;return(null===(r=e.flags)||void 0===r?void 0:r.indexOf(t))>=0}))));r(3,E=n.filter((e=>!0===e.isTopCategory))),r(4,y=n.filter((e=>!1===e.isTopCategory)))}))})(),/*translationurl*/8192&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/512&e.$$.dirty&&c&&T(),/*clientstyling, customStylingContainer*/2050&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4098&e.$$.dirty&&g&&s&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[u,s,d,E,y,n,v,a,h,c,f,p,g,m,e=>v(e.id),e=>v(e.id),function(e){_[e?"unshift":"push"]((()=>{s=e,r(1,s)}))}]}class Pr extends G{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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(--emfe-w-casino-typography, var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emfe-w-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}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},Lr,Ar,o,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","datasource","lang","activecategory","excludedflags","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),w()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),w()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),w()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),w()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),w()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("casino-categories")&&customElements.define("casino-categories",Pr),Pr}));
587
+ const n=b.filter((e=>!t.some((t=>{var r;return(null===(r=e.flags)||void 0===r?void 0:r.indexOf(t))>=0}))));r(3,E=n.filter((e=>!0===e.isTopCategory))),r(4,y=n.filter((e=>!1===e.isTopCategory)))}))})(),/*translationurl*/8192&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/512&e.$$.dirty&&c&&T(),/*clientstyling, customStylingContainer*/2050&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4098&e.$$.dirty&&g&&s&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[u,s,d,E,y,n,v,a,h,c,f,p,g,m,e=>v(e.id),e=>v(e.id),function(e){C[e?"unshift":"push"]((()=>{s=e,r(1,s)}))}]}class Pr extends G{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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(--emfe-w-casino-typography, var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emfe-w-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}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},Lr,Ar,o,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","datasource","lang","activecategory","excludedflags","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),w()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),w()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),w()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),w()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),w()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("casino-categories")&&customElements.define("casino-categories",Pr),Pr}));
588
588
  //# sourceMappingURL=casino-categories.js.map