@everymatrix/casino-integrated-game-page 1.22.10 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(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 y(e){return document.createElement(e)}function g(e){return document.createTextNode(e)}function v(){return g(" ")}function b(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function _(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}
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 l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let u,c;function h(e,t){return u||(u=document.createElement("a")),u.href=t,e===u.href}function d(e,...t){if(null==e)return r;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function f(e,t,n){e.$$.on_destroy.push(d(t,n))}function p(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function v(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function w(){return b(" ")}function _(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function E(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:E(e,t,n)}function T(e,t){t=""+t,e.data!==t&&(e.data=t)}function M(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function k(e,t,n){e.classList[n?"add":"remove"](t)}function x(e){const t={};for(const n of e)t[n.name]=n.value;return t}function D(e){c=e}
2
2
  /**
3
3
  * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
4
4
  * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * https://svelte.dev/docs#run-time-svelte-onmount
10
10
  */
11
- function k(e){(function(){if(!h)throw new Error("Function called outside component initialization");return h})().$$.on_mount.push(e)}const O=[],x=[];let D=[];const P=[],B=Promise.resolve();let H=!1;function A(e){D.push(e)}
11
+ function O(e){(function(){if(!c)throw new Error("Function called outside component initialization");return c})().$$.on_mount.push(e)}const P=[],B=[];let H=[];const A=[],F=Promise.resolve();let N=!1;function C(e){H.push(e)}
12
12
  // flush() calls callbacks in this order:
13
13
  // 1. All beforeUpdate callbacks, in order: parents before children
14
14
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -27,61 +27,61 @@ function k(e){(function(){if(!h)throw new Error("Function called outside compone
27
27
  // 3. During afterUpdate, any updated components will NOT have their afterUpdate
28
28
  // callback called a second time; the seen_callbacks set, outside the flush()
29
29
  // function, guarantees this behavior.
30
- const N=new Set;let F=0;// Do *not* move this inside the flush() function
31
- function L(){
30
+ const L=new Set;let R=0;// Do *not* move this inside the flush() function
31
+ function I(){
32
32
  // Do not reenter flush while dirty components are updated, as this can
33
33
  // result in an infinite loop. Instead, let the inner flush handle it.
34
34
  // Reentrancy is ok afterwards for bindings etc.
35
- if(0!==F)return;const e=h;do{
35
+ if(0!==R)return;const e=c;do{
36
36
  // first, call beforeUpdate functions
37
37
  // and update components
38
- try{for(;F<O.length;){const e=O[F];F++,M(e),C(e.$$)}}catch(e){
38
+ try{for(;R<P.length;){const e=P[R];R++,D(e),Y(e.$$)}}catch(e){
39
39
  // reset dirty state to not end up in a deadlocked state and then rethrow
40
- throw O.length=0,F=0,e}for(M(null),O.length=0,F=0;x.length;)x.pop()();
40
+ throw P.length=0,R=0,e}for(D(null),P.length=0,R=0;B.length;)B.pop()();
41
41
  // then, once components are updated, call
42
42
  // afterUpdate functions. This may cause
43
43
  // subsequent updates...
44
- for(let e=0;e<D.length;e+=1){const t=D[e];N.has(t)||(
44
+ for(let e=0;e<H.length;e+=1){const t=H[e];L.has(t)||(
45
45
  // ...so guard against infinite loops
46
- N.add(t),t())}D.length=0}while(O.length);for(;P.length;)P.pop()();H=!1,N.clear(),M(e)}function C(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(A)}}
46
+ L.add(t),t())}H.length=0}while(P.length);for(;A.length;)A.pop()();N=!1,L.clear(),D(e)}function Y(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(C)}}
47
47
  /**
48
48
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
49
- */const R=new Set;function I(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];D.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),D=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),
49
+ */const U=new Set;function $(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];H.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),H=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),
50
50
  // TODO null out other refs, including component.$$ (but need to
51
51
  // preserve final state?)
52
- n.on_destroy=n.fragment=null,n.ctx=[])}function Y(e,t){-1===e.$$.dirty[0]&&(O.push(e),H||(H=!0,B.then(L)),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 y=e.$$={fragment:null,ctx:[],
52
+ n.on_destroy=n.fragment=null,n.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(P.push(e),N||(N=!0,F.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function j(e,t,n,l,u,h,d,f=[-1]){const p=c;D(e);const m=e.$$={fragment:null,ctx:[],
53
53
  // state
54
- props:c,update:r,not_equal:l,bound:o(),
54
+ props:h,update:r,not_equal:u,bound:o(),
55
55
  // lifecycle
56
56
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(p?p.$$.context:[])),
57
57
  // everything else
58
- callbacks:o(),dirty:d,skip_bound:!1,root:t.target||p.$$.root};f&&f(y.root);let g=!1;if(y.ctx=n?n(e,t.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return y.ctx&&l(y.ctx[t],y.ctx[t]=i)&&(!y.skip_bound&&y.bound[t]&&y.bound[t](i),g&&Y(e,t)),n})):[],y.update(),g=!0,s(y.before_update),
58
+ callbacks:o(),dirty:f,skip_bound:!1,root:t.target||p.$$.root};d&&d(m.root);let g=!1;if(m.ctx=n?n(e,t.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return m.ctx&&u(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),g&&G(e,t)),n})):[],m.update(),g=!0,s(m.before_update),
59
59
  // `false` as a special case of no DOM component
60
- y.fragment=!!u&&u(y.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);
60
+ m.fragment=!!l&&l(m.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);
61
61
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
62
- y.fragment&&y.fragment.l(e),e.forEach(m)}else
62
+ m.fragment&&m.fragment.l(e),e.forEach(y)}else
63
63
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
64
- y.fragment&&y.fragment.c();t.intro&&((v=e.$$.fragment)&&v.i&&(R.delete(v),v.i(b))),function(e,t,n,r){const{fragment:o,after_update:u}=e.$$;o&&o.m(t,n),r||
64
+ m.fragment&&m.fragment.c();t.intro&&((v=e.$$.fragment)&&v.i&&(U.delete(v),v.i(b))),function(e,t,n,r){const{fragment:o,after_update:l}=e.$$;o&&o.m(t,n),r||
65
65
  // onMount happens before the initial afterUpdate
66
- A((()=>{const t=e.$$.on_mount.map(i).filter(a);
66
+ C((()=>{const t=e.$$.on_mount.map(i).filter(a);
67
67
  // if the component was destroyed immediately
68
68
  // it will update the `$$.on_destroy` reference to `null`.
69
69
  // the destructured on_destroy may still reference to the old array
70
70
  e.$$.on_destroy?e.$$.on_destroy.push(...t):
71
71
  // Edge case - component was destroyed immediately,
72
72
  // most likely as a result of a binding initialising
73
- s(t),e.$$.on_mount=[]})),u.forEach(A)}(e,t.target,t.anchor,t.customElement),L()}var v,b;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);
73
+ s(t),e.$$.on_mount=[]})),l.forEach(C)}(e,t.target,t.anchor,t.customElement),I()}var v,b;D(p)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(i).filter(a);
74
74
  // @ts-ignore todo: improve typings
75
75
  for(const e in this.$$.slotted)
76
76
  // @ts-ignore todo: improve typings
77
- this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){I(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(){$(this,1),this.$destroy=r}$on(e,t){
78
78
  // TODO should this delegate to addEventListener?
79
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)}})
80
- /* eslint-disable no-prototype-builtins */;var $="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
80
+ /* eslint-disable no-prototype-builtins */;var V="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
81
81
  // eslint-disable-next-line no-undef
