@everymatrix/player-rglimits 1.28.7 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/player-rglimits.js +330 -310
- package/dist/player-rglimits.js.map +1 -1
- package/index.html +3 -2
- package/package.json +2 -2
- package/src/PlayerRglimits.svelte +487 -220
- package/src/images/caret-select.svg.svelte +4 -0
- package/src/images/curency.svg.svelte +5 -0
- package/src/images/fa-caret-right.svg.svelte +4 -0
- package/src/translations.js +343 -239
- package/types/types.ts +3 -1
- package/src/images/caret-right-solid.svg +0 -1
- package/src/images/fa-caret-right.svg +0 -1
- package/src/images/usd-circle.svg +0 -2
package/dist/player-rglimits.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,o;function l(t,...i){if(null==t)return e;const n=t.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function u(e,t){e.appendChild(t)}function c(e,t,i){e.insertBefore(t,i||null)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function m(e){return document.createElement(e)}function f(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function p(e){return document.createTextNode(e)}function g(){return p(" ")}function y(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function b(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function v(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:b(e,t,i)}function _(e,t){t=""+t,e.data!==t&&(e.data=t)}function w(e,t,i,n){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function L(e,t,i){for(let i=0;i<e.options.length;i+=1){const n=e.options[i];if(n.__value===t)return void(n.selected=!0)}i&&void 0===t||(e.selectedIndex=-1)}function E(e){const t=e.querySelector(":checked");return t&&t.__value}function T(e){const t={};for(const i of e)t[i.name]=i.value;return t}function S(e){o=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
|
|
11
|
+
function k(e){(function(){if(!o)throw new Error("Function called outside component initialization");return o})().$$.on_mount.push(e)}const M=[],D=[];let P=[];const A=[],H=Promise.resolve();let C=!1;function O(e){P.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,115 +35,115 @@ function R(){
|
|
|
35
35
|
if(0!==x)return;const e=o;do{
|
|
36
36
|
// first, call beforeUpdate functions
|
|
37
37
|
// and update components
|
|
38
|
-
try{for(;x<
|
|
38
|
+
try{for(;x<M.length;){const e=M[x];x++,S(e),B(e.$$)}}catch(e){
|
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
40
|
-
throw
|
|
40
|
+
throw M.length=0,x=0,e}for(S(null),M.length=0,x=0;D.length;)D.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<P.length;e+=1){const t=P[e];N.has(t)||(
|
|
45
45
|
// ...so guard against infinite loops
|
|
46
|
-
N.add(t),t())}
|
|
46
|
+
N.add(t),t())}P.length=0}while(M.length);for(;A.length;)A.pop()();C=!1,N.clear(),S(e)}function B(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(O)}}
|
|
47
47
|
/**
|
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
49
|
-
*/const
|
|
49
|
+
*/const U=new Set;function Y(e,t){const i=e.$$;null!==i.fragment&&(!function(e){const t=[],i=[];P.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),P=t}(i.after_update),n(i.on_destroy),i.fragment&&i.fragment.d(t),
|
|
50
50
|
// TODO null out other refs, including component.$$ (but need to
|
|
51
51
|
// preserve final state?)
|
|
52
|
-
i.on_destroy=i.fragment=null,i.ctx=[])}function
|
|
52
|
+
i.on_destroy=i.fragment=null,i.ctx=[])}function I(e,t){-1===e.$$.dirty[0]&&(M.push(e),C||(C=!0,H.then(R)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function j(a,s,l,u,c,d,m,f=[-1]){const p=o;S(a);const g=a.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
|
-
props:
|
|
54
|
+
props:d,update:e,not_equal:c,bound:i(),
|
|
55
55
|
// lifecycle
|
|
56
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(
|
|
56
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),
|
|
57
57
|
// everything else
|
|
58
|
-
callbacks:i(),dirty:f,skip_bound:!1,root:
|
|
58
|
+
callbacks:i(),dirty:f,skip_bound:!1,root:s.target||p.$$.root};m&&m(g.root);let y=!1;if(g.ctx=l?l(a,s.props||{},((e,t,...i)=>{const n=i.length?i[0]:t;return g.ctx&&c(g.ctx[e],g.ctx[e]=n)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](n),y&&I(a,e)),t})):[],g.update(),y=!0,n(g.before_update),
|
|
59
59
|
// `false` as a special case of no DOM component
|
|
60
|
-
g.fragment=!!u&&u(g.ctx),
|
|
60
|
+
g.fragment=!!u&&u(g.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
61
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
|
-
g.fragment&&g.fragment.l(e),e.forEach(
|
|
62
|
+
g.fragment&&g.fragment.l(e),e.forEach(h)}else
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
g.fragment&&g.fragment.c();
|
|
64
|
+
g.fragment&&g.fragment.c();s.intro&&((b=a.$$.fragment)&&b.i&&(U.delete(b),b.i(v))),function(e,i,a,s){const{fragment:o,after_update:l}=e.$$;o&&o.m(i,a),s||
|
|
65
65
|
// onMount happens before the initial afterUpdate
|
|
66
|
-
|
|
66
|
+
O((()=>{const i=e.$$.on_mount.map(t).filter(r);
|
|
67
67
|
// if the component was destroyed immediately
|
|
68
68
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
69
69
|
// the destructured on_destroy may still reference to the old array
|
|
70
70
|
e.$$.on_destroy?e.$$.on_destroy.push(...i):
|
|
71
71
|
// Edge case - component was destroyed immediately,
|
|
72
72
|
// most likely as a result of a binding initialising
|
|
73
|
-
n(i),e.$$.on_mount=[]})),l.forEach(
|
|
73
|
+
n(i),e.$$.on_mount=[]})),l.forEach(O)}(a,s.target,s.anchor,s.customElement),R()}var b,v;S(p)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);
|
|
74
74
|
// @ts-ignore todo: improve typings
|
|
75
75
|
for(const e in this.$$.slotted)
|
|
76
76
|
// @ts-ignore todo: improve typings
|
|
77
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){
|
|
77
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){Y(this,1),this.$destroy=e}$on(t,i){
|
|
78
78
|
// TODO should this delegate to addEventListener?
|
|
79
|
-
if(!r(i))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const e=n.indexOf(i);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function
|
|
79
|
+
if(!r(i))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const e=n.indexOf(i);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function F(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var $=function(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return F(null==t&&i.path)}},i.exports),i.exports}((function(e,t){e.exports=function(){var t,i;function n(){return t.apply(null,arguments)}
|
|
80
80
|
// This is done to register the method called with moment()
|
|
81
81
|
// without creating circular dependencies.
|
|
82
|
-
function r(e){t=e}function
|
|
82
|
+
function r(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
|
83
83
|
// IE8 will treat undefined and null as object if it wasn't for
|
|
84
84
|
// input != null
|
|
85
85
|
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var i,n=[],r=e.length;for(i=0;i<r;++i)n.push(t(e[i],i));return n}function m(e,t){for(var i in t)o(t,i)&&(e[i]=t[i]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,i,n){return Zi(e,t,i,n,!0).utc()}function p(){
|
|
86
86
|
// We need to deep clone this object.
|
|
87
|
-
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 g(e){return null==e._pf&&(e._pf=p()),e._pf}function y(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!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&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function
|
|
87
|
+
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 g(e){return null==e._pf&&(e._pf=p()),e._pf}function y(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!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&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function b(e){var t=f(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}
|
|
88
88
|
// Plugins that add properties should also add the key here (null value),
|
|
89
89
|
// so we can properly clone ourselves.
|
|
90
|
-
i=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var v=n.momentProperties=[],
|
|
90
|
+
i=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var v=n.momentProperties=[],_=!1;function w(e,t){var i,n,r,a=v.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(i=0;i<a;i++)u(r=t[n=v[i]])||(e[n]=r);return e}
|
|
91
91
|
// Moment prototype object
|
|
92
92
|
function L(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
93
93
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
94
94
|
// objects.
|
|
95
|
-
!1===
|
|
95
|
+
!1===_&&(_=!0,n.updateOffset(this),_=!1)}function E(e){return e instanceof L||null!=e&&null!=e._isAMomentObject}function T(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var r,a,s,l=[],u=arguments.length;for(a=0;a<u;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)}),t)}var k,M={};function D(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),M[e]||(T(t),M[e]=!0)}function P(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e){var t,i;for(i in e)o(e,i)&&(P(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,
|
|
96
96
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
97
97
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
98
98
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
99
|
-
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function
|
|
99
|
+
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(e,t){var i,n=m({},e);for(i in t)o(t,i)&&(s(e[i])&&s(t[i])?(n[i]={},m(n[i],e[i]),m(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)o(e,i)&&!o(t,i)&&s(e[i])&&(
|
|
100
100
|
// make sure changes to properties don't modify parent config
|
|
101
|
-
n[i]=m({},n[i]));return n}function
|
|
101
|
+
n[i]=m({},n[i]));return n}function C(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)o(e,t)&&i.push(t);return i};var O={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,i){var n=this._calendar[e]||this._calendar.sameElse;return P(n)?n.call(t,i):n}function x(e,t,i){var n=""+Math.abs(e),r=t-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var R=/(\[[^\[]*\])|(\\)?([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,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},Y={};
|
|
102
102
|
// token: 'M'
|
|
103
103
|
// padded: ['MM', 2]
|
|
104
104
|
// ordinal: 'Mo'
|
|
105
105
|
// callback: function () { this.month() + 1 }
|
|
106
|
-
function
|
|
106
|
+
function I(e,t,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(Y[e]=r),t&&(Y[t[0]]=function(){return x(r.apply(this,arguments),t[1],t[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,i,n=e.match(R);for(t=0,i=n.length;t<i;t++)Y[n[t]]?n[t]=Y[n[t]]:n[t]=j(n[t]);return function(t){var r,a="";for(r=0;r<i;r++)a+=P(n[r])?n[r].call(t,e):n[r];return a}}
|
|
107
107
|
// format date using native date object
|
|
108
|
-
function
|
|
108
|
+
function $(e,t){return e.isValid()?(t=z(t,e.localeData()),U[t]=U[t]||G(t),U[t](e)):e.localeData().invalidDate()}function z(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;i>=0&&B.test(e);)e=e.replace(B,n),B.lastIndex=0,i-=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],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(R).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 X(){return this._invalidDate}var K="%d",q=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Q={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 ee(e,t,i,n){var r=this._relativeTime[i];return P(r)?r(e,t,i,n):r.replace(/%d/i,e)}function te(e,t){var i=this._relativeTime[e>0?"future":"past"];return P(i)?i(t):i.replace(/%s/i,t)}var ie={};function ne(e,t){var i=e.toLowerCase();ie[i]=ie[i+"s"]=ie[t]=e}function re(e){return"string"==typeof e?ie[e]||ie[e.toLowerCase()]:void 0}function ae(e){var t,i,n={};for(i in e)o(e,i)&&(t=re(i))&&(n[t]=e[i]);return n}var se={};function oe(e,t){se[e]=t}function le(e){var t,i=[];for(t in e)o(e,t)&&i.push({unit:t,priority:se[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}function ue(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=ce(t)),i}function de(e,t){return function(i){return null!=i?(fe(this,e,i),n.updateOffset(this,t),this):me(this,e)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(i=he(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),et(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}
|
|
109
109
|
// MOMENTS
|
|
110
|
-
function pe(e){return
|
|
110
|
+
function pe(e){return P(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var i,n=le(e=ae(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(P(this[e=re(e)]))return this[e](t);return this}var ye,be=/\d/,// 0 - 9
|
|
111
111
|
ve=/\d\d/,// 00 - 99
|
|
112
|
-
|
|
112
|
+
_e=/\d{3}/,// 000 - 999
|
|
113
113
|
we=/\d{4}/,// 0000 - 9999
|
|
114
114
|
Le=/[+-]?\d{6}/,// -999999 - 999999
|
|
115
115
|
Ee=/\d\d?/,// 0 - 99
|
|
116
116
|
Te=/\d\d\d\d?/,// 999 - 9999
|
|
117
117
|
Se=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
ke=/\d{1,3}/,// 0 - 999
|
|
119
|
+
Me=/\d{1,4}/,// 0 - 9999
|
|
120
|
+
De=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
121
|
+
Pe=/\d+/,// 0 - inf
|
|
122
122
|
Ae=/[+-]?\d+/,// -inf - inf
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
He=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
124
|
+
Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
125
|
+
Oe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
126
126
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
127
127
|
// includes scottish gaelic two word and hyphenated months
|
|
128
|
-
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 xe(e,t,i){ye[e]=
|
|
128
|
+
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 xe(e,t,i){ye[e]=P(t)?t:function(e,n){return e&&i?i:t}}function Re(e,t){return o(ye,e)?ye[e](t._strict,t._locale):new RegExp(Be(e))}
|
|
129
129
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
130
|
-
function Be(e){return
|
|
130
|
+
function Be(e){return Ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Ye={};function Ie(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,i){i[t]=he(e)}),n=e.length,i=0;i<n;i++)Ye[e[i]]=r}function je(e,t){Ie(e,(function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function Ge(e,t,i){null!=t&&o(Ye,e)&&Ye[e](t,i._a,i,e)}var Fe,$e=0,ze=1,We=2,Ve=3,Ze=4,Xe=5,Ke=6,qe=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=Qe(t,12);return e+=(t-i)/12,1===i?ue(e)?29:28:31-i%7%2}
|
|
131
131
|
// FORMATTING
|
|
132
|
-
|
|
132
|
+
Fe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
133
133
|
// I know
|
|
134
|
-
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},
|
|
134
|
+
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
|
|
135
135
|
// ALIASES
|
|
136
136
|
ne("month","M"),
|
|
137
137
|
// PRIORITY
|
|
138
138
|
oe("month",8),
|
|
139
139
|
// PARSING
|
|
140
|
-
xe("M",Ee),xe("MM",Ee,ve),xe("MMM",(function(e,t){return t.monthsShortRegex(e)})),xe("MMMM",(function(e,t){return t.monthsRegex(e)})),
|
|
140
|
+
xe("M",Ee),xe("MM",Ee,ve),xe("MMM",(function(e,t){return t.monthsShortRegex(e)})),xe("MMMM",(function(e,t){return t.monthsRegex(e)})),Ie(["M","MM"],(function(e,t){t[ze]=he(e)-1})),Ie(["MMM","MMMM"],(function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);
|
|
141
141
|
// if we didn't find a month name, mark the date as invalid.
|
|
142
|
-
null!=r?t[
|
|
142
|
+
null!=r?t[ze]=r:g(i).invalidMonth=e}));
|
|
143
143
|
// LOCALES
|
|
144
|
-
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Ne,
|
|
144
|
+
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Ne,at=Ne;function st(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ot(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
145
145
|
// this is not used
|
|
146
|
-
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)
|
|
146
|
+
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=Fe.call(this._shortMonthsParse,s))?r:null:-1!==(r=Fe.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=Fe.call(this._shortMonthsParse,s))||-1!==(r=Fe.call(this._longMonthsParse,s))?r:null:-1!==(r=Fe.call(this._longMonthsParse,s))||-1!==(r=Fe.call(this._shortMonthsParse,s))?r:null}function ut(e,t,i){var n,r,a;if(this._monthsParseExact)return lt.call(this,e,t,i);
|
|
147
147
|
// TODO: add sorting
|
|
148
148
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
149
149
|
// see sorting in computeMonthsParse
|
|
@@ -151,118 +151,118 @@ for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shor
|
|
|
151
151
|
// test the regex
|
|
152
152
|
if(
|
|
153
153
|
// make the regex if we don't have it already
|
|
154
|
-
r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(
|
|
154
|
+
r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}
|
|
155
155
|
// MOMENTS
|
|
156
156
|
function ct(e,t){var i;if(!e.isValid())
|
|
157
157
|
// No op
|
|
158
158
|
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else
|
|
159
159
|
// TODO: Another silent failure?
|
|
160
|
-
if(!c(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function ht(e){return null!=e?(ct(this,e),n.updateOffset(this,!0),this):me(this,"Month")}function dt(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(o(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=
|
|
160
|
+
if(!c(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function ht(e){return null!=e?(ct(this,e),n.updateOffset(this,!0),this):me(this,"Month")}function dt(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(o(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,i,n=[],r=[],a=[];for(t=0;t<12;t++)
|
|
161
161
|
// make the regex if we don't have it already
|
|
162
|
-
i=f([2e3,t]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),
|
|
162
|
+
i=f([2e3,t]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));
|
|
163
163
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
164
164
|
// will match the longer piece.
|
|
165
|
-
for(n.sort(e),r.sort(e),
|
|
165
|
+
for(n.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)n[t]=Ue(n[t]),r[t]=Ue(r[t]);for(t=0;t<24;t++)a[t]=Ue(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}
|
|
166
166
|
// FORMATTING
|
|
167
167
|
// HELPERS
|
|
168
168
|
function gt(e){return ue(e)?366:365}
|
|
169
169
|
// HOOKS
|
|
170
|
-
|
|
170
|
+
I("Y",0,0,(function(){var e=this.year();return e<=9999?x(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),
|
|
171
171
|
// ALIASES
|
|
172
172
|
ne("year","y"),
|
|
173
173
|
// PRIORITIES
|
|
174
174
|
oe("year",1),
|
|
175
175
|
// PARSING
|
|
176
|
-
xe("Y",Ae),xe("YY",Ee,ve),xe("YYYY",
|
|
176
|
+
xe("Y",Ae),xe("YY",Ee,ve),xe("YYYY",Me,we),xe("YYYYY",De,Le),xe("YYYYYY",De,Le),Ie(["YYYYY","YYYYYY"],$e),Ie("YYYY",(function(e,t){t[$e]=2===e.length?n.parseTwoDigitYear(e):he(e)})),Ie("YY",(function(e,t){t[$e]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,t){t[$e]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};
|
|
177
177
|
// MOMENTS
|
|
178
|
-
var yt=de("FullYear",!0);function
|
|
178
|
+
var yt=de("FullYear",!0);function bt(){return ue(this.year())}function vt(e,t,i,n,r,a,s){
|
|
179
179
|
// can't just apply() to create a date:
|
|
180
180
|
// https://stackoverflow.com/q/181348
|
|
181
181
|
var o;
|
|
182
182
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
183
183
|
return e<100&&e>=0?(
|
|
184
184
|
// preserve leap years using a full 400 year cycle, then reset
|
|
185
|
-
o=new Date(e+400,t,i,n,r,s
|
|
185
|
+
o=new Date(e+400,t,i,n,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,n,r,a,s),o}function _t(e){var t,i;
|
|
186
186
|
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
187
187
|
return e<100&&e>=0?(
|
|
188
188
|
// preserve leap years using a full 400 year cycle, then reset
|
|
189
189
|
(i=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
|
|
190
190
|
// start-of-first-week - start-of-year
|
|
191
191
|
function wt(e,t,i){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
192
|
-
n=7+t-i;return-(7+
|
|
192
|
+
n=7+t-i;return-(7+_t(e,0,n).getUTCDay()-t)%7+n-1}
|
|
193
193
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
194
|
-
function Lt(e,t,i,n,r){var s,
|
|
194
|
+
function Lt(e,t,i,n,r){var a,s,o=1+7*(t-1)+(7+i-n)%7+wt(e,n,r);return o<=0?s=gt(a=e-1)+o:o>gt(e)?(a=e+1,s=o-gt(e)):(a=e,s=o),{year:a,dayOfYear:s}}function Et(e,t,i){var n,r,a=wt(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?n=s+Tt(r=e.year()-1,t,i):s>Tt(e.year(),t,i)?(n=s-Tt(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function Tt(e,t,i){var n=wt(e,t,i),r=wt(e+1,t,i);return(gt(e)-n+r)/7}
|
|
195
195
|
// FORMATTING
|
|
196
196
|
// HELPERS
|
|
197
197
|
// LOCALES
|
|
198
|
-
function St(e){return Et(e,this._week.dow,this._week.doy).week}
|
|
198
|
+
function St(e){return Et(e,this._week.dow,this._week.doy).week}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),
|
|
199
199
|
// ALIASES
|
|
200
200
|
ne("week","w"),ne("isoWeek","W"),
|
|
201
201
|
// PRIORITIES
|
|
202
202
|
oe("week",5),oe("isoWeek",5),
|
|
203
203
|
// PARSING
|
|
204
|
-
xe("w",Ee),xe("ww",Ee,ve),xe("W",Ee),xe("WW",Ee,ve),
|
|
205
|
-
doy:6};function
|
|
204
|
+
xe("w",Ee),xe("ww",Ee,ve),xe("W",Ee),xe("WW",Ee,ve),je(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=he(e)}));var kt={dow:0,// Sunday is the first day of the week.
|
|
205
|
+
doy:6};function Mt(){return this._week.dow}function Dt(){return this._week.doy}
|
|
206
206
|
// MOMENTS
|
|
207
|
-
function
|
|
207
|
+
function Pt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function At(e){var t=Et(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
208
208
|
// FORMATTING
|
|
209
209
|
// HELPERS
|
|
210
|
-
function
|
|
210
|
+
function Ht(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
211
211
|
// LOCALES
|
|
212
|
-
function
|
|
212
|
+
function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),
|
|
213
213
|
// ALIASES
|
|
214
214
|
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
215
215
|
// PRIORITY
|
|
216
216
|
oe("day",11),oe("weekday",11),oe("isoWeekday",11),
|
|
217
217
|
// PARSING
|
|
218
|
-
xe("d",Ee),xe("e",Ee),xe("E",Ee),xe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),xe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),xe("dddd",(function(e,t){return t.weekdaysRegex(e)})),
|
|
218
|
+
xe("d",Ee),xe("e",Ee),xe("E",Ee),xe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),xe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),xe("dddd",(function(e,t){return t.weekdaysRegex(e)})),je(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);
|
|
219
219
|
// if we didn't get a weekday name, mark the date as invalid
|
|
220
|
-
null!=r?t.d=r:g(i).invalidWeekday=e})),
|
|
220
|
+
null!=r?t.d=r:g(i).invalidWeekday=e})),je(["d","e","E"],(function(e,t,i,n){t[n]=he(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bt=Ne,Ut=Ne,Yt=Ne;function It(e,t){var i=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(i,this._week.dow):e?i[e.day()]:i}function jt(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ft(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=Fe.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Fe.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Fe.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=Fe.call(this._weekdaysParse,s))||-1!==(r=Fe.call(this._shortWeekdaysParse,s))||-1!==(r=Fe.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Fe.call(this._shortWeekdaysParse,s))||-1!==(r=Fe.call(this._weekdaysParse,s))||-1!==(r=Fe.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Fe.call(this._minWeekdaysParse,s))||-1!==(r=Fe.call(this._weekdaysParse,s))||-1!==(r=Fe.call(this._shortWeekdaysParse,s))?r:null}function $t(e,t,i){var n,r,a;if(this._weekdaysParseExact)return Ft.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){
|
|
221
221
|
// test the regex
|
|
222
222
|
if(
|
|
223
223
|
// make the regex if we don't have it already
|
|
224
|
-
r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(
|
|
224
|
+
r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}
|
|
225
225
|
// MOMENTS
|
|
226
|
-
function
|
|
226
|
+
function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ht(e,this.localeData()),this.add(e-t,"d")):t}function Wt(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 Vt(e){if(!this.isValid())return null!=e?this:NaN;
|
|
227
227
|
// behaves the same as moment#day except
|
|
228
228
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
229
229
|
// as a setter, sunday should belong to the previous week.
|
|
230
|
-
if(null!=e){var t=
|
|
230
|
+
if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Bt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ut),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qt(){function e(e,t){return t.length-e.length}var t,i,n,r,a,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)
|
|
231
231
|
// make the regex if we don't have it already
|
|
232
|
-
i=f([2e3,1]).day(t),n=
|
|
232
|
+
i=f([2e3,1]).day(t),n=Ue(this.weekdaysMin(i,"")),r=Ue(this.weekdaysShort(i,"")),a=Ue(this.weekdays(i,"")),s.push(n),o.push(r),l.push(a),u.push(n),u.push(r),u.push(a);
|
|
233
233
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
234
234
|
// will match the longer piece.
|
|
235
|
-
|
|
235
|
+
s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}
|
|
236
236
|
// FORMATTING
|
|
237
|
-
function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function ei(e,t){
|
|
237
|
+
function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function ei(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
|
|
238
238
|
// PARSING
|
|
239
239
|
function ti(e,t){return t._meridiemParse}
|
|
240
240
|
// LOCALES
|
|
241
241
|
function ii(e){
|
|
242
242
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
243
243
|
// Using charAt should be more compatible.
|
|
244
|
-
return"p"===(e+"").toLowerCase().charAt(0)}
|
|
244
|
+
return"p"===(e+"").toLowerCase().charAt(0)}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Jt),I("k",["kk",2],0,Qt),I("hmm",0,0,(function(){return""+Jt.apply(this)+x(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Jt.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+x(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)})),ei("a",!0),ei("A",!1),
|
|
245
245
|
// ALIASES
|
|
246
246
|
ne("hour","h"),
|
|
247
247
|
// PRIORITY
|
|
248
|
-
oe("hour",13),xe("a",ti),xe("A",ti),xe("H",Ee),xe("h",Ee),xe("k",Ee),xe("HH",Ee,ve),xe("hh",Ee,ve),xe("kk",Ee,ve),xe("hmm",Te),xe("hmmss",Se),xe("Hmm",Te),xe("Hmmss",Se),
|
|
248
|
+
oe("hour",13),xe("a",ti),xe("A",ti),xe("H",Ee),xe("h",Ee),xe("k",Ee),xe("HH",Ee,ve),xe("hh",Ee,ve),xe("kk",Ee,ve),xe("hmm",Te),xe("hmmss",Se),xe("Hmm",Te),xe("Hmmss",Se),Ie(["H","HH"],Ve),Ie(["k","kk"],(function(e,t,i){var n=he(e);t[Ve]=24===n?0:n})),Ie(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,t,i){t[Ve]=he(e),g(i).bigHour=!0})),Ie("hmm",(function(e,t,i){var n=e.length-2;t[Ve]=he(e.substr(0,n)),t[Ze]=he(e.substr(n)),g(i).bigHour=!0})),Ie("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ve]=he(e.substr(0,n)),t[Ze]=he(e.substr(n,2)),t[Xe]=he(e.substr(r)),g(i).bigHour=!0})),Ie("Hmm",(function(e,t,i){var n=e.length-2;t[Ve]=he(e.substr(0,n)),t[Ze]=he(e.substr(n))})),Ie("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ve]=he(e.substr(0,n)),t[Ze]=he(e.substr(n,2)),t[Xe]=he(e.substr(r))}));var ni=/[ap]\.?m?\.?/i,
|
|
249
249
|
// Setting the hour should keep the time, because the user explicitly
|
|
250
250
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
251
251
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
252
252
|
// this rule.
|
|
253
|
-
ri=de("Hours",!0);function
|
|
253
|
+
ri=de("Hours",!0);function ai(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:O,longDateFormat:W,invalidDate:Z,ordinal:K,dayOfMonthOrdinalParse:q,relativeTime:Q,months:tt,monthsShort:it,week:kt,weekdays:Nt,weekdaysMin:Rt,weekdaysShort:xt,meridiemParse:ni},li={},ui={};
|
|
254
254
|
// internal storage for locale config files
|
|
255
255
|
function ci(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}function hi(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
256
256
|
// pick the locale from the array
|
|
257
257
|
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
|
258
258
|
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
|
259
|
-
function di(e){for(var t,i,n,r,
|
|
259
|
+
function di(e){for(var t,i,n,r,a=0;a<e.length;){for(t=(r=hi(e[a]).split("-")).length,i=(i=hi(e[a+1]))?i.split("-"):null;t>0;){if(n=fi(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&ci(r,i)>=t-1)
|
|
260
260
|
//the next array item is better than a shallower substring of this one
|
|
261
|
-
break;t--}
|
|
261
|
+
break;t--}a++}return si}function mi(e){
|
|
262
262
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
263
263
|
return null!=e.match("^[^/\\\\]*$")}function fi(t){var i=null;
|
|
264
264
|
// TODO: Find a better way to register and load all the locales in Node
|
|
265
|
-
if(void 0===li[t]&&e&&e.exports&&mi(t))try{i=
|
|
265
|
+
if(void 0===li[t]&&e&&e.exports&&mi(t))try{i=si._abbr,F(),pi(i)}catch(e){
|
|
266
266
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
267
267
|
// when trying to find en-US, en_US, en-us for every format call
|
|
268
268
|
li[t]=null;// null means not found
|
|
@@ -270,11 +270,11 @@ li[t]=null;// null means not found
|
|
|
270
270
|
// This function will load locale and then set the global locale. If
|
|
271
271
|
// no arguments are passed in, it will simply return the current global
|
|
272
272
|
// locale key.
|
|
273
|
-
function pi(e,t){var i;return e&&((i=u(t)?
|
|
273
|
+
function pi(e,t){var i;return e&&((i=u(t)?bi(e):gi(e,t))?
|
|
274
274
|
// moment.duration._locale = moment._locale = data;
|
|
275
|
-
|
|
275
|
+
si=i:"undefined"!=typeof console&&console.warn&&
|
|
276
276
|
//warn user if arguments are passed but the locale could not be set
|
|
277
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),
|
|
277
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function gi(e,t){if(null!==t){var i,n=oi;if(t.abbr=e,null!=li[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=li[e]._config;else if(null!=t.parentLocale)if(null!=li[t.parentLocale])n=li[t.parentLocale]._config;else{if(null==(i=fi(t.parentLocale)))return ui[t.parentLocale]||(ui[t.parentLocale]=[]),ui[t.parentLocale].push({name:e,config:t}),null;n=i._config}return li[e]=new C(H(n,t)),ui[e]&&ui[e].forEach((function(e){gi(e.name,e.config)})),
|
|
278
278
|
// backwards compat for now: also set the locale
|
|
279
279
|
// make sure we set the locale AFTER all child locales have been
|
|
280
280
|
// created, so we won't end up with the child locale set.
|
|
@@ -282,143 +282,143 @@ pi(e),li[e]}
|
|
|
282
282
|
// useful for testing
|
|
283
283
|
return delete li[e],null}function yi(e,t){if(null!=t){var i,n,r=oi;null!=li[e]&&null!=li[e].parentLocale?
|
|
284
284
|
// Update existing child locale in-place to avoid memory-leaks
|
|
285
|
-
li[e].set(
|
|
285
|
+
li[e].set(H(li[e]._config,t)):(
|
|
286
286
|
// MERGE
|
|
287
|
-
null!=(n=fi(e))&&(r=n._config),t=
|
|
287
|
+
null!=(n=fi(e))&&(r=n._config),t=H(r,t),null==n&&(
|
|
288
288
|
// updateLocale is called for creating a new locale
|
|
289
289
|
// Set abbr so it will have a name (getters return
|
|
290
290
|
// undefined otherwise).
|
|
291
|
-
t.abbr=e),(i=new
|
|
291
|
+
t.abbr=e),(i=new C(t)).parentLocale=li[e],li[e]=i),
|
|
292
292
|
// backwards compat for now: also set the locale
|
|
293
293
|
pi(e)}else
|
|
294
294
|
// pass null for config to unupdate, useful for tests
|
|
295
295
|
null!=li[e]&&(null!=li[e].parentLocale?(li[e]=li[e].parentLocale,e===pi()&&pi(e)):null!=li[e]&&delete li[e]);return li[e]}
|
|
296
296
|
// returns locale data
|
|
297
|
-
function
|
|
297
|
+
function bi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!a(e)){if(
|
|
298
298
|
//short-circuit everything else
|
|
299
|
-
t=fi(e))return t;e=[e]}return di(e)}function vi(){return
|
|
299
|
+
t=fi(e))return t;e=[e]}return di(e)}function vi(){return k(li)}function _i(e){var t,i=e._a;return i&&-2===g(e).overflow&&(t=i[ze]<0||i[ze]>11?ze:i[We]<1||i[We]>et(i[$e],i[ze])?We:i[Ve]<0||i[Ve]>24||24===i[Ve]&&(0!==i[Ze]||0!==i[Xe]||0!==i[Ke])?Ve:i[Ze]<0||i[Ze]>59?Ze:i[Xe]<0||i[Xe]>59?Xe:i[Ke]<0||i[Ke]>999?Ke:-1,g(e)._overflowDayOfYear&&(t<$e||t>We)&&(t=We),g(e)._overflowWeeks&&-1===t&&(t=qe),g(e)._overflowWeekday&&-1===t&&(t=Je),g(e).overflow=t),e}
|
|
300
300
|
// iso 8601 regex
|
|
301
301
|
// 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)
|
|
302
302
|
var wi=/^\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)?)?$/,Li=/^\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)?)?$/,Ei=/Z|[+-]\d\d(?::?\d\d)?/,Ti=[["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]],
|
|
303
303
|
// iso time formats and regexes
|
|
304
|
-
Si=[["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/]],
|
|
304
|
+
Si=[["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/]],ki=/^\/?Date\((-?\d+)/i,
|
|
305
305
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
306
|
-
|
|
306
|
+
Mi=/^(?:(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}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
307
307
|
// date from iso format
|
|
308
|
-
function
|
|
308
|
+
function Pi(e){var t,i,n,r,a,s,o=e._i,l=wi.exec(o)||Li.exec(o),u=Ti.length,c=Si.length;if(l){for(g(e).iso=!0,t=0,i=u;t<i;t++)if(Ti[t][1].exec(l[1])){r=Ti[t][0],n=!1!==Ti[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,i=c;t<i;t++)if(Si[t][1].exec(l[3])){
|
|
309
309
|
// match[2] should be 'T' or space
|
|
310
|
-
|
|
310
|
+
a=(l[2]||" ")+Si[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Ei.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(a||"")+(s||""),ji(e)}else e._isValid=!1}function Ai(e,t,i,n,r,a){var s=[Hi(e),it.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}function Hi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ci(e){
|
|
311
311
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
312
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function
|
|
312
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Oi(e,t,i){return!e||xt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ni(e,t,i){if(e)return Di[e];if(t)
|
|
313
313
|
// the only allowed military tz is Z
|
|
314
314
|
return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}
|
|
315
315
|
// date and time from ref 2822 format
|
|
316
|
-
function xi(e){var t,i=
|
|
316
|
+
function xi(e){var t,i=Mi.exec(Ci(e._i));if(i){if(t=Ai(i[4],i[3],i[2],i[5],i[6],i[7]),!Oi(i[1],t,e))return;e._a=t,e._tzm=Ni(i[8],i[9],i[10]),e._d=_t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
317
317
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
318
|
-
function Ri(e){var t=
|
|
318
|
+
function Ri(e){var t=ki.exec(e._i);null===t?(Pi(e),!1===e._isValid&&(delete e._isValid,xi(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
319
319
|
// Final attempt, use Input Fallback
|
|
320
320
|
n.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
321
321
|
// Pick the first defined of two or three arguments.
|
|
322
|
-
function Bi(e,t,i){return null!=e?e:null!=t?t:i}function
|
|
322
|
+
function Bi(e,t,i){return null!=e?e:null!=t?t:i}function Ui(e){
|
|
323
323
|
// hooks is actually the exported moment object
|
|
324
324
|
var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
|
|
325
325
|
// convert an array to a date.
|
|
326
326
|
// the array should mirror the parameters below
|
|
327
327
|
// note: all values past the year are optional and will default to the lowest possible value.
|
|
328
328
|
// [year, month, day , hour, minute, second, millisecond]
|
|
329
|
-
function
|
|
329
|
+
function Yi(e){var t,i,n,r,a,s=[];if(!e._d){
|
|
330
330
|
// Default to current date.
|
|
331
331
|
// * if no year, month, day of month are given, default to today
|
|
332
332
|
// * if day of month is given, default month and year
|
|
333
333
|
// * if month is given, default only year
|
|
334
334
|
// * if year is given, don't default anything
|
|
335
|
-
for(n=
|
|
335
|
+
for(n=Ui(e),
|
|
336
336
|
//compute day of the year from weeks and weekdays
|
|
337
|
-
e._w&&null==e._a[
|
|
337
|
+
e._w&&null==e._a[We]&&null==e._a[ze]&&Ii(e),
|
|
338
338
|
//if the day of the year is set, figure out what it is
|
|
339
|
-
null!=e._dayOfYear&&(
|
|
339
|
+
null!=e._dayOfYear&&(a=Bi(e._a[$e],n[$e]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),i=_t(a,0,e._dayOfYear),e._a[ze]=i.getUTCMonth(),e._a[We]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];
|
|
340
340
|
// Zero out whatever was not defaulted, including time
|
|
341
|
-
for(;t<7;t++)e._a[t]=
|
|
341
|
+
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
342
342
|
// Check for 24:00:00.000
|
|
343
|
-
24===e._a[
|
|
343
|
+
24===e._a[Ve]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?_t:vt).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
|
344
344
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
345
345
|
// with parseZone.
|
|
346
|
-
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[
|
|
346
|
+
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),
|
|
347
347
|
// check for mismatching day of week
|
|
348
|
-
e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function
|
|
348
|
+
e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Ii(e){var t,i,n,r,a,s,o,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,
|
|
349
349
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
350
350
|
// how we interpret now (local, utc, fixed offset). So create
|
|
351
351
|
// a now version of current config (take local/utc/offset flags, and
|
|
352
352
|
// create now).
|
|
353
|
-
i=Bi(t.GG,e._a[
|
|
353
|
+
i=Bi(t.GG,e._a[$e],Et(Xi(),1,4).year),n=Bi(t.W,1),((r=Bi(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Et(Xi(),a,s),i=Bi(t.gg,e._a[$e],u.year),
|
|
354
354
|
// Default to current week.
|
|
355
355
|
n=Bi(t.w,u.week),null!=t.d?((
|
|
356
356
|
// weekday -- low day numbers are considered next week
|
|
357
357
|
r=t.d)<0||r>6)&&(l=!0):null!=t.e?(
|
|
358
358
|
// local weekday -- counting starts from beginning of week
|
|
359
|
-
r=t.e+
|
|
359
|
+
r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):
|
|
360
360
|
// default to beginning of week
|
|
361
|
-
r=
|
|
361
|
+
r=a),n<1||n>Tt(i,a,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=Lt(i,n,r,a,s),e._a[$e]=o.year,e._dayOfYear=o.dayOfYear)}
|
|
362
362
|
// constant that refers to the ISO standard
|
|
363
363
|
// date from string and format string
|
|
364
|
-
function
|
|
364
|
+
function ji(e){
|
|
365
365
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
366
366
|
if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],g(e).empty=!0;
|
|
367
367
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
368
|
-
var t,i,r,s,
|
|
368
|
+
var t,i,r,a,s,o,l,u=""+e._i,c=u.length,h=0;for(l=(r=z(e._f,e._locale).match(R)||[]).length,t=0;t<l;t++)a=r[t],(i=(u.match(Re(a,e))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&g(e).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),h+=i.length),
|
|
369
369
|
// don't parse if it's not a known token
|
|
370
|
-
|
|
370
|
+
Y[a]?(i?g(e).empty=!1:g(e).unusedTokens.push(a),Ge(a,i,e)):e._strict&&!i&&g(e).unusedTokens.push(a);
|
|
371
371
|
// add remaining unparsed input length to the string
|
|
372
372
|
g(e).charsLeftOver=c-h,u.length>0&&g(e).unusedInput.push(u),
|
|
373
373
|
// clear _12h flag if hour is <= 12
|
|
374
|
-
e._a[
|
|
374
|
+
e._a[Ve]<=12&&!0===g(e).bigHour&&e._a[Ve]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
|
375
375
|
// handle meridiem
|
|
376
|
-
e._a[
|
|
376
|
+
e._a[Ve]=Gi(e._locale,e._a[Ve],e._meridiem),null!==(
|
|
377
377
|
// handle era
|
|
378
|
-
o=g(e).era)&&(e._a[
|
|
378
|
+
o=g(e).era)&&(e._a[$e]=e._locale.erasConvertYear(o,e._a[$e])),Yi(e),_i(e)}else xi(e);else Pi(e)}function Gi(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(
|
|
379
379
|
// Fallback
|
|
380
380
|
(n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}
|
|
381
381
|
// date from string and array of format strings
|
|
382
|
-
function
|
|
382
|
+
function Fi(e){var t,i,n,r,a,s,o=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)a=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ji(t),y(t)&&(s=!0),
|
|
383
383
|
// if there is any input that was not parsed add a penalty for that format
|
|
384
|
-
|
|
384
|
+
a+=g(t).charsLeftOver,
|
|
385
385
|
//or tokens
|
|
386
|
-
|
|
386
|
+
a+=10*g(t).unusedTokens.length,g(t).score=a,o?a<n&&(n=a,i=t):(null==n||a<n||s)&&(n=a,i=t,s&&(o=!0));m(e,i||t)}function $i(e){if(!e._d){var t=ae(e._i),i=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Yi(e)}}function zi(e){var t=new L(_i(Wi(e)));return t._nextDay&&(
|
|
387
387
|
// Adding is smart enough around DST
|
|
388
|
-
t.add(1,"d"),t._nextDay=void 0),t}function
|
|
388
|
+
t.add(1,"d"),t._nextDay=void 0),t}function Wi(e){var t=e._i,i=e._f;return e._locale=e._locale||bi(e._l),null===t||void 0===i&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new L(_i(t)):(h(t)?e._d=t:a(i)?Fi(e):i?ji(e):Vi(e),y(e)||(e._d=null),e))}function Vi(e){var t=e._i;u(t)?e._d=new Date(n.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ri(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Yi(e)):s(t)?$i(e):c(t)?
|
|
389
389
|
// from milliseconds
|
|
390
|
-
e._d=new Date(t):n.createFromInputFallback(e)}function Zi(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(
|
|
390
|
+
e._d=new Date(t):n.createFromInputFallback(e)}function Zi(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),
|
|
391
391
|
// object construction must be done this way.
|
|
392
392
|
// https://github.com/moment/moment/issues/1423
|
|
393
|
-
o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,
|
|
393
|
+
o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,zi(o)}function Xi(e,t,i,n){return Zi(e,t,i,n,!1)}n.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},
|
|
394
394
|
// constant that refers to the RFC 2822 form
|
|
395
|
-
n.RFC_2822=function(){};var Ki=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:
|
|
395
|
+
n.RFC_2822=function(){};var Ki=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),qi=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));
|
|
396
396
|
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
397
397
|
// other. This relies on the function fn to be transitive.
|
|
398
398
|
|
|
399
399
|
// moments should either be an array of moment objects or an array, whose
|
|
400
400
|
// first element is an array of moment objects.
|
|
401
|
-
function Ji(e,t){var i,n;if(1===t.length&&
|
|
401
|
+
function Ji(e,t){var i,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Xi();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}
|
|
402
402
|
// TODO: Use [].sort instead?
|
|
403
|
-
function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function en(){return Ji("isAfter",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},nn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rn(e){var t,i,n=!1,r=nn.length;for(t in e)if(o(e,t)&&(-1
|
|
404
|
-
parseFloat(e[nn[i]])!==he(e[nn[i]])&&(n=!0)}return!0}function
|
|
403
|
+
function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function en(){return Ji("isAfter",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},nn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rn(e){var t,i,n=!1,r=nn.length;for(t in e)if(o(e,t)&&(-1===Fe.call(nn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[nn[i]]){if(n)return!1;// only allow non-integers for smallest unit
|
|
404
|
+
parseFloat(e[nn[i]])!==he(e[nn[i]])&&(n=!0)}return!0}function an(){return this._isValid}function sn(){return Pn(NaN)}function on(e){var t=ae(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rn(t),
|
|
405
405
|
// representation for dateAddRemove
|
|
406
406
|
this._milliseconds=+c+1e3*u+// 1000
|
|
407
407
|
6e4*l+// 1000 * 60
|
|
408
408
|
1e3*o*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
|
409
409
|
// Because of dateAddRemove treats 24 hours as different from a
|
|
410
410
|
// day when working around DST, we need to store them separately
|
|
411
|
-
this._days=+
|
|
411
|
+
this._days=+s+7*a,
|
|
412
412
|
// It is impossible to translate months into days without knowing
|
|
413
413
|
// which months you are are talking about, so we have to store
|
|
414
414
|
// it separately.
|
|
415
|
-
this._months=+r+3*n+12*i,this._data={},this._locale=
|
|
415
|
+
this._months=+r+3*n+12*i,this._data={},this._locale=bi(),this._bubble()}function ln(e){return e instanceof on}function un(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
|
416
416
|
// compare two arrays, return the number of differences
|
|
417
|
-
function cn(e,t,i){var n,r=Math.min(e.length,t.length),
|
|
417
|
+
function cn(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&he(e[n])!==he(t[n]))&&s++;return s+a}
|
|
418
418
|
// FORMATTING
|
|
419
|
-
function hn(e,t){
|
|
419
|
+
function hn(e,t){I(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+x(~~(e/60),2)+t+x(~~e%60,2)}))}hn("Z",":"),hn("ZZ",""),
|
|
420
420
|
// PARSING
|
|
421
|
-
xe("Z",
|
|
421
|
+
xe("Z",Ce),xe("ZZ",Ce),Ie(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=mn(Ce,e)}));
|
|
422
422
|
// HELPERS
|
|
423
423
|
// timezone chunker
|
|
424
424
|
// '+10:00' > ['10', '00']
|
|
@@ -444,39 +444,39 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
444
444
|
// a second time. In case it wants us to change the offset again
|
|
445
445
|
// _changeInProgress == true case, then we have to adjust, because
|
|
446
446
|
// there is no such time in the given timezone.
|
|
447
|
-
function gn(e,t,i){var r,
|
|
447
|
+
function gn(e,t,i){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mn(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=pn(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Nn(this,Pn(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pn(this)}function yn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function bn(e){return this.utcOffset(0,e)}function vn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pn(this),"m")),this}function _n(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mn(He,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wn(e){return!!this.isValid()&&(e=e?Xi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ln(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function En(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Wi(t))._a?(e=t._isUTC?f(t._a):Xi(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tn(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function kn(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
448
448
|
// ASP.NET json date format regex
|
|
449
|
-
n.updateOffset=function(){};var
|
|
449
|
+
n.updateOffset=function(){};var Mn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
450
450
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
451
451
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
452
452
|
// and further modified to allow for strings containing both week and day
|
|
453
|
-
|
|
453
|
+
Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(e,t){var i,n,r,a=e,
|
|
454
454
|
// matching against regexp is expensive, do it on demand
|
|
455
|
-
|
|
455
|
+
s=null;return ln(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=Mn.exec(e))?(i="-"===s[1]?-1:1,a={y:0,d:he(s[We])*i,h:he(s[Ve])*i,m:he(s[Ze])*i,s:he(s[Xe])*i,ms:he(un(1e3*s[Ke]))*i}):(s=Dn.exec(e))?(i="-"===s[1]?-1:1,a={y:An(s[2],i),M:An(s[3],i),w:An(s[4],i),d:An(s[5],i),h:An(s[6],i),m:An(s[7],i),s:An(s[8],i)}):null==a?
|
|
456
456
|
// checks for null or undefined
|
|
457
|
-
|
|
457
|
+
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Cn(Xi(a.from),Xi(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),n=new on(a),ln(e)&&o(e,"_locale")&&(n._locale=e._locale),ln(e)&&o(e,"_isValid")&&(n._isValid=e._isValid),n}function An(e,t){
|
|
458
458
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
459
459
|
// converts floats to ints.
|
|
460
460
|
// inp may be undefined, so careful calling replace on it.
|
|
461
461
|
var i=e&&parseFloat(e.replace(",","."));
|
|
462
462
|
// apply sign while we're at it
|
|
463
|
-
return(isNaN(i)?0:i)*t}function
|
|
463
|
+
return(isNaN(i)?0:i)*t}function Hn(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Cn(e,t){var i;return e.isValid()&&t.isValid()?(t=fn(t,e),e.isBefore(t)?i=Hn(e,t):((i=Hn(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}
|
|
464
464
|
// TODO: remove 'name' arg after deprecation is removed
|
|
465
|
-
function
|
|
465
|
+
function On(e,t){return function(i,n){var r;
|
|
466
466
|
//invert the arguments, but complain about it
|
|
467
|
-
return null===n||isNaN(+n)||(
|
|
467
|
+
return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),Nn(this,Pn(i,n),e),this}}function Nn(e,t,i,r){var a=t._milliseconds,s=un(t._days),o=un(t._months);e.isValid()&&(r=null==r||r,o&&ct(e,me(e,"Month")+o*i),s&&fe(e,"Date",me(e,"Date")+s*i),a&&e._d.setTime(e._d.valueOf()+a*i),r&&n.updateOffset(e,s||o))}Pn.fn=on.prototype,Pn.invalid=sn;var xn=On(1,"add"),Rn=On(-1,"subtract");function Bn(e){return"string"==typeof e||e instanceof String}
|
|
468
468
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
469
|
-
function
|
|
469
|
+
function Un(e){return E(e)||h(e)||Bn(e)||c(e)||In(e)||Yn(e)||null==e}function Yn(e){var t,i,n=s(e)&&!l(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)i=a[t],r=r||o(e,i);return n&&r}function In(e){var t=a(e),i=!1;return t&&(i=0===e.filter((function(t){return!c(t)&&Bn(e)})).length),t&&i}function jn(e){var t,i,n=s(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)i=a[t],r=r||o(e,i);return n&&r}function Gn(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function Fn(e,t){
|
|
470
470
|
// Support for single parameter, formats only overload to the calendar function
|
|
471
|
-
1===arguments.length&&(arguments[0]?
|
|
471
|
+
1===arguments.length&&(arguments[0]?Un(arguments[0])?(e=arguments[0],t=void 0):jn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
472
472
|
// We want to compare the start of today, vs this.
|
|
473
473
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
474
|
-
var i=e||Xi(),r=fn(i,this).startOf("day"),
|
|
475
|
-
case"minute":
|
|
476
|
-
case"hour":
|
|
477
|
-
case"day":
|
|
478
|
-
case"week":
|
|
479
|
-
default:
|
|
474
|
+
var i=e||Xi(),r=fn(i,this).startOf("day"),a=n.calendarFormat(this,r)||"sameElse",s=t&&(P(t[a])?t[a].call(this,i):t[a]);return this.format(s||this.localeData().calendar(a,this,Xi(i)))}function $n(){return new L(this)}function zn(e,t){var i=E(e)?e:Xi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function Wn(e,t){var i=E(e)?e:Xi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function Vn(e,t,i,n){var r=E(e)?e:Xi(e),a=E(t)?t:Xi(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i))}function Zn(e,t){var i,n=E(e)?e:Xi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function Xn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qn(e,t,i){var n,r,a;if(!this.isValid())return NaN;if(!(n=fn(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Jn(this,n)/12;break;case"month":a=Jn(this,n);break;case"quarter":a=Jn(this,n)/3;break;case"second":a=(this-n)/1e3;break;// 1000
|
|
475
|
+
case"minute":a=(this-n)/6e4;break;// 1000 * 60
|
|
476
|
+
case"hour":a=(this-n)/36e5;break;// 1000 * 60 * 60
|
|
477
|
+
case"day":a=(this-n-r)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
478
|
+
case"week":a=(this-n-r)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
479
|
+
default:a=this-n}return i?a:ce(a)}function Jn(e,t){if(e.date()<t.date())
|
|
480
480
|
// end-of-month calculations work correct when the start month has more
|
|
481
481
|
// days than the end month.
|
|
482
482
|
return-Jn(t,e);
|
|
@@ -485,60 +485,60 @@ var i=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
|
485
485
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
486
486
|
n=e.clone().add(i,"months");
|
|
487
487
|
//check for negative zero, return zero if negative zero
|
|
488
|
-
return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999
|
|
488
|
+
return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?$(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?
|
|
489
489
|
// native implementation is ~50x faster, use it when we can
|
|
490
|
-
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z"
|
|
490
|
+
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(i,"Z")):$(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
491
491
|
/**
|
|
492
492
|
* Return a human readable representation of a moment that can
|
|
493
493
|
* also be evaluated to get a new moment which is the same
|
|
494
494
|
*
|
|
495
495
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
496
|
-
*/function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n,r="moment",
|
|
496
|
+
*/function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(e+t+i+n)}function ir(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(E(e)&&e.isValid()||Xi(e).isValid())?Pn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Xi(),e)}function ar(e,t){return this.isValid()&&(E(e)&&e.isValid()||Xi(e).isValid())?Pn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sr(e){return this.to(Xi(),e)}
|
|
497
497
|
// If passed a locale key, it will set the locale for this
|
|
498
498
|
// instance. Otherwise, it will return the locale configuration
|
|
499
499
|
// variables for this instance.
|
|
500
|
-
function or(e){var t;return void 0===e?this._locale._abbr:(null!=(t=
|
|
500
|
+
function or(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bi(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ur(){return this._locale}var cr=1e3,hr=60*cr,dr=60*hr,mr=3506328*dr;
|
|
501
501
|
// actual modulo - handles negative numbers (for dates before 1970):
|
|
502
502
|
function fr(e,t){return(e%t+t)%t}function pr(e,t,i){
|
|
503
503
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
504
504
|
return e<100&&e>=0?new Date(e+400,t,i)-mr:new Date(e,t,i).valueOf()}function gr(e,t,i){
|
|
505
505
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
506
|
-
return e<100&&e>=0?Date.UTC(e+400,t,i)-mr:Date.UTC(e,t,i)}function yr(e){var t,i;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*hr),dr);break;case"minute":t=this._d.valueOf(),t-=fr(t,hr);break;case"second":t=this._d.valueOf(),t-=fr(t,cr)}return this._d.setTime(t),n.updateOffset(this,!0),this}function
|
|
506
|
+
return e<100&&e>=0?Date.UTC(e+400,t,i)-mr:Date.UTC(e,t,i)}function yr(e){var t,i;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*hr),dr);break;case"minute":t=this._d.valueOf(),t-=fr(t,hr);break;case"second":t=this._d.valueOf(),t-=fr(t,cr)}return this._d.setTime(t),n.updateOffset(this,!0),this}function br(e){var t,i;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dr-fr(t+(this._isUTC?0:this.utcOffset()*hr),dr)-1;break;case"minute":t=this._d.valueOf(),t+=hr-fr(t,hr)-1;break;case"second":t=this._d.valueOf(),t+=cr-fr(t,cr)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function vr(){return this._d.valueOf()-6e4*(this._offset||0)}function _r(){return Math.floor(this.valueOf()/1e3)}function wr(){return new Date(this.valueOf())}function Lr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Er(){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 Tr(){
|
|
507
507
|
// new Date(NaN).toJSON() === null
|
|
508
|
-
return this.isValid()?this.toISOString():null}function Sr(){return y(this)}function
|
|
508
|
+
return this.isValid()?this.toISOString():null}function Sr(){return y(this)}function kr(){return m({},g(this))}function Mr(){return g(this).overflow}function Dr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pr(e,t){var i,r,a,s=this._eras||bi("en")._eras;for(i=0,r=s.length;i<r;++i)switch("string"==typeof s[i].since&&(
|
|
509
509
|
// truncate time
|
|
510
|
-
|
|
510
|
+
a=n(s[i].since).startOf("day"),s[i].since=a.valueOf()),typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":
|
|
511
511
|
// truncate time
|
|
512
|
-
|
|
512
|
+
a=n(s[i].until).startOf("day").valueOf(),s[i].until=a.valueOf()}return s}function Ar(e,t,i){var n,r,a,s,o,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(a=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),o=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(o===e)return l[n]}else if([a,s,o].indexOf(e)>=0)return l[n]}function Hr(e,t){var i=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*i}function Cr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
513
513
|
// truncate time
|
|
514
|
-
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function
|
|
514
|
+
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Or(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
515
515
|
// truncate time
|
|
516
516
|
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Nr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
517
517
|
// truncate time
|
|
518
|
-
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function xr(){var e,t,i,r,
|
|
518
|
+
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function xr(){var e,t,i,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(i=a[e].since<=a[e].until?1:-1,
|
|
519
519
|
// truncate time
|
|
520
|
-
r=this.clone().startOf("day").valueOf(),
|
|
520
|
+
r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-n(a[e].since).year())*i+a[e].offset;return this.year()}function Rr(e){return o(this,"_erasNameRegex")||Fr.call(this),e?this._erasNameRegex:this._erasRegex}function Br(e){return o(this,"_erasAbbrRegex")||Fr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ur(e){return o(this,"_erasNarrowRegex")||Fr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yr(e,t){return t.erasAbbrRegex(e)}function Ir(e,t){return t.erasNameRegex(e)}function jr(e,t){return t.erasNarrowRegex(e)}function Gr(e,t){return t._eraYearOrdinalRegex||Pe}function Fr(){var e,t,i=[],n=[],r=[],a=[],s=this.eras();for(e=0,t=s.length;e<t;++e)n.push(Ue(s[e].name)),i.push(Ue(s[e].abbr)),r.push(Ue(s[e].narrow)),a.push(Ue(s[e].name)),a.push(Ue(s[e].abbr)),a.push(Ue(s[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}
|
|
521
521
|
// FORMATTING
|
|
522
|
-
function
|
|
522
|
+
function $r(e,t){I(0,[e,e.length],0,t)}
|
|
523
523
|
// MOMENTS
|
|
524
|
-
function
|
|
524
|
+
function zr(e){return qr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wr(e){return qr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return Tt(this.year(),1,4)}function Zr(){return Tt(this.isoWeekYear(),1,4)}function Xr(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function Kr(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function qr(e,t,i,n,r){var a;return null==e?Et(this,n,r).year:(t>(a=Tt(e,n,r))&&(t=a),Jr.call(this,e,t,i,n,r))}function Jr(e,t,i,n,r){var a=Lt(e,t,i,n,r),s=_t(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
|
|
525
525
|
// FORMATTING
|
|
526
526
|
// MOMENTS
|
|
527
527
|
function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
528
528
|
// FORMATTING
|
|
529
|
-
|
|
529
|
+
I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),xe("N",Yr),xe("NN",Yr),xe("NNN",Yr),xe("NNNN",Ir),xe("NNNNN",jr),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,n){var r=i._locale.erasParse(e,n,i._strict);r?g(i).era=r:g(i).invalidEra=e})),xe("y",Pe),xe("yy",Pe),xe("yyy",Pe),xe("yyyy",Pe),xe("yo",Gr),Ie(["y","yy","yyy","yyyy"],$e),Ie(["yo"],(function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[$e]=i._locale.eraYearOrdinalParse(e,r):t[$e]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$r("gggg","weekYear"),$r("ggggg","weekYear"),$r("GGGG","isoWeekYear"),$r("GGGGG","isoWeekYear"),
|
|
530
530
|
// ALIASES
|
|
531
531
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
532
532
|
// PRIORITY
|
|
533
533
|
oe("weekYear",1),oe("isoWeekYear",1),
|
|
534
534
|
// PARSING
|
|
535
|
-
xe("G",Ae),xe("g",Ae),xe("GG",Ee,ve),xe("gg",Ee,ve),xe("GGGG",
|
|
535
|
+
xe("G",Ae),xe("g",Ae),xe("GG",Ee,ve),xe("gg",Ee,ve),xe("GGGG",Me,we),xe("gggg",Me,we),xe("GGGGG",De,Le),xe("ggggg",De,Le),je(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=he(e)})),je(["gg","GG"],(function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),
|
|
536
536
|
// ALIASES
|
|
537
537
|
ne("quarter","Q"),
|
|
538
538
|
// PRIORITY
|
|
539
539
|
oe("quarter",7),
|
|
540
540
|
// PARSING
|
|
541
|
-
xe("Q",
|
|
541
|
+
xe("Q",be),Ie("Q",(function(e,t){t[ze]=3*(he(e)-1)})),I("D",["DD",2],"Do","date"),
|
|
542
542
|
// ALIASES
|
|
543
543
|
ne("date","D"),
|
|
544
544
|
// PRIORITY
|
|
@@ -546,51 +546,51 @@ oe("date",9),
|
|
|
546
546
|
// PARSING
|
|
547
547
|
xe("D",Ee),xe("DD",Ee,ve),xe("Do",(function(e,t){
|
|
548
548
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
549
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),
|
|
549
|
+
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],We),Ie("Do",(function(e,t){t[We]=he(e.match(Ee)[0])}));
|
|
550
550
|
// MOMENTS
|
|
551
|
-
var
|
|
551
|
+
var ea=de("Date",!0);
|
|
552
552
|
// FORMATTING
|
|
553
553
|
// HELPERS
|
|
554
554
|
// MOMENTS
|
|
555
|
-
function
|
|
555
|
+
function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}
|
|
556
556
|
// FORMATTING
|
|
557
|
-
|
|
557
|
+
I("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
558
558
|
// ALIASES
|
|
559
559
|
ne("dayOfYear","DDD"),
|
|
560
560
|
// PRIORITY
|
|
561
561
|
oe("dayOfYear",4),
|
|
562
562
|
// PARSING
|
|
563
|
-
xe("DDD",
|
|
563
|
+
xe("DDD",ke),xe("DDDD",_e),Ie(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=he(e)})),I("m",["mm",2],0,"minute"),
|
|
564
564
|
// ALIASES
|
|
565
565
|
ne("minute","m"),
|
|
566
566
|
// PRIORITY
|
|
567
567
|
oe("minute",14),
|
|
568
568
|
// PARSING
|
|
569
|
-
xe("m",Ee),xe("mm",Ee,ve),
|
|
569
|
+
xe("m",Ee),xe("mm",Ee,ve),Ie(["m","mm"],Ze);
|
|
570
570
|
// MOMENTS
|
|
571
|
-
var
|
|
571
|
+
var ia=de("Minutes",!1);
|
|
572
572
|
// FORMATTING
|
|
573
|
-
|
|
573
|
+
I("s",["ss",2],0,"second"),
|
|
574
574
|
// ALIASES
|
|
575
575
|
ne("second","s"),
|
|
576
576
|
// PRIORITY
|
|
577
577
|
oe("second",15),
|
|
578
578
|
// PARSING
|
|
579
|
-
xe("s",Ee),xe("ss",Ee,ve),
|
|
579
|
+
xe("s",Ee),xe("ss",Ee,ve),Ie(["s","ss"],Xe);
|
|
580
580
|
// MOMENTS
|
|
581
|
-
var
|
|
581
|
+
var na,ra,aa=de("Seconds",!1);
|
|
582
582
|
// FORMATTING
|
|
583
|
-
for(
|
|
583
|
+
for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
|
|
584
584
|
// ALIASES
|
|
585
585
|
ne("millisecond","ms"),
|
|
586
586
|
// PRIORITY
|
|
587
587
|
oe("millisecond",16),
|
|
588
588
|
// PARSING
|
|
589
|
-
xe("S",
|
|
589
|
+
xe("S",ke,be),xe("SS",ke,ve),xe("SSS",ke,_e),na="SSSS";na.length<=9;na+="S")xe(na,Pe);function sa(e,t){t[Ke]=he(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")Ie(na,sa);
|
|
590
590
|
// MOMENTS
|
|
591
|
-
function
|
|
591
|
+
function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=de("Milliseconds",!1),
|
|
592
592
|
// FORMATTING
|
|
593
|
-
|
|
593
|
+
I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=L.prototype;function ca(e){return Xi(1e3*e)}function ha(){return Xi.apply(null,arguments).parseZone()}function da(e){return e}ua.add=xn,ua.calendar=Fn,ua.clone=$n,ua.diff=qn,ua.endOf=br,ua.format=ir,ua.from=nr,ua.fromNow=rr,ua.to=ar,ua.toNow=sr,ua.get=pe,ua.invalidAt=Mr,ua.isAfter=zn,ua.isBefore=Wn,ua.isBetween=Vn,ua.isSame=Zn,ua.isSameOrAfter=Xn,ua.isSameOrBefore=Kn,ua.isValid=Sr,ua.lang=lr,ua.locale=or,ua.localeData=ur,ua.max=qi,ua.min=Ki,ua.parsingFlags=kr,ua.set=ge,ua.startOf=yr,ua.subtract=Rn,ua.toArray=Lr,ua.toObject=Er,ua.toDate=wr,ua.toISOString=er,ua.inspect=tr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=Tr,ua.toString=Qn,ua.unix=_r,ua.valueOf=vr,ua.creationData=Dr,ua.eraName=Cr,ua.eraNarrow=Or,ua.eraAbbr=Nr,ua.eraYear=xr,ua.year=yt,ua.isLeapYear=bt,ua.weekYear=zr,ua.isoWeekYear=Wr,ua.quarter=ua.quarters=Qr,ua.month=ht,ua.daysInMonth=dt,ua.week=ua.weeks=Pt,ua.isoWeek=ua.isoWeeks=At,ua.weeksInYear=Xr,ua.weeksInWeekYear=Kr,ua.isoWeeksInYear=Vr,ua.isoWeeksInISOWeekYear=Zr,ua.date=ea,ua.day=ua.days=zt,ua.weekday=Wt,ua.isoWeekday=Vt,ua.dayOfYear=ta,ua.hour=ua.hours=ri,ua.minute=ua.minutes=ia,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=gn,ua.utc=bn,ua.local=vn,ua.parseZone=_n,ua.hasAlignedHourOffset=wn,ua.isDST=Ln,ua.isLocal=Tn,ua.isUtcOffset=Sn,ua.isUtc=kn,ua.isUTC=kn,ua.zoneAbbr=oa,ua.zoneName=la,ua.dates=S("dates accessor is deprecated. Use date instead.",ea),ua.months=S("months accessor is deprecated. Use month instead",ht),ua.years=S("years accessor is deprecated. Use year instead",yt),ua.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yn),ua.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",En);var ma=C.prototype;function fa(e,t,i,n){var r=bi(),a=f().set(n,t);return r[i](a,e)}function pa(e,t,i){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=fa(e,n,i,"month");return r}
|
|
594
594
|
// ()
|
|
595
595
|
// (5)
|
|
596
596
|
// (fmt, 5)
|
|
@@ -599,34 +599,34 @@ U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var us=L.prototype;function cs(e){r
|
|
|
599
599
|
// (true, 5)
|
|
600
600
|
// (true, fmt, 5)
|
|
601
601
|
// (true, fmt)
|
|
602
|
-
function
|
|
602
|
+
function ga(e,t,i,n){"boolean"==typeof e?(c(t)&&(i=t,t=void 0),t=t||""):(i=t=e,e=!1,c(t)&&(i=t,t=void 0),t=t||"");var r,a=bi(),s=e?a._week.dow:0,o=[];if(null!=i)return fa(t,(i+s)%7,n,"day");for(r=0;r<7;r++)o[r]=fa(t,(r+s)%7,n,"day");return o}function ya(e,t){return pa(e,t,"months")}function ba(e,t){return pa(e,t,"monthsShort")}function va(e,t,i){return ga(e,t,i,"weekdays")}function _a(e,t,i){return ga(e,t,i,"weekdaysShort")}function wa(e,t,i){return ga(e,t,i,"weekdaysMin")}ma.calendar=N,ma.longDateFormat=V,ma.invalidDate=X,ma.ordinal=J,ma.preparse=da,ma.postformat=da,ma.relativeTime=ee,ma.pastFuture=te,ma.set=A,ma.eras=Pr,ma.erasParse=Ar,ma.erasConvertYear=Hr,ma.erasAbbrRegex=Br,ma.erasNameRegex=Rr,ma.erasNarrowRegex=Ur,ma.months=st,ma.monthsShort=ot,ma.monthsParse=ut,ma.monthsRegex=ft,ma.monthsShortRegex=mt,ma.week=St,ma.firstDayOfYear=Dt,ma.firstDayOfWeek=Mt,ma.weekdays=It,ma.weekdaysMin=Gt,ma.weekdaysShort=jt,ma.weekdaysParse=$t,ma.weekdaysRegex=Zt,ma.weekdaysShortRegex=Xt,ma.weekdaysMinRegex=Kt,ma.isPM=ii,ma.meridiem=ai,pi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
603
603
|
// Side effect imports
|
|
604
|
-
n.lang=S("moment.lang is deprecated. Use moment.locale instead.",pi),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",
|
|
604
|
+
n.lang=S("moment.lang is deprecated. Use moment.locale instead.",pi),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bi);var La=Math.abs;function Ea(){var e=this._data;return this._milliseconds=La(this._milliseconds),this._days=La(this._days),this._months=La(this._months),e.milliseconds=La(e.milliseconds),e.seconds=La(e.seconds),e.minutes=La(e.minutes),e.hours=La(e.hours),e.months=La(e.months),e.years=La(e.years),this}function Ta(e,t,i,n){var r=Pn(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}
|
|
605
605
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
606
|
-
function
|
|
606
|
+
function Sa(e,t){return Ta(this,e,t,1)}
|
|
607
607
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
608
|
-
function
|
|
608
|
+
function ka(e,t){return Ta(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function Da(){var e,t,i,n,r,a=this._milliseconds,s=this._days,o=this._months,l=this._data;
|
|
609
609
|
// if we have a mix of positive and negative values, bubble down first
|
|
610
610
|
// check: https://github.com/moment/moment/issues/2166
|
|
611
|
-
return
|
|
611
|
+
return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ma(Aa(o)+s),s=0,o=0),
|
|
612
612
|
// The following code bubbles up values, see the tests for
|
|
613
613
|
// examples of what that means.
|
|
614
|
-
l.milliseconds=
|
|
614
|
+
l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,i=ce(t/60),l.hours=i%24,s+=ce(i/24),o+=
|
|
615
615
|
// convert days to months
|
|
616
|
-
r=ce(
|
|
616
|
+
r=ce(Pa(s)),s-=Ma(Aa(r)),
|
|
617
617
|
// 12 months -> 1 year
|
|
618
|
-
n=ce(o/12),o%=12,l.days=
|
|
618
|
+
n=ce(o/12),o%=12,l.days=s,l.months=o,l.years=n,this}function Pa(e){
|
|
619
619
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
620
620
|
// 400 years have 12 months === 4800
|
|
621
|
-
return 4800*e/146097}function
|
|
621
|
+
return 4800*e/146097}function Aa(e){
|
|
622
622
|
// the reverse of daysToMonths
|
|
623
|
-
return 146097*e/4800}function
|
|
623
|
+
return 146097*e/4800}function Ha(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Pa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(
|
|
624
624
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
625
|
-
t=this._days+Math.round(
|
|
625
|
+
t=this._days+Math.round(Aa(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;
|
|
626
626
|
// Math.floor prevents floating point math errors here
|
|
627
627
|
case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}
|
|
628
628
|
// TODO: Use this.as('ms')?
|
|
629
|
-
function
|
|
629
|
+
function Ca(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function Oa(e){return function(){return this.as(e)}}var Na=Oa("ms"),xa=Oa("s"),Ra=Oa("m"),Ba=Oa("h"),Ua=Oa("d"),Ya=Oa("w"),Ia=Oa("M"),ja=Oa("Q"),Ga=Oa("y");function Fa(){return Pn(this)}function $a(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function za(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wa=za("milliseconds"),Va=za("seconds"),Za=za("minutes"),Xa=za("hours"),Ka=za("days"),qa=za("months"),Ja=za("years");function Qa(){return ce(this.days()/7)}var es=Math.round,ts={ss:44,// a few seconds to seconds
|
|
630
630
|
s:45,// seconds to minute
|
|
631
631
|
m:45,// minutes to hour
|
|
632
632
|
h:22,// hours to day
|
|
@@ -634,11 +634,11 @@ d:26,// days to month/week
|
|
|
634
634
|
w:null,// weeks to month
|
|
635
635
|
M:11};
|
|
636
636
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
637
|
-
function
|
|
637
|
+
function is(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function ns(e,t,i,n){var r=Pn(e).abs(),a=es(r.as("s")),s=es(r.as("m")),o=es(r.as("h")),l=es(r.as("d")),u=es(r.as("M")),c=es(r.as("w")),h=es(r.as("y")),d=a<=i.ss&&["s",a]||a<i.s&&["ss",a]||s<=1&&["m"]||s<i.m&&["mm",s]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(d=d||c<=1&&["w"]||c<i.w&&["ww",c]),(d=d||u<=1&&["M"]||u<i.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=t,d[3]=+e>0,d[4]=n,is.apply(null,d)}
|
|
638
638
|
// This function allows you to set the rounding function for relative time strings
|
|
639
|
-
function
|
|
639
|
+
function rs(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}
|
|
640
640
|
// This function allows you to set a threshold for relative time strings
|
|
641
|
-
function
|
|
641
|
+
function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,a=ts;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=ns(this,!r,a,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)}var os=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function us(){
|
|
642
642
|
// for ISO strings we do not use the normal bubbling rules:
|
|
643
643
|
// * milliseconds bubble up until they become hours
|
|
644
644
|
// * days do not bubble at all
|
|
@@ -646,19 +646,19 @@ function sa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.
|
|
|
646
646
|
// This is because there is no context-free conversion between hours and days
|
|
647
647
|
// (think of clock changes)
|
|
648
648
|
// and also not between days and months (28-31 days per month)
|
|
649
|
-
if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,s,
|
|
649
|
+
if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,a,s,o,l=os(this._milliseconds)/1e3,u=os(this._days),c=os(this._months),h=this.asSeconds();return h?(
|
|
650
650
|
// 3600 seconds -> 60 minutes -> 1 hour
|
|
651
651
|
e=ce(l/60),t=ce(e/60),l%=60,e%=60,
|
|
652
652
|
// 12 months -> 1 year
|
|
653
653
|
i=ce(c/12),c%=12,
|
|
654
654
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
655
|
-
n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",
|
|
655
|
+
n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",a=ls(this._months)!==ls(h)?"-":"",s=ls(this._days)!==ls(h)?"-":"",o=ls(this._milliseconds)!==ls(h)?"-":"",r+"P"+(i?a+i+"Y":"")+(c?a+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+n+"S":"")):"P0D"}var cs=on.prototype;return cs.isValid=an,cs.abs=Ea,cs.add=Sa,cs.subtract=ka,cs.as=Ha,cs.asMilliseconds=Na,cs.asSeconds=xa,cs.asMinutes=Ra,cs.asHours=Ba,cs.asDays=Ua,cs.asWeeks=Ya,cs.asMonths=Ia,cs.asQuarters=ja,cs.asYears=Ga,cs.valueOf=Ca,cs._bubble=Da,cs.clone=Fa,cs.get=$a,cs.milliseconds=Wa,cs.seconds=Va,cs.minutes=Za,cs.hours=Xa,cs.days=Ka,cs.weeks=Qa,cs.months=qa,cs.years=Ja,cs.humanize=ss,cs.toISOString=us,cs.toString=us,cs.toJSON=us,cs.locale=or,cs.localeData=ur,cs.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),cs.lang=lr,
|
|
656
656
|
// FORMATTING
|
|
657
|
-
|
|
657
|
+
I("X",0,0,"unix"),I("x",0,0,"valueOf"),
|
|
658
658
|
// PARSING
|
|
659
|
-
xe("x",Ae),xe("X",
|
|
659
|
+
xe("x",Ae),xe("X",Oe),Ie("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,t,i){i._d=new Date(he(e))})),
|
|
660
660
|
//! moment.js
|
|
661
|
-
n.version="2.29.4",r(Xi),n.fn=
|
|
661
|
+
n.version="2.29.4",r(Xi),n.fn=ua,n.min=Qi,n.max=en,n.now=tn,n.utc=f,n.unix=ca,n.months=ya,n.isDate=h,n.locale=pi,n.invalid=b,n.duration=Pn,n.isMoment=E,n.weekdays=va,n.parseZone=ha,n.localeData=bi,n.isDuration=ln,n.monthsShort=ba,n.weekdaysMin=wa,n.defineLocale=gi,n.updateLocale=yi,n.locales=vi,n.weekdaysShort=_a,n.normalizeUnits=re,n.relativeTimeRounding=rs,n.relativeTimeThreshold=as,n.calendarFormat=Gn,n.prototype=ua,
|
|
662
662
|
// currently HTML5 input type only supports 24-hour formats
|
|
663
663
|
n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
664
664
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -668,7 +668,7 @@ TIME:"HH:mm",// <input type="time" />
|
|
|
668
668
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
|
669
669
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
670
670
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
671
|
-
MONTH:"YYYY-MM"},n}()}));const
|
|
671
|
+
MONTH:"YYYY-MM"},n}()}));const z=[];
|
|
672
672
|
/**
|
|
673
673
|
* Creates a `Readable` store that allows reading by subscription.
|
|
674
674
|
* @param value initial value
|
|
@@ -679,12 +679,12 @@ MONTH:"YYYY-MM"},n}()}));const V=[];
|
|
|
679
679
|
* @param {*=}value initial value
|
|
680
680
|
* @param {StartStopNotifier=} start
|
|
681
681
|
*/
|
|
682
|
-
function
|
|
683
|
-
const e=!
|
|
682
|
+
function W(t,i=e){let n;const r=new Set;function s(e){if(a(t,e)&&(t=e,n)){// store is ready
|
|
683
|
+
const e=!z.length;for(const e of r)e[1](),z.push(e,t);if(e){for(let e=0;e<z.length;e+=2)z[e][0](z[e+1]);z.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(a,o=e){const l=[a,o];return r.add(l),1===r.size&&(n=i(s)||e),a(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function V(t,i,a){const s=!Array.isArray(t),o=s?[t]:t,u=i.length<2;return c=t=>{let a=!1;const c=[];let h=0,d=e;const m=()=>{if(h)return;d();const n=i(s?c[0]:c,t);u?t(n):d=r(n)?n:e},f=o.map(((e,t)=>l(e,(e=>{c[t]=e,h&=~(1<<t),a&&m()}),(()=>{h|=1<<t}))));return a=!0,m(),function(){n(f),d(),
|
|
684
684
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
685
685
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
686
686
|
// invoke this derived store.
|
|
687
|
-
|
|
687
|
+
a=!1}},{subscribe:W(a,c).subscribe};var c}var Z=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===X}(e)}
|
|
688
688
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
689
689
|
(e)};var X="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function K(e,t){return!1!==t.clone&&t.isMergeableObject(e)?te((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function q(e,t,i){return e.concat(t).map((function(e){return K(e,i)}))}function J(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Q(e,t){try{return t in e}catch(e){return!1}}
|
|
690
690
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
@@ -692,11 +692,11 @@ function ee(e,t,i){var n={};return i.isMergeableObject(e)&&J(e).forEach((functio
|
|
|
692
692
|
})(e,r)||(Q(e,r)&&i.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return te;var i=t.customMerge(e);return"function"==typeof i?i:te}(r,i)(e[r],t[r],i):n[r]=K(t[r],i))})),n}function te(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||q,i.isMergeableObject=i.isMergeableObject||Z,
|
|
693
693
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
694
694
|
// implementations can use it. The caller may not replace it.
|
|
695
|
-
i.cloneUnlessOtherwiseSpecified=K;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):ee(e,t,i):K(t,i)}te.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return te(e,i,t)}),{})};var ie=te,ne=function(e,t){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},ne(e,t)};function re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var se,
|
|
695
|
+
i.cloneUnlessOtherwiseSpecified=K;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):ee(e,t,i):K(t,i)}te.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return te(e,i,t)}),{})};var ie=te,ne=function(e,t){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},ne(e,t)};function re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var ae,se,oe,le=function(){return le=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},le.apply(this,arguments)};function ue(e,t,i){if(i||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}
|
|
696
696
|
/**
|
|
697
697
|
* Type Guards
|
|
698
698
|
*/
|
|
699
|
-
function ce(e){return e.type===
|
|
699
|
+
function ce(e){return e.type===se.literal}function he(e){return e.type===se.argument}function de(e){return e.type===se.number}function me(e){return e.type===se.date}function fe(e){return e.type===se.time}function pe(e){return e.type===se.select}function ge(e){return e.type===se.plural}function ye(e){return e.type===se.pound}function be(e){return e.type===se.tag}function ve(e){return!(!e||"object"!=typeof e||e.type!==oe.number)}function _e(e){return!(!e||"object"!=typeof e||e.type!==oe.dateTime)}
|
|
700
700
|
// @generated from regex-gen.ts
|
|
701
701
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
702
702
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -758,7 +758,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
|
758
758
|
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
|
759
759
|
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
760
760
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
761
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(
|
|
761
|
+
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ae||(ae={})),function(e){
|
|
762
762
|
/**
|
|
763
763
|
* Raw text
|
|
764
764
|
*/
|
|
@@ -795,7 +795,7 @@ e[e.pound=7]="pound",
|
|
|
795
795
|
/**
|
|
796
796
|
* XML-like tag
|
|
797
797
|
*/
|
|
798
|
-
e[e.tag=8]="tag"}(
|
|
798
|
+
e[e.tag=8]="tag"}(se||(se={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(oe||(oe={}));var we=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Le=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
799
799
|
/**
|
|
800
800
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
801
801
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -841,30 +841,30 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
841
841
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
842
842
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
843
843
|
// @generated from regex-gen.ts
|
|
844
|
-
var Te=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Se=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
844
|
+
var Te=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Se=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ke=/^(@+)?(\+|#+)?[rs]?$/g,Me=/(\*)(0+)|(#+)(0+)|(0+)/g,De=/^(0+)$/;function Pe(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ke,(function(e,i,n){
|
|
845
845
|
// @@@ case
|
|
846
|
-
return"string"!=typeof n?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===n?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""})),t}function Ae(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
|
|
846
|
+
return"string"!=typeof n?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===n?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""})),t}function Ae(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 He(e){
|
|
847
847
|
// Engineering
|
|
848
|
-
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 i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!
|
|
848
|
+
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 i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!De.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ce(e){var t=Ae(e);return t||{}}
|
|
849
849
|
/**
|
|
850
850
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
851
|
-
*/function
|
|
851
|
+
*/function Oe(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=r.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=le(le(le({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return le(le({},e),Ce(t))}),{}));continue;case"engineering":t=le(le(le({},t),{notation:"engineering"}),r.options.reduce((function(e,t){return le(le({},e),Ce(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
852
852
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
853
853
|
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(r.options[0]);continue;
|
|
854
854
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
855
|
-
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(
|
|
855
|
+
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Me,(function(e,i,n,r,a,s){if(i)t.minimumIntegerDigits=n.length;else{if(r&&a)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}
|
|
856
856
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
857
|
-
if(
|
|
857
|
+
if(De.test(r.stem))t.minimumIntegerDigits=r.stem.length;else if(Se.test(r.stem)){
|
|
858
858
|
// Precision
|
|
859
859
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
860
860
|
// precision-integer case
|
|
861
|
-
if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Se,(function(e,i,n,r,s
|
|
861
|
+
if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Se,(function(e,i,n,r,a,s){
|
|
862
862
|
// .000* case (before ICU67 it was .000+)
|
|
863
|
-
return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:s
|
|
863
|
+
return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var a=r.options[0];
|
|
864
864
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
865
|
-
"w"===
|
|
865
|
+
"w"===a?t=le(le({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=le(le({},t),Pe(a)))}
|
|
866
866
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
867
|
-
else if(
|
|
867
|
+
else if(ke.test(r.stem))t=le(le({},t),Pe(r.stem));else{var s=Ae(r.stem);s&&(t=le(le({},t),s));var o=He(r.stem);o&&(t=le(le({},t),o))}}return t}
|
|
868
868
|
// @generated from time-data-gen.ts
|
|
869
869
|
// prettier-ignore
|
|
870
870
|
var Ne,xe={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"]};
|
|
@@ -888,37 +888,37 @@ e.hourCycles.length&&(
|
|
|
888
888
|
// @ts-ignore
|
|
889
889
|
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
890
890
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
891
|
-
var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(xe[i||""]||xe[n||""]||xe["".concat(n,"-001")]||xe["001"])[0]}var Be=new RegExp("^".concat(we.source,"*")),
|
|
891
|
+
var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(xe[i||""]||xe[n||""]||xe["".concat(n,"-001")]||xe["001"])[0]}var Be=new RegExp("^".concat(we.source,"*")),Ue=new RegExp("".concat(we.source,"*$"));function Ye(e,t){return{start:e,end:t}}
|
|
892
892
|
// #region Ponyfills
|
|
893
893
|
// Consolidate these variables up top for easier toggling during debugging
|
|
894
|
-
var
|
|
894
|
+
var Ie=!!String.prototype.startsWith,je=!!String.fromCodePoint,Ge=!!Object.fromEntries,Fe=!!String.prototype.codePointAt,$e=!!String.prototype.trimStart,ze=!!String.prototype.trimEnd,We=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ve=!0;try{
|
|
895
895
|
/**
|
|
896
896
|
* legacy Edge or Xbox One browser
|
|
897
897
|
* Unicode flag support: supported
|
|
898
898
|
* Pattern_Syntax support: not supported
|
|
899
899
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
900
900
|
*/
|
|
901
|
-
|
|
901
|
+
Ve="a"===(null===(Ne=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ne?void 0:Ne[0])}catch(e){Ve=!1}var Ze,Xe=Ie?// Native
|
|
902
902
|
function(e,t,i){return e.startsWith(t,i)}:// For IE11
|
|
903
|
-
function(e,t,i){return e.slice(i,i+t.length)===t},Ke=
|
|
904
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,
|
|
903
|
+
function(e,t,i){return e.slice(i,i+t.length)===t},Ke=je?String.fromCodePoint:// IE11
|
|
904
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,a=0;r>a;){if((i=e[a++])>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},qe=
|
|
905
905
|
// native
|
|
906
906
|
Ge?Object.fromEntries:// Ponyfill
|
|
907
|
-
function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],
|
|
907
|
+
function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],a=r[0],s=r[1];t[a]=s}return t},Je=Fe?// Native
|
|
908
908
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
909
|
-
function(e,t){var i=e.length;if(!(t<0||t>=i)){var n,r=e.charCodeAt(t);return r<55296||r>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536}},Qe
|
|
909
|
+
function(e,t){var i=e.length;if(!(t<0||t>=i)){var n,r=e.charCodeAt(t);return r<55296||r>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536}},Qe=$e?// Native
|
|
910
910
|
function(e){return e.trimStart()}:// Ponyfill
|
|
911
|
-
function(e){return e.replace(Be,"")},et=
|
|
911
|
+
function(e){return e.replace(Be,"")},et=ze?// Native
|
|
912
912
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
913
|
-
function(e){return e.replace(
|
|
913
|
+
function(e){return e.replace(Ue,"")};
|
|
914
914
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
915
915
|
function tt(e,t){return new RegExp(e,t)}
|
|
916
916
|
// #endregion
|
|
917
|
-
if(
|
|
917
|
+
if(Ve){
|
|
918
918
|
// Native
|
|
919
919
|
var it=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ze=function(e,t){var i;return it.lastIndex=t,null!==(i=it.exec(e)[1])&&void 0!==i?i:""}}else
|
|
920
920
|
// IE11
|
|
921
|
-
Ze=function(e,t){for(var i=[];;){var n=Je(e,t);if(void 0===n||
|
|
921
|
+
Ze=function(e,t){for(var i=[];;){var n=Je(e,t);if(void 0===n||at(n)||st(n))break;i.push(n),t+=n>=65536?2:1}return Ke.apply(void 0,i)};var nt=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r=this.char();if(123/* `{` */===r){if((a=this.parseArgument(e,i)).err)return a;n.push(a.val)}else{if(125/* `}` */===r&&e>0)break;if(35/* `#` */!==r||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===r&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(ae.UNMATCHED_CLOSING_TAG,Ye(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===r&&!this.ignoreTag&&rt(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;n.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;n.push(a.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:se.pound,location:Ye(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
922
922
|
/**
|
|
923
923
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
924
924
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -940,14 +940,14 @@ Ze=function(e,t){for(var i=[];;){var n=Je(e,t);if(void 0===n||st(n)||at(n))break
|
|
|
940
940
|
e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();// `<`
|
|
941
941
|
var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
942
942
|
// Self closing tag
|
|
943
|
-
return{val:{type:
|
|
943
|
+
return{val:{type:se.literal,value:"<".concat(n,"/>"),location:Ye(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var a=r.val,s=this.clonePosition();
|
|
944
944
|
// Expecting a close tag
|
|
945
|
-
if(this.bumpIf("</")){if(this.isEOF()||!rt(this.char()))return this.error(
|
|
945
|
+
if(this.bumpIf("</")){if(this.isEOF()||!rt(this.char()))return this.error(ae.INVALID_TAG,Ye(s,this.clonePosition()));var o=this.clonePosition();return n!==this.parseTagName()?this.error(ae.UNMATCHED_CLOSING_TAG,Ye(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:n,children:a,location:Ye(i,this.clonePosition())},err:null}:this.error(ae.INVALID_TAG,Ye(s,this.clonePosition())))}return this.error(ae.UNCLOSED_TAG,Ye(i,this.clonePosition()))}return this.error(ae.INVALID_TAG,Ye(i,this.clonePosition()))},
|
|
946
946
|
/**
|
|
947
947
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
948
948
|
*/
|
|
949
949
|
e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
|
|
950
|
-
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var
|
|
950
|
+
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var a=this.tryParseUnquoted(e,t);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var o=Ye(i,this.clonePosition());return{val:{type:se.literal,value:n,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(rt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
951
951
|
/** See `parseTag` function docs. */},
|
|
952
952
|
/**
|
|
953
953
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -970,66 +970,66 @@ for(this.bump();!this.isEOF();){var i=this.char();if(39/* `'` */===i){if(39/* `'
|
|
|
970
970
|
this.bump();break}t.push(39),
|
|
971
971
|
// Bump one more time because we need to skip 2 characters.
|
|
972
972
|
this.bump()}else t.push(i);this.bump()}return Ke.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60/* `<` */===i||123/* `{` */===i||35/* `#` */===i&&("plural"===t||"selectordinal"===t)||125/* `}` */===i&&e>0?null:(this.bump(),Ke(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),// `{`
|
|
973
|
-
this.bumpSpace(),this.isEOF())return this.error(
|
|
973
|
+
this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(i,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(ae.EMPTY_ARGUMENT,Ye(i,this.clonePosition()));
|
|
974
974
|
// argument name
|
|
975
|
-
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(
|
|
975
|
+
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ae.MALFORMED_ARGUMENT,Ye(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(i,this.clonePosition()));switch(this.char()){
|
|
976
976
|
// Simple argument: `{name}`
|
|
977
977
|
case 125/* `}` */:// `}`
|
|
978
|
-
return this.bump(),{val:{type:
|
|
978
|
+
return this.bump(),{val:{type:se.argument,
|
|
979
979
|
// value does not include the opening and closing braces.
|
|
980
|
-
value:n,location:
|
|
980
|
+
value:n,location:Ye(i,this.clonePosition())},err:null};
|
|
981
981
|
// Argument with options: `{name, format, ...}`
|
|
982
982
|
case 44/* `,` */:return this.bump(),// `,`
|
|
983
|
-
this.bumpSpace(),this.isEOF()?this.error(
|
|
983
|
+
this.bumpSpace(),this.isEOF()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(ae.MALFORMED_ARGUMENT,Ye(i,this.clonePosition()))}},
|
|
984
984
|
/**
|
|
985
985
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
986
986
|
* an identifier character. Return an empty string otherwise.
|
|
987
987
|
*/
|
|
988
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ze(this.message,t),n=t+i.length;return this.bumpTo(n),{value:i,location:
|
|
988
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ze(this.message,t),n=t+i.length;return this.bumpTo(n),{value:i,location:Ye(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,n){var r,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();
|
|
989
989
|
// Parse this range:
|
|
990
990
|
// {name, type, style}
|
|
991
991
|
// ^---^
|
|
992
|
-
switch(
|
|
992
|
+
switch(s){case"":
|
|
993
993
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
994
|
-
return this.error(
|
|
994
|
+
return this.error(ae.EXPECT_ARGUMENT_TYPE,Ye(a,o));case"number":case"date":case"time":
|
|
995
995
|
// Parse this range:
|
|
996
996
|
// {name, number, style}
|
|
997
997
|
// ^-------^
|
|
998
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=et(y.val)).length)return this.error(
|
|
998
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=et(y.val)).length)return this.error(ae.EXPECT_ARGUMENT_STYLE,Ye(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Ye(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Ye(n,this.clonePosition());
|
|
999
999
|
// Extract style or skeleton
|
|
1000
1000
|
if(l&&Xe(null==l?void 0:l.style,"::",0)){
|
|
1001
1001
|
// Skeleton starts with `::`.
|
|
1002
|
-
var h=Qe(l.style.slice(2));if("number"===
|
|
1002
|
+
var h=Qe(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:se.number,value:i,location:c,style:y.val},err:null};if(0===h.length)return this.error(ae.EXPECT_DATE_TIME_SKELETON,c);var d=h;
|
|
1003
1003
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
1004
1004
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
1005
1005
|
// for unsupported patterns.
|
|
1006
|
-
this.locale&&(d=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var
|
|
1006
|
+
this.locale&&(d=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var a=0;n+1<e.length&&e.charAt(n+1)===r;)a++,n++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=Re(t);for("H"!=l&&"k"!=l||(o=0);o-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(h,this.locale));var m={type:oe.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ee(d):{}};return{val:{type:"date"===s?se.date:se.time,value:i,location:c,style:m},err:null}}
|
|
1007
1007
|
// Regular style or no style.
|
|
1008
|
-
return{val:{type:"number"===
|
|
1008
|
+
return{val:{type:"number"===s?se.number:"date"===s?se.date:se.time,value:i,location:c,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":
|
|
1009
1009
|
// Parse this range:
|
|
1010
1010
|
// {name, plural, options}
|
|
1011
1011
|
// ^---------^
|
|
1012
|
-
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(
|
|
1012
|
+
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ae.EXPECT_SELECT_ARGUMENT_OPTIONS,Ye(f,le({},f)));this.bumpSpace();
|
|
1013
1013
|
// Parse offset:
|
|
1014
1014
|
// {name, plural, offset:1, options}
|
|
1015
1015
|
// ^-----^
|
|
1016
1016
|
// or the first option:
|
|
1017
1017
|
// {name, plural, one {...} other {...}}
|
|
1018
1018
|
// ^--^
|
|
1019
|
-
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==
|
|
1019
|
+
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ye(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
1020
1020
|
// Parse another identifier for option parsing
|
|
1021
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var
|
|
1021
|
+
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,s,t,p);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var _=Ye(n,this.clonePosition());return"select"===s?{val:{type:se.select,value:i,options:qe(v.val),location:_},err:null}:{val:{type:se.plural,value:i,options:qe(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(ae.INVALID_ARGUMENT_TYPE,Ye(a,o))}},e.prototype.tryParseArgumentClose=function(e){
|
|
1022
1022
|
// Parse: {value, number, ::currency/GBP }
|
|
1023
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(
|
|
1023
|
+
return this.isEOF()||125/* `}` */!==this.char()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
1024
1024
|
/**
|
|
1025
1025
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
1026
1026
|
*/
|
|
1027
1027
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
1028
1028
|
// Treat apostrophe as quoting but include it in the style part.
|
|
1029
1029
|
// Find the end of the quoted literal text.
|
|
1030
|
-
this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(
|
|
1030
|
+
this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ae.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ye(i,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
1031
1031
|
// Parse the skeleton
|
|
1032
|
-
for(var t=[],i=0,n=e.split(Te).filter((function(e){return e.length>0}));i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var
|
|
1032
|
+
for(var t=[],i=0,n=e.split(Te).filter((function(e){return e.length>0}));i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var a=r[0],s=r.slice(1),o=0,l=s;o<l.length;o++)if(0===l[o].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:s})}return t}(e)}catch(e){return this.error(ae.INVALID_NUMBER_SKELETON,t)}return{val:{type:oe.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Oe(i):{}},err:null}},
|
|
1033
1033
|
/**
|
|
1034
1034
|
* @param nesting_level The current nesting level of messages.
|
|
1035
1035
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -1044,19 +1044,19 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){
|
|
|
1044
1044
|
// Parse:
|
|
1045
1045
|
// one {one apple}
|
|
1046
1046
|
// ^--^
|
|
1047
|
-
for(var r,
|
|
1047
|
+
for(var r,a=!1,s=[],o=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
1048
1048
|
// Try parse `={number}` selector
|
|
1049
|
-
var h=this.tryParseDecimalInteger(
|
|
1049
|
+
var h=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,ae.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Ye(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
|
1050
1050
|
// Duplicate selector clauses
|
|
1051
|
-
if(o.has(l))return this.error("select"===t?
|
|
1051
|
+
if(o.has(l))return this.error("select"===t?ae.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ae.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),
|
|
1052
1052
|
// Parse:
|
|
1053
1053
|
// one {one apple}
|
|
1054
1054
|
// ^----------^
|
|
1055
|
-
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?
|
|
1055
|
+
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ye(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,i);if(m.err)return m;var f=this.tryParseArgumentClose(d);if(f.err)return f;s.push([l,{value:m.val,location:Ye(d,this.clonePosition())}]),
|
|
1056
1056
|
// Keep track of the existing selectors
|
|
1057
1057
|
o.add(l),
|
|
1058
1058
|
// Prep next selector clause.
|
|
1059
|
-
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===
|
|
1059
|
+
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===s.length?this.error("select"===t?ae.EXPECT_SELECT_ARGUMENT_SELECTOR:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ye(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ae.MISSING_OTHER_CLAUSE,Ye(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;r=!0,a=10*a+(s-48),this.bump()}var o=Ye(n,this.clonePosition());return r?We(a*=i)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
1060
1060
|
// This is much faster than `Object.assign` or spread.
|
|
1061
1061
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
1062
1062
|
/**
|
|
@@ -1086,7 +1086,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t
|
|
|
1086
1086
|
*/
|
|
1087
1087
|
e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
1088
1088
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
1089
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
1089
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&at(this.char());)this.bump()},
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
1092
1092
|
* If the input has been exhausted, then this returns null.
|
|
@@ -1101,11 +1101,11 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
1101
1101
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
1102
1102
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1103
1103
|
*/
|
|
1104
|
-
function
|
|
1104
|
+
function at(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
1107
1107
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1108
|
-
*/function
|
|
1108
|
+
*/function st(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 ot(e){e.forEach((function(e){if(delete e.location,pe(e)||ge(e))for(var t in e.options)delete e.options[t].location,ot(e.options[t].value);else de(e)&&ve(e.style)||(me(e)||fe(e))&&_e(e.style)?delete e.style.location:be(e)&&ot(e.children)}))}function lt(e,t){void 0===t&&(t={}),t=le({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new nt(e,t).parse();if(i.err){var n=SyntaxError(ae[i.err.kind]);
|
|
1109
1109
|
// @ts-expect-error Assign to error object
|
|
1110
1110
|
throw n.location=i.err.location,
|
|
1111
1111
|
// @ts-expect-error Assign to error object
|
|
@@ -1117,7 +1117,7 @@ function ut(e,t){var i=t&&t.cache?t.cache:yt,n=t&&t.serializer?t.serializer:ft;r
|
|
|
1117
1117
|
|
|
1118
1118
|
// Strategy
|
|
1119
1119
|
|
|
1120
|
-
function ct(e,t,i,n){var r,
|
|
1120
|
+
function ct(e,t,i,n){var r,a=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:i(n),s=t.get(a);return void 0===s&&(s=e.call(this,n),t.set(a,s)),s}function ht(e,t,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),a=t.get(r);return void 0===a&&(a=e.apply(this,n),t.set(r,a)),a}function dt(e,t,i,n,r){return i.bind(t,e,n,r)}function mt(e,t){return dt(e,this,1===e.length?ct:ht,t.cache.create(),t.serializer)}
|
|
1121
1121
|
// Serializer
|
|
1122
1122
|
var ft=function(){return JSON.stringify(arguments)};
|
|
1123
1123
|
|
|
@@ -1125,114 +1125,134 @@ var ft=function(){return JSON.stringify(arguments)};
|
|
|
1125
1125
|
|
|
1126
1126
|
function pt(){this.cache=Object.create(null)}pt.prototype.get=function(e){return this.cache[e]},pt.prototype.set=function(e,t){this.cache[e]=t};var gt,yt={create:function(){
|
|
1127
1127
|
// @ts-ignore
|
|
1128
|
-
return new pt}},
|
|
1128
|
+
return new pt}},bt={variadic:function(e,t){return dt(e,this,ht,t.cache.create(),t.serializer)},monadic:function(e,t){return dt(e,this,ct,t.cache.create(),t.serializer)}};!function(e){
|
|
1129
1129
|
// When we have a placeholder but no value to format
|
|
1130
1130
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
1131
1131
|
// When value supplied is invalid
|
|
1132
1132
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
1133
1133
|
// When we need specific Intl API but it's not available
|
|
1134
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(gt||(gt={}));var vt,
|
|
1134
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(gt||(gt={}));var vt,_t=/** @class */function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.code=i,r.originalMessage=n,r}return re(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wt=/** @class */function(e){function t(t,i,n,r){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),gt.INVALID_VALUE,r)||this}return re(t,e),t}(_t),Lt=/** @class */function(e){function t(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),gt.INVALID_VALUE,n)||this}return re(t,e),t}(_t),Et=/** @class */function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),gt.MISSING_VALUE,i)||this}return re(t,e),t}(_t);function Tt(e){return"function"==typeof e}
|
|
1135
1135
|
// TODO(skeleton): add skeleton support
|
|
1136
|
-
function St(e,t,i,n,r,
|
|
1136
|
+
function St(e,t,i,n,r,a,
|
|
1137
1137
|
// For debugging
|
|
1138
|
-
|
|
1138
|
+
s){
|
|
1139
1139
|
// Hot path for straight simple msg translations
|
|
1140
1140
|
if(1===e.length&&ce(e[0]))return[{type:vt.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
1141
1141
|
// Exit early for string parts.
|
|
1142
1142
|
if(ce(c))o.push({type:vt.literal,value:c.value});else
|
|
1143
1143
|
// TODO: should this part be literal type?
|
|
1144
1144
|
// Replace `#` in plural rules with the actual numeric value.
|
|
1145
|
-
if(ye(c))"number"==typeof
|
|
1145
|
+
if(ye(c))"number"==typeof a&&o.push({type:vt.literal,value:i.getNumberFormat(t).format(a)});else{var h=c.value;
|
|
1146
1146
|
// Enforce that all required values are provided by the caller.
|
|
1147
|
-
if(!r||!(h in r))throw new Et(h,
|
|
1147
|
+
if(!r||!(h in r))throw new Et(h,s);var d=r[h];if(he(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),o.push({type:"string"==typeof d?vt.literal:vt.object,value:d});else
|
|
1148
1148
|
// Recursively format plural and select parts' option — which can be a
|
|
1149
1149
|
// nested pattern structure. The choosing of the option to use is
|
|
1150
1150
|
// abstracted-by and delegated-to the part helper object.
|
|
1151
|
-
if(me(c)){var m="string"==typeof c.style?n.date[c.style]:
|
|
1151
|
+
if(me(c)){var m="string"==typeof c.style?n.date[c.style]:_e(c.style)?c.style.parsedOptions:void 0;o.push({type:vt.literal,value:i.getDateTimeFormat(t,m).format(d)})}else if(fe(c)){m="string"==typeof c.style?n.time[c.style]:_e(c.style)?c.style.parsedOptions:n.time.medium;o.push({type:vt.literal,value:i.getDateTimeFormat(t,m).format(d)})}else if(de(c)){(m="string"==typeof c.style?n.number[c.style]:ve(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(d*=m.scale||1),o.push({type:vt.literal,value:i.getNumberFormat(t,m).format(d)})}else{if(be(c)){var f=c.children,p=c.value,g=r[p];if(!Tt(g))throw new Lt(p,"function",s);var y=g(St(f,t,i,n,r,a).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),o.push.apply(o,y.map((function(e){return{type:"string"==typeof e?vt.literal:vt.object,value:e}})))}if(pe(c)){if(!(b=c.options[d]||c.options.other))throw new wt(c.value,d,Object.keys(c.options),s);o.push.apply(o,St(b.value,t,i,n,r))}else if(ge(c)){var b;if(!(b=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new _t('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gt.MISSING_INTL_API,s);var v=i.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new wt(c.value,d,Object.keys(c.options),s);o.push.apply(o,St(b.value,t,i,n,r,d-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var i=e[e.length-1];return i&&i.type===vt.literal&&t.type===vt.literal?i.value+=t.value:e.push(t),e}),[])}(o)}
|
|
1152
1152
|
/*
|
|
1153
1153
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
1154
1154
|
Copyrights licensed under the New BSD License.
|
|
1155
1155
|
See the accompanying LICENSE file for terms.
|
|
1156
1156
|
*/
|
|
1157
1157
|
// -- MessageFormat --------------------------------------------------------
|
|
1158
|
-
function
|
|
1158
|
+
function kt(e,t){return t?Object.keys(e).reduce((function(i,n){var r,a;return i[n]=(r=e[n],(a=t[n])?le(le(le({},r||{}),a||{}),Object.keys(r).reduce((function(e,t){return e[t]=le(le({},r[t]),a[t]||{}),e}),{})):r),i}),le({},e)):e}function Mt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(vt||(vt={}));var Dt=/** @class */function(){function e(t,i,n,r){var a,s=this;if(void 0===i&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
1159
1159
|
// Hot path for straight simple msg translations
|
|
1160
|
-
if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===vt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return St(
|
|
1160
|
+
if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===vt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return St(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},
|
|
1161
1161
|
// Defined first because it's used to build the format pattern.
|
|
1162
1162
|
this.locales=i,this.resolvedLocale=e.resolveLocale(i),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
1163
1163
|
// Parse string messages into an AST.
|
|
1164
1164
|
this.ast=e.__parse(t,{ignoreTag:null==r?void 0:r.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.");
|
|
1165
1165
|
// Creates a new object with the specified `formats` merged with the default
|
|
1166
1166
|
// formats.
|
|
1167
|
-
this.formats=
|
|
1167
|
+
this.formats=kt(e.formats,n),this.formatters=r&&r.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ut((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,ue([void 0],t,!1)))}),{cache:Mt(a.number),strategy:bt.variadic}),getDateTimeFormat:ut((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,ue([void 0],t,!1)))}),{cache:Mt(a.dateTime),strategy:bt.variadic}),getPluralRules:ut((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,ue([void 0],t,!1)))}),{cache:Mt(a.pluralRules),strategy:bt.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=lt,
|
|
1168
1168
|
// Default format options used as the prototype of the `formats` provided to the
|
|
1169
1169
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
1170
1170
|
// and Intl.DateTimeFormat instances.
|
|
1171
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const
|
|
1171
|
+
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Pt={},At=(e,t,i)=>i?(t in Pt||(Pt[t]={}),e in Pt[t]||(Pt[t][e]=i),i):i,Ht=(e,t)=>{if(null==t)return;if(t in Pt&&e in Pt[t])return Pt[t][e];const i=ii(t);for(let n=0;n<i.length;n++){const r=xt(i[n],e);if(r)return At(e,t,r)}};let Ct;const Ot=W({});function Nt(e){return e in Ct}function xt(e,t){if(!Nt(e))return null;const i=function(e){return Ct[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const i=t.split(".");let n=e;for(let e=0;e<i.length;e++)if("object"==typeof n){if(e>0){const t=i.slice(e,i.length).join(".");if(t in n){n=n[t];break}}n=n[i[e]]}else n=void 0;return n}(i,t)}function Rt(e,...t){delete Pt[e],Ot.update((i=>(i[e]=ie.all([i[e]||{},...t]),i)))}V([Ot],(([e])=>Object.keys(e))),Ot.subscribe((e=>Ct=e));const Bt={};function Ut(e){return Bt[e]}function Yt(e){return null!=e&&ii(e).some((e=>{var t;return null==(t=Ut(e))?void 0:t.size}))}function It(e,t){const i=Promise.all(t.map((t=>(function(e,t){Bt[e].delete(t),0===Bt[e].size&&delete Bt[e]}(e,t),t().then((e=>e.default||e))))));return i.then((t=>Rt(e,...t)))}const jt={};function Gt(e){if(!Yt(e))return e in jt?jt[e]:Promise.resolve();const t=function(e){return ii(e).map((e=>{const t=Ut(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return jt[e]=Promise.all(t.map((([e,t])=>It(e,t)))).then((()=>{if(Yt(e))return Gt(e);delete jt[e]})),jt[e]}const Ft={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $t(){return Ft}const zt=W(!1);var Wt=Object.defineProperty,Vt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Jt=(e,t,i)=>t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Qt;const ei=W(null);function ti(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function ii(e,t=$t().fallbackLocale){const i=ti(e);return t?[...new Set([...i,...ti(t)])]:i}function ni(){return null!=Qt?Qt:void 0}ei.subscribe((e=>{Qt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ri=(ai=((e,t)=>{for(var i in t||(t={}))Kt.call(t,i)&&Jt(e,i,t[i]);if(Xt)for(var i of Xt(t))qt.call(t,i)&&Jt(e,i,t[i]);return e})({},ei),Vt(ai,Zt({set:e=>{if(e&&function(e){if(null==e)return;const t=ii(e);for(let e=0;e<t.length;e++){const i=t[e];if(Nt(i))return i}}(e)&&Yt(e)){const{loadingDelay:t}=$t();let i;return"undefined"!=typeof window&&null!=ni()&&t?i=window.setTimeout((()=>zt.set(!0)),t):zt.set(!0),Gt(e).then((()=>{ei.set(e)})).finally((()=>{clearTimeout(i),zt.set(!1)}))}return ei.set(e)}})));var ai;const si=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var oi=Object.defineProperty,li=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,hi=(e,t,i)=>t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,di=(e,t)=>{for(var i in t||(t={}))ui.call(t,i)&&hi(e,i,t[i]);if(li)for(var i of li(t))ci.call(t,i)&&hi(e,i,t[i]);return e},mi=(e,t)=>{var i={};for(var n in e)ui.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&li)for(var n of li(e))t.indexOf(n)<0&&ci.call(e,n)&&(i[n]=e[n]);return i};const fi=(e,t)=>{const{formats:i}=$t();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pi=si((e=>{var t=e,{locale:i,format:n}=t,r=mi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=fi("number",n)),new Intl.NumberFormat(i,r)})),gi=si((e=>{var t=e,{locale:i,format:n}=t,r=mi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=fi("date",n):0===Object.keys(r).length&&(r=fi("date","short")),new Intl.DateTimeFormat(i,r)})),yi=si((e=>{var t=e,{locale:i,format:n}=t,r=mi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=fi("time",n):0===Object.keys(r).length&&(r=fi("time","short")),new Intl.DateTimeFormat(i,r)})),bi=si((
|
|
1172
1172
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1173
|
-
(e,t=ni())=>new kt(e,t,Wt().formats,{ignoreTag:Wt().ignoreTag}))),vi=(e,t={})=>{var i,n,r,s;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:o,locale:l=ni(),default:u}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Pt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(s=null!=(r=null==(n=(i=Wt()).handleMissingMessage)?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))?r:u)?s:e;if(!o)return c;let h=c;try{h=_i(c,l).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},bi=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return yi(di({locale:i},n))})(t).format(e),wi=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return gi(di({locale:i},n))})(t).format(e),Li=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return pi(di({locale:i},n))})(t).format(e),Ei=(e,t=ni())=>Pt(e,t),Ti=z([ri,Ct],(()=>vi));function Si(e,t){Rt(e,t)}z([ri],(()=>bi)),z([ri],(()=>wi)),z([ri],(()=>Li)),z([ri,Ct],(()=>Ei));const Mi={en:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},"zh-hk":{noLimitToDisplay:"使用者尚未設定儲值限額...",depositLimitHeader:"存款限額",spentAmount:"花費金額",remainingAmount:"剩餘數量",limitPeriod:"限制期限",displayedProduct:"產品",futureLimit:"未來限制",additionalLink1:"最後存款交易詳情",additionalLink2:"定期存款",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},de:{noLimitToDisplay:"Der Benutzer hat kein Einzahlungslimit festgelegt...",depositLimitHeader:"Einzahlungslimit",spentAmount:"Ausgegebener Betrag",remainingAmount:"Restbetrag",limitPeriod:"Begrenzungszeitraum",displayedProduct:"Produkt",futureLimit:"Zukünftige Grenze",additionalLink1:"Details zur letzten Einzahlungstransaktion",additionalLink2:"Einzahlung im Zeitraum",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},it:{noLimitToDisplay:"L'utente non ha impostato un limite di deposito...",depositLimitHeader:"Limite di deposito",spentAmount:"Importo speso",remainingAmount:"Importo residuo",limitPeriod:"Periodo limite",displayedProduct:"Prodotto",futureLimit:"Limite futuro",additionalLink1:"Dettagli della transazione dell'ultimo deposito",additionalLink2:"Deposito nel periodo",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},fr:{noLimitToDisplay:"L'utilisateur n'a pas fixé de limite de dépôt...",depositLimitHeader:"Limite de dépôt",spentAmount:"Montant dépensé",remainingAmount:"Montant restant",limitPeriod:"Délai limite",displayedProduct:"Produit",futureLimit:"Limite future",additionalLink1:"Détails de la transaction du dernier dépôt",additionalLink2:"Dépôt en période",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},es:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},el:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},tr:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},ru:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},ro:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},hr:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},hu:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},pl:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},pt:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},sl:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."},sr:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Deposit in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Change limit",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance."}};var Di="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='12' width='6' viewBox='0 0 256 512'%3e%3c!--!Font Awesome Free 6.5.1 by %40fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons%2c Inc.--%3e%3cpath fill='%2318a0fb' d='M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z'/%3e%3c/svg%3e",ki="data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Uploaded to: SVG Repo%2c www.svgrepo.com%2c Generator: SVG Repo Mixer Tools --%3e%3csvg fill='%23a9b6ce' width='800px' height='800px' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11%2c9h4a1%2c1%2c0%2c0%2c0%2c0-2H13V6a1%2c1%2c0%2c0%2c0-2%2c0V7a3%2c3%2c0%2c0%2c0%2c0%2c6h2a1%2c1%2c0%2c0%2c1%2c0%2c2H9a1%2c1%2c0%2c0%2c0%2c0%2c2h2v1a1%2c1%2c0%2c0%2c0%2c2%2c0V17a3%2c3%2c0%2c0%2c0%2c0-6H11a1%2c1%2c0%2c0%2c1%2c0-2Zm1-8A11%2c11%2c0%2c1%2c0%2c23%2c12%2c11%2c11%2c0%2c0%2c0%2c12%2c1Zm0%2c20a9%2c9%2c0%2c1%2c1%2c9-9A9%2c9%2c0%2c0%2c1%2c12%2c21Z'/%3e%3c/svg%3e",Hi="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 386 193' fill='none'%3e %3cpath d='M4 193a189 189 0 0 1 379 0' stroke='url(%23a)' stroke-width='6' stroke-dasharray='2 2'/%3e %3cpath d='M49 193a144 144 0 1 1 288 0' stroke='%23C4C4C4' stroke-width='30' stroke-dasharray='2 2'/%3e %3cdefs%3e%3clinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3e%3cstop offset='0%25'/%3e%3cstop offset='100%25' stop-opacity='.2'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
1173
|
+
(e,t=ni())=>new Dt(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),vi=(e,t={})=>{var i,n,r,a;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:o,locale:l=ni(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ht(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(a=null!=(r=null==(n=(i=$t()).handleMissingMessage)?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))?r:u)?a:e;if(!o)return c;let h=c;try{h=bi(c,l).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},_i=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return yi(di({locale:i},n))})(t).format(e),wi=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return gi(di({locale:i},n))})(t).format(e),Li=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return pi(di({locale:i},n))})(t).format(e),Ei=(e,t=ni())=>Ht(e,t),Ti=V([ri,Ot],(()=>vi));function Si(e,t){Rt(e,t)}V([ri],(()=>_i)),V([ri],(()=>wi)),V([ri],(()=>Li)),V([ri,Ot],(()=>Ei));const ki={en:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Transactions in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Period",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance.",invalidUrl:"Failed to construct 'URL': Invalid URL",startLabel:"Start",resetLabel:"Reset",infoLabel:"Info",walletLabel:"Wallet",walletsLabel:"Wallets"},"zh-hk":{noLimitToDisplay:"使用者尚未設定限額...",depositLimitHeader:"存款限額",lossLimitHeader:"損失限額",wageringLimitHeader:"押注限額",spentAmount:"花費金額",remainingAmount:"剩餘金額",limitPeriod:"限制期限",displayedProduct:"產品",futureLimit:"未來限額",additionalLink1:"最後存款交易詳情",additionalLink2:"期間交易",limitRemoved:"此限額已移除,有效期至",limitUpdated:"此限額將自以下日期開始生效",changeLimitLabel:"期限",futureAmount:"未來金額",limitTypeLabel:"限額類型",fetchLimitDefError:"無法獲取限額定義。",fetchLimitBalanceError:"無法獲取限額餘額。",invalidUrl:"無法構建 'URL':URL 無效",startLabel:"開始",resetLabel:"重設",infoLabel:"信息",walletLabel:"錢包",walletsLabel:"錢包"},de:{noLimitToDisplay:"Der Benutzer hat kein Limit festgelegt...",depositLimitHeader:"Einzahlungslimit",lossLimitHeader:"Verlustgrenze",wageringLimitHeader:"Wetteinsatzgrenze",spentAmount:"Ausgegebener Betrag",remainingAmount:"Verbleibender Betrag",limitPeriod:"Begrenzungszeitraum",displayedProduct:"Produkt",futureLimit:"Zukünftiges Limit",additionalLink1:"Details zur letzten Einzahlungstransaktion",additionalLink2:"Transaktionen im Zeitraum",limitRemoved:"Dieses Limit wurde entfernt und ist gültig bis",limitUpdated:"Dieses Limit wird ab dem folgenden Datum angewendet",changeLimitLabel:"Zeitraum",futureAmount:"Zukünftiger Betrag",limitTypeLabel:"Limit Typ",fetchLimitDefError:"Fehler beim Abrufen von Limitdefinitionen.",fetchLimitBalanceError:"Fehler beim Abrufen des Limitbetrags.",invalidUrl:"Fehler beim Erstellen der URL: Ungültige URL",startLabel:"Start",resetLabel:"Zurücksetzen",infoLabel:"Info",walletLabel:"Brieftasche",walletsLabel:"Brieftaschen"},it:{noLimitToDisplay:"L'utente non ha impostato un limite...",depositLimitHeader:"Limite di deposito",lossLimitHeader:"Limite di perdita",wageringLimitHeader:"Limite di scommessa",spentAmount:"Importo speso",remainingAmount:"Importo residuo",limitPeriod:"Periodo limite",displayedProduct:"Prodotto",futureLimit:"Limite futuro",additionalLink1:"Dettagli della transazione dell'ultimo deposito",additionalLink2:"Deposito nel periodo",limitRemoved:"Questo limite è stato rimosso ed è valido fino a",limitUpdated:"Questo limite sarà applicato a partire da",changeLimitLabel:"Cambia limite",futureAmount:"Importo futuro",limitTypeLabel:"Tipo di limite",fetchLimitDefError:"Impossibile recuperare le definizioni di limite.",fetchLimitBalanceError:"Impossibile recuperare il saldo limite.",invalidUrl:"Impossibile costruire l'URL: URL non valido",startLabel:"Inizio",resetLabel:"Ripristina",infoLabel:"Info",walletLabel:"Portafoglio",walletsLabel:"Portafogli"},fr:{noLimitToDisplay:"L'utilisateur n'a pas fixé de limite...",depositLimitHeader:"Limite de dépôt",lossLimitHeader:"Limite de perte",wageringLimitHeader:"Limite de mise",spentAmount:"Montant dépensé",remainingAmount:"Montant restant",limitPeriod:"Délai limite",displayedProduct:"Produit",futureLimit:"Limite future",additionalLink1:"Détails de la transaction du dernier dépôt",additionalLink2:"Dépôt en période",limitRemoved:"Cette limite a été supprimée et est valide jusqu'à",limitUpdated:"Cette limite sera appliquée à partir de",changeLimitLabel:"Changer de limite",futureAmount:"Montant futur",limitTypeLabel:"Type de limite",fetchLimitDefError:"Échec du téléchargement des définitions de limite.",fetchLimitBalanceError:"Échec du téléchargement du solde limite.",invalidUrl:"Échec de la construction de 'URL' : URL non valide",startLabel:"Démarrer",resetLabel:"Réinitialiser",infoLabel:"Info",walletLabel:"Portefeuille",walletsLabel:"Portefeuilles"},es:{noLimitToDisplay:"El usuario no ha establecido un límite...",depositLimitHeader:"Límite de depósito",lossLimitHeader:"Límite de pérdida",wageringLimitHeader:"Límite de apuesta",spentAmount:"Monto gastado",remainingAmount:"Monto restante",limitPeriod:"Período de límite",displayedProduct:"Producto",futureLimit:"Límite futuro",additionalLink1:"Detalles de la última transacción de depósito",additionalLink2:"Depósito en el período",limitRemoved:"Este límite ha sido eliminado y es válido hasta",limitUpdated:"Este límite se aplicará a partir de",changeLimitLabel:"Cambiar límite",futureAmount:"Monto futuro",limitTypeLabel:"Tipo de límite",fetchLimitDefError:"Error al obtener definiciones de límite.",fetchLimitBalanceError:"Error al obtener el saldo del límite.",invalidUrl:"Error al construir 'URL': URL inválida",startLabel:"Comienzo",resetLabel:"Reiniciar",infoLabel:"Información",walletLabel:"Cartera",walletsLabel:"Carteras"},el:{noLimitToDisplay:"Ο χρήστης δεν έχει ορίσει όριο...",depositLimitHeader:"Όριο κατάθεσης",lossLimitHeader:"Όριο απώλειας",wageringLimitHeader:"Όριο στοίχημα",spentAmount:"Ποσό που έχει δαπανηθεί",remainingAmount:"Υπόλοιπο ποσό",limitPeriod:"Περίοδος ορίου",displayedProduct:"Προϊόν",futureLimit:"Μελλοντικό όριο",additionalLink1:"Λεπτομέρειες της τελευταίας συναλλαγής κατάθεσης",additionalLink2:"Καταθέσεις κατά την περίοδο",limitRemoved:"Αυτό το όριο έχει καταργηθεί και είναι έγκυρο μέχρι",limitUpdated:"Αυτό το όριο θα εφαρμοστεί από",changeLimitLabel:"Αλλαγή ορίου",futureAmount:"Μελλοντικό ποσό",limitTypeLabel:"Τύπος ορίου",fetchLimitDefError:"Αποτυχία λήψης ορισμών ορίου.",fetchLimitBalanceError:"Αποτυχία λήψης υπολοίπου ορίου.",invalidUrl:"Αποτυχία κατασκευής 'URL': Μη έγκυρη διεύθυνση URL",startLabel:"Έναρξη",resetLabel:"Επαναφορά",infoLabel:"Πληροφορίες",walletLabel:"Πορτοφόλι",walletsLabel:"Πορτοφόλια"},tr:{noLimitToDisplay:"Kullanıcı bir sınırlama belirlemedi...",depositLimitHeader:"Yatırım limiti",lossLimitHeader:"Kayıp limiti",wageringLimitHeader:"Bahis limiti",spentAmount:"Harcamış miktar",remainingAmount:"Kalan miktar",limitPeriod:"Limit süresi",displayedProduct:"Ürün",futureLimit:"Gelecek limit",additionalLink1:"Son yatırım işlemi detayları",additionalLink2:"Dönemdeki işlemler",limitRemoved:"Bu limit kaldırıldı ve geçerli",limitUpdated:"Bu limit aşağıdaki tarihte uygulanacaktır",changeLimitLabel:"Dönem",futureAmount:"Gelecek miktar",limitTypeLabel:"Limit türü",fetchLimitDefError:"Limit tanımları alınamadı.",fetchLimitBalanceError:"Limit bakiyesi alınamadı.",invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",startLabel:"Başlangıç",resetLabel:"Sıfırla",infoLabel:"Bilgi",walletLabel:"Cüzdan",walletsLabel:"Cüzdanlar"},ru:{noLimitToDisplay:"Пользователь не установил лимит...",depositLimitHeader:"Лимит депозита",lossLimitHeader:"Лимит потерь",wageringLimitHeader:"Лимит ставок",spentAmount:"Потраченная сумма",remainingAmount:"Оставшаяся сумма",limitPeriod:"Период лимита",displayedProduct:"Продукт",futureLimit:"Будущий лимит",additionalLink1:"Детали последней транзакции депозита",additionalLink2:"Транзакции за период",limitRemoved:"Этот лимит был удален и действует до",limitUpdated:"Этот лимит будет применен с",changeLimitLabel:"Изменить лимит",futureAmount:"Будущая сумма",limitTypeLabel:"Тип лимита",fetchLimitDefError:"Не удалось получить определения лимита.",fetchLimitBalanceError:"Не удалось получить баланс лимита.",invalidUrl:"Не удалось построить 'URL': Недопустимый URL",startLabel:"Начало",resetLabel:"Сброс",infoLabel:"Информация",walletLabel:"Кошелек",walletsLabel:"Кошельки"},ro:{noLimitToDisplay:"Utilizatorul nu a setat nicio limită...",depositLimitHeader:"Limită de depunere",lossLimitHeader:"Limită de pierdere",wageringLimitHeader:"Limită de pariere",spentAmount:"Suma cheltuită",remainingAmount:"Suma rămasă",limitPeriod:"Perioadă limită",displayedProduct:"Produs",futureLimit:"Limită viitoare",additionalLink1:"Detalii ultima tranzacție de depunere",additionalLink2:"Tranzacții în perioadă",limitRemoved:"Această limită a fost eliminată și este validă până la",limitUpdated:"Această limită va fi aplicată începând cu",changeLimitLabel:"Schimbă limita",futureAmount:"Suma viitoare",limitTypeLabel:"Tipul limitei",fetchLimitDefError:"Eșec la preluarea definițiilor de limită.",fetchLimitBalanceError:"Eșec la preluarea balanței limitelor.",invalidUrl:"Eșec la construirea 'URL-ului': URL invalid",startLabel:"Start",resetLabel:"Resetare",infoLabel:"Info",walletLabel:"Portofel",walletsLabel:"Portofele"},hr:{noLimitToDisplay:"Korisnik nije postavio limit...",depositLimitHeader:"Limit uplate",lossLimitHeader:"Limit gubitka",wageringLimitHeader:"Limit klađenja",spentAmount:"Potrošeni iznos",remainingAmount:"Preostali iznos",limitPeriod:"Period limita",displayedProduct:"Proizvod",futureLimit:"Budući limit",additionalLink1:"Detalji posljednje transakcije uplate",additionalLink2:"Transakcije u periodu",limitRemoved:"Ovaj limit je uklonjen i važi do",limitUpdated:"Ovaj limit će biti primijenjen počevši od",changeLimitLabel:"Promijeni limit",futureAmount:"Budući iznos",limitTypeLabel:"Vrsta limita",fetchLimitDefError:"Nije uspjelo preuzimanje definicija limita.",fetchLimitBalanceError:"Nije uspjelo preuzimanje stanja limita.",invalidUrl:"Nije uspjelo konstruiranje 'URL'-a: Nevaljan URL",startLabel:"Početak",resetLabel:"Resetiraj",infoLabel:"Informacije",walletLabel:"Novčanik",walletsLabel:"Novčanici"},hu:{noLimitToDisplay:"A felhasználó nem állított be korlátot...",depositLimitHeader:"Befizetési limit",lossLimitHeader:"Veszteségkorlát",wageringLimitHeader:"Tétlimit",spentAmount:"Elköltött összeg",remainingAmount:"Fennmaradó összeg",limitPeriod:"Korlát időtartama",displayedProduct:"Termék",futureLimit:"Jövőbeli limit",additionalLink1:"Legutóbbi befizetési tranzakció részletei",additionalLink2:"Tranzakciók időszakban",limitRemoved:"Ez a korlát eltávolításra került és érvényes",limitUpdated:"Ez a korlát alkalmazásra kerül a következőtől",changeLimitLabel:"Korlát módosítása",futureAmount:"Jövőbeli összeg",limitTypeLabel:"Korlát típusa",fetchLimitDefError:"Nem sikerült letölteni a korlát definíciókat.",fetchLimitBalanceError:"Nem sikerült letölteni a korlát egyenlegét.",invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",startLabel:"Indítás",resetLabel:"Visszaállítás",infoLabel:"Információ",walletLabel:"Pénztárca",walletsLabel:"Pénztárcák"},pl:{noLimitToDisplay:"Użytkownik nie ustawił limitu...",depositLimitHeader:"Limit depozytu",lossLimitHeader:"Limit strat",wageringLimitHeader:"Limit zakładów",spentAmount:"Wydana kwota",remainingAmount:"Pozostała kwota",limitPeriod:"Okres limitu",displayedProduct:"Produkt",futureLimit:"Przyszły limit",additionalLink1:"Szczegóły ostatniej transakcji depozytowej",additionalLink2:"Transakcje w okresie",limitRemoved:"Ten limit został usunięty i jest ważny do",limitUpdated:"Ten limit będzie obowiązywać począwszy od",changeLimitLabel:"Zmień limit",futureAmount:"Przyszła kwota",limitTypeLabel:"Typ limitu",fetchLimitDefError:"Nie udało się pobrać definicji limitu.",fetchLimitBalanceError:"Nie udało się pobrać salda limitu.",invalidUrl:"Nie udało się skonstruować 'URL': Nieprawidłowy URL",startLabel:"Start",resetLabel:"Resetuj",infoLabel:"Informacje",walletLabel:"Portfel",walletsLabel:"Portfele"},pt:{noLimitToDisplay:"O usuário não definiu um limite...",depositLimitHeader:"Limite de depósito",lossLimitHeader:"Limite de perdas",wageringLimitHeader:"Limite de apostas",spentAmount:"Valor gasto",remainingAmount:"Valor restante",limitPeriod:"Período do limite",displayedProduct:"Produto",futureLimit:"Limite futuro",additionalLink1:"Detalhes da última transação de depósito",additionalLink2:"Transações no período",limitRemoved:"Este limite foi removido e é válido até",limitUpdated:"Este limite será aplicado a partir de",changeLimitLabel:"Alterar limite",futureAmount:"Valor futuro",limitTypeLabel:"Tipo de limite",fetchLimitDefError:"Falha ao buscar definições de limite.",fetchLimitBalanceError:"Falha ao buscar saldo do limite.",invalidUrl:"Falha ao construir 'URL': URL inválida",startLabel:"Iniciar",resetLabel:"Redefinir",infoLabel:"Informação",walletLabel:"Carteira",walletsLabel:"Carteiras"},sl:{noLimitToDisplay:"Uporabnik ni določil omejitve...",depositLimitHeader:"Omejitev pologa",lossLimitHeader:"Omejitev izgub",wageringLimitHeader:"Omejitev stav",spentAmount:"Porabljen znesek",remainingAmount:"Preostali znesek",limitPeriod:"Obdobje omejitve",displayedProduct:"Izdelek",futureLimit:"Prihodnja omejitev",additionalLink1:"Podrobnosti zadnje transakcije pologa",additionalLink2:"Transakcije v obdobju",limitRemoved:"Ta omejitev je bila odstranjena in velja do",limitUpdated:"Ta omejitev bo veljavna od",changeLimitLabel:"Spremeni omejitev",futureAmount:"Prihodnji znesek",limitTypeLabel:"Vrsta omejitve",fetchLimitDefError:"Pridobivanje definicij omejitev ni uspelo.",fetchLimitBalanceError:"Pridobivanje stanja omejitev ni uspelo.",invalidUrl:"Izgradnja 'URL'-ja ni uspela: Neveljaven URL",startLabel:"Začni",resetLabel:"Ponastavi",infoLabel:"Informacije",walletLabel:"Denarnica",walletsLabel:"Denarnice"},sr:{noLimitToDisplay:"Korisnik nije postavio limit...",depositLimitHeader:"Limit depozita",lossLimitHeader:"Limit gubitka",wageringLimitHeader:"Limit klađenja",spentAmount:"Potrošeni iznos",remainingAmount:"Preostali iznos",limitPeriod:"Period limita",displayedProduct:"Proizvod",futureLimit:"Budući limit",additionalLink1:"Detalji poslednje transakcije depozita",additionalLink2:"Transakcije u periodu",limitRemoved:"Ovaj limit je uklonjen i važi do",limitUpdated:"Ovaj limit će se primeniti počevši od",changeLimitLabel:"Promeni limit",futureAmount:"Budući iznos",limitTypeLabel:"Vrsta limita",fetchLimitDefError:"Neuspeh u dobavljanju definicija limita.",fetchLimitBalanceError:"Neuspeh u dobavljanju stanja limita.",invalidUrl:"Neuspeh u konstrukciji 'URL'-a: Neispravan URL",startLabel:"Početak",resetLabel:"Resetuj",infoLabel:"Informacije",walletLabel:"Novčanik",walletsLabel:"Novčanici"}};var Mi="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 386 193' fill='none'%3e %3cpath d='M4 193a189 189 0 0 1 379 0' stroke='url(%23a)' stroke-width='6' stroke-dasharray='2 2'/%3e %3cpath d='M49 193a144 144 0 1 1 288 0' stroke='%23C4C4C4' stroke-width='30' stroke-dasharray='2 2'/%3e %3cdefs%3e%3clinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3e%3cstop offset='0%25'/%3e%3cstop offset='100%25' stop-opacity='.2'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
1174
|
+
/* src/images/caret-select.svg.svelte generated by Svelte v3.59.2 */function Di(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,b(n,"d","M13 14L0.250001 27.8564L0.250002 0.143593L13 14Z"),b(i,"width","13"),b(i,"height","28"),b(i,"viewBox","0 0 13 28"),b(i,"fill","currentColor"),b(i,"xmlns","http://www.w3.org/2000/svg")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&h(i)}}}
|
|
1175
|
+
/* src/images/fa-caret-right.svg.svelte generated by Svelte v3.59.2 */
|
|
1176
|
+
function Pi(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,b(n,"fill","currentColor"),b(n,"d","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"),b(i,"xmlns","http://www.w3.org/2000/svg"),b(i,"height","12"),b(i,"width","6"),b(i,"viewBox","0 0 256 512")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&h(i)}}}customElements.define("caret-select",class extends G{constructor(e){super(),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},null,Di,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1177
|
+
/* src/images/curency.svg.svelte generated by Svelte v3.59.2 */
|
|
1178
|
+
function Ai(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,b(n,"d","M12.375 25.3977C10.7746 25.3977 9.27367 25.09 7.87216 24.4744C6.47064 23.8494 5.23485 22.9782 4.16477 21.8608C3.10417 20.7434 2.27557 19.4413 1.67898 17.9545C1.08239 16.4678 0.784091 14.858 0.784091 13.125C0.784091 11.392 1.08239 9.78693 1.67898 8.30966C2.27557 6.82292 3.10417 5.52557 4.16477 4.41761C5.23485 3.30966 6.47064 2.44792 7.87216 1.83239C9.27367 1.21686 10.7746 0.90909 12.375 0.90909C13.9848 0.90909 15.4905 1.21686 16.892 1.83239C18.303 2.44792 19.5388 3.30966 20.5994 4.41761C21.6695 5.52557 22.5076 6.82292 23.1136 8.30966C23.7197 9.78693 24.0227 11.392 24.0227 13.125C24.0227 14.858 23.7197 16.4678 23.1136 17.9545C22.5076 19.4413 21.6695 20.7434 20.5994 21.8608C19.5388 22.9782 18.303 23.8494 16.892 24.4744C15.4905 25.09 13.9848 25.3977 12.375 25.3977ZM12.375 22.2727C13.5398 22.2727 14.6288 22.036 15.642 21.5625C16.6648 21.0795 17.5597 20.4167 18.3267 19.5739C19.0938 18.7311 19.6951 17.7604 20.1307 16.6619C20.5663 15.554 20.7841 14.375 20.7841 13.125C20.7841 11.4394 20.4053 9.9053 19.6477 8.52273C18.8996 7.14015 17.8864 6.03693 16.608 5.21307C15.339 4.3892 13.928 3.97727 12.375 3.97727C10.822 3.97727 9.40152 4.3892 8.11364 5.21307C6.83523 6.03693 5.8125 7.14015 5.04545 8.52273C4.28788 9.9053 3.90909 11.4394 3.90909 13.125C3.90909 14.7917 4.28788 16.321 5.04545 17.7131C5.8125 19.0956 6.83523 20.2036 8.11364 21.0369C9.40152 21.8608 10.822 22.2727 12.375 22.2727ZM20.6136 6.93182L18.3409 4.54545L22.2614 0.511363L24.5909 2.89773L20.6136 6.93182ZM22.2614 25.2841L18.3409 21.25L20.6136 18.9205L24.5909 22.8977L22.2614 25.2841ZM2.60227 25.2841L0.329545 22.8977L4.25 18.9205L6.57955 21.25L2.60227 25.2841ZM4.25 6.93182L0.329545 2.89773L2.60227 0.511363L6.57955 4.54545L4.25 6.93182Z"),b(i,"width","18"),b(i,"viewBox","0 0 25 26"),b(i,"fill","currentColor"),b(i,"xmlns","http://www.w3.org/2000/svg")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&h(i)}}}customElements.define("caret-right",class extends G{constructor(e){super(),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},null,Pi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1174
1179
|
/* ../general-animation-loading/src/GeneralAnimationLoading.svelte generated by Svelte v3.59.2 */
|
|
1175
|
-
function
|
|
1176
|
-
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&
|
|
1177
|
-
/*div5_binding*/,t[3](null)}}}function
|
|
1180
|
+
function Hi(t){let i;return{c(){i=m("div"),i.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>',this.c=e},m(e,n){c(e,i,n),
|
|
1181
|
+
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&h(i)
|
|
1182
|
+
/*div5_binding*/,t[3](null)}}}function Ci(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:a=""}=t;return e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,a=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/3&e.$$.dirty&&r&&n&&(()=>{let e=document.createElement("style");e.innerHTML=r,n.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/5&e.$$.dirty&&a&&n&&(()=>{let e=new URL(a),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[n,r,a,function(e){D[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}customElements.define("currency-icon",class extends G{constructor(e){super(),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},null,Ai,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1178
1183
|
/* src/PlayerRglimits.svelte generated by Svelte v3.59.2 */
|
|
1179
|
-
function Oi(e,t,i){const n=e.slice();return n[
|
|
1180
|
-
// (
|
|
1181
|
-
function
|
|
1182
|
-
return e[7]?Yi
|
|
1183
|
-
return e[8]?
|
|
1184
|
-
// (
|
|
1185
|
-
function
|
|
1186
|
-
// (
|
|
1187
|
-
function
|
|
1188
|
-
// (
|
|
1189
|
-
function
|
|
1190
|
-
// (
|
|
1191
|
-
function
|
|
1192
|
-
// (
|
|
1193
|
-
function
|
|
1194
|
-
//
|
|
1195
|
-
|
|
1196
|
-
// (
|
|
1197
|
-
function
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
// (
|
|
1206
|
-
function
|
|
1207
|
-
// (
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1184
|
+
function Oi(e,t,i){const n=e.slice();return n[58]=t[i],n}function Ni(e,t,i){const n=e.slice();return n[58]=t[i],n}function xi(e,t,i){const n=e.slice();return n[63]=t[i],n}
|
|
1185
|
+
// (470:4) {:else}
|
|
1186
|
+
function Ri(e){let t,i,n,r,a,s,o,l,d,f,y=/*getWidgetTitle*/e[23](/*selectedLimitType*/e[15])+"";function v(e,t){/*isLoading*/
|
|
1187
|
+
return e[7]?Ii:Yi}let w=v(e),L=w(e),E=/*limitPeriodList*/e[12].length>0&&Ki(e),T=/*limitTypeList*/e[13].length>0&&Ji(e);function S(e,t){/*isGaugeLoading*/
|
|
1188
|
+
return e[8]?tn:en}let k=S(e),M=k(e);return{c(){t=m("div"),i=m("h2"),n=m("currency-icon"),r=p(y),a=g(),L.c(),s=g(),o=m("div"),l=m("div"),E&&E.c(),d=g(),T&&T.c(),f=g(),M.c(),b(i,"class","LimitTypeHeader"),b(t,"class","ContentLeft"),b(l,"class","WidgetControls"),b(o,"class","ContentRight")},m(e,h){c(e,t,h),u(t,i),u(i,n),u(i,r),u(t,a),L.m(t,null),c(e,s,h),c(e,o,h),u(o,l),E&&E.m(l,null),u(l,d),T&&T.m(l,null),u(o,f),M.m(o,null)},p(e,i){/*selectedLimitType*/32768&i[0]&&y!==(y=/*getWidgetTitle*/e[23](/*selectedLimitType*/e[15])+"")&&_(r,y),w===(w=v(e))&&L?L.p(e,i):(L.d(1),L=w(e),L&&(L.c(),L.m(t,null))),/*limitPeriodList*/e[12].length>0?E?E.p(e,i):(E=Ki(e),E.c(),E.m(l,d)):E&&(E.d(1),E=null),/*limitTypeList*/e[13].length>0?T?T.p(e,i):(T=Ji(e),T.c(),T.m(l,null)):T&&(T.d(1),T=null),k===(k=S(e))&&M?M.p(e,i):(M.d(1),M=k(e),M&&(M.c(),M.m(o,null)))},d(e){e&&h(t),L.d(),e&&h(s),e&&h(o),E&&E.d(),T&&T.d(),M.d()}}}
|
|
1189
|
+
// (466:27)
|
|
1190
|
+
function Bi(e){let t,i,n;return{c(){t=m("div"),i=m("strong"),n=p(/*errorMessage*/e[19]),b(i,"class","ErrorMessage"),b(t,"class","ContainerCenter")},m(e,r){c(e,t,r),u(t,i),u(i,n)},p(e,t){/*errorMessage*/524288&t[0]&&_(n,/*errorMessage*/e[19])},d(e){e&&h(t)}}}
|
|
1191
|
+
// (462:4) {#if noLimitToDisplay}
|
|
1192
|
+
function Ui(e){let t,i,n,r=/*$_*/e[20]("noLimitToDisplay")+"";return{c(){t=m("div"),i=m("p"),n=p(r),b(t,"class","ContainerCenter")},m(e,r){c(e,t,r),u(t,i),u(i,n)},p(e,t){/*$_*/1048576&t[0]&&r!==(r=/*$_*/e[20]("noLimitToDisplay")+"")&&_(n,r)},d(e){e&&h(t)}}}
|
|
1193
|
+
// (475:8) {:else}
|
|
1194
|
+
function Yi(e){let t,i,n,r,a,s,o,l,f,y,v,w,L,E,T,S,k,M,D,P,A,H,C,O,N,x,R,B,U,Y,I,j,G,F,$,z,W,V,Z,X,K,q,J,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,ce,he,de,me,fe,pe,ge,ye,be,ve,_e,we,Le,Ee,Te=/*selectedProduct*/"All"===e[16]?`${/*selectedProduct*/e[16]} ${/*$_*/e[20]("walletsLabel")}`:`${/*selectedProduct*/e[16]} ${/*$_*/e[20]("walletLabel")}`,Se=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].totalAmount)+"",ke=/*displayedLimit*/e[11].limitCurrency+"",Me=/*$_*/e[20]("spentAmount")+"",De=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].spentAmount)+"",Pe=/*displayedLimit*/e[11].limitCurrency+"",Ae=/*$_*/e[20]("remainingAmount")+"",He=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].remainingAmount)+"",Ce=/*displayedLimit*/e[11].limitCurrency+"",Oe=/*$_*/e[20]("startLabel")+"",Ne=/*dateToReadableString*/e[22](/*displayedLimit*/e[11].from)+"",xe=/*$_*/e[20]("resetLabel")+"",Re=/*dateToReadableString*/e[22](/*displayedLimit*/e[11].to)+"",Be=/*productList*/e[17].length>1&&ji(e),Ue=/*productList*/e[17],Ye=[];for(let t=0;t<Ue.length;t+=1)Ye[t]=Gi(xi(e,Ue,t));let Ie=/*displayedLimit*/!0===e[11].formattedSchedule.isUpdated&&Fi(e),je=/*displayedLimit*/(!0===e[11].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[11].formattedSchedule.isUpdated)&&$i(e),Ge=/*sessiontype*/"admin"===e[0]&&Vi(e);return{c(){t=m("div"),i=m("div"),n=m("span"),r=p(Te),a=g(),s=m("span"),o=p(Se),l=g(),f=m("span"),y=p(ke),w=g(),Be&&Be.c(),L=g(),E=m("div");for(let e=0;e<Ye.length;e+=1)Ye[e].c();S=g(),k=m("div"),M=m("div"),D=m("div"),P=p(Me),A=p(":"),H=g(),C=m("div"),O=m("span"),N=m("caret-right"),x=g(),R=p(De),B=g(),U=p(Pe),Y=g(),I=m("div"),j=m("div"),G=p(Ae),F=p(":"),$=g(),z=m("div"),W=m("span"),V=m("caret-right"),Z=g(),X=p(He),K=g(),q=p(Ce),J=g(),Ie&&Ie.c(),Q=g(),ee=m("div"),te=m("div"),ie=p(Oe),ne=p(":"),re=g(),ae=m("div"),se=m("span"),oe=m("caret-right"),le=g(),ue=p(Ne),ce=g(),he=m("div"),de=m("div"),me=p(xe),fe=p(":"),pe=g(),ge=m("div"),ye=m("span"),be=m("caret-right"),ve=g(),_e=p(Re),we=g(),je&&je.c(),Le=g(),Ge&&Ge.c(),Ee=p(""),b(n,"class","SelectedProduct"),b(f,"class","Currency"),b(s,"class","TotalAmount"),b(s,"title",v=`${/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].totalAmount)} ${/*displayedLimit*/e[11].limitCurrency}`),b(i,"class","DisplayContainer"),b(E,"class",T="ProductsDropdown "+(/*showDropdown*/e[10]?"Show":"")),b(t,"class","ProductSelector"),b(D,"class","Col"),b(C,"class","Col"),b(M,"class","Row"),b(j,"class","Col"),b(z,"class","Col"),b(I,"class","Row"),b(te,"class","Col"),b(ae,"class","Col"),b(ee,"class","Row"),b(de,"class","Col"),b(ge,"class","Col"),b(he,"class","Row"),b(k,"class","DetailsContainer Entries")},m(e,h){c(e,t,h),u(t,i),u(i,n),u(n,r),u(i,a),u(i,s),u(s,o),u(s,l),u(s,f),u(f,y),u(i,w),Be&&Be.m(i,null),u(t,L),u(t,E);for(let e=0;e<Ye.length;e+=1)Ye[e]&&Ye[e].m(E,null);c(e,S,h),c(e,k,h),u(k,M),u(M,D),u(D,P),u(D,A),u(M,H),u(M,C),u(C,O),u(O,N),u(O,x),u(O,R),u(O,B),u(O,U),u(k,Y),u(k,I),u(I,j),u(j,G),u(j,F),u(I,$),u(I,z),u(z,W),u(W,V),u(W,Z),u(W,X),u(W,K),u(W,q),u(k,J),Ie&&Ie.m(k,null),u(k,Q),u(k,ee),u(ee,te),u(te,ie),u(te,ne),u(ee,re),u(ee,ae),u(ae,se),u(se,oe),u(se,le),u(se,ue),u(k,ce),u(k,he),u(he,de),u(de,me),u(de,fe),u(he,pe),u(he,ge),u(ge,ye),u(ye,be),u(ye,ve),u(ye,_e),c(e,we,h),je&&je.m(e,h),c(e,Le,h),Ge&&Ge.m(e,h),c(e,Ee,h)},p(e,t){if(/*selectedProduct, $_*/1114112&t[0]&&Te!==(Te=/*selectedProduct*/"All"===e[16]?`${/*selectedProduct*/e[16]} ${/*$_*/e[20]("walletsLabel")}`:`${/*selectedProduct*/e[16]} ${/*$_*/e[20]("walletLabel")}`)&&_(r,Te),/*displayedLimit*/2048&t[0]&&Se!==(Se=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].totalAmount)+"")&&_(o,Se),/*displayedLimit*/2048&t[0]&&ke!==(ke=/*displayedLimit*/e[11].limitCurrency+"")&&_(y,ke),/*displayedLimit*/2048&t[0]&&v!==(v=`${/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].totalAmount)} ${/*displayedLimit*/e[11].limitCurrency}`)&&b(s,"title",v),/*productList*/e[17].length>1?Be?Be.p(e,t):(Be=ji(e),Be.c(),Be.m(i,null)):Be&&(Be.d(1),Be=null),/*handleProductChange, productList, $_*/34734080&t[0]){let i;for(Ue=/*productList*/e[17],i=0;i<Ue.length;i+=1){const n=xi(e,Ue,i);Ye[i]?Ye[i].p(n,t):(Ye[i]=Gi(n),Ye[i].c(),Ye[i].m(E,null))}for(;i<Ye.length;i+=1)Ye[i].d(1);Ye.length=Ue.length}/*showDropdown*/1024&t[0]&&T!==(T="ProductsDropdown "+(/*showDropdown*/e[10]?"Show":""))&&b(E,"class",T),/*$_*/1048576&t[0]&&Me!==(Me=/*$_*/e[20]("spentAmount")+"")&&_(P,Me),/*displayedLimit*/2048&t[0]&&De!==(De=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].spentAmount)+"")&&_(R,De),/*displayedLimit*/2048&t[0]&&Pe!==(Pe=/*displayedLimit*/e[11].limitCurrency+"")&&_(U,Pe),/*$_*/1048576&t[0]&&Ae!==(Ae=/*$_*/e[20]("remainingAmount")+"")&&_(G,Ae),/*displayedLimit*/2048&t[0]&&He!==(He=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].remainingAmount)+"")&&_(X,He),/*displayedLimit*/2048&t[0]&&Ce!==(Ce=/*displayedLimit*/e[11].limitCurrency+"")&&_(q,Ce),/*displayedLimit*/!0===e[11].formattedSchedule.isUpdated?Ie?Ie.p(e,t):(Ie=Fi(e),Ie.c(),Ie.m(k,Q)):Ie&&(Ie.d(1),Ie=null),/*$_*/1048576&t[0]&&Oe!==(Oe=/*$_*/e[20]("startLabel")+"")&&_(ie,Oe),/*displayedLimit*/2048&t[0]&&Ne!==(Ne=/*dateToReadableString*/e[22](/*displayedLimit*/e[11].from)+"")&&_(ue,Ne),/*$_*/1048576&t[0]&&xe!==(xe=/*$_*/e[20]("resetLabel")+"")&&_(me,xe),/*displayedLimit*/2048&t[0]&&Re!==(Re=/*dateToReadableString*/e[22](/*displayedLimit*/e[11].to)+"")&&_(_e,Re),/*displayedLimit*/!0===e[11].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[11].formattedSchedule.isUpdated?je?je.p(e,t):(je=$i(e),je.c(),je.m(Le.parentNode,Le)):je&&(je.d(1),je=null),/*sessiontype*/"admin"===e[0]?Ge?Ge.p(e,t):(Ge=Vi(e),Ge.c(),Ge.m(Ee.parentNode,Ee)):Ge&&(Ge.d(1),Ge=null)},d(e){e&&h(t),Be&&Be.d(),d(Ye,e),e&&h(S),e&&h(k),Ie&&Ie.d(),e&&h(we),je&&je.d(e),e&&h(Le),Ge&&Ge.d(e),e&&h(Ee)}}}
|
|
1195
|
+
// (473:8) {#if isLoading}
|
|
1196
|
+
function Ii(e){let t;return{c(){t=m("general-animation-loading"),v(t,"clientstyling",/*clientstyling*/e[3]),v(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&v(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&v(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&h(t)}}}
|
|
1197
|
+
// (480:14) {#if productList.length > 1}
|
|
1198
|
+
function ji(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("caret-select"),b(t,"class",n="DropdownToggle "+(/*showDropdown*/e[10]?"Active":""))},m(n,s){var o;c(n,t,s),u(t,i),r||(a=y(t,"click",(o=/*click_handler*/e[37],function(e){
|
|
1199
|
+
// @ts-ignore
|
|
1200
|
+
return e.stopPropagation(),o.call(this,e)})),r=!0)},p(e,i){/*showDropdown*/1024&i[0]&&n!==(n="DropdownToggle "+(/*showDropdown*/e[10]?"Active":""))&&b(t,"class",n)},d(e){e&&h(t),r=!1,a()}}}
|
|
1201
|
+
// (487:14) {#each productList as product}
|
|
1202
|
+
function Gi(e){let t,i,n,r,a,s=/*product*/"All"===e[63]?`${/*product*/e[63]} ${/*$_*/e[20]("walletsLabel")}`:`${/*product*/e[63]} ${/*$_*/e[20]("walletLabel")}`;function o(){/*click_handler_1*/
|
|
1203
|
+
return e[38](/*product*/e[63])}return{c(){t=m("button"),i=p(s),n=g()},m(e,s){c(e,t,s),u(t,i),u(t,n),r||(a=y(t,"click",o),r=!0)},p(t,n){e=t,/*productList, $_*/1179648&n[0]&&s!==(s=/*product*/"All"===e[63]?`${/*product*/e[63]} ${/*$_*/e[20]("walletsLabel")}`:`${/*product*/e[63]} ${/*$_*/e[20]("walletLabel")}`)&&_(i,s)},d(e){e&&h(t),r=!1,a()}}}
|
|
1204
|
+
// (503:12) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1205
|
+
function Fi(e){let t,i,n,r,a,s,o,l,d,f,y,v,w=/*$_*/e[20]("futureAmount")+"",L=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].formattedSchedule.updateAmount)+"",E=/*displayedLimit*/e[11].limitCurrency+"";return{c(){t=m("div"),i=m("div"),n=p(w),r=p(":"),a=g(),s=m("div"),o=m("span"),l=m("caret-right"),d=g(),f=p(L),y=g(),v=p(E),b(i,"class","Col"),b(s,"class","Col"),b(t,"class","Row")},m(e,h){c(e,t,h),u(t,i),u(i,n),u(i,r),u(t,a),u(t,s),u(s,o),u(o,l),u(o,d),u(o,f),u(o,y),u(o,v)},p(e,t){/*$_*/1048576&t[0]&&w!==(w=/*$_*/e[20]("futureAmount")+"")&&_(n,w),/*displayedLimit*/2048&t[0]&&L!==(L=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].formattedSchedule.updateAmount)+"")&&_(f,L),/*displayedLimit*/2048&t[0]&&E!==(E=/*displayedLimit*/e[11].limitCurrency+"")&&_(v,E)},d(e){e&&h(t)}}}
|
|
1206
|
+
// (518:10) {#if displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true }
|
|
1207
|
+
function $i(e){let t,i,n=/*displayedLimit*/!0===e[11].formattedSchedule.isRemoved&&zi(e),r=/*displayedLimit*/!0===e[11].formattedSchedule.isUpdated&&Wi(e);return{c(){t=m("div"),n&&n.c(),i=g(),r&&r.c(),b(t,"class","ExtraInfoContainer")},m(e,a){c(e,t,a),n&&n.m(t,null),u(t,i),r&&r.m(t,null)},p(e,a){/*displayedLimit*/!0===e[11].formattedSchedule.isRemoved?n?n.p(e,a):(n=zi(e),n.c(),n.m(t,i)):n&&(n.d(1),n=null),/*displayedLimit*/!0===e[11].formattedSchedule.isUpdated?r?r.p(e,a):(r=Wi(e),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(e){e&&h(t),n&&n.d(),r&&r.d()}}}
|
|
1208
|
+
// (520:14) {#if displayedLimit.formattedSchedule.isRemoved === true}
|
|
1209
|
+
function zi(e){let t,i,n,r,a=/*$_*/e[20]("limitRemoved")+"",s=/*displayedLimit*/e[11].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(s)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/1048576&t[0]&&a!==(a=/*$_*/e[20]("limitRemoved")+"")&&_(i,a),/*displayedLimit*/2048&t[0]&&s!==(s=/*displayedLimit*/e[11].formattedSchedule.expiresString+"")&&_(r,s)},d(e){e&&h(t)}}}
|
|
1210
|
+
// (523:14) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1211
|
+
function Wi(e){let t,i,n,r,a=/*$_*/e[20]("limitUpdated")+"",s=/*displayedLimit*/e[11].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(s)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/1048576&t[0]&&a!==(a=/*$_*/e[20]("limitUpdated")+"")&&_(i,a),/*displayedLimit*/2048&t[0]&&s!==(s=/*displayedLimit*/e[11].formattedSchedule.expiresString+"")&&_(r,s)},d(e){e&&h(t)}}}
|
|
1212
|
+
// (528:10) {#if sessiontype === 'admin'}
|
|
1213
|
+
function Vi(e){let t;function i(e,t){/*transdetailsurl*/
|
|
1214
|
+
return e[1]?Xi:/*transactionspageurl*/e[2]?Zi:void 0}let n=i(e),r=n&&n(e);return{c(){t=m("div"),r&&r.c(),b(t,"class","UsefulLinksSection")},m(e,i){c(e,t,i),r&&r.m(t,null)},p(e,a){n===(n=i(e))&&r?r.p(e,a):(r&&r.d(1),r=n&&n(e),r&&(r.c(),r.m(t,null)))},d(e){e&&h(t),r&&r.d()}}}
|
|
1215
|
+
// (532:44)
|
|
1216
|
+
function Zi(e){let t,i,n=/*$_*/e[20]("additionalLink2")+"";return{c(){t=m("a"),i=p(n),b(t,"href",/*getTransactionsUrl*/e[28]()),b(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,t){/*$_*/1048576&t[0]&&n!==(n=/*$_*/e[20]("additionalLink2")+"")&&_(i,n)},d(e){e&&h(t)}}}
|
|
1217
|
+
// (530:14) {#if transdetailsurl}
|
|
1218
|
+
function Xi(e){let t,i,n=/*$_*/e[20]("additionalLink1")+"";return{c(){t=m("a"),i=p(n),b(t,"href",/*transdetailsurl*/e[1]),b(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,r){/*$_*/1048576&r[0]&&n!==(n=/*$_*/e[20]("additionalLink1")+"")&&_(i,n),/*transdetailsurl*/2&r[0]&&b(t,"href",/*transdetailsurl*/e[1])},d(e){e&&h(t)}}}
|
|
1219
|
+
// (541:10) {#if limitPeriodList.length > 0}
|
|
1220
|
+
function Ki(e){let t,i,r,a,s,o,l,f,v=/*$_*/e[20]("changeLimitLabel")+"",w=/*limitPeriodList*/e[12],E=[];for(let t=0;t<w.length;t+=1)E[t]=qi(Ni(e,w,t));return{c(){t=m("div"),i=m("label"),r=p(v),a=p(":"),s=g(),o=m("select");for(let e=0;e<E.length;e+=1)E[e].c();b(i,"for","LimitPeriod"),b(o,"id","LimitPeriod"),/*selectedLimitPeriod*/void 0===e[14]&&O((()=>/*select_change_handler*/e[39].call(o))),b(t,"class","ControlContainer")},m(n,h){c(n,t,h),u(t,i),u(i,r),u(i,a),u(t,s),u(t,o);for(let e=0;e<E.length;e+=1)E[e]&&E[e].m(o,null);L(o,/*selectedLimitPeriod*/e[14],!0),l||(f=[y(o,"change",/*select_change_handler*/e[39]),y(o,"change",/*handlePeriodChange*/e[24])],l=!0)},p(e,t){if(/*$_*/1048576&t[0]&&v!==(v=/*$_*/e[20]("changeLimitLabel")+"")&&_(r,v),/*limitPeriodList*/4096&t[0]){let i;for(w=/*limitPeriodList*/e[12],i=0;i<w.length;i+=1){const n=Ni(e,w,i);E[i]?E[i].p(n,t):(E[i]=qi(n),E[i].c(),E[i].m(o,null))}for(;i<E.length;i+=1)E[i].d(1);E.length=w.length}/*selectedLimitPeriod, limitPeriodList*/20480&t[0]&&L(o,/*selectedLimitPeriod*/e[14])},d(e){e&&h(t),d(E,e),l=!1,n(f)}}}
|
|
1221
|
+
// (545:16) {#each limitPeriodList as value}
|
|
1222
|
+
function qi(e){let t,i,n,r,a=/*value*/e[58]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[58],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitPeriodList*/4096&n[0]&&a!==(a=/*value*/e[58]+"")&&_(i,a),/*limitPeriodList*/4096&n[0]&&r!==(r=/*value*/e[58])&&(t.__value=r,t.value=t.__value)},d(e){e&&h(t)}}}
|
|
1223
|
+
// (553:10) {#if limitTypeList.length > 0}
|
|
1224
|
+
function Ji(e){let t,i,r,a,s,o,l,f,v=/*$_*/e[20]("limitTypeLabel")+"",w=/*limitTypeList*/e[13],E=[];for(let t=0;t<w.length;t+=1)E[t]=Qi(Oi(e,w,t));return{c(){t=m("div"),i=m("label"),r=p(v),a=p(":"),s=g(),o=m("select");for(let e=0;e<E.length;e+=1)E[e].c();b(i,"for","LimitType"),b(o,"id","LimitType"),/*selectedLimitType*/void 0===e[15]&&O((()=>/*select_change_handler_1*/e[40].call(o))),b(t,"class","ControlContainer")},m(n,h){c(n,t,h),u(t,i),u(i,r),u(i,a),u(t,s),u(t,o);for(let e=0;e<E.length;e+=1)E[e]&&E[e].m(o,null);L(o,/*selectedLimitType*/e[15],!0),l||(f=[y(o,"change",/*select_change_handler_1*/e[40]),y(o,"change",/*getLimitBalance*/e[21])],l=!0)},p(e,t){if(/*$_*/1048576&t[0]&&v!==(v=/*$_*/e[20]("limitTypeLabel")+"")&&_(r,v),/*limitTypeList*/8192&t[0]){let i;for(w=/*limitTypeList*/e[13],i=0;i<w.length;i+=1){const n=Oi(e,w,i);E[i]?E[i].p(n,t):(E[i]=Qi(n),E[i].c(),E[i].m(o,null))}for(;i<E.length;i+=1)E[i].d(1);E.length=w.length}/*selectedLimitType, limitTypeList*/40960&t[0]&&L(o,/*selectedLimitType*/e[15])},d(e){e&&h(t),d(E,e),l=!1,n(f)}}}
|
|
1225
|
+
// (557:16) {#each limitTypeList as value}
|
|
1226
|
+
function Qi(e){let t,i,n,r,a=/*value*/e[58]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[58],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitTypeList*/8192&n[0]&&a!==(a=/*value*/e[58]+"")&&_(i,a),/*limitTypeList*/8192&n[0]&&r!==(r=/*value*/e[58])&&(t.__value=r,t.value=t.__value)},d(e){e&&h(t)}}}
|
|
1227
|
+
// (568:8) {:else}
|
|
1228
|
+
function en(e){let t,i,n,r,a,o,l,d,f,y,v,L,E,T,S,k,M,D,P,A,H,C,O,N,x,R,B,U,Y,I,j=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].spentAmount)+"",G=/*displayedLimit*/e[11].limitCurrency+"",F=/*displayedLimit*/e[11].limitCurrency+"",$=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].totalAmount)+"",z=/*displayedLimit*/e[11].limitCurrency+"";return{c(){var u,c;t=m("div"),i=m("div"),n=m("img"),a=g(),o=m("div"),l=g(),d=m("div"),f=p(j),y=g(),v=p(G),E=g(),T=m("div"),S=g(),k=m("div"),M=g(),D=m("div"),P=m("div"),A=m("strong"),A.textContent="0",H=g(),C=m("span"),O=p(F),N=g(),x=m("div"),R=m("strong"),B=p($),U=g(),Y=m("span"),I=p(z),b(n,"class","Archbg"),u=n.src,c=r=Mi,s||(s=document.createElement("a")),s.href=c,u!==s.href&&b(n,"src",r),b(n,"alt","arch"),b(o,"class","GaugeFill"),w(o,"--p",/*gaugeValue*/e[18]+"deg"),b(d,"class","GaugeCover"),b(d,"title",L=`${/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].spentAmount)} ${/*displayedLimit*/e[11].limitCurrency}`),b(T,"class","GaugeNeedleCover"),b(k,"class","GaugeNeedle"),w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[18]-90)+"deg)"),b(i,"class","GaugeBody"),b(A,"class","MinContent"),b(C,"class","MinContentCurrency"),b(P,"class","Min"),b(R,"class","MaxContent"),b(Y,"class","MaxContentCurrency"),b(x,"class","Max"),b(D,"class","MinMaxContainer"),b(t,"class","Gauge")},m(e,r){c(e,t,r),u(t,i),u(i,n),u(i,a),u(i,o),u(i,l),u(i,d),u(d,f),u(d,y),u(d,v),u(i,E),u(i,T),u(i,S),u(i,k),u(t,M),u(t,D),u(D,P),u(P,A),u(P,H),u(P,C),u(C,O),u(D,N),u(D,x),u(x,R),u(R,B),u(x,U),u(x,Y),u(Y,I)},p(e,t){/*gaugeValue*/262144&t[0]&&w(o,"--p",/*gaugeValue*/e[18]+"deg"),/*displayedLimit*/2048&t[0]&&j!==(j=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].spentAmount)+"")&&_(f,j),/*displayedLimit*/2048&t[0]&&G!==(G=/*displayedLimit*/e[11].limitCurrency+"")&&_(v,G),/*displayedLimit*/2048&t[0]&&L!==(L=`${/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].spentAmount)} ${/*displayedLimit*/e[11].limitCurrency}`)&&b(d,"title",L),/*gaugeValue*/262144&t[0]&&w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[18]-90)+"deg)"),/*displayedLimit*/2048&t[0]&&F!==(F=/*displayedLimit*/e[11].limitCurrency+"")&&_(O,F),/*displayedLimit*/2048&t[0]&&$!==($=/*formatWithSeparator*/e[27](/*displayedLimit*/e[11].totalAmount)+"")&&_(B,$),/*displayedLimit*/2048&t[0]&&z!==(z=/*displayedLimit*/e[11].limitCurrency+"")&&_(I,z)},d(e){e&&h(t)}}}
|
|
1229
|
+
// (566:8) {#if isGaugeLoading}
|
|
1230
|
+
function tn(e){let t;return{c(){t=m("general-animation-loading"),v(t,"clientstyling",/*clientstyling*/e[3]),v(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&v(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&v(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&h(t)}}}function nn(t){let i,n,r;function a(e,t){/*noLimitToDisplay*/
|
|
1231
|
+
return e[9]?Ui:/*errorMessage*/e[19]?Bi:Ri}let s=a(t),o=s(t);return{c(){i=m("div"),n=m("div"),o.c(),this.c=e,b(n,"class","LimitsContainer"),b(i,"class",r=/*displayNone*/t[6]?"DisplayNone":"")},m(e,r){c(e,i,r),u(i,n),o.m(n,null),
|
|
1232
|
+
/*div0_binding*/t[41](n)},p(e,t){s===(s=a(e))&&o?o.p(e,t):(o.d(1),o=s(e),o&&(o.c(),o.m(n,null))),/*displayNone*/64&t[0]&&r!==(r=/*displayNone*/e[6]?"DisplayNone":"")&&b(i,"class",r)},i:e,o:e,d(e){e&&h(i),o.d(),
|
|
1233
|
+
/*div0_binding*/t[41](null)}}}function rn(e,t,i){let n;var r,a;r=Ti,a=e=>i(20,n=e),e.$$.on_destroy.push(l(r,a));let s,o,{session:u=""}=t,{sessiontype:c=""}=t,{userid:h=""}=t,{endpoint:d=""}=t,{transdetailsurl:m=""}=t,{transactionspageurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{lang:y="en"}=t,{translationurl:b=""}=t,{datetimeformat:v=""}=t,_=!1,w=!1,L=!1,T="",S="",M=!0,P=!0,A=!1,H={totalAmount:null,spentAmount:"",limitCurrency:"EUR",remainingAmount:"",limitPeriod:"",limitProducts:"",from:"",to:""},C=[],O=[],N="",x="",R="",B=[],U=[],Y=0,I="";Object.keys(ki).forEach((e=>{Si(e,ki[e])})),
|
|
1224
1234
|
/**
|
|
1225
1235
|
* Sets the isMounted flag after a short delay when the component is first rendered.
|
|
1226
1236
|
*/
|
|
1227
|
-
|
|
1237
|
+
k((()=>{setTimeout((()=>{i(35,w=!0)}),50);
|
|
1238
|
+
// Define the function to handle clicks outside the dropdown
|
|
1239
|
+
const e=e=>{
|
|
1240
|
+
// Check if the click is outside the .ProductsDropdown
|
|
1241
|
+
e.target.closest(".ProductsDropdown")||
|
|
1242
|
+
// Close the dropdown
|
|
1243
|
+
i(10,A=!1)};
|
|
1244
|
+
// Add event listener to window for clicks
|
|
1245
|
+
// Cleanup function to remove event listener when component is unmounted
|
|
1246
|
+
return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}));
|
|
1228
1247
|
/**
|
|
1229
1248
|
* Sets the session information upon login.
|
|
1230
1249
|
*/
|
|
1231
|
-
const
|
|
1250
|
+
const j=e=>{i(19,I=e)},G=async()=>{i(10,A=!1);try{if(B=await F(),0===B.length)return i(7,M=!1),void i(9,o=!0);i(12,C=[...new Set(B.map((e=>e.period)))]),i(17,U=z(B[0].period)),U.includes(R)||i(16,R=U[0]),W(B[0])}catch(e){return i(7,M=!1),void j(n("fetchLimitBalanceError"))}},F=async()=>{try{const e=new URL(`${d}/v1/player/${S}/limits/monetary/`),t={method:"GET",headers:{"X-SessionId":T,"X-Session-Type":c}},r=await fetch(e,t);if(!r.ok)throw new Error(n("fetchLimitDefError"));const a=await r.json(),s=["Deposit","Loss","Wagering"],o=a.limits.map((e=>e.type));i(13,O=Array.from(new Set(o)).filter((e=>s.includes(e)))),x||i(15,x=O[0]);const l=a.limits.filter((e=>e.type===x));return l.length>0?l:[]}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;j(t)}},z=e=>{const t=B.filter((t=>t.period===e)),i=[];return t.forEach((e=>{e.products.forEach((e=>{-1===i.indexOf(e)&&i.push(e)}))})),i},W=async e=>{try{i(7,M=!0);const t=new URL(`${d}/v1/player/${S}/limits/monetary/balance`);t.searchParams.append("limitDefinitionId",e.id);const r={method:"GET",headers:{"X-SessionId":T,"X-Session-Type":c}},a=await fetch(t,r);if(!a.ok)throw new Error(n("fetchLimitBalanceError"));const s=await a.json();V(s.limitBalances[0],e)}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;j(t)}finally{i(7,M=!1)}},V=(e,t)=>{i(14,N=e.limitPeriod),i(16,R=e.limitProducts[0]);const n=Z(t.id,t.schedules);i(11,H={totalAmount:e.limitAmount,spentAmount:e.spentBalance.amount.toFixed(2),limitCurrency:e.limitCurrency,remainingAmount:(e.limitAmount-e.spentBalance.amount).toFixed(2),limitPeriod:e.limitPeriod,limitProducts:R,from:e.from,to:e.to}),n&&i(11,H.formattedSchedule=n,H),K(H)},Z=(e,t)=>{const i=t.find((t=>t.playerLimitId===e));return i?{updateAmount:i.updateAmount,expires:i.applyAt,expiresString:X(i.applyAt),id:i.id,isRemoved:i.updateAmount<1,isUpdated:i.updateAmount>0}:{updateAmount:"",expires:"",expiresString:"",id:"",isRemoved:!1,isUpdated:!1}},X=e=>$(e).utc(!0).format(v||"DD/MM/YYYY HH:mm:ss"),K=e=>{const t=180/e.totalAmount*parseFloat(e.spentAmount),n=setInterval((()=>{Math.abs(Y-t)<1.5?(i(18,Y=t),clearInterval(n)):i(18,Y+=Y<t?1.5:-1.5),
|
|
1232
1251
|
// Boundary checks to ensure gaugeValue stays within [0, 180]
|
|
1233
|
-
i(
|
|
1252
|
+
i(18,Y=Math.min(180,Math.max(0,Y))),Y===t&&clearInterval(n)}));i(8,P=!1)},q=e=>{const t=B.find((t=>t.period===N&&t.products.includes(e)));i(11,H.limitProducts=e,H),i(10,A=!1),t&&W(t)},J=()=>{var e;e=y,ri.set(e)},Q=()=>{i(10,A=!A)},ee=(e,t)=>new Date(e.getTime()-24*t*60*60*1e3);
|
|
1234
1253
|
/**
|
|
1235
1254
|
* Handles errors by updating the error message.
|
|
1255
|
+
*
|
|
1236
1256
|
* @param error - The error message to be handled.
|
|
1237
|
-
*/return e.$$set=e=>{"session"in e&&i(21,l=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(22,h=e.userid),"endpoint"in e&&i(23,d=e.endpoint),"transdetailsurl"in e&&i(1,m=e.transdetailsurl),"transactionspageurl"in e&&i(2,f=e.transactionspageurl),"clientstyling"in e&&i(3,p=e.clientstyling),"clientstylingurl"in e&&i(4,g=e.clientstylingurl),"lang"in e&&i(24,y=e.lang),"translationurl"in e&&i(25,_=e.translationurl),"datetimeformat"in e&&i(26,v=e.datetimeformat)},e.$$.update=()=>{/*isMounted, session, userid*/140509184&e.$$.dirty[0]&&w&&l&&h&&(i(28,L=!0),T=l,S=h),/*isMounted, isLoggedIn*/402653184&e.$$.dirty[0]&&w&&L&&U(),/*clientstyling, customStylingContainer*/40&e.$$.dirty[0]&&p&&a&&(()=>{let e=document.createElement("style");e.innerHTML=p,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/48&e.$$.dirty[0]&&g&&a&&(()=>{i(6,b=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1),setTimeout((()=>{i(6,b=!1)}),500)}))})(),/*lang*/16777216&e.$$.dirty[0]&&y&&V(),/*translationurl*/33554432&e.$$.dirty[0]&&_&&(()=>{let e=new URL(_);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Si(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,a,b,D,H,o,A,P,O,C,N,R,B,n,e=>{switch(e){case"Deposit":return n("depositLimitHeader");case"Loss":return n("lossLimitHeader");case"Wagering":return n("wageringLimitHeader");default:return""}},()=>{let e=x.find((e=>`${e.period} - ${e.products[0]}`===C));I(e)},U,l,h,d,y,_,v,w,L,function(){C=E(this),i(13,C),i(11,P)},function(){N=E(this),i(14,N),i(12,O)},function(e){k[e?"unshift":"push"]((()=>{a=e,i(5,a)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),F(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Pi,Ai,s,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}});class tn extends G{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.DisplayNone{display:none}.ContainerCenter{width:100%;display:flex;justify-content:center;align-items:center;min-height:219px}.ErrorMessage{margin:0 15px;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:620px;min-height:150px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:20px;overflow:hidden;box-shadow:0.6em 0.6em 0.4em var(--emw--color-gray-150, #a9b6ce)}.ContentLeft{padding:1rem;width:318px;line-height:20px}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #a9b6ce);margin-bottom:20px;gap:5px}.HeaderIcon{height:20px;width:20px;color:var(--emw--color-gray-150, #a9b6ce)}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{float:left;clear:both}.ContentRight{min-width:300px;padding:1rem;display:flex;justify-content:center;flex-direction:column}.AmountContainer{padding:0.3rem;font-size:xx-large;text-align:center;border:1px solid var(--emw--color-contrast, #07072A);border-radius:20px;box-shadow:0.16em 0.16em 0.1em var(--emw--color-gray-150, #a9b6ce);background-color:#F5F5F5}.TextContainer{display:inline-block;padding-left:5px}.TextContainer p{width:100%;display:block;clear:both;font-weight:bold}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{float:left;clear:both;color:var(--emw--color-contrast, #07072A)}.WidgetFooterControls{display:flex}.ControlContainer label{display:inline-block;width:100%;font-size:12px;font-weight:bold}.TextIcon{color:var(--emw--color-primary, #D0046C)}.Gauge{width:100%;font-family:"Roboto", sans-serif;font-size:32px;color:black;margin:1rem 0}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b:25px;border-radius:500px 500px 0 0;background:var(--emw--gauge-fill-bg, var(--emw--color-primary, #D0046C));mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;-webkit-mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;mask-composite:intersect;-webkit-mask-composite:destination-in}.GaugeFill::before{content:"";display:block;padding-top:50%}.GaugeCover{position:absolute;left:0;right:0;top:50%;font-size:20px}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #D0046C) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between}',this.shadowRoot.appendChild(t),F(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},en,Qi,s,{session:21,sessiontype:0,userid:22,endpoint:23,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:24,translationurl:25,datetimeformat:26},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),R()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),R()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),R()}get endpoint(){return this.$$.ctx[23]}set endpoint(e){this.$$set({endpoint:e}),R()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),R()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),R()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),R()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),R()}get datetimeformat(){return this.$$.ctx[26]}set datetimeformat(e){this.$$set({datetimeformat:e}),R()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",tn),tn}));
|
|
1257
|
+
*/return e.$$set=e=>{"session"in e&&i(29,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(30,h=e.userid),"endpoint"in e&&i(31,d=e.endpoint),"transdetailsurl"in e&&i(1,m=e.transdetailsurl),"transactionspageurl"in e&&i(2,f=e.transactionspageurl),"clientstyling"in e&&i(3,p=e.clientstyling),"clientstylingurl"in e&&i(4,g=e.clientstylingurl),"lang"in e&&i(32,y=e.lang),"translationurl"in e&&i(33,b=e.translationurl),"datetimeformat"in e&&i(34,v=e.datetimeformat)},e.$$.update=()=>{/*session, userid*/1610612736&e.$$.dirty[0]|/*isMounted*/16&e.$$.dirty[1]&&w&&u&&h&&(i(36,L=!0),T=u,S=h),/*isMounted, isLoggedIn*/48&e.$$.dirty[1]&&w&&L&&G(),/*clientstyling, customStylingContainer*/40&e.$$.dirty[0]&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/48&e.$$.dirty[0]&&g&&s&&(()=>{try{i(6,_=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{i(6,_=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;j(t)}})(),/*lang*/2&e.$$.dirty[1]&&y&&J(),/*translationurl*/4&e.$$.dirty[1]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Si(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,s,_,M,P,o,A,H,C,O,N,x,R,U,Y,I,n,G,X,e=>{switch(e){case"Deposit":return n("depositLimitHeader");case"Loss":return n("lossLimitHeader");case"Wagering":return n("wageringLimitHeader");default:return""}},e=>{const t=e.currentTarget;i(14,N=t.value),i(17,U=z(N)),i(10,A=!1),U.includes(R)||i(16,R=U[0]);const n=B.find((e=>e.period===N&&e.products.includes(R)));n&&W(n)},q,Q,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{try{const e=f,t="Deposit"===x?"payment-transactions":"gaming-transactions",i={Daily:1,Weekly:7,Monthly:30},n=ee(new Date(H.to),i[N]),r=new URL(`${e}/gammatrix/gmwi/${t}`);switch(r.searchParams.append("transStatuses","2"),r.searchParams.append("startTime",n.toISOString()),r.searchParams.append("endTime",(new Date).toISOString()),r.searchParams.append("dateOption","Select custom dates"),r.searchParams.append("userId",h),x){case"Deposit":r.searchParams.append("transTypes","1");break;case"Wagering":r.searchParams.append("transTypes","12");break;case"Loss":r.searchParams.append("transTypes","8")}return r.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;j(t)}},u,h,d,y,b,v,w,L,()=>Q(),e=>q(e),function(){N=E(this),i(14,N),i(12,C)},function(){x=E(this),i(15,x),i(13,O)},function(e){D[e?"unshift":"push"]((()=>{s=e,i(5,s)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Ci,Hi,a,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}});class an extends G{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.DisplayNone{display:none}.ContainerCenter{width:100%;display:flex;justify-content:center;align-items:center;min-height:219px}.ErrorMessage{margin:0 15px;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:700px;min-height:150px;border:1px solid var(--emw--color-primary, #307fe2);border-radius:20px;overflow:hidden;box-shadow:14px 26px 19.7px 0px var(--emw--color-gray-150, #76768B);gap:25px;padding:25px}.ContentLeft{line-height:20px;flex:1}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #76768B);margin-bottom:20px;gap:5px}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{font-weight:700}caret-right{color:var(--emw--color-primary, #307fe2)}.ContentRight{min-width:300px;display:flex;justify-content:center;flex-direction:column}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{color:var(--emw--color-primary, #307fe2);text-decoration:underline}.WidgetControls{display:flex;width:100%;justify-content:end;gap:20px}.ControlContainer label{display:block;width:100%;font-size:12px;font-weight:bold;margin-bottom:5px}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:black;margin:1rem 0;flex:1;align-content:center}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b:25px;border-radius:500px 500px 0 0;background:var(--emw--gauge-fill-bg, var(--emw--color-primary, #307fe2));mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;-webkit-mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;mask-composite:intersect;-webkit-mask-composite:destination-in}.GaugeFill::before{content:"";display:block;padding-top:50%}.GaugeCover{position:absolute;left:50%;transform:translateX(-50%);top:50%;font-size:large;white-space:nowrap;width:130px;max-width:200px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #307fe2) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between;margin-top:10px}.ProductSelector{position:relative;margin-bottom:20px}.DisplayContainer{border:1px solid var(--emw--color-primary, #307fe2);background-color:#f5f5f5;border-radius:13px;box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.25);padding:9px;display:flex;align-items:center;justify-content:space-between;color:var(--emw--color-contrast, #07072A);gap:5px;margin-top:20px}.SelectedProduct{font-weight:700;text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:36px;align-items:baseline;gap:5px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;line-height:normal;justify-content:center;white-space:nowrap;max-width:188px;flex:1;text-align:center}.TotalAmount .Currency{font-size:24px}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:#F5F5F5;width:100%;box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:1;border:1px solid var(--emw--color-primary, #307fe2)}.ProductsDropdown.Show{display:block}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:700}.ProductsDropdown button:hover{background-color:var(--emw--color-primary, #307fe2);color:#fff}.DropdownToggle{width:35px;height:35px;display:flex;justify-content:center;align-items:center;background:none;border:none;cursor:pointer;color:var(--emw--color-primary, #307fe2);line-height:0}.DropdownToggle.Active{transform:rotate(90deg)}.Row{display:flex}.Col{flex:1}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},rn,nn,a,{session:29,sessiontype:0,userid:30,endpoint:31,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:32,translationurl:33,datetimeformat:34},null,[-1,-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat"]}get session(){return this.$$.ctx[29]}set session(e){this.$$set({session:e}),R()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),R()}get userid(){return this.$$.ctx[30]}set userid(e){this.$$set({userid:e}),R()}get endpoint(){return this.$$.ctx[31]}set endpoint(e){this.$$set({endpoint:e}),R()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),R()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),R()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get lang(){return this.$$.ctx[32]}set lang(e){this.$$set({lang:e}),R()}get translationurl(){return this.$$.ctx[33]}set translationurl(e){this.$$set({translationurl:e}),R()}get datetimeformat(){return this.$$.ctx[34]}set datetimeformat(e){this.$$set({datetimeformat:e}),R()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",an),an}));
|
|
1238
1258
|
//# sourceMappingURL=player-rglimits.js.map
|