@everymatrix/casino-integrated-game-page 1.12.0 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,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
|
|
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}
|
|
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
|
|
11
|
+
function k(e){(function(){if(!h)throw new Error("Function called outside component initialization");return h})().$$.on_mount.push(e)}const D=[],x=[];let O=[];const B=[],P=Promise.resolve();let A=!1;function H(e){O.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.
|
|
@@ -35,33 +35,33 @@ function C(){
|
|
|
35
35
|
if(0!==L)return;const e=h;do{
|
|
36
36
|
// first, call beforeUpdate functions
|
|
37
37
|
// and update components
|
|
38
|
-
try{for(;L<
|
|
38
|
+
try{for(;L<D.length;){const e=D[L];L++,M(e),I(e.$$)}}catch(e){
|
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
40
|
-
throw
|
|
40
|
+
throw D.length=0,L=0,e}for(M(null),D.length=0,L=0;x.length;)x.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<
|
|
44
|
+
for(let e=0;e<O.length;e+=1){const t=O[e];N.has(t)||(
|
|
45
45
|
// ...so guard against infinite loops
|
|
46
|
-
N.add(t),t())}
|
|
46
|
+
N.add(t),t())}O.length=0}while(D.length);for(;B.length;)B.pop()();A=!1,N.clear(),M(e)}function I(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(H)}}
|
|
47
47
|
/**
|
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
49
|
-
*/const R=new Set;function F(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];
|
|
49
|
+
*/const R=new Set;function F(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];O.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),O=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]&&(
|
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function Y(e,t){-1===e.$$.dirty[0]&&(D.push(e),A||(A=!0,P.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(e,t,n,u,l,c,f,d=[-1]){const p=h;M(e);const y=e.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
54
|
props:c,update:r,not_equal:l,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(
|
|
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),
|
|
59
59
|
// `false` as a special case of no DOM component
|
|
60
|
-
|
|
60
|
+
y.fragment=!!u&&u(y.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
|
-
|
|
62
|
+
y.fragment&&y.fragment.l(e),e.forEach(m)}else
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
|
|
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||
|
|
65
65
|
// onMount happens before the initial afterUpdate
|
|
66
66
|
H((()=>{const t=e.$$.on_mount.map(i).filter(a);
|
|
67
67
|
// if the component was destroyed immediately
|
|
@@ -123,7 +123,7 @@ var he=self.fetch.bind(self),ce=function(e,t){return ce=Object.setPrototypeOf||{
|
|
|
123
123
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
124
124
|
PERFORMANCE OF THIS SOFTWARE.
|
|
125
125
|
***************************************************************************** */
|
|
126
|
-
/* global Reflect, Promise */function fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function de(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function me(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ge(e){return"function"==typeof e}function ye(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ve=ye((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function be(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _e=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=de(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(ge(u))try{u()}catch(e){i=e instanceof ve?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var h=de(l),c=h.next();!c.done;c=h.next()){var f=c.value;try{Se(f)}catch(e){i=null!=i?i:[],e instanceof ve?i=me(me([],pe(i)),pe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new ve(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Se(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&be(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&be(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),we=_e.EMPTY;function Ee(e){return e instanceof _e||e&&"closed"in e&&ge(e.remove)&&ge(e.add)&&ge(e.unsubscribe)}function Se(e){ge(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Me={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Me.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,me([e,t],pe(n))):setTimeout.apply(void 0,me([e,t],pe(n)))},clearTimeout:function(e){var t=Me.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ke(){}var Pe=null;function De(e){if(Te.useDeprecatedSynchronousErrorHandling){var t=!Pe;if(t&&(Pe={errorThrown:!1,error:null}),e(),t){var n=Pe,r=n.errorThrown,i=n.error;if(Pe=null,r)throw i}}else e()}var xe=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Ee(t)&&t.add(n)):n.destination=Le,n}return fe(t,e),t.create=function(e,t,n){return new He(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(_e),Oe=Function.prototype.bind;function Be(e,t){return Oe.call(e,t)}var Ae=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ne(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ne(e)}else Ne(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ne(e)}},e}(),He=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;ge(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Te.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Be(t.next,o),error:t.error&&Be(t.error,o),complete:t.complete&&Be(t.complete,o)}):i=t;return s.destination=new Ae(i),s}return fe(t,e),t}(xe);function Ne(e){var t;t=e,Me.setTimeout((function(){throw t}))}var Le={closed:!0,next:ke,error:function(e){throw e},complete:ke},Ce="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ie(e){return e}var Re=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof xe||function(e){return e&&ge(e.next)&&ge(e.error)&&ge(e.complete)}(r)&&Ee(r)?e:new He(e,t,n);return De((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Fe(t))((function(t,r){var i=new He({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ce]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Ie:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fe(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Fe(e){var t;return null!==(t=null!=e?e:Te.Promise)&&void 0!==t?t:Promise}var Ye=ye((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ue=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return fe(t,e),t.prototype.lift=function(e){var t=new Ge(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ye},t.prototype.next=function(e){var t=this;De((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=de(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;De((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;De((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?we:(this.currentObservers=null,o.push(e),new _e((function(){t.currentObservers=null,be(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Re;return e.source=this,e},t.create=function(e,t){return new Ge(e,t)},t}(Re),Ge=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return fe(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:we},t}(Ue),$e={now:function(){return($e.delegate||Date).now()},delegate:void 0},je=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=$e);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return fe(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}},t}(Ue);let We=[],Ve={};
|
|
126
|
+
/* global Reflect, Promise */function fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function de(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function me(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ye(e){return"function"==typeof e}function ge(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ve=ge((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 be(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _e=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=de(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(ye(u))try{u()}catch(e){i=e instanceof ve?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var h=de(l),c=h.next();!c.done;c=h.next()){var f=c.value;try{Se(f)}catch(e){i=null!=i?i:[],e instanceof ve?i=me(me([],pe(i)),pe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new ve(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Se(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&be(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&be(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),we=_e.EMPTY;function Ee(e){return e instanceof _e||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function Se(e){ye(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Me={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Me.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,me([e,t],pe(n))):setTimeout.apply(void 0,me([e,t],pe(n)))},clearTimeout:function(e){var t=Me.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ke(){}var De=null;function xe(e){if(Te.useDeprecatedSynchronousErrorHandling){var t=!De;if(t&&(De={errorThrown:!1,error:null}),e(),t){var n=De,r=n.errorThrown,i=n.error;if(De=null,r)throw i}}else e()}var Oe=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Ee(t)&&t.add(n)):n.destination=Le,n}return fe(t,e),t.create=function(e,t,n){return new He(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(_e),Be=Function.prototype.bind;function Pe(e,t){return Be.call(e,t)}var Ae=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ne(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ne(e)}else Ne(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ne(e)}},e}(),He=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;ye(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Te.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Pe(t.next,o),error:t.error&&Pe(t.error,o),complete:t.complete&&Pe(t.complete,o)}):i=t;return s.destination=new Ae(i),s}return fe(t,e),t}(Oe);function Ne(e){var t;t=e,Me.setTimeout((function(){throw t}))}var Le={closed:!0,next:ke,error:function(e){throw e},complete:ke},Ce="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ie(e){return e}var Re=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Oe||function(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(r)&&Ee(r)?e:new He(e,t,n);return xe((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Fe(t))((function(t,r){var i=new He({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ce]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Ie:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fe(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Fe(e){var t;return null!==(t=null!=e?e:Te.Promise)&&void 0!==t?t:Promise}var Ye=ge((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ue=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return fe(t,e),t.prototype.lift=function(e){var t=new Ge(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ye},t.prototype.next=function(e){var t=this;xe((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=de(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;xe((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;xe((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?we:(this.currentObservers=null,o.push(e),new _e((function(){t.currentObservers=null,be(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Re;return e.source=this,e},t.create=function(e,t){return new Ge(e,t)},t}(Re),Ge=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return fe(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:we},t}(Ue),$e={now:function(){return($e.delegate||Date).now()},delegate:void 0},je=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=$e);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return fe(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}},t}(Ue);let We=[],Ve={};
|
|
127
127
|
/**
|
|
128
128
|
* @name topic
|
|
129
129
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -160,7 +160,7 @@ n.cloneUnlessOtherwiseSpecified=Je;var r=Array.isArray(t);return r===Array.isArr
|
|
|
160
160
|
/**
|
|
161
161
|
* Type Guards
|
|
162
162
|
*/
|
|
163
|
-
function ft(e){return e.type===ut.literal}function dt(e){return e.type===ut.argument}function pt(e){return e.type===ut.number}function mt(e){return e.type===ut.date}function
|
|
163
|
+
function ft(e){return e.type===ut.literal}function dt(e){return e.type===ut.argument}function pt(e){return e.type===ut.number}function mt(e){return e.type===ut.date}function yt(e){return e.type===ut.time}function gt(e){return e.type===ut.select}function vt(e){return e.type===ut.plural}function bt(e){return e.type===ut.pound}function _t(e){return e.type===ut.tag}function wt(e){return!(!e||"object"!=typeof e||e.type!==lt.number)}function Et(e){return!(!e||"object"!=typeof e||e.type!==lt.dateTime)}
|
|
164
164
|
// @generated from regex-gen.ts
|
|
165
165
|
!function(e){
|
|
166
166
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -305,30 +305,30 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
305
305
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
306
306
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
307
307
|
// @generated from regex-gen.ts
|
|
308
|
-
var kt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var
|
|
308
|
+
var kt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Dt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xt=/^(@+)?(\+|#+)?[rs]?$/g,Ot=/(\*)(0+)|(#+)(0+)|(0+)/g,Bt=/^(0+)$/;function Pt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(xt,(function(e,n,r){
|
|
309
309
|
// @@@ case
|
|
310
310
|
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function At(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ht(e){
|
|
311
311
|
// Engineering
|
|
312
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!
|
|
312
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Bt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Nt(e){var t=At(e);return t||{}}
|
|
313
313
|
/**
|
|
314
314
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
315
315
|
*/function Lt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ht(ht(ht({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ht(ht({},e),Nt(t))}),{}));continue;case"engineering":t=ht(ht(ht({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ht(ht({},e),Nt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
316
316
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
317
317
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
318
318
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
319
|
-
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(
|
|
319
|
+
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ot,(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}
|
|
320
320
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
321
|
-
if(
|
|
321
|
+
if(Bt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Dt.test(i.stem)){
|
|
322
322
|
// Precision
|
|
323
323
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
324
324
|
// precision-integer case
|
|
325
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
|
325
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Dt,(function(e,n,r,i,o,s){
|
|
326
326
|
// .000* case (before ICU67 it was .000+)
|
|
327
327
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
|
|
328
328
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
329
|
-
"w"===o?t=ht(ht({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ht(ht({},t),
|
|
329
|
+
"w"===o?t=ht(ht({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ht(ht({},t),Pt(o)))}
|
|
330
330
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
331
|
-
else if(
|
|
331
|
+
else if(xt.test(i.stem))t=ht(ht({},t),Pt(i.stem));else{var s=At(i.stem);s&&(t=ht(ht({},t),s));var a=Ht(i.stem);a&&(t=ht(ht({},t),a))}}return t}
|
|
332
332
|
// @generated from time-data-gen.ts
|
|
333
333
|
// prettier-ignore
|
|
334
334
|
var Ct,It={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
@@ -459,11 +459,11 @@ return this.error(at.EXPECT_ARGUMENT_TYPE,Ut(o,a));case"number":case"date":case"
|
|
|
459
459
|
// Parse this range:
|
|
460
460
|
// {name, number, style}
|
|
461
461
|
// ^-------^
|
|
462
|
-
this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((
|
|
462
|
+
this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(d=nn(g.val)).length)return this.error(at.EXPECT_ARGUMENT_STYLE,Ut(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:Ut(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var h=Ut(r,this.clonePosition());
|
|
463
463
|
// Extract style or skeleton
|
|
464
464
|
if(u&&Kt(null==u?void 0:u.style,"::",0)){
|
|
465
465
|
// Skeleton starts with `::`.
|
|
466
|
-
var c=tn(u.style.slice(2));if("number"===s)return(
|
|
466
|
+
var c=tn(u.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(c,u.styleLocation)).err?g:{val:{type:ut.number,value:n,location:h,style:g.val},err:null};if(0===c.length)return this.error(at.EXPECT_DATE_TIME_SKELETON,h);var f=c;
|
|
467
467
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
468
468
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
469
469
|
// for unsupported patterns.
|
|
@@ -480,9 +480,9 @@ var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
480
480
|
// or the first option:
|
|
481
481
|
// {name, plural, one {...} other {...}}
|
|
482
482
|
// ^--^
|
|
483
|
-
var m=this.parseIdentifierIfPossible(),
|
|
483
|
+
var m=this.parseIdentifierIfPossible(),y=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,at.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
|
|
484
484
|
// Parse another identifier for option parsing
|
|
485
|
-
this.bumpSpace(),m=this.parseIdentifierIfPossible(),g
|
|
485
|
+
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 _=Ut(r,this.clonePosition());return"select"===s?{val:{type:ut.select,value:n,options:Qt(b.val),location:_},err:null}:{val:{type:ut.plural,value:n,options:Qt(b.val),offset:y,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(at.INVALID_ARGUMENT_TYPE,Ut(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
|
486
486
|
// Parse: {value, number, ::currency/GBP }
|
|
487
487
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
488
488
|
/**
|
|
@@ -568,7 +568,7 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
568
568
|
/**
|
|
569
569
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
570
570
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
571
|
-
*/function hn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function cn(e){e.forEach((function(e){if(delete e.location,
|
|
571
|
+
*/function hn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function cn(e){e.forEach((function(e){if(delete e.location,gt(e)||vt(e))for(var t in e.options)delete e.options[t].location,cn(e.options[t].value);else pt(e)&&wt(e.style)||(mt(e)||yt(e))&&Et(e.style)?delete e.style.location:_t(e)&&cn(e.children)}))}function fn(e,t){void 0===t&&(t={}),t=ht({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new sn(e,t).parse();if(n.err){var r=SyntaxError(at[n.err.kind]);
|
|
572
572
|
// @ts-expect-error Assign to error object
|
|
573
573
|
throw r.location=n.err.location,
|
|
574
574
|
// @ts-expect-error Assign to error object
|
|
@@ -576,11 +576,11 @@ r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||cn(n
|
|
|
576
576
|
|
|
577
577
|
// Main
|
|
578
578
|
|
|
579
|
-
function dn(e,t){var n=t&&t.cache?t.cache:wn,r=t&&t.serializer?t.serializer:vn;return(t&&t.strategy?t.strategy:
|
|
579
|
+
function dn(e,t){var n=t&&t.cache?t.cache:wn,r=t&&t.serializer?t.serializer:vn;return(t&&t.strategy?t.strategy:gn)(e,{cache:n,serializer:r})}
|
|
580
580
|
|
|
581
581
|
// Strategy
|
|
582
582
|
|
|
583
|
-
function pn(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(o);return void 0===s&&(s=e.call(this,r),t.set(o,s)),s}function mn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function
|
|
583
|
+
function pn(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(o);return void 0===s&&(s=e.call(this,r),t.set(o,s)),s}function mn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function yn(e,t,n,r,i){return n.bind(t,e,r,i)}function gn(e,t){return yn(e,this,1===e.length?pn:mn,t.cache.create(),t.serializer)}
|
|
584
584
|
// Serializer
|
|
585
585
|
var vn=function(){return JSON.stringify(arguments)};
|
|
586
586
|
|
|
@@ -588,15 +588,15 @@ var vn=function(){return JSON.stringify(arguments)};
|
|
|
588
588
|
|
|
589
589
|
function bn(){this.cache=Object.create(null)}bn.prototype.get=function(e){return this.cache[e]},bn.prototype.set=function(e,t){this.cache[e]=t};var _n,wn={create:function(){
|
|
590
590
|
// @ts-ignore
|
|
591
|
-
return new bn}},En={variadic:function(e,t){return
|
|
591
|
+
return new bn}},En={variadic:function(e,t){return yn(e,this,mn,t.cache.create(),t.serializer)},monadic:function(e,t){return yn(e,this,pn,t.cache.create(),t.serializer)}};!function(e){
|
|
592
592
|
// When we have a placeholder but no value to format
|
|
593
593
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
594
594
|
// When value supplied is invalid
|
|
595
595
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
596
596
|
// When we need specific Intl API but it's not available
|
|
597
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(_n||(_n={}));var Sn,Tn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return st(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Mn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),_n.INVALID_VALUE,i)||this}return st(t,e),t}(Tn),kn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),_n.INVALID_VALUE,r)||this}return st(t,e),t}(Tn),
|
|
597
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(_n||(_n={}));var Sn,Tn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return st(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Mn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),_n.INVALID_VALUE,i)||this}return st(t,e),t}(Tn),kn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),_n.INVALID_VALUE,r)||this}return st(t,e),t}(Tn),Dn=/** @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,'"'),_n.MISSING_VALUE,n)||this}return st(t,e),t}(Tn);function xn(e){return"function"==typeof e}
|
|
598
598
|
// TODO(skeleton): add skeleton support
|
|
599
|
-
function
|
|
599
|
+
function On(e,t,n,r,i,o,
|
|
600
600
|
// For debugging
|
|
601
601
|
s){
|
|
602
602
|
// Hot path for straight simple msg translations
|
|
@@ -607,27 +607,27 @@ if(ft(h))a.push({type:Sn.literal,value:h.value});else
|
|
|
607
607
|
// Replace `#` in plural rules with the actual numeric value.
|
|
608
608
|
if(bt(h))"number"==typeof o&&a.push({type:Sn.literal,value:n.getNumberFormat(t).format(o)});else{var c=h.value;
|
|
609
609
|
// Enforce that all required values are provided by the caller.
|
|
610
|
-
if(!i||!(c in i))throw new
|
|
610
|
+
if(!i||!(c in i))throw new Dn(c,s);var f=i[c];if(dt(h))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Sn.literal:Sn.object,value:f});else
|
|
611
611
|
// Recursively format plural and select parts' option — which can be a
|
|
612
612
|
// nested pattern structure. The choosing of the option to use is
|
|
613
613
|
// abstracted-by and delegated-to the part helper object.
|
|
614
|
-
if(mt(h)){var d="string"==typeof h.style?r.date[h.style]:Et(h.style)?h.style.parsedOptions:void 0;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(
|
|
614
|
+
if(mt(h)){var d="string"==typeof h.style?r.date[h.style]:Et(h.style)?h.style.parsedOptions:void 0;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(yt(h)){d="string"==typeof h.style?r.time[h.style]:Et(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(pt(h)){(d="string"==typeof h.style?r.number[h.style]:wt(h.style)?h.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),a.push({type:Sn.literal,value:n.getNumberFormat(t,d).format(f)})}else{if(_t(h)){var p=h.children,m=h.value,y=i[m];if(!xn(y))throw new kn(m,"function",s);var g=y(On(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?Sn.literal:Sn.object,value:e}})))}if(gt(h)){if(!(v=h.options[f]||h.options.other))throw new Mn(h.value,f,Object.keys(h.options),s);a.push.apply(a,On(v.value,t,n,r,i))}else if(vt(h)){var v;if(!(v=h.options["=".concat(f)])){if(!Intl.PluralRules)throw new Tn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_n.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 Mn(h.value,f,Object.keys(h.options),s);a.push.apply(a,On(v.value,t,n,r,i,f-(h.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Sn.literal&&t.type===Sn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
|
|
615
615
|
/*
|
|
616
616
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
617
617
|
Copyrights licensed under the New BSD License.
|
|
618
618
|
See the accompanying LICENSE file for terms.
|
|
619
619
|
*/
|
|
620
620
|
// -- MessageFormat --------------------------------------------------------
|
|
621
|
-
function
|
|
621
|
+
function Bn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?ht(ht(ht({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=ht(ht({},i[t]),o[t]||{}),e}),{})):i),n}),ht({},e)):e}function Pn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Sn||(Sn={}));var An=/** @class */function(){function e(t,n,r,i){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
622
622
|
// Hot path for straight simple msg translations
|
|
623
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Sn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return
|
|
623
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Sn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return On(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},
|
|
624
624
|
// Defined first because it's used to build the format pattern.
|
|
625
625
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
626
626
|
// Parse string messages into an AST.
|
|
627
627
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
628
628
|
// Creates a new object with the specified `formats` merged with the default
|
|
629
629
|
// formats.
|
|
630
|
-
this.formats=
|
|
630
|
+
this.formats=Bn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Pn(o.number),strategy:En.variadic}),getDateTimeFormat:dn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Pn(o.dateTime),strategy:En.variadic}),getPluralRules:dn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ct([void 0],t,!1)))}),{cache:Pn(o.pluralRules),strategy:En.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=fn,
|
|
631
631
|
// Default format options used as the prototype of the `formats` provided to the
|
|
632
632
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
633
633
|
// and Intl.DateTimeFormat instances.
|
|
@@ -649,10 +649,10 @@ const pr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/i
|
|
|
649
649
|
* @description A method that returns the type of the device
|
|
650
650
|
* @param {String} userAgent window.navigator.userAgent
|
|
651
651
|
* @returns {String} Android/iPhone/iPad/PC
|
|
652
|
-
*/function mr(e,t){Un(e,t)}const
|
|
653
|
-
/* eslint-disable */function
|
|
652
|
+
*/function mr(e,t){Un(e,t)}const yr={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:"Prijavite se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},hu:{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"}};
|
|
653
|
+
/* eslint-disable */function gr(){"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){
|
|
654
654
|
// copy everything except first param, which is the event.
|
|
655
|
-
var n=Array.prototype.slice.call(arguments,1);return t.apply(this,n),!0}return console.error("Native Bridge `"+e+"` method is not defined"),!1};var vr={getBridge:function(){try{return n.default.readFileSync(`${__dirname}/bridge.js`,"utf8")}catch(e){return console.error("Cannot load bridge script:",e),""}},isNative:function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},call:function(e,...t){try{return
|
|
655
|
+
var n=Array.prototype.slice.call(arguments,1);return t.apply(this,n),!0}return console.error("Native Bridge `"+e+"` method is not defined"),!1};var vr={getBridge:function(){try{return n.default.readFileSync(`${__dirname}/bridge.js`,"utf8")}catch(e){return console.error("Cannot load bridge script:",e),""}},isNative:function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},call:function(e,...t){try{return gr(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},registerEventListener:function(e,t){try{return gr(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}}},br=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return le(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
656
656
|
// This is done to register the method called with moment()
|
|
657
657
|
// without creating circular dependencies.
|
|
658
658
|
function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
|
@@ -660,30 +660,30 @@ function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Ob
|
|
|
660
660
|
// input != null
|
|
661
661
|
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(){
|
|
662
662
|
// We need to deep clone this object.
|
|
663
|
-
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
|
|
663
|
+
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}
|
|
664
664
|
// Plugins that add properties should also add the key here (null value),
|
|
665
665
|
// so we can properly clone ourselves.
|
|
666
|
-
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=
|
|
666
|
+
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}
|
|
667
667
|
// Moment prototype object
|
|
668
668
|
function E(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
669
669
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
670
670
|
// objects.
|
|
671
|
-
!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,
|
|
671
|
+
!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,D={};function x(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(T(t),D[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function B(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
672
672
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
673
673
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
674
674
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
675
|
-
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function
|
|
675
|
+
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(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])&&(
|
|
676
676
|
// make sure changes to properties don't modify parent config
|
|
677
|
-
r[n]=d({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return
|
|
677
|
+
r[n]=d({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function L(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},F={};
|
|
678
678
|
// token: 'M'
|
|
679
679
|
// padded: ['MM', 2]
|
|
680
680
|
// ordinal: 'Mo'
|
|
681
681
|
// callback: function () { this.month() + 1 }
|
|
682
|
-
function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(C);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=
|
|
682
|
+
function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(C);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}
|
|
683
683
|
// format date using native date object
|
|
684
|
-
function $(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||G(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var z="Invalid date";function Z(){return this._invalidDate}var X="%d",q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return
|
|
684
|
+
function $(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||G(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var z="Invalid date";function Z(){return this._invalidDate}var X="%d",q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return 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 ue(e){return e%4==0&&e%100!=0||e%400==0}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=he(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
|
685
685
|
// MOMENTS
|
|
686
|
-
function me(e){return
|
|
686
|
+
function me(e){return O(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(O(this[e=re(e)]))return this[e](t);return this}var ge,ve=/\d/,// 0 - 9
|
|
687
687
|
be=/\d\d/,// 00 - 99
|
|
688
688
|
_e=/\d{3}/,// 000 - 999
|
|
689
689
|
we=/\d{4}/,// 0000 - 9999
|
|
@@ -692,18 +692,18 @@ Se=/\d\d?/,// 0 - 99
|
|
|
692
692
|
Te=/\d\d\d\d?/,// 999 - 9999
|
|
693
693
|
Me=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
694
694
|
ke=/\d{1,3}/,// 0 - 999
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
695
|
+
De=/\d{1,4}/,// 0 - 9999
|
|
696
|
+
xe=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
697
|
+
Oe=/\d+/,// 0 - inf
|
|
698
|
+
Be=/[+-]?\d+/,// -inf - inf
|
|
699
|
+
Pe=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
700
700
|
Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
701
701
|
He=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
702
702
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
703
703
|
// includes scottish gaelic two word and hyphenated months
|
|
704
|
-
Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){
|
|
704
|
+
Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){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(Ie(e))}
|
|
705
705
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
706
|
-
function Ie(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}
|
|
706
|
+
function Ie(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Fe={};function Ye(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Fe[e[n]]=i}function Ue(e,t){Ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ge(e,t,n){null!=t&&a(Fe,e)&&Fe[e](t,n._a,n,e)}var $e,je=0,We=1,Ve=2,ze=3,Ze=4,Xe=5,qe=6,Ke=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}
|
|
707
707
|
// FORMATTING
|
|
708
708
|
$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
709
709
|
// I know
|
|
@@ -715,7 +715,7 @@ se("month",8),
|
|
|
715
715
|
// PARSING
|
|
716
716
|
Le("M",Se),Le("MM",Se,be),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Ye(["M","MM"],(function(e,t){t[We]=ce(e)-1})),Ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
|
717
717
|
// if we didn't find a month name, mark the date as invalid.
|
|
718
|
-
null!=i?t[We]=i:
|
|
718
|
+
null!=i?t[We]=i:y(n).invalidMonth=e}));
|
|
719
719
|
// LOCALES
|
|
720
720
|
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(
|
|
721
721
|
// this is not used
|
|
@@ -741,7 +741,7 @@ n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(thi
|
|
|
741
741
|
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")}
|
|
742
742
|
// FORMATTING
|
|
743
743
|
// HELPERS
|
|
744
|
-
function
|
|
744
|
+
function yt(e){return ue(e)?366:365}
|
|
745
745
|
// HOOKS
|
|
746
746
|
Y("Y",0,0,(function(){var e=this.year();return e<=9999?L(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"),
|
|
747
747
|
// ALIASES
|
|
@@ -749,9 +749,9 @@ ne("year","y"),
|
|
|
749
749
|
// PRIORITIES
|
|
750
750
|
se("year",1),
|
|
751
751
|
// PARSING
|
|
752
|
-
Le("Y",
|
|
752
|
+
Le("Y",Be),Le("YY",Se,be),Le("YYYY",De,we),Le("YYYYY",xe,Ee),Le("YYYYYY",xe,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)};
|
|
753
753
|
// MOMENTS
|
|
754
|
-
var
|
|
754
|
+
var gt=fe("FullYear",!0);function vt(){return ue(this.year())}function bt(e,t,n,r,i,o,s){
|
|
755
755
|
// can't just apply() to create a date:
|
|
756
756
|
// https://stackoverflow.com/q/181348
|
|
757
757
|
var a;
|
|
@@ -767,7 +767,7 @@ return e<100&&e>=0?(
|
|
|
767
767
|
function wt(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
768
768
|
r=7+t-n;return-(7+_t(e,0,r).getUTCDay()-t)%7+r-1}
|
|
769
769
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
770
|
-
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=
|
|
770
|
+
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}
|
|
771
771
|
// FORMATTING
|
|
772
772
|
// HELPERS
|
|
773
773
|
// LOCALES
|
|
@@ -778,12 +778,12 @@ ne("week","w"),ne("isoWeek","W"),
|
|
|
778
778
|
se("week",5),se("isoWeek",5),
|
|
779
779
|
// PARSING
|
|
780
780
|
Le("w",Se),Le("ww",Se,be),Le("W",Se),Le("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.
|
|
781
|
-
doy:6};function
|
|
781
|
+
doy:6};function Dt(){return this._week.dow}function xt(){return this._week.doy}
|
|
782
782
|
// MOMENTS
|
|
783
|
-
function
|
|
783
|
+
function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Bt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
784
784
|
// FORMATTING
|
|
785
785
|
// HELPERS
|
|
786
|
-
function
|
|
786
|
+
function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
787
787
|
// LOCALES
|
|
788
788
|
function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("d",0,"do","day"),Y("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Y("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Y("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),
|
|
789
789
|
// ALIASES
|
|
@@ -793,13 +793,13 @@ se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
|
793
793
|
// PARSING
|
|
794
794
|
Le("d",Se),Le("e",Se),Le("E",Se),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
795
795
|
// if we didn't get a weekday name, mark the date as invalid
|
|
796
|
-
null!=i?t.d=i:
|
|
796
|
+
null!=i?t.d=i:y(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),It=Ne,Rt=Ne,Ft=Ne;function Yt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ht(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $t(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return $t.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
797
797
|
// test the regex
|
|
798
798
|
if(
|
|
799
799
|
// make the regex if we don't have it already
|
|
800
800
|
i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}
|
|
801
801
|
// MOMENTS
|
|
802
|
-
function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=
|
|
802
|
+
function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function zt(e){if(!this.isValid())return null!=e?this:NaN;
|
|
803
803
|
// behaves the same as moment#day except
|
|
804
804
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
805
805
|
// as a setter, sunday should belong to the previous week.
|
|
@@ -821,7 +821,7 @@ return"p"===(e+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",
|
|
|
821
821
|
// ALIASES
|
|
822
822
|
ne("hour","h"),
|
|
823
823
|
// PRIORITY
|
|
824
|
-
se("hour",13),Le("a",tn),Le("A",tn),Le("H",Se),Le("h",Se),Le("k",Se),Le("HH",Se,be),Le("hh",Se,be),Le("kk",Se,be),Le("hmm",Te),Le("hmmss",Me),Le("Hmm",Te),Le("Hmmss",Me),Ye(["H","HH"],ze),Ye(["k","kk"],(function(e,t,n){var r=ce(e);t[ze]=24===r?0:r})),Ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ye(["h","hh"],(function(e,t,n){t[ze]=ce(e),
|
|
824
|
+
se("hour",13),Le("a",tn),Le("A",tn),Le("H",Se),Le("h",Se),Le("k",Se),Le("HH",Se,be),Le("hh",Se,be),Le("kk",Se,be),Le("hmm",Te),Le("hmmss",Me),Le("Hmm",Te),Le("Hmmss",Me),Ye(["H","HH"],ze),Ye(["k","kk"],(function(e,t,n){var r=ce(e);t[ze]=24===r?0:r})),Ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ye(["h","hh"],(function(e,t,n){t[ze]=ce(e),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,
|
|
825
825
|
// Setting the hour should keep the time, because the user explicitly
|
|
826
826
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
827
827
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
@@ -838,7 +838,7 @@ break;t--}o++}return an}function pn(e){
|
|
|
838
838
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
839
839
|
return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
|
|
840
840
|
// TODO: Find a better way to register and load all the locales in Node
|
|
841
|
-
if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,le(),
|
|
841
|
+
if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,le(),yn(n)}catch(e){
|
|
842
842
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
843
843
|
// when trying to find en-US, en_US, en-us for every format call
|
|
844
844
|
ln[t]=null;// null means not found
|
|
@@ -846,52 +846,52 @@ ln[t]=null;// null means not found
|
|
|
846
846
|
// This function will load locale and then set the global locale. If
|
|
847
847
|
// no arguments are passed in, it will simply return the current global
|
|
848
848
|
// locale key.
|
|
849
|
-
function
|
|
849
|
+
function yn(e,t){var n;return e&&((n=l(t)?bn(e):gn(e,t))?
|
|
850
850
|
// moment.duration._locale = moment._locale = data;
|
|
851
851
|
an=n:"undefined"!=typeof console&&console.warn&&
|
|
852
852
|
//warn user if arguments are passed but the locale could not be set
|
|
853
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function
|
|
853
|
+
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 A(P(r,t)),hn[e]&&hn[e].forEach((function(e){gn(e.name,e.config)})),
|
|
854
854
|
// backwards compat for now: also set the locale
|
|
855
855
|
// make sure we set the locale AFTER all child locales have been
|
|
856
856
|
// created, so we won't end up with the child locale set.
|
|
857
|
-
|
|
857
|
+
yn(e),ln[e]}
|
|
858
858
|
// useful for testing
|
|
859
859
|
return delete ln[e],null}function vn(e,t){if(null!=t){var n,r,i=un;null!=ln[e]&&null!=ln[e].parentLocale?
|
|
860
860
|
// Update existing child locale in-place to avoid memory-leaks
|
|
861
|
-
ln[e].set(
|
|
861
|
+
ln[e].set(P(ln[e]._config,t)):(
|
|
862
862
|
// MERGE
|
|
863
|
-
null!=(r=mn(e))&&(i=r._config),t=
|
|
863
|
+
null!=(r=mn(e))&&(i=r._config),t=P(i,t),null==r&&(
|
|
864
864
|
// updateLocale is called for creating a new locale
|
|
865
865
|
// Set abbr so it will have a name (getters return
|
|
866
866
|
// undefined otherwise).
|
|
867
867
|
t.abbr=e),(n=new A(t)).parentLocale=ln[e],ln[e]=n),
|
|
868
868
|
// backwards compat for now: also set the locale
|
|
869
|
-
|
|
869
|
+
yn(e)}else
|
|
870
870
|
// pass null for config to unupdate, useful for tests
|
|
871
|
-
null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===
|
|
871
|
+
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]}
|
|
872
872
|
// returns locale data
|
|
873
873
|
function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
|
|
874
874
|
//short-circuit everything else
|
|
875
|
-
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===
|
|
875
|
+
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}
|
|
876
876
|
// iso 8601 regex
|
|
877
877
|
// 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)
|
|
878
878
|
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]],
|
|
879
879
|
// iso time formats and regexes
|
|
880
|
-
kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],
|
|
880
|
+
kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,
|
|
881
881
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
882
|
-
|
|
882
|
+
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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
883
883
|
// date from iso format
|
|
884
|
-
function
|
|
884
|
+
function Bn(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])){
|
|
885
885
|
// match[2] should be 'T' or space
|
|
886
|
-
o=(u[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Tn.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Gn(e)}else e._isValid=!1}function
|
|
886
|
+
o=(u[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Tn.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Gn(e)}else e._isValid=!1}function Pn(e,t,n,r,i,o){var s=[An(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Hn(e){
|
|
887
887
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
888
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(
|
|
888
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Ln(e,t,n){if(e)return On[e];if(t)
|
|
889
889
|
// the only allowed military tz is Z
|
|
890
890
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
891
891
|
// date and time from ref 2822 format
|
|
892
|
-
function Cn(e){var t,n=
|
|
892
|
+
function Cn(e){var t,n=xn.exec(Hn(e._i));if(n){if(t=Pn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=Ln(n[8],n[9],n[10]),e._d=_t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}
|
|
893
893
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
894
|
-
function In(e){var t=
|
|
894
|
+
function In(e){var t=Dn.exec(e._i);null===t?(Bn(e),!1===e._isValid&&(delete e._isValid,Cn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
895
895
|
// Final attempt, use Input Fallback
|
|
896
896
|
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
897
897
|
// Pick the first defined of two or three arguments.
|
|
@@ -912,7 +912,7 @@ for(r=Fn(e),
|
|
|
912
912
|
//compute day of the year from weeks and weekdays
|
|
913
913
|
e._w&&null==e._a[Ve]&&null==e._a[We]&&Un(e),
|
|
914
914
|
//if the day of the year is set, figure out what it is
|
|
915
|
-
null!=e._dayOfYear&&(o=Rn(e._a[je],r[je]),(e._dayOfYear>
|
|
915
|
+
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];
|
|
916
916
|
// Zero out whatever was not defaulted, including time
|
|
917
917
|
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
918
918
|
// Check for 24:00:00.000
|
|
@@ -921,7 +921,7 @@ for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
|
921
921
|
// with parseZone.
|
|
922
922
|
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),
|
|
923
923
|
// check for mismatching day of week
|
|
924
|
-
e._w&&void 0!==e._w.d&&e._w.d!==i&&(
|
|
924
|
+
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,
|
|
925
925
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
926
926
|
// how we interpret now (local, utc, fixed offset). So create
|
|
927
927
|
// a now version of current config (take local/utc/offset flags, and
|
|
@@ -934,34 +934,34 @@ i=t.d)<0||i>6)&&(u=!0):null!=t.e?(
|
|
|
934
934
|
// local weekday -- counting starts from beginning of week
|
|
935
935
|
i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):
|
|
936
936
|
// default to beginning of week
|
|
937
|
-
i=o),r<1||r>Tt(n,o,s)?
|
|
937
|
+
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)}
|
|
938
938
|
// constant that refers to the ISO standard
|
|
939
939
|
// date from string and format string
|
|
940
940
|
function Gn(e){
|
|
941
941
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
942
|
-
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],
|
|
942
|
+
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;
|
|
943
943
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
944
|
-
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(C)||[]).length,t=0;t<u;t++)o=i[t],(n=(l.match(Ce(o,e))||[])[0])&&((s=l.substr(0,l.indexOf(n))).length>0&&
|
|
944
|
+
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(C)||[]).length,t=0;t<u;t++)o=i[t],(n=(l.match(Ce(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),
|
|
945
945
|
// don't parse if it's not a known token
|
|
946
|
-
F[o]?(n?
|
|
946
|
+
F[o]?(n?y(e).empty=!1:y(e).unusedTokens.push(o),Ge(o,n,e)):e._strict&&!n&&y(e).unusedTokens.push(o);
|
|
947
947
|
// add remaining unparsed input length to the string
|
|
948
|
-
|
|
948
|
+
y(e).charsLeftOver=h-c,l.length>0&&y(e).unusedInput.push(l),
|
|
949
949
|
// clear _12h flag if hour is <= 12
|
|
950
|
-
e._a[ze]<=12&&!0===
|
|
950
|
+
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,
|
|
951
951
|
// handle meridiem
|
|
952
952
|
e._a[ze]=$n(e._locale,e._a[ze],e._meridiem),null!==(
|
|
953
953
|
// handle era
|
|
954
|
-
a=
|
|
954
|
+
a=y(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),Yn(e),wn(e)}else Cn(e);else Bn(e)}function $n(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
|
955
955
|
// Fallback
|
|
956
956
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
|
957
957
|
// date from string and array of format strings
|
|
958
|
-
function jn(e){var t,n,r,i,o,s,a=!1,u=e._f.length;if(0===u)return
|
|
958
|
+
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),
|
|
959
959
|
// if there is any input that was not parsed add a penalty for that format
|
|
960
|
-
o+=
|
|
960
|
+
o+=y(t).charsLeftOver,
|
|
961
961
|
//or tokens
|
|
962
|
-
o+=10*
|
|
962
|
+
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&&(
|
|
963
963
|
// Adding is smart enough around DST
|
|
964
|
-
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),
|
|
964
|
+
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?In(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Yn(e)):s(t)?Wn(e):h(t)?
|
|
965
965
|
// from milliseconds
|
|
966
966
|
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),
|
|
967
967
|
// object construction must be done this way.
|
|
@@ -977,7 +977,7 @@ r.RFC_2822=function(){};var Kn=M("moment().min is deprecated, use moment.max ins
|
|
|
977
977
|
function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
|
978
978
|
// TODO: Use [].sort instead?
|
|
979
979
|
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===$e.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
|
980
|
-
parseFloat(e[rr[n]])!==ce(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return
|
|
980
|
+
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,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=ir(t),
|
|
981
981
|
// representation for dateAddRemove
|
|
982
982
|
this._milliseconds=+h+1e3*l+// 1000
|
|
983
983
|
6e4*u+// 1000 * 60
|
|
@@ -1020,34 +1020,34 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1020
1020
|
// a second time. In case it wants us to change the offset again
|
|
1021
1021
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1022
1022
|
// there is no such time in the given timezone.
|
|
1023
|
-
function
|
|
1023
|
+
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(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Nr(this,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 _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(Pe,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}
|
|
1024
1024
|
// ASP.NET json date format regex
|
|
1025
|
-
r.updateOffset=function(){};var
|
|
1025
|
+
r.updateOffset=function(){};var Dr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1026
1026
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1027
1027
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1028
1028
|
// and further modified to allow for strings containing both week and day
|
|
1029
|
-
|
|
1029
|
+
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 Or(e,t){var n,r,i,o=e,
|
|
1030
1030
|
// matching against regexp is expensive, do it on demand
|
|
1031
|
-
s=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=
|
|
1031
|
+
s=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[Ve])*n,h:ce(s[ze])*n,m:ce(s[Ze])*n,s:ce(s[Xe])*n,ms:ce(lr(1e3*s[qe]))*n}):(s=xr.exec(e))?(n="-"===s[1]?-1:1,o={y:Br(s[2],n),M:Br(s[3],n),w:Br(s[4],n),d:Br(s[5],n),h:Br(s[6],n),m:Br(s[7],n),s:Br(s[8],n)}):null==o?
|
|
1032
1032
|
// checks for null or undefined
|
|
1033
|
-
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),ur(e)&&a(e,"_locale")&&(r._locale=e._locale),ur(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function
|
|
1033
|
+
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),ur(e)&&a(e,"_locale")&&(r._locale=e._locale),ur(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Br(e,t){
|
|
1034
1034
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
1035
1035
|
// converts floats to ints.
|
|
1036
1036
|
// inp may be undefined, so careful calling replace on it.
|
|
1037
1037
|
var n=e&&parseFloat(e.replace(",","."));
|
|
1038
1038
|
// apply sign while we're at it
|
|
1039
|
-
return(isNaN(n)?0:n)*t}function
|
|
1039
|
+
return(isNaN(n)?0:n)*t}function Pr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Pr(e,t):((n=Pr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
|
|
1040
1040
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1041
1041
|
function Hr(e,t){return function(n,r){var i;
|
|
1042
1042
|
//invert the arguments, but complain about it
|
|
1043
|
-
return null===r||isNaN(+r)||(
|
|
1043
|
+
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,Or(n,r),e),this}}function Nr(e,t,n,i){var o=t._milliseconds,s=lr(t._days),a=lr(t._months);e.isValid()&&(i=null==i||i,a&&ht(e,de(e,"Month")+a*n),s&&pe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Or.fn=ar.prototype,Or.invalid=sr;var Lr=Hr(1,"add"),Cr=Hr(-1,"subtract");function Ir(e){return"string"==typeof e||e instanceof String}
|
|
1044
1044
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1045
1045
|
function Rr(e){return S(e)||c(e)||Ir(e)||h(e)||Yr(e)||Fr(e)||null==e}function Fr(e){var t,n,r=s(e)&&!u(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=o.length;for(t=0;t<l;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Yr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Ir(e)})).length),t&&n}function Ur(e){var t,n,r=s(e)&&!u(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Gr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function $r(e,t){
|
|
1046
1046
|
// Support for single parameter, formats only overload to the calendar function
|
|
1047
1047
|
1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
1048
1048
|
// We want to compare the start of today, vs this.
|
|
1049
1049
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
1050
|
-
var n=e||qn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(
|
|
1050
|
+
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
|
|
1051
1051
|
case"minute":o=(this-r)/6e4;break;// 1000 * 60
|
|
1052
1052
|
case"hour":o=(this-r)/36e5;break;// 1000 * 60 * 60
|
|
1053
1053
|
case"day":o=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
@@ -1061,7 +1061,7 @@ var n=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
|
1061
1061
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
1062
1062
|
r=e.clone().add(n,"months");
|
|
1063
1063
|
//check for negative zero, return zero if negative zero
|
|
1064
|
-
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):
|
|
1064
|
+
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?
|
|
1065
1065
|
// native implementation is ~50x faster, use it when we can
|
|
1066
1066
|
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
1067
1067
|
/**
|
|
@@ -1069,7 +1069,7 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
|
1069
1069
|
* also be evaluated to get a new moment which is the same
|
|
1070
1070
|
*
|
|
1071
1071
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
1072
|
-
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?
|
|
1072
|
+
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?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)}
|
|
1073
1073
|
// If passed a locale key, it will set the locale for this
|
|
1074
1074
|
// instance. Otherwise, it will return the locale configuration
|
|
1075
1075
|
// variables for this instance.
|
|
@@ -1077,15 +1077,15 @@ function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(thi
|
|
|
1077
1077
|
// actual modulo - handles negative numbers (for dates before 1970):
|
|
1078
1078
|
function pi(e,t){return(e%t+t)%t}function mi(e,t,n){
|
|
1079
1079
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
1080
|
-
return e<100&&e>=0?new Date(e+400,t,n)-di:new Date(e,t,n).valueOf()}function
|
|
1080
|
+
return e<100&&e>=0?new Date(e+400,t,n)-di:new Date(e,t,n).valueOf()}function yi(e,t,n){
|
|
1081
1081
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1082
|
-
return e<100&&e>=0?Date.UTC(e+400,t,n)-di:Date.UTC(e,t,n)}function
|
|
1082
|
+
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(){
|
|
1083
1083
|
// new Date(NaN).toJSON() === null
|
|
1084
|
-
return this.isValid()?this.toISOString():null}function Mi(){return
|
|
1084
|
+
return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function ki(){return d({},y(this))}function Di(){return y(this).overflow}function xi(){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&&(
|
|
1085
1085
|
// truncate time
|
|
1086
1086
|
o=r(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":
|
|
1087
1087
|
// truncate time
|
|
1088
|
-
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function
|
|
1088
|
+
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Bi(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 Pi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1089
1089
|
// truncate time
|
|
1090
1090
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1091
1091
|
// truncate time
|
|
@@ -1093,7 +1093,7 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
|
|
|
1093
1093
|
// truncate time
|
|
1094
1094
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Li(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,
|
|
1095
1095
|
// truncate time
|
|
1096
|
-
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ci(e){return a(this,"_erasNameRegex")||$i.call(this),e?this._erasNameRegex:this._erasRegex}function Ii(e){return a(this,"_erasAbbrRegex")||$i.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||$i.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Yi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Gi(e,t){return t._eraYearOrdinalRegex||
|
|
1096
|
+
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ci(e){return a(this,"_erasNameRegex")||$i.call(this),e?this._erasNameRegex:this._erasRegex}function Ii(e){return a(this,"_erasAbbrRegex")||$i.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||$i.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Yi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Gi(e,t){return t._eraYearOrdinalRegex||Oe}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")}
|
|
1097
1097
|
// FORMATTING
|
|
1098
1098
|
function ji(e,t){Y(0,[e,e.length],0,t)}
|
|
1099
1099
|
// MOMENTS
|
|
@@ -1102,13 +1102,13 @@ function Wi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData(
|
|
|
1102
1102
|
// MOMENTS
|
|
1103
1103
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
1104
1104
|
// FORMATTING
|
|
1105
|
-
Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Le("N",Fi),Le("NN",Fi),Le("NNN",Fi),Le("NNNN",Yi),Le("NNNNN",Ui),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?
|
|
1105
|
+
Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Le("N",Fi),Le("NN",Fi),Le("NNN",Fi),Le("NNNN",Yi),Le("NNNNN",Ui),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e})),Le("y",Oe),Le("yy",Oe),Le("yyy",Oe),Le("yyyy",Oe),Le("yo",Gi),Ye(["y","yy","yyy","yyyy"],je),Ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[je]=n._locale.eraYearOrdinalParse(e,i):t[je]=parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
|
|
1106
1106
|
// ALIASES
|
|
1107
1107
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
1108
1108
|
// PRIORITY
|
|
1109
1109
|
se("weekYear",1),se("isoWeekYear",1),
|
|
1110
1110
|
// PARSING
|
|
1111
|
-
Le("G",
|
|
1111
|
+
Le("G",Be),Le("g",Be),Le("GG",Se,be),Le("gg",Se,be),Le("GGGG",De,we),Le("gggg",De,we),Le("GGGGG",xe,Ee),Le("ggggg",xe,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"),
|
|
1112
1112
|
// ALIASES
|
|
1113
1113
|
ne("quarter","Q"),
|
|
1114
1114
|
// PRIORITY
|
|
@@ -1162,11 +1162,11 @@ ne("millisecond","ms"),
|
|
|
1162
1162
|
// PRIORITY
|
|
1163
1163
|
se("millisecond",16),
|
|
1164
1164
|
// PARSING
|
|
1165
|
-
Le("S",ke,ve),Le("SS",ke,be),Le("SSS",ke,_e),ro="SSSS";ro.length<=9;ro+="S")Le(ro,
|
|
1165
|
+
Le("S",ke,ve),Le("SS",ke,be),Le("SSS",ke,_e),ro="SSSS";ro.length<=9;ro+="S")Le(ro,Oe);function so(e,t){t[qe]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ye(ro,so);
|
|
1166
1166
|
// MOMENTS
|
|
1167
1167
|
function ao(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=fe("Milliseconds",!1),
|
|
1168
1168
|
// FORMATTING
|
|
1169
|
-
Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){return qn(1e3*e)}function co(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}lo.add=Lr,lo.calendar=$r,lo.clone=jr,lo.diff=Kr,lo.endOf=vi,lo.format=ni,lo.from=ri,lo.fromNow=ii,lo.to=oi,lo.toNow=si,lo.get=me,lo.invalidAt=
|
|
1169
|
+
Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){return qn(1e3*e)}function co(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}lo.add=Lr,lo.calendar=$r,lo.clone=jr,lo.diff=Kr,lo.endOf=vi,lo.format=ni,lo.from=ri,lo.fromNow=ii,lo.to=oi,lo.toNow=si,lo.get=me,lo.invalidAt=Di,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=Cr,lo.toArray=Ei,lo.toObject=Si,lo.toDate=wi,lo.toISOString=ei,lo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Ti,lo.toString=Qr,lo.unix=_i,lo.valueOf=bi,lo.creationData=xi,lo.eraName=Ai,lo.eraNarrow=Hi,lo.eraAbbr=Ni,lo.eraYear=Li,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=Ot,lo.isoWeek=lo.isoWeeks=Bt,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=A.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}
|
|
1170
1170
|
// ()
|
|
1171
1171
|
// (5)
|
|
1172
1172
|
// (fmt, 5)
|
|
@@ -1175,34 +1175,34 @@ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var lo=E.prototype;function ho(e){r
|
|
|
1175
1175
|
// (true, 5)
|
|
1176
1176
|
// (true, fmt, 5)
|
|
1177
1177
|
// (true, fmt)
|
|
1178
|
-
function
|
|
1178
|
+
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=B,po.eras=Oi,po.erasParse=Bi,po.erasConvertYear=Pi,po.erasAbbrRegex=Ii,po.erasNameRegex=Ci,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=dt,po.week=Mt,po.firstDayOfYear=xt,po.firstDayOfWeek=Dt,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===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1179
1179
|
// Side effect imports
|
|
1180
|
-
r.lang=M("moment.lang is deprecated. Use moment.locale instead.",
|
|
1180
|
+
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()}
|
|
1181
1181
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1182
1182
|
function ko(e,t){return Mo(this,e,t,1)}
|
|
1183
1183
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1184
|
-
function
|
|
1184
|
+
function Do(e,t){return Mo(this,e,t,-1)}function xo(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,u=this._data;
|
|
1185
1185
|
// if we have a mix of positive and negative values, bubble down first
|
|
1186
1186
|
// check: https://github.com/moment/moment/issues/2166
|
|
1187
|
-
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*
|
|
1187
|
+
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*xo(Po(a)+s),s=0,a=0),
|
|
1188
1188
|
// The following code bubbles up values, see the tests for
|
|
1189
1189
|
// examples of what that means.
|
|
1190
1190
|
u.milliseconds=o%1e3,e=he(o/1e3),u.seconds=e%60,t=he(e/60),u.minutes=t%60,n=he(t/60),u.hours=n%24,s+=he(n/24),a+=
|
|
1191
1191
|
// convert days to months
|
|
1192
|
-
i=he(
|
|
1192
|
+
i=he(Bo(s)),s-=xo(Po(i)),
|
|
1193
1193
|
// 12 months -> 1 year
|
|
1194
|
-
r=he(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function
|
|
1194
|
+
r=he(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function Bo(e){
|
|
1195
1195
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
1196
1196
|
// 400 years have 12 months === 4800
|
|
1197
|
-
return 4800*e/146097}function
|
|
1197
|
+
return 4800*e/146097}function Po(e){
|
|
1198
1198
|
// the reverse of daysToMonths
|
|
1199
|
-
return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+
|
|
1199
|
+
return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Bo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
|
1200
1200
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
1201
|
-
t=this._days+Math.round(
|
|
1201
|
+
t=this._days+Math.round(Po(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
|
|
1202
1202
|
// Math.floor prevents floating point math errors here
|
|
1203
1203
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1204
1204
|
// TODO: Use this.as('ms')?
|
|
1205
|
-
function Ho(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function No(e){return function(){return this.as(e)}}var Lo=No("ms"),Co=No("s"),Io=No("m"),Ro=No("h"),Fo=No("d"),Yo=No("w"),Uo=No("M"),Go=No("Q"),$o=No("y");function jo(){return
|
|
1205
|
+
function Ho(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function No(e){return function(){return this.as(e)}}var Lo=No("ms"),Co=No("s"),Io=No("m"),Ro=No("h"),Fo=No("d"),Yo=No("w"),Uo=No("M"),Go=No("Q"),$o=No("y");function jo(){return 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 he(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
|
1206
1206
|
s:45,// seconds to minute
|
|
1207
1207
|
m:45,// minutes to hour
|
|
1208
1208
|
h:22,// hours to day
|
|
@@ -1210,7 +1210,7 @@ d:26,// days to month/week
|
|
|
1210
1210
|
w:null,// weeks to month
|
|
1211
1211
|
M:11};
|
|
1212
1212
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
1213
|
-
function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=
|
|
1213
|
+
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")),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)}
|
|
1214
1214
|
// This function allows you to set the rounding function for relative time strings
|
|
1215
1215
|
function os(e){return void 0===e?ts:"function"==typeof e&&(ts=e,!0)}
|
|
1216
1216
|
// This function allows you to set a threshold for relative time strings
|
|
@@ -1228,13 +1228,13 @@ e=he(u/60),t=he(e/60),u%=60,e%=60,
|
|
|
1228
1228
|
// 12 months -> 1 year
|
|
1229
1229
|
n=he(h/12),h%=12,
|
|
1230
1230
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1231
|
-
r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",o=ls(this._months)!==ls(c)?"-":"",s=ls(this._days)!==ls(c)?"-":"",a=ls(this._milliseconds)!==ls(c)?"-":"",i+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(l?s+l+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var cs=ar.prototype;return cs.isValid=or,cs.abs=To,cs.add=ko,cs.subtract=
|
|
1231
|
+
r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",o=ls(this._months)!==ls(c)?"-":"",s=ls(this._days)!==ls(c)?"-":"",a=ls(this._milliseconds)!==ls(c)?"-":"",i+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(l?s+l+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var cs=ar.prototype;return cs.isValid=or,cs.abs=To,cs.add=ko,cs.subtract=Do,cs.as=Ao,cs.asMilliseconds=Lo,cs.asSeconds=Co,cs.asMinutes=Io,cs.asHours=Ro,cs.asDays=Fo,cs.asWeeks=Yo,cs.asMonths=Uo,cs.asQuarters=Go,cs.asYears=$o,cs.valueOf=Ho,cs._bubble=Oo,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,
|
|
1232
1232
|
// FORMATTING
|
|
1233
1233
|
Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),
|
|
1234
1234
|
// PARSING
|
|
1235
|
-
Le("x",
|
|
1235
|
+
Le("x",Be),Le("X",He),Ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ye("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
|
1236
1236
|
//! moment.js
|
|
1237
|
-
r.version="2.29.4",i(qn),r.fn=lo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ho,r.months=vo,r.isDate=c,r.locale=
|
|
1237
|
+
r.version="2.29.4",i(qn),r.fn=lo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ho,r.months=vo,r.isDate=c,r.locale=yn,r.invalid=v,r.duration=Or,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,
|
|
1238
1238
|
// currently HTML5 input type only supports 24-hour formats
|
|
1239
1239
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
1240
1240
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -1247,65 +1247,65 @@ WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
|
1247
1247
|
MONTH:"YYYY-MM"},r}()}));
|
|
1248
1248
|
/* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.58.0 */
|
|
1249
1249
|
function _r(e){let t;function n(e,t){/*isLoggedIn*/
|
|
1250
|
-
return e[6]?Tr:/*funMode*/e[11]?Sr:void 0}let r=n(e),i=r&&r(e);return{c(){t=
|
|
1250
|
+
return e[6]?Tr:/*funMode*/e[11]?Sr:void 0}let r=n(e),i=r&&r(e);return{c(){t=y("div"),i&&i.c(),_(t,"class","CasinoIntegratedGamePage"),_(t,"part","CasinoIntegratedGamePage")},m(e,n){p(e,t,n),i&&i.m(t,null)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
|
|
1251
1251
|
// (353:4) {#if hasErrors}
|
|
1252
|
-
function wr(e){let t;return{c(){t=
|
|
1252
|
+
function wr(e){let t;return{c(){t=y("p"),t.textContent="500 Error - Internal Server Error.",_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
|
|
1253
1253
|
// (350:2) {#if isLoading}
|
|
1254
|
-
function Er(e){let t;return{c(){t=
|
|
1254
|
+
function Er(e){let t;return{c(){t=y("p"),t.textContent="Loading, please wait ...",_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
|
|
1255
1255
|
// (392:10) {#if funMode}
|
|
1256
|
-
function Sr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,
|
|
1257
|
-
return e[17]?kr:Mr}let G=U(e),$=G(e),j=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&
|
|
1256
|
+
function Sr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,D,x,O,B,P,A,H,N,L,C,I,R,F=/*$_*/e[22]("signIn")+"",Y=/*$_*/e[22]("register")+"";function U(e,t){/*isFullscreen*/
|
|
1257
|
+
return e[17]?kr:Mr}let G=U(e),$=G(e),j=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Dr();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-color-primary, #D0046C);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=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"),D=v(),x=y("div"),O=y("div"),B=y("button"),P=g(F),A=v(),H=y("button"),N=g(Y),L=v(),$.c(),C=v(),j&&j.c(),_(n,"class","backButton"),_(n,"part","backButton"),_(i,"class","Time"),_(i,"part","Time"),_(t,"class","GamePageIntegratedTopSection"),_(t,"part","GamePageIntegratedTopSection"),_(M,"title","Games"),_(M,"class","GamesContainer"),_(M,"part","GamesContainer"),_(M,"aria-hidden","false"),c(M.src,k=/*game*/e[10].launchUrl)||_(M,"src",k),_(B,"class","LoginButton"),_(B,"part","LoginButton"),_(H,"class","RegisterButton"),_(H,"part","RegisterButton"),_(O,"class","ButtonsContainer ButtonsContainerFunMode"),_(O,"part","ButtonsContainer ButtonsContainerFunMode"),_(x,"class","BottomGame"),_(x,"part","BottomGame"),_(T,"id","IframeGame"),_(T,"part","IframeGame"),E(T,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),E(T,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),E(T,"max-width",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].width?Math.floor(/*game*/e[10].width)+"px":"1280px"),E(T,"max-height",/*isFullscreen*/e[17]||!/*isModal*/e[12]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),_(f,"id","IframeContainer"),_(f,"part","IframeContainer"),S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
|
|
1258
1258
|
/*p_binding_1*/e[57](i),d(t,u),d(t,l),p(s,h,c),p(s,f,c),d(f,T),d(T,M),
|
|
1259
|
-
/*iframe_1_binding_1*/e[58](M),d(T,
|
|
1260
|
-
/*div3_binding_1*/e[63](
|
|
1259
|
+
/*iframe_1_binding_1*/e[58](M),d(T,D),d(T,x),d(x,O),d(O,B),d(B,P),d(O,A),d(O,H),d(H,N),d(x,L),$.m(x,null),
|
|
1260
|
+
/*div3_binding_1*/e[63](x),
|
|
1261
1261
|
/*div4_binding*/e[64](T),d(f,C),j&&j.m(f,null)
|
|
1262
|
-
/*div5_binding*/,e[65](f),I||(R=[b(n,"click",/*click_handler_4*/e[56]),b(
|
|
1262
|
+
/*div5_binding*/,e[65](f),I||(R=[b(n,"click",/*click_handler_4*/e[56]),b(B,"click",/*click_handler_5*/e[59]),b(H,"click",/*click_handler_6*/e[60])],I=!0)},p(e,t){/*time*/16&t[0]&&w(a,/*time*/e[4]),/*game*/1024&t[0]&&!c(M.src,k=/*game*/e[10].launchUrl)&&_(M,"src",k),/*$_*/4194304&t[0]&&F!==(F=/*$_*/e[22]("signIn")+"")&&w(P,F),/*$_*/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=Dr(),j.c(),j.m(f,null)),/*isFullscreen*/131072&t[0]&&S(f,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
|
|
1263
1263
|
/*p_binding_1*/,e[57](null),n&&m(h),n&&m(f)
|
|
1264
1264
|
/*iframe_1_binding_1*/,e[58](null),$.d(),
|
|
1265
1265
|
/*div3_binding_1*/e[63](null),
|
|
1266
1266
|
/*div4_binding*/e[64](null),j&&j.d()
|
|
1267
1267
|
/*div5_binding*/,e[65](null),I=!1,s(R)}}}
|
|
1268
1268
|
// (357:8) {#if isLoggedIn}
|
|
1269
|
-
function Tr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,
|
|
1270
|
-
return e[17]?Or
|
|
1269
|
+
function Tr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,D,x,O,B,P,A,H,N,L,C=/*$_*/e[22]("deposit")+"",I=/*haspanicbutton*/"true"===e[0]&&xr(e);function R(e,t){/*isFullscreen*/
|
|
1270
|
+
return e[17]?Br:Or}let F=R(e),Y=F(e),U=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[17]&&Pr();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-color-primary, #FFF);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=y("p"),o=y("span"),a=g(/*time*/e[4]),u=v(),l=y("button"),h=g(C),f=v(),T=y("div"),M=y("div"),k=y("iframe"),B=v(),P=y("div"),I&&I.c(),A=v(),Y.c(),H=v(),U&&U.c(),_(n,"class","backButton"),_(n,"part","backButton"),_(i,"class","Time"),_(i,"part","Time"),_(l,"class","DepositButton"),_(l,"part","DepositButton"),_(t,"class","GamePageIntegratedTopSection"),_(t,"part","GamePageIntegratedTopSection"),_(k,"title","Games"),_(k,"id","IframeGame"),_(k,"class","GamesContainer"),_(k,"part","GamesContainer"),_(k,"aria-hidden","false"),c(k.src,D=/*game*/e[10].launchUrl)||_(k,"src",D),_(k,"width",x=/*gameContainerWidth*/e[14]+"px"),_(k,"height",O=/*gameContainerHeight*/e[15]+"px"),_(P,"class","BottomGame BottomGameLoggedin"),_(P,"part","BottomGame BottomGameLoggedin"),_(M,"id","IframeGame"),_(M,"part","IframeGame"),E(M,"width",/*isFullscreen*/e[17]?"100%":/*definitiveIframeWidth*/e[18]),E(M,"height",/*isFullscreen*/e[17]?"100%":/*definitiveIframeHeight*/e[19]),E(M,"max-width",/*isFullscreen*/e[17]?"none":/*game*/e[10].width?/*game*/e[10].width+"px":"1280px"),E(M,"max-height",/*isFullscreen*/e[17]?"none":/*game*/e[10].height?Math.floor(/*game*/e[10].height)+100+"px":"720px"),_(T,"id","IframeContainer"),_(T,"part","IframeContainer"),S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
|
|
1271
1271
|
/*p_binding*/e[47](i),d(t,u),d(t,l),d(l,h),p(s,f,c),p(s,T,c),d(T,M),d(M,k),
|
|
1272
|
-
/*iframe_1_binding*/e[49](k),d(M,
|
|
1273
|
-
/*div1_binding*/e[53](
|
|
1272
|
+
/*iframe_1_binding*/e[49](k),d(M,B),d(M,P),I&&I.m(P,null),d(P,A),Y.m(P,null),
|
|
1273
|
+
/*div1_binding*/e[53](P),
|
|
1274
1274
|
/*div2_binding*/e[54](M),d(T,H),U&&U.m(T,null)
|
|
1275
|
-
/*div3_binding*/,e[55](T),N||(L=[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]&&C!==(C=/*$_*/e[22]("
|
|
1275
|
+
/*div3_binding*/,e[55](T),N||(L=[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]&&C!==(C=/*$_*/e[22]("deposit")+"")&&w(h,C),/*game*/1024&t[0]&&!c(k.src,D=/*game*/e[10].launchUrl)&&_(k,"src",D),/*gameContainerWidth*/16384&t[0]&&x!==(x=/*gameContainerWidth*/e[14]+"px")&&_(k,"width",x),/*gameContainerHeight*/32768&t[0]&&O!==(O=/*gameContainerHeight*/e[15]+"px")&&_(k,"height",O),/*haspanicbutton*/"true"===e[0]?I?I.p(e,t):(I=xr(e),I.c(),I.m(P,A)):I&&(I.d(1),I=null),F===(F=R(e))&&Y?Y.p(e,t):(Y.d(1),Y=F(e),Y&&(Y.c(),Y.m(P,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=Pr(),U.c(),U.m(T,null)),/*isFullscreen*/131072&t[0]&&S(T,"FullsScreenLayout",/*isFullscreen*/e[17])},d(n){n&&m(t)
|
|
1276
1276
|
/*p_binding*/,e[47](null),n&&m(f),n&&m(T)
|
|
1277
1277
|
/*iframe_1_binding*/,e[49](null),I&&I.d(),Y.d(),
|
|
1278
1278
|
/*div1_binding*/e[53](null),
|
|
1279
1279
|
/*div2_binding*/e[54](null),U&&U.d()
|
|
1280
1280
|
/*div3_binding*/,e[55](null),N=!1,s(L)}}}
|
|
1281
1281
|
// (412:18) {:else}
|
|
1282
|
-
function Mr(e){let t,n,i;return{c(){t=
|
|
1282
|
+
function Mr(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()}}}
|
|
1283
1283
|
// (408:18) {#if isFullscreen}
|
|
1284
|
-
function kr(e){let t,n,i;return{c(){t=
|
|
1284
|
+
function kr(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:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',_(t,"class","FullscreenButton"),_(t,"part","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()}}}
|
|
1285
1285
|
// (419:14) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1286
|
-
function
|
|
1286
|
+
function Dr(e){let t;return{c(){t=y("div"),t.innerHTML="<h3>Your banner here</h3>",_(t,"class","BannerSection"),_(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}
|
|
1287
1287
|
// (369:16) {#if haspanicbutton === "true"}
|
|
1288
|
-
function
|
|
1289
|
-
/*button_binding*/e[50](n)},p(e,t){/*$_*/4194304&t[0]&&i!==(i=/*$_*/e[22]("
|
|
1288
|
+
function xr(e){let t,n,r,i=/*$_*/e[22]("breakButton")+"";return{c(){t=y("div"),n=y("button"),r=g(i),_(n,"class","PanicButton "+("PC"!==pr(/*userAgent*/e[23])?"PanicButtonMobile":"")),_(n,"part","PanicButton "+("PC"!==pr(/*userAgent*/e[23])?"PanicButtonMobile":"")),S(n,"PanicButtonAnimation",/*panicLoading*/e[9]),_(t,"class","PanicSection"),_(t,"part","PanicSection")},m(i,o){p(i,t,o),d(t,n),d(n,r),
|
|
1289
|
+
/*button_binding*/e[50](n)},p(e,t){/*$_*/4194304&t[0]&&i!==(i=/*$_*/e[22]("breakButton")+"")&&w(r,i),/*panicLoading*/512&t[0]&&S(n,"PanicButtonAnimation",/*panicLoading*/e[9])},d(n){n&&m(t)
|
|
1290
1290
|
/*button_binding*/,e[50](null)}}}
|
|
1291
1291
|
// (378:16) {:else}
|
|
1292
|
-
function
|
|
1292
|
+
function Or(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_3*/e[52]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
|
|
1293
1293
|
// (374:16) {#if isFullscreen}
|
|
1294
|
-
function
|
|
1294
|
+
function Br(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:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',_(t,"class","FullscreenButton"),_(t,"part","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()}}}
|
|
1295
1295
|
// (385:12) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1296
|
-
function
|
|
1297
|
-
return e[8]?Er:/*hasErrors*/e[7]?wr:_r}let i=n(e),o=i(e);return{c(){t=
|
|
1296
|
+
function Pr(e){let t;return{c(){t=y("div"),t.innerHTML="<h3>Your banner here</h3>",_(t,"class","BannerSection"),_(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}function Ar(e){let t;function n(e,t){/*isLoading*/
|
|
1297
|
+
return e[8]?Er:/*hasErrors*/e[7]?wr:_r}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),
|
|
1298
1298
|
/*div_binding*/e[66](t)},p(e,r){i===(i=n(e))&&o?o.p(e,r):(o.d(1),o=i(e),o&&(o.c(),o.m(t,null)))},i:r,o:r,d(n){n&&m(t),o.d(),
|
|
1299
|
-
/*div_binding*/e[66](null)}}}function Hr(e,t,n){let r;var i,o;i=dr,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,g,
|
|
1299
|
+
/*div_binding*/e[66](null)}}}function Hr(e,t,n){let r;var i,o;i=dr,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,y,g,v,b,_,w,E,S,{endpoint:T=""}=t,{lang:M=""}=t,{session:D=""}=t,{userid:O=""}=t,{clientstyling:B=""}=t,{clientstylingurl:P=""}=t,{translationurl:A=""}=t,{loginurl:H=""}=t,{registerurl:N=""}=t,{depositurl:L=""}=t,{loginevent:C=""}=t,{registerevent:I=""}=t,{depositevent:R=""}=t,{clockformat:F=""}=t,{haspanicbutton:Y="false"}=t,{playforfun:U="true"}=t,{checksession:G="true"}=t,{gamebanneractive:$="false"}=t,{gameid:j=""}=t,W=!1,V=!1,z=!0,Z=!1,X=0,q=!1,K=!1,J=!0,Q=!1,ee=window.navigator.userAgent;!function({withLocale:e,translations:t}){tr.subscribe((n=>{null==n&&(Rn.set(t),tr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1300
1300
|
/*dictionary.set(translations);
|
|
1301
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(
|
|
1301
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(yr).forEach((e=>{mr(e,yr[e])}));
|
|
1302
1302
|
// @TODO game typescript model type
|
|
1303
1303
|
const te=(e,t)=>{let r=new URL(`${T}/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(12,J=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(10,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
|
|
1304
1304
|
// @TODO wtf? session check or go home
|
|
1305
1305
|
// Maybe we should check if the session is valid, somehow?
|
|
1306
|
-
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),
|
|
1306
|
+
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),
|
|
1307
1307
|
// resize logic for maintaining game ratio when resizing
|
|
1308
|
-
p/r>m-E.clientHeight-S.clientHeight?(v=m-E.clientHeight-S.clientHeight,
|
|
1308
|
+
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=()=>{
|
|
1309
1309
|
// sent to modal component a flag (detailsObtained) by witch to determine if a game is open
|
|
1310
1310
|
window.postMessage({type:"GameStateOnResize",detailsObtained:q},window.location.href),
|
|
1311
1311
|
// make sure that a game is open before trying to get the element properties
|
|
@@ -1321,9 +1321,9 @@ window.location=N),
|
|
|
1321
1321
|
//Analytics event
|
|
1322
1322
|
"function"==typeof gtag&>ag("event","GoToDeposit",{context:"IntegratedGamePage"})),L&&(
|
|
1323
1323
|
// @ts-ignore
|
|
1324
|
-
window.location=L)};function ue(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!Q||le()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",ue,!1),document.addEventListener("mozfullscreenchange",ue,!1),document.addEventListener("fullscreenchange",ue,!1),document.addEventListener("MSFullscreenChange",ue,!1));const le=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(Q?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen()),n(17,Q=!Q)},ce=setInterval((()=>{n(4,s=F?br().format(F):br().format("LTS"))}),100),fe=()=>{var e;e=M,tr.set(e),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(ee),n(8,z=!1)},de=()=>{"true"==G?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),he(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(T,
|
|
1324
|
+
window.location=L)};function ue(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!Q||le()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",ue,!1),document.addEventListener("mozfullscreenchange",ue,!1),document.addEventListener("fullscreenchange",ue,!1),document.addEventListener("MSFullscreenChange",ue,!1));const le=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(Q?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen()),n(17,Q=!Q)},ce=setInterval((()=>{n(4,s=F?br().format(F):br().format("LTS"))}),100),fe=()=>{var e;e=M,tr.set(e),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(ee),n(8,z=!1)},de=()=>{"true"==G?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),he(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(T,D).then((e=>{u=e.Guid,e.UserID,n(6,W=!0)}),(e=>{n(6,W=!1),console.error("err on session",e)})):u=D},pe=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},me=e=>{X=0,h=setInterval((()=>{X+=1,n(9,Z=!0),X>=3&&clearInterval(h)}),1e3)},ye=e=>{X<3&&n(9,Z=!1),clearInterval(h)};k((()=>(window.addEventListener("resize",ie,!1),vr.isNative(ee),()=>{n(9,Z=!1),null==l||l.removeEventListener("mousedown",me),null==l||l.removeEventListener("touchstart",me),
|
|
1325
1325
|
// on mouseup stop interval count
|
|
1326
|
-
null==l||l.removeEventListener("mouseup",
|
|
1326
|
+
null==l||l.removeEventListener("mouseup",ye),null==l||l.removeEventListener("touchend",ye),window.removeEventListener("resize",ie),clearInterval(ce)})));return e.$$set=e=>{"endpoint"in e&&n(29,T=e.endpoint),"lang"in e&&n(30,M=e.lang),"session"in e&&n(31,D=e.session),"userid"in e&&n(32,O=e.userid),"clientstyling"in e&&n(33,B=e.clientstyling),"clientstylingurl"in e&&n(34,P=e.clientstylingurl),"translationurl"in e&&n(35,A=e.translationurl),"loginurl"in e&&n(36,H=e.loginurl),"registerurl"in e&&n(37,N=e.registerurl),"depositurl"in e&&n(38,L=e.depositurl),"loginevent"in e&&n(39,C=e.loginevent),"registerevent"in e&&n(40,I=e.registerevent),"depositevent"in e&&n(41,R=e.depositevent),"clockformat"in e&&n(42,F=e.clockformat),"haspanicbutton"in e&&n(0,Y=e.haspanicbutton),"playforfun"in e&&n(43,U=e.playforfun),"checksession"in e&&n(44,G=e.checksession),"gamebanneractive"in e&&n(1,$=e.gamebanneractive),"gameid"in e&&n(45,j=e.gameid)},e.$$.update=()=>{/*lang*/1073741824&e.$$.dirty[0]&&M&&fe(),/*endpoint, lang*/1610612736&e.$$.dirty[0]|/*gameid*/16384&e.$$.dirty[1]&&T&&j&&M&&te(j),/*endpoint*/536870912&e.$$.dirty[0]|/*session, userid*/3&e.$$.dirty[1]&&D&&O&&T&&de(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstyling*/4&e.$$.dirty[1]&&B&&w&&(()=>{let e=document.createElement("style");e.innerHTML=B,w.appendChild(e)})(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstylingurl*/8&e.$$.dirty[1]&&P&&w&&(()=>{let e=document.createElement("style");if(P){let t=new URL(P);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),
|
|
1327
1327
|
// on mouseup stop interval count
|
|
1328
|
-
null==l||l.addEventListener("mouseup",
|
|
1328
|
+
null==l||l.addEventListener("mouseup",ye,!1),null==l||l.addEventListener("touchend",ye,!1)),/*translationurl*/16&e.$$.dirty[1]&&A&&fetch(A).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{mr(t,e[t])}))})).catch((e=>{console.log(e)}))},[Y,$,l,w,s,a,W,V,z,Z,c,K,J,d,p,m,y,Q,b,_,E,S,r,ee,oe,se,ae,le,pe,T,M,D,O,B,P,A,H,N,L,C,I,R,F,U,G,j,()=>pe(),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)}))},()=>pe(),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 Nr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-color-primary, #FFF)}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-color-contrast, #07072A);display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-color-green, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-color-primary, #D0046C);float:right}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-color-primary, #D0046C);border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-color-white, #FFFFFF)}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{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-color-white, #FFFFFF);cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:#fff}',this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Hr,Ar,u,{endpoint:29,lang:30,session:31,userid:32,clientstyling:33,clientstylingurl:34,translationurl:35,loginurl:36,registerurl:37,depositurl:38,loginevent:39,registerevent:40,depositevent:41,clockformat:42,haspanicbutton:0,playforfun:43,checksession:44,gamebanneractive:1,gameid:45},null,[-1,-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),C()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),C()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),C()}get userid(){return this.$$.ctx[32]}set userid(e){this.$$set({userid:e}),C()}get clientstyling(){return this.$$.ctx[33]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[34]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[35]}set translationurl(e){this.$$set({translationurl:e}),C()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$$set({loginurl:e}),C()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$$set({registerurl:e}),C()}get depositurl(){return this.$$.ctx[38]}set depositurl(e){this.$$set({depositurl:e}),C()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),C()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),C()}get depositevent(){return this.$$.ctx[41]}set depositevent(e){this.$$set({depositevent:e}),C()}get clockformat(){return this.$$.ctx[42]}set clockformat(e){this.$$set({clockformat:e}),C()}get haspanicbutton(){return this.$$.ctx[0]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),C()}get playforfun(){return this.$$.ctx[43]}set playforfun(e){this.$$set({playforfun:e}),C()}get checksession(){return this.$$.ctx[44]}set checksession(e){this.$$set({checksession:e}),C()}get gamebanneractive(){return this.$$.ctx[1]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),C()}get gameid(){return this.$$.ctx[45]}set gameid(e){this.$$set({gameid:e}),C()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",Nr),Nr}));
|
|
1329
1329
|
//# sourceMappingURL=casino-integrated-game-page.js.map
|