@everymatrix/casino-tournaments-slider-controller 1.13.9 → 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.
|
@@ -125,11 +125,11 @@ ye.prototype.append=function(e,t){e=ge(e),t=me(t);var n=this.map[e];this.map[e]=
|
|
|
125
125
|
// Search for a '_' parameter in the query string
|
|
126
126
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
127
127
|
// If it already exists then set the value with the current time
|
|
128
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ce(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Re(e,t){if(!(this instanceof Re))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 ye(t.headers),this.url=t.url||"",this._initBody(e)}Ie.prototype.clone=function(){return new Ie(this,{body:this._bodyInit})},Be.call(Ie.prototype),Be.call(Re.prototype),Re.prototype.clone=function(){return new Re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ye(this.headers),url:this.url})},Re.error=function(){var e=new Re(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var He=[301,302,303,307,308];Re.redirect=function(e,t){if(-1===He.indexOf(t))throw new RangeError("Invalid status code");return new Re(null,{status:t,headers:{location:e}})};var Se=ae.DOMException;try{new Se}catch(e){(Se=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Se.prototype.constructor=Se}function Oe(e,t){return new Promise((function(n,r){var i=new Ie(e,t);if(i.signal&&i.signal.aborted)return r(new Se("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var e
|
|
128
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ce(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Re(e,t){if(!(this instanceof Re))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 ye(t.headers),this.url=t.url||"",this._initBody(e)}Ie.prototype.clone=function(){return new Ie(this,{body:this._bodyInit})},Be.call(Ie.prototype),Be.call(Re.prototype),Re.prototype.clone=function(){return new Re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ye(this.headers),url:this.url})},Re.error=function(){var e=new Re(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var He=[301,302,303,307,308];Re.redirect=function(e,t){if(-1===He.indexOf(t))throw new RangeError("Invalid status code");return new Re(null,{status:t,headers:{location:e}})};var Se=ae.DOMException;try{new Se}catch(e){(Se=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Se.prototype.constructor=Se}function Oe(e,t){return new Promise((function(n,r){var i=new Ie(e,t);if(i.signal&&i.signal.aborted)return r(new Se("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new ye,
|
|
129
129
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
130
130
|
// https://github.com/github/fetch/issues/748
|
|
131
131
|
// https://github.com/zloirock/core-js/issues/751
|
|
132
|
-
|
|
132
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new Re(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Se("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&ae.location.href?ae.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(ue?o.responseType="blob":pe&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof ye||ae.Headers&&t.headers instanceof ae.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(ge(e)),o.setRequestHeader(e,me(t.headers[e]))})),i.headers.forEach((function(e,t){-1===a.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
|
133
133
|
// DONE (success or failure)
|
|
134
134
|
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Oe.polyfill=!0,ae.fetch||(ae.fetch=Oe,ae.Headers=ye,ae.Request=Ie,ae.Response=Re);var Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
|
135
135
|
// the whatwg-fetch polyfill installs the fetch() function
|