@everymatrix/player-rglimits 1.38.0 → 1.39.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 +221 -259
- package/dist/player-rglimits.js.map +1 -1
- package/package.json +2 -2
package/dist/player-rglimits.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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 o,s;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 d(e){e.parentNode&&e.parentNode.removeChild(e)}function h(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){return function(t){
|
|
2
2
|
// @ts-ignore
|
|
3
|
-
return t.stopPropagation(),e.call(this,t)}}function v(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function
|
|
3
|
+
return t.stopPropagation(),e.call(this,t)}}function v(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function L(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:v(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 T(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 S(e){const t={};for(const i of e)t[i.name]=i.value;return t}function k(e){s=e}
|
|
4
4
|
/**
|
|
5
5
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
6
6
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
@@ -10,7 +10,7 @@ return t.stopPropagation(),e.call(this,t)}}function v(e,t,i){null==i?e.removeAtt
|
|
|
10
10
|
*
|
|
11
11
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
12
12
|
*/
|
|
13
|
-
function M(e){(function(){if(!s)throw new Error("Function called outside component initialization");return s})().$$.on_mount.push(e)}const D=[],A=[];let P=[];const C=[],
|
|
13
|
+
function M(e){(function(){if(!s)throw new Error("Function called outside component initialization");return s})().$$.on_mount.push(e)}const D=[],A=[];let P=[];const C=[],H=Promise.resolve();let x=!1;function O(e){P.push(e)}
|
|
14
14
|
// flush() calls callbacks in this order:
|
|
15
15
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
16
16
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -30,14 +30,14 @@ function M(e){(function(){if(!s)throw new Error("Function called outside compone
|
|
|
30
30
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
31
31
|
// function, guarantees this behavior.
|
|
32
32
|
const R=new Set;let N=0;// Do *not* move this inside the flush() function
|
|
33
|
-
function
|
|
33
|
+
function U(){
|
|
34
34
|
// Do not reenter flush while dirty components are updated, as this can
|
|
35
35
|
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
36
36
|
// Reentrancy is ok afterwards for bindings etc.
|
|
37
37
|
if(0!==N)return;const e=s;do{
|
|
38
38
|
// first, call beforeUpdate functions
|
|
39
39
|
// and update components
|
|
40
|
-
try{for(;N<D.length;){const e=D[N];N++,k(e),
|
|
40
|
+
try{for(;N<D.length;){const e=D[N];N++,k(e),B(e.$$)}}catch(e){
|
|
41
41
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
42
42
|
throw D.length=0,N=0,e}for(k(null),D.length=0,N=0;A.length;)A.pop()();
|
|
43
43
|
// then, once components are updated, call
|
|
@@ -45,13 +45,13 @@ throw D.length=0,N=0,e}for(k(null),D.length=0,N=0;A.length;)A.pop()();
|
|
|
45
45
|
// subsequent updates...
|
|
46
46
|
for(let e=0;e<P.length;e+=1){const t=P[e];R.has(t)||(
|
|
47
47
|
// ...so guard against infinite loops
|
|
48
|
-
R.add(t),t())}P.length=0}while(D.length);for(;C.length;)C.pop()();
|
|
48
|
+
R.add(t),t())}P.length=0}while(D.length);for(;C.length;)C.pop()();x=!1,R.clear(),k(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)}}
|
|
49
49
|
/**
|
|
50
50
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
51
51
|
*/const Y=new Set;function I(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),
|
|
52
52
|
// TODO null out other refs, including component.$$ (but need to
|
|
53
53
|
// preserve final state?)
|
|
54
|
-
i.on_destroy=i.fragment=null,i.ctx=[])}function j(e,t){-1===e.$$.dirty[0]&&(D.push(e),
|
|
54
|
+
i.on_destroy=i.fragment=null,i.ctx=[])}function j(e,t){-1===e.$$.dirty[0]&&(D.push(e),x||(x=!0,H.then(U)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function G(a,o,l,u,c,h,m,f=[-1]){const p=s;k(a);const g=a.$$={fragment:null,ctx:[],
|
|
55
55
|
// state
|
|
56
56
|
props:h,update:e,not_equal:c,bound:i(),
|
|
57
57
|
// lifecycle
|
|
@@ -72,7 +72,7 @@ O((()=>{const i=e.$$.on_mount.map(t).filter(r);
|
|
|
72
72
|
e.$$.on_destroy?e.$$.on_destroy.push(...i):
|
|
73
73
|
// Edge case - component was destroyed immediately,
|
|
74
74
|
// most likely as a result of a binding initialising
|
|
75
|
-
n(i),e.$$.on_mount=[]})),l.forEach(O)}(a,o.target,o.anchor,o.customElement),
|
|
75
|
+
n(i),e.$$.on_mount=[]})),l.forEach(O)}(a,o.target,o.anchor,o.customElement),U()}var b,v;k(p)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);
|
|
76
76
|
// @ts-ignore todo: improve typings
|
|
77
77
|
for(const e in this.$$.slotted)
|
|
78
78
|
// @ts-ignore todo: improve typings
|
|
@@ -84,68 +84,83 @@ if(!r(i))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
84
84
|
function r(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){
|
|
85
85
|
// IE8 will treat undefined and null as object if it wasn't for
|
|
86
86
|
// input != null
|
|
87
|
-
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(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(s(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 d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(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)s(t,i)&&(e[i]=t[i]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,i,n){return
|
|
87
|
+
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(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(s(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 d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(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)s(t,i)&&(e[i]=t[i]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,i,n){return qi(e,t,i,n,!0).utc()}function p(){
|
|
88
88
|
// We need to deep clone this object.
|
|
89
|
-
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){
|
|
89
|
+
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){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function b(e){var t=f(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}
|
|
90
90
|
// Plugins that add properties should also add the key here (null value),
|
|
91
91
|
// so we can properly clone ourselves.
|
|
92
|
-
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=[],
|
|
92
|
+
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=[],L=!1;function _(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}
|
|
93
93
|
// Moment prototype object
|
|
94
|
-
function w(e){
|
|
94
|
+
function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
95
95
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
96
96
|
// objects.
|
|
97
|
-
!1===
|
|
97
|
+
!1===L&&(L=!0,n.updateOffset(this),L=!1)}function T(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function E(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,o,l=[],u=arguments.length;for(a=0;a<u;a++){if(r="","object"==typeof arguments[a]){for(o in r+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}E(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]||(E(t),M[e]=!0)}function A(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,i;for(i in e)s(e,i)&&(A(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,
|
|
98
98
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
99
99
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
100
100
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
101
101
|
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var i,n=m({},e);for(i in t)s(t,i)&&(o(e[i])&&o(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)s(e,i)&&!s(t,i)&&o(e[i])&&(
|
|
102
102
|
// make sure changes to properties don't modify parent config
|
|
103
|
-
n[i]=m({},n[i]));return n}function
|
|
103
|
+
n[i]=m({},n[i]));return n}function H(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)s(e,t)&&i.push(t);return i};var x={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return A(n)?n.call(t,i):n}function R(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 N=/(\[[^\[]*\])|(\\)?([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,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},Y={};
|
|
104
104
|
// token: 'M'
|
|
105
105
|
// padded: ['MM', 2]
|
|
106
106
|
// ordinal: 'Mo'
|
|
107
107
|
// callback: function () { this.month() + 1 }
|
|
108
108
|
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 R(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(N);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+=A(n[r])?n[r].call(t,e):n[r];return a}}
|
|
109
109
|
// format date using native date object
|
|
110
|
-
function F(e,t){return e.isValid()?(t=W(t,e.localeData()),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
He=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
110
|
+
function F(e,t){return e.isValid()?(t=W(t,e.localeData()),B[t]=B[t]||G(t),B[t](e)):e.localeData().invalidDate()}function W(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(U.lastIndex=0;i>=0&&U.test(e);)e=e.replace(U,n),U.lastIndex=0,i-=1;return e}var z={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(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function Z(){return this._invalidDate}var X="%d",K=/\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 A(r)?r(e,t,i,n):r.replace(/%d/i,e)}function te(e,t){var i=this._relativeTime[e>0?"future":"past"];return A(i)?i(t):i.replace(/%s/i,t)}var ie={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?ie[e]||ie[e.toLowerCase()]:void 0}function re(e){var t,i,n={};for(i in e)s(e,i)&&(t=ne(i))&&(n[t]=e[i]);return n}var ae={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,i=[];for(t in e)s(e,t)&&i.push({unit:t,priority:ae[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}var// 0-99
|
|
111
|
+
se,le=/\d/,// 0 - 9
|
|
112
|
+
ue=/\d\d/,// 00 - 99
|
|
113
|
+
ce=/\d{3}/,// 000 - 999
|
|
114
|
+
de=/\d{4}/,// 0000 - 9999
|
|
115
|
+
he=/[+-]?\d{6}/,// -999999 - 999999
|
|
116
|
+
me=/\d\d?/,// 0 - 99
|
|
117
|
+
fe=/\d\d\d\d?/,// 999 - 9999
|
|
118
|
+
pe=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
119
|
+
ge=/\d{1,3}/,// 0 - 999
|
|
120
|
+
ye=/\d{1,4}/,// 0 - 9999
|
|
121
|
+
be=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
122
|
+
ve=/\d+/,// 0 - inf
|
|
123
|
+
Le=/[+-]?\d+/,// -inf - inf
|
|
124
|
+
_e=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
125
|
+
we=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
126
|
+
Te=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
128
127
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
129
128
|
// includes scottish gaelic two word and hyphenated months
|
|
130
|
-
|
|
129
|
+
Ee=/[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,Se=/^[1-9]\d?/,// 1-99
|
|
130
|
+
ke=/^([1-9]\d|\d)/;function Me(e,t,i){se[e]=A(t)?t:function(e,n){return e&&i?i:t}}function De(e,t){return s(se,e)?se[e](t._strict,t._locale):new RegExp(Ae(e))}
|
|
131
131
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
132
|
-
function
|
|
132
|
+
function Ae(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}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}se={};var xe={};function Oe(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++)xe[e[i]]=r}function Re(e,t){Oe(e,(function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function Ne(e,t,i){null!=t&&s(xe,e)&&xe[e](t,i._a,i,e)}function Ue(e){return e%4==0&&e%100!=0||e%400==0}var Be=0,Ye=1,Ie=2,je=3,Ge=4,Fe=5,$e=6,We=7,ze=8;
|
|
133
133
|
// FORMATTING
|
|
134
|
-
|
|
134
|
+
// HELPERS
|
|
135
|
+
function Ve(e){return Ue(e)?366:365}
|
|
136
|
+
// HOOKS
|
|
137
|
+
I("Y",0,0,(function(){var e=this.year();return e<=9999?R(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"),
|
|
138
|
+
// PARSING
|
|
139
|
+
Me("Y",Le),Me("YY",me,ue),Me("YYYY",ye,de),Me("YYYYY",be,he),Me("YYYYYY",be,he),Oe(["YYYYY","YYYYYY"],Be),Oe("YYYY",(function(e,t){t[Be]=2===e.length?n.parseTwoDigitYear(e):He(e)})),Oe("YY",(function(e,t){t[Be]=n.parseTwoDigitYear(e)})),Oe("Y",(function(e,t){t[Be]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return He(e)+(He(e)>68?1900:2e3)};
|
|
140
|
+
// MOMENTS
|
|
141
|
+
var qe,Ze=Ke("FullYear",!0);function Xe(){return Ue(this.year())}function Ke(e,t){return function(i){return null!=i?(Qe(this,e,i),n.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var i=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN;// Just in case
|
|
142
|
+
}}function Qe(e,t,i){var n,r,a,o,s;if(e.isValid()&&!isNaN(i)){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));
|
|
143
|
+
// case 'Day': // Not real
|
|
144
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
145
|
+
// case 'Month': // Not used because we need to pass two variables
|
|
146
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
147
|
+
case"FullYear":break;// See below ...
|
|
148
|
+
default:return;// Just in case
|
|
149
|
+
}a=i,o=e.month(),s=29!==(s=e.date())||1!==o||Ue(a)?s:28,r?n.setUTCFullYear(a,o,s):n.setFullYear(a,o,s)}}
|
|
150
|
+
// MOMENTS
|
|
151
|
+
function et(e){return A(this[e=ne(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var i,n=oe(e=re(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(A(this[e=ne(e)]))return this[e](t);return this}function it(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=it(t,12);return e+=(t-i)/12,1===i?Ue(e)?29:28:31-i%7%2}
|
|
152
|
+
// FORMATTING
|
|
153
|
+
qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
135
154
|
// I know
|
|
136
155
|
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)})),
|
|
137
|
-
// ALIASES
|
|
138
|
-
ne("month","M"),
|
|
139
|
-
// PRIORITY
|
|
140
|
-
se("month",8),
|
|
141
156
|
// PARSING
|
|
142
|
-
|
|
157
|
+
Me("M",me,Se),Me("MM",me,ue),Me("MMM",(function(e,t){return t.monthsShortRegex(e)})),Me("MMMM",(function(e,t){return t.monthsRegex(e)})),Oe(["M","MM"],(function(e,t){t[Ye]=He(e)-1})),Oe(["MMM","MMMM"],(function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);
|
|
143
158
|
// if we didn't find a month name, mark the date as invalid.
|
|
144
|
-
null!=r?t[
|
|
159
|
+
null!=r?t[Ye]=r:g(i).invalidMonth=e}));
|
|
145
160
|
// LOCALES
|
|
146
|
-
var
|
|
161
|
+
var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),at="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,st=Ee,lt=Ee;function ut(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ct(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,i){var n,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
147
162
|
// this is not used
|
|
148
|
-
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=
|
|
163
|
+
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=qe.call(this._shortMonthsParse,o))?r:null:-1!==(r=qe.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=qe.call(this._shortMonthsParse,o))||-1!==(r=qe.call(this._longMonthsParse,o))?r:null:-1!==(r=qe.call(this._longMonthsParse,o))||-1!==(r=qe.call(this._shortMonthsParse,o))?r:null}function ht(e,t,i){var n,r,a;if(this._monthsParseExact)return dt.call(this,e,t,i);
|
|
149
164
|
// TODO: add sorting
|
|
150
165
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
151
166
|
// see sorting in computeMonthsParse
|
|
@@ -155,83 +170,62 @@ if(
|
|
|
155
170
|
// make the regex if we don't have it already
|
|
156
171
|
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}}
|
|
157
172
|
// MOMENTS
|
|
158
|
-
function
|
|
173
|
+
function mt(e,t){if(!e.isValid())
|
|
159
174
|
// No op
|
|
160
|
-
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=
|
|
175
|
+
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=He(t);else
|
|
161
176
|
// TODO: Another silent failure?
|
|
162
|
-
if(!c(t=e.localeData().monthsParse(t)))return e;
|
|
177
|
+
if(!c(t=e.localeData().monthsParse(t)))return e;var i=t,n=e.date();return n=n<29?n:Math.min(n,nt(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,n):e._d.setMonth(i,n),e}function ft(e){return null!=e?(mt(this,e),n.updateOffset(this,!0),this):Je(this,"Month")}function pt(){return nt(this.year(),this.month())}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=st),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,i,n,r,a=[],o=[],s=[];for(t=0;t<12;t++)
|
|
163
178
|
// make the regex if we don't have it already
|
|
164
|
-
i=f([2e3,t]),n
|
|
179
|
+
i=f([2e3,t]),n=Pe(this.monthsShort(i,"")),r=Pe(this.months(i,"")),a.push(n),o.push(r),s.push(r),s.push(n);
|
|
165
180
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
166
181
|
// will match the longer piece.
|
|
167
|
-
|
|
168
|
-
// FORMATTING
|
|
169
|
-
// HELPERS
|
|
170
|
-
function gt(e){return ue(e)?366:365}
|
|
171
|
-
// HOOKS
|
|
172
|
-
I("Y",0,0,(function(){var e=this.year();return e<=9999?R(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"),
|
|
173
|
-
// ALIASES
|
|
174
|
-
ne("year","y"),
|
|
175
|
-
// PRIORITIES
|
|
176
|
-
se("year",1),
|
|
177
|
-
// PARSING
|
|
178
|
-
Re("Y",Pe),Re("YY",Te,ve),Re("YYYY",Me,Le),Re("YYYYY",De,we),Re("YYYYYY",De,we),Ie(["YYYYY","YYYYYY"],$e),Ie("YYYY",(function(e,t){t[$e]=2===e.length?n.parseTwoDigitYear(e):de(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 de(e)+(de(e)>68?1900:2e3)};
|
|
179
|
-
// MOMENTS
|
|
180
|
-
var yt=he("FullYear",!0);function bt(){return ue(this.year())}function vt(e,t,i,n,r,a,o){
|
|
182
|
+
a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,i,n,r,a,o){
|
|
181
183
|
// can't just apply() to create a date:
|
|
182
184
|
// https://stackoverflow.com/q/181348
|
|
183
185
|
var s;
|
|
184
186
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
185
187
|
return e<100&&e>=0?(
|
|
186
188
|
// preserve leap years using a full 400 year cycle, then reset
|
|
187
|
-
s=new Date(e+400,t,i,n,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,a,o),s}function
|
|
189
|
+
s=new Date(e+400,t,i,n,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,a,o),s}function Lt(e){var t,i;
|
|
188
190
|
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
189
191
|
return e<100&&e>=0?(
|
|
190
192
|
// preserve leap years using a full 400 year cycle, then reset
|
|
191
193
|
(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}
|
|
192
194
|
// start-of-first-week - start-of-year
|
|
193
|
-
function
|
|
194
|
-
n=7+t-i;return-(7+
|
|
195
|
+
function _t(e,t,i){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
196
|
+
n=7+t-i;return-(7+Lt(e,0,n).getUTCDay()-t)%7+n-1}
|
|
195
197
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
196
|
-
function wt(e,t,i,n,r){var a,o,s=1+7*(t-1)+(7+i-n)%7+
|
|
198
|
+
function wt(e,t,i,n,r){var a,o,s=1+7*(t-1)+(7+i-n)%7+_t(e,n,r);return s<=0?o=Ve(a=e-1)+s:s>Ve(e)?(a=e+1,o=s-Ve(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Tt(e,t,i){var n,r,a=_t(e.year(),t,i),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+Et(r=e.year()-1,t,i):o>Et(e.year(),t,i)?(n=o-Et(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function Et(e,t,i){var n=_t(e,t,i),r=_t(e+1,t,i);return(Ve(e)-n+r)/7}
|
|
197
199
|
// FORMATTING
|
|
198
200
|
// HELPERS
|
|
199
201
|
// LOCALES
|
|
200
202
|
function St(e){return Tt(e,this._week.dow,this._week.doy).week}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),
|
|
201
|
-
// ALIASES
|
|
202
|
-
ne("week","w"),ne("isoWeek","W"),
|
|
203
|
-
// PRIORITIES
|
|
204
|
-
se("week",5),se("isoWeek",5),
|
|
205
203
|
// PARSING
|
|
206
|
-
|
|
204
|
+
Me("w",me,Se),Me("ww",me,ue),Me("W",me,Se),Me("WW",me,ue),Re(["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.
|
|
207
205
|
doy:6};function Mt(){return this._week.dow}function Dt(){return this._week.doy}
|
|
208
206
|
// MOMENTS
|
|
209
207
|
function At(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=Tt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
210
208
|
// FORMATTING
|
|
211
209
|
// HELPERS
|
|
212
|
-
function Ct(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function
|
|
210
|
+
function Ct(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ht(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
213
211
|
// LOCALES
|
|
214
|
-
function
|
|
215
|
-
// ALIASES
|
|
216
|
-
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
217
|
-
// PRIORITY
|
|
218
|
-
se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
212
|
+
function xt(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"),
|
|
219
213
|
// PARSING
|
|
220
|
-
|
|
214
|
+
Me("d",me),Me("e",me),Me("E",me),Me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Me("dddd",(function(e,t){return t.weekdaysRegex(e)})),Re(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);
|
|
221
215
|
// if we didn't get a weekday name, mark the date as invalid
|
|
222
|
-
null!=r?t.d=r:g(i).invalidWeekday=e})),
|
|
216
|
+
null!=r?t.d=r:g(i).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,i,n){t[n]=He(e)}));var Ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=Ee,Bt=Ee,Yt=Ee;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?xt(i,this._week.dow):e?i[e.day()]:i}function jt(e){return!0===e?xt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?xt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ft(e,t,i){var n,r,a,o=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=qe.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=qe.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=qe.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=qe.call(this._weekdaysParse,o))||-1!==(r=qe.call(this._shortWeekdaysParse,o))||-1!==(r=qe.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=qe.call(this._shortWeekdaysParse,o))||-1!==(r=qe.call(this._weekdaysParse,o))||-1!==(r=qe.call(this._minWeekdaysParse,o))?r:null:-1!==(r=qe.call(this._minWeekdaysParse,o))||-1!==(r=qe.call(this._weekdaysParse,o))||-1!==(r=qe.call(this._shortWeekdaysParse,o))?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++){
|
|
223
217
|
// test the regex
|
|
224
218
|
if(
|
|
225
219
|
// make the regex if we don't have it already
|
|
226
220
|
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}}
|
|
227
221
|
// MOMENTS
|
|
228
|
-
function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=
|
|
222
|
+
function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Ct(e,this.localeData()),this.add(e-t,"d")):t}function zt(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;
|
|
229
223
|
// behaves the same as moment#day except
|
|
230
224
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
231
225
|
// as a setter, sunday should belong to the previous week.
|
|
232
|
-
if(null!=e){var t=
|
|
226
|
+
if(null!=e){var t=Ht(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,i,n,r,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)
|
|
233
227
|
// make the regex if we don't have it already
|
|
234
|
-
i=f([2e3,1]).day(t),n=
|
|
228
|
+
i=f([2e3,1]).day(t),n=Pe(this.weekdaysMin(i,"")),r=Pe(this.weekdaysShort(i,"")),a=Pe(this.weekdays(i,"")),o.push(n),s.push(r),l.push(a),u.push(n),u.push(r),u.push(a);
|
|
235
229
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
236
230
|
// will match the longer piece.
|
|
237
231
|
o.sort(e),s.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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}
|
|
@@ -243,16 +237,12 @@ function ti(e,t){return t._meridiemParse}
|
|
|
243
237
|
function ii(e){
|
|
244
238
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
245
239
|
// Using charAt should be more compatible.
|
|
246
|
-
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)+R(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),ei("a",!0),ei("A",!1),
|
|
247
|
-
// ALIASES
|
|
248
|
-
ne("hour","h"),
|
|
249
|
-
// PRIORITY
|
|
250
|
-
se("hour",13),Re("a",ti),Re("A",ti),Re("H",Te),Re("h",Te),Re("k",Te),Re("HH",Te,ve),Re("hh",Te,ve),Re("kk",Te,ve),Re("hmm",Ee),Re("hmmss",Se),Re("Hmm",Ee),Re("Hmmss",Se),Ie(["H","HH"],Ve),Ie(["k","kk"],(function(e,t,i){var n=de(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]=de(e),g(i).bigHour=!0})),Ie("hmm",(function(e,t,i){var n=e.length-2;t[Ve]=de(e.substr(0,n)),t[Ze]=de(e.substr(n)),g(i).bigHour=!0})),Ie("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ve]=de(e.substr(0,n)),t[Ze]=de(e.substr(n,2)),t[qe]=de(e.substr(r)),g(i).bigHour=!0})),Ie("Hmm",(function(e,t,i){var n=e.length-2;t[Ve]=de(e.substr(0,n)),t[Ze]=de(e.substr(n))})),Ie("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ve]=de(e.substr(0,n)),t[Ze]=de(e.substr(n,2)),t[qe]=de(e.substr(r))}));var ni=/[ap]\.?m?\.?/i,
|
|
240
|
+
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)+R(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),ei("a",!0),ei("A",!1),Me("a",ti),Me("A",ti),Me("H",me,ke),Me("h",me,Se),Me("k",me,Se),Me("HH",me,ue),Me("hh",me,ue),Me("kk",me,ue),Me("hmm",fe),Me("hmmss",pe),Me("Hmm",fe),Me("Hmmss",pe),Oe(["H","HH"],je),Oe(["k","kk"],(function(e,t,i){var n=He(e);t[je]=24===n?0:n})),Oe(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Oe(["h","hh"],(function(e,t,i){t[je]=He(e),g(i).bigHour=!0})),Oe("hmm",(function(e,t,i){var n=e.length-2;t[je]=He(e.substr(0,n)),t[Ge]=He(e.substr(n)),g(i).bigHour=!0})),Oe("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[je]=He(e.substr(0,n)),t[Ge]=He(e.substr(n,2)),t[Fe]=He(e.substr(r)),g(i).bigHour=!0})),Oe("Hmm",(function(e,t,i){var n=e.length-2;t[je]=He(e.substr(0,n)),t[Ge]=He(e.substr(n))})),Oe("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[je]=He(e.substr(0,n)),t[Ge]=He(e.substr(n,2)),t[Fe]=He(e.substr(r))}));var ni=/[ap]\.?m?\.?/i,
|
|
251
241
|
// Setting the hour should keep the time, because the user explicitly
|
|
252
242
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
253
243
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
254
244
|
// this rule.
|
|
255
|
-
ri=
|
|
245
|
+
ri=Ke("Hours",!0);function ai(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var oi,si={calendar:x,longDateFormat:z,invalidDate:q,ordinal:X,dayOfMonthOrdinalParse:K,relativeTime:Q,months:rt,monthsShort:at,week:kt,weekdays:Ot,weekdaysMin:Nt,weekdaysShort:Rt,meridiemParse:ni},li={},ui={};
|
|
256
246
|
// internal storage for locale config files
|
|
257
247
|
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 di(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
258
248
|
// pick the locale from the array
|
|
@@ -262,7 +252,8 @@ function hi(e){for(var t,i,n,r,a=0;a<e.length;){for(t=(r=di(e[a]).split("-")).le
|
|
|
262
252
|
//the next array item is better than a shallower substring of this one
|
|
263
253
|
break;t--}a++}return oi}function mi(e){
|
|
264
254
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
265
|
-
|
|
255
|
+
// Ensure name is available and function returns boolean
|
|
256
|
+
return!(!e||!e.match("^[^/\\\\]*$"))}function fi(t){var i=null;
|
|
266
257
|
// TODO: Find a better way to register and load all the locales in Node
|
|
267
258
|
if(void 0===li[t]&&e&&e.exports&&mi(t))try{i=oi._abbr,$(),pi(i)}catch(e){
|
|
268
259
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
@@ -276,7 +267,7 @@ function pi(e,t){var i;return e&&((i=u(t)?bi(e):gi(e,t))?
|
|
|
276
267
|
// moment.duration._locale = moment._locale = data;
|
|
277
268
|
oi=i:"undefined"!=typeof console&&console.warn&&
|
|
278
269
|
//warn user if arguments are passed but the locale could not be set
|
|
279
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),oi._abbr}function gi(e,t){if(null!==t){var i,n=si;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
|
|
270
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),oi._abbr}function gi(e,t){if(null!==t){var i,n=si;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 H(C(n,t)),ui[e]&&ui[e].forEach((function(e){gi(e.name,e.config)})),
|
|
280
271
|
// backwards compat for now: also set the locale
|
|
281
272
|
// make sure we set the locale AFTER all child locales have been
|
|
282
273
|
// created, so we won't end up with the child locale set.
|
|
@@ -290,7 +281,7 @@ null!=(n=fi(e))&&(r=n._config),t=C(r,t),null==n&&(
|
|
|
290
281
|
// updateLocale is called for creating a new locale
|
|
291
282
|
// Set abbr so it will have a name (getters return
|
|
292
283
|
// undefined otherwise).
|
|
293
|
-
t.abbr=e),(i=new
|
|
284
|
+
t.abbr=e),(i=new H(t)).parentLocale=li[e],li[e]=i),
|
|
294
285
|
// backwards compat for now: also set the locale
|
|
295
286
|
pi(e)}else
|
|
296
287
|
// pass null for config to unupdate, useful for tests
|
|
@@ -298,30 +289,30 @@ null!=li[e]&&(null!=li[e].parentLocale?(li[e]=li[e].parentLocale,e===pi()&&pi(e)
|
|
|
298
289
|
// returns locale data
|
|
299
290
|
function bi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return oi;if(!a(e)){if(
|
|
300
291
|
//short-circuit everything else
|
|
301
|
-
t=fi(e))return t;e=[e]}return hi(e)}function vi(){return k(li)}function
|
|
292
|
+
t=fi(e))return t;e=[e]}return hi(e)}function vi(){return k(li)}function Li(e){var t,i=e._a;return i&&-2===g(e).overflow&&(t=i[Ye]<0||i[Ye]>11?Ye:i[Ie]<1||i[Ie]>nt(i[Be],i[Ye])?Ie:i[je]<0||i[je]>24||24===i[je]&&(0!==i[Ge]||0!==i[Fe]||0!==i[$e])?je:i[Ge]<0||i[Ge]>59?Ge:i[Fe]<0||i[Fe]>59?Fe:i[$e]<0||i[$e]>999?$e:-1,g(e)._overflowDayOfYear&&(t<Be||t>Ie)&&(t=Ie),g(e)._overflowWeeks&&-1===t&&(t=We),g(e)._overflowWeekday&&-1===t&&(t=ze),g(e).overflow=t),e}
|
|
302
293
|
// iso 8601 regex
|
|
303
294
|
// 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)
|
|
304
|
-
var
|
|
295
|
+
var _i=/^\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)?)?$/,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)?)?$/,Ti=/Z|[+-]\d\d(?::?\d\d)?/,Ei=[["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]],
|
|
305
296
|
// iso time formats and regexes
|
|
306
297
|
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,
|
|
307
298
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
308
299
|
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};
|
|
309
300
|
// date from iso format
|
|
310
|
-
function Ai(e){var t,i,n,r,a,o,s=e._i,l=
|
|
301
|
+
function Ai(e){var t,i,n,r,a,o,s=e._i,l=_i.exec(s)||wi.exec(s),u=Ei.length,c=Si.length;if(l){for(g(e).iso=!0,t=0,i=u;t<i;t++)if(Ei[t][1].exec(l[1])){r=Ei[t][0],n=!1!==Ei[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])){
|
|
311
302
|
// match[2] should be 'T' or space
|
|
312
|
-
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(!Ti.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),ji(e)}else e._isValid=!1}function Pi(e,t,i,n,r,a){var o=[Ci(e),
|
|
303
|
+
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(!Ti.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),ji(e)}else e._isValid=!1}function Pi(e,t,i,n,r,a){var o=[Ci(e),at.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}function Ci(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Hi(e){
|
|
313
304
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
314
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function
|
|
305
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xi(e,t,i){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Oi(e,t,i){if(e)return Di[e];if(t)
|
|
315
306
|
// the only allowed military tz is Z
|
|
316
307
|
return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}
|
|
317
308
|
// date and time from ref 2822 format
|
|
318
|
-
function Ri(e){var t,i=Mi.exec(
|
|
309
|
+
function Ri(e){var t,i=Mi.exec(Hi(e._i));if(i){if(t=Pi(i[4],i[3],i[2],i[5],i[6],i[7]),!xi(i[1],t,e))return;e._a=t,e._tzm=Oi(i[8],i[9],i[10]),e._d=Lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
319
310
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
320
311
|
function Ni(e){var t=ki.exec(e._i);null===t?(Ai(e),!1===e._isValid&&(delete e._isValid,Ri(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
321
312
|
// Final attempt, use Input Fallback
|
|
322
313
|
n.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
323
314
|
// Pick the first defined of two or three arguments.
|
|
324
|
-
function
|
|
315
|
+
function Ui(e,t,i){return null!=e?e:null!=t?t:i}function Bi(e){
|
|
325
316
|
// hooks is actually the exported moment object
|
|
326
317
|
var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
|
|
327
318
|
// convert an array to a date.
|
|
@@ -334,76 +325,76 @@ function Yi(e){var t,i,n,r,a,o=[];if(!e._d){
|
|
|
334
325
|
// * if day of month is given, default month and year
|
|
335
326
|
// * if month is given, default only year
|
|
336
327
|
// * if year is given, don't default anything
|
|
337
|
-
for(n=
|
|
328
|
+
for(n=Bi(e),
|
|
338
329
|
//compute day of the year from weeks and weekdays
|
|
339
|
-
e._w&&null==e._a[
|
|
330
|
+
e._w&&null==e._a[Ie]&&null==e._a[Ye]&&Ii(e),
|
|
340
331
|
//if the day of the year is set, figure out what it is
|
|
341
|
-
null!=e._dayOfYear&&(a=
|
|
332
|
+
null!=e._dayOfYear&&(a=Ui(e._a[Be],n[Be]),(e._dayOfYear>Ve(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),i=Lt(a,0,e._dayOfYear),e._a[Ye]=i.getUTCMonth(),e._a[Ie]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];
|
|
342
333
|
// Zero out whatever was not defaulted, including time
|
|
343
334
|
for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
344
335
|
// Check for 24:00:00.000
|
|
345
|
-
24===e._a[
|
|
336
|
+
24===e._a[je]&&0===e._a[Ge]&&0===e._a[Fe]&&0===e._a[$e]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?Lt:vt).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
|
346
337
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
347
338
|
// with parseZone.
|
|
348
|
-
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[
|
|
339
|
+
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),
|
|
349
340
|
// check for mismatching day of week
|
|
350
341
|
e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Ii(e){var t,i,n,r,a,o,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,
|
|
351
342
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
352
343
|
// how we interpret now (local, utc, fixed offset). So create
|
|
353
344
|
// a now version of current config (take local/utc/offset flags, and
|
|
354
345
|
// create now).
|
|
355
|
-
i=
|
|
346
|
+
i=Ui(t.GG,e._a[Be],Tt(Zi(),1,4).year),n=Ui(t.W,1),((r=Ui(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=Tt(Zi(),a,o),i=Ui(t.gg,e._a[Be],u.year),
|
|
356
347
|
// Default to current week.
|
|
357
|
-
n=
|
|
348
|
+
n=Ui(t.w,u.week),null!=t.d?((
|
|
358
349
|
// weekday -- low day numbers are considered next week
|
|
359
350
|
r=t.d)<0||r>6)&&(l=!0):null!=t.e?(
|
|
360
351
|
// local weekday -- counting starts from beginning of week
|
|
361
352
|
r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):
|
|
362
353
|
// default to beginning of week
|
|
363
|
-
r=a),n<1||n>Et(i,a,o)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=wt(i,n,r,a,o),e._a[
|
|
354
|
+
r=a),n<1||n>Et(i,a,o)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=wt(i,n,r,a,o),e._a[Be]=s.year,e._dayOfYear=s.dayOfYear)}
|
|
364
355
|
// constant that refers to the ISO standard
|
|
365
356
|
// date from string and format string
|
|
366
357
|
function ji(e){
|
|
367
358
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
368
359
|
if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],g(e).empty=!0;
|
|
369
360
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
370
|
-
var t,i,r,a,o,s,l,u=""+e._i,c=u.length,d=0;for(l=(r=W(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)a=r[t],(i=(u.match(
|
|
361
|
+
var t,i,r,a,o,s,l,u=""+e._i,c=u.length,d=0;for(l=(r=W(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)a=r[t],(i=(u.match(De(a,e))||[])[0])&&((o=u.substr(0,u.indexOf(i))).length>0&&g(e).unusedInput.push(o),u=u.slice(u.indexOf(i)+i.length),d+=i.length),
|
|
371
362
|
// don't parse if it's not a known token
|
|
372
|
-
Y[a]?(i?g(e).empty=!1:g(e).unusedTokens.push(a),
|
|
363
|
+
Y[a]?(i?g(e).empty=!1:g(e).unusedTokens.push(a),Ne(a,i,e)):e._strict&&!i&&g(e).unusedTokens.push(a);
|
|
373
364
|
// add remaining unparsed input length to the string
|
|
374
365
|
g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),
|
|
375
366
|
// clear _12h flag if hour is <= 12
|
|
376
|
-
e._a[
|
|
367
|
+
e._a[je]<=12&&!0===g(e).bigHour&&e._a[je]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
|
377
368
|
// handle meridiem
|
|
378
|
-
e._a[
|
|
369
|
+
e._a[je]=Gi(e._locale,e._a[je],e._meridiem),null!==(
|
|
379
370
|
// handle era
|
|
380
|
-
s=g(e).era)&&(e._a[
|
|
371
|
+
s=g(e).era)&&(e._a[Be]=e._locale.erasConvertYear(s,e._a[Be])),Yi(e),Li(e)}else Ri(e);else Ai(e)}function Gi(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(
|
|
381
372
|
// Fallback
|
|
382
373
|
(n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}
|
|
383
374
|
// date from string and array of format strings
|
|
384
|
-
function Fi(e){var t,i,n,r,a,o,s=!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,o=!1,t=
|
|
375
|
+
function Fi(e){var t,i,n,r,a,o,s=!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,o=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ji(t),y(t)&&(o=!0),
|
|
385
376
|
// if there is any input that was not parsed add a penalty for that format
|
|
386
377
|
a+=g(t).charsLeftOver,
|
|
387
378
|
//or tokens
|
|
388
|
-
a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<n&&(n=a,i=t):(null==n||a<n||o)&&(n=a,i=t,o&&(s=!0));m(e,i||t)}function $i(e){if(!e._d){var t=
|
|
379
|
+
a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<n&&(n=a,i=t):(null==n||a<n||o)&&(n=a,i=t,o&&(s=!0));m(e,i||t)}function $i(e){if(!e._d){var t=re(e._i),i=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Yi(e)}}function Wi(e){var t=new w(Li(zi(e)));return t._nextDay&&(
|
|
389
380
|
// Adding is smart enough around DST
|
|
390
|
-
t.add(1,"d"),t._nextDay=void 0),t}function zi(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)),T(t)?new w(
|
|
381
|
+
t.add(1,"d"),t._nextDay=void 0),t}function zi(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)),T(t)?new w(Li(t)):(d(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()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ni(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Yi(e)):o(t)?$i(e):c(t)?
|
|
391
382
|
// from milliseconds
|
|
392
|
-
e._d=new Date(t):n.createFromInputFallback(e)}function
|
|
383
|
+
e._d=new Date(t):n.createFromInputFallback(e)}function qi(e,t,i,n,r){var s={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),
|
|
393
384
|
// object construction must be done this way.
|
|
394
385
|
// https://github.com/moment/moment/issues/1423
|
|
395
|
-
s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=i,s._i=e,s._f=t,s._strict=n,Wi(s)}function
|
|
386
|
+
s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=i,s._i=e,s._f=t,s._strict=n,Wi(s)}function Zi(e,t,i,n){return qi(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(){},
|
|
396
387
|
// constant that refers to the RFC 2822 form
|
|
397
|
-
n.RFC_2822=function(){};var Xi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=
|
|
388
|
+
n.RFC_2822=function(){};var Xi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Ki=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));
|
|
398
389
|
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
399
390
|
// other. This relies on the function fn to be transitive.
|
|
400
391
|
|
|
401
392
|
// moments should either be an array of moment objects or an array, whose
|
|
402
393
|
// first element is an array of moment objects.
|
|
403
|
-
function Ji(e,t){var i,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return
|
|
394
|
+
function Ji(e,t){var i,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Zi();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}
|
|
404
395
|
// TODO: Use [].sort instead?
|
|
405
|
-
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(s(e,t)&&(-1===
|
|
406
|
-
parseFloat(e[nn[i]])!==
|
|
396
|
+
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(s(e,t)&&(-1===qe.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
|
|
397
|
+
parseFloat(e[nn[i]])!==He(e[nn[i]])&&(n=!0)}return!0}function an(){return this._isValid}function on(){return An(NaN)}function sn(e){var t=re(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rn(t),
|
|
407
398
|
// representation for dateAddRemove
|
|
408
399
|
this._milliseconds=+c+1e3*u+// 1000
|
|
409
400
|
6e4*l+// 1000 * 60
|
|
@@ -416,20 +407,20 @@ this._days=+o+7*a,
|
|
|
416
407
|
// it separately.
|
|
417
408
|
this._months=+r+3*n+12*i,this._data={},this._locale=bi(),this._bubble()}function ln(e){return e instanceof sn}function un(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
|
418
409
|
// compare two arrays, return the number of differences
|
|
419
|
-
function cn(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&
|
|
410
|
+
function cn(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&He(e[n])!==He(t[n]))&&o++;return o+a}
|
|
420
411
|
// FORMATTING
|
|
421
412
|
function dn(e,t){I(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+t+R(~~e%60,2)}))}dn("Z",":"),dn("ZZ",""),
|
|
422
413
|
// PARSING
|
|
423
|
-
|
|
414
|
+
Me("Z",we),Me("ZZ",we),Oe(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=mn(we,e)}));
|
|
424
415
|
// HELPERS
|
|
425
416
|
// timezone chunker
|
|
426
417
|
// '+10:00' > ['10', '00']
|
|
427
418
|
// '-1530' > ['-15', '30']
|
|
428
|
-
var hn=/([\+\-]|\d\d)/gi;function mn(e,t){var i,n,r=(t||"").match(e);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(hn)||["-",0,0])[1]+
|
|
419
|
+
var hn=/([\+\-]|\d\d)/gi;function mn(e,t){var i,n,r=(t||"").match(e);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(hn)||["-",0,0])[1]+He(i[2]))?0:"+"===i[0]?n:-n}
|
|
429
420
|
// Return a moment from input, that is local/utc/zone equivalent to model.
|
|
430
|
-
function fn(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(T(e)||d(e)?e.valueOf():
|
|
421
|
+
function fn(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(T(e)||d(e)?e.valueOf():Zi(e).valueOf())-i.valueOf(),
|
|
431
422
|
// Use low-level api, because this fn is low-level api.
|
|
432
|
-
i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):
|
|
423
|
+
i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Zi(e).local()}function pn(e){
|
|
433
424
|
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
|
434
425
|
// https://github.com/moment/moment/pull/1871
|
|
435
426
|
return-Math.round(e._d.getTimezoneOffset())}
|
|
@@ -446,7 +437,7 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
446
437
|
// a second time. In case it wants us to change the offset again
|
|
447
438
|
// _changeInProgress == true case, then we have to adjust, because
|
|
448
439
|
// there is no such time in the given timezone.
|
|
449
|
-
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(
|
|
440
|
+
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(we,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?On(this,An(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 Ln(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mn(_e,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _n(e){return!!this.isValid()&&(e=e?Zi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Tn(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zi(t))._a?(e=t._isUTC?f(t._a):Zi(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function En(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function kn(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
450
441
|
// ASP.NET json date format regex
|
|
451
442
|
n.updateOffset=function(){};var Mn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
452
443
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
@@ -454,31 +445,31 @@ n.updateOffset=function(){};var Mn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\
|
|
|
454
445
|
// and further modified to allow for strings containing both week and day
|
|
455
446
|
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 An(e,t){var i,n,r,a=e,
|
|
456
447
|
// matching against regexp is expensive, do it on demand
|
|
457
|
-
o=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):(o=Mn.exec(e))?(i="-"===o[1]?-1:1,a={y:0,d:
|
|
448
|
+
o=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):(o=Mn.exec(e))?(i="-"===o[1]?-1:1,a={y:0,d:He(o[Ie])*i,h:He(o[je])*i,m:He(o[Ge])*i,s:He(o[Fe])*i,ms:He(un(1e3*o[$e]))*i}):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,a={y:Pn(o[2],i),M:Pn(o[3],i),w:Pn(o[4],i),d:Pn(o[5],i),h:Pn(o[6],i),m:Pn(o[7],i),s:Pn(o[8],i)}):null==a?
|
|
458
449
|
// checks for null or undefined
|
|
459
|
-
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=
|
|
450
|
+
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Hn(Zi(a.from),Zi(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),n=new sn(a),ln(e)&&s(e,"_locale")&&(n._locale=e._locale),ln(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function Pn(e,t){
|
|
460
451
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
461
452
|
// converts floats to ints.
|
|
462
453
|
// inp may be undefined, so careful calling replace on it.
|
|
463
454
|
var i=e&&parseFloat(e.replace(",","."));
|
|
464
455
|
// apply sign while we're at it
|
|
465
|
-
return(isNaN(i)?0:i)*t}function Cn(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
|
|
456
|
+
return(isNaN(i)?0:i)*t}function Cn(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 Hn(e,t){var i;return e.isValid()&&t.isValid()?(t=fn(t,e),e.isBefore(t)?i=Cn(e,t):((i=Cn(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}
|
|
466
457
|
// TODO: remove 'name' arg after deprecation is removed
|
|
467
|
-
function
|
|
458
|
+
function xn(e,t){return function(i,n){var r;
|
|
468
459
|
//invert the arguments, but complain about it
|
|
469
|
-
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),On(this,An(i,n),e),this}}function On(e,t,i,r){var a=t._milliseconds,o=un(t._days),s=un(t._months);e.isValid()&&(r=null==r||r,s&&
|
|
460
|
+
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),On(this,An(i,n),e),this}}function On(e,t,i,r){var a=t._milliseconds,o=un(t._days),s=un(t._months);e.isValid()&&(r=null==r||r,s&&mt(e,Je(e,"Month")+s*i),o&&Qe(e,"Date",Je(e,"Date")+o*i),a&&e._d.setTime(e._d.valueOf()+a*i),r&&n.updateOffset(e,o||s))}An.fn=sn.prototype,An.invalid=on;var Rn=xn(1,"add"),Nn=xn(-1,"subtract");function Un(e){return"string"==typeof e||e instanceof String}
|
|
470
461
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
471
|
-
function
|
|
462
|
+
function Bn(e){return T(e)||d(e)||Un(e)||c(e)||In(e)||Yn(e)||null==e}function Yn(e){var t,i,n=o(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||s(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)&&Un(e)})).length),t&&i}function jn(e){var t,i,n=o(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||s(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){
|
|
472
463
|
// Support for single parameter, formats only overload to the calendar function
|
|
473
|
-
1===arguments.length&&(arguments[0]?
|
|
464
|
+
1===arguments.length&&(arguments[0]?Bn(arguments[0])?(e=arguments[0],t=void 0):jn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
474
465
|
// We want to compare the start of today, vs this.
|
|
475
466
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
476
|
-
var i=e||
|
|
467
|
+
var i=e||Zi(),r=fn(i,this).startOf("day"),a=n.calendarFormat(this,r)||"sameElse",o=t&&(A(t[a])?t[a].call(this,i):t[a]);return this.format(o||this.localeData().calendar(a,this,Zi(i)))}function $n(){return new w(this)}function Wn(e,t){var i=T(e)?e:Zi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function zn(e,t){var i=T(e)?e:Zi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function Vn(e,t,i,n){var r=T(e)?e:Zi(e),a=T(t)?t:Zi(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 qn(e,t){var i,n=T(e)?e:Zi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function Zn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kn(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=ne(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
|
|
477
468
|
case"minute":a=(this-n)/6e4;break;// 1000 * 60
|
|
478
469
|
case"hour":a=(this-n)/36e5;break;// 1000 * 60 * 60
|
|
479
470
|
case"day":a=(this-n-r)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
480
471
|
case"week":a=(this-n-r)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
481
|
-
default:a=this-n}return i?a:
|
|
472
|
+
default:a=this-n}return i?a:Ce(a)}function Jn(e,t){if(e.date()<t.date())
|
|
482
473
|
// end-of-month calculations work correct when the start month has more
|
|
483
474
|
// days than the end month.
|
|
484
475
|
return-Jn(t,e);
|
|
@@ -495,7 +486,7 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
|
495
486
|
* also be evaluated to get a new moment which is the same
|
|
496
487
|
*
|
|
497
488
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
498
|
-
*/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=F(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(T(e)&&e.isValid()||
|
|
489
|
+
*/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=F(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(T(e)&&e.isValid()||Zi(e).isValid())?An({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Zi(),e)}function ar(e,t){return this.isValid()&&(T(e)&&e.isValid()||Zi(e).isValid())?An({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function or(e){return this.to(Zi(),e)}
|
|
499
490
|
// If passed a locale key, it will set the locale for this
|
|
500
491
|
// instance. Otherwise, it will return the locale configuration
|
|
501
492
|
// variables for this instance.
|
|
@@ -505,94 +496,67 @@ function fr(e,t){return(e%t+t)%t}function pr(e,t,i){
|
|
|
505
496
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
506
497
|
return e<100&&e>=0?new Date(e+400,t,i)-mr:new Date(e,t,i).valueOf()}function gr(e,t,i){
|
|
507
498
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
508
|
-
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=
|
|
499
|
+
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=ne(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()*dr),hr);break;case"minute":t=this._d.valueOf(),t-=fr(t,dr);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=ne(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+=hr-fr(t+(this._isUTC?0:this.utcOffset()*dr),hr)-1;break;case"minute":t=this._d.valueOf(),t+=dr-fr(t,dr)-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 Lr(){return Math.floor(this.valueOf()/1e3)}function _r(){return new Date(this.valueOf())}function wr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Tr(){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 Er(){
|
|
509
500
|
// new Date(NaN).toJSON() === null
|
|
510
501
|
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 Ar(e,t){var i,r,a,o=this._eras||bi("en")._eras;for(i=0,r=o.length;i<r;++i)switch("string"==typeof o[i].since&&(
|
|
511
502
|
// truncate time
|
|
512
503
|
a=n(o[i].since).startOf("day"),o[i].since=a.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":
|
|
513
504
|
// truncate time
|
|
514
|
-
a=n(o[i].until).startOf("day").valueOf(),o[i].until=a.valueOf()}return o}function Pr(e,t,i){var n,r,a,o,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(a=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([a,o,s].indexOf(e)>=0)return l[n]}function Cr(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
|
|
505
|
+
a=n(o[i].until).startOf("day").valueOf(),o[i].until=a.valueOf()}return o}function Pr(e,t,i){var n,r,a,o,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(a=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([a,o,s].indexOf(e)>=0)return l[n]}function Cr(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 Hr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
515
506
|
// truncate time
|
|
516
|
-
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
|
|
507
|
+
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 xr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
517
508
|
// truncate time
|
|
518
509
|
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 Or(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
519
510
|
// truncate time
|
|
520
511
|
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 Rr(){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,
|
|
521
512
|
// truncate time
|
|
522
|
-
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 Nr(e){return s(this,"_erasNameRegex")||Fr.call(this),e?this._erasNameRegex:this._erasRegex}function
|
|
513
|
+
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 Nr(e){return s(this,"_erasNameRegex")||Fr.call(this),e?this._erasNameRegex:this._erasRegex}function Ur(e){return s(this,"_erasAbbrRegex")||Fr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Br(e){return s(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||ve}function Fr(){var e,t,i,n,r,a=[],o=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)i=Pe(u[e].name),n=Pe(u[e].abbr),r=Pe(u[e].narrow),o.push(i),a.push(n),s.push(r),l.push(i),l.push(n),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}
|
|
523
514
|
// FORMATTING
|
|
524
515
|
function $r(e,t){I(0,[e,e.length],0,t)}
|
|
525
516
|
// MOMENTS
|
|
526
|
-
function Wr(e){return Kr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zr(e){return Kr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return Et(this.year(),1,4)}function
|
|
517
|
+
function Wr(e){return Kr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zr(e){return Kr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return Et(this.year(),1,4)}function qr(){return Et(this.isoWeekYear(),1,4)}function Zr(){var e=this.localeData()._week;return Et(this.year(),e.dow,e.doy)}function Xr(){var e=this.localeData()._week;return Et(this.weekYear(),e.dow,e.doy)}function Kr(e,t,i,n,r){var a;return null==e?Tt(this,n,r).year:(t>(a=Et(e,n,r))&&(t=a),Jr.call(this,e,t,i,n,r))}function Jr(e,t,i,n,r){var a=wt(e,t,i,n,r),o=Lt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}
|
|
527
518
|
// FORMATTING
|
|
528
519
|
// MOMENTS
|
|
529
520
|
function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
530
521
|
// FORMATTING
|
|
531
|
-
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"),
|
|
522
|
+
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"),Me("N",Yr),Me("NN",Yr),Me("NNN",Yr),Me("NNNN",Ir),Me("NNNNN",jr),Oe(["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})),Me("y",ve),Me("yy",ve),Me("yyy",ve),Me("yyyy",ve),Me("yo",Gr),Oe(["y","yy","yyy","yyyy"],Be),Oe(["yo"],(function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[Be]=i._locale.eraYearOrdinalParse(e,r):t[Be]=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"),
|
|
532
523
|
// ALIASES
|
|
533
|
-
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
534
|
-
// PRIORITY
|
|
535
|
-
se("weekYear",1),se("isoWeekYear",1),
|
|
536
524
|
// PARSING
|
|
537
|
-
|
|
538
|
-
// ALIASES
|
|
539
|
-
ne("quarter","Q"),
|
|
540
|
-
// PRIORITY
|
|
541
|
-
se("quarter",7),
|
|
525
|
+
Me("G",Le),Me("g",Le),Me("GG",me,ue),Me("gg",me,ue),Me("GGGG",ye,de),Me("gggg",ye,de),Me("GGGGG",be,he),Me("ggggg",be,he),Re(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=He(e)})),Re(["gg","GG"],(function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),
|
|
542
526
|
// PARSING
|
|
543
|
-
|
|
544
|
-
// ALIASES
|
|
545
|
-
ne("date","D"),
|
|
546
|
-
// PRIORITY
|
|
547
|
-
se("date",9),
|
|
527
|
+
Me("Q",le),Oe("Q",(function(e,t){t[Ye]=3*(He(e)-1)})),I("D",["DD",2],"Do","date"),
|
|
548
528
|
// PARSING
|
|
549
|
-
|
|
529
|
+
Me("D",me,Se),Me("DD",me,ue),Me("Do",(function(e,t){
|
|
550
530
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
551
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),
|
|
531
|
+
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Oe(["D","DD"],Ie),Oe("Do",(function(e,t){t[Ie]=He(e.match(me)[0])}));
|
|
552
532
|
// MOMENTS
|
|
553
|
-
var ea=
|
|
533
|
+
var ea=Ke("Date",!0);
|
|
554
534
|
// FORMATTING
|
|
555
535
|
// HELPERS
|
|
556
536
|
// MOMENTS
|
|
557
537
|
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")}
|
|
558
538
|
// FORMATTING
|
|
559
539
|
I("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
560
|
-
// ALIASES
|
|
561
|
-
ne("dayOfYear","DDD"),
|
|
562
|
-
// PRIORITY
|
|
563
|
-
se("dayOfYear",4),
|
|
564
540
|
// PARSING
|
|
565
|
-
|
|
566
|
-
// ALIASES
|
|
567
|
-
ne("minute","m"),
|
|
568
|
-
// PRIORITY
|
|
569
|
-
se("minute",14),
|
|
541
|
+
Me("DDD",ge),Me("DDDD",ce),Oe(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=He(e)})),I("m",["mm",2],0,"minute"),
|
|
570
542
|
// PARSING
|
|
571
|
-
|
|
543
|
+
Me("m",me,ke),Me("mm",me,ue),Oe(["m","mm"],Ge);
|
|
572
544
|
// MOMENTS
|
|
573
|
-
var ia=
|
|
545
|
+
var ia=Ke("Minutes",!1);
|
|
574
546
|
// FORMATTING
|
|
575
547
|
I("s",["ss",2],0,"second"),
|
|
576
|
-
// ALIASES
|
|
577
|
-
ne("second","s"),
|
|
578
|
-
// PRIORITY
|
|
579
|
-
se("second",15),
|
|
580
548
|
// PARSING
|
|
581
|
-
|
|
549
|
+
Me("s",me,ke),Me("ss",me,ue),Oe(["s","ss"],Fe);
|
|
582
550
|
// MOMENTS
|
|
583
|
-
var na,ra,aa=
|
|
551
|
+
var na,ra,aa=Ke("Seconds",!1);
|
|
584
552
|
// FORMATTING
|
|
585
553
|
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()})),
|
|
586
|
-
// ALIASES
|
|
587
|
-
ne("millisecond","ms"),
|
|
588
|
-
// PRIORITY
|
|
589
|
-
se("millisecond",16),
|
|
590
554
|
// PARSING
|
|
591
|
-
|
|
555
|
+
Me("S",ge,le),Me("SS",ge,ue),Me("SSS",ge,ce),na="SSSS";na.length<=9;na+="S")Me(na,ve);function oa(e,t){t[$e]=He(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")Oe(na,oa);
|
|
592
556
|
// MOMENTS
|
|
593
|
-
function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=
|
|
557
|
+
function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=Ke("Milliseconds",!1),
|
|
594
558
|
// FORMATTING
|
|
595
|
-
I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){return
|
|
559
|
+
I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){return Zi(1e3*e)}function da(){return Zi.apply(null,arguments).parseZone()}function ha(e){return e}ua.add=Rn,ua.calendar=Fn,ua.clone=$n,ua.diff=Kn,ua.endOf=br,ua.format=ir,ua.from=nr,ua.fromNow=rr,ua.to=ar,ua.toNow=or,ua.get=et,ua.invalidAt=Mr,ua.isAfter=Wn,ua.isBefore=zn,ua.isBetween=Vn,ua.isSame=qn,ua.isSameOrAfter=Zn,ua.isSameOrBefore=Xn,ua.isValid=Sr,ua.lang=lr,ua.locale=sr,ua.localeData=ur,ua.max=Ki,ua.min=Xi,ua.parsingFlags=kr,ua.set=tt,ua.startOf=yr,ua.subtract=Nn,ua.toArray=wr,ua.toObject=Tr,ua.toDate=_r,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=Er,ua.toString=Qn,ua.unix=Lr,ua.valueOf=vr,ua.creationData=Dr,ua.eraName=Hr,ua.eraNarrow=xr,ua.eraAbbr=Or,ua.eraYear=Rr,ua.year=Ze,ua.isLeapYear=Xe,ua.weekYear=Wr,ua.isoWeekYear=zr,ua.quarter=ua.quarters=Qr,ua.month=ft,ua.daysInMonth=pt,ua.week=ua.weeks=At,ua.isoWeek=ua.isoWeeks=Pt,ua.weeksInYear=Zr,ua.weeksInWeekYear=Xr,ua.isoWeeksInYear=Vr,ua.isoWeeksInISOWeekYear=qr,ua.date=ea,ua.day=ua.days=Wt,ua.weekday=zt,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=Ln,ua.hasAlignedHourOffset=_n,ua.isDST=wn,ua.isLocal=En,ua.isUtcOffset=Sn,ua.isUtc=kn,ua.isUTC=kn,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=S("dates accessor is deprecated. Use date instead.",ea),ua.months=S("months accessor is deprecated. Use month instead",ft),ua.years=S("years accessor is deprecated. Use year instead",Ze),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",Tn);var ma=H.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}
|
|
596
560
|
// ()
|
|
597
561
|
// (5)
|
|
598
562
|
// (fmt, 5)
|
|
@@ -601,7 +565,7 @@ I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){r
|
|
|
601
565
|
// (true, 5)
|
|
602
566
|
// (true, fmt, 5)
|
|
603
567
|
// (true, fmt)
|
|
604
|
-
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(),o=e?a._week.dow:0,s=[];if(null!=i)return fa(t,(i+o)%7,n,"day");for(r=0;r<7;r++)s[r]=fa(t,(r+o)%7,n,"day");return s}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
|
|
568
|
+
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(),o=e?a._week.dow:0,s=[];if(null!=i)return fa(t,(i+o)%7,n,"day");for(r=0;r<7;r++)s[r]=fa(t,(r+o)%7,n,"day");return s}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 La(e,t,i){return ga(e,t,i,"weekdaysShort")}function _a(e,t,i){return ga(e,t,i,"weekdaysMin")}ma.calendar=O,ma.longDateFormat=V,ma.invalidDate=Z,ma.ordinal=J,ma.preparse=ha,ma.postformat=ha,ma.relativeTime=ee,ma.pastFuture=te,ma.set=P,ma.eras=Ar,ma.erasParse=Pr,ma.erasConvertYear=Cr,ma.erasAbbrRegex=Ur,ma.erasNameRegex=Nr,ma.erasNarrowRegex=Br,ma.months=ut,ma.monthsShort=ct,ma.monthsParse=ht,ma.monthsRegex=yt,ma.monthsShortRegex=gt,ma.week=St,ma.firstDayOfYear=Dt,ma.firstDayOfWeek=Mt,ma.weekdays=It,ma.weekdaysMin=Gt,ma.weekdaysShort=jt,ma.weekdaysParse=$t,ma.weekdaysRegex=qt,ma.weekdaysShortRegex=Zt,ma.weekdaysMinRegex=Xt,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")}}),
|
|
605
569
|
// Side effect imports
|
|
606
570
|
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 wa=Math.abs;function Ta(){var e=this._data;return this._milliseconds=wa(this._milliseconds),this._days=wa(this._days),this._months=wa(this._months),e.milliseconds=wa(e.milliseconds),e.seconds=wa(e.seconds),e.minutes=wa(e.minutes),e.hours=wa(e.hours),e.months=wa(e.months),e.years=wa(e.years),this}function Ea(e,t,i,n){var r=An(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}
|
|
607
571
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
@@ -613,22 +577,20 @@ function ka(e,t){return Ea(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):
|
|
|
613
577
|
return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ma(Pa(s)+o),o=0,s=0),
|
|
614
578
|
// The following code bubbles up values, see the tests for
|
|
615
579
|
// examples of what that means.
|
|
616
|
-
l.milliseconds=a%1e3,e=
|
|
580
|
+
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,o+=Ce(i/24),s+=
|
|
617
581
|
// convert days to months
|
|
618
|
-
r=
|
|
582
|
+
r=Ce(Aa(o)),o-=Ma(Pa(r)),
|
|
619
583
|
// 12 months -> 1 year
|
|
620
|
-
n=
|
|
584
|
+
n=Ce(s/12),s%=12,l.days=o,l.months=s,l.years=n,this}function Aa(e){
|
|
621
585
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
622
586
|
// 400 years have 12 months === 4800
|
|
623
587
|
return 4800*e/146097}function Pa(e){
|
|
624
588
|
// the reverse of daysToMonths
|
|
625
|
-
return 146097*e/4800}function Ca(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=
|
|
589
|
+
return 146097*e/4800}function Ca(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Aa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(
|
|
626
590
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
627
591
|
t=this._days+Math.round(Pa(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;
|
|
628
592
|
// Math.floor prevents floating point math errors here
|
|
629
|
-
case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}
|
|
630
|
-
// TODO: Use this.as('ms')?
|
|
631
|
-
function xa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function Ha(e){return function(){return this.as(e)}}var Oa=Ha("ms"),Ra=Ha("s"),Na=Ha("m"),Ba=Ha("h"),Ua=Ha("d"),Ya=Ha("w"),Ia=Ha("M"),ja=Ha("Q"),Ga=Ha("y");function Fa(){return An(this)}function $a(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var za=Wa("milliseconds"),Va=Wa("seconds"),Za=Wa("minutes"),qa=Wa("hours"),Xa=Wa("days"),Ka=Wa("months"),Ja=Wa("years");function Qa(){return ce(this.days()/7)}var eo=Math.round,to={ss:44,// a few seconds to seconds
|
|
593
|
+
case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Ha(e){return function(){return this.as(e)}}var xa=Ha("ms"),Oa=Ha("s"),Ra=Ha("m"),Na=Ha("h"),Ua=Ha("d"),Ba=Ha("w"),Ya=Ha("M"),Ia=Ha("Q"),ja=Ha("y"),Ga=xa;function Fa(){return An(this)}function $a(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var za=Wa("milliseconds"),Va=Wa("seconds"),qa=Wa("minutes"),Za=Wa("hours"),Xa=Wa("days"),Ka=Wa("months"),Ja=Wa("years");function Qa(){return Ce(this.days()/7)}var eo=Math.round,to={ss:44,// a few seconds to seconds
|
|
632
594
|
s:45,// seconds to minute
|
|
633
595
|
m:45,// minutes to hour
|
|
634
596
|
h:22,// hours to day
|
|
@@ -650,17 +612,17 @@ function ao(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.
|
|
|
650
612
|
// and also not between days and months (28-31 days per month)
|
|
651
613
|
if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,a,o,s,l=so(this._milliseconds)/1e3,u=so(this._days),c=so(this._months),d=this.asSeconds();return d?(
|
|
652
614
|
// 3600 seconds -> 60 minutes -> 1 hour
|
|
653
|
-
e=
|
|
615
|
+
e=Ce(l/60),t=Ce(e/60),l%=60,e%=60,
|
|
654
616
|
// 12 months -> 1 year
|
|
655
|
-
i=
|
|
617
|
+
i=Ce(c/12),c%=12,
|
|
656
618
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
657
|
-
n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",a=lo(this._months)!==lo(d)?"-":"",o=lo(this._days)!==lo(d)?"-":"",s=lo(this._milliseconds)!==lo(d)?"-":"",r+"P"+(i?a+i+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var co=sn.prototype;return co.isValid=an,co.abs=Ta,co.add=Sa,co.subtract=ka,co.as=Ca,co.asMilliseconds=
|
|
619
|
+
n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",a=lo(this._months)!==lo(d)?"-":"",o=lo(this._days)!==lo(d)?"-":"",s=lo(this._milliseconds)!==lo(d)?"-":"",r+"P"+(i?a+i+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var co=sn.prototype;return co.isValid=an,co.abs=Ta,co.add=Sa,co.subtract=ka,co.as=Ca,co.asMilliseconds=xa,co.asSeconds=Oa,co.asMinutes=Ra,co.asHours=Na,co.asDays=Ua,co.asWeeks=Ba,co.asMonths=Ya,co.asQuarters=Ia,co.asYears=ja,co.valueOf=Ga,co._bubble=Da,co.clone=Fa,co.get=$a,co.milliseconds=za,co.seconds=Va,co.minutes=qa,co.hours=Za,co.days=Xa,co.weeks=Qa,co.months=Ka,co.years=Ja,co.humanize=oo,co.toISOString=uo,co.toString=uo,co.toJSON=uo,co.locale=sr,co.localeData=ur,co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),co.lang=lr,
|
|
658
620
|
// FORMATTING
|
|
659
621
|
I("X",0,0,"unix"),I("x",0,0,"valueOf"),
|
|
660
622
|
// PARSING
|
|
661
|
-
|
|
623
|
+
Me("x",Le),Me("X",Te),Oe("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),Oe("x",(function(e,t,i){i._d=new Date(He(e))})),
|
|
662
624
|
//! moment.js
|
|
663
|
-
n.version="2.
|
|
625
|
+
n.version="2.30.1",r(Zi),n.fn=ua,n.min=Qi,n.max=en,n.now=tn,n.utc=f,n.unix=ca,n.months=ya,n.isDate=d,n.locale=pi,n.invalid=b,n.duration=An,n.isMoment=T,n.weekdays=va,n.parseZone=da,n.localeData=bi,n.isDuration=ln,n.monthsShort=ba,n.weekdaysMin=_a,n.defineLocale=gi,n.updateLocale=yi,n.locales=vi,n.weekdaysShort=La,n.normalizeUnits=ne,n.relativeTimeRounding=ro,n.relativeTimeThreshold=ao,n.calendarFormat=Gn,n.prototype=ua,
|
|
664
626
|
// currently HTML5 input type only supports 24-hour formats
|
|
665
627
|
n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
666
628
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -682,23 +644,23 @@ MONTH:"YYYY-MM"},n}()}));const z=[];
|
|
|
682
644
|
* @param {StartStopNotifier=} start
|
|
683
645
|
*/
|
|
684
646
|
function V(t,i=e){let n;const r=new Set;function o(e){if(a(t,e)&&(t=e,n)){// store is ready
|
|
685
|
-
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:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return r.add(l),1===r.size&&(n=i(o)||e),a(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function
|
|
647
|
+
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:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return r.add(l),1===r.size&&(n=i(o)||e),a(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function q(t,i,a){const o=!Array.isArray(t),s=o?[t]:t,u=i.length<2;return c=t=>{let a=!1;const c=[];let d=0,h=e;const m=()=>{if(d)return;h();const n=i(o?c[0]:c,t);u?t(n):h=r(n)?n:e},f=s.map(((e,t)=>l(e,(e=>{c[t]=e,d&=~(1<<t),a&&m()}),(()=>{d|=1<<t}))));return a=!0,m(),function(){n(f),h(),
|
|
686
648
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
687
649
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
688
650
|
// invoke this derived store.
|
|
689
|
-
a=!1}},{subscribe:V(a,c).subscribe};var c}var
|
|
651
|
+
a=!1}},{subscribe:V(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)}
|
|
690
652
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
691
653
|
(e)};var X="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function K(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ie((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function J(e,t,i){return e.concat(t).map((function(e){return K(e,i)}))}function Q(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 ee(e,t){try{return t in e}catch(e){return!1}}
|
|
692
654
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
693
655
|
function te(e,t,i){var n={};return i.isMergeableObject(e)&&Q(e).forEach((function(t){n[t]=K(e[t],i)})),Q(t).forEach((function(r){(function(e,t){return ee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
694
|
-
})(e,r)||(ee(e,r)&&i.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return ie;var i=t.customMerge(e);return"function"==typeof i?i:ie}(r,i)(e[r],t[r],i):n[r]=K(t[r],i))})),n}function ie(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||J,i.isMergeableObject=i.isMergeableObject||
|
|
656
|
+
})(e,r)||(ee(e,r)&&i.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return ie;var i=t.customMerge(e);return"function"==typeof i?i:ie}(r,i)(e[r],t[r],i):n[r]=K(t[r],i))})),n}function ie(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||J,i.isMergeableObject=i.isMergeableObject||Z,
|
|
695
657
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
696
658
|
// implementations can use it. The caller may not replace it.
|
|
697
659
|
i.cloneUnlessOtherwiseSpecified=K;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):te(e,t,i):K(t,i)}ie.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return ie(e,i,t)}),{})};var ne=ie,re=function(e,t){return re=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])},re(e,t)};function ae(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}re(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var oe,se,le,ue=function(){return ue=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},ue.apply(this,arguments)};function ce(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))}
|
|
698
660
|
/**
|
|
699
661
|
* Type Guards
|
|
700
662
|
*/
|
|
701
|
-
function de(e){return e.type===se.literal}function he(e){return e.type===se.argument}function me(e){return e.type===se.number}function fe(e){return e.type===se.date}function pe(e){return e.type===se.time}function ge(e){return e.type===se.select}function ye(e){return e.type===se.plural}function be(e){return e.type===se.pound}function ve(e){return e.type===se.tag}function
|
|
663
|
+
function de(e){return e.type===se.literal}function he(e){return e.type===se.argument}function me(e){return e.type===se.number}function fe(e){return e.type===se.date}function pe(e){return e.type===se.time}function ge(e){return e.type===se.select}function ye(e){return e.type===se.plural}function be(e){return e.type===se.pound}function ve(e){return e.type===se.tag}function Le(e){return!(!e||"object"!=typeof e||e.type!==le.number)}function _e(e){return!(!e||"object"!=typeof e||e.type!==le.dateTime)}
|
|
702
664
|
// @generated from regex-gen.ts
|
|
703
665
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
704
666
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -845,12 +807,12 @@ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `
|
|
|
845
807
|
// @generated from regex-gen.ts
|
|
846
808
|
var Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ke=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Me=/^(@+)?(\+|#+)?[rs]?$/g,De=/(\*)(0+)|(#+)(0+)|(0+)/g,Ae=/^(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(Me,(function(e,i,n){
|
|
847
809
|
// @@@ case
|
|
848
|
-
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 Ce(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
|
|
810
|
+
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 Ce(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){
|
|
849
811
|
// Engineering
|
|
850
|
-
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)),!Ae.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function
|
|
812
|
+
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)),!Ae.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xe(e){var t=Ce(e);return t||{}}
|
|
851
813
|
/**
|
|
852
814
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
853
|
-
*/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=ue(ue(ue({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return ue(ue({},e),
|
|
815
|
+
*/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=ue(ue(ue({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return ue(ue({},e),xe(t))}),{}));continue;case"engineering":t=ue(ue(ue({},t),{notation:"engineering"}),r.options.reduce((function(e,t){return ue(ue({},e),xe(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
854
816
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
855
817
|
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;
|
|
856
818
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
@@ -866,7 +828,7 @@ return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDi
|
|
|
866
828
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
867
829
|
"w"===a?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ue(ue({},t),Pe(a)))}
|
|
868
830
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
869
|
-
else if(Me.test(r.stem))t=ue(ue({},t),Pe(r.stem));else{var o=Ce(r.stem);o&&(t=ue(ue({},t),o));var s=
|
|
831
|
+
else if(Me.test(r.stem))t=ue(ue({},t),Pe(r.stem));else{var o=Ce(r.stem);o&&(t=ue(ue({},t),o));var s=He(r.stem);s&&(t=ue(ue({},t),s))}}return t}
|
|
870
832
|
// @generated from time-data-gen.ts
|
|
871
833
|
// prettier-ignore
|
|
872
834
|
var Re,Ne={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"]};
|
|
@@ -882,7 +844,7 @@ var Re,Ne={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
882
844
|
* of the given `locale` to the corresponding time pattern.
|
|
883
845
|
* @param locale
|
|
884
846
|
*/
|
|
885
|
-
function
|
|
847
|
+
function Ue(e){var t=e.hourCycle;if(void 0===t&&
|
|
886
848
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
887
849
|
e.hourCycles&&
|
|
888
850
|
// @ts-ignore
|
|
@@ -890,17 +852,17 @@ e.hourCycles.length&&(
|
|
|
890
852
|
// @ts-ignore
|
|
891
853
|
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")}
|
|
892
854
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
893
|
-
var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(Ne[i||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"])[0]}var
|
|
855
|
+
var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(Ne[i||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"])[0]}var Be=new RegExp("^".concat(we.source,"*")),Ye=new RegExp("".concat(we.source,"*$"));function Ie(e,t){return{start:e,end:t}}
|
|
894
856
|
// #region Ponyfills
|
|
895
857
|
// Consolidate these variables up top for easier toggling during debugging
|
|
896
|
-
var je=!!String.prototype.startsWith,Ge=!!String.fromCodePoint,Fe=!!Object.fromEntries,$e=!!String.prototype.codePointAt,We=!!String.prototype.trimStart,ze=!!String.prototype.trimEnd,Ve=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},
|
|
858
|
+
var je=!!String.prototype.startsWith,Ge=!!String.fromCodePoint,Fe=!!Object.fromEntries,$e=!!String.prototype.codePointAt,We=!!String.prototype.trimStart,ze=!!String.prototype.trimEnd,Ve=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},qe=!0;try{
|
|
897
859
|
/**
|
|
898
860
|
* legacy Edge or Xbox One browser
|
|
899
861
|
* Unicode flag support: supported
|
|
900
862
|
* Pattern_Syntax support: not supported
|
|
901
863
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
902
864
|
*/
|
|
903
|
-
|
|
865
|
+
qe="a"===(null===(Re=it("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Re?void 0:Re[0])}catch(e){qe=!1}var Ze,Xe=je?// Native
|
|
904
866
|
function(e,t,i){return e.startsWith(t,i)}:// For IE11
|
|
905
867
|
function(e,t,i){return e.slice(i,i+t.length)===t},Ke=Ge?String.fromCodePoint:// IE11
|
|
906
868
|
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},Je=
|
|
@@ -910,17 +872,17 @@ function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],a=r[0],o=r[1];t[a]=o
|
|
|
910
872
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
911
873
|
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}},et=We?// Native
|
|
912
874
|
function(e){return e.trimStart()}:// Ponyfill
|
|
913
|
-
function(e){return e.replace(
|
|
875
|
+
function(e){return e.replace(Be,"")},tt=ze?// Native
|
|
914
876
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
915
877
|
function(e){return e.replace(Ye,"")};
|
|
916
878
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
917
879
|
function it(e,t){return new RegExp(e,t)}
|
|
918
880
|
// #endregion
|
|
919
|
-
if(
|
|
881
|
+
if(qe){
|
|
920
882
|
// Native
|
|
921
|
-
var nt=it("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");
|
|
883
|
+
var nt=it("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ze=function(e,t){var i;return nt.lastIndex=t,null!==(i=nt.exec(e)[1])&&void 0!==i?i:""}}else
|
|
922
884
|
// IE11
|
|
923
|
-
|
|
885
|
+
Ze=function(e,t){for(var i=[];;){var n=Qe(e,t);if(void 0===n||ot(n)||st(n))break;i.push(n),t+=n>=65536?2:1}return Ke.apply(void 0,i)};var rt=/** @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(oe.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===r&&!this.ignoreTag&&at(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 o=this.clonePosition();this.bump(),n.push({type:se.pound,location:Ie(o,this.clonePosition())})}}}return{val:n,err:null}},
|
|
924
886
|
/**
|
|
925
887
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
926
888
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -987,7 +949,7 @@ this.bumpSpace(),this.isEOF()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(i,t
|
|
|
987
949
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
988
950
|
* an identifier character. Return an empty string otherwise.
|
|
989
951
|
*/
|
|
990
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=
|
|
952
|
+
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:Ie(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,n){var r,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();
|
|
991
953
|
// Parse this range:
|
|
992
954
|
// {name, type, style}
|
|
993
955
|
// ^---^
|
|
@@ -1005,7 +967,7 @@ var d=et(l.style.slice(2));if("number"===o)return(y=this.parseNumberSkeletonFrom
|
|
|
1005
967
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
1006
968
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
1007
969
|
// for unsupported patterns.
|
|
1008
|
-
this.locale&&(h=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 o=1+(1&a),s=a<2?1:3+(a>>1),l=
|
|
970
|
+
this.locale&&(h=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 o=1+(1&a),s=a<2?1:3+(a>>1),l=Ue(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)i+="a";for(;o-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(d,this.locale));var m={type:le.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ee(h):{}};return{val:{type:"date"===o?se.date:se.time,value:i,location:c,style:m},err:null}}
|
|
1009
971
|
// Regular style or no style.
|
|
1010
972
|
return{val:{type:"number"===o?se.number:"date"===o?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":
|
|
1011
973
|
// Parse this range:
|
|
@@ -1020,7 +982,7 @@ var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
1020
982
|
// ^--^
|
|
1021
983
|
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==o&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ie(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,oe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
1022
984
|
// Parse another identifier for option parsing
|
|
1023
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,o,t,p);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var
|
|
985
|
+
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,o,t,p);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var L=Ie(n,this.clonePosition());return"select"===o?{val:{type:se.select,value:i,options:Je(v.val),location:L},err:null}:{val:{type:se.plural,value:i,options:Je(v.val),offset:g,pluralType:"plural"===o?"cardinal":"ordinal",location:L},err:null};default:return this.error(oe.INVALID_ARGUMENT_TYPE,Ie(a,s))}},e.prototype.tryParseArgumentClose=function(e){
|
|
1024
986
|
// Parse: {value, number, ::currency/GBP }
|
|
1025
987
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
1026
988
|
/**
|
|
@@ -1107,7 +1069,7 @@ function ot(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||
|
|
|
1107
1069
|
/**
|
|
1108
1070
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
1109
1071
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1110
|
-
*/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 lt(e){e.forEach((function(e){if(delete e.location,ge(e)||ye(e))for(var t in e.options)delete e.options[t].location,lt(e.options[t].value);else me(e)&&
|
|
1072
|
+
*/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 lt(e){e.forEach((function(e){if(delete e.location,ge(e)||ye(e))for(var t in e.options)delete e.options[t].location,lt(e.options[t].value);else me(e)&&Le(e.style)||(fe(e)||pe(e))&&_e(e.style)?delete e.style.location:ve(e)&<(e.children)}))}function ut(e,t){void 0===t&&(t={}),t=ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new rt(e,t).parse();if(i.err){var n=SyntaxError(oe[i.err.kind]);
|
|
1111
1073
|
// @ts-expect-error Assign to error object
|
|
1112
1074
|
throw n.location=i.err.location,
|
|
1113
1075
|
// @ts-expect-error Assign to error object
|
|
@@ -1133,33 +1095,33 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
1133
1095
|
// When value supplied is invalid
|
|
1134
1096
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
1135
1097
|
// When we need specific Intl API but it's not available
|
|
1136
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(yt||(yt={}));var _t
|
|
1098
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(yt||(yt={}));var Lt,_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 ae(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('", "'),'"'),yt.INVALID_VALUE,r)||this}return ae(t,e),t}(_t),Tt=/** @class */function(e){function t(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),yt.INVALID_VALUE,n)||this}return ae(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,'"'),yt.MISSING_VALUE,i)||this}return ae(t,e),t}(_t);function St(e){return"function"==typeof e}
|
|
1137
1099
|
// TODO(skeleton): add skeleton support
|
|
1138
1100
|
function kt(e,t,i,n,r,a,
|
|
1139
1101
|
// For debugging
|
|
1140
1102
|
o){
|
|
1141
1103
|
// Hot path for straight simple msg translations
|
|
1142
|
-
if(1===e.length&&de(e[0]))return[{type:
|
|
1104
|
+
if(1===e.length&&de(e[0]))return[{type:Lt.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
1143
1105
|
// Exit early for string parts.
|
|
1144
|
-
if(de(c))s.push({type:
|
|
1106
|
+
if(de(c))s.push({type:Lt.literal,value:c.value});else
|
|
1145
1107
|
// TODO: should this part be literal type?
|
|
1146
1108
|
// Replace `#` in plural rules with the actual numeric value.
|
|
1147
|
-
if(be(c))"number"==typeof a&&s.push({type:
|
|
1109
|
+
if(be(c))"number"==typeof a&&s.push({type:Lt.literal,value:i.getNumberFormat(t).format(a)});else{var d=c.value;
|
|
1148
1110
|
// Enforce that all required values are provided by the caller.
|
|
1149
|
-
if(!r||!(d in r))throw new Et(d,o);var h=r[d];if(he(c))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?
|
|
1111
|
+
if(!r||!(d in r))throw new Et(d,o);var h=r[d];if(he(c))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Lt.literal:Lt.object,value:h});else
|
|
1150
1112
|
// Recursively format plural and select parts' option — which can be a
|
|
1151
1113
|
// nested pattern structure. The choosing of the option to use is
|
|
1152
1114
|
// abstracted-by and delegated-to the part helper object.
|
|
1153
|
-
if(fe(c)){var m="string"==typeof c.style?n.date[c.style]:
|
|
1115
|
+
if(fe(c)){var m="string"==typeof c.style?n.date[c.style]:_e(c.style)?c.style.parsedOptions:void 0;s.push({type:Lt.literal,value:i.getDateTimeFormat(t,m).format(h)})}else if(pe(c)){m="string"==typeof c.style?n.time[c.style]:_e(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:Lt.literal,value:i.getDateTimeFormat(t,m).format(h)})}else if(me(c)){(m="string"==typeof c.style?n.number[c.style]:Le(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(h*=m.scale||1),s.push({type:Lt.literal,value:i.getNumberFormat(t,m).format(h)})}else{if(ve(c)){var f=c.children,p=c.value,g=r[p];if(!St(g))throw new Tt(p,"function",o);var y=g(kt(f,t,i,n,r,a).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?Lt.literal:Lt.object,value:e}})))}if(ge(c)){if(!(b=c.options[h]||c.options.other))throw new wt(c.value,h,Object.keys(c.options),o);s.push.apply(s,kt(b.value,t,i,n,r))}else if(ye(c)){var b;if(!(b=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new _t('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',yt.MISSING_INTL_API,o);var v=i.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new wt(c.value,h,Object.keys(c.options),o);s.push.apply(s,kt(b.value,t,i,n,r,h-(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===Lt.literal&&t.type===Lt.literal?i.value+=t.value:e.push(t),e}),[])}(s)}
|
|
1154
1116
|
/*
|
|
1155
1117
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
1156
1118
|
Copyrights licensed under the New BSD License.
|
|
1157
1119
|
See the accompanying LICENSE file for terms.
|
|
1158
1120
|
*/
|
|
1159
1121
|
// -- MessageFormat --------------------------------------------------------
|
|
1160
|
-
function Mt(e,t){return t?Object.keys(e).reduce((function(i,n){var r,a;return i[n]=(r=e[n],(a=t[n])?ue(ue(ue({},r||{}),a||{}),Object.keys(r).reduce((function(e,t){return e[t]=ue(ue({},r[t]),a[t]||{}),e}),{})):r),i}),ue({},e)):e}function Dt(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"}(
|
|
1122
|
+
function Mt(e,t){return t?Object.keys(e).reduce((function(i,n){var r,a;return i[n]=(r=e[n],(a=t[n])?ue(ue(ue({},r||{}),a||{}),Object.keys(r).reduce((function(e,t){return e[t]=ue(ue({},r[t]),a[t]||{}),e}),{})):r),i}),ue({},e)):e}function Dt(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"}(Lt||(Lt={}));var At=/** @class */function(){function e(t,i,n,r){var a,o=this;if(void 0===i&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);
|
|
1161
1123
|
// Hot path for straight simple msg translations
|
|
1162
|
-
if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===
|
|
1124
|
+
if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===Lt.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 kt(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},
|
|
1163
1125
|
// Defined first because it's used to build the format pattern.
|
|
1164
1126
|
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`");
|
|
1165
1127
|
// Parse string messages into an AST.
|
|
@@ -1170,91 +1132,91 @@ this.formats=Mt(e.formats,n),this.formatters=r&&r.formatters||(void 0===(a=this.
|
|
|
1170
1132
|
// Default format options used as the prototype of the `formats` provided to the
|
|
1171
1133
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
1172
1134
|
// and Intl.DateTimeFormat instances.
|
|
1173
|
-
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={},Ct=(e,t,i)=>i?(t in Pt||(Pt[t]={}),e in Pt[t]||(Pt[t][e]=i),i):i,
|
|
1135
|
+
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={},Ct=(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=ni(t);for(let n=0;n<i.length;n++){const r=Nt(i[n],e);if(r)return Ct(e,t,r)}};let xt;const Ot=V({});function Rt(e){return e in xt}function Nt(e,t){if(!Rt(e))return null;const i=function(e){return xt[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 Ut(e,...t){delete Pt[e],Ot.update((i=>(i[e]=ne.all([i[e]||{},...t]),i)))}q([Ot],(([e])=>Object.keys(e))),Ot.subscribe((e=>xt=e));const Bt={};function Yt(e){return Bt[e]}function It(e){return null!=e&&ni(e).some((e=>{var t;return null==(t=Yt(e))?void 0:t.size}))}function jt(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=>Ut(e,...t)))}const Gt={};function Ft(e){if(!It(e))return e in Gt?Gt[e]:Promise.resolve();const t=function(e){return ni(e).map((e=>{const t=Yt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Gt[e]=Promise.all(t.map((([e,t])=>jt(e,t)))).then((()=>{if(It(e))return Ft(e);delete Gt[e]})),Gt[e]}const $t={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 Wt(){return $t}const zt=V(!1);var Vt=Object.defineProperty,qt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Qt=(e,t,i)=>t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let ei;const ti=V(null);function ii(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function ni(e,t=Wt().fallbackLocale){const i=ii(e);return t?[...new Set([...i,...ii(t)])]:i}function ri(){return null!=ei?ei:void 0}ti.subscribe((e=>{ei=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ai=(oi=((e,t)=>{for(var i in t||(t={}))Kt.call(t,i)&&Qt(e,i,t[i]);if(Xt)for(var i of Xt(t))Jt.call(t,i)&&Qt(e,i,t[i]);return e})({},ti),qt(oi,Zt({set:e=>{if(e&&function(e){if(null==e)return;const t=ni(e);for(let e=0;e<t.length;e++){const i=t[e];if(Rt(i))return i}}(e)&&It(e)){const{loadingDelay:t}=Wt();let i;return"undefined"!=typeof window&&null!=ri()&&t?i=window.setTimeout((()=>zt.set(!0)),t):zt.set(!0),Ft(e).then((()=>{ti.set(e)})).finally((()=>{clearTimeout(i),zt.set(!1)}))}return ti.set(e)}})));var oi;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 li=Object.defineProperty,ui=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,hi=(e,t,i)=>t in e?li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,mi=(e,t)=>{for(var i in t||(t={}))ci.call(t,i)&&hi(e,i,t[i]);if(ui)for(var i of ui(t))di.call(t,i)&&hi(e,i,t[i]);return e},fi=(e,t)=>{var i={};for(var n in e)ci.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&ui)for(var n of ui(e))t.indexOf(n)<0&&di.call(e,n)&&(i[n]=e[n]);return i};const pi=(e,t)=>{const{formats:i}=Wt();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},gi=si((e=>{var t=e,{locale:i,format:n}=t,r=fi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=pi("number",n)),new Intl.NumberFormat(i,r)})),yi=si((e=>{var t=e,{locale:i,format:n}=t,r=fi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=pi("date",n):0===Object.keys(r).length&&(r=pi("date","short")),new Intl.DateTimeFormat(i,r)})),bi=si((e=>{var t=e,{locale:i,format:n}=t,r=fi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=pi("time",n):0===Object.keys(r).length&&(r=pi("time","short")),new Intl.DateTimeFormat(i,r)})),vi=si((
|
|
1174
1136
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1175
|
-
(e,t=ri())=>new At(e,t,Wt().formats,{ignoreTag:Wt().ignoreTag}))),_i=(e,t={})=>{var i,n,r,a;let o=t;"object"==typeof e&&(o=e,e=o.id);const{values:s,locale:l=ri(),default:u}=o;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=xt(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=Wt()).handleMissingMessage)?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))?r:u)?a:e;if(!s)return c;let d=c;try{d=vi(c,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Li=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return bi(mi({locale:i},n))})(t).format(e),wi=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return yi(mi({locale:i},n))})(t).format(e),Ti=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return gi(mi({locale:i},n))})(t).format(e),Ei=(e,t=ri())=>xt(e,t),Si=Z([ai,Ot],(()=>_i));function ki(e,t){Bt(e,t)}Z([ai],(()=>Li)),Z([ai],(()=>wi)),Z([ai],(()=>Ti)),Z([ai,Ot],(()=>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:"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",addLimitTitle:"Add limit",editLimitTitle:"Edit Limit",deleteLimitTitle:"Delete limit",cancelScheduleTitle:"Cancel schedule",addLimitText:"Add monetary limit",limitWalletTypeLabel:"Wallet type"},"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:"錢包",addLimitTitle:"新增限制",editLimitTitle:"編輯限制",deleteLimitTitle:"刪除限制",cancelScheduleTitle:"取消行程",addLimitText:"新增貨幣限額",limitWalletTypeLabel:"钱包类型"},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",addLimitTitle:"Limit hinzufügen",editLimitTitle:"Limit bearbeiten",deleteLimitTitle:"Limit löschen",cancelScheduleTitle:"Zeitplan abbrechen",addLimitText:"Geldlimit hinzufügen",limitWalletTypeLabel:"Geldbörsentyp"},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",addLimitTitle:"Aggiungi limite",editLimitTitle:"Modifica limite",deleteLimitTitle:"Elimina limite",cancelScheduleTitle:"Annulla pianificazione",addLimitText:"Aggiungi limite monetario",limitWalletTypeLabel:"Tipo di portafoglio"},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",addLimitTitle:"Ajouter une limite",editLimitTitle:"Modifier la limite",deleteLimitTitle:"Supprimer la limite",cancelScheduleTitle:"Annuler le planning",addLimitText:"Ajouter une limite monétaire",limitWalletTypeLabel:"Type de portefeuille"},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",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de billetera"},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:"Πορτοφόλια",addLimitTitle:"Προσθήκη ορίου",editLimitTitle:"Επεξεργασία ορίου",deleteLimitTitle:"Διαγραφή ορίου",cancelScheduleTitle:"Ακύρωση προγράμματος",addLimitText:"Προσθήκη νομισματικού ορίου",limitWalletTypeLabel:"Τύπος πορτοφολιού"},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",addLimitTitle:"Sınır ekle",editLimitTitle:"Sınırı Düzenle",deleteLimitTitle:"Sınırı sil",cancelScheduleTitle:"Programı iptal et",addLimitText:"Para limiti ekle",limitWalletTypeLabel:"Cüzdan türü"},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:"Кошельки",addLimitTitle:"Добавить лимит",editLimitTitle:"Изменить лимит",deleteLimitTitle:"Удалить лимит",cancelScheduleTitle:"Отменить расписание",addLimitText:"Добавить денежный лимит",limitWalletTypeLabel:"Тип кошелька"},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",addLimitTitle:"Adăugați limită",editLimitTitle:"Editați limita",deleteLimitTitle:"Ștergeți limita",cancelScheduleTitle:"Anulați programul",addLimitText:"Adăugați o limită monetară",limitWalletTypeLabel:"Tip portofel"},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",addLimitTitle:"Dodaj ograničenje",editLimitTitle:"Uredi ograničenje",deleteLimitTitle:"Ograničenje brisanja",cancelScheduleTitle:"Otkaži raspored",addLimitText:"Dodaj novčani limit",limitWalletTypeLabel:"Vrsta novčanika"},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",addLimitTitle:"Korlát hozzáadása",editLimitTitle:"Korlát szerkesztése",deleteLimitTitle:"Korlát törlése",cancelScheduleTitle:"Ütemezés törlése",addLimitText:"Pénzösszeg hozzáadása",limitWalletTypeLabel:"Pénztárca típusa"},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",addLimitTitle:"Dodaj limit",editLimitTitle:"Limit edycji",deleteLimitTitle:"Usuń limit",cancelScheduleTitle:"Anuluj harmonogram",addLimitText:"Dodaj limit pieniężny",limitWalletTypeLabel:"Typ portfela"},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",addLimitTitle:"Adicionar limite",editLimitTitle:"Editar Limite",deleteLimitTitle:"Excluir limite",cancelScheduleTitle:"Cancelar agendamento",addLimitText:"Adicionar limite monetário",limitWalletTypeLabel:"Tipo de carteira"},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",addLimitTitle:"Dodaj omejitev",editLimitTitle:"Uredi omejitev",deleteLimitTitle:"Omejitev brisanja",cancelScheduleTitle:"Prekliči razpored",addLimitText:"Dodaj denarno omejitev",limitWalletTypeLabel:"Vrsta 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",addLimitTitle:"Додај ограничење",editLimitTitle:"Ограничење уређивања",deleteLimitTitle:"Избриши ограничење",cancelScheduleTitle:"Откажи распоред",addLimitText:"Додај новчано ограничење",limitWalletTypeLabel:"Тип новчаника"},"es-mx":{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:"Transacciones 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:"Inicio",resetLabel:"Reiniciar",infoLabel:"Información",walletLabel:"Cartera",walletsLabel:"Carteras",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de billetera"},"pt-br":{noLimitToDisplay:"O usuário não definiu um limite...",depositLimitHeader:"Limite de depósito",lossLimitHeader:"Limite de perda",wageringLimitHeader:"Limite de apostas",spentAmount:"Valor gasto",remainingAmount:"Valor restante",limitPeriod:"Período de 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",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de carteira"}};var Di="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";
|
|
1137
|
+
(e,t=ri())=>new At(e,t,Wt().formats,{ignoreTag:Wt().ignoreTag}))),Li=(e,t={})=>{var i,n,r,a;let o=t;"object"==typeof e&&(o=e,e=o.id);const{values:s,locale:l=ri(),default:u}=o;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=Wt()).handleMissingMessage)?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))?r:u)?a:e;if(!s)return c;let d=c;try{d=vi(c,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},_i=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return bi(mi({locale:i},n))})(t).format(e),wi=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return yi(mi({locale:i},n))})(t).format(e),Ti=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return gi(mi({locale:i},n))})(t).format(e),Ei=(e,t=ri())=>Ht(e,t),Si=q([ai,Ot],(()=>Li));function ki(e,t){Ut(e,t)}q([ai],(()=>_i)),q([ai],(()=>wi)),q([ai],(()=>Ti)),q([ai,Ot],(()=>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:"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",addLimitTitle:"Add limit",editLimitTitle:"Edit Limit",deleteLimitTitle:"Delete limit",cancelScheduleTitle:"Cancel schedule",addLimitText:"Add monetary limit",limitWalletTypeLabel:"Wallet type"},"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:"錢包",addLimitTitle:"新增限制",editLimitTitle:"編輯限制",deleteLimitTitle:"刪除限制",cancelScheduleTitle:"取消行程",addLimitText:"新增貨幣限額",limitWalletTypeLabel:"钱包类型"},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",addLimitTitle:"Limit hinzufügen",editLimitTitle:"Limit bearbeiten",deleteLimitTitle:"Limit löschen",cancelScheduleTitle:"Zeitplan abbrechen",addLimitText:"Geldlimit hinzufügen",limitWalletTypeLabel:"Geldbörsentyp"},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",addLimitTitle:"Aggiungi limite",editLimitTitle:"Modifica limite",deleteLimitTitle:"Elimina limite",cancelScheduleTitle:"Annulla pianificazione",addLimitText:"Aggiungi limite monetario",limitWalletTypeLabel:"Tipo di portafoglio"},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",addLimitTitle:"Ajouter une limite",editLimitTitle:"Modifier la limite",deleteLimitTitle:"Supprimer la limite",cancelScheduleTitle:"Annuler le planning",addLimitText:"Ajouter une limite monétaire",limitWalletTypeLabel:"Type de portefeuille"},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",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de billetera"},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:"Πορτοφόλια",addLimitTitle:"Προσθήκη ορίου",editLimitTitle:"Επεξεργασία ορίου",deleteLimitTitle:"Διαγραφή ορίου",cancelScheduleTitle:"Ακύρωση προγράμματος",addLimitText:"Προσθήκη νομισματικού ορίου",limitWalletTypeLabel:"Τύπος πορτοφολιού"},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",addLimitTitle:"Sınır ekle",editLimitTitle:"Sınırı Düzenle",deleteLimitTitle:"Sınırı sil",cancelScheduleTitle:"Programı iptal et",addLimitText:"Para limiti ekle",limitWalletTypeLabel:"Cüzdan türü"},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:"Кошельки",addLimitTitle:"Добавить лимит",editLimitTitle:"Изменить лимит",deleteLimitTitle:"Удалить лимит",cancelScheduleTitle:"Отменить расписание",addLimitText:"Добавить денежный лимит",limitWalletTypeLabel:"Тип кошелька"},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",addLimitTitle:"Adăugați limită",editLimitTitle:"Editați limita",deleteLimitTitle:"Ștergeți limita",cancelScheduleTitle:"Anulați programul",addLimitText:"Adăugați o limită monetară",limitWalletTypeLabel:"Tip portofel"},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",addLimitTitle:"Dodaj ograničenje",editLimitTitle:"Uredi ograničenje",deleteLimitTitle:"Ograničenje brisanja",cancelScheduleTitle:"Otkaži raspored",addLimitText:"Dodaj novčani limit",limitWalletTypeLabel:"Vrsta novčanika"},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",addLimitTitle:"Korlát hozzáadása",editLimitTitle:"Korlát szerkesztése",deleteLimitTitle:"Korlát törlése",cancelScheduleTitle:"Ütemezés törlése",addLimitText:"Pénzösszeg hozzáadása",limitWalletTypeLabel:"Pénztárca típusa"},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",addLimitTitle:"Dodaj limit",editLimitTitle:"Limit edycji",deleteLimitTitle:"Usuń limit",cancelScheduleTitle:"Anuluj harmonogram",addLimitText:"Dodaj limit pieniężny",limitWalletTypeLabel:"Typ portfela"},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",addLimitTitle:"Adicionar limite",editLimitTitle:"Editar Limite",deleteLimitTitle:"Excluir limite",cancelScheduleTitle:"Cancelar agendamento",addLimitText:"Adicionar limite monetário",limitWalletTypeLabel:"Tipo de carteira"},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",addLimitTitle:"Dodaj omejitev",editLimitTitle:"Uredi omejitev",deleteLimitTitle:"Omejitev brisanja",cancelScheduleTitle:"Prekliči razpored",addLimitText:"Dodaj denarno omejitev",limitWalletTypeLabel:"Vrsta 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",addLimitTitle:"Додај ограничење",editLimitTitle:"Ограничење уређивања",deleteLimitTitle:"Избриши ограничење",cancelScheduleTitle:"Откажи распоред",addLimitText:"Додај новчано ограничење",limitWalletTypeLabel:"Тип новчаника"},"es-mx":{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:"Transacciones 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:"Inicio",resetLabel:"Reiniciar",infoLabel:"Información",walletLabel:"Cartera",walletsLabel:"Carteras",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de billetera"},"pt-br":{noLimitToDisplay:"O usuário não definiu um limite...",depositLimitHeader:"Limite de depósito",lossLimitHeader:"Limite de perda",wageringLimitHeader:"Limite de apostas",spentAmount:"Valor gasto",remainingAmount:"Valor restante",limitPeriod:"Período de 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",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de carteira"}};var Di="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";
|
|
1176
1138
|
/* src/images/caret-select.svg.svelte generated by Svelte v3.59.2 */function Ai(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"d","M13 14L0.250001 27.8564L0.250002 0.143593L13 14Z"),v(i,"width","13"),v(i,"height","28"),v(i,"viewBox","0 0 13 28"),v(i,"fill","currentColor"),v(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&&d(i)}}}
|
|
1177
1139
|
/* src/images/fa-caret-right.svg.svelte generated by Svelte v3.59.2 */
|
|
1178
1140
|
function Pi(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"fill","currentColor"),v(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"),v(i,"xmlns","http://www.w3.org/2000/svg"),v(i,"height","12"),v(i,"width","6"),v(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&&d(i)}}}customElements.define("caret-select",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Ai,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1179
1141
|
/* src/images/curency.svg.svelte generated by Svelte v3.59.2 */
|
|
1180
1142
|
function Ci(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(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"),v(i,"width","18"),v(i,"viewBox","0 0 25 26"),v(i,"fill","currentColor"),v(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&&d(i)}}}customElements.define("caret-right",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Pi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1181
1143
|
/* src/images/fa-calendar-times-o.svg.svelte generated by Svelte v3.59.2 */
|
|
1182
|
-
function
|
|
1144
|
+
function Hi(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"fill","currentColor"),v(n,"d","m1111 1385l-46 46q-9 9-22 9t-23-9l-188-189l-188 189q-10 9-23 9t-22-9l-46-46q-9-9-9-22t9-23l189-188l-189-188q-9-10-9-23t9-22l46-46q9-9 22-9t23 9l188 188l188-188q10-9 23-9t22 9l46 46q9 9 9 22t-9 23l-188 188l188 188q9 10 9 23t-9 22m-983 279h1408V640H128zM512 448V160q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v288q0 14 9 23t23 9h64q14 0 23-9t9-23m768 0V160q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v288q0 14 9 23t23 9h64q14 0 23-9t9-23m384-64v1280q0 52-38 90t-90 38H128q-52 0-90-38t-38-90V384q0-52 38-90t90-38h128v-96q0-66 47-113T416 0h64q66 0 113 47t47 113v96h384v-96q0-66 47-113t113-47h64q66 0 113 47t47 113v96h128q52 0 90 38t38 90"),v(i,"xmlns","http://www.w3.org/2000/svg"),v(i,"width","0.93em"),v(i,"height","1em"),v(i,"viewBox","0 0 1664 1792")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&d(i)}}}customElements.define("currency-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Ci,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1183
1145
|
/* src/images/fa-pencil.svg.svelte generated by Svelte v3.59.2 */
|
|
1184
|
-
function
|
|
1146
|
+
function xi(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"fill","currentColor"),v(n,"d","m363 1408l91-91l-235-235l-91 91v107h128v128zm523-928q0-22-22-22q-10 0-17 7l-542 542q-7 7-7 17q0 22 22 22q10 0 17-7l542-542q7-7 7-17m-54-192l416 416l-832 832H0v-416zm683 96q0 53-37 90l-166 166l-416-416l166-165q36-38 90-38q53 0 91 38l235 234q37 39 37 91"),v(i,"xmlns","http://www.w3.org/2000/svg"),v(i,"width","1em"),v(i,"height","1em"),v(i,"viewBox","0 0 1536 1536")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&d(i)}}}customElements.define("calendar-times-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Hi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1185
1147
|
/* src/images/fa-times.svg.svelte generated by Svelte v3.59.2 */
|
|
1186
|
-
function Oi(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"fill","currentColor"),v(n,"d","M1202 1066q0 40-28 68l-136 136q-28 28-68 28t-68-28L608 976l-294 294q-28 28-68 28t-68-28L42 1134q-28-28-28-68t28-68l294-294L42 410q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294l294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68L880 704l294 294q28 28 28 68"),v(i,"xmlns","http://www.w3.org/2000/svg"),v(i,"width","0.93em"),v(i,"height","1em"),v(i,"viewBox","0 0 1216 1312")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&d(i)}}}customElements.define("pencil-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,
|
|
1148
|
+
function Oi(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"fill","currentColor"),v(n,"d","M1202 1066q0 40-28 68l-136 136q-28 28-68 28t-68-28L608 976l-294 294q-28 28-68 28t-68-28L42 1134q-28-28-28-68t28-68l294-294L42 410q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294l294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68L880 704l294 294q28 28 28 68"),v(i,"xmlns","http://www.w3.org/2000/svg"),v(i,"width","0.93em"),v(i,"height","1em"),v(i,"viewBox","0 0 1216 1312")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&d(i)}}}customElements.define("pencil-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,xi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1187
1149
|
/* src/images/fa-plus-solid.svg.svelte generated by Svelte v3.59.2 */
|
|
1188
1150
|
function Ri(t){let i,n;return{c(){i=f("svg"),n=f("path"),this.c=e,v(n,"d","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"),v(i,"xmlns","http://www.w3.org/2000/svg"),v(i,"class","ControlContainerSvg"),v(i,"viewBox","0 0 448 512")},m(e,t){c(e,i,t),u(i,n)},p:e,i:e,o:e,d(e){e&&d(i)}}}customElements.define("cancel-limit-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Oi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1189
1151
|
/* ../general-animation-loading/src/GeneralAnimationLoading.svelte generated by Svelte v3.59.2 */
|
|
1190
1152
|
function Ni(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),
|
|
1191
1153
|
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&d(i)
|
|
1192
|
-
/*div5_binding*/,t[3](null)}}}function
|
|
1154
|
+
/*div5_binding*/,t[3](null)}}}function Ui(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){A[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}customElements.define("plus-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Ri,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1193
1155
|
/* src/PlayerRglimits.svelte generated by Svelte v3.59.2 */
|
|
1194
|
-
function
|
|
1156
|
+
function Bi(e,t,i){const n=e.slice();return n[80]=t[i],n}function Yi(e,t,i){const n=e.slice();return n[80]=t[i],n}function Ii(e,t,i){const n=e.slice();return n[80]=t[i],n}function ji(e,t,i){const n=e.slice();return n[87]=t[i],n}
|
|
1195
1157
|
// (621:4) {:else}
|
|
1196
|
-
function Gi(e){let t,i,n,r,a,o,s,l,h,f,y,b,
|
|
1158
|
+
function Gi(e){let t,i,n,r,a,o,s,l,h,f,y,b,L=/*getWidgetTitle*/e[29](/*selectedLimitType*/e[20])+"";function w(e,t){/*isLoading*/
|
|
1197
1159
|
return e[10]?zi:Wi}let T=w(e),E=T(e),S=/*limitWalletTypeList*/e[15].length>0&&nn(e),k=/*limitPeriodList*/e[16].length>0&&an(e),M=/*limitTypeList*/e[17].length>0&&sn(e),D=/*limitTypeList*/e[17].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]&&un(e);function A(e,t){/*isGaugeLoading*/
|
|
1198
|
-
return e[11]?pn:fn}let P=A(e),C=P(e);return{c(){t=m("div"),i=m("h2"),n=m("currency-icon"),r=p(
|
|
1160
|
+
return e[11]?pn:fn}let P=A(e),C=P(e);return{c(){t=m("div"),i=m("h2"),n=m("currency-icon"),r=p(L),a=g(),E.c(),o=g(),s=m("div"),l=m("div"),S&&S.c(),h=g(),k&&k.c(),f=g(),M&&M.c(),y=g(),D&&D.c(),b=g(),C.c(),v(i,"class","LimitTypeHeader"),v(t,"class","ContentLeft"),v(l,"class","WidgetControls"),v(s,"class","ContentRight")},m(e,d){c(e,t,d),u(t,i),u(i,n),u(i,r),u(t,a),E.m(t,null),c(e,o,d),c(e,s,d),u(s,l),S&&S.m(l,null),u(l,h),k&&k.m(l,null),u(l,f),M&&M.m(l,null),u(l,y),D&&D.m(l,null),u(s,b),C.m(s,null)},p(e,i){/*selectedLimitType*/1048576&i[0]&&L!==(L=/*getWidgetTitle*/e[29](/*selectedLimitType*/e[20])+"")&&_(r,L),T===(T=w(e))&&E?E.p(e,i):(E.d(1),E=T(e),E&&(E.c(),E.m(t,null))),/*limitWalletTypeList*/e[15].length>0?S?S.p(e,i):(S=nn(e),S.c(),S.m(l,h)):S&&(S.d(1),S=null),/*limitPeriodList*/e[16].length>0?k?k.p(e,i):(k=an(e),k.c(),k.m(l,f)):k&&(k.d(1),k=null),/*limitTypeList*/e[17].length>0?M?M.p(e,i):(M=sn(e),M.c(),M.m(l,y)):M&&(M.d(1),M=null),/*limitTypeList*/e[17].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]?D?D.p(e,i):(D=un(e),D.c(),D.m(l,null)):D&&(D.d(1),D=null),P===(P=A(e))&&C?C.p(e,i):(C.d(1),C=P(e),C&&(C.c(),C.m(s,null)))},d(e){e&&d(t),E.d(),e&&d(o),e&&d(s),S&&S.d(),k&&k.d(),M&&M.d(),D&&D.d(),C.d()}}}
|
|
1199
1161
|
// (617:27)
|
|
1200
|
-
function Fi(e){let t,i,n;return{c(){t=m("div"),i=m("strong"),n=p(/*errorMessage*/e[24]),v(i,"class","ErrorMessage"),v(t,"class","ContainerCenter")},m(e,r){c(e,t,r),u(t,i),u(i,n)},p(e,t){/*errorMessage*/16777216&t[0]&&
|
|
1162
|
+
function Fi(e){let t,i,n;return{c(){t=m("div"),i=m("strong"),n=p(/*errorMessage*/e[24]),v(i,"class","ErrorMessage"),v(t,"class","ContainerCenter")},m(e,r){c(e,t,r),u(t,i),u(i,n)},p(e,t){/*errorMessage*/16777216&t[0]&&_(n,/*errorMessage*/e[24])},d(e){e&&d(t)}}}
|
|
1201
1163
|
// (607:4) {#if noLimitToDisplay}
|
|
1202
|
-
function $i(e){let t,i,n,r,a=/*$_*/e[25]("noLimitToDisplay")+"",o=/*editlimitaction*/"true"===e[5]&&gn(e);return{c(){t=m("div"),i=m("p"),n=p(a),r=g(),o&&o.c(),v(t,"class","ContainerCenter")},m(e,a){c(e,t,a),u(t,i),u(i,n),u(t,r),o&&o.m(t,null)},p(e,i){/*$_*/33554432&i[0]&&a!==(a=/*$_*/e[25]("noLimitToDisplay")+"")&&
|
|
1164
|
+
function $i(e){let t,i,n,r,a=/*$_*/e[25]("noLimitToDisplay")+"",o=/*editlimitaction*/"true"===e[5]&&gn(e);return{c(){t=m("div"),i=m("p"),n=p(a),r=g(),o&&o.c(),v(t,"class","ContainerCenter")},m(e,a){c(e,t,a),u(t,i),u(i,n),u(t,r),o&&o.m(t,null)},p(e,i){/*$_*/33554432&i[0]&&a!==(a=/*$_*/e[25]("noLimitToDisplay")+"")&&_(n,a),/*editlimitaction*/"true"===e[5]?o?o.p(e,i):(o=gn(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&d(t),o&&o.d()}}}
|
|
1203
1165
|
// (626:8) {:else}
|
|
1204
|
-
function Wi(e){let t,i,n,r,a,o,s,l,f,y,b,
|
|
1166
|
+
function Wi(e){let t,i,n,r,a,o,s,l,f,y,b,L,w,T,E,S,k,M,D,A,P,C,H,x,O,R,N,U,B,Y,I,j,G,F,$,W,z,V,q,Z,X,K,J,Q,ee,te,ie,ne,re,ae,oe,se,le,ue,ce,de,he,me,fe,pe,ge,ye,be,ve,Le=/*selectedProduct*/"All"===e[21]?`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletsLabel")}`:`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletLabel")}`,_e=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"",we=/*displayedLimit*/e[14].limitCurrency+"",Te=/*$_*/e[25]("spentAmount")+"",Ee=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"",Se=/*displayedLimit*/e[14].limitCurrency+"",ke=/*$_*/e[25]("remainingAmount")+"",Me=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].remainingAmount)+"",De=/*displayedLimit*/e[14].limitCurrency+"",Ae=/*$_*/e[25]("startLabel")+"",Pe=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].from)+"",Ce=/*$_*/e[25]("resetLabel")+"",He=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].to)+"",xe=/*productList*/e[22].length>1&&Vi(e),Oe=/*productList*/e[22],Re=[];for(let t=0;t<Oe.length;t+=1)Re[t]=qi(ji(e,Oe,t));let Ne=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&Zi(e),Ue=/*displayedLimit*/(!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&Xi(e),Be=/*sessiontype*/"admin"===e[0]&&Qi(e);return{c(){t=m("div"),i=m("div"),n=m("span"),r=p(Le),a=g(),o=m("span"),s=p(_e),l=g(),f=m("span"),y=p(we),L=g(),xe&&xe.c(),w=g(),T=m("div");for(let e=0;e<Re.length;e+=1)Re[e].c();S=g(),k=m("div"),M=m("div"),D=m("div"),A=p(Te),P=g(),C=m("div"),H=m("span"),x=m("caret-right"),O=g(),R=p(Ee),N=g(),U=p(Se),B=g(),Y=m("div"),I=m("div"),j=p(ke),G=g(),F=m("div"),$=m("span"),W=m("caret-right"),z=g(),V=p(Me),q=g(),Z=p(De),X=g(),Ne&&Ne.c(),K=g(),J=m("div"),Q=m("div"),ee=p(Ae),te=g(),ie=m("div"),ne=m("span"),re=m("caret-right"),ae=g(),oe=p(Pe),se=g(),le=m("div"),ue=m("div"),ce=p(Ce),de=g(),he=m("div"),me=m("span"),fe=m("caret-right"),pe=g(),ge=p(He),ye=g(),Ue&&Ue.c(),be=g(),Be&&Be.c(),ve=p(""),v(n,"class","SelectedProduct"),v(f,"class","Currency"),v(o,"class","TotalAmount"),v(o,"title",b=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),v(i,"class","DisplayContainer"),v(T,"class",E="ProductsDropdown "+(/*showDropdown*/e[13]?"Show":"")),v(t,"class","ProductSelector"),v(D,"class","Col"),v(C,"class","Col"),v(M,"class","Row"),v(I,"class","Col"),v(F,"class","Col"),v(Y,"class","Row"),v(Q,"class","Col"),v(ie,"class","Col"),v(J,"class","Row"),v(ue,"class","Col"),v(he,"class","Col"),v(le,"class","Row"),v(k,"class","DetailsContainer Entries")},m(e,d){c(e,t,d),u(t,i),u(i,n),u(n,r),u(i,a),u(i,o),u(o,s),u(o,l),u(o,f),u(f,y),u(i,L),xe&&xe.m(i,null),u(t,w),u(t,T);for(let e=0;e<Re.length;e+=1)Re[e]&&Re[e].m(T,null);c(e,S,d),c(e,k,d),u(k,M),u(M,D),u(D,A),u(M,P),u(M,C),u(C,H),u(H,x),u(H,O),u(H,R),u(H,N),u(H,U),u(k,B),u(k,Y),u(Y,I),u(I,j),u(Y,G),u(Y,F),u(F,$),u($,W),u($,z),u($,V),u($,q),u($,Z),u(k,X),Ne&&Ne.m(k,null),u(k,K),u(k,J),u(J,Q),u(Q,ee),u(J,te),u(J,ie),u(ie,ne),u(ne,re),u(ne,ae),u(ne,oe),u(k,se),u(k,le),u(le,ue),u(ue,ce),u(le,de),u(le,he),u(he,me),u(me,fe),u(me,pe),u(me,ge),c(e,ye,d),Ue&&Ue.m(e,d),c(e,be,d),Be&&Be.m(e,d),c(e,ve,d)},p(e,t){if(/*selectedProduct, $_*/35651584&t[0]&&Le!==(Le=/*selectedProduct*/"All"===e[21]?`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletsLabel")}`:`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletLabel")}`)&&_(r,Le),/*displayedLimit*/16384&t[0]&&_e!==(_e=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"")&&_(s,_e),/*displayedLimit*/16384&t[0]&&we!==(we=/*displayedLimit*/e[14].limitCurrency+"")&&_(y,we),/*displayedLimit*/16384&t[0]&&b!==(b=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&v(o,"title",b),/*productList*/e[22].length>1?xe?xe.p(e,t):(xe=Vi(e),xe.c(),xe.m(i,null)):xe&&(xe.d(1),xe=null),/*productList, $_*/37748736&t[0]|/*handleProductChange*/2&t[1]){let i;for(Oe=/*productList*/e[22],i=0;i<Oe.length;i+=1){const n=ji(e,Oe,i);Re[i]?Re[i].p(n,t):(Re[i]=qi(n),Re[i].c(),Re[i].m(T,null))}for(;i<Re.length;i+=1)Re[i].d(1);Re.length=Oe.length}/*showDropdown*/8192&t[0]&&E!==(E="ProductsDropdown "+(/*showDropdown*/e[13]?"Show":""))&&v(T,"class",E),/*$_*/33554432&t[0]&&Te!==(Te=/*$_*/e[25]("spentAmount")+"")&&_(A,Te),/*displayedLimit*/16384&t[0]&&Ee!==(Ee=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"")&&_(R,Ee),/*displayedLimit*/16384&t[0]&&Se!==(Se=/*displayedLimit*/e[14].limitCurrency+"")&&_(U,Se),/*$_*/33554432&t[0]&&ke!==(ke=/*$_*/e[25]("remainingAmount")+"")&&_(j,ke),/*displayedLimit*/16384&t[0]&&Me!==(Me=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].remainingAmount)+"")&&_(V,Me),/*displayedLimit*/16384&t[0]&&De!==(De=/*displayedLimit*/e[14].limitCurrency+"")&&_(Z,De),/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?Ne?Ne.p(e,t):(Ne=Zi(e),Ne.c(),Ne.m(k,K)):Ne&&(Ne.d(1),Ne=null),/*$_*/33554432&t[0]&&Ae!==(Ae=/*$_*/e[25]("startLabel")+"")&&_(ee,Ae),/*displayedLimit*/16384&t[0]&&Pe!==(Pe=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].from)+"")&&_(oe,Pe),/*$_*/33554432&t[0]&&Ce!==(Ce=/*$_*/e[25]("resetLabel")+"")&&_(ce,Ce),/*displayedLimit*/16384&t[0]&&He!==(He=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].to)+"")&&_(ge,He),/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?Ue?Ue.p(e,t):(Ue=Xi(e),Ue.c(),Ue.m(be.parentNode,be)):Ue&&(Ue.d(1),Ue=null),/*sessiontype*/"admin"===e[0]?Be?Be.p(e,t):(Be=Qi(e),Be.c(),Be.m(ve.parentNode,ve)):Be&&(Be.d(1),Be=null)},d(e){e&&d(t),xe&&xe.d(),h(Re,e),e&&d(S),e&&d(k),Ne&&Ne.d(),e&&d(ye),Ue&&Ue.d(e),e&&d(be),Be&&Be.d(e),e&&d(ve)}}}
|
|
1205
1167
|
// (624:8) {#if isLoading}
|
|
1206
|
-
function zi(e){let t;return{c(){t=m("general-animation-loading"),
|
|
1168
|
+
function zi(e){let t;return{c(){t=m("general-animation-loading"),L(t,"clientstyling",/*clientstyling*/e[3]),L(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&L(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&L(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&d(t)}}}
|
|
1207
1169
|
// (631:14) {#if productList.length > 1}
|
|
1208
1170
|
function Vi(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("caret-select"),v(t,"class",n="DropdownToggle "+(/*showDropdown*/e[13]?"Active":""))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_1*/e[50])),r=!0)},p(e,i){/*showDropdown*/8192&i[0]&&n!==(n="DropdownToggle "+(/*showDropdown*/e[13]?"Active":""))&&v(t,"class",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1209
1171
|
// (638:14) {#each productList as product}
|
|
1210
|
-
function
|
|
1211
|
-
return e[51](/*product*/e[87])}return{c(){t=m("button"),i=p(o),n=g()},m(e,o){c(e,t,o),u(t,i),u(t,n),r||(a=y(t,"click",s),r=!0)},p(t,n){e=t,/*productList, $_*/37748736&n[0]&&o!==(o=/*product*/"All"===e[87]?`${/*product*/e[87]} ${/*$_*/e[25]("walletsLabel")}`:`${/*product*/e[87]} ${/*$_*/e[25]("walletLabel")}`)&&
|
|
1172
|
+
function qi(e){let t,i,n,r,a,o=/*product*/"All"===e[87]?`${/*product*/e[87]} ${/*$_*/e[25]("walletsLabel")}`:`${/*product*/e[87]} ${/*$_*/e[25]("walletLabel")}`;function s(){/*click_handler_2*/
|
|
1173
|
+
return e[51](/*product*/e[87])}return{c(){t=m("button"),i=p(o),n=g()},m(e,o){c(e,t,o),u(t,i),u(t,n),r||(a=y(t,"click",s),r=!0)},p(t,n){e=t,/*productList, $_*/37748736&n[0]&&o!==(o=/*product*/"All"===e[87]?`${/*product*/e[87]} ${/*$_*/e[25]("walletsLabel")}`:`${/*product*/e[87]} ${/*$_*/e[25]("walletLabel")}`)&&_(i,o)},d(e){e&&d(t),r=!1,a()}}}
|
|
1212
1174
|
// (654:12) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1213
|
-
function
|
|
1175
|
+
function Zi(e){let t,i,n,r,a,o,s,l,h,f,y,b=/*$_*/e[25]("futureAmount")+"",L=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"",w=/*displayedLimit*/e[14].limitCurrency+"";return{c(){t=m("div"),i=m("div"),n=p(b),r=g(),a=m("div"),o=m("span"),s=m("caret-right"),l=g(),h=p(L),f=g(),y=p(w),v(i,"class","Col"),v(a,"class","Col"),v(t,"class","Row")},m(e,d){c(e,t,d),u(t,i),u(i,n),u(t,r),u(t,a),u(a,o),u(o,s),u(o,l),u(o,h),u(o,f),u(o,y)},p(e,t){/*$_*/33554432&t[0]&&b!==(b=/*$_*/e[25]("futureAmount")+"")&&_(n,b),/*displayedLimit*/16384&t[0]&&L!==(L=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"")&&_(h,L),/*displayedLimit*/16384&t[0]&&w!==(w=/*displayedLimit*/e[14].limitCurrency+"")&&_(y,w)},d(e){e&&d(t)}}}
|
|
1214
1176
|
// (669:10) {#if displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true }
|
|
1215
1177
|
function Xi(e){let t,i,n=/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved&&Ki(e),r=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&Ji(e);return{c(){t=m("div"),n&&n.c(),i=g(),r&&r.c(),v(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[14].formattedSchedule.isRemoved?n?n.p(e,a):(n=Ki(e),n.c(),n.m(t,i)):n&&(n.d(1),n=null),/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?r?r.p(e,a):(r=Ji(e),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(e){e&&d(t),n&&n.d(),r&&r.d()}}}
|
|
1216
1178
|
// (671:14) {#if displayedLimit.formattedSchedule.isRemoved === true}
|
|
1217
|
-
function Ki(e){let t,i,n,r,a=/*$_*/e[25]("limitRemoved")+"",o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(o)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/33554432&t[0]&&a!==(a=/*$_*/e[25]("limitRemoved")+"")&&
|
|
1179
|
+
function Ki(e){let t,i,n,r,a=/*$_*/e[25]("limitRemoved")+"",o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(o)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/33554432&t[0]&&a!==(a=/*$_*/e[25]("limitRemoved")+"")&&_(i,a),/*displayedLimit*/16384&t[0]&&o!==(o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&_(r,o)},d(e){e&&d(t)}}}
|
|
1218
1180
|
// (674:14) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1219
|
-
function Ji(e){let t,i,n,r,a=/*$_*/e[25]("limitUpdated")+"",o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(o)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/33554432&t[0]&&a!==(a=/*$_*/e[25]("limitUpdated")+"")&&
|
|
1181
|
+
function Ji(e){let t,i,n,r,a=/*$_*/e[25]("limitUpdated")+"",o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(o)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/33554432&t[0]&&a!==(a=/*$_*/e[25]("limitUpdated")+"")&&_(i,a),/*displayedLimit*/16384&t[0]&&o!==(o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&_(r,o)},d(e){e&&d(t)}}}
|
|
1220
1182
|
// (679:10) {#if sessiontype === 'admin'}
|
|
1221
1183
|
function Qi(e){let t;function i(e,t){/*transdetailsurl*/
|
|
1222
1184
|
return e[1]?tn:/*transactionspageurl*/e[2]?en:void 0}let n=i(e),r=n&&n(e);return{c(){t=m("div"),r&&r.c(),v(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&&d(t),r&&r.d()}}}
|
|
1223
1185
|
// (683:44)
|
|
1224
|
-
function en(e){let t,i,n=/*$_*/e[25]("additionalLink2")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*getTransactionsUrl*/e[35]()),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,t){/*$_*/33554432&t[0]&&n!==(n=/*$_*/e[25]("additionalLink2")+"")&&
|
|
1186
|
+
function en(e){let t,i,n=/*$_*/e[25]("additionalLink2")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*getTransactionsUrl*/e[35]()),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,t){/*$_*/33554432&t[0]&&n!==(n=/*$_*/e[25]("additionalLink2")+"")&&_(i,n)},d(e){e&&d(t)}}}
|
|
1225
1187
|
// (681:14) {#if transdetailsurl}
|
|
1226
|
-
function tn(e){let t,i,n=/*$_*/e[25]("additionalLink1")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*transdetailsurl*/e[1]),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,r){/*$_*/33554432&r[0]&&n!==(n=/*$_*/e[25]("additionalLink1")+"")&&
|
|
1188
|
+
function tn(e){let t,i,n=/*$_*/e[25]("additionalLink1")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*transdetailsurl*/e[1]),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,r){/*$_*/33554432&r[0]&&n!==(n=/*$_*/e[25]("additionalLink1")+"")&&_(i,n),/*transdetailsurl*/2&r[0]&&v(t,"href",/*transdetailsurl*/e[1])},d(e){e&&d(t)}}}
|
|
1227
1189
|
// (692:10) {#if limitWalletTypeList.length > 0}
|
|
1228
|
-
function nn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[25]("limitWalletTypeLabel")+"",
|
|
1190
|
+
function nn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[25]("limitWalletTypeLabel")+"",L=/*limitWalletTypeList*/e[15],w=[];for(let t=0;t<L.length;t+=1)w[t]=rn(Ii(e,L,t));return{c(){t=m("div"),i=m("label"),r=p(b),a=p(":"),o=g(),s=m("select");for(let e=0;e<w.length;e+=1)w[e].c();v(i,"for","LimitPeriod"),v(s,"id","WalletType"),/*selectedWalletType*/void 0===e[18]&&O((()=>/*select_change_handler*/e[52].call(s))),v(t,"class","ControlContainer")},m(n,d){c(n,t,d),u(t,i),u(i,r),u(i,a),u(t,o),u(t,s);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(s,null);T(s,/*selectedWalletType*/e[18],!0),l||(f=[y(s,"change",/*select_change_handler*/e[52]),y(s,"change",/*handleWalletTypeChange*/e[31])],l=!0)},p(e,t){if(/*$_*/33554432&t[0]&&b!==(b=/*$_*/e[25]("limitWalletTypeLabel")+"")&&_(r,b),/*limitWalletTypeList, walletTypeMap*/67141632&t[0]){let i;for(L=/*limitWalletTypeList*/e[15],i=0;i<L.length;i+=1){const n=Ii(e,L,i);w[i]?w[i].p(n,t):(w[i]=rn(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=L.length}/*selectedWalletType, limitWalletTypeList*/294912&t[0]&&T(s,/*selectedWalletType*/e[18])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1229
1191
|
// (696:16) {#each limitWalletTypeList as value}
|
|
1230
|
-
function rn(e){let t,i,n,r,a=/*walletTypeMap*/e[26][/*value*/e[80]]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitWalletTypeList*/32768&n[0]&&a!==(a=/*walletTypeMap*/e[26][/*value*/e[80]]+"")&&
|
|
1192
|
+
function rn(e){let t,i,n,r,a=/*walletTypeMap*/e[26][/*value*/e[80]]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitWalletTypeList*/32768&n[0]&&a!==(a=/*walletTypeMap*/e[26][/*value*/e[80]]+"")&&_(i,a),/*limitWalletTypeList*/32768&n[0]&&r!==(r=/*value*/e[80])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1231
1193
|
// (704:10) {#if limitPeriodList.length > 0}
|
|
1232
|
-
function an(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[25]("changeLimitLabel")+"",
|
|
1194
|
+
function an(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[25]("changeLimitLabel")+"",L=/*limitPeriodList*/e[16],w=[];for(let t=0;t<L.length;t+=1)w[t]=on(Yi(e,L,t));return{c(){t=m("div"),i=m("label"),r=p(b),a=p(":"),o=g(),s=m("select");for(let e=0;e<w.length;e+=1)w[e].c();v(i,"for","LimitPeriod"),v(s,"id","LimitPeriod"),/*selectedLimitPeriod*/void 0===e[19]&&O((()=>/*select_change_handler_1*/e[53].call(s))),v(t,"class","ControlContainer")},m(n,d){c(n,t,d),u(t,i),u(i,r),u(i,a),u(t,o),u(t,s);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(s,null);T(s,/*selectedLimitPeriod*/e[19],!0),l||(f=[y(s,"change",/*select_change_handler_1*/e[53]),y(s,"change",/*handlePeriodChange*/e[30])],l=!0)},p(e,t){if(/*$_*/33554432&t[0]&&b!==(b=/*$_*/e[25]("changeLimitLabel")+"")&&_(r,b),/*limitPeriodList*/65536&t[0]){let i;for(L=/*limitPeriodList*/e[16],i=0;i<L.length;i+=1){const n=Yi(e,L,i);w[i]?w[i].p(n,t):(w[i]=on(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=L.length}/*selectedLimitPeriod, limitPeriodList*/589824&t[0]&&T(s,/*selectedLimitPeriod*/e[19])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1233
1195
|
// (708:16) {#each limitPeriodList as value}
|
|
1234
|
-
function on(e){let t,i,n,r,a=/*value*/e[80]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitPeriodList*/65536&n[0]&&a!==(a=/*value*/e[80]+"")&&
|
|
1196
|
+
function on(e){let t,i,n,r,a=/*value*/e[80]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitPeriodList*/65536&n[0]&&a!==(a=/*value*/e[80]+"")&&_(i,a),/*limitPeriodList*/65536&n[0]&&r!==(r=/*value*/e[80])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1235
1197
|
// (716:10) {#if limitTypeList.length > 0}
|
|
1236
|
-
function sn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[25]("limitTypeLabel")+"",
|
|
1198
|
+
function sn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[25]("limitTypeLabel")+"",L=/*limitTypeList*/e[17],w=[];for(let t=0;t<L.length;t+=1)w[t]=ln(Bi(e,L,t));return{c(){t=m("div"),i=m("label"),r=p(b),a=p(":"),o=g(),s=m("select");for(let e=0;e<w.length;e+=1)w[e].c();v(i,"for","LimitType"),v(s,"id","LimitType"),/*selectedLimitType*/void 0===e[20]&&O((()=>/*select_change_handler_2*/e[54].call(s))),v(t,"class","ControlContainer")},m(n,d){c(n,t,d),u(t,i),u(i,r),u(i,a),u(t,o),u(t,s);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(s,null);T(s,/*selectedLimitType*/e[20],!0),l||(f=[y(s,"change",/*select_change_handler_2*/e[54]),y(s,"change",/*getLimitBalance*/e[27])],l=!0)},p(e,t){if(/*$_*/33554432&t[0]&&b!==(b=/*$_*/e[25]("limitTypeLabel")+"")&&_(r,b),/*limitTypeList*/131072&t[0]){let i;for(L=/*limitTypeList*/e[17],i=0;i<L.length;i+=1){const n=Bi(e,L,i);w[i]?w[i].p(n,t):(w[i]=ln(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=L.length}/*selectedLimitType, limitTypeList*/1179648&t[0]&&T(s,/*selectedLimitType*/e[20])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1237
1199
|
// (720:16) {#each limitTypeList as value}
|
|
1238
|
-
function ln(e){let t,i,n,r,a=/*value*/e[80]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitTypeList*/131072&n[0]&&a!==(a=/*value*/e[80]+"")&&
|
|
1200
|
+
function ln(e){let t,i,n,r,a=/*value*/e[80]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitTypeList*/131072&n[0]&&a!==(a=/*value*/e[80]+"")&&_(i,a),/*limitTypeList*/131072&n[0]&&r!==(r=/*value*/e[80])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1239
1201
|
// (728:10) {#if limitTypeList.length > 0 && sessiontype === 'admin' && displayedLimit}
|
|
1240
1202
|
function un(e){let t,i,n,r,a=/*editlimitaction*/"true"===e[5]&&cn(e),o=/*editlimitaction*/"true"===e[5]&&dn(e),s=/*deletelimitaction*/"true"===e[6]&&hn(e),l=/*cancelimitscheduleaction*/"true"===e[7]&&/*displayedLimit*/e[14].formattedSchedule&&(/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&mn(e);return{c(){t=m("div"),a&&a.c(),i=g(),o&&o.c(),n=g(),s&&s.c(),r=g(),l&&l.c(),v(t,"class","ControlContainer")},m(e,d){c(e,t,d),a&&a.m(t,null),u(t,i),o&&o.m(t,null),u(t,n),s&&s.m(t,null),u(t,r),l&&l.m(t,null)},p(e,u){/*editlimitaction*/"true"===e[5]?a?a.p(e,u):(a=cn(e),a.c(),a.m(t,i)):a&&(a.d(1),a=null),/*editlimitaction*/"true"===e[5]?o?o.p(e,u):(o=dn(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),/*deletelimitaction*/"true"===e[6]?s?s.p(e,u):(s=hn(e),s.c(),s.m(t,r)):s&&(s.d(1),s=null),/*cancelimitscheduleaction*/"true"!==e[7]||/*displayedLimit*/!e[14].formattedSchedule||/*displayedLimit*/!0!==e[14].formattedSchedule.isRemoved&&/*displayedLimit*/!0!==e[14].formattedSchedule.isUpdated?l&&(l.d(1),l=null):l?l.p(e,u):(l=mn(e),l.c(),l.m(t,null))},d(e){e&&d(t),a&&a.d(),o&&o.d(),s&&s.d(),l&&l.d()}}}
|
|
1241
1203
|
// (730:14) {#if editlimitaction === 'true'}
|
|
1242
|
-
function cn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("plus-icon"),
|
|
1204
|
+
function cn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("plus-icon"),L(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[25]("addLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_3*/e[55])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("addLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1243
1205
|
// (735:14) {#if editlimitaction === 'true'}
|
|
1244
|
-
function dn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("pencil-icon"),
|
|
1206
|
+
function dn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("pencil-icon"),L(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[25]("editLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_4*/e[56])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("editLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1245
1207
|
// (740:14) {#if deletelimitaction === 'true'}
|
|
1246
|
-
function hn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("cancel-limit-icon"),
|
|
1208
|
+
function hn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("cancel-limit-icon"),L(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[25]("deleteLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_5*/e[57])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("deleteLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1247
1209
|
// (745:14) {#if cancelimitscheduleaction === 'true' && (displayedLimit.formattedSchedule && (displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true))}
|
|
1248
|
-
function mn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("calendar-times-icon"),
|
|
1210
|
+
function mn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("calendar-times-icon"),L(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[25]("cancelScheduleTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_6*/e[58])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("cancelScheduleTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1249
1211
|
// (755:8) {:else}
|
|
1250
|
-
function fn(e){let t,i,n,r,a,s,l,h,f,y,b,
|
|
1212
|
+
function fn(e){let t,i,n,r,a,s,l,h,f,y,b,L,T,E,S,k,M,D,A,P,C,H,x,O,R,N,U,B,Y,I,j=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"",G=/*displayedLimit*/e[14].limitCurrency+"",F=/*displayedLimit*/e[14].limitCurrency+"",$=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"",W=/*displayedLimit*/e[14].limitCurrency+"";return{c(){var u,c;t=m("div"),i=m("div"),n=m("img"),a=g(),s=m("div"),l=g(),h=m("div"),f=p(j),y=g(),b=p(G),T=g(),E=m("div"),S=g(),k=m("div"),M=g(),D=m("div"),A=m("div"),P=m("strong"),P.textContent="0",C=g(),H=m("span"),x=p(F),O=g(),R=m("div"),N=m("strong"),U=p($),B=g(),Y=m("span"),I=p(W),v(n,"class","Archbg"),u=n.src,c=r=Di,o||(o=document.createElement("a")),o.href=c,u!==o.href&&v(n,"src",r),v(n,"alt","arch"),v(s,"class","GaugeFill"),w(s,"--p",/*gaugeValue*/e[23]+"deg"),v(h,"class","GaugeCover"),v(h,"title",L=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),v(E,"class","GaugeNeedleCover"),v(k,"class","GaugeNeedle"),w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[23]-90)+"deg)"),v(i,"class","GaugeBody"),v(P,"class","MinContent"),v(H,"class","MinContentCurrency"),v(A,"class","Min"),v(N,"class","MaxContent"),v(Y,"class","MaxContentCurrency"),v(R,"class","Max"),v(D,"class","MinMaxContainer"),v(t,"class","Gauge")},m(e,r){c(e,t,r),u(t,i),u(i,n),u(i,a),u(i,s),u(i,l),u(i,h),u(h,f),u(h,y),u(h,b),u(i,T),u(i,E),u(i,S),u(i,k),u(t,M),u(t,D),u(D,A),u(A,P),u(A,C),u(A,H),u(H,x),u(D,O),u(D,R),u(R,N),u(N,U),u(R,B),u(R,Y),u(Y,I)},p(e,t){/*gaugeValue*/8388608&t[0]&&w(s,"--p",/*gaugeValue*/e[23]+"deg"),/*displayedLimit*/16384&t[0]&&j!==(j=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"")&&_(f,j),/*displayedLimit*/16384&t[0]&&G!==(G=/*displayedLimit*/e[14].limitCurrency+"")&&_(b,G),/*displayedLimit*/16384&t[0]&&L!==(L=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&v(h,"title",L),/*gaugeValue*/8388608&t[0]&&w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[23]-90)+"deg)"),/*displayedLimit*/16384&t[0]&&F!==(F=/*displayedLimit*/e[14].limitCurrency+"")&&_(x,F),/*displayedLimit*/16384&t[0]&&$!==($=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"")&&_(U,$),/*displayedLimit*/16384&t[0]&&W!==(W=/*displayedLimit*/e[14].limitCurrency+"")&&_(I,W)},d(e){e&&d(t)}}}
|
|
1251
1213
|
// (753:8) {#if isGaugeLoading}
|
|
1252
|
-
function pn(e){let t;return{c(){t=m("general-animation-loading"),
|
|
1214
|
+
function pn(e){let t;return{c(){t=m("general-animation-loading"),L(t,"clientstyling",/*clientstyling*/e[3]),L(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&L(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&L(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&d(t)}}}
|
|
1253
1215
|
// (610:8) {#if editlimitaction === 'true'}
|
|
1254
|
-
function gn(e){let t,i,n,r,a,o,s,l,h=/*$_*/e[25]("addLimitText")+"";return{c(){t=m("button"),i=m("plus-icon"),n=g(),r=m("span"),a=p(h),
|
|
1216
|
+
function gn(e){let t,i,n,r,a,o,s,l,h=/*$_*/e[25]("addLimitText")+"";return{c(){t=m("button"),i=m("plus-icon"),n=g(),r=m("span"),a=p(h),L(i,"class","ActionsSvg"),v(t,"class","AddLimitControl"),v(t,"title",o=/*$_*/e[25]("addLimitTitle"))},m(o,d){c(o,t,d),u(t,i),u(t,n),u(t,r),u(r,a),s||(l=y(t,"click",b(/*click_handler*/e[49])),s=!0)},p(e,i){/*$_*/33554432&i[0]&&h!==(h=/*$_*/e[25]("addLimitText")+"")&&_(a,h),/*$_*/33554432&i[0]&&o!==(o=/*$_*/e[25]("addLimitTitle"))&&v(t,"title",o)},d(e){e&&d(t),s=!1,l()}}}function yn(t){let i,n,r;function a(e,t){/*noLimitToDisplay*/
|
|
1255
1217
|
return e[12]?$i:/*errorMessage*/e[24]?Fi:Gi}let o=a(t),s=o(t);return{c(){i=m("div"),n=m("div"),s.c(),this.c=e,v(n,"class","LimitsContainer"),v(i,"class",r=/*displayNone*/t[9]?"DisplayNone":"")},m(e,r){c(e,i,r),u(i,n),s.m(n,null),
|
|
1256
1218
|
/*div0_binding*/t[59](n)},p(e,t){o===(o=a(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(n,null))),/*displayNone*/512&t[0]&&r!==(r=/*displayNone*/e[9]?"DisplayNone":"")&&v(i,"class",r)},i:e,o:e,d(e){e&&d(i),s.d(),
|
|
1257
|
-
/*div0_binding*/t[59](null)}}}function bn(e,t,i){let n;var r,a;r=Si,a=e=>i(25,n=e),e.$$.on_destroy.push(l(r,a));let o,s,{session:u=""}=t,{sessiontype:c=""}=t,{userid:d=""}=t,{endpoint:h=""}=t,{transdetailsurl:m=""}=t,{transactionspageurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{lang:y="en"}=t,{translationurl:b=""}=t,{datetimeformat:v=""}=t,{editlimitaction:
|
|
1219
|
+
/*div0_binding*/t[59](null)}}}function bn(e,t,i){let n;var r,a;r=Si,a=e=>i(25,n=e),e.$$.on_destroy.push(l(r,a));let o,s,{session:u=""}=t,{sessiontype:c=""}=t,{userid:d=""}=t,{endpoint:h=""}=t,{transdetailsurl:m=""}=t,{transactionspageurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{lang:y="en"}=t,{translationurl:b=""}=t,{datetimeformat:v=""}=t,{editlimitaction:L=""}=t,{deletelimitaction:_=""}=t,{cancelimitscheduleaction:w=""}=t,{getutctime:T=""}=t,S=!1,k=!1,D=!1,P="",C="",H=!0,x=!0,O=!1,R={id:"",totalAmount:null,spentAmount:"",limitCurrency:"EUR",remainingAmount:"",limitPeriod:"",limitProducts:"",from:"",to:""},N=[],U=[],B=[],Y="",I="",j="",G="",F=[],$=[],z=0,V="";const q={Daily:0,Weekly:1,Monthly:2};Object.keys(Mi).forEach((e=>{ki(e,Mi[e])})),
|
|
1258
1220
|
/**
|
|
1259
1221
|
* Sets the isMounted flag after a short delay when the component is first rendered.
|
|
1260
1222
|
*/
|
|
@@ -1271,15 +1233,15 @@ return window.addEventListener("click",e),()=>{window.removeEventListener("click
|
|
|
1271
1233
|
/**
|
|
1272
1234
|
* Sets the session information upon login.
|
|
1273
1235
|
*/
|
|
1274
|
-
const
|
|
1236
|
+
const Z=e=>{i(24,V=e)},X=async()=>{i(13,O=!1);try{if(F=await K(),0===F.length)return i(10,H=!1),void i(12,s=!0);i(16,U=[...new Set(F.map((e=>e.period)))].sort(((e,t)=>q[e]-q[t]))),I&&U.includes(I)||i(19,I=U[0]),i(15,N=Q(I)),Y&&N.includes(Y)||i(18,Y=N[0]),i(22,$=J(I,Y)),$.includes(G)||i(21,G=$[0]),ee((()=>{let e=F;
|
|
1275
1237
|
// Return the first matching limit or the first limit in the list if no matches are found
|
|
1276
|
-
return I&&(e=e.filter((e=>e.period===I))),Y&&(e=e.filter((e=>e.walletTypes.includes(Y)))),j&&(e=e.filter((e=>e.type===j))),G&&(e=e.filter((e=>e.products.includes(G)))),e[0]||F[0]})())}catch(e){return i(10,
|
|
1238
|
+
return I&&(e=e.filter((e=>e.period===I))),Y&&(e=e.filter((e=>e.walletTypes.includes(Y)))),j&&(e=e.filter((e=>e.type===j))),G&&(e=e.filter((e=>e.products.includes(G)))),e[0]||F[0]})())}catch(e){return i(10,H=!1),void Z(n("fetchLimitBalanceError"))}},K=async()=>{try{const e=new URL(`${h}/v1/player/${C}/limits/monetary/`),t={method:"GET",headers:{"X-SessionId":P,"X-Session-Type":c}},r=await fetch(e,t);if(!r.ok)throw new Error(n("fetchLimitDefError"));const a=await r.json(),o=["Deposit","Loss","Wagering"],s=a.limits.map((e=>e.type));i(17,B=Array.from(new Set(s)).filter((e=>o.includes(e)))),j||i(20,j=B[0]);const l=a.limits.filter((e=>e.type===j));return l.length>0?l:[]}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}},J=(e,t)=>{const i=F.filter((i=>i.period===e&&i.walletTypes[0]===t)),n=[];return i.forEach((e=>{e.products.forEach((e=>{-1===n.indexOf(e)&&n.push(e)}))})),n.sort()},Q=e=>{const t=F.filter((t=>t.period===e)),i=[];return t.forEach((e=>{e.walletTypes.forEach((e=>{-1===i.indexOf(e)&&i.push(e)}))})),i.sort()},ee=async e=>{try{i(10,H=!0);const t=new URL(`${h}/v1/player/${C}/limits/monetary/balance`);t.searchParams.append("limitDefinitionId",e.id);const r={method:"GET",headers:{"X-SessionId":P,"X-Session-Type":c}},a=await fetch(t,r);if(!a.ok)throw new Error(n("fetchLimitBalanceError"));const o=await a.json();te(o.limitBalances[0],e)}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}finally{i(10,H=!1)}},te=(e,t)=>{i(19,I=e.limitPeriod),i(21,G=e.limitProducts[0]),i(18,Y=e.limitWalletTypes[0]);const n=ie(t.id,t.schedules);i(14,R={id:t.id,totalAmount:e.limitAmount,spentAmount:e.spentBalance.amount.toFixed(2),limitCurrency:e.limitCurrency,remainingAmount:(e.limitAmount-e.spentBalance.amount).toFixed(2),limitPeriod:e.limitPeriod,limitProducts:G,from:e.from,to:e.to}),n&&i(14,R.formattedSchedule=n,R),re(R)},ie=(e,t)=>{const i=t.find((t=>t.playerLimitId===e));return i?{updateAmount:i.updateAmount,expires:i.applyAt,expiresString:ne(i.applyAt),id:i.id,isRemoved:i.updateAmount<1,isUpdated:i.updateAmount>0}:{updateAmount:"",expires:"",expiresString:"",id:"",isRemoved:!1,isUpdated:!1}},ne=e=>{const t="true"===T;return W(e).utc(t).format(v||"DD/MM/YYYY HH:mm:ss")},re=e=>{
|
|
1277
1239
|
// Calculate newGaugeValue within [0, 180]
|
|
1278
1240
|
let t=180/e.totalAmount*parseFloat(e.spentAmount);t=Math.min(180,Math.max(0,t));const n=setInterval((()=>{i(23,z+=z<t?1.5:-1.5),Math.abs(z-t)<=1.5&&(i(23,z=t),clearInterval(n))}));// Step size for increasing/decreasing gaugeValue
|
|
1279
|
-
i(11,
|
|
1241
|
+
i(11,x=!1)},ae=e=>{const t=F.find((t=>t.period===I&&t.products.includes(e)));i(14,R.limitProducts=e,R),i(13,O=!1),t&&ee(t)},oe=()=>{var e;e=y,ai.set(e)},se=()=>{i(13,O=!O)},le=(e,t)=>new Date(e.getTime()-24*t*60*60*1e3),ue=()=>{window.postMessage({type:"RGW:EditLimit",payload:{id:R.id}},window.location.href)},ce=()=>{window.postMessage({type:"RGW:DeleteLimit",payload:{id:R.id}},window.location.href)},de=()=>{R&&R.formattedSchedule&&window.postMessage({type:"RGW:CancelLimitSchedule",payload:{limitId:R.id,scheduleId:R.formattedSchedule.id}},window.location.href)},he=()=>{window.postMessage({type:"RGW:AddNewLimit"},window.location.href)};
|
|
1280
1242
|
/**
|
|
1281
1243
|
* Handles errors by updating the error message.
|
|
1282
1244
|
*
|
|
1283
1245
|
* @param error - The error message to be handled.
|
|
1284
|
-
*/return e.$$set=e=>{"session"in e&&i(40,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(41,d=e.userid),"endpoint"in e&&i(42,h=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(43,y=e.lang),"translationurl"in e&&i(44,b=e.translationurl),"datetimeformat"in e&&i(45,v=e.datetimeformat),"editlimitaction"in e&&i(5,_=e.editlimitaction),"deletelimitaction"in e&&i(6,L=e.deletelimitaction),"cancelimitscheduleaction"in e&&i(7,w=e.cancelimitscheduleaction),"getutctime"in e&&i(46,T=e.getutctime)},e.$$.update=()=>{/*isMounted, session, userid*/67072&e.$$.dirty[1]&&k&&u&&d&&(i(48,D=!0),P=u,C=d),/*isMounted, isLoggedIn*/196608&e.$$.dirty[1]&&k&&D&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&X()})),/*isMounted, isLoggedIn*/196608&e.$$.dirty[1]&&k&&D&&X(),/*clientstyling, customStylingContainer*/264&e.$$.dirty[0]&&p&&o&&(()=>{let e=document.createElement("style");e.innerHTML=p,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/272&e.$$.dirty[0]&&g&&o&&(()=>{try{i(9,S=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1),setTimeout((()=>{i(9,S=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;q(t)}})(),/*lang*/4096&e.$$.dirty[1]&&y&&oe(),/*translationurl*/8192&e.$$.dirty[1]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ki(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,_,L,w,o,S,x,H,s,O,R,N,B,U,Y,I,j,G,$,z,V,n,{All:"All",RealCash:"Real Money"},X,ne,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(19,I=t.value),i(15,N=Q(I)),Y&&N.includes(Y)||i(18,Y=N[0]),i(22,$=J(I,Y)),i(13,O=!1),$.includes(G)||i(21,G=$[0]);const n=F.find((e=>e.period===I&&e.walletTypes[0]===Y&&e.products.includes(G)));n&&ee(n)},e=>{const t=e.currentTarget;i(18,Y=t.value),i(22,$=J(I,Y)),i(13,O=!1),$.includes(G)||i(21,G=$[0]);const n=F.find((e=>e.period===I&&e.walletTypes[0]===Y&&e.products.includes(G)));n&&ee(n)},ae,se,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{const e=f,t="Deposit"===j?"payment-transactions":"gaming-transactions",i=le(new Date(R.to),{Daily:1,Weekly:7,Monthly:30}[I]);try{const n=new URL(`${e}/gammatrix/gmwi/${t}`);switch(n.searchParams.append("transStatuses","2"),n.searchParams.append("startTime",i.toISOString()),n.searchParams.append("endTime",(new Date).toISOString()),n.searchParams.append("dateOption","Select custom dates"),n.searchParams.append("userId",d),j){case"Deposit":n.searchParams.append("transTypes","1");break;case"Wagering":n.searchParams.append("transTypes","12");break;case"Loss":n.searchParams.append("transTypes","8")}return n.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;q(t)}},ue,ce,de,he,u,d,h,y,b,v,T,k,D,()=>he(),()=>se(),e=>ae(e),function(){Y=E(this),i(18,Y),i(15,N)},function(){I=E(this),i(19,I),i(16,B)},function(){j=E(this),i(20,j),i(17,U)},()=>he(),()=>ue(),()=>ce(),()=>de(),function(e){A[e?"unshift":"push"]((()=>{o=e,i(8,o)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends F{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),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Bi,Ni,a,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),B()}});class vn extends F{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;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ContainerCenter p{padding:6px}.ErrorMessage{margin:0 15px;font-size:var(--emw--font-size-x-small, 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:var(--emw--border-radius-large, 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:var(--emw--font-weight-bold, 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}.AddLimitControl{border:0.1rem solid var(--emw--color-primary, #307fe2);border-radius:var(--emw--border-radius-small, 0.3rem);min-height:1rem;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-primary, #307fe2);padding:0.3rem;cursor:pointer;min-width:10rem;display:flex;flex-direction:row;align-items:center;justify-content:center}.WidgetControls{display:flex;width:100%;justify-content:end;gap:10px}.ControlContainer label{display:block;width:100%;font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-bold, 700);margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 5px);width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer select{max-width:100px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 5px);width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.AddLimitControl .ActionsSvg{height:2em;width:2em;display:flex;justify-content:center;cursor:pointer;padding:5px;margin-right:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--color-white, #FFFFFF)}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:var(--emw--color-black, #000000);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:26px;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:var(--emw--font-size-large, 18px);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:var(--emw--color-gray-100, #f5f5f5);border-radius:var(--emw--border-radius-medium, 12px);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:var(--emw--font-weight-bold, 700);text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:var(--emw--font-size-2x-large, 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:var(--emw--font-size-x-large, 24px)}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:var(--emw--color-gray-100, #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;border-radius:var(--emw--border-radius-medium, 12px)}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:var(--emw--font-weight-bold, 700)}.ProductsDropdown button:hover{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-primary, #307fe2);color:var(--emw--color-white, #FFFFFF)}.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),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},bn,yn,a,{session:40,sessiontype:0,userid:41,endpoint:42,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:43,translationurl:44,datetimeformat:45,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7,getutctime:46},null,[-1,-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat","editlimitaction","deletelimitaction","cancelimitscheduleaction","getutctime"]}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),B()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),B()}get userid(){return this.$$.ctx[41]}set userid(e){this.$$set({userid:e}),B()}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$$set({endpoint:e}),B()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),B()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),B()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),B()}get lang(){return this.$$.ctx[43]}set lang(e){this.$$set({lang:e}),B()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),B()}get datetimeformat(){return this.$$.ctx[45]}set datetimeformat(e){this.$$set({datetimeformat:e}),B()}get editlimitaction(){return this.$$.ctx[5]}set editlimitaction(e){this.$$set({editlimitaction:e}),B()}get deletelimitaction(){return this.$$.ctx[6]}set deletelimitaction(e){this.$$set({deletelimitaction:e}),B()}get cancelimitscheduleaction(){return this.$$.ctx[7]}set cancelimitscheduleaction(e){this.$$set({cancelimitscheduleaction:e}),B()}get getutctime(){return this.$$.ctx[46]}set getutctime(e){this.$$set({getutctime:e}),B()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",vn),vn}));
|
|
1246
|
+
*/return e.$$set=e=>{"session"in e&&i(40,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(41,d=e.userid),"endpoint"in e&&i(42,h=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(43,y=e.lang),"translationurl"in e&&i(44,b=e.translationurl),"datetimeformat"in e&&i(45,v=e.datetimeformat),"editlimitaction"in e&&i(5,L=e.editlimitaction),"deletelimitaction"in e&&i(6,_=e.deletelimitaction),"cancelimitscheduleaction"in e&&i(7,w=e.cancelimitscheduleaction),"getutctime"in e&&i(46,T=e.getutctime)},e.$$.update=()=>{/*isMounted, session, userid*/67072&e.$$.dirty[1]&&k&&u&&d&&(i(48,D=!0),P=u,C=d),/*isMounted, isLoggedIn*/196608&e.$$.dirty[1]&&k&&D&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&X()})),/*isMounted, isLoggedIn*/196608&e.$$.dirty[1]&&k&&D&&X(),/*clientstyling, customStylingContainer*/264&e.$$.dirty[0]&&p&&o&&(()=>{let e=document.createElement("style");e.innerHTML=p,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/272&e.$$.dirty[0]&&g&&o&&(()=>{try{i(9,S=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1),setTimeout((()=>{i(9,S=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}})(),/*lang*/4096&e.$$.dirty[1]&&y&&oe(),/*translationurl*/8192&e.$$.dirty[1]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ki(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,L,_,w,o,S,H,x,s,O,R,N,U,B,Y,I,j,G,$,z,V,n,{All:"All",RealCash:"Real Money"},X,ne,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(19,I=t.value),i(15,N=Q(I)),Y&&N.includes(Y)||i(18,Y=N[0]),i(22,$=J(I,Y)),i(13,O=!1),$.includes(G)||i(21,G=$[0]);const n=F.find((e=>e.period===I&&e.walletTypes[0]===Y&&e.products.includes(G)));n&&ee(n)},e=>{const t=e.currentTarget;i(18,Y=t.value),i(22,$=J(I,Y)),i(13,O=!1),$.includes(G)||i(21,G=$[0]);const n=F.find((e=>e.period===I&&e.walletTypes[0]===Y&&e.products.includes(G)));n&&ee(n)},ae,se,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{const e=f,t="Deposit"===j?"payment-transactions":"gaming-transactions",i=le(new Date(R.to),{Daily:1,Weekly:7,Monthly:30}[I]);try{const n=new URL(`${e}/gammatrix/gmwi/${t}`);switch(n.searchParams.append("transStatuses","2"),n.searchParams.append("startTime",i.toISOString()),n.searchParams.append("endTime",(new Date).toISOString()),n.searchParams.append("dateOption","Select custom dates"),n.searchParams.append("userId",d),j){case"Deposit":n.searchParams.append("transTypes","1");break;case"Wagering":n.searchParams.append("transTypes","12");break;case"Loss":n.searchParams.append("transTypes","8")}return n.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}},ue,ce,de,he,u,d,h,y,b,v,T,k,D,()=>he(),()=>se(),e=>ae(e),function(){Y=E(this),i(18,Y),i(15,N)},function(){I=E(this),i(19,I),i(16,U)},function(){j=E(this),i(20,j),i(17,B)},()=>he(),()=>ue(),()=>ce(),()=>de(),function(e){A[e?"unshift":"push"]((()=>{o=e,i(8,o)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends F{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),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Ui,Ni,a,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),U()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),U()}});class vn extends F{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;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ContainerCenter p{padding:6px}.ErrorMessage{margin:0 15px;font-size:var(--emw--font-size-x-small, 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:var(--emw--border-radius-large, 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:var(--emw--font-weight-bold, 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}.AddLimitControl{border:0.1rem solid var(--emw--color-primary, #307fe2);border-radius:var(--emw--border-radius-small, 0.3rem);min-height:1rem;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-primary, #307fe2);padding:0.3rem;cursor:pointer;min-width:10rem;display:flex;flex-direction:row;align-items:center;justify-content:center}.WidgetControls{display:flex;width:100%;justify-content:end;gap:10px}.ControlContainer label{display:block;width:100%;font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-bold, 700);margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 5px);width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer select{max-width:100px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 5px);width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.AddLimitControl .ActionsSvg{height:2em;width:2em;display:flex;justify-content:center;cursor:pointer;padding:5px;margin-right:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--color-white, #FFFFFF)}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:var(--emw--color-black, #000000);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:26px;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:var(--emw--font-size-large, 18px);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:var(--emw--color-gray-100, #f5f5f5);border-radius:var(--emw--border-radius-medium, 12px);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:var(--emw--font-weight-bold, 700);text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:var(--emw--font-size-2x-large, 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:var(--emw--font-size-x-large, 24px)}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:var(--emw--color-gray-100, #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;border-radius:var(--emw--border-radius-medium, 12px)}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:var(--emw--font-weight-bold, 700)}.ProductsDropdown button:hover{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-primary, #307fe2);color:var(--emw--color-white, #FFFFFF)}.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),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},bn,yn,a,{session:40,sessiontype:0,userid:41,endpoint:42,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:43,translationurl:44,datetimeformat:45,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7,getutctime:46},null,[-1,-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat","editlimitaction","deletelimitaction","cancelimitscheduleaction","getutctime"]}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),U()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),U()}get userid(){return this.$$.ctx[41]}set userid(e){this.$$set({userid:e}),U()}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$$set({endpoint:e}),U()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),U()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),U()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),U()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),U()}get lang(){return this.$$.ctx[43]}set lang(e){this.$$set({lang:e}),U()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),U()}get datetimeformat(){return this.$$.ctx[45]}set datetimeformat(e){this.$$set({datetimeformat:e}),U()}get editlimitaction(){return this.$$.ctx[5]}set editlimitaction(e){this.$$set({editlimitaction:e}),U()}get deletelimitaction(){return this.$$.ctx[6]}set deletelimitaction(e){this.$$set({deletelimitaction:e}),U()}get cancelimitscheduleaction(){return this.$$.ctx[7]}set cancelimitscheduleaction(e){this.$$set({cancelimitscheduleaction:e}),U()}get getutctime(){return this.$$.ctx[46]}set getutctime(e){this.$$set({getutctime:e}),U()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",vn),vn}));
|
|
1285
1247
|
//# sourceMappingURL=player-rglimits.js.map
|