@everymatrix/casino-integrated-game-page 1.9.0 → 1.9.2

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,14 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(){}function i(e){return e()}function o(){return Object.create(null)}function s(e){e.forEach(i)}function a(e){return"function"==typeof e}function u(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l,h;function c(e,t){return l||(l=document.createElement("a")),l.href=t,e===l.href}function f(e,...t){if(null==e)return r;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function d(e,t){e.appendChild(t)}function p(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function _(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function E(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function S(e,t,n){e.classList[n?"add":"remove"](t)}function T(e){const t={};for(const n of e)t[n.name]=n.value;return t}function M(e){h=e}function k(e){(function(){if(!h)throw new Error("Function called outside component initialization");return h})().$$.on_mount.push(e)}const P=[],O=[],D=[],x=[],B=Promise.resolve();let A=!1;function H(e){D.push(e)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(){}function i(e){return e()}function o(){return Object.create(null)}function s(e){e.forEach(i)}function a(e){return"function"==typeof e}function u(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l,h;function c(e,t){return l||(l=document.createElement("a")),l.href=t,e===l.href}function f(e,...t){if(null==e)return r;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function d(e,t){e.appendChild(t)}function p(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function _(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function S(e,t,n){e.classList[n?"add":"remove"](t)}function T(e){const t={};for(const n of e)t[n.name]=n.value;return t}function M(e){h=e}
2
+ /**
3
+ * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
4
+ * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
5
+ * it can be called from an external module).
6
+ *
7
+ * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
8
+ *
9
+ * https://svelte.dev/docs#run-time-svelte-onmount
10
+ */
11
+ function k(e){(function(){if(!h)throw new Error("Function called outside component initialization");return h})().$$.on_mount.push(e)}const P=[],D=[];let x=[];const O=[],B=Promise.resolve();let A=!1;function H(e){x.push(e)}
2
12
  // flush() calls callbacks in this order:
3
13
  // 1. All beforeUpdate callbacks, in order: parents before children
4
14
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -18,44 +28,57 @@
18
28
  // callback called a second time; the seen_callbacks set, outside the flush()
19
29
  // function, guarantees this behavior.
20
30
  const N=new Set;let L=0;// Do *not* move this inside the flush() function
21
- function C(){const e=h;do{
31
+ function C(){
32
+ // Do not reenter flush while dirty components are updated, as this can
33
+ // result in an infinite loop. Instead, let the inner flush handle it.
34
+ // Reentrancy is ok afterwards for bindings etc.
35
+ if(0!==L)return;const e=h;do{
22
36
  // first, call beforeUpdate functions
23
37
  // and update components
24
- for(;L<P.length;){const e=P[L];L++,M(e),I(e.$$)}for(M(null),P.length=0,L=0;O.length;)O.pop()();
38
+ try{for(;L<P.length;){const e=P[L];L++,M(e),I(e.$$)}}catch(e){
39
+ // reset dirty state to not end up in a deadlocked state and then rethrow
40
+ throw P.length=0,L=0,e}for(M(null),P.length=0,L=0;D.length;)D.pop()();
25
41
  // then, once components are updated, call
26
42
  // afterUpdate functions. This may cause
27
43
  // subsequent updates...
28
- for(let e=0;e<D.length;e+=1){const t=D[e];N.has(t)||(
44
+ for(let e=0;e<x.length;e+=1){const t=x[e];N.has(t)||(
29
45
  // ...so guard against infinite loops
30
- N.add(t),t())}D.length=0}while(P.length);for(;x.length;)x.pop()();A=!1,N.clear(),M(e)}function I(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(H)}}const R=new Set;function F(e,t){-1===e.$$.dirty[0]&&(P.push(e),A||(A=!0,B.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(e,t,n,u,l,c,f,d=[-1]){const p=h;M(e);const g=e.$$={fragment:null,ctx:null,
46
+ N.add(t),t())}x.length=0}while(P.length);for(;O.length;)O.pop()();A=!1,N.clear(),M(e)}function I(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(H)}}
47
+ /**
48
+ * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
49
+ */const R=new Set;function F(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];x.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),x=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),
50
+ // TODO null out other refs, including component.$$ (but need to
51
+ // preserve final state?)
52
+ n.on_destroy=n.fragment=null,n.ctx=[])}function Y(e,t){-1===e.$$.dirty[0]&&(P.push(e),A||(A=!0,B.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(e,t,n,u,l,c,f,d=[-1]){const p=h;M(e);const g=e.$$={fragment:null,ctx:[],
31
53
  // state
32
54
  props:c,update:r,not_equal:l,bound:o(),
33
55
  // lifecycle
34
56
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(p?p.$$.context:[])),
35
57
  // everything else
36
- callbacks:o(),dirty:d,skip_bound:!1,root:t.target||p.$$.root};f&&f(g.root);let y=!1;if(g.ctx=n?n(e,t.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return g.ctx&&l(g.ctx[t],g.ctx[t]=i)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](i),y&&F(e,t)),n})):[],g.update(),y=!0,s(g.before_update),
58
+ callbacks:o(),dirty:d,skip_bound:!1,root:t.target||p.$$.root};f&&f(g.root);let y=!1;if(g.ctx=n?n(e,t.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return g.ctx&&l(g.ctx[t],g.ctx[t]=i)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](i),y&&Y(e,t)),n})):[],g.update(),y=!0,s(g.before_update),
37
59
  // `false` as a special case of no DOM component
38
60
  g.fragment=!!u&&u(g.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);
39
61
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
40
62
  g.fragment&&g.fragment.l(e),e.forEach(m)}else
41
63
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
42
- g.fragment&&g.fragment.c();t.intro&&((v=e.$$.fragment)&&v.i&&(R.delete(v),v.i(_))),function(e,t,n,r){const{fragment:o,on_mount:u,on_destroy:l,after_update:h}=e.$$;o&&o.m(t,n),r||
64
+ g.fragment&&g.fragment.c();t.intro&&((v=e.$$.fragment)&&v.i&&(R.delete(v),v.i(_))),function(e,t,n,r){const{fragment:o,after_update:u}=e.$$;o&&o.m(t,n),r||
43
65
  // onMount happens before the initial afterUpdate
44
- H((()=>{const t=u.map(i).filter(a);l?l.push(...t):
66
+ H((()=>{const t=e.$$.on_mount.map(i).filter(a);
67
+ // if the component was destroyed immediately
68
+ // it will update the `$$.on_destroy` reference to `null`.
69
+ // the destructured on_destroy may still reference to the old array
70
+ e.$$.on_destroy?e.$$.on_destroy.push(...t):
45
71
  // Edge case - component was destroyed immediately,
46
72
  // most likely as a result of a binding initialising
47
- s(t),e.$$.on_mount=[]})),h.forEach(H)}(e,t.target,t.anchor,t.customElement),C()}var v,_;M(p)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(i).filter(a);
73
+ s(t),e.$$.on_mount=[]})),u.forEach(H)}(e,t.target,t.anchor,t.customElement),C()}var v,_;M(p)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(i).filter(a);
48
74
  // @ts-ignore todo: improve typings
49
75
  for(const e in this.$$.slotted)
50
76
  // @ts-ignore todo: improve typings
51
- this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(t),
52
- // TODO null out other refs, including component.$$ (but need to
53
- // preserve final state?)
54
- n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=r}$on(e,t){
77
+ this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){F(this,1),this.$destroy=r}$on(e,t){
55
78
  // TODO should this delegate to addEventListener?
56
- const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-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)}});var G="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==G&&G,$="URLSearchParams"in G,j="Symbol"in G&&"iterator"in Symbol,W="FileReader"in G&&"Blob"in G&&function(){try{return new Blob,!0}catch(e){return!1}}(),V="FormData"in G,z="ArrayBuffer"in G;if(z)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],X=ArrayBuffer.isView||function(e){return e&&Z.indexOf(Object.prototype.toString.call(e))>-1};function q(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 K(e){return"string"!=typeof e&&(e=String(e)),e}
79
+ if(!a(t))return r;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-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)}});var $="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==$&&$,j={searchParams:"URLSearchParams"in $,iterable:"Symbol"in $&&"iterator"in Symbol,blob:"FileReader"in $&&"Blob"in $&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in $,arrayBuffer:"ArrayBuffer"in $};if(j.arrayBuffer)var W=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],V=ArrayBuffer.isView||function(e){return e&&W.indexOf(Object.prototype.toString.call(e))>-1};function z(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 Z(e){return"string"!=typeof e&&(e=String(e)),e}
57
80
  // Build a destructive iterator for the value list
