@everymatrix/casino-betslip-indicator 1.13.6 → 1.13.8
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.
|
@@ -75,9 +75,12 @@ for(const e in this.$$.slotted)
|
|
|
75
75
|
// @ts-ignore todo: improve typings
|
|
76
76
|
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){L(this,1),this.$destroy=e}$on(t,r){
|
|
77
77
|
// TODO should this delegate to addEventListener?
|
|
78
|
-
if(!o(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}})
|
|
78
|
+
if(!o(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}})
|
|
79
|
+
/* eslint-disable no-prototype-builtins */;var N="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
80
|
+
// eslint-disable-next-line no-undef
|
|
81
|
+
"undefined"!=typeof global&&global||{},R="URLSearchParams"in N,M="Symbol"in N&&"iterator"in Symbol,U="FileReader"in N&&"Blob"in N&&function(){try{return new Blob,!0}catch(e){return!1}}(),x="FormData"in N,D="ArrayBuffer"in N;if(D)var G=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],F=ArrayBuffer.isView||function(e){return e&&G.indexOf(Object.prototype.toString.call(e))>-1};function k(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function j(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
79
82
|
// Build a destructive iterator for the value list
|
|
80
|
-
function $(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return M&&(t[Symbol.iterator]=function(){return t}),t}function V(e){this.map={},e instanceof V?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function X(e){if(e.
|
|
83
|
+
function $(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return M&&(t[Symbol.iterator]=function(){return t}),t}function V(e){this.map={},e instanceof V?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function X(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function z(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function K(e){var t=new FileReader,r=z(t);return t.readAsArrayBuffer(e),r}function Z(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
81
84
|
/*
|
|
82
85
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
83
86
|
provide useful test harness features such as flush. However, on
|
|
@@ -88,19 +91,20 @@ function $(e){var t={next:function(){var t=e.shift();return{done:void 0===t,valu
|
|
|
88
91
|
semantic of setting Request.bodyUsed in the constructor before
|
|
89
92
|
_initBody is called.
|
|
90
93
|
*/
|
|
91
|
-
|
|
94
|
+
// eslint-disable-next-line no-self-assign
|
|
95
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:U&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:x&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:R&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():D&&U&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Z(e.buffer),
|
|
92
96
|
// IE 10-11 can't handle a DataView body.
|
|
93
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):D&&(ArrayBuffer.prototype.isPrototypeOf(e)||F(e))?this._bodyArrayBuffer=
|
|
97
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):D&&(ArrayBuffer.prototype.isPrototypeOf(e)||F(e))?this._bodyArrayBuffer=Z(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):R&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},U&&(this.blob=function(){var e=X(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=X(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(U)return this.blob().then(K);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=X(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=z(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},x&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
94
98
|
// HTTP methods whose capitalization should be normalized
|
|
95
|
-
V.prototype.append=function(e,t){e=k(e),t=j(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},V.prototype.delete=function(e){delete this.map[k(e)]},V.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},V.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},V.prototype.set=function(e,t){this.map[k(e)]=j(t)},V.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},V.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),$(e)},V.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),$(e)},V.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),$(e)},M&&(V.prototype[Symbol.iterator]=V.prototype.entries);var W=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function q(e,t){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof q){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new V(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new V(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),W.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.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"!==t.cache&&"no-cache"!==t.cache)){
|
|
99
|
+
V.prototype.append=function(e,t){e=k(e),t=j(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},V.prototype.delete=function(e){delete this.map[k(e)]},V.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},V.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},V.prototype.set=function(e,t){this.map[k(e)]=j(t)},V.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},V.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),$(e)},V.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),$(e)},V.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),$(e)},M&&(V.prototype[Symbol.iterator]=V.prototype.entries);var W=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function q(e,t){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof q){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new V(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new V(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),W.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in N)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"!==t.cache&&"no-cache"!==t.cache)){
|
|
96
100
|
// Search for a '_' parameter in the query string
|
|
97
101
|
var i=/([?&])_=[^&]*/;if(i.test(this.url))
|
|
98
102
|
// If it already exists then set the value with the current time
|
|
99
|
-
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function J(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function Q(e,t){if(!(this instanceof Q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new V(t.headers),this.url=t.url||"",this._initBody(e)}q.prototype.clone=function(){return new q(this,{body:this._bodyInit})},
|
|
103
|
+
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function J(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function Q(e,t){if(!(this instanceof Q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.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===t.statusText?"":""+t.statusText,this.headers=new V(t.headers),this.url=t.url||"",this._initBody(e)}q.prototype.clone=function(){return new q(this,{body:this._bodyInit})},Y.call(q.prototype),Y.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new V(this.headers),url:this.url})},Q.error=function(){var e=new Q(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var ee=[301,302,303,307,308];Q.redirect=function(e,t){if(-1===ee.indexOf(t))throw new RangeError("Invalid status code");return new Q(null,{status:t,headers:{location:e}})};var te=N.DOMException;try{new te}catch(e){(te=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),te.prototype.constructor=te}function re(e,t){return new Promise((function(r,n){var o=new q(e,t);if(o.signal&&o.signal.aborted)return n(new te("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var e=i.getAllResponseHeaders(),t=i.getResponseHeader("set-cookie");t&&(e=e.replace(t,t.replace(/\r?\n/g,", ")));var n,o,s={status:i.status,statusText:i.statusText,headers:(n=e||"",o=new V,
|
|
100
104
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
101
105
|
// https://github.com/github/fetch/issues/748
|
|
102
106
|
// https://github.com/zloirock/core-js/issues/751
|
|
103
|
-
|
|
107
|
+
n.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var t=e.split(":"),r=t.shift().trim();if(r){var n=t.join(":").trim();try{o.append(r,n)}catch(e){console.warn("Response "+e.message)}}})),o)};s.url="responseURL"in i?i.responseURL:s.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new Q(a,s))}),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 te("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&N.location.href?N.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(U?i.responseType="blob":D&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof V||N.Headers&&t.headers instanceof N.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(k(e)),i.setRequestHeader(e,j(t.headers[e]))})),o.headers.forEach((function(e,t){-1===a.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
|
|
104
108
|
// DONE (success or failure)
|
|
105
109
|
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}re.polyfill=!0,N.fetch||(N.fetch=re,N.Headers=V,N.Request=q,N.Response=Q),
|
|
106
110
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
@@ -149,13 +153,13 @@ i=!1}},{subscribe:Fe(i,u).subscribe};
|
|
|
149
153
|
*/
|
|
150
154
|
var u}var je=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===$e}(e)}
|
|
151
155
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
152
|
-
(e)};var $e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ve(e,t){return!1!==t.clone&&t.isMergeableObject(e)?
|
|
156
|
+
(e)};var $e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ve(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ye((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Xe(e,t,r){return e.concat(t).map((function(e){return Ve(e,r)}))}function ze(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ke(e,t){try{return t in e}catch(e){return!1}}
|
|
153
157
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
154
|
-
function
|
|
155
|
-
})(e,o)||(Ke(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return
|
|
158
|
+
function Ze(e,t,r){var n={};return r.isMergeableObject(e)&&ze(e).forEach((function(t){n[t]=Ve(e[t],r)})),ze(t).forEach((function(o){(function(e,t){return Ke(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
159
|
+
})(e,o)||(Ke(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return Ye;var r=t.customMerge(e);return"function"==typeof r?r:Ye}(o,r)(e[o],t[o],r):n[o]=Ve(t[o],r))})),n}function Ye(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Xe,r.isMergeableObject=r.isMergeableObject||je,
|
|
156
160
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
157
161
|
// implementations can use it. The caller may not replace it.
|
|
158
|
-
r.cloneUnlessOtherwiseSpecified=Ve;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):
|
|
162
|
+
r.cloneUnlessOtherwiseSpecified=Ve;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Ze(e,t,r):Ve(t,r)}Ye.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Ye(e,r,t)}),{})};var We=Ye,qe=function(e,t){return qe=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])},qe(e,t)};function Je(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}qe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Qe,et,tt,rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rt.apply(this,arguments)};function nt(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))}
|
|
159
163
|
/**
|
|
160
164
|
* Type Guards
|
|
161
165
|
*/
|
|
@@ -361,7 +365,7 @@ var Rt=!!String.prototype.startsWith,Mt=!!String.fromCodePoint,Ut=!!Object.fromE
|
|
|
361
365
|
* Pattern_Syntax support: not supported
|
|
362
366
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
363
367
|
*/
|
|
364
|
-
kt="a"===(null===(Pt=
|
|
368
|
+
kt="a"===(null===(Pt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pt?void 0:Pt[0])}catch(e){kt=!1}var jt,$t=Rt?// Native
|
|
365
369
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
|
366
370
|
function(e,t,r){return e.slice(r,r+t.length)===t},Vt=Mt?String.fromCodePoint:// IE11
|
|
367
371
|
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[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},Xt=
|
|
@@ -371,15 +375,15 @@ function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],s=o[1];t[i]=s
|
|
|
371
375
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
372
376
|
function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Kt=Dt?// Native
|
|
373
377
|
function(e){return e.trimStart()}:// Ponyfill
|
|
374
|
-
function(e){return e.replace(Ct,"")},
|
|
378
|
+
function(e){return e.replace(Ct,"")},Zt=Gt?// Native
|
|
375
379
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
376
380
|
function(e){return e.replace(It,"")};
|
|
377
381
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
378
|
-
function
|
|
382
|
+
function Yt(e,t){return new RegExp(e,t)}
|
|
379
383
|
// #endregion
|
|
380
384
|
if(kt){
|
|
381
385
|
// Native
|
|
382
|
-
var Wt=
|
|
386
|
+
var Wt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");jt=function(e,t){var r;return Wt.lastIndex=t,null!==(r=Wt.exec(e)[1])&&void 0!==r?r:""}}else
|
|
383
387
|
// IE11
|
|
384
388
|
jt=function(e,t){for(var r=[];;){var n=zt(e,t);if(void 0===n||er(n)||tr(n))break;r.push(n),t+=n>=65536?2:1}return Vt.apply(void 0,r)};var qt=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&e>0)break;if(35/* `#` */!==o||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Qe.UNMATCHED_CLOSING_TAG,Nt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Jt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:et.pound,location:Nt(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
385
389
|
/**
|
|
@@ -458,7 +462,7 @@ return this.error(Qe.EXPECT_ARGUMENT_TYPE,Nt(i,a));case"number":case"date":case"
|
|
|
458
462
|
// Parse this range:
|
|
459
463
|
// {name, number, style}
|
|
460
464
|
// ^-------^
|
|
461
|
-
this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=
|
|
465
|
+
this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=Zt(y.val)).length)return this.error(Qe.EXPECT_ARGUMENT_STYLE,Nt(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Nt(u,this.clonePosition())}}if((g=this.tryParseArgumentClose(n)).err)return g;var c=Nt(n,this.clonePosition());
|
|
462
466
|
// Extract style or skeleton
|
|
463
467
|
if(h&&$t(null==h?void 0:h.style,"::",0)){
|
|
464
468
|
// Skeleton starts with `::`.
|
|
@@ -635,7 +639,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
635
639
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
636
640
|
Copyrights licensed under the New BSD License.
|
|
637
641
|
See the accompanying LICENSE file for terms.
|
|
638
|
-
*/const Br={},Hr=(e,t,r)=>r?(t in Br||(Br[t]={}),e in Br[t]||(Br[t][e]=r),r):r,Sr=(e,t)=>{if(null==t)return;if(t in Br&&e in Br[t])return Br[t][e];const r=Vr(t);for(let n=0;n<r.length;n++){const o=Cr(r[n],e);if(o)return Hr(e,t,o)}};let Pr;const Lr=Fe({});function Or(e){return e in Pr}function Cr(e,t){if(!Or(e))return null;const r=function(e){return Pr[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)}ke([Lr],(([e])=>Object.keys(e))),Lr.subscribe((e=>Pr=e));const Ir={};function Nr(e){return Ir[e]}function Rr(e){return null!=e&&Vr(e).some((e=>{var t;return null===(t=Nr(e))||void 0===t?void 0:t.size}))}function Mr(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ir[e].delete(t),0===Ir[e].size&&delete Ir[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>function(e,...t){delete Br[e],Lr.update((r=>(r[e]=We.all([r[e]||{},...t]),r)))}(e,...t)))}const Ur={};function xr(e){if(!Rr(e))return e in Ur?Ur[e]:Promise.resolve();const t=function(e){return Vr(e).map((e=>{const t=Nr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ur[e]=Promise.all(t.map((([e,t])=>Mr(e,t)))).then((()=>{if(Rr(e))return xr(e);delete Ur[e]})),Ur[e]}const Dr={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 Gr(){return Dr}const Fr=Fe(!1);let kr;const jr=Fe(null);function $r(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Vr(e,t=Gr().fallbackLocale){const r=$r(e);return t?[...new Set([...r,...$r(t)])]:r}function Xr(){return null!=kr?kr:void 0}jr.subscribe((e=>{kr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const zr={...jr,set:e=>{if(e&&function(e){if(null==e)return;const t=Vr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Or(r))return r}}(e)&&Rr(e)){const{loadingDelay:t}=Gr();let r;return"undefined"!=typeof window&&null!=Xr()&&t?r=window.setTimeout((()=>Fr.set(!0)),t):Fr.set(!0),xr(e).then((()=>{jr.set(e)})).finally((()=>{clearTimeout(r),Fr.set(!1)}))}return jr.set(e)}},Kr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},
|
|
642
|
+
*/const Br={},Hr=(e,t,r)=>r?(t in Br||(Br[t]={}),e in Br[t]||(Br[t][e]=r),r):r,Sr=(e,t)=>{if(null==t)return;if(t in Br&&e in Br[t])return Br[t][e];const r=Vr(t);for(let n=0;n<r.length;n++){const o=Cr(r[n],e);if(o)return Hr(e,t,o)}};let Pr;const Lr=Fe({});function Or(e){return e in Pr}function Cr(e,t){if(!Or(e))return null;const r=function(e){return Pr[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)}ke([Lr],(([e])=>Object.keys(e))),Lr.subscribe((e=>Pr=e));const Ir={};function Nr(e){return Ir[e]}function Rr(e){return null!=e&&Vr(e).some((e=>{var t;return null===(t=Nr(e))||void 0===t?void 0:t.size}))}function Mr(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ir[e].delete(t),0===Ir[e].size&&delete Ir[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>function(e,...t){delete Br[e],Lr.update((r=>(r[e]=We.all([r[e]||{},...t]),r)))}(e,...t)))}const Ur={};function xr(e){if(!Rr(e))return e in Ur?Ur[e]:Promise.resolve();const t=function(e){return Vr(e).map((e=>{const t=Nr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ur[e]=Promise.all(t.map((([e,t])=>Mr(e,t)))).then((()=>{if(Rr(e))return xr(e);delete Ur[e]})),Ur[e]}const Dr={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 Gr(){return Dr}const Fr=Fe(!1);let kr;const jr=Fe(null);function $r(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Vr(e,t=Gr().fallbackLocale){const r=$r(e);return t?[...new Set([...r,...$r(t)])]:r}function Xr(){return null!=kr?kr:void 0}jr.subscribe((e=>{kr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const zr={...jr,set:e=>{if(e&&function(e){if(null==e)return;const t=Vr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Or(r))return r}}(e)&&Rr(e)){const{loadingDelay:t}=Gr();let r;return"undefined"!=typeof window&&null!=Xr()&&t?r=window.setTimeout((()=>Fr.set(!0)),t):Fr.set(!0),xr(e).then((()=>{jr.set(e)})).finally((()=>{clearTimeout(r),Fr.set(!1)}))}return jr.set(e)}},Kr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Zr=(e,t)=>{const{formats:r}=Gr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yr=Kr((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=Zr("number",t)),new Intl.NumberFormat(e,r)})),Wr=Kr((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=Zr("date",t):0===Object.keys(r).length&&(r=Zr("date","short")),new Intl.DateTimeFormat(e,r)})),qr=Kr((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=Zr("time",t):0===Object.keys(r).length&&(r=Zr("time","short")),new Intl.DateTimeFormat(e,r)})),Jr=Kr(((e,t=Xr())=>new Ar(e,t,Gr().formats,{ignoreTag:Gr().ignoreTag}))),Qr=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Xr(),default:u}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Sr(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(i=null!==(o=null===(n=(r=Gr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:h,id:e,defaultValue:u}))&&void 0!==o?o:u)&&void 0!==i?i:e;if(!a)return c;let l=c;try{l=Jr(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return l},en=(e,t)=>(({locale:e=Xr(),...t}={})=>qr({locale:e,...t}))(t).format(e),tn=(e,t)=>(({locale:e=Xr(),...t}={})=>Wr({locale:e,...t}))(t).format(e),rn=(e,t)=>(({locale:e=Xr(),...t}={})=>Yr({locale:e,...t}))(t).format(e),nn=(e,t=Xr())=>Sr(e,t);ke([zr,Lr],(()=>Qr)),ke([zr],(()=>en)),ke([zr],(()=>tn)),ke([zr],(()=>rn)),ke([zr,Lr],(()=>nn)),window.emWidgets={topic:(e,t=0)=>{if(-1==xe.indexOf(e)){let r=new Ue(t);De[e]=r,xe.push(e)}return De[e]}};
|
|
639
643
|
/* src/CasinoBetslipIndicator.svelte generated by Svelte v3.59.2 */
|
|
640
644
|
function on(e){let t,r,n,o,i,p,m,d,b,y,g,v;function E(e,t){/*isLoading*/
|
|
641
645
|
return e[3]?an:sn}let _=E(e),T=_(e);return{c(){var e,s,a,h;t=u("button"),r=u("small"),T.c(),n=l(" "),o=c("svg"),i=c("g"),p=c("path"),m=c("path"),d=c("path"),b=c("path"),y=c("path"),f(r,"class","betslipIndicator__number"),f(p,"d","M45,95c0,1.1,0.9,2,2,2h11c3.3,0,6-2.7,6-6V9c0-3.3-2.7-6-6-6H47c-1.1,0-2,0.9-2,2c0,7.2-5.8,13-13,13S19,12.2,19,5\n c0-1.1-0.9-2-2-2H6C2.7,3,0,5.7,0,9v82c0,3.3,2.7,6,6,6h11c1.1,0,2-0.9,2-2c0-7.2,5.8-13,13-13S45,87.8,45,95z M32,78\n c-8.6,0-15.9,6.4-16.9,15H6c-1.1,0-2-0.9-2-2V9c0-1.1,0.9-2,2-2h9.1c1.2,9.3,9.7,15.9,19,14.8c7.7-1,13.8-7,14.8-14.8H58\n c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z"),f(m,"d","M50.9,29.5H13.1c-0.8,0-1.5,0.9-1.5,2c0,1.1,0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2C52.4,30.4,51.7,29.5,50.9,29.5z"),f(d,"d","M50.9,41.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,41.5,50.9,41.5z"),f(b,"d","M50.9,53.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,53.5,50.9,53.5z"),f(y,"d","M50.9,66.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,66.5,50.9,66.5z"),f(o,"version","1.1"),f(o,"id","Layer_1"),f(o,"class","betslipIndicator__icon"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(o,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(o,"x","0px"),f(o,"y","0px"),f(o,"viewBox","0 0 64 100"),e=o,s="enable-background",null==(a="new 0 0 64 100")?e.style.removeProperty(s):e.style.setProperty(s,a,h?"important":""),f(o,"xml:space","preserve"),f(t,"class","betslipIndicator")},m(h,u){var c,l,f,E;a(h,t,u),s(t,r),T.m(r,null),s(t,n),s(t,o),s(o,i),s(i,p),s(i,m),s(i,d),s(i,b),s(i,y),g||(c=t,l="click",f=/*click_handler*/e[7],c.addEventListener(l,f,E),v=()=>c.removeEventListener(l,f,E),g=!0)},p(e,t){_===(_=E(e))&&T?T.p(e,t):(T.d(1),T=_(e),T&&(T.c(),T.m(r,null)))},d(e){e&&h(t),T.d(),g=!1,v()}}}
|