@everymatrix/casino-random-game 1.13.10 → 1.13.11
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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function u(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function l(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(t,e){t.appendChild(e)}function h(t,e,r){t.insertBefore(e,r||null)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function m(){return d(" ")}function y(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function b(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function g(t,e){e=""+e,t.data!==e&&(t.data=e)}function v(t,e,r,n){null==r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function E(t){const e={};for(const r of t)e[r.name]=r.value;return e}function _(t){a=t}const w=[],T=[];let B=[];const A=[],H=Promise.resolve();let S=!1;function P(t){B.push(t)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -39,19 +39,19 @@ R.add(e),e())}B.length=0}while(w.length);for(;A.length;)A.pop()();S=!1,R.clear()
|
|
|
39
39
|
*/const x=new Set;function I(t,e){const r=t.$$;null!==r.fragment&&(!function(t){const e=[],r=[];B.forEach((n=>-1===t.indexOf(n)?e.push(n):r.push(n))),r.forEach((t=>t())),B=e}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(e),
|
|
40
40
|
// TODO null out other refs, including component.$$ (but need to
|
|
41
41
|
// preserve final state?)
|
|
42
|
-
r.on_destroy=r.fragment=null,r.ctx=[])}function N(t,e){-1===t.$$.dirty[0]&&(w.push(t),S||(S=!0,H.then(C)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(i,s,l,
|
|
42
|
+
r.on_destroy=r.fragment=null,r.ctx=[])}function N(t,e){-1===t.$$.dirty[0]&&(w.push(t),S||(S=!0,H.then(C)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(i,s,u,l,c,h,p,d=[-1]){const m=a;_(i);const y=i.$$={fragment:null,ctx:[],
|
|
43
43
|
// state
|
|
44
44
|
props:h,update:t,not_equal:c,bound:r(),
|
|
45
45
|
// lifecycle
|
|
46
46
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
|
|
47
47
|
// everything else
|
|
48
|
-
callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let b=!1;if(y.ctx=
|
|
48
|
+
callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let b=!1;if(y.ctx=u?u(i,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return y.ctx&&c(y.ctx[t],y.ctx[t]=n)&&(!y.skip_bound&&y.bound[t]&&y.bound[t](n),b&&N(i,t)),e})):[],y.update(),b=!0,n(y.before_update),
|
|
49
49
|
// `false` as a special case of no DOM component
|
|
50
|
-
y.fragment=!!
|
|
50
|
+
y.fragment=!!l&&l(y.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
52
52
|
y.fragment&&y.fragment.l(t),t.forEach(f)}else
|
|
53
53
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
54
|
-
y.fragment&&y.fragment.c();s.intro&&((g=i.$$.fragment)&&g.i&&(x.delete(g),g.i(v))),function(t,r,i,s){const{fragment:a,after_update:
|
|
54
|
+
y.fragment&&y.fragment.c();s.intro&&((g=i.$$.fragment)&&g.i&&(x.delete(g),g.i(v))),function(t,r,i,s){const{fragment:a,after_update:u}=t.$$;a&&a.m(r,i),s||
|
|
55
55
|
// onMount happens before the initial afterUpdate
|
|
56
56
|
P((()=>{const r=t.$$.on_mount.map(e).filter(o);
|
|
57
57
|
// if the component was destroyed immediately
|
|
@@ -60,7 +60,7 @@ P((()=>{const r=t.$$.on_mount.map(e).filter(o);
|
|
|
60
60
|
t.$$.on_destroy?t.$$.on_destroy.push(...r):
|
|
61
61
|
// Edge case - component was destroyed immediately,
|
|
62
62
|
// most likely as a result of a binding initialising
|
|
63
|
-
n(r),t.$$.on_mount=[]})),
|
|
63
|
+
n(r),t.$$.on_mount=[]})),u.forEach(P)}(i,s.target,s.anchor,s.customElement),C()}var g,v;_(m)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);
|
|
64
64
|
// @ts-ignore todo: improve typings
|
|
65
65
|
for(const t in this.$$.slotted)
|
|
66
66
|
// @ts-ignore todo: improve typings
|
|
@@ -69,7 +69,7 @@ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}d
|
|
|
69
69
|
if(!o(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const t=n.indexOf(r);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}})
|
|
70
70
|
/* eslint-disable no-prototype-builtins */;var U="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
71
71
|
// eslint-disable-next-line no-undef
|
|
72
|
-
"undefined"!=typeof global&&global||{},D="URLSearchParams"in U,F="Symbol"in U&&"iterator"in Symbol
|
|
72
|
+
"undefined"!=typeof global&&global||{},D="URLSearchParams"in U,F="Symbol"in U&&"iterator"in Symbol,$="FileReader"in U&&"Blob"in U&&function(){try{return new Blob,!0}catch(t){return!1}}(),k="FormData"in U,j="ArrayBuffer"in U;if(j)var V=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],W=ArrayBuffer.isView||function(t){return t&&V.indexOf(Object.prototype.toString.call(t))>-1};function X(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function z(t){return"string"!=typeof t&&(t=String(t)),t}
|
|
73
73
|
// Build a destructive iterator for the value list
|
|
74
74
|
function K(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return F&&(e[Symbol.iterator]=function(){return e}),e}function Y(t){this.map={},t instanceof Y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Z(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function J(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function q(t){var e=new FileReader,r=J(e);return e.readAsArrayBuffer(t),r}function Q(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function tt(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
|
75
75
|
/*
|
|
@@ -83,19 +83,19 @@ function K(t){var e={next:function(){var e=t.shift();return{done:void 0===e,valu
|
|
|
83
83
|
_initBody is called.
|
|
84
84
|
*/
|
|
85
85
|
// eslint-disable-next-line no-self-assign
|
|
86
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t
|
|
86
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:$&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:k&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:D&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():j&&$&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=Q(t.buffer),
|
|
87
87
|
// IE 10-11 can't handle a DataView body.
|
|
88
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):j&&(ArrayBuffer.prototype.isPrototypeOf(t)||W(t))?this._bodyArrayBuffer=Q(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):D&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))}
|
|
88
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):j&&(ArrayBuffer.prototype.isPrototypeOf(t)||W(t))?this._bodyArrayBuffer=Q(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):D&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},$&&(this.blob=function(){var t=Z(this);if(t)return t;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 t=Z(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if($)return this.blob().then(q);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=Z(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=J(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),o=n?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},k&&(this.formData=function(){return this.text().then(nt)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
89
89
|
// HTTP methods whose capitalization should be normalized
|
|
90
90
|
Y.prototype.append=function(t,e){t=X(t),e=z(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Y.prototype.delete=function(t){delete this.map[X(t)]},Y.prototype.get=function(t){return t=X(t),this.has(t)?this.map[t]:null},Y.prototype.has=function(t){return this.map.hasOwnProperty(X(t))},Y.prototype.set=function(t,e){this.map[X(t)]=z(e)},Y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Y.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),K(t)},Y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),K(t)},Y.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),K(t)},F&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var et=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function rt(t,e){if(!(this instanceof rt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof rt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Y(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),et.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in U)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
|
|
91
91
|
// Search for a '_' parameter in the query string
|
|
92
92
|
var i=/([?&])_=[^&]*/;if(i.test(this.url))
|
|
93
93
|
// If it already exists then set the value with the current time
|
|
94
|
-
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function nt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function ot(t,e){if(!(this instanceof ot))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Y(e.headers),this.url=e.url||"",this._initBody(t)}rt.prototype.clone=function(){return new rt(this,{body:this._bodyInit})},tt.call(rt.prototype),tt.call(ot.prototype),ot.prototype.clone=function(){return new ot(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ot.error=function(){var t=new ot(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var it=[301,302,303,307,308];ot.redirect=function(t,e){if(-1===it.indexOf(e))throw new RangeError("Invalid status code");return new ot(null,{status:e,headers:{location:t}})};var st=U.DOMException;try{new st}catch(t){(st=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),st.prototype.constructor=st}function at(t,e){return new Promise((function(r,n){var o=new rt(t,e);if(o.signal&&o.signal.aborted)return n(new st("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var t
|
|
94
|
+
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function nt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function ot(t,e){if(!(this instanceof ot))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Y(e.headers),this.url=e.url||"",this._initBody(t)}rt.prototype.clone=function(){return new rt(this,{body:this._bodyInit})},tt.call(rt.prototype),tt.call(ot.prototype),ot.prototype.clone=function(){return new ot(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ot.error=function(){var t=new ot(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var it=[301,302,303,307,308];ot.redirect=function(t,e){if(-1===it.indexOf(e))throw new RangeError("Invalid status code");return new ot(null,{status:e,headers:{location:t}})};var st=U.DOMException;try{new st}catch(t){(st=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),st.prototype.constructor=st}function at(t,e){return new Promise((function(r,n){var o=new rt(t,e);if(o.signal&&o.signal.aborted)return n(new st("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new Y,
|
|
95
95
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
96
96
|
// https://github.com/github/fetch/issues/748
|
|
97
97
|
// https://github.com/zloirock/core-js/issues/751
|
|
98
|
-
|
|
98
|
+
t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new ot(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new st("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&U.location.href?U.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&($?i.responseType="blob":j&&(i.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof Y||U.Headers&&e.headers instanceof U.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(X(t)),i.setRequestHeader(t,z(e.headers[t]))})),o.headers.forEach((function(t,e){-1===a.indexOf(e)&&i.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){i.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
|
|
99
99
|
// DONE (success or failure)
|
|
100
100
|
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}at.polyfill=!0,U.fetch||(U.fetch=at,U.Headers=Y,U.Request=rt,U.Response=ot),
|
|
101
101
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
@@ -117,7 +117,7 @@ self.fetch.bind(self);
|
|
|
117
117
|
PERFORMANCE OF THIS SOFTWARE.
|
|
118
118
|
***************************************************************************** */
|
|
119
119
|
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
120
|
-
var lt=function(t,e){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},lt(t,e)};function ut(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}lt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ht(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function ft(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function pt(t){return"function"==typeof t}function dt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var mt=dt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function yt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var bt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,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=ct(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var l=this.initialTeardown;if(pt(l))try{l()}catch(t){o=t instanceof mt?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=ct(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{Et(f)}catch(t){o=null!=o?o:[],t instanceof mt?o=ft(ft([],ht(o)),ht(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new mt(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Et(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&yt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&yt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),gt=bt.EMPTY;function vt(t){return t instanceof bt||t&&"closed"in t&&pt(t.remove)&&pt(t.add)&&pt(t.unsubscribe)}function Et(t){pt(t)?t():t.unsubscribe()}var _t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=wt.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,ft([t,e],ht(r))):setTimeout.apply(void 0,ft([t,e],ht(r)))},clearTimeout:function(t){var e=wt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Tt(){}var Bt=null;function At(t){if(_t.useDeprecatedSynchronousErrorHandling){var e=!Bt;if(e&&(Bt={errorThrown:!1,error:null}),t(),e){var r=Bt,n=r.errorThrown,o=r.error;if(Bt=null,n)throw o}}else t()}var Ht=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,vt(e)&&e.add(r)):r.destination=Ot,r}return ut(e,t),e.create=function(t,e,r){return new Lt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(bt),St=Function.prototype.bind;function Pt(t,e){return St.call(t,e)}var Rt=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Ct(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Ct(t)}else Ct(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Ct(t)}},t}(),Lt=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;pt(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&_t.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Pt(e.next,i),error:e.error&&Pt(e.error,i),complete:e.complete&&Pt(e.complete,i)}):o=e;return s.destination=new Rt(o),s}return ut(e,t),e}(Ht);function Ct(t){var e;e=t,wt.setTimeout((function(){throw e}))}var Ot={closed:!0,next:Tt,error:function(t){throw t},complete:Tt},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function It(t){return t}var Nt=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Ht||function(t){return t&&pt(t.next)&&pt(t.error)&&pt(t.complete)}(n)&&vt(n)?t:new Lt(t,e,r);return At((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Mt(e))((function(e,n){var o=new Lt({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[xt]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?It:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Mt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Mt(t){var e;return null!==(e=null!=t?t:_t.Promise)&&void 0!==e?e:Promise}var Gt=dt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ut=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return ut(e,t),e.prototype.lift=function(t){var e=new Dt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Gt},e.prototype.next=function(t){var e=this;At((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=ct(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;At((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;At((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?gt:(this.currentObservers=null,i.push(t),new bt((function(){e.currentObservers=null,yt(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Nt;return t.source=this,t},e.create=function(t,e){return new Dt(t,e)},e}(Nt),Dt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return ut(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:gt},e}(Ut),Ft={now:function(){return(Ft.delegate||Date).now()},delegate:void 0},kt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Ft);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return ut(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},e}(Ut);let $t=[],jt={};
|
|
120
|
+
var ut=function(t,e){return ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ut(t,e)};function lt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ut(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ht(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function ft(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function pt(t){return"function"==typeof t}function dt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var mt=dt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function yt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var bt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,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=ct(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var u=this.initialTeardown;if(pt(u))try{u()}catch(t){o=t instanceof mt?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=ct(l),h=c.next();!h.done;h=c.next()){var f=h.value;try{Et(f)}catch(t){o=null!=o?o:[],t instanceof mt?o=ft(ft([],ht(o)),ht(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new mt(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Et(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&yt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&yt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),gt=bt.EMPTY;function vt(t){return t instanceof bt||t&&"closed"in t&&pt(t.remove)&&pt(t.add)&&pt(t.unsubscribe)}function Et(t){pt(t)?t():t.unsubscribe()}var _t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=wt.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,ft([t,e],ht(r))):setTimeout.apply(void 0,ft([t,e],ht(r)))},clearTimeout:function(t){var e=wt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Tt(){}var Bt=null;function At(t){if(_t.useDeprecatedSynchronousErrorHandling){var e=!Bt;if(e&&(Bt={errorThrown:!1,error:null}),t(),e){var r=Bt,n=r.errorThrown,o=r.error;if(Bt=null,n)throw o}}else t()}var Ht=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,vt(e)&&e.add(r)):r.destination=Ot,r}return lt(e,t),e.create=function(t,e,r){return new Lt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(bt),St=Function.prototype.bind;function Pt(t,e){return St.call(t,e)}var Rt=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Ct(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Ct(t)}else Ct(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Ct(t)}},t}(),Lt=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;pt(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&_t.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Pt(e.next,i),error:e.error&&Pt(e.error,i),complete:e.complete&&Pt(e.complete,i)}):o=e;return s.destination=new Rt(o),s}return lt(e,t),e}(Ht);function Ct(t){var e;e=t,wt.setTimeout((function(){throw e}))}var Ot={closed:!0,next:Tt,error:function(t){throw t},complete:Tt},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function It(t){return t}var Nt=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Ht||function(t){return t&&pt(t.next)&&pt(t.error)&&pt(t.complete)}(n)&&vt(n)?t:new Lt(t,e,r);return At((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Mt(e))((function(e,n){var o=new Lt({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[xt]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?It:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Mt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Mt(t){var e;return null!==(e=null!=t?t:_t.Promise)&&void 0!==e?e:Promise}var Gt=dt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ut=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return lt(e,t),e.prototype.lift=function(t){var e=new Dt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Gt},e.prototype.next=function(t){var e=this;At((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=ct(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;At((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;At((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?gt:(this.currentObservers=null,i.push(t),new bt((function(){e.currentObservers=null,yt(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Nt;return t.source=this,t},e.create=function(t,e){return new Dt(t,e)},e}(Nt),Dt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return lt(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:gt},e}(Ut),Ft={now:function(){return(Ft.delegate||Date).now()},delegate:void 0},$t=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Ft);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return lt(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},e}(Ut);let kt=[],jt={};
|
|
121
121
|
/**
|
|
122
122
|
* @name topic
|
|
123
123
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -132,7 +132,7 @@ const Vt=[];
|
|
|
132
132
|
* @param {StartStopNotifier=} start
|
|
133
133
|
*/
|
|
134
134
|
function Wt(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
|
|
135
|
-
const t=!Vt.length;for(const t of o)t[1](),Vt.push(t,e);if(t){for(let t=0;t<Vt.length;t+=2)Vt[t][0](Vt[t+1]);Vt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const
|
|
135
|
+
const t=!Vt.length;for(const t of o)t[1](),Vt.push(t,e);if(t){for(let t=0;t<Vt.length;t+=2)Vt[t][0](Vt[t+1]);Vt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const u=[i,a];return o.add(u),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(u),0===o.size&&n&&(n(),n=null)}}}}function Xt(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,u=r.length<2;return c=e=>{let i=!1;const c=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,e);u?e(n):f=o(n)?n:t},d=a.map(((t,e)=>l(t,(t=>{c[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f(),
|
|
136
136
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
137
137
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
138
138
|
// invoke this derived store.
|
|
@@ -150,11 +150,11 @@ function Qt(t,e,r){var n={};return r.isMergeableObject(t)&&Jt(t).forEach((functi
|
|
|
150
150
|
})(t,o)||(qt(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return te;var r=e.customMerge(t);return"function"==typeof r?r:te}(o,r)(t[o],e[o],r):n[o]=Yt(e[o],r))})),n}function te(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Zt,r.isMergeableObject=r.isMergeableObject||zt,
|
|
151
151
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
152
152
|
// implementations can use it. The caller may not replace it.
|
|
153
|
-
r.cloneUnlessOtherwiseSpecified=Yt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Qt(t,e,r):Yt(e,r)}te.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return te(t,r,e)}),{})};var ee=te,re=function(t,e){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},re(t,e)};function ne(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}re(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var oe,ie,se,ae=function(){return ae=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ae.apply(this,arguments)};function
|
|
153
|
+
r.cloneUnlessOtherwiseSpecified=Yt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Qt(t,e,r):Yt(e,r)}te.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return te(t,r,e)}),{})};var ee=te,re=function(t,e){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},re(t,e)};function ne(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}re(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var oe,ie,se,ae=function(){return ae=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ae.apply(this,arguments)};function ue(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}
|
|
154
154
|
/**
|
|
155
155
|
* Type Guards
|
|
156
156
|
*/
|
|
157
|
-
function
|
|
157
|
+
function le(t){return t.type===ie.literal}function ce(t){return t.type===ie.argument}function he(t){return t.type===ie.number}function fe(t){return t.type===ie.date}function pe(t){return t.type===ie.time}function de(t){return t.type===ie.select}function me(t){return t.type===ie.plural}function ye(t){return t.type===ie.pound}function be(t){return t.type===ie.tag}function ge(t){return!(!t||"object"!=typeof t||t.type!==se.number)}function ve(t){return!(!t||"object"!=typeof t||t.type!==se.dateTime)}
|
|
158
158
|
// @generated from regex-gen.ts
|
|
159
159
|
"function"==typeof SuppressedError&&SuppressedError,function(t){
|
|
160
160
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -349,7 +349,7 @@ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
349
349
|
var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ie[r||""]||Ie[n||""]||Ie["".concat(n,"-001")]||Ie["001"])[0]}var Me=new RegExp("^".concat(Ee.source,"*")),Ge=new RegExp("".concat(Ee.source,"*$"));function Ue(t,e){return{start:t,end:e}}
|
|
350
350
|
// #region Ponyfills
|
|
351
351
|
// Consolidate these variables up top for easier toggling during debugging
|
|
352
|
-
var De=!!String.prototype.startsWith,Fe=!!String.fromCodePoint
|
|
352
|
+
var De=!!String.prototype.startsWith,Fe=!!String.fromCodePoint,$e=!!Object.fromEntries,ke=!!String.prototype.codePointAt,je=!!String.prototype.trimStart,Ve=!!String.prototype.trimEnd,We=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Xe=!0;try{
|
|
353
353
|
/**
|
|
354
354
|
* legacy Edge or Xbox One browser
|
|
355
355
|
* Unicode flag support: supported
|
|
@@ -361,8 +361,8 @@ function(t,e,r){return t.startsWith(e,r)}:// For IE11
|
|
|
361
361
|
function(t,e,r){return t.slice(r,r+e.length)===e},Ye=Fe?String.fromCodePoint:// IE11
|
|
362
362
|
function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ze=
|
|
363
363
|
// native
|
|
364
|
-
|
|
365
|
-
function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Je
|
|
364
|
+
$e?Object.fromEntries:// Ponyfill
|
|
365
|
+
function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Je=ke?// Native
|
|
366
366
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
|
367
367
|
function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},qe=je?// Native
|
|
368
368
|
function(t){return t.trimStart()}:// Ponyfill
|
|
@@ -453,17 +453,17 @@ return this.error(oe.EXPECT_ARGUMENT_TYPE,Ue(i,a));case"number":case"date":case"
|
|
|
453
453
|
// Parse this range:
|
|
454
454
|
// {name, number, style}
|
|
455
455
|
// ^-------^
|
|
456
|
-
this.bumpSpace();var
|
|
456
|
+
this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Qe(b.val)).length)return this.error(oe.EXPECT_ARGUMENT_STYLE,Ue(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:Ue(l,this.clonePosition())}}if((g=this.tryParseArgumentClose(n)).err)return g;var c=Ue(n,this.clonePosition());
|
|
457
457
|
// Extract style or skeleton
|
|
458
|
-
if(
|
|
458
|
+
if(u&&Ke(null==u?void 0:u.style,"::",0)){
|
|
459
459
|
// Skeleton starts with `::`.
|
|
460
|
-
var h=qe(
|
|
460
|
+
var h=qe(u.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?b:{val:{type:ie.number,value:r,location:c,style:b.val},err:null};if(0===h.length)return this.error(oe.EXPECT_DATE_TIME_SKELETON,c);var f=h;
|
|
461
461
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
462
462
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
463
463
|
// for unsupported patterns.
|
|
464
|
-
this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),
|
|
464
|
+
this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),u=Ne(e);for("H"!=u&&"k"!=u||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=u+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:se.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?we(f):{}};return{val:{type:"date"===s?ie.date:ie.time,value:r,location:c,style:p},err:null}}
|
|
465
465
|
// Regular style or no style.
|
|
466
|
-
return{val:{type:"number"===s?ie.number:"date"===s?ie.date:ie.time,value:r,location:c,style:null!==(o=null==
|
|
466
|
+
return{val:{type:"number"===s?ie.number:"date"===s?ie.date:ie.time,value:r,location:c,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
|
|
467
467
|
// Parse this range:
|
|
468
468
|
// {name, plural, options}
|
|
469
469
|
// ^---------^
|
|
@@ -487,7 +487,7 @@ t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePos
|
|
|
487
487
|
// Find the end of the quoted literal text.
|
|
488
488
|
this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(oe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ue(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
|
|
489
489
|
// Parse the skeleton
|
|
490
|
-
for(var e=t.split(Te).filter((function(t){return t.length>0})),r=[],n=0,o=e;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),
|
|
490
|
+
for(var e=t.split(Te).filter((function(t){return t.length>0})),r=[],n=0,o=e;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),u=0,l=a;u<l.length;u++)if(0===l[u].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(t)}catch(t){return this.error(oe.INVALID_NUMBER_SKELETON,e)}return{val:{type:se.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Oe(r):{}},err:null}},
|
|
491
491
|
/**
|
|
492
492
|
* @param nesting_level The current nesting level of messages.
|
|
493
493
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -502,19 +502,19 @@ t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
|
|
|
502
502
|
// Parse:
|
|
503
503
|
// one {one apple}
|
|
504
504
|
// ^--^
|
|
505
|
-
for(var o,i=!1,s=[],a=new Set,
|
|
505
|
+
for(var o,i=!1,s=[],a=new Set,u=n.value,l=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
|
|
506
506
|
// Try parse `={number}` selector
|
|
507
|
-
var h=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;
|
|
507
|
+
var h=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=Ue(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}
|
|
508
508
|
// Duplicate selector clauses
|
|
509
|
-
if(a.has(
|
|
509
|
+
if(a.has(u))return this.error("select"===e?oe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:oe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(i=!0),
|
|
510
510
|
// Parse:
|
|
511
511
|
// one {one apple}
|
|
512
512
|
// ^----------^
|
|
513
|
-
this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?oe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([
|
|
513
|
+
this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?oe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([u,{value:p.val,location:Ue(f,this.clonePosition())}]),
|
|
514
514
|
// Keep track of the existing selectors
|
|
515
|
-
a.add(
|
|
515
|
+
a.add(u),
|
|
516
516
|
// Prep next selector clause.
|
|
517
|
-
this.bumpSpace(),
|
|
517
|
+
this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,l=o.location}return 0===s.length?this.error("select"===e?oe.EXPECT_SELECT_ARGUMENT_SELECTOR:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(oe.MISSING_OTHER_CLAUSE,Ue(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Ue(n,this.clonePosition());return o?We(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
|
|
518
518
|
// This is much faster than `Object.assign` or spread.
|
|
519
519
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
520
520
|
/**
|
|
@@ -562,7 +562,7 @@ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this
|
|
|
562
562
|
/**
|
|
563
563
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
564
564
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
565
|
-
*/function sr(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ar(t){t.forEach((function(t){if(delete t.location,de(t)||me(t))for(var e in t.options)delete t.options[e].location,ar(t.options[e].value);else he(t)&&ge(t.style)||(fe(t)||pe(t))&&ve(t.style)?delete t.style.location:be(t)&&ar(t.children)}))}function
|
|
565
|
+
*/function sr(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ar(t){t.forEach((function(t){if(delete t.location,de(t)||me(t))for(var e in t.options)delete t.options[e].location,ar(t.options[e].value);else he(t)&&ge(t.style)||(fe(t)||pe(t))&&ve(t.style)?delete t.style.location:be(t)&&ar(t.children)}))}function ur(t,e){void 0===e&&(e={}),e=ae({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new rr(t,e).parse();if(r.err){var n=SyntaxError(oe[r.err.kind]);
|
|
566
566
|
// @ts-expect-error Assign to error object
|
|
567
567
|
throw n.location=r.err.location,
|
|
568
568
|
// @ts-expect-error Assign to error object
|
|
@@ -570,7 +570,7 @@ n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||ar(r
|
|
|
570
570
|
|
|
571
571
|
// Main
|
|
572
572
|
|
|
573
|
-
function
|
|
573
|
+
function lr(t,e){var r=e&&e.cache?e.cache:br,n=e&&e.serializer?e.serializer:dr;return(e&&e.strategy?e.strategy:pr)(t,{cache:r,serializer:n})}
|
|
574
574
|
|
|
575
575
|
// Strategy
|
|
576
576
|
|
|
@@ -594,9 +594,9 @@ function Ar(t,e,r,n,o,i,
|
|
|
594
594
|
// For debugging
|
|
595
595
|
s){
|
|
596
596
|
// Hot path for straight simple msg translations
|
|
597
|
-
if(1===t.length&&
|
|
597
|
+
if(1===t.length&&le(t[0]))return[{type:vr.literal,value:t[0].value}];for(var a=[],u=0,l=t;u<l.length;u++){var c=l[u];
|
|
598
598
|
// Exit early for string parts.
|
|
599
|
-
if(
|
|
599
|
+
if(le(c))a.push({type:vr.literal,value:c.value});else
|
|
600
600
|
// TODO: should this part be literal type?
|
|
601
601
|
// Replace `#` in plural rules with the actual numeric value.
|
|
602
602
|
if(ye(c))"number"==typeof i&&a.push({type:vr.literal,value:r.getNumberFormat(e).format(i)});else{var h=c.value;
|
|
@@ -621,7 +621,7 @@ this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(thi
|
|
|
621
621
|
this.ast=t.__parse(e,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
622
622
|
// Creates a new object with the specified `formats` merged with the default
|
|
623
623
|
// formats.
|
|
624
|
-
this.formats=Hr(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:
|
|
624
|
+
this.formats=Hr(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ue([void 0],e,!1)))}),{cache:Sr(i.number),strategy:gr.variadic}),getDateTimeFormat:lr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ue([void 0],e,!1)))}),{cache:Sr(i.dateTime),strategy:gr.variadic}),getPluralRules:lr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ue([void 0],e,!1)))}),{cache:Sr(i.pluralRules),strategy:gr.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=ur,
|
|
625
625
|
// Default format options used as the prototype of the `formats` provided to the
|
|
626
626
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
627
627
|
// and Intl.DateTimeFormat instances.
|
|
@@ -630,25 +630,25 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
630
630
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
631
631
|
Copyrights licensed under the New BSD License.
|
|
632
632
|
See the accompanying LICENSE file for terms.
|
|
633
|
-
*/const Lr={},Cr=(t,e,r)=>r?(e in Lr||(Lr[e]={}),t in Lr[e]||(Lr[e][t]=r),r):r,Or=(t,e)=>{if(null==e)return;if(e in Lr&&t in Lr[e])return Lr[e][t];const r=Yr(e);for(let n=0;n<r.length;n++){const o=Mr(r[n],t);if(o)return Cr(t,e,o)}};let xr;const Ir=Wt({});function Nr(t){return t in xr}function Mr(t,e){if(!Nr(t))return null;const r=function(t){return xr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Gr(t,...e){delete Lr[t],Ir.update((r=>(r[t]=ee.all([r[t]||{},...e]),r)))}Xt([Ir],(([t])=>Object.keys(t))),Ir.subscribe((t=>xr=t));const Ur={};function Dr(t){return Ur[t]}function Fr(t){return null!=t&&Yr(t).some((t=>{var e;return null===(e=Dr(t))||void 0===e?void 0:e.size}))}const
|
|
633
|
+
*/const Lr={},Cr=(t,e,r)=>r?(e in Lr||(Lr[e]={}),t in Lr[e]||(Lr[e][t]=r),r):r,Or=(t,e)=>{if(null==e)return;if(e in Lr&&t in Lr[e])return Lr[e][t];const r=Yr(e);for(let n=0;n<r.length;n++){const o=Mr(r[n],t);if(o)return Cr(t,e,o)}};let xr;const Ir=Wt({});function Nr(t){return t in xr}function Mr(t,e){if(!Nr(t))return null;const r=function(t){return xr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Gr(t,...e){delete Lr[t],Ir.update((r=>(r[t]=ee.all([r[t]||{},...e]),r)))}Xt([Ir],(([t])=>Object.keys(t))),Ir.subscribe((t=>xr=t));const Ur={};function Dr(t){return Ur[t]}function Fr(t){return null!=t&&Yr(t).some((t=>{var e;return null===(e=Dr(t))||void 0===e?void 0:e.size}))}const $r={};function kr(t){if(!Fr(t))return t in $r?$r[t]:Promise.resolve();const e=function(t){return Yr(t).map((t=>{const e=Dr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return $r[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Ur[t].delete(e),0===Ur[t].size&&delete Ur[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Gr(t,...e)))}(t,e)))).then((()=>{if(Fr(t))return kr(t);delete $r[t]})),$r[t]}const jr={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 Vr(){return jr}const Wr=Wt(!1);let Xr;const zr=Wt(null);function Kr(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Yr(t,e=Vr().fallbackLocale){const r=Kr(t);return e?[...new Set([...r,...Kr(e)])]:r}function Zr(){return null!=Xr?Xr:void 0}zr.subscribe((t=>{Xr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Jr={...zr,set:t=>{if(t&&function(t){if(null==t)return;const e=Yr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Nr(r))return r}}(t)&&Fr(t)){const{loadingDelay:e}=Vr();let r;return"undefined"!=typeof window&&null!=Zr()&&e?r=window.setTimeout((()=>Wr.set(!0)),e):Wr.set(!0),kr(t).then((()=>{zr.set(t)})).finally((()=>{clearTimeout(r),Wr.set(!1)}))}return zr.set(t)}},qr=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Qr=(t,e)=>{const{formats:r}=Vr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},tn=qr((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return e&&(r=Qr("number",e)),new Intl.NumberFormat(t,r)})),en=qr((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return e?r=Qr("date",e):0===Object.keys(r).length&&(r=Qr("date","short")),new Intl.DateTimeFormat(t,r)})),rn=qr((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return e?r=Qr("time",e):0===Object.keys(r).length&&(r=Qr("time","short")),new Intl.DateTimeFormat(t,r)})),nn=qr(((t,e=Zr())=>new Rr(t,e,Vr().formats,{ignoreTag:Vr().ignoreTag}))),on=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=Zr(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Or(t,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(i=null!==(o=null===(n=(r=Vr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:u,id:t,defaultValue:l}))&&void 0!==o?o:l)&&void 0!==i?i:t;if(!a)return c;let h=c;try{h=nn(c,u).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},sn=(t,e)=>(({locale:t=Zr(),...e}={})=>rn({locale:t,...e}))(e).format(t),an=(t,e)=>(({locale:t=Zr(),...e}={})=>en({locale:t,...e}))(e).format(t),un=(t,e)=>(({locale:t=Zr(),...e}={})=>tn({locale:t,...e}))(e).format(t),ln=(t,e=Zr())=>Or(t,e),cn=Xt([Jr,Ir],(()=>on));Xt([Jr],(()=>sn)),Xt([Jr],(()=>an)),Xt([Jr],(()=>un)),Xt([Jr,Ir],(()=>ln)),window.emWidgets={topic:(t,e=0)=>{if(-1==kt.indexOf(t)){let r=new $t(e);jt[t]=r,kt.push(t)}return jt[t]}};function hn(t,e){Gr(t,e)}const fn={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"},tr:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora"}};
|
|
634
634
|
/* src/CasinoRandomGame.svelte generated by Svelte v3.59.2 */function pn(t,e,r){const n=t.slice();return n[35]=e[r],n[37]=r,n}
|
|
635
635
|
// (143:4) {#if show}
|
|
636
|
-
function dn(t){let e,r,n,o,i,s,a,
|
|
636
|
+
function dn(t){let e,r,n,o,i,s,a,u=!/*slotDone*/t[7]&&mn(t),l=/*slotDone*/t[7]&&bn(t);return{c(){e=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(),u&&u.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(e,"class","ModalWindow"),b(e,"part","ModalWindow")},m(f,p){h(f,e,p),c(e,r),c(r,n),c(r,o),u&&u.m(r,null),c(r,i),l&&l.m(r,null),s||(a=y(n,"click",/*closeModal*/t[11]),s=!0)},p(t,e){/*slotDone*/t[7]?u&&(u.d(1),u=null):u?u.p(t,e):(u=mn(t),u.c(),u.m(r,i)),/*slotDone*/t[7]?l?l.p(t,e):(l=bn(t),l.c(),l.m(r,null)):l&&(l.d(1),l=null)},d(t){t&&f(e),u&&u.d(),l&&l.d(),s=!1,a()}}}
|
|
637
637
|
// (152:8) {#if !slotDone}
|
|
638
|
-
function mn(t){let e,r,n,o,i,s,a=/*$_*/t[8]("randomGameLoading")+"",
|
|
638
|
+
function mn(t){let e,r,n,o,i,s,a=/*$_*/t[8]("randomGameLoading")+"",u=/*gamesToShow*/t[4],l=[];for(let e=0;e<u.length;e+=1)l[e]=yn(pn(t,u,e));return{c(){e=p("div"),r=p("main"),n=p("div");for(let t=0;t<l.length;t+=1)l[t].c();o=m(),i=p("p"),s=d(a),b(n,"class","items"),b(n,"part","items"),v(n,"transform","translateY("+/*offset*/t[6]+"px)"),b(r,"class","RandomGamesSliderWrapper"),b(r,"part","RandomGamesSliderWrapper"),b(i,"class","RandomGameLoading"),b(i,"part","RandomGameLoading"),b(e,"class","RandomGameWrapper"),b(e,"part","RandomGameWrapper")},m(t,a){h(t,e,a),c(e,r),c(r,n);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(n,null);c(e,o),c(e,i),c(i,s)},p(t,e){if(/*gamesToShow*/16&e[0]){let r;for(u=/*gamesToShow*/t[4],r=0;r<u.length;r+=1){const o=pn(t,u,r);l[r]?l[r].p(o,e):(l[r]=yn(o),l[r].c(),l[r].m(n,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=u.length}/*offset*/64&e[0]&&v(n,"transform","translateY("+/*offset*/t[6]+"px)"),/*$_*/256&e[0]&&a!==(a=/*$_*/t[8]("randomGameLoading")+"")&&g(s,a)},d(t){t&&f(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(l,t)}}}
|
|
639
639
|
// (156:16) {#each gamesToShow as game, i}
|
|
640
|
-
function yn(t){let e,r,n,o,i,s;return{c(){e=p("div"),r=p("img"),s=m(),b(r,"class","RandomGameImage"),b(r,"part","RandomGameImage"),
|
|
640
|
+
function yn(t){let e,r,n,o,i,s;return{c(){e=p("div"),r=p("img"),s=m(),b(r,"class","RandomGameImage"),b(r,"part","RandomGameImage"),u(r.src,n=/*game*/t[35].thumbnail)||b(r,"src",n),b(r,"alt",o=/*game*/t[35].name),b(r,"title",i=/*game*/t[35].name),b(e,"class","item"),b(e,"part","item")},m(t,n){h(t,e,n),c(e,r),c(e,s)},p(t,e){/*gamesToShow*/16&e[0]&&!u(r.src,n=/*game*/t[35].thumbnail)&&b(r,"src",n),/*gamesToShow*/16&e[0]&&o!==(o=/*game*/t[35].name)&&b(r,"alt",o),/*gamesToShow*/16&e[0]&&i!==(i=/*game*/t[35].name)&&b(r,"title",i)},d(t){t&&f(e)}}}
|
|
641
641
|
// (167:8) {#if slotDone}
|
|
642
|
-
function bn(t){let e,r,o,i,s,a,
|
|
642
|
+
function bn(t){let e,r,o,i,s,a,l,v,E,_,w,T,B,A,H,S,P,R,L,C,O=/*randomGame*/t[3].name+"",x=/*randomGame*/t[3].vendor.name+"",I=/*$_*/t[8]("playNowRandomGame")+"";return{c(){e=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(O),B=m(),A=p("p"),H=d(x),S=m(),P=p("button"),R=d(I),b(o,"class","RandomGameImage"),b(o,"part","RandomGameImage"),u(o.src,i=/*randomGame*/t[3].thumbnail)||b(o,"src",i),b(o,"alt",s=/*randomGame*/t[3].name),b(o,"title",a=/*randomGame*/t[3].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(e,"class","RandomGameWrapper"),b(e,"part","RandomGameWrapper")},m(n,i){h(n,e,i),c(e,r),c(r,o),c(r,l),c(r,v),c(e,E),c(e,_),c(_,w),c(w,T),c(_,B),c(_,A),c(A,H),c(_,S),c(_,P),c(P,R),L||(C=[y(v,"click",/*click_handler*/t[20]),y(P,"click",/*click_handler_1*/t[21])],L=!0)},p(t,e){/*randomGame*/8&e[0]&&!u(o.src,i=/*randomGame*/t[3].thumbnail)&&b(o,"src",i),/*randomGame*/8&e[0]&&s!==(s=/*randomGame*/t[3].name)&&b(o,"alt",s),/*randomGame*/8&e[0]&&a!==(a=/*randomGame*/t[3].name)&&b(o,"title",a),/*randomGame*/8&e[0]&&O!==(O=/*randomGame*/t[3].name+"")&&g(T,O),/*randomGame*/8&e[0]&&x!==(x=/*randomGame*/t[3].vendor.name+"")&&g(H,x),/*$_*/256&e[0]&&I!==(I=/*$_*/t[8]("playNowRandomGame")+"")&&g(R,I)},d(t){t&&f(e),L=!1,n(C)}}}
|
|
643
643
|
// (195:30)
|
|
644
644
|
function gn(t){let e,r,n=/*$_*/t[8]("playRandomGame")+"";return{c(){e=p("span"),r=d(n),b(e,"class","RandomButtonText"),b(e,"part","RandomButtonText")},m(t,n){h(t,e,n),c(e,r)},p(t,e){/*$_*/256&e[0]&&n!==(n=/*$_*/t[8]("playRandomGame")+"")&&g(r,n)},d(t){t&&f(e)}}}
|
|
645
645
|
// (193:8) {#if buttontext}
|
|
646
|
-
function vn(t){let e,r;return{c(){e=p("span"),r=d(/*buttontext*/t[1]),b(e,"class","RandomButtonText")},m(t,n){h(t,e,n),c(e,r)},p(t,e){/*buttontext*/2&e[0]&&g(r,/*buttontext*/t[1])},d(t){t&&f(e)}}}function En(e){let r,n,o,i,s,a,l,
|
|
646
|
+
function vn(t){let e,r;return{c(){e=p("span"),r=d(/*buttontext*/t[1]),b(e,"class","RandomButtonText")},m(t,n){h(t,e,n),c(e,r)},p(t,e){/*buttontext*/2&e[0]&&g(r,/*buttontext*/t[1])},d(t){t&&f(e)}}}function En(e){let r,n,o,i,s,a,u,l,d=/*show*/e[5]&&dn(e);function g(t,e){/*buttontext*/
|
|
647
647
|
return t[1]?vn:/*buttontext*/t[1]?void 0:gn}let v=g(e),E=v&&v(e);return{c(){r=p("div"),d&&d.c(),n=m(),o=p("div"),i=p("button"),E&&E.c(),s=m(),a=p("span"),this.c=t,b(a,"class","RandomButtonIcon"),b(a,"part","RandomButtonIcon"),b(i,"class","RandomButton"),b(i,"part","RandomButton"),b(o,"class","RandomButtonWrapper"),b(o,"part","RandomButtonWrapper"),b(r,"part","CustomStylingContainer")},m(t,f){h(t,r,f),d&&d.m(r,null),c(r,n),c(r,o),c(o,i),E&&E.m(i,null),c(i,s),c(i,a),a.innerHTML=/*randombuttonicon*/e[0],
|
|
648
|
-
/*div1_binding*/e[23](r),
|
|
649
|
-
/*div1_binding*/,e[23](null),
|
|
648
|
+
/*div1_binding*/e[23](r),u||(l=y(i,"click",/*click_handler_2*/e[22]),u=!0)},p(t,e){/*show*/t[5]?d?d.p(t,e):(d=dn(t),d.c(),d.m(r,n)):d&&(d.d(1),d=null),v===(v=g(t))&&E?E.p(t,e):(E&&E.d(1),E=v&&v(t),E&&(E.c(),E.m(i,s))),/*randombuttonicon*/1&e[0]&&(a.innerHTML=/*randombuttonicon*/t[0])},i:t,o:t,d(t){t&&f(r),d&&d.d(),E&&E.d()
|
|
649
|
+
/*div1_binding*/,e[23](null),u=!1,l()}}}function _n(t,e,r){let n;var o,i;o=cn,i=t=>r(8,n=t),t.$$.on_destroy.push(l(o,i));let s,a,{endpoint:u=""}=e,{datasource:c=""}=e,{gameevent:h=""}=e,{lang:f=""}=e,{randombuttonicon:p=""}=e,{buttontext:d=""}=e,{translationurl:m=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{filteredrandomgamecategories:g=""}=e,v=[],E="",_=!1,w=0,B=0,A=!1,H=window.navigator.userAgent;!function({withLocale:t,translations:e}){Jr.subscribe((r=>{null==r&&(Ir.set(e),Jr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
650
650
|
/*dictionary.set(translations);
|
|
651
651
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(fn).forEach((t=>{hn(t,fn[t])}));const S=()=>{r(4,s=L(s)),r(6,w=0),B=0,r(7,A=!1),r(3,E=v[Math.floor(Math.random()*v.length)]),r(5,_=!0)};let P;const R=t=>{if(g)do{S()}while(!g.includes(E.vendor.name));else S();clearInterval(P),P=setInterval((()=>{r(6,w-=75),B++,20==B&&(r(7,A=!0),clearInterval(P))}),150),t&&"function"==typeof gtag&>ag("event","RefreshRandomGame",{context:"RandomGameWidget",gameId:`${E.gId||E.id}`}),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href)},L=t=>{let e,r=t.length;for(;0!=r;)e=Math.floor(Math.random()*r),r--,[t[r],t[e]]=[t[e],t[r]];return t},C=()=>{window.postMessage({type:h,gameId:E.gId||E.id},window.location.href),r(5,_=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),
|
|
652
652
|
//Analytics event
|
|
653
|
-
"function"==typeof gtag&>ag("event","OpenGame",{context:"RandomGameWidget",gameId:`${E.gId||E.id}`})},O=()=>{var t;t=f,Jr.set(t)};return t.$$set=t=>{"endpoint"in t&&r(12,
|
|
653
|
+
"function"==typeof gtag&>ag("event","OpenGame",{context:"RandomGameWidget",gameId:`${E.gId||E.id}`})},O=()=>{var t;t=f,Jr.set(t)};return t.$$set=t=>{"endpoint"in t&&r(12,u=t.endpoint),"datasource"in t&&r(13,c=t.datasource),"gameevent"in t&&r(14,h=t.gameevent),"lang"in t&&r(15,f=t.lang),"randombuttonicon"in t&&r(0,p=t.randombuttonicon),"buttontext"in t&&r(1,d=t.buttontext),"translationurl"in t&&r(16,m=t.translationurl),"clientstyling"in t&&r(17,y=t.clientstyling),"clientstylingurl"in t&&r(18,b=t.clientstylingurl),"filteredrandomgamecategories"in t&&r(19,g=t.filteredrandomgamecategories)},t.$$.update=()=>{/*lang*/32768&t.$$.dirty[0]&&f&&O(),/*translationurl*/65536&t.$$.dirty[0]&&m&&fetch(m).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{hn(e,t[e])}))})).catch((t=>{console.log(t)})),/*endpoint, datasource*/12288&t.$$.dirty[0]&&u&&c&&(()=>{let t=new URL(`${u}/casino/games`);t.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(H)),t.searchParams.append("datasource",c),t.searchParams.append("fields","gId,id,href,thumbnail,name,vendor"),t.searchParams.append("expand","vendor"),t.searchParams.append("pagination","offset=0,limit=1000"),fetch(t.href).then((t=>t.json())).then((t=>{v=t.items,r(4,s=v.slice(0,19))}))})(),/*clientstyling, customStylingContainer*/131076&t.$$.dirty[0]&&y&&a&&(()=>{let t=document.createElement("style");t.innerHTML=y,a.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/262148&t.$$.dirty[0]&&b&&a&&(()=>{let t=new URL(b),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})()},[p,d,a,E,s,_,w,A,n,R,C,()=>{r(5,_=!1),window.postMessage({type:"RandomWidgetState",state:_},window.location.href)},u,c,h,f,m,y,b,g,()=>R(!0),()=>C(),()=>R(),function(t){T[t?"unshift":"push"]((()=>{a=t,r(2,a)}))}]}class wn extends G{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::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;transition:transform 400ms ease-in-out}.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}",this.shadowRoot.appendChild(e),M(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},_n,En,i,{endpoint:12,datasource:13,gameevent:14,lang:15,randombuttonicon:0,buttontext:1,translationurl:16,clientstyling:17,clientstylingurl:18,filteredrandomgamecategories:19},null,[-1,-1]),t&&(t.target&&h(t.target,this,t.anchor),t.props&&(this.$set(t.props),C()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang","randombuttonicon","buttontext","translationurl","clientstyling","clientstylingurl","filteredrandomgamecategories"]}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),C()}get datasource(){return this.$$.ctx[13]}set datasource(t){this.$$set({datasource:t}),C()}get gameevent(){return this.$$.ctx[14]}set gameevent(t){this.$$set({gameevent:t}),C()}get lang(){return this.$$.ctx[15]}set lang(t){this.$$set({lang:t}),C()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),C()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),C()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),C()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(t){this.$$set({clientstyling:t}),C()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),C()}get filteredrandomgamecategories(){return this.$$.ctx[19]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),C()}}return!customElements.get("casino-random-game")&&customElements.define("casino-random-game",wn),wn}));
|
|
654
654
|
//# sourceMappingURL=casino-random-game.js.map
|