@everymatrix/casino-favorites-section 1.9.3 → 1.10.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.
|
@@ -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 n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let o,s;function l(e,t){return o||(o=document.createElement("a")),o.href=t,e===o.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(c(t,n))}function h(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function p(e){return document.createElement(e)}function g(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function b(){return y("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function _(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:_(e,t,n)}function x(e,t){t=""+t,e.data!==t&&(e.data=t)}
|
|
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 n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let o,s;function l(e,t){return o||(o=document.createElement("a")),o.href=t,e===o.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(c(t,n))}function h(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function p(e){return document.createElement(e)}function g(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function b(){return y("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function _(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:_(e,t,n)}function x(e,t){t=""+t,e.data!==t&&(e.data=t)}function C(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}class T{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=g(t.nodeName):this.e=p(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)d(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(m)}}function E(e){const t={};for(const n of e)t[n.name]=n.value;return t}function k(e){s=e}
|
|
2
2
|
/**
|
|
3
3
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
4
4
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
10
10
|
*/
|
|
11
|
-
function F(e){(function(){if(!s)throw new Error("Function called outside component initialization");return s})().$$.on_mount.push(e)}const G=[],
|
|
11
|
+
function F(e){(function(){if(!s)throw new Error("Function called outside component initialization");return s})().$$.on_mount.push(e)}const G=[],M=[];let L=[];const $=[],I=Promise.resolve();let D=!1;function P(){D||(D=!0,I.then(H))}function O(){return P(),I}function A(e){L.push(e)}
|
|
12
12
|
// flush() calls callbacks in this order:
|
|
13
13
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
14
14
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -27,56 +27,56 @@ function F(e){(function(){if(!s)throw new Error("Function called outside compone
|
|
|
27
27
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
|
28
28
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
29
29
|
// function, guarantees this behavior.
|
|
30
|
-
const N=new Set;let
|
|
31
|
-
function
|
|
30
|
+
const N=new Set;let R=0;// Do *not* move this inside the flush() function
|
|
31
|
+
function H(){
|
|
32
32
|
// Do not reenter flush while dirty components are updated, as this can
|
|
33
33
|
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
34
34
|
// Reentrancy is ok afterwards for bindings etc.
|
|
35
|
-
if(0!==
|
|
35
|
+
if(0!==R)return;const e=s;do{
|
|
36
36
|
// first, call beforeUpdate functions
|
|
37
37
|
// and update components
|
|
38
|
-
try{for(;
|
|
38
|
+
try{for(;R<G.length;){const e=G[R];R++,k(e),B(e.$$)}}catch(e){
|
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
40
|
-
throw G.length=0,
|
|
40
|
+
throw G.length=0,R=0,e}for(k(null),G.length=0,R=0;M.length;)M.pop()();
|
|
41
41
|
// then, once components are updated, call
|
|
42
42
|
// afterUpdate functions. This may cause
|
|
43
43
|
// subsequent updates...
|
|
44
|
-
for(let e=0;e<
|
|
44
|
+
for(let e=0;e<L.length;e+=1){const t=L[e];N.has(t)||(
|
|
45
45
|
// ...so guard against infinite loops
|
|
46
|
-
N.add(t),t())}
|
|
46
|
+
N.add(t),t())}L.length=0}while(G.length);for(;$.length;)$.pop()();D=!1,N.clear(),k(e)}function B(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}
|
|
47
47
|
/**
|
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
49
|
-
*/const
|
|
49
|
+
*/const U=new Set;function Y(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];L.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),L=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
50
50
|
// TODO null out other refs, including component.$$ (but need to
|
|
51
51
|
// preserve final state?)
|
|
52
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}function
|
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function z(a,o,l,c,u,h,d,f=[-1]){const p=s;k(a);const g=a.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
54
|
props:h,update:e,not_equal:u,bound:n(),
|
|
55
55
|
// lifecycle
|
|
56
56
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o.context||(p?p.$$.context:[])),
|
|
57
57
|
// everything else
|
|
58
|
-
callbacks:n(),dirty:f,skip_bound:!1,root:o.target||p.$$.root};d&&d(g.root);let y=!1;if(g.ctx=l?l(a,o.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&u(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&function(e,t){-1===e.$$.dirty[0]&&(G.push(e),
|
|
58
|
+
callbacks:n(),dirty:f,skip_bound:!1,root:o.target||p.$$.root};d&&d(g.root);let y=!1;if(g.ctx=l?l(a,o.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&u(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&function(e,t){-1===e.$$.dirty[0]&&(G.push(e),P(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(a,e)),t})):[],g.update(),y=!0,r(g.before_update),
|
|
59
59
|
// `false` as a special case of no DOM component
|
|
60
60
|
g.fragment=!!c&&c(g.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);
|
|
61
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
62
|
g.fragment&&g.fragment.l(e),e.forEach(m)}else
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
g.fragment&&g.fragment.c();o.intro&&((v=a.$$.fragment)&&v.i&&(
|
|
64
|
+
g.fragment&&g.fragment.c();o.intro&&((v=a.$$.fragment)&&v.i&&(U.delete(v),v.i(b))),function(e,n,a,o){const{fragment:s,after_update:l}=e.$$;s&&s.m(n,a),o||
|
|
65
65
|
// onMount happens before the initial afterUpdate
|
|
66
|
-
|
|
66
|
+
A((()=>{const n=e.$$.on_mount.map(t).filter(i);
|
|
67
67
|
// if the component was destroyed immediately
|
|
68
68
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
69
69
|
// the destructured on_destroy may still reference to the old array
|
|
70
70
|
e.$$.on_destroy?e.$$.on_destroy.push(...n):
|
|
71
71
|
// Edge case - component was destroyed immediately,
|
|
72
72
|
// most likely as a result of a binding initialising
|
|
73
|
-
r(n),e.$$.on_mount=[]})),l.forEach(
|
|
73
|
+
r(n),e.$$.on_mount=[]})),l.forEach(A)}(a,o.target,o.anchor,o.customElement),H()}var v,b;k(p)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
|
74
74
|
// @ts-ignore todo: improve typings
|
|
75
75
|
for(const e in this.$$.slotted)
|
|
76
76
|
// @ts-ignore todo: improve typings
|
|
77
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){
|
|
77
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){Y(this,1),this.$destroy=e}$on(t,n){
|
|
78
78
|
// TODO should this delegate to addEventListener?
|
|
79
|
-
if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const
|
|
79
|
+
if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const W=[];
|
|
80
80
|
/**
|
|
81
81
|
* Creates a `Readable` store that allows reading by subscription.
|
|
82
82
|
* @param value initial value
|
|
@@ -87,24 +87,24 @@ if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
87
87
|
* @param {*=}value initial value
|
|
88
88
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
89
89
|
*/
|
|
90
|
-
function
|
|
91
|
-
const e=!
|
|
90
|
+
function V(t,n=e){let r;const i=new Set;function o(e){if(a(t,e)&&(t=e,r)){// store is ready
|
|
91
|
+
const e=!W.length;for(const e of i)e[1](),W.push(e,t);if(e){for(let e=0;e<W.length;e+=2)W[e][0](W[e+1]);W.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return i.add(l),1===i.size&&(r=n(o)||e),a(t),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function Z(t,n,a){const o=!Array.isArray(t),s=o?[t]:t,l=n.length<2;return u=t=>{let a=!1;const u=[];let h=0,d=e;const m=()=>{if(h)return;d();const r=n(o?u[0]:u,t);l?t(r):d=i(r)?r:e},f=s.map(((e,t)=>c(e,(e=>{u[t]=e,h&=~(1<<t),a&&m()}),(()=>{h|=1<<t}))));return a=!0,m(),function(){r(f),d(),
|
|
92
92
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
93
93
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
94
94
|
// invoke this derived store.
|
|
95
|
-
a=!1}},{subscribe:
|
|
95
|
+
a=!1}},{subscribe:V(a,u).subscribe};var u}var K=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===X}(e)}
|
|
96
96
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
97
|
-
(e)};var
|
|
97
|
+
(e)};var X="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function J(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ne((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function q(e,t,n){return e.concat(t).map((function(e){return J(e,n)}))}function Q(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function ee(e,t){try{return t in e}catch(e){return!1}}
|
|
98
98
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
99
|
-
function
|
|
100
|
-
})(e,i)||(
|
|
99
|
+
function te(e,t,n){var r={};return n.isMergeableObject(e)&&Q(e).forEach((function(t){r[t]=J(e[t],n)})),Q(t).forEach((function(i){(function(e,t){return ee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
100
|
+
})(e,i)||(ee(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return ne;var n=t.customMerge(e);return"function"==typeof n?n:ne}(i,n)(e[i],t[i],n):r[i]=J(t[i],n))})),r}function ne(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||q,n.isMergeableObject=n.isMergeableObject||K,
|
|
101
101
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
102
102
|
// implementations can use it. The caller may not replace it.
|
|
103
|
-
n.cloneUnlessOtherwiseSpecified=
|
|
103
|
+
n.cloneUnlessOtherwiseSpecified=J;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):te(e,t,n):J(t,n)}ne.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return ne(e,n,t)}),{})};var re=ne,ie=function(e,t){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ie(e,t)};function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oe,se,le,ce=function(){return ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ce.apply(this,arguments)};function ue(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
|
|
104
104
|
/**
|
|
105
105
|
* Type Guards
|
|
106
106
|
*/
|
|
107
|
-
function
|
|
107
|
+
function he(e){return e.type===se.literal}function de(e){return e.type===se.argument}function me(e){return e.type===se.number}function fe(e){return e.type===se.date}function pe(e){return e.type===se.time}function ge(e){return e.type===se.select}function ye(e){return e.type===se.plural}function ve(e){return e.type===se.pound}function be(e){return e.type===se.tag}function we(e){return!(!e||"object"!=typeof e||e.type!==le.number)}function _e(e){return!(!e||"object"!=typeof e||e.type!==le.dateTime)}
|
|
108
108
|
// @generated from regex-gen.ts
|
|
109
109
|
!function(e){
|
|
110
110
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -166,7 +166,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
|
166
166
|
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
|
167
167
|
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
168
168
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
169
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(
|
|
169
|
+
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(oe||(oe={})),function(e){
|
|
170
170
|
/**
|
|
171
171
|
* Raw text
|
|
172
172
|
*/
|
|
@@ -203,7 +203,7 @@ e[e.pound=7]="pound",
|
|
|
203
203
|
/**
|
|
204
204
|
* XML-like tag
|
|
205
205
|
*/
|
|
206
|
-
e[e.tag=8]="tag"}(
|
|
206
|
+
e[e.tag=8]="tag"}(se||(se={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(le||(le={}));var Se=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xe=/(?:[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;
|
|
207
207
|
/**
|
|
208
208
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
209
209
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -215,7 +215,7 @@ e[e.tag=8]="tag"}(oe||(oe={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
215
215
|
* @public
|
|
216
216
|
* @param skeleton skeleton string
|
|
217
217
|
*/
|
|
218
|
-
function
|
|
218
|
+
function Ce(e){var t={};return e.replace(xe,(function(e){var n=e.length;switch(e[0]){
|
|
219
219
|
// Era
|
|
220
220
|
case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
|
|
221
221
|
// Year
|
|
@@ -249,33 +249,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
249
249
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
250
250
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
251
251
|
// @generated from regex-gen.ts
|
|
252
|
-
var
|
|
252
|
+
var Te=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ke=/^(@+)?(\+|#+)?[rs]?$/g,Fe=/(\*)(0+)|(#+)(0+)|(0+)/g,Ge=/^(0+)$/;function Me(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ke,(function(e,n,r){
|
|
253
253
|
// @@@ case
|
|
254
|
-
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function
|
|
254
|
+
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Le(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){
|
|
255
255
|
// Engineering
|
|
256
|
-
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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ge.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function
|
|
256
|
+
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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ge.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ie(e){var t=Le(e);return t||{}}
|
|
257
257
|
/**
|
|
258
258
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
259
|
-
*/function
|
|
259
|
+
*/function De(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];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=ce(ce(ce({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ce(ce({},e),Ie(t))}),{}));continue;case"engineering":t=ce(ce(ce({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ce(ce({},e),Ie(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
260
260
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
261
261
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
262
262
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
263
263
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fe,(function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
264
264
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
265
|
-
if(Ge.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(
|
|
265
|
+
if(Ge.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Ee.test(i.stem)){
|
|
266
266
|
// Precision
|
|
267
267
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
268
268
|
// precision-integer case
|
|
269
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
|
269
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ee,(function(e,n,r,i,a,o){
|
|
270
270
|
// .000* case (before ICU67 it was .000+)
|
|
271
271
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];
|
|
272
272
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
273
|
-
"w"===a?t=
|
|
273
|
+
"w"===a?t=ce(ce({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ce(ce({},t),Me(a)))}
|
|
274
274
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
275
|
-
else if(
|
|
275
|
+
else if(ke.test(i.stem))t=ce(ce({},t),Me(i.stem));else{var o=Le(i.stem);o&&(t=ce(ce({},t),o));var s=$e(i.stem);s&&(t=ce(ce({},t),s))}}return t}
|
|
276
276
|
// @generated from time-data-gen.ts
|
|
277
277
|
// prettier-ignore
|
|
278
|
-
var
|
|
278
|
+
var Pe,Oe={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"]};
|
|
279
279
|
/**
|
|
280
280
|
* Returns the best matching date time pattern if a date time skeleton
|
|
281
281
|
* pattern is provided with a locale. Follows the Unicode specification:
|
|
@@ -288,7 +288,7 @@ var De,Pe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
288
288
|
* of the given `locale` to the corresponding time pattern.
|
|
289
289
|
* @param locale
|
|
290
290
|
*/
|
|
291
|
-
function
|
|
291
|
+
function Ae(e){var t=e.hourCycle;if(void 0===t&&
|
|
292
292
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
293
293
|
e.hourCycles&&
|
|
294
294
|
// @ts-ignore
|
|
@@ -296,37 +296,37 @@ e.hourCycles.length&&(
|
|
|
296
296
|
// @ts-ignore
|
|
297
297
|
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")}
|
|
298
298
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
299
|
-
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(
|
|
299
|
+
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Oe[n||""]||Oe[r||""]||Oe["".concat(r,"-001")]||Oe["001"])[0]}var Ne=new RegExp("^".concat(Se.source,"*")),Re=new RegExp("".concat(Se.source,"*$"));function He(e,t){return{start:e,end:t}}
|
|
300
300
|
// #region Ponyfills
|
|
301
301
|
// Consolidate these variables up top for easier toggling during debugging
|
|
302
|
-
var
|
|
302
|
+
var Be=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Ye=!!Object.fromEntries,ze=!!String.prototype.codePointAt,je=!!String.prototype.trimStart,We=!!String.prototype.trimEnd,Ve=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ze=!0;try{
|
|
303
303
|
/**
|
|
304
304
|
* legacy Edge or Xbox One browser
|
|
305
305
|
* Unicode flag support: supported
|
|
306
306
|
* Pattern_Syntax support: not supported
|
|
307
307
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
Ze="a"===(null===(Pe=nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(e){Ze=!1}var Ke,Xe=Be?// Native
|
|
310
310
|
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
|
311
|
-
function(e,t,n){return e.slice(n,n+t.length)===t},
|
|
312
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},
|
|
311
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},Je=Ue?String.fromCodePoint:// IE11
|
|
312
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},qe=
|
|
313
313
|
// native
|
|
314
|
-
|
|
315
|
-
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],o=i[1];t[a]=o}return t},
|
|
314
|
+
Ye?Object.fromEntries:// Ponyfill
|
|
315
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],o=i[1];t[a]=o}return t},Qe=ze?// Native
|
|
316
316
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
317
|
-
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},
|
|
317
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},et=je?// Native
|
|
318
318
|
function(e){return e.trimStart()}:// Ponyfill
|
|
319
|
-
function(e){return e.replace(Ne,"")},
|
|
319
|
+
function(e){return e.replace(Ne,"")},tt=We?// Native
|
|
320
320
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
321
|
-
function(e){return e.replace(
|
|
321
|
+
function(e){return e.replace(Re,"")};
|
|
322
322
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
323
|
-
function
|
|
323
|
+
function nt(e,t){return new RegExp(e,t)}
|
|
324
324
|
// #endregion
|
|
325
|
-
if(
|
|
325
|
+
if(Ze){
|
|
326
326
|
// Native
|
|
327
|
-
var nt
|
|
327
|
+
var rt=nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ke=function(e,t){var n;return rt.lastIndex=t,null!==(n=rt.exec(e)[1])&&void 0!==n?n:""}}else
|
|
328
328
|
// IE11
|
|
329
|
-
|
|
329
|
+
Ke=function(e,t){for(var n=[];;){var r=Qe(e,t);if(void 0===r||st(r)||lt(r))break;n.push(r),t+=r>=65536?2:1}return Je.apply(void 0,n)};var it=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(oe.UNMATCHED_CLOSING_TAG,He(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&at(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var o=this.clonePosition();this.bump(),r.push({type:se.pound,location:He(o,this.clonePosition())})}}}return{val:r,err:null}},
|
|
330
330
|
/**
|
|
331
331
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
332
332
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -348,14 +348,14 @@ Ze=function(e,t){for(var n=[];;){var r=qe(e,t);if(void 0===r||ot(r)||st(r))break
|
|
|
348
348
|
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
|
349
349
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
350
350
|
// Self closing tag
|
|
351
|
-
return{val:{type:
|
|
351
|
+
return{val:{type:se.literal,value:"<".concat(r,"/>"),location:He(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();
|
|
352
352
|
// Expecting a close tag
|
|
353
|
-
if(this.bumpIf("</")){if(this.isEOF()||!
|
|
353
|
+
if(this.bumpIf("</")){if(this.isEOF()||!at(this.char()))return this.error(oe.INVALID_TAG,He(o,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(oe.UNMATCHED_CLOSING_TAG,He(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:r,children:a,location:He(n,this.clonePosition())},err:null}:this.error(oe.INVALID_TAG,He(o,this.clonePosition())))}return this.error(oe.UNCLOSED_TAG,He(n,this.clonePosition()))}return this.error(oe.INVALID_TAG,He(n,this.clonePosition()))},
|
|
354
354
|
/**
|
|
355
355
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
356
356
|
*/
|
|
357
357
|
e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
|
|
358
|
-
for(this.bump();!this.isEOF()&&
|
|
358
|
+
for(this.bump();!this.isEOF()&&ot(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}var s=He(n,this.clonePosition());return{val:{type:se.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(at(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
359
359
|
/** See `parseTag` function docs. */},
|
|
360
360
|
/**
|
|
361
361
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -377,67 +377,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
|
|
|
377
377
|
// Optional closing apostrophe.
|
|
378
378
|
this.bump();break}t.push(39),
|
|
379
379
|
// Bump one more time because we need to skip 2 characters.
|
|
380
|
-
this.bump()}else t.push(n);this.bump()}return
|
|
381
|
-
this.bumpSpace(),this.isEOF())return this.error(
|
|
380
|
+
this.bump()}else t.push(n);this.bump()}return Je.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),Je(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
|
|
381
|
+
this.bumpSpace(),this.isEOF())return this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,He(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(oe.EMPTY_ARGUMENT,He(n,this.clonePosition()));
|
|
382
382
|
// argument name
|
|
383
|
-
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(
|
|
383
|
+
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(oe.MALFORMED_ARGUMENT,He(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,He(n,this.clonePosition()));switch(this.char()){
|
|
384
384
|
// Simple argument: `{name}`
|
|
385
385
|
case 125/* `}` */:// `}`
|
|
386
|
-
return this.bump(),{val:{type:
|
|
386
|
+
return this.bump(),{val:{type:se.argument,
|
|
387
387
|
// value does not include the opening and closing braces.
|
|
388
|
-
value:r,location:
|
|
388
|
+
value:r,location:He(n,this.clonePosition())},err:null};
|
|
389
389
|
// Argument with options: `{name, format, ...}`
|
|
390
390
|
case 44/* `,` */:return this.bump(),// `,`
|
|
391
|
-
this.bumpSpace(),this.isEOF()?this.error(
|
|
391
|
+
this.bumpSpace(),this.isEOF()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,He(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(oe.MALFORMED_ARGUMENT,He(n,this.clonePosition()))}},
|
|
392
392
|
/**
|
|
393
393
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
394
394
|
* an identifier character. Return an empty string otherwise.
|
|
395
395
|
*/
|
|
396
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=
|
|
396
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Ke(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:He(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();
|
|
397
397
|
// Parse this range:
|
|
398
398
|
// {name, type, style}
|
|
399
399
|
// ^---^
|
|
400
400
|
switch(o){case"":
|
|
401
401
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
402
|
-
return this.error(
|
|
402
|
+
return this.error(oe.EXPECT_ARGUMENT_TYPE,He(a,s));case"number":case"date":case"time":
|
|
403
403
|
// Parse this range:
|
|
404
404
|
// {name, number, style}
|
|
405
405
|
// ^-------^
|
|
406
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=
|
|
406
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=tt(y.val)).length)return this.error(oe.EXPECT_ARGUMENT_STYLE,He(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:He(c,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=He(r,this.clonePosition());
|
|
407
407
|
// Extract style or skeleton
|
|
408
|
-
if(l&&
|
|
408
|
+
if(l&&Xe(null==l?void 0:l.style,"::",0)){
|
|
409
409
|
// Skeleton starts with `::`.
|
|
410
|
-
var h=
|
|
410
|
+
var h=et(l.style.slice(2));if("number"===o)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:se.number,value:n,location:u,style:y.val},err:null};if(0===h.length)return this.error(oe.EXPECT_DATE_TIME_SKELETON,u);var d=h;
|
|
411
411
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
412
412
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
413
413
|
// for unsupported patterns.
|
|
414
|
-
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=
|
|
414
|
+
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=Ae(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var m={type:le.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ce(d):{}};return{val:{type:"date"===o?se.date:se.time,value:n,location:u,style:m},err:null}}
|
|
415
415
|
// Regular style or no style.
|
|
416
|
-
return{val:{type:"number"===o?
|
|
416
|
+
return{val:{type:"number"===o?se.number:"date"===o?se.date:se.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
417
417
|
// Parse this range:
|
|
418
418
|
// {name, plural, options}
|
|
419
419
|
// ^---------^
|
|
420
|
-
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(
|
|
420
|
+
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(oe.EXPECT_SELECT_ARGUMENT_OPTIONS,He(f,ce({},f)));this.bumpSpace();
|
|
421
421
|
// Parse offset:
|
|
422
422
|
// {name, plural, offset:1, options}
|
|
423
423
|
// ^-----^
|
|
424
424
|
// or the first option:
|
|
425
425
|
// {name, plural, one {...} other {...}}
|
|
426
426
|
// ^--^
|
|
427
|
-
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==o&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(
|
|
427
|
+
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==o&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,He(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,oe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
428
428
|
// Parse another identifier for option parsing
|
|
429
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,o,t,p);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=
|
|
429
|
+
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,o,t,p);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=He(r,this.clonePosition());return"select"===o?{val:{type:se.select,value:n,options:qe(b.val),location:w},err:null}:{val:{type:se.plural,value:n,options:qe(b.val),offset:g,pluralType:"plural"===o?"cardinal":"ordinal",location:w},err:null};default:return this.error(oe.INVALID_ARGUMENT_TYPE,He(a,s))}},e.prototype.tryParseArgumentClose=function(e){
|
|
430
430
|
// Parse: {value, number, ::currency/GBP }
|
|
431
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(
|
|
431
|
+
return this.isEOF()||125/* `}` */!==this.char()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,He(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
432
432
|
/**
|
|
433
433
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
434
434
|
*/
|
|
435
435
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
436
436
|
// Treat apostrophe as quoting but include it in the style part.
|
|
437
437
|
// Find the end of the quoted literal text.
|
|
438
|
-
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(
|
|
438
|
+
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(oe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,He(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
439
439
|
// Parse the skeleton
|
|
440
|
-
for(var t=e.split(
|
|
440
|
+
for(var t=e.split(Te).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var o=a[0],s=a.slice(1),l=0,c=s;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:o,options:s})}return n}(e)}catch(e){return this.error(oe.INVALID_NUMBER_SKELETON,t)}return{val:{type:le.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?De(n):{}},err:null}},
|
|
441
441
|
/**
|
|
442
442
|
* @param nesting_level The current nesting level of messages.
|
|
443
443
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -454,24 +454,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
|
454
454
|
// ^--^
|
|
455
455
|
for(var i,a=!1,o=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
456
456
|
// Try parse `={number}` selector
|
|
457
|
-
var h=this.tryParseDecimalInteger(
|
|
457
|
+
var h=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=He(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
|
|
458
458
|
// Duplicate selector clauses
|
|
459
|
-
if(s.has(l))return this.error("select"===t?
|
|
459
|
+
if(s.has(l))return this.error("select"===t?oe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:oe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(a=!0),
|
|
460
460
|
// Parse:
|
|
461
461
|
// one {one apple}
|
|
462
462
|
// ^----------^
|
|
463
|
-
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?
|
|
463
|
+
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?oe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,He(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(d);if(f.err)return f;o.push([l,{value:m.val,location:He(d,this.clonePosition())}]),
|
|
464
464
|
// Keep track of the existing selectors
|
|
465
465
|
s.add(l),
|
|
466
466
|
// Prep next selector clause.
|
|
467
|
-
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===o.length?this.error("select"===t?
|
|
467
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===o.length?this.error("select"===t?oe.EXPECT_SELECT_ARGUMENT_SELECTOR:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,He(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(oe.MISSING_OTHER_CLAUSE,He(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(!(o>=48/* `0` */&&o<=57/* `9` */))break;i=!0,a=10*a+(o-48),this.bump()}var s=He(r,this.clonePosition());return i?Ve(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
468
468
|
// This is much faster than `Object.assign` or spread.
|
|
469
469
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
470
470
|
/**
|
|
471
471
|
* Return the code point at the current position of the parser.
|
|
472
472
|
* Throws if the index is out of bound.
|
|
473
473
|
*/
|
|
474
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
|
474
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Qe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
475
475
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
476
476
|
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
477
477
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
@@ -482,7 +482,7 @@ this.position.offset+=e<65536?1:2)}},
|
|
|
482
482
|
* following the prefix and return true. Otherwise, don't bump the parser
|
|
483
483
|
* and return false.
|
|
484
484
|
*/
|
|
485
|
-
e.prototype.bumpIf=function(e){if(
|
|
485
|
+
e.prototype.bumpIf=function(e){if(Xe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
|
486
486
|
/**
|
|
487
487
|
* Bump the parser until the pattern character is found and return `true`.
|
|
488
488
|
* Otherwise bump to the end of the file and return `false`.
|
|
@@ -494,7 +494,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
|
|
|
494
494
|
*/
|
|
495
495
|
e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
496
496
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
497
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
497
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&st(this.char());)this.bump()},
|
|
498
498
|
/**
|
|
499
499
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
500
500
|
* If the input has been exhausted, then this returns null.
|
|
@@ -504,85 +504,85 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
504
504
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
505
505
|
* @param codepoint
|
|
506
506
|
* @returns
|
|
507
|
-
*/function
|
|
507
|
+
*/function at(e){return e>=97&&e<=122||e>=65&&e<=90}function ot(e){return 45/* '-' */===e||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||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}
|
|
508
508
|
/**
|
|
509
509
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
510
510
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
511
|
-
*/function
|
|
511
|
+
*/function st(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
|
512
512
|
/**
|
|
513
513
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
514
514
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
515
|
-
*/function
|
|
515
|
+
*/function lt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||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||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||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||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||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||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||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||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||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||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ct(e){e.forEach((function(e){if(delete e.location,ge(e)||ye(e))for(var t in e.options)delete e.options[t].location,ct(e.options[t].value);else me(e)&&we(e.style)||(fe(e)||pe(e))&&_e(e.style)?delete e.style.location:be(e)&&ct(e.children)}))}function ut(e,t){void 0===t&&(t={}),t=ce({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new it(e,t).parse();if(n.err){var r=SyntaxError(oe[n.err.kind]);
|
|
516
516
|
// @ts-expect-error Assign to error object
|
|
517
517
|
throw r.location=n.err.location,
|
|
518
518
|
// @ts-expect-error Assign to error object
|
|
519
|
-
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||
|
|
519
|
+
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||ct(n.val),n.val}
|
|
520
520
|
|
|
521
521
|
// Main
|
|
522
522
|
|
|
523
|
-
function
|
|
523
|
+
function ht(e,t){var n=t&&t.cache?t.cache:bt,r=t&&t.serializer?t.serializer:gt;return(t&&t.strategy?t.strategy:pt)(e,{cache:n,serializer:r})}
|
|
524
524
|
|
|
525
525
|
// Strategy
|
|
526
526
|
|
|
527
|
-
function
|
|
527
|
+
function dt(e,t,n,r){var i,a=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),o=t.get(a);return void 0===o&&(o=e.call(this,r),t.set(a,o)),o}function mt(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return void 0===a&&(a=e.apply(this,r),t.set(i,a)),a}function ft(e,t,n,r,i){return n.bind(t,e,r,i)}function pt(e,t){return ft(e,this,1===e.length?dt:mt,t.cache.create(),t.serializer)}
|
|
528
528
|
// Serializer
|
|
529
|
-
var
|
|
529
|
+
var gt=function(){return JSON.stringify(arguments)};
|
|
530
530
|
|
|
531
531
|
// Cache
|
|
532
532
|
|
|
533
|
-
function
|
|
533
|
+
function yt(){this.cache=Object.create(null)}yt.prototype.get=function(e){return this.cache[e]},yt.prototype.set=function(e,t){this.cache[e]=t};var vt,bt={create:function(){
|
|
534
534
|
// @ts-ignore
|
|
535
|
-
return new
|
|
535
|
+
return new yt}},wt={variadic:function(e,t){return ft(e,this,mt,t.cache.create(),t.serializer)},monadic:function(e,t){return ft(e,this,dt,t.cache.create(),t.serializer)}};!function(e){
|
|
536
536
|
// When we have a placeholder but no value to format
|
|
537
537
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
538
538
|
// When value supplied is invalid
|
|
539
539
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
540
540
|
// When we need specific Intl API but it's not available
|
|
541
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(
|
|
541
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(vt||(vt={}));var _t,St=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ae(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xt=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),vt.INVALID_VALUE,i)||this}return ae(t,e),t}(St),Ct=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),vt.INVALID_VALUE,r)||this}return ae(t,e),t}(St),Tt=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),vt.MISSING_VALUE,n)||this}return ae(t,e),t}(St);function Et(e){return"function"==typeof e}
|
|
542
542
|
// TODO(skeleton): add skeleton support
|
|
543
|
-
function
|
|
543
|
+
function kt(e,t,n,r,i,a,
|
|
544
544
|
// For debugging
|
|
545
545
|
o){
|
|
546
546
|
// Hot path for straight simple msg translations
|
|
547
|
-
if(1===e.length&&
|
|
547
|
+
if(1===e.length&&he(e[0]))return[{type:_t.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];
|
|
548
548
|
// Exit early for string parts.
|
|
549
|
-
if(
|
|
549
|
+
if(he(u))s.push({type:_t.literal,value:u.value});else
|
|
550
550
|
// TODO: should this part be literal type?
|
|
551
551
|
// Replace `#` in plural rules with the actual numeric value.
|
|
552
|
-
if(
|
|
552
|
+
if(ve(u))"number"==typeof a&&s.push({type:_t.literal,value:n.getNumberFormat(t).format(a)});else{var h=u.value;
|
|
553
553
|
// Enforce that all required values are provided by the caller.
|
|
554
|
-
if(!i||!(h in i))throw new
|
|
554
|
+
if(!i||!(h in i))throw new Tt(h,o);var d=i[h];if(de(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?_t.literal:_t.object,value:d});else
|
|
555
555
|
// Recursively format plural and select parts' option — which can be a
|
|
556
556
|
// nested pattern structure. The choosing of the option to use is
|
|
557
557
|
// abstracted-by and delegated-to the part helper object.
|
|
558
|
-
if(
|
|
558
|
+
if(fe(u)){var m="string"==typeof u.style?r.date[u.style]:_e(u.style)?u.style.parsedOptions:void 0;s.push({type:_t.literal,value:n.getDateTimeFormat(t,m).format(d)})}else if(pe(u)){m="string"==typeof u.style?r.time[u.style]:_e(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:_t.literal,value:n.getDateTimeFormat(t,m).format(d)})}else if(me(u)){(m="string"==typeof u.style?r.number[u.style]:we(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(d*=m.scale||1),s.push({type:_t.literal,value:n.getNumberFormat(t,m).format(d)})}else{if(be(u)){var f=u.children,p=u.value,g=i[p];if(!Et(g))throw new Ct(p,"function",o);var y=g(kt(f,t,n,r,i,a).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?_t.literal:_t.object,value:e}})))}if(ge(u)){if(!(v=u.options[d]||u.options.other))throw new xt(u.value,d,Object.keys(u.options),o);s.push.apply(s,kt(v.value,t,n,r,i))}else if(ye(u)){var v;if(!(v=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new St('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vt.MISSING_INTL_API,o);var b=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));v=u.options[b]||u.options.other}if(!v)throw new xt(u.value,d,Object.keys(u.options),o);s.push.apply(s,kt(v.value,t,n,r,i,d-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===_t.literal&&t.type===_t.literal?n.value+=t.value:e.push(t),e}),[])}(s)}
|
|
559
559
|
/*
|
|
560
560
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
561
561
|
Copyrights licensed under the New BSD License.
|
|
562
562
|
See the accompanying LICENSE file for terms.
|
|
563
563
|
*/
|
|
564
564
|
// -- MessageFormat --------------------------------------------------------
|
|
565
|
-
function Ft(e,t){return t?Object.keys(e).reduce((function(n,r){var i,a;return n[r]=(i=e[r],(a=t[r])?
|
|
565
|
+
function Ft(e,t){return t?Object.keys(e).reduce((function(n,r){var i,a;return n[r]=(i=e[r],(a=t[r])?ce(ce(ce({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=ce(ce({},i[t]),a[t]||{}),e}),{})):i),n}),ce({},e)):e}function Gt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(_t||(_t={}));var Mt=/** @class */function(){function e(t,n,r,i){var a,o=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);
|
|
566
566
|
// Hot path for straight simple msg translations
|
|
567
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===
|
|
567
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===_t.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return kt(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},
|
|
568
568
|
// Defined first because it's used to build the format pattern.
|
|
569
569
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
570
570
|
// Parse string messages into an AST.
|
|
571
571
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,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.");
|
|
572
572
|
// Creates a new object with the specified `formats` merged with the default
|
|
573
573
|
// formats.
|
|
574
|
-
this.formats=Ft(e.formats,r),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:
|
|
574
|
+
this.formats=Ft(e.formats,r),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ht((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ue([void 0],t,!1)))}),{cache:Gt(a.number),strategy:wt.variadic}),getDateTimeFormat:ht((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ue([void 0],t,!1)))}),{cache:Gt(a.dateTime),strategy:wt.variadic}),getPluralRules:ht((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ue([void 0],t,!1)))}),{cache:Gt(a.pluralRules),strategy:wt.variadic})})}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(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=ut,
|
|
575
575
|
// Default format options used as the prototype of the `formats` provided to the
|
|
576
576
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
577
577
|
// and Intl.DateTimeFormat instances.
|
|
578
|
-
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}(),Mt
|
|
578
|
+
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}(),Lt=Mt;
|
|
579
579
|
/*
|
|
580
580
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
581
581
|
Copyrights licensed under the New BSD License.
|
|
582
582
|
See the accompanying LICENSE file for terms.
|
|
583
|
-
*/const
|
|
583
|
+
*/const $t={},It=(e,t,n)=>n?(t in $t||($t[t]={}),e in $t[t]||($t[t][e]=n),n):n,Dt=(e,t)=>{if(null==t)return;if(t in $t&&e in $t[t])return $t[t][e];const n=Jt(t);for(let r=0;r<n.length;r++){const i=Nt(n[r],e);if(i)return It(e,t,i)}};let Pt;const Ot=V({});function At(e){return e in Pt}function Nt(e,t){if(!At(e))return null;const n=function(e){return Pt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Rt(e,...t){delete $t[e],Ot.update((n=>(n[e]=re.all([n[e]||{},...t]),n)))}Z([Ot],(([e])=>Object.keys(e))),Ot.subscribe((e=>Pt=e));const Ht={};function Bt(e){return Ht[e]}function Ut(e){return null!=e&&Jt(e).some((e=>{var t;return null===(t=Bt(e))||void 0===t?void 0:t.size}))}const Yt={};function zt(e){if(!Ut(e))return e in Yt?Yt[e]:Promise.resolve();const t=function(e){return Jt(e).map((e=>{const t=Bt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Yt[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Ht[e].delete(t),0===Ht[e].size&&delete Ht[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Rt(e,...t)))}(e,t)))).then((()=>{if(Ut(e))return zt(e);delete Yt[e]})),Yt[e]}const jt={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 Wt(){return jt}const Vt=V(!1);let Zt;const Kt=V(null);function Xt(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=Wt().fallbackLocale){const n=Xt(e);return t?[...new Set([...n,...Xt(t)])]:n}function qt(){return null!=Zt?Zt:void 0}Kt.subscribe((e=>{Zt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt={...Kt,set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const n=t[e];if(At(n))return n}}(e)&&Ut(e)){const{loadingDelay:t}=Wt();let n;return"undefined"!=typeof window&&null!=qt()&&t?n=window.setTimeout((()=>Vt.set(!0)),t):Vt.set(!0),zt(e).then((()=>{Kt.set(e)})).finally((()=>{clearTimeout(n),Vt.set(!1)}))}return Kt.set(e)}},en=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},tn=(e,t)=>{const{formats:n}=Wt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},nn=en((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=tn("number",t)),new Intl.NumberFormat(e,n)})),rn=en((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=tn("date",t):0===Object.keys(n).length&&(n=tn("date","short")),new Intl.DateTimeFormat(e,n)})),an=en((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=tn("time",t):0===Object.keys(n).length&&(n=tn("time","short")),new Intl.DateTimeFormat(e,n)})),on=en(((e,t=qt())=>new Lt(e,t,Wt().formats,{ignoreTag:Wt().ignoreTag}))),sn=(e,t={})=>{var n,r,i,a;let o=t;"object"==typeof e&&(o=e,e=o.id);const{values:s,locale:l=qt(),default:c}=o;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Dt(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!==(a=null!==(i=null===(r=(n=Wt()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==a?a:e;if(!s)return u;let h=u;try{h=on(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},ln=(e,t)=>(({locale:e=qt(),...t}={})=>an({locale:e,...t}))(t).format(e),cn=(e,t)=>(({locale:e=qt(),...t}={})=>rn({locale:e,...t}))(t).format(e),un=(e,t)=>(({locale:e=qt(),...t}={})=>nn({locale:e,...t}))(t).format(e),hn=(e,t=qt())=>Dt(e,t),dn=Z([Qt,Ot],(()=>sn));Z([Qt],(()=>ln)),Z([Qt],(()=>cn)),Z([Qt],(()=>un)),Z([Qt,Ot],(()=>hn));var mn="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==mn&&mn,fn={searchParams:"URLSearchParams"in mn,iterable:"Symbol"in mn&&"iterator"in Symbol,blob:"FileReader"in mn&&"Blob"in mn&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in mn,arrayBuffer:"ArrayBuffer"in mn};if(fn.arrayBuffer)var pn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],gn=ArrayBuffer.isView||function(e){return e&&pn.indexOf(Object.prototype.toString.call(e))>-1};function yn(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function vn(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
584
584
|
// Build a destructive iterator for the value list
|
|
585
|
-
function
|
|
585
|
+
function bn(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return fn.iterable&&(t[Symbol.iterator]=function(){return t}),t}function wn(e){this.map={},e instanceof wn?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function _n(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Sn(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function xn(e){var t=new FileReader,n=Sn(t);return t.readAsArrayBuffer(e),n}function Cn(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Tn(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
586
586
|
/*
|
|
587
587
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
588
588
|
provide useful test harness features such as flush. However, on
|
|
@@ -593,21 +593,21 @@ function vn(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
|
593
593
|
semantic of setting Request.bodyUsed in the constructor before
|
|
594
594
|
_initBody is called.
|
|
595
595
|
*/
|
|
596
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:
|
|
596
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:fn.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fn.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:fn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fn.arrayBuffer&&fn.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Cn(e.buffer),
|
|
597
597
|
// IE 10-11 can't handle a DataView body.
|
|
598
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
|
598
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):fn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||gn(e))?this._bodyArrayBuffer=Cn(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):fn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fn.blob&&(this.blob=function(){var e=_n(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=_n(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(xn)}),this.text=function(){var e,t,n,r=_n(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Sn(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fn.formData&&(this.formData=function(){return this.text().then(Fn)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
599
599
|
// HTTP methods whose capitalization should be normalized
|
|
600
|
-
|
|
600
|
+
wn.prototype.append=function(e,t){e=yn(e),t=vn(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},wn.prototype.delete=function(e){delete this.map[yn(e)]},wn.prototype.get=function(e){return e=yn(e),this.has(e)?this.map[e]:null},wn.prototype.has=function(e){return this.map.hasOwnProperty(yn(e))},wn.prototype.set=function(e,t){this.map[yn(e)]=vn(t)},wn.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},wn.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),bn(e)},wn.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),bn(e)},wn.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),bn(e)},fn.iterable&&(wn.prototype[Symbol.iterator]=wn.prototype.entries);var En=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function kn(e,t){if(!(this instanceof kn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof kn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new wn(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new wn(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),En.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
|
601
601
|
// Search for a '_' parameter in the query string
|
|
602
602
|
var a=/([?&])_=[^&]*/;if(a.test(this.url))
|
|
603
603
|
// If it already exists then set the value with the current time
|
|
604
|
-
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Fn(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Gn(e,t){if(!(this instanceof Gn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new
|
|
604
|
+
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Fn(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Gn(e,t){if(!(this instanceof Gn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new wn(t.headers),this.url=t.url||"",this._initBody(e)}kn.prototype.clone=function(){return new kn(this,{body:this._bodyInit})},Tn.call(kn.prototype),Tn.call(Gn.prototype),Gn.prototype.clone=function(){return new Gn(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new wn(this.headers),url:this.url})},Gn.error=function(){var e=new Gn(null,{status:0,statusText:""});return e.type="error",e};var Mn=[301,302,303,307,308];Gn.redirect=function(e,t){if(-1===Mn.indexOf(t))throw new RangeError("Invalid status code");return new Gn(null,{status:t,headers:{location:e}})};var Ln=mn.DOMException;try{new Ln}catch(e){(Ln=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Ln.prototype.constructor=Ln}function $n(e,t){return new Promise((function(n,r){var i=new kn(e,t);if(i.signal&&i.signal.aborted)return r(new Ln("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new wn,
|
|
605
605
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
606
606
|
// https://github.com/github/fetch/issues/748
|
|
607
607
|
// https://github.com/zloirock/core-js/issues/751
|
|
608
|
-
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new Gn(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new
|
|
608
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new Gn(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new Ln("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&mn.location.href?mn.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(fn.blob?a.responseType="blob":fn.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof wn?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,vn(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){
|
|
609
609
|
// DONE (success or failure)
|
|
610
|
-
4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
|
610
|
+
4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}$n.polyfill=!0,mn.fetch||(mn.fetch=$n,mn.Headers=wn,mn.Request=kn,mn.Response=Gn);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function In(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
611
611
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
612
612
|
// on the global object (window or self)
|
|
613
613
|
|
|
@@ -628,20 +628,20 @@ self.fetch.bind(self);
|
|
|
628
628
|
PERFORMANCE OF THIS SOFTWARE.
|
|
629
629
|
***************************************************************************** */
|
|
630
630
|
/* global Reflect, Promise */
|
|
631
|
-
var In=function(e,t){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},In(e,t)};function Dn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}In(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Pn(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function On(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Nn(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function An(e){return"function"==typeof e}function Rn(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Hn=Rn((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Bn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Un=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=Pn(a),s=o.next();!s.done;s=o.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(An(l))try{l()}catch(e){i=e instanceof Hn?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Pn(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{jn(d)}catch(e){i=null!=i?i:[],e instanceof Hn?i=Nn(Nn([],On(i)),On(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Hn(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)jn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Bn(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Bn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Yn=Un.EMPTY;function zn(e){return e instanceof Un||e&&"closed"in e&&An(e.remove)&&An(e.add)&&An(e.unsubscribe)}function jn(e){An(e)?e():e.unsubscribe()}var Wn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Vn={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Vn.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Nn([e,t],On(n))):setTimeout.apply(void 0,Nn([e,t],On(n)))},clearTimeout:function(e){var t=Vn.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Zn(){}var Kn=null;function Xn(e){if(Wn.useDeprecatedSynchronousErrorHandling){var t=!Kn;if(t&&(Kn={errorThrown:!1,error:null}),e(),t){var n=Kn,r=n.errorThrown,i=n.error;if(Kn=null,r)throw i}}else e()}var Jn=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,zn(t)&&t.add(n)):n.destination=rr,n}return Dn(t,e),t.create=function(e,t,n){return new tr(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},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(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Un),qn=Function.prototype.bind;function Qn(e,t){return qn.call(e,t)}var er=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nr(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nr(e)}else nr(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nr(e)}},e}(),tr=function(e){function t(t,n,r){var i,a,o=e.call(this)||this;An(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:o&&Wn.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},i={next:t.next&&Qn(t.next,a),error:t.error&&Qn(t.error,a),complete:t.complete&&Qn(t.complete,a)}):i=t;return o.destination=new er(i),o}return Dn(t,e),t}(Jn);function nr(e){var t;t=e,Vn.setTimeout((function(){throw t}))}var rr={closed:!0,next:Zn,error:function(e){throw e},complete:Zn},ir="function"==typeof Symbol&&Symbol.observable||"@@observable";function ar(e){return e}var or=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,a=(r=e)&&r instanceof Jn||function(e){return e&&An(e.next)&&An(e.error)&&An(e.complete)}(r)&&zn(r)?e:new tr(e,t,n);return Xn((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=sr(t))((function(t,r){var i=new tr({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[ir]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?ar:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=sr(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function sr(e){var t;return null!==(t=null!=e?e:Wn.Promise)&&void 0!==t?t:Promise}var lr=Rn((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),cr=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Dn(t,e),t.prototype.lift=function(e){var t=new ur(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new lr},t.prototype.next=function(e){var t=this;Xn((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=Pn(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Xn((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Xn((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?Yn:(this.currentObservers=null,a.push(e),new Un((function(){t.currentObservers=null,Bn(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new or;return e.source=this,e},t.create=function(e,t){return new ur(e,t)},t}(or),ur=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return Dn(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Yn},t}(cr),hr={now:function(){return(hr.delegate||Date).now()},delegate:void 0},dr=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=hr);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return Dn(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,l=1;l<r.length&&r[l]<=o;l+=2)s=l;s&&r.splice(0,s+1)}},t}(cr);let mr=[],fr={};window.emWidgets={topic:(e,t=0)=>{if(-1==mr.indexOf(e)){let n=new dr(t);fr[e]=n,mr.push(e)}return fr[e]}};
|
|
631
|
+
var Dn=function(e,t){return Dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Dn(e,t)};function Pn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Dn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function On(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function An(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Nn(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Rn(e){return"function"==typeof e}function Hn(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Bn=Hn((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Un(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Yn=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=On(a),s=o.next();!s.done;s=o.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(Rn(l))try{l()}catch(e){i=e instanceof Bn?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=On(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Wn(d)}catch(e){i=null!=i?i:[],e instanceof Bn?i=Nn(Nn([],An(i)),An(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Bn(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Wn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Un(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Un(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),zn=Yn.EMPTY;function jn(e){return e instanceof Yn||e&&"closed"in e&&Rn(e.remove)&&Rn(e.add)&&Rn(e.unsubscribe)}function Wn(e){Rn(e)?e():e.unsubscribe()}var Vn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zn={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Zn.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Nn([e,t],An(n))):setTimeout.apply(void 0,Nn([e,t],An(n)))},clearTimeout:function(e){var t=Zn.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Kn(){}var Xn=null;function Jn(e){if(Vn.useDeprecatedSynchronousErrorHandling){var t=!Xn;if(t&&(Xn={errorThrown:!1,error:null}),e(),t){var n=Xn,r=n.errorThrown,i=n.error;if(Xn=null,r)throw i}}else e()}var qn=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,jn(t)&&t.add(n)):n.destination=ir,n}return Pn(t,e),t.create=function(e,t,n){return new nr(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},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(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Yn),Qn=Function.prototype.bind;function er(e,t){return Qn.call(e,t)}var tr=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rr(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rr(e)}else rr(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rr(e)}},e}(),nr=function(e){function t(t,n,r){var i,a,o=e.call(this)||this;Rn(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:o&&Vn.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},i={next:t.next&&er(t.next,a),error:t.error&&er(t.error,a),complete:t.complete&&er(t.complete,a)}):i=t;return o.destination=new tr(i),o}return Pn(t,e),t}(qn);function rr(e){var t;t=e,Zn.setTimeout((function(){throw t}))}var ir={closed:!0,next:Kn,error:function(e){throw e},complete:Kn},ar="function"==typeof Symbol&&Symbol.observable||"@@observable";function or(e){return e}var sr=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,a=(r=e)&&r instanceof qn||function(e){return e&&Rn(e.next)&&Rn(e.error)&&Rn(e.complete)}(r)&&jn(r)?e:new nr(e,t,n);return Jn((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=lr(t))((function(t,r){var i=new nr({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[ar]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?or:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=lr(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function lr(e){var t;return null!==(t=null!=e?e:Vn.Promise)&&void 0!==t?t:Promise}var cr=Hn((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),ur=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Pn(t,e),t.prototype.lift=function(e){var t=new hr(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new cr},t.prototype.next=function(e){var t=this;Jn((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=On(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Jn((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Jn((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?zn:(this.currentObservers=null,a.push(e),new Yn((function(){t.currentObservers=null,Un(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new sr;return e.source=this,e},t.create=function(e,t){return new hr(e,t)},t}(sr),hr=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return Pn(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:zn},t}(ur),dr={now:function(){return(dr.delegate||Date).now()},delegate:void 0},mr=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=dr);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return Pn(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,l=1;l<r.length&&r[l]<=o;l+=2)s=l;s&&r.splice(0,s+1)}},t}(ur);let fr=[],pr={};window.emWidgets={topic:(e,t=0)=>{if(-1==fr.indexOf(e)){let n=new mr(t);pr[e]=n,fr.push(e)}return pr[e]}};
|
|
632
632
|
/**
|
|
633
633
|
* @name isMobile
|
|
634
634
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
635
635
|
* @param {String} userAgent window.navigator.userAgent
|
|
636
636
|
* @returns {Boolean} true or false
|
|
637
637
|
*/
|
|
638
|
-
const
|
|
638
|
+
const gr=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)),yr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
|
|
639
639
|
/**
|
|
640
640
|
* @name getDevice
|
|
641
641
|
* @description A method that returns the type of the device
|
|
642
642
|
* @param {String} userAgent window.navigator.userAgent
|
|
643
643
|
* @returns {String} Android/iPhone/iPad/PC
|
|
644
|
-
*/function
|
|
644
|
+
*/function vr(e,t){Rt(e,t)}const br={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavorites:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},"zh-hk":{gamesCategorySection:{showMore:"更多的",viewAll:"顯示所有",searchedItems:"搜索結果",recentSearchedItems:"最近搜索過",favorites:"收藏夹",noRecentSearch:"尚未開始搜索。 只需搜索遊戲。",noResults:"抱歉,沒有找到結果。 請再試一次。",noFavoritesMobile:"您現在可以通過點擊遊戲頁面上的星形圖標將游戲添加到收藏夾。",noFavorites:"您現在可以通過單擊遊戲縮略圖上的星形圖標將游戲添加到收藏夾。",noFavoritesTitle:"您還沒有任何喜歡的遊戲。",waiting:"等待"}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Ergebnis suchen",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavorites:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Plus de",viewAll:"Afficher tous",searchedItems:"Recherche du resultat",recentSearchedItems:"Recherches récentes",favorites:"Favoris",noRecentSearch:"Aucune recherche n'a encore été lancée . il suffit de chercher un jeu.",noResults:"Désolé , aucun résultat trouvé.veuillez réessayer.",noFavoritesMobile:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone étoile située sur la page du jeu.",noFavorites:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone en forme d'etoile située sur la vignette du jeu",noFavoritesTitle:"Vous n'avez pas encore de jeux favoris.",waiting:"Attente"}},es:{gamesCategorySection:{showMore:"Más",viewAll:"Mostrar todas",searchedItems:"Resultado de busqueda",recentSearchedItems:"Buscado recientemente",favorites:"Favoritos",noRecentSearch:"Aún no inicia busqueda. Solo busque un juego",noResults:"Disculpe",noFavoritesMobile:"Ahora puede agregar juegos a sus Favoritos dando clic al ícono de estrella en esta página",noFavorites:"Ahora puede agregar juegos a sus Favoritos dando click al ícono de la miniatura del juego.",noFavoritesTitle:"No tiene juegos Favoritos aún",waiting:"Cargando"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",favorites:"Favorite",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou",noFavoritesMobile:"Acum puteți adăuga jocuri la favorite atingând pictograma stea situată pe pagina jocului.",noFavorites:"Acum puteți adăuga jocuri la favorite făcând clic pe pictograma stea situată pe miniatura jocului.",noFavoritesTitle:"Nu aveți încă niciun joc preferat.",waiting:"Aşteptare"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostre tudo",searchedItems:"Resultado da pesquisa",recentSearchedItems:"Pesquisado recentemente",favorites:"Favorito",noRecentSearch:"Nenhuma pesquisa foi iniciada ainda. Simplesmente procure por um jogo.",noResults:"Desculpe, nenhum resultado encontrado. Por favor, tente novamente.",noFavoritesMobile:"Agora você pode adicionar jogos aos favoritos tocando no ícone da estrela localizado na página do jogo.",noFavorites:"Agora você pode adicionar jogos aos favoritos clicando no ícone da estrela localizado na miniatura do jogo.",noFavoritesTitle:"Você ainda não tem nenhum jogo favorito.",waiting:"Aguardando"}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}};var wr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return In(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
645
645
|
// This is done to register the method called with moment()
|
|
646
646
|
// without creating circular dependencies.
|
|
647
647
|
function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){
|
|
@@ -657,22 +657,22 @@ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n
|
|
|
657
657
|
function S(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
658
658
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
659
659
|
// objects.
|
|
660
|
-
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function C(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,
|
|
660
|
+
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function C(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,k={};function F(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(C(t),k[e]=!0)}function G(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,n;for(n in e)s(e,n)&&(G(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
661
661
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
662
662
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
663
663
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
664
664
|
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function L(e,t){var n,r=m({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(
|
|
665
665
|
// make sure changes to properties don't modify parent config
|
|
666
|
-
r[n]=m({},r[n]));return r}function $(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return
|
|
666
|
+
r[n]=m({},r[n]));return r}function $(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return G(r)?r.call(t,n):r}function P(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},R={};
|
|
667
667
|
// token: 'M'
|
|
668
668
|
// padded: ['MM', 2]
|
|
669
669
|
// ordinal: 'Mo'
|
|
670
670
|
// callback: function () { this.month() + 1 }
|
|
671
|
-
function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(O);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=B(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=
|
|
671
|
+
function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(O);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=B(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=G(r[i])?r[i].call(t,e):r[i];return a}}
|
|
672
672
|
// format date using native date object
|
|
673
|
-
function Y(e,t){return e.isValid()?(t=z(t,e.localeData()),
|
|
673
|
+
function Y(e,t){return e.isValid()?(t=z(t,e.localeData()),N[t]=N[t]||U(t),N[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var j={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var V="Invalid date";function Z(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return G(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return G(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ae={};function oe(e,t){ae[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function he(e,t){return function(n){return null!=n?(me(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
|
674
674
|
// MOMENTS
|
|
675
|
-
function fe(e){return
|
|
675
|
+
function fe(e){return G(this[e=re(e)])?this[e]():this}function pe(e,t){if("object"==typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(G(this[e=re(e)]))return this[e](t);return this}var ge,ye=/\d/,// 0 - 9
|
|
676
676
|
ve=/\d\d/,// 00 - 99
|
|
677
677
|
be=/\d{3}/,// 000 - 999
|
|
678
678
|
we=/\d{4}/,// 0000 - 9999
|
|
@@ -682,17 +682,17 @@ xe=/\d\d\d\d?/,// 999 - 9999
|
|
|
682
682
|
Ce=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
683
683
|
Te=/\d{1,3}/,// 0 - 999
|
|
684
684
|
Ee=/\d{1,4}/,// 0 - 9999
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
ke=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
686
|
+
Fe=/\d+/,// 0 - inf
|
|
687
|
+
Ge=/[+-]?\d+/,// -inf - inf
|
|
688
688
|
Me=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
689
689
|
Le=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
690
690
|
$e=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
691
691
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
692
692
|
// includes scottish gaelic two word and hyphenated months
|
|
693
|
-
Ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function De(e,t,n){ge[e]=
|
|
693
|
+
Ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function De(e,t,n){ge[e]=G(t)?t:function(e,r){return e&&n?n:t}}function Pe(e,t){return s(ge,e)?ge[e](t._strict,t._locale):new RegExp(Oe(e))}
|
|
694
694
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
695
|
-
function Oe(e){return
|
|
695
|
+
function Oe(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Ne={};function Re(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Ne[e[n]]=i}function He(e,t){Re(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Be(e,t,n){null!=t&&s(Ne,e)&&Ne[e](t,n._a,n,e)}var Ue,Ye=0,ze=1,je=2,We=3,Ve=4,Ze=5,Ke=6,Xe=7,Je=8;function qe(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
|
696
696
|
// FORMATTING
|
|
697
697
|
Ue=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
698
698
|
// I know
|
|
@@ -727,7 +727,7 @@ if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.
|
|
|
727
727
|
n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));
|
|
728
728
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
729
729
|
// will match the longer piece.
|
|
730
|
-
for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=
|
|
730
|
+
for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=Ae(r[t]),i[t]=Ae(i[t]);for(t=0;t<24;t++)a[t]=Ae(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}
|
|
731
731
|
// FORMATTING
|
|
732
732
|
// HELPERS
|
|
733
733
|
function pt(e){return le(e)?366:365}
|
|
@@ -738,7 +738,7 @@ ne("year","y"),
|
|
|
738
738
|
// PRIORITIES
|
|
739
739
|
oe("year",1),
|
|
740
740
|
// PARSING
|
|
741
|
-
De("Y",
|
|
741
|
+
De("Y",Ge),De("YY",Se,ve),De("YYYY",Ee,we),De("YYYYY",ke,_e),De("YYYYYY",ke,_e),Re(["YYYYY","YYYYYY"],Ye),Re("YYYY",(function(e,t){t[Ye]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),Re("YY",(function(e,t){t[Ye]=r.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Ye]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};
|
|
742
742
|
// MOMENTS
|
|
743
743
|
var gt=he("FullYear",!0);function yt(){return le(this.year())}function vt(e,t,n,r,i,a,o){
|
|
744
744
|
// can't just apply() to create a date:
|
|
@@ -767,9 +767,9 @@ ne("week","w"),ne("isoWeek","W"),
|
|
|
767
767
|
oe("week",5),oe("isoWeek",5),
|
|
768
768
|
// PARSING
|
|
769
769
|
De("w",Se),De("ww",Se,ve),De("W",Se),De("WW",Se,ve),He(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var Tt={dow:0,// Sunday is the first day of the week.
|
|
770
|
-
doy:6};function Et(){return this._week.dow}function
|
|
770
|
+
doy:6};function Et(){return this._week.dow}function kt(){return this._week.doy}
|
|
771
771
|
// MOMENTS
|
|
772
|
-
function
|
|
772
|
+
function Ft(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Gt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
773
773
|
// FORMATTING
|
|
774
774
|
// HELPERS
|
|
775
775
|
function Mt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Lt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
@@ -782,7 +782,7 @@ oe("day",11),oe("weekday",11),oe("isoWeekday",11),
|
|
|
782
782
|
// PARSING
|
|
783
783
|
De("d",Se),De("e",Se),De("E",Se),De("dd",(function(e,t){return t.weekdaysMinRegex(e)})),De("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),De("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
784
784
|
// if we didn't get a weekday name, mark the date as invalid
|
|
785
|
-
null!=i?t.d=i:g(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ot=Ie,
|
|
785
|
+
null!=i?t.d=i:g(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ot=Ie,At=Ie,Nt=Ie;function Rt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?$t(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?$t(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?$t(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ut(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,o))||-1!==(i=Ue.call(this._shortWeekdaysParse,o))||-1!==(i=Ue.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,o))||-1!==(i=Ue.call(this._weekdaysParse,o))||-1!==(i=Ue.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,o))||-1!==(i=Ue.call(this._weekdaysParse,o))||-1!==(i=Ue.call(this._shortWeekdaysParse,o))?i:null}function Yt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Ut.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
786
786
|
// test the regex
|
|
787
787
|
if(
|
|
788
788
|
// make the regex if we don't have it already
|
|
@@ -792,9 +792,9 @@ function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this
|
|
|
792
792
|
// behaves the same as moment#day except
|
|
793
793
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
794
794
|
// as a setter, sunday should belong to the previous week.
|
|
795
|
-
if(null!=e){var t=Lt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Vt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ot),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=
|
|
795
|
+
if(null!=e){var t=Lt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Vt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ot),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=At),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)
|
|
796
796
|
// make the regex if we don't have it already
|
|
797
|
-
n=f([2e3,1]).day(t),r=
|
|
797
|
+
n=f([2e3,1]).day(t),r=Ae(this.weekdaysMin(n,"")),i=Ae(this.weekdaysShort(n,"")),a=Ae(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),c.push(r),c.push(i),c.push(a);
|
|
798
798
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
799
799
|
// will match the longer piece.
|
|
800
800
|
o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}
|
|
@@ -827,7 +827,7 @@ break;t--}a++}return on}function mn(e){
|
|
|
827
827
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
828
828
|
return null!=e.match("^[^/\\\\]*$")}function fn(t){var n=null;
|
|
829
829
|
// TODO: Find a better way to register and load all the locales in Node
|
|
830
|
-
if(void 0===ln[t]&&e&&e.exports&&mn(t))try{n=on._abbr
|
|
830
|
+
if(void 0===ln[t]&&e&&e.exports&&mn(t))try{n=on._abbr,In(),pn(n)}catch(e){
|
|
831
831
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
832
832
|
// when trying to find en-US, en_US, en-us for every format call
|
|
833
833
|
ln[t]=null;// null means not found
|
|
@@ -839,7 +839,7 @@ function pn(e,t){var n;return e&&((n=c(t)?vn(e):gn(e,t))?
|
|
|
839
839
|
// moment.duration._locale = moment._locale = data;
|
|
840
840
|
on=n:"undefined"!=typeof console&&console.warn&&
|
|
841
841
|
//warn user if arguments are passed but the locale could not be set
|
|
842
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])
|
|
842
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])F("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new $(L(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),
|
|
843
843
|
// backwards compat for now: also set the locale
|
|
844
844
|
// make sure we set the locale AFTER all child locales have been
|
|
845
845
|
// created, so we won't end up with the child locale set.
|
|
@@ -868,23 +868,23 @@ var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T|
|
|
|
868
868
|
// iso time formats and regexes
|
|
869
869
|
Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,
|
|
870
870
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
871
|
-
|
|
871
|
+
kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
872
872
|
// date from iso format
|
|
873
|
-
function
|
|
873
|
+
function Gn(e){var t,n,r,i,a,o,s=e._i,l=_n.exec(s)||Sn.exec(s),c=Cn.length,u=Tn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(Cn[t][1].exec(l[1])){i=Cn[t][0],r=!1!==Cn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Tn[t][1].exec(l[3])){
|
|
874
874
|
// match[2] should be 'T' or space
|
|
875
|
-
a=(l[2]||" ")+Tn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Un(e)}else e._isValid=!1}function Mn(e,t,n,r,i,a){var o=[Ln(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Ln(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function
|
|
875
|
+
a=(l[2]||" ")+Tn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Un(e)}else e._isValid=!1}function Mn(e,t,n,r,i,a){var o=[Ln(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Ln(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function $n(e){
|
|
876
876
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
877
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return
|
|
877
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Fn[e];if(t)
|
|
878
878
|
// the only allowed military tz is Z
|
|
879
879
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
880
880
|
// date and time from ref 2822 format
|
|
881
|
-
function On(e){var t,n=
|
|
881
|
+
function On(e){var t,n=kn.exec($n(e._i));if(n){if(t=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
882
882
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
883
|
-
function
|
|
883
|
+
function An(e){var t=En.exec(e._i);null===t?(Gn(e),!1===e._isValid&&(delete e._isValid,On(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
884
884
|
// Final attempt, use Input Fallback
|
|
885
885
|
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
886
886
|
// Pick the first defined of two or three arguments.
|
|
887
|
-
function
|
|
887
|
+
function Nn(e,t,n){return null!=e?e:null!=t?t:n}function Rn(e){
|
|
888
888
|
// hooks is actually the exported moment object
|
|
889
889
|
var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
|
|
890
890
|
// convert an array to a date.
|
|
@@ -901,7 +901,7 @@ for(r=Rn(e),
|
|
|
901
901
|
//compute day of the year from weeks and weekdays
|
|
902
902
|
e._w&&null==e._a[je]&&null==e._a[ze]&&Bn(e),
|
|
903
903
|
//if the day of the year is set, figure out what it is
|
|
904
|
-
null!=e._dayOfYear&&(a=
|
|
904
|
+
null!=e._dayOfYear&&(a=Nn(e._a[Ye],r[Ye]),(e._dayOfYear>pt(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[ze]=n.getUTCMonth(),e._a[je]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];
|
|
905
905
|
// Zero out whatever was not defaulted, including time
|
|
906
906
|
for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
907
907
|
// Check for 24:00:00.000
|
|
@@ -915,9 +915,9 @@ e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Bn(e){var
|
|
|
915
915
|
// how we interpret now (local, utc, fixed offset). So create
|
|
916
916
|
// a now version of current config (take local/utc/offset flags, and
|
|
917
917
|
// create now).
|
|
918
|
-
n=
|
|
918
|
+
n=Nn(t.GG,e._a[Ye],St(Xn(),1,4).year),r=Nn(t.W,1),((i=Nn(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=St(Xn(),a,o),n=Nn(t.gg,e._a[Ye],c.year),
|
|
919
919
|
// Default to current week.
|
|
920
|
-
r=
|
|
920
|
+
r=Nn(t.w,c.week),null!=t.d?((
|
|
921
921
|
// weekday -- low day numbers are considered next week
|
|
922
922
|
i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
|
|
923
923
|
// local weekday -- counting starts from beginning of week
|
|
@@ -940,7 +940,7 @@ e._a[We]<=12&&!0===g(e).bigHour&&e._a[We]>0&&(g(e).bigHour=void 0),g(e).parsedDa
|
|
|
940
940
|
// handle meridiem
|
|
941
941
|
e._a[We]=Yn(e._locale,e._a[We],e._meridiem),null!==(
|
|
942
942
|
// handle era
|
|
943
|
-
s=g(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),Hn(e),wn(e)}else On(e);else
|
|
943
|
+
s=g(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),Hn(e),wn(e)}else On(e);else Gn(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
|
944
944
|
// Fallback
|
|
945
945
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
|
946
946
|
// date from string and array of format strings
|
|
@@ -950,7 +950,7 @@ a+=g(t).charsLeftOver,
|
|
|
950
950
|
//or tokens
|
|
951
951
|
a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));m(e,n||t)}function jn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Hn(e)}}function Wn(e){var t=new S(wn(Vn(e)));return t._nextDay&&(
|
|
952
952
|
// Adding is smart enough around DST
|
|
953
|
-
t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new S(wn(t)):(h(t)?e._d=t:a(n)?zn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?
|
|
953
|
+
t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new S(wn(t)):(h(t)?e._d=t:a(n)?zn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?An(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):o(t)?jn(e):u(t)?
|
|
954
954
|
// from milliseconds
|
|
955
955
|
e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),
|
|
956
956
|
// object construction must be done this way.
|
|
@@ -966,7 +966,7 @@ r.RFC_2822=function(){};var Jn=T("moment().min is deprecated, use moment.max ins
|
|
|
966
966
|
function Qn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
|
967
967
|
// TODO: Use [].sort instead?
|
|
968
968
|
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(s(e,t)&&(-1===Ue.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
|
969
|
-
parseFloat(e[rr[n]])!==ue(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return
|
|
969
|
+
parseFloat(e[rr[n]])!==ue(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return Gr(NaN)}function sr(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ir(t),
|
|
970
970
|
// representation for dateAddRemove
|
|
971
971
|
this._milliseconds=+u+1e3*c+// 1000
|
|
972
972
|
6e4*l+// 1000 * 60
|
|
@@ -1009,15 +1009,15 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1009
1009
|
// a second time. In case it wants us to change the offset again
|
|
1010
1010
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1011
1011
|
// there is no such time in the given timezone.
|
|
1012
|
-
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,
|
|
1012
|
+
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,Gr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mr(Me,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Sr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=Vn(t))._a?(e=t._isUTC?f(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Cr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function Er(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1013
1013
|
// ASP.NET json date format regex
|
|
1014
|
-
r.updateOffset=function(){};var
|
|
1014
|
+
r.updateOffset=function(){};var kr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1015
1015
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1016
1016
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1017
1017
|
// and further modified to allow for strings containing both week and day
|
|
1018
|
-
|
|
1018
|
+
Fr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gr(e,t){var n,r,i,a=e,
|
|
1019
1019
|
// matching against regexp is expensive, do it on demand
|
|
1020
|
-
o=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=
|
|
1020
|
+
o=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=kr.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:ue(o[je])*n,h:ue(o[We])*n,m:ue(o[Ve])*n,s:ue(o[Ze])*n,ms:ue(cr(1e3*o[Ke]))*n}):(o=Fr.exec(e))?(n="-"===o[1]?-1:1,a={y:Mr(o[2],n),M:Mr(o[3],n),w:Mr(o[4],n),d:Mr(o[5],n),h:Mr(o[6],n),m:Mr(o[7],n),s:Mr(o[8],n)}):null==a?
|
|
1021
1021
|
// checks for null or undefined
|
|
1022
1022
|
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=$r(Xn(a.from),Xn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),lr(e)&&s(e,"_locale")&&(r._locale=e._locale),lr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Mr(e,t){
|
|
1023
1023
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
@@ -1029,14 +1029,14 @@ return(isNaN(n)?0:n)*t}function Lr(e,t){var n={};return n.months=t.month()-e.mon
|
|
|
1029
1029
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1030
1030
|
function Ir(e,t){return function(n,r){var i;
|
|
1031
1031
|
//invert the arguments, but complain about it
|
|
1032
|
-
return null===r||isNaN(+r)||(
|
|
1032
|
+
return null===r||isNaN(+r)||(F(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Dr(this,Gr(n,r),e),this}}function Dr(e,t,n,i){var a=t._milliseconds,o=cr(t._days),s=cr(t._months);e.isValid()&&(i=null==i||i,s&&ct(e,de(e,"Month")+s*n),o&&me(e,"Date",de(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,o||s))}Gr.fn=sr.prototype,Gr.invalid=or;var Pr=Ir(1,"add"),Or=Ir(-1,"subtract");function Ar(e){return"string"==typeof e||e instanceof String}
|
|
1033
1033
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1034
|
-
function
|
|
1034
|
+
function Nr(e){return x(e)||h(e)||Ar(e)||u(e)||Hr(e)||Rr(e)||null==e}function Rr(e){var t,n,r=o(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=a.length;for(t=0;t<c;t+=1)n=a[t],i=i||s(e,n);return r&&i}function Hr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Ar(e)})).length),t&&n}function Br(e){var t,n,r=o(e)&&!l(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||s(e,n);return r&&i}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){
|
|
1035
1035
|
// Support for single parameter, formats only overload to the calendar function
|
|
1036
|
-
1===arguments.length&&(arguments[0]?
|
|
1036
|
+
1===arguments.length&&(arguments[0]?Nr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
1037
1037
|
// We want to compare the start of today, vs this.
|
|
1038
1038
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
1039
|
-
var n=e||Xn(),i=fr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(
|
|
1039
|
+
var n=e||Xn(),i=fr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(G(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Xn(n)))}function zr(){return new S(this)}function jr(e,t){var n=x(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=x(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var i=x(e)?e:Xn(e),a=x(t)?t:Xn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Zr(e,t){var n,r=x(e)?e:Xn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Jr(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=qr(this,r)/12;break;case"month":a=qr(this,r);break;case"quarter":a=qr(this,r)/3;break;case"second":a=(this-r)/1e3;break;// 1000
|
|
1040
1040
|
case"minute":a=(this-r)/6e4;break;// 1000 * 60
|
|
1041
1041
|
case"hour":a=(this-r)/36e5;break;// 1000 * 60 * 60
|
|
1042
1042
|
case"day":a=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
@@ -1050,7 +1050,7 @@ var n=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
|
1050
1050
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
1051
1051
|
r=e.clone().add(n,"months");
|
|
1052
1052
|
//check for negative zero, return zero if negative zero
|
|
1053
|
-
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):
|
|
1053
|
+
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?
|
|
1054
1054
|
// native implementation is ~50x faster, use it when we can
|
|
1055
1055
|
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
1056
1056
|
/**
|
|
@@ -1058,7 +1058,7 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
|
1058
1058
|
* also be evaluated to get a new moment which is the same
|
|
1059
1059
|
*
|
|
1060
1060
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
1061
|
-
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?
|
|
1061
|
+
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?Gr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Xn(),e)}function ai(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?Gr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Xn(),e)}
|
|
1062
1062
|
// If passed a locale key, it will set the locale for this
|
|
1063
1063
|
// instance. Otherwise, it will return the locale configuration
|
|
1064
1064
|
// variables for this instance.
|
|
@@ -1070,7 +1070,7 @@ return e<100&&e>=0?new Date(e+400,t,n)-mi:new Date(e,t,n).valueOf()}function gi(
|
|
|
1070
1070
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1071
1071
|
return e<100&&e>=0?Date.UTC(e+400,t,n)-mi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":t=this._d.valueOf(),t-=fi(t,hi);break;case"second":t=this._d.valueOf(),t-=fi(t,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-fi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-fi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=ui-fi(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function Si(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ci(){
|
|
1072
1072
|
// new Date(NaN).toJSON() === null
|
|
1073
|
-
return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function Ei(){return m({},g(this))}function
|
|
1073
|
+
return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function Ei(){return m({},g(this))}function ki(){return g(this).overflow}function Fi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Gi(e,t){var n,i,a,o=this._eras||vn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(
|
|
1074
1074
|
// truncate time
|
|
1075
1075
|
a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":
|
|
1076
1076
|
// truncate time
|
|
@@ -1082,7 +1082,7 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
|
|
|
1082
1082
|
// truncate time
|
|
1083
1083
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Pi(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,
|
|
1084
1084
|
// truncate time
|
|
1085
|
-
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Oi(e){return s(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function
|
|
1085
|
+
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Oi(e){return s(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function Ai(e){return s(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ni(e){return s(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ri(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||Fe}function Yi(){var e,t,n=[],r=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(Ae(o[e].name)),n.push(Ae(o[e].abbr)),i.push(Ae(o[e].narrow)),a.push(Ae(o[e].name)),a.push(Ae(o[e].abbr)),a.push(Ae(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
|
|
1086
1086
|
// FORMATTING
|
|
1087
1087
|
function zi(e,t){H(0,[e,e.length],0,t)}
|
|
1088
1088
|
// MOMENTS
|
|
@@ -1091,13 +1091,13 @@ function ji(e){return Ji.call(this,e,this.week(),this.weekday(),this.localeData(
|
|
|
1091
1091
|
// MOMENTS
|
|
1092
1092
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
1093
1093
|
// FORMATTING
|
|
1094
|
-
H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),De("N",Ri),De("NN",Ri),De("NNN",Ri),De("NNNN",Hi),De("NNNNN",Bi),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),De("y",
|
|
1094
|
+
H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),De("N",Ri),De("NN",Ri),De("NNN",Ri),De("NNNN",Hi),De("NNNNN",Bi),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),De("y",Fe),De("yy",Fe),De("yyy",Fe),De("yyyy",Fe),De("yo",Ui),Re(["y","yy","yyy","yyyy"],Ye),Re(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ye]=n._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),
|
|
1095
1095
|
// ALIASES
|
|
1096
1096
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
1097
1097
|
// PRIORITY
|
|
1098
1098
|
oe("weekYear",1),oe("isoWeekYear",1),
|
|
1099
1099
|
// PARSING
|
|
1100
|
-
De("G",
|
|
1100
|
+
De("G",Ge),De("g",Ge),De("GG",Se,ve),De("gg",Se,ve),De("GGGG",Ee,we),De("gggg",Ee,we),De("GGGGG",ke,_e),De("ggggg",ke,_e),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),He(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),
|
|
1101
1101
|
// ALIASES
|
|
1102
1102
|
ne("quarter","Q"),
|
|
1103
1103
|
// PRIORITY
|
|
@@ -1151,11 +1151,11 @@ ne("millisecond","ms"),
|
|
|
1151
1151
|
// PRIORITY
|
|
1152
1152
|
oe("millisecond",16),
|
|
1153
1153
|
// PARSING
|
|
1154
|
-
De("S",Te,ye),De("SS",Te,ve),De("SSS",Te,be),ra="SSSS";ra.length<=9;ra+="S")De(ra,
|
|
1154
|
+
De("S",Te,ye),De("SS",Te,ve),De("SSS",Te,be),ra="SSSS";ra.length<=9;ra+="S")De(ra,Fe);function oa(e,t){t[Ke]=ue(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")Re(ra,oa);
|
|
1155
1155
|
// MOMENTS
|
|
1156
1156
|
function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=he("Milliseconds",!1),
|
|
1157
1157
|
// FORMATTING
|
|
1158
|
-
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=S.prototype;function ua(e){return Xn(1e3*e)}function ha(){return Xn.apply(null,arguments).parseZone()}function da(e){return e}ca.add=Pr,ca.calendar=Yr,ca.clone=zr,ca.diff=Jr,ca.endOf=vi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=oi,ca.get=fe,ca.invalidAt=
|
|
1158
|
+
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=S.prototype;function ua(e){return Xn(1e3*e)}function ha(){return Xn.apply(null,arguments).parseZone()}function da(e){return e}ca.add=Pr,ca.calendar=Yr,ca.clone=zr,ca.diff=Jr,ca.endOf=vi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=oi,ca.get=fe,ca.invalidAt=ki,ca.isAfter=jr,ca.isBefore=Wr,ca.isBetween=Vr,ca.isSame=Zr,ca.isSameOrAfter=Kr,ca.isSameOrBefore=Xr,ca.isValid=Ti,ca.lang=li,ca.locale=si,ca.localeData=ci,ca.max=qn,ca.min=Jn,ca.parsingFlags=Ei,ca.set=pe,ca.startOf=yi,ca.subtract=Or,ca.toArray=Si,ca.toObject=xi,ca.toDate=_i,ca.toISOString=ei,ca.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Ci,ca.toString=Qr,ca.unix=wi,ca.valueOf=bi,ca.creationData=Fi,ca.eraName=$i,ca.eraNarrow=Ii,ca.eraAbbr=Di,ca.eraYear=Pi,ca.year=gt,ca.isLeapYear=yt,ca.weekYear=ji,ca.isoWeekYear=Wi,ca.quarter=ca.quarters=Qi,ca.month=ut,ca.daysInMonth=ht,ca.week=ca.weeks=Ft,ca.isoWeek=ca.isoWeeks=Gt,ca.weeksInYear=Ki,ca.weeksInWeekYear=Xi,ca.isoWeeksInYear=Vi,ca.isoWeeksInISOWeekYear=Zi,ca.date=ea,ca.day=ca.days=zt,ca.weekday=jt,ca.isoWeekday=Wt,ca.dayOfYear=ta,ca.hour=ca.hours=rn,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ia,ca.utcOffset=gr,ca.utc=vr,ca.local=br,ca.parseZone=wr,ca.hasAlignedHourOffset=_r,ca.isDST=Sr,ca.isLocal=Cr,ca.isUtcOffset=Tr,ca.isUtc=Er,ca.isUTC=Er,ca.zoneAbbr=sa,ca.zoneName=la,ca.dates=T("dates accessor is deprecated. Use date instead.",ea),ca.months=T("months accessor is deprecated. Use month instead",ut),ca.years=T("years accessor is deprecated. Use year instead",gt),ca.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),ca.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var ma=$.prototype;function fa(e,t,n,r){var i=vn(),a=f().set(r,t);return i[n](a,e)}function pa(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fa(e,r,n,"month");return i}
|
|
1159
1159
|
// ()
|
|
1160
1160
|
// (5)
|
|
1161
1161
|
// (fmt, 5)
|
|
@@ -1164,34 +1164,34 @@ H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=S.prototype;function ua(e){r
|
|
|
1164
1164
|
// (true, 5)
|
|
1165
1165
|
// (true, fmt, 5)
|
|
1166
1166
|
// (true, fmt)
|
|
1167
|
-
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=vn(),o=e?a._week.dow:0,s=[];if(null!=n)return fa(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=fa(t,(i+o)%7,r,"day");return s}function ya(e,t){return pa(e,t,"months")}function va(e,t){return pa(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function _a(e,t,n){return ga(e,t,n,"weekdaysMin")}ma.calendar=D,ma.longDateFormat=W,ma.invalidDate=Z,ma.ordinal=J,ma.preparse=da,ma.postformat=da,ma.relativeTime=Q,ma.pastFuture=ee,ma.set=M,ma.eras=
|
|
1167
|
+
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=vn(),o=e?a._week.dow:0,s=[];if(null!=n)return fa(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=fa(t,(i+o)%7,r,"day");return s}function ya(e,t){return pa(e,t,"months")}function va(e,t){return pa(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function _a(e,t,n){return ga(e,t,n,"weekdaysMin")}ma.calendar=D,ma.longDateFormat=W,ma.invalidDate=Z,ma.ordinal=J,ma.preparse=da,ma.postformat=da,ma.relativeTime=Q,ma.pastFuture=ee,ma.set=M,ma.eras=Gi,ma.erasParse=Mi,ma.erasConvertYear=Li,ma.erasAbbrRegex=Ai,ma.erasNameRegex=Oi,ma.erasNarrowRegex=Ni,ma.months=at,ma.monthsShort=ot,ma.monthsParse=lt,ma.monthsRegex=mt,ma.monthsShortRegex=dt,ma.week=Ct,ma.firstDayOfYear=kt,ma.firstDayOfWeek=Et,ma.weekdays=Rt,ma.weekdaysMin=Bt,ma.weekdaysShort=Ht,ma.weekdaysParse=Yt,ma.weekdaysRegex=Vt,ma.weekdaysShortRegex=Zt,ma.weekdaysMinRegex=Kt,ma.isPM=tn,ma.meridiem=an,pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1168
1168
|
// Side effect imports
|
|
1169
|
-
r.lang=T("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",vn);var Sa=Math.abs;function xa(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function Ca(e,t,n,r){var i=
|
|
1169
|
+
r.lang=T("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",vn);var Sa=Math.abs;function xa(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function Ca(e,t,n,r){var i=Gr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1170
1170
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1171
1171
|
function Ta(e,t){return Ca(this,e,t,1)}
|
|
1172
1172
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1173
|
-
function Ea(e,t){return Ca(this,e,t,-1)}function
|
|
1173
|
+
function Ea(e,t){return Ca(this,e,t,-1)}function ka(e){return e<0?Math.floor(e):Math.ceil(e)}function Fa(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;
|
|
1174
1174
|
// if we have a mix of positive and negative values, bubble down first
|
|
1175
1175
|
// check: https://github.com/moment/moment/issues/2166
|
|
1176
|
-
return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*
|
|
1176
|
+
return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*ka(Ma(s)+o),o=0,s=0),
|
|
1177
1177
|
// The following code bubbles up values, see the tests for
|
|
1178
1178
|
// examples of what that means.
|
|
1179
1179
|
l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,o+=ce(n/24),s+=
|
|
1180
1180
|
// convert days to months
|
|
1181
|
-
i=ce(
|
|
1181
|
+
i=ce(Ga(o)),o-=ka(Ma(i)),
|
|
1182
1182
|
// 12 months -> 1 year
|
|
1183
|
-
r=ce(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function
|
|
1183
|
+
r=ce(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Ga(e){
|
|
1184
1184
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
1185
1185
|
// 400 years have 12 months === 4800
|
|
1186
1186
|
return 4800*e/146097}function Ma(e){
|
|
1187
1187
|
// the reverse of daysToMonths
|
|
1188
|
-
return 146097*e/4800}function La(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+
|
|
1188
|
+
return 146097*e/4800}function La(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ga(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
|
1189
1189
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
1190
1190
|
t=this._days+Math.round(Ma(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
|
|
1191
1191
|
// Math.floor prevents floating point math errors here
|
|
1192
1192
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1193
1193
|
// TODO: Use this.as('ms')?
|
|
1194
|
-
function $a(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Ia(e){return function(){return this.as(e)}}var Da=Ia("ms"),Pa=Ia("s"),Oa=Ia("m"),
|
|
1194
|
+
function $a(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Ia(e){return function(){return this.as(e)}}var Da=Ia("ms"),Pa=Ia("s"),Oa=Ia("m"),Aa=Ia("h"),Na=Ia("d"),Ra=Ia("w"),Ha=Ia("M"),Ba=Ia("Q"),Ua=Ia("y");function Ya(){return Gr(this)}function za(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function ja(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wa=ja("milliseconds"),Va=ja("seconds"),Za=ja("minutes"),Ka=ja("hours"),Xa=ja("days"),Ja=ja("months"),qa=ja("years");function Qa(){return ce(this.days()/7)}var eo=Math.round,to={ss:44,// a few seconds to seconds
|
|
1195
1195
|
s:45,// seconds to minute
|
|
1196
1196
|
m:45,// minutes to hour
|
|
1197
1197
|
h:22,// hours to day
|
|
@@ -1199,7 +1199,7 @@ d:26,// days to month/week
|
|
|
1199
1199
|
w:null,// weeks to month
|
|
1200
1200
|
M:11};
|
|
1201
1201
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
1202
|
-
function no(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var i=
|
|
1202
|
+
function no(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var i=Gr(e).abs(),a=eo(i.as("s")),o=eo(i.as("m")),s=eo(i.as("h")),l=eo(i.as("d")),c=eo(i.as("M")),u=eo(i.as("w")),h=eo(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=t,d[3]=+e>0,d[4]=r,no.apply(null,d)}
|
|
1203
1203
|
// This function allows you to set the rounding function for relative time strings
|
|
1204
1204
|
function io(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}
|
|
1205
1205
|
// This function allows you to set a threshold for relative time strings
|
|
@@ -1217,13 +1217,13 @@ e=ce(l/60),t=ce(e/60),l%=60,e%=60,
|
|
|
1217
1217
|
// 12 months -> 1 year
|
|
1218
1218
|
n=ce(u/12),u%=12,
|
|
1219
1219
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1220
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",s=lo(this._milliseconds)!==lo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var uo=sr.prototype;return uo.isValid=ar,uo.abs=xa,uo.add=Ta,uo.subtract=Ea,uo.as=La,uo.asMilliseconds=Da,uo.asSeconds=Pa,uo.asMinutes=Oa,uo.asHours=
|
|
1220
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",s=lo(this._milliseconds)!==lo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var uo=sr.prototype;return uo.isValid=ar,uo.abs=xa,uo.add=Ta,uo.subtract=Ea,uo.as=La,uo.asMilliseconds=Da,uo.asSeconds=Pa,uo.asMinutes=Oa,uo.asHours=Aa,uo.asDays=Na,uo.asWeeks=Ra,uo.asMonths=Ha,uo.asQuarters=Ba,uo.asYears=Ua,uo.valueOf=$a,uo._bubble=Fa,uo.clone=Ya,uo.get=za,uo.milliseconds=Wa,uo.seconds=Va,uo.minutes=Za,uo.hours=Ka,uo.days=Xa,uo.weeks=Qa,uo.months=Ja,uo.years=qa,uo.humanize=oo,uo.toISOString=co,uo.toString=co,uo.toJSON=co,uo.locale=si,uo.localeData=ci,uo.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),uo.lang=li,
|
|
1221
1221
|
// FORMATTING
|
|
1222
1222
|
H("X",0,0,"unix"),H("x",0,0,"valueOf"),
|
|
1223
1223
|
// PARSING
|
|
1224
|
-
De("x",
|
|
1224
|
+
De("x",Ge),De("X",$e),Re("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,n){n._d=new Date(ue(e))})),
|
|
1225
1225
|
//! moment.js
|
|
1226
|
-
r.version="2.29.4",i(Xn),r.fn=ca,r.min=er,r.max=tr,r.now=nr,r.utc=f,r.unix=ua,r.months=ya,r.isDate=h,r.locale=pn,r.invalid=v,r.duration=
|
|
1226
|
+
r.version="2.29.4",i(Xn),r.fn=ca,r.min=er,r.max=tr,r.now=nr,r.utc=f,r.unix=ua,r.months=ya,r.isDate=h,r.locale=pn,r.invalid=v,r.duration=Gr,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=vn,r.isDuration=lr,r.monthsShort=va,r.weekdaysMin=_a,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wa,r.normalizeUnits=re,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=Ur,r.prototype=ca,
|
|
1227
1227
|
// currently HTML5 input type only supports 24-hour formats
|
|
1228
1228
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
1229
1229
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -1233,249 +1233,263 @@ TIME:"HH:mm",// <input type="time" />
|
|
|
1233
1233
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
|
1234
1234
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
1235
1235
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
1236
|
-
MONTH:"YYYY-MM"},r}()}));function
|
|
1236
|
+
MONTH:"YYYY-MM"},r}()}));function _r(e,t){Rt(e,t)}const Sr={en:{gameThumbnail:{playNow:"Start now!",new:"NEW",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},"zh-hk":{gameThumbnail:{playNow:"現在開始!",new:"新的",hot:"熱的",opens:"打開 ",full:"滿桌 - 下注",dealer:"經銷商"}},de:{gameThumbnail:{playNow:"Jetzt beginnen!",new:"NEU",hot:"Hot",opens:"Öffnet ",full:"full - bet behind",dealer:"Dealer"}},it:{gameThumbnail:{playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT",
|
|
1237
1237
|
// TODO: translate all other supported languages
|
|
1238
|
-
opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnail:{playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre ",full:"Table pleine - pari derrière",dealer:"Concessionnaire"}},es:{gameThumbnail:{playNow:"Juega ahora!",new:"NUEVO",hot:"HOT",opens:"Abiertas",full:"Mesa llena - Apostar de pie",dealer:"Dealer"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK",opens:"Açılır ",full:"masa dolu - bet behind",dealer:"Dealer"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir ",full:"Mesa cheia - aposta atrás",dealer:"Dealer"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}}},
|
|
1238
|
+
opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnail:{playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre ",full:"Table pleine - pari derrière",dealer:"Concessionnaire"}},es:{gameThumbnail:{playNow:"Juega ahora!",new:"NUEVO",hot:"HOT",opens:"Abiertas",full:"Mesa llena - Apostar de pie",dealer:"Dealer"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK",opens:"Açılır ",full:"masa dolu - bet behind",dealer:"Dealer"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir ",full:"Mesa cheia - aposta atrás",dealer:"Dealer"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}}},xr={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};
|
|
1239
1239
|
/* eslint-disable quote-props */
|
|
1240
1240
|
/* ../casino-game-thumbnail/src/CasinoGameThumbnail.svelte generated by Svelte v3.58.0 */
|
|
1241
|
-
function
|
|
1241
|
+
function Cr(e,t,n){const r=e.slice();return r[109]=t[n],r[111]=n,r}function Tr(e,t,n){const r=e.slice();return r[106]=t[n],r}
|
|
1242
1242
|
// (573:8) {:else}
|
|
1243
|
-
function
|
|
1243
|
+
function Er(t){let n;return{c(){n=p("div"),n.innerHTML="<div></div><div></div>",_(n,"class","LoaderRipple")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1244
1244
|
// (558:8) {#if fav}
|
|
1245
|
-
function
|
|
1245
|
+
function kr(e){let t,n=!gr(/*userAgent*/e[37])&&!/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15],r=n&&Fr(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),d(e,t,n)},p(e,i){/*gamefavorite, isLoggedIn*/32769&i[0]&&(n=!gr(/*userAgent*/e[37])&&!/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15]),n?r?r.p(e,i):(r=Fr(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
|
1246
1246
|
// (559:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
1247
1247
|
function Fr(t){let n,r,i;return{c(){n=p("div"),n.innerHTML='<svg version="1.1" class="UnfavoredIcon" part="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',_(n,"class","FavIconContainer"),_(n,"part","FavIconContainer")},m(e,a){d(e,n,a),r||(i=w(n,"click",/*click_handler*/t[67]),r=!0)},p:e,d(e){e&&m(n),r=!1,i()}}}
|
|
1248
1248
|
// (577:8) {#if lang}
|
|
1249
1249
|
function Gr(e){let t,n,r,i,a=/*$_*/e[36]("gameThumbnail.playNow")+"";return{c(){t=p("button"),n=y(a),_(t,"class","GameInfoBtn"),_(t,"part","GameInfoBtn")},m(a,o){d(a,t,o),h(t,n),r||(i=w(t,"click",/*click_handler_1*/e[68]),r=!0)},p(e,t){/*$_*/32&t[1]&&a!==(a=/*$_*/e[36]("gameThumbnail.playNow")+"")&&x(n,a)},d(e){e&&m(t),r=!1,i()}}}
|
|
1250
1250
|
// (591:77)
|
|
1251
|
-
function
|
|
1251
|
+
function Mr(t){let n;return{c(){n=p("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',_(n,"class","FavIconContainer"),_(n,"part","FavIconContainer")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1252
1252
|
// (585:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
|
|
1253
|
-
function
|
|
1253
|
+
function Lr(t){let n,r,i;return{c(){n=p("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',_(n,"class","FavIconContainer"),_(n,"part","FavIconContainer")},m(e,a){d(e,n,a),r||(i=w(n,"click",/*click_handler_2*/t[69]),r=!0)},p:e,d(e){e&&m(n),r=!1,i()}}}
|
|
1254
1254
|
// (599:6) {#if gameisnew}
|
|
1255
|
-
function
|
|
1255
|
+
function $r(e){let t,n,r=/*$_*/e[36]("gameThumbnail.new")+"";return{c(){t=p("span"),n=y(r),_(t,"class","GameExtraInfoLabel NewGameTag"),_(t,"part","GameExtraInfoLabel NewGameTag")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/32&t[1]&&r!==(r=/*$_*/e[36]("gameThumbnail.new")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1256
1256
|
// (602:6) {#if gametag}
|
|
1257
|
-
function
|
|
1257
|
+
function Ir(e){let t,n;return{c(){t=p("span"),n=y(/*gametag*/e[8]),_(t,"class","GameExtraInfoLabel PopularGameTag"),_(t,"part","GameExtraInfoLabel PopularGameTag")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*gametag*/256&t[0]&&x(n,/*gametag*/e[8])},d(e){e&&m(t)}}}
|
|
1258
1258
|
// (605:6) {#if livegamedata}
|
|
1259
|
-
function
|
|
1260
|
-
return e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===
|
|
1259
|
+
function Dr(e){let t,n,r=!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]&&Pr(e);function i(e,t){/*isopen*/
|
|
1260
|
+
return e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===Vr?Ar:/*isopen*/e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===Zr?Or:void 0}let a=i(e),o=a&&a(e);return{c(){r&&r.c(),t=v(),o&&o.c(),n=b()},m(e,i){r&&r.m(e,i),d(e,t,i),o&&o.m(e,i),d(e,n,i)},p(e,s){!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]?r?r.p(e,s):(r=Pr(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a===(a=i(e))&&o?o.p(e,s):(o&&o.d(1),o=a&&a(e),o&&(o.c(),o.m(n.parentNode,n)))},d(e){r&&r.d(e),e&&m(t),o&&o.d(e),e&&m(n)}}}
|
|
1261
1261
|
// (606:8) {#if !isopen && starttime && timeformat}
|
|
1262
|
-
function
|
|
1262
|
+
function Pr(e){let t,n,r,i,a,o,s,l,c,u,f=/*$_*/e[36]("gameThumbnail.opens")+"",g=wr.utc(/*starttime*/e[21]).local().format(/*timeformat*/e[22])+"",b=/*renderDealerName*/e[46](/*dealername*/e[35])+"",w=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"";return{c(){t=p("div"),n=p("div"),r=y(f),i=v(),a=p("span"),o=y(g),s=v(),l=new T(!1),c=v(),u=new T(!1),_(n,"class","ClosedGame"),_(n,"part","ClosedGame"),l.a=c,u.a=null,_(t,"class","GameProp LiveProps"),_(t,"part","GameProp LiveProps")},m(e,m){d(e,t,m),h(t,n),h(n,r),h(n,i),h(n,a),h(a,o),h(t,s),l.m(b,t),h(t,c),u.m(w,t)},p(e,t){/*$_*/32&t[1]&&f!==(f=/*$_*/e[36]("gameThumbnail.opens")+"")&&x(r,f),/*starttime, timeformat*/6291456&t[0]&&g!==(g=wr.utc(/*starttime*/e[21]).local().format(/*timeformat*/e[22])+"")&&x(o,g),/*dealername*/16&t[1]&&b!==(b=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&l.p(b),/*min, max, currencySymbol*/469762048&t[0]&&w!==(w=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&u.p(w)},d(e){e&&m(t)}}}
|
|
1263
1263
|
// (639:68)
|
|
1264
|
-
function
|
|
1265
|
-
/*div0_binding*/e[70](n),h(t,r),i.m(s,t),h(t,a),o.m(l,t)},p(e,r){if(/*roulleteresults, isdouble*/1073750016&r[0]|/*renderSpan, colorsourcearray*/65538&r[1]){let t;for(c=new Array(
|
|
1264
|
+
function Or(e){let t,n,r,i,a,o,s=/*renderDealerName*/e[46](/*dealername*/e[35])+"",l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"",c=new Array(Xr),u=[];for(let t=0;t<c.length;t+=1)u[t]=Br(Cr(e,c,t));return{c(){t=p("div"),n=p("div");for(let e=0;e<u.length;e+=1)u[e].c();r=v(),i=new T(!1),a=v(),o=new T(!1),_(n,"class","LiveIcons"),_(n,"part","LiveIcons"),i.a=a,o.a=null,_(t,"class",/*roulettecontainerclassname*/e[31]),_(t,"part",/*roulettecontainerclassname*/e[31])},m(c,m){d(c,t,m),h(t,n);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(n,null);
|
|
1265
|
+
/*div0_binding*/e[70](n),h(t,r),i.m(s,t),h(t,a),o.m(l,t)},p(e,r){if(/*roulleteresults, isdouble*/1073750016&r[0]|/*renderSpan, colorsourcearray*/65538&r[1]){let t;for(c=new Array(Xr),t=0;t<c.length;t+=1){const i=Cr(e,c,t);u[t]?u[t].p(i,r):(u[t]=Br(i),u[t].c(),u[t].m(n,null))}for(;t<u.length;t+=1)u[t].d(1);u.length=c.length}/*dealername*/16&r[1]&&s!==(s=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&i.p(s),/*min, max, currencySymbol*/469762048&r[0]&&l!==(l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&o.p(l),/*roulettecontainerclassname*/1&r[1]&&_(t,"class",/*roulettecontainerclassname*/e[31]),/*roulettecontainerclassname*/1&r[1]&&_(t,"part",/*roulettecontainerclassname*/e[31])},d(n){n&&m(t),f(u,n),
|
|
1266
1266
|
/*div0_binding*/e[70](null)}}}
|
|
1267
1267
|
// (618:8) {#if isopen && displaytype && displaytype === BLACKJACK}
|
|
1268
|
-
function
|
|
1269
|
-
return e[33]?Ur
|
|
1268
|
+
function Ar(e){let t,n,r,i,a,o,s=/*renderDealerName*/e[46](/*dealername*/e[35])+"",l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"";function c(e,t){/*istablefull*/
|
|
1269
|
+
return e[33]?Yr:Ur}let u=c(e),f=u(e);return{c(){t=p("div"),n=p("div"),f.c(),r=v(),i=new T(!1),a=v(),o=new T(!1),_(n,"class","LiveIcons"),_(n,"part","LiveIcons"),i.a=a,o.a=null,_(t,"class","GameProp LiveProps BlackjackDisplay"),_(t,"part","GameProp LiveProps BlackjackDisplay")},m(e,c){d(e,t,c),h(t,n),f.m(n,null),h(t,r),i.m(s,t),h(t,a),o.m(l,t)},p(e,t){u===(u=c(e))&&f?f.p(e,t):(f.d(1),f=u(e),f&&(f.c(),f.m(n,null))),/*dealername*/16&t[1]&&s!==(s=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&i.p(s),/*min, max, currencySymbol*/469762048&t[0]&&l!==(l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&o.p(l)},d(e){e&&m(t),f.d()}}}
|
|
1270
1270
|
// (643:16) {#if roulleteresults && roulleteresults[i]}
|
|
1271
1271
|
function Nr(e){let t;function n(e,t){/*isdouble*/
|
|
1272
|
-
return e[30]?Rr
|
|
1272
|
+
return e[30]?Hr:Rr}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),d(e,t,n)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
|
1273
1273
|
// (649:18) {:else}
|
|
1274
|
-
function
|
|
1274
|
+
function Rr(e){let t,n,r=/*renderSpan*/e[47]("LatestResult "/*i*/+(/*i*/0===e[111]?"First":""),e[111],/*roulleteresults*/e[13][/*i*/e[111]],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]]])+"";return{c(){t=new T(!1),n=b(),t.a=n},m(e,i){t.m(r,e,i),d(e,n,i)},p(e,n){/*roulleteresults*/8192&n[0]|/*colorsourcearray*/2&n[1]&&r!==(r=/*renderSpan*/e[47]("LatestResult "/*i*/+(/*i*/0===e[111]?"First":""),e[111],/*roulleteresults*/e[13][/*i*/e[111]],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]]])+"")&&t.p(r)},d(e){e&&m(n),e&&t.d()}}}
|
|
1275
1275
|
// (644:18) {#if isdouble}
|
|
1276
|
-
function
|
|
1276
|
+
function Hr(e){let t,n,r,i,a,o=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`first${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][0]}`/*roulleteresults*/,e[13][/*i*/e[111]][0],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][0]])+"",s=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`second${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][1]}`/*roulleteresults*/,e[13][/*i*/e[111]][1],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][1]])+"";return{c(){t=p("div"),n=new T(!1),r=v(),i=new T(!1),a=v(),n.a=r,i.a=a,_(t,"class","Double"),_(t,"part","Double")},m(e,l){d(e,t,l),n.m(o,t),h(t,r),i.m(s,t),h(t,a)},p(e,t){/*roulleteresults*/8192&t[0]|/*colorsourcearray*/2&t[1]&&o!==(o=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`first${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][0]}`/*roulleteresults*/,e[13][/*i*/e[111]][0],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][0]])+"")&&n.p(o),/*roulleteresults*/8192&t[0]|/*colorsourcearray*/2&t[1]&&s!==(s=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`second${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][1]}`/*roulleteresults*/,e[13][/*i*/e[111]][1],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][1]])+"")&&i.p(s)},d(e){e&&m(t)}}}
|
|
1277
1277
|
// (642:14) {#each new Array(numberofdisplayedresults) as garbage, i}
|
|
1278
|
-
function
|
|
1278
|
+
function Br(e){let t,n=/*roulleteresults*/e[13]&&/*roulleteresults*/e[13][/*i*/e[111]]&&Nr(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,r){/*roulleteresults*/e[13]&&/*roulleteresults*/e[13][/*i*/e[111]]?n?n.p(e,r):(n=Nr(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1279
1279
|
// (625:14) {:else}
|
|
1280
|
-
function
|
|
1280
|
+
function Ur(e){let t,n=/*seats*/e[25],r=[];for(let t=0;t<n.length;t+=1)r[t]=zr(Tr(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);d(e,t,n)},p(e,i){if(/*currentoccupiedseats, seats*/570425344&i[0]|/*contains*/8192&i[1]){let a;for(n=/*seats*/e[25],a=0;a<n.length;a+=1){const o=Tr(e,n,a);r[a]?r[a].p(o,i):(r[a]=zr(o),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(e){f(r,e),e&&m(t)}}}
|
|
1281
1281
|
// (621:14) {#if istablefull}
|
|
1282
|
-
function
|
|
1282
|
+
function Yr(e){let t,n,r=/*$_*/e[36]("gameThumbnail.full")+"";return{c(){t=p("span"),n=y(r),_(t,"class","FullTable"),_(t,"part","FullTable")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/32&t[1]&&r!==(r=/*$_*/e[36]("gameThumbnail.full")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1283
1283
|
// (626:16) {#each seats as seatData}
|
|
1284
|
-
function
|
|
1284
|
+
function zr(e){let t,n,r,i,a,o,s;return{c(){t=p("span"),n=g("svg"),r=g("path"),i=g("path"),a=v(),_(r,"d","M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"),_(i,"d","M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(n,"width","13"),_(n,"height","14"),_(n,"viewBox","0 0 13 14"),_(t,"class",o=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat"),_(t,"part",s=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")},m(e,o){d(e,t,o),h(t,n),h(n,r),h(n,i),h(t,a)},p(e,n){/*currentoccupiedseats, seats*/570425344&n[0]&&o!==(o=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")&&_(t,"class",o),/*currentoccupiedseats, seats*/570425344&n[0]&&s!==(s=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")&&_(t,"part",s)},d(e){e&&m(t)}}}
|
|
1285
1285
|
// (662:2) {#if showgamename}
|
|
1286
|
-
function
|
|
1287
|
-
return e[16]?Er
|
|
1288
|
-
return 32773&t[0]&&($=null),/*gamefavorite, isLoggedIn, favorites*/32773&t[0]&&(I=null),null==$&&($=!(
|
|
1289
|
-
/*img_binding*/t[66](a),h(i,u),h(i,f),h(f,g),Z.m(g,null),h(g,b),h(g,S),h(S,C),h(g,T),K&&K.m(g,null),h(f,
|
|
1290
|
-
/*div4_binding*/,t[71](n),Y||(z=[w(i,"mouseenter",/*gameHover*/t[42]),w(i,"mouseleave",/*gameBlur*/t[43]),w(i,"touchstart",/*gameTouch*/t[40],{passive:!0}),w(i,"touchend",/*gameTouchEnd*/t[41],{passive:!0})],Y=!0)},p(e,t){/*gamethumbnail*/8&t[0]&&!l(a.src,o=/*gamethumbnail*/e[3])&&_(a,"src",o),/*gamecellsize, hover, loaded*/393728&t[0]&&s!==(s=`GameBg GameBg-${/*gamecellsize*/e[9]} ${/*hover*/e[17]?"GameContainerHovered":""} ${/*loaded*/e[18]?"Loaded":""}`)&&_(a,"class",s),/*hover, loaded*/393216&t[0]&&c!==(c="GameBg "+(/*hover*/e[17]?"GameContainerHovered":"")+" "+(/*loaded*/e[18]?"Loaded":""))&&_(a,"part",c),V===(V=W(e))&&Z?Z.p(e,t):(Z.d(1),Z=V(e),Z&&(Z.c(),Z.m(g,b))),/*gamename*/16&t[0]&&x(C,/*gamename*/e[4]),/*gamename*/16&t[0]&&_(S,"title",/*gamename*/e[4]),/*lang*/e[1]?K?K.p(e,t):(K=Gr(e),K.c(),K.m(g,null)):K&&(K.d(1),K=null),/*hover*/131072&t[0]&&E!==(E="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&_(g,"class",E),/*hover*/131072&t[0]&&
|
|
1286
|
+
function jr(e){let t,n;return{c(){t=p("p"),n=y(/*gamename*/e[4]),_(t,"class","GameNameBelow"),_(t,"part","GameNameBelow"),_(t,"title",/*gamename*/e[4])},m(e,r){d(e,t,r),h(t,n)},p(e,r){/*gamename*/16&r[0]&&x(n,/*gamename*/e[4]),/*gamename*/16&r[0]&&_(t,"title",/*gamename*/e[4])},d(e){e&&m(t)}}}function Wr(t){let n,i,a,o,s,c,u,f,g,b,S,C,T,E,k,F,G,M,L,$,I,D,P,O,A,N,R,H,B,U,Y,z,j=/*gamevendor*/(t[5]?/*gamevendor*/t[5]:"-")+"";function W(e,t){/*fav*/
|
|
1287
|
+
return e[16]?kr:Er}let V=W(t),Z=V(t),K=/*lang*/t[1]&&Gr(t);function X(e,t){/*gamefavorite, isLoggedIn, favorites*/
|
|
1288
|
+
return 32773&t[0]&&($=null),/*gamefavorite, isLoggedIn, favorites*/32773&t[0]&&(I=null),null==$&&($=!(gr(/*userAgent*/e[37])||/*gamefavorite*/!e[0]||/*isLoggedIn*/!e[15]||/*favorites*/!e[2])),$?Lr:(null==I&&(I=!!(gr(/*userAgent*/e[37])&&/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15]&&/*favorites*/e[2])),I?Mr:void 0)}let J=X(t,[-1,-1,-1,-1]),q=J&&J(t),Q=/*gameisnew*/t[7]&&$r(t),ee=/*gametag*/t[8]&&Ir(t),te=/*livegamedata*/t[12]&&Dr(t),ne=/*showgamename*/t[10]&&jr(t);return{c(){n=p("div"),i=p("div"),a=p("img"),u=v(),f=p("div"),g=p("div"),Z.c(),b=v(),S=p("p"),C=y(/*gamename*/t[4]),T=v(),K&&K.c(),F=v(),G=p("span"),M=y(j),L=v(),q&&q.c(),D=v(),P=p("div"),Q&&Q.c(),O=v(),ee&&ee.c(),A=v(),te&&te.c(),H=v(),ne&&ne.c(),this.c=e,l(a.src,o=/*gamethumbnail*/t[3])||_(a,"src",o),_(a,"class",s=`GameBg GameBg-${/*gamecellsize*/t[9]} ${/*hover*/t[17]?"GameContainerHovered":""} ${/*loaded*/t[18]?"Loaded":""}`),_(a,"part",c="GameBg "+(/*hover*/t[17]?"GameContainerHovered":"")+" "+(/*loaded*/t[18]?"Loaded":"")),_(a,"alt",""),_(a,"loading","lazy"),_(S,"class","GameInfoName"),_(S,"part","GameInfoName"),_(S,"title",/*gamename*/t[4]),_(g,"class",E="GameInfo "+(/*hover*/t[17]?"GameHovered":"")),_(g,"part",k="GameInfo "+(/*hover*/t[17]?"GameHovered":"")),_(G,"class","GameInfoVendor"),_(G,"part","GameInfoVendor"),_(f,"class","GameInfoWrapper"),_(f,"part","GameInfoWrapper"),_(P,"class","GameExtraInfo"),_(P,"part","GameExtraInfo"),_(i,"class",N="GameInnerContainer "+(/*livegamedata*/t[12]&&!/*isopen*/t[23]&&/*openhours*/t[24].value||/*livegamedata*/t[12]&&/*istablefull*/t[33]?"GameInnerContainerUnavailable":"")),_(i,"part",R="GameInnerContainer "+(/*livegamedata*/t[12]&&!/*isopen*/t[23]||/*livegamedata*/t[12]&&/*istablefull*/t[33]?"GameInnerContainerUnavailable":"")),_(n,"class",B=`GameContainer ${/*extraclassname*/t[34]}`),_(n,"part",U=`GameContainer ${/*extraclassname*/t[34]}`)},m(e,r){d(e,n,r),h(n,i),h(i,a),
|
|
1289
|
+
/*img_binding*/t[66](a),h(i,u),h(i,f),h(f,g),Z.m(g,null),h(g,b),h(g,S),h(S,C),h(g,T),K&&K.m(g,null),h(f,F),h(f,G),h(G,M),h(i,L),q&&q.m(i,null),h(i,D),h(i,P),Q&&Q.m(P,null),h(P,O),ee&&ee.m(P,null),h(P,A),te&&te.m(P,null),h(n,H),ne&&ne.m(n,null)
|
|
1290
|
+
/*div4_binding*/,t[71](n),Y||(z=[w(i,"mouseenter",/*gameHover*/t[42]),w(i,"mouseleave",/*gameBlur*/t[43]),w(i,"touchstart",/*gameTouch*/t[40],{passive:!0}),w(i,"touchend",/*gameTouchEnd*/t[41],{passive:!0})],Y=!0)},p(e,t){/*gamethumbnail*/8&t[0]&&!l(a.src,o=/*gamethumbnail*/e[3])&&_(a,"src",o),/*gamecellsize, hover, loaded*/393728&t[0]&&s!==(s=`GameBg GameBg-${/*gamecellsize*/e[9]} ${/*hover*/e[17]?"GameContainerHovered":""} ${/*loaded*/e[18]?"Loaded":""}`)&&_(a,"class",s),/*hover, loaded*/393216&t[0]&&c!==(c="GameBg "+(/*hover*/e[17]?"GameContainerHovered":"")+" "+(/*loaded*/e[18]?"Loaded":""))&&_(a,"part",c),V===(V=W(e))&&Z?Z.p(e,t):(Z.d(1),Z=V(e),Z&&(Z.c(),Z.m(g,b))),/*gamename*/16&t[0]&&x(C,/*gamename*/e[4]),/*gamename*/16&t[0]&&_(S,"title",/*gamename*/e[4]),/*lang*/e[1]?K?K.p(e,t):(K=Gr(e),K.c(),K.m(g,null)):K&&(K.d(1),K=null),/*hover*/131072&t[0]&&E!==(E="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&_(g,"class",E),/*hover*/131072&t[0]&&k!==(k="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&_(g,"part",k),/*gamevendor*/32&t[0]&&j!==(j=/*gamevendor*/(e[5]?/*gamevendor*/e[5]:"-")+"")&&x(M,j),J===(J=X(e,t))&&q?q.p(e,t):(q&&q.d(1),q=J&&J(e),q&&(q.c(),q.m(i,D))),/*gameisnew*/e[7]?Q?Q.p(e,t):(Q=$r(e),Q.c(),Q.m(P,O)):Q&&(Q.d(1),Q=null),/*gametag*/e[8]?ee?ee.p(e,t):(ee=Ir(e),ee.c(),ee.m(P,A)):ee&&(ee.d(1),ee=null),/*livegamedata*/e[12]?te?te.p(e,t):(te=Dr(e),te.c(),te.m(P,null)):te&&(te.d(1),te=null),/*livegamedata, isopen, openhours*/25169920&t[0]|/*istablefull*/4&t[1]&&N!==(N="GameInnerContainer "+(/*livegamedata*/e[12]&&!/*isopen*/e[23]&&/*openhours*/e[24].value||/*livegamedata*/e[12]&&/*istablefull*/e[33]?"GameInnerContainerUnavailable":""))&&_(i,"class",N),/*livegamedata, isopen*/8392704&t[0]|/*istablefull*/4&t[1]&&R!==(R="GameInnerContainer "+(/*livegamedata*/e[12]&&!/*isopen*/e[23]||/*livegamedata*/e[12]&&/*istablefull*/e[33]?"GameInnerContainerUnavailable":""))&&_(i,"part",R),/*showgamename*/e[10]?ne?ne.p(e,t):(ne=jr(e),ne.c(),ne.m(n,null)):ne&&(ne.d(1),ne=null),/*extraclassname*/8&t[1]&&B!==(B=`GameContainer ${/*extraclassname*/e[34]}`)&&_(n,"class",B),/*extraclassname*/8&t[1]&&U!==(U=`GameContainer ${/*extraclassname*/e[34]}`)&&_(n,"part",U)},i:e,o:e,d(e){e&&m(n)
|
|
1291
1291
|
/*img_binding*/,t[66](null),Z.d(),K&&K.d(),q&&q.d(),Q&&Q.d(),ee&&ee.d(),te&&te.d(),ne&&ne.d()
|
|
1292
|
-
/*div4_binding*/,t[71](null),Y=!1,r(z)}}}const
|
|
1292
|
+
/*div4_binding*/,t[71](null),Y=!1,r(z)}}}const Vr="blackjack",Zr="roulette",Kr="doubleballroulette",Xr=5;function Jr(e,t,n){let r;u(e,dn,(e=>n(36,r=e)));let i,a,o,s,l,c,h,d,m,f,p,g,y,v,b,w,_,S,x,C,T,E,k,G,L,{session:$=""}=t,{userid:I=""}=t,{lang:D="en"}=t,{clientstyling:P=""}=t,{clientstylingurl:A=""}=t,{translationurl:N=""}=t,{favorites:R=""}=t,{gamethumbnail:H=""}=t,{gamename:B=""}=t,{gamevendor:U=""}=t,{gameid:Y=""}=t,{gameisnew:z=""}=t,{gametag:j=""}=t,{gamefunmode:W=!1}=t,{searchitem:V=!1}=t,{gamefavorite:Z=!1}=t,{gamecellsize:K=""}=t,{showfavoredcategory:X=!1}=t,{showgamename:J=!1}=t,{currency:q=""}=t,{gamepagemodalurl:Q="false"}=t,{endpoint:ee=""}=t,{livelobbyendpoint:te=""}=t,{connectlive:ne=""}=t,{visibilityconnect:re=""}=t,{integratedgameframedesktop:ie="false"}=t,{integratedgameframemobile:ae="false"}=t,oe=!1,se=!1,le=!1,ce=window.navigator.userAgent,ue="HH:mm",he={},de=[],me="EUR",fe="";const pe=[Vr],ge=[Zr,Kr],ye={"01":"Yellow","02":"Blue",10:"Green",40:"Red","05":"Purple",20:"Orange",X7:"Gold",X2:"Gold"},ve={1:"Red",3:"Red",5:"Red",7:"Red",9:"Red",12:"Red",14:"Red",16:"Red",18:"Red",19:"Red",21:"Red",23:"Red",25:"Red",27:"Red",30:"Red",32:"Red",34:"Red",36:"Red",2:"Black",4:"Black",6:"Black",8:"Black",10:"Black",11:"Black",13:"Black",15:"Black",17:"Black",20:"Black",22:"Black",24:"Black",26:"Black",28:"Black",29:"Black",31:"Black",33:"Black",35:"Black",0:"Green","00":"Green"};Object.keys(Sr).forEach((e=>{_r(e,Sr[e])}));const be=e=>{e.data.type!==`AddFavoriteThumbnail_${Y}`||X||n(0,Z=!0),e.data.type!==`RemoveFavoriteThumbnail_${Y}`||X||n(0,Z=!1),"UserSessionID"===e.data.type&&(n(15,oe=!0),e.data.session,i=e.data.userID),"CategoryUpdate"===e.data.type&&n(12,s=null)},we=e=>{window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href),
|
|
1293
1293
|
//Analytics event -- if game was searched
|
|
1294
1294
|
"function"==typeof gtag&>ag("event","OpenGame",{context:"GameThumbnail--Searched",gameId:`${e}`,userId:`${i||"Not logged in"}`}),
|
|
1295
1295
|
// Case mobile
|
|
1296
|
-
|
|
1296
|
+
gr(ce)&&"true"==ae?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:Q,isMobile:gr(ce),source:"GameThumbnail",identifier:"Lobby"},window.location.href):gr(ce)&&"false"==ae&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:gr(ce)},window.location.href),
|
|
1297
1297
|
// Case desktop
|
|
1298
|
-
|
|
1298
|
+
gr(ce)||"true"!=ie?gr(ce)||"false"!=ie||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:gr(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:Q,isMobile:gr(ce),identifier:"Lobby"},window.location.href)},_e=e=>{let t="thumbnail";Z?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},Se=()=>{var e;e=D,Qt.set(e)},xe=()=>{te&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${ee}/encoder/lobby/updates/${U}/${Y}`),l.addEventListener("message",Te))},Ce=()=>{l&&(l.close(),l=void 0)},Te=async e=>{const{type:t,data:r}=e;let i;if("message"===t){if(r)try{i=JSON.parse(r)}catch(e){
|
|
1299
1299
|
// eslint-disable-next-line no-console
|
|
1300
1300
|
console.error("MESSAGE PARSING ERROR: ",e)}if(i){const{InternalTableId:e,MessageType:t,Results:// TakenSeats,
|
|
1301
1301
|
r,Seats:// Roads, // for baccarat
|
|
1302
|
-
a,Open:o}=i;if(e)switch(t){case"SeatsUpdated":a&&Array.isArray(a)&&(n(29,y=a),n(12,s.currentOccupiedSeats=a,s),await
|
|
1302
|
+
a,Open:o}=i;if(e)switch(t){case"SeatsUpdated":a&&Array.isArray(a)&&(n(29,y=a),n(12,s.currentOccupiedSeats=a,s),await O());break;case"RouletteResultsUpdated":r&&Array.isArray(r)&&(v=r,n(12,s.currentRouletteNumbers=r,s),await O());break;case"DoubleBallRouletteResultsUpdated":r&&Array.isArray(r)&&(b=r,n(12,s.currentDoubleBallRouletteNumbers=r,s),await O());break;case"TableOpened":case"TableClosed":n(23,d=o),n(12,s.isOpen=o,s),await O()}// default case
|
|
1303
1303
|
}}// default case
|
|
1304
|
-
},Ee=(e,t=",")=>null!=e?`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,t):"",
|
|
1304
|
+
},Ee=(e,t=",")=>null!=e?`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,t):"",ke=(e,t)=>e.some((e=>e===t)),Fe=()=>{if(s){if(n(23,d=s.isOpen),he=s.betLimit||{},n(24,m=s.openHours),n(25,de=(e=>{g=e.totalSeats||7,n(29,y=e.currentOccupiedSeats||[]);const t=[];for(let e=1;e<=g;e++)t.push(e);return{seats:t}})(s).seats),m&&m.value){const{value:{startTime:e,originalTimeFormat:t}}=m;/* , timeFormat: timeFormatRaw */n(21,h=e),n(22,ue=t||ue)}d&&n(20,c=(e=>{let t=null;if(e){const{vendorCategory:n}=e;if(n){const e=n.toLowerCase();ke(pe,e)?t=Vr:ke(ge,e)&&(t=Zr)}// else if (contains(baccaratCategory, gameTypeToLower)) {
|
|
1305
1305
|
// GameComponent = 'baccarat';
|
|
1306
1306
|
}// } else if (contains(otherLiveGamesCategory, gameTypeToLower)) {
|
|
1307
1307
|
// GameComponent = 'poker';
|
|
1308
1308
|
// }
|
|
1309
|
-
return t})(s)),n(26,me=
|
|
1309
|
+
return t})(s)),n(26,me=xr[q]),n(27,f=(he.min||{})[q]),n(28,p=(he.max||{})[q]),v=s.currentRouletteNumbers,b=s.currentDoubleBallRouletteNumbers,w=s.vendorCategory,n(30,_=w.toLowerCase()===Kr),n(13,S=(_?b:v)||[]),n(31,x="GameProp LiveProps RoulleteProps"),n(31,x+=_?" Double":""),n(32,C=ke(ge,w.toLowerCase())?ve:ye),E=T,n(33,T=Array.isArray(y)&&y.length===g),s.dealer&&n(35,G=s.dealer.DealerName),L=s.numberOfPlayers,n(34,fe="ListGame"),s.isOpen&&s.currentRouletteNumbers&&n(34,fe+=" GameBackdrop"),d&&T&&f&&p&&s.currentOccupiedSeats?n(34,fe+=" GameContainerDimmed"):!1===d&&h&&n(34,fe+=" GameContainerFullyDimmed"),o&&(!E&&T?(n(34,fe+=" PulsatingRedShadow"),n(34,fe=fe.replace(" PulsatingGreenShadow",""))):E&&!T&&(n(34,fe+=" PulsatingGreenShadow"),n(34,fe=fe.replace(" PulsatingRedShadow",""))))}},Ge=()=>{let e=new URL(A),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1)}))};F((()=>(window.addEventListener("message",be,!1),()=>{window.removeEventListener("message",be),l&&l.removeEventListener("message",Te)})));return e.$$set=e=>{"session"in e&&n(48,$=e.session),"userid"in e&&n(49,I=e.userid),"lang"in e&&n(1,D=e.lang),"clientstyling"in e&&n(50,P=e.clientstyling),"clientstylingurl"in e&&n(51,A=e.clientstylingurl),"translationurl"in e&&n(52,N=e.translationurl),"favorites"in e&&n(2,R=e.favorites),"gamethumbnail"in e&&n(3,H=e.gamethumbnail),"gamename"in e&&n(4,B=e.gamename),"gamevendor"in e&&n(5,U=e.gamevendor),"gameid"in e&&n(6,Y=e.gameid),"gameisnew"in e&&n(7,z=e.gameisnew),"gametag"in e&&n(8,j=e.gametag),"gamefunmode"in e&&n(53,W=e.gamefunmode),"searchitem"in e&&n(54,V=e.searchitem),"gamefavorite"in e&&n(0,Z=e.gamefavorite),"gamecellsize"in e&&n(9,K=e.gamecellsize),"showfavoredcategory"in e&&n(55,X=e.showfavoredcategory),"showgamename"in e&&n(10,J=e.showgamename),"currency"in e&&n(56,q=e.currency),"gamepagemodalurl"in e&&n(57,Q=e.gamepagemodalurl),"endpoint"in e&&n(58,ee=e.endpoint),"livelobbyendpoint"in e&&n(59,te=e.livelobbyendpoint),"connectlive"in e&&n(60,ne=e.connectlive),"visibilityconnect"in e&&n(61,re=e.visibilityconnect),"integratedgameframedesktop"in e&&n(62,ie=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(63,ae=e.integratedgameframemobile)},e.$$.update=()=>{/*connectlive*/536870912&e.$$.dirty[1]&&ne&&("disconnect"===ne?Ce():"connect"===ne&&xe()),/*visibilityconnect*/1073741824&e.$$.dirty[1]&&re&&("disconnect"===re?Ce():"connect"===re&&"connect"===ne&&xe()),/*lang*/2&e.$$.dirty[0]&&D&&Se(),/*session, userid, endpoint*/134610944&e.$$.dirty[1]&&$&&I&&ee&&(n(15,oe=!0),i=I),/*gamethumbnail*/8&e.$$.dirty[0]&&H&&a&&n(19,a.onload=()=>{n(18,le=!0)},a),/*customStylingContainer*/2048&e.$$.dirty[0]|/*clientstyling*/524288&e.$$.dirty[1]&&P&&o&&(()=>{let e=document.createElement("style");e.innerHTML=P,o.appendChild(e)})(),/*customStylingContainer*/2048&e.$$.dirty[0]|/*clientstylingurl*/1048576&e.$$.dirty[1]&&A&&o&&Ge(),/*favorites*/4&e.$$.dirty[0]&&R&&"true"==R&&n(16,se=!0),/*translationurl*/2097152&e.$$.dirty[1]&&N&&fetch(N).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{_r(t,e[t])}))})).catch((e=>{console.log(e)})),/*gamecellsize*/512&e.$$.dirty[0]|/*clientstylingurl*/1048576&e.$$.dirty[1]&&K&&A&&Ge(),/*endpoint, livelobbyendpoint*/402653184&e.$$.dirty[1]&&ee&&te&&(()=>{let e=new URL(`${te.split("?")[0]}`);e.searchParams.append("platform",yr(ce)),e.searchParams.append("language",D),
|
|
1310
1310
|
// let url:URL = new URL(`${endpoint}${livelobbyendpoint}`);
|
|
1311
|
-
fetch(e).then((e=>e.json())).then((e=>{const{details:t}=e[0];n(12,s=t)}))})(),/*livegamedata*/4096&e.$$.dirty[0]&&s&&Ge(),/*roulletteref, roulleteresults*/24576&e.$$.dirty[0]&&G&&S&&(()=>{const e="FirstElementAnimated",t=G.getElementsByClassName("First")[0];t&&(t.classList.add(e),setTimeout((()=>{t.classList.remove(e)}),2e3))})()},[Z,D,R,H,B,U,Y,z,j,K,J,o,s,S,G,oe,se,!1,le,a,c,h,ue,d,m,de,me,f,p,y,_,x,C,T,fe,M,r,ce,we,_e,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},Fe,(e,t,n)=>{let r,i;return null!=e&&null!=t&&(i=`\n <span>\n ${n}\n </span>\n ${Ee(e)}-${Ee(t)}`),L&&(r=`\n <svg fill="white" width="13" height="13" viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"/></svg>\n <span class="NrOfPlayers">${L}</span>`),r||i?`\n <p class="LiveLimits">\n <span class="BetLimitLeft">\n ${i||""}\n </span>\n <span class="BetLimitRight">\n ${r||""}\n </span>\n </p>`:""},e=>e?`\n <p class="LiveLimits">\n <span class="DealerName">${r("gameThumbnail.dealer")}: ${e}</span>\n </p>\n `:"",(e,t,n,r="")=>{const i=`${e} ${r}`,a=t.toString().match(/first0|second0|0/g);return 0===t||a&&0!==a.length?`\n <span\n id=${t}\n class="${i}"\n >\n ${n}\n </span>\n `:`\n <span id=${t} class="${i}">\n ${n}\n </span>\n `},$,I,O,N,A,W,V,X,q,Q,ee,te,ne,re,ie,ae,ye,ve,function(e){k[e?"unshift":"push"]((()=>{a=e,n(19,a)}))},()=>_e(Y),()=>we(Y),()=>_e(Y),function(e){k[e?"unshift":"push"]((()=>{G=e,n(14,G)}))},function(e){k[e?"unshift":"push"]((()=>{o=e,n(11,o)}))}]}function Jr(e,t){At(e,t)}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.LoaderRipple{width:80px;height:80px;position:absolute;top:40px;left:-8px}.LoaderRipple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.LoaderRipple div:nth-child(2){animation-delay:-0.5s}@keyframes ripple-effect{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}100%{top:0px;left:0px;width:72px;height:72px;opacity:0}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Xr,jr,a,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),R()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),R()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),R()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),R()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),R()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),R()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),R()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),R()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),R()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),R()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),R()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),R()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),R()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),R()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),R()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),R()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),R()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),R()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),R()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),R()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const qr={en:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},zh:{Translations:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"}},de:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},it:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},fr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},es:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},tr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ru:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ro:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hu:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pt:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}}};
|
|
1312
|
-
/* ../casino-filter/src/CasinoFilter.svelte generated by Svelte v3.58.0 */function
|
|
1313
|
-
// (
|
|
1314
|
-
function
|
|
1315
|
-
return e[7]?ri
|
|
1316
|
-
// (
|
|
1317
|
-
function
|
|
1318
|
-
// (
|
|
1319
|
-
function
|
|
1320
|
-
// (
|
|
1321
|
-
function
|
|
1322
|
-
// (
|
|
1323
|
-
function
|
|
1324
|
-
// (
|
|
1325
|
-
function
|
|
1326
|
-
// (
|
|
1327
|
-
function
|
|
1311
|
+
fetch(e).then((e=>e.json())).then((e=>{const{details:t}=e[0];n(12,s=t)}))})(),/*livegamedata*/4096&e.$$.dirty[0]&&s&&Fe(),/*roulletteref, roulleteresults*/24576&e.$$.dirty[0]&&k&&S&&(()=>{const e="FirstElementAnimated",t=k.getElementsByClassName("First")[0];t&&(t.classList.add(e),setTimeout((()=>{t.classList.remove(e)}),2e3))})()},[Z,D,R,H,B,U,Y,z,j,K,J,o,s,S,k,oe,se,!1,le,a,c,h,ue,d,m,de,me,f,p,y,_,x,C,T,fe,G,r,ce,we,_e,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},ke,(e,t,n)=>{let r,i;return null!=e&&null!=t&&(i=`\n <span>\n ${n}\n </span>\n ${Ee(e)}-${Ee(t)}`),L&&(r=`\n <svg fill="white" width="13" height="13" viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"/></svg>\n <span class="NrOfPlayers">${L}</span>`),r||i?`\n <p class="LiveLimits">\n <span class="BetLimitLeft">\n ${i||""}\n </span>\n <span class="BetLimitRight">\n ${r||""}\n </span>\n </p>`:""},e=>e?`\n <p class="LiveLimits">\n <span class="DealerName">${r("gameThumbnail.dealer")}: ${e}</span>\n </p>\n `:"",(e,t,n,r="")=>{const i=`${e} ${r}`,a=t.toString().match(/first0|second0|0/g);return 0===t||a&&0!==a.length?`\n <span\n id=${t}\n class="${i}"\n >\n ${n}\n </span>\n `:`\n <span id=${t} class="${i}">\n ${n}\n </span>\n `},$,I,P,A,N,W,V,X,q,Q,ee,te,ne,re,ie,ae,ye,ve,function(e){M[e?"unshift":"push"]((()=>{a=e,n(19,a)}))},()=>_e(Y),()=>we(Y),()=>_e(Y),function(e){M[e?"unshift":"push"]((()=>{k=e,n(14,k)}))},function(e){M[e?"unshift":"push"]((()=>{o=e,n(11,o)}))}]}function qr(e,t){Rt(e,t)}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends j{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.LoaderRipple{width:80px;height:80px;position:absolute;top:40px;left:-8px}.LoaderRipple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.LoaderRipple div:nth-child(2){animation-delay:-0.5s}@keyframes ripple-effect{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}100%{top:0px;left:0px;width:72px;height:72px;opacity:0}}',this.shadowRoot.appendChild(t),z(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Jr,Wr,a,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),H()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),H()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),H()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),H()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),H()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),H()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),H()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),H()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),H()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),H()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),H()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),H()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),H()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),H()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),H()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),H()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),H()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const Qr={en:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},zh:{Translations:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"}},de:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},it:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},fr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},es:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},tr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ru:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ro:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hu:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pt:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}}};
|
|
1312
|
+
/* ../casino-filter/src/CasinoFilter.svelte generated by Svelte v3.58.0 */function ei(e,t,n){const r=e.slice();return r[35]=t[n],r[36]=t,r[37]=n,r}
|
|
1313
|
+
// (165:4) {#if !isLoading}
|
|
1314
|
+
function ti(e){let t,n,i,a,o,s,l,c,u,b,S,C,T,E,k,F,G,M,L,$,I,D,P,O,A,N,R,H,B,U,Y,z=/*$_*/e[11]("Translations.filterby")+"",j=/*$_*/e[11]("Translations.providers")+"",W=/*$_*/e[11]("Translations.clear")+"";function V(e,t){/*fullSelection*/
|
|
1315
|
+
return e[7]?ii:ri}let Z=V(e),K=Z(e),X=/*vendorArray*/e[5],J=[];for(let t=0;t<X.length;t+=1)J[t]=si(ei(e,X,t));return{c(){t=p("div"),n=p("div"),i=p("div"),a=g("svg"),o=g("path"),s=v(),l=p("div"),c=p("span"),u=y(z),b=v(),S=p("div"),C=p("span"),T=y(j),E=v(),K.c(),k=v(),F=p("span"),G=g("svg"),M=g("path"),I=v(),D=p("div"),P=p("ul");for(let e=0;e<J.length;e+=1)J[e].c();O=v(),A=p("button"),N=y(W),_(o,"id","noun_filter_736223"),_(o,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),_(o,"transform","translate(-5 -6.2)"),_(o,"fill","#fff"),_(a,"xmlns","http://www.w3.org/2000/svg"),_(a,"width","16"),_(a,"height","16"),_(a,"viewBox","0 0 16 16"),_(c,"class","FilterName"),_(S,"class","FilterValueContainer"),_(l,"class","FilterTextContainer"),_(i,"class","FilterMainArea"),_(M,"id","arrow"),_(M,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),_(M,"transform","translate(-274.511 -441.088)"),_(M,"fill","#d1d1d1"),_(G,"xmlns","http://www.w3.org/2000/svg"),_(G,"width","14"),_(G,"height","6.835"),_(G,"viewBox","0 0 14 6.835"),_(F,"class",L="TriangleInactive "+(/*isFilterActive*/e[4]?"TriangleActive":"")),_(n,"class",$="FilterSelector "+(/*isFilterActive*/e[4]?"FilterSelectorOpen":"")),_(P,"class","FilterDropdown"),_(A,"class","ClearFilters"),A.disabled=R=/*fullSelection*/e[7]&&/*selectedVendorArray*/e[6].length!=/*vendorArray*/e[5].length,_(D,"class",H="FilterDropdownContainer "+(/*isFilterActive*/e[4]?"FilterOpen":"")),_(t,"class",B="FilterContainer "+(/*addfilterselector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"FilerContainerSplit":""))},m(r,m){d(r,t,m),h(t,n),h(n,i),h(i,a),h(a,o),h(i,s),h(i,l),h(l,c),h(c,u),h(l,b),h(l,S),h(S,C),h(C,T),h(S,E),K.m(S,null),h(n,k),h(n,F),h(F,G),h(G,M),h(t,I),h(t,D),h(D,P);for(let e=0;e<J.length;e+=1)J[e]&&J[e].m(P,null);h(D,O),h(D,A),h(A,N),U||(Y=[w(n,"click",/*click_handler*/e[22]),w(A,"click",/*click_handler_2*/e[25])],U=!0)},p(e,r){if(/*$_*/2048&r[0]&&z!==(z=/*$_*/e[11]("Translations.filterby")+"")&&x(u,z),/*$_*/2048&r[0]&&j!==(j=/*$_*/e[11]("Translations.providers")+"")&&x(T,j),Z===(Z=V(e))&&K?K.p(e,r):(K.d(1),K=Z(e),K&&(K.c(),K.m(S,null))),/*isFilterActive*/16&r[0]&&L!==(L="TriangleInactive "+(/*isFilterActive*/e[4]?"TriangleActive":""))&&_(F,"class",L),/*isFilterActive*/16&r[0]&&$!==($="FilterSelector "+(/*isFilterActive*/e[4]?"FilterSelectorOpen":""))&&_(n,"class",$),/*filterbylogo, vendorArray, filterByVendors*/8228&r[0]){let t;for(X=/*vendorArray*/e[5],t=0;t<X.length;t+=1){const n=ei(e,X,t);J[t]?J[t].p(n,r):(J[t]=si(n),J[t].c(),J[t].m(P,null))}for(;t<J.length;t+=1)J[t].d(1);J.length=X.length}/*$_*/2048&r[0]&&W!==(W=/*$_*/e[11]("Translations.clear")+"")&&x(N,W),/*fullSelection, selectedVendorArray, vendorArray*/224&r[0]&&R!==(R=/*fullSelection*/e[7]&&/*selectedVendorArray*/e[6].length!=/*vendorArray*/e[5].length)&&(A.disabled=R),/*isFilterActive*/16&r[0]&&H!==(H="FilterDropdownContainer "+(/*isFilterActive*/e[4]?"FilterOpen":""))&&_(D,"class",H),/*addfilterselector, addsortingselector*/3&r[0]&&B!==(B="FilterContainer "+(/*addfilterselector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"FilerContainerSplit":""))&&_(t,"class",B)},d(e){e&&m(t),K.d(),f(J,e),U=!1,r(Y)}}}
|
|
1316
|
+
// (162:2) {#if hasErrors}
|
|
1317
|
+
function ni(e){let t,n,r=/*$_*/e[11]("casinoPage.500")+"";return{c(){t=p("p"),n=y(r),_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/2048&t[0]&&r!==(r=/*$_*/e[11]("casinoPage.500")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1318
|
+
// (178:14) {:else}
|
|
1319
|
+
function ri(e){let t,n;return{c(){t=p("span"),n=y(/*selectionNumber*/e[8]),_(t,"class","FilterCounter")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*selectionNumber*/256&t[0]&&x(n,/*selectionNumber*/e[8])},d(e){e&&m(t)}}}
|
|
1320
|
+
// (176:14) {#if fullSelection}
|
|
1321
|
+
function ii(e){let t,n,r=/*$_*/e[11]("Translations.all")+"";return{c(){t=p("span"),n=y(r),_(t,"class","FilterCounter")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/2048&t[0]&&r!==(r=/*$_*/e[11]("Translations.all")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1322
|
+
// (200:50)
|
|
1323
|
+
function ai(e){let t,n;return{c(){t=p("img"),l(t.src,n=/*vendor*/e[35].logo)||_(t,"src",n),_(t,"alt","vendor logo")},m(e,n){d(e,t,n)},p(e,r){/*vendorArray*/32&r[0]&&!l(t.src,n=/*vendor*/e[35].logo)&&_(t,"src",n)},d(e){e&&m(t)}}}
|
|
1324
|
+
// (198:16) {#if filterbylogo === "false"}
|
|
1325
|
+
function oi(e){let t,n,r=/*vendor*/e[35].name+"";return{c(){t=p("span"),n=y(r)},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*vendorArray*/32&t[0]&&r!==(r=/*vendor*/e[35].name+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1326
|
+
// (193:10) {#each vendorArray as vendor}
|
|
1327
|
+
function si(e){let t,n,i,a,o,s,l,c,u,f,g,y;function b(){
|
|
1328
1328
|
/*input_change_handler*/e[23].call(i,/*each_value*/e[36],/*vendor_index*/e[37])}function S(){/*click_handler_1*/
|
|
1329
1329
|
return e[24](/*vendor*/e[35])}function x(e,t){/*filterbylogo*/
|
|
1330
|
-
return"false"===e[2]?
|
|
1331
|
-
return e[10]?
|
|
1330
|
+
return"false"===e[2]?oi:/*filterbylogo*/"true"===e[2]?ai:void 0}let C=x(e),T=C&&C(e);return{c(){t=p("li"),n=p("label"),i=p("input"),o=v(),s=p("span"),l=v(),T&&T.c(),c=v(),_(i,"type","checkbox"),_(i,"name","checkbox"),i.__value=a=/*vendor*/e[35].name,i.value=i.__value,_(s,"class","FiltersCheckmark"),_(n,"class","FilterLabel"),_(t,"class",u="FilterItem "+(/*filterbylogo*/"true"===e[2]?"FilterItemWithLogos":"")),t.value=f=/*vendor*/e[35].name},m(r,a){d(r,t,a),h(t,n),h(n,i),i.checked=/*vendor*/e[35].isFilterSelected,h(n,o),h(n,s),h(n,l),T&&T.m(n,null),h(t,c),g||(y=[w(i,"change",b),w(i,"click",S)],g=!0)},p(r,o){e=r,/*vendorArray*/32&o[0]&&a!==(a=/*vendor*/e[35].name)&&(i.__value=a,i.value=i.__value),/*vendorArray*/32&o[0]&&(i.checked=/*vendor*/e[35].isFilterSelected),C===(C=x(e))&&T?T.p(e,o):(T&&T.d(1),T=C&&C(e),T&&(T.c(),T.m(n,null))),/*filterbylogo*/4&o[0]&&u!==(u="FilterItem "+(/*filterbylogo*/"true"===e[2]?"FilterItemWithLogos":""))&&_(t,"class",u),/*vendorArray*/32&o[0]&&f!==(f=/*vendor*/e[35].name)&&(t.value=f)},d(e){e&&m(t),T&&T.d(),g=!1,r(y)}}}function li(t){let n;function r(e,t){/*hasErrors*/
|
|
1331
|
+
return e[10]?ni:/*isLoading*/e[9]?void 0:ti}let i=r(t),a=i&&i(t);return{c(){n=p("div"),a&&a.c(),this.c=e},m(e,r){d(e,n,r),a&&a.m(n,null)
|
|
1332
1332
|
/*div_binding*/,t[26](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a&&a.d(1),a=i&&i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a&&a.d()
|
|
1333
|
-
/*div_binding*/,t[26](null)}}}function
|
|
1333
|
+
/*div_binding*/,t[26](null)}}}function ci(e,t,n){let r;u(e,dn,(e=>n(11,r=e)));let i,{endpoint:a=""}=t,{datasource:o=""}=t,{lang:s=""}=t,{translationurl:l=""}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{categoryid:d=""}=t,{addfilterselector:m="false"}=t,{addsortingselector:f="false"}=t,{filterbylogo:p="false"}=t,g=!1,y=window.navigator.userAgent,v=[],b=[],w={},_=!1,S=0,x=!0,C=!1;
|
|
1334
1334
|
// start translations area
|
|
1335
|
-
!function({withLocale:e,translations:t}){
|
|
1335
|
+
!function({withLocale:e,translations:t}){Qt.subscribe((n=>{null==n&&(Ot.set(t),Qt.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1336
1336
|
/*dictionary.set(translations);
|
|
1337
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(
|
|
1337
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Qr).forEach((e=>{qr(e,Qr[e])}));
|
|
1338
1338
|
// end custom styling area
|
|
1339
|
-
w[d]&&(w={[d]:[]});const T=()=>{n(4,g=!g)},E=e=>{let t=localStorage.getItem("vendorFiltersByCategory");e.isFilterSelected=!e.isFilterSelected,b.length&&0!=b.filter((t=>t.name===e.name)).length?n(6,b=b.filter((t=>t.name!==e.name))):b.push(e),null==t?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[d]:b.map((e=>e.id))})):(t=JSON.parse(t),t[d]=b.map((e=>e.id)),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(t))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),
|
|
1339
|
+
w[d]&&(w={[d]:[]});const T=()=>{n(4,g=!g)},E=e=>{let t=localStorage.getItem("vendorFiltersByCategory");e.isFilterSelected=!e.isFilterSelected,b.length&&0!=b.filter((t=>t.name===e.name)).length?n(6,b=b.filter((t=>t.name!==e.name))):b.push(e),null==t?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[d]:b.map((e=>e.id))})):(t=JSON.parse(t),t[d]=b.map((e=>e.id)),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(t))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),k()},k=()=>{
|
|
1340
1340
|
// update filters value
|
|
1341
|
-
n(7,_=b.length===v.length||0==b.length),n(8,S=b.length)},
|
|
1341
|
+
n(7,_=b.length===v.length||0==b.length),n(8,S=b.length)},F=()=>{const e=new URL(`${a}/casino/vendors`);n(4,g=!1),e.searchParams.append("fields","id,name,logo,subVendors"),e.searchParams.append("language",s),e.searchParams.append("datasource",o),e.searchParams.append("platform",yr(y)),(d.match(/\$/g)||[]).length>1?(e.searchParams.append("filter",`games(subGroups=${d})`),e.searchParams.append("subVendors",`games(subGroups=${d})`)):e.searchParams.append("filter",`games(groups=${d})`),(e=>{n(9,x=!0),new Promise(((t,r)=>{fetch(e).then((e=>e.json())).then((e=>{e=e.items,t(e.items),n(6,b=[]);let r=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));e.forEach((e=>{var t;r||(r={currentCategoryId:[]}),(null===(t=r[d])||void 0===t?void 0:t.indexOf(e.id))>=0?(e.isFilterSelected=!0,b.push(e)):e.isFilterSelected=!1})),n(5,v=e),
|
|
1342
1342
|
// needed to force the update of the filters value
|
|
1343
|
-
|
|
1343
|
+
k()})).catch((e=>{console.error(e),n(10,C=!0),r(e)})).finally((()=>{n(9,x=!1)}))}))})(e)},G=()=>{n(6,b=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[d]:b.map((e=>e.id))})),v.forEach((e=>e.isFilterSelected=!1)),
|
|
1344
1344
|
// this reassignation of the pointer value is required in order to have Svelte trigger a re-render
|
|
1345
|
-
n(5,v),window.postMessage({type:"ApplyFilters"},window.location.href),n(7,_=!0),n(4,g=!1)};return e.$$set=e=>{"endpoint"in e&&n(15,a=e.endpoint),"datasource"in e&&n(16,o=e.datasource),"lang"in e&&n(17,s=e.lang),"translationurl"in e&&n(18,l=e.translationurl),"clientstyling"in e&&n(19,c=e.clientstyling),"clientstylingurl"in e&&n(20,h=e.clientstylingurl),"categoryid"in e&&n(21,d=e.categoryid),"addfilterselector"in e&&n(0,m=e.addfilterselector),"addsortingselector"in e&&n(1,f=e.addsortingselector),"filterbylogo"in e&&n(2,p=e.filterbylogo)},e.$$.update=()=>{/*endpoint, datasource, categoryid, filterbylogo*/2195460&e.$$.dirty[0]&&a&&o&&d&&p&&
|
|
1345
|
+
n(5,v),window.postMessage({type:"ApplyFilters"},window.location.href),n(7,_=!0),n(4,g=!1)};return e.$$set=e=>{"endpoint"in e&&n(15,a=e.endpoint),"datasource"in e&&n(16,o=e.datasource),"lang"in e&&n(17,s=e.lang),"translationurl"in e&&n(18,l=e.translationurl),"clientstyling"in e&&n(19,c=e.clientstyling),"clientstylingurl"in e&&n(20,h=e.clientstylingurl),"categoryid"in e&&n(21,d=e.categoryid),"addfilterselector"in e&&n(0,m=e.addfilterselector),"addsortingselector"in e&&n(1,f=e.addsortingselector),"filterbylogo"in e&&n(2,p=e.filterbylogo)},e.$$.update=()=>{/*endpoint, datasource, categoryid, filterbylogo*/2195460&e.$$.dirty[0]&&a&&o&&d&&p&&F(),/*clientstyling, customStylingContainer*/524296&e.$$.dirty[0]&&c&&i&&(()=>{let e=document.createElement("style");e.innerHTML=c,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048584&e.$$.dirty[0]&&h&&i&&(()=>{let e=document.createElement("style");fetch(new URL(h)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&l&&fetch(l).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{qr(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,f,p,i,g,v,b,_,S,x,C,r,T,E,G,a,o,s,l,c,h,d,()=>T(),function(e,t){e[t].isFilterSelected=this.checked,n(5,v)},e=>E(e),()=>G(),function(e){M[e?"unshift":"push"]((()=>{i=e,n(3,i)}))}]}function ui(e,t){Rt(e,t)}!customElements.get("casino-filter")&&customElements.define("casino-filter",class extends j{constructor(e){super();const t=document.createElement("style");t.textContent='.FilterContainer{color:#fff;position:relative;z-index:16}.FilterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem{position:relative}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid #D0046C}.FilterItem input:checked~.FiltersCheckmark{background-color:#D0046C;border:1px solid #D0046C}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin:0 15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid #fff}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{display:grid;grid-template-columns:minmax(150px, 150px);gap:20px;margin-block-start:0}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{grid-template-columns:1fr}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:10px 25px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}}',this.shadowRoot.appendChild(t),z(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},ci,li,a,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","lang","translationurl","clientstyling","clientstylingurl","categoryid","addfilterselector","addsortingselector","filterbylogo"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[16]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),H()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),H()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get categoryid(){return this.$$.ctx[21]}set categoryid(e){this.$$set({categoryid:e}),H()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(e){this.$$set({addfilterselector:e}),H()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(e){this.$$set({addsortingselector:e}),H()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(e){this.$$set({filterbylogo:e}),H()}});const hi={en:{Translations:{sortby:"Sort by:"}},zh:{Translations:{sortby:"Sort by"}},de:{Translations:{sortby:"Sort by:"}},it:{Translations:{sortby:"Sort by:"}},fr:{Translations:{sortby:"Sort by:"}},es:{Translations:{sortby:"Sort by:"}},tr:{Translations:{sortby:"Sort by:"}},ru:{Translations:{sortby:"Sort by:"}},ro:{Translations:{sortby:"Sort by:"}},hr:{Translations:{sortby:"Sort by:"}},hu:{Translations:{sortby:"Sort by:"}},pl:{Translations:{sortby:"Sort by:"}},pt:{Translations:{sortby:"Sort by:"}},sl:{Translations:{sortby:"Sort by:"}},sr:{Translations:{sortby:"Sort by:"}}};
|
|
1346
|
+
/* ../casino-sort/src/CasinoSort.svelte generated by Svelte v3.58.0 */function di(e,t,n){const r=e.slice();return r[24]=t[n],r}
|
|
1347
|
+
// (101:4) {#if !isLoading}
|
|
1348
|
+
function mi(e){let t,n,r,i,a,o,s,l,c,u,b,S,T,E,k,F,G,M,L,$,I,D,P,O,A,N,R,H=/*$_*/e[6]("Translations.sortby")+"",B=/*vendorSortingBy*/e[5]&&fi(e),U=Object.values(/*vendorMap*/e[7]),Y=[];for(let t=0;t<U.length;t+=1)Y[t]=pi(di(e,U,t));return{c(){t=p("div"),n=p("div"),r=p("div"),i=g("svg"),a=g("g"),o=g("path"),s=g("path"),l=g("path"),c=v(),u=p("div"),b=p("span"),S=y(H),T=v(),E=p("div"),B&&B.c(),k=v(),F=p("span"),G=g("svg"),M=g("path"),I=v(),D=p("div"),P=p("ul");for(let e=0;e<Y.length;e+=1)Y[e].c();_(o,"id","Path_5267"),_(o,"data-name","Path 5267"),_(o,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),_(o,"transform","translate(-206.448 0)"),_(o,"fill","#fff"),_(s,"id","Path_5268"),_(s,"data-name","Path 5268"),_(s,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),_(s,"transform","translate(0 0)"),_(s,"fill","#fff"),_(l,"id","Path_5269"),_(l,"data-name","Path 5269"),_(l,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),_(l,"transform","translate(-412.896 0)"),_(l,"fill","#fff"),_(a,"id","sortby"),_(a,"transform","translate(-306 -342)"),_(i,"xmlns","http://www.w3.org/2000/svg"),_(i,"width","20"),_(i,"height","20"),_(i,"viewBox","0 0 26.003 22.819"),_(b,"class","SorterName"),_(E,"class","SorterValueContainer"),_(u,"class","SorterTextContainer"),_(r,"class","SorterMainArea"),_(M,"id","arrow"),_(M,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),_(M,"transform","translate(-274.511 -441.088)"),_(M,"fill","#d1d1d1"),_(G,"xmlns","http://www.w3.org/2000/svg"),_(G,"width","14"),_(G,"height","6.835"),_(G,"viewBox","0 0 14 6.835"),_(F,"class",L="TriangleInactive "+(/*isSorterActive*/e[3]?"TriangleActive":"")),_(n,"class",$="SorterSelector "+(/*isSorterActive*/e[3]?"SorterSelectorOpen":"")),_(P,"class","SorterDropdown"),C(P,"list-style-type","none"),C(P,"padding","10px 0px"),C(P,"margin","0"),_(D,"class",O="SorterDropdownContainer "+(/*isSorterActive*/e[3]?"SorterOpen":"")),_(t,"class",A="SorterContainer "+(/*addSorterSelector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"SorterContainerSplitt":""))},m(m,f){d(m,t,f),h(t,n),h(n,r),h(r,i),h(i,a),h(a,o),h(a,s),h(a,l),h(r,c),h(r,u),h(u,b),h(b,S),h(u,T),h(u,E),B&&B.m(E,null),h(n,k),h(n,F),h(F,G),h(G,M),h(t,I),h(t,D),h(D,P);for(let e=0;e<Y.length;e+=1)Y[e]&&Y[e].m(P,null);N||(R=w(n,"click",/*click_handler*/e[15]),N=!0)},p(e,r){if(/*$_*/64&r&&H!==(H=/*$_*/e[6]("Translations.sortby")+"")&&x(S,H),/*vendorSortingBy*/e[5]?B?B.p(e,r):(B=fi(e),B.c(),B.m(E,null)):B&&(B.d(1),B=null),/*isSorterActive*/8&r&&L!==(L="TriangleInactive "+(/*isSorterActive*/e[3]?"TriangleActive":""))&&_(F,"class",L),/*isSorterActive*/8&r&&$!==($="SorterSelector "+(/*isSorterActive*/e[3]?"SorterSelectorOpen":""))&&_(n,"class",$),/*Object, vendorMap, vendorSortingBy, sortBy*/416&r){let t;for(U=Object.values(/*vendorMap*/e[7]),t=0;t<U.length;t+=1){const n=di(e,U,t);Y[t]?Y[t].p(n,r):(Y[t]=pi(n),Y[t].c(),Y[t].m(P,null))}for(;t<Y.length;t+=1)Y[t].d(1);Y.length=U.length}/*isSorterActive*/8&r&&O!==(O="SorterDropdownContainer "+(/*isSorterActive*/e[3]?"SorterOpen":""))&&_(D,"class",O),/*addSorterSelector, addsortingselector*/3&r&&A!==(A="SorterContainer "+(/*addSorterSelector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"SorterContainerSplitt":""))&&_(t,"class",A)},d(e){e&&m(t),B&&B.d(),f(Y,e),N=!1,R()}}}
|
|
1349
|
+
// (115:14) {#if vendorSortingBy}
|
|
1350
|
+
function fi(e){let t,n;return{c(){t=p("span"),n=y(/*vendorSortingBy*/e[5])},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*vendorSortingBy*/32&t&&x(n,/*vendorSortingBy*/e[5])},d(e){e&&m(t)}}}
|
|
1351
|
+
// (129:10) {#each Object.values(vendorMap) as sort}
|
|
1352
|
+
function pi(e){let t,n,r,i,a,o,s,l,c,u,f,g,b=/*sort*/e[24]+"";function S(){/*click_handler_1*/
|
|
1353
|
+
return e[16](/*sort*/e[24])}return{c(){t=p("li"),n=p("label"),r=p("input"),a=v(),o=p("span"),s=v(),l=p("span"),c=y(b),u=v(),_(r,"type","radio"),_(r,"name","checkbox"),r.value="sort",r.checked=i=/*vendorSortingBy*/e[5]==/*sort*/e[24],_(o,"class","SortersCheckmark"),_(n,"class","SorterLabel"),_(t,"class","FilterItem"),t.value="sort"},m(e,i){d(e,t,i),h(t,n),h(n,r),h(n,a),h(n,o),h(n,s),h(n,l),h(l,c),h(t,u),f||(g=w(r,"click",S),f=!0)},p(t,n){e=t,/*vendorSortingBy*/32&n&&i!==(i=/*vendorSortingBy*/e[5]==/*sort*/e[24])&&(r.checked=i)},d(e){e&&m(t),f=!1,g()}}}function gi(t){let n;function r(e,t){if(!/*isLoading*/e[4])return mi}let i=r(t),a=i&&i(t);return{c(){n=p("div"),a&&a.c(),this.c=e},m(e,r){d(e,n,r),a&&a.m(n,null)
|
|
1354
|
+
/*div_binding*/,t[17](n)},p(e,[t]){i===(i=r(e))&&a?a.p(e,t):(a&&a.d(1),a=i&&i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a&&a.d()
|
|
1355
|
+
/*div_binding*/,t[17](null)}}}function yi(e,t,n){let r;u(e,dn,(e=>n(6,r=e)));let i,{lang:a=""}=t,{translationurl:o=""}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,{addSorterSelector:c="false"}=t,{addsortingselector:h="false"}=t,{categoryid:d=""}=t,m=!1,f=!0,p="",g={};!function({withLocale:e,translations:t}){Qt.subscribe((n=>{null==n&&(Ot.set(t),Qt.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1356
|
+
/*dictionary.set(translations);
|
|
1357
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});const y={All:"All",name:"A-Z",isNew:"Newest","advancedTags(name(hot))":"Hottest"};Object.keys(hi).forEach((e=>{ui(e,hi[e])}));const v=e=>{n(5,g=e);let t=localStorage.getItem("vendorSortingBy");p=e;for(let t in y)if(y[t]===e){p=t;break}null==t?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:p})):(t=JSON.parse(t),t[d]=p,localStorage.setItem("vendorSortingBy",JSON.stringify(t))),window.postMessage({type:"ApplySorter",sortBy:p,itemId:d},window.location.href)},b=()=>{n(3,m=!m)};return e.$$set=e=>{"lang"in e&&n(10,a=e.lang),"translationurl"in e&&n(11,o=e.translationurl),"clientstyling"in e&&n(12,s=e.clientstyling),"clientstylingurl"in e&&n(13,l=e.clientstylingurl),"addSorterSelector"in e&&n(0,c=e.addSorterSelector),"addsortingselector"in e&&n(1,h=e.addsortingselector),"categoryid"in e&&n(14,d=e.categoryid)},e.$$.update=()=>{/*categoryid*/16384&e.$$.dirty&&d&&(()=>{var e;n(4,f=!1),n(3,m=!1);let t=null===(e=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===e?void 0:e[d];n(5,g=t||"All"),n(5,g=y[t])})(),/*clientstyling, customStylingContainer*/4100&e.$$.dirty&&s&&i&&(()=>{let e=document.createElement("style");e.innerHTML=s,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/8196&e.$$.dirty&&l&&i&&(()=>{let e=document.createElement("style");fetch(new URL(l)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})(),/*translationurl*/2048&e.$$.dirty&&o&&fetch(o).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ui(t,e[t])}))})).catch((e=>{console.log(e)}))},[c,h,i,m,f,g,r,y,v,b,a,o,s,l,d,()=>b(),e=>v(e),function(e){M[e?"unshift":"push"]((()=>{i=e,n(2,i)}))}]}
|
|
1346
1358
|
/* ../casino-games-category-section/src/CasinoGamesCategorySection.svelte generated by Svelte v3.58.0 */
|
|
1347
|
-
function
|
|
1348
|
-
// (
|
|
1349
|
-
function
|
|
1350
|
-
return e[22]?
|
|
1351
|
-
// (
|
|
1352
|
-
function
|
|
1353
|
-
return e[26]?
|
|
1354
|
-
return e[23]?
|
|
1355
|
-
// (
|
|
1356
|
-
function
|
|
1357
|
-
return e[28]?
|
|
1358
|
-
// (
|
|
1359
|
-
function
|
|
1360
|
-
return e[20]&&!/*isLazyLoading*/e[30]?
|
|
1361
|
-
/*ul_binding_1*/e[56](r)},p(e,u){/*casinomygames*/"true"!==e[14]?o?o.p(e,u):(o=
|
|
1359
|
+
function vi(e,t,n){const r=e.slice();return r[82]=t[n],r[84]=n,r}function bi(e,t,n){const r=e.slice();return r[82]=t[n],r[85]=t,r[84]=n,r}function wi(e,t,n){const r=e.slice();return r[82]=t[n],r[84]=n,r}
|
|
1360
|
+
// (635:4) {:else}
|
|
1361
|
+
function _i(e){let t;function n(e,t){/*categoryData*/
|
|
1362
|
+
return e[22]?Ti:/*showFavGamesCategory*/e[33]?Ci:void 0}let r=n(e),i=r&&r(e);return{c(){t=p("div"),i&&i.c()},m(e,n){d(e,t,n),i&&i.m(t,null)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
|
|
1363
|
+
// (577:4) {#if searched}
|
|
1364
|
+
function Si(e){let t,n,r;function i(e,t){/*recentSearched*/
|
|
1365
|
+
return e[26]?Xi:/*shownCategoryData*/e[23].length?Zi:Ki}let a=i(e),o=a(e);function s(e,t){/*shownCategoryData*/
|
|
1366
|
+
return e[23]?qi:Ji}let l=s(e),c=l(e);return{c(){t=p("div"),n=p("div"),o.c(),r=v(),c.c(),_(n,"class","CasinoGamesHeader Searched "+(gr(/*userAgent*/e[38])?"CasinoGamesHeaderMobile":"")),_(n,"part","CasinoGamesHeader Searched "+(gr(/*userAgent*/e[38])?"CasinoGamesHeaderMobile":"")),_(t,"class","CasinoGamesContainer"),_(t,"part","CasinoGamesContainer")},m(e,i){d(e,t,i),h(t,n),o.m(n,null),h(t,r),c.m(t,null)},p(e,r){a===(a=i(e))&&o?o.p(e,r):(o.d(1),o=a(e),o&&(o.c(),o.m(n,null))),l===(l=s(e))&&c?c.p(e,r):(c.d(1),c=l(e),c&&(c.c(),c.m(t,null)))},d(e){e&&m(t),o.d(),c.d()}}}
|
|
1367
|
+
// (569:2) {#if hasErrors}
|
|
1368
|
+
function xi(e){let t;function n(e,t){/*filteresPresent*/
|
|
1369
|
+
return e[28]?na:ta}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),d(e,t,n)},p(e,a){r!==(r=n(e))&&(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
|
1370
|
+
// (723:39)
|
|
1371
|
+
function Ci(e){let t,n,r,i,a,o=/*casinomygames*/"true"!==e[14]&&Ei(e);function s(e,t){/*isLoading*/
|
|
1372
|
+
return e[20]&&!/*isLazyLoading*/e[30]?Gi:/*favoriteGamesData*/e[36]?Fi:ki}let l=s(e),c=l(e);return{c(){t=p("div"),o&&o.c(),n=v(),r=p("ul"),c.c(),_(r,"class",i=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),_(r,"part",a=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),_(t,"class","CasinoGamesContainer"),_(t,"part","CasinoGamesContainer")},m(i,a){d(i,t,a),o&&o.m(t,null),h(t,n),h(t,r),c.m(r,null),
|
|
1373
|
+
/*ul_binding_1*/e[56](r)},p(e,u){/*casinomygames*/"true"!==e[14]?o?o.p(e,u):(o=Ei(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),l===(l=s(e))&&c?c.p(e,u):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null))),/*favoriteGamesData*/32&u[1]&&i!==(i=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&_(r,"class",i),/*favoriteGamesData*/32&u[1]&&a!==(a=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&_(r,"part",a)},d(n){n&&m(t),o&&o.d(),c.d(),
|
|
1362
1374
|
/*ul_binding_1*/e[56](null)}}}
|
|
1363
|
-
// (
|
|
1364
|
-
function
|
|
1365
|
-
return e[20]&&!/*isLazyLoading*/e[30]?
|
|
1366
|
-
// (
|
|
1367
|
-
function
|
|
1375
|
+
// (637:8) {#if categoryData}
|
|
1376
|
+
function Ti(e){let t,n,r=/*casinomygames*/"true"!==e[14]&&Ri(e);function i(e,t){/*isLoading*/
|
|
1377
|
+
return e[20]&&!/*isLazyLoading*/e[30]?Wi:/*shownCategoryData*/0!==e[23].length?ji:zi}let a=i(e),o=a(e);return{c(){t=p("div"),r&&r.c(),n=v(),o.c(),_(t,"class","CasinoGamesContainer"),_(t,"part","CasinoGamesContainer")},m(e,i){d(e,t,i),r&&r.m(t,null),h(t,n),o.m(t,null)},p(e,s){/*casinomygames*/"true"!==e[14]?r?r.p(e,s):(r=Ri(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null),a===(a=i(e))&&o?o.p(e,s):(o.d(1),o=a(e),o&&(o.c(),o.m(t,null)))},d(e){e&&m(t),r&&r.d(),o.d()}}}
|
|
1378
|
+
// (725:14) {#if casinomygames !== 'true'}
|
|
1379
|
+
function Ei(e){let t,n,r,i,a,o,s,l,c=/*$_*/e[37]("gamesCategorySection.favorites")+"",u=/*favoriteGamesData*/e[36].items.length+"";return{c(){t=p("div"),n=p("h3"),r=y(c),i=v(),a=p("span"),o=y("("),s=y(u),l=y(")"),_(a,"class","CategoryFavName"),_(n,"class","CategoryName"),_(n,"part","CategoryName"),_(t,"class","CasinoGamesHeader"),_(t,"part","CasinoGamesHeader")},m(c,u){d(c,t,u),h(t,n),h(n,r),h(n,i),h(n,a),h(a,o),h(a,s),h(a,l),
|
|
1368
1380
|
/*h3_binding_1*/e[55](n)},p(e,t){/*$_*/64&t[1]&&c!==(c=/*$_*/e[37]("gamesCategorySection.favorites")+"")&&x(r,c),/*favoriteGamesData*/32&t[1]&&u!==(u=/*favoriteGamesData*/e[36].items.length+"")&&x(s,u)},d(n){n&&m(t)
|
|
1369
1381
|
/*h3_binding_1*/,e[55](null)}}}
|
|
1370
|
-
// (
|
|
1371
|
-
function
|
|
1372
|
-
// (
|
|
1373
|
-
function
|
|
1374
|
-
// (
|
|
1375
|
-
function
|
|
1376
|
-
// (
|
|
1377
|
-
function
|
|
1378
|
-
// (
|
|
1379
|
-
function
|
|
1380
|
-
// (
|
|
1381
|
-
function
|
|
1382
|
-
// (
|
|
1383
|
-
function
|
|
1384
|
-
// (
|
|
1385
|
-
function
|
|
1386
|
-
// (
|
|
1382
|
+
// (828:18) {:else}
|
|
1383
|
+
function ki(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.waiting")+"";return{c(){t=p("p"),n=y(r)},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.waiting")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1384
|
+
// (738:18) {#if favoriteGamesData}
|
|
1385
|
+
function Fi(e){let t,n=/*favoriteGamesData*/e[36].items,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ni(vi(e,n,t));let i=null;return n.length||(i=Mi(e)),{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b(),i&&i.c()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);d(e,t,n),i&&i.m(e,n)},p(e,a){if(/*session, userid, lang, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/16378&a[0]|/*favoriteGamesData, addGameTag, showFavGamesCategory, intersectingIndexes, visibilityconnect, userAgent, $_*/508&a[1]){let o;for(n=/*favoriteGamesData*/e[36].items,o=0;o<n.length;o+=1){const i=vi(e,n,o);r[o]?r[o].p(i,a):(r[o]=Ni(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length,!n.length&&i?i.p(e,a):n.length?i&&(i.d(1),i=null):(i=Mi(e),i.c(),i.m(t.parentNode,t))}},d(e){f(r,e),e&&m(t),i&&i.d(e)}}}
|
|
1386
|
+
// (735:16) {#if isLoading && !isLazyLoading}
|
|
1387
|
+
function Gi(t){let n;return{c(){n=p("div"),_(n,"class","lds-dual-ring"),_(n,"part","lds-dual-ring")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1388
|
+
// (809:20) {:else}
|
|
1389
|
+
function Mi(e){let t,n,r,i,a,o,s,l,c,u,f,b,w,S,C=/*$_*/e[37]("gamesCategorySection.noFavoritesTitle")+"";let T=function(e,t){return gr(/*userAgent*/e[38])?$i:Li}(e),E=T(e);return{c(){t=p("p"),n=g("svg"),r=g("rect"),i=g("rect"),a=g("circle"),o=g("path"),s=g("path"),l=g("path"),c=g("path"),u=v(),f=p("span"),b=y(C),w=v(),E.c(),S=v(),_(r,"x","1"),_(r,"y","18.053"),_(r,"width","90.263"),_(r,"height","90.263"),_(r,"rx","12"),_(r,"stroke","var(--emfe-w-color-gray-150, #828282)"),_(r,"stroke-width","1.5"),_(i,"x","106.737"),_(i,"y","56.737"),_(i,"width","90.263"),_(i,"height","90.263"),_(i,"rx","12"),_(i,"stroke","var(--emfe-w-color-gray-150, #828282)"),_(i,"stroke-width","1.5"),_(a,"cx","70.5"),_(a,"cy","32.237"),_(a,"r","31.487"),_(a,"stroke","var(--emfe-w-color-primary, #D0046C)"),_(a,"stroke-width","1.5"),_(a,"stroke-dasharray","5 0"),_(o,"d","M153.909 81.631a.747.747 0 0 0-.166-1.046l-5.466-3.954a.751.751 0 0 0-.882 1.214l4.859 3.514-3.529 4.858a.75.75 0 1 0 1.215.878l3.969-5.464zm-.725-1.18c-.501.081-.999.159-1.493.233l.223 1.482c.498-.075 1-.153 1.506-.234l-.236-1.48zm-4.457.654c-1.006.133-1.996.253-2.97.36l.162 1.49c.985-.109 1.986-.23 3.002-.364l-.194-1.486zm-5.944.65c-1.01.085-2.002.155-2.978.209l.081 1.496c.991-.054 1.997-.125 3.021-.212l-.124-1.493zm-5.955.326c-1.009.022-2 .026-2.974.01l-.026 1.5c.994.015 2.003.011 3.031-.012l-.031-1.498zm-5.953-.099a61.03 61.03 0 0 1-2.961-.245l-.164 1.49c.995.107 2.006.19 3.035.251l.09-1.496zm-5.898-.641a49.97 49.97 0 0 1-2.907-.56l-.332 1.462c.983.22 1.98.412 2.995.577l.244-1.48zm-5.773-1.298a44.435 44.435 0 0 1-2.807-.92l-.518 1.407c.953.348 1.92.665 2.901.951l.424-1.438zm-5.546-2.027A44.285 44.285 0 0 1 111 76.73l-.702 1.326a45.9 45.9 0 0 0 2.748 1.331l.612-1.37zm-5.23-2.75a49.031 49.031 0 0 1-2.472-1.616l-.861 1.229a50.27 50.27 0 0 0 2.548 1.666l.785-1.278zm-4.851-3.378c-.767-.601-1.529-1.231-2.289-1.891l-.987 1.131c.778.676 1.56 1.322 2.348 1.94l.928-1.18zm-4.486-3.889a74.64 74.64 0 0 1-2.11-2.088l-1.078 1.044a76.17 76.17 0 0 0 2.152 2.13L99.091 68zm-4.143-4.259a97.17 97.17 0 0 1-1.965-2.239l-1.145.972a98.31 98.31 0 0 0 1.996 2.274l1.114-1.007zm-3.867-4.536a127.63 127.63 0 0 1-1.845-2.346l-1.192.914c.624.812 1.246 1.603 1.867 2.373l1.17-.94zm-3.64-4.733c-.58-.788-1.163-1.596-1.749-2.423l-1.225.867c.59.834 1.179 1.649 1.764 2.445l1.21-.89z"),_(o,"fill","var(--emfe-w-color-gray-150, #828282)"),_(s,"d","M78 43h11v13H78V43z"),_(s,"stroke","var(--emfe-w-color-primary, #D0046C)"),_(l,"d","m180 65 2.021 6.219h6.539l-5.291 3.843 2.021 6.22-5.29-3.844-5.29 3.843 2.021-6.219-5.291-3.843h6.539L180 65z"),_(l,"fill","var(--emfe-w-color-primary, #D0046C)"),_(l,"stroke","var(--emfe-w-color-primary, #D0046C)"),_(l,"stroke-linecap","round"),_(l,"stroke-linejoin","round"),_(c,"d","m74 27 2.02 6.219h6.54l-5.29 3.843 2.02 6.22L74 39.437l-5.29 3.843 2.02-6.219-5.29-3.843h6.54L74 27z"),_(c,"stroke","var(--emfe-w-color-primary, #D0046C)"),_(c,"stroke-width","1.5"),_(c,"stroke-linecap","round"),_(c,"stroke-linejoin","round"),_(n,"width","198"),_(n,"height","148"),_(n,"viewBox","0 0 198 148"),_(n,"fill","none"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(f,"class","NoFavoriteText NoFavoriteTextHighlight"),_(f,"part","NoFavoriteText NoFavoriteTextHighlight"),_(t,"class","NoFavoriteGames "+(gr(/*userAgent*/e[38])?"NoFavoriteGamesMobile":"")),_(t,"part","NoFavoriteGames "+(gr(/*userAgent*/e[38])?"NoFavoriteGamesMobile":""))},m(e,m){d(e,t,m),h(t,n),h(n,r),h(n,i),h(n,a),h(n,o),h(n,s),h(n,l),h(n,c),h(t,u),h(t,f),h(f,b),h(t,w),E.m(t,null),h(t,S)},p(e,t){/*$_*/64&t[1]&&C!==(C=/*$_*/e[37]("gamesCategorySection.noFavoritesTitle")+"")&&x(b,C),E.p(e,t)},d(e){e&&m(t),E.d()}}}
|
|
1390
|
+
// (823:24) {:else}
|
|
1391
|
+
function Li(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noFavorites")+"";return{c(){t=p("span"),n=y(r),_(t,"class","NoFavoriteText"),_(t,"part","NoFavoriteText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noFavorites")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1392
|
+
// (821:24) {#if isMobile(userAgent)}
|
|
1393
|
+
function $i(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noFavoritesMobile")+"";return{c(){t=p("span"),n=y(r),_(t,"class","NoFavoriteText"),_(t,"part","NoFavoriteText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noFavoritesMobile")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1394
|
+
// (740:22) {#if gameprops.gameModel}
|
|
1395
|
+
function Ii(e){let t,n=/*gameprops*/e[82].gameModel.isFavorite&&Di(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,r){/*gameprops*/e[82].gameModel.isFavorite?n?n.p(e,r):(n=Di(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1396
|
+
// (741:24) {#if gameprops.gameModel.isFavorite}
|
|
1397
|
+
function Di(e){let t,n=
|
|
1398
|
+
// (742:26) {#if intersecting || nativeLoading}
|
|
1387
1399
|
function(e){let t,n,r;function i(e,r){/*favoriteGamesData*/
|
|
1388
|
-
return 32&r[1]&&(n=null),null==t&&(t=!!
|
|
1389
|
-
// (
|
|
1390
|
-
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function
|
|
1391
|
-
// (
|
|
1392
|
-
function
|
|
1393
|
-
// (
|
|
1394
|
-
function
|
|
1395
|
-
// (
|
|
1396
|
-
function
|
|
1397
|
-
// (
|
|
1398
|
-
function
|
|
1399
|
-
return e[24]
|
|
1400
|
+
return 32&r[1]&&(n=null),null==t&&(t=!!gr(/*userAgent*/e[38])),t?Oi:(null==n&&(n=!!/*gameprops*/e[82].gameModel.platform.includes("PC")),n?Pi:void 0)}let a=i(e,[-1,-1,-1]),o=a&&a(e);return{c(){o&&o.c(),r=b()},m(e,t){o&&o.m(e,t),d(e,r,t)},p(e,t){a===(a=i(e,t))&&o?o.p(e,t):(o&&o.d(1),o=a&&a(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o&&o.d(e),e&&m(r)}}}
|
|
1401
|
+
// (775:82)
|
|
1402
|
+
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function Pi(e){let t,n,r,i,a,o,s,l,c,u,h,f,g,y;return{c(){t=p("casino-game-thumbnail"),S(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"session",/*session*/e[4]),S(t,"userid",/*userid*/e[5]),S(t,"lang",/*lang*/e[3]),S(t,"favorites",/*favorites*/e[6]),S(t,"gamethumbnail",i=/*gameprops*/e[82].gameModel.thumbnail),S(t,"gamename",a=/*gameprops*/e[82].gameModel.name),S(t,"gamevendor",o=/*gameprops*/e[82].gameModel.vendor.name),S(t,"gameisnew",s=/*gameprops*/e[82].gameModel.isNew),S(t,"gametag",l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),S(t,"gameid",u=/*gameprops*/e[82].gameModel.id),S(t,"gamefunmode",h=/*gameprops*/e[82].gameModel.hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[82].gameModel.isFavorite),S(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),S(t,"connectlive",g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect"),S(t,"visibilityconnect",/*visibilityconnect*/e[35]),S(t,"currency",/*currency*/e[9]),S(t,"livelobbyendpoint",y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:""),S(t,"clientstyling",/*clientstyling*/e[7]),S(t,"clientstylingurl",/*clientstylingurl*/e[8]),S(t,"endpoint",/*endpoint*/e[1]),S(t,"livecasino",/*livecasino*/e[10]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){d(e,t,n)},p(e,d){/*favoriteGamesData*/32&d[1]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"class",n),/*favoriteGamesData*/32&d[1]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"part",r),/*session*/16&d[0]&&S(t,"session",/*session*/e[4]),/*userid*/32&d[0]&&S(t,"userid",/*userid*/e[5]),/*lang*/8&d[0]&&S(t,"lang",/*lang*/e[3]),/*favorites*/64&d[0]&&S(t,"favorites",/*favorites*/e[6]),/*favoriteGamesData*/32&d[1]&&i!==(i=/*gameprops*/e[82].gameModel.thumbnail)&&S(t,"gamethumbnail",i),/*favoriteGamesData*/32&d[1]&&a!==(a=/*gameprops*/e[82].gameModel.name)&&S(t,"gamename",a),/*favoriteGamesData*/32&d[1]&&o!==(o=/*gameprops*/e[82].gameModel.vendor.name)&&S(t,"gamevendor",o),/*favoriteGamesData*/32&d[1]&&s!==(s=/*gameprops*/e[82].gameModel.isNew)&&S(t,"gameisnew",s),/*favoriteGamesData*/32&d[1]&&l!==(l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags))&&S(t,"gametag",l),/*favoriteGamesData*/32&d[1]&&c!==(c=/*gameprops*/e[82].cellSize)&&S(t,"gamecellsize",c),/*favoriteGamesData*/32&d[1]&&u!==(u=/*gameprops*/e[82].gameModel.id)&&S(t,"gameid",u),/*favoriteGamesData*/32&d[1]&&h!==(h=/*gameprops*/e[82].gameModel.hasFunMode)&&S(t,"gamefunmode",h),/*favoriteGamesData*/32&d[1]&&f!==(f=/*gameprops*/e[82].gameModel.isFavorite)&&S(t,"gamefavorite",f),/*showFavGamesCategory*/4&d[1]&&S(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),/*intersectingIndexes, favoriteGamesData*/40&d[1]&&g!==(g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect")&&S(t,"connectlive",g),/*visibilityconnect*/16&d[1]&&S(t,"visibilityconnect",/*visibilityconnect*/e[35]),/*currency*/512&d[0]&&S(t,"currency",/*currency*/e[9]),/*favoriteGamesData*/32&d[1]&&y!==(y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:"")&&S(t,"livelobbyendpoint",y),/*clientstyling*/128&d[0]&&S(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&d[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&d[0]&&S(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&d[0]&&S(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&d[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&d[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&d[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},d(e){e&&m(t)}}}
|
|
1403
|
+
// (743:28) {#if isMobile(userAgent)}
|
|
1404
|
+
function Oi(e){let t,n=/*gameprops*/e[82].gameModel.platform.includes("iPad")||/*gameprops*/e[82].gameModel.platform.includes("iPhone")||/*gameprops*/e[82].gameModel.platform.includes("Android"),r=n&&Ai(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),d(e,t,n)},p(e,i){/*favoriteGamesData*/32&i[1]&&(n=/*gameprops*/e[82].gameModel.platform.includes("iPad")||/*gameprops*/e[82].gameModel.platform.includes("iPhone")||/*gameprops*/e[82].gameModel.platform.includes("Android")),n?r?r.p(e,i):(r=Ai(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
|
1405
|
+
// (744:30) {#if (gameprops.gameModel.platform.includes("iPad") || gameprops.gameModel.platform.includes("iPhone") || gameprops.gameModel.platform.includes("Android"))}
|
|
1406
|
+
function Ai(e){let t,n,r,i,a,o,s,l,c,u,h,f,g,y;return{c(){t=p("casino-game-thumbnail"),S(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"session",/*session*/e[4]),S(t,"userid",/*userid*/e[5]),S(t,"lang",/*lang*/e[3]),S(t,"favorites",/*favorites*/e[6]),S(t,"gamethumbnail",i=/*gameprops*/e[82].gameModel.thumbnail),S(t,"gamename",a=/*gameprops*/e[82].gameModel.name),S(t,"gamevendor",o=/*gameprops*/e[82].gameModel.vendor.name),S(t,"gameisnew",s=/*gameprops*/e[82].gameModel.isNew),S(t,"gametag",l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),S(t,"gameid",u=/*gameprops*/e[82].gameModel.id),S(t,"gamefunmode",h=/*gameprops*/e[82].gameModel.hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[82].gameModel.isFavorite),S(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),S(t,"connectlive",g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect"),S(t,"visibilityconnect",/*visibilityconnect*/e[35]),S(t,"currency",/*currency*/e[9]),S(t,"livelobbyendpoint",y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:""),S(t,"clientstyling",/*clientstyling*/e[7]),S(t,"clientstylingurl",/*clientstylingurl*/e[8]),S(t,"endpoint",/*endpoint*/e[1]),S(t,"livecasino",/*livecasino*/e[10]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){d(e,t,n)},p(e,d){/*favoriteGamesData*/32&d[1]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"class",n),/*favoriteGamesData*/32&d[1]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"part",r),/*session*/16&d[0]&&S(t,"session",/*session*/e[4]),/*userid*/32&d[0]&&S(t,"userid",/*userid*/e[5]),/*lang*/8&d[0]&&S(t,"lang",/*lang*/e[3]),/*favorites*/64&d[0]&&S(t,"favorites",/*favorites*/e[6]),/*favoriteGamesData*/32&d[1]&&i!==(i=/*gameprops*/e[82].gameModel.thumbnail)&&S(t,"gamethumbnail",i),/*favoriteGamesData*/32&d[1]&&a!==(a=/*gameprops*/e[82].gameModel.name)&&S(t,"gamename",a),/*favoriteGamesData*/32&d[1]&&o!==(o=/*gameprops*/e[82].gameModel.vendor.name)&&S(t,"gamevendor",o),/*favoriteGamesData*/32&d[1]&&s!==(s=/*gameprops*/e[82].gameModel.isNew)&&S(t,"gameisnew",s),/*favoriteGamesData*/32&d[1]&&l!==(l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags))&&S(t,"gametag",l),/*favoriteGamesData*/32&d[1]&&c!==(c=/*gameprops*/e[82].cellSize)&&S(t,"gamecellsize",c),/*favoriteGamesData*/32&d[1]&&u!==(u=/*gameprops*/e[82].gameModel.id)&&S(t,"gameid",u),/*favoriteGamesData*/32&d[1]&&h!==(h=/*gameprops*/e[82].gameModel.hasFunMode)&&S(t,"gamefunmode",h),/*favoriteGamesData*/32&d[1]&&f!==(f=/*gameprops*/e[82].gameModel.isFavorite)&&S(t,"gamefavorite",f),/*showFavGamesCategory*/4&d[1]&&S(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),/*intersectingIndexes, favoriteGamesData*/40&d[1]&&g!==(g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect")&&S(t,"connectlive",g),/*visibilityconnect*/16&d[1]&&S(t,"visibilityconnect",/*visibilityconnect*/e[35]),/*currency*/512&d[0]&&S(t,"currency",/*currency*/e[9]),/*favoriteGamesData*/32&d[1]&&y!==(y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:"")&&S(t,"livelobbyendpoint",y),/*clientstyling*/128&d[0]&&S(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&d[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&d[0]&&S(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&d[0]&&S(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&d[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&d[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&d[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},d(e){e&&m(t)}}}
|
|
1407
|
+
// (739:20) {#each favoriteGamesData.items as gameprops, index}
|
|
1408
|
+
function Ni(e){let t,n=/*gameprops*/e[82].gameModel&&Ii(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,r){/*gameprops*/e[82].gameModel?n?n.p(e,r):(n=Ii(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1409
|
+
// (639:12) {#if casinomygames !== 'true'}
|
|
1410
|
+
function Ri(e){let t,n,r,i,a=/*categoryData*/e[22].name+"";function o(e,t){/*showLoadCategory*/
|
|
1411
|
+
return e[24]?Bi:Hi}let s=o(e),l=s(e);return{c(){t=p("div"),n=p("h3"),r=y(a),i=v(),l.c(),_(n,"class","CategoryName"),_(n,"part","CategoryName"),_(t,"class","CasinoGamesHeader"),_(t,"part","CasinoGamesHeader")},m(a,o){d(a,t,o),h(t,n),h(n,r),
|
|
1400
1412
|
/*h3_binding*/e[51](n),h(t,i),l.m(t,null)},p(e,n){/*categoryData*/4194304&n[0]&&a!==(a=/*categoryData*/e[22].name+"")&&x(r,a),s===(s=o(e))&&l?l.p(e,n):(l.d(1),l=s(e),l&&(l.c(),l.m(t,null)))},d(n){n&&m(t)
|
|
1401
1413
|
/*h3_binding*/,e[51](null),l.d()}}}
|
|
1402
|
-
// (
|
|
1403
|
-
function
|
|
1404
|
-
// (
|
|
1405
|
-
function
|
|
1406
|
-
// (
|
|
1407
|
-
function
|
|
1408
|
-
// (
|
|
1409
|
-
function
|
|
1410
|
-
// (
|
|
1411
|
-
function
|
|
1412
|
-
|
|
1414
|
+
// (651:16) {:else}
|
|
1415
|
+
function Hi(e){let t,n,r,i=/*addfilterselector*/"true"==e[15]&&Ui(e),a=/*addsortingselector*/"true"==e[16]&&Yi(e);return{c(){t=p("div"),i&&i.c(),n=v(),a&&a.c(),_(t,"class",r=/*addfilterselector*/"true"==e[15]&&/*addsortingselector*/"true"==e[16]?"CategoryFilterContainer":"")},m(e,r){d(e,t,r),i&&i.m(t,null),h(t,n),a&&a.m(t,null)},p(e,o){/*addfilterselector*/"true"==e[15]?i?i.p(e,o):(i=Ui(e),i.c(),i.m(t,n)):i&&(i.d(1),i=null),/*addsortingselector*/"true"==e[16]?a?a.p(e,o):(a=Yi(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),/*addfilterselector, addsortingselector*/98304&o[0]&&r!==(r=/*addfilterselector*/"true"==e[15]&&/*addsortingselector*/"true"==e[16]?"CategoryFilterContainer":"")&&_(t,"class",r)},d(e){e&&m(t),i&&i.d(),a&&a.d()}}}
|
|
1416
|
+
// (644:16) {#if showLoadCategory}
|
|
1417
|
+
function Bi(e){let t,n,r,i,a,o,s,l,c=/*$_*/e[37]("gamesCategorySection.viewAll")+"",u=/*categoryData*/e[22].games.total+"";return{c(){t=p("a"),n=p("span"),r=y(c),i=y(" ("),a=y(u),o=y(")"),_(n,"class","CategoryLoadMore"),_(n,"part","CategoryLoadMore"),_(t,"class","CategoryNameLink"),_(t,"part","CategoryNameLink")},m(c,u){d(c,t,u),h(t,n),h(n,r),h(n,i),h(n,a),h(n,o),s||(l=w(t,"click",/*click_handler*/e[52]),s=!0)},p(e,t){/*$_*/64&t[1]&&c!==(c=/*$_*/e[37]("gamesCategorySection.viewAll")+"")&&x(r,c),/*categoryData*/4194304&t[0]&&u!==(u=/*categoryData*/e[22].games.total+"")&&x(a,u)},d(e){e&&m(t),s=!1,l()}}}
|
|
1418
|
+
// (653:22) {#if addfilterselector == "true"}
|
|
1419
|
+
function Ui(e){let t;return{c(){t=p("casino-filter"),S(t,"clientstylingurl",/*clientstylingurl*/e[8]),S(t,"clientstyling",/*clientstyling*/e[7]),S(t,"endpoint",/*endpoint*/e[1]),S(t,"datasource",/*datasource*/e[2]),S(t,"lang",/*lang*/e[3]),S(t,"categoryid",/*categoryid*/e[0]),S(t,"addfilterselector",/*addfilterselector*/e[15]),S(t,"addsortingselector",/*addsortingselector*/e[16]),S(t,"filterbylogo",/*filterbylogo*/e[17])},m(e,n){d(e,t,n)},p(e,n){/*clientstylingurl*/256&n[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*clientstyling*/128&n[0]&&S(t,"clientstyling",/*clientstyling*/e[7]),/*endpoint*/2&n[0]&&S(t,"endpoint",/*endpoint*/e[1]),/*datasource*/4&n[0]&&S(t,"datasource",/*datasource*/e[2]),/*lang*/8&n[0]&&S(t,"lang",/*lang*/e[3]),/*categoryid*/1&n[0]&&S(t,"categoryid",/*categoryid*/e[0]),/*addfilterselector*/32768&n[0]&&S(t,"addfilterselector",/*addfilterselector*/e[15]),/*addsortingselector*/65536&n[0]&&S(t,"addsortingselector",/*addsortingselector*/e[16]),/*filterbylogo*/131072&n[0]&&S(t,"filterbylogo",/*filterbylogo*/e[17])},d(e){e&&m(t)}}}
|
|
1420
|
+
// (666:22) {#if addsortingselector == "true"}
|
|
1421
|
+
function Yi(e){let t;return{c(){t=p("casino-sort"),S(t,"clientstylingurl",/*clientstylingurl*/e[8]),S(t,"clientstyling",/*clientstyling*/e[7]),S(t,"lang",/*lang*/e[3]),S(t,"categoryid",/*categoryid*/e[0]),S(t,"addsortingselector",/*addsortingselector*/e[16])},m(e,n){d(e,t,n)},p(e,n){/*clientstylingurl*/256&n[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*clientstyling*/128&n[0]&&S(t,"clientstyling",/*clientstyling*/e[7]),/*lang*/8&n[0]&&S(t,"lang",/*lang*/e[3]),/*categoryid*/1&n[0]&&S(t,"categoryid",/*categoryid*/e[0]),/*addsortingselector*/65536&n[0]&&S(t,"addsortingselector",/*addsortingselector*/e[16])},d(e){e&&m(t)}}}
|
|
1422
|
+
// (718:14) {:else}
|
|
1423
|
+
function zi(t){let n;return{c(){n=p("p"),n.textContent="You don't have any games in this category.",_(n,"class","NoSearchResults"),_(n,"part","NoSearchResults")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1424
|
+
// (682:14) {#if shownCategoryData.length !== 0}
|
|
1425
|
+
function ji(e){let t,n,r,i=/*shownCategoryData*/e[23],a=[];for(let t=0;t<i.length;t+=1)a[t]=Vi(bi(e,i,t));return{c(){t=p("ul");for(let e=0;e<a.length;e+=1)a[e].c();_(t,"class",n=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap"),_(t,"part",r=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(n,r){d(n,t,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,null);
|
|
1426
|
+
/*ul_binding*/e[54](t)},p(e,o){if(/*session, userid, lang, shownCategoryData, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile, thumbnailContainer*/8929274&o[0]|/*addGameTag, intersectingIndexes, visibilityconnect*/280&o[1]){let n;for(i=/*shownCategoryData*/e[23],n=0;n<i.length;n+=1){const r=bi(e,i,n);a[n]?a[n].p(r,o):(a[n]=Vi(r),a[n].c(),a[n].m(t,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}/*favoriteGamesData, showFavGamesCategory*/36&o[1]&&n!==(n=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&_(t,"class",n),/*favoriteGamesData, showFavGamesCategory*/36&o[1]&&r!==(r=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&_(t,"part",r)},d(n){n&&m(t),f(a,n),
|
|
1413
1427
|
/*ul_binding*/e[54](null)}}}
|
|
1414
|
-
// (
|
|
1415
|
-
function
|
|
1416
|
-
// (
|
|
1417
|
-
// (
|
|
1418
|
-
function
|
|
1419
|
-
// (
|
|
1420
|
-
function
|
|
1421
|
-
// (
|
|
1422
|
-
function
|
|
1423
|
-
// (
|
|
1424
|
-
function
|
|
1425
|
-
// (
|
|
1426
|
-
function
|
|
1427
|
-
// (
|
|
1428
|
-
function
|
|
1429
|
-
// (
|
|
1430
|
-
function
|
|
1431
|
-
// (
|
|
1432
|
-
function
|
|
1433
|
-
// (
|
|
1434
|
-
function
|
|
1435
|
-
// (
|
|
1436
|
-
function
|
|
1437
|
-
return e[21]?
|
|
1428
|
+
// (679:12) {#if isLoading && !isLazyLoading}
|
|
1429
|
+
function Wi(t){let n;return{c(){n=p("div"),_(n,"class","lds-dual-ring"),_(n,"part","lds-dual-ring")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1430
|
+
// (685:18) {#if intersecting || nativeLoading}
|
|
1431
|
+
// (684:18) {#each shownCategoryData as gameprops, index}
|
|
1432
|
+
function Vi(e){let t,n=function(e){let t,n,r,i,a,o,s,l,c,u,h,f,g,y,v=/*index*/e[84];const b=()=>/*casino_game_thumbnail_binding*/e[53](t,v),w=()=>/*casino_game_thumbnail_binding*/e[53](null,v);return{c(){t=p("casino-game-thumbnail"),S(t,"session",/*session*/e[4]),S(t,"userid",/*userid*/e[5]),S(t,"lang",/*lang*/e[3]),S(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"favorites",/*favorites*/e[6]),S(t,"gamethumbnail",i=/*gameprops*/e[82].thumbnail),S(t,"gamename",a=/*gameprops*/e[82].name),S(t,"gamevendor",o=/*gameprops*/e[82].vendor.name),S(t,"gameisnew",s=/*gameprops*/e[82].isNew),S(t,"gametag",l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),S(t,"gameid",u=/*gameprops*/e[82].id),S(t,"gamefunmode",h=/*gameprops*/e[82].hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[82].isFavorite),S(t,"connectlive",g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect"),S(t,"visibilityconnect",/*visibilityconnect*/e[35]),S(t,"currency",/*currency*/e[9]),S(t,"livelobbyendpoint",y=/*gameprops*/e[82].details?/*gameprops*/e[82].href:""),S(t,"clientstyling",/*clientstyling*/e[7]),S(t,"clientstylingurl",/*clientstylingurl*/e[8]),S(t,"endpoint",/*endpoint*/e[1]),S(t,"livecasino",/*livecasino*/e[10]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){d(e,t,n),b()},p(d,m){e=d,/*session*/16&m[0]&&S(t,"session",/*session*/e[4]),/*userid*/32&m[0]&&S(t,"userid",/*userid*/e[5]),/*lang*/8&m[0]&&S(t,"lang",/*lang*/e[3]),/*shownCategoryData*/8388608&m[0]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"class",n),/*shownCategoryData*/8388608&m[0]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"part",r),/*favorites*/64&m[0]&&S(t,"favorites",/*favorites*/e[6]),/*shownCategoryData*/8388608&m[0]&&i!==(i=/*gameprops*/e[82].thumbnail)&&S(t,"gamethumbnail",i),/*shownCategoryData*/8388608&m[0]&&a!==(a=/*gameprops*/e[82].name)&&S(t,"gamename",a),/*shownCategoryData*/8388608&m[0]&&o!==(o=/*gameprops*/e[82].vendor.name)&&S(t,"gamevendor",o),/*shownCategoryData*/8388608&m[0]&&s!==(s=/*gameprops*/e[82].isNew)&&S(t,"gameisnew",s),/*shownCategoryData*/8388608&m[0]&&l!==(l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags))&&S(t,"gametag",l),/*shownCategoryData*/8388608&m[0]&&c!==(c=/*gameprops*/e[82].cellSize)&&S(t,"gamecellsize",c),/*shownCategoryData*/8388608&m[0]&&u!==(u=/*gameprops*/e[82].id)&&S(t,"gameid",u),/*shownCategoryData*/8388608&m[0]&&h!==(h=/*gameprops*/e[82].hasFunMode)&&S(t,"gamefunmode",h),/*shownCategoryData*/8388608&m[0]&&f!==(f=/*gameprops*/e[82].isFavorite)&&S(t,"gamefavorite",f),/*shownCategoryData*/8388608&m[0]|/*intersectingIndexes*/8&m[1]&&g!==(g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect")&&S(t,"connectlive",g),/*visibilityconnect*/16&m[1]&&S(t,"visibilityconnect",/*visibilityconnect*/e[35]),/*currency*/512&m[0]&&S(t,"currency",/*currency*/e[9]),/*shownCategoryData*/8388608&m[0]&&y!==(y=/*gameprops*/e[82].details?/*gameprops*/e[82].href:"")&&S(t,"livelobbyendpoint",y),/*clientstyling*/128&m[0]&&S(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&m[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&m[0]&&S(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&m[0]&&S(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&m[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&m[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&m[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13]),v!==/*index*/e[84]&&(w(),v=/*index*/e[84],b())},d(e){e&&m(t),w()}}}(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1433
|
+
// (589:12) {:else}
|
|
1434
|
+
function Zi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.searchedItems")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText"),_(t,"part","StatusText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.searchedItems")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1435
|
+
// (585:12) {#if !shownCategoryData.length}
|
|
1436
|
+
function Ki(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noResults")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText"),_(t,"part","StatusText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noResults")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1437
|
+
// (580:10) {#if recentSearched}
|
|
1438
|
+
function Xi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.recentSearchedItems")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText"),_(t,"part","StatusText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.recentSearchedItems")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1439
|
+
// (631:8) {:else}
|
|
1440
|
+
function Ji(t){let n;return{c(){n=p("p"),n.textContent="Waiting",_(n,"class","SearchWaiting"),_(n,"part","SearchWaiting")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1441
|
+
// (596:8) {#if shownCategoryData}
|
|
1442
|
+
function qi(e){let t,n,r=!/*showItems*/e[29]&&Qi(e),i=/*shownCategoryData*/e[23],a=[];for(let t=0;t<i.length;t+=1)a[t]=ea(wi(e,i,t));return{c(){r&&r.c(),t=v(),n=p("ul");for(let e=0;e<a.length;e+=1)a[e].c();_(n,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap"),_(n,"part","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,i){r&&r.m(e,i),d(e,t,i),d(e,n,i);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(e,o){if(/*showItems*/e[29]?r&&(r.d(1),r=null):r?r.p(e,o):(r=Qi(e),r.c(),r.m(t.parentNode,t)),/*shownCategoryData, session, userid, lang, searchItem, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/142622714&o[0]|/*addGameTag*/256&o[1]){let t;for(i=/*shownCategoryData*/e[23],t=0;t<i.length;t+=1){const r=wi(e,i,t);a[t]?a[t].p(r,o):(a[t]=ea(r),a[t].c(),a[t].m(n,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=i.length}},d(e){r&&r.d(e),e&&m(t),e&&m(n),f(a,e)}}}
|
|
1443
|
+
// (597:10) {#if !showItems}
|
|
1444
|
+
function Qi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noRecentSearch")+"";return{c(){t=p("p"),n=y(r),_(t,"class","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(gr(/*userAgent*/e[38])?"NoRecentSearchesMobile":"")),_(t,"part","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(gr(/*userAgent*/e[38])?"NoRecentSearchesMobile":""))},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noRecentSearch")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1445
|
+
// (601:12) {#each shownCategoryData as gameprops, index}
|
|
1446
|
+
function ea(e){let t,n,r,i,a,o,s,l,c,u,h,f,g;return{c(){t=p("casino-game-thumbnail"),S(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),S(t,"session",/*session*/e[4]),S(t,"userid",/*userid*/e[5]),S(t,"lang",/*lang*/e[3]),S(t,"searchitem",/*searchItem*/e[27]),S(t,"favorites",/*favorites*/e[6]),S(t,"gamethumbnail",i=/*gameprops*/e[82].thumbnail),S(t,"gamename",a=/*gameprops*/e[82].name),S(t,"gamevendor",o=/*gameprops*/e[82].vendor.name),S(t,"gameisnew",s=/*gameprops*/e[82].isNew),S(t,"gametag",l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),S(t,"gameid",u=/*gameprops*/e[82].id),S(t,"gamefunmode",h=/*gameprops*/e[82].hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[82].isFavorite),S(t,"currency",/*currency*/e[9]),S(t,"livelobbyendpoint",g=/*gameprops*/e[82].details?/*gameprops*/e[82].href:""),S(t,"clientstyling",/*clientstyling*/e[7]),S(t,"clientstylingurl",/*clientstylingurl*/e[8]),S(t,"endpoint",/*endpoint*/e[1]),S(t,"livecasino",/*livecasino*/e[10]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){d(e,t,n)},p(e,d){/*shownCategoryData*/8388608&d[0]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"class",n),/*shownCategoryData*/8388608&d[0]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&S(t,"part",r),/*session*/16&d[0]&&S(t,"session",/*session*/e[4]),/*userid*/32&d[0]&&S(t,"userid",/*userid*/e[5]),/*lang*/8&d[0]&&S(t,"lang",/*lang*/e[3]),/*searchItem*/134217728&d[0]&&S(t,"searchitem",/*searchItem*/e[27]),/*favorites*/64&d[0]&&S(t,"favorites",/*favorites*/e[6]),/*shownCategoryData*/8388608&d[0]&&i!==(i=/*gameprops*/e[82].thumbnail)&&S(t,"gamethumbnail",i),/*shownCategoryData*/8388608&d[0]&&a!==(a=/*gameprops*/e[82].name)&&S(t,"gamename",a),/*shownCategoryData*/8388608&d[0]&&o!==(o=/*gameprops*/e[82].vendor.name)&&S(t,"gamevendor",o),/*shownCategoryData*/8388608&d[0]&&s!==(s=/*gameprops*/e[82].isNew)&&S(t,"gameisnew",s),/*shownCategoryData*/8388608&d[0]&&l!==(l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags))&&S(t,"gametag",l),/*shownCategoryData*/8388608&d[0]&&c!==(c=/*gameprops*/e[82].cellSize)&&S(t,"gamecellsize",c),/*shownCategoryData*/8388608&d[0]&&u!==(u=/*gameprops*/e[82].id)&&S(t,"gameid",u),/*shownCategoryData*/8388608&d[0]&&h!==(h=/*gameprops*/e[82].hasFunMode)&&S(t,"gamefunmode",h),/*shownCategoryData*/8388608&d[0]&&f!==(f=/*gameprops*/e[82].isFavorite)&&S(t,"gamefavorite",f),/*currency*/512&d[0]&&S(t,"currency",/*currency*/e[9]),/*shownCategoryData*/8388608&d[0]&&g!==(g=/*gameprops*/e[82].details?/*gameprops*/e[82].href:"")&&S(t,"livelobbyendpoint",g),/*clientstyling*/128&d[0]&&S(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&d[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&d[0]&&S(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&d[0]&&S(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&d[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&d[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&d[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},d(e){e&&m(t)}}}
|
|
1447
|
+
// (573:4) {:else}
|
|
1448
|
+
function ta(e){let t;return{c(){t=p("p"),t.textContent="500 Error - Internal Server Error.",_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,n){d(e,t,n)},d(e){e&&m(t)}}}
|
|
1449
|
+
// (571:4) {#if filteresPresent}
|
|
1450
|
+
function na(e){let t;return{c(){t=p("p"),t.textContent="404 Error - No result found.",_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,n){d(e,t,n)},d(e){e&&m(t)}}}function ra(t){let n;function r(e,t){/*hasErrors*/
|
|
1451
|
+
return e[21]?xi:/*searched*/e[25]?Si:_i}let i=r(t),a=i(t);return{c(){n=p("div"),a.c(),this.c=e,_(n,"class","CasinoGamesCategorySectionContainer"),_(n,"part","CasinoGamesCategorySectionContainer")},m(e,r){d(e,n,r),a.m(n,null),
|
|
1438
1452
|
/*div_binding*/t[57](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a.d(),
|
|
1439
|
-
/*div_binding*/t[57](null)}}}!customElements.get("casino-
|
|
1453
|
+
/*div_binding*/t[57](null)}}}!customElements.get("casino-sort")&&customElements.define("casino-sort",class extends j{constructor(e){super();const t=document.createElement("style");t.textContent='.SorterContainer{color:#fff;position:relative;z-index:16}.SorterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in}.FilterItem{position:relative}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.SortersCheckmark{background-color:transparent;border:1px solid #D0046C}.FilterItem input:checked~.SortersCheckmark{background-color:#D0046C;border:1px solid #D0046C}.FilterItem .SortersCheckmark{transition:all 0.05s ease-in;margin:0 15px}.FilterItem .SortersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.SortersCheckmark:after{display:block}.FilterItem .SortersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.SorterContainerSplitt .FilterItemWithLogos .SortersCheckmark{margin:0}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel .SortersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid #fff}.SorterLabel input:checked+span{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial}.SorterContainerSplitt .SorterSelector{padding:7px}.SorterContainerSplitt .SorterMainArea svg{margin:0 10px}.SorterLabel .SortersCheckmark{margin-right:15px}.SorterContainerSplitt .FilterItemWithLogos .SortersCheckmark{margin:0 20px 0 0}}',this.shadowRoot.appendChild(t),z(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},yi,gi,a,{lang:10,translationurl:11,clientstyling:12,clientstylingurl:13,addSorterSelector:0,addsortingselector:1,categoryid:14},null),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["lang","translationurl","clientstyling","clientstylingurl","addSorterSelector","addsortingselector","categoryid"]}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),H()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),H()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get addSorterSelector(){return this.$$.ctx[0]}set addSorterSelector(e){this.$$set({addSorterSelector:e}),H()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(e){this.$$set({addsortingselector:e}),H()}get categoryid(){return this.$$.ctx[14]}set categoryid(e){this.$$set({categoryid:e}),H()}});const ia="game-tile-";function aa(e,t,n){let r;u(e,dn,(e=>n(37,r=e)));let i,a,o,s,l,c,h,d,m,f,{categoryindex:p=""}=t,{endpoint:g=""}=t,{datasource:y=""}=t,{lang:v=""}=t,{session:b=""}=t,{userid:w=""}=t,{favorites:_=""}=t,{clientstyling:S=""}=t,{clientstylingurl:x=""}=t,{translationurl:C=""}=t,{currency:T=""}=t,{categoryid:E=""}=t,{categorygames:k=0}=t,{livecasino:G="false"}=t,{visiblegames:L=""}=t,{gamepagemodalurl:$="false"}=t,{integratedgameframedesktop:I="false"}=t,{integratedgameframemobile:D="false"}=t,{casinomygames:P="false"}=t,{addfilterselector:O="false"}=t,{addsortingselector:A="false"}=t,{filterbylogo:N=""}=t,{once:R=!0}=t,{top:H=0}=t,{bottom:B=0}=t,{left:U=0}=t,{right:Y=0}=t,z=!0,j=!1,W=!0,V=window.navigator.userAgent,Z=[],K=!0,X=40,J=!1,q=!1,Q=!1,ee=!1,te=!1,ne=!0,re=!1,ie=!1,ae=!1,oe=new Array(1e4),se={},le="",ce="",ue={items:[],count:0,name:""};Object.keys(br).forEach((e=>{vr(e,br[e])})),void 0!==document.hidden?
|
|
1440
1454
|
// Opera 12.10 and Firefox 18 and later support
|
|
1441
1455
|
m="hidden":void 0!==document.msHidden?m="msHidden":void 0!==document.webkitHidden&&(m="webkitHidden");
|
|
1442
1456
|
// IntersectionObserver used for loading more games
|
|
1443
|
-
let
|
|
1457
|
+
let he=new IntersectionObserver((e=>{e.forEach((async e=>{let t=e.target.gameid,r=e.target.elems_index;// eslint-disable-line
|
|
1444
1458
|
// eslint-disable-line
|
|
1445
|
-
e.isIntersecting?(1.2*r>X&&
|
|
1459
|
+
e.isIntersecting?(1.2*r>X&&fe(E),n(34,se[t]=1,se)):n(34,se[t]=0,se)}))}));
|
|
1446
1460
|
// Start favored games section
|
|
1447
|
-
const
|
|
1448
|
-
return(E.match(/\$/g)||[]).length>1?(a=E.split("$").slice(0,2).join("$"),o=new URL(`${
|
|
1461
|
+
const de=(e,t,r,i=[])=>{n(20,z=!0);let a="",o="",s=JSON.parse(localStorage.getItem("vendorFiltersByCategory")),c=JSON.parse(localStorage.getItem("vendorSortingBy")),u=g.replace(/.$/,"2");// @TODO remove after we migrate with all endpoints to v2 - hack for the endpoint since the filtering of categories functionality was developed only for the v2 api
|
|
1462
|
+
return(E.match(/\$/g)||[]).length>1?(a=E.split("$").slice(0,2).join("$"),o=new URL(`${u}/casino/groups/${y}/${a}/subGroups`)):o=new URL(`${u}/casino/groups/${y}/${E}`),new Promise(((e,i)=>{if(o.searchParams.delete("pagination"),o.searchParams.append("expand","games(vendor)"),o.searchParams.append("fields","id,name,games"),o.searchParams.append("platform",yr(V)),o.searchParams.append("pagination",`games(offset=${t},limit=${r})`),o.searchParams.append("language",v),
|
|
1449
1463
|
// if vendor filters are active, get filtered games
|
|
1450
|
-
window.postMessage({type:"CategoryVendors",categoryid:E},window.location.href),s&&s[E])if(s[E].length&&!1===W&&!1===ie){let e="";n(28,te=!0),s[E].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),o.searchParams.append("filter",(s&&s[E].length<2?"$and":"$or")+`(${e})`)}else n(28,te=!1);fetch(o).then((e=>e.json())).then((t=>{n(20,z=!1),(E.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==E)return e}))[0]),n(50,f=!0),n(21,j=!1),l=t.games.total,e(t)}),(e=>{n(21,j=!0),console.error(e),i(e)}))}))},
|
|
1464
|
+
window.postMessage({type:"CategoryVendors",categoryid:E},window.location.href),s&&s[E])if(s[E].length&&!1===W&&!1===ie){let e="";n(28,te=!0),s[E].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),o.searchParams.append("filter",(s&&s[E].length<2?"$and":"$or")+`(${e})`)}else n(28,te=!1);c&&(c[E]?c[E]&&"All"!=c[E]&&("isNew"==c[E]||"advancedTags(name(hot))"==c[E]?(o.searchParams.append("sortedField",`games(${c[E]})`),o.searchParams.append("orderBy","DES")):o.searchParams.append("sortedField",`games(${c[E]})`)):ce&&"All"!=ce&&("advancedTags(name(hot))"==ce||"isNew"==ce?(o.searchParams.append("sortedField",`games(${ce})`),o.searchParams.append("orderBy","DES")):o.searchParams.append("sortedField",`games(${ce})`))),fetch(o).then((e=>e.json())).then((t=>{n(20,z=!1),(E.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==E)return e}))[0]),n(50,f=!0),n(21,j=!1),l=t.games.total,e(t)}),(e=>{n(21,j=!0),console.error(e),i(e)}))}))},me=e=>{if(e.data)switch(e.data.type){case"MostPlayedData":"MOSTPLAYED"==E&&(n(25,J=!1),W=!1,n(24,K=!1),n(23,Z=e.data.mostPlayedGames),n(22,o={id:"MOSTPLAYED",name:"Most Played Games",games:{count:e.data.mostPlayedGames.length,total:e.data.mostPlayedGames.length,items:e.data.mostPlayedGames}})),n(20,z=!1);break;case"LastPlayedData":"LASTPLAYED"==E&&(n(25,J=!1),W=!1,n(24,K=!1),n(23,Z=e.data.lastPlayedGames),n(22,o={id:"LASTPLAYED",name:"Last Played Games",games:{count:e.data.lastPlayedGames.length,total:e.data.lastPlayedGames.length,items:e.data.lastPlayedGames}})),n(20,z=!1);break;case"CustomOperatorData":e.data.operatordetail;break;case"RecentSearchData":n(25,J=!0),n(26,q=!0),e.data.searchData.length>0?(n(23,Z=e.data.searchData),n(29,ne=!0),Z&&Z.forEach((e=>{e.isFavorite=pe(e.id)}))):(n(23,Z=[]),n(29,ne=!1));break;case"OutOfRecentSearches":n(25,J=!1),n(26,q=!1);break;case"SearchData":n(25,J=!0),n(26,q=!1),n(23,Z=e.data.searchData.items||[]),n(27,ee=!0),e.data.receivedFavoriteResults&&(h=e.data.receivedFavoriteResults.items),Z&&Z.forEach((e=>{e.isFavorite=pe(e.id)}));break;case`CategoryData_${E}`:n(25,J=!1),W=!0,n(24,K=!0),n(27,ee=!1),ae=!1,e.data.receivedFavoriteResults&&(h=e.data.receivedFavoriteResults.items),de(e.data.categoryId,0,e.data.visiblegames).then((e=>{n(22,o=e),n(23,Z=o.games.items),Z&&Z.forEach((e=>{e.isFavorite=pe(e.id)}))}));break;case"CategoryChange":X=20;break;case"ApplySorter":n(0,E=e.data.itemId),ce=e.data.sortBy,de(0,0,X).then((e=>{n(22,o=e),n(23,Z=o.games.items),n(24,K=!1)}));break;case"CategoryUpdate":n(25,J=!1),W=!1,n(27,ee=!1),ae=!0,n(0,E=e.data.itemId),"MOSTPLAYED"!==E&&n(24,K=!1),"true"!==P&&de(0,0,X).then((t=>{n(22,o=t),o.games.items.forEach((e=>{e.isFavorite=pe(e.id)})),n(23,Z=o.games.items),n(24,K=!1),
|
|
1451
1465
|
// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
1452
|
-
Z.length<10&&0==e.data.origin&&(Q=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:Q},window.location.href)}),500))}));break;case"FavoriteUpdate":W=!0,o&&(n(23,Z=o.games.items),Z.forEach((e=>{e.isFavorite=
|
|
1466
|
+
Z.length<10&&0==e.data.origin&&(Q=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:Q},window.location.href)}),500))}));break;case"FavoriteUpdate":W=!0,o&&(n(23,Z=o.games.items),Z.forEach((e=>{e.isFavorite=pe(e.id)})));break;case"UpdateCategoryFavoriteGames":if(e.data.receivedFavoriteResults){if(h=e.data.receivedFavoriteResults.items,e.data.favStadalone)return;ie?W||window.postMessage({type:"CategoryUpdate",itemId:E},window.location.href):window.postMessage({type:"FavoriteUpdate"},window.location.href)}break;case"ShowFavoriteSection":let t;W=!1,e.data&&(t=e.data.receivedFavoriteResults.items,t.length&&t.forEach((e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)})),n(36,ue.items=
|
|
1453
1467
|
// separate favorites array into mobile and desktop favorites
|
|
1454
1468
|
function(e,t){let n=window.navigator.userAgent;
|
|
1455
1469
|
// make sure to display favored games specific to the platform used
|
|
1456
|
-
return
|
|
1470
|
+
return gr(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e})):e.filter((e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e}))}(t,ue.items),ue),n(36,ue.name="Favorites",ue),n(33,ie=!0),n(20,z=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==_&&a&&a.length&&i&&i.length>0&&((e,t)=>{n(20,z=!0);let r={method:"GET",headers:{"X-SessionID":t}};new Promise(((t,i)=>{fetch(e,r).then((e=>e.json())).then((e=>{n(20,z=!1),h=e?e.items:[],Z.forEach((e=>{e.isFavorite=pe(e.id)}));let r=Z;n(23,Z=void 0),n(23,Z=r),t(h)})).catch((e=>{console.error(e),i(e)}))}))})(`${g}/player/${a}/favorites/`,i)}},fe=e=>{X+=1,n(30,re=!0),X<=l&&de(0,0,X).then((e=>{n(22,o=e),
|
|
1457
1471
|
// @TODO categoryData type fix
|
|
1458
1472
|
/**
|
|
1459
1473
|
* This check is needed to prevent requests with less items
|
|
1460
1474
|
* that started before but ended after the last request to add items to list
|
|
1461
1475
|
* This could also use abort controller instead but refactoring is needed
|
|
1462
1476
|
*/
|
|
1463
|
-
o.games.items.length>Z.length&&(n(23,Z=o.games.items),Z.forEach((e=>{e.isFavorite=
|
|
1477
|
+
o.games.items.length>Z.length&&(n(23,Z=o.games.items),Z.forEach((e=>{e.isFavorite=pe(e.id)}))),n(30,re=!1)}))},pe=e=>!!h&&-1!==h.findIndex((t=>t.id==e)),ge=e=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href)};
|
|
1464
1478
|
// @TODO categoryId type
|
|
1465
|
-
F((()=>(window.addEventListener("visibilitychange",(e=>{document[m]?n(35,le="disconnect"):n(35,le="connect")})),window.addEventListener("message",
|
|
1479
|
+
F((()=>(window.addEventListener("visibilitychange",(e=>{document[m]?n(35,le="disconnect"):n(35,le="connect")})),window.addEventListener("message",me,!1),"FAVORITES"===E&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",me),window.removeEventListener("visibilitychange",me)})));return e.$$set=e=>{"categoryindex"in e&&n(41,p=e.categoryindex),"endpoint"in e&&n(1,g=e.endpoint),"datasource"in e&&n(2,y=e.datasource),"lang"in e&&n(3,v=e.lang),"session"in e&&n(4,b=e.session),"userid"in e&&n(5,w=e.userid),"favorites"in e&&n(6,_=e.favorites),"clientstyling"in e&&n(7,S=e.clientstyling),"clientstylingurl"in e&&n(8,x=e.clientstylingurl),"translationurl"in e&&n(42,C=e.translationurl),"currency"in e&&n(9,T=e.currency),"categoryid"in e&&n(0,E=e.categoryid),"categorygames"in e&&n(43,k=e.categorygames),"livecasino"in e&&n(10,G=e.livecasino),"visiblegames"in e&&n(44,L=e.visiblegames),"gamepagemodalurl"in e&&n(11,$=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(12,I=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(13,D=e.integratedgameframemobile),"casinomygames"in e&&n(14,P=e.casinomygames),"addfilterselector"in e&&n(15,O=e.addfilterselector),"addsortingselector"in e&&n(16,A=e.addsortingselector),"filterbylogo"in e&&n(17,N=e.filterbylogo),"once"in e&&n(45,R=e.once),"top"in e&&n(46,H=e.top),"bottom"in e&&n(47,B=e.bottom),"left"in e&&n(48,U=e.left),"right"in e&&n(49,Y=e.right)},e.$$.update=()=>{/*thumbnailContainer*/524288&e.$$.dirty[0]|/*dataloaded*/524288&e.$$.dirty[1]&&f&&oe&&ae&&oe.forEach(((e,t)=>{e&&(
|
|
1466
1480
|
// Hack to make sure that I can identify the thumbnail index
|
|
1467
|
-
e.elems_index=t,
|
|
1481
|
+
e.elems_index=t,he.observe(e))})),/*lang, categoryid*/9&e.$$.dirty[0]&&v&&E&&(()=>{
|
|
1468
1482
|
// showFavGamesCategory vs categoryData
|
|
1469
1483
|
// favoriteGamesData vs shownCategoryData
|
|
1470
|
-
switch(E){case"FAVORITES":n(33,ie=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===P&&n(33,ie=!1)}})(),/*translationurl*/2048&e.$$.dirty[1]&&C&&fetch(C).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{
|
|
1484
|
+
switch(E){case"FAVORITES":n(33,ie=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===P&&n(33,ie=!1)}})(),/*translationurl*/2048&e.$$.dirty[1]&&C&&fetch(C).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{vr(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/262272&e.$$.dirty[0]&&S&&d&&(()=>{let e=document.createElement("style");e.innerHTML=S,d.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/262400&e.$$.dirty[0]&&x&&d&&(()=>{let e=new URL(x),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{d.appendChild(t)}),1)}))})()},[E,g,y,v,b,w,_,S,x,T,G,$,I,D,P,O,A,N,d,oe,z,j,o,Z,K,J,q,ee,te,ne,re,s,c,ie,se,le,ue,r,V,e=>{if(0===(null==e?void 0:e.length))return"";let t,n="",r=999999999999;const i=new Date(Date.now());return e.forEach(((a,o)=>{const s=new Date(a.schedules[0].startTime),l=new Date(a.schedules[0].endTime);wr(l).diff(i)<r&&(r=wr(l).diff(i),t=o),wr(i).isAfter(s)&&wr(i).isBefore(l)&&(n=e[t].name)})),n},ge,p,C,k,L,R,H,B,U,Y,f,function(e){M[e?"unshift":"push"]((()=>{c=e,n(32,c)}))},e=>ge(o.id),function(e,t){M[e?"unshift":"push"]((()=>{oe[t]=e,n(19,oe)}))},function(e){M[e?"unshift":"push"]((()=>{s=e,n(31,s)}))},function(e){M[e?"unshift":"push"]((()=>{c=e,n(32,c)}))},function(e){M[e?"unshift":"push"]((()=>{s=e,n(31,s)}))},function(e){M[e?"unshift":"push"]((()=>{d=e,n(18,d)}))}]}
|
|
1471
1485
|
/* src/CasinoFavoritesSection.svelte generated by Svelte v3.58.0 */
|
|
1472
|
-
function
|
|
1486
|
+
function oa(t){let n,r,a,o,s;return{c(){n=p("div"),r=p("casino-games-category-section"),this.c=e,S(r,"session",/*session*/t[0]),S(r,"userid",/*userid*/t[1]),S(r,"endpoint",/*endpoint*/t[2]),S(r,"datasource",/*datasource*/t[3]),S(r,"lang",/*lang*/t[5]),S(r,"currency",/*currency*/t[4]),S(r,"favorites",/*favorites*/t[13]),S(r,"categoryid","FAVORITES"),S(r,"class","CategoryContainer"),S(r,"clientstyling",/*clientstyling*/t[6]),S(r,"clientstylingurl",/*clientstylingurl*/t[7]),S(r,"livecasino",/*livecasino*/t[8]),S(r,"visiblegames",/*visiblegames*/t[12]),S(r,"gamepagemodalurl",/*gamepagemodalurl*/t[11]),S(r,"integratedgameframedesktop",/*integratedgameframedesktop*/t[10]),S(r,"integratedgameframemobile",/*integratedgameframemobile*/t[9]),S(r,"casinomygames",/*casinomygames*/t[14]),_(n,"class","CasinoFavoritesSectionContainer")},m(l,c){var u;d(l,n,c),h(n,r),
|
|
1473
1487
|
/*div_binding*/t[18](n),o||(u=a=/*getFavoredGames*/t[16].call(null,r,(/*endpoint*/t[2],/*userid*/t[1],/*session*/t[0],/*userid*/t[1])),s=u&&i(u.destroy)?u.destroy:e,o=!0)},p(e,[t]){/*session*/1&t&&S(r,"session",/*session*/e[0]),/*userid*/2&t&&S(r,"userid",/*userid*/e[1]),/*endpoint*/4&t&&S(r,"endpoint",/*endpoint*/e[2]),/*datasource*/8&t&&S(r,"datasource",/*datasource*/e[3]),/*lang*/32&t&&S(r,"lang",/*lang*/e[5]),/*currency*/16&t&&S(r,"currency",/*currency*/e[4]),/*favorites*/8192&t&&S(r,"favorites",/*favorites*/e[13]),/*clientstyling*/64&t&&S(r,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&t&&S(r,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&t&&S(r,"livecasino",/*livecasino*/e[8]),/*visiblegames*/4096&t&&S(r,"visiblegames",/*visiblegames*/e[12]),/*gamepagemodalurl*/2048&t&&S(r,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/1024&t&&S(r,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/512&t&&S(r,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),/*casinomygames*/16384&t&&S(r,"casinomygames",/*casinomygames*/e[14]),a&&i(a.update)&&/*endpoint, userid, session*/7&t&&a.update.call(null,(/*endpoint*/e[2],/*userid*/e[1],/*session*/e[0],/*userid*/e[1]))},i:e,o:e,d(e){e&&m(n)
|
|
1474
|
-
/*div_binding*/,t[18](null),o=!1,s()}}}function
|
|
1488
|
+
/*div_binding*/,t[18](null),o=!1,s()}}}function sa(e,t,n){let r,i,{endpoint:a=""}=t,{datasource:o=""}=t,{currency:s=""}=t,{lang:l=""}=t,{session:c=""}=t,{userid:u=""}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{livecasino:m="false"}=t,{integratedgameframemobile:f="false"}=t,{integratedgameframedesktop:p="false"}=t,{gamepagemodalurl:g="false"}=t,{visiblegames:y=""}=t,{favorites:v=""}=t,{categoryid:b=""}=t,{casinomygames:w="false"}=t,_=[];!function({withLocale:e,translations:t}){Qt.subscribe((n=>{null==n&&(Ot.set(t),Qt.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1475
1489
|
/*dictionary.set(translations);
|
|
1476
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});const S=e=>{if(e.data)switch(e.data.type){case"UserSessionID":n(0,c=e.data.session),n(1,u=e.data.userID),u&&u.length&&c&&c.length>0&&x(a,c,u);break;case"SetUnfavoredGame":T(`${a}/player/${u}/favorites`,c,u,e.data.id,e.data.triggerFactor);break;case"SetFavoredGame":C(`${a}/player/${u}/favorites`,c,u,e.data.id,e.data.triggerFactor);break;case"GetFavoredGame":u&&u.length&&c&&c.length>0&&x(a,c,u)}};let x=(e,t,n)=>{if("true"==v&&c&&n){fetch(`${e}/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then((e=>e.json())).then((e=>(i=e,i&&(
|
|
1490
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});const S=e=>{if(e.data)switch(e.data.type){case"UserSessionID":n(0,c=e.data.session),n(1,u=e.data.userID),u&&u.length&&c&&c.length>0&&x(a,c,u);break;case"SetUnfavoredGame":T(`${a}/player/${u}/favorites`,c,u,e.data.id,e.data.triggerFactor);break;case"SetFavoredGame":C(`${a}/player/${u}/favorites`,c,u,e.data.id,e.data.triggerFactor);break;case"GetFavoredGame":u&&u.length&&c&&c.length>0&&x(a,c,u)}};let x=(e,t,n)=>{if("true"==v&&c&&n){fetch(`${e}/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then((e=>e.json())).then((e=>(i=e,i&&(k(),window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:i,favStadalone:!0},window.location.href),G(i.items)),i))).then((e=>e)).catch((e=>{console.error(e)}))}},C=(e,t,n,r,i)=>{
|
|
1477
1491
|
// When adding new favored games, the api requires an array with all the current favored games due to the fact that it overwrites the old ones with the ones found in the body of the POST request
|
|
1478
|
-
_.includes(r)||_.push(r);let a={items:_},o={method:"POST",headers:{"X-SessionID":t,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(a)};fetch(e,o).then((e=>e.json())).then((()=>{window.postMessage({type:`AddFavoriteThumbnail_${r}`},window.location.href),E(e,t)})).catch((e=>{console.error("Err",e)}))};const T=(e,t,n,r,i)=>{_.includes(r)&&(_=_.filter((e=>e!=r))),fetch(`${e}/${r}`,{method:"DELETE",headers:{"X-SessionID":t}}).then((e=>e.json())).then((()=>{window.postMessage({type:`RemoveFavoriteThumbnail_${r}`},window.location.href),E(e,t)}))};let E=(e,t)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then((e=>e.json())).then((e=>(i=e,
|
|
1492
|
+
_.includes(r)||_.push(r);let a={items:_},o={method:"POST",headers:{"X-SessionID":t,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(a)};fetch(e,o).then((e=>e.json())).then((()=>{window.postMessage({type:`AddFavoriteThumbnail_${r}`},window.location.href),E(e,t)})).catch((e=>{console.error("Err",e)}))};const T=(e,t,n,r,i)=>{_.includes(r)&&(_=_.filter((e=>e!=r))),fetch(`${e}/${r}`,{method:"DELETE",headers:{"X-SessionID":t}}).then((e=>e.json())).then((()=>{window.postMessage({type:`RemoveFavoriteThumbnail_${r}`},window.location.href),E(e,t)}))};let E=(e,t)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then((e=>e.json())).then((e=>(i=e,k(),i&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:i,favStadalone:!0},window.location.href),i))).catch((e=>{console.error(e)}))};const k=()=>{window.postMessage({type:"ShowFavoriteSection",receivedFavoriteResults:i},window.location.href)},G=(e=[])=>(
|
|
1479
1493
|
// construct favorite array used to check if game id is not already present in fav list
|
|
1480
|
-
_=[],e.length>0&&e.forEach((e=>{_.push(e.id)})),_);return F((()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}))),e.$$set=e=>{"endpoint"in e&&n(2,a=e.endpoint),"datasource"in e&&n(3,o=e.datasource),"currency"in e&&n(4,s=e.currency),"lang"in e&&n(5,l=e.lang),"session"in e&&n(0,c=e.session),"userid"in e&&n(1,u=e.userid),"clientstyling"in e&&n(6,h=e.clientstyling),"clientstylingurl"in e&&n(7,d=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,f=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"categoryid"in e&&n(17,b=e.categoryid),"casinomygames"in e&&n(14,w=e.casinomygames)},e.$$.update=()=>{/*endpoint, userid, session, lang, favorites*/8231&e.$$.dirty&&a&&u&&c&&l&&v&&"true"==v&&x(a,c,u),/*clientstyling, customStylingContainer*/32832&e.$$.dirty&&h&&r&&(()=>{let e=document.createElement("style");e.innerHTML=h,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty&&d&&r&&(()=>{let e=document.createElement("style");fetch(new URL(d)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1)}))})()},[c,u,a,o,s,l,h,d,m,f,p,g,y,v,w,r,x,b,function(e){k[e?"unshift":"push"]((()=>{r=e,n(15,r)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;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}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media screen and (max-width: 385px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media only screen and (max-width: 768px){.CasinoGamesHeader{align-items:unset;flex-direction:row}.CategoryName{margin-bottom:20px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Ki,Vi,a,{categoryindex:41,endpoint:1,datasource:2,lang:3,session:4,userid:5,favorites:6,clientstyling:7,clientstylingurl:8,translationurl:42,currency:9,categoryid:0,categorygames:43,livecasino:10,visiblegames:44,gamepagemodalurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,casinomygames:14,addfilterselector:15,addsortingselector:16,filterbylogo:17,once:45,top:46,bottom:47,left:48,right:49},null,[-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","addfilterselector","addsortingselector","filterbylogo","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[41]}set categoryindex(e){this.$$set({categoryindex:e}),R()}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),R()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),R()}get favorites(){return this.$$.ctx[6]}set favorites(e){this.$$set({favorites:e}),R()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[42]}set translationurl(e){this.$$set({translationurl:e}),R()}get currency(){return this.$$.ctx[9]}set currency(e){this.$$set({currency:e}),R()}get categoryid(){return this.$$.ctx[0]}set categoryid(e){this.$$set({categoryid:e}),R()}get categorygames(){return this.$$.ctx[43]}set categorygames(e){this.$$set({categorygames:e}),R()}get livecasino(){return this.$$.ctx[10]}set livecasino(e){this.$$set({livecasino:e}),R()}get visiblegames(){return this.$$.ctx[44]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get addfilterselector(){return this.$$.ctx[15]}set addfilterselector(e){this.$$set({addfilterselector:e}),R()}get addsortingselector(){return this.$$.ctx[16]}set addsortingselector(e){this.$$set({addsortingselector:e}),R()}get filterbylogo(){return this.$$.ctx[17]}set filterbylogo(e){this.$$set({filterbylogo:e}),R()}get once(){return this.$$.ctx[45]}set once(e){this.$$set({once:e}),R()}get top(){return this.$$.ctx[46]}set top(e){this.$$set({top:e}),R()}get bottom(){return this.$$.ctx[47]}set bottom(e){this.$$set({bottom:e}),R()}get left(){return this.$$.ctx[48]}set left(e){this.$$set({left:e}),R()}get right(){return this.$$.ctx[49]}set right(e){this.$$set({right:e}),R()}});class qi extends z{constructor(e){super();const t=document.createElement("style");t.textContent=".CasinoFavoritesSectionContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Ji,Xi,a,{endpoint:2,datasource:3,currency:4,lang:5,session:0,userid:1,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,categoryid:17,casinomygames:14},null),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","categoryid","casinomygames"]}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),R()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),R()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get categoryid(){return this.$$.ctx[17]}set categoryid(e){this.$$set({categoryid:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}}return!customElements.get("casino-favorites-section")&&customElements.define("casino-favorites-section",qi),qi}));
|
|
1494
|
+
_=[],e.length>0&&e.forEach((e=>{_.push(e.id)})),_);return F((()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}))),e.$$set=e=>{"endpoint"in e&&n(2,a=e.endpoint),"datasource"in e&&n(3,o=e.datasource),"currency"in e&&n(4,s=e.currency),"lang"in e&&n(5,l=e.lang),"session"in e&&n(0,c=e.session),"userid"in e&&n(1,u=e.userid),"clientstyling"in e&&n(6,h=e.clientstyling),"clientstylingurl"in e&&n(7,d=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,f=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"categoryid"in e&&n(17,b=e.categoryid),"casinomygames"in e&&n(14,w=e.casinomygames)},e.$$.update=()=>{/*endpoint, userid, session, lang, favorites*/8231&e.$$.dirty&&a&&u&&c&&l&&v&&"true"==v&&x(a,c,u),/*clientstyling, customStylingContainer*/32832&e.$$.dirty&&h&&r&&(()=>{let e=document.createElement("style");e.innerHTML=h,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty&&d&&r&&(()=>{let e=document.createElement("style");fetch(new URL(d)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1)}))})()},[c,u,a,o,s,l,h,d,m,f,p,g,y,v,w,r,x,b,function(e){M[e?"unshift":"push"]((()=>{r=e,n(15,r)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends j{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;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}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:17px;justify-items:center}@media screen and (max-width: 385px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media only screen and (max-width: 768px){.CasinoGamesHeader{align-items:unset;flex-direction:row;flex-wrap:wrap}.CategoryName{margin-bottom:20px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),z(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},aa,ra,a,{categoryindex:41,endpoint:1,datasource:2,lang:3,session:4,userid:5,favorites:6,clientstyling:7,clientstylingurl:8,translationurl:42,currency:9,categoryid:0,categorygames:43,livecasino:10,visiblegames:44,gamepagemodalurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,casinomygames:14,addfilterselector:15,addsortingselector:16,filterbylogo:17,once:45,top:46,bottom:47,left:48,right:49},null,[-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","addfilterselector","addsortingselector","filterbylogo","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[41]}set categoryindex(e){this.$$set({categoryindex:e}),H()}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),H()}get favorites(){return this.$$.ctx[6]}set favorites(e){this.$$set({favorites:e}),H()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[42]}set translationurl(e){this.$$set({translationurl:e}),H()}get currency(){return this.$$.ctx[9]}set currency(e){this.$$set({currency:e}),H()}get categoryid(){return this.$$.ctx[0]}set categoryid(e){this.$$set({categoryid:e}),H()}get categorygames(){return this.$$.ctx[43]}set categorygames(e){this.$$set({categorygames:e}),H()}get livecasino(){return this.$$.ctx[10]}set livecasino(e){this.$$set({livecasino:e}),H()}get visiblegames(){return this.$$.ctx[44]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get addfilterselector(){return this.$$.ctx[15]}set addfilterselector(e){this.$$set({addfilterselector:e}),H()}get addsortingselector(){return this.$$.ctx[16]}set addsortingselector(e){this.$$set({addsortingselector:e}),H()}get filterbylogo(){return this.$$.ctx[17]}set filterbylogo(e){this.$$set({filterbylogo:e}),H()}get once(){return this.$$.ctx[45]}set once(e){this.$$set({once:e}),H()}get top(){return this.$$.ctx[46]}set top(e){this.$$set({top:e}),H()}get bottom(){return this.$$.ctx[47]}set bottom(e){this.$$set({bottom:e}),H()}get left(){return this.$$.ctx[48]}set left(e){this.$$set({left:e}),H()}get right(){return this.$$.ctx[49]}set right(e){this.$$set({right:e}),H()}});class la extends j{constructor(e){super();const t=document.createElement("style");t.textContent=".CasinoFavoritesSectionContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),z(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},sa,oa,a,{endpoint:2,datasource:3,currency:4,lang:5,session:0,userid:1,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,categoryid:17,casinomygames:14},null),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","categoryid","casinomygames"]}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),H()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),H()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),H()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),H()}get categoryid(){return this.$$.ctx[17]}set categoryid(e){this.$$set({categoryid:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}}return!customElements.get("casino-favorites-section")&&customElements.define("casino-favorites-section",la),la}));
|
|
1481
1495
|
//# sourceMappingURL=casino-favorites-section.js.map
|