58
- function J(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return j&&(t[Symbol.iterator]=function(){return t}),t}function Q(e){this.map={},e instanceof Q?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 ee(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function te(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ne(e){var t=new FileReader,n=te(t);return t.readAsArrayBuffer(e),n}function re(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(e){var t;
81
+ function X(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return j.iterable&&(t[Symbol.iterator]=function(){return t}),t}function q(e){this.map={},e instanceof q?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 K(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function J(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Q(e){var t=new FileReader,n=J(t);return t.readAsArrayBuffer(e),n}function ee(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function te(){return this.bodyUsed=!1,this._initBody=function(e){var t;
59
82
  /*
60
83
  fetch-mock wraps the Response object in an ES6 Proxy to
61
84
  provide useful test harness features such as flush. However, on
@@ -66,26 +89,26 @@ function J(e){var t={next:function(){var t=e.shift();return{done:void 0===t,valu
66
89
  semantic of setting Request.bodyUsed in the constructor before
67
90
  _initBody is called.
68
91
  */
69
- this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:W&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:V&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:$&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():z&&W&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=re(e.buffer),
92
+ this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:j.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:j.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:j.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():j.arrayBuffer&&j.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ee(e.buffer),
70
93
  // IE 10-11 can't handle a DataView body.
71
- this._bodyInit=new Blob([this._bodyArrayBuffer])):z&&(ArrayBuffer.prototype.isPrototypeOf(e)||X(e))?this._bodyArrayBuffer=re(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):$&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},W&&(this.blob=function(){var e=ee(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=ee(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(ne)}),this.text=function(){var e,t,n,r=ee(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=te(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},V&&(this.formData=function(){return this.text().then(ae)}),this.json=function(){return this.text().then(JSON.parse)},this}
94
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):j.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||V(e))?this._bodyArrayBuffer=ee(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):j.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},j.blob&&(this.blob=function(){var e=K(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=K(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Q)}),this.text=function(){var e,t,n,r=K(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=J(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},j.formData&&(this.formData=function(){return this.text().then(ie)}),this.json=function(){return this.text().then(JSON.parse)},this}
72
95
  // HTTP methods whose capitalization should be normalized
73
- Q.prototype.append=function(e,t){e=q(e),t=K(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Q.prototype.delete=function(e){delete this.map[q(e)]},Q.prototype.get=function(e){return e=q(e),this.has(e)?this.map[e]:null},Q.prototype.has=function(e){return this.map.hasOwnProperty(q(e))},Q.prototype.set=function(e,t){this.map[q(e)]=K(t)},Q.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Q.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),J(e)},Q.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),J(e)},Q.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),J(e)},j&&(Q.prototype[Symbol.iterator]=Q.prototype.entries);var oe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function se(e,t){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof se){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Q(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Q(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),oe.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
96
+ q.prototype.append=function(e,t){e=z(e),t=Z(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},q.prototype.delete=function(e){delete this.map[z(e)]},q.prototype.get=function(e){return e=z(e),this.has(e)?this.map[e]:null},q.prototype.has=function(e){return this.map.hasOwnProperty(z(e))},q.prototype.set=function(e,t){this.map[z(e)]=Z(t)},q.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},q.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),X(e)},q.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),X(e)},q.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),X(e)},j.iterable&&(q.prototype[Symbol.iterator]=q.prototype.entries);var ne=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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.');var n,r,i=(t=t||{}).body;if(e instanceof re){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new q(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new q(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),ne.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
74
97
  // Search for a '_' parameter in the query string
75
98
  var o=/([?&])_=[^&]*/;if(o.test(this.url))
76
99
  // If it already exists then set the value with the current time
77
- this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function ae(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 ue(e,t){if(!(this instanceof ue))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 Q(t.headers),this.url=t.url||"",this._initBody(e)}se.prototype.clone=function(){return new se(this,{body:this._bodyInit})},ie.call(se.prototype),ie.call(ue.prototype),ue.prototype.clone=function(){return new ue(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Q(this.headers),url:this.url})},ue.error=function(){var e=new ue(null,{status:0,statusText:""});return e.type="error",e};var le=[301,302,303,307,308];ue.redirect=function(e,t){if(-1===le.indexOf(t))throw new RangeError("Invalid status code");return new ue(null,{status:t,headers:{location:e}})};var he=G.DOMException;try{new he}catch(e){(he=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),he.prototype.constructor=he}function ce(e,t){return new Promise((function(n,r){var i=new se(e,t);if(i.signal&&i.signal.aborted)return r(new he("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Q,
100
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function ie(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 oe(e,t){if(!(this instanceof oe))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 q(t.headers),this.url=t.url||"",this._initBody(e)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})},te.call(re.prototype),te.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},oe.error=function(){var e=new oe(null,{status:0,statusText:""});return e.type="error",e};var se=[301,302,303,307,308];oe.redirect=function(e,t){if(-1===se.indexOf(t))throw new RangeError("Invalid status code");return new oe(null,{status:t,headers:{location:e}})};var ae=$.DOMException;try{new ae}catch(e){(ae=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),ae.prototype.constructor=ae}function ue(e,t){return new Promise((function(n,r){var i=new re(e,t);if(i.signal&&i.signal.aborted)return r(new ae("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new q,
78
101
  // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
79
102
  // https://github.com/github/fetch/issues/748
80
103
  // https://github.com/zloirock/core-js/issues/751
81
- e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new ue(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 he("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&G.location.href?G.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&&(W?o.responseType="blob":z&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Q?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,K(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
104
+ e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new oe(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 ae("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&$.location.href?$.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&&(j.blob?o.responseType="blob":j.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof q?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,Z(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
82
105
  // DONE (success or failure)
83
- 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ce.polyfill=!0,G.fetch||(G.fetch=ce,G.Headers=Q,G.Request=se,G.Response=ue);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function fe(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
106
+ 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ue.polyfill=!0,$.fetch||($.fetch=ue,$.Headers=q,$.Request=re,$.Response=oe);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function le(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
84
107
  // the whatwg-fetch polyfill installs the fetch() function
85
108
  // on the global object (window or self)
86
109
 
87
110
  // Return that as the export for use in Webpack, Browserify etc.
88
- var de=self.fetch.bind(self),pe=function(e,t){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},pe(e,t)};
111
+ var he=self.fetch.bind(self),ce=function(e,t){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ce(e,t)};
89
112
  /******************************************************************************
90
113
  Copyright (c) Microsoft Corporation.
91
114
 
@@ -100,7 +123,7 @@ var de=self.fetch.bind(self),pe=function(e,t){return pe=Object.setPrototypeOf||{
100
123
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
101
124
  PERFORMANCE OF THIS SOFTWARE.
102
125
  ***************************************************************************** */
103
- /* global Reflect, Promise */function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ge(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ye(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function ve(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function _e(e){return"function"==typeof e}function be(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var we=be((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Ee(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Se=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ge(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(_e(u))try{u()}catch(e){i=e instanceof we?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var h=ge(l),c=h.next();!c.done;c=h.next()){var f=c.value;try{ke(f)}catch(e){i=null!=i?i:[],e instanceof we?i=ve(ve([],ye(i)),ye(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new we(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ke(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ee(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ee(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Te=Se.EMPTY;function Me(e){return e instanceof Se||e&&"closed"in e&&_e(e.remove)&&_e(e.add)&&_e(e.unsubscribe)}function ke(e){_e(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Oe={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Oe.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ve([e,t],ye(n))):setTimeout.apply(void 0,ve([e,t],ye(n)))},clearTimeout:function(e){var t=Oe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function De(){}var xe=null;function Be(e){if(Pe.useDeprecatedSynchronousErrorHandling){var t=!xe;if(t&&(xe={errorThrown:!1,error:null}),e(),t){var n=xe,r=n.errorThrown,i=n.error;if(xe=null,r)throw i}}else e()}var Ae=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Me(t)&&t.add(n)):n.destination=Re,n}return me(t,e),t.create=function(e,t,n){return new Ce(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Se),He=Function.prototype.bind;function Ne(e,t){return He.call(e,t)}var Le=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ie(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ie(e)}else Ie(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ie(e)}},e}(),Ce=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;_e(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Pe.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Ne(t.next,o),error:t.error&&Ne(t.error,o),complete:t.complete&&Ne(t.complete,o)}):i=t;return s.destination=new Le(i),s}return me(t,e),t}(Ae);function Ie(e){var t;t=e,Oe.setTimeout((function(){throw t}))}var Re={closed:!0,next:De,error:function(e){throw e},complete:De},Fe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ye(e){return e}function Ue(e){return 0===e.length?Ye:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Ge=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Ae||function(e){return e&&_e(e.next)&&_e(e.error)&&_e(e.complete)}(r)&&Me(r)?e:new Ce(e,t,n);return Be((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=$e(t))((function(t,r){var i=new Ce({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Fe]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ue(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=$e(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function $e(e){var t;return null!==(t=null!=e?e:Pe.Promise)&&void 0!==t?t:Promise}var je=be((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),We=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return me(t,e),t.prototype.lift=function(e){var t=new Ve(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new je},t.prototype.next=function(e){var t=this;Be((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=ge(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Be((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Be((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Te:(this.currentObservers=null,o.push(e),new Se((function(){t.currentObservers=null,Ee(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Ge;return e.source=this,e},t.create=function(e,t){return new Ve(e,t)},t}(Ge),Ve=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return me(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Te},t}(We),ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0},Ze=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ze);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return me(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}},t}(We);let Xe=[],qe={};
126
+ /* global Reflect, Promise */function fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function de(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function me(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ge(e){return"function"==typeof e}function ye(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ve=ye((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function _e(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var be=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=de(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(ge(u))try{u()}catch(e){i=e instanceof ve?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var h=de(l),c=h.next();!c.done;c=h.next()){var f=c.value;try{Se(f)}catch(e){i=null!=i?i:[],e instanceof ve?i=me(me([],pe(i)),pe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new ve(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Se(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&_e(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&_e(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),we=be.EMPTY;function Ee(e){return e instanceof be||e&&"closed"in e&&ge(e.remove)&&ge(e.add)&&ge(e.unsubscribe)}function Se(e){ge(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Me={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Me.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,me([e,t],pe(n))):setTimeout.apply(void 0,me([e,t],pe(n)))},clearTimeout:function(e){var t=Me.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ke(){}var Pe=null;function De(e){if(Te.useDeprecatedSynchronousErrorHandling){var t=!Pe;if(t&&(Pe={errorThrown:!1,error:null}),e(),t){var n=Pe,r=n.errorThrown,i=n.error;if(Pe=null,r)throw i}}else e()}var xe=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Ee(t)&&t.add(n)):n.destination=Le,n}return fe(t,e),t.create=function(e,t,n){return new He(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(be),Oe=Function.prototype.bind;function Be(e,t){return Oe.call(e,t)}var Ae=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ne(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ne(e)}else Ne(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ne(e)}},e}(),He=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;ge(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Te.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Be(t.next,o),error:t.error&&Be(t.error,o),complete:t.complete&&Be(t.complete,o)}):i=t;return s.destination=new Ae(i),s}return fe(t,e),t}(xe);function Ne(e){var t;t=e,Me.setTimeout((function(){throw t}))}var Le={closed:!0,next:ke,error:function(e){throw e},complete:ke},Ce="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ie(e){return e}var Re=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof xe||function(e){return e&&ge(e.next)&&ge(e.error)&&ge(e.complete)}(r)&&Ee(r)?e:new He(e,t,n);return De((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Fe(t))((function(t,r){var i=new He({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ce]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Ie:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fe(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Fe(e){var t;return null!==(t=null!=e?e:Te.Promise)&&void 0!==t?t:Promise}var Ye=ye((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ue=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return fe(t,e),t.prototype.lift=function(e){var t=new Ge(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ye},t.prototype.next=function(e){var t=this;De((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=de(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;De((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;De((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?we:(this.currentObservers=null,o.push(e),new be((function(){t.currentObservers=null,_e(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Re;return e.source=this,e},t.create=function(e,t){return new Ge(e,t)},t}(Re),Ge=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return fe(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:we},t}(Ue),$e={now:function(){return($e.delegate||Date).now()},delegate:void 0},je=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=$e);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return fe(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}},t}(Ue);let We=[],Ve={};
104
127
  /**
105
128
  * @name topic
106
129
  * @description A small wrapper over the rxjs to offer the topic method on top of it
@@ -108,32 +131,36 @@ var de=self.fetch.bind(self),pe=function(e,t){return pe=Object.setPrototypeOf||{
108
131
  * @param step [String] How many values to be buffed for new subscribers - default 0
109
132
  * @returns ReplaySubject
110
133
  */
111
- const Ke=[];
134
+ const ze=[];
112
135
  /**
113
136
  * Create a `Writable` store that allows both updating and reading by subscription.
114
137
  * @param {*=}value initial value
115
138
  * @param {StartStopNotifier=}start start and stop notifications for subscriptions
116
139
  */
117
- function Je(e,t=r){let n;const i=new Set;function o(t){if(u(e,t)&&(e=t,n)){// store is ready
118
- const t=!Ke.length;for(const t of i)t[1](),Ke.push(t,e);if(t){for(let e=0;e<Ke.length;e+=2)Ke[e][0](Ke[e+1]);Ke.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(s,a=r){const u=[s,a];return i.add(u),1===i.size&&(n=t(o)||r),s(e),()=>{i.delete(u),0===i.size&&(n(),n=null)}}}}function Qe(e,t,n){const i=!Array.isArray(e),o=i?[e]:e,u=t.length<2;return l=e=>{let n=!1;const l=[];let h=0,c=r;const d=()=>{if(h)return;c();const n=t(i?l[0]:l,e);u?e(n):c=a(n)?n:r},p=o.map(((e,t)=>f(e,(e=>{l[t]=e,h&=~(1<<t),n&&d()}),(()=>{h|=1<<t}))));return n=!0,d(),function(){s(p),c()}},{subscribe:Je(n,l).subscribe};
140
+ function Ze(e,t=r){let n;const i=new Set;function o(t){if(u(e,t)&&(e=t,n)){// store is ready
141
+ const t=!ze.length;for(const t of i)t[1](),ze.push(t,e);if(t){for(let e=0;e<ze.length;e+=2)ze[e][0](ze[e+1]);ze.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(s,a=r){const u=[s,a];return i.add(u),1===i.size&&(n=t(o)||r),s(e),()=>{i.delete(u),0===i.size&&n&&(n(),n=null)}}}}function Xe(e,t,n){const i=!Array.isArray(e),o=i?[e]:e,u=t.length<2;return l=e=>{let n=!1;const l=[];let h=0,c=r;const d=()=>{if(h)return;c();const n=t(i?l[0]:l,e);u?e(n):c=a(n)?n:r},p=o.map(((e,t)=>f(e,(e=>{l[t]=e,h&=~(1<<t),n&&d()}),(()=>{h|=1<<t}))));return n=!0,d(),function(){s(p),c(),
142
+ // We need to set this to false because callbacks can still happen despite having unsubscribed:
143
+ // Callbacks might already be placed in the queue which doesn't know it should no longer
144
+ // invoke this derived store.
145
+ n=!1}},{subscribe:Ze(n,l).subscribe};
119
146
  /**
120
147
  * Creates a `Readable` store that allows reading by subscription.
121
148
  * @param value initial value
122
149
  * @param {StartStopNotifier}start start and stop notifications for subscriptions
123
150
  */
124
- var l}var et=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===tt}(e)}
151
+ var l}var qe=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===Ke}(e)}
125
152
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
126
- (e)};var tt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function nt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?at((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function rt(e,t,n){return e.concat(t).map((function(e){return nt(e,n)}))}function it(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function ot(e,t){try{return t in e}catch(e){return!1}}
153
+ (e)};var Ke="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Je(e,t){return!1!==t.clone&&t.isMergeableObject(e)?rt((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Qe(e,t,n){return e.concat(t).map((function(e){return Je(e,n)}))}function et(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 tt(e,t){try{return t in e}catch(e){return!1}}
127
154
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
128
- function st(e,t,n){var r={};return n.isMergeableObject(e)&&it(e).forEach((function(t){r[t]=nt(e[t],n)})),it(t).forEach((function(i){(function(e,t){return ot(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
129
- })(e,i)||(ot(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return at;var n=t.customMerge(e);return"function"==typeof n?n:at}(i,n)(e[i],t[i],n):r[i]=nt(t[i],n))})),r}function at(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||rt,n.isMergeableObject=n.isMergeableObject||et,
155
+ function nt(e,t,n){var r={};return n.isMergeableObject(e)&&et(e).forEach((function(t){r[t]=Je(e[t],n)})),et(t).forEach((function(i){(function(e,t){return tt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
156
+ })(e,i)||(tt(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return rt;var n=t.customMerge(e);return"function"==typeof n?n:rt}(i,n)(e[i],t[i],n):r[i]=Je(t[i],n))})),r}function rt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Qe,n.isMergeableObject=n.isMergeableObject||qe,
130
157
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
131
158
  // implementations can use it. The caller may not replace it.
132
- n.cloneUnlessOtherwiseSpecified=nt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):st(e,t,n):nt(t,n)}at.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return at(e,n,t)}),{})};var ut=at,lt=function(e,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},lt(e,t)};function ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}lt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ct,ft,dt,pt=function(){return pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pt.apply(this,arguments)};function mt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
159
+ n.cloneUnlessOtherwiseSpecified=Je;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):nt(e,t,n):Je(t,n)}rt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return rt(e,n,t)}),{})};var it=rt,ot=function(e,t){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ot(e,t)};function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var at,ut,lt,ht=function(){return ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ht.apply(this,arguments)};function ct(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
133
160
  /**
134
161
  * Type Guards
135
162
  */
136
- function gt(e){return e.type===ft.literal}function yt(e){return e.type===ft.argument}function vt(e){return e.type===ft.number}function _t(e){return e.type===ft.date}function bt(e){return e.type===ft.time}function wt(e){return e.type===ft.select}function Et(e){return e.type===ft.plural}function St(e){return e.type===ft.pound}function Tt(e){return e.type===ft.tag}function Mt(e){return!(!e||"object"!=typeof e||e.type!==dt.number)}function kt(e){return!(!e||"object"!=typeof e||e.type!==dt.dateTime)}
163
+ function ft(e){return e.type===ut.literal}function dt(e){return e.type===ut.argument}function pt(e){return e.type===ut.number}function mt(e){return e.type===ut.date}function gt(e){return e.type===ut.time}function yt(e){return e.type===ut.select}function vt(e){return e.type===ut.plural}function _t(e){return e.type===ut.pound}function bt(e){return e.type===ut.tag}function wt(e){return!(!e||"object"!=typeof e||e.type!==lt.number)}function Et(e){return!(!e||"object"!=typeof e||e.type!==lt.dateTime)}
137
164
  // @generated from regex-gen.ts
138
165
  !function(e){
139
166
  /** Argument is unclosed (e.g. `{0`) */
@@ -195,7 +222,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
195
222
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
196
223
  e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
197
224
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
198
- e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ct||(ct={})),function(e){
225
+ e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(at||(at={})),function(e){
199
226
  /**
200
227
  * Raw text
201
228
  */
@@ -232,7 +259,7 @@ e[e.pound=7]="pound",
232
259
  /**
233
260
  * XML-like tag
234
261
  */
235
- e[e.tag=8]="tag"}(ft||(ft={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(dt||(dt={}));var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ot=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
262
+ e[e.tag=8]="tag"}(ut||(ut={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(lt||(lt={}));var St=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Tt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
236
263
  /**
237
264
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
238
265
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -244,7 +271,7 @@ e[e.tag=8]="tag"}(ft||(ft={})),function(e){e[e.number=0]="number",e[e.dateTime=1
244
271
  * @public
245
272
  * @param skeleton skeleton string
246
273
  */
247
- function Dt(e){var t={};return e.replace(Ot,(function(e){var n=e.length;switch(e[0]){
274
+ function Mt(e){var t={};return e.replace(Tt,(function(e){var n=e.length;switch(e[0]){
248
275
  // Era
249
276
  case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
250
277
  // Year
@@ -278,33 +305,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
278
305
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
279
306
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
280
307
  // @generated from regex-gen.ts
281
- var xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Bt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,At=/^(@+)?(\+|#+)?[rs]?$/g,Ht=/(\*)(0+)|(#+)(0+)|(0+)/g,Nt=/^(0+)$/;function Lt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(At,(function(e,n,r){
308
+ var kt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Pt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dt=/^(@+)?(\+|#+)?[rs]?$/g,xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function Bt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Dt,(function(e,n,r){
282
309
  // @@@ case
283
- return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Ct(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function It(e){
310
+ return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function At(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ht(e){
284
311
  // Engineering
285
- var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Nt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Rt(e){var t=Ct(e);return t||{}}
312
+ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Nt(e){var t=At(e);return t||{}}
286
313
  /**
287
314
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
288
- */function Ft(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=pt(pt(pt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return pt(pt({},e),Rt(t))}),{}));continue;case"engineering":t=pt(pt(pt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return pt(pt({},e),Rt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
315
+ */function Lt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ht(ht(ht({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ht(ht({},e),Nt(t))}),{}));continue;case"engineering":t=ht(ht(ht({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ht(ht({},e),Nt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
289
316
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
290
317
  case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
291
318
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
292
- case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ht,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
319
+ case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xt,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
293
320
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
294
- if(Nt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Bt.test(i.stem)){
321
+ if(Ot.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Pt.test(i.stem)){
295
322
  // Precision
296
323
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
297
324
  // precision-integer case
298
- if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Bt,(function(e,n,r,i,o,s){
325
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Pt,(function(e,n,r,i,o,s){
299
326
  // .000* case (before ICU67 it was .000+)
300
327
  return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
301
328
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
302
- "w"===o?t=pt(pt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=pt(pt({},t),Lt(o)))}
329
+ "w"===o?t=ht(ht({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ht(ht({},t),Bt(o)))}
303
330
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
304
- else if(At.test(i.stem))t=pt(pt({},t),Lt(i.stem));else{var s=Ct(i.stem);s&&(t=pt(pt({},t),s));var a=It(i.stem);a&&(t=pt(pt({},t),a))}}return t}
331
+ else if(Dt.test(i.stem))t=ht(ht({},t),Bt(i.stem));else{var s=At(i.stem);s&&(t=ht(ht({},t),s));var a=Ht(i.stem);a&&(t=ht(ht({},t),a))}}return t}
305
332
  // @generated from time-data-gen.ts
306
333
  // prettier-ignore
307
- var Yt,Ut={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
334
+ var Ct,It={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
308
335
  /**
309
336
  * Returns the best matching date time pattern if a date time skeleton
310
337
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -317,7 +344,7 @@ var Yt,Ut={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
317
344
  * of the given `locale` to the corresponding time pattern.
318
345
  * @param locale
319
346
  */
320
- function Gt(e){var t=e.hourCycle;if(void 0===t&&
347
+ function Rt(e){var t=e.hourCycle;if(void 0===t&&
321
348
  // @ts-ignore hourCycle(s) is not identified yet
322
349
  e.hourCycles&&
323
350
  // @ts-ignore
@@ -325,37 +352,37 @@ e.hourCycles.length&&(
325
352
  // @ts-ignore
326
353
  t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
327
354
  // TODO: Once hourCycle is fully supported remove the following with data generation
328
- var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Ut[n||""]||Ut[r||""]||Ut["".concat(r,"-001")]||Ut["001"])[0]}var $t=new RegExp("^".concat(Pt.source,"*")),jt=new RegExp("".concat(Pt.source,"*$"));function Wt(e,t){return{start:e,end:t}}
355
+ var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(It[n||""]||It[r||""]||It["".concat(r,"-001")]||It["001"])[0]}var Ft=new RegExp("^".concat(St.source,"*")),Yt=new RegExp("".concat(St.source,"*$"));function Ut(e,t){return{start:e,end:t}}
329
356
  // #region Ponyfills
330
357
  // Consolidate these variables up top for easier toggling during debugging
331
- var Vt=!!String.prototype.startsWith,zt=!!String.fromCodePoint,Zt=!!Object.fromEntries,Xt=!!String.prototype.codePointAt,qt=!!String.prototype.trimStart,Kt=!!String.prototype.trimEnd,Jt=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qt=!0;try{
358
+ var Gt=!!String.prototype.startsWith,$t=!!String.fromCodePoint,jt=!!Object.fromEntries,Wt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,zt=!!String.prototype.trimEnd,Zt=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Xt=!0;try{
332
359
  /**
333
360
  * legacy Edge or Xbox One browser
334
361
  * Unicode flag support: supported
335
362
  * Pattern_Syntax support: not supported
336
363
  * See https://github.com/formatjs/formatjs/issues/2822
337
364
  */
338
- Qt="a"===(null===(Yt=un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yt?void 0:Yt[0])}catch(e){Qt=!1}var en,tn=Vt?// Native
365
+ Xt="a"===(null===(Ct=rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ct?void 0:Ct[0])}catch(e){Xt=!1}var qt,Kt=Gt?// Native
339
366
  function(e,t,n){return e.startsWith(t,n)}:// For IE11
340
- function(e,t,n){return e.slice(n,n+t.length)===t},nn=zt?String.fromCodePoint:// IE11
341
- function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},rn=
367
+ function(e,t,n){return e.slice(n,n+t.length)===t},Jt=$t?String.fromCodePoint:// IE11
368
+ function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Qt=
342
369
  // native
343
- Zt?Object.fromEntries:// Ponyfill
344
- function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},on=Xt?// Native
370
+ jt?Object.fromEntries:// Ponyfill
371
+ function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},en=Wt?// Native
345
372
  function(e,t){return e.codePointAt(t)}:// IE 11
346
- function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},sn=qt?// Native
373
+ function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},tn=Vt?// Native
347
374
  function(e){return e.trimStart()}:// Ponyfill
348
- function(e){return e.replace($t,"")},an=Kt?// Native
375
+ function(e){return e.replace(Ft,"")},nn=zt?// Native
349
376
  function(e){return e.trimEnd()}:// Ponyfill
350
- function(e){return e.replace(jt,"")};
377
+ function(e){return e.replace(Yt,"")};
351
378
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
352
- function un(e,t){return new RegExp(e,t)}
379
+ function rn(e,t){return new RegExp(e,t)}
353
380
  // #endregion
354
- if(Qt){
381
+ if(Xt){
355
382
  // Native
356
- var ln=un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");en=function(e,t){var n;return ln.lastIndex=t,null!==(n=ln.exec(e)[1])&&void 0!==n?n:""}}else
383
+ var on=rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qt=function(e,t){var n;return on.lastIndex=t,null!==(n=on.exec(e)[1])&&void 0!==n?n:""}}else
357
384
  // IE11
358
- en=function(e,t){for(var n=[];;){var r=on(e,t);if(void 0===r||dn(r)||pn(r))break;n.push(r),t+=r>=65536?2:1}return nn.apply(void 0,n)};var hn=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ct.UNMATCHED_CLOSING_TAG,Wt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&cn(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:ft.pound,location:Wt(s,this.clonePosition())})}}}return{val:r,err:null}},
385
+ qt=function(e,t){for(var n=[];;){var r=en(e,t);if(void 0===r||ln(r)||hn(r))break;n.push(r),t+=r>=65536?2:1}return Jt.apply(void 0,n)};var sn=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(at.UNMATCHED_CLOSING_TAG,Ut(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&an(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:ut.pound,location:Ut(s,this.clonePosition())})}}}return{val:r,err:null}},
359
386
  /**
360
387
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
361
388
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -377,14 +404,14 @@ en=function(e,t){for(var n=[];;){var r=on(e,t);if(void 0===r||dn(r)||pn(r))break
377
404
  e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
378
405
  var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
379
406
  // Self closing tag
380
- return{val:{type:ft.literal,value:"<".concat(r,"/>"),location:Wt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
407
+ return{val:{type:ut.literal,value:"<".concat(r,"/>"),location:Ut(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
381
408
  // Expecting a close tag
382
- if(this.bumpIf("</")){if(this.isEOF()||!cn(this.char()))return this.error(ct.INVALID_TAG,Wt(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(ct.UNMATCHED_CLOSING_TAG,Wt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:r,children:o,location:Wt(n,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,Wt(s,this.clonePosition())))}return this.error(ct.UNCLOSED_TAG,Wt(n,this.clonePosition()))}return this.error(ct.INVALID_TAG,Wt(n,this.clonePosition()))},
409
+ if(this.bumpIf("</")){if(this.isEOF()||!an(this.char()))return this.error(at.INVALID_TAG,Ut(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(at.UNMATCHED_CLOSING_TAG,Ut(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ut.tag,value:r,children:o,location:Ut(n,this.clonePosition())},err:null}:this.error(at.INVALID_TAG,Ut(s,this.clonePosition())))}return this.error(at.UNCLOSED_TAG,Ut(n,this.clonePosition()))}return this.error(at.INVALID_TAG,Ut(n,this.clonePosition()))},
383
410
  /**
384
411
  * This method assumes that the caller has peeked ahead for the first tag character.
385
412
  */
386
413
  e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
387
- for(this.bump();!this.isEOF()&&fn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=Wt(n,this.clonePosition());return{val:{type:ft.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(cn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
414
+ for(this.bump();!this.isEOF()&&un(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=Ut(n,this.clonePosition());return{val:{type:ut.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(an(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
388
415
  /** See `parseTag` function docs. */},
389
416
  /**
390
417
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
@@ -406,67 +433,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
406
433
  // Optional closing apostrophe.
407
434
  this.bump();break}t.push(39),
408
435
  // Bump one more time because we need to skip 2 characters.
409
- this.bump()}else t.push(n);this.bump()}return nn.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),nn(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
410
- this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(ct.EMPTY_ARGUMENT,Wt(n,this.clonePosition()));
436
+ this.bump()}else t.push(n);this.bump()}return Jt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),Jt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
437
+ this.bumpSpace(),this.isEOF())return this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(at.EMPTY_ARGUMENT,Ut(n,this.clonePosition()));
411
438
  // argument name
412
- var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ct.MALFORMED_ARGUMENT,Wt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(n,this.clonePosition()));switch(this.char()){
439
+ var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(at.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));switch(this.char()){
413
440
  // Simple argument: `{name}`
414
441
  case 125/* `}` */:// `}`
415
- return this.bump(),{val:{type:ft.argument,
442
+ return this.bump(),{val:{type:ut.argument,
416
443
  // value does not include the opening and closing braces.
417
- value:r,location:Wt(n,this.clonePosition())},err:null};
444
+ value:r,location:Ut(n,this.clonePosition())},err:null};
418
445
  // Argument with options: `{name, format, ...}`
419
446
  case 44/* `,` */:return this.bump(),// `,`
420
- this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(ct.MALFORMED_ARGUMENT,Wt(n,this.clonePosition()))}},
447
+ this.bumpSpace(),this.isEOF()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(at.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()))}},
421
448
  /**
422
449
  * Advance the parser until the end of the identifier, if it is currently on
423
450
  * an identifier character. Return an empty string otherwise.
424
451
  */
425
- e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=en(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Wt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
452
+ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=qt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ut(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
426
453
  // Parse this range:
427
454
  // {name, type, style}
428
455
  // ^---^
429
456
  switch(s){case"":
430
457
  // Expecting a style string number, date, time, plural, selectordinal, or select.
431
- return this.error(ct.EXPECT_ARGUMENT_TYPE,Wt(o,a));case"number":case"date":case"time":
458
+ return this.error(at.EXPECT_ARGUMENT_TYPE,Ut(o,a));case"number":case"date":case"time":
432
459
  // Parse this range:
433
460
  // {name, number, style}
434
461
  // ^-------^
435
- this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(d=an(y.val)).length)return this.error(ct.EXPECT_ARGUMENT_STYLE,Wt(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:Wt(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var h=Wt(r,this.clonePosition());
462
+ this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(d=nn(y.val)).length)return this.error(at.EXPECT_ARGUMENT_STYLE,Ut(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:Ut(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var h=Ut(r,this.clonePosition());
436
463
  // Extract style or skeleton
437
- if(u&&tn(null==u?void 0:u.style,"::",0)){
464
+ if(u&&Kt(null==u?void 0:u.style,"::",0)){
438
465
  // Skeleton starts with `::`.
439
- var c=sn(u.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(c,u.styleLocation)).err?y:{val:{type:ft.number,value:n,location:h,style:y.val},err:null};if(0===c.length)return this.error(ct.EXPECT_DATE_TIME_SKELETON,h);var f=c;
466
+ var c=tn(u.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(c,u.styleLocation)).err?y:{val:{type:ut.number,value:n,location:h,style:y.val},err:null};if(0===c.length)return this.error(at.EXPECT_DATE_TIME_SKELETON,h);var f=c;
440
467
  // Get "best match" pattern only if locale is passed, if not, let it
441
468
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
442
469
  // for unsupported patterns.
443
- this.locale&&(f=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),u=Gt(t);for("H"!=u&&"k"!=u||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(c,this.locale));var d={type:dt.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Dt(f):{}};return{val:{type:"date"===s?ft.date:ft.time,value:n,location:h,style:d},err:null}}
470
+ this.locale&&(f=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),u=Rt(t);for("H"!=u&&"k"!=u||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(c,this.locale));var d={type:lt.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Mt(f):{}};return{val:{type:"date"===s?ut.date:ut.time,value:n,location:h,style:d},err:null}}
444
471
  // Regular style or no style.
445
- return{val:{type:"number"===s?ft.number:"date"===s?ft.date:ft.time,value:n,location:h,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
472
+ return{val:{type:"number"===s?ut.number:"date"===s?ut.date:ut.time,value:n,location:h,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
446
473
  // Parse this range:
447
474
  // {name, plural, options}
448
475
  // ^---------^
449
- var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,Wt(p,pt({},p)));this.bumpSpace();
476
+ var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(at.EXPECT_SELECT_ARGUMENT_OPTIONS,Ut(p,ht({},p)));this.bumpSpace();
450
477
  // Parse offset:
451
478
  // {name, plural, offset:1, options}
452
479
  // ^-----^
453
480
  // or the first option:
454
481
  // {name, plural, one {...} other {...}}
455
482
  // ^--^
456
- var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
483
+ var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,at.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
457
484
  // Parse another identifier for option parsing
458
- this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,_=this.tryParsePluralOrSelectOptions(e,s,t,m);if(_.err)return _;if((v=this.tryParseArgumentClose(r)).err)return v;var b=Wt(r,this.clonePosition());return"select"===s?{val:{type:ft.select,value:n,options:rn(_.val),location:b},err:null}:{val:{type:ft.plural,value:n,options:rn(_.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:b},err:null};default:return this.error(ct.INVALID_ARGUMENT_TYPE,Wt(o,a))}},e.prototype.tryParseArgumentClose=function(e){
485
+ this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,_=this.tryParsePluralOrSelectOptions(e,s,t,m);if(_.err)return _;if((v=this.tryParseArgumentClose(r)).err)return v;var b=Ut(r,this.clonePosition());return"select"===s?{val:{type:ut.select,value:n,options:Qt(_.val),location:b},err:null}:{val:{type:ut.plural,value:n,options:Qt(_.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:b},err:null};default:return this.error(at.INVALID_ARGUMENT_TYPE,Ut(o,a))}},e.prototype.tryParseArgumentClose=function(e){
459
486
  // Parse: {value, number, ::currency/GBP }
460
- return this.isEOF()||125/* `}` */!==this.char()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
487
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
461
488
  /**
462
489
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
463
490
  */
464
491
  e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
465
492
  // Treat apostrophe as quoting but include it in the style part.
466
493
  // Find the end of the quoted literal text.
467
- this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Wt(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
494
+ this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(at.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ut(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
468
495
  // Parse the skeleton
469
- for(var t=e.split(xt).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var o=i[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),u=0,l=a;u<l.length;u++)if(0===l[u].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:a})}return n}(e)}catch(e){return this.error(ct.INVALID_NUMBER_SKELETON,t)}return{val:{type:dt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ft(n):{}},err:null}},
496
+ for(var t=e.split(kt).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var o=i[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),u=0,l=a;u<l.length;u++)if(0===l[u].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:a})}return n}(e)}catch(e){return this.error(at.INVALID_NUMBER_SKELETON,t)}return{val:{type:lt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Lt(n):{}},err:null}},
470
497
  /**
471
498
  * @param nesting_level The current nesting level of messages.
472
499
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -483,24 +510,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
483
510
  // ^--^
484
511
  for(var i,o=!1,s=[],a=new Set,u=r.value,l=r.location;;){if(0===u.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
485
512
  // Try parse `={number}` selector
486
- var c=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Wt(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}
513
+ var c=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_SELECTOR,at.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ut(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}
487
514
  // Duplicate selector clauses
488
- if(a.has(u))return this.error("select"===t?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),
515
+ if(a.has(u))return this.error("select"===t?at.DUPLICATE_SELECT_ARGUMENT_SELECTOR:at.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),
489
516
  // Parse:
490
517
  // one {one apple}
491
518
  // ^----------^
492
- this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Wt(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,n);if(d.err)return d;var p=this.tryParseArgumentClose(f);if(p.err)return p;s.push([u,{value:d.val,location:Wt(f,this.clonePosition())}]),
519
+ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?at.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:at.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ut(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,n);if(d.err)return d;var p=this.tryParseArgumentClose(f);if(p.err)return p;s.push([u,{value:d.val,location:Ut(f,this.clonePosition())}]),
493
520
  // Keep track of the existing selectors
494
521
  a.add(u),
495
522
  // Prep next selector clause.
496
- this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ct.MISSING_OTHER_CLAUSE,Wt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Wt(r,this.clonePosition());return i?Jt(o*=n)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
523
+ this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?at.EXPECT_SELECT_ARGUMENT_SELECTOR:at.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(at.MISSING_OTHER_CLAUSE,Ut(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Ut(r,this.clonePosition());return i?Zt(o*=n)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
497
524
  // This is much faster than `Object.assign` or spread.
498
525
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
499
526
  /**
500
527
  * Return the code point at the current position of the parser.
501
528
  * Throws if the index is out of bound.
502
529
  */
503
- e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=on(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
530
+ e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=en(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
504
531
  /** Bump the parser to the next UTF-16 code unit. */
505
532
  e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
506
533
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
@@ -511,7 +538,7 @@ this.position.offset+=e<65536?1:2)}},
511
538
  * following the prefix and return true. Otherwise, don't bump the parser
512
539
  * and return false.
513
540
  */
514
- e.prototype.bumpIf=function(e){if(tn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
541
+ e.prototype.bumpIf=function(e){if(Kt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
515
542
  /**
516
543
  * Bump the parser until the pattern character is found and return `true`.
517
544
  * Otherwise bump to the end of the file and return `false`.
@@ -523,7 +550,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
523
550
  */
524
551
  e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
525
552
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
526
- e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dn(this.char());)this.bump()},
553
+ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ln(this.char());)this.bump()},
527
554
  /**
528
555
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
529
556
  * If the input has been exhausted, then this returns null.
@@ -533,113 +560,99 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
533
560
  * This check if codepoint is alphabet (lower & uppercase)
534
561
  * @param codepoint
535
562
  * @returns
536
- */function cn(e){return e>=97&&e<=122||e>=65&&e<=90}function fn(e){return 45/* '-' */===e||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
563
+ */function an(e){return e>=97&&e<=122||e>=65&&e<=90}function un(e){return 45/* '-' */===e||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
537
564
  /**
538
565
  * Code point equivalent of regex `\p{White_Space}`.
539
566
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
540
- */function dn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
567
+ */function ln(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
541
568
  /**
542
569
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
543
570
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
544
- */function pn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function mn(e){e.forEach((function(e){if(delete e.location,wt(e)||Et(e))for(var t in e.options)delete e.options[t].location,mn(e.options[t].value);else vt(e)&&Mt(e.style)||(_t(e)||bt(e))&&kt(e.style)?delete e.style.location:Tt(e)&&mn(e.children)}))}function gn(e,t){void 0===t&&(t={}),t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new hn(e,t).parse();if(n.err){var r=SyntaxError(ct[n.err.kind]);
571
+ */function hn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function cn(e){e.forEach((function(e){if(delete e.location,yt(e)||vt(e))for(var t in e.options)delete e.options[t].location,cn(e.options[t].value);else pt(e)&&wt(e.style)||(mt(e)||gt(e))&&Et(e.style)?delete e.style.location:bt(e)&&cn(e.children)}))}function fn(e,t){void 0===t&&(t={}),t=ht({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new sn(e,t).parse();if(n.err){var r=SyntaxError(at[n.err.kind]);
545
572
  // @ts-expect-error Assign to error object
546
573
  throw r.location=n.err.location,
547
574
  // @ts-expect-error Assign to error object
548
- r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||mn(n.val),n.val}
575
+ r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||cn(n.val),n.val}
549
576
 
550
577
  // Main
551
578
 
552
- function yn(e,t){var n=t&&t.cache?t.cache:Mn,r=t&&t.serializer?t.serializer:En;return(t&&t.strategy?t.strategy:wn)(e,{cache:n,serializer:r})}
579
+ function dn(e,t){var n=t&&t.cache?t.cache:wn,r=t&&t.serializer?t.serializer:vn;return(t&&t.strategy?t.strategy:yn)(e,{cache:n,serializer:r})}
553
580
 
554
581
  // Strategy
555
582
 
556
- function vn(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(o);return void 0===s&&(s=e.call(this,r),t.set(o,s)),s}function _n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function bn(e,t,n,r,i){return n.bind(t,e,r,i)}function wn(e,t){return bn(e,this,1===e.length?vn:_n,t.cache.create(),t.serializer)}
583
+ function pn(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(o);return void 0===s&&(s=e.call(this,r),t.set(o,s)),s}function mn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function gn(e,t,n,r,i){return n.bind(t,e,r,i)}function yn(e,t){return gn(e,this,1===e.length?pn:mn,t.cache.create(),t.serializer)}
557
584
  // Serializer
558
- var En=function(){return JSON.stringify(arguments)};
585
+ var vn=function(){return JSON.stringify(arguments)};
559
586
 
560
587
  // Cache
561
588
 
562
- function Sn(){this.cache=Object.create(null)}Sn.prototype.get=function(e){return this.cache[e]},Sn.prototype.set=function(e,t){this.cache[e]=t};var Tn,Mn={create:function(){
589
+ function _n(){this.cache=Object.create(null)}_n.prototype.get=function(e){return this.cache[e]},_n.prototype.set=function(e,t){this.cache[e]=t};var bn,wn={create:function(){
563
590
  // @ts-ignore
564
- return new Sn}},kn={variadic:function(e,t){return bn(e,this,_n,t.cache.create(),t.serializer)},monadic:function(e,t){return bn(e,this,vn,t.cache.create(),t.serializer)}};!function(e){
591
+ return new _n}},En={variadic:function(e,t){return gn(e,this,mn,t.cache.create(),t.serializer)},monadic:function(e,t){return gn(e,this,pn,t.cache.create(),t.serializer)}};!function(e){
565
592
  // When we have a placeholder but no value to format
566
593
  e.MISSING_VALUE="MISSING_VALUE",
567
594
  // When value supplied is invalid
568
595
  e.INVALID_VALUE="INVALID_VALUE",
569
596
  // When we need specific Intl API but it's not available
570
- e.MISSING_INTL_API="MISSING_INTL_API"}(Tn||(Tn={}));var Pn,On=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ht(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Dn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Tn.INVALID_VALUE,i)||this}return ht(t,e),t}(On),xn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Tn.INVALID_VALUE,r)||this}return ht(t,e),t}(On),Bn=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Tn.MISSING_VALUE,n)||this}return ht(t,e),t}(On);function An(e){return"function"==typeof e}
597
+ e.MISSING_INTL_API="MISSING_INTL_API"}(bn||(bn={}));var Sn,Tn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return st(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Mn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),bn.INVALID_VALUE,i)||this}return st(t,e),t}(Tn),kn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),bn.INVALID_VALUE,r)||this}return st(t,e),t}(Tn),Pn=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),bn.MISSING_VALUE,n)||this}return st(t,e),t}(Tn);function Dn(e){return"function"==typeof e}
571
598
  // TODO(skeleton): add skeleton support
572
- function Hn(e,t,n,r,i,o,
599
+ function xn(e,t,n,r,i,o,
573
600
  // For debugging
574
601
  s){
575
602
  // Hot path for straight simple msg translations
576
- if(1===e.length&&gt(e[0]))return[{type:Pn.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];
603
+ if(1===e.length&&ft(e[0]))return[{type:Sn.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];
577
604
  // Exit early for string parts.
578
- if(gt(h))a.push({type:Pn.literal,value:h.value});else
605
+ if(ft(h))a.push({type:Sn.literal,value:h.value});else
579
606
  // TODO: should this part be literal type?
580
607
  // Replace `#` in plural rules with the actual numeric value.
581
- if(St(h))"number"==typeof o&&a.push({type:Pn.literal,value:n.getNumberFormat(t).format(o)});else{var c=h.value;
608
+ if(_t(h))"number"==typeof o&&a.push({type:Sn.literal,value:n.getNumberFormat(t).format(o)});else{var c=h.value;
582
609
  // Enforce that all required values are provided by the caller.
583
- if(!i||!(c in i))throw new Bn(c,s);var f=i[c];if(yt(h))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Pn.literal:Pn.object,value:f});else
610
+ if(!i||!(c in i))throw new Pn(c,s);var f=i[c];if(dt(h))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Sn.literal:Sn.object,value:f});else
584
611
  // Recursively format plural and select parts' option — which can be a
585
612
  // nested pattern structure. The choosing of the option to use is
586
613
  // abstracted-by and delegated-to the part helper object.
587
- if(_t(h)){var d="string"==typeof h.style?r.date[h.style]:kt(h.style)?h.style.parsedOptions:void 0;a.push({type:Pn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(bt(h)){d="string"==typeof h.style?r.time[h.style]:kt(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:Pn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(vt(h)){(d="string"==typeof h.style?r.number[h.style]:Mt(h.style)?h.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),a.push({type:Pn.literal,value:n.getNumberFormat(t,d).format(f)})}else{if(Tt(h)){var p=h.children,m=h.value,g=i[m];if(!An(g))throw new xn(m,"function",s);var y=g(Hn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?Pn.literal:Pn.object,value:e}})))}if(wt(h)){if(!(v=h.options[f]||h.options.other))throw new Dn(h.value,f,Object.keys(h.options),s);a.push.apply(a,Hn(v.value,t,n,r,i))}else if(Et(h)){var v;if(!(v=h.options["=".concat(f)])){if(!Intl.PluralRules)throw new On('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Tn.MISSING_INTL_API,s);var _=n.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));v=h.options[_]||h.options.other}if(!v)throw new Dn(h.value,f,Object.keys(h.options),s);a.push.apply(a,Hn(v.value,t,n,r,i,f-(h.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Pn.literal&&t.type===Pn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
614
+ if(mt(h)){var d="string"==typeof h.style?r.date[h.style]:Et(h.style)?h.style.parsedOptions:void 0;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(gt(h)){d="string"==typeof h.style?r.time[h.style]:Et(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(pt(h)){(d="string"==typeof h.style?r.number[h.style]:wt(h.style)?h.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),a.push({type:Sn.literal,value:n.getNumberFormat(t,d).format(f)})}else{if(bt(h)){var p=h.children,m=h.value,g=i[m];if(!Dn(g))throw new kn(m,"function",s);var y=g(xn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?Sn.literal:Sn.object,value:e}})))}if(yt(h)){if(!(v=h.options[f]||h.options.other))throw new Mn(h.value,f,Object.keys(h.options),s);a.push.apply(a,xn(v.value,t,n,r,i))}else if(vt(h)){var v;if(!(v=h.options["=".concat(f)])){if(!Intl.PluralRules)throw new Tn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',bn.MISSING_INTL_API,s);var _=n.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));v=h.options[_]||h.options.other}if(!v)throw new Mn(h.value,f,Object.keys(h.options),s);a.push.apply(a,xn(v.value,t,n,r,i,f-(h.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Sn.literal&&t.type===Sn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
588
615
  /*
589
616
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
590
617
  Copyrights licensed under the New BSD License.
591
618
  See the accompanying LICENSE file for terms.
592
619
  */
593
620
  // -- MessageFormat --------------------------------------------------------
594
- function Nn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?pt(pt(pt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=pt(pt({},i[t]),o[t]||{}),e}),{})):i),n}),pt({},e)):e}function Ln(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Pn||(Pn={}));var Cn=/** @class */function(){function e(t,n,r,i){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
621
+ function On(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?ht(ht(ht({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=ht(ht({},i[t]),o[t]||{}),e}),{})):i),n}),ht({},e)):e}function Bn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Sn||(Sn={}));var An=/** @class */function(){function e(t,n,r,i){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
595
622
  // Hot path for straight simple msg translations
596
- if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Pn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Hn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
623
+ if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Sn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return xn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
597
624
  // Defined first because it's used to build the format pattern.
598
625
  this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
599
626
  // Parse string messages into an AST.
600
627
  this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
601
628
  // Creates a new object with the specified `formats` merged with the default
602
629
  // formats.
603
- this.formats=Nn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:yn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,mt([void 0],t,!1)))}),{cache:Ln(o.number),strategy:kn.variadic}),getDateTimeFormat:yn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,mt([void 0],t,!1)))}),{cache:Ln(o.dateTime),strategy:kn.variadic}),getPluralRules:yn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,mt([void 0],t,!1)))}),{cache:Ln(o.pluralRules),strategy:kn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=gn,
630
+ this.formats=On(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Bn(o.number),strategy:En.variadic}),getDateTimeFormat:dn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Bn(o.dateTime),strategy:En.variadic}),getPluralRules:dn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ct([void 0],t,!1)))}),{cache:Bn(o.pluralRules),strategy:En.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=fn,
604
631
  // Default format options used as the prototype of the `formats` provided to the
605
632
  // constructor. These are used when constructing the internal Intl.NumberFormat
606
633
  // and Intl.DateTimeFormat instances.
607
- e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),In=Cn;
634
+ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Hn=An;
608
635
  /*
609
636
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
610
637
  Copyrights licensed under the New BSD License.
611
638
  See the accompanying LICENSE file for terms.
612
- */const Rn={},Fn=(e,t,n)=>n?(t in Rn||(Rn[t]={}),e in Rn[t]||(Rn[t][e]=n),n):n,Yn=(e,t)=>{if(null==t)return;if(t in Rn&&e in Rn[t])return Rn[t][e];const n=ir(t);for(let r=0;r<n.length;r++){const i=jn(n[r],e);if(i)return Fn(e,t,i)}};let Un;const Gn=Je({});function $n(e){return e in Un}function jn(e,t){if(!$n(e))return null;const n=function(e){return Un[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Wn(e,...t){delete Rn[e],Gn.update((n=>(n[e]=ut.all([n[e]||{},...t]),n)))}Qe([Gn],(([e])=>Object.keys(e))),Gn.subscribe((e=>Un=e));const Vn={};function zn(e){return Vn[e]}function Zn(e){return null!=e&&ir(e).some((e=>{var t;return null===(t=zn(e))||void 0===t?void 0:t.size}))}const Xn={};function qn(e){if(!Zn(e))return e in Xn?Xn[e]:Promise.resolve();const t=function(e){return ir(e).map((e=>{const t=zn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Xn[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Vn[e].delete(t),0===Vn[e].size&&delete Vn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Wn(e,...t)))}(e,t)))).then((()=>{if(Zn(e))return qn(e);delete Xn[e]})),Xn[e]}
613
- /*! *****************************************************************************
614
- Copyright (c) Microsoft Corporation.
615
-
616
- Permission to use, copy, modify, and/or distribute this software for any
617
- purpose with or without fee is hereby granted.
618
-
619
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
620
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
621
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
622
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
623
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
624
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
625
- PERFORMANCE OF THIS SOFTWARE.
626
- ***************************************************************************** */function Kn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const Jn={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 Qn(){return Jn}const er=Je(!1);let tr;const nr=Je(null);function rr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function ir(e,t=Qn().fallbackLocale){const n=rr(e);return t?[...new Set([...n,...rr(t)])]:n}function or(){return null!=tr?tr:void 0}nr.subscribe((e=>{tr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const sr=Object.assign(Object.assign({},nr),{set:e=>{if(e&&function(e){if(null==e)return;const t=ir(e);for(let e=0;e<t.length;e++){const n=t[e];if($n(n))return n}}(e)&&Zn(e)){const{loadingDelay:t}=Qn();let n;return"undefined"!=typeof window&&null!=or()&&t?n=window.setTimeout((()=>er.set(!0)),t):er.set(!0),qn(e).then((()=>{nr.set(e)})).finally((()=>{clearTimeout(n),er.set(!1)}))}return nr.set(e)}}),ar=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},ur=(e,t)=>{const{formats:n}=Qn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},lr=ar((e=>{var{locale:t,format:n}=e,r=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=ur("number",n)),new Intl.NumberFormat(t,r)})),hr=ar((e=>{var{locale:t,format:n}=e,r=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=ur("date",n):0===Object.keys(r).length&&(r=ur("date","short")),new Intl.DateTimeFormat(t,r)})),cr=ar((e=>{var{locale:t,format:n}=e,r=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=ur("time",n):0===Object.keys(r).length&&(r=ur("time","short")),new Intl.DateTimeFormat(t,r)})),fr=ar(((e,t=or())=>new In(e,t,Qn().formats,{ignoreTag:Qn().ignoreTag}))),dr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:u=or(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Yn(e,u);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!==(o=null!==(i=null===(r=(n=Qn()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return h;let c=h;try{c=fr(h,u).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},pr=(e,t)=>((e={})=>{var{locale:t=or()}=e,n=Kn(e,["locale"]);return cr(Object.assign({locale:t},n))})(t).format(e),mr=(e,t)=>((e={})=>{var{locale:t=or()}=e,n=Kn(e,["locale"]);return hr(Object.assign({locale:t},n))})(t).format(e),gr=(e,t)=>((e={})=>{var{locale:t=or()}=e,n=Kn(e,["locale"]);return lr(Object.assign({locale:t},n))})(t).format(e),yr=(e,t=or())=>Yn(e,t),vr=Qe([sr,Gn],(()=>dr));Qe([sr],(()=>pr)),Qe([sr],(()=>mr)),Qe([sr],(()=>gr)),Qe([sr,Gn],(()=>yr)),window.emWidgets={topic:(e,t=0)=>{if(-1==Xe.indexOf(e)){let n=new Ze(t);qe[e]=n,Xe.push(e)}return qe[e]}};
639
+ */const Nn={},Ln=(e,t,n)=>n?(t in Nn||(Nn[t]={}),e in Nn[t]||(Nn[t][e]=n),n):n,Cn=(e,t)=>{if(null==t)return;if(t in Nn&&e in Nn[t])return Nn[t][e];const n=Qn(t);for(let r=0;r<n.length;r++){const i=Yn(n[r],e);if(i)return Ln(e,t,i)}};let In;const Rn=Ze({});function Fn(e){return e in In}function Yn(e,t){if(!Fn(e))return null;const n=function(e){return In[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Un(e,...t){delete Nn[e],Rn.update((n=>(n[e]=it.all([n[e]||{},...t]),n)))}Xe([Rn],(([e])=>Object.keys(e))),Rn.subscribe((e=>In=e));const Gn={};function $n(e){return Gn[e]}function jn(e){return null!=e&&Qn(e).some((e=>{var t;return null===(t=$n(e))||void 0===t?void 0:t.size}))}const Wn={};function Vn(e){if(!jn(e))return e in Wn?Wn[e]:Promise.resolve();const t=function(e){return Qn(e).map((e=>{const t=$n(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Wn[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Gn[e].delete(t),0===Gn[e].size&&delete Gn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Un(e,...t)))}(e,t)))).then((()=>{if(jn(e))return Vn(e);delete Wn[e]})),Wn[e]}const zn={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 Zn(){return zn}const Xn=Ze(!1);let qn;const Kn=Ze(null);function Jn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Qn(e,t=Zn().fallbackLocale){const n=Jn(e);return t?[...new Set([...n,...Jn(t)])]:n}function er(){return null!=qn?qn:void 0}Kn.subscribe((e=>{qn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const tr={...Kn,set:e=>{if(e&&function(e){if(null==e)return;const t=Qn(e);for(let e=0;e<t.length;e++){const n=t[e];if(Fn(n))return n}}(e)&&jn(e)){const{loadingDelay:t}=Zn();let n;return"undefined"!=typeof window&&null!=er()&&t?n=window.setTimeout((()=>Xn.set(!0)),t):Xn.set(!0),Vn(e).then((()=>{Kn.set(e)})).finally((()=>{clearTimeout(n),Xn.set(!1)}))}return Kn.set(e)}},nr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},rr=(e,t)=>{const{formats:n}=Zn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ir=nr((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=rr("number",t)),new Intl.NumberFormat(e,n)})),or=nr((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=rr("date",t):0===Object.keys(n).length&&(n=rr("date","short")),new Intl.DateTimeFormat(e,n)})),sr=nr((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=rr("time",t):0===Object.keys(n).length&&(n=rr("time","short")),new Intl.DateTimeFormat(e,n)})),ar=nr(((e,t=er())=>new Hn(e,t,Zn().formats,{ignoreTag:Zn().ignoreTag}))),ur=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:u=er(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Cn(e,u);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!==(o=null!==(i=null===(r=(n=Zn()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return h;let c=h;try{c=ar(h,u).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},lr=(e,t)=>(({locale:e=er(),...t}={})=>sr({locale:e,...t}))(t).format(e),hr=(e,t)=>(({locale:e=er(),...t}={})=>or({locale:e,...t}))(t).format(e),cr=(e,t)=>(({locale:e=er(),...t}={})=>ir({locale:e,...t}))(t).format(e),fr=(e,t=er())=>Cn(e,t),dr=Xe([tr,Rn],(()=>ur));Xe([tr],(()=>lr)),Xe([tr],(()=>hr)),Xe([tr],(()=>cr)),Xe([tr,Rn],(()=>fr)),window.emWidgets={topic:(e,t=0)=>{if(-1==We.indexOf(e)){let n=new je(t);Ve[e]=n,We.push(e)}return Ve[e]}};
627
640
  /**
628
641
  * @name isMobile
629
642
  * @description A method that returns if the browser used to access the app is from a mobile device or not
630
643
  * @param {String} userAgent window.navigator.userAgent
631
644
  * @returns {Boolean} true or false
632
645
  */
633
- const _r=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
646
+ const pr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
634
647
  /**
635
648
  * @name getDevice
636
649
  * @description A method that returns the type of the device
637
650
  * @param {String} userAgent window.navigator.userAgent
638
651
  * @returns {String} Android/iPhone/iPad/PC
639
- */function br(e,t){Wn(e,t)}const wr={en:{gamePage:{signIn:"Log in",register:"REGISTER",deposit:"Deposit",playForFun:"Play for fun",playNow:"Start now!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},"zh-hk":{gamePage:{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"}},de:{gamePage:{signIn:"Einloggen",register:"REGISTRIEREN",deposit:"Einzahlung",playForFun:"Play for fun",playNow:"Jetzt beginnen!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken"}},it:{gamePage:{signIn:"Login",register:"REGISTRATI",deposit:"Deposito",playForFun:"Play for fun",playNow:"Inizia ora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},fr:{gamePage:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"}},es:{gamePage:{signIn:"Iniciar sesión",register:"REGÍSTRATE",deposit:"Deposita",playForFun:"Modo práctica",playNow:"Juega ahora!",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas"}},tr:{gamePage:{signIn:"OTURUM AÇ",register:"KAYIT OL",deposit:"DEPOZİTO",playForFun:"EĞLENCE İÇİN OYNA",playNow:"ŞİMDİ OYNA",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},ru:{gamePage:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},ro:{gamePage:{signIn:"AUTENTIFICARE",register:"INREGISTRARE",deposit:"DEPOZITEAZA",playForFun:"JOACĂ PENTRU DISTRACTIE",playNow:"JOACĂ ACUM",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},hr:{gamePage:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},hu:{gamePage:{signIn:"Bejelentkezés",register:"REGISZTRÁCIÓ",deposit:"Befizetés",playForFun:"Play for fun",playNow:"Játsszon most!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},pl:{gamePage:{signIn:"Zaloguj się",register:"REJESTRACJA",deposit:"Wpłata",playForFun:"Graj dla zabawy",playNow:"Rozpocznij teraz!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},pt:{gamePage:{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Jogue agora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},sl:{gamePage:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Vplačilo",playForFun:"Igrajte za zabavo",playNow:"Začnite zdaj!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},sr:{gamePage:{signIn:"Prijavi se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}}};
640
- /* eslint-disable */function Er(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t){var r=window.cstmNativeBridge.eventListeners[n];return window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],r&&r.apply(this,arguments),t.apply(this,arguments)},!0}console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];if("function"==typeof t){
652
+ */function mr(e,t){Un(e,t)}const gr={en:{gamePage:{signIn:"Log in",register:"REGISTER",deposit:"Deposit",playForFun:"Play for fun",playNow:"Start now!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},"zh-hk":{gamePage:{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"}},de:{gamePage:{signIn:"Einloggen",register:"REGISTRIEREN",deposit:"Einzahlung",playForFun:"Play for fun",playNow:"Jetzt beginnen!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken"}},it:{gamePage:{signIn:"Login",register:"REGISTRATI",deposit:"Deposito",playForFun:"Play for fun",playNow:"Inizia ora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},fr:{gamePage:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"}},es:{gamePage:{signIn:"Iniciar sesión",register:"REGÍSTRATE",deposit:"Deposita",playForFun:"Modo práctica",playNow:"Juega ahora!",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas"}},tr:{gamePage:{signIn:"OTURUM AÇ",register:"KAYIT OL",deposit:"DEPOZİTO",playForFun:"EĞLENCE İÇİN OYNA",playNow:"ŞİMDİ OYNA",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},ru:{gamePage:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},ro:{gamePage:{signIn:"AUTENTIFICARE",register:"INREGISTRARE",deposit:"DEPOZITEAZA",playForFun:"JOACĂ PENTRU DISTRACTIE",playNow:"JOACĂ ACUM",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},hr:{gamePage:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},hu:{gamePage:{signIn:"Bejelentkezés",register:"REGISZTRÁCIÓ",deposit:"Befizetés",playForFun:"Play for fun",playNow:"Játsszon most!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},pl:{gamePage:{signIn:"Zaloguj się",register:"REJESTRACJA",deposit:"Wpłata",playForFun:"Graj dla zabawy",playNow:"Rozpocznij teraz!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},pt:{gamePage:{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Jogue agora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},sl:{gamePage:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Vplačilo",playForFun:"Igrajte za zabavo",playNow:"Začnite zdaj!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}},sr:{gamePage:{signIn:"Prijavi se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}}};
653
+ /* eslint-disable */function yr(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t){var r=window.cstmNativeBridge.eventListeners[n];return window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],r&&r.apply(this,arguments),t.apply(this,arguments)},!0}console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];if("function"==typeof t){
641
654
  // copy everything except first param, which is the event.
642
- var n=Array.prototype.slice.call(arguments,1);return t.apply(this,n),!0}return console.error("Native Bridge `"+e+"` method is not defined"),!1};var Sr={getBridge:function(){try{return n.default.readFileSync(`${__dirname}/bridge.js`,"utf8")}catch(e){return console.error("Cannot load bridge script:",e),""}},isNative:function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},call:function(e,...t){try{return Er(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},registerEventListener:function(e,t){try{return Er(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}}},Tr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return fe(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
655
+ var n=Array.prototype.slice.call(arguments,1);return t.apply(this,n),!0}return console.error("Native Bridge `"+e+"` method is not defined"),!1};var vr={getBridge:function(){try{return n.default.readFileSync(`${__dirname}/bridge.js`,"utf8")}catch(e){return console.error("Cannot load bridge script:",e),""}},isNative:function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},call:function(e,...t){try{return yr(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},registerEventListener:function(e,t){try{return yr(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}}},_r=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return le(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
643
656
  // This is done to register the method called with moment()
644
657
  // without creating circular dependencies.
645
658
  function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
@@ -655,22 +668,22 @@ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n
655
668
  function E(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
656
669
  // Prevent infinite loop in case updateOffset creates new moment
657
670
  // objects.
658
- !1===b&&(b=!0,r.updateOffset(this),b=!1)}function S(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,u=[],l=arguments.length;for(o=0;o<l;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,P={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),P[e]||(T(t),P[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e){var t,n;for(n in e)a(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
671
+ !1===b&&(b=!0,r.updateOffset(this),b=!1)}function S(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,u=[],l=arguments.length;for(o=0;o<l;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,P={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),P[e]||(T(t),P[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)a(e,n)&&(x(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
659
672
  // Lenient ordinal parsing accepts just a number in addition to
660
673
  // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
661
674
  // TODO: Remove "ordinalParse" fallback in next major release.
662
675
  this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B(e,t){var n,r=d({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(
663
676
  // make sure changes to properties don't modify parent config
664
- r[n]=d({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r}function L(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},F={};
677
+ r[n]=d({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return x(r)?r.call(t,n):r}function L(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},F={};
665
678
  // token: 'M'
666
679
  // padded: ['MM', 2]
667
680
  // ordinal: 'Mo'
668
681
  // callback: function () { this.month() + 1 }
669
- function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(C);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(t,e):r[i];return o}}
682
+ function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(C);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=x(r[i])?r[i].call(t,e):r[i];return o}}
670
683
  // format date using native date object
671
- function $(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||G(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var z="Invalid date";function Z(){return this._invalidDate}var X="%d",q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return D(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)a(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function se(e,t){oe[e]=t}function ae(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function ce(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=he(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
684
+ function $(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||G(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var z="Invalid date";function Z(){return this._invalidDate}var X="%d",q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return x(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)a(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function se(e,t){oe[e]=t}function ae(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4==0&&e%100!=0||e%400==0}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=he(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
672
685
  // MOMENTS
673
- function me(e){return D(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var n,r=ae(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=re(e)]))return this[e](t);return this}var ye,ve=/\d/,// 0 - 9
686
+ function me(e){return x(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var n,r=ae(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(x(this[e=re(e)]))return this[e](t);return this}var ye,ve=/\d/,// 0 - 9
674
687
  _e=/\d\d/,// 00 - 99
675
688
  be=/\d{3}/,// 000 - 999
676
689
  we=/\d{4}/,// 0000 - 9999
@@ -680,17 +693,17 @@ Te=/\d\d\d\d?/,// 999 - 9999
680
693
  Me=/\d\d\d\d\d\d?/,// 99999 - 999999
681
694
  ke=/\d{1,3}/,// 0 - 999
682
695
  Pe=/\d{1,4}/,// 0 - 9999
683
- Oe=/[+-]?\d{1,6}/,// -999999 - 999999
684
- De=/\d+/,// 0 - inf
685
- xe=/[+-]?\d+/,// -inf - inf
696
+ De=/[+-]?\d{1,6}/,// -999999 - 999999
697
+ xe=/\d+/,// 0 - inf
698
+ Oe=/[+-]?\d+/,// -inf - inf
686
699
  Be=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
687
700
  Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
688
701
  He=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
689
702
  // any word (or two) characters or numbers including two/three word month in arabic.
690
703
  // includes scottish gaelic two word and hyphenated months
691
- Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){ye[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Ce(e,t){return a(ye,e)?ye[e](t._strict,t._locale):new RegExp(Ie(e))}
704
+ Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){ye[e]=x(t)?t:function(e,r){return e&&n?n:t}}function Ce(e,t){return a(ye,e)?ye[e](t._strict,t._locale):new RegExp(Ie(e))}
692
705
  // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
693
- function Ie(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Fe={};function Ye(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=he(e)}),r=e.length,n=0;n<r;n++)Fe[e[n]]=i}function Ue(e,t){Ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ge(e,t,n){null!=t&&a(Fe,e)&&Fe[e](t,n._a,n,e)}var $e,je=0,We=1,Ve=2,ze=3,Ze=4,Xe=5,qe=6,Ke=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}
706
+ function Ie(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Fe={};function Ye(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Fe[e[n]]=i}function Ue(e,t){Ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ge(e,t,n){null!=t&&a(Fe,e)&&Fe[e](t,n._a,n,e)}var $e,je=0,We=1,Ve=2,ze=3,Ze=4,Xe=5,qe=6,Ke=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}
694
707
  // FORMATTING
695
708
  $e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
696
709
  // I know
@@ -700,7 +713,7 @@ ne("month","M"),
700
713
  // PRIORITY
701
714
  se("month",8),
702
715
  // PARSING
703
- Le("M",Se),Le("MM",Se,_e),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Ye(["M","MM"],(function(e,t){t[We]=he(e)-1})),Ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
716
+ Le("M",Se),Le("MM",Se,_e),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Ye(["M","MM"],(function(e,t){t[We]=ce(e)-1})),Ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
704
717
  // if we didn't find a month name, mark the date as invalid.
705
718
  null!=i?t[We]=i:g(n).invalidMonth=e}));
706
719
  // LOCALES
@@ -718,7 +731,7 @@ i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp(
718
731
  // MOMENTS
719
732
  function ht(e,t){var n;if(!e.isValid())
720
733
  // No op
721
- return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else
734
+ return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else
722
735
  // TODO: Another silent failure?
723
736
  if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(ht(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function ft(){return et(this.year(),this.month())}function dt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)
724
737
  // make the regex if we don't have it already
@@ -736,9 +749,9 @@ ne("year","y"),
736
749
  // PRIORITIES
737
750
  se("year",1),
738
751
  // PARSING
739
- Le("Y",xe),Le("YY",Se,_e),Le("YYYY",Pe,we),Le("YYYYY",Oe,Ee),Le("YYYYYY",Oe,Ee),Ye(["YYYYY","YYYYYY"],je),Ye("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):he(e)})),Ye("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),Ye("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};
752
+ Le("Y",Oe),Le("YY",Se,_e),Le("YYYY",Pe,we),Le("YYYYY",De,Ee),Le("YYYYYY",De,Ee),Ye(["YYYYY","YYYYYY"],je),Ye("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),Ye("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),Ye("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};
740
753
  // MOMENTS
741
- var yt=ce("FullYear",!0);function vt(){return ue(this.year())}function _t(e,t,n,r,i,o,s){
754
+ var yt=fe("FullYear",!0);function vt(){return ue(this.year())}function _t(e,t,n,r,i,o,s){
742
755
  // can't just apply() to create a date:
743
756
  // https://stackoverflow.com/q/181348
744
757
  var a;
@@ -764,10 +777,10 @@ ne("week","w"),ne("isoWeek","W"),
764
777
  // PRIORITIES
765
778
  se("week",5),se("isoWeek",5),
766
779
  // PARSING
767
- Le("w",Se),Le("ww",Se,_e),Le("W",Se),Le("WW",Se,_e),Ue(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=he(e)}));var kt={dow:0,// Sunday is the first day of the week.
768
- doy:6};function Pt(){return this._week.dow}function Ot(){return this._week.doy}
780
+ Le("w",Se),Le("ww",Se,_e),Le("W",Se),Le("WW",Se,_e),Ue(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var kt={dow:0,// Sunday is the first day of the week.
781
+ doy:6};function Pt(){return this._week.dow}function Dt(){return this._week.doy}
769
782
  // MOMENTS
770
- function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
783
+ function xt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
771
784
  // FORMATTING
772
785
  // HELPERS
773
786
  function Bt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
@@ -780,7 +793,7 @@ se("day",11),se("weekday",11),se("isoWeekday",11),
780
793
  // PARSING
781
794
  Le("d",Se),Le("e",Se),Le("E",Se),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
782
795
  // if we didn't get a weekday name, mark the date as invalid
783
- null!=i?t.d=i:g(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=he(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),It=Ne,Rt=Ne,Ft=Ne;function Yt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ht(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $t(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return $t.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
796
+ null!=i?t.d=i:g(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),It=Ne,Rt=Ne,Ft=Ne;function Yt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ht(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $t(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return $t.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
784
797
  // test the regex
785
798
  if(
786
799
  // make the regex if we don't have it already
@@ -808,12 +821,12 @@ return"p"===(e+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",
808
821
  // ALIASES
809
822
  ne("hour","h"),
810
823
  // PRIORITY
811
- se("hour",13),Le("a",tn),Le("A",tn),Le("H",Se),Le("h",Se),Le("k",Se),Le("HH",Se,_e),Le("hh",Se,_e),Le("kk",Se,_e),Le("hmm",Te),Le("hmmss",Me),Le("Hmm",Te),Le("Hmmss",Me),Ye(["H","HH"],ze),Ye(["k","kk"],(function(e,t,n){var r=he(e);t[ze]=24===r?0:r})),Ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ye(["h","hh"],(function(e,t,n){t[ze]=he(e),g(n).bigHour=!0})),Ye("hmm",(function(e,t,n){var r=e.length-2;t[ze]=he(e.substr(0,r)),t[Ze]=he(e.substr(r)),g(n).bigHour=!0})),Ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=he(e.substr(0,r)),t[Ze]=he(e.substr(r,2)),t[Xe]=he(e.substr(i)),g(n).bigHour=!0})),Ye("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=he(e.substr(0,r)),t[Ze]=he(e.substr(r))})),Ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=he(e.substr(0,r)),t[Ze]=he(e.substr(r,2)),t[Xe]=he(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
824
+ se("hour",13),Le("a",tn),Le("A",tn),Le("H",Se),Le("h",Se),Le("k",Se),Le("HH",Se,_e),Le("hh",Se,_e),Le("kk",Se,_e),Le("hmm",Te),Le("hmmss",Me),Le("Hmm",Te),Le("Hmmss",Me),Ye(["H","HH"],ze),Ye(["k","kk"],(function(e,t,n){var r=ce(e);t[ze]=24===r?0:r})),Ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ye(["h","hh"],(function(e,t,n){t[ze]=ce(e),g(n).bigHour=!0})),Ye("hmm",(function(e,t,n){var r=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r)),g(n).bigHour=!0})),Ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Xe]=ce(e.substr(i)),g(n).bigHour=!0})),Ye("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r))})),Ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Xe]=ce(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
812
825
  // Setting the hour should keep the time, because the user explicitly
813
826
  // specified which hour they want. So trying to maintain the same hour (in
814
827
  // a new timezone) makes sense. Adding/subtracting hours does not follow
815
828
  // this rule.
816
- on=ce("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,un={calendar:H,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:kt,weekdays:Nt,weekdaysMin:Ct,weekdaysShort:Lt,meridiemParse:rn},ln={},hn={};
829
+ on=fe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,un={calendar:H,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:kt,weekdays:Nt,weekdaysMin:Ct,weekdaysShort:Lt,meridiemParse:rn},ln={},hn={};
817
830
  // internal storage for locale config files
818
831
  function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}
819
832
  // pick the locale from the array
@@ -825,7 +838,7 @@ break;t--}o++}return an}function pn(e){
825
838
  // Prevent names that look like filesystem paths, i.e contain '/' or '\'
826
839
  return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
827
840
  // TODO: Find a better way to register and load all the locales in Node
828
- if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,fe(),gn(n)}catch(e){
841
+ if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,le(),gn(n)}catch(e){
829
842
  // mark as not found to avoid repeating expensive file require call causing high CPU
830
843
  // when trying to find en-US, en_US, en-us for every format call
831
844
  ln[t]=null;// null means not found
@@ -837,7 +850,7 @@ function gn(e,t){var n;return e&&((n=l(t)?_n(e):yn(e,t))?
837
850
  // moment.duration._locale = moment._locale = data;
838
851
  an=n:"undefined"!=typeof console&&console.warn&&
839
852
  //warn user if arguments are passed but the locale could not be set
840
- console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return hn[t.parentLocale]||(hn[t.parentLocale]=[]),hn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new A(B(r,t)),hn[e]&&hn[e].forEach((function(e){yn(e.name,e.config)})),
853
+ console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return hn[t.parentLocale]||(hn[t.parentLocale]=[]),hn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new A(B(r,t)),hn[e]&&hn[e].forEach((function(e){yn(e.name,e.config)})),
841
854
  // backwards compat for now: also set the locale
842
855
  // make sure we set the locale AFTER all child locales have been
843
856
  // created, so we won't end up with the child locale set.
@@ -866,19 +879,19 @@ var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T|
866
879
  // iso time formats and regexes
867
880
  kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pn=/^\/?Date\((-?\d+)/i,
868
881
  // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
869
- On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
882
+ Dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
870
883
  // date from iso format
871
- function xn(e){var t,n,r,i,o,s,a=e._i,u=En.exec(a)||Sn.exec(a),l=Mn.length,h=kn.length;if(u){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(Mn[t][1].exec(u[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=h;t<n;t++)if(kn[t][1].exec(u[3])){
884
+ function On(e){var t,n,r,i,o,s,a=e._i,u=En.exec(a)||Sn.exec(a),l=Mn.length,h=kn.length;if(u){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(Mn[t][1].exec(u[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=h;t<n;t++)if(kn[t][1].exec(u[3])){
872
885
  // match[2] should be 'T' or space
873
886
  o=(u[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Tn.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Gn(e)}else e._isValid=!1}function Bn(e,t,n,r,i,o){var s=[An(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Hn(e){
874
887
  // Remove comments and folding whitespace and replace multiple-spaces with a single space
875
- return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Ln(e,t,n){if(e)return Dn[e];if(t)
888
+ return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Ln(e,t,n){if(e)return xn[e];if(t)
876
889
  // the only allowed military tz is Z
877
890
  return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
878
891
  // date and time from ref 2822 format
879
- function Cn(e){var t,n=On.exec(Hn(e._i));if(n){if(t=Bn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=Ln(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
892
+ function Cn(e){var t,n=Dn.exec(Hn(e._i));if(n){if(t=Bn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=Ln(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
880
893
  // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
881
- function In(e){var t=Pn.exec(e._i);null===t?(xn(e),!1===e._isValid&&(delete e._isValid,Cn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
894
+ function In(e){var t=Pn.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,Cn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
882
895
  // Final attempt, use Input Fallback
883
896
  r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
884
897
  // Pick the first defined of two or three arguments.
@@ -938,7 +951,7 @@ e._a[ze]<=12&&!0===g(e).bigHour&&e._a[ze]>0&&(g(e).bigHour=void 0),g(e).parsedDa
938
951
  // handle meridiem
939
952
  e._a[ze]=$n(e._locale,e._a[ze],e._meridiem),null!==(
940
953
  // handle era
941
- a=g(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),Yn(e),wn(e)}else Cn(e);else xn(e)}function $n(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
954
+ a=g(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),Yn(e),wn(e)}else Cn(e);else On(e)}function $n(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
942
955
  // Fallback
943
956
  (r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
944
957
  // date from string and array of format strings
@@ -964,7 +977,7 @@ r.RFC_2822=function(){};var Kn=M("moment().min is deprecated, use moment.max ins
964
977
  function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
965
978
  // TODO: Use [].sort instead?
966
979
  function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===$e.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
967
- parseFloat(e[rr[n]])!==he(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Dr(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=ir(t),
980
+ parseFloat(e[rr[n]])!==ce(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return xr(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=ir(t),
968
981
  // representation for dateAddRemove
969
982
  this._milliseconds=+h+1e3*l+// 1000
970
983
  6e4*u+// 1000 * 60
@@ -977,7 +990,7 @@ this._days=+s+7*o,
977
990
  // it separately.
978
991
  this._months=+i+3*r+12*n,this._data={},this._locale=_n(),this._bubble()}function ur(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
979
992
  // compare two arrays, return the number of differences
980
- function hr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&he(e[r])!==he(t[r]))&&s++;return s+o}
993
+ function hr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&s++;return s+o}
981
994
  // FORMATTING
982
995
  function cr(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),
983
996
  // PARSING
@@ -986,7 +999,7 @@ Le("Z",Ae),Le("ZZ",Ae),Ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(Ae,
986
999
  // timezone chunker
987
1000
  // '+10:00' > ['10', '00']
988
1001
  // '-1530' > ['-15', '30']
989
- var fr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?r:-r}
1002
+ var fr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}
990
1003
  // Return a moment from input, that is local/utc/zone equivalent to model.
991
1004
  function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||c(e)?e.valueOf():qn(e).valueOf())-n.valueOf(),
992
1005
  // Use low-level api, because this fn is low-level api.
@@ -1007,17 +1020,17 @@ return-Math.round(e._d.getTimezoneOffset())}
1007
1020
  // a second time. In case it wants us to change the offset again
1008
1021
  // _changeInProgress == true case, then we have to adjust, because
1009
1022
  // there is no such time in the given timezone.
1010
- function gr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Nr(this,Dr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function _r(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(Be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&hr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
1023
+ function gr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Nr(this,xr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function _r(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(Be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&hr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
1011
1024
  // ASP.NET json date format regex
1012
1025
  r.updateOffset=function(){};var Pr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
1013
1026
  // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
1014
1027
  // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
1015
1028
  // and further modified to allow for strings containing both week and day
1016
- Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(e,t){var n,r,i,o=e,
1029
+ Dr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xr(e,t){var n,r,i,o=e,
1017
1030
  // matching against regexp is expensive, do it on demand
1018
- s=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Pr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:he(s[Ve])*n,h:he(s[ze])*n,m:he(s[Ze])*n,s:he(s[Xe])*n,ms:he(lr(1e3*s[qe]))*n}):(s=Or.exec(e))?(n="-"===s[1]?-1:1,o={y:xr(s[2],n),M:xr(s[3],n),w:xr(s[4],n),d:xr(s[5],n),h:xr(s[6],n),m:xr(s[7],n),s:xr(s[8],n)}):null==o?
1031
+ s=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Pr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[Ve])*n,h:ce(s[ze])*n,m:ce(s[Ze])*n,s:ce(s[Xe])*n,ms:ce(lr(1e3*s[qe]))*n}):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,o={y:Or(s[2],n),M:Or(s[3],n),w:Or(s[4],n),d:Or(s[5],n),h:Or(s[6],n),m:Or(s[7],n),s:Or(s[8],n)}):null==o?
1019
1032
  // checks for null or undefined
1020
- o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),ur(e)&&a(e,"_locale")&&(r._locale=e._locale),ur(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function xr(e,t){
1033
+ o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),ur(e)&&a(e,"_locale")&&(r._locale=e._locale),ur(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){
1021
1034
  // We'd normally use ~~inp for this, but unfortunately it also
1022
1035
  // converts floats to ints.
1023
1036
  // inp may be undefined, so careful calling replace on it.
@@ -1027,19 +1040,19 @@ return(isNaN(n)?0:n)*t}function Br(e,t){var n={};return n.months=t.month()-e.mon
1027
1040
  // TODO: remove 'name' arg after deprecation is removed
1028
1041
  function Hr(e,t){return function(n,r){var i;
1029
1042
  //invert the arguments, but complain about it
1030
- return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Nr(this,Dr(n,r),e),this}}function Nr(e,t,n,i){var o=t._milliseconds,s=lr(t._days),a=lr(t._months);e.isValid()&&(i=null==i||i,a&&ht(e,de(e,"Month")+a*n),s&&pe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Dr.fn=ar.prototype,Dr.invalid=sr;var Lr=Hr(1,"add"),Cr=Hr(-1,"subtract");function Ir(e){return"string"==typeof e||e instanceof String}
1043
+ return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Nr(this,xr(n,r),e),this}}function Nr(e,t,n,i){var o=t._milliseconds,s=lr(t._days),a=lr(t._months);e.isValid()&&(i=null==i||i,a&&ht(e,de(e,"Month")+a*n),s&&pe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}xr.fn=ar.prototype,xr.invalid=sr;var Lr=Hr(1,"add"),Cr=Hr(-1,"subtract");function Ir(e){return"string"==typeof e||e instanceof String}
1031
1044
  // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
1032
1045
  function Rr(e){return S(e)||c(e)||Ir(e)||h(e)||Yr(e)||Fr(e)||null==e}function Fr(e){var t,n,r=s(e)&&!u(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=o.length;for(t=0;t<l;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Yr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Ir(e)})).length),t&&n}function Ur(e){var t,n,r=s(e)&&!u(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Gr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function $r(e,t){
1033
1046
  // Support for single parameter, formats only overload to the calendar function
1034
1047
  1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
1035
1048
  // We want to compare the start of today, vs this.
1036
1049
  // Getting start-of-today depends on whether we're local/utc/offset or not.
1037
- var n=e||qn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,qn(n)))}function jr(){return new E(this)}function Wr(e,t){var n=S(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=S(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=S(e)?e:qn(e),o=S(t)?t:qn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Zr(e,t){var n,r=S(e)?e:qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;// 1000
1050
+ var n=e||qn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(x(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,qn(n)))}function jr(){return new E(this)}function Wr(e,t){var n=S(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=S(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=S(e)?e:qn(e),o=S(t)?t:qn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Zr(e,t){var n,r=S(e)?e:qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;// 1000
1038
1051
  case"minute":o=(this-r)/6e4;break;// 1000 * 60
1039
1052
  case"hour":o=(this-r)/36e5;break;// 1000 * 60 * 60
1040
1053
  case"day":o=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
1041
1054
  case"week":o=(this-r-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
1042
- default:o=this-r}return n?o:le(o)}function Jr(e,t){if(e.date()<t.date())
1055
+ default:o=this-r}return n?o:he(o)}function Jr(e,t){if(e.date()<t.date())
1043
1056
  // end-of-month calculations work correct when the start month has more
1044
1057
  // days than the end month.
1045
1058
  return-Jr(t,e);
@@ -1048,7 +1061,7 @@ var n=12*(t.year()-e.year())+(t.month()-e.month()),
1048
1061
  // b is in (anchor - 1 month, anchor + 1 month)
1049
1062
  r=e.clone().add(n,"months");
1050
1063
  //check for negative zero, return zero if negative zero
1051
- return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?
1064
+ return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?
1052
1065
  // native implementation is ~50x faster, use it when we can
1053
1066
  t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
1054
1067
  /**
@@ -1056,7 +1069,7 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
1056
1069
  * also be evaluated to get a new moment which is the same
1057
1070
  *
1058
1071
  * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
1059
- */function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?Dr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(qn(),e)}function oi(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?Dr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(qn(),e)}
1072
+ */function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?xr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(qn(),e)}function oi(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?xr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(qn(),e)}
1060
1073
  // If passed a locale key, it will set the locale for this
1061
1074
  // instance. Otherwise, it will return the locale configuration
1062
1075
  // variables for this instance.
@@ -1068,11 +1081,11 @@ return e<100&&e>=0?new Date(e+400,t,n)-di:new Date(e,t,n).valueOf()}function gi(
1068
1081
  // Date.UTC remaps years 0-99 to 1900-1999
1069
1082
  return e<100&&e>=0?Date.UTC(e+400,t,n)-di:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*ci),fi);break;case"minute":t=this._d.valueOf(),t-=pi(t,ci);break;case"second":t=this._d.valueOf(),t-=pi(t,hi)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-pi(t+(this._isUTC?0:this.utcOffset()*ci),fi)-1;break;case"minute":t=this._d.valueOf(),t+=ci-pi(t,ci)-1;break;case"second":t=this._d.valueOf(),t+=hi-pi(t,hi)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function _i(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Ei(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ti(){
1070
1083
  // new Date(NaN).toJSON() === null
1071
- return this.isValid()?this.toISOString():null}function Mi(){return y(this)}function ki(){return d({},g(this))}function Pi(){return g(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Di(e,t){var n,i,o,s=this._eras||_n("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
1084
+ return this.isValid()?this.toISOString():null}function Mi(){return y(this)}function ki(){return d({},g(this))}function Pi(){return g(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xi(e,t){var n,i,o,s=this._eras||_n("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
1072
1085
  // truncate time
1073
1086
  o=r(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":
1074
1087
  // truncate time
1075
- o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function xi(e,t,n){var r,i,o,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if([o,s,a].indexOf(e)>=0)return u[r]}function Bi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1088
+ o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Oi(e,t,n){var r,i,o,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if([o,s,a].indexOf(e)>=0)return u[r]}function Bi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1076
1089
  // truncate time
1077
1090
  n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1078
1091
  // truncate time
@@ -1080,7 +1093,7 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
1080
1093
  // truncate time
1081
1094
  n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Li(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,
1082
1095
  // truncate time
1083
- i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ci(e){return a(this,"_erasNameRegex")||$i.call(this),e?this._erasNameRegex:this._erasRegex}function Ii(e){return a(this,"_erasAbbrRegex")||$i.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||$i.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Yi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Gi(e,t){return t._eraYearOrdinalRegex||De}function $i(){var e,t,n=[],r=[],i=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Re(s[e].name)),n.push(Re(s[e].abbr)),i.push(Re(s[e].narrow)),o.push(Re(s[e].name)),o.push(Re(s[e].abbr)),o.push(Re(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
1096
+ i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ci(e){return a(this,"_erasNameRegex")||$i.call(this),e?this._erasNameRegex:this._erasRegex}function Ii(e){return a(this,"_erasAbbrRegex")||$i.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||$i.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Yi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Gi(e,t){return t._eraYearOrdinalRegex||xe}function $i(){var e,t,n=[],r=[],i=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Re(s[e].name)),n.push(Re(s[e].abbr)),i.push(Re(s[e].narrow)),o.push(Re(s[e].name)),o.push(Re(s[e].abbr)),o.push(Re(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
1084
1097
  // FORMATTING
1085
1098
  function ji(e,t){Y(0,[e,e.length],0,t)}
1086
1099
  // MOMENTS
@@ -1089,19 +1102,19 @@ function Wi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData(
1089
1102
  // MOMENTS
1090
1103
  function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
1091
1104
  // FORMATTING
1092
- Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Le("N",Fi),Le("NN",Fi),Le("NNN",Fi),Le("NNNN",Yi),Le("NNNNN",Ui),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Le("y",De),Le("yy",De),Le("yyy",De),Le("yyyy",De),Le("yo",Gi),Ye(["y","yy","yyy","yyyy"],je),Ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[je]=n._locale.eraYearOrdinalParse(e,i):t[je]=parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
1105
+ Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Le("N",Fi),Le("NN",Fi),Le("NNN",Fi),Le("NNNN",Yi),Le("NNNNN",Ui),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Le("y",xe),Le("yy",xe),Le("yyy",xe),Le("yyyy",xe),Le("yo",Gi),Ye(["y","yy","yyy","yyyy"],je),Ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[je]=n._locale.eraYearOrdinalParse(e,i):t[je]=parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
1093
1106
  // ALIASES
1094
1107
  ne("weekYear","gg"),ne("isoWeekYear","GG"),
1095
1108
  // PRIORITY
1096
1109
  se("weekYear",1),se("isoWeekYear",1),
1097
1110
  // PARSING
1098
- Le("G",xe),Le("g",xe),Le("GG",Se,_e),Le("gg",Se,_e),Le("GGGG",Pe,we),Le("gggg",Pe,we),Le("GGGGG",Oe,Ee),Le("ggggg",Oe,Ee),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=he(e)})),Ue(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),Y("Q",0,"Qo","quarter"),
1111
+ Le("G",Oe),Le("g",Oe),Le("GG",Se,_e),Le("gg",Se,_e),Le("GGGG",Pe,we),Le("gggg",Pe,we),Le("GGGGG",De,Ee),Le("ggggg",De,Ee),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Ue(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),Y("Q",0,"Qo","quarter"),
1099
1112
  // ALIASES
1100
1113
  ne("quarter","Q"),
1101
1114
  // PRIORITY
1102
1115
  se("quarter",7),
1103
1116
  // PARSING
1104
- Le("Q",ve),Ye("Q",(function(e,t){t[We]=3*(he(e)-1)})),Y("D",["DD",2],"Do","date"),
1117
+ Le("Q",ve),Ye("Q",(function(e,t){t[We]=3*(ce(e)-1)})),Y("D",["DD",2],"Do","date"),
1105
1118
  // ALIASES
1106
1119
  ne("date","D"),
1107
1120
  // PRIORITY
@@ -1109,9 +1122,9 @@ se("date",9),
1109
1122
  // PARSING
1110
1123
  Le("D",Se),Le("DD",Se,_e),Le("Do",(function(e,t){
1111
1124
  // TODO: Remove "ordinalParse" fallback in next major release.
1112
- return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],Ve),Ye("Do",(function(e,t){t[Ve]=he(e.match(Se)[0])}));
1125
+ return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],Ve),Ye("Do",(function(e,t){t[Ve]=ce(e.match(Se)[0])}));
1113
1126
  // MOMENTS
1114
- var eo=ce("Date",!0);
1127
+ var eo=fe("Date",!0);
1115
1128
  // FORMATTING
1116
1129
  // HELPERS
1117
1130
  // MOMENTS
@@ -1123,7 +1136,7 @@ ne("dayOfYear","DDD"),
1123
1136
  // PRIORITY
1124
1137
  se("dayOfYear",4),
1125
1138
  // PARSING
1126
- Le("DDD",ke),Le("DDDD",be),Ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),Y("m",["mm",2],0,"minute"),
1139
+ Le("DDD",ke),Le("DDDD",be),Ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),Y("m",["mm",2],0,"minute"),
1127
1140
  // ALIASES
1128
1141
  ne("minute","m"),
1129
1142
  // PRIORITY
@@ -1131,7 +1144,7 @@ se("minute",14),
1131
1144
  // PARSING
1132
1145
  Le("m",Se),Le("mm",Se,_e),Ye(["m","mm"],Ze);
1133
1146
  // MOMENTS
1134
- var no=ce("Minutes",!1);
1147
+ var no=fe("Minutes",!1);
1135
1148
  // FORMATTING
1136
1149
  Y("s",["ss",2],0,"second"),
1137
1150
  // ALIASES
@@ -1141,7 +1154,7 @@ se("second",15),
1141
1154
  // PARSING
1142
1155
  Le("s",Se),Le("ss",Se,_e),Ye(["s","ss"],Xe);
1143
1156
  // MOMENTS
1144
- var ro,io,oo=ce("Seconds",!1);
1157
+ var ro,io,oo=fe("Seconds",!1);
1145
1158
  // FORMATTING
1146
1159
  for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
1147
1160
  // ALIASES
@@ -1149,11 +1162,11 @@ ne("millisecond","ms"),
1149
1162
  // PRIORITY
1150
1163
  se("millisecond",16),
1151
1164
  // PARSING
1152
- Le("S",ke,ve),Le("SS",ke,_e),Le("SSS",ke,be),ro="SSSS";ro.length<=9;ro+="S")Le(ro,De);function so(e,t){t[qe]=he(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ye(ro,so);
1165
+ Le("S",ke,ve),Le("SS",ke,_e),Le("SSS",ke,be),ro="SSSS";ro.length<=9;ro+="S")Le(ro,xe);function so(e,t){t[qe]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ye(ro,so);
1153
1166
  // MOMENTS
1154
- function ao(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=ce("Milliseconds",!1),
1167
+ function ao(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=fe("Milliseconds",!1),
1155
1168
  // FORMATTING
1156
- Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){return qn(1e3*e)}function co(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}lo.add=Lr,lo.calendar=$r,lo.clone=jr,lo.diff=Kr,lo.endOf=vi,lo.format=ni,lo.from=ri,lo.fromNow=ii,lo.to=oi,lo.toNow=si,lo.get=me,lo.invalidAt=Pi,lo.isAfter=Wr,lo.isBefore=Vr,lo.isBetween=zr,lo.isSame=Zr,lo.isSameOrAfter=Xr,lo.isSameOrBefore=qr,lo.isValid=Mi,lo.lang=ui,lo.locale=ai,lo.localeData=li,lo.max=Jn,lo.min=Kn,lo.parsingFlags=ki,lo.set=ge,lo.startOf=yi,lo.subtract=Cr,lo.toArray=Ei,lo.toObject=Si,lo.toDate=wi,lo.toISOString=ei,lo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Ti,lo.toString=Qr,lo.unix=bi,lo.valueOf=_i,lo.creationData=Oi,lo.eraName=Ai,lo.eraNarrow=Hi,lo.eraAbbr=Ni,lo.eraYear=Li,lo.year=yt,lo.isLeapYear=vt,lo.weekYear=Wi,lo.isoWeekYear=Vi,lo.quarter=lo.quarters=Qi,lo.month=ct,lo.daysInMonth=ft,lo.week=lo.weeks=Dt,lo.isoWeek=lo.isoWeeks=xt,lo.weeksInYear=Xi,lo.weeksInWeekYear=qi,lo.isoWeeksInYear=zi,lo.isoWeeksInISOWeekYear=Zi,lo.date=eo,lo.day=lo.days=Wt,lo.weekday=Vt,lo.isoWeekday=zt,lo.dayOfYear=to,lo.hour=lo.hours=on,lo.minute=lo.minutes=no,lo.second=lo.seconds=oo,lo.millisecond=lo.milliseconds=io,lo.utcOffset=gr,lo.utc=vr,lo.local=_r,lo.parseZone=br,lo.hasAlignedHourOffset=wr,lo.isDST=Er,lo.isLocal=Tr,lo.isUtcOffset=Mr,lo.isUtc=kr,lo.isUTC=kr,lo.zoneAbbr=ao,lo.zoneName=uo,lo.dates=M("dates accessor is deprecated. Use date instead.",eo),lo.months=M("months accessor is deprecated. Use month instead",ct),lo.years=M("years accessor is deprecated. Use year instead",yt),lo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),lo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=A.prototype;function mo(e,t,n,r){var i=_n(),o=p().set(r,t);return i[n](o,e)}function go(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}
1169
+ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){return qn(1e3*e)}function co(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}lo.add=Lr,lo.calendar=$r,lo.clone=jr,lo.diff=Kr,lo.endOf=vi,lo.format=ni,lo.from=ri,lo.fromNow=ii,lo.to=oi,lo.toNow=si,lo.get=me,lo.invalidAt=Pi,lo.isAfter=Wr,lo.isBefore=Vr,lo.isBetween=zr,lo.isSame=Zr,lo.isSameOrAfter=Xr,lo.isSameOrBefore=qr,lo.isValid=Mi,lo.lang=ui,lo.locale=ai,lo.localeData=li,lo.max=Jn,lo.min=Kn,lo.parsingFlags=ki,lo.set=ge,lo.startOf=yi,lo.subtract=Cr,lo.toArray=Ei,lo.toObject=Si,lo.toDate=wi,lo.toISOString=ei,lo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Ti,lo.toString=Qr,lo.unix=bi,lo.valueOf=_i,lo.creationData=Di,lo.eraName=Ai,lo.eraNarrow=Hi,lo.eraAbbr=Ni,lo.eraYear=Li,lo.year=yt,lo.isLeapYear=vt,lo.weekYear=Wi,lo.isoWeekYear=Vi,lo.quarter=lo.quarters=Qi,lo.month=ct,lo.daysInMonth=ft,lo.week=lo.weeks=xt,lo.isoWeek=lo.isoWeeks=Ot,lo.weeksInYear=Xi,lo.weeksInWeekYear=qi,lo.isoWeeksInYear=zi,lo.isoWeeksInISOWeekYear=Zi,lo.date=eo,lo.day=lo.days=Wt,lo.weekday=Vt,lo.isoWeekday=zt,lo.dayOfYear=to,lo.hour=lo.hours=on,lo.minute=lo.minutes=no,lo.second=lo.seconds=oo,lo.millisecond=lo.milliseconds=io,lo.utcOffset=gr,lo.utc=vr,lo.local=_r,lo.parseZone=br,lo.hasAlignedHourOffset=wr,lo.isDST=Er,lo.isLocal=Tr,lo.isUtcOffset=Mr,lo.isUtc=kr,lo.isUTC=kr,lo.zoneAbbr=ao,lo.zoneName=uo,lo.dates=M("dates accessor is deprecated. Use date instead.",eo),lo.months=M("months accessor is deprecated. Use month instead",ct),lo.years=M("years accessor is deprecated. Use year instead",yt),lo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),lo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=A.prototype;function mo(e,t,n,r){var i=_n(),o=p().set(r,t);return i[n](o,e)}function go(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}
1157
1170
  // ()
1158
1171
  // (5)
1159
1172
  // (fmt, 5)
@@ -1162,34 +1175,34 @@ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){r
1162
1175
  // (true, 5)
1163
1176
  // (true, fmt, 5)
1164
1177
  // (true, fmt)
1165
- function yo(e,t,n,r){"boolean"==typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var i,o=_n(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function vo(e,t){return go(e,t,"months")}function _o(e,t){return go(e,t,"monthsShort")}function bo(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function Eo(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=N,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=K,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=x,po.eras=Di,po.erasParse=xi,po.erasConvertYear=Bi,po.erasAbbrRegex=Ii,po.erasNameRegex=Ci,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=dt,po.week=Mt,po.firstDayOfYear=Ot,po.firstDayOfWeek=Pt,po.weekdays=Yt,po.weekdaysMin=Gt,po.weekdaysShort=Ut,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
1178
+ function yo(e,t,n,r){"boolean"==typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var i,o=_n(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function vo(e,t){return go(e,t,"months")}function _o(e,t){return go(e,t,"monthsShort")}function bo(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function Eo(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=N,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=K,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=O,po.eras=xi,po.erasParse=Oi,po.erasConvertYear=Bi,po.erasAbbrRegex=Ii,po.erasNameRegex=Ci,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=dt,po.week=Mt,po.firstDayOfYear=Dt,po.firstDayOfWeek=Pt,po.weekdays=Yt,po.weekdaysMin=Gt,po.weekdaysShort=Ut,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
1166
1179
  // Side effect imports
1167
- r.lang=M("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",_n);var So=Math.abs;function To(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Mo(e,t,n,r){var i=Dr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
1180
+ r.lang=M("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",_n);var So=Math.abs;function To(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Mo(e,t,n,r){var i=xr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
1168
1181
  // supports only 2.0-style add(1, 's') or add(duration)
1169
1182
  function ko(e,t){return Mo(this,e,t,1)}
1170
1183
  // supports only 2.0-style subtract(1, 's') or subtract(duration)
1171
- function Po(e,t){return Mo(this,e,t,-1)}function Oo(e){return e<0?Math.floor(e):Math.ceil(e)}function Do(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;
1184
+ function Po(e,t){return Mo(this,e,t,-1)}function Do(e){return e<0?Math.floor(e):Math.ceil(e)}function xo(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;
1172
1185
  // if we have a mix of positive and negative values, bubble down first
1173
1186
  // check: https://github.com/moment/moment/issues/2166
1174
- return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Oo(Bo(a)+s),s=0,a=0),
1187
+ return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Do(Bo(a)+s),s=0,a=0),
1175
1188
  // The following code bubbles up values, see the tests for
1176
1189
  // examples of what that means.
1177
- u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,n=le(t/60),u.hours=n%24,s+=le(n/24),a+=
1190
+ u.milliseconds=o%1e3,e=he(o/1e3),u.seconds=e%60,t=he(e/60),u.minutes=t%60,n=he(t/60),u.hours=n%24,s+=he(n/24),a+=
1178
1191
  // convert days to months
1179
- i=le(xo(s)),s-=Oo(Bo(i)),
1192
+ i=he(Oo(s)),s-=Do(Bo(i)),
1180
1193
  // 12 months -> 1 year
1181
- r=le(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function xo(e){
1194
+ r=he(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function Oo(e){
1182
1195
  // 400 years have 146097 days (taking into account leap year rules)
1183
1196
  // 400 years have 12 months === 4800
1184
1197
  return 4800*e/146097}function Bo(e){
1185
1198
  // the reverse of daysToMonths
1186
- return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
1199
+ return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
1187
1200
  // handle milliseconds separately because of floating point math errors (issue #1867)
1188
1201
  t=this._days+Math.round(Bo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
1189
1202
  // Math.floor prevents floating point math errors here
1190
1203
  case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
1191
1204
  // TODO: Use this.as('ms')?
1192
- function Ho(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function No(e){return function(){return this.as(e)}}var Lo=No("ms"),Co=No("s"),Io=No("m"),Ro=No("h"),Fo=No("d"),Yo=No("w"),Uo=No("M"),Go=No("Q"),$o=No("y");function jo(){return Dr(this)}function Wo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Vo("milliseconds"),Zo=Vo("seconds"),Xo=Vo("minutes"),qo=Vo("hours"),Ko=Vo("days"),Jo=Vo("months"),Qo=Vo("years");function es(){return le(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
1205
+ function Ho(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function No(e){return function(){return this.as(e)}}var Lo=No("ms"),Co=No("s"),Io=No("m"),Ro=No("h"),Fo=No("d"),Yo=No("w"),Uo=No("M"),Go=No("Q"),$o=No("y");function jo(){return xr(this)}function Wo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Vo("milliseconds"),Zo=Vo("seconds"),Xo=Vo("minutes"),qo=Vo("hours"),Ko=Vo("days"),Jo=Vo("months"),Qo=Vo("years");function es(){return he(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
1193
1206
  s:45,// seconds to minute
1194
1207
  m:45,// minutes to hour
1195
1208
  h:22,// hours to day
@@ -1197,7 +1210,7 @@ d:26,// days to month/week
1197
1210
  w:null,// weeks to month
1198
1211
  M:11};
1199
1212
  // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
1200
- function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=Dr(e).abs(),o=ts(i.as("s")),s=ts(i.as("m")),a=ts(i.as("h")),u=ts(i.as("d")),l=ts(i.as("M")),h=ts(i.as("w")),c=ts(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||h<=1&&["w"]||h<n.w&&["ww",h]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=t,f[3]=+e>0,f[4]=r,rs.apply(null,f)}
1213
+ function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=xr(e).abs(),o=ts(i.as("s")),s=ts(i.as("m")),a=ts(i.as("h")),u=ts(i.as("d")),l=ts(i.as("M")),h=ts(i.as("w")),c=ts(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||h<=1&&["w"]||h<n.w&&["ww",h]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=t,f[3]=+e>0,f[4]=r,rs.apply(null,f)}
1201
1214
  // This function allows you to set the rounding function for relative time strings
1202
1215
  function os(e){return void 0===e?ts:"function"==typeof e&&(ts=e,!0)}
1203
1216
  // This function allows you to set a threshold for relative time strings
@@ -1211,17 +1224,17 @@ function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.
1211
1224
  // and also not between days and months (28-31 days per month)
1212
1225
  if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a,u=us(this._milliseconds)/1e3,l=us(this._days),h=us(this._months),c=this.asSeconds();return c?(
1213
1226
  // 3600 seconds -> 60 minutes -> 1 hour
1214
- e=le(u/60),t=le(e/60),u%=60,e%=60,
1227
+ e=he(u/60),t=he(e/60),u%=60,e%=60,
1215
1228
  // 12 months -> 1 year
1216
- n=le(h/12),h%=12,
1229
+ n=he(h/12),h%=12,
1217
1230
  // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
1218
- r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",o=ls(this._months)!==ls(c)?"-":"",s=ls(this._days)!==ls(c)?"-":"",a=ls(this._milliseconds)!==ls(c)?"-":"",i+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(l?s+l+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var cs=ar.prototype;return cs.isValid=or,cs.abs=To,cs.add=ko,cs.subtract=Po,cs.as=Ao,cs.asMilliseconds=Lo,cs.asSeconds=Co,cs.asMinutes=Io,cs.asHours=Ro,cs.asDays=Fo,cs.asWeeks=Yo,cs.asMonths=Uo,cs.asQuarters=Go,cs.asYears=$o,cs.valueOf=Ho,cs._bubble=Do,cs.clone=jo,cs.get=Wo,cs.milliseconds=zo,cs.seconds=Zo,cs.minutes=Xo,cs.hours=qo,cs.days=Ko,cs.weeks=es,cs.months=Jo,cs.years=Qo,cs.humanize=as,cs.toISOString=hs,cs.toString=hs,cs.toJSON=hs,cs.locale=ai,cs.localeData=li,cs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hs),cs.lang=ui,
1231
+ r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",o=ls(this._months)!==ls(c)?"-":"",s=ls(this._days)!==ls(c)?"-":"",a=ls(this._milliseconds)!==ls(c)?"-":"",i+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(l?s+l+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var cs=ar.prototype;return cs.isValid=or,cs.abs=To,cs.add=ko,cs.subtract=Po,cs.as=Ao,cs.asMilliseconds=Lo,cs.asSeconds=Co,cs.asMinutes=Io,cs.asHours=Ro,cs.asDays=Fo,cs.asWeeks=Yo,cs.asMonths=Uo,cs.asQuarters=Go,cs.asYears=$o,cs.valueOf=Ho,cs._bubble=xo,cs.clone=jo,cs.get=Wo,cs.milliseconds=zo,cs.seconds=Zo,cs.minutes=Xo,cs.hours=qo,cs.days=Ko,cs.weeks=es,cs.months=Jo,cs.years=Qo,cs.humanize=as,cs.toISOString=hs,cs.toString=hs,cs.toJSON=hs,cs.locale=ai,cs.localeData=li,cs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hs),cs.lang=ui,
1219
1232
  // FORMATTING
1220
1233
  Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),
1221
1234
  // PARSING
1222
- Le("x",xe),Le("X",He),Ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ye("x",(function(e,t,n){n._d=new Date(he(e))})),
1235
+ Le("x",Oe),Le("X",He),Ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ye("x",(function(e,t,n){n._d=new Date(ce(e))})),
1223
1236
  //! moment.js
1224
- r.version="2.29.3",i(qn),r.fn=lo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ho,r.months=vo,r.isDate=c,r.locale=gn,r.invalid=v,r.duration=Dr,r.isMoment=S,r.weekdays=bo,r.parseZone=co,r.localeData=_n,r.isDuration=ur,r.monthsShort=_o,r.weekdaysMin=Eo,r.defineLocale=yn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Gr,r.prototype=lo,
1237
+ r.version="2.29.4",i(qn),r.fn=lo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ho,r.months=vo,r.isDate=c,r.locale=gn,r.invalid=v,r.duration=xr,r.isMoment=S,r.weekdays=bo,r.parseZone=co,r.localeData=_n,r.isDuration=ur,r.monthsShort=_o,r.weekdaysMin=Eo,r.defineLocale=yn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Gr,r.prototype=lo,
1225
1238
  // currently HTML5 input type only supports 24-hour formats
1226
1239
  r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
1227
1240
  DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
@@ -1232,60 +1245,60 @@ TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
1232
1245
  TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
1233
1246
  WEEK:"GGGG-[W]WW",// <input type="week" />
1234
1247
  MONTH:"YYYY-MM"},r}()}));
1235
- /* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.48.0 */
1236
- function Mr(e){let t;function n(e,t){/*isLoggedIn*/
1237
- return e[6]?Dr:/*funMode*/e[11]?Or:void 0}let r=n(e),i=r&&r(e);return{c(){t=g("div"),i&&i.c(),b(t,"class","CasinoIntegratedGamePage"),b(t,"part","CasinoIntegratedGamePage")},m(e,n){p(e,t,n),i&&i.m(t,null)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
1248
+ /* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.58.0 */
1249
+ function br(e){let t;function n(e,t){/*isLoggedIn*/
1250
+ return e[6]?Tr:/*funMode*/e[11]?Sr:void 0}let r=n(e),i=r&&r(e);return{c(){t=g("div"),i&&i.c(),b(t,"class","CasinoIntegratedGamePage"),b(t,"part","CasinoIntegratedGamePage")},m(e,n){p(e,t,n),i&&i.m(t,null)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
1238
1251
  // (354:4) {#if hasErrors}
1239
- function kr(e){let t;return{c(){t=g("p"),t.textContent="500 Error - Internal Server Error.",b(t,"class","SearchLoading"),b(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
1252
+ function wr(e){let t;return{c(){t=g("p"),t.textContent="500 Error - Internal Server Error.",b(t,"class","SearchLoading"),b(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
1240
1253
  // (351:2) {#if isLoading}
1241
- function Pr(e){let t;return{c(){t=g("p"),t.textContent="Loading, please wait ...",b(t,"class","SearchLoading"),b(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
1254
+ function Er(e){let t;return{c(){t=g("p"),t.textContent="Loading, please wait ...",b(t,"class","SearchLoading"),b(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
1242
1255
  // (393:10) {#if funMode}
1243
- function Or(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,P,O,D,x,B,A,H,N,L,C,I,R,F=/*$_*/e[22]("gamePage.signIn")+"",Y=/*$_*/e[22]("gamePage.register")+"";function U(e,t){/*isFullscreen*/
1244
- return e[17]?Br:xr}let G=U(e),$=G(e),j=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Ar();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=g("p"),o=g("span"),a=y(/*time*/e[4]),u=v(),l=g("div"),h=v(),f=g("div"),T=g("div"),M=g("iframe"),P=v(),O=g("div"),D=g("div"),x=g("button"),B=y(F),A=v(),H=g("button"),N=y(Y),L=v(),$.c(),C=v(),j&&j.c(),b(n,"class","backButton"),b(n,"part","backButton"),b(i,"class","Time"),b(i,"part","Time"),b(t,"class","GamePageIntegratedTopSection"),b(t,"part","GamePageIntegratedTopSection"),b(M,"title","Games"),b(M,"class","GamesContainer"),b(M,"part","GamesContainer"),b(M,"aria-hidden","false"),c(M.src,k=/*game*/e[10].launchUrl)||b(M,"src",k),b(x,"class","LoginButton"),b(x,"part","LoginButton"),b(H,"class","RegisterButton"),b(H,"part","RegisterButton"),b(D,"class","ButtonsContainer ButtonsContainerFunMode"),b(D,"part","ButtonsContainer ButtonsContainerFunMode"),b(O,"class","BottomGame"),b(O,"part","BottomGame"),b(T,"id","IframeGame"),b(T,"part","IframeGame"),E(T,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),E(T,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),E(T,"max-width",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].width?Math.floor(/*game*/e[10].width)+"px":"1280px"),E(T,"max-height",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),b(f,"id","IframeContainer"),b(f,"part","IframeContainer"),S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
1256
+ function Sr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,P,D,x,O,B,A,H,N,L,C,I,R,F=/*$_*/e[22]("gamePage.signIn")+"",Y=/*$_*/e[22]("gamePage.register")+"";function U(e,t){/*isFullscreen*/
1257
+ return e[17]?kr:Mr}let G=U(e),$=G(e),j=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Pr();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=g("p"),o=g("span"),a=y(/*time*/e[4]),u=v(),l=g("div"),h=v(),f=g("div"),T=g("div"),M=g("iframe"),P=v(),D=g("div"),x=g("div"),O=g("button"),B=y(F),A=v(),H=g("button"),N=y(Y),L=v(),$.c(),C=v(),j&&j.c(),b(n,"class","backButton"),b(n,"part","backButton"),b(i,"class","Time"),b(i,"part","Time"),b(t,"class","GamePageIntegratedTopSection"),b(t,"part","GamePageIntegratedTopSection"),b(M,"title","Games"),b(M,"class","GamesContainer"),b(M,"part","GamesContainer"),b(M,"aria-hidden","false"),c(M.src,k=/*game*/e[10].launchUrl)||b(M,"src",k),b(O,"class","LoginButton"),b(O,"part","LoginButton"),b(H,"class","RegisterButton"),b(H,"part","RegisterButton"),b(x,"class","ButtonsContainer ButtonsContainerFunMode"),b(x,"part","ButtonsContainer ButtonsContainerFunMode"),b(D,"class","BottomGame"),b(D,"part","BottomGame"),b(T,"id","IframeGame"),b(T,"part","IframeGame"),E(T,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),E(T,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),E(T,"max-width",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].width?Math.floor(/*game*/e[10].width)+"px":"1280px"),E(T,"max-height",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),b(f,"id","IframeContainer"),b(f,"part","IframeContainer"),S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
1245
1258
  /*p_binding_1*/e[57](i),d(t,u),d(t,l),p(s,h,c),p(s,f,c),d(f,T),d(T,M),
1246
- /*iframe_1_binding_1*/e[58](M),d(T,P),d(T,O),d(O,D),d(D,x),d(x,B),d(D,A),d(D,H),d(H,N),d(O,L),$.m(O,null),
1247
- /*div3_binding_1*/e[63](O),
1259
+ /*iframe_1_binding_1*/e[58](M),d(T,P),d(T,D),d(D,x),d(x,O),d(O,B),d(x,A),d(x,H),d(H,N),d(D,L),$.m(D,null),
1260
+ /*div3_binding_1*/e[63](D),
1248
1261
  /*div4_binding*/e[64](T),d(f,C),j&&j.m(f,null)
1249
- /*div5_binding*/,e[65](f),I||(R=[_(n,"click",/*click_handler_4*/e[56]),_(x,"click",/*click_handler_5*/e[59]),_(H,"click",/*click_handler_6*/e[60])],I=!0)},p(e,t){/*time*/16&t[0]&&w(a,/*time*/e[4]),/*game*/1024&t[0]&&!c(M.src,k=/*game*/e[10].launchUrl)&&b(M,"src",k),/*$_*/4194304&t[0]&&F!==(F=/*$_*/e[22]("gamePage.signIn")+"")&&w(B,F),/*$_*/4194304&t[0]&&Y!==(Y=/*$_*/e[22]("gamePage.register")+"")&&w(N,Y),G===(G=U(e))&&$?$.p(e,t):($.d(1),$=G(e),$&&($.c(),$.m(O,null))),/*isFullscreen, definitiveIframeWidth*/393216&t[0]&&E(T,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),/*isFullscreen, definitiveIframeHeight*/655360&t[0]&&E(T,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),/*isFullscreen, isModal, game*/136192&t[0]&&E(T,"max-width",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].width?Math.floor(/*game*/e[10].width)+"px":"1280px"),/*isFullscreen, isModal, game*/136192&t[0]&&E(T,"max-height",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[1]||/*isFullscreen*/e[17]?j&&(j.d(1),j=null):j||(j=Ar(),j.c(),j.m(f,null)),/*isFullscreen*/131072&t[0]&&S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
1262
+ /*div5_binding*/,e[65](f),I||(R=[_(n,"click",/*click_handler_4*/e[56]),_(O,"click",/*click_handler_5*/e[59]),_(H,"click",/*click_handler_6*/e[60])],I=!0)},p(e,t){/*time*/16&t[0]&&w(a,/*time*/e[4]),/*game*/1024&t[0]&&!c(M.src,k=/*game*/e[10].launchUrl)&&b(M,"src",k),/*$_*/4194304&t[0]&&F!==(F=/*$_*/e[22]("gamePage.signIn")+"")&&w(B,F),/*$_*/4194304&t[0]&&Y!==(Y=/*$_*/e[22]("gamePage.register")+"")&&w(N,Y),G===(G=U(e))&&$?$.p(e,t):($.d(1),$=G(e),$&&($.c(),$.m(D,null))),/*isFullscreen, definitiveIframeWidth*/393216&t[0]&&E(T,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),/*isFullscreen, definitiveIframeHeight*/655360&t[0]&&E(T,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),/*isFullscreen, isModal, game*/136192&t[0]&&E(T,"max-width",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].width?Math.floor(/*game*/e[10].width)+"px":"1280px"),/*isFullscreen, isModal, game*/136192&t[0]&&E(T,"max-height",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[1]||/*isFullscreen*/e[17]?j&&(j.d(1),j=null):j||(j=Pr(),j.c(),j.m(f,null)),/*isFullscreen*/131072&t[0]&&S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
1250
1263
  /*p_binding_1*/,e[57](null),n&&m(h),n&&m(f)
1251
1264
  /*iframe_1_binding_1*/,e[58](null),$.d(),
1252
1265
  /*div3_binding_1*/e[63](null),
1253
1266
  /*div4_binding*/e[64](null),j&&j.d()
1254
1267
  /*div5_binding*/,e[65](null),I=!1,s(R)}}}
1255
1268
  // (358:8) {#if isLoggedIn}
1256
- function Dr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,P,O,D,x,B,A,H,N,L,C=/*$_*/e[22]("gamePage.deposit")+"",I=/*haspanicbutton*/"true"===e[0]&&Hr(e);function R(e,t){/*isFullscreen*/
1257
- return e[17]?Lr:Nr}let F=R(e),Y=F(e),U=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Cr();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:var(--emfe-w-color-primary, #FFF);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=g("p"),o=g("span"),a=y(/*time*/e[4]),u=v(),l=g("button"),h=y(C),f=v(),T=g("div"),M=g("div"),k=g("iframe"),x=v(),B=g("div"),I&&I.c(),A=v(),Y.c(),H=v(),U&&U.c(),b(n,"class","backButton"),b(n,"part","backButton"),b(i,"class","Time"),b(i,"part","Time"),b(l,"class","DepositButton"),b(l,"part","DepositButton"),b(t,"class","GamePageIntegratedTopSection"),b(t,"part","GamePageIntegratedTopSection"),b(k,"title","Games"),b(k,"id","IframeGame"),b(k,"class","GamesContainer"),b(k,"part","GamesContainer"),b(k,"aria-hidden","false"),c(k.src,P=/*game*/e[10].launchUrl)||b(k,"src",P),b(k,"width",O=/*gameContainerWidth*/e[14]+"px"),b(k,"height",D=/*gameContainerHeight*/e[15]+"px"),b(B,"class","BottomGame BottomGameLoggedin"),b(B,"part","BottomGame BottomGameLoggedin"),b(M,"id","IframeGame"),b(M,"part","IframeGame"),E(M,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),E(M,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),E(M,"max-width",/*isFullscreen*/e[17]?"none":/*game*/e[10].width?/*game*/e[10].width+"px":"1280px"),E(M,"max-height",/*isFullscreen*/e[17]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),b(T,"id","IframeContainer"),b(T,"part","IframeContainer"),S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
1269
+ function Tr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,P,D,x,O,B,A,H,N,L,C=/*$_*/e[22]("gamePage.deposit")+"",I=/*haspanicbutton*/"true"===e[0]&&Dr(e);function R(e,t){/*isFullscreen*/
1270
+ return e[17]?Or:xr}let F=R(e),Y=F(e),U=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Br();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:var(--emfe-w-color-primary, #FFF);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=g("p"),o=g("span"),a=y(/*time*/e[4]),u=v(),l=g("button"),h=y(C),f=v(),T=g("div"),M=g("div"),k=g("iframe"),O=v(),B=g("div"),I&&I.c(),A=v(),Y.c(),H=v(),U&&U.c(),b(n,"class","backButton"),b(n,"part","backButton"),b(i,"class","Time"),b(i,"part","Time"),b(l,"class","DepositButton"),b(l,"part","DepositButton"),b(t,"class","GamePageIntegratedTopSection"),b(t,"part","GamePageIntegratedTopSection"),b(k,"title","Games"),b(k,"id","IframeGame"),b(k,"class","GamesContainer"),b(k,"part","GamesContainer"),b(k,"aria-hidden","false"),c(k.src,P=/*game*/e[10].launchUrl)||b(k,"src",P),b(k,"width",D=/*gameContainerWidth*/e[14]+"px"),b(k,"height",x=/*gameContainerHeight*/e[15]+"px"),b(B,"class","BottomGame BottomGameLoggedin"),b(B,"part","BottomGame BottomGameLoggedin"),b(M,"id","IframeGame"),b(M,"part","IframeGame"),E(M,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),E(M,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),E(M,"max-width",/*isFullscreen*/e[17]?"none":/*game*/e[10].width?/*game*/e[10].width+"px":"1280px"),E(M,"max-height",/*isFullscreen*/e[17]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),b(T,"id","IframeContainer"),b(T,"part","IframeContainer"),S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
1258
1271
  /*p_binding*/e[47](i),d(t,u),d(t,l),d(l,h),p(s,f,c),p(s,T,c),d(T,M),d(M,k),
1259
- /*iframe_1_binding*/e[49](k),d(M,x),d(M,B),I&&I.m(B,null),d(B,A),Y.m(B,null),
1272
+ /*iframe_1_binding*/e[49](k),d(M,O),d(M,B),I&&I.m(B,null),d(B,A),Y.m(B,null),
1260
1273
  /*div1_binding*/e[53](B),
1261
1274
  /*div2_binding*/e[54](M),d(T,H),U&&U.m(T,null)
1262
- /*div3_binding*/,e[55](T),N||(L=[_(n,"click",/*click_handler*/e[46]),_(l,"click",/*click_handler_1*/e[48])],N=!0)},p(e,t){/*time*/16&t[0]&&w(a,/*time*/e[4]),/*$_*/4194304&t[0]&&C!==(C=/*$_*/e[22]("gamePage.deposit")+"")&&w(h,C),/*game*/1024&t[0]&&!c(k.src,P=/*game*/e[10].launchUrl)&&b(k,"src",P),/*gameContainerWidth*/16384&t[0]&&O!==(O=/*gameContainerWidth*/e[14]+"px")&&b(k,"width",O),/*gameContainerHeight*/32768&t[0]&&D!==(D=/*gameContainerHeight*/e[15]+"px")&&b(k,"height",D),/*haspanicbutton*/"true"===e[0]?I?I.p(e,t):(I=Hr(e),I.c(),I.m(B,A)):I&&(I.d(1),I=null),F===(F=R(e))&&Y?Y.p(e,t):(Y.d(1),Y=F(e),Y&&(Y.c(),Y.m(B,null))),/*isFullscreen, definitiveIframeWidth*/393216&t[0]&&E(M,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),/*isFullscreen, definitiveIframeHeight*/655360&t[0]&&E(M,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),/*isFullscreen, game*/132096&t[0]&&E(M,"max-width",/*isFullscreen*/e[17]?"none":/*game*/e[10].width?/*game*/e[10].width+"px":"1280px"),/*isFullscreen, game*/132096&t[0]&&E(M,"max-height",/*isFullscreen*/e[17]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[1]||/*isFullscreen*/e[17]?U&&(U.d(1),U=null):U||(U=Cr(),U.c(),U.m(T,null)),/*isFullscreen*/131072&t[0]&&S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
1275
+ /*div3_binding*/,e[55](T),N||(L=[_(n,"click",/*click_handler*/e[46]),_(l,"click",/*click_handler_1*/e[48])],N=!0)},p(e,t){/*time*/16&t[0]&&w(a,/*time*/e[4]),/*$_*/4194304&t[0]&&C!==(C=/*$_*/e[22]("gamePage.deposit")+"")&&w(h,C),/*game*/1024&t[0]&&!c(k.src,P=/*game*/e[10].launchUrl)&&b(k,"src",P),/*gameContainerWidth*/16384&t[0]&&D!==(D=/*gameContainerWidth*/e[14]+"px")&&b(k,"width",D),/*gameContainerHeight*/32768&t[0]&&x!==(x=/*gameContainerHeight*/e[15]+"px")&&b(k,"height",x),/*haspanicbutton*/"true"===e[0]?I?I.p(e,t):(I=Dr(e),I.c(),I.m(B,A)):I&&(I.d(1),I=null),F===(F=R(e))&&Y?Y.p(e,t):(Y.d(1),Y=F(e),Y&&(Y.c(),Y.m(B,null))),/*isFullscreen, definitiveIframeWidth*/393216&t[0]&&E(M,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),/*isFullscreen, definitiveIframeHeight*/655360&t[0]&&E(M,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),/*isFullscreen, game*/132096&t[0]&&E(M,"max-width",/*isFullscreen*/e[17]?"none":/*game*/e[10].width?/*game*/e[10].width+"px":"1280px"),/*isFullscreen, game*/132096&t[0]&&E(M,"max-height",/*isFullscreen*/e[17]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[1]||/*isFullscreen*/e[17]?U&&(U.d(1),U=null):U||(U=Br(),U.c(),U.m(T,null)),/*isFullscreen*/131072&t[0]&&S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
1263
1276
  /*p_binding*/,e[47](null),n&&m(f),n&&m(T)
1264
1277
  /*iframe_1_binding*/,e[49](null),I&&I.d(),Y.d(),
1265
1278
  /*div1_binding*/e[53](null),
1266
1279
  /*div2_binding*/e[54](null),U&&U.d()
1267
1280
  /*div3_binding*/,e[55](null),N=!1,s(L)}}}
1268
1281
  // (413:18) {:else}
1269
- function xr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_8*/e[62]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1282
+ function Mr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_8*/e[62]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1270
1283
  // (409:18) {#if isFullscreen}
1271
- function Br(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_7*/e[61]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1284
+ function kr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_7*/e[61]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1272
1285
  // (420:14) {#if gamebanneractive == 'true' && !isFullscreen}
1273
- function Ar(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",b(t,"class","BannerSection"),b(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}
1286
+ function Pr(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",b(t,"class","BannerSection"),b(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}
1274
1287
  // (370:16) {#if haspanicbutton === "true"}
1275
- function Hr(e){let t,n,r,i,o,s=/*$_*/e[22]("gamePage.breakButton")+"";return{c(){t=g("div"),n=g("button"),r=y(s),b(n,"class",i="PanicButton "+("PC"!==_r(/*userAgent*/e[23])?"PanicButtonMobile":"")),b(n,"part",o="PanicButton "+("PC"!==_r(/*userAgent*/e[23])?"PanicButtonMobile":"")),S(n,"PanicButtonAnimation",/*panicLoading*/e[9]),b(t,"class","PanicSection"),b(t,"part","PanicSection")},m(i,o){p(i,t,o),d(t,n),d(n,r),
1276
- /*button_binding*/e[50](n)},p(e,t){/*$_*/4194304&t[0]&&s!==(s=/*$_*/e[22]("gamePage.breakButton")+"")&&w(r,s),/*panicLoading*/512&t[0]&&S(n,"PanicButtonAnimation",/*panicLoading*/e[9])},d(n){n&&m(t)
1288
+ function Dr(e){let t,n,r,i=/*$_*/e[22]("gamePage.breakButton")+"";return{c(){t=g("div"),n=g("button"),r=y(i),b(n,"class","PanicButton "+("PC"!==pr(/*userAgent*/e[23])?"PanicButtonMobile":"")),b(n,"part","PanicButton "+("PC"!==pr(/*userAgent*/e[23])?"PanicButtonMobile":"")),S(n,"PanicButtonAnimation",/*panicLoading*/e[9]),b(t,"class","PanicSection"),b(t,"part","PanicSection")},m(i,o){p(i,t,o),d(t,n),d(n,r),
1289
+ /*button_binding*/e[50](n)},p(e,t){/*$_*/4194304&t[0]&&i!==(i=/*$_*/e[22]("gamePage.breakButton")+"")&&w(r,i),/*panicLoading*/512&t[0]&&S(n,"PanicButtonAnimation",/*panicLoading*/e[9])},d(n){n&&m(t)
1277
1290
  /*button_binding*/,e[50](null)}}}
1278
1291
  // (379:16) {:else}
1279
- function Nr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_3*/e[52]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1292
+ function xr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_3*/e[52]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1280
1293
  // (375:16) {#if isFullscreen}
1281
- function Lr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_2*/e[51]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1294
+ function Or(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_2*/e[51]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1282
1295
  // (386:12) {#if gamebanneractive == 'true' && !isFullscreen}
1283
- function Cr(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",b(t,"class","BannerSection"),b(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}function Ir(e){let t;function n(e,t){/*isLoading*/
1284
- return e[8]?Pr:/*hasErrors*/e[7]?kr:Mr}let i=n(e),o=i(e);return{c(){t=g("div"),o.c(),this.c=r},m(n,r){p(n,t,r),o.m(t,null),
1296
+ function Br(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",b(t,"class","BannerSection"),b(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}function Ar(e){let t;function n(e,t){/*isLoading*/
1297
+ return e[8]?Er:/*hasErrors*/e[7]?wr:br}let i=n(e),o=i(e);return{c(){t=g("div"),o.c(),this.c=r},m(n,r){p(n,t,r),o.m(t,null),
1285
1298
  /*div_binding*/e[66](t)},p(e,r){i===(i=n(e))&&o?o.p(e,r):(o.d(1),o=i(e),o&&(o.c(),o.m(t,null)))},i:r,o:r,d(n){n&&m(t),o.d(),
1286
- /*div_binding*/e[66](null)}}}function Rr(e,t,n){let r;var i,o;i=vr,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,g,y,v,_,b,w,E,S,{endpoint:T=""}=t,{lang:M=""}=t,{session:P=""}=t,{userid:D=""}=t,{clientstyling:x=""}=t,{clientstylingurl:B=""}=t,{translationurl:A=""}=t,{loginurl:H=""}=t,{registerurl:N=""}=t,{depositurl:L=""}=t,{loginevent:C=""}=t,{registerevent:I=""}=t,{depositevent:R=""}=t,{clockformat:F=""}=t,{haspanicbutton:Y="false"}=t,{playforfun:U="true"}=t,{checksession:G="true"}=t,{gamebanneractive:$="false"}=t,{gameid:j=""}=t,W=!1,V=!1,z=!0,Z=!1,X=0,q=!1,K=!1,J=!0,Q=!1,ee=window.navigator.userAgent;!function({withLocale:e,translations:t}){sr.subscribe((n=>{null==n&&(Gn.set(t),sr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
1299
+ /*div_binding*/e[66](null)}}}function Hr(e,t,n){let r;var i,o;i=dr,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,g,y,v,_,b,w,E,S,{endpoint:T=""}=t,{lang:M=""}=t,{session:P=""}=t,{userid:x=""}=t,{clientstyling:O=""}=t,{clientstylingurl:B=""}=t,{translationurl:A=""}=t,{loginurl:H=""}=t,{registerurl:N=""}=t,{depositurl:L=""}=t,{loginevent:C=""}=t,{registerevent:I=""}=t,{depositevent:R=""}=t,{clockformat:F=""}=t,{haspanicbutton:Y="false"}=t,{playforfun:U="true"}=t,{checksession:G="true"}=t,{gamebanneractive:$="false"}=t,{gameid:j=""}=t,W=!1,V=!1,z=!0,Z=!1,X=0,q=!1,K=!1,J=!0,Q=!1,ee=window.navigator.userAgent;!function({withLocale:e,translations:t}){tr.subscribe((n=>{null==n&&(Rn.set(t),tr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
1287
1300
  /*dictionary.set(translations);
1288
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(wr).forEach((e=>{br(e,wr[e])}));
1301
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(gr).forEach((e=>{mr(e,gr[e])}));
1289
1302
  // @TODO game typescript model type
1290
1303
  const te=(e,t)=>{let r=new URL(`${T}/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(12,J=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(10,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
1291
1304
  // @TODO wtf? session check or go home
@@ -1296,7 +1309,7 @@ p/r>m-E.clientHeight-S.clientHeight?(v=m-E.clientHeight-S.clientHeight,y=m*r):(y
1296
1309
  // sent to modal component a flag (detailsObtained) by witch to determine if a game is open
1297
1310
  window.postMessage({type:"GameStateOnResize",detailsObtained:q},window.location.href),
1298
1311
  // make sure that a game is open before trying to get the element properties
1299
- q&&d&&"PC"==_r(ee)&&re()},oe=()=>{C&&(window.postMessage({type:C,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),H&&(
1312
+ q&&d&&"PC"==pr(ee)&&re()},oe=()=>{C&&(window.postMessage({type:C,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),H&&(
1300
1313
  // @ts-ignore
1301
1314
  window.location=H),
1302
1315
  //Analytics event
@@ -1308,9 +1321,9 @@ window.location=N),
1308
1321
  //Analytics event
1309
1322
  "function"==typeof gtag&&gtag("event","GoToDeposit",{context:"IntegratedGamePage"})),L&&(
1310
1323
  // @ts-ignore
1311
- window.location=L)};function ue(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!Q||le()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",ue,!1),document.addEventListener("mozfullscreenchange",ue,!1),document.addEventListener("fullscreenchange",ue,!1),document.addEventListener("MSFullscreenChange",ue,!1));const le=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(Q?(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),n(17,Q=!1)):(d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen(),n(17,Q=!0)))},he=setInterval((()=>{n(4,s=F?Tr().format(F):Tr().format("LTS"))}),100),ce=()=>{var e;e=M,sr.set(e),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(ee),n(8,z=!1)},fe=()=>{"true"==G?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),de(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(T,P).then((e=>{u=e.Guid,e.UserID,n(6,W=!0)}),(e=>{n(6,W=!1),console.error("err on session",e)})):u=P},pe=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},me=e=>{X=0,h=setInterval((()=>{X+=1,n(9,Z=!0),X>=3&&clearInterval(h)}),1e3)},ge=e=>{X<3&&n(9,Z=!1),clearInterval(h)};k((()=>(window.addEventListener("resize",ie,!1),Sr.isNative(ee),()=>{n(9,Z=!1),null==l||l.removeEventListener("mousedown",me),null==l||l.removeEventListener("touchstart",me),
1324
+ window.location=L)};function ue(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!Q||le()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",ue,!1),document.addEventListener("mozfullscreenchange",ue,!1),document.addEventListener("fullscreenchange",ue,!1),document.addEventListener("MSFullscreenChange",ue,!1));const le=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(Q?(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),n(17,Q=!1)):(d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen(),n(17,Q=!0)))},ce=setInterval((()=>{n(4,s=F?_r().format(F):_r().format("LTS"))}),100),fe=()=>{var e;e=M,tr.set(e),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(ee),n(8,z=!1)},de=()=>{"true"==G?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),he(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(T,P).then((e=>{u=e.Guid,e.UserID,n(6,W=!0)}),(e=>{n(6,W=!1),console.error("err on session",e)})):u=P},pe=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},me=e=>{X=0,h=setInterval((()=>{X+=1,n(9,Z=!0),X>=3&&clearInterval(h)}),1e3)},ge=e=>{X<3&&n(9,Z=!1),clearInterval(h)};k((()=>(window.addEventListener("resize",ie,!1),vr.isNative(ee),()=>{n(9,Z=!1),null==l||l.removeEventListener("mousedown",me),null==l||l.removeEventListener("touchstart",me),
1312
1325
  // on mouseup stop interval count
1313
- null==l||l.removeEventListener("mouseup",ge),null==l||l.removeEventListener("touchend",ge),window.removeEventListener("resize",ie),clearInterval(he)})));return e.$$set=e=>{"endpoint"in e&&n(29,T=e.endpoint),"lang"in e&&n(30,M=e.lang),"session"in e&&n(31,P=e.session),"userid"in e&&n(32,D=e.userid),"clientstyling"in e&&n(33,x=e.clientstyling),"clientstylingurl"in e&&n(34,B=e.clientstylingurl),"translationurl"in e&&n(35,A=e.translationurl),"loginurl"in e&&n(36,H=e.loginurl),"registerurl"in e&&n(37,N=e.registerurl),"depositurl"in e&&n(38,L=e.depositurl),"loginevent"in e&&n(39,C=e.loginevent),"registerevent"in e&&n(40,I=e.registerevent),"depositevent"in e&&n(41,R=e.depositevent),"clockformat"in e&&n(42,F=e.clockformat),"haspanicbutton"in e&&n(0,Y=e.haspanicbutton),"playforfun"in e&&n(43,U=e.playforfun),"checksession"in e&&n(44,G=e.checksession),"gamebanneractive"in e&&n(1,$=e.gamebanneractive),"gameid"in e&&n(45,j=e.gameid)},e.$$.update=()=>{/*lang*/1073741824&e.$$.dirty[0]&&M&&ce(),/*endpoint, lang*/1610612736&e.$$.dirty[0]|/*gameid*/16384&e.$$.dirty[1]&&T&&j&&M&&te(j),/*endpoint*/536870912&e.$$.dirty[0]|/*session, userid*/3&e.$$.dirty[1]&&P&&D&&T&&fe(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstyling*/4&e.$$.dirty[1]&&x&&w&&(()=>{let e=document.createElement("style");e.innerHTML=x,w.appendChild(e)})(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstylingurl*/8&e.$$.dirty[1]&&B&&w&&(()=>{let e=document.createElement("style");if(B){let t=new URL(B);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{w.appendChild(e)}),1)}))}})(),/*panicButton*/4&e.$$.dirty[0]&&l&&(null==l||l.addEventListener("mousedown",me,!1),null==l||l.addEventListener("touchstart",me,!1),
1326
+ null==l||l.removeEventListener("mouseup",ge),null==l||l.removeEventListener("touchend",ge),window.removeEventListener("resize",ie),clearInterval(ce)})));return e.$$set=e=>{"endpoint"in e&&n(29,T=e.endpoint),"lang"in e&&n(30,M=e.lang),"session"in e&&n(31,P=e.session),"userid"in e&&n(32,x=e.userid),"clientstyling"in e&&n(33,O=e.clientstyling),"clientstylingurl"in e&&n(34,B=e.clientstylingurl),"translationurl"in e&&n(35,A=e.translationurl),"loginurl"in e&&n(36,H=e.loginurl),"registerurl"in e&&n(37,N=e.registerurl),"depositurl"in e&&n(38,L=e.depositurl),"loginevent"in e&&n(39,C=e.loginevent),"registerevent"in e&&n(40,I=e.registerevent),"depositevent"in e&&n(41,R=e.depositevent),"clockformat"in e&&n(42,F=e.clockformat),"haspanicbutton"in e&&n(0,Y=e.haspanicbutton),"playforfun"in e&&n(43,U=e.playforfun),"checksession"in e&&n(44,G=e.checksession),"gamebanneractive"in e&&n(1,$=e.gamebanneractive),"gameid"in e&&n(45,j=e.gameid)},e.$$.update=()=>{/*lang*/1073741824&e.$$.dirty[0]&&M&&fe(),/*endpoint, lang*/1610612736&e.$$.dirty[0]|/*gameid*/16384&e.$$.dirty[1]&&T&&j&&M&&te(j),/*endpoint*/536870912&e.$$.dirty[0]|/*session, userid*/3&e.$$.dirty[1]&&P&&x&&T&&de(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstyling*/4&e.$$.dirty[1]&&O&&w&&(()=>{let e=document.createElement("style");e.innerHTML=O,w.appendChild(e)})(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstylingurl*/8&e.$$.dirty[1]&&B&&w&&(()=>{let e=document.createElement("style");if(B){let t=new URL(B);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{w.appendChild(e)}),1)}))}})(),/*panicButton*/4&e.$$.dirty[0]&&l&&(null==l||l.addEventListener("mousedown",me,!1),null==l||l.addEventListener("touchstart",me,!1),
1314
1327
  // on mouseup stop interval count
1315
- null==l||l.addEventListener("mouseup",ge,!1),null==l||l.addEventListener("touchend",ge,!1)),/*translationurl*/16&e.$$.dirty[1]&&A&&fetch(A).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{br(t,e[t])}))})).catch((e=>{console.log(e)}))},[Y,$,l,w,s,a,W,V,z,Z,c,K,J,d,p,m,g,Q,_,b,E,S,r,ee,oe,se,ae,le,pe,T,M,P,D,x,B,A,H,N,L,C,I,R,F,U,G,j,()=>pe(),function(e){O[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},()=>ae(),function(e){O[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},function(e){O[e?"unshift":"push"]((()=>{l=e,n(2,l)}))},()=>le(),()=>le(),function(e){O[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){O[e?"unshift":"push"]((()=>{g=e,n(16,g)}))},function(e){O[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},()=>pe(),function(e){O[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},function(e){O[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},()=>oe(),()=>se(),()=>le(),()=>le(),function(e){O[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){O[e?"unshift":"push"]((()=>{g=e,n(16,g)}))},function(e){O[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},function(e){O[e?"unshift":"push"]((()=>{w=e,n(3,w)}))}]}class Fr extends U{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-color-primary, #FFF)}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-color-contrast, #07072A);display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-color-green, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-color-primary, #D0046C);float:right}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-color-primary, #D0046C);border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-color-white, #FFFFFF)}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:#fff}</style>',Y(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Rr,Ir,u,{endpoint:29,lang:30,session:31,userid:32,clientstyling:33,clientstylingurl:34,translationurl:35,loginurl:36,registerurl:37,depositurl:38,loginevent:39,registerevent:40,depositevent:41,clockformat:42,haspanicbutton:0,playforfun:43,checksession:44,gamebanneractive:1,gameid:45},null,[-1,-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),C()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),C()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),C()}get userid(){return this.$$.ctx[32]}set userid(e){this.$$set({userid:e}),C()}get clientstyling(){return this.$$.ctx[33]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[34]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[35]}set translationurl(e){this.$$set({translationurl:e}),C()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$$set({loginurl:e}),C()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$$set({registerurl:e}),C()}get depositurl(){return this.$$.ctx[38]}set depositurl(e){this.$$set({depositurl:e}),C()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),C()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),C()}get depositevent(){return this.$$.ctx[41]}set depositevent(e){this.$$set({depositevent:e}),C()}get clockformat(){return this.$$.ctx[42]}set clockformat(e){this.$$set({clockformat:e}),C()}get haspanicbutton(){return this.$$.ctx[0]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),C()}get playforfun(){return this.$$.ctx[43]}set playforfun(e){this.$$set({playforfun:e}),C()}get checksession(){return this.$$.ctx[44]}set checksession(e){this.$$set({checksession:e}),C()}get gamebanneractive(){return this.$$.ctx[1]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),C()}get gameid(){return this.$$.ctx[45]}set gameid(e){this.$$set({gameid:e}),C()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",Fr),Fr}));
1328
+ null==l||l.addEventListener("mouseup",ge,!1),null==l||l.addEventListener("touchend",ge,!1)),/*translationurl*/16&e.$$.dirty[1]&&A&&fetch(A).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{mr(t,e[t])}))})).catch((e=>{console.log(e)}))},[Y,$,l,w,s,a,W,V,z,Z,c,K,J,d,p,m,g,Q,_,b,E,S,r,ee,oe,se,ae,le,pe,T,M,P,x,O,B,A,H,N,L,C,I,R,F,U,G,j,()=>pe(),function(e){D[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},()=>ae(),function(e){D[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},function(e){D[e?"unshift":"push"]((()=>{l=e,n(2,l)}))},()=>le(),()=>le(),function(e){D[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){D[e?"unshift":"push"]((()=>{g=e,n(16,g)}))},function(e){D[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},()=>pe(),function(e){D[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},function(e){D[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},()=>oe(),()=>se(),()=>le(),()=>le(),function(e){D[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){D[e?"unshift":"push"]((()=>{g=e,n(16,g)}))},function(e){D[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},function(e){D[e?"unshift":"push"]((()=>{w=e,n(3,w)}))}]}class Nr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-color-primary, #FFF)}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-color-contrast, #07072A);display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-color-green, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-color-primary, #D0046C);float:right}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-color-primary, #D0046C);border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-color-white, #FFFFFF)}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:#fff}',this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Hr,Ar,u,{endpoint:29,lang:30,session:31,userid:32,clientstyling:33,clientstylingurl:34,translationurl:35,loginurl:36,registerurl:37,depositurl:38,loginevent:39,registerevent:40,depositevent:41,clockformat:42,haspanicbutton:0,playforfun:43,checksession:44,gamebanneractive:1,gameid:45},null,[-1,-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),C()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),C()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),C()}get userid(){return this.$$.ctx[32]}set userid(e){this.$$set({userid:e}),C()}get clientstyling(){return this.$$.ctx[33]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[34]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[35]}set translationurl(e){this.$$set({translationurl:e}),C()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$$set({loginurl:e}),C()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$$set({registerurl:e}),C()}get depositurl(){return this.$$.ctx[38]}set depositurl(e){this.$$set({depositurl:e}),C()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),C()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),C()}get depositevent(){return this.$$.ctx[41]}set depositevent(e){this.$$set({depositevent:e}),C()}get clockformat(){return this.$$.ctx[42]}set clockformat(e){this.$$set({clockformat:e}),C()}get haspanicbutton(){return this.$$.ctx[0]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),C()}get playforfun(){return this.$$.ctx[43]}set playforfun(e){this.$$set({playforfun:e}),C()}get checksession(){return this.$$.ctx[44]}set checksession(e){this.$$set({checksession:e}),C()}get gamebanneractive(){return this.$$.ctx[1]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),C()}get gameid(){return this.$$.ctx[45]}set gameid(e){this.$$set({gameid:e}),C()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",Nr),Nr}));
1316
1329
  //# sourceMappingURL=casino-integrated-game-page.js.map