@everymatrix/player-rglimits 1.29.8 → 1.30.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 +304 -298
- package/dist/player-rglimits.js.map +1 -1
- package/index.html +14 -1
- package/package.json +2 -2
- package/src/PlayerRglimits.svelte +134 -34
- package/src/images/fa-plus-solid.svg.svelte +2 -0
- package/src/translations.js +109 -19
package/dist/player-rglimits.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s
|
|
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 _(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:v(e,t,i)}function L(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
|
|
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 _(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:v(e,t,i)}function L(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(!
|
|
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 H=[],C=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.
|
|
@@ -34,57 +34,57 @@ function B(){
|
|
|
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
|
-
if(0!==N)return;const e=
|
|
37
|
+
if(0!==N)return;const e=s;do{
|
|
38
38
|
// first, call beforeUpdate functions
|
|
39
39
|
// and update components
|
|
40
40
|
try{for(;N<D.length;){const e=D[N];N++,k(e),U(e.$$)}}catch(e){
|
|
41
41
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
42
|
-
throw D.length=0,N=0,e}for(k(null),D.length=0,N=0;
|
|
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
|
|
44
44
|
// afterUpdate functions. This may cause
|
|
45
45
|
// subsequent updates...
|
|
46
|
-
for(let e=0;e<
|
|
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())}
|
|
48
|
+
R.add(t),t())}P.length=0}while(D.length);for(;H.length;)H.pop()();x=!1,R.clear(),k(e)}function U(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
|
-
*/const Y=new Set;function I(e,t){const i=e.$$;null!==i.fragment&&(!function(e){const t=[],i=[];
|
|
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
|
|
54
|
+
i.on_destroy=i.fragment=null,i.ctx=[])}function j(e,t){-1===e.$$.dirty[0]&&(D.push(e),x||(x=!0,C.then(B)),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
|
-
props:
|
|
56
|
+
props:h,update:e,not_equal:c,bound:i(),
|
|
57
57
|
// lifecycle
|
|
58
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(
|
|
58
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o.context||(p?p.$$.context:[])),
|
|
59
59
|
// everything else
|
|
60
|
-
callbacks:i(),dirty:f,skip_bound:!1,root:
|
|
60
|
+
callbacks:i(),dirty:f,skip_bound:!1,root:o.target||p.$$.root};m&&m(g.root);let y=!1;if(g.ctx=l?l(a,o.props||{},((e,t,...i)=>{const n=i.length?i[0]:t;return g.ctx&&c(g.ctx[e],g.ctx[e]=n)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](n),y&&j(a,e)),t})):[],g.update(),y=!0,n(g.before_update),
|
|
61
61
|
// `false` as a special case of no DOM component
|
|
62
|
-
g.fragment=!!u&&u(g.ctx),
|
|
62
|
+
g.fragment=!!u&&u(g.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
g.fragment&&g.fragment.l(e),e.forEach(
|
|
64
|
+
g.fragment&&g.fragment.l(e),e.forEach(d)}else
|
|
65
65
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
66
|
-
g.fragment&&g.fragment.c();
|
|
66
|
+
g.fragment&&g.fragment.c();o.intro&&((b=a.$$.fragment)&&b.i&&(Y.delete(b),b.i(v))),function(e,i,a,o){const{fragment:s,after_update:l}=e.$$;s&&s.m(i,a),o||
|
|
67
67
|
// onMount happens before the initial afterUpdate
|
|
68
|
-
|
|
68
|
+
O((()=>{const i=e.$$.on_mount.map(t).filter(r);
|
|
69
69
|
// if the component was destroyed immediately
|
|
70
70
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
71
71
|
// the destructured on_destroy may still reference to the old array
|
|
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(
|
|
75
|
+
n(i),e.$$.on_mount=[]})),l.forEach(O)}(a,o.target,o.anchor,o.customElement),B()}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
|
|
79
79
|
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){I(this,1),this.$destroy=e}$on(t,i){
|
|
80
80
|
// TODO should this delegate to addEventListener?
|
|
81
|
-
if(!r(i))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const e=n.indexOf(i);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function
|
|
81
|
+
if(!r(i))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const e=n.indexOf(i);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function $(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var z=function(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return $(null==t&&i.path)}},i.exports),i.exports}((function(e,t){e.exports=function(){var t,i;function n(){return t.apply(null,arguments)}
|
|
82
82
|
// This is done to register the method called with moment()
|
|
83
83
|
// without creating circular dependencies.
|
|
84
|
-
function r(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function
|
|
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
|
|
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 Zi(e,t,i,n,!0).utc()}function p(){
|
|
88
88
|
// We need to deep clone this object.
|
|
89
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){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function b(e){var t=f(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}
|
|
90
90
|
// Plugins that add properties should also add the key here (null value),
|
|
@@ -94,58 +94,58 @@ i=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i
|
|
|
94
94
|
function w(e){L(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===_&&(_=!0,n.updateOffset(this),_=!1)}function
|
|
97
|
+
!1===_&&(_=!0,n.updateOffset(this),_=!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
|
-
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(e,t){var i,n=m({},e);for(i in t)
|
|
101
|
+
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(e,t){var i,n=m({},e);for(i in t)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 C(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)
|
|
103
|
+
n[i]=m({},n[i]));return n}function C(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)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,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},Y={};
|
|
104
104
|
// token: 'M'
|
|
105
105
|
// padded: ['MM', 2]
|
|
106
106
|
// ordinal: 'Mo'
|
|
107
107
|
// callback: function () { this.month() + 1 }
|
|
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
|
|
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
|
|
110
|
+
function F(e,t){return e.isValid()?(t=z(t,e.localeData()),U[t]=U[t]||G(t),U[t](e)):e.localeData().invalidDate()}function z(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;i>=0&&B.test(e);)e=e.replace(B,n),B.lastIndex=0,i-=1;return e}var V={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 W(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 Z="Invalid date";function q(){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={};function ne(e,t){var i=e.toLowerCase();ie[i]=ie[i+"s"]=ie[t]=e}function re(e){return"string"==typeof e?ie[e]||ie[e.toLowerCase()]:void 0}function ae(e){var t,i,n={};for(i in e)s(e,i)&&(t=re(i))&&(n[t]=e[i]);return n}var oe={};function se(e,t){oe[e]=t}function le(e){var t,i=[];for(t in e)s(e,t)&&i.push({unit:t,priority:oe[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}function ue(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=ce(t)),i}function he(e,t){return function(i){return null!=i?(fe(this,e,i),n.updateOffset(this,t),this):me(this,e)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(i=de(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),et(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}
|
|
111
111
|
// MOMENTS
|
|
112
|
-
function pe(e){return
|
|
112
|
+
function pe(e){return A(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var i,n=le(e=ae(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(A(this[e=re(e)]))return this[e](t);return this}var ye,be=/\d/,// 0 - 9
|
|
113
113
|
ve=/\d\d/,// 00 - 99
|
|
114
114
|
_e=/\d{3}/,// 000 - 999
|
|
115
115
|
Le=/\d{4}/,// 0000 - 9999
|
|
116
116
|
we=/[+-]?\d{6}/,// -999999 - 999999
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
Te=/\d\d?/,// 0 - 99
|
|
118
|
+
Ee=/\d\d\d\d?/,// 999 - 9999
|
|
119
119
|
Se=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
120
120
|
ke=/\d{1,3}/,// 0 - 999
|
|
121
121
|
Me=/\d{1,4}/,// 0 - 9999
|
|
122
122
|
De=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
Ae=/\d+/,// 0 - inf
|
|
124
|
+
Pe=/[+-]?\d+/,// -inf - inf
|
|
125
125
|
He=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
126
126
|
Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
127
|
-
|
|
127
|
+
xe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
128
128
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
129
129
|
// includes scottish gaelic two word and hyphenated months
|
|
130
|
-
|
|
130
|
+
Oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(e,t,i){ye[e]=A(t)?t:function(e,n){return e&&i?i:t}}function Ne(e,t){return s(ye,e)?ye[e](t._strict,t._locale):new RegExp(Be(e))}
|
|
131
131
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
132
|
-
function Be(e){return Ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Ye={};function Ie(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,i){i[t]=
|
|
132
|
+
function Be(e){return Ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Ye={};function Ie(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,i){i[t]=de(e)}),n=e.length,i=0;i<n;i++)Ye[e[i]]=r}function je(e,t){Ie(e,(function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function Ge(e,t,i){null!=t&&s(Ye,e)&&Ye[e](t,i._a,i,e)}var Fe,$e=0,ze=1,Ve=2,We=3,Ze=4,qe=5,Xe=6,Ke=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=Qe(t,12);return e+=(t-i)/12,1===i?ue(e)?29:28:31-i%7%2}
|
|
133
133
|
// FORMATTING
|
|
134
|
-
|
|
134
|
+
Fe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
135
135
|
// I know
|
|
136
136
|
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
137
|
// ALIASES
|
|
138
138
|
ne("month","M"),
|
|
139
139
|
// PRIORITY
|
|
140
|
-
|
|
140
|
+
se("month",8),
|
|
141
141
|
// PARSING
|
|
142
|
-
Re("M",
|
|
142
|
+
Re("M",Te),Re("MM",Te,ve),Re("MMM",(function(e,t){return t.monthsShortRegex(e)})),Re("MMMM",(function(e,t){return t.monthsRegex(e)})),Ie(["M","MM"],(function(e,t){t[ze]=de(e)-1})),Ie(["MMM","MMMM"],(function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);
|
|
143
143
|
// if we didn't find a month name, mark the date as invalid.
|
|
144
144
|
null!=r?t[ze]=r:g(i).invalidMonth=e}));
|
|
145
145
|
// LOCALES
|
|
146
|
-
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=
|
|
146
|
+
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Oe,at=Oe;function ot(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function st(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,i){var n,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
147
147
|
// 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
|
|
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=Fe.call(this._shortMonthsParse,o))?r:null:-1!==(r=Fe.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Fe.call(this._shortMonthsParse,o))||-1!==(r=Fe.call(this._longMonthsParse,o))?r:null:-1!==(r=Fe.call(this._longMonthsParse,o))||-1!==(r=Fe.call(this._shortMonthsParse,o))?r:null}function ut(e,t,i){var n,r,a;if(this._monthsParseExact)return lt.call(this,e,t,i);
|
|
149
149
|
// TODO: add sorting
|
|
150
150
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
151
151
|
// see sorting in computeMonthsParse
|
|
@@ -157,9 +157,9 @@ r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp(
|
|
|
157
157
|
// MOMENTS
|
|
158
158
|
function ct(e,t){var i;if(!e.isValid())
|
|
159
159
|
// No op
|
|
160
|
-
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=
|
|
160
|
+
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else
|
|
161
161
|
// TODO: Another silent failure?
|
|
162
|
-
if(!c(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function
|
|
162
|
+
if(!c(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function dt(e){return null!=e?(ct(this,e),n.updateOffset(this,!0),this):me(this,"Month")}function ht(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,i,n=[],r=[],a=[];for(t=0;t<12;t++)
|
|
163
163
|
// make the regex if we don't have it already
|
|
164
164
|
i=f([2e3,t]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));
|
|
165
165
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
@@ -173,18 +173,18 @@ I("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),I(0,["YY"
|
|
|
173
173
|
// ALIASES
|
|
174
174
|
ne("year","y"),
|
|
175
175
|
// PRIORITIES
|
|
176
|
-
|
|
176
|
+
se("year",1),
|
|
177
177
|
// PARSING
|
|
178
|
-
Re("Y",
|
|
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
179
|
// MOMENTS
|
|
180
|
-
var yt=
|
|
180
|
+
var yt=he("FullYear",!0);function bt(){return ue(this.year())}function vt(e,t,i,n,r,a,o){
|
|
181
181
|
// can't just apply() to create a date:
|
|
182
182
|
// https://stackoverflow.com/q/181348
|
|
183
|
-
var
|
|
183
|
+
var s;
|
|
184
184
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
185
185
|
return e<100&&e>=0?(
|
|
186
186
|
// preserve leap years using a full 400 year cycle, then reset
|
|
187
|
-
|
|
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 _t(e){var t,i;
|
|
188
188
|
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
189
189
|
return e<100&&e>=0?(
|
|
190
190
|
// preserve leap years using a full 400 year cycle, then reset
|
|
@@ -193,33 +193,33 @@ return e<100&&e>=0?(
|
|
|
193
193
|
function Lt(e,t,i){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
194
194
|
n=7+t-i;return-(7+_t(e,0,n).getUTCDay()-t)%7+n-1}
|
|
195
195
|
// 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,s
|
|
196
|
+
function wt(e,t,i,n,r){var a,o,s=1+7*(t-1)+(7+i-n)%7+Lt(e,n,r);return s<=0?o=gt(a=e-1)+s:s>gt(e)?(a=e+1,o=s-gt(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Tt(e,t,i){var n,r,a=Lt(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=Lt(e,t,i),r=Lt(e+1,t,i);return(gt(e)-n+r)/7}
|
|
197
197
|
// FORMATTING
|
|
198
198
|
// HELPERS
|
|
199
199
|
// LOCALES
|
|
200
|
-
function St(e){return
|
|
200
|
+
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
201
|
// ALIASES
|
|
202
202
|
ne("week","w"),ne("isoWeek","W"),
|
|
203
203
|
// PRIORITIES
|
|
204
|
-
|
|
204
|
+
se("week",5),se("isoWeek",5),
|
|
205
205
|
// PARSING
|
|
206
|
-
Re("w",
|
|
206
|
+
Re("w",Te),Re("ww",Te,ve),Re("W",Te),Re("WW",Te,ve),je(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=de(e)}));var kt={dow:0,// Sunday is the first day of the week.
|
|
207
207
|
doy:6};function Mt(){return this._week.dow}function Dt(){return this._week.doy}
|
|
208
208
|
// MOMENTS
|
|
209
|
-
function
|
|
209
|
+
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
210
|
// FORMATTING
|
|
211
211
|
// HELPERS
|
|
212
212
|
function Ht(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
213
213
|
// LOCALES
|
|
214
|
-
function
|
|
214
|
+
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"),
|
|
215
215
|
// ALIASES
|
|
216
216
|
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
217
217
|
// PRIORITY
|
|
218
|
-
|
|
218
|
+
se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
219
219
|
// PARSING
|
|
220
|
-
Re("d",
|
|
220
|
+
Re("d",Te),Re("e",Te),Re("E",Te),Re("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Re("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Re("dddd",(function(e,t){return t.weekdaysRegex(e)})),je(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);
|
|
221
221
|
// if we didn't get a weekday name, mark the date as invalid
|
|
222
|
-
null!=r?t.d=r:g(i).invalidWeekday=e})),
|
|
222
|
+
null!=r?t.d=r:g(i).invalidWeekday=e})),je(["d","e","E"],(function(e,t,i,n){t[n]=de(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("_"),Bt=Oe,Ut=Oe,Yt=Oe;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=Fe.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Fe.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Fe.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Fe.call(this._weekdaysParse,o))||-1!==(r=Fe.call(this._shortWeekdaysParse,o))||-1!==(r=Fe.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Fe.call(this._shortWeekdaysParse,o))||-1!==(r=Fe.call(this._weekdaysParse,o))||-1!==(r=Fe.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Fe.call(this._minWeekdaysParse,o))||-1!==(r=Fe.call(this._weekdaysParse,o))||-1!==(r=Fe.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
223
|
// test the regex
|
|
224
224
|
if(
|
|
225
225
|
// make the regex if we don't have it already
|
|
@@ -229,12 +229,12 @@ function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this
|
|
|
229
229
|
// behaves the same as moment#day except
|
|
230
230
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
231
231
|
// as a setter, sunday should belong to the previous week.
|
|
232
|
-
if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(
|
|
232
|
+
if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Bt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ut),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
233
|
// make the regex if we don't have it already
|
|
234
|
-
i=f([2e3,1]).day(t),n=Ue(this.weekdaysMin(i,"")),r=Ue(this.weekdaysShort(i,"")),a=Ue(this.weekdays(i,"")),
|
|
234
|
+
i=f([2e3,1]).day(t),n=Ue(this.weekdaysMin(i,"")),r=Ue(this.weekdaysShort(i,"")),a=Ue(this.weekdays(i,"")),o.push(n),s.push(r),l.push(a),u.push(n),u.push(r),u.push(a);
|
|
235
235
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
236
236
|
// will match the longer piece.
|
|
237
|
-
|
|
237
|
+
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")}
|
|
238
238
|
// FORMATTING
|
|
239
239
|
function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function ei(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
|
|
240
240
|
// PARSING
|
|
@@ -247,24 +247,24 @@ return"p"===(e+"").toLowerCase().charAt(0)}I("H",["HH",2],0,"hour"),I("h",["hh",
|
|
|
247
247
|
// ALIASES
|
|
248
248
|
ne("hour","h"),
|
|
249
249
|
// PRIORITY
|
|
250
|
-
|
|
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"],We),Ie(["k","kk"],(function(e,t,i){var n=de(e);t[We]=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[We]=de(e),g(i).bigHour=!0})),Ie("hmm",(function(e,t,i){var n=e.length-2;t[We]=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[We]=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[We]=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[We]=de(e.substr(0,n)),t[Ze]=de(e.substr(n,2)),t[qe]=de(e.substr(r))}));var ni=/[ap]\.?m?\.?/i,
|
|
251
251
|
// Setting the hour should keep the time, because the user explicitly
|
|
252
252
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
253
253
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
254
254
|
// this rule.
|
|
255
|
-
ri=
|
|
255
|
+
ri=he("Hours",!0);function ai(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var oi,si={calendar:x,longDateFormat:V,invalidDate:Z,ordinal:X,dayOfMonthOrdinalParse:K,relativeTime:Q,months:tt,monthsShort:it,week:kt,weekdays:Ot,weekdaysMin:Nt,weekdaysShort:Rt,meridiemParse:ni},li={},ui={};
|
|
256
256
|
// internal storage for locale config files
|
|
257
|
-
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
|
|
257
|
+
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
258
|
// pick the locale from the array
|
|
259
259
|
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
|
260
260
|
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
|
261
|
-
function
|
|
261
|
+
function hi(e){for(var t,i,n,r,a=0;a<e.length;){for(t=(r=di(e[a]).split("-")).length,i=(i=di(e[a+1]))?i.split("-"):null;t>0;){if(n=fi(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&ci(r,i)>=t-1)
|
|
262
262
|
//the next array item is better than a shallower substring of this one
|
|
263
|
-
break;t--}a++}return
|
|
263
|
+
break;t--}a++}return oi}function mi(e){
|
|
264
264
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
265
265
|
return null!=e.match("^[^/\\\\]*$")}function fi(t){var i=null;
|
|
266
266
|
// TODO: Find a better way to register and load all the locales in Node
|
|
267
|
-
if(void 0===li[t]&&e&&e.exports&&mi(t))try{i=
|
|
267
|
+
if(void 0===li[t]&&e&&e.exports&&mi(t))try{i=oi._abbr,$(),pi(i)}catch(e){
|
|
268
268
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
269
269
|
// when trying to find en-US, en_US, en-us for every format call
|
|
270
270
|
li[t]=null;// null means not found
|
|
@@ -274,15 +274,15 @@ li[t]=null;// null means not found
|
|
|
274
274
|
// locale key.
|
|
275
275
|
function pi(e,t){var i;return e&&((i=u(t)?bi(e):gi(e,t))?
|
|
276
276
|
// moment.duration._locale = moment._locale = data;
|
|
277
|
-
|
|
277
|
+
oi=i:"undefined"!=typeof console&&console.warn&&
|
|
278
278
|
//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?")),
|
|
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 C(H(n,t)),ui[e]&&ui[e].forEach((function(e){gi(e.name,e.config)})),
|
|
280
280
|
// backwards compat for now: also set the locale
|
|
281
281
|
// make sure we set the locale AFTER all child locales have been
|
|
282
282
|
// created, so we won't end up with the child locale set.
|
|
283
283
|
pi(e),li[e]}
|
|
284
284
|
// useful for testing
|
|
285
|
-
return delete li[e],null}function yi(e,t){if(null!=t){var i,n,r=
|
|
285
|
+
return delete li[e],null}function yi(e,t){if(null!=t){var i,n,r=si;null!=li[e]&&null!=li[e].parentLocale?
|
|
286
286
|
// Update existing child locale in-place to avoid memory-leaks
|
|
287
287
|
li[e].set(H(li[e]._config,t)):(
|
|
288
288
|
// MERGE
|
|
@@ -296,28 +296,28 @@ pi(e)}else
|
|
|
296
296
|
// pass null for config to unupdate, useful for tests
|
|
297
297
|
null!=li[e]&&(null!=li[e].parentLocale?(li[e]=li[e].parentLocale,e===pi()&&pi(e)):null!=li[e]&&delete li[e]);return li[e]}
|
|
298
298
|
// returns locale data
|
|
299
|
-
function bi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return
|
|
299
|
+
function bi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return oi;if(!a(e)){if(
|
|
300
300
|
//short-circuit everything else
|
|
301
|
-
t=fi(e))return t;e=[e]}return
|
|
301
|
+
t=fi(e))return t;e=[e]}return hi(e)}function vi(){return k(li)}function _i(e){var t,i=e._a;return i&&-2===g(e).overflow&&(t=i[ze]<0||i[ze]>11?ze:i[Ve]<1||i[Ve]>et(i[$e],i[ze])?Ve:i[We]<0||i[We]>24||24===i[We]&&(0!==i[Ze]||0!==i[qe]||0!==i[Xe])?We:i[Ze]<0||i[Ze]>59?Ze:i[qe]<0||i[qe]>59?qe:i[Xe]<0||i[Xe]>999?Xe:-1,g(e)._overflowDayOfYear&&(t<$e||t>Ve)&&(t=Ve),g(e)._overflowWeeks&&-1===t&&(t=Ke),g(e)._overflowWeekday&&-1===t&&(t=Je),g(e).overflow=t),e}
|
|
302
302
|
// iso 8601 regex
|
|
303
303
|
// 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 Li=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,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)?)?$/,
|
|
304
|
+
var Li=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,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
305
|
// iso time formats and regexes
|
|
306
306
|
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
307
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
308
308
|
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
309
|
// date from iso format
|
|
310
|
-
function
|
|
310
|
+
function Ai(e){var t,i,n,r,a,o,s=e._i,l=Li.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
311
|
// 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(!
|
|
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=[Hi(e),it.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}function Hi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ci(e){
|
|
313
313
|
// 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
|
|
314
|
+
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
315
|
// the only allowed military tz is Z
|
|
316
316
|
return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}
|
|
317
317
|
// date and time from ref 2822 format
|
|
318
|
-
function Ri(e){var t,i=Mi.exec(Ci(e._i));if(i){if(t=
|
|
318
|
+
function Ri(e){var t,i=Mi.exec(Ci(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=_t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
319
319
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
320
|
-
function Ni(e){var t=ki.exec(e._i);null===t?(
|
|
320
|
+
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
321
|
// Final attempt, use Input Fallback
|
|
322
322
|
n.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
323
323
|
// Pick the first defined of two or three arguments.
|
|
@@ -328,7 +328,7 @@ var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.g
|
|
|
328
328
|
// the array should mirror the parameters below
|
|
329
329
|
// note: all values past the year are optional and will default to the lowest possible value.
|
|
330
330
|
// [year, month, day , hour, minute, second, millisecond]
|
|
331
|
-
function Yi(e){var t,i,n,r,a,
|
|
331
|
+
function Yi(e){var t,i,n,r,a,o=[];if(!e._d){
|
|
332
332
|
// Default to current date.
|
|
333
333
|
// * if no year, month, day of month are given, default to today
|
|
334
334
|
// * if day of month is given, default month and year
|
|
@@ -338,21 +338,21 @@ for(n=Ui(e),
|
|
|
338
338
|
//compute day of the year from weeks and weekdays
|
|
339
339
|
e._w&&null==e._a[Ve]&&null==e._a[ze]&&Ii(e),
|
|
340
340
|
//if the day of the year is set, figure out what it is
|
|
341
|
-
null!=e._dayOfYear&&(a=Bi(e._a[
|
|
341
|
+
null!=e._dayOfYear&&(a=Bi(e._a[$e],n[$e]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),i=_t(a,0,e._dayOfYear),e._a[ze]=i.getUTCMonth(),e._a[Ve]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];
|
|
342
342
|
// Zero out whatever was not defaulted, including time
|
|
343
|
-
for(;t<7;t++)e._a[t]=
|
|
343
|
+
for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
344
344
|
// Check for 24:00:00.000
|
|
345
|
-
24===e._a[We]&&0===e._a[Ze]&&0===e._a[qe]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[We]=0),e._d=(e._useUTC?_t:vt).apply(null,
|
|
345
|
+
24===e._a[We]&&0===e._a[Ze]&&0===e._a[qe]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[We]=0),e._d=(e._useUTC?_t:vt).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
|
346
346
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
347
347
|
// with parseZone.
|
|
348
348
|
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[We]=24),
|
|
349
349
|
// check for mismatching day of week
|
|
350
|
-
e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Ii(e){var t,i,n,r,a,s,
|
|
350
|
+
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
351
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
352
352
|
// how we interpret now (local, utc, fixed offset). So create
|
|
353
353
|
// a now version of current config (take local/utc/offset flags, and
|
|
354
354
|
// create now).
|
|
355
|
-
i=Bi(t.GG,e._a[
|
|
355
|
+
i=Bi(t.GG,e._a[$e],Tt(qi(),1,4).year),n=Bi(t.W,1),((r=Bi(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=Tt(qi(),a,o),i=Bi(t.gg,e._a[$e],u.year),
|
|
356
356
|
// Default to current week.
|
|
357
357
|
n=Bi(t.w,u.week),null!=t.d?((
|
|
358
358
|
// weekday -- low day numbers are considered next week
|
|
@@ -360,39 +360,39 @@ r=t.d)<0||r>6)&&(l=!0):null!=t.e?(
|
|
|
360
360
|
// local weekday -- counting starts from beginning of week
|
|
361
361
|
r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):
|
|
362
362
|
// default to beginning of week
|
|
363
|
-
r=a),n<1||n>
|
|
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[$e]=s.year,e._dayOfYear=s.dayOfYear)}
|
|
364
364
|
// constant that refers to the ISO standard
|
|
365
365
|
// date from string and format string
|
|
366
|
-
function
|
|
366
|
+
function ji(e){
|
|
367
367
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
368
368
|
if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],g(e).empty=!0;
|
|
369
369
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
370
|
-
var t,i,r,a,s,
|
|
370
|
+
var t,i,r,a,o,s,l,u=""+e._i,c=u.length,d=0;for(l=(r=z(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)a=r[t],(i=(u.match(Ne(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
371
|
// don't parse if it's not a known token
|
|
372
|
-
Y[a]?(i?g(e).empty=!1:g(e).unusedTokens.push(a),
|
|
372
|
+
Y[a]?(i?g(e).empty=!1:g(e).unusedTokens.push(a),Ge(a,i,e)):e._strict&&!i&&g(e).unusedTokens.push(a);
|
|
373
373
|
// add remaining unparsed input length to the string
|
|
374
|
-
g(e).charsLeftOver=c-
|
|
374
|
+
g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),
|
|
375
375
|
// clear _12h flag if hour is <= 12
|
|
376
376
|
e._a[We]<=12&&!0===g(e).bigHour&&e._a[We]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
|
377
377
|
// handle meridiem
|
|
378
|
-
e._a[We]=
|
|
378
|
+
e._a[We]=Gi(e._locale,e._a[We],e._meridiem),null!==(
|
|
379
379
|
// handle era
|
|
380
|
-
|
|
380
|
+
s=g(e).era)&&(e._a[$e]=e._locale.erasConvertYear(s,e._a[$e])),Yi(e),_i(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
381
|
// Fallback
|
|
382
382
|
(n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}
|
|
383
383
|
// date from string and array of format strings
|
|
384
|
-
function
|
|
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=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ji(t),y(t)&&(o=!0),
|
|
385
385
|
// if there is any input that was not parsed add a penalty for that format
|
|
386
386
|
a+=g(t).charsLeftOver,
|
|
387
387
|
//or tokens
|
|
388
|
-
a+=10*g(t).unusedTokens.length,g(t).score=a,
|
|
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=ae(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 zi(e){var t=new w(_i(Vi(e)));return t._nextDay&&(
|
|
389
389
|
// Adding is smart enough around DST
|
|
390
|
-
t.add(1,"d"),t._nextDay=void 0),t}function Vi(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)),
|
|
390
|
+
t.add(1,"d"),t._nextDay=void 0),t}function Vi(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(_i(t)):(d(t)?e._d=t:a(i)?Fi(e):i?ji(e):Wi(e),y(e)||(e._d=null),e))}function Wi(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
391
|
// from milliseconds
|
|
392
|
-
e._d=new Date(t):n.createFromInputFallback(e)}function Zi(e,t,i,n,r){var
|
|
392
|
+
e._d=new Date(t):n.createFromInputFallback(e)}function Zi(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
393
|
// object construction must be done this way.
|
|
394
394
|
// https://github.com/moment/moment/issues/1423
|
|
395
|
-
|
|
395
|
+
s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=i,s._i=e,s._f=t,s._strict=n,zi(s)}function qi(e,t,i,n){return Zi(e,t,i,n,!1)}n.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},
|
|
396
396
|
// constant that refers to the RFC 2822 form
|
|
397
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=qi.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=qi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));
|
|
398
398
|
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
@@ -402,32 +402,32 @@ n.RFC_2822=function(){};var Xi=S("moment().min is deprecated, use moment.max ins
|
|
|
402
402
|
// first element is an array of moment objects.
|
|
403
403
|
function Ji(e,t){var i,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return qi();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}
|
|
404
404
|
// 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(
|
|
406
|
-
parseFloat(e[nn[i]])!==
|
|
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===Fe.call(nn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[nn[i]]){if(n)return!1;// only allow non-integers for smallest unit
|
|
406
|
+
parseFloat(e[nn[i]])!==de(e[nn[i]])&&(n=!0)}return!0}function an(){return this._isValid}function on(){return An(NaN)}function sn(e){var t=ae(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
407
|
// representation for dateAddRemove
|
|
408
408
|
this._milliseconds=+c+1e3*u+// 1000
|
|
409
409
|
6e4*l+// 1000 * 60
|
|
410
|
-
1e3*
|
|
410
|
+
1e3*s*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
|
411
411
|
// Because of dateAddRemove treats 24 hours as different from a
|
|
412
412
|
// day when working around DST, we need to store them separately
|
|
413
|
-
this._days=+
|
|
413
|
+
this._days=+o+7*a,
|
|
414
414
|
// It is impossible to translate months into days without knowing
|
|
415
415
|
// which months you are are talking about, so we have to store
|
|
416
416
|
// it separately.
|
|
417
|
-
this._months=+r+3*n+12*i,this._data={},this._locale=bi(),this._bubble()}function ln(e){return e instanceof
|
|
417
|
+
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
418
|
// 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),
|
|
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&&de(e[n])!==de(t[n]))&&o++;return o+a}
|
|
420
420
|
// FORMATTING
|
|
421
|
-
function
|
|
421
|
+
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
422
|
// PARSING
|
|
423
423
|
Re("Z",Ce),Re("ZZ",Ce),Ie(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=mn(Ce,e)}));
|
|
424
424
|
// HELPERS
|
|
425
425
|
// timezone chunker
|
|
426
426
|
// '+10:00' > ['10', '00']
|
|
427
427
|
// '-1530' > ['-15', '30']
|
|
428
|
-
var
|
|
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]+de(i[2]))?0:"+"===i[0]?n:-n}
|
|
429
429
|
// 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=(
|
|
430
|
+
function fn(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(T(e)||d(e)?e.valueOf():qi(e).valueOf())-i.valueOf(),
|
|
431
431
|
// Use low-level api, because this fn is low-level api.
|
|
432
432
|
i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):qi(e).local()}function pn(e){
|
|
433
433
|
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
|
@@ -446,17 +446,17 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
446
446
|
// a second time. In case it wants us to change the offset again
|
|
447
447
|
// _changeInProgress == true case, then we have to adjust, because
|
|
448
448
|
// 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(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=pn(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?
|
|
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(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=pn(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?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 _n(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mn(He,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ln(e){return!!this.isValid()&&(e=e?qi(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 L(t,this),(t=Vi(t))._a?(e=t._isUTC?f(t._a):qi(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
450
|
// ASP.NET json date format regex
|
|
451
451
|
n.updateOffset=function(){};var Mn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
452
452
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
453
453
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
454
454
|
// and further modified to allow for strings containing both week and day
|
|
455
|
-
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
|
|
455
|
+
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
456
|
// matching against regexp is expensive, do it on demand
|
|
457
|
-
|
|
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:de(o[Ve])*i,h:de(o[We])*i,m:de(o[Ze])*i,s:de(o[qe])*i,ms:de(un(1e3*o[Xe]))*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
458
|
// checks for null or undefined
|
|
459
|
-
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Cn(qi(a.from),qi(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),n=new
|
|
459
|
+
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Cn(qi(a.from),qi(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
460
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
461
461
|
// converts floats to ints.
|
|
462
462
|
// inp may be undefined, so careful calling replace on it.
|
|
@@ -464,16 +464,16 @@ var i=e&&parseFloat(e.replace(",","."));
|
|
|
464
464
|
// apply sign while we're at it
|
|
465
465
|
return(isNaN(i)?0:i)*t}function Hn(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Cn(e,t){var i;return e.isValid()&&t.isValid()?(t=fn(t,e),e.isBefore(t)?i=Hn(e,t):((i=Hn(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}
|
|
466
466
|
// TODO: remove 'name' arg after deprecation is removed
|
|
467
|
-
function
|
|
467
|
+
function xn(e,t){return function(i,n){var r;
|
|
468
468
|
//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),
|
|
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&&ct(e,me(e,"Month")+s*i),o&&fe(e,"Date",me(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 Bn(e){return"string"==typeof e||e instanceof String}
|
|
470
470
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
471
|
-
function Un(e){return
|
|
471
|
+
function Un(e){return T(e)||d(e)||Bn(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)&&Bn(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
472
|
// Support for single parameter, formats only overload to the calendar function
|
|
473
|
-
1===arguments.length&&(arguments[0]?Un(arguments[0])?(e=arguments[0],t=void 0):
|
|
473
|
+
1===arguments.length&&(arguments[0]?Un(arguments[0])?(e=arguments[0],t=void 0):jn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
474
474
|
// We want to compare the start of today, vs this.
|
|
475
475
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
476
|
-
var i=e||qi(),r=fn(i,this).startOf("day"),a=n.calendarFormat(this,r)||"sameElse",
|
|
476
|
+
var i=e||qi(),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,qi(i)))}function $n(){return new w(this)}function zn(e,t){var i=T(e)?e:qi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function Vn(e,t){var i=T(e)?e:qi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function Wn(e,t,i,n){var r=T(e)?e:qi(e),a=T(t)?t:qi(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i))}function Zn(e,t){var i,n=T(e)?e:qi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function qn(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=re(t)){case"year":a=Jn(this,n)/12;break;case"month":a=Jn(this,n);break;case"quarter":a=Jn(this,n)/3;break;case"second":a=(this-n)/1e3;break;// 1000
|
|
477
477
|
case"minute":a=(this-n)/6e4;break;// 1000 * 60
|
|
478
478
|
case"hour":a=(this-n)/36e5;break;// 1000 * 60 * 60
|
|
479
479
|
case"day":a=(this-n-r)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
@@ -487,70 +487,70 @@ var i=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
|
487
487
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
488
488
|
n=e.clone().add(i,"months");
|
|
489
489
|
//check for negative zero, return zero if negative zero
|
|
490
|
-
return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999
|
|
490
|
+
return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?F(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?
|
|
491
491
|
// native implementation is ~50x faster, use it when we can
|
|
492
|
-
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z"
|
|
492
|
+
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(i,"Z")):F(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
493
493
|
/**
|
|
494
494
|
* Return a human readable representation of a moment that can
|
|
495
495
|
* also be evaluated to get a new moment which is the same
|
|
496
496
|
*
|
|
497
497
|
* @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
|
|
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()||qi(e).isValid())?An({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(qi(),e)}function ar(e,t){return this.isValid()&&(T(e)&&e.isValid()||qi(e).isValid())?An({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function or(e){return this.to(qi(),e)}
|
|
499
499
|
// If passed a locale key, it will set the locale for this
|
|
500
500
|
// instance. Otherwise, it will return the locale configuration
|
|
501
501
|
// variables for this instance.
|
|
502
|
-
function
|
|
502
|
+
function sr(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bi(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ur(){return this._locale}var cr=1e3,dr=60*cr,hr=60*dr,mr=3506328*hr;
|
|
503
503
|
// actual modulo - handles negative numbers (for dates before 1970):
|
|
504
504
|
function fr(e,t){return(e%t+t)%t}function pr(e,t,i){
|
|
505
505
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
506
506
|
return e<100&&e>=0?new Date(e+400,t,i)-mr:new Date(e,t,i).valueOf()}function gr(e,t,i){
|
|
507
507
|
// 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=re(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*
|
|
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=re(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*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=re(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=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 _r(){return Math.floor(this.valueOf()/1e3)}function Lr(){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
509
|
// new Date(NaN).toJSON() === null
|
|
510
|
-
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
|
|
510
|
+
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
511
|
// truncate time
|
|
512
|
-
a=n(
|
|
512
|
+
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
513
|
// truncate time
|
|
514
|
-
a=n(
|
|
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 Hr(e,t){var i=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*i}function Cr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
515
515
|
// 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
|
|
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 xr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
517
517
|
// truncate time
|
|
518
|
-
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function
|
|
518
|
+
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
519
|
// truncate time
|
|
520
520
|
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
521
|
// 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
|
|
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 Br(e){return s(this,"_erasAbbrRegex")||Fr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ur(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||Ae}function Fr(){var e,t,i=[],n=[],r=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)n.push(Ue(o[e].name)),i.push(Ue(o[e].abbr)),r.push(Ue(o[e].narrow)),a.push(Ue(o[e].name)),a.push(Ue(o[e].abbr)),a.push(Ue(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}
|
|
523
523
|
// FORMATTING
|
|
524
|
-
function
|
|
524
|
+
function $r(e,t){I(0,[e,e.length],0,t)}
|
|
525
525
|
// MOMENTS
|
|
526
|
-
function zr(e){return Kr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vr(e){return Kr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wr(){return
|
|
526
|
+
function zr(e){return Kr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vr(e){return Kr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wr(){return Et(this.year(),1,4)}function Zr(){return Et(this.isoWeekYear(),1,4)}function qr(){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=_t(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}
|
|
527
527
|
// FORMATTING
|
|
528
528
|
// MOMENTS
|
|
529
529
|
function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
530
530
|
// 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"),Re("N",Yr),Re("NN",Yr),Re("NNN",Yr),Re("NNNN",Ir),Re("NNNNN",
|
|
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"),Re("N",Yr),Re("NN",Yr),Re("NNN",Yr),Re("NNNN",Ir),Re("NNNNN",jr),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,n){var r=i._locale.erasParse(e,n,i._strict);r?g(i).era=r:g(i).invalidEra=e})),Re("y",Ae),Re("yy",Ae),Re("yyy",Ae),Re("yyyy",Ae),Re("yo",Gr),Ie(["y","yy","yyy","yyyy"],$e),Ie(["yo"],(function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[$e]=i._locale.eraYearOrdinalParse(e,r):t[$e]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$r("gggg","weekYear"),$r("ggggg","weekYear"),$r("GGGG","isoWeekYear"),$r("GGGGG","isoWeekYear"),
|
|
532
532
|
// ALIASES
|
|
533
533
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
534
534
|
// PRIORITY
|
|
535
|
-
|
|
535
|
+
se("weekYear",1),se("isoWeekYear",1),
|
|
536
536
|
// PARSING
|
|
537
|
-
Re("G",
|
|
537
|
+
Re("G",Pe),Re("g",Pe),Re("GG",Te,ve),Re("gg",Te,ve),Re("GGGG",Me,Le),Re("gggg",Me,Le),Re("GGGGG",De,we),Re("ggggg",De,we),je(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=de(e)})),je(["gg","GG"],(function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),
|
|
538
538
|
// ALIASES
|
|
539
539
|
ne("quarter","Q"),
|
|
540
540
|
// PRIORITY
|
|
541
|
-
|
|
541
|
+
se("quarter",7),
|
|
542
542
|
// PARSING
|
|
543
|
-
Re("Q",be),Ie("Q",(function(e,t){t[ze]=3*(
|
|
543
|
+
Re("Q",be),Ie("Q",(function(e,t){t[ze]=3*(de(e)-1)})),I("D",["DD",2],"Do","date"),
|
|
544
544
|
// ALIASES
|
|
545
545
|
ne("date","D"),
|
|
546
546
|
// PRIORITY
|
|
547
|
-
|
|
547
|
+
se("date",9),
|
|
548
548
|
// PARSING
|
|
549
|
-
Re("D",
|
|
549
|
+
Re("D",Te),Re("DD",Te,ve),Re("Do",(function(e,t){
|
|
550
550
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
551
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],Ve),Ie("Do",(function(e,t){t[Ve]=
|
|
551
|
+
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],Ve),Ie("Do",(function(e,t){t[Ve]=de(e.match(Te)[0])}));
|
|
552
552
|
// MOMENTS
|
|
553
|
-
var ea=
|
|
553
|
+
var ea=he("Date",!0);
|
|
554
554
|
// FORMATTING
|
|
555
555
|
// HELPERS
|
|
556
556
|
// MOMENTS
|
|
@@ -560,39 +560,39 @@ I("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
|
560
560
|
// ALIASES
|
|
561
561
|
ne("dayOfYear","DDD"),
|
|
562
562
|
// PRIORITY
|
|
563
|
-
|
|
563
|
+
se("dayOfYear",4),
|
|
564
564
|
// PARSING
|
|
565
|
-
Re("DDD",ke),Re("DDDD",_e),Ie(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=
|
|
565
|
+
Re("DDD",ke),Re("DDDD",_e),Ie(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=de(e)})),I("m",["mm",2],0,"minute"),
|
|
566
566
|
// ALIASES
|
|
567
567
|
ne("minute","m"),
|
|
568
568
|
// PRIORITY
|
|
569
|
-
|
|
569
|
+
se("minute",14),
|
|
570
570
|
// PARSING
|
|
571
|
-
Re("m",
|
|
571
|
+
Re("m",Te),Re("mm",Te,ve),Ie(["m","mm"],Ze);
|
|
572
572
|
// MOMENTS
|
|
573
|
-
var ia=
|
|
573
|
+
var ia=he("Minutes",!1);
|
|
574
574
|
// FORMATTING
|
|
575
575
|
I("s",["ss",2],0,"second"),
|
|
576
576
|
// ALIASES
|
|
577
577
|
ne("second","s"),
|
|
578
578
|
// PRIORITY
|
|
579
|
-
|
|
579
|
+
se("second",15),
|
|
580
580
|
// PARSING
|
|
581
|
-
Re("s",
|
|
581
|
+
Re("s",Te),Re("ss",Te,ve),Ie(["s","ss"],qe);
|
|
582
582
|
// MOMENTS
|
|
583
|
-
var na,ra,aa=
|
|
583
|
+
var na,ra,aa=he("Seconds",!1);
|
|
584
584
|
// FORMATTING
|
|
585
585
|
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
586
|
// ALIASES
|
|
587
587
|
ne("millisecond","ms"),
|
|
588
588
|
// PRIORITY
|
|
589
|
-
|
|
589
|
+
se("millisecond",16),
|
|
590
590
|
// PARSING
|
|
591
|
-
Re("S",ke,be),Re("SS",ke,ve),Re("SSS",ke,_e),na="SSSS";na.length<=9;na+="S")Re(na,
|
|
591
|
+
Re("S",ke,be),Re("SS",ke,ve),Re("SSS",ke,_e),na="SSSS";na.length<=9;na+="S")Re(na,Ae);function oa(e,t){t[Xe]=de(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")Ie(na,oa);
|
|
592
592
|
// MOMENTS
|
|
593
|
-
function
|
|
593
|
+
function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=he("Milliseconds",!1),
|
|
594
594
|
// FORMATTING
|
|
595
|
-
I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){return qi(1e3*e)}function
|
|
595
|
+
I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){return qi(1e3*e)}function da(){return qi.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=pe,ua.invalidAt=Mr,ua.isAfter=zn,ua.isBefore=Vn,ua.isBetween=Wn,ua.isSame=Zn,ua.isSameOrAfter=qn,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=ge,ua.startOf=yr,ua.subtract=Nn,ua.toArray=wr,ua.toObject=Tr,ua.toDate=Lr,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=_r,ua.valueOf=vr,ua.creationData=Dr,ua.eraName=Cr,ua.eraNarrow=xr,ua.eraAbbr=Or,ua.eraYear=Rr,ua.year=yt,ua.isLeapYear=bt,ua.weekYear=zr,ua.isoWeekYear=Vr,ua.quarter=ua.quarters=Qr,ua.month=dt,ua.daysInMonth=ht,ua.week=ua.weeks=At,ua.isoWeek=ua.isoWeeks=Pt,ua.weeksInYear=qr,ua.weeksInWeekYear=Xr,ua.isoWeeksInYear=Wr,ua.isoWeeksInISOWeekYear=Zr,ua.date=ea,ua.day=ua.days=zt,ua.weekday=Vt,ua.isoWeekday=Wt,ua.dayOfYear=ta,ua.hour=ua.hours=ri,ua.minute=ua.minutes=ia,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=gn,ua.utc=bn,ua.local=vn,ua.parseZone=_n,ua.hasAlignedHourOffset=Ln,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",dt),ua.years=S("years accessor is deprecated. Use year instead",yt),ua.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yn),ua.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Tn);var ma=C.prototype;function fa(e,t,i,n){var r=bi(),a=f().set(n,t);return r[i](a,e)}function pa(e,t,i){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=fa(e,n,i,"month");return r}
|
|
596
596
|
// ()
|
|
597
597
|
// (5)
|
|
598
598
|
// (fmt, 5)
|
|
@@ -601,34 +601,34 @@ I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){r
|
|
|
601
601
|
// (true, 5)
|
|
602
602
|
// (true, fmt, 5)
|
|
603
603
|
// (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(),
|
|
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 _a(e,t,i){return ga(e,t,i,"weekdaysShort")}function La(e,t,i){return ga(e,t,i,"weekdaysMin")}ma.calendar=O,ma.longDateFormat=W,ma.invalidDate=q,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=Hr,ma.erasAbbrRegex=Br,ma.erasNameRegex=Nr,ma.erasNarrowRegex=Ur,ma.months=ot,ma.monthsShort=st,ma.monthsParse=ut,ma.monthsRegex=ft,ma.monthsShortRegex=mt,ma.week=St,ma.firstDayOfYear=Dt,ma.firstDayOfWeek=Mt,ma.weekdays=It,ma.weekdaysMin=Gt,ma.weekdaysShort=jt,ma.weekdaysParse=$t,ma.weekdaysRegex=Zt,ma.weekdaysShortRegex=qt,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===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
605
605
|
// Side effect imports
|
|
606
|
-
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
|
|
606
|
+
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
607
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
608
|
-
function Sa(e,t){return
|
|
608
|
+
function Sa(e,t){return Ea(this,e,t,1)}
|
|
609
609
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
610
|
-
function ka(e,t){return
|
|
610
|
+
function ka(e,t){return Ea(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function Da(){var e,t,i,n,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;
|
|
611
611
|
// if we have a mix of positive and negative values, bubble down first
|
|
612
612
|
// check: https://github.com/moment/moment/issues/2166
|
|
613
|
-
return a>=0&&
|
|
613
|
+
return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ma(Pa(s)+o),o=0,s=0),
|
|
614
614
|
// The following code bubbles up values, see the tests for
|
|
615
615
|
// examples of what that means.
|
|
616
|
-
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,
|
|
616
|
+
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
617
|
// convert days to months
|
|
618
|
-
r=ce(
|
|
618
|
+
r=ce(Aa(o)),o-=Ma(Pa(r)),
|
|
619
619
|
// 12 months -> 1 year
|
|
620
|
-
n=ce(
|
|
620
|
+
n=ce(s/12),s%=12,l.days=o,l.months=s,l.years=n,this}function Aa(e){
|
|
621
621
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
622
622
|
// 400 years have 12 months === 4800
|
|
623
|
-
return 4800*e/146097}function
|
|
623
|
+
return 4800*e/146097}function Pa(e){
|
|
624
624
|
// the reverse of daysToMonths
|
|
625
|
-
return 146097*e/4800}function Ha(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+
|
|
625
|
+
return 146097*e/4800}function Ha(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Aa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(
|
|
626
626
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
627
|
-
t=this._days+Math.round(
|
|
627
|
+
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
628
|
// Math.floor prevents floating point math errors here
|
|
629
629
|
case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}
|
|
630
630
|
// TODO: Use this.as('ms')?
|
|
631
|
-
function Ca(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*
|
|
631
|
+
function Ca(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function xa(e){return function(){return this.as(e)}}var Oa=xa("ms"),Ra=xa("s"),Na=xa("m"),Ba=xa("h"),Ua=xa("d"),Ya=xa("w"),Ia=xa("M"),ja=xa("Q"),Ga=xa("y");function Fa(){return An(this)}function $a(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function za(e){return function(){return this.isValid()?this._data[e]:NaN}}var Va=za("milliseconds"),Wa=za("seconds"),Za=za("minutes"),qa=za("hours"),Xa=za("days"),Ka=za("months"),Ja=za("years");function Qa(){return ce(this.days()/7)}var eo=Math.round,to={ss:44,// a few seconds to seconds
|
|
632
632
|
s:45,// seconds to minute
|
|
633
633
|
m:45,// minutes to hour
|
|
634
634
|
h:22,// hours to day
|
|
@@ -636,11 +636,11 @@ d:26,// days to month/week
|
|
|
636
636
|
w:null,// weeks to month
|
|
637
637
|
M:11};
|
|
638
638
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
639
|
-
function
|
|
639
|
+
function io(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function no(e,t,i,n){var r=An(e).abs(),a=eo(r.as("s")),o=eo(r.as("m")),s=eo(r.as("h")),l=eo(r.as("d")),u=eo(r.as("M")),c=eo(r.as("w")),d=eo(r.as("y")),h=a<=i.ss&&["s",a]||a<i.s&&["ss",a]||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(h=h||c<=1&&["w"]||c<i.w&&["ww",c]),(h=h||u<=1&&["M"]||u<i.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=n,io.apply(null,h)}
|
|
640
640
|
// This function allows you to set the rounding function for relative time strings
|
|
641
|
-
function
|
|
641
|
+
function ro(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}
|
|
642
642
|
// This function allows you to set a threshold for relative time strings
|
|
643
|
-
function
|
|
643
|
+
function ao(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,a=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},to,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=no(this,!r,a,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)}var so=Math.abs;function lo(e){return(e>0)-(e<0)||+e}function uo(){
|
|
644
644
|
// for ISO strings we do not use the normal bubbling rules:
|
|
645
645
|
// * milliseconds bubble up until they become hours
|
|
646
646
|
// * days do not bubble at all
|
|
@@ -648,19 +648,19 @@ function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.
|
|
|
648
648
|
// This is because there is no context-free conversion between hours and days
|
|
649
649
|
// (think of clock changes)
|
|
650
650
|
// and also not between days and months (28-31 days per month)
|
|
651
|
-
if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,a,s,
|
|
651
|
+
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
652
|
// 3600 seconds -> 60 minutes -> 1 hour
|
|
653
653
|
e=ce(l/60),t=ce(e/60),l%=60,e%=60,
|
|
654
654
|
// 12 months -> 1 year
|
|
655
655
|
i=ce(c/12),c%=12,
|
|
656
656
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
657
|
-
n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=
|
|
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=Ha,co.asMilliseconds=Oa,co.asSeconds=Ra,co.asMinutes=Na,co.asHours=Ba,co.asDays=Ua,co.asWeeks=Ya,co.asMonths=Ia,co.asQuarters=ja,co.asYears=Ga,co.valueOf=Ca,co._bubble=Da,co.clone=Fa,co.get=$a,co.milliseconds=Va,co.seconds=Wa,co.minutes=Za,co.hours=qa,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
658
|
// FORMATTING
|
|
659
659
|
I("X",0,0,"unix"),I("x",0,0,"valueOf"),
|
|
660
660
|
// PARSING
|
|
661
|
-
Re("x",
|
|
661
|
+
Re("x",Pe),Re("X",xe),Ie("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,t,i){i._d=new Date(de(e))})),
|
|
662
662
|
//! moment.js
|
|
663
|
-
n.version="2.29.4",r(qi),n.fn=ua,n.min=Qi,n.max=en,n.now=tn,n.utc=f,n.unix=ca,n.months=ya,n.isDate=
|
|
663
|
+
n.version="2.29.4",r(qi),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=La,n.defineLocale=gi,n.updateLocale=yi,n.locales=vi,n.weekdaysShort=_a,n.normalizeUnits=re,n.relativeTimeRounding=ro,n.relativeTimeThreshold=ao,n.calendarFormat=Gn,n.prototype=ua,
|
|
664
664
|
// currently HTML5 input type only supports 24-hour formats
|
|
665
665
|
n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
666
666
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -681,8 +681,8 @@ MONTH:"YYYY-MM"},n}()}));const V=[];
|
|
|
681
681
|
* @param {*=}value initial value
|
|
682
682
|
* @param {StartStopNotifier=} start
|
|
683
683
|
*/
|
|
684
|
-
function W(t,i=e){let n;const r=new Set;function
|
|
685
|
-
const e=!V.length;for(const e of r)e[1](),V.push(e,t);if(e){for(let e=0;e<V.length;e+=2)V[e][0](V[e+1]);V.length=0}}}return{set:
|
|
684
|
+
function W(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=!V.length;for(const e of r)e[1](),V.push(e,t);if(e){for(let e=0;e<V.length;e+=2)V[e][0](V[e+1]);V.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 Z(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
686
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
687
687
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
688
688
|
// invoke this derived store.
|
|
@@ -694,11 +694,11 @@ function te(e,t,i){var n={};return i.isMergeableObject(e)&&Q(e).forEach((functio
|
|
|
694
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||q,
|
|
695
695
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
696
696
|
// implementations can use it. The caller may not replace it.
|
|
697
|
-
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 se,
|
|
697
|
+
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
698
|
/**
|
|
699
699
|
* Type Guards
|
|
700
700
|
*/
|
|
701
|
-
function
|
|
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 _e(e){return!(!e||"object"!=typeof e||e.type!==le.number)}function Le(e){return!(!e||"object"!=typeof e||e.type!==le.dateTime)}
|
|
702
702
|
// @generated from regex-gen.ts
|
|
703
703
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
704
704
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -760,7 +760,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
|
760
760
|
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
|
761
761
|
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
762
762
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
763
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(
|
|
763
|
+
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(oe||(oe={})),function(e){
|
|
764
764
|
/**
|
|
765
765
|
* Raw text
|
|
766
766
|
*/
|
|
@@ -797,7 +797,7 @@ e[e.pound=7]="pound",
|
|
|
797
797
|
/**
|
|
798
798
|
* XML-like tag
|
|
799
799
|
*/
|
|
800
|
-
e[e.tag=8]="tag"}(
|
|
800
|
+
e[e.tag=8]="tag"}(se||(se={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(le||(le={}));var we=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Te=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
801
801
|
/**
|
|
802
802
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
803
803
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -809,7 +809,7 @@ e[e.tag=8]="tag"}(oe||(oe={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
809
809
|
* @public
|
|
810
810
|
* @param skeleton skeleton string
|
|
811
811
|
*/
|
|
812
|
-
function
|
|
812
|
+
function Ee(e){var t={};return e.replace(Te,(function(e){var i=e.length;switch(e[0]){
|
|
813
813
|
// Era
|
|
814
814
|
case"G":t.era=4===i?"long":5===i?"narrow":"short";break;
|
|
815
815
|
// Year
|
|
@@ -843,30 +843,30 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
843
843
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
844
844
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
845
845
|
// @generated from regex-gen.ts
|
|
846
|
-
var Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ke=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Me=/^(@+)?(\+|#+)?[rs]?$/g,De=/(\*)(0+)|(#+)(0+)|(0+)/g,
|
|
846
|
+
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
847
|
// @@@ case
|
|
848
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 He(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 Ce(e){
|
|
849
849
|
// 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)),!
|
|
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 xe(e){var t=He(e);return t||{}}
|
|
851
851
|
/**
|
|
852
852
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
853
|
-
*/function
|
|
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),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
854
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
855
855
|
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
856
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
857
|
-
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(De,(function(e,i,n,r,a,
|
|
857
|
+
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(De,(function(e,i,n,r,a,o){if(i)t.minimumIntegerDigits=n.length;else{if(r&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
858
858
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
859
|
-
if(
|
|
859
|
+
if(Ae.test(r.stem))t.minimumIntegerDigits=r.stem.length;else if(ke.test(r.stem)){
|
|
860
860
|
// Precision
|
|
861
861
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
862
862
|
// precision-integer case
|
|
863
|
-
if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(ke,(function(e,i,n,r,a,
|
|
863
|
+
if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(ke,(function(e,i,n,r,a,o){
|
|
864
864
|
// .000* case (before ICU67 it was .000+)
|
|
865
|
-
return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:a&&
|
|
865
|
+
return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var a=r.options[0];
|
|
866
866
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
867
|
-
"w"===a?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ue(ue({},t),
|
|
867
|
+
"w"===a?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ue(ue({},t),Pe(a)))}
|
|
868
868
|
// 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),
|
|
869
|
+
else if(Me.test(r.stem))t=ue(ue({},t),Pe(r.stem));else{var o=He(r.stem);o&&(t=ue(ue({},t),o));var s=Ce(r.stem);s&&(t=ue(ue({},t),s))}}return t}
|
|
870
870
|
// @generated from time-data-gen.ts
|
|
871
871
|
// prettier-ignore
|
|
872
872
|
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"]};
|
|
@@ -893,20 +893,20 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
893
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 Ue=new RegExp("^".concat(we.source,"*")),Ye=new RegExp("".concat(we.source,"*$"));function Ie(e,t){return{start:e,end:t}}
|
|
894
894
|
// #region Ponyfills
|
|
895
895
|
// Consolidate these variables up top for easier toggling during debugging
|
|
896
|
-
var
|
|
896
|
+
var je=!!String.prototype.startsWith,Ge=!!String.fromCodePoint,Fe=!!Object.fromEntries,$e=!!String.prototype.codePointAt,ze=!!String.prototype.trimStart,Ve=!!String.prototype.trimEnd,We=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ze=!0;try{
|
|
897
897
|
/**
|
|
898
898
|
* legacy Edge or Xbox One browser
|
|
899
899
|
* Unicode flag support: supported
|
|
900
900
|
* Pattern_Syntax support: not supported
|
|
901
901
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
902
902
|
*/
|
|
903
|
-
Ze="a"===(null===(Re=it("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Re?void 0:Re[0])}catch(e){Ze=!1}var qe,Xe=
|
|
903
|
+
Ze="a"===(null===(Re=it("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Re?void 0:Re[0])}catch(e){Ze=!1}var qe,Xe=je?// Native
|
|
904
904
|
function(e,t,i){return e.startsWith(t,i)}:// For IE11
|
|
905
|
-
function(e,t,i){return e.slice(i,i+t.length)===t},Ke=
|
|
905
|
+
function(e,t,i){return e.slice(i,i+t.length)===t},Ke=Ge?String.fromCodePoint:// IE11
|
|
906
906
|
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=
|
|
907
907
|
// native
|
|
908
|
-
|
|
909
|
-
function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],a=r[0],
|
|
908
|
+
Fe?Object.fromEntries:// Ponyfill
|
|
909
|
+
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}return t},Qe=$e?// Native
|
|
910
910
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
911
911
|
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=ze?// Native
|
|
912
912
|
function(e){return e.trimStart()}:// Ponyfill
|
|
@@ -920,7 +920,7 @@ if(Ze){
|
|
|
920
920
|
// Native
|
|
921
921
|
var nt=it("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=function(e,t){var i;return nt.lastIndex=t,null!==(i=nt.exec(e)[1])&&void 0!==i?i:""}}else
|
|
922
922
|
// IE11
|
|
923
|
-
qe=function(e,t){for(var i=[];;){var n=Qe(e,t);if(void 0===n||
|
|
923
|
+
qe=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
924
|
/**
|
|
925
925
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
926
926
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -942,14 +942,14 @@ qe=function(e,t){for(var i=[];;){var n=Qe(e,t);if(void 0===n||st(n)||ot(n))break
|
|
|
942
942
|
e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();// `<`
|
|
943
943
|
var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
944
944
|
// Self closing tag
|
|
945
|
-
return{val:{type:
|
|
945
|
+
return{val:{type:se.literal,value:"<".concat(n,"/>"),location:Ie(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var a=r.val,o=this.clonePosition();
|
|
946
946
|
// Expecting a close tag
|
|
947
|
-
if(this.bumpIf("</")){if(this.isEOF()||!at(this.char()))return this.error(
|
|
947
|
+
if(this.bumpIf("</")){if(this.isEOF()||!at(this.char()))return this.error(oe.INVALID_TAG,Ie(o,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(oe.UNMATCHED_CLOSING_TAG,Ie(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:n,children:a,location:Ie(i,this.clonePosition())},err:null}:this.error(oe.INVALID_TAG,Ie(o,this.clonePosition())))}return this.error(oe.UNCLOSED_TAG,Ie(i,this.clonePosition()))}return this.error(oe.INVALID_TAG,Ie(i,this.clonePosition()))},
|
|
948
948
|
/**
|
|
949
949
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
950
950
|
*/
|
|
951
951
|
e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
|
|
952
|
-
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var a=this.tryParseUnquoted(e,t);if(a)n+=a;else{var
|
|
952
|
+
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var a=this.tryParseUnquoted(e,t);if(a)n+=a;else{var o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}var s=Ie(i,this.clonePosition());return{val:{type:se.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(at(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
953
953
|
/** See `parseTag` function docs. */},
|
|
954
954
|
/**
|
|
955
955
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -972,66 +972,66 @@ for(this.bump();!this.isEOF();){var i=this.char();if(39/* `'` */===i){if(39/* `'
|
|
|
972
972
|
this.bump();break}t.push(39),
|
|
973
973
|
// Bump one more time because we need to skip 2 characters.
|
|
974
974
|
this.bump()}else t.push(i);this.bump()}return Ke.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60/* `<` */===i||123/* `{` */===i||35/* `#` */===i&&("plural"===t||"selectordinal"===t)||125/* `}` */===i&&e>0?null:(this.bump(),Ke(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),// `{`
|
|
975
|
-
this.bumpSpace(),this.isEOF())return this.error(
|
|
975
|
+
this.bumpSpace(),this.isEOF())return this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(i,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(oe.EMPTY_ARGUMENT,Ie(i,this.clonePosition()));
|
|
976
976
|
// argument name
|
|
977
|
-
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(
|
|
977
|
+
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(oe.MALFORMED_ARGUMENT,Ie(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(i,this.clonePosition()));switch(this.char()){
|
|
978
978
|
// Simple argument: `{name}`
|
|
979
979
|
case 125/* `}` */:// `}`
|
|
980
|
-
return this.bump(),{val:{type:
|
|
980
|
+
return this.bump(),{val:{type:se.argument,
|
|
981
981
|
// value does not include the opening and closing braces.
|
|
982
982
|
value:n,location:Ie(i,this.clonePosition())},err:null};
|
|
983
983
|
// Argument with options: `{name, format, ...}`
|
|
984
984
|
case 44/* `,` */:return this.bump(),// `,`
|
|
985
|
-
this.bumpSpace(),this.isEOF()?this.error(
|
|
985
|
+
this.bumpSpace(),this.isEOF()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(oe.MALFORMED_ARGUMENT,Ie(i,this.clonePosition()))}},
|
|
986
986
|
/**
|
|
987
987
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
988
988
|
* an identifier character. Return an empty string otherwise.
|
|
989
989
|
*/
|
|
990
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=qe(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(),
|
|
990
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=qe(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
991
|
// Parse this range:
|
|
992
992
|
// {name, type, style}
|
|
993
993
|
// ^---^
|
|
994
|
-
switch(
|
|
994
|
+
switch(o){case"":
|
|
995
995
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
996
|
-
return this.error(
|
|
996
|
+
return this.error(oe.EXPECT_ARGUMENT_TYPE,Ie(a,s));case"number":case"date":case"time":
|
|
997
997
|
// Parse this range:
|
|
998
998
|
// {name, number, style}
|
|
999
999
|
// ^-------^
|
|
1000
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=tt(y.val)).length)return this.error(
|
|
1000
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=tt(y.val)).length)return this.error(oe.EXPECT_ARGUMENT_STYLE,Ie(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Ie(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Ie(n,this.clonePosition());
|
|
1001
1001
|
// Extract style or skeleton
|
|
1002
1002
|
if(l&&Xe(null==l?void 0:l.style,"::",0)){
|
|
1003
1003
|
// Skeleton starts with `::`.
|
|
1004
|
-
var
|
|
1004
|
+
var d=et(l.style.slice(2));if("number"===o)return(y=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?y:{val:{type:se.number,value:i,location:c,style:y.val},err:null};if(0===d.length)return this.error(oe.EXPECT_DATE_TIME_SKELETON,c);var h=d;
|
|
1005
1005
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
1006
1006
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
1007
1007
|
// for unsupported patterns.
|
|
1008
|
-
this.locale&&(
|
|
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=Be(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
1009
|
// Regular style or no style.
|
|
1010
|
-
return{val:{type:"number"===
|
|
1010
|
+
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
1011
|
// Parse this range:
|
|
1012
1012
|
// {name, plural, options}
|
|
1013
1013
|
// ^---------^
|
|
1014
|
-
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(
|
|
1014
|
+
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(oe.EXPECT_SELECT_ARGUMENT_OPTIONS,Ie(f,ue({},f)));this.bumpSpace();
|
|
1015
1015
|
// Parse offset:
|
|
1016
1016
|
// {name, plural, offset:1, options}
|
|
1017
1017
|
// ^-----^
|
|
1018
1018
|
// or the first option:
|
|
1019
1019
|
// {name, plural, one {...} other {...}}
|
|
1020
1020
|
// ^--^
|
|
1021
|
-
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==
|
|
1021
|
+
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
1022
|
// Parse another identifier for option parsing
|
|
1023
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,
|
|
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 _=Ie(n,this.clonePosition());return"select"===o?{val:{type:se.select,value:i,options:Je(v.val),location:_},err:null}:{val:{type:se.plural,value:i,options:Je(v.val),offset:g,pluralType:"plural"===o?"cardinal":"ordinal",location:_},err:null};default:return this.error(oe.INVALID_ARGUMENT_TYPE,Ie(a,s))}},e.prototype.tryParseArgumentClose=function(e){
|
|
1024
1024
|
// Parse: {value, number, ::currency/GBP }
|
|
1025
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(
|
|
1025
|
+
return this.isEOF()||125/* `}` */!==this.char()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
1026
1026
|
/**
|
|
1027
1027
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
1028
1028
|
*/
|
|
1029
1029
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
1030
1030
|
// Treat apostrophe as quoting but include it in the style part.
|
|
1031
1031
|
// Find the end of the quoted literal text.
|
|
1032
|
-
this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(
|
|
1032
|
+
this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(oe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ie(i,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
1033
1033
|
// Parse the skeleton
|
|
1034
|
-
for(var t=[],i=0,n=e.split(Se).filter((function(e){return e.length>0}));i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var a=r[0],
|
|
1034
|
+
for(var t=[],i=0,n=e.split(Se).filter((function(e){return e.length>0}));i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var a=r[0],o=r.slice(1),s=0,l=o;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(oe.INVALID_NUMBER_SKELETON,t)}return{val:{type:le.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Oe(i):{}},err:null}},
|
|
1035
1035
|
/**
|
|
1036
1036
|
* @param nesting_level The current nesting level of messages.
|
|
1037
1037
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -1046,19 +1046,19 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){
|
|
|
1046
1046
|
// Parse:
|
|
1047
1047
|
// one {one apple}
|
|
1048
1048
|
// ^--^
|
|
1049
|
-
for(var r,a=!1,
|
|
1049
|
+
for(var r,a=!1,o=[],s=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
1050
1050
|
// Try parse `={number}` selector
|
|
1051
|
-
var
|
|
1051
|
+
var d=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=Ie(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
|
1052
1052
|
// Duplicate selector clauses
|
|
1053
|
-
if(
|
|
1053
|
+
if(s.has(l))return this.error("select"===t?oe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:oe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),
|
|
1054
1054
|
// Parse:
|
|
1055
1055
|
// one {one apple}
|
|
1056
1056
|
// ^----------^
|
|
1057
|
-
this.bumpSpace();var
|
|
1057
|
+
this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?oe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ie(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,i);if(m.err)return m;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:m.val,location:Ie(h,this.clonePosition())}]),
|
|
1058
1058
|
// Keep track of the existing selectors
|
|
1059
|
-
|
|
1059
|
+
s.add(l),
|
|
1060
1060
|
// Prep next selector clause.
|
|
1061
|
-
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===
|
|
1061
|
+
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===o.length?this.error("select"===t?oe.EXPECT_SELECT_ARGUMENT_SELECTOR:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ie(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(oe.MISSING_OTHER_CLAUSE,Ie(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,a=0;!this.isEOF();){var o=this.char();if(!(o>=48/* `0` */&&o<=57/* `9` */))break;r=!0,a=10*a+(o-48),this.bump()}var s=Ie(n,this.clonePosition());return r?We(a*=i)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
1062
1062
|
// This is much faster than `Object.assign` or spread.
|
|
1063
1063
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
1064
1064
|
/**
|
|
@@ -1088,7 +1088,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t
|
|
|
1088
1088
|
*/
|
|
1089
1089
|
e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
1090
1090
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
1091
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
1091
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ot(this.char());)this.bump()},
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
1094
1094
|
* If the input has been exhausted, then this returns null.
|
|
@@ -1103,11 +1103,11 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
1103
1103
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
1104
1104
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1105
1105
|
*/
|
|
1106
|
-
function
|
|
1106
|
+
function ot(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
1109
1109
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1110
|
-
*/function
|
|
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)&&_e(e.style)||(fe(e)||pe(e))&&Le(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
1111
|
// @ts-expect-error Assign to error object
|
|
1112
1112
|
throw n.location=i.err.location,
|
|
1113
1113
|
// @ts-expect-error Assign to error object
|
|
@@ -1119,7 +1119,7 @@ function ct(e,t){var i=t&&t.cache?t.cache:bt,n=t&&t.serializer?t.serializer:pt;r
|
|
|
1119
1119
|
|
|
1120
1120
|
// Strategy
|
|
1121
1121
|
|
|
1122
|
-
function
|
|
1122
|
+
function dt(e,t,i,n){var r,a=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:i(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function ht(e,t,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),a=t.get(r);return void 0===a&&(a=e.apply(this,n),t.set(r,a)),a}function mt(e,t,i,n,r){return i.bind(t,e,n,r)}function ft(e,t){return mt(e,this,1===e.length?dt:ht,t.cache.create(),t.serializer)}
|
|
1123
1123
|
// Serializer
|
|
1124
1124
|
var pt=function(){return JSON.stringify(arguments)};
|
|
1125
1125
|
|
|
@@ -1127,39 +1127,39 @@ var pt=function(){return JSON.stringify(arguments)};
|
|
|
1127
1127
|
|
|
1128
1128
|
function gt(){this.cache=Object.create(null)}gt.prototype.get=function(e){return this.cache[e]},gt.prototype.set=function(e,t){this.cache[e]=t};var yt,bt={create:function(){
|
|
1129
1129
|
// @ts-ignore
|
|
1130
|
-
return new gt}},vt={variadic:function(e,t){return mt(e,this,
|
|
1130
|
+
return new gt}},vt={variadic:function(e,t){return mt(e,this,ht,t.cache.create(),t.serializer)},monadic:function(e,t){return mt(e,this,dt,t.cache.create(),t.serializer)}};!function(e){
|
|
1131
1131
|
// When we have a placeholder but no value to format
|
|
1132
1132
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
1133
1133
|
// When value supplied is invalid
|
|
1134
1134
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
1135
1135
|
// When we need specific Intl API but it's not available
|
|
1136
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(yt||(yt={}));var _t,Lt=/** @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}(Lt),
|
|
1136
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(yt||(yt={}));var _t,Lt=/** @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}(Lt),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}(Lt),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}(Lt);function St(e){return"function"==typeof e}
|
|
1137
1137
|
// TODO(skeleton): add skeleton support
|
|
1138
1138
|
function kt(e,t,i,n,r,a,
|
|
1139
1139
|
// For debugging
|
|
1140
|
-
|
|
1140
|
+
o){
|
|
1141
1141
|
// Hot path for straight simple msg translations
|
|
1142
|
-
if(1===e.length&&
|
|
1142
|
+
if(1===e.length&&de(e[0]))return[{type:_t.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
1143
1143
|
// Exit early for string parts.
|
|
1144
|
-
if(
|
|
1144
|
+
if(de(c))s.push({type:_t.literal,value:c.value});else
|
|
1145
1145
|
// TODO: should this part be literal type?
|
|
1146
1146
|
// Replace `#` in plural rules with the actual numeric value.
|
|
1147
|
-
if(be(c))"number"==typeof a&&
|
|
1147
|
+
if(be(c))"number"==typeof a&&s.push({type:_t.literal,value:i.getNumberFormat(t).format(a)});else{var d=c.value;
|
|
1148
1148
|
// Enforce that all required values are provided by the caller.
|
|
1149
|
-
if(!r||!(
|
|
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?_t.literal:_t.object,value:h});else
|
|
1150
1150
|
// Recursively format plural and select parts' option — which can be a
|
|
1151
1151
|
// nested pattern structure. The choosing of the option to use is
|
|
1152
1152
|
// abstracted-by and delegated-to the part helper object.
|
|
1153
|
-
if(fe(c)){var m="string"==typeof c.style?n.date[c.style]:Le(c.style)?c.style.parsedOptions:void 0;
|
|
1153
|
+
if(fe(c)){var m="string"==typeof c.style?n.date[c.style]:Le(c.style)?c.style.parsedOptions:void 0;s.push({type:_t.literal,value:i.getDateTimeFormat(t,m).format(h)})}else if(pe(c)){m="string"==typeof c.style?n.time[c.style]:Le(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:_t.literal,value:i.getDateTimeFormat(t,m).format(h)})}else if(me(c)){(m="string"==typeof c.style?n.number[c.style]:_e(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(h*=m.scale||1),s.push({type:_t.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?_t.literal:_t.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 Lt('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===_t.literal&&t.type===_t.literal?i.value+=t.value:e.push(t),e}),[])}(s)}
|
|
1154
1154
|
/*
|
|
1155
1155
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
1156
1156
|
Copyrights licensed under the New BSD License.
|
|
1157
1157
|
See the accompanying LICENSE file for terms.
|
|
1158
1158
|
*/
|
|
1159
1159
|
// -- 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"}(_t||(_t={}));var
|
|
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"}(_t||(_t={}));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
1161
|
// 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===_t.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(
|
|
1162
|
+
if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===_t.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
1163
|
// Defined first because it's used to build the format pattern.
|
|
1164
1164
|
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
1165
|
// Parse string messages into an AST.
|
|
@@ -1170,104 +1170,110 @@ this.formats=Mt(e.formats,n),this.formatters=r&&r.formatters||(void 0===(a=this.
|
|
|
1170
1170
|
// Default format options used as the prototype of the `formats` provided to the
|
|
1171
1171
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
1172
1172
|
// 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
|
|
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={},Ht=(e,t,i)=>i?(t in Pt||(Pt[t]={}),e in Pt[t]||(Pt[t][e]=i),i):i,Ct=(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 Ht(e,t,r)}};let xt;const Ot=W({});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 Bt(e,...t){delete Pt[e],Ot.update((i=>(i[e]=ne.all([i[e]||{},...t]),i)))}Z([Ot],(([e])=>Object.keys(e))),Ot.subscribe((e=>xt=e));const Ut={};function Yt(e){return Ut[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){Ut[e].delete(t),0===Ut[e].size&&delete Ut[e]}(e,t),t().then((e=>e.default||e))))));return i.then((t=>Bt(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 zt(){return $t}const Vt=W(!1);var Wt=Object.defineProperty,Zt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Qt=(e,t,i)=>t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let ei;const ti=W(null);function ii(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function ni(e,t=zt().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),Zt(oi,qt({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}=zt();let i;return"undefined"!=typeof window&&null!=ri()&&t?i=window.setTimeout((()=>Vt.set(!0)),t):Vt.set(!0),Ft(e).then((()=>{ti.set(e)})).finally((()=>{clearTimeout(i),Vt.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}=zt();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
1174
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1175
|
-
(e,t=ri())=>new Pt(e,t,zt().formats,{ignoreTag:zt().ignoreTag}))),_i=(e,t={})=>{var i,n,r,a;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:o,locale:l=ri(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ct(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=zt()).handleMissingMessage)?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))?r:u)?a:e;if(!o)return c;let h=c;try{h=vi(c,l).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},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),Ei=(e,t)=>((e={})=>{var t=e,{locale:i=ri()}=t,n=fi(t,["locale"]);return gi(mi({locale:i},n))})(t).format(e),Ti=(e,t=ri())=>Ct(e,t),Si=Z([ai,xt],(()=>_i));function ki(e,t){Bt(e,t)}Z([ai],(()=>Li)),Z([ai],(()=>wi)),Z([ai],(()=>Ei)),Z([ai,xt],(()=>Ti));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"},"zh-hk":{noLimitToDisplay:"使用者尚未設定限額...",depositLimitHeader:"存款限額",lossLimitHeader:"損失限額",wageringLimitHeader:"押注限額",spentAmount:"花費金額",remainingAmount:"剩餘金額",limitPeriod:"限制期限",displayedProduct:"產品",futureLimit:"未來限額",additionalLink1:"最後存款交易詳情",additionalLink2:"期間交易",limitRemoved:"此限額已移除,有效期至",limitUpdated:"此限額將自以下日期開始生效",changeLimitLabel:"期限",futureAmount:"未來金額",limitTypeLabel:"限額類型",fetchLimitDefError:"無法獲取限額定義。",fetchLimitBalanceError:"無法獲取限額餘額。",invalidUrl:"無法構建 'URL':URL 無效",startLabel:"開始",resetLabel:"重設",infoLabel:"信息",walletLabel:"錢包",walletsLabel:"錢包"},de:{noLimitToDisplay:"Der Benutzer hat kein Limit festgelegt...",depositLimitHeader:"Einzahlungslimit",lossLimitHeader:"Verlustgrenze",wageringLimitHeader:"Wetteinsatzgrenze",spentAmount:"Ausgegebener Betrag",remainingAmount:"Verbleibender Betrag",limitPeriod:"Begrenzungszeitraum",displayedProduct:"Produkt",futureLimit:"Zukünftiges Limit",additionalLink1:"Details zur letzten Einzahlungstransaktion",additionalLink2:"Transaktionen im Zeitraum",limitRemoved:"Dieses Limit wurde entfernt und ist gültig bis",limitUpdated:"Dieses Limit wird ab dem folgenden Datum angewendet",changeLimitLabel:"Zeitraum",futureAmount:"Zukünftiger Betrag",limitTypeLabel:"Limit Typ",fetchLimitDefError:"Fehler beim Abrufen von Limitdefinitionen.",fetchLimitBalanceError:"Fehler beim Abrufen des Limitbetrags.",invalidUrl:"Fehler beim Erstellen der URL: Ungültige URL",startLabel:"Start",resetLabel:"Zurücksetzen",infoLabel:"Info",walletLabel:"Brieftasche",walletsLabel:"Brieftaschen"},it:{noLimitToDisplay:"L'utente non ha impostato un limite...",depositLimitHeader:"Limite di deposito",lossLimitHeader:"Limite di perdita",wageringLimitHeader:"Limite di scommessa",spentAmount:"Importo speso",remainingAmount:"Importo residuo",limitPeriod:"Periodo limite",displayedProduct:"Prodotto",futureLimit:"Limite futuro",additionalLink1:"Dettagli della transazione dell'ultimo deposito",additionalLink2:"Deposito nel periodo",limitRemoved:"Questo limite è stato rimosso ed è valido fino a",limitUpdated:"Questo limite sarà applicato a partire da",changeLimitLabel:"Cambia limite",futureAmount:"Importo futuro",limitTypeLabel:"Tipo di limite",fetchLimitDefError:"Impossibile recuperare le definizioni di limite.",fetchLimitBalanceError:"Impossibile recuperare il saldo limite.",invalidUrl:"Impossibile costruire l'URL: URL non valido",startLabel:"Inizio",resetLabel:"Ripristina",infoLabel:"Info",walletLabel:"Portafoglio",walletsLabel:"Portafogli"},fr:{noLimitToDisplay:"L'utilisateur n'a pas fixé de limite...",depositLimitHeader:"Limite de dépôt",lossLimitHeader:"Limite de perte",wageringLimitHeader:"Limite de mise",spentAmount:"Montant dépensé",remainingAmount:"Montant restant",limitPeriod:"Délai limite",displayedProduct:"Produit",futureLimit:"Limite future",additionalLink1:"Détails de la transaction du dernier dépôt",additionalLink2:"Dépôt en période",limitRemoved:"Cette limite a été supprimée et est valide jusqu'à",limitUpdated:"Cette limite sera appliquée à partir de",changeLimitLabel:"Changer de limite",futureAmount:"Montant futur",limitTypeLabel:"Type de limite",fetchLimitDefError:"Échec du téléchargement des définitions de limite.",fetchLimitBalanceError:"Échec du téléchargement du solde limite.",invalidUrl:"Échec de la construction de 'URL' : URL non valide",startLabel:"Démarrer",resetLabel:"Réinitialiser",infoLabel:"Info",walletLabel:"Portefeuille",walletsLabel:"Portefeuilles"},es:{noLimitToDisplay:"El usuario no ha establecido un límite...",depositLimitHeader:"Límite de depósito",lossLimitHeader:"Límite de pérdida",wageringLimitHeader:"Límite de apuesta",spentAmount:"Monto gastado",remainingAmount:"Monto restante",limitPeriod:"Período de límite",displayedProduct:"Producto",futureLimit:"Límite futuro",additionalLink1:"Detalles de la última transacción de depósito",additionalLink2:"Depósito en el período",limitRemoved:"Este límite ha sido eliminado y es válido hasta",limitUpdated:"Este límite se aplicará a partir de",changeLimitLabel:"Cambiar límite",futureAmount:"Monto futuro",limitTypeLabel:"Tipo de límite",fetchLimitDefError:"Error al obtener definiciones de límite.",fetchLimitBalanceError:"Error al obtener el saldo del límite.",invalidUrl:"Error al construir 'URL': URL inválida",startLabel:"Comienzo",resetLabel:"Reiniciar",infoLabel:"Información",walletLabel:"Cartera",walletsLabel:"Carteras"},el:{noLimitToDisplay:"Ο χρήστης δεν έχει ορίσει όριο...",depositLimitHeader:"Όριο κατάθεσης",lossLimitHeader:"Όριο απώλειας",wageringLimitHeader:"Όριο στοίχημα",spentAmount:"Ποσό που έχει δαπανηθεί",remainingAmount:"Υπόλοιπο ποσό",limitPeriod:"Περίοδος ορίου",displayedProduct:"Προϊόν",futureLimit:"Μελλοντικό όριο",additionalLink1:"Λεπτομέρειες της τελευταίας συναλλαγής κατάθεσης",additionalLink2:"Καταθέσεις κατά την περίοδο",limitRemoved:"Αυτό το όριο έχει καταργηθεί και είναι έγκυρο μέχρι",limitUpdated:"Αυτό το όριο θα εφαρμοστεί από",changeLimitLabel:"Αλλαγή ορίου",futureAmount:"Μελλοντικό ποσό",limitTypeLabel:"Τύπος ορίου",fetchLimitDefError:"Αποτυχία λήψης ορισμών ορίου.",fetchLimitBalanceError:"Αποτυχία λήψης υπολοίπου ορίου.",invalidUrl:"Αποτυχία κατασκευής 'URL': Μη έγκυρη διεύθυνση URL",startLabel:"Έναρξη",resetLabel:"Επαναφορά",infoLabel:"Πληροφορίες",walletLabel:"Πορτοφόλι",walletsLabel:"Πορτοφόλια"},tr:{noLimitToDisplay:"Kullanıcı bir sınırlama belirlemedi...",depositLimitHeader:"Yatırım limiti",lossLimitHeader:"Kayıp limiti",wageringLimitHeader:"Bahis limiti",spentAmount:"Harcamış miktar",remainingAmount:"Kalan miktar",limitPeriod:"Limit süresi",displayedProduct:"Ürün",futureLimit:"Gelecek limit",additionalLink1:"Son yatırım işlemi detayları",additionalLink2:"Dönemdeki işlemler",limitRemoved:"Bu limit kaldırıldı ve geçerli",limitUpdated:"Bu limit aşağıdaki tarihte uygulanacaktır",changeLimitLabel:"Dönem",futureAmount:"Gelecek miktar",limitTypeLabel:"Limit türü",fetchLimitDefError:"Limit tanımları alınamadı.",fetchLimitBalanceError:"Limit bakiyesi alınamadı.",invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",startLabel:"Başlangıç",resetLabel:"Sıfırla",infoLabel:"Bilgi",walletLabel:"Cüzdan",walletsLabel:"Cüzdanlar"},ru:{noLimitToDisplay:"Пользователь не установил лимит...",depositLimitHeader:"Лимит депозита",lossLimitHeader:"Лимит потерь",wageringLimitHeader:"Лимит ставок",spentAmount:"Потраченная сумма",remainingAmount:"Оставшаяся сумма",limitPeriod:"Период лимита",displayedProduct:"Продукт",futureLimit:"Будущий лимит",additionalLink1:"Детали последней транзакции депозита",additionalLink2:"Транзакции за период",limitRemoved:"Этот лимит был удален и действует до",limitUpdated:"Этот лимит будет применен с",changeLimitLabel:"Изменить лимит",futureAmount:"Будущая сумма",limitTypeLabel:"Тип лимита",fetchLimitDefError:"Не удалось получить определения лимита.",fetchLimitBalanceError:"Не удалось получить баланс лимита.",invalidUrl:"Не удалось построить 'URL': Недопустимый URL",startLabel:"Начало",resetLabel:"Сброс",infoLabel:"Информация",walletLabel:"Кошелек",walletsLabel:"Кошельки"},ro:{noLimitToDisplay:"Utilizatorul nu a setat nicio limită...",depositLimitHeader:"Limită de depunere",lossLimitHeader:"Limită de pierdere",wageringLimitHeader:"Limită de pariere",spentAmount:"Suma cheltuită",remainingAmount:"Suma rămasă",limitPeriod:"Perioadă limită",displayedProduct:"Produs",futureLimit:"Limită viitoare",additionalLink1:"Detalii ultima tranzacție de depunere",additionalLink2:"Tranzacții în perioadă",limitRemoved:"Această limită a fost eliminată și este validă până la",limitUpdated:"Această limită va fi aplicată începând cu",changeLimitLabel:"Schimbă limita",futureAmount:"Suma viitoare",limitTypeLabel:"Tipul limitei",fetchLimitDefError:"Eșec la preluarea definițiilor de limită.",fetchLimitBalanceError:"Eșec la preluarea balanței limitelor.",invalidUrl:"Eșec la construirea 'URL-ului': URL invalid",startLabel:"Start",resetLabel:"Resetare",infoLabel:"Info",walletLabel:"Portofel",walletsLabel:"Portofele"},hr:{noLimitToDisplay:"Korisnik nije postavio limit...",depositLimitHeader:"Limit uplate",lossLimitHeader:"Limit gubitka",wageringLimitHeader:"Limit klađenja",spentAmount:"Potrošeni iznos",remainingAmount:"Preostali iznos",limitPeriod:"Period limita",displayedProduct:"Proizvod",futureLimit:"Budući limit",additionalLink1:"Detalji posljednje transakcije uplate",additionalLink2:"Transakcije u periodu",limitRemoved:"Ovaj limit je uklonjen i važi do",limitUpdated:"Ovaj limit će biti primijenjen počevši od",changeLimitLabel:"Promijeni limit",futureAmount:"Budući iznos",limitTypeLabel:"Vrsta limita",fetchLimitDefError:"Nije uspjelo preuzimanje definicija limita.",fetchLimitBalanceError:"Nije uspjelo preuzimanje stanja limita.",invalidUrl:"Nije uspjelo konstruiranje 'URL'-a: Nevaljan URL",startLabel:"Početak",resetLabel:"Resetiraj",infoLabel:"Informacije",walletLabel:"Novčanik",walletsLabel:"Novčanici"},hu:{noLimitToDisplay:"A felhasználó nem állított be korlátot...",depositLimitHeader:"Befizetési limit",lossLimitHeader:"Veszteségkorlát",wageringLimitHeader:"Tétlimit",spentAmount:"Elköltött összeg",remainingAmount:"Fennmaradó összeg",limitPeriod:"Korlát időtartama",displayedProduct:"Termék",futureLimit:"Jövőbeli limit",additionalLink1:"Legutóbbi befizetési tranzakció részletei",additionalLink2:"Tranzakciók időszakban",limitRemoved:"Ez a korlát eltávolításra került és érvényes",limitUpdated:"Ez a korlát alkalmazásra kerül a következőtől",changeLimitLabel:"Korlát módosítása",futureAmount:"Jövőbeli összeg",limitTypeLabel:"Korlát típusa",fetchLimitDefError:"Nem sikerült letölteni a korlát definíciókat.",fetchLimitBalanceError:"Nem sikerült letölteni a korlát egyenlegét.",invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",startLabel:"Indítás",resetLabel:"Visszaállítás",infoLabel:"Információ",walletLabel:"Pénztárca",walletsLabel:"Pénztárcák"},pl:{noLimitToDisplay:"Użytkownik nie ustawił limitu...",depositLimitHeader:"Limit depozytu",lossLimitHeader:"Limit strat",wageringLimitHeader:"Limit zakładów",spentAmount:"Wydana kwota",remainingAmount:"Pozostała kwota",limitPeriod:"Okres limitu",displayedProduct:"Produkt",futureLimit:"Przyszły limit",additionalLink1:"Szczegóły ostatniej transakcji depozytowej",additionalLink2:"Transakcje w okresie",limitRemoved:"Ten limit został usunięty i jest ważny do",limitUpdated:"Ten limit będzie obowiązywać począwszy od",changeLimitLabel:"Zmień limit",futureAmount:"Przyszła kwota",limitTypeLabel:"Typ limitu",fetchLimitDefError:"Nie udało się pobrać definicji limitu.",fetchLimitBalanceError:"Nie udało się pobrać salda limitu.",invalidUrl:"Nie udało się skonstruować 'URL': Nieprawidłowy URL",startLabel:"Start",resetLabel:"Resetuj",infoLabel:"Informacje",walletLabel:"Portfel",walletsLabel:"Portfele"},pt:{noLimitToDisplay:"O usuário não definiu um limite...",depositLimitHeader:"Limite de depósito",lossLimitHeader:"Limite de perdas",wageringLimitHeader:"Limite de apostas",spentAmount:"Valor gasto",remainingAmount:"Valor restante",limitPeriod:"Período do limite",displayedProduct:"Produto",futureLimit:"Limite futuro",additionalLink1:"Detalhes da última transação de depósito",additionalLink2:"Transações no período",limitRemoved:"Este limite foi removido e é válido até",limitUpdated:"Este limite será aplicado a partir de",changeLimitLabel:"Alterar limite",futureAmount:"Valor futuro",limitTypeLabel:"Tipo de limite",fetchLimitDefError:"Falha ao buscar definições de limite.",fetchLimitBalanceError:"Falha ao buscar saldo do limite.",invalidUrl:"Falha ao construir 'URL': URL inválida",startLabel:"Iniciar",resetLabel:"Redefinir",infoLabel:"Informação",walletLabel:"Carteira",walletsLabel:"Carteiras"},sl:{noLimitToDisplay:"Uporabnik ni določil omejitve...",depositLimitHeader:"Omejitev pologa",lossLimitHeader:"Omejitev izgub",wageringLimitHeader:"Omejitev stav",spentAmount:"Porabljen znesek",remainingAmount:"Preostali znesek",limitPeriod:"Obdobje omejitve",displayedProduct:"Izdelek",futureLimit:"Prihodnja omejitev",additionalLink1:"Podrobnosti zadnje transakcije pologa",additionalLink2:"Transakcije v obdobju",limitRemoved:"Ta omejitev je bila odstranjena in velja do",limitUpdated:"Ta omejitev bo veljavna od",changeLimitLabel:"Spremeni omejitev",futureAmount:"Prihodnji znesek",limitTypeLabel:"Vrsta omejitve",fetchLimitDefError:"Pridobivanje definicij omejitev ni uspelo.",fetchLimitBalanceError:"Pridobivanje stanja omejitev ni uspelo.",invalidUrl:"Izgradnja 'URL'-ja ni uspela: Neveljaven URL",startLabel:"Začni",resetLabel:"Ponastavi",infoLabel:"Informacije",walletLabel:"Denarnica",walletsLabel:"Denarnice"},sr:{noLimitToDisplay:"Korisnik nije postavio limit...",depositLimitHeader:"Limit depozita",lossLimitHeader:"Limit gubitka",wageringLimitHeader:"Limit klađenja",spentAmount:"Potrošeni iznos",remainingAmount:"Preostali iznos",limitPeriod:"Period limita",displayedProduct:"Proizvod",futureLimit:"Budući limit",additionalLink1:"Detalji poslednje transakcije depozita",additionalLink2:"Transakcije u periodu",limitRemoved:"Ovaj limit je uklonjen i važi do",limitUpdated:"Ovaj limit će se primeniti počevši od",changeLimitLabel:"Promeni limit",futureAmount:"Budući iznos",limitTypeLabel:"Vrsta limita",fetchLimitDefError:"Neuspeh u dobavljanju definicija limita.",fetchLimitBalanceError:"Neuspeh u dobavljanju stanja limita.",invalidUrl:"Neuspeh u konstrukciji 'URL'-a: Neispravan URL",startLabel:"Početak",resetLabel:"Resetuj",infoLabel:"Informacije",walletLabel:"Novčanik",walletsLabel:"Novčanici"},"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"},"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"}};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
|
-
/* src/images/caret-select.svg.svelte generated by Svelte v3.59.2 */function
|
|
1175
|
+
(e,t=ri())=>new At(e,t,zt().formats,{ignoreTag:zt().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=Ct(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=zt()).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())=>Ct(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"},"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:"新增貨幣限額"},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"},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"},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"},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"},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:"Προσθήκη νομισματικού ορίου"},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"},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:"Добавить денежный лимит"},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ă"},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"},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"},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"},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"},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"},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:"Додај новчано ограничење"},"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"},"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"}};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
|
+
/* 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
1177
|
/* src/images/fa-caret-right.svg.svelte generated by Svelte v3.59.2 */
|
|
1178
|
-
function
|
|
1178
|
+
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
1179
|
/* src/images/curency.svg.svelte generated by Svelte v3.59.2 */
|
|
1180
|
-
function Hi(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&&
|
|
1180
|
+
function Hi(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
1181
|
/* src/images/fa-calendar-times-o.svg.svelte generated by Svelte v3.59.2 */
|
|
1182
|
-
function Ci(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&&
|
|
1182
|
+
function Ci(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,Hi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1183
1183
|
/* src/images/fa-pencil.svg.svelte generated by Svelte v3.59.2 */
|
|
1184
|
-
function
|
|
1184
|
+
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,Ci,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1185
1185
|
/* src/images/fa-times.svg.svelte generated by Svelte v3.59.2 */
|
|
1186
|
-
function
|
|
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,xi,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1187
|
+
/* src/images/fa-plus-solid.svg.svelte generated by Svelte v3.59.2 */
|
|
1188
|
+
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)}});
|
|
1187
1189
|
/* ../general-animation-loading/src/GeneralAnimationLoading.svelte generated by Svelte v3.59.2 */
|
|
1188
|
-
function
|
|
1189
|
-
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&
|
|
1190
|
-
/*div5_binding*/,t[3](null)}}}function
|
|
1190
|
+
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
|
+
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&d(i)
|
|
1192
|
+
/*div5_binding*/,t[3](null)}}}function Bi(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)}});
|
|
1191
1193
|
/* src/PlayerRglimits.svelte generated by Svelte v3.59.2 */
|
|
1192
|
-
function
|
|
1193
|
-
// (
|
|
1194
|
-
function
|
|
1195
|
-
return e[10]?
|
|
1196
|
-
return e[11]?
|
|
1197
|
-
// (
|
|
1198
|
-
function Gi(e){let t,i,n;return{c(){t=m("div"),i=m("strong"),n=p(/*errorMessage*/e[22]),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*/4194304&t[0]&&L(n,/*errorMessage*/e[22])},d(e){e&&
|
|
1199
|
-
// (
|
|
1200
|
-
function
|
|
1201
|
-
// (
|
|
1202
|
-
function $i(e){let t,i,n,r,a,s,
|
|
1203
|
-
// (
|
|
1204
|
-
function
|
|
1205
|
-
// (
|
|
1206
|
-
function
|
|
1207
|
-
// (
|
|
1208
|
-
function
|
|
1209
|
-
return e[
|
|
1210
|
-
// (
|
|
1211
|
-
function
|
|
1212
|
-
// (
|
|
1213
|
-
function
|
|
1214
|
-
// (
|
|
1215
|
-
function
|
|
1216
|
-
// (
|
|
1217
|
-
function
|
|
1218
|
-
// (
|
|
1219
|
-
function
|
|
1220
|
-
return e[1]?
|
|
1221
|
-
// (
|
|
1222
|
-
function
|
|
1223
|
-
// (
|
|
1224
|
-
function
|
|
1225
|
-
// (
|
|
1226
|
-
function
|
|
1227
|
-
// (
|
|
1228
|
-
function
|
|
1229
|
-
// (
|
|
1230
|
-
function
|
|
1231
|
-
// (
|
|
1232
|
-
function
|
|
1233
|
-
// (
|
|
1234
|
-
function
|
|
1235
|
-
// (
|
|
1236
|
-
function sn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("
|
|
1237
|
-
// (
|
|
1238
|
-
function
|
|
1239
|
-
// (
|
|
1240
|
-
function
|
|
1241
|
-
// (
|
|
1242
|
-
function
|
|
1243
|
-
// (
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1194
|
+
function Ui(e,t,i){const n=e.slice();return n[72]=t[i],n}function Yi(e,t,i){const n=e.slice();return n[72]=t[i],n}function Ii(e,t,i){const n=e.slice();return n[77]=t[i],n}
|
|
1195
|
+
// (548:4) {:else}
|
|
1196
|
+
function ji(e){let t,i,n,r,a,o,s,l,h,f,y,b=/*getWidgetTitle*/e[26](/*selectedLimitType*/e[18])+"";function _(e,t){/*isLoading*/
|
|
1197
|
+
return e[10]?zi:$i}let w=_(e),T=w(e),E=/*limitPeriodList*/e[15].length>0&&tn(e),S=/*limitTypeList*/e[16].length>0&&rn(e),k=/*limitTypeList*/e[16].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]&&on(e);function M(e,t){/*isGaugeLoading*/
|
|
1198
|
+
return e[11]?hn:dn}let D=M(e),A=D(e);return{c(){t=m("div"),i=m("h2"),n=m("currency-icon"),r=p(b),a=g(),T.c(),o=g(),s=m("div"),l=m("div"),E&&E.c(),h=g(),S&&S.c(),f=g(),k&&k.c(),y=g(),A.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),T.m(t,null),c(e,o,d),c(e,s,d),u(s,l),E&&E.m(l,null),u(l,h),S&&S.m(l,null),u(l,f),k&&k.m(l,null),u(s,y),A.m(s,null)},p(e,i){/*selectedLimitType*/262144&i[0]&&b!==(b=/*getWidgetTitle*/e[26](/*selectedLimitType*/e[18])+"")&&L(r,b),w===(w=_(e))&&T?T.p(e,i):(T.d(1),T=w(e),T&&(T.c(),T.m(t,null))),/*limitPeriodList*/e[15].length>0?E?E.p(e,i):(E=tn(e),E.c(),E.m(l,h)):E&&(E.d(1),E=null),/*limitTypeList*/e[16].length>0?S?S.p(e,i):(S=rn(e),S.c(),S.m(l,f)):S&&(S.d(1),S=null),/*limitTypeList*/e[16].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]?k?k.p(e,i):(k=on(e),k.c(),k.m(l,null)):k&&(k.d(1),k=null),D===(D=M(e))&&A?A.p(e,i):(A.d(1),A=D(e),A&&(A.c(),A.m(s,null)))},d(e){e&&d(t),T.d(),e&&d(o),e&&d(s),E&&E.d(),S&&S.d(),k&&k.d(),A.d()}}}
|
|
1199
|
+
// (544:27)
|
|
1200
|
+
function Gi(e){let t,i,n;return{c(){t=m("div"),i=m("strong"),n=p(/*errorMessage*/e[22]),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*/4194304&t[0]&&L(n,/*errorMessage*/e[22])},d(e){e&&d(t)}}}
|
|
1201
|
+
// (534:4) {#if noLimitToDisplay}
|
|
1202
|
+
function Fi(e){let t,i,n,r,a=/*$_*/e[23]("noLimitToDisplay")+"",o=/*editlimitaction*/"true"===e[5]&&mn(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){/*$_*/8388608&i[0]&&a!==(a=/*$_*/e[23]("noLimitToDisplay")+"")&&L(n,a),/*editlimitaction*/"true"===e[5]?o?o.p(e,i):(o=mn(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&d(t),o&&o.d()}}}
|
|
1203
|
+
// (553:8) {:else}
|
|
1204
|
+
function $i(e){let t,i,n,r,a,o,s,l,f,y,b,_,w,T,E,S,k,M,D,A,P,H,C,x,O,R,N,B,U,Y,I,j,G,F,$,z,V,W,Z,q,X,K,J,Q,ee,te,ie,ne,re,ae,oe,se,le,ue,ce,de,he,me,fe,pe,ge,ye,be,ve,_e=/*selectedProduct*/"All"===e[19]?`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletsLabel")}`:`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletLabel")}`,Le=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"",we=/*displayedLimit*/e[14].limitCurrency+"",Te=/*$_*/e[23]("spentAmount")+"",Ee=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"",Se=/*displayedLimit*/e[14].limitCurrency+"",ke=/*$_*/e[23]("remainingAmount")+"",Me=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].remainingAmount)+"",De=/*displayedLimit*/e[14].limitCurrency+"",Ae=/*$_*/e[23]("startLabel")+"",Pe=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].from)+"",He=/*$_*/e[23]("resetLabel")+"",Ce=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].to)+"",xe=/*productList*/e[20].length>1&&Vi(e),Oe=/*productList*/e[20],Re=[];for(let t=0;t<Oe.length;t+=1)Re[t]=Wi(Ii(e,Oe,t));let Ne=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&Zi(e),Be=/*displayedLimit*/(!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&qi(e),Ue=/*sessiontype*/"admin"===e[0]&&Ji(e);return{c(){t=m("div"),i=m("div"),n=m("span"),r=p(_e),a=g(),o=m("span"),s=p(Le),l=g(),f=m("span"),y=p(we),_=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(),H=m("div"),C=m("span"),x=m("caret-right"),O=g(),R=p(Ee),N=g(),B=p(Se),U=g(),Y=m("div"),I=m("div"),j=p(ke),G=g(),F=m("div"),$=m("span"),z=m("caret-right"),V=g(),W=p(Me),Z=g(),q=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(He),de=g(),he=m("div"),me=m("span"),fe=m("caret-right"),pe=g(),ge=p(Ce),ye=g(),Be&&Be.c(),be=g(),Ue&&Ue.c(),ve=p(""),v(n,"class","SelectedProduct"),v(f,"class","Currency"),v(o,"class","TotalAmount"),v(o,"title",b=`${/*formatWithSeparator*/e[30](/*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(H,"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,_),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,H),u(H,C),u(C,x),u(C,O),u(C,R),u(C,N),u(C,B),u(k,U),u(k,Y),u(Y,I),u(I,j),u(Y,G),u(Y,F),u(F,$),u($,z),u($,V),u($,W),u($,Z),u($,q),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),Be&&Be.m(e,d),c(e,be,d),Ue&&Ue.m(e,d),c(e,ve,d)},p(e,t){if(/*selectedProduct, $_*/8912896&t[0]&&_e!==(_e=/*selectedProduct*/"All"===e[19]?`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletsLabel")}`:`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletLabel")}`)&&L(r,_e),/*displayedLimit*/16384&t[0]&&Le!==(Le=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"")&&L(s,Le),/*displayedLimit*/16384&t[0]&&we!==(we=/*displayedLimit*/e[14].limitCurrency+"")&&L(y,we),/*displayedLimit*/16384&t[0]&&b!==(b=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&v(o,"title",b),/*productList*/e[20].length>1?xe?xe.p(e,t):(xe=Vi(e),xe.c(),xe.m(i,null)):xe&&(xe.d(1),xe=null),/*handleProductChange, productList, $_*/277872640&t[0]){let i;for(Oe=/*productList*/e[20],i=0;i<Oe.length;i+=1){const n=Ii(e,Oe,i);Re[i]?Re[i].p(n,t):(Re[i]=Wi(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),/*$_*/8388608&t[0]&&Te!==(Te=/*$_*/e[23]("spentAmount")+"")&&L(A,Te),/*displayedLimit*/16384&t[0]&&Ee!==(Ee=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"")&&L(R,Ee),/*displayedLimit*/16384&t[0]&&Se!==(Se=/*displayedLimit*/e[14].limitCurrency+"")&&L(B,Se),/*$_*/8388608&t[0]&&ke!==(ke=/*$_*/e[23]("remainingAmount")+"")&&L(j,ke),/*displayedLimit*/16384&t[0]&&Me!==(Me=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].remainingAmount)+"")&&L(W,Me),/*displayedLimit*/16384&t[0]&&De!==(De=/*displayedLimit*/e[14].limitCurrency+"")&&L(q,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),/*$_*/8388608&t[0]&&Ae!==(Ae=/*$_*/e[23]("startLabel")+"")&&L(ee,Ae),/*displayedLimit*/16384&t[0]&&Pe!==(Pe=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].from)+"")&&L(oe,Pe),/*$_*/8388608&t[0]&&He!==(He=/*$_*/e[23]("resetLabel")+"")&&L(ce,He),/*displayedLimit*/16384&t[0]&&Ce!==(Ce=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].to)+"")&&L(ge,Ce),/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?Be?Be.p(e,t):(Be=qi(e),Be.c(),Be.m(be.parentNode,be)):Be&&(Be.d(1),Be=null),/*sessiontype*/"admin"===e[0]?Ue?Ue.p(e,t):(Ue=Ji(e),Ue.c(),Ue.m(ve.parentNode,ve)):Ue&&(Ue.d(1),Ue=null)},d(e){e&&d(t),xe&&xe.d(),h(Re,e),e&&d(S),e&&d(k),Ne&&Ne.d(),e&&d(ye),Be&&Be.d(e),e&&d(be),Ue&&Ue.d(e),e&&d(ve)}}}
|
|
1205
|
+
// (551:8) {#if isLoading}
|
|
1206
|
+
function zi(e){let t;return{c(){t=m("general-animation-loading"),_(t,"clientstyling",/*clientstyling*/e[3]),_(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&_(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&d(t)}}}
|
|
1207
|
+
// (558:14) {#if productList.length > 1}
|
|
1208
|
+
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[45])),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
|
+
// (565:14) {#each productList as product}
|
|
1210
|
+
function Wi(e){let t,i,n,r,a,o=/*product*/"All"===e[77]?`${/*product*/e[77]} ${/*$_*/e[23]("walletsLabel")}`:`${/*product*/e[77]} ${/*$_*/e[23]("walletLabel")}`;function s(){/*click_handler_2*/
|
|
1211
|
+
return e[46](/*product*/e[77])}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, $_*/9437184&n[0]&&o!==(o=/*product*/"All"===e[77]?`${/*product*/e[77]} ${/*$_*/e[23]("walletsLabel")}`:`${/*product*/e[77]} ${/*$_*/e[23]("walletLabel")}`)&&L(i,o)},d(e){e&&d(t),r=!1,a()}}}
|
|
1212
|
+
// (581:12) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1213
|
+
function Zi(e){let t,i,n,r,a,o,s,l,h,f,y,b=/*$_*/e[23]("futureAmount")+"",_=/*formatWithSeparator*/e[30](/*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(_),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){/*$_*/8388608&t[0]&&b!==(b=/*$_*/e[23]("futureAmount")+"")&&L(n,b),/*displayedLimit*/16384&t[0]&&_!==(_=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"")&&L(h,_),/*displayedLimit*/16384&t[0]&&w!==(w=/*displayedLimit*/e[14].limitCurrency+"")&&L(y,w)},d(e){e&&d(t)}}}
|
|
1214
|
+
// (596:10) {#if displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true }
|
|
1215
|
+
function qi(e){let t,i,n=/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved&&Xi(e),r=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&Ki(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=Xi(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=Ki(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
|
+
// (598:14) {#if displayedLimit.formattedSchedule.isRemoved === true}
|
|
1217
|
+
function Xi(e){let t,i,n,r,a=/*$_*/e[23]("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){/*$_*/8388608&t[0]&&a!==(a=/*$_*/e[23]("limitRemoved")+"")&&L(i,a),/*displayedLimit*/16384&t[0]&&o!==(o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&L(r,o)},d(e){e&&d(t)}}}
|
|
1218
|
+
// (601:14) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1219
|
+
function Ki(e){let t,i,n,r,a=/*$_*/e[23]("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){/*$_*/8388608&t[0]&&a!==(a=/*$_*/e[23]("limitUpdated")+"")&&L(i,a),/*displayedLimit*/16384&t[0]&&o!==(o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&L(r,o)},d(e){e&&d(t)}}}
|
|
1220
|
+
// (606:10) {#if sessiontype === 'admin'}
|
|
1221
|
+
function Ji(e){let t;function i(e,t){/*transdetailsurl*/
|
|
1222
|
+
return e[1]?en:/*transactionspageurl*/e[2]?Qi: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
|
+
// (610:44)
|
|
1224
|
+
function Qi(e){let t,i,n=/*$_*/e[23]("additionalLink2")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*getTransactionsUrl*/e[31]()),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,t){/*$_*/8388608&t[0]&&n!==(n=/*$_*/e[23]("additionalLink2")+"")&&L(i,n)},d(e){e&&d(t)}}}
|
|
1225
|
+
// (608:14) {#if transdetailsurl}
|
|
1226
|
+
function en(e){let t,i,n=/*$_*/e[23]("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){/*$_*/8388608&r[0]&&n!==(n=/*$_*/e[23]("additionalLink1")+"")&&L(i,n),/*transdetailsurl*/2&r[0]&&v(t,"href",/*transdetailsurl*/e[1])},d(e){e&&d(t)}}}
|
|
1227
|
+
// (619:10) {#if limitPeriodList.length > 0}
|
|
1228
|
+
function tn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[23]("changeLimitLabel")+"",_=/*limitPeriodList*/e[15],w=[];for(let t=0;t<_.length;t+=1)w[t]=nn(Yi(e,_,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[17]&&O((()=>/*select_change_handler*/e[47].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[17],!0),l||(f=[y(s,"change",/*select_change_handler*/e[47]),y(s,"change",/*handlePeriodChange*/e[27])],l=!0)},p(e,t){if(/*$_*/8388608&t[0]&&b!==(b=/*$_*/e[23]("changeLimitLabel")+"")&&L(r,b),/*limitPeriodList*/32768&t[0]){let i;for(_=/*limitPeriodList*/e[15],i=0;i<_.length;i+=1){const n=Yi(e,_,i);w[i]?w[i].p(n,t):(w[i]=nn(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=_.length}/*selectedLimitPeriod, limitPeriodList*/163840&t[0]&&T(s,/*selectedLimitPeriod*/e[17])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1229
|
+
// (623:16) {#each limitPeriodList as value}
|
|
1230
|
+
function nn(e){let t,i,n,r,a=/*value*/e[72]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[72],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitPeriodList*/32768&n[0]&&a!==(a=/*value*/e[72]+"")&&L(i,a),/*limitPeriodList*/32768&n[0]&&r!==(r=/*value*/e[72])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1231
|
+
// (631:10) {#if limitTypeList.length > 0}
|
|
1232
|
+
function rn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[23]("limitTypeLabel")+"",_=/*limitTypeList*/e[16],w=[];for(let t=0;t<_.length;t+=1)w[t]=an(Ui(e,_,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[18]&&O((()=>/*select_change_handler_1*/e[48].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[18],!0),l||(f=[y(s,"change",/*select_change_handler_1*/e[48]),y(s,"change",/*getLimitBalance*/e[24])],l=!0)},p(e,t){if(/*$_*/8388608&t[0]&&b!==(b=/*$_*/e[23]("limitTypeLabel")+"")&&L(r,b),/*limitTypeList*/65536&t[0]){let i;for(_=/*limitTypeList*/e[16],i=0;i<_.length;i+=1){const n=Ui(e,_,i);w[i]?w[i].p(n,t):(w[i]=an(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=_.length}/*selectedLimitType, limitTypeList*/327680&t[0]&&T(s,/*selectedLimitType*/e[18])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1233
|
+
// (635:16) {#each limitTypeList as value}
|
|
1234
|
+
function an(e){let t,i,n,r,a=/*value*/e[72]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[72],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitTypeList*/65536&n[0]&&a!==(a=/*value*/e[72]+"")&&L(i,a),/*limitTypeList*/65536&n[0]&&r!==(r=/*value*/e[72])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1235
|
+
// (643:10) {#if limitTypeList.length > 0 && sessiontype === 'admin' && displayedLimit}
|
|
1236
|
+
function on(e){let t,i,n,r,a=/*editlimitaction*/"true"===e[5]&&sn(e),o=/*editlimitaction*/"true"===e[5]&&ln(e),s=/*deletelimitaction*/"true"===e[6]&&un(e),l=/*cancelimitscheduleaction*/"true"===e[7]&&/*displayedLimit*/e[14].formattedSchedule&&(/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&cn(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=sn(e),a.c(),a.m(t,i)):a&&(a.d(1),a=null),/*editlimitaction*/"true"===e[5]?o?o.p(e,u):(o=ln(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),/*deletelimitaction*/"true"===e[6]?s?s.p(e,u):(s=un(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=cn(e),l.c(),l.m(t,null))},d(e){e&&d(t),a&&a.d(),o&&o.d(),s&&s.d(),l&&l.d()}}}
|
|
1237
|
+
// (645:14) {#if editlimitaction === 'true'}
|
|
1238
|
+
function sn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("plus-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("addLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_3*/e[49])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("addLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1239
|
+
// (650:14) {#if editlimitaction === 'true'}
|
|
1240
|
+
function ln(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("pencil-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("editLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_4*/e[50])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("editLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1241
|
+
// (655:14) {#if deletelimitaction === 'true'}
|
|
1242
|
+
function un(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("cancel-limit-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("deleteLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_5*/e[51])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("deleteLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1243
|
+
// (660:14) {#if cancelimitscheduleaction === 'true' && (displayedLimit.formattedSchedule && (displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true))}
|
|
1244
|
+
function cn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("calendar-times-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("cancelScheduleTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_6*/e[52])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("cancelScheduleTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1245
|
+
// (670:8) {:else}
|
|
1246
|
+
function dn(e){let t,i,n,r,a,s,l,h,f,y,b,_,T,E,S,k,M,D,A,P,H,C,x,O,R,N,B,U,Y,I,j=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"",G=/*displayedLimit*/e[14].limitCurrency+"",F=/*displayedLimit*/e[14].limitCurrency+"",$=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"",z=/*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",H=g(),C=m("span"),x=p(F),O=g(),R=m("div"),N=m("strong"),B=p($),U=g(),Y=m("span"),I=p(z),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[21]+"deg"),v(h,"class","GaugeCover"),v(h,"title",_=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),v(E,"class","GaugeNeedleCover"),v(k,"class","GaugeNeedle"),w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[21]-90)+"deg)"),v(i,"class","GaugeBody"),v(P,"class","MinContent"),v(C,"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,H),u(A,C),u(C,x),u(D,O),u(D,R),u(R,N),u(N,B),u(R,U),u(R,Y),u(Y,I)},p(e,t){/*gaugeValue*/2097152&t[0]&&w(s,"--p",/*gaugeValue*/e[21]+"deg"),/*displayedLimit*/16384&t[0]&&j!==(j=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"")&&L(f,j),/*displayedLimit*/16384&t[0]&&G!==(G=/*displayedLimit*/e[14].limitCurrency+"")&&L(b,G),/*displayedLimit*/16384&t[0]&&_!==(_=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&v(h,"title",_),/*gaugeValue*/2097152&t[0]&&w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[21]-90)+"deg)"),/*displayedLimit*/16384&t[0]&&F!==(F=/*displayedLimit*/e[14].limitCurrency+"")&&L(x,F),/*displayedLimit*/16384&t[0]&&$!==($=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"")&&L(B,$),/*displayedLimit*/16384&t[0]&&z!==(z=/*displayedLimit*/e[14].limitCurrency+"")&&L(I,z)},d(e){e&&d(t)}}}
|
|
1247
|
+
// (668:8) {#if isGaugeLoading}
|
|
1248
|
+
function hn(e){let t;return{c(){t=m("general-animation-loading"),_(t,"clientstyling",/*clientstyling*/e[3]),_(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&_(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&d(t)}}}
|
|
1249
|
+
// (537:8) {#if editlimitaction === 'true'}
|
|
1250
|
+
function mn(e){let t,i,n,r,a,o,s,l,h=/*$_*/e[23]("addLimitText")+"";return{c(){t=m("button"),i=m("plus-icon"),n=g(),r=m("span"),a=p(h),_(i,"class","ActionsSvg"),v(t,"class","AddLimitControl"),v(t,"title",o=/*$_*/e[23]("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[44])),s=!0)},p(e,i){/*$_*/8388608&i[0]&&h!==(h=/*$_*/e[23]("addLimitText")+"")&&L(a,h),/*$_*/8388608&i[0]&&o!==(o=/*$_*/e[23]("addLimitTitle"))&&v(t,"title",o)},d(e){e&&d(t),s=!1,l()}}}function fn(t){let i,n,r;function a(e,t){/*noLimitToDisplay*/
|
|
1251
|
+
return e[12]?Fi:/*errorMessage*/e[22]?Gi:ji}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),
|
|
1252
|
+
/*div0_binding*/t[53](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(),
|
|
1253
|
+
/*div0_binding*/t[53](null)}}}function pn(e,t,i){let n;var r,a;r=Si,a=e=>i(23,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:_=""}=t,{deletelimitaction:L=""}=t,{cancelimitscheduleaction:w=""}=t,T=!1,S=!1,k=!1,D="",P="",H=!0,C=!0,x=!1,O={id:"",totalAmount:null,spentAmount:"",limitCurrency:"EUR",remainingAmount:"",limitPeriod:"",limitProducts:"",from:"",to:""},R=[],N=[],B="",U="",Y="",I=[],j=[],G=0,F="";const $={daily:0,weekly:1,monthly:2};Object.keys(Mi).forEach((e=>{ki(e,Mi[e])})),
|
|
1248
1254
|
/**
|
|
1249
1255
|
* Sets the isMounted flag after a short delay when the component is first rendered.
|
|
1250
1256
|
*/
|
|
1251
|
-
M((()=>{setTimeout((()=>{i(
|
|
1257
|
+
M((()=>{setTimeout((()=>{i(42,S=!0)}),50);
|
|
1252
1258
|
// Define the function to handle clicks outside the dropdown
|
|
1253
1259
|
const e=e=>{
|
|
1254
1260
|
// Check if the click is outside the .ProductsDropdown
|
|
1255
1261
|
e.target.closest(".ProductsDropdown")||
|
|
1256
1262
|
// Close the dropdown
|
|
1257
|
-
i(13,
|
|
1263
|
+
i(13,x=!1)};
|
|
1258
1264
|
// Add event listener to window for clicks
|
|
1259
1265
|
// Cleanup function to remove event listener when component is unmounted
|
|
1260
1266
|
return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}));
|
|
1261
1267
|
/**
|
|
1262
1268
|
* Sets the session information upon login.
|
|
1263
1269
|
*/
|
|
1264
|
-
const
|
|
1270
|
+
const V=e=>{i(22,F=e)},W=async()=>{i(13,x=!1);try{if(I=await Z(),0===I.length)return i(10,H=!1),void i(12,s=!0);i(15,R=[...new Set(I.map((e=>e.period)))].sort(((e,t)=>$[e]-$[t]))),i(20,j=q(I[0].period)),j.includes(Y)||i(19,Y=j[0]);const e=I.find((e=>e.period===B))||I[0];X(e)}catch(e){return i(10,H=!1),void V(n("fetchLimitBalanceError"))}},Z=async()=>{try{const e=new URL(`${h}/v1/player/${P}/limits/monetary/`),t={method:"GET",headers:{"X-SessionId":D,"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(16,N=Array.from(new Set(s)).filter((e=>o.includes(e)))),U||i(18,U=N[0]);const l=a.limits.filter((e=>e.type===U));return l.length>0?l:[]}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;V(t)}},q=e=>{const t=I.filter((t=>t.period===e)),i=[];return t.forEach((e=>{e.products.forEach((e=>{-1===i.indexOf(e)&&i.push(e)}))})),i},X=async e=>{try{i(10,H=!0);const t=new URL(`${h}/v1/player/${P}/limits/monetary/balance`);t.searchParams.append("limitDefinitionId",e.id);const r={method:"GET",headers:{"X-SessionId":D,"X-Session-Type":c}},a=await fetch(t,r);if(!a.ok)throw new Error(n("fetchLimitBalanceError"));const o=await a.json();K(o.limitBalances[0],e)}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;V(t)}finally{i(10,H=!1)}},K=(e,t)=>{i(17,B=e.limitPeriod),i(19,Y=e.limitProducts[0]);const n=J(t.id,t.schedules);i(14,O={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:Y,from:e.from,to:e.to}),n&&i(14,O.formattedSchedule=n,O),ee(O)},J=(e,t)=>{const i=t.find((t=>t.playerLimitId===e));return i?{updateAmount:i.updateAmount,expires:i.applyAt,expiresString:Q(i.applyAt),id:i.id,isRemoved:i.updateAmount<1,isUpdated:i.updateAmount>0}:{updateAmount:"",expires:"",expiresString:"",id:"",isRemoved:!1,isUpdated:!1}},Q=e=>z(e).utc(!0).format(v||"DD/MM/YYYY HH:mm:ss"),ee=e=>{
|
|
1265
1271
|
// Calculate newGaugeValue within [0, 180]
|
|
1266
|
-
let t=180/e.totalAmount*parseFloat(e.spentAmount);t=Math.min(180,Math.max(0,t));const n=setInterval((()=>{i(21,
|
|
1267
|
-
i(11,C=!1)},
|
|
1272
|
+
let t=180/e.totalAmount*parseFloat(e.spentAmount);t=Math.min(180,Math.max(0,t));const n=setInterval((()=>{i(21,G+=G<t?1.5:-1.5),Math.abs(G-t)<=1.5&&(i(21,G=t),clearInterval(n))}));// Step size for increasing/decreasing gaugeValue
|
|
1273
|
+
i(11,C=!1)},te=e=>{const t=I.find((t=>t.period===B&&t.products.includes(e)));i(14,O.limitProducts=e,O),i(13,x=!1),t&&X(t)},ie=()=>{var e;e=y,ai.set(e)},ne=()=>{i(13,x=!x)},re=(e,t)=>new Date(e.getTime()-24*t*60*60*1e3),ae=()=>{window.postMessage({type:"RGW:EditLimit",payload:{id:O.id}},window.location.href)},oe=()=>{window.postMessage({type:"RGW:DeleteLimit",payload:{id:O.id}},window.location.href)},se=()=>{O&&O.formattedSchedule&&window.postMessage({type:"RGW:CancelLimitSchedule",payload:{limitId:O.id,scheduleId:O.formattedSchedule.id}},window.location.href)},le=()=>{window.postMessage({type:"RGW:AddNewLimit"},window.location.href)};
|
|
1268
1274
|
/**
|
|
1269
1275
|
* Handles errors by updating the error message.
|
|
1270
1276
|
*
|
|
1271
1277
|
* @param error - The error message to be handled.
|
|
1272
|
-
*/return e.$$set=e=>{"session"in e&&i(35,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(36,h=e.userid),"endpoint"in e&&i(37,d=e.endpoint),"transdetailsurl"in e&&i(1,m=e.transdetailsurl),"transactionspageurl"in e&&i(2,f=e.transactionspageurl),"clientstyling"in e&&i(3,p=e.clientstyling),"clientstylingurl"in e&&i(4,g=e.clientstylingurl),"lang"in e&&i(38,y=e.lang),"translationurl"in e&&i(39,b=e.translationurl),"datetimeformat"in e&&i(40,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)},e.$$.update=()=>{/*isMounted, session, userid*/1072&e.$$.dirty[1]&&S&&u&&h&&(i(42,k=!0),D=u,A=h),/*isMounted, isLoggedIn*/3072&e.$$.dirty[1]&&S&&k&&V(),/*isMounted, isLoggedIn*/3072&e.$$.dirty[1]&&S&&k&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&V()})),/*clientstyling, customStylingContainer*/264&e.$$.dirty[0]&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/272&e.$$.dirty[0]&&g&&s&&(()=>{try{i(9,E=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{i(9,E=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;F(t)}})(),/*lang*/128&e.$$.dirty[1]&&y&&te(),/*translationurl*/256&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,s,E,H,C,o,O,x,R,N,B,U,Y,G,j,$,n,V,J,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(17,B=t.value),i(20,G=Z(B)),i(13,O=!1),G.includes(Y)||i(19,Y=G[0]);const n=I.find((e=>e.period===B&&e.products.includes(Y)));n&&q(n)},ee,ie,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{try{const e=f,t="Deposit"===U?"payment-transactions":"gaming-transactions",i={Daily:1,Weekly:7,Monthly:30},n=ne(new Date(x.to),i[B]),r=new URL(`${e}/gammatrix/gmwi/${t}`);switch(r.searchParams.append("transStatuses","2"),r.searchParams.append("startTime",n.toISOString()),r.searchParams.append("endTime",(new Date).toISOString()),r.searchParams.append("dateOption","Select custom dates"),r.searchParams.append("userId",h),U){case"Deposit":r.searchParams.append("transTypes","1");break;case"Wagering":r.searchParams.append("transTypes","12");break;case"Loss":r.searchParams.append("transTypes","8")}return r.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;F(t)}},re,ae,se,u,h,d,y,b,v,S,k,()=>ie(),e=>ee(e),function(){B=T(this),i(17,B),i(15,R)},function(){U=T(this),i(18,U),i(16,N)},()=>re(),()=>ae(),()=>se(),function(e){P[e?"unshift":"push"]((()=>{s=e,i(8,s)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends ${constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Ni,Ri,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 mn extends ${constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.DisplayNone{display:none}.ContainerCenter{width:100%;display:flex;justify-content:center;align-items:center;min-height:219px}.ErrorMessage{margin:0 15px;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:700px;min-height:150px;border:1px solid var(--emw--color-primary, #307fe2);border-radius:20px;overflow:hidden;box-shadow:14px 26px 19.7px 0px var(--emw--color-gray-150, #76768B);gap:25px;padding:25px}.ContentLeft{line-height:20px;flex:1}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #76768B);margin-bottom:20px;gap:5px}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{font-weight:700}caret-right{color:var(--emw--color-primary, #307fe2)}.ContentRight{min-width:300px;display:flex;justify-content:center;flex-direction:column}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{color:var(--emw--color-primary, #307fe2);text-decoration:underline}.WidgetControls{display:flex;width:100%;justify-content:end;gap:20px}.ControlContainer label{display:block;width:100%;font-size:12px;font-weight:bold;margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid #07072A;border-radius:5px;width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:black;margin:1rem 0;flex:1;align-content:center}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b: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:large;white-space:nowrap;width:130px;max-width:200px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #307fe2) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between;margin-top:10px}.ProductSelector{position:relative;margin-bottom:20px}.DisplayContainer{border:1px solid var(--emw--color-primary, #307fe2);background-color:#f5f5f5;border-radius:13px;box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.25);padding:9px;display:flex;align-items:center;justify-content:space-between;color:var(--emw--color-contrast, #07072A);gap:5px;margin-top:20px}.SelectedProduct{font-weight:700;text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:36px;align-items:baseline;gap:5px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;line-height:normal;justify-content:center;white-space:nowrap;max-width:188px;flex:1;text-align:center}.TotalAmount .Currency{font-size:24px}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:#F5F5F5;width:100%;box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:1;border:1px solid var(--emw--color-primary, #307fe2)}.ProductsDropdown.Show{display:block}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:700}.ProductsDropdown button:hover{background-color:var(--emw--color-primary, #307fe2);color:#fff}.DropdownToggle{width:35px;height:35px;display:flex;justify-content:center;align-items:center;background:none;border:none;cursor:pointer;color:var(--emw--color-primary, #307fe2);line-height:0}.DropdownToggle.Active{transform:rotate(90deg)}.Row{display:flex}.Col{flex:1}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},dn,hn,a,{session:35,sessiontype:0,userid:36,endpoint:37,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:38,translationurl:39,datetimeformat:40,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7},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"]}get session(){return this.$$.ctx[35]}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[36]}set userid(e){this.$$set({userid:e}),B()}get endpoint(){return this.$$.ctx[37]}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[38]}set lang(e){this.$$set({lang:e}),B()}get translationurl(){return this.$$.ctx[39]}set translationurl(e){this.$$set({translationurl:e}),B()}get datetimeformat(){return this.$$.ctx[40]}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()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",mn),mn}));
|
|
1278
|
+
*/return e.$$set=e=>{"session"in e&&i(36,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(37,d=e.userid),"endpoint"in e&&i(38,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(39,y=e.lang),"translationurl"in e&&i(40,b=e.translationurl),"datetimeformat"in e&&i(41,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)},e.$$.update=()=>{/*isMounted, session, userid*/2144&e.$$.dirty[1]&&S&&u&&d&&(i(43,k=!0),D=u,P=d),/*isMounted, isLoggedIn*/6144&e.$$.dirty[1]&&S&&k&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&(i(18,U=""),W())})),/*isMounted, isLoggedIn*/6144&e.$$.dirty[1]&&S&&k&&W(),/*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,T=!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,T=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;V(t)}})(),/*lang*/256&e.$$.dirty[1]&&y&&ie(),/*translationurl*/512&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,T,H,C,s,x,O,R,N,B,U,Y,j,G,F,n,W,Q,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(17,B=t.value),i(20,j=q(B)),i(13,x=!1),j.includes(Y)||i(19,Y=j[0]);const n=I.find((e=>e.period===B&&e.products.includes(Y)));n&&X(n)},te,ne,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{const e=f,t="Deposit"===U?"payment-transactions":"gaming-transactions",i=re(new Date(O.to),{Daily:1,Weekly:7,Monthly:30}[B]);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),U){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;V(t)}},ae,oe,se,le,u,d,h,y,b,v,S,k,()=>le(),()=>ne(),e=>te(e),function(){B=E(this),i(17,B),i(15,R)},function(){U=E(this),i(18,U),i(16,N)},()=>le(),()=>ae(),()=>oe(),()=>se(),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 gn 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:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:700px;min-height:150px;border:1px solid var(--emw--color-primary, #307fe2);border-radius:20px;overflow:hidden;box-shadow:14px 26px 19.7px 0px var(--emw--color-gray-150, #76768B);gap:25px;padding:25px}.ContentLeft{line-height:20px;flex:1}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #76768B);margin-bottom:20px;gap:5px}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{font-weight:700}caret-right{color:var(--emw--color-primary, #307fe2)}.ContentRight{min-width:300px;display:flex;justify-content:center;flex-direction:column}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{color:var(--emw--color-primary, #307fe2);text-decoration:underline}.AddLimitControl{border:0.1rem solid var(--emw--color-primary, #307fe2);border-radius: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:20px}.ControlContainer label{display:block;width:100%;font-size:12px;font-weight:bold;margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius: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}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius: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:4px;background:var(--emw--color-white, #FFFFFF)}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:black;margin:1rem 0;flex:1;align-content:center}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b: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:large;white-space:nowrap;width:130px;max-width:200px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #307fe2) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between;margin-top:10px}.ProductSelector{position:relative;margin-bottom:20px}.DisplayContainer{border:1px solid var(--emw--color-primary, #307fe2);background-color:#f5f5f5;border-radius:13px;box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.25);padding:9px;display:flex;align-items:center;justify-content:space-between;color:var(--emw--color-contrast, #07072A);gap:5px;margin-top:20px}.SelectedProduct{font-weight:700;text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:36px;align-items:baseline;gap:5px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;line-height:normal;justify-content:center;white-space:nowrap;max-width:188px;flex:1;text-align:center}.TotalAmount .Currency{font-size:24px}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:#F5F5F5;width:100%;box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:1;border:1px solid var(--emw--color-primary, #307fe2)}.ProductsDropdown.Show{display:block}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:700}.ProductsDropdown button:hover{background-color:var(--emw--color-primary, #307fe2);color:#fff}.DropdownToggle{width:35px;height:35px;display:flex;justify-content:center;align-items:center;background:none;border:none;cursor:pointer;color:var(--emw--color-primary, #307fe2);line-height:0}.DropdownToggle.Active{transform:rotate(90deg)}.Row{display:flex}.Col{flex:1}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},pn,fn,a,{session:36,sessiontype:0,userid:37,endpoint:38,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:39,translationurl:40,datetimeformat:41,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7},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"]}get session(){return this.$$.ctx[36]}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[37]}set userid(e){this.$$set({userid:e}),B()}get endpoint(){return this.$$.ctx[38]}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[39]}set lang(e){this.$$set({lang:e}),B()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),B()}get datetimeformat(){return this.$$.ctx[41]}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()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",gn),gn}));
|
|
1273
1279
|
//# sourceMappingURL=player-rglimits.js.map
|