82
- "undefined"!=typeof global&&global||{},j="URLSearchParams"in $,W="Symbol"in $&&"iterator"in Symbol,V="FileReader"in $&&"Blob"in $&&function(){try{return new Blob,!0}catch(e){return!1}}(),z="FormData"in $,Z="ArrayBuffer"in $;if(Z)var X=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],q=ArrayBuffer.isView||function(e){return e&&X.indexOf(Object.prototype.toString.call(e))>-1};function K(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function J(e){return"string"!=typeof e&&(e=String(e)),e}
82
+ "undefined"!=typeof global&&global||{},z="URLSearchParams"in V,Z="Symbol"in V&&"iterator"in Symbol,X="FileReader"in V&&"Blob"in V&&function(){try{return new Blob,!0}catch(e){return!1}}(),q="FormData"in V,K="ArrayBuffer"in V;if(K)var J=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(e){return e&&J.indexOf(Object.prototype.toString.call(e))>-1};function ee(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 te(e){return"string"!=typeof e&&(e=String(e)),e}
83
83
  // Build a destructive iterator for the value list
84
- function Q(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return W&&(t[Symbol.iterator]=function(){return t}),t}function ee(e){this.map={},e instanceof ee?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function te(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ne(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function re(e){var t=new FileReader,n=ne(t);return t.readAsArrayBuffer(e),n}function ie(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function oe(){return this.bodyUsed=!1,this._initBody=function(e){var t;
84
+ function ne(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Z&&(t[Symbol.iterator]=function(){return t}),t}function re(e){this.map={},e instanceof re?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function ie(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function oe(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function se(e){var t=new FileReader,n=oe(t);return t.readAsArrayBuffer(e),n}function ae(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function le(){return this.bodyUsed=!1,this._initBody=function(e){var t;
85
85
  /*
86
86
  fetch-mock wraps the Response object in an ES6 Proxy to
87
87
  provide useful test harness features such as flush. However, on
@@ -93,29 +93,29 @@ function Q(e){var t={next:function(){var t=e.shift();return{done:void 0===t,valu
93
93
  _initBody is called.
94
94
  */
95
95
  // eslint-disable-next-line no-self-assign
96
- this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:V&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:z&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:j&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Z&&V&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ie(e.buffer),
96
+ this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:X&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:q&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:z&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():K&&X&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ae(e.buffer),
97
97
  // IE 10-11 can't handle a DataView body.
98
- this._bodyInit=new Blob([this._bodyArrayBuffer])):Z&&(ArrayBuffer.prototype.isPrototypeOf(e)||q(e))?this._bodyArrayBuffer=ie(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):j&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},V&&(this.blob=function(){var e=te(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=te(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(V)return this.blob().then(re);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=te(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=ne(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),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)},z&&(this.formData=function(){return this.text().then(ue)}),this.json=function(){return this.text().then(JSON.parse)},this}
98
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):K&&(ArrayBuffer.prototype.isPrototypeOf(e)||Q(e))?this._bodyArrayBuffer=ae(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):z&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},X&&(this.blob=function(){var e=ie(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=ie(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(X)return this.blob().then(se);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=ie(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=oe(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),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)},q&&(this.formData=function(){return this.text().then(he)}),this.json=function(){return this.text().then(JSON.parse)},this}
99
99
  // HTTP methods whose capitalization should be normalized
100
- ee.prototype.append=function(e,t){e=K(e),t=J(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ee.prototype.delete=function(e){delete this.map[K(e)]},ee.prototype.get=function(e){return e=K(e),this.has(e)?this.map[e]:null},ee.prototype.has=function(e){return this.map.hasOwnProperty(K(e))},ee.prototype.set=function(e,t){this.map[K(e)]=J(t)},ee.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ee.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),Q(e)},ee.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Q(e)},ee.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),Q(e)},W&&(ee.prototype[Symbol.iterator]=ee.prototype.entries);var se=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ae(e,t){if(!(this instanceof ae))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 ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ee(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 ee(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),se.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in $)return(new AbortController).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)){
100
+ re.prototype.append=function(e,t){e=ee(e),t=te(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},re.prototype.delete=function(e){delete this.map[ee(e)]},re.prototype.get=function(e){return e=ee(e),this.has(e)?this.map[e]:null},re.prototype.has=function(e){return this.map.hasOwnProperty(ee(e))},re.prototype.set=function(e,t){this.map[ee(e)]=te(t)},re.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},re.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),ne(e)},re.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),ne(e)},re.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),ne(e)},Z&&(re.prototype[Symbol.iterator]=re.prototype.entries);var ue=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ce(e,t){if(!(this instanceof ce))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 ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new re(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 re(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),ue.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in V)return(new AbortController).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)){
101
101
  // Search for a '_' parameter in the query string
102
102
  var o=/([?&])_=[^&]*/;if(o.test(this.url))
103
103
  // If it already exists then set the value with the current time
104
- this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function ue(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 le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ee(t.headers),this.url=t.url||"",this._initBody(e)}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})},oe.call(ae.prototype),oe.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ee(this.headers),url:this.url})},le.error=function(){var e=new le(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var he=[301,302,303,307,308];le.redirect=function(e,t){if(-1===he.indexOf(t))throw new RangeError("Invalid status code");return new le(null,{status:t,headers:{location:e}})};var ce=$.DOMException;try{new ce}catch(e){(ce=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),ce.prototype.constructor=ce}function fe(e,t){return new Promise((function(n,r){var i=new ae(e,t);if(i.signal&&i.signal.aborted)return r(new ce("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var e,t,r={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new ee,
104
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function he(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 de(e,t){if(!(this instanceof de))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new re(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},le.call(ce.prototype),le.call(de.prototype),de.prototype.clone=function(){return new de(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new re(this.headers),url:this.url})},de.error=function(){var e=new de(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var fe=[301,302,303,307,308];de.redirect=function(e,t){if(-1===fe.indexOf(t))throw new RangeError("Invalid status code");return new de(null,{status:t,headers:{location:e}})};var pe=V.DOMException;try{new pe}catch(e){(pe=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),pe.prototype.constructor=pe}function me(e,t){return new Promise((function(n,r){var i=new ce(e,t);if(i.signal&&i.signal.aborted)return r(new pe("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var e,t,r={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new re,
105
105
  // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
106
106
  // https://github.com/github/fetch/issues/748
107
107
  // https://github.com/zloirock/core-js/issues/751
108
108
  e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};
109
109
  // This check if specifically for when a user fetches a file locally from the file system
110
110
  // Only if the status is out of a normal range
111
- i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new le(s,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new ce("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&&(V?o.responseType="blob":Z&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof ee||$.Headers&&t.headers instanceof $.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(K(e)),o.setRequestHeader(e,J(t.headers[e]))})),i.headers.forEach((function(e,t){-1===a.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
111
+ i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new de(s,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new pe("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&V.location.href?V.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&&(X?o.responseType="blob":K&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof re||V.Headers&&t.headers instanceof V.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(ee(e)),o.setRequestHeader(e,te(t.headers[e]))})),i.headers.forEach((function(e,t){-1===a.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
112
112
  // DONE (success or failure)
113
- 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}fe.polyfill=!0,$.fetch||($.fetch=fe,$.Headers=ee,$.Request=ae,$.Response=le);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function de(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
113
+ 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}me.polyfill=!0,V.fetch||(V.fetch=me,V.Headers=re,V.Request=ce,V.Response=de);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ye(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
114
114
  // the whatwg-fetch polyfill installs the fetch() function
115
115
  // on the global object (window or self)
116
116
 
117
117
  // Return that as the export for use in Webpack, Browserify etc.
118
- var pe=self.fetch.bind(self),me=function(e,t){return me=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])},me(e,t)};
118
+ var ge=self.fetch.bind(self),ve=function(e,t){return ve=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])},ve(e,t)};
119
119
  /******************************************************************************
120
120
  Copyright (c) Microsoft Corporation.
121
121
 
@@ -130,7 +130,7 @@ var pe=self.fetch.bind(self),me=function(e,t){return me=Object.setPrototypeOf||{
130
130
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
131
131
  PERFORMANCE OF THIS SOFTWARE.
132
132
  ***************************************************************************** */
133
- /* global Reflect, Promise, SuppressedError, Symbol */function ye(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}me(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 ve(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 be(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 we(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}"function"==typeof SuppressedError&&SuppressedError;var Ee=we((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 Se(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Te=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 Ee?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{Oe(f)}catch(e){i=null!=i?i:[],e instanceof Ee?i=be(be([],ve(i)),ve(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 Ee(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Oe(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)&&Se(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Se(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Me=Te.EMPTY;function ke(e){return e instanceof Te||e&&"closed"in e&&_e(e.remove)&&_e(e.add)&&_e(e.unsubscribe)}function Oe(e){_e(e)?e():e.unsubscribe()}var xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},De={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=De.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,be([e,t],ve(n))):setTimeout.apply(void 0,be([e,t],ve(n)))},clearTimeout:function(e){var t=De.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Pe(){}var Be=null;function He(e){if(xe.useDeprecatedSynchronousErrorHandling){var t=!Be;if(t&&(Be={errorThrown:!1,error:null}),e(),t){var n=Be,r=n.errorThrown,i=n.error;if(Be=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,ke(t)&&t.add(n)):n.destination=Ie,n}return ye(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}(Te),Ne=Function.prototype.bind;function Fe(e,t){return Ne.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){Re(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Re(e)}else Re(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Re(e)}},e}(),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&&xe.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Fe(t.next,o),error:t.error&&Fe(t.error,o),complete:t.complete&&Fe(t.complete,o)}):i=t;return s.destination=new Le(i),s}return ye(t,e),t}(Ae);function Re(e){var t;t=e,De.setTimeout((function(){throw t}))}var Ie={closed:!0,next:Pe,error:function(e){throw e},complete:Pe},Ye="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ue(e){return e}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)&&ke(r)?e:new Ce(e,t,n);return He((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[Ye]=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?Ue: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=$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:xe.Promise)&&void 0!==t?t:Promise}var je=we((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 ye(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;He((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;He((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;He((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?Me:(this.currentObservers=null,o.push(e),new Te((function(){t.currentObservers=null,Se(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 ye(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:Me},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 ye(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={};
133
+ /* global Reflect, Promise, SuppressedError, Symbol */function be(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}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function we(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 _e(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 Ee(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 Se(e){return"function"==typeof e}function Te(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}"function"==typeof SuppressedError&&SuppressedError;var Me=Te((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 ke(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xe=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=we(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 l=this.initialTeardown;if(Se(l))try{l()}catch(e){i=e instanceof Me?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=we(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{Pe(d)}catch(e){i=null!=i?i:[],e instanceof Me?i=Ee(Ee([],_e(i)),_e(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Me(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Pe(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)&&ke(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ke(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),De=xe.EMPTY;function Oe(e){return e instanceof xe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Pe(e){Se(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},He={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=He.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],_e(n))):setTimeout.apply(void 0,Ee([e,t],_e(n)))},clearTimeout:function(e){var t=He.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ae(){}var Fe=null;function Ne(e){if(Be.useDeprecatedSynchronousErrorHandling){var t=!Fe;if(t&&(Fe={errorThrown:!1,error:null}),e(),t){var n=Fe,r=n.errorThrown,i=n.error;if(Fe=null,r)throw i}}else e()}var Ce=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Oe(t)&&t.add(n)):n.destination=$e,n}return be(t,e),t.create=function(e,t,n){return new Ye(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}(xe),Le=Function.prototype.bind;function Re(e,t){return Le.call(e,t)}var Ie=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){Ue(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ue(e)}else Ue(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ue(e)}},e}(),Ye=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;Se(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Be.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Re(t.next,o),error:t.error&&Re(t.error,o),complete:t.complete&&Re(t.complete,o)}):i=t;return s.destination=new Ie(i),s}return be(t,e),t}(Ce);function Ue(e){var t;t=e,He.setTimeout((function(){throw t}))}var $e={closed:!0,next:Ae,error:function(e){throw e},complete:Ae},Ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function je(e){return e}var We=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 Ce||function(e){return e&&Se(e.next)&&Se(e.error)&&Se(e.complete)}(r)&&Oe(r)?e:new Ye(e,t,n);return Ne((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=Ve(t))((function(t,r){var i=new Ye({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[Ge]=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?je: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=Ve(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 Ve(e){var t;return null!==(t=null!=e?e:Be.Promise)&&void 0!==t?t:Promise}var ze=Te((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ze=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 be(t,e),t.prototype.lift=function(e){var t=new Xe(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ze},t.prototype.next=function(e){var t=this;Ne((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=we(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;Ne((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;Ne((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?De:(this.currentObservers=null,o.push(e),new xe((function(){t.currentObservers=null,ke(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 We;return e.source=this,e},t.create=function(e,t){return new Xe(e,t)},t}(We),Xe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return be(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:De},t}(Ze),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},Ke=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=qe);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 be(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,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(Ze);let Je=[],Qe={};
134
134
  /**
135
135
  * @name topic
136
136
  * @description A small wrapper over the rxjs to offer the topic method on top of it
@@ -138,36 +138,36 @@ var pe=self.fetch.bind(self),me=function(e,t){return me=Object.setPrototypeOf||{
138
138
  * @param step [String] How many values to be buffed for new subscribers - default 0
139
139
  * @returns ReplaySubject
140
140
  */
141
- const Ke=[];
141
+ const et=[];
142
142
  /**
143
143
  * Create a `Writable` store that allows both updating and reading by subscription.
144
144
  * @param {*=}value initial value
145
145
  * @param {StartStopNotifier=} start
146
146
  */
147
- function Je(e,t=r){let n;const i=new Set;function o(t){if(u(e,t)&&(e=t,n)){// store is ready
148
- 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(),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(),
147
+ function tt(e,t=r){let n;const i=new Set;function o(t){if(l(e,t)&&(e=t,n)){// store is ready
148
+ const t=!et.length;for(const t of i)t[1](),et.push(t,e);if(t){for(let e=0;e<et.length;e+=2)et[e][0](et[e+1]);et.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(s,a=r){const l=[s,a];return i.add(l),1===i.size&&(n=t(o)||r),s(e),()=>{i.delete(l),0===i.size&&n&&(n(),n=null)}}}}function nt(e,t,n){const i=!Array.isArray(e),o=i?[e]:e,l=t.length<2;return u=e=>{let n=!1;const u=[];let c=0,h=r;const f=()=>{if(c)return;h();const n=t(i?u[0]:u,e);l?e(n):h=a(n)?n:r},p=o.map(((e,t)=>d(e,(e=>{u[t]=e,c&=~(1<<t),n&&f()}),(()=>{c|=1<<t}))));return n=!0,f(),function(){s(p),h(),
149
149
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
150
150
  // Callbacks might already be placed in the queue which doesn't know it should no longer
151
151
  // invoke this derived store.
152
- n=!1}},{subscribe:Je(n,l).subscribe};
152
+ n=!1}},{subscribe:tt(n,u).subscribe};
153
153
  /**
154
154
  * Creates a `Readable` store that allows reading by subscription.
155
155
  * @param value initial value
156
156
  * @param {StartStopNotifier} [start]
157
157
  */
158
- 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)}
158
+ var u}var rt=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===it}(e)}
159
159
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
160
- (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 Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function ot(e,t){try{return t in e}catch(e){return!1}}
160
+ (e)};var it="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ot(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ct((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function st(e,t,n){return e.concat(t).map((function(e){return ot(e,n)}))}function at(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 lt(e,t){try{return t in e}catch(e){return!1}}
161
161
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
162
- 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.
163
- })(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,
162
+ function ut(e,t,n){var r={};return n.isMergeableObject(e)&&at(e).forEach((function(t){r[t]=ot(e[t],n)})),at(t).forEach((function(i){(function(e,t){return lt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
163
+ })(e,i)||(lt(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return ct;var n=t.customMerge(e);return"function"==typeof n?n:ct}(i,n)(e[i],t[i],n):r[i]=ot(t[i],n))})),r}function ct(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||st,n.isMergeableObject=n.isMergeableObject||rt,
164
164
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
165
165
  // implementations can use it. The caller may not replace it.
166
- 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))}
166
+ n.cloneUnlessOtherwiseSpecified=ot;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):ut(e,t,n):ot(t,n)}ct.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return ct(e,n,t)}),{})};var ht=ct,dt=function(e,t){return dt=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])},dt(e,t)};function ft(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}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pt,mt,yt,gt=function(){return gt=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},gt.apply(this,arguments)};function vt(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))}
167
167
  /**
168
168
  * Type Guards
169
169
  */
170
- function yt(e){return e.type===ft.literal}function gt(e){return e.type===ft.argument}function vt(e){return e.type===ft.number}function bt(e){return e.type===ft.date}function _t(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)}
170
+ function bt(e){return e.type===mt.literal}function wt(e){return e.type===mt.argument}function _t(e){return e.type===mt.number}function Et(e){return e.type===mt.date}function St(e){return e.type===mt.time}function Tt(e){return e.type===mt.select}function Mt(e){return e.type===mt.plural}function kt(e){return e.type===mt.pound}function xt(e){return e.type===mt.tag}function Dt(e){return!(!e||"object"!=typeof e||e.type!==yt.number)}function Ot(e){return!(!e||"object"!=typeof e||e.type!==yt.dateTime)}
171
171
  // @generated from regex-gen.ts
172
172
  "function"==typeof SuppressedError&&SuppressedError,function(e){
173
173
  /** Argument is unclosed (e.g. `{0`) */
@@ -229,7 +229,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
229
229
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
230
230
  e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
231
231
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
232
- e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ct||(ct={})),function(e){
232
+ e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(pt||(pt={})),function(e){
233
233
  /**
234
234
  * Raw text
235
235
  */
@@ -266,7 +266,7 @@ e[e.pound=7]="pound",
266
266
  /**
267
267
  * XML-like tag
268
268
  */
269
- e[e.tag=8]="tag"}(ft||(ft={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(dt||(dt={}));var Ot=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xt=/(?:[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;
269
+ e[e.tag=8]="tag"}(mt||(mt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(yt||(yt={}));var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Bt=/(?:[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;
270
270
  /**
271
271
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
272
272
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -278,7 +278,7 @@ e[e.tag=8]="tag"}(ft||(ft={})),function(e){e[e.number=0]="number",e[e.dateTime=1
278
278
  * @public
279
279
  * @param skeleton skeleton string
280
280
  */
281
- function Dt(e){var t={};return e.replace(xt,(function(e){var n=e.length;switch(e[0]){
281
+ function Ht(e){var t={};return e.replace(Bt,(function(e){var n=e.length;switch(e[0]){
282
282
  // Era
283
283
  case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
284
284
  // Year
@@ -312,33 +312,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
312
312
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
313
313
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
314
314
  // @generated from regex-gen.ts
315
- var Pt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Bt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ht=/^(@+)?(\+|#+)?[rs]?$/g,At=/(\*)(0+)|(#+)(0+)|(0+)/g,Nt=/^(0+)$/;function Ft(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ht,(function(e,n,r){
315
+ var At=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ft=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Nt=/^(@+)?(\+|#+)?[rs]?$/g,Ct=/(\*)(0+)|(#+)(0+)|(0+)/g,Lt=/^(0+)$/;function Rt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Nt,(function(e,n,r){
316
316
  // @@@ case
317
- 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 Lt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ct(e){
317
+ 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 It(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 Yt(e){
318
318
  // Engineering
319
- 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=Lt(e);return t||{}}
319
+ 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)),!Lt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ut(e){var t=It(e);return t||{}}
320
320
  /**
321
321
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
322
- */function It(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;
322
+ */function $t(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=gt(gt(gt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return gt(gt({},e),Ut(t))}),{}));continue;case"engineering":t=gt(gt(gt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return gt(gt({},e),Ut(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
323
323
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
324
324
  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;
325
325
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
326
- case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(At,(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}
326
+ case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ct,(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}
327
327
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
328
- if(Nt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Bt.test(i.stem)){
328
+ if(Lt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Ft.test(i.stem)){
329
329
  // Precision
330
330
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
331
331
  // precision-integer case
332
- 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){
332
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ft,(function(e,n,r,i,o,s){
333
333
  // .000* case (before ICU67 it was .000+)
334
334
  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];
335
335
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
336
- "w"===o?t=pt(pt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=pt(pt({},t),Ft(o)))}
336
+ "w"===o?t=gt(gt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=gt(gt({},t),Rt(o)))}
337
337
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
338
- else if(Ht.test(i.stem))t=pt(pt({},t),Ft(i.stem));else{var s=Lt(i.stem);s&&(t=pt(pt({},t),s));var a=Ct(i.stem);a&&(t=pt(pt({},t),a))}}return t}
338
+ else if(Nt.test(i.stem))t=gt(gt({},t),Rt(i.stem));else{var s=It(i.stem);s&&(t=gt(gt({},t),s));var a=Yt(i.stem);a&&(t=gt(gt({},t),a))}}return t}
339
339
  // @generated from time-data-gen.ts
340
340
  // prettier-ignore
341
- 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"]};
341
+ var Gt,jt={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"]};
342
342
  /**
343
343
  * Returns the best matching date time pattern if a date time skeleton
344
344
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -351,7 +351,7 @@ var Yt,Ut={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
351
351
  * of the given `locale` to the corresponding time pattern.
352
352
  * @param locale
353
353
  */
354
- function Gt(e){var t=e.hourCycle;if(void 0===t&&
354
+ function Wt(e){var t=e.hourCycle;if(void 0===t&&
355
355
  // @ts-ignore hourCycle(s) is not identified yet
356
356
  e.hourCycles&&
357
357
  // @ts-ignore
@@ -359,37 +359,37 @@ e.hourCycles.length&&(
359
359
  // @ts-ignore
360
360
  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")}
361
361
  // TODO: Once hourCycle is fully supported remove the following with data generation
362
- 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(Ot.source,"*")),jt=new RegExp("".concat(Ot.source,"*$"));function Wt(e,t){return{start:e,end:t}}
362
+ var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(jt[n||""]||jt[r||""]||jt["".concat(r,"-001")]||jt["001"])[0]}var Vt=new RegExp("^".concat(Pt.source,"*")),zt=new RegExp("".concat(Pt.source,"*$"));function Zt(e,t){return{start:e,end:t}}
363
363
  // #region Ponyfills
364
364
  // Consolidate these variables up top for easier toggling during debugging
365
- 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{
365
+ var Xt=!!String.prototype.startsWith,qt=!!String.fromCodePoint,Kt=!!Object.fromEntries,Jt=!!String.prototype.codePointAt,Qt=!!String.prototype.trimStart,en=!!String.prototype.trimEnd,tn=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},nn=!0;try{
366
366
  /**
367
367
  * legacy Edge or Xbox One browser
368
368
  * Unicode flag support: supported
369
369
  * Pattern_Syntax support: not supported
370
370
  * See https://github.com/formatjs/formatjs/issues/2822
371
371
  */
372
- 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
372
+ nn="a"===(null===(Gt=hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Gt?void 0:Gt[0])}catch(e){nn=!1}var rn,on=Xt?// Native
373
373
  function(e,t,n){return e.startsWith(t,n)}:// For IE11
374
- function(e,t,n){return e.slice(n,n+t.length)===t},nn=zt?String.fromCodePoint:// IE11
375
- 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=
374
+ function(e,t,n){return e.slice(n,n+t.length)===t},sn=qt?String.fromCodePoint:// IE11
375
+ 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},an=
376
376
  // native
377
- Zt?Object.fromEntries:// Ponyfill
378
- 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
377
+ Kt?Object.fromEntries:// Ponyfill
378
+ 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},ln=Jt?// Native
379
379
  function(e,t){return e.codePointAt(t)}:// IE 11
380
- 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
380
+ 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}},un=Qt?// Native
381
381
  function(e){return e.trimStart()}:// Ponyfill
382
- function(e){return e.replace($t,"")},an=Kt?// Native
382
+ function(e){return e.replace(Vt,"")},cn=en?// Native
383
383
  function(e){return e.trimEnd()}:// Ponyfill
384
- function(e){return e.replace(jt,"")};
384
+ function(e){return e.replace(zt,"")};
385
385
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
386
- function un(e,t){return new RegExp(e,t)}
386
+ function hn(e,t){return new RegExp(e,t)}
387
387
  // #endregion
388
- if(Qt){
388
+ if(nn){
389
389
  // Native
390
- 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
390
+ var dn=hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rn=function(e,t){var n;return dn.lastIndex=t,null!==(n=dn.exec(e)[1])&&void 0!==n?n:""}}else
391
391
  // IE11
392
- en=function(e,t){for(var n=[];;){var r=on(e,t);if(void 0===r||fn(r)||dn(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}},
392
+ rn=function(e,t){for(var n=[];;){var r=ln(e,t);if(void 0===r||mn(r)||yn(r))break;n.push(r),t+=r>=65536?2:1}return sn.apply(void 0,n)};var fn=/** @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(pt.UNMATCHED_CLOSING_TAG,Zt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&pn(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:mt.pound,location:Zt(s,this.clonePosition())})}}}return{val:r,err:null}},
393
393
  /**
394
394
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
395
395
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -411,14 +411,14 @@ en=function(e,t){for(var n=[];;){var r=on(e,t);if(void 0===r||fn(r)||dn(r))break
411
411
  e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
412
412
  var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
413
413
  // Self closing tag
414
- 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();
414
+ return{val:{type:mt.literal,value:"<".concat(r,"/>"),location:Zt(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();
415
415
  // Expecting a close tag
416
- 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()))},
416
+ if(this.bumpIf("</")){if(this.isEOF()||!pn(this.char()))return this.error(pt.INVALID_TAG,Zt(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(pt.UNMATCHED_CLOSING_TAG,Zt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:mt.tag,value:r,children:o,location:Zt(n,this.clonePosition())},err:null}:this.error(pt.INVALID_TAG,Zt(s,this.clonePosition())))}return this.error(pt.UNCLOSED_TAG,Zt(n,this.clonePosition()))}return this.error(pt.INVALID_TAG,Zt(n,this.clonePosition()))},
417
417
  /**
418
418
  * This method assumes that the caller has peeked ahead for the first tag character.
419
419
  */
420
420
  e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
421
- for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||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);)this.bump();return this.message.slice(t,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;
421
+ for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||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);)this.bump();return this.message.slice(t,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=Zt(n,this.clonePosition());return{val:{type:mt.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(pn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
422
422
  /** See `parseTag` function docs. */},
423
423
  /**
424
424
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
@@ -440,67 +440,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
440
440
  // Optional closing apostrophe.
441
441
  this.bump();break}t.push(39),
442
442
  // Bump one more time because we need to skip 2 characters.
443
- 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(),// `{`
444
- 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()));
443
+ this.bump()}else t.push(n);this.bump()}return sn.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(),sn(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
444
+ this.bumpSpace(),this.isEOF())return this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(pt.EMPTY_ARGUMENT,Zt(n,this.clonePosition()));
445
445
  // argument name
446
- 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()){
446
+ var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(pt.MALFORMED_ARGUMENT,Zt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(n,this.clonePosition()));switch(this.char()){
447
447
  // Simple argument: `{name}`
448
448
  case 125/* `}` */:// `}`
449
- return this.bump(),{val:{type:ft.argument,
449
+ return this.bump(),{val:{type:mt.argument,
450
450
  // value does not include the opening and closing braces.
451
- value:r,location:Wt(n,this.clonePosition())},err:null};
451
+ value:r,location:Zt(n,this.clonePosition())},err:null};
452
452
  // Argument with options: `{name, format, ...}`
453
453
  case 44/* `,` */:return this.bump(),// `,`
454
- 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()))}},
454
+ this.bumpSpace(),this.isEOF()?this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(pt.MALFORMED_ARGUMENT,Zt(n,this.clonePosition()))}},
455
455
  /**
456
456
  * Advance the parser until the end of the identifier, if it is currently on
457
457
  * an identifier character. Return an empty string otherwise.
458
458
  */
459
- 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();
459
+ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=rn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Zt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
460
460
  // Parse this range:
461
461
  // {name, type, style}
462
462
  // ^---^
463
463
  switch(s){case"":
464
464
  // Expecting a style string number, date, time, plural, selectordinal, or select.
465
- return this.error(ct.EXPECT_ARGUMENT_TYPE,Wt(o,a));case"number":case"date":case"time":
465
+ return this.error(pt.EXPECT_ARGUMENT_TYPE,Zt(o,a));case"number":case"date":case"time":
466
466
  // Parse this range:
467
467
  // {name, number, style}
468
468
  // ^-------^
469
- this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(d=an(g.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());
469
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(f=cn(g.val)).length)return this.error(pt.EXPECT_ARGUMENT_STYLE,Zt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Zt(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var c=Zt(r,this.clonePosition());
470
470
  // Extract style or skeleton
471
- if(u&&tn(null==u?void 0:u.style,"::",0)){
471
+ if(l&&on(null==l?void 0:l.style,"::",0)){
472
472
  // Skeleton starts with `::`.
473
- var c=sn(u.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(c,u.styleLocation)).err?g:{val:{type:ft.number,value:n,location:h,style:g.val},err:null};if(0===c.length)return this.error(ct.EXPECT_DATE_TIME_SKELETON,h);var f=c;
473
+ var h=un(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:mt.number,value:n,location:c,style:g.val},err:null};if(0===h.length)return this.error(pt.EXPECT_DATE_TIME_SKELETON,c);var d=h;
474
474
  // Get "best match" pattern only if locale is passed, if not, let it
475
475
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
476
476
  // for unsupported patterns.
477
- 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}}
477
+ this.locale&&(d=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),l=Wt(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var f={type:yt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ht(d):{}};return{val:{type:"date"===s?mt.date:mt.time,value:n,location:c,style:f},err:null}}
478
478
  // Regular style or no style.
479
- 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":
479
+ return{val:{type:"number"===s?mt.number:"date"===s?mt.date:mt.time,value:n,location:c,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
480
480
  // Parse this range:
481
481
  // {name, plural, options}
482
482
  // ^---------^
483
- var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,Wt(p,pt({},p)));this.bumpSpace();
483
+ var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(pt.EXPECT_SELECT_ARGUMENT_OPTIONS,Zt(p,gt({},p)));this.bumpSpace();
484
484
  // Parse offset:
485
485
  // {name, plural, offset:1, options}
486
486
  // ^-----^
487
487
  // or the first option:
488
488
  // {name, plural, one {...} other {...}}
489
489
  // ^--^
490
- var m=this.parseIdentifierIfPossible(),y=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 g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
490
+ var m=this.parseIdentifierIfPossible(),y=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Zt(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
491
491
  // Parse another identifier for option parsing
492
- this.bumpSpace(),m=this.parseIdentifierIfPossible(),y=g.val}var v,b=this.tryParsePluralOrSelectOptions(e,s,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var _=Wt(r,this.clonePosition());return"select"===s?{val:{type:ft.select,value:n,options:rn(b.val),location:_},err:null}:{val:{type:ft.plural,value:n,options:rn(b.val),offset:y,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(ct.INVALID_ARGUMENT_TYPE,Wt(o,a))}},e.prototype.tryParseArgumentClose=function(e){
492
+ this.bumpSpace(),m=this.parseIdentifierIfPossible(),y=g.val}var v,b=this.tryParsePluralOrSelectOptions(e,s,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=Zt(r,this.clonePosition());return"select"===s?{val:{type:mt.select,value:n,options:an(b.val),location:w},err:null}:{val:{type:mt.plural,value:n,options:an(b.val),offset:y,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(pt.INVALID_ARGUMENT_TYPE,Zt(o,a))}},e.prototype.tryParseArgumentClose=function(e){
493
493
  // Parse: {value, number, ::currency/GBP }
494
- return this.isEOF()||125/* `}` */!==this.char()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
494
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
495
495
  /**
496
496
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
497
497
  */
498
498
  e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
499
499
  // Treat apostrophe as quoting but include it in the style part.
500
500
  // Find the end of the quoted literal text.
501
- 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");
501
+ this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Zt(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");
502
502
  // Parse the skeleton
503
- for(var t=[],n=0,r=e.split(Pt).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,u=s;a<u.length;a++)if(0===u[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(ct.INVALID_NUMBER_SKELETON,t)}return{val:{type:dt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?It(n):{}},err:null}},
503
+ for(var t=[],n=0,r=e.split(At).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:yt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?$t(n):{}},err:null}},
504
504
  /**
505
505
  * @param nesting_level The current nesting level of messages.
506
506
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -515,26 +515,26 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
515
515
  // Parse:
516
516
  // one {one apple}
517
517
  // ^--^
518
- 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;
518
+ for(var i,o=!1,s=[],a=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
519
519
  // Try parse `={number}` selector
520
- 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())}
520
+ var h=this.tryParseDecimalInteger(pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Zt(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
521
521
  // Duplicate selector clauses
522
- if(a.has(u))return this.error("select"===t?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),
522
+ if(a.has(l))return this.error("select"===t?pt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:pt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),
523
523
  // Parse:
524
524
  // one {one apple}
525
525
  // ^----------^
526
- 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())}]),
526
+ this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?pt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:pt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Zt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var p=this.tryParseArgumentClose(d);if(p.err)return p;s.push([l,{value:f.val,location:Zt(d,this.clonePosition())}]),
527
527
  // Keep track of the existing selectors
528
- a.add(u),
528
+ a.add(l),
529
529
  // Prep next selector clause.
530
- 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(){
530
+ this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?pt.EXPECT_SELECT_ARGUMENT_SELECTOR:pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Zt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(pt.MISSING_OTHER_CLAUSE,Zt(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=Zt(r,this.clonePosition());return i?tn(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(){
531
531
  // This is much faster than `Object.assign` or spread.
532
532
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
533
533
  /**
534
534
  * Return the code point at the current position of the parser.
535
535
  * Throws if the index is out of bound.
536
536
  */
537
- 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}}},
537
+ e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ln(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}}},
538
538
  /** Bump the parser to the next UTF-16 code unit. */
539
539
  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,
540
540
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
@@ -545,7 +545,7 @@ this.position.offset+=e<65536?1:2)}},
545
545
  * following the prefix and return true. Otherwise, don't bump the parser
546
546
  * and return false.
547
547
  */
548
- 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},
548
+ e.prototype.bumpIf=function(e){if(on(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
549
549
  /**
550
550
  * Bump the parser until the pattern character is found and return `true`.
551
551
  * Otherwise bump to the end of the file and return `false`.
@@ -557,7 +557,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
557
557
  */
558
558
  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}},
559
559
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
560
- e.prototype.bumpSpace=function(){for(;!this.isEOF()&&fn(this.char());)this.bump()},
560
+ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&mn(this.char());)this.bump()},
561
561
  /**
562
562
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
563
563
  * If the input has been exhausted, then this returns null.
@@ -567,150 +567,159 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
567
567
  * This check if codepoint is alphabet (lower & uppercase)
568
568
  * @param codepoint
569
569
  * @returns
570
- */function cn(e){return e>=97&&e<=122||e>=65&&e<=90}
570
+ */function pn(e){return e>=97&&e<=122||e>=65&&e<=90}
571
571
  /**
572
572
  * Code point equivalent of regex `\p{White_Space}`.
573
573
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
574
574
  */
575
- function fn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
575
+ function mn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
576
576
  /**
577
577
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
578
578
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
579
- */function dn(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 pn(e){e.forEach((function(e){if(delete e.location,wt(e)||Et(e))for(var t in e.options)delete e.options[t].location,pn(e.options[t].value);else vt(e)&&Mt(e.style)||(bt(e)||_t(e))&&kt(e.style)?delete e.style.location:Tt(e)&&pn(e.children)}))}function mn(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]);
579
+ */function yn(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 gn(e){e.forEach((function(e){if(delete e.location,Tt(e)||Mt(e))for(var t in e.options)delete e.options[t].location,gn(e.options[t].value);else _t(e)&&Dt(e.style)||(Et(e)||St(e))&&Ot(e.style)?delete e.style.location:xt(e)&&gn(e.children)}))}function vn(e,t){void 0===t&&(t={}),t=gt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new fn(e,t).parse();if(n.err){var r=SyntaxError(pt[n.err.kind]);
580
580
  // @ts-expect-error Assign to error object
581
581
  throw r.location=n.err.location,
582
582
  // @ts-expect-error Assign to error object
583
- r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||pn(n.val),n.val}
583
+ r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||gn(n.val),n.val}
584
584
 
585
585
  // Main
586
586
 
587
- function yn(e,t){var n=t&&t.cache?t.cache:Tn,r=t&&t.serializer?t.serializer:wn;return(t&&t.strategy?t.strategy:_n)(e,{cache:n,serializer:r})}
587
+ function bn(e,t){var n=t&&t.cache?t.cache:xn,r=t&&t.serializer?t.serializer:Tn;return(t&&t.strategy?t.strategy:Sn)(e,{cache:n,serializer:r})}
588
588
 
589
589
  // Strategy
590
590
 
591
- function gn(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 vn(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 _n(e,t){return bn(e,this,1===e.length?gn:vn,t.cache.create(),t.serializer)}
591
+ function wn(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 En(e,t,n,r,i){return n.bind(t,e,r,i)}function Sn(e,t){return En(e,this,1===e.length?wn:_n,t.cache.create(),t.serializer)}
592
592
  // Serializer
593
- var wn=function(){return JSON.stringify(arguments)};
593
+ var Tn=function(){return JSON.stringify(arguments)};
594
594
 
595
595
  // Cache
596
596
 
597
- function En(){this.cache=Object.create(null)}En.prototype.get=function(e){return this.cache[e]},En.prototype.set=function(e,t){this.cache[e]=t};var Sn,Tn={create:function(){
597
+ function Mn(){this.cache=Object.create(null)}Mn.prototype.get=function(e){return this.cache[e]},Mn.prototype.set=function(e,t){this.cache[e]=t};var kn,xn={create:function(){
598
598
  // @ts-ignore
599
- return new En}},Mn={variadic:function(e,t){return bn(e,this,vn,t.cache.create(),t.serializer)},monadic:function(e,t){return bn(e,this,gn,t.cache.create(),t.serializer)}};!function(e){
599
+ return new Mn}},Dn={variadic:function(e,t){return En(e,this,_n,t.cache.create(),t.serializer)},monadic:function(e,t){return En(e,this,wn,t.cache.create(),t.serializer)}};!function(e){
600
600
  // When we have a placeholder but no value to format
601
601
  e.MISSING_VALUE="MISSING_VALUE",
602
602
  // When value supplied is invalid
603
603
  e.INVALID_VALUE="INVALID_VALUE",
604
604
  // When we need specific Intl API but it's not available
605
- e.MISSING_INTL_API="MISSING_INTL_API"}(Sn||(Sn={}));var kn,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),xn=/** @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('", "'),'"'),Sn.INVALID_VALUE,i)||this}return ht(t,e),t}(On),Dn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Sn.INVALID_VALUE,r)||this}return ht(t,e),t}(On),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,'"'),Sn.MISSING_VALUE,n)||this}return ht(t,e),t}(On);function Bn(e){return"function"==typeof e}
605
+ e.MISSING_INTL_API="MISSING_INTL_API"}(kn||(kn={}));var On,Pn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ft(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Bn=/** @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('", "'),'"'),kn.INVALID_VALUE,i)||this}return ft(t,e),t}(Pn),Hn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),kn.INVALID_VALUE,r)||this}return ft(t,e),t}(Pn),An=/** @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,'"'),kn.MISSING_VALUE,n)||this}return ft(t,e),t}(Pn);function Fn(e){return"function"==typeof e}
606
606
  // TODO(skeleton): add skeleton support
607
- function Hn(e,t,n,r,i,o,
607
+ function Nn(e,t,n,r,i,o,
608
608
  // For debugging
609
609
  s){
610
610
  // Hot path for straight simple msg translations
611
- if(1===e.length&&yt(e[0]))return[{type:kn.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];
611
+ if(1===e.length&&bt(e[0]))return[{type:On.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];
612
612
  // Exit early for string parts.
613
- if(yt(h))a.push({type:kn.literal,value:h.value});else
613
+ if(bt(c))a.push({type:On.literal,value:c.value});else
614
614
  // TODO: should this part be literal type?
615
615
  // Replace `#` in plural rules with the actual numeric value.
616
- if(St(h))"number"==typeof o&&a.push({type:kn.literal,value:n.getNumberFormat(t).format(o)});else{var c=h.value;
616
+ if(kt(c))"number"==typeof o&&a.push({type:On.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;
617
617
  // Enforce that all required values are provided by the caller.
618
- if(!i||!(c in i))throw new Pn(c,s);var f=i[c];if(gt(h))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?kn.literal:kn.object,value:f});else
618
+ if(!i||!(h in i))throw new An(h,s);var d=i[h];if(wt(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?On.literal:On.object,value:d});else
619
619
  // Recursively format plural and select parts' option — which can be a
620
620
  // nested pattern structure. The choosing of the option to use is
621
621
  // abstracted-by and delegated-to the part helper object.
622
- if(bt(h)){var d="string"==typeof h.style?r.date[h.style]:kt(h.style)?h.style.parsedOptions:void 0;a.push({type:kn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(_t(h)){d="string"==typeof h.style?r.time[h.style]:kt(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:kn.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:kn.literal,value:n.getNumberFormat(t,d).format(f)})}else{if(Tt(h)){var p=h.children,m=h.value,y=i[m];if(!Bn(y))throw new Dn(m,"function",s);var g=y(Hn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(e){return{type:"string"==typeof e?kn.literal:kn.object,value:e}})))}if(wt(h)){if(!(v=h.options[f]||h.options.other))throw new xn(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',Sn.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));v=h.options[b]||h.options.other}if(!v)throw new xn(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===kn.literal&&t.type===kn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
622
+ if(Et(c)){var f="string"==typeof c.style?r.date[c.style]:Ot(c.style)?c.style.parsedOptions:void 0;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(St(c)){f="string"==typeof c.style?r.time[c.style]:Ot(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(_t(c)){(f="string"==typeof c.style?r.number[c.style]:Dt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:On.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(xt(c)){var p=c.children,m=c.value,y=i[m];if(!Fn(y))throw new Hn(m,"function",s);var g=y(Nn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(e){return{type:"string"==typeof e?On.literal:On.object,value:e}})))}if(Tt(c)){if(!(v=c.options[d]||c.options.other))throw new Bn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nn(v.value,t,n,r,i))}else if(Mt(c)){var v;if(!(v=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Pn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));v=c.options[b]||c.options.other}if(!v)throw new Bn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nn(v.value,t,n,r,i,d-(c.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===On.literal&&t.type===On.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
623
623
  /*
624
624
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
625
625
  Copyrights licensed under the New BSD License.
626
626
  See the accompanying LICENSE file for terms.
627
627
  */
628
628
  // -- MessageFormat --------------------------------------------------------
629
- function An(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 Nn(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"}(kn||(kn={}));var Fn=/** @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);
629
+ function Cn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?gt(gt(gt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=gt(gt({},i[t]),o[t]||{}),e}),{})):i),n}),gt({},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"}(On||(On={}));var Rn=/** @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);
630
630
  // Hot path for straight simple msg translations
631
- if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===kn.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},
631
+ if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===On.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 Nn(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},
632
632
  // Defined first because it's used to build the format pattern.
633
633
  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`");
634
634
  // Parse string messages into an AST.
635
635
  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.");
636
636
  // Creates a new object with the specified `formats` merged with the default
637
637
  // formats.
638
- this.formats=An(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:Nn(o.number),strategy:Mn.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:Nn(o.dateTime),strategy:Mn.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:Nn(o.pluralRules),strategy:Mn.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=mn,
638
+ this.formats=Cn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:bn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,vt([void 0],t,!1)))}),{cache:Ln(o.number),strategy:Dn.variadic}),getDateTimeFormat:bn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,vt([void 0],t,!1)))}),{cache:Ln(o.dateTime),strategy:Dn.variadic}),getPluralRules:bn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,vt([void 0],t,!1)))}),{cache:Ln(o.pluralRules),strategy:Dn.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=vn,
639
639
  // Default format options used as the prototype of the `formats` provided to the
640
640
  // constructor. These are used when constructing the internal Intl.NumberFormat
641
641
  // and Intl.DateTimeFormat instances.
642
- 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}();const Ln={},Cn=(e,t,n)=>n?(t in Ln||(Ln[t]={}),e in Ln[t]||(Ln[t][e]=n),n):n,Rn=(e,t)=>{if(null==t)return;if(t in Ln&&e in Ln[t])return Ln[t][e];const n=lr(t);for(let r=0;r<n.length;r++){const i=Gn(n[r],e);if(i)return Cn(e,t,i)}};let In;const Yn=Je({});function Un(e){return e in In}function Gn(e,t){if(!Un(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 $n(e,...t){delete Ln[e],Yn.update((n=>(n[e]=ut.all([n[e]||{},...t]),n)))}Qe([Yn],(([e])=>Object.keys(e))),Yn.subscribe((e=>In=e));const jn={};function Wn(e){return jn[e]}function Vn(e){return null!=e&&lr(e).some((e=>{var t;return null==(t=Wn(e))?void 0:t.size}))}function zn(e,t){const n=Promise.all(t.map((t=>(function(e,t){jn[e].delete(t),0===jn[e].size&&delete jn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>$n(e,...t)))}const Zn={};function Xn(e){if(!Vn(e))return e in Zn?Zn[e]:Promise.resolve();const t=function(e){return lr(e).map((e=>{const t=Wn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Zn[e]=Promise.all(t.map((([e,t])=>zn(e,t)))).then((()=>{if(Vn(e))return Xn(e);delete Zn[e]})),Zn[e]}const qn={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 Kn(){return qn}const Jn=Je(!1);var Qn=Object.defineProperty,er=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,or=(e,t,n)=>t in e?Qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let sr;const ar=Je(null);function ur(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function lr(e,t=Kn().fallbackLocale){const n=ur(e);return t?[...new Set([...n,...ur(t)])]:n}function hr(){return null!=sr?sr:void 0}ar.subscribe((e=>{sr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const cr=(fr=((e,t)=>{for(var n in t||(t={}))rr.call(t,n)&&or(e,n,t[n]);if(nr)for(var n of nr(t))ir.call(t,n)&&or(e,n,t[n]);return e})({},ar),er(fr,tr({set:e=>{if(e&&function(e){if(null==e)return;const t=lr(e);for(let e=0;e<t.length;e++){const n=t[e];if(Un(n))return n}}(e)&&Vn(e)){const{loadingDelay:t}=Kn();let n;return"undefined"!=typeof window&&null!=hr()&&t?n=window.setTimeout((()=>Jn.set(!0)),t):Jn.set(!0),Xn(e).then((()=>{ar.set(e)})).finally((()=>{clearTimeout(n),Jn.set(!1)}))}return ar.set(e)}})));var fr;const dr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var pr=Object.defineProperty,mr=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,vr=(e,t,n)=>t in e?pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,br=(e,t)=>{for(var n in t||(t={}))yr.call(t,n)&&vr(e,n,t[n]);if(mr)for(var n of mr(t))gr.call(t,n)&&vr(e,n,t[n]);return e},_r=(e,t)=>{var n={};for(var r in e)yr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mr)for(var r of mr(e))t.indexOf(r)<0&&gr.call(e,r)&&(n[r]=e[r]);return n};const wr=(e,t)=>{const{formats:n}=Kn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Er=dr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=wr("number",r)),new Intl.NumberFormat(n,i)})),Sr=dr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=wr("date",r):0===Object.keys(i).length&&(i=wr("date","short")),new Intl.DateTimeFormat(n,i)})),Tr=dr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=wr("time",r):0===Object.keys(i).length&&(i=wr("time","short")),new Intl.DateTimeFormat(n,i)})),Mr=dr((
642
+ 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}();const In={},Yn=(e,t,n)=>n?(t in In||(In[t]={}),e in In[t]||(In[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in In&&e in In[t])return In[t][e];const n=dr(t);for(let r=0;r<n.length;r++){const i=Wn(n[r],e);if(i)return Yn(e,t,i)}};let $n;const Gn=tt({});function jn(e){return e in $n}function Wn(e,t){if(!jn(e))return null;const n=function(e){return $n[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 Vn(e,...t){delete In[e],Gn.update((n=>(n[e]=ht.all([n[e]||{},...t]),n)))}nt([Gn],(([e])=>Object.keys(e))),Gn.subscribe((e=>$n=e));const zn={};function Zn(e){return zn[e]}function Xn(e){return null!=e&&dr(e).some((e=>{var t;return null==(t=Zn(e))?void 0:t.size}))}function qn(e,t){const n=Promise.all(t.map((t=>(function(e,t){zn[e].delete(t),0===zn[e].size&&delete zn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Vn(e,...t)))}const Kn={};function Jn(e){if(!Xn(e))return e in Kn?Kn[e]:Promise.resolve();const t=function(e){return dr(e).map((e=>{const t=Zn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Kn[e]=Promise.all(t.map((([e,t])=>qn(e,t)))).then((()=>{if(Xn(e))return Jn(e);delete Kn[e]})),Kn[e]}const Qn={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 er(){return Qn}const tr=tt(!1);var nr=Object.defineProperty,rr=Object.defineProperties,ir=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,lr=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ur;const cr=tt(null);function hr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function dr(e,t=er().fallbackLocale){const n=hr(e);return t?[...new Set([...n,...hr(t)])]:n}function fr(){return null!=ur?ur:void 0}cr.subscribe((e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const pr=(mr=((e,t)=>{for(var n in t||(t={}))sr.call(t,n)&&lr(e,n,t[n]);if(or)for(var n of or(t))ar.call(t,n)&&lr(e,n,t[n]);return e})({},cr),rr(mr,ir({set:e=>{if(e&&function(e){if(null==e)return;const t=dr(e);for(let e=0;e<t.length;e++){const n=t[e];if(jn(n))return n}}(e)&&Xn(e)){const{loadingDelay:t}=er();let n;return"undefined"!=typeof window&&null!=fr()&&t?n=window.setTimeout((()=>tr.set(!0)),t):tr.set(!0),Jn(e).then((()=>{cr.set(e)})).finally((()=>{clearTimeout(n),tr.set(!1)}))}return cr.set(e)}})));var mr;const yr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var gr=Object.defineProperty,vr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,_r=(e,t,n)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))br.call(t,n)&&_r(e,n,t[n]);if(vr)for(var n of vr(t))wr.call(t,n)&&_r(e,n,t[n]);return e},Sr=(e,t)=>{var n={};for(var r in e)br.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&vr)for(var r of vr(e))t.indexOf(r)<0&&wr.call(e,r)&&(n[r]=e[r]);return n};const Tr=(e,t)=>{const{formats:n}=er();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Mr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Tr("number",r)),new Intl.NumberFormat(n,i)})),kr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Tr("date",r):0===Object.keys(i).length&&(i=Tr("date","short")),new Intl.DateTimeFormat(n,i)})),xr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Tr("time",r):0===Object.keys(i).length&&(i=Tr("time","short")),new Intl.DateTimeFormat(n,i)})),Dr=yr((
643
643
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
644
- (e,t=hr())=>new Fn(e,t,Kn().formats,{ignoreTag:Kn().ignoreTag}))),kr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:u=hr(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Rn(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=Kn()).handleMissingMessage)?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return h;let c=h;try{c=Mr(h,u).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},Or=(e,t)=>((e={})=>{var t=e,{locale:n=hr()}=t,r=_r(t,["locale"]);return Tr(br({locale:n},r))})(t).format(e),xr=(e,t)=>((e={})=>{var t=e,{locale:n=hr()}=t,r=_r(t,["locale"]);return Sr(br({locale:n},r))})(t).format(e),Dr=(e,t)=>((e={})=>{var t=e,{locale:n=hr()}=t,r=_r(t,["locale"]);return Er(br({locale:n},r))})(t).format(e),Pr=(e,t=hr())=>Rn(e,t),Br=Qe([cr,Yn],(()=>kr));Qe([cr],(()=>Or)),Qe([cr],(()=>xr)),Qe([cr],(()=>Dr)),Qe([cr,Yn],(()=>Pr)),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]}};
644
+ (e,t=fr())=>new Rn(e,t,er().formats,{ignoreTag:er().ignoreTag}))),Or=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=fr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Un(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=er()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!a)return c;let h=c;try{h=Dr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Pr=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return xr(Er({locale:n},r))})(t).format(e),Br=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return kr(Er({locale:n},r))})(t).format(e),Hr=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return Mr(Er({locale:n},r))})(t).format(e),Ar=(e,t=fr())=>Un(e,t),Fr=nt([pr,Gn],(()=>Or));nt([pr],(()=>Pr)),nt([pr],(()=>Br)),nt([pr],(()=>Hr)),nt([pr,Gn],(()=>Ar)),window.emWidgets={topic:(e,t=0)=>{if(-1==Je.indexOf(e)){let n=new Ke(t);Qe[e]=n,Je.push(e)}return Qe[e]}};
645
645
  /**
646
646
  * @name isMobile
647
647
  * @description A method that returns if the browser used to access the app is from a mobile device or not
648
648
  * @param {String} userAgent window.navigator.userAgent
649
649
  * @returns {Boolean} true or false
650
650
  */
651
- const Hr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
651
+ const Nr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
652
652
  /**
653
653
  * @name getDevice
654
654
  * @description A method that returns the type of the device
655
655
  * @param {String} userAgent window.navigator.userAgent
656
656
  * @returns {String} Android/iPhone/iPad/PC
657
- */function Ar(e,t){$n(e,t)}const Nr={en:{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":{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"},de:{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:{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:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"},es:{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:{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:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ro:{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:{signIn:"Prijava",register:"registracija",deposit:"uplata",playForFun:"demo igra",playNow:"kreni",breakButton:"pritisni tipku 3 sekunde kako bi zaključali račun 24 sata"},hu:{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:{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:{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:{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:{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"}};
658
- /* eslint-disable */function Fr(){"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){
657
+ */function Cr(e,t){Vn(e,t)}const Lr={en:{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":{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"},de:{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:{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:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"},es:{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:{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:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ro:{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:{signIn:"Prijava",register:"registracija",deposit:"uplata",playForFun:"demo igra",playNow:"kreni",breakButton:"pritisni tipku 3 sekunde kako bi zaključali račun 24 sata"},hu:{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:{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:{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:{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:{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"}};function Rr(e,t){Vn(e,t)}const Ir={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."}};
658
+ /* ../player-deposit/src/PlayerDeposit.svelte generated by Svelte v3.59.2 */
659
+ // (145:2) {:else}
660
+ function Yr(e){let t,n,r;return{c(){t=g("div"),n=g("iframe"),h(n.src,r=/*iframeUrl*/e[2])||E(n,"src",r),E(n,"title","Deposit Iframe"),E(t,"class","DepositIframeWrapper")},m(e,r){m(e,t,r),p(t,n)},p(e,t){/*iframeUrl*/4&t&&!h(n.src,r=/*iframeUrl*/e[2])&&E(n,"src",r)},d(e){e&&y(t)}}}
661
+ // (143:2) {#if isLoading}
662
+ function Ur(e){let t,n,r=/*$_*/e[3]("loading")+"";return{c(){t=g("p"),n=b(r)},m(e,r){m(e,t,r),p(t,n)},p(e,t){/*$_*/8&t&&r!==(r=/*$_*/e[3]("loading")+"")&&T(n,r)},d(e){e&&y(t)}}}function $r(e){let t,n,i,o,s,a=/*$_*/e[3]("title")+"",l=/*isMobile*/e[4]&&function(e){let t,n,r,i,o,s,a,l,u,c,h,d,f,S=/*$_*/e[3]("title")+"";return{c(){t=g("div"),n=v("svg"),r=v("defs"),i=v("style"),o=b(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=v("g"),a=v("g"),l=v("path"),u=w(),c=g("h2"),h=b(S),E(l,"class","aaa"),E(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),E(l,"transform","translate(15 15) rotate(180)"),E(a,"transform","translate(20 158)"),E(s,"transform","translate(-20 -158)"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"width","15"),E(n,"height","15"),E(n,"viewBox","0 0 15 15"),E(c,"class","DepositTitleMobile"),E(t,"class","MenuReturnButton")},m(y,g){m(y,t,g),p(t,n),p(n,r),p(r,i),p(i,o),p(n,s),p(s,a),p(a,l),p(t,u),p(t,c),p(c,h),d||(f=_(t,"click",/*click_handler*/e[16]),d=!0)},p(e,t){/*$_*/8&t&&S!==(S=/*$_*/e[3]("title")+"")&&T(h,S)},d(e){e&&y(t),d=!1,f()}}}(e);function u(e,t){/*isLoading*/
663
+ return e[1]?Ur:Yr}let c=u(e),h=c(e);return{c(){t=g("div"),l&&l.c(),n=w(),i=g("h2"),o=b(a),s=w(),h.c(),this.c=r,E(i,"class","DepositTitle "+(/*isMobile*/e[4]?"DepositTitleNone":"")),E(t,"class","DepositWrapper "+(/*isMobile*/e[4]?"DepositWrapperMobile":""))},m(r,a){m(r,t,a),l&&l.m(t,null),p(t,n),p(t,i),p(i,o),p(t,s),h.m(t,null),
664
+ /*div_binding*/e[17](t)},p(e,[n]){/*isMobile*/e[4]&&l.p(e,n),/*$_*/8&n&&a!==(a=/*$_*/e[3]("title")+"")&&T(o,a),c===(c=u(e))&&h?h.p(e,n):(h.d(1),h=c(e),h&&(h.c(),h.m(t,null)))},i:r,o:r,d(n){n&&y(t),l&&l.d(),h.d(),
665
+ /*div_binding*/e[17](null)}}}function Gr(e,t,n){let r;f(e,Fr,(e=>n(3,r=e)));let i,{endpoint:o=""}=t,{session:s=""}=t,{playerid:a=""}=t,{lang:l="en"}=t,{hasdefaultamount:u=""}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{translationurl:d=""}=t,{playercurrency:p=""}=t,{shortcashierenabled:m="false"}=t,y=window.navigator.userAgent,g="PC"!==Nr(y),v=!0,b=0,w="";Object.keys(Ir).forEach((e=>{Rr(e,Ir[e])}));const _=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:g},window.location.href)},E=e=>{if(e.data){if("ProfileDetailsData"===e.data.type)n(6,p=e.data.profileDetails.currency);switch(e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href)}}},S=()=>{var e;e=l,pr.set(e)};O((()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})));return e.$$set=e=>{"endpoint"in e&&n(7,o=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,a=e.playerid),"lang"in e&&n(10,l=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,c=e.clientstyling),"clientstylingurl"in e&&n(13,h=e.clientstylingurl),"translationurl"in e&&n(14,d=e.translationurl),"playercurrency"in e&&n(6,p=e.playercurrency),"shortcashierenabled"in e&&n(15,m=e.shortcashierenabled)},e.$$.update=()=>{/*lang*/1024&e.$$.dirty&&l&&S(),/*clientstylingurl, customStylingContainer*/8193&e.$$.dirty&&h&&i&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/4097&e.$$.dirty&&c&&i&&(()=>{let e=document.createElement("style");e.innerHTML=c,i.appendChild(e)})(),/*translationurl*/16384&e.$$.dirty&&d&&fetch(d).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Rr(t,e[t])}))})).catch((e=>{console.log(e)})),/*session, playerid, endpoint, playercurrency, lang*/1984&e.$$.dirty&&s&&a&&o&&p&&l&&(()=>{let e=new URL(`${o}/v1/player/${a}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(m&&e.searchParams.append("isShortCashier",m),u)switch(p){case"USD":b=.4;break;case"CDF":b=1e3}let t={method:"POST",headers:{"X-SessionId":s,currency:p||"EUR",amount:b,cashierMode:"Default",IsShortCashier:m,accept:"application/json"}};fetch(e.href,t).then((e=>e.json())).then((e=>{n(1,v=!1),n(2,w=e.CashierUrl)}),(e=>{console.error(e)}))})()},[i,v,w,r,g,_,p,o,s,a,l,u,c,h,d,m,()=>_(),function(e){B[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}function jr(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}!customElements.get("player-deposit")&&customElements.define("player-deposit",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},Gr,$r,l,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6,shortcashierenabled:15},null),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency","shortcashierenabled"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),I()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),I()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),I()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),I()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),I()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),I()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),I()}get shortcashierenabled(){return this.$$.ctx[15]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),I()}}),
666
+ /* eslint-disable */
667
+ 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){
659
668
  // copy everything except first param, which is the event.
660
- 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 Lr={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 Fr(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},registerEventListener:function(e,t){try{return Fr(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}}},Cr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return de(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
669
+ 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 Wr={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 jr(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},registerEventListener:function(e,t){try{return jr(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}}},Vr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return ye(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
661
670
  // This is done to register the method called with moment()
662
671
  // without creating circular dependencies.
663
672
  function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
664
673
  // IE8 will treat undefined and null as object if it wasn't for
665
674
  // input != null
666
- return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Xn(e,t,n,r,!0).utc()}function m(){
675
+ return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Xn(e,t,n,r,!0).utc()}function m(){
667
676
  // We need to deep clone this object.
668
- return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=y(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=p(NaN);return null!=e?d(y(t),e):y(t).userInvalidated=!0,t}
677
+ return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=y(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=p(NaN);return null!=e?f(y(t),e):y(t).userInvalidated=!0,t}
669
678
  // Plugins that add properties should also add the key here (null value),
670
679
  // so we can properly clone ourselves.
671
- n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],_=!1;function w(e,t){var n,r,i,o=b.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=y(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(i=t[r=b[n]])||(e[r]=i);return e}
680
+ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function _(e,t){var n,r,i,o=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=y(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)u(i=t[r=b[n]])||(e[r]=i);return e}
672
681
  // Moment prototype object
673
- function E(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
682
+ function E(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
674
683
  // Prevent infinite loop in case updateOffset creates new moment
675
684
  // objects.
676
- !1===_&&(_=!0,r.updateOffset(this),_=!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,O={};function x(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),O[e]||(T(t),O[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)a(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
685
+ !1===w&&(w=!0,r.updateOffset(this),w=!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 f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;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];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,x={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),x[e]||(T(t),x[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
677
686
  // Lenient ordinal parsing accepts just a number in addition to
678
687
  // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
679
688
  // TODO: Remove "ordinalParse" fallback in next major release.
680
- 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])&&(
689
+ this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},f(r[n],e[n]),f(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])&&(
681
690
  // make sure changes to properties don't modify parent config
682
- r[n]=d({},r[n]));return r}function H(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 A={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 F(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 L=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},I={};
691
+ r[n]=f({},r[n]));return r}function H(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 A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function N(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,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},I={};
683
692
  // token: 'M'
684
693
  // padded: ['MM', 2]
685
694
  // ordinal: 'Mo'
686
695
  // callback: function () { this.month() + 1 }
687
- function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(I[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(L);for(t=0,n=r.length;t<n;t++)I[r[t]]?r[t]=I[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}}
696
+ function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(I[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 $(e){var t,n,r=e.match(C);for(t=0,n=r.length;t<n;t++)I[r[t]]?r[t]=I[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}
688
697
  // format date using native date object
689
- 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(C.lastIndex=0;n>=0&&C.test(e);)e=e.replace(C,r),C.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(L).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):fe(this,e)}}function fe(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))}
698
+ function G(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||$(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.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 O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(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 le(e){return e%4==0&&e%100!=0||e%400==0}function ue(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=ue(t)),n}function he(e,t){return function(n){return null!=n?(fe(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 fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(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))}
690
699
  // MOMENTS
691
- function me(e){return D(this[e=re(e)])?this[e]():this}function ye(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 ge,ve=/\d/,// 0 - 9
700
+ function pe(e){return O(this[e=re(e)])?this[e]():this}function me(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(O(this[e=re(e)]))return this[e](t);return this}var ge,ve=/\d/,// 0 - 9
692
701
  be=/\d\d/,// 00 - 99
693
- _e=/\d{3}/,// 000 - 999
694
- we=/\d{4}/,// 0000 - 9999
702
+ we=/\d{3}/,// 000 - 999
703
+ _e=/\d{4}/,// 0000 - 9999
695
704
  Ee=/[+-]?\d{6}/,// -999999 - 999999
696
705
  Se=/\d\d?/,// 0 - 99
697
706
  Te=/\d\d\d\d?/,// 999 - 9999
698
707
  Me=/\d\d\d\d\d\d?/,// 99999 - 999999
699
708
  ke=/\d{1,3}/,// 0 - 999
700
- Oe=/\d{1,4}/,// 0 - 9999
701
- xe=/[+-]?\d{1,6}/,// -999999 - 999999
702
- De=/\d+/,// 0 - inf
709
+ xe=/\d{1,4}/,// 0 - 9999
710
+ De=/[+-]?\d{1,6}/,// -999999 - 999999
711
+ Oe=/\d+/,// 0 - inf
703
712
  Pe=/[+-]?\d+/,// -inf - inf
704
713
  Be=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
705
714
  He=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
706
715
  Ae=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
707
716
  // any word (or two) characters or numbers including two/three word month in arabic.
708
717
  // includes scottish gaelic two word and hyphenated months
709
- 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 Fe(e,t,n){ge[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Le(e,t){return a(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ce(e))}
718
+ Fe=/[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 Ne(e,t,n){ge[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ce(e,t){return a(ge,e)?ge[e](t._strict,t._locale):new RegExp(Le(e))}
710
719
  // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
711
- function Ce(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,"\\$&")}ge={};var Ie={};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++)Ie[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(Ie,e)&&Ie[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}
720
+ function Le(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,"\\$&")}ge={};var Ie={};function Ye(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ie[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 $e(e,t,n){null!=t&&a(Ie,e)&&Ie[e](t,n._a,n,e)}var Ge,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?le(e)?29:28:31-n%7%2}
712
721
  // FORMATTING
713
- $e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
722
+ Ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
714
723
  // I know
715
724
  var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Y("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
716
725
  // ALIASES
@@ -718,13 +727,13 @@ ne("month","M"),
718
727
  // PRIORITY
719
728
  se("month",8),
720
729
  // PARSING
721
- Fe("M",Se),Fe("MM",Se,be),Fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Fe("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);
730
+ Ne("M",Se),Ne("MM",Se,be),Ne("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ne("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);
722
731
  // if we didn't find a month name, mark the date as invalid.
723
732
  null!=i?t[We]=i:y(n).invalidMonth=e}));
724
733
  // LOCALES
725
- var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ne,ot=Ne;function st(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
734
+ var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Fe,ot=Fe;function st(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
726
735
  // this is not used
727
- this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,s))?i:null:-1!==(i=$e.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,s))||-1!==(i=$e.call(this._longMonthsParse,s))?i:null:-1!==(i=$e.call(this._longMonthsParse,s))||-1!==(i=$e.call(this._shortMonthsParse,s))?i:null}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return ut.call(this,e,t,n);
736
+ this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ge.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,s))||-1!==(i=Ge.call(this._longMonthsParse,s))?i:null:-1!==(i=Ge.call(this._longMonthsParse,s))||-1!==(i=Ge.call(this._shortMonthsParse,s))?i:null}function ut(e,t,n){var r,i,o;if(this._monthsParseExact)return lt.call(this,e,t,n);
728
737
  // TODO: add sorting
729
738
  // Sorting makes sure if one month (or abbr) is a prefix of another
730
739
  // see sorting in computeMonthsParse
@@ -734,11 +743,11 @@ if(
734
743
  // make the regex if we don't have it already
735
744
  i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}
736
745
  // MOMENTS
737
- function ht(e,t){var n;if(!e.isValid())
746
+ function ct(e,t){var n;if(!e.isValid())
738
747
  // No op
739
- return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else
748
+ return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else
740
749
  // TODO: Another silent failure?
741
- 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):fe(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++)
750
+ if(!c(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 ht(e){return null!=e?(ct(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function dt(){return et(this.year(),this.month())}function ft(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++)
742
751
  // make the regex if we don't have it already
743
752
  n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));
744
753
  // Sorting makes sure if one month (or abbr) is a prefix of another it
@@ -746,33 +755,33 @@ n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(thi
746
755
  for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Re(r[t]),i[t]=Re(i[t]);for(t=0;t<24;t++)o[t]=Re(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}
747
756
  // FORMATTING
748
757
  // HELPERS
749
- function yt(e){return ue(e)?366:365}
758
+ function yt(e){return le(e)?366:365}
750
759
  // HOOKS
751
- Y("Y",0,0,(function(){var e=this.year();return e<=9999?F(e,4):"+"+e})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),
760
+ Y("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),
752
761
  // ALIASES
753
762
  ne("year","y"),
754
763
  // PRIORITIES
755
764
  se("year",1),
756
765
  // PARSING
757
- Fe("Y",Pe),Fe("YY",Se,be),Fe("YYYY",Oe,we),Fe("YYYYY",xe,Ee),Fe("YYYYYY",xe,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)};
766
+ Ne("Y",Pe),Ne("YY",Se,be),Ne("YYYY",xe,_e),Ne("YYYYY",De,Ee),Ne("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)};
758
767
  // MOMENTS
759
- var gt=ce("FullYear",!0);function vt(){return ue(this.year())}function bt(e,t,n,r,i,o,s){
768
+ var gt=he("FullYear",!0);function vt(){return le(this.year())}function bt(e,t,n,r,i,o,s){
760
769
  // can't just apply() to create a date:
761
770
  // https://stackoverflow.com/q/181348
762
771
  var a;
763
772
  // the date constructor remaps years 0-99 to 1900-1999
764
773
  return e<100&&e>=0?(
765
774
  // preserve leap years using a full 400 year cycle, then reset
766
- a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function _t(e){var t,n;
775
+ a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function wt(e){var t,n;
767
776
  // the Date.UTC function remaps years 0-99 to 1900-1999
768
777
  return e<100&&e>=0?(
769
778
  // preserve leap years using a full 400 year cycle, then reset
770
779
  (n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
771
780
  // start-of-first-week - start-of-year
772
- function wt(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
773
- r=7+t-n;return-(7+_t(e,0,r).getUTCDay()-t)%7+r-1}
781
+ function _t(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
782
+ r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}
774
783
  // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
775
- function Et(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return a<=0?s=yt(o=e-1)+a:a>yt(e)?(o=e+1,s=a-yt(e)):(o=e,s=a),{year:o,dayOfYear:s}}function St(e,t,n){var r,i,o=wt(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Tt(i=e.year()-1,t,n):s>Tt(e.year(),t,n)?(r=s-Tt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Tt(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(yt(e)-r+i)/7}
784
+ function Et(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return a<=0?s=yt(o=e-1)+a:a>yt(e)?(o=e+1,s=a-yt(e)):(o=e,s=a),{year:o,dayOfYear:s}}function St(e,t,n){var r,i,o=_t(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Tt(i=e.year()-1,t,n):s>Tt(e.year(),t,n)?(r=s-Tt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Tt(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(yt(e)-r+i)/7}
776
785
  // FORMATTING
777
786
  // HELPERS
778
787
  // LOCALES
@@ -782,10 +791,10 @@ ne("week","w"),ne("isoWeek","W"),
782
791
  // PRIORITIES
783
792
  se("week",5),se("isoWeek",5),
784
793
  // PARSING
785
- Fe("w",Se),Fe("ww",Se,be),Fe("W",Se),Fe("WW",Se,be),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.
786
- doy:6};function Ot(){return this._week.dow}function xt(){return this._week.doy}
794
+ Ne("w",Se),Ne("ww",Se,be),Ne("W",Se),Ne("WW",Se,be),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.
795
+ doy:6};function xt(){return this._week.dow}function Dt(){return this._week.doy}
787
796
  // MOMENTS
788
- function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
797
+ function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
789
798
  // FORMATTING
790
799
  // HELPERS
791
800
  function Bt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ht(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
@@ -796,9 +805,9 @@ ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
796
805
  // PRIORITY
797
806
  se("day",11),se("weekday",11),se("isoWeekday",11),
798
807
  // PARSING
799
- Fe("d",Se),Fe("e",Se),Fe("E",Se),Fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Fe("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);
808
+ Ne("d",Se),Ne("e",Se),Ne("E",Se),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("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);
800
809
  // if we didn't get a weekday name, mark the date as invalid
801
- null!=i?t.d=i:y(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("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ct=Ne,Rt=Ne,It=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?At(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?At(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++){
810
+ null!=i?t.d=i:y(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=Fe,Rt=Fe,It=Fe;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?At(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $t(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(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=Ge.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
802
811
  // test the regex
803
812
  if(
804
813
  // make the regex if we don't have it already
@@ -808,12 +817,12 @@ function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this
808
817
  // behaves the same as moment#day except
809
818
  // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
810
819
  // as a setter, sunday should belong to the previous week.
811
- if(null!=e){var t=Ht(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ct),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)
820
+ if(null!=e){var t=Ht(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Lt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)
812
821
  // make the regex if we don't have it already
813
- n=p([2e3,1]).day(t),r=Re(this.weekdaysMin(n,"")),i=Re(this.weekdaysShort(n,"")),o=Re(this.weekdays(n,"")),s.push(r),a.push(i),u.push(o),l.push(r),l.push(i),l.push(o);
822
+ n=p([2e3,1]).day(t),r=Re(this.weekdaysMin(n,"")),i=Re(this.weekdaysShort(n,"")),o=Re(this.weekdays(n,"")),s.push(r),a.push(i),l.push(o),u.push(r),u.push(i),u.push(o);
814
823
  // Sorting makes sure if one weekday (or abbr) is a prefix of another it
815
824
  // will match the longer piece.
816
- s.sort(e),a.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}
825
+ s.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}
817
826
  // FORMATTING
818
827
  function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){Y(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
819
828
  // PARSING
@@ -822,81 +831,81 @@ function tn(e,t){return t._meridiemParse}
822
831
  function nn(e){
823
832
  // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
824
833
  // Using charAt should be more compatible.
825
- return"p"===(e+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Jt),Y("k",["kk",2],0,Qt),Y("hmm",0,0,(function(){return""+Jt.apply(this)+F(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Jt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),en("a",!0),en("A",!1),
834
+ return"p"===(e+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Jt),Y("k",["kk",2],0,Qt),Y("hmm",0,0,(function(){return""+Jt.apply(this)+N(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Jt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),en("a",!0),en("A",!1),
826
835
  // ALIASES
827
836
  ne("hour","h"),
828
837
  // PRIORITY
829
- se("hour",13),Fe("a",tn),Fe("A",tn),Fe("H",Se),Fe("h",Se),Fe("k",Se),Fe("HH",Se,be),Fe("hh",Se,be),Fe("kk",Se,be),Fe("hmm",Te),Fe("hmmss",Me),Fe("Hmm",Te),Fe("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),y(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)),y(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)),y(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,
838
+ se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",Se),Ne("h",Se),Ne("k",Se),Ne("HH",Se,be),Ne("hh",Se,be),Ne("kk",Se,be),Ne("hmm",Te),Ne("hmmss",Me),Ne("Hmm",Te),Ne("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),y(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)),y(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)),y(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,
830
839
  // Setting the hour should keep the time, because the user explicitly
831
840
  // specified which hour they want. So trying to maintain the same hour (in
832
841
  // a new timezone) makes sense. Adding/subtracting hours does not follow
833
842
  // this rule.
834
- on=ce("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,un={calendar:A,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:kt,weekdays:Nt,weekdaysMin:Lt,weekdaysShort:Ft,meridiemParse:rn},ln={},hn={};
843
+ on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:A,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:kt,weekdays:Ft,weekdaysMin:Ct,weekdaysShort:Nt,meridiemParse:rn},un={},cn={};
835
844
  // internal storage for locale config files
836
- 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}
845
+ function hn(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 dn(e){return e?e.toLowerCase().replace("_","-"):e}
837
846
  // pick the locale from the array
838
847
  // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
839
848
  // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
840
- function dn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=fn(e[o]).split("-")).length,n=(n=fn(e[o+1]))?n.split("-"):null;t>0;){if(r=mn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(i,n)>=t-1)
849
+ function fn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).length,n=(n=dn(e[o+1]))?n.split("-"):null;t>0;){if(r=mn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&hn(i,n)>=t-1)
841
850
  //the next array item is better than a shallower substring of this one
842
851
  break;t--}o++}return an}function pn(e){
843
852
  // Prevent names that look like filesystem paths, i.e contain '/' or '\'
844
853
  return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
845
854
  // TODO: Find a better way to register and load all the locales in Node
846
- if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,de(),yn(n)}catch(e){
855
+ if(void 0===un[t]&&e&&e.exports&&pn(t))try{n=an._abbr,ye(),yn(n)}catch(e){
847
856
  // mark as not found to avoid repeating expensive file require call causing high CPU
848
857
  // when trying to find en-US, en_US, en-us for every format call
849
- ln[t]=null;// null means not found
850
- }return ln[t]}
858
+ un[t]=null;// null means not found
859
+ }return un[t]}
851
860
  // This function will load locale and then set the global locale. If
852
861
  // no arguments are passed in, it will simply return the current global
853
862
  // locale key.
854
- function yn(e,t){var n;return e&&((n=l(t)?bn(e):gn(e,t))?
863
+ function yn(e,t){var n;return e&&((n=u(t)?bn(e):gn(e,t))?
855
864
  // moment.duration._locale = moment._locale = data;
856
865
  an=n:"undefined"!=typeof console&&console.warn&&
857
866
  //warn user if arguments are passed but the locale could not be set
858
- console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])x("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 H(B(r,t)),hn[e]&&hn[e].forEach((function(e){gn(e.name,e.config)})),
867
+ console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[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=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new H(B(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),
859
868
  // backwards compat for now: also set the locale
860
869
  // make sure we set the locale AFTER all child locales have been
861
870
  // created, so we won't end up with the child locale set.
862
- yn(e),ln[e]}
871
+ yn(e),un[e]}
863
872
  // useful for testing
864
- return delete ln[e],null}function vn(e,t){if(null!=t){var n,r,i=un;null!=ln[e]&&null!=ln[e].parentLocale?
873
+ return delete un[e],null}function vn(e,t){if(null!=t){var n,r,i=ln;null!=un[e]&&null!=un[e].parentLocale?
865
874
  // Update existing child locale in-place to avoid memory-leaks
866
- ln[e].set(B(ln[e]._config,t)):(
875
+ un[e].set(B(un[e]._config,t)):(
867
876
  // MERGE
868
877
  null!=(r=mn(e))&&(i=r._config),t=B(i,t),null==r&&(
869
878
  // updateLocale is called for creating a new locale
870
879
  // Set abbr so it will have a name (getters return
871
880
  // undefined otherwise).
872
- t.abbr=e),(n=new H(t)).parentLocale=ln[e],ln[e]=n),
881
+ t.abbr=e),(n=new H(t)).parentLocale=un[e],un[e]=n),
873
882
  // backwards compat for now: also set the locale
874
883
  yn(e)}else
875
884
  // pass null for config to unupdate, useful for tests
876
- null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===yn()&&yn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}
885
+ null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===yn()&&yn(e)):null!=un[e]&&delete un[e]);return un[e]}
877
886
  // returns locale data
878
887
  function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
879
888
  //short-circuit everything else
880
- t=mn(e))return t;e=[e]}return dn(e)}function _n(){return k(ln)}function wn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ve]<1||n[Ve]>et(n[je],n[We])?Ve:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ze]||0!==n[Xe]||0!==n[qe])?ze:n[Ze]<0||n[Ze]>59?Ze:n[Xe]<0||n[Xe]>59?Xe:n[qe]<0||n[qe]>999?qe:-1,y(e)._overflowDayOfYear&&(t<je||t>Ve)&&(t=Ve),y(e)._overflowWeeks&&-1===t&&(t=Ke),y(e)._overflowWeekday&&-1===t&&(t=Je),y(e).overflow=t),e}
889
+ t=mn(e))return t;e=[e]}return fn(e)}function wn(){return k(un)}function _n(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ve]<1||n[Ve]>et(n[je],n[We])?Ve:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ze]||0!==n[Xe]||0!==n[qe])?ze:n[Ze]<0||n[Ze]>59?Ze:n[Xe]<0||n[Xe]>59?Xe:n[qe]<0||n[qe]>999?qe:-1,y(e)._overflowDayOfYear&&(t<je||t>Ve)&&(t=Ve),y(e)._overflowWeeks&&-1===t&&(t=Ke),y(e)._overflowWeekday&&-1===t&&(t=Je),y(e).overflow=t),e}
881
890
  // iso 8601 regex
882
891
  // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
883
892
  var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
884
893
  // iso time formats and regexes
885
- 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/]],On=/^\/?Date\((-?\d+)/i,
894
+ 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/]],xn=/^\/?Date\((-?\d+)/i,
886
895
  // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
887
- xn=/^(?:(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};
896
+ 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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
888
897
  // date from iso format
889
- function Pn(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(y(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])){
898
+ function Pn(e){var t,n,r,i,o,s,a=e._i,l=En.exec(a)||Sn.exec(a),u=Mn.length,c=kn.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(Mn[t][1].exec(l[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(kn[t][1].exec(l[3])){
890
899
  // match[2] should be 'T' or space
891
- 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=[Hn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){
900
+ o=(l[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),$n(e)}else e._isValid=!1}function Bn(e,t,n,r,i,o){var s=[Hn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){
892
901
  // Remove comments and folding whitespace and replace multiple-spaces with a single space
893
- return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Ft.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Fn(e,t,n){if(e)return Dn[e];if(t)
902
+ return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Fn(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(e,t,n){if(e)return On[e];if(t)
894
903
  // the only allowed military tz is Z
895
904
  return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
896
905
  // date and time from ref 2822 format
897
- function Ln(e){var t,n=xn.exec(An(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=Fn(n[8],n[9],n[10]),e._d=_t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}
906
+ function Cn(e){var t,n=Dn.exec(An(e._i));if(n){if(t=Bn(n[4],n[3],n[2],n[5],n[6],n[7]),!Fn(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}
898
907
  // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
899
- function Cn(e){var t=On.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Ln(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
908
+ function Ln(e){var t=xn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Cn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
900
909
  // Final attempt, use Input Fallback
901
910
  r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
902
911
  // Pick the first defined of two or three arguments.
@@ -917,58 +926,58 @@ for(r=In(e),
917
926
  //compute day of the year from weeks and weekdays
918
927
  e._w&&null==e._a[Ve]&&null==e._a[We]&&Un(e),
919
928
  //if the day of the year is set, figure out what it is
920
- null!=e._dayOfYear&&(o=Rn(e._a[je],r[je]),(e._dayOfYear>yt(o)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=_t(o,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
929
+ null!=e._dayOfYear&&(o=Rn(e._a[je],r[je]),(e._dayOfYear>yt(o)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
921
930
  // Zero out whatever was not defaulted, including time
922
931
  for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
923
932
  // Check for 24:00:00.000
924
- 24===e._a[ze]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[qe]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?_t:bt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
933
+ 24===e._a[ze]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[qe]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?wt:bt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
925
934
  // Apply timezone offset from input. The actual utcOffset can be changed
926
935
  // with parseZone.
927
936
  null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),
928
937
  // check for mismatching day of week
929
- e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,o,s,a,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,
938
+ e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,
930
939
  // TODO: We need to take the current isoWeekYear, but that depends on
931
940
  // how we interpret now (local, utc, fixed offset). So create
932
941
  // a now version of current config (take local/utc/offset flags, and
933
942
  // create now).
934
- n=Rn(t.GG,e._a[je],St(qn(),1,4).year),r=Rn(t.W,1),((i=Rn(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,l=St(qn(),o,s),n=Rn(t.gg,e._a[je],l.year),
943
+ n=Rn(t.GG,e._a[je],St(qn(),1,4).year),r=Rn(t.W,1),((i=Rn(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=St(qn(),o,s),n=Rn(t.gg,e._a[je],u.year),
935
944
  // Default to current week.
936
- r=Rn(t.w,l.week),null!=t.d?((
945
+ r=Rn(t.w,u.week),null!=t.d?((
937
946
  // weekday -- low day numbers are considered next week
938
- i=t.d)<0||i>6)&&(u=!0):null!=t.e?(
947
+ i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
939
948
  // local weekday -- counting starts from beginning of week
940
- i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):
949
+ i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):
941
950
  // default to beginning of week
942
- i=o),r<1||r>Tt(n,o,s)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(a=Et(n,r,i,o,s),e._a[je]=a.year,e._dayOfYear=a.dayOfYear)}
951
+ i=o),r<1||r>Tt(n,o,s)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(a=Et(n,r,i,o,s),e._a[je]=a.year,e._dayOfYear=a.dayOfYear)}
943
952
  // constant that refers to the ISO standard
944
953
  // date from string and format string
945
- function Gn(e){
954
+ function $n(e){
946
955
  // TODO: Move this to another part of the creation flow to prevent circular deps
947
956
  if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;
948
957
  // This array is used to make a Date, either with `new Date` or `Date.UTC`
949
- var t,n,i,o,s,a,u,l=""+e._i,h=l.length,c=0;for(u=(i=j(e._f,e._locale).match(L)||[]).length,t=0;t<u;t++)o=i[t],(n=(l.match(Le(o,e))||[])[0])&&((s=l.substr(0,l.indexOf(n))).length>0&&y(e).unusedInput.push(s),l=l.slice(l.indexOf(n)+n.length),c+=n.length),
958
+ var t,n,i,o,s,a,l,u=""+e._i,c=u.length,h=0;for(l=(i=j(e._f,e._locale).match(C)||[]).length,t=0;t<l;t++)o=i[t],(n=(u.match(Ce(o,e))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&y(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),h+=n.length),
950
959
  // don't parse if it's not a known token
951
- I[o]?(n?y(e).empty=!1:y(e).unusedTokens.push(o),Ge(o,n,e)):e._strict&&!n&&y(e).unusedTokens.push(o);
960
+ I[o]?(n?y(e).empty=!1:y(e).unusedTokens.push(o),$e(o,n,e)):e._strict&&!n&&y(e).unusedTokens.push(o);
952
961
  // add remaining unparsed input length to the string
953
- y(e).charsLeftOver=h-c,l.length>0&&y(e).unusedInput.push(l),
962
+ y(e).charsLeftOver=c-h,u.length>0&&y(e).unusedInput.push(u),
954
963
  // clear _12h flag if hour is <= 12
955
964
  e._a[ze]<=12&&!0===y(e).bigHour&&e._a[ze]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,
956
965
  // handle meridiem
957
- e._a[ze]=$n(e._locale,e._a[ze],e._meridiem),null!==(
966
+ e._a[ze]=Gn(e._locale,e._a[ze],e._meridiem),null!==(
958
967
  // handle era
959
- a=y(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),Yn(e),wn(e)}else Ln(e);else Pn(e)}function $n(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
968
+ a=y(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),Yn(e),_n(e)}else Cn(e);else Pn(e)}function Gn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
960
969
  // Fallback
961
970
  (r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
962
971
  // date from string and array of format strings
963
- function jn(e){var t,n,r,i,o,s,a=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Gn(t),g(t)&&(s=!0),
972
+ function jn(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],$n(t),g(t)&&(s=!0),
964
973
  // if there is any input that was not parsed add a penalty for that format
965
974
  o+=y(t).charsLeftOver,
966
975
  //or tokens
967
- o+=10*y(t).unusedTokens.length,y(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));d(e,n||t)}function Wn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Yn(e)}}function Vn(e){var t=new E(wn(zn(e)));return t._nextDay&&(
976
+ o+=10*y(t).unusedTokens.length,y(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));f(e,n||t)}function Wn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Yn(e)}}function Vn(e){var t=new E(_n(zn(e)));return t._nextDay&&(
968
977
  // Adding is smart enough around DST
969
- t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new E(wn(t)):(c(t)?e._d=t:o(n)?jn(e):n?Gn(e):Zn(e),g(e)||(e._d=null),e))}function Zn(e){var t=e._i;l(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Cn(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Yn(e)):s(t)?Wn(e):h(t)?
978
+ t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new E(_n(t)):(h(t)?e._d=t:o(n)?jn(e):n?$n(e):Zn(e),g(e)||(e._d=null),e))}function Zn(e){var t=e._i;u(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ln(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Yn(e)):s(t)?Wn(e):c(t)?
970
979
  // from milliseconds
971
- e._d=new Date(t):r.createFromInputFallback(e)}function Xn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&u(e)||o(e)&&0===e.length)&&(e=void 0),
980
+ e._d=new Date(t):r.createFromInputFallback(e)}function Xn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),
972
981
  // object construction must be done this way.
973
982
  // https://github.com/moment/moment/issues/1423
974
983
  a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,Vn(a)}function qn(e,t,n,r){return Xn(e,t,n,r,!1)}r.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},
@@ -981,11 +990,11 @@ r.RFC_2822=function(){};var Kn=M("moment().min is deprecated, use moment.max ins
981
990
  // first element is an array of moment objects.
982
991
  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}
983
992
  // TODO: Use [].sort instead?
984
- 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
985
- 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),
993
+ 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===Ge.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
994
+ parseFloat(e[rr[n]])!==ce(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Or(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,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ir(t),
986
995
  // representation for dateAddRemove
987
- this._milliseconds=+h+1e3*l+// 1000
988
- 6e4*u+// 1000 * 60
996
+ this._milliseconds=+c+1e3*u+// 1000
997
+ 6e4*l+// 1000 * 60
989
998
  1e3*a*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
990
999
  // Because of dateAddRemove treats 24 hours as different from a
991
1000
  // day when working around DST, we need to store them separately
@@ -993,20 +1002,20 @@ this._days=+s+7*o,
993
1002
  // It is impossible to translate months into days without knowing
994
1003
  // which months you are are talking about, so we have to store
995
1004
  // it separately.
996
- this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function ur(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
1005
+ this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
997
1006
  // compare two arrays, return the number of differences
998
- 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}
1007
+ function cr(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}
999
1008
  // FORMATTING
1000
- function cr(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),
1009
+ function hr(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),
1001
1010
  // PARSING
1002
- Fe("Z",He),Fe("ZZ",He),Ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(He,e)}));
1011
+ Ne("Z",He),Ne("ZZ",He),Ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(He,e)}));
1003
1012
  // HELPERS
1004
1013
  // timezone chunker
1005
1014
  // '+10:00' > ['10', '00']
1006
1015
  // '-1530' > ['-15', '30']
1007
- 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}
1016
+ var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}
1008
1017
  // Return a moment from input, that is local/utc/zone equivalent to model.
1009
- 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(),
1018
+ function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||h(e)?e.valueOf():qn(e).valueOf())-n.valueOf(),
1010
1019
  // Use low-level api, because this fn is low-level api.
1011
1020
  n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):qn(e).local()}function mr(e){
1012
1021
  // On Firefox.24 Date#getTimezoneOffset returns a floating point.
@@ -1025,17 +1034,17 @@ return-Math.round(e._d.getTimezoneOffset())}
1025
1034
  // a second time. In case it wants us to change the offset again
1026
1035
  // _changeInProgress == true case, then we have to adjust, because
1027
1036
  // there is no such time in the given timezone.
1028
- function yr(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(He,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 gr(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 br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function _r(){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}
1037
+ function yr(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=fr(He,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?Fr(this,Or(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 gr(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 br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(Be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(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(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&cr(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}
1029
1038
  // ASP.NET json date format regex
1030
- r.updateOffset=function(){};var Or=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
1039
+ r.updateOffset=function(){};var xr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
1031
1040
  // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
1032
1041
  // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
1033
1042
  // and further modified to allow for strings containing both week and day
1034
- xr=/^(-|\+)?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,
1043
+ 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 Or(e,t){var n,r,i,o=e,
1035
1044
  // matching against regexp is expensive, do it on demand
1036
- 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=Or.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=xr.exec(e))?(n="-"===s[1]?-1:1,o={y:Pr(s[2],n),M:Pr(s[3],n),w:Pr(s[4],n),d:Pr(s[5],n),h:Pr(s[6],n),m:Pr(s[7],n),s:Pr(s[8],n)}):null==o?
1045
+ s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=xr.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(ur(1e3*s[qe]))*n}):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,o={y:Pr(s[2],n),M:Pr(s[3],n),w:Pr(s[4],n),d:Pr(s[5],n),h:Pr(s[6],n),m:Pr(s[7],n),s:Pr(s[8],n)}):null==o?
1037
1046
  // checks for null or undefined
1038
- o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Hr(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 Pr(e,t){
1047
+ o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Hr(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(e)&&a(e,"_locale")&&(r._locale=e._locale),lr(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){
1039
1048
  // We'd normally use ~~inp for this, but unfortunately it also
1040
1049
  // converts floats to ints.
1041
1050
  // inp may be undefined, so careful calling replace on it.
@@ -1045,19 +1054,19 @@ return(isNaN(n)?0:n)*t}function Br(e,t){var n={};return n.months=t.month()-e.mon
1045
1054
  // TODO: remove 'name' arg after deprecation is removed
1046
1055
  function Ar(e,t){return function(n,r){var i;
1047
1056
  //invert the arguments, but complain about it
1048
- return null===r||isNaN(+r)||(x(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,fe(e,"Month")+a*n),s&&pe(e,"Date",fe(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 Fr=Ar(1,"add"),Lr=Ar(-1,"subtract");function Cr(e){return"string"==typeof e||e instanceof String}
1057
+ 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),Fr(this,Or(n,r),e),this}}function Fr(e,t,n,i){var o=t._milliseconds,s=ur(t._days),a=ur(t._months);e.isValid()&&(i=null==i||i,a&&ct(e,de(e,"Month")+a*n),s&&fe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Or.fn=ar.prototype,Or.invalid=sr;var Nr=Ar(1,"add"),Cr=Ar(-1,"subtract");function Lr(e){return"string"==typeof e||e instanceof String}
1049
1058
  // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
1050
- function Rr(e){return S(e)||c(e)||Cr(e)||h(e)||Yr(e)||Ir(e)||null==e}function Ir(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)&&Cr(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){
1059
+ function Rr(e){return S(e)||h(e)||Lr(e)||c(e)||Yr(e)||Ir(e)||null==e}function Ir(e){var t,n,r=s(e)&&!l(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"],u=o.length;for(t=0;t<u;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!c(t)&&Lr(e)})).length),t&&n}function Ur(e){var t,n,r=s(e)&&!l(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 $r(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 Gr(e,t){
1051
1060
  // Support for single parameter, formats only overload to the calendar function
1052
1061
  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));
1053
1062
  // We want to compare the start of today, vs this.
1054
1063
  // Getting start-of-today depends on whether we're local/utc/offset or not.
1055
- 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
1064
+ var n=e||qn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(O(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
1056
1065
  case"minute":o=(this-r)/6e4;break;// 1000 * 60
1057
1066
  case"hour":o=(this-r)/36e5;break;// 1000 * 60 * 60
1058
1067
  case"day":o=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
1059
1068
  case"week":o=(this-r-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
1060
- default:o=this-r}return n?o:le(o)}function Jr(e,t){if(e.date()<t.date())
1069
+ default:o=this-r}return n?o:ue(o)}function Jr(e,t){if(e.date()<t.date())
1061
1070
  // end-of-month calculations work correct when the start month has more
1062
1071
  // days than the end month.
1063
1072
  return-Jr(t,e);
@@ -1066,70 +1075,70 @@ var n=12*(t.year()-e.year())+(t.month()-e.month()),
1066
1075
  // b is in (anchor - 1 month, anchor + 1 month)
1067
1076
  r=e.clone().add(n,"months");
1068
1077
  //check for negative zero, return zero if negative zero
1069
- 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)?
1078
+ 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?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?
1070
1079
  // native implementation is ~50x faster, use it when we can
1071
- 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")}
1080
+ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
1072
1081
  /**
1073
1082
  * Return a human readable representation of a moment that can
1074
1083
  * also be evaluated to get a new moment which is the same
1075
1084
  *
1076
1085
  * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
1077
- */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)}
1086
+ */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=G(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?Or({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())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(qn(),e)}
1078
1087
  // If passed a locale key, it will set the locale for this
1079
1088
  // instance. Otherwise, it will return the locale configuration
1080
1089
  // variables for this instance.
1081
- function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var hi=1e3,ci=60*hi,fi=60*ci,di=3506328*fi;
1090
+ function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var ci=1e3,hi=60*ci,di=60*hi,fi=3506328*di;
1082
1091
  // actual modulo - handles negative numbers (for dates before 1970):
1083
1092
  function pi(e,t){return(e%t+t)%t}function mi(e,t,n){
1084
1093
  // the date constructor remaps years 0-99 to 1900-1999
1085
- return e<100&&e>=0?new Date(e+400,t,n)-di:new Date(e,t,n).valueOf()}function yi(e,t,n){
1094
+ return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function yi(e,t,n){
1086
1095
  // Date.UTC remaps years 0-99 to 1900-1999
1087
- return e<100&&e>=0?Date.UTC(e+400,t,n)-di:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi: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?yi: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 bi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){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(){
1096
+ return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi: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()*hi),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,hi);break;case"second":t=this._d.valueOf(),t-=pi(t,ci)}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?yi: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+=di-pi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-pi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function _i(){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(){
1088
1097
  // new Date(NaN).toJSON() === null
1089
- return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function ki(){return d({},y(this))}function Oi(){return y(this).overflow}function xi(){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||bn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
1098
+ return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function ki(){return f({},y(this))}function xi(){return y(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(e,t){var n,i,o,s=this._eras||bn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
1090
1099
  // truncate time
1091
1100
  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":
1092
1101
  // truncate time
1093
- o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Pi(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 Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1102
+ o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Pi(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([o,s,a].indexOf(e)>=0)return l[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 Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1094
1103
  // truncate time
1095
1104
  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 Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1096
1105
  // truncate time
1097
- n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ni(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1106
+ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Fi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
1098
1107
  // truncate time
1099
- 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 Fi(){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,
1108
+ 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 Ni(){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,
1100
1109
  // truncate time
1101
- 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 Li(e){return a(this,"_erasNameRegex")||$i.call(this),e?this._erasNameRegex:this._erasRegex}function Ci(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 Ii(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")}
1110
+ 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")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Li(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ii(e,t){return t.erasAbbrRegex(e)}function Yi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function $i(e,t){return t._eraYearOrdinalRegex||Oe}function Gi(){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")}
1102
1111
  // FORMATTING
1103
1112
  function ji(e,t){Y(0,[e,e.length],0,t)}
1104
1113
  // MOMENTS
1105
- function Wi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return Tt(this.year(),1,4)}function Zi(){return Tt(this.isoWeekYear(),1,4)}function Xi(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function qi(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?St(this,r,i).year:(t>(o=Tt(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=Et(e,t,n,r,i),s=_t(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
1114
+ function Wi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return Tt(this.year(),1,4)}function Zi(){return Tt(this.isoWeekYear(),1,4)}function Xi(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function qi(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?St(this,r,i).year:(t>(o=Tt(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=Et(e,t,n,r,i),s=wt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
1106
1115
  // FORMATTING
1107
1116
  // MOMENTS
1108
1117
  function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
1109
1118
  // FORMATTING
1110
- 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"),Fe("N",Ii),Fe("NN",Ii),Fe("NNN",Ii),Fe("NNNN",Yi),Fe("NNNNN",Ui),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e})),Fe("y",De),Fe("yy",De),Fe("yyy",De),Fe("yyyy",De),Fe("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"),
1119
+ 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"),Ne("N",Ii),Ne("NN",Ii),Ne("NNN",Ii),Ne("NNNN",Yi),Ne("NNNNN",Ui),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e})),Ne("y",Oe),Ne("yy",Oe),Ne("yyy",Oe),Ne("yyyy",Oe),Ne("yo",$i),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"),
1111
1120
  // ALIASES
1112
1121
  ne("weekYear","gg"),ne("isoWeekYear","GG"),
1113
1122
  // PRIORITY
1114
1123
  se("weekYear",1),se("isoWeekYear",1),
1115
1124
  // PARSING
1116
- Fe("G",Pe),Fe("g",Pe),Fe("GG",Se,be),Fe("gg",Se,be),Fe("GGGG",Oe,we),Fe("gggg",Oe,we),Fe("GGGGG",xe,Ee),Fe("ggggg",xe,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"),
1125
+ Ne("G",Pe),Ne("g",Pe),Ne("GG",Se,be),Ne("gg",Se,be),Ne("GGGG",xe,_e),Ne("gggg",xe,_e),Ne("GGGGG",De,Ee),Ne("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"),
1117
1126
  // ALIASES
1118
1127
  ne("quarter","Q"),
1119
1128
  // PRIORITY
1120
1129
  se("quarter",7),
1121
1130
  // PARSING
1122
- Fe("Q",ve),Ye("Q",(function(e,t){t[We]=3*(he(e)-1)})),Y("D",["DD",2],"Do","date"),
1131
+ Ne("Q",ve),Ye("Q",(function(e,t){t[We]=3*(ce(e)-1)})),Y("D",["DD",2],"Do","date"),
1123
1132
  // ALIASES
1124
1133
  ne("date","D"),
1125
1134
  // PRIORITY
1126
1135
  se("date",9),
1127
1136
  // PARSING
1128
- Fe("D",Se),Fe("DD",Se,be),Fe("Do",(function(e,t){
1137
+ Ne("D",Se),Ne("DD",Se,be),Ne("Do",(function(e,t){
1129
1138
  // TODO: Remove "ordinalParse" fallback in next major release.
1130
- return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],Ve),Ye("Do",(function(e,t){t[Ve]=he(e.match(Se)[0])}));
1139
+ return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],Ve),Ye("Do",(function(e,t){t[Ve]=ce(e.match(Se)[0])}));
1131
1140
  // MOMENTS
1132
- var eo=ce("Date",!0);
1141
+ var eo=he("Date",!0);
1133
1142
  // FORMATTING
1134
1143
  // HELPERS
1135
1144
  // MOMENTS
@@ -1141,15 +1150,15 @@ ne("dayOfYear","DDD"),
1141
1150
  // PRIORITY
1142
1151
  se("dayOfYear",4),
1143
1152
  // PARSING
1144
- Fe("DDD",ke),Fe("DDDD",_e),Ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),Y("m",["mm",2],0,"minute"),
1153
+ Ne("DDD",ke),Ne("DDDD",we),Ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),Y("m",["mm",2],0,"minute"),
1145
1154
  // ALIASES
1146
1155
  ne("minute","m"),
1147
1156
  // PRIORITY
1148
1157
  se("minute",14),
1149
1158
  // PARSING
1150
- Fe("m",Se),Fe("mm",Se,be),Ye(["m","mm"],Ze);
1159
+ Ne("m",Se),Ne("mm",Se,be),Ye(["m","mm"],Ze);
1151
1160
  // MOMENTS
1152
- var no=ce("Minutes",!1);
1161
+ var no=he("Minutes",!1);
1153
1162
  // FORMATTING
1154
1163
  Y("s",["ss",2],0,"second"),
1155
1164
  // ALIASES
@@ -1157,9 +1166,9 @@ ne("second","s"),
1157
1166
  // PRIORITY
1158
1167
  se("second",15),
1159
1168
  // PARSING
1160
- Fe("s",Se),Fe("ss",Se,be),Ye(["s","ss"],Xe);
1169
+ Ne("s",Se),Ne("ss",Se,be),Ye(["s","ss"],Xe);
1161
1170
  // MOMENTS
1162
- var ro,io,oo=ce("Seconds",!1);
1171
+ var ro,io,oo=he("Seconds",!1);
1163
1172
  // FORMATTING
1164
1173
  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()})),
1165
1174
  // ALIASES
@@ -1167,11 +1176,11 @@ ne("millisecond","ms"),
1167
1176
  // PRIORITY
1168
1177
  se("millisecond",16),
1169
1178
  // PARSING
1170
- Fe("S",ke,ve),Fe("SS",ke,be),Fe("SSS",ke,_e),ro="SSSS";ro.length<=9;ro+="S")Fe(ro,De);function so(e,t){t[qe]=he(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ye(ro,so);
1179
+ Ne("S",ke,ve),Ne("SS",ke,be),Ne("SSS",ke,we),ro="SSSS";ro.length<=9;ro+="S")Ne(ro,Oe);function so(e,t){t[qe]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ye(ro,so);
1171
1180
  // MOMENTS
1172
- function ao(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=ce("Milliseconds",!1),
1181
+ function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=he("Milliseconds",!1),
1173
1182
  // FORMATTING
1174
- 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=Fr,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=Oi,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=ye,lo.startOf=gi,lo.subtract=Lr,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=_i,lo.valueOf=bi,lo.creationData=xi,lo.eraName=Hi,lo.eraNarrow=Ai,lo.eraAbbr=Ni,lo.eraYear=Fi,lo.year=gt,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=Pt,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=yr,lo.utc=vr,lo.local=br,lo.parseZone=_r,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",gt),lo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),lo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=H.prototype;function mo(e,t,n,r){var i=bn(),o=p().set(r,t);return i[n](o,e)}function yo(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}
1183
+ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var uo=E.prototype;function co(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Nr,uo.calendar=Gr,uo.clone=jr,uo.diff=Kr,uo.endOf=vi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=pe,uo.invalidAt=xi,uo.isAfter=Wr,uo.isBefore=Vr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=qr,uo.isValid=Mi,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Jn,uo.min=Kn,uo.parsingFlags=ki,uo.set=me,uo.startOf=gi,uo.subtract=Cr,uo.toArray=Ei,uo.toObject=Si,uo.toDate=_i,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=wi,uo.valueOf=bi,uo.creationData=Di,uo.eraName=Hi,uo.eraNarrow=Ai,uo.eraAbbr=Fi,uo.eraYear=Ni,uo.year=gt,uo.isLeapYear=vt,uo.weekYear=Wi,uo.isoWeekYear=Vi,uo.quarter=uo.quarters=Qi,uo.month=ht,uo.daysInMonth=dt,uo.week=uo.weeks=Ot,uo.isoWeek=uo.isoWeeks=Pt,uo.weeksInYear=Xi,uo.weeksInWeekYear=qi,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=Zi,uo.date=eo,uo.day=uo.days=Wt,uo.weekday=Vt,uo.isoWeekday=zt,uo.dayOfYear=to,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=yr,uo.utc=vr,uo.local=br,uo.parseZone=wr,uo.hasAlignedHourOffset=_r,uo.isDST=Er,uo.isLocal=Tr,uo.isUtcOffset=Mr,uo.isUtc=kr,uo.isUTC=kr,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=M("dates accessor is deprecated. Use date instead.",eo),uo.months=M("months accessor is deprecated. Use month instead",ht),uo.years=M("years accessor is deprecated. Use year instead",gt),uo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),uo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=H.prototype;function mo(e,t,n,r){var i=bn(),o=p().set(r,t);return i[n](o,e)}function yo(e,t,n){if(c(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}
1175
1184
  // ()
1176
1185
  // (5)
1177
1186
  // (fmt, 5)
@@ -1180,23 +1189,23 @@ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){r
1180
1189
  // (true, 5)
1181
1190
  // (true, fmt, 5)
1182
1191
  // (true, fmt)
1183
- function go(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=bn(),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 yo(e,t,"months")}function bo(e,t){return yo(e,t,"monthsShort")}function _o(e,t,n){return go(e,t,n,"weekdays")}function wo(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(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=P,po.eras=Di,po.erasParse=Pi,po.erasConvertYear=Bi,po.erasAbbrRegex=Ci,po.erasNameRegex=Li,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=dt,po.week=Mt,po.firstDayOfYear=xt,po.firstDayOfWeek=Ot,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,yn("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")}}),
1192
+ function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),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 yo(e,t,"months")}function bo(e,t){return yo(e,t,"monthsShort")}function wo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=F,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=K,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=P,po.eras=Oi,po.erasParse=Pi,po.erasConvertYear=Bi,po.erasAbbrRegex=Li,po.erasNameRegex=Ci,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=Mt,po.firstDayOfYear=Dt,po.firstDayOfWeek=xt,po.weekdays=Yt,po.weekdaysMin=$t,po.weekdaysShort=Ut,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,yn("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")}}),
1184
1193
  // Side effect imports
1185
- r.lang=M("moment.lang is deprecated. Use moment.locale instead.",yn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bn);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()}
1194
+ r.lang=M("moment.lang is deprecated. Use moment.locale instead.",yn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bn);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=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
1186
1195
  // supports only 2.0-style add(1, 's') or add(duration)
1187
1196
  function ko(e,t){return Mo(this,e,t,1)}
1188
1197
  // supports only 2.0-style subtract(1, 's') or subtract(duration)
1189
- function Oo(e,t){return Mo(this,e,t,-1)}function xo(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;
1198
+ function xo(e,t){return Mo(this,e,t,-1)}function Do(e){return e<0?Math.floor(e):Math.ceil(e)}function Oo(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;
1190
1199
  // if we have a mix of positive and negative values, bubble down first
1191
1200
  // check: https://github.com/moment/moment/issues/2166
1192
- return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*xo(Bo(a)+s),s=0,a=0),
1201
+ return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Do(Bo(a)+s),s=0,a=0),
1193
1202
  // The following code bubbles up values, see the tests for
1194
1203
  // examples of what that means.
1195
- 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+=
1204
+ l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,s+=ue(n/24),a+=
1196
1205
  // convert days to months
1197
- i=le(Po(s)),s-=xo(Bo(i)),
1206
+ i=ue(Po(s)),s-=Do(Bo(i)),
1198
1207
  // 12 months -> 1 year
1199
- r=le(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function Po(e){
1208
+ r=ue(a/12),a%=12,l.days=s,l.months=a,l.years=r,this}function Po(e){
1200
1209
  // 400 years have 146097 days (taking into account leap year rules)
1201
1210
  // 400 years have 12 months === 4800
1202
1211
  return 4800*e/146097}function Bo(e){
@@ -1207,7 +1216,7 @@ t=this._days+Math.round(Bo(this._months)),e){case"week":return t/7+r/6048e5;case
1207
1216
  // Math.floor prevents floating point math errors here
1208
1217
  case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
1209
1218
  // TODO: Use this.as('ms')?
1210
- function Ao(){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 Fo=No("ms"),Lo=No("s"),Co=No("m"),Ro=No("h"),Io=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
1219
+ function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Fo(e){return function(){return this.as(e)}}var No=Fo("ms"),Co=Fo("s"),Lo=Fo("m"),Ro=Fo("h"),Io=Fo("d"),Yo=Fo("w"),Uo=Fo("M"),$o=Fo("Q"),Go=Fo("y");function jo(){return Or(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 ue(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
1211
1220
  s:45,// seconds to minute
1212
1221
  m:45,// minutes to hour
1213
1222
  h:22,// hours to day
@@ -1215,11 +1224,11 @@ d:26,// days to month/week
1215
1224
  w:null,// weeks to month
1216
1225
  M:11};
1217
1226
  // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
1218
- 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)}
1227
+ function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=Or(e).abs(),o=ts(i.as("s")),s=ts(i.as("m")),a=ts(i.as("h")),l=ts(i.as("d")),u=ts(i.as("M")),c=ts(i.as("w")),h=ts(i.as("y")),d=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]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=t,d[3]=+e>0,d[4]=r,rs.apply(null,d)}
1219
1228
  // This function allows you to set the rounding function for relative time strings
1220
1229
  function os(e){return void 0===e?ts:"function"==typeof e&&(ts=e,!0)}
1221
1230
  // This function allows you to set a threshold for relative time strings
1222
- function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.ss=t-1),!0))}function as(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ns;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ns,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=is(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var us=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function hs(){
1231
+ function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.ss=t-1),!0))}function as(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ns;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ns,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=is(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ls=Math.abs;function us(e){return(e>0)-(e<0)||+e}function cs(){
1223
1232
  // for ISO strings we do not use the normal bubbling rules:
1224
1233
  // * milliseconds bubble up until they become hours
1225
1234
  // * days do not bubble at all
@@ -1227,19 +1236,19 @@ function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.
1227
1236
  // This is because there is no context-free conversion between hours and days
1228
1237
  // (think of clock changes)
1229
1238
  // and also not between days and months (28-31 days per month)
1230
- 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?(
1239
+ if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a,l=ls(this._milliseconds)/1e3,u=ls(this._days),c=ls(this._months),h=this.asSeconds();return h?(
1231
1240
  // 3600 seconds -> 60 minutes -> 1 hour
1232
- e=le(u/60),t=le(e/60),u%=60,e%=60,
1241
+ e=ue(l/60),t=ue(e/60),l%=60,e%=60,
1233
1242
  // 12 months -> 1 year
1234
- n=le(h/12),h%=12,
1243
+ n=ue(c/12),c%=12,
1235
1244
  // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
1236
- 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=Oo,cs.as=Ho,cs.asMilliseconds=Fo,cs.asSeconds=Lo,cs.asMinutes=Co,cs.asHours=Ro,cs.asDays=Io,cs.asWeeks=Yo,cs.asMonths=Uo,cs.asQuarters=Go,cs.asYears=$o,cs.valueOf=Ao,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,
1245
+ r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=ko,hs.subtract=xo,hs.as=Ho,hs.asMilliseconds=No,hs.asSeconds=Co,hs.asMinutes=Lo,hs.asHours=Ro,hs.asDays=Io,hs.asWeeks=Yo,hs.asMonths=Uo,hs.asQuarters=$o,hs.asYears=Go,hs.valueOf=Ao,hs._bubble=Oo,hs.clone=jo,hs.get=Wo,hs.milliseconds=zo,hs.seconds=Zo,hs.minutes=Xo,hs.hours=qo,hs.days=Ko,hs.weeks=es,hs.months=Jo,hs.years=Qo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ai,hs.localeData=ui,hs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=li,
1237
1246
  // FORMATTING
1238
1247
  Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),
1239
1248
  // PARSING
1240
- Fe("x",Pe),Fe("X",Ae),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))})),
1249
+ Ne("x",Pe),Ne("X",Ae),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))})),
1241
1250
  //! moment.js
1242
- 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=yn,r.invalid=v,r.duration=Dr,r.isMoment=S,r.weekdays=_o,r.parseZone=co,r.localeData=bn,r.isDuration=ur,r.monthsShort=bo,r.weekdaysMin=Eo,r.defineLocale=gn,r.updateLocale=vn,r.locales=_n,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Gr,r.prototype=lo,
1251
+ r.version="2.29.4",i(qn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=vo,r.isDate=h,r.locale=yn,r.invalid=v,r.duration=Or,r.isMoment=S,r.weekdays=wo,r.parseZone=ho,r.localeData=bn,r.isDuration=lr,r.monthsShort=bo,r.weekdaysMin=Eo,r.defineLocale=gn,r.updateLocale=vn,r.locales=wn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=$r,r.prototype=uo,
1243
1252
  // currently HTML5 input type only supports 24-hour formats
1244
1253
  r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
1245
1254
  DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
@@ -1251,84 +1260,86 @@ TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
1251
1260
  WEEK:"GGGG-[W]WW",// <input type="week" />
1252
1261
  MONTH:"YYYY-MM"},r}()}));
1253
1262
  /* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.59.2 */
1254
- function Rr(e){let t;function n(e,t){/*isLoggedIn*/
1255
- return e[6]?Gr:/*funMode*/e[11]?Ur:void 0}let r=n(e),i=r&&r(e);return{c(){t=y("div"),i&&i.c(),_(t,"class","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()}}}
1256
- // (353:4) {#if hasErrors}
1257
- function Ir(e){let t;return{c(){t=y("p"),t.textContent="500 Error - Internal Server Error.",_(t,"class","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
1258
- // (350:2) {#if isLoading}
1259
- function Yr(e){let t;return{c(){t=y("p"),t.textContent="Loading, please wait ...",_(t,"class","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
1260
- // (392:10) {#if funMode}
1261
- function Ur(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,O,x,D,P,B,H,A,N,F,L,C,R,I=/*$_*/e[22]("signIn")+"",Y=/*$_*/e[22]("register")+"";function U(e,t){/*isFullscreen*/
1262
- return e[17]?jr:$r}let G=U(e),$=G(e),j=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Wr();return{c(){t=y("div"),n=y("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</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=y("p"),o=y("span"),a=g(/*time*/e[4]),u=v(),l=y("div"),h=v(),f=y("div"),T=y("div"),M=y("iframe"),O=v(),x=y("div"),D=y("div"),P=y("button"),B=g(I),H=v(),A=y("button"),N=g(Y),F=v(),$.c(),L=v(),j&&j.c(),_(n,"class","backButton"),_(i,"class","Time"),_(t,"class","GamePageIntegratedTopSection"),_(M,"title","Games"),_(M,"class","GamesContainer"),_(M,"aria-hidden","false"),c(M.src,k=/*game*/e[10].launchUrl)||_(M,"src",k),_(P,"class","LoginButton"),_(A,"class","RegisterButton"),_(D,"class","ButtonsContainer ButtonsContainerFunMode"),_(x,"class","BottomGame"),_(T,"id","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"),_(f,"id","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),
1263
- /*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),
1264
- /*iframe_1_binding_1*/e[58](M),d(T,O),d(T,x),d(x,D),d(D,P),d(P,B),d(D,H),d(D,A),d(A,N),d(x,F),$.m(x,null),
1265
- /*div3_binding_1*/e[63](x),
1266
- /*div4_binding*/e[64](T),d(f,L),j&&j.m(f,null)
1267
- /*div5_binding*/,e[65](f),C||(R=[b(n,"click",/*click_handler_4*/e[56]),b(P,"click",/*click_handler_5*/e[59]),b(A,"click",/*click_handler_6*/e[60])],C=!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)&&_(M,"src",k),/*$_*/4194304&t[0]&&I!==(I=/*$_*/e[22]("signIn")+"")&&w(B,I),/*$_*/4194304&t[0]&&Y!==(Y=/*$_*/e[22]("register")+"")&&w(N,Y),G===(G=U(e))&&$?$.p(e,t):($.d(1),$=G(e),$&&($.c(),$.m(x,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=Wr(),j.c(),j.m(f,null)),/*isFullscreen*/131072&t[0]&&S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
1268
- /*p_binding_1*/,e[57](null),n&&m(h),n&&m(f)
1269
- /*iframe_1_binding_1*/,e[58](null),$.d(),
1270
- /*div3_binding_1*/e[63](null),
1271
- /*div4_binding*/e[64](null),j&&j.d()
1272
- /*div5_binding*/,e[65](null),C=!1,s(R)}}}
1273
- // (357:8) {#if isLoggedIn}
1274
- function Gr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,O,x,D,P,B,H,A,N,F,L=/*$_*/e[22]("deposit")+"",C=/*haspanicbutton*/"true"===e[0]&&Vr(e);function R(e,t){/*isFullscreen*/
1275
- return e[17]?Zr:zr}let I=R(e),Y=I(e),U=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Xr();return{c(){t=y("div"),n=y("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</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=y("p"),o=y("span"),a=g(/*time*/e[4]),u=v(),l=y("button"),h=g(L),f=v(),T=y("div"),M=y("div"),k=y("iframe"),P=v(),B=y("div"),C&&C.c(),H=v(),Y.c(),A=v(),U&&U.c(),_(n,"class","backButton"),_(i,"class","Time"),_(l,"class","DepositButton"),_(t,"class","GamePageIntegratedTopSection"),_(k,"title","Games"),_(k,"id","IframeGame"),_(k,"class","GamesContainer"),_(k,"aria-hidden","false"),c(k.src,O=/*game*/e[10].launchUrl)||_(k,"src",O),_(k,"width",x=/*gameContainerWidth*/e[14]+"px"),_(k,"height",D=/*gameContainerHeight*/e[15]+"px"),_(B,"class","BottomGame BottomGameLoggedin"),_(M,"id","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"),_(T,"id","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),
1276
- /*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),
1277
- /*iframe_1_binding*/e[49](k),d(M,P),d(M,B),C&&C.m(B,null),d(B,H),Y.m(B,null),
1278
- /*div1_binding*/e[53](B),
1279
- /*div2_binding*/e[54](M),d(T,A),U&&U.m(T,null)
1280
- /*div3_binding*/,e[55](T),N||(F=[b(n,"click",/*click_handler*/e[46]),b(l,"click",/*click_handler_1*/e[48])],N=!0)},p(e,t){/*time*/16&t[0]&&w(a,/*time*/e[4]),/*$_*/4194304&t[0]&&L!==(L=/*$_*/e[22]("deposit")+"")&&w(h,L),/*game*/1024&t[0]&&!c(k.src,O=/*game*/e[10].launchUrl)&&_(k,"src",O),/*gameContainerWidth*/16384&t[0]&&x!==(x=/*gameContainerWidth*/e[14]+"px")&&_(k,"width",x),/*gameContainerHeight*/32768&t[0]&&D!==(D=/*gameContainerHeight*/e[15]+"px")&&_(k,"height",D),/*haspanicbutton*/"true"===e[0]?C?C.p(e,t):(C=Vr(e),C.c(),C.m(B,H)):C&&(C.d(1),C=null),I===(I=R(e))&&Y?Y.p(e,t):(Y.d(1),Y=I(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=Xr(),U.c(),U.m(T,null)),/*isFullscreen*/131072&t[0]&&S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
1281
- /*p_binding*/,e[47](null),n&&m(f),n&&m(T)
1282
- /*iframe_1_binding*/,e[49](null),C&&C.d(),Y.d(),
1283
- /*div1_binding*/e[53](null),
1284
- /*div2_binding*/e[54](null),U&&U.d()
1285
- /*div3_binding*/,e[55](null),N=!1,s(F)}}}
1286
- // (412:18) {:else}
1287
- function $r(e){let t,n,i;return{c(){t=y("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>',_(t,"class","FullscreenButton"),_(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=b(t,"click",/*click_handler_8*/e[62]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1288
- // (408:18) {#if isFullscreen}
1289
- function jr(e){let t,n,i;return{c(){t=y("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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>',_(t,"class","FullscreenButton")},m(r,o){p(r,t,o),n||(i=b(t,"click",/*click_handler_7*/e[61]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1290
- // (419:14) {#if gamebanneractive == 'true' && !isFullscreen}
1291
- function Wr(e){let t;return{c(){t=y("div"),t.innerHTML="<h3>Your banner here</h3>",_(t,"class","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}
1292
- // (369:16) {#if haspanicbutton === "true"}
1293
- function Vr(e){let t,n,r,i=/*$_*/e[22]("breakButton")+"";return{c(){t=y("div"),n=y("button"),r=g(i),_(n,"class","PanicButton "+("PC"!==Hr(/*userAgent*/e[23])?"PanicButtonMobile":"")),_(n,"part","PanicButton "+("PC"!==Hr(/*userAgent*/e[23])?"PanicButtonMobile":"")),S(n,"PanicButtonAnimation",/*panicLoading*/e[9]),_(t,"class","PanicSection")},m(i,o){p(i,t,o),d(t,n),d(n,r),
1294
- /*button_binding*/e[50](n)},p(e,t){/*$_*/4194304&t[0]&&i!==(i=/*$_*/e[22]("breakButton")+"")&&w(r,i),/*panicLoading*/512&t[0]&&S(n,"PanicButtonAnimation",/*panicLoading*/e[9])},d(n){n&&m(t)
1295
- /*button_binding*/,e[50](null)}}}
1296
- // (378:16) {:else}
1297
- function zr(e){let t,n,i;return{c(){t=y("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>',_(t,"class","FullscreenButton")},m(r,o){p(r,t,o),n||(i=b(t,"click",/*click_handler_3*/e[52]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1298
- // (374:16) {#if isFullscreen}
1299
- function Zr(e){let t,n,i;return{c(){t=y("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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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>',_(t,"class","FullscreenButton")},m(r,o){p(r,t,o),n||(i=b(t,"click",/*click_handler_2*/e[51]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
1300
- // (385:12) {#if gamebanneractive == 'true' && !isFullscreen}
1301
- function Xr(e){let t;return{c(){t=y("div"),t.innerHTML="<h3>Your banner here</h3>",_(t,"class","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}function qr(e){let t;function n(e,t){/*isLoading*/
1302
- return e[8]?Yr:/*hasErrors*/e[7]?Ir:Rr}let i=n(e),o=i(e);return{c(){t=y("div"),o.c(),this.c=r},m(n,r){p(n,t,r),o.m(t,null),
1303
- /*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(),
1304
- /*div_binding*/e[66](null)}}}function Kr(e,t,n){let r;var i,o;i=Br,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,y,g,v,b,_,w,E,S,{endpoint:T=""}=t,{lang:M=""}=t,{session:O=""}=t,{userid:D=""}=t,{clientstyling:P=""}=t,{clientstylingurl:B=""}=t,{translationurl:H=""}=t,{loginurl:A=""}=t,{registerurl:N=""}=t,{depositurl:F=""}=t,{loginevent:L=""}=t,{registerevent:C=""}=t,{depositevent:R=""}=t,{clockformat:I=""}=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}){cr.subscribe((n=>{null==n&&(Yn.set(t),cr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
1263
+ function zr(e){let t;function n(e,t){/*isLoggedIn*/
1264
+ return e[15]?Kr:/*funMode*/e[20]?qr:void 0}let r=n(e),i=r&&r(e);return{c(){t=g("div"),i&&i.c(),E(t,"class","CasinoIntegratedGamePage")},m(e,n){m(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&&y(t),i&&i.d()}}}
1265
+ // (367:4) {#if hasErrors}
1266
+ function Zr(e){let t;return{c(){t=g("p"),t.textContent="500 Error - Internal Server Error.",E(t,"class","SearchLoading")},m(e,n){m(e,t,n)},p:r,d(e){e&&y(t)}}}
1267
+ // (364:2) {#if isLoading}
1268
+ function Xr(e){let t;return{c(){t=g("p"),t.textContent="Loading, please wait ...",E(t,"class","SearchLoading")},m(e,n){m(e,t,n)},p:r,d(e){e&&y(t)}}}
1269
+ // (430:10) {#if funMode}
1270
+ function qr(e){let t,n,r,i,o,a,l,u,c,d,f,v,S,x,D,O,P,B,H,A,F,N,C,L,R,I=/*$_*/e[32]("signIn")+"",Y=/*$_*/e[32]("register")+"";function U(e,t){/*isFullscreen*/
1271
+ return e[26]?Qr:Jr}let $=U(e),G=$(e),j=/*gamebanneractive*/"true"==e[10]&&!/*isFullscreen*/e[26]&&ei();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-button-typography, var(--emfe-w-color-white, #FFFFFF));}</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=w(),i=g("p"),o=g("span"),a=b(/*time*/e[13]),l=w(),u=g("div"),c=w(),d=g("div"),f=g("div"),v=g("iframe"),x=w(),D=g("div"),O=g("div"),P=g("button"),B=b(I),H=w(),A=g("button"),F=b(Y),N=w(),G.c(),C=w(),j&&j.c(),E(n,"class","backButton"),E(i,"class","Time"),E(t,"class","GamePageIntegratedTopSection"),E(v,"title","Games"),E(v,"class","GamesContainer"),E(v,"aria-hidden","false"),h(v.src,S=/*game*/e[19].launchUrl)||E(v,"src",S),E(P,"class","LoginButton"),E(A,"class","RegisterButton"),E(O,"class","ButtonsContainer ButtonsContainerFunMode"),E(D,"class","BottomGame"),E(f,"id","IframeGame"),M(f,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),M(f,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),M(f,"max-width",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].width?Math.floor(/*game*/e[19].width)+"px":"1280px"),M(f,"max-height",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),E(d,"id","IframeContainer"),k(d,"FullsScreenLayout",/*isFullscreen*/e[26])},m(s,h){m(s,t,h),p(t,n),p(t,r),p(t,i),p(i,o),p(o,a),
1272
+ /*p_binding_1*/e[64](i),p(t,l),p(t,u),m(s,c,h),m(s,d,h),p(d,f),p(f,v),
1273
+ /*iframe_1_binding_1*/e[65](v),p(f,x),p(f,D),p(D,O),p(O,P),p(P,B),p(O,H),p(O,A),p(A,F),p(D,N),G.m(D,null),
1274
+ /*div3_binding_1*/e[70](D),
1275
+ /*div4_binding_1*/e[71](f),p(d,C),j&&j.m(d,null)
1276
+ /*div5_binding*/,e[72](d),L||(R=[_(n,"click",/*click_handler_6*/e[63]),_(P,"click",/*click_handler_7*/e[66]),_(A,"click",/*click_handler_8*/e[67])],L=!0)},p(e,t){/*time*/8192&t[0]&&T(a,/*time*/e[13]),/*game*/524288&t[0]&&!h(v.src,S=/*game*/e[19].launchUrl)&&E(v,"src",S),/*$_*/2&t[1]&&I!==(I=/*$_*/e[32]("signIn")+"")&&T(B,I),/*$_*/2&t[1]&&Y!==(Y=/*$_*/e[32]("register")+"")&&T(F,Y),$===($=U(e))&&G?G.p(e,t):(G.d(1),G=$(e),G&&(G.c(),G.m(D,null))),/*isFullscreen, definitiveIframeWidth*/201326592&t[0]&&M(f,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),/*isFullscreen, definitiveIframeHeight*/335544320&t[0]&&M(f,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),/*isFullscreen, isModal, game*/69730304&t[0]&&M(f,"max-width",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].width?Math.floor(/*game*/e[19].width)+"px":"1280px"),/*isFullscreen, isModal, game*/69730304&t[0]&&M(f,"max-height",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[10]||/*isFullscreen*/e[26]?j&&(j.d(1),j=null):j||(j=ei(),j.c(),j.m(d,null)),/*isFullscreen*/67108864&t[0]&&k(d,"FullsScreenLayout",/*isFullscreen*/e[26])},d(n){n&&y(t)
1277
+ /*p_binding_1*/,e[64](null),n&&y(c),n&&y(d)
1278
+ /*iframe_1_binding_1*/,e[65](null),G.d(),
1279
+ /*div3_binding_1*/e[70](null),
1280
+ /*div4_binding_1*/e[71](null),j&&j.d()
1281
+ /*div5_binding*/,e[72](null),L=!1,s(R)}}}
1282
+ // (371:8) {#if isLoggedIn}
1283
+ function Kr(e){let t,n,r,i,o,a,l,u,c,d,f,v,S,x,D,O,P,B,H,A,F,N,C,L=/*$_*/e[32]("deposit")+"",R=/*shortCashierActivated*/e[31]&&ti(e),I=/*haspanicbutton*/"true"===e[9]&&ni(e);function Y(e,t){/*isFullscreen*/
1284
+ return e[26]?ii:ri}let U=Y(e),$=U(e),G=/*gamebanneractive*/"true"==e[10]&&!/*isFullscreen*/e[26]&&oi();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-button-typography, var(--emfe-w-color-white, #FFFFFF));}</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=w(),i=g("p"),o=g("span"),a=b(/*time*/e[13]),l=w(),u=g("div"),c=b(L),d=w(),R&&R.c(),f=w(),v=g("div"),S=g("div"),x=g("iframe"),B=w(),H=g("div"),I&&I.c(),A=w(),$.c(),F=w(),G&&G.c(),E(n,"class","backButton"),E(i,"class","Time"),E(u,"class","DepositButton"),E(t,"class","GamePageIntegratedTopSection"),E(x,"title","Games"),E(x,"id","IframeGame"),E(x,"class","GamesContainer"),E(x,"aria-hidden","false"),h(x.src,D=/*game*/e[19].launchUrl)||E(x,"src",D),E(x,"width",O=/*gameContainerWidth*/e[23]+"px"),E(x,"height",P=/*gameContainerHeight*/e[24]+"px"),E(H,"class","BottomGame BottomGameLoggedin"),E(S,"id","IframeGame"),M(S,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),M(S,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),M(S,"max-width",/*isFullscreen*/e[26]?"none":/*game*/e[19].width?/*game*/e[19].width+"px":"1280px"),M(S,"max-height",/*isFullscreen*/e[26]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),E(v,"id","IframeContainer"),k(v,"FullsScreenLayout",/*isFullscreen*/e[26])},m(s,h){m(s,t,h),p(t,n),p(t,r),p(t,i),p(i,o),p(o,a),
1285
+ /*p_binding*/e[52](i),p(t,l),p(t,u),p(u,c),p(t,d),R&&R.m(t,null),m(s,f,h),m(s,v,h),p(v,S),p(S,x),
1286
+ /*iframe_1_binding*/e[56](x),p(S,B),p(S,H),I&&I.m(H,null),p(H,A),$.m(H,null),
1287
+ /*div2_binding*/e[60](H),
1288
+ /*div3_binding*/e[61](S),p(v,F),G&&G.m(v,null)
1289
+ /*div4_binding*/,e[62](v),N||(C=[_(n,"click",/*click_handler*/e[51]),_(u,"click",/*click_handler_1*/e[53])],N=!0)},p(e,n){/*time*/8192&n[0]&&T(a,/*time*/e[13]),/*$_*/2&n[1]&&L!==(L=/*$_*/e[32]("deposit")+"")&&T(c,L),/*shortCashierActivated*/e[31]?R?R.p(e,n):(R=ti(e),R.c(),R.m(t,null)):R&&(R.d(1),R=null),/*game*/524288&n[0]&&!h(x.src,D=/*game*/e[19].launchUrl)&&E(x,"src",D),/*gameContainerWidth*/8388608&n[0]&&O!==(O=/*gameContainerWidth*/e[23]+"px")&&E(x,"width",O),/*gameContainerHeight*/16777216&n[0]&&P!==(P=/*gameContainerHeight*/e[24]+"px")&&E(x,"height",P),/*haspanicbutton*/"true"===e[9]?I?I.p(e,n):(I=ni(e),I.c(),I.m(H,A)):I&&(I.d(1),I=null),U===(U=Y(e))&&$?$.p(e,n):($.d(1),$=U(e),$&&($.c(),$.m(H,null))),/*isFullscreen, definitiveIframeWidth*/201326592&n[0]&&M(S,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),/*isFullscreen, definitiveIframeHeight*/335544320&n[0]&&M(S,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),/*isFullscreen, game*/67633152&n[0]&&M(S,"max-width",/*isFullscreen*/e[26]?"none":/*game*/e[19].width?/*game*/e[19].width+"px":"1280px"),/*isFullscreen, game*/67633152&n[0]&&M(S,"max-height",/*isFullscreen*/e[26]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[10]||/*isFullscreen*/e[26]?G&&(G.d(1),G=null):G||(G=oi(),G.c(),G.m(v,null)),/*isFullscreen*/67108864&n[0]&&k(v,"FullsScreenLayout",/*isFullscreen*/e[26])},d(n){n&&y(t)
1290
+ /*p_binding*/,e[52](null),R&&R.d(),n&&y(f),n&&y(v)
1291
+ /*iframe_1_binding*/,e[56](null),I&&I.d(),$.d(),
1292
+ /*div2_binding*/e[60](null),
1293
+ /*div3_binding*/e[61](null),G&&G.d()
1294
+ /*div4_binding*/,e[62](null),N=!1,s(C)}}}
1295
+ // (450:18) {:else}
1296
+ function Jr(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>',E(t,"class","FullscreenButton"),E(t,"part","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_10*/e[69]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
1297
+ // (446:18) {#if isFullscreen}
1298
+ function Qr(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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_9*/e[68]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
1299
+ // (457:14) {#if gamebanneractive == 'true' && !isFullscreen}
1300
+ function ei(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",E(t,"class","BannerSection")},m(e,n){m(e,t,n)},d(e){e&&y(t)}}}
1301
+ // (378:12) {#if shortCashierActivated}
1302
+ function ti(e){let t,n,r,i,o,a,l,u,c;return{c(){t=g("div"),n=w(),r=g("div"),i=g("div"),o=g("div"),o.innerHTML='<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="2" x2="18" y2="18" stroke="black" stroke-width="2"></line><line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"></line></svg>',a=w(),l=g("player-deposit"),E(t,"class","ShortCashierWindow"),E(o,"class","ClosePopUpButtonShortCashier"),S(l,"endpoint",/*endpoint*/e[0]),S(l,"session",/*session*/e[2]),S(l,"playerid",/*userid*/e[3]),S(l,"lang",/*lang*/e[1]),S(l,"hasdefaultamount",/*hasdefaultamount*/e[7]),S(l,"playercurrency",/*playercurrency*/e[8]),S(l,"shortcashierenabled",/*shortcashierenabled*/e[6]),S(l,"clientstyling",/*clientstyling*/e[4]),S(l,"clientstylingurl",/*clientstylingurl*/e[5]),E(i,"class","ShortCashierContainerMobile"),E(r,"class","ShortCashierContainerWrapperMobile")},m(s,h){m(s,t,h),m(s,n,h),m(s,r,h),p(r,i),p(i,o),p(i,a),p(i,l),u||(c=[_(t,"click",/*click_handler_2*/e[54]),_(o,"click",/*click_handler_3*/e[55])],u=!0)},p(e,t){/*endpoint*/1&t[0]&&S(l,"endpoint",/*endpoint*/e[0]),/*session*/4&t[0]&&S(l,"session",/*session*/e[2]),/*userid*/8&t[0]&&S(l,"playerid",/*userid*/e[3]),/*lang*/2&t[0]&&S(l,"lang",/*lang*/e[1]),/*hasdefaultamount*/128&t[0]&&S(l,"hasdefaultamount",/*hasdefaultamount*/e[7]),/*playercurrency*/256&t[0]&&S(l,"playercurrency",/*playercurrency*/e[8]),/*shortcashierenabled*/64&t[0]&&S(l,"shortcashierenabled",/*shortcashierenabled*/e[6]),/*clientstyling*/16&t[0]&&S(l,"clientstyling",/*clientstyling*/e[4]),/*clientstylingurl*/32&t[0]&&S(l,"clientstylingurl",/*clientstylingurl*/e[5])},d(e){e&&y(t),e&&y(n),e&&y(r),u=!1,s(c)}}}
1303
+ // (407:16) {#if haspanicbutton === "true"}
1304
+ function ni(e){let t,n,r,i=/*$_*/e[32]("breakButton")+"";return{c(){t=g("div"),n=g("button"),r=b(i),E(n,"class","PanicButton "+("PC"!==Nr(/*userAgent*/e[33])?"PanicButtonMobile":"")),E(n,"part","PanicButton "+("PC"!==Nr(/*userAgent*/e[33])?"PanicButtonMobile":"")),k(n,"PanicButtonAnimation",/*panicLoading*/e[18]),E(t,"class","PanicSection")},m(i,o){m(i,t,o),p(t,n),p(n,r),
1305
+ /*button_binding*/e[57](n)},p(e,t){/*$_*/2&t[1]&&i!==(i=/*$_*/e[32]("breakButton")+"")&&T(r,i),/*panicLoading*/262144&t[0]&&k(n,"PanicButtonAnimation",/*panicLoading*/e[18])},d(n){n&&y(t)
1306
+ /*button_binding*/,e[57](null)}}}
1307
+ // (416:16) {:else}
1308
+ function ri(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>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_5*/e[59]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
1309
+ // (412:16) {#if isFullscreen}
1310
+ function ii(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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" 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>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_4*/e[58]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
1311
+ // (423:12) {#if gamebanneractive == 'true' && !isFullscreen}
1312
+ function oi(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",E(t,"class","BannerSection")},m(e,n){m(e,t,n)},d(e){e&&y(t)}}}function si(e){let t;function n(e,t){/*isLoading*/
1313
+ return e[17]?Xr:/*hasErrors*/e[16]?Zr:zr}let i=n(e),o=i(e);return{c(){t=g("div"),o.c(),this.c=r},m(n,r){m(n,t,r),o.m(t,null),
1314
+ /*div_binding*/e[73](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&&y(t),o.d(),
1315
+ /*div_binding*/e[73](null)}}}function ai(e,t,n){let r;f(e,Fr,(e=>n(32,r=e)));let i,o,s,a,l,u,c,h,d,p,m,y,g,v,b,w,_,{endpoint:E=""}=t,{lang:S=""}=t,{session:T=""}=t,{userid:M=""}=t,{clientstyling:k=""}=t,{clientstylingurl:x=""}=t,{translationurl:D=""}=t,{loginurl:P=""}=t,{registerurl:H=""}=t,{depositurl:A=""}=t,{loginevent:F=""}=t,{registerevent:N=""}=t,{depositevent:C=""}=t,{shortcashierenabled:L=""}=t,{hasdefaultamount:R=""}=t,{playercurrency:I=""}=t,{clockformat:Y=""}=t,{haspanicbutton:U="false"}=t,{playforfun:$="true"}=t,{checksession:G="true"}=t,{gamebanneractive:j="false"}=t,{gameid:W=""}=t,V=!1,z=!1,Z=!0,X=!1,q=0,K=!1,J=!1,Q=!0,ee=!1,te=window.navigator.userAgent,ne=!1;!function({withLocale:e,translations:t}){pr.subscribe((n=>{null==n&&(Gn.set(t),pr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
1305
1316
  /*dictionary.set(translations);
1306
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Nr).forEach((e=>{Ar(e,Nr[e])}));
1317
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Lr).forEach((e=>{Cr(e,Lr[e])}));
1307
1318
  // @TODO game typescript model type
1308
- const te=(e,t)=>{let r=new URL(`${T}/v1/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),
1319
+ const re=(e,t)=>{let r=new URL(`${E}/v1/casino/games/${e}`);r.searchParams.append("language",S),r.searchParams.append("expand","vendor"),n(21,Q=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(19,u=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",S),
1309
1320
  // @TODO wtf? session check or go home
1310
1321
  // Maybe we should check if the session is valid, somehow?
1311
- u&&u.length>0&&(n(6,W=!0),t.searchParams.append("_sid",u),t.searchParams.append("funMode","false")),e.launchUrl=t,w.scrollIntoView(),e})(e[0])),c.launchUrl&&(q=!0,n(11,K="true"==U&&c.hasFunMode),"true"==U&&c.hasAnonymousFunMode)}),(e=>{console.error("There was an error",e),n(7,V=!0)})).then((()=>{d&&(re(),J||ne())}))},ne=()=>{n(18,b=c.width),n(19,_=c.height),g=c.width,v=c.height},re=()=>{let e=getComputedStyle(d),t=getComputedStyle(y);n(14,p=parseInt(e.width.slice(0,-2))),n(15,m=parseInt(e.height.slice(0,-2)));const r=c.width/(c.height+100);g=parseInt(t.width),v=parseInt(t.height),
1322
+ s&&s.length>0&&(n(15,V=!0),t.searchParams.append("_sid",s),t.searchParams.append("funMode","false")),e.launchUrl=t,b.scrollIntoView(),e})(e[0])),u.launchUrl&&(K=!0,n(20,J="true"==$&&u.hasFunMode),"true"==$&&u.hasAnonymousFunMode)}),(e=>{console.error("There was an error",e),n(16,z=!0)})).then((()=>{c&&(oe(),Q||ie())}))},ie=()=>{n(27,g=u.width),n(28,v=u.height),m=u.width,y=u.height},oe=()=>{let e=getComputedStyle(c),t=getComputedStyle(p);n(23,h=parseInt(e.width.slice(0,-2))),n(24,d=parseInt(e.height.slice(0,-2)));const r=u.width/(u.height+100);m=parseInt(t.width),y=parseInt(t.height),
1312
1323
  // resize logic for maintaining game ratio when resizing
1313
- p/r>m-E.clientHeight-S.clientHeight?(v=m-E.clientHeight-S.clientHeight,g=m*r):(g=p,v=p/r),n(18,b=g?Math.floor(g)+"px":"1280px"),n(19,_=v?Math.floor(v)+"px":"720px")},ie=()=>{
1324
+ h/r>d-w.clientHeight-_.clientHeight?(y=d-w.clientHeight-_.clientHeight,m=d*r):(m=h,y=h/r),n(27,g=m?Math.floor(m)+"px":"1280px"),n(28,v=y?Math.floor(y)+"px":"720px")},se=()=>{
1314
1325
  // sent to modal component a flag (detailsObtained) by witch to determine if a game is open
1315
- window.postMessage({type:"GameStateOnResize",detailsObtained:q},window.location.href),
1326
+ window.postMessage({type:"GameStateOnResize",detailsObtained:K},window.location.href),
1316
1327
  // make sure that a game is open before trying to get the element properties
1317
- q&&d&&"PC"==Hr(ee)&&re()},oe=()=>{L&&(window.postMessage({type:L,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),A&&(
1328
+ K&&c&&"PC"==Nr(te)&&oe()},ae=()=>{F&&(window.postMessage({type:F,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),P&&(
1318
1329
  // @ts-ignore
1319
- window.location=A),
1330
+ window.location=P),
1320
1331
  //Analytics event
1321
- "function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"GeneralPlayerRegisterForm"})},se=()=>{C&&(window.postMessage({type:C,transition:"Register"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),N&&(
1332
+ "function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"GeneralPlayerRegisterForm"})},le=()=>{N&&(window.postMessage({type:N,transition:"Register"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),H&&(
1322
1333
  // @ts-ignore
1323
- window.location=N),
1334
+ window.location=H),
1324
1335
  //Analytics event
1325
- "function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"IntegratedGamePage"})},ae=()=>{R&&(window.postMessage({type:R},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href),
1336
+ "function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"IntegratedGamePage"})},ue=()=>{L?(n(31,ne=!0),window.postMessage({type:"DisableScroll"},window.location.href)):C&&(window.postMessage({type:C},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href),
1326
1337
  //Analytics event
1327
- "function"==typeof gtag&&gtag("event","GoToDeposit",{context:"IntegratedGamePage"})),F&&(
1338
+ "function"==typeof gtag&&gtag("event","GoToDeposit",{context:"IntegratedGamePage"})),A&&!L&&(
1328
1339
  // @ts-ignore
1329
- window.location=F)};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():d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen()),n(17,Q=!Q)},he=setInterval((()=>{n(4,s=I?Cr().format(I):Cr().format("LTS"))}),100),ce=()=>{var e;e=M,cr.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),pe(`${e}/v1/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(T,O).then((e=>{u=e.Guid,e.UserID,n(6,W=!0)}),(e=>{n(6,W=!1),console.error("err on session",e)})):u=O},de=()=>{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)},ye=e=>{X<3&&n(9,Z=!1),clearInterval(h)};k((()=>(window.addEventListener("resize",ie,!1),Lr.isNative(ee),()=>{n(9,Z=!1),null==l||l.removeEventListener("mousedown",me),null==l||l.removeEventListener("touchstart",me),
1340
+ window.location=A)},ce=e=>{n(31,ne=!1),window.postMessage({type:"EnableScroll"},window.location.href),e.stopPropagation()};function he(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!ee||de()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",he,!1),document.addEventListener("mozfullscreenchange",he,!1),document.addEventListener("fullscreenchange",he,!1),document.addEventListener("MSFullscreenChange",he,!1));const de=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(ee?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():c.requestFullscreen?c.requestFullscreen():c.webkitRequestFullscreen?c.webkitRequestFullscreen():c.mozRequestFullScreen?c.mozRequestFullScreen():c.msRequestFullscreen&&c.msRequestFullscreen()),n(26,ee=!ee)},fe=setInterval((()=>{n(13,i=Y?Vr().format(Y):Vr().format("LTS"))}),100),pe=()=>{var e;e=S,pr.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)})(te),n(17,Z=!1)},me=()=>{"true"==G?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),ge(`${e}/v1/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(E,T).then((e=>{s=e.Guid,e.UserID,n(15,V=!0)}),(e=>{n(15,V=!1),console.error("err on session",e)})):s=T},ye=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},ve=e=>{q=0,l=setInterval((()=>{q+=1,n(18,X=!0),q>=3&&clearInterval(l)}),1e3)},be=e=>{q<3&&n(18,X=!1),clearInterval(l)};O((()=>(window.addEventListener("resize",se,!1),Wr.isNative(te),()=>{n(18,X=!1),null==a||a.removeEventListener("mousedown",ve),null==a||a.removeEventListener("touchstart",ve),
1330
1341
  // on mouseup stop interval count
1331
- null==l||l.removeEventListener("mouseup",ye),null==l||l.removeEventListener("touchend",ye),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,O=e.session),"userid"in e&&n(32,D=e.userid),"clientstyling"in e&&n(33,P=e.clientstyling),"clientstylingurl"in e&&n(34,B=e.clientstylingurl),"translationurl"in e&&n(35,H=e.translationurl),"loginurl"in e&&n(36,A=e.loginurl),"registerurl"in e&&n(37,N=e.registerurl),"depositurl"in e&&n(38,F=e.depositurl),"loginevent"in e&&n(39,L=e.loginevent),"registerevent"in e&&n(40,C=e.registerevent),"depositevent"in e&&n(41,R=e.depositevent),"clockformat"in e&&n(42,I=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]&&O&&D&&T&&fe(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstyling*/4&e.$$.dirty[1]&&P&&w&&(()=>{let e=document.createElement("style");e.innerHTML=P,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),
1342
+ null==a||a.removeEventListener("mouseup",be),null==a||a.removeEventListener("touchend",be),window.removeEventListener("resize",se),clearInterval(fe)})));return e.$$set=e=>{"endpoint"in e&&n(0,E=e.endpoint),"lang"in e&&n(1,S=e.lang),"session"in e&&n(2,T=e.session),"userid"in e&&n(3,M=e.userid),"clientstyling"in e&&n(4,k=e.clientstyling),"clientstylingurl"in e&&n(5,x=e.clientstylingurl),"translationurl"in e&&n(40,D=e.translationurl),"loginurl"in e&&n(41,P=e.loginurl),"registerurl"in e&&n(42,H=e.registerurl),"depositurl"in e&&n(43,A=e.depositurl),"loginevent"in e&&n(44,F=e.loginevent),"registerevent"in e&&n(45,N=e.registerevent),"depositevent"in e&&n(46,C=e.depositevent),"shortcashierenabled"in e&&n(6,L=e.shortcashierenabled),"hasdefaultamount"in e&&n(7,R=e.hasdefaultamount),"playercurrency"in e&&n(8,I=e.playercurrency),"clockformat"in e&&n(47,Y=e.clockformat),"haspanicbutton"in e&&n(9,U=e.haspanicbutton),"playforfun"in e&&n(48,$=e.playforfun),"checksession"in e&&n(49,G=e.checksession),"gamebanneractive"in e&&n(10,j=e.gamebanneractive),"gameid"in e&&n(50,W=e.gameid)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&S&&pe(),/*endpoint, lang*/3&e.$$.dirty[0]|/*gameid*/524288&e.$$.dirty[1]&&E&&W&&S&&re(W),/*session, userid, endpoint*/13&e.$$.dirty[0]&&T&&M&&E&&me(),/*clientstyling, customStylingContainer*/4112&e.$$.dirty[0]&&k&&b&&(()=>{let e=document.createElement("style");e.innerHTML=k,b.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4128&e.$$.dirty[0]&&x&&b&&(()=>{let e=document.createElement("style");if(x){let t=new URL(x);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{b.appendChild(e)}),1)}))}})(),/*panicButton*/2048&e.$$.dirty[0]&&a&&(null==a||a.addEventListener("mousedown",ve,!1),null==a||a.addEventListener("touchstart",ve,!1),
1332
1343
  // on mouseup stop interval count
1333
- null==l||l.addEventListener("mouseup",ye,!1),null==l||l.addEventListener("touchend",ye,!1)),/*translationurl*/16&e.$$.dirty[1]&&H&&fetch(H).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ar(t,e[t])}))})).catch((e=>{console.log(e)}))},[Y,$,l,w,s,a,W,V,z,Z,c,K,J,d,p,m,y,Q,b,_,E,S,r,ee,oe,se,ae,le,de,T,M,O,D,P,B,H,A,N,F,L,C,R,I,U,G,j,()=>de(),function(e){x[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},()=>ae(),function(e){x[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},function(e){x[e?"unshift":"push"]((()=>{l=e,n(2,l)}))},()=>le(),()=>le(),function(e){x[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){x[e?"unshift":"push"]((()=>{y=e,n(16,y)}))},function(e){x[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},()=>de(),function(e){x[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},function(e){x[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},()=>oe(),()=>se(),()=>le(),()=>le(),function(e){x[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){x[e?"unshift":"push"]((()=>{y=e,n(16,y)}))},function(e){x[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},function(e){x[e?"unshift":"push"]((()=>{w=e,n(3,w)}))}]}class Jr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.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-button-typography, var(--emfe-w-color-white, #FFFFFF));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-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #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-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, 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-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.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-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));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-button-typography, 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{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.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-button-typography, 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-button-typography, 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:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Kr,qr,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),L()))}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}),L()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),L()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),L()}get userid(){return this.$$.ctx[32]}set userid(e){this.$$set({userid:e}),L()}get clientstyling(){return this.$$.ctx[33]}set clientstyling(e){this.$$set({clientstyling:e}),L()}get clientstylingurl(){return this.$$.ctx[34]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),L()}get translationurl(){return this.$$.ctx[35]}set translationurl(e){this.$$set({translationurl:e}),L()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$$set({registerurl:e}),L()}get depositurl(){return this.$$.ctx[38]}set depositurl(e){this.$$set({depositurl:e}),L()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),L()}get depositevent(){return this.$$.ctx[41]}set depositevent(e){this.$$set({depositevent:e}),L()}get clockformat(){return this.$$.ctx[42]}set clockformat(e){this.$$set({clockformat:e}),L()}get haspanicbutton(){return this.$$.ctx[0]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),L()}get playforfun(){return this.$$.ctx[43]}set playforfun(e){this.$$set({playforfun:e}),L()}get checksession(){return this.$$.ctx[44]}set checksession(e){this.$$set({checksession:e}),L()}get gamebanneractive(){return this.$$.ctx[1]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),L()}get gameid(){return this.$$.ctx[45]}set gameid(e){this.$$set({gameid:e}),L()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",Jr),Jr}));
1344
+ null==a||a.addEventListener("mouseup",be,!1),null==a||a.addEventListener("touchend",be,!1)),/*translationurl*/512&e.$$.dirty[1]&&D&&fetch(D).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Cr(t,e[t])}))})).catch((e=>{console.log(e)}))},[E,S,T,M,k,x,L,R,I,U,j,a,b,i,o,V,z,Z,X,u,J,Q,c,h,d,p,ee,g,v,w,_,ne,r,te,ae,le,ue,ce,de,ye,D,P,H,A,F,N,C,Y,$,G,W,()=>ye(),function(e){B[e?"unshift":"push"]((()=>{_=e,n(30,_)}))},()=>ue(),e=>ce(e),e=>ce(e),function(e){B[e?"unshift":"push"]((()=>{o=e,n(14,o)}))},function(e){B[e?"unshift":"push"]((()=>{a=e,n(11,a)}))},()=>de(),()=>de(),function(e){B[e?"unshift":"push"]((()=>{w=e,n(29,w)}))},function(e){B[e?"unshift":"push"]((()=>{p=e,n(25,p)}))},function(e){B[e?"unshift":"push"]((()=>{c=e,n(22,c)}))},()=>ye(),function(e){B[e?"unshift":"push"]((()=>{_=e,n(30,_)}))},function(e){B[e?"unshift":"push"]((()=>{o=e,n(14,o)}))},()=>ae(),()=>le(),()=>de(),()=>de(),function(e){B[e?"unshift":"push"]((()=>{w=e,n(29,w)}))},function(e){B[e?"unshift":"push"]((()=>{p=e,n(25,p)}))},function(e){B[e?"unshift":"push"]((()=>{c=e,n(22,c)}))},function(e){B[e?"unshift":"push"]((()=>{b=e,n(12,b)}))}]}class li extends W{constructor(e){super();const t=document.createElement("style");t.textContent='.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;z-index:17}.ShortCashierContainerMobile{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;width:80vw;top:32px;left:50%;transform:translateX(-100%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:78%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.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-button-typography, var(--emfe-w-color-white, #FFFFFF));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-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #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-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, 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-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.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-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));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-button-typography, 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{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.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-button-typography, 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-button-typography, 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:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},ai,si,l,{endpoint:0,lang:1,session:2,userid:3,clientstyling:4,clientstylingurl:5,translationurl:40,loginurl:41,registerurl:42,depositurl:43,loginevent:44,registerevent:45,depositevent:46,shortcashierenabled:6,hasdefaultamount:7,playercurrency:8,clockformat:47,haspanicbutton:9,playforfun:48,checksession:49,gamebanneractive:10,gameid:50},null,[-1,-1,-1,-1]),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","shortcashierenabled","hasdefaultamount","playercurrency","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),I()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),I()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),I()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),I()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),I()}get depositurl(){return this.$$.ctx[43]}set depositurl(e){this.$$set({depositurl:e}),I()}get loginevent(){return this.$$.ctx[44]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[45]}set registerevent(e){this.$$set({registerevent:e}),I()}get depositevent(){return this.$$.ctx[46]}set depositevent(e){this.$$set({depositevent:e}),I()}get shortcashierenabled(){return this.$$.ctx[6]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),I()}get hasdefaultamount(){return this.$$.ctx[7]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),I()}get playercurrency(){return this.$$.ctx[8]}set playercurrency(e){this.$$set({playercurrency:e}),I()}get clockformat(){return this.$$.ctx[47]}set clockformat(e){this.$$set({clockformat:e}),I()}get haspanicbutton(){return this.$$.ctx[9]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),I()}get playforfun(){return this.$$.ctx[48]}set playforfun(e){this.$$set({playforfun:e}),I()}get checksession(){return this.$$.ctx[49]}set checksession(e){this.$$set({checksession:e}),I()}get gamebanneractive(){return this.$$.ctx[10]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),I()}get gameid(){return this.$$.ctx[50]}set gameid(e){this.$$set({gameid:e}),I()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",li),li}));
1334
1345
  //# sourceMappingURL=casino-integrated-game-page.js.map