@everymatrix/casino-random-game 0.0.322 → 0.0.325
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.
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
19
19
|
// function, guarantees this behavior.
|
|
20
20
|
const L=new Set;let R=0;// Do *not* move this inside the flush() function
|
|
21
|
-
function
|
|
21
|
+
function O(){const e=a;do{
|
|
22
22
|
// first, call beforeUpdate functions
|
|
23
23
|
// and update components
|
|
24
|
-
for(;R<w.length;){const e=w[R];R++,_(e),
|
|
24
|
+
for(;R<w.length;){const e=w[R];R++,_(e),C(e.$$)}for(_(null),w.length=0,R=0;T.length;)T.pop()();
|
|
25
25
|
// then, once components are updated, call
|
|
26
26
|
// afterUpdate functions. This may cause
|
|
27
27
|
// subsequent updates...
|
|
28
28
|
for(let e=0;e<B.length;e+=1){const t=B[e];L.has(t)||(
|
|
29
29
|
// ...so guard against infinite loops
|
|
30
|
-
L.add(t),t())}B.length=0}while(w.length);for(;A.length;)A.pop()();S=!1,L.clear(),_(e)}function
|
|
30
|
+
L.add(t),t())}B.length=0}while(w.length);for(;A.length;)A.pop()();S=!1,L.clear(),_(e)}function C(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}const M=new Set;function I(e,t){-1===e.$$.dirty[0]&&(w.push(e),S||(S=!0,H.then(O)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function x(i,s,c,l,u,h,p,d=[-1]){const m=a;_(i);const y=i.$$={fragment:null,ctx:null,
|
|
31
31
|
// state
|
|
32
32
|
props:h,update:e,not_equal:u,bound:r(),
|
|
33
33
|
// lifecycle
|
|
@@ -44,7 +44,7 @@ y.fragment&&y.fragment.c();s.intro&&((g=i.$$.fragment)&&g.i&&(M.delete(g),g.i(v)
|
|
|
44
44
|
P((()=>{const r=c.map(t).filter(o);l?l.push(...r):
|
|
45
45
|
// Edge case - component was destroyed immediately,
|
|
46
46
|
// most likely as a result of a binding initialising
|
|
47
|
-
n(r),e.$$.on_mount=[]})),u.forEach(P)}(i,s.target,s.anchor,s.customElement),
|
|
47
|
+
n(r),e.$$.on_mount=[]})),u.forEach(P)}(i,s.target,s.anchor,s.customElement),O()}var g,v;_(m)}let N;"function"==typeof HTMLElement&&(N=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);
|
|
48
48
|
// @ts-ignore todo: improve typings
|
|
49
49
|
for(const e in this.$$.slotted)
|
|
50
50
|
// @ts-ignore todo: improve typings
|
|
@@ -100,7 +100,7 @@ self.fetch.bind(self);
|
|
|
100
100
|
PERFORMANCE OF THIS SOFTWARE.
|
|
101
101
|
***************************************************************************** */
|
|
102
102
|
/* global Reflect, Promise */
|
|
103
|
-
var ae=function(e,t){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ae(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function le(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ue(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function he(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function fe(e){return"function"==typeof e}function pe(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 de=pe((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 me(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ye=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=le(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(fe(c))try{c()}catch(e){o=e instanceof de?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=le(l),h=u.next();!h.done;h=u.next()){var f=h.value;try{ve(f)}catch(e){o=null!=o?o:[],e instanceof de?o=he(he([],ue(o)),ue(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new de(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ve(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&me(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&me(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),be=ye.EMPTY;function ge(e){return e instanceof ye||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function ve(e){fe(e)?e():e.unsubscribe()}var Ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_e={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=_e.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,he([e,t],ue(r))):setTimeout.apply(void 0,he([e,t],ue(r)))},clearTimeout:function(e){var t=_e.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function we(){}var Te=null;function Be(e){if(Ee.useDeprecatedSynchronousErrorHandling){var t=!Te;if(t&&(Te={errorThrown:!1,error:null}),e(),t){var r=Te,n=r.errorThrown,o=r.error;if(Te=null,n)throw o}}else e()}var Ae=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,ge(t)&&t.add(r)):r.destination=Ce,r}return ce(t,e),t.create=function(e,t,r){return new Le(e,t,r)},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}(ye),He=Function.prototype.bind;function Se(e,t){return He.call(e,t)}var Pe=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){Re(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Re(e)}else Re(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Re(e)}},e}(),Le=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;fe(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Ee.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Se(t.next,i),error:t.error&&Se(t.error,i),complete:t.complete&&Se(t.complete,i)}):o=t;return s.destination=new Pe(o),s}return ce(t,e),t}(Ae);function Re(e){var t;t=e,_e.setTimeout((function(){throw t}))}var Ce={closed:!0,next:we,error:function(e){throw e},complete:we},Oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Me(e){return e}function Ie(e){return 0===e.length?Me:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var xe=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Ae||function(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(n)&&ge(n)?e:new Le(e,t,r);return Be((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Ne(t))((function(t,n){var o=new Le({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Oe]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ie(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ne(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Ne(e){var t;return null!==(t=null!=e?e:Ee.Promise)&&void 0!==t?t:Promise}var Ge=pe((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ue=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 ce(t,e),t.prototype.lift=function(e){var t=new De(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ge},t.prototype.next=function(e){var t=this;Be((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=le(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Be((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Be((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?be:(this.currentObservers=null,i.push(e),new ye((function(){t.currentObservers=null,me(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new xe;return e.source=this,e},t.create=function(e,t){return new De(e,t)},t}(xe),De=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return ce(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:be},t}(Ue),Fe={now:function(){return(Fe.delegate||Date).now()},delegate:void 0},ke=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Fe);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return ce(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},t}(Ue);let je=[],$e={};
|
|
103
|
+
var ae=function(e,t){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ae(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function le(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ue(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function he(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function fe(e){return"function"==typeof e}function pe(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 de=pe((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 me(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ye=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=le(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(fe(c))try{c()}catch(e){o=e instanceof de?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=le(l),h=u.next();!h.done;h=u.next()){var f=h.value;try{ve(f)}catch(e){o=null!=o?o:[],e instanceof de?o=he(he([],ue(o)),ue(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new de(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ve(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&me(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&me(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),be=ye.EMPTY;function ge(e){return e instanceof ye||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function ve(e){fe(e)?e():e.unsubscribe()}var Ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_e={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=_e.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,he([e,t],ue(r))):setTimeout.apply(void 0,he([e,t],ue(r)))},clearTimeout:function(e){var t=_e.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function we(){}var Te=null;function Be(e){if(Ee.useDeprecatedSynchronousErrorHandling){var t=!Te;if(t&&(Te={errorThrown:!1,error:null}),e(),t){var r=Te,n=r.errorThrown,o=r.error;if(Te=null,n)throw o}}else e()}var Ae=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,ge(t)&&t.add(r)):r.destination=Oe,r}return ce(t,e),t.create=function(e,t,r){return new Le(e,t,r)},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}(ye),He=Function.prototype.bind;function Se(e,t){return He.call(e,t)}var Pe=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){Re(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Re(e)}else Re(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Re(e)}},e}(),Le=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;fe(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Ee.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Se(t.next,i),error:t.error&&Se(t.error,i),complete:t.complete&&Se(t.complete,i)}):o=t;return s.destination=new Pe(o),s}return ce(t,e),t}(Ae);function Re(e){var t;t=e,_e.setTimeout((function(){throw t}))}var Oe={closed:!0,next:we,error:function(e){throw e},complete:we},Ce="function"==typeof Symbol&&Symbol.observable||"@@observable";function Me(e){return e}function Ie(e){return 0===e.length?Me:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var xe=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Ae||function(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(n)&&ge(n)?e:new Le(e,t,r);return Be((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Ne(t))((function(t,n){var o=new Le({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ce]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ie(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ne(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Ne(e){var t;return null!==(t=null!=e?e:Ee.Promise)&&void 0!==t?t:Promise}var Ge=pe((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ue=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 ce(t,e),t.prototype.lift=function(e){var t=new De(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ge},t.prototype.next=function(e){var t=this;Be((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=le(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Be((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Be((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?be:(this.currentObservers=null,i.push(e),new ye((function(){t.currentObservers=null,me(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new xe;return e.source=this,e},t.create=function(e,t){return new De(e,t)},t}(xe),De=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return ce(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:be},t}(Ue),Fe={now:function(){return(Fe.delegate||Date).now()},delegate:void 0},ke=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Fe);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return ce(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},t}(Ue);let je=[],$e={};
|
|
104
104
|
/**
|
|
105
105
|
* @name topic
|
|
106
106
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -282,10 +282,10 @@ var Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Bt=/^\.(?:(0+)(\*)?|(#+)|(0+)
|
|
|
282
282
|
// @@@ case
|
|
283
283
|
return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Lt(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 Rt(e){
|
|
284
284
|
// Engineering
|
|
285
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!St.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function
|
|
285
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!St.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ot(e){var t=Lt(e);return t||{}}
|
|
286
286
|
/**
|
|
287
287
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
288
|
-
*/function
|
|
288
|
+
*/function Ct(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=at(at(at({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return at(at({},e),Ot(t))}),{}));continue;case"engineering":t=at(at(at({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return at(at({},e),Ot(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
289
289
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
290
290
|
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(o.options[0]);continue;
|
|
291
291
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
@@ -466,7 +466,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
466
466
|
// Find the end of the quoted literal text.
|
|
467
467
|
this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ot.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ut(r,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 r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
468
468
|
// Parse the skeleton
|
|
469
|
-
for(var t=e.split(Tt).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],a=i.slice(1),c=0,l=a;c<l.length;c++)if(0===l[c].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(e)}catch(e){return this.error(ot.INVALID_NUMBER_SKELETON,t)}return{val:{type:st.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?
|
|
469
|
+
for(var t=e.split(Tt).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],a=i.slice(1),c=0,l=a;c<l.length;c++)if(0===l[c].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(e)}catch(e){return this.error(ot.INVALID_NUMBER_SKELETON,t)}return{val:{type:st.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ct(r):{}},err:null}},
|
|
470
470
|
/**
|
|
471
471
|
* @param nesting_level The current nesting level of messages.
|
|
472
472
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -609,7 +609,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
609
609
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
610
610
|
Copyrights licensed under the New BSD License.
|
|
611
611
|
See the accompanying LICENSE file for terms.
|
|
612
|
-
*/const Rr={},
|
|
612
|
+
*/const Rr={},Or=(e,t,r)=>r?(t in Rr||(Rr[t]={}),e in Rr[t]||(Rr[t][e]=r),r):r,Cr=(e,t)=>{if(null==t)return;if(t in Rr&&e in Rr[t])return Rr[t][e];const r=Zr(t);for(let n=0;n<r.length;n++){const o=Nr(r[n],e);if(o)return Or(e,t,o)}};let Mr;const Ir=ze({});function xr(e){return e in Mr}function Nr(e,t){if(!xr(e))return null;const r=function(e){return Mr[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Gr(e,...t){delete Rr[e],Ir.update((r=>(r[e]=tt.all([r[e]||{},...t]),r)))}Xe([Ir],(([e])=>Object.keys(e))),Ir.subscribe((e=>Mr=e));const Ur={};function Dr(e){return Ur[e]}function Fr(e){return null!=e&&Zr(e).some((e=>{var t;return null===(t=Dr(e))||void 0===t?void 0:t.size}))}const kr={};function jr(e){if(!Fr(e))return e in kr?kr[e]:Promise.resolve();const t=function(e){return Zr(e).map((e=>{const t=Dr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return kr[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ur[e].delete(t),0===Ur[e].size&&delete Ur[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Gr(e,...t)))}(e,t)))).then((()=>{if(Fr(e))return jr(e);delete kr[e]})),kr[e]}
|
|
613
613
|
/*! *****************************************************************************
|
|
614
614
|
Copyright (c) Microsoft Corporation.
|
|
615
615
|
|
|
@@ -623,7 +623,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
623
623
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
624
624
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
625
625
|
PERFORMANCE OF THIS SOFTWARE.
|
|
626
|
-
***************************************************************************** */function $r(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Vr={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 zr(){return Vr}const Xr=ze(!1);let Wr;const Kr=ze(null);function Yr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Zr(e,t=zr().fallbackLocale){const r=Yr(e);return t?[...new Set([...r,...Yr(t)])]:r}function Jr(){return null!=Wr?Wr:void 0}Kr.subscribe((e=>{Wr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qr=Object.assign(Object.assign({},Kr),{set:e=>{if(e&&function(e){if(null==e)return;const t=Zr(e);for(let e=0;e<t.length;e++){const r=t[e];if(xr(r))return r}}(e)&&Fr(e)){const{loadingDelay:t}=zr();let r;return"undefined"!=typeof window&&null!=Jr()&&t?r=window.setTimeout((()=>Xr.set(!0)),t):Xr.set(!0),jr(e).then((()=>{Kr.set(e)})).finally((()=>{clearTimeout(r),Xr.set(!1)}))}return Kr.set(e)}}),Qr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},en=(e,t)=>{const{formats:r}=zr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},tn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=en("number",r)),new Intl.NumberFormat(t,n)})),rn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=en("date",r):0===Object.keys(n).length&&(n=en("date","short")),new Intl.DateTimeFormat(t,n)})),nn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=en("time",r):0===Object.keys(n).length&&(n=en("time","short")),new Intl.DateTimeFormat(t,n)})),on=Qr(((e,t=Jr())=>new Lr(e,t,zr().formats,{ignoreTag:zr().ignoreTag}))),sn=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Jr(),default:l}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=
|
|
626
|
+
***************************************************************************** */function $r(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Vr={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 zr(){return Vr}const Xr=ze(!1);let Wr;const Kr=ze(null);function Yr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Zr(e,t=zr().fallbackLocale){const r=Yr(e);return t?[...new Set([...r,...Yr(t)])]:r}function Jr(){return null!=Wr?Wr:void 0}Kr.subscribe((e=>{Wr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qr=Object.assign(Object.assign({},Kr),{set:e=>{if(e&&function(e){if(null==e)return;const t=Zr(e);for(let e=0;e<t.length;e++){const r=t[e];if(xr(r))return r}}(e)&&Fr(e)){const{loadingDelay:t}=zr();let r;return"undefined"!=typeof window&&null!=Jr()&&t?r=window.setTimeout((()=>Xr.set(!0)),t):Xr.set(!0),jr(e).then((()=>{Kr.set(e)})).finally((()=>{clearTimeout(r),Xr.set(!1)}))}return Kr.set(e)}}),Qr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},en=(e,t)=>{const{formats:r}=zr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},tn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=en("number",r)),new Intl.NumberFormat(t,n)})),rn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=en("date",r):0===Object.keys(n).length&&(n=en("date","short")),new Intl.DateTimeFormat(t,n)})),nn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=en("time",r):0===Object.keys(n).length&&(n=en("time","short")),new Intl.DateTimeFormat(t,n)})),on=Qr(((e,t=Jr())=>new Lr(e,t,zr().formats,{ignoreTag:zr().ignoreTag}))),sn=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Jr(),default:l}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Cr(e,c);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(i=null!==(o=null===(n=(r=zr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))&&void 0!==o?o:l)&&void 0!==i?i:e;if(!a)return u;let h=u;try{h=on(u,c).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},an=(e,t)=>((e={})=>{var{locale:t=Jr()}=e,r=$r(e,["locale"]);return nn(Object.assign({locale:t},r))})(t).format(e),cn=(e,t)=>((e={})=>{var{locale:t=Jr()}=e,r=$r(e,["locale"]);return rn(Object.assign({locale:t},r))})(t).format(e),ln=(e,t)=>((e={})=>{var{locale:t=Jr()}=e,r=$r(e,["locale"]);return tn(Object.assign({locale:t},r))})(t).format(e),un=(e,t=Jr())=>Cr(e,t),hn=Xe([qr,Ir],(()=>sn));Xe([qr],(()=>an)),Xe([qr],(()=>cn)),Xe([qr],(()=>ln)),Xe([qr,Ir],(()=>un)),window.emWidgets={topic:(e,t=0)=>{if(-1==je.indexOf(e)){let r=new ke(t);$e[e]=r,je.push(e)}return $e[e]}};const fn={en:{randomGame:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"}},fr:{randomGame:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant"}},ro:{randomGame:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"}},tr:{randomGame:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna"}},es:{randomGame:{playRandomGame:"Juega un juego aleatorio",randomGameLoading:"Lütfen bekleyin ...",playNowRandomGame:"Şimdi Oyna"}},pt:{randomGame:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora"}}};
|
|
627
627
|
/* src/CasinoRandomGame.svelte generated by Svelte v3.48.0 */function pn(e,t,r){const n=e.slice();return n[22]=t[r],n[24]=r,n}
|
|
628
628
|
// (77:4) {#if show}
|
|
629
629
|
function dn(e){let t,r,n,o,i,s,a,c=!/*slotDone*/e[4]&&mn(e),l=/*slotDone*/e[4]&&bn(e);return{c(){t=p("div"),r=p("div"),n=p("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',o=m(),c&&c.c(),i=m(),l&&l.c(),b(n,"class","ModalCloseBtn"),b(n,"part","ModalCloseBtn"),b(n,"role","button"),b(r,"class","ModalContainer"),b(r,"part","ModalContainer"),b(t,"class","ModalWindow"),b(t,"part","ModalWindow")},m(f,p){h(f,t,p),u(t,r),u(r,n),u(r,o),c&&c.m(r,null),u(r,i),l&&l.m(r,null),s||(a=y(n,"click",/*closeModal*/e[8]),s=!0)},p(e,t){/*slotDone*/e[4]?c&&(c.d(1),c=null):c?c.p(e,t):(c=mn(e),c.c(),c.m(r,i)),/*slotDone*/e[4]?l?l.p(e,t):(l=bn(e),l.c(),l.m(r,null)):l&&(l.d(1),l=null)},d(e){e&&f(t),c&&c.d(),l&&l.d(),s=!1,a()}}}
|
|
@@ -632,7 +632,7 @@ function mn(e){let t,r,n,o,i,s,a=/*$_*/e[5]("randomGame.randomGameLoading")+"",c
|
|
|
632
632
|
// (90:16) {#each gamesToShow as game, i}
|
|
633
633
|
function yn(e){let t,r,n,o,i,s;return{c(){t=p("div"),r=p("img"),s=m(),b(r,"class","RandomGameImage"),b(r,"part","RandomGameImage"),c(r.src,n=/*game*/e[22].thumbnail)||b(r,"src",n),b(r,"alt",o=/*game*/e[22].name),b(r,"title",i=/*game*/e[22].name),b(t,"class","item"),b(t,"part","item")},m(e,n){h(e,t,n),u(t,r),u(t,s)},p(e,t){/*gamesToShow*/2&t&&!c(r.src,n=/*game*/e[22].thumbnail)&&b(r,"src",n),/*gamesToShow*/2&t&&o!==(o=/*game*/e[22].name)&&b(r,"alt",o),/*gamesToShow*/2&t&&i!==(i=/*game*/e[22].name)&&b(r,"title",i)},d(e){e&&f(t)}}}
|
|
634
634
|
// (101:8) {#if slotDone}
|
|
635
|
-
function bn(e){let t,r,o,i,s,a,l,v,E,_,w,T,B,A,H,S,P,L,R,C
|
|
635
|
+
function bn(e){let t,r,o,i,s,a,l,v,E,_,w,T,B,A,H,S,P,L,R,O,C=/*randomGame*/e[0].name+"",M=/*randomGame*/e[0].vendor.name+"",I=/*$_*/e[5]("randomGame.playNowRandomGame")+"";return{c(){t=p("div"),r=p("div"),o=p("img"),l=m(),v=p("button"),v.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>',E=m(),_=p("div"),w=p("p"),T=d(C),B=m(),A=p("p"),H=d(M),S=m(),P=p("button"),L=d(I),b(o,"class","RandomGameImage"),b(o,"part","RandomGameImage"),c(o.src,i=/*randomGame*/e[0].thumbnail)||b(o,"src",i),b(o,"alt",s=/*randomGame*/e[0].name),b(o,"title",a=/*randomGame*/e[0].name),b(v,"class","RandomTryAgain"),b(v,"part","RandomTryAgain"),b(r,"class","item"),b(r,"part","item"),b(w,"class","RandomGameTitle"),b(w,"part","RandomGameTitle"),b(A,"class","RandomGameVendor"),b(A,"part","RandomGameVendor"),b(P,"class","RandomGamePlay"),b(P,"part","RandomGamePlay"),b(_,"class","RandomGameDetails"),b(_,"part","RandomGameDetails"),b(t,"class","RandomGameWrapper"),b(t,"part","RandomGameWrapper")},m(n,i){h(n,t,i),u(t,r),u(r,o),u(r,l),u(r,v),u(t,E),u(t,_),u(_,w),u(w,T),u(_,B),u(_,A),u(A,H),u(_,S),u(_,P),u(P,L),R||(O=[y(v,"click",/*click_handler*/e[13]),y(P,"click",/*click_handler_1*/e[14])],R=!0)},p(e,t){/*randomGame*/1&t&&!c(o.src,i=/*randomGame*/e[0].thumbnail)&&b(o,"src",i),/*randomGame*/1&t&&s!==(s=/*randomGame*/e[0].name)&&b(o,"alt",s),/*randomGame*/1&t&&a!==(a=/*randomGame*/e[0].name)&&b(o,"title",a),/*randomGame*/1&t&&C!==(C=/*randomGame*/e[0].name+"")&&g(T,C),/*randomGame*/1&t&&M!==(M=/*randomGame*/e[0].vendor.name+"")&&g(H,M),/*$_*/32&t&&I!==(I=/*$_*/e[5]("randomGame.playNowRandomGame")+"")&&g(L,I)},d(e){e&&f(t),R=!1,n(O)}}}function gn(t){let r,n,o,i,s,a,c,l,v,E,_,w=/*$_*/t[5]("randomGame.playRandomGame")+"",T=/*show*/t[2]&&dn(t);return{c(){r=p("div"),n=p("div"),T&&T.c(),o=m(),i=p("div"),s=p("button"),a=p("span"),c=d(w),l=m(),v=p("span"),v.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M161,16.7c-2.7,0-5.5,0.5-8.1,1.6l-44.2,18.3C98.1,41,93,53.2,97.4,63.8l18.3,44.2 c4.4,10.6,16.6,15.7,27.2,11.3l44.2-18.3c10.6-4.4,15.7-16.6,11.3-27.2l-18.3-44.2C176.8,21.6,169.1,16.7,161,16.7L161,16.7z M161,25c4.9,0,9.4,2.9,11.4,7.8l18.3,44.2c2.7,6.5-0.3,13.7-6.8,16.3l-44.2,18.3c-6.5,2.7-13.7-0.3-16.3-6.8l-18.3-44.2 c-2.7-6.5,0.3-13.7,6.8-16.3L156.1,26C157.7,25.3,159.4,25,161,25L161,25z M127.1,54.2c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C130.3,54.8,128.7,54.2,127.1,54.2z M147.9,62.5c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C151.2,63.2,149.6,62.5,147.9,62.5z M168.8,70.8 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C172,71.5,170.4,70.8,168.8,70.8L168.8,70.8z M39,79.2c-8.1,0.1-15.8,4.9-19.1,12.9 L1.6,136.2c-4.4,10.6,0.7,22.8,11.3,27.2l44.2,18.3c10.6,4.4,22.8-0.7,27.2-11.3l18.3-44.2c4.4-10.6-0.7-22.8-11.3-27.2L47.1,80.8 C44.5,79.7,41.7,79.1,39,79.2L39,79.2z M39,87.5c1.6,0,3.3,0.3,4.9,1l44.2,18.3c6.5,2.7,9.4,9.9,6.8,16.3l-18.3,44.2 c-2.7,6.5-9.9,9.4-16.3,6.8l-44.2-18.3c-6.5-2.7-9.4-9.9-6.8-16.3l18.3-44.2C29.6,90.4,34.1,87.5,39,87.5L39,87.5z M44.7,99.4 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C47.9,100,46.3,99.4,44.7,99.4z M75.5,112.1c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4 c0-1.7-0.7-3.2-1.8-4.4C78.7,112.8,77.1,112.1,75.5,112.1z M36.7,118.6c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4 s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C39.9,119.3,38.3,118.6,36.7,118.6z M67.5,131.4c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C70.7,132,69.1,131.4,67.5,131.4z M28.7,137.9c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8 c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C32,138.5,30.4,137.9,28.7,137.9z M59.5,150.6 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C62.8,151.3,61.2,150.6,59.5,150.6z"></path></svg>',this.c=e,b(s,"class","RandomButton"),b(s,"part","RandomButton"),b(i,"class","RandomButtonWrapper"),b(i,"part","RandomButtonWrapper"),b(r,"part","CustomStylingContainer")},m(e,f){h(e,r,f),u(r,n),T&&T.m(n,null),u(n,o),u(n,i),u(i,s),u(s,a),u(a,c),u(s,l),u(s,v),E||(_=y(s,"click",/*click_handler_2*/t[15]),E=!0)},p(e,[t]){/*show*/e[2]?T?T.p(e,t):(T=dn(e),T.c(),T.m(n,o)):T&&(T.d(1),T=null),/*$_*/32&t&&w!==(w=/*$_*/e[5]("randomGame.playRandomGame")+"")&&g(c,w)},i:e,o:e,d(e){e&&f(r),T&&T.d(),E=!1,_()}}}function vn(e,t,r){let n;var o,i;o=hn,i=e=>r(5,n=e),e.$$.on_destroy.push(l(o,i));let s,{endpoint:a=""}=t,{datasource:c=""}=t,{gameevent:u=""}=t,{lang:h=""}=t,f=[],p="",d=!1,m=0,y=0,b=!1,g=window.navigator.userAgent;!function({withLocale:e,translations:t}){qr.subscribe((r=>{null==r&&(Ir.set(t),qr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
636
636
|
/*dictionary.set(translations);
|
|
637
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(fn).forEach((e=>{!function(e,t){Gr(e,t)}(e,fn[e])}));const v=()=>{r(1,s=E(s)),r(3,m=0),y=0,r(4,b=!1),r(0,p=f[Math.floor(Math.random()*f.length)]),r(2,d=!0);let e=setInterval((()=>{r(3,m-=100),y++,20==y&&(r(4,b=!0),clearInterval(e))}),100)},E=e=>{let t,r=e.length;for(;0!=r;)t=Math.floor(Math.random()*r),r--,[e[r],e[t]]=[e[t],e[r]];return e},_=()=>{window.postMessage({type:u,gameId:p.gId||p.id},window.location.href),r(2,d=!1)},w=()=>{var e;e=h,qr.set(e)};return e.$$set=e=>{"endpoint"in e&&r(9,a=e.endpoint),"datasource"in e&&r(10,c=e.datasource),"gameevent"in e&&r(11,u=e.gameevent),"lang"in e&&r(12,h=e.lang)},e.$$.update=()=>{/*lang*/4096&e.$$.dirty&&h&&w(),/*endpoint, datasource*/1536&e.$$.dirty&&a&&c&&(()=>{let e=new URL(`${a}/casino/games`);e.searchParams.append("platform",(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(g)),e.searchParams.append("datasource",c),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=1000"),fetch(e.href).then((e=>e.json())).then((e=>{f=e.items,r(1,s=f.slice(0,19))}))})()},[p,s,d,m,b,n,v,_,()=>{r(2,d=!1)},a,c,u,h,()=>v(),()=>_(),()=>v()]}class En extends N{constructor(e){super(),this.shadowRoot.innerHTML="<style>: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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}.RandomButtonWrapper .RandomButton svg{width:35px;height:35px}</style>",x(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},vn,gn,i,{endpoint:9,datasource:10,gameevent:11,lang:12},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),
|
|
637
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(fn).forEach((e=>{!function(e,t){Gr(e,t)}(e,fn[e])}));const v=()=>{r(1,s=E(s)),r(3,m=0),y=0,r(4,b=!1),r(0,p=f[Math.floor(Math.random()*f.length)]),r(2,d=!0);let e=setInterval((()=>{r(3,m-=100),y++,20==y&&(r(4,b=!0),clearInterval(e))}),100)},E=e=>{let t,r=e.length;for(;0!=r;)t=Math.floor(Math.random()*r),r--,[e[r],e[t]]=[e[t],e[r]];return e},_=()=>{window.postMessage({type:u,gameId:p.gId||p.id},window.location.href),r(2,d=!1)},w=()=>{var e;e=h,qr.set(e)};return e.$$set=e=>{"endpoint"in e&&r(9,a=e.endpoint),"datasource"in e&&r(10,c=e.datasource),"gameevent"in e&&r(11,u=e.gameevent),"lang"in e&&r(12,h=e.lang)},e.$$.update=()=>{/*lang*/4096&e.$$.dirty&&h&&w(),/*endpoint, datasource*/1536&e.$$.dirty&&a&&c&&(()=>{let e=new URL(`${a}/casino/games`);e.searchParams.append("platform",(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(g)),e.searchParams.append("datasource",c),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=1000"),fetch(e.href).then((e=>e.json())).then((e=>{f=e.items,r(1,s=f.slice(0,19))}))})()},[p,s,d,m,b,n,v,_,()=>{r(2,d=!1)},a,c,u,h,()=>v(),()=>_(),()=>v()]}class En extends N{constructor(e){super(),this.shadowRoot.innerHTML="<style>: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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}.RandomButtonWrapper .RandomButton svg{width:35px;height:35px}</style>",x(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},vn,gn,i,{endpoint:9,datasource:10,gameevent:11,lang:12},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang"]}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),O()}get datasource(){return this.$$.ctx[10]}set datasource(e){this.$$set({datasource:e}),O()}get gameevent(){return this.$$.ctx[11]}set gameevent(e){this.$$set({gameevent:e}),O()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),O()}}return!customElements.get("casino-random-game")&&customElements.define("casino-random-game",En),En}));
|
|
638
638
|
//# sourceMappingURL=casino-random-game.js.map
|