@everymatrix/player-rglimits 1.44.0 → 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralAnimationLoading-BYQ3Ievv.cjs +1 -0
- package/components/GeneralAnimationLoading-KiKS37N6.js +692 -0
- package/components/PlayerRglimits-B7J5bx6m.cjs +12 -0
- package/components/PlayerRglimits-DEBmAvvw.js +8133 -0
- package/es2015/player-rglimits.cjs +1 -0
- package/es2015/player-rglimits.js +16 -0
- package/package.json +17 -33
- package/CHANGELOG.md +0 -15
- package/README.md +0 -30
- package/dist/player-rglimits.js +0 -1234
- package/dist/player-rglimits.js.map +0 -1
- package/index.html +0 -46
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -61
- package/src/PlayerRglimits.svelte +0 -1260
- package/src/i18n.js +0 -27
- package/src/images/arch-bg.svg +0 -5
- package/src/images/caret-select.svg +0 -3
- package/src/images/curency.svg +0 -4
- package/src/images/fa-calendar-times-o.svg +0 -1
- package/src/images/fa-caret-right.svg +0 -4
- package/src/images/fa-pencil.svg +0 -1
- package/src/images/fa-plus-solid.svg +0 -1
- package/src/images/fa-times.svg +0 -1
- package/src/index.ts +0 -4
- package/src/translations.js +0 -578
- package/stories/PlayerRglimits.stories.js +0 -13
- package/tsconfig.json +0 -6
- package/types/general-animation-loading.d.ts +0 -1
- package/types/types.ts +0 -60
package/dist/player-rglimits.js
DELETED
|
@@ -1,1234 +0,0 @@
|
|
|
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}function s(t,...i){if(null==t)return e;const n=t.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function o(e,t){e.appendChild(t)}function l(e,t,i){e.insertBefore(t,i||null)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function d(e){return document.createElement(e)}function h(e){return document.createTextNode(e)}function m(){return h(" ")}function f(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function p(e){return function(t){
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
return t.stopPropagation(),e.call(this,t)}}function g(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function y(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:g(e,t,i)}function v(e,t){t=""+t,e.data!==t&&(e.data=t)}function b(e,t,i,n){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function L(e,t,i){for(let i=0;i<e.options.length;i+=1){const n=e.options[i];if(n.__value===t)return void(n.selected=!0)}i&&void 0===t||(e.selectedIndex=-1)}function _(e){const t=e.querySelector(":checked");return t&&t.__value}class w{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,i=null){var n;this.e||(this.is_svg?this.e=(n=t.nodeName,document.createElementNS("http://www.w3.org/2000/svg",n)):this.e=d(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)l(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(u)}}function T(e){const t={};for(const i of e)t[i.name]=i.value;return t}let E;function S(e){E=e}
|
|
4
|
-
/**
|
|
5
|
-
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
6
|
-
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
7
|
-
* it can be called from an external module).
|
|
8
|
-
*
|
|
9
|
-
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
|
10
|
-
*
|
|
11
|
-
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
12
|
-
*/
|
|
13
|
-
function k(e){(function(){if(!E)throw new Error("Function called outside component initialization");return E})().$$.on_mount.push(e)}const M=[],D=[];let A=[];const C=[],H=Promise.resolve();let P=!1;function x(e){A.push(e)}
|
|
14
|
-
// flush() calls callbacks in this order:
|
|
15
|
-
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
16
|
-
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
17
|
-
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
|
18
|
-
// for afterUpdates called during the initial onMount, which are called in
|
|
19
|
-
// reverse order: children before parents.
|
|
20
|
-
// Since callbacks might update component values, which could trigger another
|
|
21
|
-
// call to flush(), the following steps guard against this:
|
|
22
|
-
// 1. During beforeUpdate, any updated components will be added to the
|
|
23
|
-
// dirty_components array and will cause a reentrant call to flush(). Because
|
|
24
|
-
// the flush index is kept outside the function, the reentrant call will pick
|
|
25
|
-
// up where the earlier call left off and go through all dirty components. The
|
|
26
|
-
// current_component value is saved and restored so that the reentrant call will
|
|
27
|
-
// not interfere with the "parent" flush() call.
|
|
28
|
-
// 2. bind:this callbacks cannot trigger new flush() calls.
|
|
29
|
-
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
|
30
|
-
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
31
|
-
// function, guarantees this behavior.
|
|
32
|
-
const O=new Set;let R=0;// Do *not* move this inside the flush() function
|
|
33
|
-
function N(){
|
|
34
|
-
// Do not reenter flush while dirty components are updated, as this can
|
|
35
|
-
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
36
|
-
// Reentrancy is ok afterwards for bindings etc.
|
|
37
|
-
if(0!==R)return;const e=E;do{
|
|
38
|
-
// first, call beforeUpdate functions
|
|
39
|
-
// and update components
|
|
40
|
-
try{for(;R<M.length;){const e=M[R];R++,S(e),U(e.$$)}}catch(e){
|
|
41
|
-
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
42
|
-
throw M.length=0,R=0,e}for(S(null),M.length=0,R=0;D.length;)D.pop()();
|
|
43
|
-
// then, once components are updated, call
|
|
44
|
-
// afterUpdate functions. This may cause
|
|
45
|
-
// subsequent updates...
|
|
46
|
-
for(let e=0;e<A.length;e+=1){const t=A[e];O.has(t)||(
|
|
47
|
-
// ...so guard against infinite loops
|
|
48
|
-
O.add(t),t())}A.length=0}while(M.length);for(;C.length;)C.pop()();P=!1,O.clear(),S(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(x)}}
|
|
49
|
-
/**
|
|
50
|
-
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
51
|
-
*/const B=new Set;function Y(e,t){const i=e.$$;null!==i.fragment&&(!function(e){const t=[],i=[];A.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),A=t}(i.after_update),n(i.on_destroy),i.fragment&&i.fragment.d(t),
|
|
52
|
-
// TODO null out other refs, including component.$$ (but need to
|
|
53
|
-
// preserve final state?)
|
|
54
|
-
i.on_destroy=i.fragment=null,i.ctx=[])}function I(e,t){-1===e.$$.dirty[0]&&(M.push(e),P||(P=!0,H.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function j(a,s,o,l,c,d,h,m=[-1]){const f=E;S(a);const p=a.$$={fragment:null,ctx:[],
|
|
55
|
-
// state
|
|
56
|
-
props:d,update:e,not_equal:c,bound:i(),
|
|
57
|
-
// lifecycle
|
|
58
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(f?f.$$.context:[])),
|
|
59
|
-
// everything else
|
|
60
|
-
callbacks:i(),dirty:m,skip_bound:!1,root:s.target||f.$$.root};h&&h(p.root);let g=!1;if(p.ctx=o?o(a,s.props||{},((e,t,...i)=>{const n=i.length?i[0]:t;return p.ctx&&c(p.ctx[e],p.ctx[e]=n)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](n),g&&I(a,e)),t})):[],p.update(),g=!0,n(p.before_update),
|
|
61
|
-
// `false` as a special case of no DOM component
|
|
62
|
-
p.fragment=!!l&&l(p.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
p.fragment&&p.fragment.l(e),e.forEach(u)}else
|
|
65
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
66
|
-
p.fragment&&p.fragment.c();s.intro&&((y=a.$$.fragment)&&y.i&&(B.delete(y),y.i(v))),function(e,i,a,s){const{fragment:o,after_update:l}=e.$$;o&&o.m(i,a),s||
|
|
67
|
-
// onMount happens before the initial afterUpdate
|
|
68
|
-
x((()=>{const i=e.$$.on_mount.map(t).filter(r);
|
|
69
|
-
// if the component was destroyed immediately
|
|
70
|
-
// it will update the `$$.on_destroy` reference to `null`.
|
|
71
|
-
// the destructured on_destroy may still reference to the old array
|
|
72
|
-
e.$$.on_destroy?e.$$.on_destroy.push(...i):
|
|
73
|
-
// Edge case - component was destroyed immediately,
|
|
74
|
-
// most likely as a result of a binding initialising
|
|
75
|
-
n(i),e.$$.on_mount=[]})),l.forEach(x)}(a,s.target,s.anchor,s.customElement),N()}var y,v;S(f)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);
|
|
76
|
-
// @ts-ignore todo: improve typings
|
|
77
|
-
for(const e in this.$$.slotted)
|
|
78
|
-
// @ts-ignore todo: improve typings
|
|
79
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){Y(this,1),this.$destroy=e}$on(t,i){
|
|
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 F(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var $=function(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return F(null==t&&i.path)}},i.exports),i.exports}((function(e,t){e.exports=function(){var t,i;function n(){return t.apply(null,arguments)}
|
|
82
|
-
// This is done to register the method called with moment()
|
|
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 s(e){
|
|
85
|
-
// IE8 will treat undefined and null as object if it wasn't for
|
|
86
|
-
// input != null
|
|
87
|
-
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function 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)o(t,i)&&(e[i]=t[i]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,i,n){return qi(e,t,i,n,!0).utc()}function p(){
|
|
88
|
-
// We need to deep clone this object.
|
|
89
|
-
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function y(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function v(e){var t=f(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}
|
|
90
|
-
// Plugins that add properties should also add the key here (null value),
|
|
91
|
-
// so we can properly clone ourselves.
|
|
92
|
-
i=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var b=n.momentProperties=[],L=!1;function _(e,t){var i,n,r,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(i=0;i<a;i++)u(r=t[n=b[i]])||(e[n]=r);return e}
|
|
93
|
-
// Moment prototype object
|
|
94
|
-
function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
95
|
-
// Prevent infinite loop in case updateOffset creates new moment
|
|
96
|
-
// objects.
|
|
97
|
-
!1===L&&(L=!0,n.updateOffset(this),L=!1)}function T(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function E(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var r,a,s,l=[],u=arguments.length;for(a=0;a<u;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}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 C(e){var t,i;for(i in e)o(e,i)&&(A(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,
|
|
98
|
-
// Lenient ordinal parsing accepts just a number in addition to
|
|
99
|
-
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
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)o(t,i)&&(s(e[i])&&s(t[i])?(n[i]={},m(n[i],e[i]),m(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)o(e,i)&&!o(t,i)&&s(e[i])&&(
|
|
102
|
-
// make sure changes to properties don't modify parent config
|
|
103
|
-
n[i]=m({},n[i]));return n}function P(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)o(e,t)&&i.push(t);return i};var x={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return A(n)?n.call(t,i):n}function R(e,t,i){var n=""+Math.abs(e),r=t-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},Y={};
|
|
104
|
-
// token: 'M'
|
|
105
|
-
// padded: ['MM', 2]
|
|
106
|
-
// ordinal: 'Mo'
|
|
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 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
|
-
// format date using native date object
|
|
110
|
-
function $(e,t){return e.isValid()?(t=W(t,e.localeData()),B[t]=B[t]||G(t),B[t](e)):e.localeData().invalidDate()}function W(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(U.lastIndex=0;i>=0&&U.test(e);)e=e.replace(U,n),U.lastIndex=0,i-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function Z(){return this._invalidDate}var X="%d",K=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,i,n){var r=this._relativeTime[i];return A(r)?r(e,t,i,n):r.replace(/%d/i,e)}function te(e,t){var i=this._relativeTime[e>0?"future":"past"];return A(i)?i(t):i.replace(/%s/i,t)}var ie={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?ie[e]||ie[e.toLowerCase()]:void 0}function re(e){var t,i,n={};for(i in e)o(e,i)&&(t=ne(i))&&(n[t]=e[i]);return n}var ae={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function se(e){var t,i=[];for(t in e)o(e,t)&&i.push({unit:t,priority:ae[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}var// 0-99
|
|
111
|
-
oe,le=/\d/,// 0 - 9
|
|
112
|
-
ue=/\d\d/,// 00 - 99
|
|
113
|
-
ce=/\d{3}/,// 000 - 999
|
|
114
|
-
de=/\d{4}/,// 0000 - 9999
|
|
115
|
-
he=/[+-]?\d{6}/,// -999999 - 999999
|
|
116
|
-
me=/\d\d?/,// 0 - 99
|
|
117
|
-
fe=/\d\d\d\d?/,// 999 - 9999
|
|
118
|
-
pe=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
119
|
-
ge=/\d{1,3}/,// 0 - 999
|
|
120
|
-
ye=/\d{1,4}/,// 0 - 9999
|
|
121
|
-
ve=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
122
|
-
be=/\d+/,// 0 - inf
|
|
123
|
-
Le=/[+-]?\d+/,// -inf - inf
|
|
124
|
-
_e=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
125
|
-
we=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
126
|
-
Te=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
127
|
-
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
128
|
-
// includes scottish gaelic two word and hyphenated months
|
|
129
|
-
Ee=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Se=/^[1-9]\d?/,// 1-99
|
|
130
|
-
ke=/^([1-9]\d|\d)/;function Me(e,t,i){oe[e]=A(t)?t:function(e,n){return e&&i?i:t}}function De(e,t){return o(oe,e)?oe[e](t._strict,t._locale):new RegExp(Ae(e))}
|
|
131
|
-
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
132
|
-
function Ae(e){return Ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function He(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pe(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=He(t)),i}oe={};var xe={};function Oe(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,i){i[t]=Pe(e)}),n=e.length,i=0;i<n;i++)xe[e[i]]=r}function Re(e,t){Oe(e,(function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function Ne(e,t,i){null!=t&&o(xe,e)&&xe[e](t,i._a,i,e)}function Ue(e){return e%4==0&&e%100!=0||e%400==0}var Be=0,Ye=1,Ie=2,je=3,Ge=4,Fe=5,$e=6,We=7,ze=8;
|
|
133
|
-
// FORMATTING
|
|
134
|
-
// HELPERS
|
|
135
|
-
function Ve(e){return Ue(e)?366:365}
|
|
136
|
-
// HOOKS
|
|
137
|
-
I("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),
|
|
138
|
-
// PARSING
|
|
139
|
-
Me("Y",Le),Me("YY",me,ue),Me("YYYY",ye,de),Me("YYYYY",ve,he),Me("YYYYYY",ve,he),Oe(["YYYYY","YYYYYY"],Be),Oe("YYYY",(function(e,t){t[Be]=2===e.length?n.parseTwoDigitYear(e):Pe(e)})),Oe("YY",(function(e,t){t[Be]=n.parseTwoDigitYear(e)})),Oe("Y",(function(e,t){t[Be]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};
|
|
140
|
-
// MOMENTS
|
|
141
|
-
var qe,Ze=Ke("FullYear",!0);function Xe(){return Ue(this.year())}function Ke(e,t){return function(i){return null!=i?(Qe(this,e,i),n.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var i=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN;// Just in case
|
|
142
|
-
}}function Qe(e,t,i){var n,r,a,s,o;if(e.isValid()&&!isNaN(i)){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));
|
|
143
|
-
// case 'Day': // Not real
|
|
144
|
-
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
145
|
-
// case 'Month': // Not used because we need to pass two variables
|
|
146
|
-
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
147
|
-
case"FullYear":break;// See below ...
|
|
148
|
-
default:return;// Just in case
|
|
149
|
-
}a=i,s=e.month(),o=29!==(o=e.date())||1!==s||Ue(a)?o:28,r?n.setUTCFullYear(a,s,o):n.setFullYear(a,s,o)}}
|
|
150
|
-
// MOMENTS
|
|
151
|
-
function et(e){return A(this[e=ne(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var i,n=se(e=re(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(A(this[e=ne(e)]))return this[e](t);return this}function it(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=it(t,12);return e+=(t-i)/12,1===i?Ue(e)?29:28:31-i%7%2}
|
|
152
|
-
// FORMATTING
|
|
153
|
-
qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
154
|
-
// I know
|
|
155
|
-
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
|
|
156
|
-
// PARSING
|
|
157
|
-
Me("M",me,Se),Me("MM",me,ue),Me("MMM",(function(e,t){return t.monthsShortRegex(e)})),Me("MMMM",(function(e,t){return t.monthsRegex(e)})),Oe(["M","MM"],(function(e,t){t[Ye]=Pe(e)-1})),Oe(["MMM","MMMM"],(function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);
|
|
158
|
-
// if we didn't find a month name, mark the date as invalid.
|
|
159
|
-
null!=r?t[Ye]=r:g(i).invalidMonth=e}));
|
|
160
|
-
// LOCALES
|
|
161
|
-
var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),at="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Ee,lt=Ee;function ut(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ct(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
162
|
-
// this is not used
|
|
163
|
-
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=qe.call(this._shortMonthsParse,s))?r:null:-1!==(r=qe.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=qe.call(this._shortMonthsParse,s))||-1!==(r=qe.call(this._longMonthsParse,s))?r:null:-1!==(r=qe.call(this._longMonthsParse,s))||-1!==(r=qe.call(this._shortMonthsParse,s))?r:null}function ht(e,t,i){var n,r,a;if(this._monthsParseExact)return dt.call(this,e,t,i);
|
|
164
|
-
// TODO: add sorting
|
|
165
|
-
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
166
|
-
// see sorting in computeMonthsParse
|
|
167
|
-
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){
|
|
168
|
-
// test the regex
|
|
169
|
-
if(
|
|
170
|
-
// make the regex if we don't have it already
|
|
171
|
-
r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}
|
|
172
|
-
// MOMENTS
|
|
173
|
-
function mt(e,t){if(!e.isValid())
|
|
174
|
-
// No op
|
|
175
|
-
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Pe(t);else
|
|
176
|
-
// TODO: Another silent failure?
|
|
177
|
-
if(!c(t=e.localeData().monthsParse(t)))return e;var i=t,n=e.date();return n=n<29?n:Math.min(n,nt(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,n):e._d.setMonth(i,n),e}function ft(e){return null!=e?(mt(this,e),n.updateOffset(this,!0),this):Je(this,"Month")}function pt(){return nt(this.year(),this.month())}function gt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,i,n,r,a=[],s=[],o=[];for(t=0;t<12;t++)
|
|
178
|
-
// make the regex if we don't have it already
|
|
179
|
-
i=f([2e3,t]),n=Ce(this.monthsShort(i,"")),r=Ce(this.months(i,"")),a.push(n),s.push(r),o.push(r),o.push(n);
|
|
180
|
-
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
181
|
-
// will match the longer piece.
|
|
182
|
-
a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function bt(e,t,i,n,r,a,s){
|
|
183
|
-
// can't just apply() to create a date:
|
|
184
|
-
// https://stackoverflow.com/q/181348
|
|
185
|
-
var o;
|
|
186
|
-
// the date constructor remaps years 0-99 to 1900-1999
|
|
187
|
-
return e<100&&e>=0?(
|
|
188
|
-
// preserve leap years using a full 400 year cycle, then reset
|
|
189
|
-
o=new Date(e+400,t,i,n,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,n,r,a,s),o}function Lt(e){var t,i;
|
|
190
|
-
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
191
|
-
return e<100&&e>=0?(
|
|
192
|
-
// preserve leap years using a full 400 year cycle, then reset
|
|
193
|
-
(i=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
|
|
194
|
-
// start-of-first-week - start-of-year
|
|
195
|
-
function _t(e,t,i){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
196
|
-
n=7+t-i;return-(7+Lt(e,0,n).getUTCDay()-t)%7+n-1}
|
|
197
|
-
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
198
|
-
function wt(e,t,i,n,r){var a,s,o=1+7*(t-1)+(7+i-n)%7+_t(e,n,r);return o<=0?s=Ve(a=e-1)+o:o>Ve(e)?(a=e+1,s=o-Ve(e)):(a=e,s=o),{year:a,dayOfYear:s}}function Tt(e,t,i){var n,r,a=_t(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?n=s+Et(r=e.year()-1,t,i):s>Et(e.year(),t,i)?(n=s-Et(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function Et(e,t,i){var n=_t(e,t,i),r=_t(e+1,t,i);return(Ve(e)-n+r)/7}
|
|
199
|
-
// FORMATTING
|
|
200
|
-
// HELPERS
|
|
201
|
-
// LOCALES
|
|
202
|
-
function St(e){return Tt(e,this._week.dow,this._week.doy).week}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),
|
|
203
|
-
// PARSING
|
|
204
|
-
Me("w",me,Se),Me("ww",me,ue),Me("W",me,Se),Me("WW",me,ue),Re(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=Pe(e)}));var kt={dow:0,// Sunday is the first day of the week.
|
|
205
|
-
doy:6};function Mt(){return this._week.dow}function Dt(){return this._week.doy}
|
|
206
|
-
// MOMENTS
|
|
207
|
-
function At(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ct(e){var t=Tt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
208
|
-
// FORMATTING
|
|
209
|
-
// HELPERS
|
|
210
|
-
function Ht(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
211
|
-
// LOCALES
|
|
212
|
-
function xt(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),
|
|
213
|
-
// PARSING
|
|
214
|
-
Me("d",me),Me("e",me),Me("E",me),Me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Me("dddd",(function(e,t){return t.weekdaysRegex(e)})),Re(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);
|
|
215
|
-
// if we didn't get a weekday name, mark the date as invalid
|
|
216
|
-
null!=r?t.d=r:g(i).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,i,n){t[n]=Pe(e)}));var Ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=Ee,Bt=Ee,Yt=Ee;function It(e,t){var i=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?xt(i,this._week.dow):e?i[e.day()]:i}function jt(e){return!0===e?xt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?xt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ft(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=qe.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=qe.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=qe.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=qe.call(this._weekdaysParse,s))||-1!==(r=qe.call(this._shortWeekdaysParse,s))||-1!==(r=qe.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=qe.call(this._shortWeekdaysParse,s))||-1!==(r=qe.call(this._weekdaysParse,s))||-1!==(r=qe.call(this._minWeekdaysParse,s))?r:null:-1!==(r=qe.call(this._minWeekdaysParse,s))||-1!==(r=qe.call(this._weekdaysParse,s))||-1!==(r=qe.call(this._shortWeekdaysParse,s))?r:null}function $t(e,t,i){var n,r,a;if(this._weekdaysParseExact)return Ft.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){
|
|
217
|
-
// test the regex
|
|
218
|
-
if(
|
|
219
|
-
// make the regex if we don't have it already
|
|
220
|
-
r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}
|
|
221
|
-
// MOMENTS
|
|
222
|
-
function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Ht(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;
|
|
223
|
-
// behaves the same as moment#day except
|
|
224
|
-
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
225
|
-
// as a setter, sunday should belong to the previous week.
|
|
226
|
-
if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(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,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)
|
|
227
|
-
// make the regex if we don't have it already
|
|
228
|
-
i=f([2e3,1]).day(t),n=Ce(this.weekdaysMin(i,"")),r=Ce(this.weekdaysShort(i,"")),a=Ce(this.weekdays(i,"")),s.push(n),o.push(r),l.push(a),u.push(n),u.push(r),u.push(a);
|
|
229
|
-
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
230
|
-
// will match the longer piece.
|
|
231
|
-
s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}
|
|
232
|
-
// FORMATTING
|
|
233
|
-
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)}))}
|
|
234
|
-
// PARSING
|
|
235
|
-
function ti(e,t){return t._meridiemParse}
|
|
236
|
-
// LOCALES
|
|
237
|
-
function ii(e){
|
|
238
|
-
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
239
|
-
// Using charAt should be more compatible.
|
|
240
|
-
return"p"===(e+"").toLowerCase().charAt(0)}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Jt),I("k",["kk",2],0,Qt),I("hmm",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),ei("a",!0),ei("A",!1),Me("a",ti),Me("A",ti),Me("H",me,ke),Me("h",me,Se),Me("k",me,Se),Me("HH",me,ue),Me("hh",me,ue),Me("kk",me,ue),Me("hmm",fe),Me("hmmss",pe),Me("Hmm",fe),Me("Hmmss",pe),Oe(["H","HH"],je),Oe(["k","kk"],(function(e,t,i){var n=Pe(e);t[je]=24===n?0:n})),Oe(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Oe(["h","hh"],(function(e,t,i){t[je]=Pe(e),g(i).bigHour=!0})),Oe("hmm",(function(e,t,i){var n=e.length-2;t[je]=Pe(e.substr(0,n)),t[Ge]=Pe(e.substr(n)),g(i).bigHour=!0})),Oe("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[je]=Pe(e.substr(0,n)),t[Ge]=Pe(e.substr(n,2)),t[Fe]=Pe(e.substr(r)),g(i).bigHour=!0})),Oe("Hmm",(function(e,t,i){var n=e.length-2;t[je]=Pe(e.substr(0,n)),t[Ge]=Pe(e.substr(n))})),Oe("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[je]=Pe(e.substr(0,n)),t[Ge]=Pe(e.substr(n,2)),t[Fe]=Pe(e.substr(r))}));var ni=/[ap]\.?m?\.?/i,
|
|
241
|
-
// Setting the hour should keep the time, because the user explicitly
|
|
242
|
-
// specified which hour they want. So trying to maintain the same hour (in
|
|
243
|
-
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
244
|
-
// this rule.
|
|
245
|
-
ri=Ke("Hours",!0);function ai(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:x,longDateFormat:z,invalidDate:q,ordinal:X,dayOfMonthOrdinalParse:K,relativeTime:Q,months:rt,monthsShort:at,week:kt,weekdays:Ot,weekdaysMin:Nt,weekdaysShort:Rt,meridiemParse:ni},li={},ui={};
|
|
246
|
-
// internal storage for locale config files
|
|
247
|
-
function ci(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}function di(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
248
|
-
// pick the locale from the array
|
|
249
|
-
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
|
250
|
-
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
|
251
|
-
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)
|
|
252
|
-
//the next array item is better than a shallower substring of this one
|
|
253
|
-
break;t--}a++}return si}function mi(e){
|
|
254
|
-
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
255
|
-
// Ensure name is available and function returns boolean
|
|
256
|
-
return!(!e||!e.match("^[^/\\\\]*$"))}function fi(t){var i=null;
|
|
257
|
-
// TODO: Find a better way to register and load all the locales in Node
|
|
258
|
-
if(void 0===li[t]&&e&&e.exports&&mi(t))try{i=si._abbr,F(),pi(i)}catch(e){
|
|
259
|
-
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
260
|
-
// when trying to find en-US, en_US, en-us for every format call
|
|
261
|
-
li[t]=null;// null means not found
|
|
262
|
-
}return li[t]}
|
|
263
|
-
// This function will load locale and then set the global locale. If
|
|
264
|
-
// no arguments are passed in, it will simply return the current global
|
|
265
|
-
// locale key.
|
|
266
|
-
function pi(e,t){var i;return e&&((i=u(t)?vi(e):gi(e,t))?
|
|
267
|
-
// moment.duration._locale = moment._locale = data;
|
|
268
|
-
si=i:"undefined"!=typeof console&&console.warn&&
|
|
269
|
-
//warn user if arguments are passed but the locale could not be set
|
|
270
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function gi(e,t){if(null!==t){var i,n=oi;if(t.abbr=e,null!=li[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=li[e]._config;else if(null!=t.parentLocale)if(null!=li[t.parentLocale])n=li[t.parentLocale]._config;else{if(null==(i=fi(t.parentLocale)))return ui[t.parentLocale]||(ui[t.parentLocale]=[]),ui[t.parentLocale].push({name:e,config:t}),null;n=i._config}return li[e]=new P(H(n,t)),ui[e]&&ui[e].forEach((function(e){gi(e.name,e.config)})),
|
|
271
|
-
// backwards compat for now: also set the locale
|
|
272
|
-
// make sure we set the locale AFTER all child locales have been
|
|
273
|
-
// created, so we won't end up with the child locale set.
|
|
274
|
-
pi(e),li[e]}
|
|
275
|
-
// useful for testing
|
|
276
|
-
return delete li[e],null}function yi(e,t){if(null!=t){var i,n,r=oi;null!=li[e]&&null!=li[e].parentLocale?
|
|
277
|
-
// Update existing child locale in-place to avoid memory-leaks
|
|
278
|
-
li[e].set(H(li[e]._config,t)):(
|
|
279
|
-
// MERGE
|
|
280
|
-
null!=(n=fi(e))&&(r=n._config),t=H(r,t),null==n&&(
|
|
281
|
-
// updateLocale is called for creating a new locale
|
|
282
|
-
// Set abbr so it will have a name (getters return
|
|
283
|
-
// undefined otherwise).
|
|
284
|
-
t.abbr=e),(i=new P(t)).parentLocale=li[e],li[e]=i),
|
|
285
|
-
// backwards compat for now: also set the locale
|
|
286
|
-
pi(e)}else
|
|
287
|
-
// pass null for config to unupdate, useful for tests
|
|
288
|
-
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]}
|
|
289
|
-
// returns locale data
|
|
290
|
-
function vi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!a(e)){if(
|
|
291
|
-
//short-circuit everything else
|
|
292
|
-
t=fi(e))return t;e=[e]}return hi(e)}function bi(){return k(li)}function Li(e){var t,i=e._a;return i&&-2===g(e).overflow&&(t=i[Ye]<0||i[Ye]>11?Ye:i[Ie]<1||i[Ie]>nt(i[Be],i[Ye])?Ie:i[je]<0||i[je]>24||24===i[je]&&(0!==i[Ge]||0!==i[Fe]||0!==i[$e])?je:i[Ge]<0||i[Ge]>59?Ge:i[Fe]<0||i[Fe]>59?Fe:i[$e]<0||i[$e]>999?$e:-1,g(e)._overflowDayOfYear&&(t<Be||t>Ie)&&(t=Ie),g(e)._overflowWeeks&&-1===t&&(t=We),g(e)._overflowWeekday&&-1===t&&(t=ze),g(e).overflow=t),e}
|
|
293
|
-
// iso 8601 regex
|
|
294
|
-
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
|
295
|
-
var _i=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ti=/Z|[+-]\d\d(?::?\d\d)?/,Ei=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
|
|
296
|
-
// iso time formats and regexes
|
|
297
|
-
Si=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ki=/^\/?Date\((-?\d+)/i,
|
|
298
|
-
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
299
|
-
Mi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
300
|
-
// date from iso format
|
|
301
|
-
function Ai(e){var t,i,n,r,a,s,o=e._i,l=_i.exec(o)||wi.exec(o),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])){
|
|
302
|
-
// match[2] should be 'T' or space
|
|
303
|
-
a=(l[2]||" ")+Si[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Ti.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(a||"")+(s||""),ji(e)}else e._isValid=!1}function Ci(e,t,i,n,r,a){var s=[Hi(e),at.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}function Hi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pi(e){
|
|
304
|
-
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
305
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xi(e,t,i){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Oi(e,t,i){if(e)return Di[e];if(t)
|
|
306
|
-
// the only allowed military tz is Z
|
|
307
|
-
return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}
|
|
308
|
-
// date and time from ref 2822 format
|
|
309
|
-
function Ri(e){var t,i=Mi.exec(Pi(e._i));if(i){if(t=Ci(i[4],i[3],i[2],i[5],i[6],i[7]),!xi(i[1],t,e))return;e._a=t,e._tzm=Oi(i[8],i[9],i[10]),e._d=Lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
310
|
-
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
311
|
-
function Ni(e){var t=ki.exec(e._i);null===t?(Ai(e),!1===e._isValid&&(delete e._isValid,Ri(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
312
|
-
// Final attempt, use Input Fallback
|
|
313
|
-
n.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
314
|
-
// Pick the first defined of two or three arguments.
|
|
315
|
-
function Ui(e,t,i){return null!=e?e:null!=t?t:i}function Bi(e){
|
|
316
|
-
// hooks is actually the exported moment object
|
|
317
|
-
var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
|
|
318
|
-
// convert an array to a date.
|
|
319
|
-
// the array should mirror the parameters below
|
|
320
|
-
// note: all values past the year are optional and will default to the lowest possible value.
|
|
321
|
-
// [year, month, day , hour, minute, second, millisecond]
|
|
322
|
-
function Yi(e){var t,i,n,r,a,s=[];if(!e._d){
|
|
323
|
-
// Default to current date.
|
|
324
|
-
// * if no year, month, day of month are given, default to today
|
|
325
|
-
// * if day of month is given, default month and year
|
|
326
|
-
// * if month is given, default only year
|
|
327
|
-
// * if year is given, don't default anything
|
|
328
|
-
for(n=Bi(e),
|
|
329
|
-
//compute day of the year from weeks and weekdays
|
|
330
|
-
e._w&&null==e._a[Ie]&&null==e._a[Ye]&&Ii(e),
|
|
331
|
-
//if the day of the year is set, figure out what it is
|
|
332
|
-
null!=e._dayOfYear&&(a=Ui(e._a[Be],n[Be]),(e._dayOfYear>Ve(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),i=Lt(a,0,e._dayOfYear),e._a[Ye]=i.getUTCMonth(),e._a[Ie]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];
|
|
333
|
-
// Zero out whatever was not defaulted, including time
|
|
334
|
-
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
335
|
-
// Check for 24:00:00.000
|
|
336
|
-
24===e._a[je]&&0===e._a[Ge]&&0===e._a[Fe]&&0===e._a[$e]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?Lt:bt).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
|
337
|
-
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
338
|
-
// with parseZone.
|
|
339
|
-
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),
|
|
340
|
-
// check for mismatching day of week
|
|
341
|
-
e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Ii(e){var t,i,n,r,a,s,o,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,
|
|
342
|
-
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
343
|
-
// how we interpret now (local, utc, fixed offset). So create
|
|
344
|
-
// a now version of current config (take local/utc/offset flags, and
|
|
345
|
-
// create now).
|
|
346
|
-
i=Ui(t.GG,e._a[Be],Tt(Zi(),1,4).year),n=Ui(t.W,1),((r=Ui(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Tt(Zi(),a,s),i=Ui(t.gg,e._a[Be],u.year),
|
|
347
|
-
// Default to current week.
|
|
348
|
-
n=Ui(t.w,u.week),null!=t.d?((
|
|
349
|
-
// weekday -- low day numbers are considered next week
|
|
350
|
-
r=t.d)<0||r>6)&&(l=!0):null!=t.e?(
|
|
351
|
-
// local weekday -- counting starts from beginning of week
|
|
352
|
-
r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):
|
|
353
|
-
// default to beginning of week
|
|
354
|
-
r=a),n<1||n>Et(i,a,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=wt(i,n,r,a,s),e._a[Be]=o.year,e._dayOfYear=o.dayOfYear)}
|
|
355
|
-
// constant that refers to the ISO standard
|
|
356
|
-
// date from string and format string
|
|
357
|
-
function ji(e){
|
|
358
|
-
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
359
|
-
if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],g(e).empty=!0;
|
|
360
|
-
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
361
|
-
var t,i,r,a,s,o,l,u=""+e._i,c=u.length,d=0;for(l=(r=W(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)a=r[t],(i=(u.match(De(a,e))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&g(e).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),d+=i.length),
|
|
362
|
-
// don't parse if it's not a known token
|
|
363
|
-
Y[a]?(i?g(e).empty=!1:g(e).unusedTokens.push(a),Ne(a,i,e)):e._strict&&!i&&g(e).unusedTokens.push(a);
|
|
364
|
-
// add remaining unparsed input length to the string
|
|
365
|
-
g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),
|
|
366
|
-
// clear _12h flag if hour is <= 12
|
|
367
|
-
e._a[je]<=12&&!0===g(e).bigHour&&e._a[je]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
|
368
|
-
// handle meridiem
|
|
369
|
-
e._a[je]=Gi(e._locale,e._a[je],e._meridiem),null!==(
|
|
370
|
-
// handle era
|
|
371
|
-
o=g(e).era)&&(e._a[Be]=e._locale.erasConvertYear(o,e._a[Be])),Yi(e),Li(e)}else Ri(e);else Ai(e)}function Gi(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(
|
|
372
|
-
// Fallback
|
|
373
|
-
(n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}
|
|
374
|
-
// date from string and array of format strings
|
|
375
|
-
function Fi(e){var t,i,n,r,a,s,o=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)a=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ji(t),y(t)&&(s=!0),
|
|
376
|
-
// if there is any input that was not parsed add a penalty for that format
|
|
377
|
-
a+=g(t).charsLeftOver,
|
|
378
|
-
//or tokens
|
|
379
|
-
a+=10*g(t).unusedTokens.length,g(t).score=a,o?a<n&&(n=a,i=t):(null==n||a<n||s)&&(n=a,i=t,s&&(o=!0));m(e,i||t)}function $i(e){if(!e._d){var t=re(e._i),i=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Yi(e)}}function Wi(e){var t=new w(Li(zi(e)));return t._nextDay&&(
|
|
380
|
-
// Adding is smart enough around DST
|
|
381
|
-
t.add(1,"d"),t._nextDay=void 0),t}function zi(e){var t=e._i,i=e._f;return e._locale=e._locale||vi(e._l),null===t||void 0===i&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new w(Li(t)):(d(t)?e._d=t:a(i)?Fi(e):i?ji(e):Vi(e),y(e)||(e._d=null),e))}function Vi(e){var t=e._i;u(t)?e._d=new Date(n.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ni(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Yi(e)):s(t)?$i(e):c(t)?
|
|
382
|
-
// from milliseconds
|
|
383
|
-
e._d=new Date(t):n.createFromInputFallback(e)}function qi(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),
|
|
384
|
-
// object construction must be done this way.
|
|
385
|
-
// https://github.com/moment/moment/issues/1423
|
|
386
|
-
o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,Wi(o)}function Zi(e,t,i,n){return qi(e,t,i,n,!1)}n.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},
|
|
387
|
-
// constant that refers to the RFC 2822 form
|
|
388
|
-
n.RFC_2822=function(){};var Xi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Ki=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));
|
|
389
|
-
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
390
|
-
// other. This relies on the function fn to be transitive.
|
|
391
|
-
|
|
392
|
-
// moments should either be an array of moment objects or an array, whose
|
|
393
|
-
// first element is an array of moment objects.
|
|
394
|
-
function Ji(e,t){var i,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Zi();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}
|
|
395
|
-
// TODO: Use [].sort instead?
|
|
396
|
-
function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function en(){return Ji("isAfter",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},nn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rn(e){var t,i,n=!1,r=nn.length;for(t in e)if(o(e,t)&&(-1===qe.call(nn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[nn[i]]){if(n)return!1;// only allow non-integers for smallest unit
|
|
397
|
-
parseFloat(e[nn[i]])!==Pe(e[nn[i]])&&(n=!0)}return!0}function an(){return this._isValid}function sn(){return An(NaN)}function on(e){var t=re(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rn(t),
|
|
398
|
-
// representation for dateAddRemove
|
|
399
|
-
this._milliseconds=+c+1e3*u+// 1000
|
|
400
|
-
6e4*l+// 1000 * 60
|
|
401
|
-
1e3*o*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
|
402
|
-
// Because of dateAddRemove treats 24 hours as different from a
|
|
403
|
-
// day when working around DST, we need to store them separately
|
|
404
|
-
this._days=+s+7*a,
|
|
405
|
-
// It is impossible to translate months into days without knowing
|
|
406
|
-
// which months you are are talking about, so we have to store
|
|
407
|
-
// it separately.
|
|
408
|
-
this._months=+r+3*n+12*i,this._data={},this._locale=vi(),this._bubble()}function ln(e){return e instanceof on}function un(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
|
409
|
-
// compare two arrays, return the number of differences
|
|
410
|
-
function cn(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&Pe(e[n])!==Pe(t[n]))&&s++;return s+a}
|
|
411
|
-
// FORMATTING
|
|
412
|
-
function dn(e,t){I(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+t+R(~~e%60,2)}))}dn("Z",":"),dn("ZZ",""),
|
|
413
|
-
// PARSING
|
|
414
|
-
Me("Z",we),Me("ZZ",we),Oe(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=mn(we,e)}));
|
|
415
|
-
// HELPERS
|
|
416
|
-
// timezone chunker
|
|
417
|
-
// '+10:00' > ['10', '00']
|
|
418
|
-
// '-1530' > ['-15', '30']
|
|
419
|
-
var hn=/([\+\-]|\d\d)/gi;function mn(e,t){var i,n,r=(t||"").match(e);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(hn)||["-",0,0])[1]+Pe(i[2]))?0:"+"===i[0]?n:-n}
|
|
420
|
-
// Return a moment from input, that is local/utc/zone equivalent to model.
|
|
421
|
-
function fn(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(T(e)||d(e)?e.valueOf():Zi(e).valueOf())-i.valueOf(),
|
|
422
|
-
// Use low-level api, because this fn is low-level api.
|
|
423
|
-
i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Zi(e).local()}function pn(e){
|
|
424
|
-
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
|
425
|
-
// https://github.com/moment/moment/pull/1871
|
|
426
|
-
return-Math.round(e._d.getTimezoneOffset())}
|
|
427
|
-
// HOOKS
|
|
428
|
-
// This function will be called whenever a moment is mutated.
|
|
429
|
-
// It is intended to keep the offset in sync with the timezone.
|
|
430
|
-
// MOMENTS
|
|
431
|
-
// keepLocalTime = true means only change the timezone, without
|
|
432
|
-
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
|
|
433
|
-
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
|
|
434
|
-
// +0200, so we adjust the time as needed, to be valid.
|
|
435
|
-
// Keeping the time actually adds/subtracts (one hour)
|
|
436
|
-
// from the actual represented time. That is why we call updateOffset
|
|
437
|
-
// a second time. In case it wants us to change the offset again
|
|
438
|
-
// _changeInProgress == true case, then we have to adjust, because
|
|
439
|
-
// there is no such time in the given timezone.
|
|
440
|
-
function gn(e,t,i){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mn(we,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=pn(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?On(this,An(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pn(this)}function yn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vn(e){return this.utcOffset(0,e)}function bn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pn(this),"m")),this}function Ln(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mn(_e,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _n(e){return!!this.isValid()&&(e=e?Zi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Tn(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zi(t))._a?(e=t._isUTC?f(t._a):Zi(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function En(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function kn(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
441
|
-
// ASP.NET json date format regex
|
|
442
|
-
n.updateOffset=function(){};var Mn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
443
|
-
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
444
|
-
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
445
|
-
// and further modified to allow for strings containing both week and day
|
|
446
|
-
Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function An(e,t){var i,n,r,a=e,
|
|
447
|
-
// matching against regexp is expensive, do it on demand
|
|
448
|
-
s=null;return ln(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=Mn.exec(e))?(i="-"===s[1]?-1:1,a={y:0,d:Pe(s[Ie])*i,h:Pe(s[je])*i,m:Pe(s[Ge])*i,s:Pe(s[Fe])*i,ms:Pe(un(1e3*s[$e]))*i}):(s=Dn.exec(e))?(i="-"===s[1]?-1:1,a={y:Cn(s[2],i),M:Cn(s[3],i),w:Cn(s[4],i),d:Cn(s[5],i),h:Cn(s[6],i),m:Cn(s[7],i),s:Cn(s[8],i)}):null==a?
|
|
449
|
-
// checks for null or undefined
|
|
450
|
-
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Pn(Zi(a.from),Zi(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),n=new on(a),ln(e)&&o(e,"_locale")&&(n._locale=e._locale),ln(e)&&o(e,"_isValid")&&(n._isValid=e._isValid),n}function Cn(e,t){
|
|
451
|
-
// We'd normally use ~~inp for this, but unfortunately it also
|
|
452
|
-
// converts floats to ints.
|
|
453
|
-
// inp may be undefined, so careful calling replace on it.
|
|
454
|
-
var i=e&&parseFloat(e.replace(",","."));
|
|
455
|
-
// apply sign while we're at it
|
|
456
|
-
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 Pn(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}}
|
|
457
|
-
// TODO: remove 'name' arg after deprecation is removed
|
|
458
|
-
function xn(e,t){return function(i,n){var r;
|
|
459
|
-
//invert the arguments, but complain about it
|
|
460
|
-
return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),On(this,An(i,n),e),this}}function On(e,t,i,r){var a=t._milliseconds,s=un(t._days),o=un(t._months);e.isValid()&&(r=null==r||r,o&&mt(e,Je(e,"Month")+o*i),s&&Qe(e,"Date",Je(e,"Date")+s*i),a&&e._d.setTime(e._d.valueOf()+a*i),r&&n.updateOffset(e,s||o))}An.fn=on.prototype,An.invalid=sn;var Rn=xn(1,"add"),Nn=xn(-1,"subtract");function Un(e){return"string"==typeof e||e instanceof String}
|
|
461
|
-
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
462
|
-
function Bn(e){return T(e)||d(e)||Un(e)||c(e)||In(e)||Yn(e)||null==e}function Yn(e){var t,i,n=s(e)&&!l(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)i=a[t],r=r||o(e,i);return n&&r}function In(e){var t=a(e),i=!1;return t&&(i=0===e.filter((function(t){return!c(t)&&Un(e)})).length),t&&i}function jn(e){var t,i,n=s(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)i=a[t],r=r||o(e,i);return n&&r}function Gn(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function Fn(e,t){
|
|
463
|
-
// Support for single parameter, formats only overload to the calendar function
|
|
464
|
-
1===arguments.length&&(arguments[0]?Bn(arguments[0])?(e=arguments[0],t=void 0):jn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
465
|
-
// We want to compare the start of today, vs this.
|
|
466
|
-
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
467
|
-
var i=e||Zi(),r=fn(i,this).startOf("day"),a=n.calendarFormat(this,r)||"sameElse",s=t&&(A(t[a])?t[a].call(this,i):t[a]);return this.format(s||this.localeData().calendar(a,this,Zi(i)))}function $n(){return new w(this)}function Wn(e,t){var i=T(e)?e:Zi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function zn(e,t){var i=T(e)?e:Zi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function Vn(e,t,i,n){var r=T(e)?e:Zi(e),a=T(t)?t:Zi(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i))}function qn(e,t){var i,n=T(e)?e:Zi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function Zn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kn(e,t,i){var n,r,a;if(!this.isValid())return NaN;if(!(n=fn(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Jn(this,n)/12;break;case"month":a=Jn(this,n);break;case"quarter":a=Jn(this,n)/3;break;case"second":a=(this-n)/1e3;break;// 1000
|
|
468
|
-
case"minute":a=(this-n)/6e4;break;// 1000 * 60
|
|
469
|
-
case"hour":a=(this-n)/36e5;break;// 1000 * 60 * 60
|
|
470
|
-
case"day":a=(this-n-r)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
471
|
-
case"week":a=(this-n-r)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
472
|
-
default:a=this-n}return i?a:He(a)}function Jn(e,t){if(e.date()<t.date())
|
|
473
|
-
// end-of-month calculations work correct when the start month has more
|
|
474
|
-
// days than the end month.
|
|
475
|
-
return-Jn(t,e);
|
|
476
|
-
// difference in months
|
|
477
|
-
var i=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
478
|
-
// b is in (anchor - 1 month, anchor + 1 month)
|
|
479
|
-
n=e.clone().add(i,"months");
|
|
480
|
-
//check for negative zero, return zero if negative zero
|
|
481
|
-
return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?$(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?
|
|
482
|
-
// native implementation is ~50x faster, use it when we can
|
|
483
|
-
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(i,"Z")):$(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
484
|
-
/**
|
|
485
|
-
* Return a human readable representation of a moment that can
|
|
486
|
-
* also be evaluated to get a new moment which is the same
|
|
487
|
-
*
|
|
488
|
-
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
489
|
-
*/function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(e+t+i+n)}function ir(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(T(e)&&e.isValid()||Zi(e).isValid())?An({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Zi(),e)}function ar(e,t){return this.isValid()&&(T(e)&&e.isValid()||Zi(e).isValid())?An({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sr(e){return this.to(Zi(),e)}
|
|
490
|
-
// If passed a locale key, it will set the locale for this
|
|
491
|
-
// instance. Otherwise, it will return the locale configuration
|
|
492
|
-
// variables for this instance.
|
|
493
|
-
function or(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vi(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;
|
|
494
|
-
// actual modulo - handles negative numbers (for dates before 1970):
|
|
495
|
-
function fr(e,t){return(e%t+t)%t}function pr(e,t,i){
|
|
496
|
-
// the date constructor remaps years 0-99 to 1900-1999
|
|
497
|
-
return e<100&&e>=0?new Date(e+400,t,i)-mr:new Date(e,t,i).valueOf()}function gr(e,t,i){
|
|
498
|
-
// Date.UTC remaps years 0-99 to 1900-1999
|
|
499
|
-
return e<100&&e>=0?Date.UTC(e+400,t,i)-mr:Date.UTC(e,t,i)}function yr(e){var t,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*dr),hr);break;case"minute":t=this._d.valueOf(),t-=fr(t,dr);break;case"second":t=this._d.valueOf(),t-=fr(t,cr)}return this._d.setTime(t),n.updateOffset(this,!0),this}function vr(e){var t,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?gr:pr,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hr-fr(t+(this._isUTC?0:this.utcOffset()*dr),hr)-1;break;case"minute":t=this._d.valueOf(),t+=dr-fr(t,dr)-1;break;case"second":t=this._d.valueOf(),t+=cr-fr(t,cr)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function Lr(){return Math.floor(this.valueOf()/1e3)}function _r(){return new Date(this.valueOf())}function wr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Tr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Er(){
|
|
500
|
-
// new Date(NaN).toJSON() === null
|
|
501
|
-
return this.isValid()?this.toISOString():null}function Sr(){return y(this)}function kr(){return m({},g(this))}function Mr(){return g(this).overflow}function Dr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ar(e,t){var i,r,a,s=this._eras||vi("en")._eras;for(i=0,r=s.length;i<r;++i)switch("string"==typeof s[i].since&&(
|
|
502
|
-
// truncate time
|
|
503
|
-
a=n(s[i].since).startOf("day"),s[i].since=a.valueOf()),typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":
|
|
504
|
-
// truncate time
|
|
505
|
-
a=n(s[i].until).startOf("day").valueOf(),s[i].until=a.valueOf()}return s}function Cr(e,t,i){var n,r,a,s,o,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(a=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),o=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(o===e)return l[n]}else if([a,s,o].indexOf(e)>=0)return l[n]}function Hr(e,t){var i=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*i}function Pr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
506
|
-
// truncate time
|
|
507
|
-
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function xr(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
508
|
-
// truncate time
|
|
509
|
-
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Or(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
|
|
510
|
-
// truncate time
|
|
511
|
-
i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Rr(){var e,t,i,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(i=a[e].since<=a[e].until?1:-1,
|
|
512
|
-
// truncate time
|
|
513
|
-
r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-n(a[e].since).year())*i+a[e].offset;return this.year()}function Nr(e){return o(this,"_erasNameRegex")||Fr.call(this),e?this._erasNameRegex:this._erasRegex}function Ur(e){return o(this,"_erasAbbrRegex")||Fr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Br(e){return o(this,"_erasNarrowRegex")||Fr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yr(e,t){return t.erasAbbrRegex(e)}function Ir(e,t){return t.erasNameRegex(e)}function jr(e,t){return t.erasNarrowRegex(e)}function Gr(e,t){return t._eraYearOrdinalRegex||be}function Fr(){var e,t,i,n,r,a=[],s=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)i=Ce(u[e].name),n=Ce(u[e].abbr),r=Ce(u[e].narrow),s.push(i),a.push(n),o.push(r),l.push(i),l.push(n),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}
|
|
514
|
-
// FORMATTING
|
|
515
|
-
function $r(e,t){I(0,[e,e.length],0,t)}
|
|
516
|
-
// MOMENTS
|
|
517
|
-
function Wr(e){return Kr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zr(e){return Kr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return Et(this.year(),1,4)}function qr(){return Et(this.isoWeekYear(),1,4)}function Zr(){var e=this.localeData()._week;return Et(this.year(),e.dow,e.doy)}function Xr(){var e=this.localeData()._week;return Et(this.weekYear(),e.dow,e.doy)}function Kr(e,t,i,n,r){var a;return null==e?Tt(this,n,r).year:(t>(a=Et(e,n,r))&&(t=a),Jr.call(this,e,t,i,n,r))}function Jr(e,t,i,n,r){var a=wt(e,t,i,n,r),s=Lt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
|
|
518
|
-
// FORMATTING
|
|
519
|
-
// MOMENTS
|
|
520
|
-
function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
521
|
-
// FORMATTING
|
|
522
|
-
I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),Me("N",Yr),Me("NN",Yr),Me("NNN",Yr),Me("NNNN",Ir),Me("NNNNN",jr),Oe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,n){var r=i._locale.erasParse(e,n,i._strict);r?g(i).era=r:g(i).invalidEra=e})),Me("y",be),Me("yy",be),Me("yyy",be),Me("yyyy",be),Me("yo",Gr),Oe(["y","yy","yyy","yyyy"],Be),Oe(["yo"],(function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[Be]=i._locale.eraYearOrdinalParse(e,r):t[Be]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$r("gggg","weekYear"),$r("ggggg","weekYear"),$r("GGGG","isoWeekYear"),$r("GGGGG","isoWeekYear"),
|
|
523
|
-
// ALIASES
|
|
524
|
-
// PARSING
|
|
525
|
-
Me("G",Le),Me("g",Le),Me("GG",me,ue),Me("gg",me,ue),Me("GGGG",ye,de),Me("gggg",ye,de),Me("GGGGG",ve,he),Me("ggggg",ve,he),Re(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=Pe(e)})),Re(["gg","GG"],(function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),
|
|
526
|
-
// PARSING
|
|
527
|
-
Me("Q",le),Oe("Q",(function(e,t){t[Ye]=3*(Pe(e)-1)})),I("D",["DD",2],"Do","date"),
|
|
528
|
-
// PARSING
|
|
529
|
-
Me("D",me,Se),Me("DD",me,ue),Me("Do",(function(e,t){
|
|
530
|
-
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
531
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Oe(["D","DD"],Ie),Oe("Do",(function(e,t){t[Ie]=Pe(e.match(me)[0])}));
|
|
532
|
-
// MOMENTS
|
|
533
|
-
var ea=Ke("Date",!0);
|
|
534
|
-
// FORMATTING
|
|
535
|
-
// HELPERS
|
|
536
|
-
// MOMENTS
|
|
537
|
-
function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}
|
|
538
|
-
// FORMATTING
|
|
539
|
-
I("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
540
|
-
// PARSING
|
|
541
|
-
Me("DDD",ge),Me("DDDD",ce),Oe(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=Pe(e)})),I("m",["mm",2],0,"minute"),
|
|
542
|
-
// PARSING
|
|
543
|
-
Me("m",me,ke),Me("mm",me,ue),Oe(["m","mm"],Ge);
|
|
544
|
-
// MOMENTS
|
|
545
|
-
var ia=Ke("Minutes",!1);
|
|
546
|
-
// FORMATTING
|
|
547
|
-
I("s",["ss",2],0,"second"),
|
|
548
|
-
// PARSING
|
|
549
|
-
Me("s",me,ke),Me("ss",me,ue),Oe(["s","ss"],Fe);
|
|
550
|
-
// MOMENTS
|
|
551
|
-
var na,ra,aa=Ke("Seconds",!1);
|
|
552
|
-
// FORMATTING
|
|
553
|
-
for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
|
|
554
|
-
// PARSING
|
|
555
|
-
Me("S",ge,le),Me("SS",ge,ue),Me("SSS",ge,ce),na="SSSS";na.length<=9;na+="S")Me(na,be);function sa(e,t){t[$e]=Pe(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")Oe(na,sa);
|
|
556
|
-
// MOMENTS
|
|
557
|
-
function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=Ke("Milliseconds",!1),
|
|
558
|
-
// FORMATTING
|
|
559
|
-
I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ua=w.prototype;function ca(e){return Zi(1e3*e)}function da(){return Zi.apply(null,arguments).parseZone()}function ha(e){return e}ua.add=Rn,ua.calendar=Fn,ua.clone=$n,ua.diff=Kn,ua.endOf=vr,ua.format=ir,ua.from=nr,ua.fromNow=rr,ua.to=ar,ua.toNow=sr,ua.get=et,ua.invalidAt=Mr,ua.isAfter=Wn,ua.isBefore=zn,ua.isBetween=Vn,ua.isSame=qn,ua.isSameOrAfter=Zn,ua.isSameOrBefore=Xn,ua.isValid=Sr,ua.lang=lr,ua.locale=or,ua.localeData=ur,ua.max=Ki,ua.min=Xi,ua.parsingFlags=kr,ua.set=tt,ua.startOf=yr,ua.subtract=Nn,ua.toArray=wr,ua.toObject=Tr,ua.toDate=_r,ua.toISOString=er,ua.inspect=tr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=Er,ua.toString=Qn,ua.unix=Lr,ua.valueOf=br,ua.creationData=Dr,ua.eraName=Pr,ua.eraNarrow=xr,ua.eraAbbr=Or,ua.eraYear=Rr,ua.year=Ze,ua.isLeapYear=Xe,ua.weekYear=Wr,ua.isoWeekYear=zr,ua.quarter=ua.quarters=Qr,ua.month=ft,ua.daysInMonth=pt,ua.week=ua.weeks=At,ua.isoWeek=ua.isoWeeks=Ct,ua.weeksInYear=Zr,ua.weeksInWeekYear=Xr,ua.isoWeeksInYear=Vr,ua.isoWeeksInISOWeekYear=qr,ua.date=ea,ua.day=ua.days=Wt,ua.weekday=zt,ua.isoWeekday=Vt,ua.dayOfYear=ta,ua.hour=ua.hours=ri,ua.minute=ua.minutes=ia,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=gn,ua.utc=vn,ua.local=bn,ua.parseZone=Ln,ua.hasAlignedHourOffset=_n,ua.isDST=wn,ua.isLocal=En,ua.isUtcOffset=Sn,ua.isUtc=kn,ua.isUTC=kn,ua.zoneAbbr=oa,ua.zoneName=la,ua.dates=S("dates accessor is deprecated. Use date instead.",ea),ua.months=S("months accessor is deprecated. Use month instead",ft),ua.years=S("years accessor is deprecated. Use year instead",Ze),ua.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yn),ua.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Tn);var ma=P.prototype;function fa(e,t,i,n){var r=vi(),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}
|
|
560
|
-
// ()
|
|
561
|
-
// (5)
|
|
562
|
-
// (fmt, 5)
|
|
563
|
-
// (fmt)
|
|
564
|
-
// (true)
|
|
565
|
-
// (true, 5)
|
|
566
|
-
// (true, fmt, 5)
|
|
567
|
-
// (true, fmt)
|
|
568
|
-
function ga(e,t,i,n){"boolean"==typeof e?(c(t)&&(i=t,t=void 0),t=t||""):(i=t=e,e=!1,c(t)&&(i=t,t=void 0),t=t||"");var r,a=vi(),s=e?a._week.dow:0,o=[];if(null!=i)return fa(t,(i+s)%7,n,"day");for(r=0;r<7;r++)o[r]=fa(t,(r+s)%7,n,"day");return o}function ya(e,t){return pa(e,t,"months")}function va(e,t){return pa(e,t,"monthsShort")}function ba(e,t,i){return ga(e,t,i,"weekdays")}function La(e,t,i){return ga(e,t,i,"weekdaysShort")}function _a(e,t,i){return ga(e,t,i,"weekdaysMin")}ma.calendar=O,ma.longDateFormat=V,ma.invalidDate=Z,ma.ordinal=J,ma.preparse=ha,ma.postformat=ha,ma.relativeTime=ee,ma.pastFuture=te,ma.set=C,ma.eras=Ar,ma.erasParse=Cr,ma.erasConvertYear=Hr,ma.erasAbbrRegex=Ur,ma.erasNameRegex=Nr,ma.erasNarrowRegex=Br,ma.months=ut,ma.monthsShort=ct,ma.monthsParse=ht,ma.monthsRegex=yt,ma.monthsShortRegex=gt,ma.week=St,ma.firstDayOfYear=Dt,ma.firstDayOfWeek=Mt,ma.weekdays=It,ma.weekdaysMin=Gt,ma.weekdaysShort=jt,ma.weekdaysParse=$t,ma.weekdaysRegex=qt,ma.weekdaysShortRegex=Zt,ma.weekdaysMinRegex=Xt,ma.isPM=ii,ma.meridiem=ai,pi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
569
|
-
// Side effect imports
|
|
570
|
-
n.lang=S("moment.lang is deprecated. Use moment.locale instead.",pi),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",vi);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()}
|
|
571
|
-
// supports only 2.0-style add(1, 's') or add(duration)
|
|
572
|
-
function Sa(e,t){return Ea(this,e,t,1)}
|
|
573
|
-
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
574
|
-
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,s=this._days,o=this._months,l=this._data;
|
|
575
|
-
// if we have a mix of positive and negative values, bubble down first
|
|
576
|
-
// check: https://github.com/moment/moment/issues/2166
|
|
577
|
-
return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ma(Ca(o)+s),s=0,o=0),
|
|
578
|
-
// The following code bubbles up values, see the tests for
|
|
579
|
-
// examples of what that means.
|
|
580
|
-
l.milliseconds=a%1e3,e=He(a/1e3),l.seconds=e%60,t=He(e/60),l.minutes=t%60,i=He(t/60),l.hours=i%24,s+=He(i/24),o+=
|
|
581
|
-
// convert days to months
|
|
582
|
-
r=He(Aa(s)),s-=Ma(Ca(r)),
|
|
583
|
-
// 12 months -> 1 year
|
|
584
|
-
n=He(o/12),o%=12,l.days=s,l.months=o,l.years=n,this}function Aa(e){
|
|
585
|
-
// 400 years have 146097 days (taking into account leap year rules)
|
|
586
|
-
// 400 years have 12 months === 4800
|
|
587
|
-
return 4800*e/146097}function Ca(e){
|
|
588
|
-
// the reverse of daysToMonths
|
|
589
|
-
return 146097*e/4800}function Ha(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Aa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(
|
|
590
|
-
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
591
|
-
t=this._days+Math.round(Ca(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;
|
|
592
|
-
// Math.floor prevents floating point math errors here
|
|
593
|
-
case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Pa(e){return function(){return this.as(e)}}var xa=Pa("ms"),Oa=Pa("s"),Ra=Pa("m"),Na=Pa("h"),Ua=Pa("d"),Ba=Pa("w"),Ya=Pa("M"),Ia=Pa("Q"),ja=Pa("y"),Ga=xa;function Fa(){return An(this)}function $a(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var za=Wa("milliseconds"),Va=Wa("seconds"),qa=Wa("minutes"),Za=Wa("hours"),Xa=Wa("days"),Ka=Wa("months"),Ja=Wa("years");function Qa(){return He(this.days()/7)}var es=Math.round,ts={ss:44,// a few seconds to seconds
|
|
594
|
-
s:45,// seconds to minute
|
|
595
|
-
m:45,// minutes to hour
|
|
596
|
-
h:22,// hours to day
|
|
597
|
-
d:26,// days to month/week
|
|
598
|
-
w:null,// weeks to month
|
|
599
|
-
M:11};
|
|
600
|
-
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
601
|
-
function is(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function ns(e,t,i,n){var r=An(e).abs(),a=es(r.as("s")),s=es(r.as("m")),o=es(r.as("h")),l=es(r.as("d")),u=es(r.as("M")),c=es(r.as("w")),d=es(r.as("y")),h=a<=i.ss&&["s",a]||a<i.s&&["ss",a]||s<=1&&["m"]||s<i.m&&["mm",s]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(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,is.apply(null,h)}
|
|
602
|
-
// This function allows you to set the rounding function for relative time strings
|
|
603
|
-
function rs(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}
|
|
604
|
-
// This function allows you to set a threshold for relative time strings
|
|
605
|
-
function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,a=ts;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=ns(this,!r,a,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)}var os=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function us(){
|
|
606
|
-
// for ISO strings we do not use the normal bubbling rules:
|
|
607
|
-
// * milliseconds bubble up until they become hours
|
|
608
|
-
// * days do not bubble at all
|
|
609
|
-
// * months bubble up until they become years
|
|
610
|
-
// This is because there is no context-free conversion between hours and days
|
|
611
|
-
// (think of clock changes)
|
|
612
|
-
// and also not between days and months (28-31 days per month)
|
|
613
|
-
if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,a,s,o,l=os(this._milliseconds)/1e3,u=os(this._days),c=os(this._months),d=this.asSeconds();return d?(
|
|
614
|
-
// 3600 seconds -> 60 minutes -> 1 hour
|
|
615
|
-
e=He(l/60),t=He(e/60),l%=60,e%=60,
|
|
616
|
-
// 12 months -> 1 year
|
|
617
|
-
i=He(c/12),c%=12,
|
|
618
|
-
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
619
|
-
n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",a=ls(this._months)!==ls(d)?"-":"",s=ls(this._days)!==ls(d)?"-":"",o=ls(this._milliseconds)!==ls(d)?"-":"",r+"P"+(i?a+i+"Y":"")+(c?a+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+n+"S":"")):"P0D"}var cs=on.prototype;return cs.isValid=an,cs.abs=Ta,cs.add=Sa,cs.subtract=ka,cs.as=Ha,cs.asMilliseconds=xa,cs.asSeconds=Oa,cs.asMinutes=Ra,cs.asHours=Na,cs.asDays=Ua,cs.asWeeks=Ba,cs.asMonths=Ya,cs.asQuarters=Ia,cs.asYears=ja,cs.valueOf=Ga,cs._bubble=Da,cs.clone=Fa,cs.get=$a,cs.milliseconds=za,cs.seconds=Va,cs.minutes=qa,cs.hours=Za,cs.days=Xa,cs.weeks=Qa,cs.months=Ka,cs.years=Ja,cs.humanize=ss,cs.toISOString=us,cs.toString=us,cs.toJSON=us,cs.locale=or,cs.localeData=ur,cs.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),cs.lang=lr,
|
|
620
|
-
// FORMATTING
|
|
621
|
-
I("X",0,0,"unix"),I("x",0,0,"valueOf"),
|
|
622
|
-
// PARSING
|
|
623
|
-
Me("x",Le),Me("X",Te),Oe("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),Oe("x",(function(e,t,i){i._d=new Date(Pe(e))})),
|
|
624
|
-
//! moment.js
|
|
625
|
-
n.version="2.30.1",r(Zi),n.fn=ua,n.min=Qi,n.max=en,n.now=tn,n.utc=f,n.unix=ca,n.months=ya,n.isDate=d,n.locale=pi,n.invalid=v,n.duration=An,n.isMoment=T,n.weekdays=ba,n.parseZone=da,n.localeData=vi,n.isDuration=ln,n.monthsShort=va,n.weekdaysMin=_a,n.defineLocale=gi,n.updateLocale=yi,n.locales=bi,n.weekdaysShort=La,n.normalizeUnits=ne,n.relativeTimeRounding=rs,n.relativeTimeThreshold=as,n.calendarFormat=Gn,n.prototype=ua,
|
|
626
|
-
// currently HTML5 input type only supports 24-hour formats
|
|
627
|
-
n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
628
|
-
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
629
|
-
DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",// <input type="datetime-local" step="0.001" />
|
|
630
|
-
DATE:"YYYY-MM-DD",// <input type="date" />
|
|
631
|
-
TIME:"HH:mm",// <input type="time" />
|
|
632
|
-
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
|
633
|
-
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
634
|
-
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
635
|
-
MONTH:"YYYY-MM"},n}()}));const W=[];
|
|
636
|
-
/**
|
|
637
|
-
* Creates a `Readable` store that allows reading by subscription.
|
|
638
|
-
* @param value initial value
|
|
639
|
-
* @param {StartStopNotifier} [start]
|
|
640
|
-
*/
|
|
641
|
-
/**
|
|
642
|
-
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
643
|
-
* @param {*=}value initial value
|
|
644
|
-
* @param {StartStopNotifier=} start
|
|
645
|
-
*/
|
|
646
|
-
function z(t,i=e){let n;const r=new Set;function s(e){if(a(t,e)&&(t=e,n)){// store is ready
|
|
647
|
-
const e=!W.length;for(const e of r)e[1](),W.push(e,t);if(e){for(let e=0;e<W.length;e+=2)W[e][0](W[e+1]);W.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(a,o=e){const l=[a,o];return r.add(l),1===r.size&&(n=i(s)||e),a(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function V(t,i,a){const o=!Array.isArray(t),l=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=l.map(((e,t)=>s(e,(e=>{c[t]=e,d&=~(1<<t),a&&m()}),(()=>{d|=1<<t}))));return a=!0,m(),function(){n(f),h(),
|
|
648
|
-
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
649
|
-
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
650
|
-
// invoke this derived store.
|
|
651
|
-
a=!1}},{subscribe:z(a,c).subscribe};var c}var q=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Z}(e)}
|
|
652
|
-
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
653
|
-
(e)};var Z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function X(e,t){return!1!==t.clone&&t.isMergeableObject(e)?te((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function K(e,t,i){return e.concat(t).map((function(e){return X(e,i)}))}function J(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Q(e,t){try{return t in e}catch(e){return!1}}
|
|
654
|
-
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
655
|
-
function ee(e,t,i){var n={};return i.isMergeableObject(e)&&J(e).forEach((function(t){n[t]=X(e[t],i)})),J(t).forEach((function(r){(function(e,t){return Q(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
656
|
-
})(e,r)||(Q(e,r)&&i.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return te;var i=t.customMerge(e);return"function"==typeof i?i:te}(r,i)(e[r],t[r],i):n[r]=X(t[r],i))})),n}function te(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||K,i.isMergeableObject=i.isMergeableObject||q,
|
|
657
|
-
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
658
|
-
// implementations can use it. The caller may not replace it.
|
|
659
|
-
i.cloneUnlessOtherwiseSpecified=X;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):ee(e,t,i):X(t,i)}te.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return te(e,i,t)}),{})};var ie=te,ne=function(e,t){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},ne(e,t)};function re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var ae,se,oe,le=function(){return le=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},le.apply(this,arguments)};function ue(e,t,i){if(i||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}
|
|
660
|
-
/**
|
|
661
|
-
* Type Guards
|
|
662
|
-
*/
|
|
663
|
-
function ce(e){return e.type===se.literal}function de(e){return e.type===se.argument}function he(e){return e.type===se.number}function me(e){return e.type===se.date}function fe(e){return e.type===se.time}function pe(e){return e.type===se.select}function ge(e){return e.type===se.plural}function ye(e){return e.type===se.pound}function ve(e){return e.type===se.tag}function be(e){return!(!e||"object"!=typeof e||e.type!==oe.number)}function Le(e){return!(!e||"object"!=typeof e||e.type!==oe.dateTime)}
|
|
664
|
-
// @generated from regex-gen.ts
|
|
665
|
-
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
666
|
-
/** Argument is unclosed (e.g. `{0`) */
|
|
667
|
-
e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
|
|
668
|
-
/** Argument is empty (e.g. `{}`). */
|
|
669
|
-
e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
|
|
670
|
-
/** Argument is malformed (e.g. `{foo!}``) */
|
|
671
|
-
e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
|
|
672
|
-
/** Expect an argument type (e.g. `{foo,}`) */
|
|
673
|
-
e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
|
|
674
|
-
/** Unsupported argument type (e.g. `{foo,foo}`) */
|
|
675
|
-
e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
|
|
676
|
-
/** Expect an argument style (e.g. `{foo, number, }`) */
|
|
677
|
-
e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
|
|
678
|
-
/** The number skeleton is invalid. */
|
|
679
|
-
e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
|
|
680
|
-
/** The date time skeleton is invalid. */
|
|
681
|
-
e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
|
|
682
|
-
/** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */
|
|
683
|
-
e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
|
|
684
|
-
/** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */
|
|
685
|
-
e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
|
|
686
|
-
/** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */
|
|
687
|
-
e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
|
|
688
|
-
/** Missing select argument options (e.g. `{foo, select}`) */
|
|
689
|
-
e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
|
|
690
|
-
/** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */
|
|
691
|
-
e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
|
|
692
|
-
/** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */
|
|
693
|
-
e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
|
|
694
|
-
/** Expecting a selector in `select` argument (e.g `{foo, select}`) */
|
|
695
|
-
e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
|
|
696
|
-
/** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */
|
|
697
|
-
e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
|
|
698
|
-
/** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
|
|
699
|
-
e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
|
|
700
|
-
/**
|
|
701
|
-
* Expecting a message fragment after the `plural` or `selectordinal` selector
|
|
702
|
-
* (e.g. `{foo, plural, one}`)
|
|
703
|
-
*/
|
|
704
|
-
e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
|
|
705
|
-
/** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
|
|
706
|
-
e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
|
|
707
|
-
/**
|
|
708
|
-
* Duplicate selectors in `plural` or `selectordinal` argument.
|
|
709
|
-
* (e.g. {foo, plural, one {#} one {#}})
|
|
710
|
-
*/
|
|
711
|
-
e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
|
|
712
|
-
/** Duplicate selectors in `select` argument.
|
|
713
|
-
* (e.g. {foo, select, apple {apple} apple {apple}})
|
|
714
|
-
*/
|
|
715
|
-
e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
|
|
716
|
-
/** Plural or select argument option must have `other` clause. */
|
|
717
|
-
e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
|
|
718
|
-
/** The tag is malformed. (e.g. `<bold!>foo</bold!>) */
|
|
719
|
-
e[e.INVALID_TAG=23]="INVALID_TAG",
|
|
720
|
-
/** The tag name is invalid. (e.g. `<123>foo</123>`) */
|
|
721
|
-
e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
722
|
-
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
|
723
|
-
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
724
|
-
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
725
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ae||(ae={})),function(e){
|
|
726
|
-
/**
|
|
727
|
-
* Raw text
|
|
728
|
-
*/
|
|
729
|
-
e[e.literal=0]="literal",
|
|
730
|
-
/**
|
|
731
|
-
* Variable w/o any format, e.g `var` in `this is a {var}`
|
|
732
|
-
*/
|
|
733
|
-
e[e.argument=1]="argument",
|
|
734
|
-
/**
|
|
735
|
-
* Variable w/ number format
|
|
736
|
-
*/
|
|
737
|
-
e[e.number=2]="number",
|
|
738
|
-
/**
|
|
739
|
-
* Variable w/ date format
|
|
740
|
-
*/
|
|
741
|
-
e[e.date=3]="date",
|
|
742
|
-
/**
|
|
743
|
-
* Variable w/ time format
|
|
744
|
-
*/
|
|
745
|
-
e[e.time=4]="time",
|
|
746
|
-
/**
|
|
747
|
-
* Variable w/ select format
|
|
748
|
-
*/
|
|
749
|
-
e[e.select=5]="select",
|
|
750
|
-
/**
|
|
751
|
-
* Variable w/ plural format
|
|
752
|
-
*/
|
|
753
|
-
e[e.plural=6]="plural",
|
|
754
|
-
/**
|
|
755
|
-
* Only possible within plural argument.
|
|
756
|
-
* This is the `#` symbol that will be substituted with the count.
|
|
757
|
-
*/
|
|
758
|
-
e[e.pound=7]="pound",
|
|
759
|
-
/**
|
|
760
|
-
* XML-like tag
|
|
761
|
-
*/
|
|
762
|
-
e[e.tag=8]="tag"}(se||(se={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(oe||(oe={}));var _e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,we=/(?:[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;
|
|
763
|
-
/**
|
|
764
|
-
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
765
|
-
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
766
|
-
* with some tweaks
|
|
767
|
-
*/
|
|
768
|
-
/**
|
|
769
|
-
* Parse Date time skeleton into Intl.DateTimeFormatOptions
|
|
770
|
-
* Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
771
|
-
* @public
|
|
772
|
-
* @param skeleton skeleton string
|
|
773
|
-
*/
|
|
774
|
-
function Te(e){var t={};return e.replace(we,(function(e){var i=e.length;switch(e[0]){
|
|
775
|
-
// Era
|
|
776
|
-
case"G":t.era=4===i?"long":5===i?"narrow":"short";break;
|
|
777
|
-
// Year
|
|
778
|
-
case"y":t.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
779
|
-
// Quarter
|
|
780
|
-
case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
781
|
-
// Month
|
|
782
|
-
case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;
|
|
783
|
-
// Week
|
|
784
|
-
case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
785
|
-
// Weekday
|
|
786
|
-
case"E":t.weekday=4===i?"short":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;
|
|
787
|
-
// Period
|
|
788
|
-
case"a":// AM, PM
|
|
789
|
-
t.hour12=!0;break;case"b":// am, pm, noon, midnight
|
|
790
|
-
case"B":// flexible day periods
|
|
791
|
-
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
792
|
-
// Hour
|
|
793
|
-
case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
794
|
-
// Minute
|
|
795
|
-
case"m":t.minute=["numeric","2-digit"][i-1];break;
|
|
796
|
-
// Second
|
|
797
|
-
case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
798
|
-
// Zone
|
|
799
|
-
case"z":// 1..3, 4: specific non-location format
|
|
800
|
-
t.timeZoneName=i<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
|
|
801
|
-
case"O":// 1, 4: miliseconds in day short, long
|
|
802
|
-
case"v":// 1, 4: generic non-location format
|
|
803
|
-
case"V":// 1, 2, 3, 4: time zone ID or city
|
|
804
|
-
case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
805
|
-
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
806
|
-
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
807
|
-
// @generated from regex-gen.ts
|
|
808
|
-
var Ee=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Se=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ke=/^(@+)?(\+|#+)?[rs]?$/g,Me=/(\*)(0+)|(#+)(0+)|(0+)/g,De=/^(0+)$/;function Ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ke,(function(e,i,n){
|
|
809
|
-
// @@@ case
|
|
810
|
-
return"string"!=typeof n?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===n?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""})),t}function Ce(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function He(e){
|
|
811
|
-
// Engineering
|
|
812
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!De.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Pe(e){var t=Ce(e);return t||{}}
|
|
813
|
-
/**
|
|
814
|
-
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
815
|
-
*/function xe(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=le(le(le({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return le(le({},e),Pe(t))}),{}));continue;case"engineering":t=le(le(le({},t),{notation:"engineering"}),r.options.reduce((function(e,t){return le(le({},e),Pe(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
816
|
-
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
817
|
-
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;
|
|
818
|
-
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
819
|
-
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Me,(function(e,i,n,r,a,s){if(i)t.minimumIntegerDigits=n.length;else{if(r&&a)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
820
|
-
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
821
|
-
if(De.test(r.stem))t.minimumIntegerDigits=r.stem.length;else if(Se.test(r.stem)){
|
|
822
|
-
// Precision
|
|
823
|
-
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
824
|
-
// precision-integer case
|
|
825
|
-
if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Se,(function(e,i,n,r,a,s){
|
|
826
|
-
// .000* case (before ICU67 it was .000+)
|
|
827
|
-
return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var a=r.options[0];
|
|
828
|
-
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
829
|
-
"w"===a?t=le(le({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=le(le({},t),Ae(a)))}
|
|
830
|
-
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
831
|
-
else if(ke.test(r.stem))t=le(le({},t),Ae(r.stem));else{var s=Ce(r.stem);s&&(t=le(le({},t),s));var o=He(r.stem);o&&(t=le(le({},t),o))}}return t}
|
|
832
|
-
// @generated from time-data-gen.ts
|
|
833
|
-
// prettier-ignore
|
|
834
|
-
var Oe,Re={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"]};
|
|
835
|
-
/**
|
|
836
|
-
* Returns the best matching date time pattern if a date time skeleton
|
|
837
|
-
* pattern is provided with a locale. Follows the Unicode specification:
|
|
838
|
-
* https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns
|
|
839
|
-
* @param skeleton date time skeleton pattern that possibly includes j, J or C
|
|
840
|
-
* @param locale
|
|
841
|
-
*/
|
|
842
|
-
/**
|
|
843
|
-
* Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)
|
|
844
|
-
* of the given `locale` to the corresponding time pattern.
|
|
845
|
-
* @param locale
|
|
846
|
-
*/
|
|
847
|
-
function Ne(e){var t=e.hourCycle;if(void 0===t&&
|
|
848
|
-
// @ts-ignore hourCycle(s) is not identified yet
|
|
849
|
-
e.hourCycles&&
|
|
850
|
-
// @ts-ignore
|
|
851
|
-
e.hourCycles.length&&(
|
|
852
|
-
// @ts-ignore
|
|
853
|
-
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
854
|
-
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
855
|
-
var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(Re[i||""]||Re[n||""]||Re["".concat(n,"-001")]||Re["001"])[0]}var Ue=new RegExp("^".concat(_e.source,"*")),Be=new RegExp("".concat(_e.source,"*$"));function Ye(e,t){return{start:e,end:t}}
|
|
856
|
-
// #region Ponyfills
|
|
857
|
-
// Consolidate these variables up top for easier toggling during debugging
|
|
858
|
-
var Ie=!!String.prototype.startsWith,je=!!String.fromCodePoint,Ge=!!Object.fromEntries,Fe=!!String.prototype.codePointAt,$e=!!String.prototype.trimStart,We=!!String.prototype.trimEnd,ze=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ve=!0;try{
|
|
859
|
-
/**
|
|
860
|
-
* legacy Edge or Xbox One browser
|
|
861
|
-
* Unicode flag support: supported
|
|
862
|
-
* Pattern_Syntax support: not supported
|
|
863
|
-
* See https://github.com/formatjs/formatjs/issues/2822
|
|
864
|
-
*/
|
|
865
|
-
Ve="a"===(null===(Oe=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Oe?void 0:Oe[0])}catch(e){Ve=!1}var qe,Ze=Ie?// Native
|
|
866
|
-
function(e,t,i){return e.startsWith(t,i)}:// For IE11
|
|
867
|
-
function(e,t,i){return e.slice(i,i+t.length)===t},Xe=je?String.fromCodePoint:// IE11
|
|
868
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,a=0;r>a;){if((i=e[a++])>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},Ke=
|
|
869
|
-
// native
|
|
870
|
-
Ge?Object.fromEntries:// Ponyfill
|
|
871
|
-
function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],a=r[0],s=r[1];t[a]=s}return t},Je=Fe?// Native
|
|
872
|
-
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
873
|
-
function(e,t){var i=e.length;if(!(t<0||t>=i)){var n,r=e.charCodeAt(t);return r<55296||r>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536}},Qe=$e?// Native
|
|
874
|
-
function(e){return e.trimStart()}:// Ponyfill
|
|
875
|
-
function(e){return e.replace(Ue,"")},et=We?// Native
|
|
876
|
-
function(e){return e.trimEnd()}:// Ponyfill
|
|
877
|
-
function(e){return e.replace(Be,"")};
|
|
878
|
-
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
879
|
-
function tt(e,t){return new RegExp(e,t)}
|
|
880
|
-
// #endregion
|
|
881
|
-
if(Ve){
|
|
882
|
-
// Native
|
|
883
|
-
var it=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=function(e,t){var i;return it.lastIndex=t,null!==(i=it.exec(e)[1])&&void 0!==i?i:""}}else
|
|
884
|
-
// IE11
|
|
885
|
-
qe=function(e,t){for(var i=[];;){var n=Je(e,t);if(void 0===n||at(n)||st(n))break;i.push(n),t+=n>=65536?2:1}return Xe.apply(void 0,i)};var nt=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r=this.char();if(123/* `{` */===r){if((a=this.parseArgument(e,i)).err)return a;n.push(a.val)}else{if(125/* `}` */===r&&e>0)break;if(35/* `#` */!==r||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===r&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(ae.UNMATCHED_CLOSING_TAG,Ye(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===r&&!this.ignoreTag&&rt(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;n.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;n.push(a.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:se.pound,location:Ye(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
886
|
-
/**
|
|
887
|
-
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
888
|
-
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
889
|
-
* are accepted:
|
|
890
|
-
*
|
|
891
|
-
* ```
|
|
892
|
-
* tag ::= "<" tagName (whitespace)* "/>" | "<" tagName (whitespace)* ">" message "</" tagName (whitespace)* ">"
|
|
893
|
-
* tagName ::= [a-z] (PENChar)*
|
|
894
|
-
* PENChar ::=
|
|
895
|
-
* "-" | "." | [0-9] | "_" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |
|
|
896
|
-
* [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
|
|
897
|
-
* [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
|
|
898
|
-
* ```
|
|
899
|
-
*
|
|
900
|
-
* [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
|
|
901
|
-
* NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
|
|
902
|
-
* since other tag-based engines like React allow it
|
|
903
|
-
*/
|
|
904
|
-
e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();// `<`
|
|
905
|
-
var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
906
|
-
// Self closing tag
|
|
907
|
-
return{val:{type:se.literal,value:"<".concat(n,"/>"),location:Ye(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var a=r.val,s=this.clonePosition();
|
|
908
|
-
// Expecting a close tag
|
|
909
|
-
if(this.bumpIf("</")){if(this.isEOF()||!rt(this.char()))return this.error(ae.INVALID_TAG,Ye(s,this.clonePosition()));var o=this.clonePosition();return n!==this.parseTagName()?this.error(ae.UNMATCHED_CLOSING_TAG,Ye(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:n,children:a,location:Ye(i,this.clonePosition())},err:null}:this.error(ae.INVALID_TAG,Ye(s,this.clonePosition())))}return this.error(ae.UNCLOSED_TAG,Ye(i,this.clonePosition()))}return this.error(ae.INVALID_TAG,Ye(i,this.clonePosition()))},
|
|
910
|
-
/**
|
|
911
|
-
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
912
|
-
*/
|
|
913
|
-
e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
|
|
914
|
-
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var a=this.tryParseUnquoted(e,t);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var o=Ye(i,this.clonePosition());return{val:{type:se.literal,value:n,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(rt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
915
|
-
/** See `parseTag` function docs. */},
|
|
916
|
-
/**
|
|
917
|
-
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
918
|
-
* a character that requires quoting (that is, "only where needed"), and works the same in
|
|
919
|
-
* nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
|
|
920
|
-
*/
|
|
921
|
-
e.prototype.tryParseQuote=function(e){if(this.isEOF()||39/* `'` */!==this.char())return null;
|
|
922
|
-
// Parse escaped char following the apostrophe, or early return if there is no escaped char.
|
|
923
|
-
// Check if is valid escaped character
|
|
924
|
-
switch(this.peek()){case 39/* `'` */:
|
|
925
|
-
// double quote, should return as a single quote.
|
|
926
|
-
return this.bump(),this.bump(),"'";
|
|
927
|
-
// '{', '<', '>', '}'
|
|
928
|
-
case 123:case 60:case 62:case 125:break;case 35:// '#'
|
|
929
|
-
if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();// apostrophe
|
|
930
|
-
var t=[this.char()];// escaped char
|
|
931
|
-
// read chars until the optional closing apostrophe is found
|
|
932
|
-
for(this.bump();!this.isEOF();){var i=this.char();if(39/* `'` */===i){if(39/* `'` */!==this.peek()){
|
|
933
|
-
// Optional closing apostrophe.
|
|
934
|
-
this.bump();break}t.push(39),
|
|
935
|
-
// Bump one more time because we need to skip 2 characters.
|
|
936
|
-
this.bump()}else t.push(i);this.bump()}return Xe.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(),Xe(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),// `{`
|
|
937
|
-
this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(i,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(ae.EMPTY_ARGUMENT,Ye(i,this.clonePosition()));
|
|
938
|
-
// argument name
|
|
939
|
-
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ae.MALFORMED_ARGUMENT,Ye(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(i,this.clonePosition()));switch(this.char()){
|
|
940
|
-
// Simple argument: `{name}`
|
|
941
|
-
case 125/* `}` */:// `}`
|
|
942
|
-
return this.bump(),{val:{type:se.argument,
|
|
943
|
-
// value does not include the opening and closing braces.
|
|
944
|
-
value:n,location:Ye(i,this.clonePosition())},err:null};
|
|
945
|
-
// Argument with options: `{name, format, ...}`
|
|
946
|
-
case 44/* `,` */:return this.bump(),// `,`
|
|
947
|
-
this.bumpSpace(),this.isEOF()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(ae.MALFORMED_ARGUMENT,Ye(i,this.clonePosition()))}},
|
|
948
|
-
/**
|
|
949
|
-
* Advance the parser until the end of the identifier, if it is currently on
|
|
950
|
-
* an identifier character. Return an empty string otherwise.
|
|
951
|
-
*/
|
|
952
|
-
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:Ye(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,n){var r,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();
|
|
953
|
-
// Parse this range:
|
|
954
|
-
// {name, type, style}
|
|
955
|
-
// ^---^
|
|
956
|
-
switch(s){case"":
|
|
957
|
-
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
958
|
-
return this.error(ae.EXPECT_ARGUMENT_TYPE,Ye(a,o));case"number":case"date":case"time":
|
|
959
|
-
// Parse this range:
|
|
960
|
-
// {name, number, style}
|
|
961
|
-
// ^-------^
|
|
962
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=et(y.val)).length)return this.error(ae.EXPECT_ARGUMENT_STYLE,Ye(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Ye(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var c=Ye(n,this.clonePosition());
|
|
963
|
-
// Extract style or skeleton
|
|
964
|
-
if(l&&Ze(null==l?void 0:l.style,"::",0)){
|
|
965
|
-
// Skeleton starts with `::`.
|
|
966
|
-
var d=Qe(l.style.slice(2));if("number"===s)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(ae.EXPECT_DATE_TIME_SKELETON,c);var h=d;
|
|
967
|
-
// Get "best match" pattern only if locale is passed, if not, let it
|
|
968
|
-
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
969
|
-
// for unsupported patterns.
|
|
970
|
-
this.locale&&(h=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var a=0;n+1<e.length&&e.charAt(n+1)===r;)a++,n++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=Ne(t);for("H"!=l&&"k"!=l||(o=0);o-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(d,this.locale));var m={type:oe.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Te(h):{}};return{val:{type:"date"===s?se.date:se.time,value:i,location:c,style:m},err:null}}
|
|
971
|
-
// Regular style or no style.
|
|
972
|
-
return{val:{type:"number"===s?se.number:"date"===s?se.date:se.time,value:i,location:c,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":
|
|
973
|
-
// Parse this range:
|
|
974
|
-
// {name, plural, options}
|
|
975
|
-
// ^---------^
|
|
976
|
-
var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ae.EXPECT_SELECT_ARGUMENT_OPTIONS,Ye(f,le({},f)));this.bumpSpace();
|
|
977
|
-
// Parse offset:
|
|
978
|
-
// {name, plural, offset:1, options}
|
|
979
|
-
// ^-----^
|
|
980
|
-
// or the first option:
|
|
981
|
-
// {name, plural, one {...} other {...}}
|
|
982
|
-
// ^--^
|
|
983
|
-
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ye(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
984
|
-
// Parse another identifier for option parsing
|
|
985
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,s,t,p);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var L=Ye(n,this.clonePosition());return"select"===s?{val:{type:se.select,value:i,options:Ke(b.val),location:L},err:null}:{val:{type:se.plural,value:i,options:Ke(b.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:L},err:null};default:return this.error(ae.INVALID_ARGUMENT_TYPE,Ye(a,o))}},e.prototype.tryParseArgumentClose=function(e){
|
|
986
|
-
// Parse: {value, number, ::currency/GBP }
|
|
987
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
988
|
-
/**
|
|
989
|
-
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
990
|
-
*/
|
|
991
|
-
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
992
|
-
// Treat apostrophe as quoting but include it in the style part.
|
|
993
|
-
// Find the end of the quoted literal text.
|
|
994
|
-
this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ae.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ye(i,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
995
|
-
// Parse the skeleton
|
|
996
|
-
for(var t=[],i=0,n=e.split(Ee).filter((function(e){return e.length>0}));i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var a=r[0],s=r.slice(1),o=0,l=s;o<l.length;o++)if(0===l[o].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:s})}return t}(e)}catch(e){return this.error(ae.INVALID_NUMBER_SKELETON,t)}return{val:{type:oe.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?xe(i):{}},err:null}},
|
|
997
|
-
/**
|
|
998
|
-
* @param nesting_level The current nesting level of messages.
|
|
999
|
-
* This can be positive when parsing message fragment in select or plural argument options.
|
|
1000
|
-
* @param parent_arg_type The parent argument's type.
|
|
1001
|
-
* @param parsed_first_identifier If provided, this is the first identifier-like selector of
|
|
1002
|
-
* the argument. It is a by-product of a previous parsing attempt.
|
|
1003
|
-
* @param expecting_close_tag If true, this message is directly or indirectly nested inside
|
|
1004
|
-
* between a pair of opening and closing tags. The nested message will not parse beyond
|
|
1005
|
-
* the closing tag boundary.
|
|
1006
|
-
*/
|
|
1007
|
-
e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){
|
|
1008
|
-
// Parse:
|
|
1009
|
-
// one {one apple}
|
|
1010
|
-
// ^--^
|
|
1011
|
-
for(var r,a=!1,s=[],o=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
1012
|
-
// Try parse `={number}` selector
|
|
1013
|
-
var d=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,ae.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=Ye(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
|
1014
|
-
// Duplicate selector clauses
|
|
1015
|
-
if(o.has(l))return this.error("select"===t?ae.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ae.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),
|
|
1016
|
-
// Parse:
|
|
1017
|
-
// one {one apple}
|
|
1018
|
-
// ^----------^
|
|
1019
|
-
this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ye(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,i);if(m.err)return m;var f=this.tryParseArgumentClose(h);if(f.err)return f;s.push([l,{value:m.val,location:Ye(h,this.clonePosition())}]),
|
|
1020
|
-
// Keep track of the existing selectors
|
|
1021
|
-
o.add(l),
|
|
1022
|
-
// Prep next selector clause.
|
|
1023
|
-
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===s.length?this.error("select"===t?ae.EXPECT_SELECT_ARGUMENT_SELECTOR:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ye(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ae.MISSING_OTHER_CLAUSE,Ye(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;r=!0,a=10*a+(s-48),this.bump()}var o=Ye(n,this.clonePosition());return r?ze(a*=i)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
1024
|
-
// This is much faster than `Object.assign` or spread.
|
|
1025
|
-
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
1026
|
-
/**
|
|
1027
|
-
* Return the code point at the current position of the parser.
|
|
1028
|
-
* Throws if the index is out of bound.
|
|
1029
|
-
*/
|
|
1030
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Je(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
1031
|
-
/** Bump the parser to the next UTF-16 code unit. */
|
|
1032
|
-
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
1033
|
-
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
1034
|
-
this.position.offset+=e<65536?1:2)}},
|
|
1035
|
-
/**
|
|
1036
|
-
* If the substring starting at the current position of the parser has
|
|
1037
|
-
* the given prefix, then bump the parser to the character immediately
|
|
1038
|
-
* following the prefix and return true. Otherwise, don't bump the parser
|
|
1039
|
-
* and return false.
|
|
1040
|
-
*/
|
|
1041
|
-
e.prototype.bumpIf=function(e){if(Ze(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
|
1042
|
-
/**
|
|
1043
|
-
* Bump the parser until the pattern character is found and return `true`.
|
|
1044
|
-
* Otherwise bump to the end of the file and return `false`.
|
|
1045
|
-
*/
|
|
1046
|
-
e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},
|
|
1047
|
-
/**
|
|
1048
|
-
* Bump the parser to the target offset.
|
|
1049
|
-
* If target offset is beyond the end of the input, bump the parser to the end of the input.
|
|
1050
|
-
*/
|
|
1051
|
-
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}},
|
|
1052
|
-
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
1053
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&at(this.char());)this.bump()},
|
|
1054
|
-
/**
|
|
1055
|
-
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
1056
|
-
* If the input has been exhausted, then this returns null.
|
|
1057
|
-
*/
|
|
1058
|
-
e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return null!=i?i:null},e}();
|
|
1059
|
-
/**
|
|
1060
|
-
* This check if codepoint is alphabet (lower & uppercase)
|
|
1061
|
-
* @param codepoint
|
|
1062
|
-
* @returns
|
|
1063
|
-
*/function rt(e){return e>=97&&e<=122||e>=65&&e<=90}
|
|
1064
|
-
/**
|
|
1065
|
-
* Code point equivalent of regex `\p{White_Space}`.
|
|
1066
|
-
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1067
|
-
*/
|
|
1068
|
-
function at(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
|
1069
|
-
/**
|
|
1070
|
-
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
1071
|
-
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
1072
|
-
*/function st(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ot(e){e.forEach((function(e){if(delete e.location,pe(e)||ge(e))for(var t in e.options)delete e.options[t].location,ot(e.options[t].value);else he(e)&&be(e.style)||(me(e)||fe(e))&&Le(e.style)?delete e.style.location:ve(e)&&ot(e.children)}))}function lt(e,t){void 0===t&&(t={}),t=le({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new nt(e,t).parse();if(i.err){var n=SyntaxError(ae[i.err.kind]);
|
|
1073
|
-
// @ts-expect-error Assign to error object
|
|
1074
|
-
throw n.location=i.err.location,
|
|
1075
|
-
// @ts-expect-error Assign to error object
|
|
1076
|
-
n.originalMessage=i.err.message,n}return(null==t?void 0:t.captureLocation)||ot(i.val),i.val}
|
|
1077
|
-
|
|
1078
|
-
// Main
|
|
1079
|
-
|
|
1080
|
-
function ut(e,t){var i=t&&t.cache?t.cache:yt,n=t&&t.serializer?t.serializer:ft;return(t&&t.strategy?t.strategy:mt)(e,{cache:i,serializer:n})}
|
|
1081
|
-
|
|
1082
|
-
// Strategy
|
|
1083
|
-
|
|
1084
|
-
function ct(e,t,i,n){var r,a=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:i(n),s=t.get(a);return void 0===s&&(s=e.call(this,n),t.set(a,s)),s}function dt(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 ht(e,t,i,n,r){return i.bind(t,e,n,r)}function mt(e,t){return ht(e,this,1===e.length?ct:dt,t.cache.create(),t.serializer)}
|
|
1085
|
-
// Serializer
|
|
1086
|
-
var ft=function(){return JSON.stringify(arguments)};
|
|
1087
|
-
|
|
1088
|
-
// Cache
|
|
1089
|
-
|
|
1090
|
-
function pt(){this.cache=Object.create(null)}pt.prototype.get=function(e){return this.cache[e]},pt.prototype.set=function(e,t){this.cache[e]=t};var gt,yt={create:function(){
|
|
1091
|
-
// @ts-ignore
|
|
1092
|
-
return new pt}},vt={variadic:function(e,t){return ht(e,this,dt,t.cache.create(),t.serializer)},monadic:function(e,t){return ht(e,this,ct,t.cache.create(),t.serializer)}};!function(e){
|
|
1093
|
-
// When we have a placeholder but no value to format
|
|
1094
|
-
e.MISSING_VALUE="MISSING_VALUE",
|
|
1095
|
-
// When value supplied is invalid
|
|
1096
|
-
e.INVALID_VALUE="INVALID_VALUE",
|
|
1097
|
-
// When we need specific Intl API but it's not available
|
|
1098
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(gt||(gt={}));var bt,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 re(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),_t=/** @class */function(e){function t(t,i,n,r){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),gt.INVALID_VALUE,r)||this}return re(t,e),t}(Lt),wt=/** @class */function(e){function t(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),gt.INVALID_VALUE,n)||this}return re(t,e),t}(Lt),Tt=/** @class */function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),gt.MISSING_VALUE,i)||this}return re(t,e),t}(Lt);function Et(e){return"function"==typeof e}
|
|
1099
|
-
// TODO(skeleton): add skeleton support
|
|
1100
|
-
function St(e,t,i,n,r,a,
|
|
1101
|
-
// For debugging
|
|
1102
|
-
s){
|
|
1103
|
-
// Hot path for straight simple msg translations
|
|
1104
|
-
if(1===e.length&&ce(e[0]))return[{type:bt.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
1105
|
-
// Exit early for string parts.
|
|
1106
|
-
if(ce(c))o.push({type:bt.literal,value:c.value});else
|
|
1107
|
-
// TODO: should this part be literal type?
|
|
1108
|
-
// Replace `#` in plural rules with the actual numeric value.
|
|
1109
|
-
if(ye(c))"number"==typeof a&&o.push({type:bt.literal,value:i.getNumberFormat(t).format(a)});else{var d=c.value;
|
|
1110
|
-
// Enforce that all required values are provided by the caller.
|
|
1111
|
-
if(!r||!(d in r))throw new Tt(d,s);var h=r[d];if(de(c))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),o.push({type:"string"==typeof h?bt.literal:bt.object,value:h});else
|
|
1112
|
-
// Recursively format plural and select parts' option — which can be a
|
|
1113
|
-
// nested pattern structure. The choosing of the option to use is
|
|
1114
|
-
// abstracted-by and delegated-to the part helper object.
|
|
1115
|
-
if(me(c)){var m="string"==typeof c.style?n.date[c.style]:Le(c.style)?c.style.parsedOptions:void 0;o.push({type:bt.literal,value:i.getDateTimeFormat(t,m).format(h)})}else if(fe(c)){m="string"==typeof c.style?n.time[c.style]:Le(c.style)?c.style.parsedOptions:n.time.medium;o.push({type:bt.literal,value:i.getDateTimeFormat(t,m).format(h)})}else if(he(c)){(m="string"==typeof c.style?n.number[c.style]:be(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(h*=m.scale||1),o.push({type:bt.literal,value:i.getNumberFormat(t,m).format(h)})}else{if(ve(c)){var f=c.children,p=c.value,g=r[p];if(!Et(g))throw new wt(p,"function",s);var y=g(St(f,t,i,n,r,a).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),o.push.apply(o,y.map((function(e){return{type:"string"==typeof e?bt.literal:bt.object,value:e}})))}if(pe(c)){if(!(v=c.options[h]||c.options.other))throw new _t(c.value,h,Object.keys(c.options),s);o.push.apply(o,St(v.value,t,i,n,r))}else if(ge(c)){var v;if(!(v=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',gt.MISSING_INTL_API,s);var b=i.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));v=c.options[b]||c.options.other}if(!v)throw new _t(c.value,h,Object.keys(c.options),s);o.push.apply(o,St(v.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===bt.literal&&t.type===bt.literal?i.value+=t.value:e.push(t),e}),[])}(o)}
|
|
1116
|
-
/*
|
|
1117
|
-
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
1118
|
-
Copyrights licensed under the New BSD License.
|
|
1119
|
-
See the accompanying LICENSE file for terms.
|
|
1120
|
-
*/
|
|
1121
|
-
// -- MessageFormat --------------------------------------------------------
|
|
1122
|
-
function kt(e,t){return t?Object.keys(e).reduce((function(i,n){var r,a;return i[n]=(r=e[n],(a=t[n])?le(le(le({},r||{}),a||{}),Object.keys(r).reduce((function(e,t){return e[t]=le(le({},r[t]),a[t]||{}),e}),{})):r),i}),le({},e)):e}function Mt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(bt||(bt={}));var Dt=/** @class */function(){function e(t,i,n,r){var a,s=this;if(void 0===i&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
1123
|
-
// Hot path for straight simple msg translations
|
|
1124
|
-
if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===bt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return St(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
|
|
1125
|
-
// Defined first because it's used to build the format pattern.
|
|
1126
|
-
this.locales=i,this.resolvedLocale=e.resolveLocale(i),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
1127
|
-
// Parse string messages into an AST.
|
|
1128
|
-
this.ast=e.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
1129
|
-
// Creates a new object with the specified `formats` merged with the default
|
|
1130
|
-
// formats.
|
|
1131
|
-
this.formats=kt(e.formats,n),this.formatters=r&&r.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ut((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,ue([void 0],t,!1)))}),{cache:Mt(a.number),strategy:vt.variadic}),getDateTimeFormat:ut((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,ue([void 0],t,!1)))}),{cache:Mt(a.dateTime),strategy:vt.variadic}),getPluralRules:ut((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,ue([void 0],t,!1)))}),{cache:Mt(a.pluralRules),strategy:vt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=lt,
|
|
1132
|
-
// Default format options used as the prototype of the `formats` provided to the
|
|
1133
|
-
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
1134
|
-
// and Intl.DateTimeFormat instances.
|
|
1135
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const At={},Ct=(e,t,i)=>i?(t in At||(At[t]={}),e in At[t]||(At[t][e]=i),i):i,Ht=(e,t)=>{if(null==t)return;if(t in At&&e in At[t])return At[t][e];const i=ii(t);for(let n=0;n<i.length;n++){const r=Rt(i[n],e);if(r)return Ct(e,t,r)}};let Pt;const xt=z({});function Ot(e){return e in Pt}function Rt(e,t){if(!Ot(e))return null;const i=function(e){return Pt[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 Nt(e,...t){delete At[e],xt.update((i=>(i[e]=ie.all([i[e]||{},...t]),i)))}V([xt],(([e])=>Object.keys(e))),xt.subscribe((e=>Pt=e));const Ut={};function Bt(e){return Ut[e]}function Yt(e){return null!=e&&ii(e).some((e=>{var t;return null==(t=Bt(e))?void 0:t.size}))}function It(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=>Nt(e,...t)))}const jt={};function Gt(e){if(!Yt(e))return e in jt?jt[e]:Promise.resolve();const t=function(e){return ii(e).map((e=>{const t=Bt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return jt[e]=Promise.all(t.map((([e,t])=>It(e,t)))).then((()=>{if(Yt(e))return Gt(e);delete jt[e]})),jt[e]}const Ft={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $t(){return Ft}const Wt=z(!1);var zt=Object.defineProperty,Vt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Jt=(e,t,i)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Qt;const ei=z(null);function ti(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function ii(e,t=$t().fallbackLocale){const i=ti(e);return t?[...new Set([...i,...ti(t)])]:i}function ni(){return null!=Qt?Qt:void 0}ei.subscribe((e=>{Qt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ri=(ai=((e,t)=>{for(var i in t||(t={}))Xt.call(t,i)&&Jt(e,i,t[i]);if(Zt)for(var i of Zt(t))Kt.call(t,i)&&Jt(e,i,t[i]);return e})({},ei),Vt(ai,qt({set:e=>{if(e&&function(e){if(null==e)return;const t=ii(e);for(let e=0;e<t.length;e++){const i=t[e];if(Ot(i))return i}}(e)&&Yt(e)){const{loadingDelay:t}=$t();let i;return"undefined"!=typeof window&&null!=ni()&&t?i=window.setTimeout((()=>Wt.set(!0)),t):Wt.set(!0),Gt(e).then((()=>{ei.set(e)})).finally((()=>{clearTimeout(i),Wt.set(!1)}))}return ei.set(e)}})));var ai;const si=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var oi=Object.defineProperty,li=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,di=(e,t,i)=>t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,hi=(e,t)=>{for(var i in t||(t={}))ui.call(t,i)&&di(e,i,t[i]);if(li)for(var i of li(t))ci.call(t,i)&&di(e,i,t[i]);return e},mi=(e,t)=>{var i={};for(var n in e)ui.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&li)for(var n of li(e))t.indexOf(n)<0&&ci.call(e,n)&&(i[n]=e[n]);return i};const fi=(e,t)=>{const{formats:i}=$t();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pi=si((e=>{var t=e,{locale:i,format:n}=t,r=mi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=fi("number",n)),new Intl.NumberFormat(i,r)})),gi=si((e=>{var t=e,{locale:i,format:n}=t,r=mi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=fi("date",n):0===Object.keys(r).length&&(r=fi("date","short")),new Intl.DateTimeFormat(i,r)})),yi=si((e=>{var t=e,{locale:i,format:n}=t,r=mi(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=fi("time",n):0===Object.keys(r).length&&(r=fi("time","short")),new Intl.DateTimeFormat(i,r)})),vi=si((
|
|
1136
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1137
|
-
(e,t=ni())=>new Dt(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),bi=(e,t={})=>{var i,n,r,a;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:o,locale:l=ni(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ht(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(a=null!=(r=null==(n=(i=$t()).handleMissingMessage)?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))?r:u)?a:e;if(!o)return c;let d=c;try{d=vi(c,l).format(o)}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=ni()}=t,n=mi(t,["locale"]);return yi(hi({locale:i},n))})(t).format(e),_i=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return gi(hi({locale:i},n))})(t).format(e),wi=(e,t)=>((e={})=>{var t=e,{locale:i=ni()}=t,n=mi(t,["locale"]);return pi(hi({locale:i},n))})(t).format(e),Ti=(e,t=ni())=>Ht(e,t),Ei=V([ri,xt],(()=>bi));function Si(e,t){Nt(e,t)}V([ri],(()=>Li)),V([ri],(()=>_i)),V([ri],(()=>wi)),V([ri,xt],(()=>Ti));const ki={en:{noLimitToDisplay:"The user has not set a limit...",depositLimitHeader:"Deposit limit",lossLimitHeader:"Loss limit",wageringLimitHeader:"Wagering limit",spentAmount:"Spent amount",remainingAmount:"Remaining amount",limitPeriod:"Limit period",displayedProduct:"Product",futureLimit:"Future limit",additionalLink1:"Last deposit transaction details",additionalLink2:"Transactions in period",limitRemoved:"This limit has been removed and is valid until",limitUpdated:"This limit will be applied beginning with",changeLimitLabel:"Period",futureAmount:"Future amount",limitTypeLabel:"Limit type",fetchLimitDefError:"Failed to fetch limit definitions.",fetchLimitBalanceError:"Failed to fetch limit balance.",invalidUrl:"Failed to construct 'URL': Invalid URL",startLabel:"Start",resetLabel:"Reset",infoLabel:"Info",walletLabel:"Wallet",walletsLabel:"Wallets",addLimitTitle:"Add limit",editLimitTitle:"Edit Limit",deleteLimitTitle:"Delete limit",cancelScheduleTitle:"Cancel schedule",addLimitText:"Add monetary limit",limitWalletTypeLabel:"Wallet type"},"zh-hk":{noLimitToDisplay:"使用者尚未設定限額...",depositLimitHeader:"存款限額",lossLimitHeader:"損失限額",wageringLimitHeader:"押注限額",spentAmount:"花費金額",remainingAmount:"剩餘金額",limitPeriod:"限制期限",displayedProduct:"產品",futureLimit:"未來限額",additionalLink1:"最後存款交易詳情",additionalLink2:"期間交易",limitRemoved:"此限額已移除,有效期至",limitUpdated:"此限額將自以下日期開始生效",changeLimitLabel:"期限",futureAmount:"未來金額",limitTypeLabel:"限額類型",fetchLimitDefError:"無法獲取限額定義。",fetchLimitBalanceError:"無法獲取限額餘額。",invalidUrl:"無法構建 'URL':URL 無效",startLabel:"開始",resetLabel:"重設",infoLabel:"信息",walletLabel:"錢包",walletsLabel:"錢包",addLimitTitle:"新增限制",editLimitTitle:"編輯限制",deleteLimitTitle:"刪除限制",cancelScheduleTitle:"取消行程",addLimitText:"新增貨幣限額",limitWalletTypeLabel:"钱包类型"},de:{noLimitToDisplay:"Der Benutzer hat kein Limit festgelegt...",depositLimitHeader:"Einzahlungslimit",lossLimitHeader:"Verlustgrenze",wageringLimitHeader:"Wetteinsatzgrenze",spentAmount:"Ausgegebener Betrag",remainingAmount:"Verbleibender Betrag",limitPeriod:"Begrenzungszeitraum",displayedProduct:"Produkt",futureLimit:"Zukünftiges Limit",additionalLink1:"Details zur letzten Einzahlungstransaktion",additionalLink2:"Transaktionen im Zeitraum",limitRemoved:"Dieses Limit wurde entfernt und ist gültig bis",limitUpdated:"Dieses Limit wird ab dem folgenden Datum angewendet",changeLimitLabel:"Zeitraum",futureAmount:"Zukünftiger Betrag",limitTypeLabel:"Limit Typ",fetchLimitDefError:"Fehler beim Abrufen von Limitdefinitionen.",fetchLimitBalanceError:"Fehler beim Abrufen des Limitbetrags.",invalidUrl:"Fehler beim Erstellen der URL: Ungültige URL",startLabel:"Start",resetLabel:"Zurücksetzen",infoLabel:"Info",walletLabel:"Brieftasche",walletsLabel:"Brieftaschen",addLimitTitle:"Limit hinzufügen",editLimitTitle:"Limit bearbeiten",deleteLimitTitle:"Limit löschen",cancelScheduleTitle:"Zeitplan abbrechen",addLimitText:"Geldlimit hinzufügen",limitWalletTypeLabel:"Geldbörsentyp"},it:{noLimitToDisplay:"L'utente non ha impostato un limite...",depositLimitHeader:"Limite di deposito",lossLimitHeader:"Limite di perdita",wageringLimitHeader:"Limite di scommessa",spentAmount:"Importo speso",remainingAmount:"Importo residuo",limitPeriod:"Periodo limite",displayedProduct:"Prodotto",futureLimit:"Limite futuro",additionalLink1:"Dettagli della transazione dell'ultimo deposito",additionalLink2:"Deposito nel periodo",limitRemoved:"Questo limite è stato rimosso ed è valido fino a",limitUpdated:"Questo limite sarà applicato a partire da",changeLimitLabel:"Cambia limite",futureAmount:"Importo futuro",limitTypeLabel:"Tipo di limite",fetchLimitDefError:"Impossibile recuperare le definizioni di limite.",fetchLimitBalanceError:"Impossibile recuperare il saldo limite.",invalidUrl:"Impossibile costruire l'URL: URL non valido",startLabel:"Inizio",resetLabel:"Ripristina",infoLabel:"Info",walletLabel:"Portafoglio",walletsLabel:"Portafogli",addLimitTitle:"Aggiungi limite",editLimitTitle:"Modifica limite",deleteLimitTitle:"Elimina limite",cancelScheduleTitle:"Annulla pianificazione",addLimitText:"Aggiungi limite monetario",limitWalletTypeLabel:"Tipo di portafoglio"},fr:{noLimitToDisplay:"L'utilisateur n'a pas fixé de limite...",depositLimitHeader:"Limite de dépôt",lossLimitHeader:"Limite de perte",wageringLimitHeader:"Limite de mise",spentAmount:"Montant dépensé",remainingAmount:"Montant restant",limitPeriod:"Délai limite",displayedProduct:"Produit",futureLimit:"Limite future",additionalLink1:"Détails de la transaction du dernier dépôt",additionalLink2:"Dépôt en période",limitRemoved:"Cette limite a été supprimée et est valide jusqu'à",limitUpdated:"Cette limite sera appliquée à partir de",changeLimitLabel:"Changer de limite",futureAmount:"Montant futur",limitTypeLabel:"Type de limite",fetchLimitDefError:"Échec du téléchargement des définitions de limite.",fetchLimitBalanceError:"Échec du téléchargement du solde limite.",invalidUrl:"Échec de la construction de 'URL' : URL non valide",startLabel:"Démarrer",resetLabel:"Réinitialiser",infoLabel:"Info",walletLabel:"Portefeuille",walletsLabel:"Portefeuilles",addLimitTitle:"Ajouter une limite",editLimitTitle:"Modifier la limite",deleteLimitTitle:"Supprimer la limite",cancelScheduleTitle:"Annuler le planning",addLimitText:"Ajouter une limite monétaire",limitWalletTypeLabel:"Type de portefeuille"},es:{noLimitToDisplay:"El usuario no ha establecido un límite...",depositLimitHeader:"Límite de depósito",lossLimitHeader:"Límite de pérdida",wageringLimitHeader:"Límite de apuesta",spentAmount:"Monto gastado",remainingAmount:"Monto restante",limitPeriod:"Período de límite",displayedProduct:"Producto",futureLimit:"Límite futuro",additionalLink1:"Detalles de la última transacción de depósito",additionalLink2:"Depósito en el período",limitRemoved:"Este límite ha sido eliminado y es válido hasta",limitUpdated:"Este límite se aplicará a partir de",changeLimitLabel:"Cambiar límite",futureAmount:"Monto futuro",limitTypeLabel:"Tipo de límite",fetchLimitDefError:"Error al obtener definiciones de límite.",fetchLimitBalanceError:"Error al obtener el saldo del límite.",invalidUrl:"Error al construir 'URL': URL inválida",startLabel:"Comienzo",resetLabel:"Reiniciar",infoLabel:"Información",walletLabel:"Cartera",walletsLabel:"Carteras",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de billetera"},el:{noLimitToDisplay:"Ο χρήστης δεν έχει ορίσει όριο...",depositLimitHeader:"Όριο κατάθεσης",lossLimitHeader:"Όριο απώλειας",wageringLimitHeader:"Όριο στοίχημα",spentAmount:"Ποσό που έχει δαπανηθεί",remainingAmount:"Υπόλοιπο ποσό",limitPeriod:"Περίοδος ορίου",displayedProduct:"Προϊόν",futureLimit:"Μελλοντικό όριο",additionalLink1:"Λεπτομέρειες της τελευταίας συναλλαγής κατάθεσης",additionalLink2:"Καταθέσεις κατά την περίοδο",limitRemoved:"Αυτό το όριο έχει καταργηθεί και είναι έγκυρο μέχρι",limitUpdated:"Αυτό το όριο θα εφαρμοστεί από",changeLimitLabel:"Αλλαγή ορίου",futureAmount:"Μελλοντικό ποσό",limitTypeLabel:"Τύπος ορίου",fetchLimitDefError:"Αποτυχία λήψης ορισμών ορίου.",fetchLimitBalanceError:"Αποτυχία λήψης υπολοίπου ορίου.",invalidUrl:"Αποτυχία κατασκευής 'URL': Μη έγκυρη διεύθυνση URL",startLabel:"Έναρξη",resetLabel:"Επαναφορά",infoLabel:"Πληροφορίες",walletLabel:"Πορτοφόλι",walletsLabel:"Πορτοφόλια",addLimitTitle:"Προσθήκη ορίου",editLimitTitle:"Επεξεργασία ορίου",deleteLimitTitle:"Διαγραφή ορίου",cancelScheduleTitle:"Ακύρωση προγράμματος",addLimitText:"Προσθήκη νομισματικού ορίου",limitWalletTypeLabel:"Τύπος πορτοφολιού"},tr:{noLimitToDisplay:"Kullanıcı bir sınırlama belirlemedi...",depositLimitHeader:"Yatırım limiti",lossLimitHeader:"Kayıp limiti",wageringLimitHeader:"Bahis limiti",spentAmount:"Harcamış miktar",remainingAmount:"Kalan miktar",limitPeriod:"Limit süresi",displayedProduct:"Ürün",futureLimit:"Gelecek limit",additionalLink1:"Son yatırım işlemi detayları",additionalLink2:"Dönemdeki işlemler",limitRemoved:"Bu limit kaldırıldı ve geçerli",limitUpdated:"Bu limit aşağıdaki tarihte uygulanacaktır",changeLimitLabel:"Dönem",futureAmount:"Gelecek miktar",limitTypeLabel:"Limit türü",fetchLimitDefError:"Limit tanımları alınamadı.",fetchLimitBalanceError:"Limit bakiyesi alınamadı.",invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",startLabel:"Başlangıç",resetLabel:"Sıfırla",infoLabel:"Bilgi",walletLabel:"Cüzdan",walletsLabel:"Cüzdanlar",addLimitTitle:"Sınır ekle",editLimitTitle:"Sınırı Düzenle",deleteLimitTitle:"Sınırı sil",cancelScheduleTitle:"Programı iptal et",addLimitText:"Para limiti ekle",limitWalletTypeLabel:"Cüzdan türü"},ru:{noLimitToDisplay:"Пользователь не установил лимит...",depositLimitHeader:"Лимит депозита",lossLimitHeader:"Лимит потерь",wageringLimitHeader:"Лимит ставок",spentAmount:"Потраченная сумма",remainingAmount:"Оставшаяся сумма",limitPeriod:"Период лимита",displayedProduct:"Продукт",futureLimit:"Будущий лимит",additionalLink1:"Детали последней транзакции депозита",additionalLink2:"Транзакции за период",limitRemoved:"Этот лимит был удален и действует до",limitUpdated:"Этот лимит будет применен с",changeLimitLabel:"Изменить лимит",futureAmount:"Будущая сумма",limitTypeLabel:"Тип лимита",fetchLimitDefError:"Не удалось получить определения лимита.",fetchLimitBalanceError:"Не удалось получить баланс лимита.",invalidUrl:"Не удалось построить 'URL': Недопустимый URL",startLabel:"Начало",resetLabel:"Сброс",infoLabel:"Информация",walletLabel:"Кошелек",walletsLabel:"Кошельки",addLimitTitle:"Добавить лимит",editLimitTitle:"Изменить лимит",deleteLimitTitle:"Удалить лимит",cancelScheduleTitle:"Отменить расписание",addLimitText:"Добавить денежный лимит",limitWalletTypeLabel:"Тип кошелька"},ro:{noLimitToDisplay:"Utilizatorul nu a setat nicio limită...",depositLimitHeader:"Limită de depunere",lossLimitHeader:"Limită de pierdere",wageringLimitHeader:"Limită de pariere",spentAmount:"Suma cheltuită",remainingAmount:"Suma rămasă",limitPeriod:"Perioadă limită",displayedProduct:"Produs",futureLimit:"Limită viitoare",additionalLink1:"Detalii ultima tranzacție de depunere",additionalLink2:"Tranzacții în perioadă",limitRemoved:"Această limită a fost eliminată și este validă până la",limitUpdated:"Această limită va fi aplicată începând cu",changeLimitLabel:"Schimbă limita",futureAmount:"Suma viitoare",limitTypeLabel:"Tipul limitei",fetchLimitDefError:"Eșec la preluarea definițiilor de limită.",fetchLimitBalanceError:"Eșec la preluarea balanței limitelor.",invalidUrl:"Eșec la construirea 'URL-ului': URL invalid",startLabel:"Start",resetLabel:"Resetare",infoLabel:"Info",walletLabel:"Portofel",walletsLabel:"Portofele",addLimitTitle:"Adăugați limită",editLimitTitle:"Editați limita",deleteLimitTitle:"Ștergeți limita",cancelScheduleTitle:"Anulați programul",addLimitText:"Adăugați o limită monetară",limitWalletTypeLabel:"Tip portofel"},hr:{noLimitToDisplay:"Korisnik nije postavio limit...",depositLimitHeader:"Limit uplate",lossLimitHeader:"Limit gubitka",wageringLimitHeader:"Limit klađenja",spentAmount:"Potrošeni iznos",remainingAmount:"Preostali iznos",limitPeriod:"Period limita",displayedProduct:"Proizvod",futureLimit:"Budući limit",additionalLink1:"Detalji posljednje transakcije uplate",additionalLink2:"Transakcije u periodu",limitRemoved:"Ovaj limit je uklonjen i važi do",limitUpdated:"Ovaj limit će biti primijenjen počevši od",changeLimitLabel:"Promijeni limit",futureAmount:"Budući iznos",limitTypeLabel:"Vrsta limita",fetchLimitDefError:"Nije uspjelo preuzimanje definicija limita.",fetchLimitBalanceError:"Nije uspjelo preuzimanje stanja limita.",invalidUrl:"Nije uspjelo konstruiranje 'URL'-a: Nevaljan URL",startLabel:"Početak",resetLabel:"Resetiraj",infoLabel:"Informacije",walletLabel:"Novčanik",walletsLabel:"Novčanici",addLimitTitle:"Dodaj ograničenje",editLimitTitle:"Uredi ograničenje",deleteLimitTitle:"Ograničenje brisanja",cancelScheduleTitle:"Otkaži raspored",addLimitText:"Dodaj novčani limit",limitWalletTypeLabel:"Vrsta novčanika"},hu:{noLimitToDisplay:"A felhasználó nem állított be korlátot...",depositLimitHeader:"Befizetési limit",lossLimitHeader:"Veszteségkorlát",wageringLimitHeader:"Tétlimit",spentAmount:"Elköltött összeg",remainingAmount:"Fennmaradó összeg",limitPeriod:"Korlát időtartama",displayedProduct:"Termék",futureLimit:"Jövőbeli limit",additionalLink1:"Legutóbbi befizetési tranzakció részletei",additionalLink2:"Tranzakciók időszakban",limitRemoved:"Ez a korlát eltávolításra került és érvényes",limitUpdated:"Ez a korlát alkalmazásra kerül a következőtől",changeLimitLabel:"Korlát módosítása",futureAmount:"Jövőbeli összeg",limitTypeLabel:"Korlát típusa",fetchLimitDefError:"Nem sikerült letölteni a korlát definíciókat.",fetchLimitBalanceError:"Nem sikerült letölteni a korlát egyenlegét.",invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",startLabel:"Indítás",resetLabel:"Visszaállítás",infoLabel:"Információ",walletLabel:"Pénztárca",walletsLabel:"Pénztárcák",addLimitTitle:"Korlát hozzáadása",editLimitTitle:"Korlát szerkesztése",deleteLimitTitle:"Korlát törlése",cancelScheduleTitle:"Ütemezés törlése",addLimitText:"Pénzösszeg hozzáadása",limitWalletTypeLabel:"Pénztárca típusa"},pl:{noLimitToDisplay:"Użytkownik nie ustawił limitu...",depositLimitHeader:"Limit depozytu",lossLimitHeader:"Limit strat",wageringLimitHeader:"Limit zakładów",spentAmount:"Wydana kwota",remainingAmount:"Pozostała kwota",limitPeriod:"Okres limitu",displayedProduct:"Produkt",futureLimit:"Przyszły limit",additionalLink1:"Szczegóły ostatniej transakcji depozytowej",additionalLink2:"Transakcje w okresie",limitRemoved:"Ten limit został usunięty i jest ważny do",limitUpdated:"Ten limit będzie obowiązywać począwszy od",changeLimitLabel:"Zmień limit",futureAmount:"Przyszła kwota",limitTypeLabel:"Typ limitu",fetchLimitDefError:"Nie udało się pobrać definicji limitu.",fetchLimitBalanceError:"Nie udało się pobrać salda limitu.",invalidUrl:"Nie udało się skonstruować 'URL': Nieprawidłowy URL",startLabel:"Start",resetLabel:"Resetuj",infoLabel:"Informacje",walletLabel:"Portfel",walletsLabel:"Portfele",addLimitTitle:"Dodaj limit",editLimitTitle:"Limit edycji",deleteLimitTitle:"Usuń limit",cancelScheduleTitle:"Anuluj harmonogram",addLimitText:"Dodaj limit pieniężny",limitWalletTypeLabel:"Typ portfela"},pt:{noLimitToDisplay:"O usuário não definiu um limite...",depositLimitHeader:"Limite de depósito",lossLimitHeader:"Limite de perdas",wageringLimitHeader:"Limite de apostas",spentAmount:"Valor gasto",remainingAmount:"Valor restante",limitPeriod:"Período do limite",displayedProduct:"Produto",futureLimit:"Limite futuro",additionalLink1:"Detalhes da última transação de depósito",additionalLink2:"Transações no período",limitRemoved:"Este limite foi removido e é válido até",limitUpdated:"Este limite será aplicado a partir de",changeLimitLabel:"Alterar limite",futureAmount:"Valor futuro",limitTypeLabel:"Tipo de limite",fetchLimitDefError:"Falha ao buscar definições de limite.",fetchLimitBalanceError:"Falha ao buscar saldo do limite.",invalidUrl:"Falha ao construir 'URL': URL inválida",startLabel:"Iniciar",resetLabel:"Redefinir",infoLabel:"Informação",walletLabel:"Carteira",walletsLabel:"Carteiras",addLimitTitle:"Adicionar limite",editLimitTitle:"Editar Limite",deleteLimitTitle:"Excluir limite",cancelScheduleTitle:"Cancelar agendamento",addLimitText:"Adicionar limite monetário",limitWalletTypeLabel:"Tipo de carteira"},sl:{noLimitToDisplay:"Uporabnik ni določil omejitve...",depositLimitHeader:"Omejitev pologa",lossLimitHeader:"Omejitev izgub",wageringLimitHeader:"Omejitev stav",spentAmount:"Porabljen znesek",remainingAmount:"Preostali znesek",limitPeriod:"Obdobje omejitve",displayedProduct:"Izdelek",futureLimit:"Prihodnja omejitev",additionalLink1:"Podrobnosti zadnje transakcije pologa",additionalLink2:"Transakcije v obdobju",limitRemoved:"Ta omejitev je bila odstranjena in velja do",limitUpdated:"Ta omejitev bo veljavna od",changeLimitLabel:"Spremeni omejitev",futureAmount:"Prihodnji znesek",limitTypeLabel:"Vrsta omejitve",fetchLimitDefError:"Pridobivanje definicij omejitev ni uspelo.",fetchLimitBalanceError:"Pridobivanje stanja omejitev ni uspelo.",invalidUrl:"Izgradnja 'URL'-ja ni uspela: Neveljaven URL",startLabel:"Začni",resetLabel:"Ponastavi",infoLabel:"Informacije",walletLabel:"Denarnica",walletsLabel:"Denarnice",addLimitTitle:"Dodaj omejitev",editLimitTitle:"Uredi omejitev",deleteLimitTitle:"Omejitev brisanja",cancelScheduleTitle:"Prekliči razpored",addLimitText:"Dodaj denarno omejitev",limitWalletTypeLabel:"Vrsta denarnice"},sr:{noLimitToDisplay:"Korisnik nije postavio limit...",depositLimitHeader:"Limit depozita",lossLimitHeader:"Limit gubitka",wageringLimitHeader:"Limit klađenja",spentAmount:"Potrošeni iznos",remainingAmount:"Preostali iznos",limitPeriod:"Period limita",displayedProduct:"Proizvod",futureLimit:"Budući limit",additionalLink1:"Detalji poslednje transakcije depozita",additionalLink2:"Transakcije u periodu",limitRemoved:"Ovaj limit je uklonjen i važi do",limitUpdated:"Ovaj limit će se primeniti počevši od",changeLimitLabel:"Promeni limit",futureAmount:"Budući iznos",limitTypeLabel:"Vrsta limita",fetchLimitDefError:"Neuspeh u dobavljanju definicija limita.",fetchLimitBalanceError:"Neuspeh u dobavljanju stanja limita.",invalidUrl:"Neuspeh u konstrukciji 'URL'-a: Neispravan URL",startLabel:"Početak",resetLabel:"Resetuj",infoLabel:"Informacije",walletLabel:"Novčanik",walletsLabel:"Novčanici",addLimitTitle:"Додај ограничење",editLimitTitle:"Ограничење уређивања",deleteLimitTitle:"Избриши ограничење",cancelScheduleTitle:"Откажи распоред",addLimitText:"Додај новчано ограничење",limitWalletTypeLabel:"Тип новчаника"},"es-mx":{noLimitToDisplay:"El usuario no ha establecido un límite...",depositLimitHeader:"Límite de depósito",lossLimitHeader:"Límite de pérdida",wageringLimitHeader:"Límite de apuesta",spentAmount:"Monto gastado",remainingAmount:"Monto restante",limitPeriod:"Período de límite",displayedProduct:"Producto",futureLimit:"Límite futuro",additionalLink1:"Detalles de la última transacción de depósito",additionalLink2:"Transacciones en el período",limitRemoved:"Este límite ha sido eliminado y es válido hasta",limitUpdated:"Este límite se aplicará a partir de",changeLimitLabel:"Cambiar límite",futureAmount:"Monto futuro",limitTypeLabel:"Tipo de límite",fetchLimitDefError:"Error al obtener definiciones de límite.",fetchLimitBalanceError:"Error al obtener el saldo del límite.",invalidUrl:"Error al construir 'URL': URL inválida",startLabel:"Inicio",resetLabel:"Reiniciar",infoLabel:"Información",walletLabel:"Cartera",walletsLabel:"Carteras",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de billetera"},"pt-br":{noLimitToDisplay:"O usuário não definiu um limite...",depositLimitHeader:"Limite de depósito",lossLimitHeader:"Limite de perda",wageringLimitHeader:"Limite de apostas",spentAmount:"Valor gasto",remainingAmount:"Valor restante",limitPeriod:"Período de limite",displayedProduct:"Produto",futureLimit:"Limite futuro",additionalLink1:"Detalhes da última transação de depósito",additionalLink2:"Transações no período",limitRemoved:"Este limite foi removido e é válido até",limitUpdated:"Este limite será aplicado a partir de",changeLimitLabel:"Alterar limite",futureAmount:"Valor futuro",limitTypeLabel:"Tipo de limite",fetchLimitDefError:"Falha ao buscar definições de limite.",fetchLimitBalanceError:"Falha ao buscar saldo do limite.",invalidUrl:"Falha ao construir 'URL': URL inválida",startLabel:"Iniciar",resetLabel:"Redefinir",infoLabel:"Informação",walletLabel:"Carteira",walletsLabel:"Carteiras",addLimitTitle:"Agregar límite",editLimitTitle:"Editar límite",deleteLimitTitle:"Eliminar límite",cancelScheduleTitle:"Cancelar programación",addLimitText:"Agregar límite monetario",limitWalletTypeLabel:"Tipo de carteira"}};var Mi='<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 386 193" fill="none">\n <path d="M4 193a189 189 0 0 1 379 0" stroke="url(#a)" stroke-width="6" stroke-dasharray="2 2"/>\n <path d="M49 193a144 144 0 1 1 288 0" stroke="#C4C4C4" stroke-width="30" stroke-dasharray="2 2"/>\n <defs><linearGradient id="a" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%"/><stop offset="100%" stop-opacity=".2"/></linearGradient></defs>\n</svg>',Di='<svg width="13" height="28" viewBox="0 0 13 28" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M13 14L0.250001 27.8564L0.250002 0.143593L13 14Z"/>\n</svg>',Ai='<svelte:options tag={\'caret-right\'} />\n<svg xmlns="http://www.w3.org/2000/svg" height="12" width="6" viewBox="0 0 256 512">\n <path fill="currentColor" 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"/>\n</svg>',Ci='<svg width="18" viewBox="0 0 25 26" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path 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"/>\n</svg>',Hi='<svg xmlns="http://www.w3.org/2000/svg" width="0.93em" height="1em" viewBox="0 0 1664 1792"><path fill="currentColor" 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"/></svg>',Pi='<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 1536 1536"><path fill="currentColor" 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"/></svg>',xi='<svg xmlns="http://www.w3.org/2000/svg" width="0.93em" height="1em" viewBox="0 0 1216 1312"><path fill="currentColor" 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"/></svg>',Oi='<svg xmlns="http://www.w3.org/2000/svg" class="ControlContainerSvg" viewBox="0 0 448 512">\x3c!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--\x3e<path 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"/></svg>';
|
|
1138
|
-
/* ../general-animation-loading/src/GeneralAnimationLoading.svelte generated by Svelte v3.59.2 */
|
|
1139
|
-
function Ri(t){let i;return{c(){i=d("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){l(e,i,n),
|
|
1140
|
-
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&u(i)
|
|
1141
|
-
/*div5_binding*/,t[3](null)}}}function Ni(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:a=""}=t;return e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,a=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/3&e.$$.dirty&&r&&n&&(()=>{let e=document.createElement("style");e.innerHTML=r,n.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/5&e.$$.dirty&&a&&n&&(()=>{let e=new URL(a),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[n,r,a,function(e){D[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}
|
|
1142
|
-
/* src/PlayerRglimits.svelte generated by Svelte v3.59.2 */
|
|
1143
|
-
function Ui(e,t,i){const n=e.slice();return n[80]=t[i],n}function Bi(e,t,i){const n=e.slice();return n[80]=t[i],n}function Yi(e,t,i){const n=e.slice();return n[80]=t[i],n}function Ii(e,t,i){const n=e.slice();return n[87]=t[i],n}
|
|
1144
|
-
// (621:4) {:else}
|
|
1145
|
-
function ji(e){let t,i,n,r,a,s,c,f,p,y,b,L,_=/*getWidgetTitle*/e[29](/*selectedLimitType*/e[20])+"";function T(e,t){/*isLoading*/
|
|
1146
|
-
return e[10]?Wi:$i}let E=T(e),S=E(e),k=/*limitWalletTypeList*/e[15].length>0&&tn(e),M=/*limitPeriodList*/e[16].length>0&&rn(e),D=/*limitTypeList*/e[17].length>0&&sn(e),A=/*limitTypeList*/e[17].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]&&ln(e);function C(e,t){/*isGaugeLoading*/
|
|
1147
|
-
return e[11]?fn:mn}let H=C(e),P=H(e);return{c(){t=d("div"),i=d("h2"),n=new w(!1),r=h(_),a=m(),S.c(),s=m(),c=d("div"),f=d("div"),k&&k.c(),p=m(),M&&M.c(),y=m(),D&&D.c(),b=m(),A&&A.c(),L=m(),P.c(),n.a=r,g(i,"class","LimitTypeHeader"),g(t,"class","ContentLeft"),g(f,"class","WidgetControls"),g(c,"class","ContentRight")},m(e,u){l(e,t,u),o(t,i),n.m(Ci,i),o(i,r),o(t,a),S.m(t,null),l(e,s,u),l(e,c,u),o(c,f),k&&k.m(f,null),o(f,p),M&&M.m(f,null),o(f,y),D&&D.m(f,null),o(f,b),A&&A.m(f,null),o(c,L),P.m(c,null)},p(e,i){/*selectedLimitType*/1048576&i[0]&&_!==(_=/*getWidgetTitle*/e[29](/*selectedLimitType*/e[20])+"")&&v(r,_),E===(E=T(e))&&S?S.p(e,i):(S.d(1),S=E(e),S&&(S.c(),S.m(t,null))),/*limitWalletTypeList*/e[15].length>0?k?k.p(e,i):(k=tn(e),k.c(),k.m(f,p)):k&&(k.d(1),k=null),/*limitPeriodList*/e[16].length>0?M?M.p(e,i):(M=rn(e),M.c(),M.m(f,y)):M&&(M.d(1),M=null),/*limitTypeList*/e[17].length>0?D?D.p(e,i):(D=sn(e),D.c(),D.m(f,b)):D&&(D.d(1),D=null),/*limitTypeList*/e[17].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]?A?A.p(e,i):(A=ln(e),A.c(),A.m(f,null)):A&&(A.d(1),A=null),H===(H=C(e))&&P?P.p(e,i):(P.d(1),P=H(e),P&&(P.c(),P.m(c,null)))},d(e){e&&u(t),S.d(),e&&u(s),e&&u(c),k&&k.d(),M&&M.d(),D&&D.d(),A&&A.d(),P.d()}}}
|
|
1148
|
-
// (617:27)
|
|
1149
|
-
function Gi(e){let t,i,n;return{c(){t=d("div"),i=d("strong"),n=h(/*errorMessage*/e[24]),g(i,"class","ErrorMessage"),g(t,"class","ContainerCenter")},m(e,r){l(e,t,r),o(t,i),o(i,n)},p(e,t){/*errorMessage*/16777216&t[0]&&v(n,/*errorMessage*/e[24])},d(e){e&&u(t)}}}
|
|
1150
|
-
// (607:4) {#if noLimitToDisplay}
|
|
1151
|
-
function Fi(e){let t,i,n,r,a=/*$_*/e[25]("noLimitToDisplay")+"",s=/*editlimitaction*/"true"===e[5]&&pn(e);return{c(){t=d("div"),i=d("p"),n=h(a),r=m(),s&&s.c(),g(t,"class","ContainerCenter")},m(e,a){l(e,t,a),o(t,i),o(i,n),o(t,r),s&&s.m(t,null)},p(e,i){/*$_*/33554432&i[0]&&a!==(a=/*$_*/e[25]("noLimitToDisplay")+"")&&v(n,a),/*editlimitaction*/"true"===e[5]?s?s.p(e,i):(s=pn(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(e){e&&u(t),s&&s.d()}}}
|
|
1152
|
-
// (626:8) {:else}
|
|
1153
|
-
function $i(e){let t,i,n,r,a,s,f,p,y,b,L,_,w,T,E,S,k,M,D,A,C,H,P,x,O,R,N,U,B,Y,I,j,G,F,$,W,z,V,q,Z,X,K,J,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,ce,de,he,me,fe,pe,ge=/*selectedProduct*/"All"===e[21]?`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletsLabel")}`:`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletLabel")}`,ye=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"",ve=/*displayedLimit*/e[14].limitCurrency+"",be=/*$_*/e[25]("spentAmount")+"",Le=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"",_e=/*displayedLimit*/e[14].limitCurrency+"",we=/*$_*/e[25]("remainingAmount")+"",Te=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].remainingAmount)+"",Ee=/*displayedLimit*/e[14].limitCurrency+"",Se=/*$_*/e[25]("startLabel")+"",ke=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].from)+"",Me=/*$_*/e[25]("resetLabel")+"",De=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].to)+"",Ae=/*productList*/e[22].length>1&&zi(e),Ce=/*productList*/e[22],He=[];for(let t=0;t<Ce.length;t+=1)He[t]=Vi(Ii(e,Ce,t));let Pe=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&qi(e),xe=/*displayedLimit*/(!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&Zi(e),Oe=/*sessiontype*/"admin"===e[0]&&Ji(e);return{c(){t=d("div"),i=d("div"),n=d("span"),r=h(ge),a=m(),s=d("span"),f=h(ye),p=m(),y=d("span"),b=h(ve),_=m(),Ae&&Ae.c(),w=m(),T=d("div");for(let e=0;e<He.length;e+=1)He[e].c();S=m(),k=d("div"),M=d("div"),D=d("div"),A=h(be),C=m(),H=d("div"),P=d("span"),x=m(),O=h(Le),R=m(),N=h(_e),U=m(),B=d("div"),Y=d("div"),I=h(we),j=m(),G=d("div"),F=d("span"),$=m(),W=h(Te),z=m(),V=h(Ee),q=m(),Pe&&Pe.c(),Z=m(),X=d("div"),K=d("div"),J=h(Se),Q=m(),ee=d("div"),te=d("span"),ie=m(),ne=h(ke),re=m(),ae=d("div"),se=d("div"),oe=h(Me),le=m(),ue=d("div"),ce=d("span"),de=m(),he=h(De),me=m(),xe&&xe.c(),fe=m(),Oe&&Oe.c(),pe=h(""),g(n,"class","SelectedProduct"),g(y,"class","Currency"),g(s,"class","TotalAmount"),g(s,"title",L=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),g(i,"class","DisplayContainer"),g(T,"class",E="ProductsDropdown "+(/*showDropdown*/e[13]?"Show":"")),g(t,"class","ProductSelector"),g(D,"class","Col"),g(P,"class","CaretRight"),g(H,"class","Col"),g(M,"class","Row"),g(Y,"class","Col"),g(F,"class","CaretRight"),g(G,"class","Col"),g(B,"class","Row"),g(K,"class","Col"),g(te,"class","CaretRight"),g(ee,"class","Col"),g(X,"class","Row"),g(se,"class","Col"),g(ce,"class","CaretRight"),g(ue,"class","Col"),g(ae,"class","Row"),g(k,"class","DetailsContainer Entries")},m(e,u){l(e,t,u),o(t,i),o(i,n),o(n,r),o(i,a),o(i,s),o(s,f),o(s,p),o(s,y),o(y,b),o(i,_),Ae&&Ae.m(i,null),o(t,w),o(t,T);for(let e=0;e<He.length;e+=1)He[e]&&He[e].m(T,null);l(e,S,u),l(e,k,u),o(k,M),o(M,D),o(D,A),o(M,C),o(M,H),o(H,P),P.innerHTML=Ai,o(H,x),o(H,O),o(H,R),o(H,N),o(k,U),o(k,B),o(B,Y),o(Y,I),o(B,j),o(B,G),o(G,F),F.innerHTML=Ai,o(G,$),o(G,W),o(G,z),o(G,V),o(k,q),Pe&&Pe.m(k,null),o(k,Z),o(k,X),o(X,K),o(K,J),o(X,Q),o(X,ee),o(ee,te),te.innerHTML=Ai,o(ee,ie),o(ee,ne),o(k,re),o(k,ae),o(ae,se),o(se,oe),o(ae,le),o(ae,ue),o(ue,ce),ce.innerHTML=Ai,o(ue,de),o(ue,he),l(e,me,u),xe&&xe.m(e,u),l(e,fe,u),Oe&&Oe.m(e,u),l(e,pe,u)},p(e,t){if(/*selectedProduct, $_*/35651584&t[0]&&ge!==(ge=/*selectedProduct*/"All"===e[21]?`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletsLabel")}`:`${/*selectedProduct*/e[21]} ${/*$_*/e[25]("walletLabel")}`)&&v(r,ge),/*displayedLimit*/16384&t[0]&&ye!==(ye=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"")&&v(f,ye),/*displayedLimit*/16384&t[0]&&ve!==(ve=/*displayedLimit*/e[14].limitCurrency+"")&&v(b,ve),/*displayedLimit*/16384&t[0]&&L!==(L=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&g(s,"title",L),/*productList*/e[22].length>1?Ae?Ae.p(e,t):(Ae=zi(e),Ae.c(),Ae.m(i,null)):Ae&&(Ae.d(1),Ae=null),/*productList, $_*/37748736&t[0]|/*handleProductChange*/2&t[1]){let i;for(Ce=/*productList*/e[22],i=0;i<Ce.length;i+=1){const n=Ii(e,Ce,i);He[i]?He[i].p(n,t):(He[i]=Vi(n),He[i].c(),He[i].m(T,null))}for(;i<He.length;i+=1)He[i].d(1);He.length=Ce.length}/*showDropdown*/8192&t[0]&&E!==(E="ProductsDropdown "+(/*showDropdown*/e[13]?"Show":""))&&g(T,"class",E),/*$_*/33554432&t[0]&&be!==(be=/*$_*/e[25]("spentAmount")+"")&&v(A,be),/*displayedLimit*/16384&t[0]&&Le!==(Le=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"")&&v(O,Le),/*displayedLimit*/16384&t[0]&&_e!==(_e=/*displayedLimit*/e[14].limitCurrency+"")&&v(N,_e),/*$_*/33554432&t[0]&&we!==(we=/*$_*/e[25]("remainingAmount")+"")&&v(I,we),/*displayedLimit*/16384&t[0]&&Te!==(Te=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].remainingAmount)+"")&&v(W,Te),/*displayedLimit*/16384&t[0]&&Ee!==(Ee=/*displayedLimit*/e[14].limitCurrency+"")&&v(V,Ee),/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?Pe?Pe.p(e,t):(Pe=qi(e),Pe.c(),Pe.m(k,Z)):Pe&&(Pe.d(1),Pe=null),/*$_*/33554432&t[0]&&Se!==(Se=/*$_*/e[25]("startLabel")+"")&&v(J,Se),/*displayedLimit*/16384&t[0]&&ke!==(ke=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].from)+"")&&v(ne,ke),/*$_*/33554432&t[0]&&Me!==(Me=/*$_*/e[25]("resetLabel")+"")&&v(oe,Me),/*displayedLimit*/16384&t[0]&&De!==(De=/*dateToReadableString*/e[28](/*displayedLimit*/e[14].to)+"")&&v(he,De),/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?xe?xe.p(e,t):(xe=Zi(e),xe.c(),xe.m(fe.parentNode,fe)):xe&&(xe.d(1),xe=null),/*sessiontype*/"admin"===e[0]?Oe?Oe.p(e,t):(Oe=Ji(e),Oe.c(),Oe.m(pe.parentNode,pe)):Oe&&(Oe.d(1),Oe=null)},d(e){e&&u(t),Ae&&Ae.d(),c(He,e),e&&u(S),e&&u(k),Pe&&Pe.d(),e&&u(me),xe&&xe.d(e),e&&u(fe),Oe&&Oe.d(e),e&&u(pe)}}}
|
|
1154
|
-
// (624:8) {#if isLoading}
|
|
1155
|
-
function Wi(e){let t;return{c(){t=d("general-animation-loading"),y(t,"clientstyling",/*clientstyling*/e[3]),y(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){l(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&y(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&y(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&u(t)}}}
|
|
1156
|
-
// (631:14) {#if productList.length > 1}
|
|
1157
|
-
function zi(e){let t,i,n,r;return{c(){t=d("button"),g(t,"class",i="DropdownToggle "+(/*showDropdown*/e[13]?"Active":""))},m(i,a){l(i,t,a),t.innerHTML=Di,n||(r=f(t,"click",p(/*click_handler_1*/e[50])),n=!0)},p(e,n){/*showDropdown*/8192&n[0]&&i!==(i="DropdownToggle "+(/*showDropdown*/e[13]?"Active":""))&&g(t,"class",i)},d(e){e&&u(t),n=!1,r()}}}
|
|
1158
|
-
// (638:14) {#each productList as product}
|
|
1159
|
-
function Vi(e){let t,i,n,r,a,s=/*product*/"All"===e[87]?`${/*product*/e[87]} ${/*$_*/e[25]("walletsLabel")}`:`${/*product*/e[87]} ${/*$_*/e[25]("walletLabel")}`;function c(){/*click_handler_2*/
|
|
1160
|
-
return e[51](/*product*/e[87])}return{c(){t=d("button"),i=h(s),n=m()},m(e,s){l(e,t,s),o(t,i),o(t,n),r||(a=f(t,"click",c),r=!0)},p(t,n){e=t,/*productList, $_*/37748736&n[0]&&s!==(s=/*product*/"All"===e[87]?`${/*product*/e[87]} ${/*$_*/e[25]("walletsLabel")}`:`${/*product*/e[87]} ${/*$_*/e[25]("walletLabel")}`)&&v(i,s)},d(e){e&&u(t),r=!1,a()}}}
|
|
1161
|
-
// (658:12) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1162
|
-
function qi(e){let t,i,n,r,a,s,c,f,p,y,b=/*$_*/e[25]("futureAmount")+"",L=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"",_=/*displayedLimit*/e[14].limitCurrency+"";return{c(){t=d("div"),i=d("div"),n=h(b),r=m(),a=d("div"),s=d("span"),c=m(),f=h(L),p=m(),y=h(_),g(i,"class","Col"),g(s,"class","CaretRight"),g(a,"class","Col"),g(t,"class","Row")},m(e,u){l(e,t,u),o(t,i),o(i,n),o(t,r),o(t,a),o(a,s),s.innerHTML=Ai,o(a,c),o(a,f),o(a,p),o(a,y)},p(e,t){/*$_*/33554432&t[0]&&b!==(b=/*$_*/e[25]("futureAmount")+"")&&v(n,b),/*displayedLimit*/16384&t[0]&&L!==(L=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"")&&v(f,L),/*displayedLimit*/16384&t[0]&&_!==(_=/*displayedLimit*/e[14].limitCurrency+"")&&v(y,_)},d(e){e&&u(t)}}}
|
|
1163
|
-
// (679:10) {#if displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true }
|
|
1164
|
-
function Zi(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=d("div"),n&&n.c(),i=m(),r&&r.c(),g(t,"class","ExtraInfoContainer")},m(e,a){l(e,t,a),n&&n.m(t,null),o(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&&u(t),n&&n.d(),r&&r.d()}}}
|
|
1165
|
-
// (681:14) {#if displayedLimit.formattedSchedule.isRemoved === true}
|
|
1166
|
-
function Xi(e){let t,i,n,r,a=/*$_*/e[25]("limitRemoved")+"",s=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=d("span"),i=h(a),n=h(": "),r=h(s)},m(e,a){l(e,t,a),o(t,i),o(t,n),o(t,r)},p(e,t){/*$_*/33554432&t[0]&&a!==(a=/*$_*/e[25]("limitRemoved")+"")&&v(i,a),/*displayedLimit*/16384&t[0]&&s!==(s=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&v(r,s)},d(e){e&&u(t)}}}
|
|
1167
|
-
// (684:14) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1168
|
-
function Ki(e){let t,i,n,r,a=/*$_*/e[25]("limitUpdated")+"",s=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=d("span"),i=h(a),n=h(": "),r=h(s)},m(e,a){l(e,t,a),o(t,i),o(t,n),o(t,r)},p(e,t){/*$_*/33554432&t[0]&&a!==(a=/*$_*/e[25]("limitUpdated")+"")&&v(i,a),/*displayedLimit*/16384&t[0]&&s!==(s=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&v(r,s)},d(e){e&&u(t)}}}
|
|
1169
|
-
// (689:10) {#if sessiontype === 'admin'}
|
|
1170
|
-
function Ji(e){let t;function i(e,t){/*transdetailsurl*/
|
|
1171
|
-
return e[1]?en:/*transactionspageurl*/e[2]?Qi:void 0}let n=i(e),r=n&&n(e);return{c(){t=d("div"),r&&r.c(),g(t,"class","UsefulLinksSection")},m(e,i){l(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&&u(t),r&&r.d()}}}
|
|
1172
|
-
// (693:44)
|
|
1173
|
-
function Qi(e){let t,i,n=/*$_*/e[25]("additionalLink2")+"";return{c(){t=d("a"),i=h(n),g(t,"href",/*getTransactionsUrl*/e[35]()),g(t,"target","_blank")},m(e,n){l(e,t,n),o(t,i)},p(e,t){/*$_*/33554432&t[0]&&n!==(n=/*$_*/e[25]("additionalLink2")+"")&&v(i,n)},d(e){e&&u(t)}}}
|
|
1174
|
-
// (691:14) {#if transdetailsurl}
|
|
1175
|
-
function en(e){let t,i,n=/*$_*/e[25]("additionalLink1")+"";return{c(){t=d("a"),i=h(n),g(t,"href",/*transdetailsurl*/e[1]),g(t,"target","_blank")},m(e,n){l(e,t,n),o(t,i)},p(e,r){/*$_*/33554432&r[0]&&n!==(n=/*$_*/e[25]("additionalLink1")+"")&&v(i,n),/*transdetailsurl*/2&r[0]&&g(t,"href",/*transdetailsurl*/e[1])},d(e){e&&u(t)}}}
|
|
1176
|
-
// (702:10) {#if limitWalletTypeList.length > 0}
|
|
1177
|
-
function tn(e){let t,i,r,a,s,p,y,b,_=/*$_*/e[25]("limitWalletTypeLabel")+"",w=/*limitWalletTypeList*/e[15],T=[];for(let t=0;t<w.length;t+=1)T[t]=nn(Yi(e,w,t));return{c(){t=d("div"),i=d("label"),r=h(_),a=h(":"),s=m(),p=d("select");for(let e=0;e<T.length;e+=1)T[e].c();g(i,"for","LimitPeriod"),g(p,"id","WalletType"),/*selectedWalletType*/void 0===e[18]&&x((()=>/*select_change_handler*/e[52].call(p))),g(t,"class","ControlContainer")},m(n,u){l(n,t,u),o(t,i),o(i,r),o(i,a),o(t,s),o(t,p);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(p,null);L(p,/*selectedWalletType*/e[18],!0),y||(b=[f(p,"change",/*select_change_handler*/e[52]),f(p,"change",/*handleWalletTypeChange*/e[31])],y=!0)},p(e,t){if(/*$_*/33554432&t[0]&&_!==(_=/*$_*/e[25]("limitWalletTypeLabel")+"")&&v(r,_),/*limitWalletTypeList, walletTypeMap*/67141632&t[0]){let i;for(w=/*limitWalletTypeList*/e[15],i=0;i<w.length;i+=1){const n=Yi(e,w,i);T[i]?T[i].p(n,t):(T[i]=nn(n),T[i].c(),T[i].m(p,null))}for(;i<T.length;i+=1)T[i].d(1);T.length=w.length}/*selectedWalletType, limitWalletTypeList*/294912&t[0]&&L(p,/*selectedWalletType*/e[18])},d(e){e&&u(t),c(T,e),y=!1,n(b)}}}
|
|
1178
|
-
// (706:16) {#each limitWalletTypeList as value}
|
|
1179
|
-
function nn(e){let t,i,n,r,a=/*walletTypeMap*/e[26][/*value*/e[80]]+"";return{c(){t=d("option"),i=h(a),n=m(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){l(e,t,r),o(t,i),o(t,n)},p(e,n){/*limitWalletTypeList*/32768&n[0]&&a!==(a=/*walletTypeMap*/e[26][/*value*/e[80]]+"")&&v(i,a),/*limitWalletTypeList*/32768&n[0]&&r!==(r=/*value*/e[80])&&(t.__value=r,t.value=t.__value)},d(e){e&&u(t)}}}
|
|
1180
|
-
// (714:10) {#if limitPeriodList.length > 0}
|
|
1181
|
-
function rn(e){let t,i,r,a,s,p,y,b,_=/*$_*/e[25]("changeLimitLabel")+"",w=/*limitPeriodList*/e[16],T=[];for(let t=0;t<w.length;t+=1)T[t]=an(Bi(e,w,t));return{c(){t=d("div"),i=d("label"),r=h(_),a=h(":"),s=m(),p=d("select");for(let e=0;e<T.length;e+=1)T[e].c();g(i,"for","LimitPeriod"),g(p,"id","LimitPeriod"),/*selectedLimitPeriod*/void 0===e[19]&&x((()=>/*select_change_handler_1*/e[53].call(p))),g(t,"class","ControlContainer")},m(n,u){l(n,t,u),o(t,i),o(i,r),o(i,a),o(t,s),o(t,p);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(p,null);L(p,/*selectedLimitPeriod*/e[19],!0),y||(b=[f(p,"change",/*select_change_handler_1*/e[53]),f(p,"change",/*handlePeriodChange*/e[30])],y=!0)},p(e,t){if(/*$_*/33554432&t[0]&&_!==(_=/*$_*/e[25]("changeLimitLabel")+"")&&v(r,_),/*limitPeriodList*/65536&t[0]){let i;for(w=/*limitPeriodList*/e[16],i=0;i<w.length;i+=1){const n=Bi(e,w,i);T[i]?T[i].p(n,t):(T[i]=an(n),T[i].c(),T[i].m(p,null))}for(;i<T.length;i+=1)T[i].d(1);T.length=w.length}/*selectedLimitPeriod, limitPeriodList*/589824&t[0]&&L(p,/*selectedLimitPeriod*/e[19])},d(e){e&&u(t),c(T,e),y=!1,n(b)}}}
|
|
1182
|
-
// (718:16) {#each limitPeriodList as value}
|
|
1183
|
-
function an(e){let t,i,n,r,a=/*value*/e[80]+"";return{c(){t=d("option"),i=h(a),n=m(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){l(e,t,r),o(t,i),o(t,n)},p(e,n){/*limitPeriodList*/65536&n[0]&&a!==(a=/*value*/e[80]+"")&&v(i,a),/*limitPeriodList*/65536&n[0]&&r!==(r=/*value*/e[80])&&(t.__value=r,t.value=t.__value)},d(e){e&&u(t)}}}
|
|
1184
|
-
// (726:10) {#if limitTypeList.length > 0}
|
|
1185
|
-
function sn(e){let t,i,r,a,s,p,y,b,_=/*$_*/e[25]("limitTypeLabel")+"",w=/*limitTypeList*/e[17],T=[];for(let t=0;t<w.length;t+=1)T[t]=on(Ui(e,w,t));return{c(){t=d("div"),i=d("label"),r=h(_),a=h(":"),s=m(),p=d("select");for(let e=0;e<T.length;e+=1)T[e].c();g(i,"for","LimitType"),g(p,"id","LimitType"),/*selectedLimitType*/void 0===e[20]&&x((()=>/*select_change_handler_2*/e[54].call(p))),g(t,"class","ControlContainer")},m(n,u){l(n,t,u),o(t,i),o(i,r),o(i,a),o(t,s),o(t,p);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(p,null);L(p,/*selectedLimitType*/e[20],!0),y||(b=[f(p,"change",/*select_change_handler_2*/e[54]),f(p,"change",/*getLimitBalance*/e[27])],y=!0)},p(e,t){if(/*$_*/33554432&t[0]&&_!==(_=/*$_*/e[25]("limitTypeLabel")+"")&&v(r,_),/*limitTypeList*/131072&t[0]){let i;for(w=/*limitTypeList*/e[17],i=0;i<w.length;i+=1){const n=Ui(e,w,i);T[i]?T[i].p(n,t):(T[i]=on(n),T[i].c(),T[i].m(p,null))}for(;i<T.length;i+=1)T[i].d(1);T.length=w.length}/*selectedLimitType, limitTypeList*/1179648&t[0]&&L(p,/*selectedLimitType*/e[20])},d(e){e&&u(t),c(T,e),y=!1,n(b)}}}
|
|
1186
|
-
// (730:16) {#each limitTypeList as value}
|
|
1187
|
-
function on(e){let t,i,n,r,a=/*value*/e[80]+"";return{c(){t=d("option"),i=h(a),n=m(),t.__value=r=/*value*/e[80],t.value=t.__value},m(e,r){l(e,t,r),o(t,i),o(t,n)},p(e,n){/*limitTypeList*/131072&n[0]&&a!==(a=/*value*/e[80]+"")&&v(i,a),/*limitTypeList*/131072&n[0]&&r!==(r=/*value*/e[80])&&(t.__value=r,t.value=t.__value)},d(e){e&&u(t)}}}
|
|
1188
|
-
// (738:10) {#if limitTypeList.length > 0 && sessiontype === 'admin' && displayedLimit}
|
|
1189
|
-
function ln(e){let t,i,n,r,a=/*editlimitaction*/"true"===e[5]&&un(e),s=/*editlimitaction*/"true"===e[5]&&cn(e),c=/*deletelimitaction*/"true"===e[6]&&dn(e),h=/*cancelimitscheduleaction*/"true"===e[7]&&/*displayedLimit*/e[14].formattedSchedule&&(/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&hn(e);return{c(){t=d("div"),a&&a.c(),i=m(),s&&s.c(),n=m(),c&&c.c(),r=m(),h&&h.c(),g(t,"class","ControlContainer")},m(e,u){l(e,t,u),a&&a.m(t,null),o(t,i),s&&s.m(t,null),o(t,n),c&&c.m(t,null),o(t,r),h&&h.m(t,null)},p(e,o){/*editlimitaction*/"true"===e[5]?a?a.p(e,o):(a=un(e),a.c(),a.m(t,i)):a&&(a.d(1),a=null),/*editlimitaction*/"true"===e[5]?s?s.p(e,o):(s=cn(e),s.c(),s.m(t,n)):s&&(s.d(1),s=null),/*deletelimitaction*/"true"===e[6]?c?c.p(e,o):(c=dn(e),c.c(),c.m(t,r)):c&&(c.d(1),c=null),/*cancelimitscheduleaction*/"true"!==e[7]||/*displayedLimit*/!e[14].formattedSchedule||/*displayedLimit*/!0!==e[14].formattedSchedule.isRemoved&&/*displayedLimit*/!0!==e[14].formattedSchedule.isUpdated?h&&(h.d(1),h=null):h?h.p(e,o):(h=hn(e),h.c(),h.m(t,null))},d(e){e&&u(t),a&&a.d(),s&&s.d(),c&&c.d(),h&&h.d()}}}
|
|
1190
|
-
// (740:14) {#if editlimitaction === 'true'}
|
|
1191
|
-
function un(e){let t,i,n,r,a;return{c(){t=d("button"),i=d("span"),g(i,"class","ActionsSvg"),g(t,"class","ActionButton"),g(t,"title",n=/*$_*/e[25]("addLimitTitle"))},m(n,s){l(n,t,s),o(t,i),i.innerHTML=Oi,r||(a=f(t,"click",p(/*click_handler_3*/e[55])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("addLimitTitle"))&&g(t,"title",n)},d(e){e&&u(t),r=!1,a()}}}
|
|
1192
|
-
// (745:14) {#if editlimitaction === 'true'}
|
|
1193
|
-
function cn(e){let t,i,n,r,a;return{c(){t=d("button"),i=d("span"),g(i,"class","ActionsSvg"),g(t,"class","ActionButton"),g(t,"title",n=/*$_*/e[25]("editLimitTitle"))},m(n,s){l(n,t,s),o(t,i),i.innerHTML=Pi,r||(a=f(t,"click",p(/*click_handler_4*/e[56])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("editLimitTitle"))&&g(t,"title",n)},d(e){e&&u(t),r=!1,a()}}}
|
|
1194
|
-
// (750:14) {#if deletelimitaction === 'true'}
|
|
1195
|
-
function dn(e){let t,i,n,r,a;return{c(){t=d("button"),i=d("span"),g(i,"class","ActionsSvg"),g(t,"class","ActionButton"),g(t,"title",n=/*$_*/e[25]("deleteLimitTitle"))},m(n,s){l(n,t,s),o(t,i),i.innerHTML=xi,r||(a=f(t,"click",p(/*click_handler_5*/e[57])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("deleteLimitTitle"))&&g(t,"title",n)},d(e){e&&u(t),r=!1,a()}}}
|
|
1196
|
-
// (755:14) {#if cancelimitscheduleaction === 'true' && (displayedLimit.formattedSchedule && (displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true))}
|
|
1197
|
-
function hn(e){let t,i,n,r,a;return{c(){t=d("button"),i=d("span"),g(i,"class","ActionsSvg"),g(t,"class","ActionButton"),g(t,"title",n=/*$_*/e[25]("cancelScheduleTitle"))},m(n,s){l(n,t,s),o(t,i),i.innerHTML=Hi,r||(a=f(t,"click",p(/*click_handler_6*/e[58])),r=!0)},p(e,i){/*$_*/33554432&i[0]&&n!==(n=/*$_*/e[25]("cancelScheduleTitle"))&&g(t,"title",n)},d(e){e&&u(t),r=!1,a()}}}
|
|
1198
|
-
// (765:8) {:else}
|
|
1199
|
-
function mn(e){let t,i,n,r,a,s,c,f,p,y,L,_,w,T,E,S,k,M,D,A,C,H,P,x,O,R,N,U,B,Y=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"",I=/*displayedLimit*/e[14].limitCurrency+"",j=/*displayedLimit*/e[14].limitCurrency+"",G=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"",F=/*displayedLimit*/e[14].limitCurrency+"";return{c(){t=d("div"),i=d("div"),n=d("div"),r=m(),a=d("div"),s=m(),c=d("div"),f=h(Y),p=m(),y=h(I),_=m(),w=d("div"),T=m(),E=d("div"),S=m(),k=d("div"),M=d("div"),D=d("strong"),D.textContent="0",A=m(),C=d("span"),H=h(j),P=m(),x=d("div"),O=d("strong"),R=h(G),N=m(),U=d("span"),B=h(F),g(n,"class","Archbg"),g(a,"class","GaugeFill"),b(a,"--p",/*gaugeValue*/e[23]+"deg"),g(c,"class","GaugeCover"),g(c,"title",L=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),g(w,"class","GaugeNeedleCover"),g(E,"class","GaugeNeedle"),b(E,"--transform-needle-value","rotate("+(/*gaugeValue*/e[23]-90)+"deg)"),g(i,"class","GaugeBody"),g(D,"class","MinContent"),g(C,"class","MinContentCurrency"),g(M,"class","Min"),g(O,"class","MaxContent"),g(U,"class","MaxContentCurrency"),g(x,"class","Max"),g(k,"class","MinMaxContainer"),g(t,"class","Gauge")},m(e,u){l(e,t,u),o(t,i),o(i,n),n.innerHTML=Mi,o(i,r),o(i,a),o(i,s),o(i,c),o(c,f),o(c,p),o(c,y),o(i,_),o(i,w),o(i,T),o(i,E),o(t,S),o(t,k),o(k,M),o(M,D),o(M,A),o(M,C),o(C,H),o(k,P),o(k,x),o(x,O),o(O,R),o(x,N),o(x,U),o(U,B)},p(e,t){/*gaugeValue*/8388608&t[0]&&b(a,"--p",/*gaugeValue*/e[23]+"deg"),/*displayedLimit*/16384&t[0]&&Y!==(Y=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)+"")&&v(f,Y),/*displayedLimit*/16384&t[0]&&I!==(I=/*displayedLimit*/e[14].limitCurrency+"")&&v(y,I),/*displayedLimit*/16384&t[0]&&L!==(L=`${/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&g(c,"title",L),/*gaugeValue*/8388608&t[0]&&b(E,"--transform-needle-value","rotate("+(/*gaugeValue*/e[23]-90)+"deg)"),/*displayedLimit*/16384&t[0]&&j!==(j=/*displayedLimit*/e[14].limitCurrency+"")&&v(H,j),/*displayedLimit*/16384&t[0]&&G!==(G=/*formatWithSeparator*/e[34](/*displayedLimit*/e[14].totalAmount)+"")&&v(R,G),/*displayedLimit*/16384&t[0]&&F!==(F=/*displayedLimit*/e[14].limitCurrency+"")&&v(B,F)},d(e){e&&u(t)}}}
|
|
1200
|
-
// (763:8) {#if isGaugeLoading}
|
|
1201
|
-
function fn(e){let t;return{c(){t=d("general-animation-loading"),y(t,"clientstyling",/*clientstyling*/e[3]),y(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){l(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&y(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&y(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&u(t)}}}
|
|
1202
|
-
// (610:8) {#if editlimitaction === 'true'}
|
|
1203
|
-
function pn(e){let t,i,n,r,a,s,c,y,b=/*$_*/e[25]("addLimitText")+"";return{c(){t=d("button"),i=d("span"),n=m(),r=d("span"),a=h(b),g(i,"class","ActionsSvg"),g(t,"class","AddLimitControl"),g(t,"title",s=/*$_*/e[25]("addLimitTitle"))},m(s,u){l(s,t,u),o(t,i),i.innerHTML=Oi,o(t,n),o(t,r),o(r,a),c||(y=f(t,"click",p(/*click_handler*/e[49])),c=!0)},p(e,i){/*$_*/33554432&i[0]&&b!==(b=/*$_*/e[25]("addLimitText")+"")&&v(a,b),/*$_*/33554432&i[0]&&s!==(s=/*$_*/e[25]("addLimitTitle"))&&g(t,"title",s)},d(e){e&&u(t),c=!1,y()}}}function gn(t){let i,n,r;function a(e,t){/*noLimitToDisplay*/
|
|
1204
|
-
return e[12]?Fi:/*errorMessage*/e[24]?Gi:ji}let s=a(t),c=s(t);return{c(){i=d("div"),n=d("div"),c.c(),this.c=e,g(n,"class","LimitsContainer"),g(i,"class",r=/*displayNone*/t[9]?"DisplayNone":"")},m(e,r){l(e,i,r),o(i,n),c.m(n,null),
|
|
1205
|
-
/*div0_binding*/t[59](n)},p(e,t){s===(s=a(e))&&c?c.p(e,t):(c.d(1),c=s(e),c&&(c.c(),c.m(n,null))),/*displayNone*/512&t[0]&&r!==(r=/*displayNone*/e[9]?"DisplayNone":"")&&g(i,"class",r)},i:e,o:e,d(e){e&&u(i),c.d(),
|
|
1206
|
-
/*div0_binding*/t[59](null)}}}function yn(e,t,i){let n;var r,a;r=Ei,a=e=>i(25,n=e),e.$$.on_destroy.push(s(r,a));let o,l,{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:v=""}=t,{datetimeformat:b=""}=t,{editlimitaction:L=""}=t,{deletelimitaction:w=""}=t,{cancelimitscheduleaction:T=""}=t,{getutctime:E=""}=t,S=!1,M=!1,A=!1,C="",H="",P=!0,x=!0,O=!1,R={id:"",totalAmount:null,spentAmount:"",limitCurrency:"EUR",remainingAmount:"",limitPeriod:"",limitProducts:"",from:"",to:""},N=[],U=[],B=[],Y="",I="",j="",G="",F=[],W=[],z=0,V="";const q={Daily:0,Weekly:1,Monthly:2};Object.keys(ki).forEach((e=>{Si(e,ki[e])})),
|
|
1207
|
-
/**
|
|
1208
|
-
* Sets the isMounted flag after a short delay when the component is first rendered.
|
|
1209
|
-
*/
|
|
1210
|
-
k((()=>{setTimeout((()=>{i(47,M=!0)}),50);
|
|
1211
|
-
// Define the function to handle clicks outside the dropdown
|
|
1212
|
-
const e=e=>{
|
|
1213
|
-
// Check if the click is outside the .ProductsDropdown
|
|
1214
|
-
e.target.closest(".ProductsDropdown")||
|
|
1215
|
-
// Close the dropdown
|
|
1216
|
-
i(13,O=!1)};
|
|
1217
|
-
// Add event listener to window for clicks
|
|
1218
|
-
// Cleanup function to remove event listener when component is unmounted
|
|
1219
|
-
return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}));
|
|
1220
|
-
/**
|
|
1221
|
-
* Sets the session information upon login.
|
|
1222
|
-
*/
|
|
1223
|
-
const Z=e=>{i(24,V=e)},X=async()=>{i(13,O=!1);try{if(F=await K(),0===F.length)return i(10,P=!1),void i(12,l=!0);i(16,U=[...new Set(F.map((e=>e.period)))].sort(((e,t)=>q[e]-q[t]))),I&&U.includes(I)||i(19,I=U[0]),i(15,N=Q(I)),Y&&N.includes(Y)||i(18,Y=N[0]),i(22,W=J(I,Y)),W.includes(G)||i(21,G=W[0]),ee((()=>{let e=F;
|
|
1224
|
-
// Return the first matching limit or the first limit in the list if no matches are found
|
|
1225
|
-
return I&&(e=e.filter((e=>e.period===I))),Y&&(e=e.filter((e=>e.walletTypes.includes(Y)))),j&&(e=e.filter((e=>e.type===j))),G&&(e=e.filter((e=>e.products.includes(G)))),e[0]||F[0]})())}catch(e){return i(10,P=!1),void Z(n("fetchLimitBalanceError"))}},K=async()=>{try{const e=new URL(`${h}/v1/player/${H}/limits/monetary/`),t={method:"GET",headers:{"X-SessionId":C,"X-Session-Type":c}},r=await fetch(e,t);if(!r.ok)throw new Error(n("fetchLimitDefError"));const a=await r.json(),s=["Deposit","Loss","Wagering"],o=a.limits.map((e=>e.type));i(17,B=Array.from(new Set(o)).filter((e=>s.includes(e)))),j||i(20,j=B[0]);const l=a.limits.filter((e=>e.type===j));return l.length>0?l:[]}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}},J=(e,t)=>{const i=F.filter((i=>i.period===e&&i.walletTypes[0]===t)),n=[];return i.forEach((e=>{e.products.forEach((e=>{-1===n.indexOf(e)&&n.push(e)}))})),n.sort()},Q=e=>{const t=F.filter((t=>t.period===e)),i=[];return t.forEach((e=>{e.walletTypes.forEach((e=>{-1===i.indexOf(e)&&i.push(e)}))})),i.sort()},ee=async e=>{try{i(10,P=!0);const t=new URL(`${h}/v1/player/${H}/limits/monetary/balance`);t.searchParams.append("limitDefinitionId",e.id);const r={method:"GET",headers:{"X-SessionId":C,"X-Session-Type":c}},a=await fetch(t,r);if(!a.ok)throw new Error(n("fetchLimitBalanceError"));const s=await a.json();te(s.limitBalances[0],e)}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}finally{i(10,P=!1)}},te=(e,t)=>{i(19,I=e.limitPeriod),i(21,G=e.limitProducts[0]),i(18,Y=e.limitWalletTypes[0]);const n=ie(t.id,t.schedules);i(14,R={id:t.id,totalAmount:e.limitAmount,spentAmount:e.spentBalance.amount.toFixed(2),limitCurrency:e.limitCurrency,remainingAmount:(e.limitAmount-e.spentBalance.amount).toFixed(2),limitPeriod:e.limitPeriod,limitProducts:G,from:e.from,to:e.to}),n&&i(14,R.formattedSchedule=n,R),re(R)},ie=(e,t)=>{const i=t.find((t=>t.playerLimitId===e));return i?{updateAmount:i.updateAmount,expires:i.applyAt,expiresString:ne(i.applyAt),id:i.id,isRemoved:i.updateAmount<1,isUpdated:i.updateAmount>0}:{updateAmount:"",expires:"",expiresString:"",id:"",isRemoved:!1,isUpdated:!1}},ne=e=>{const t="true"===E;return $(e).utc(t).format(b||"DD/MM/YYYY HH:mm:ss")},re=e=>{
|
|
1226
|
-
// Calculate newGaugeValue within [0, 180]
|
|
1227
|
-
let t=180/e.totalAmount*parseFloat(e.spentAmount);t=Math.min(180,Math.max(0,t));const n=setInterval((()=>{i(23,z+=z<t?1.5:-1.5),Math.abs(z-t)<=1.5&&(i(23,z=t),clearInterval(n))}));// Step size for increasing/decreasing gaugeValue
|
|
1228
|
-
i(11,x=!1)},ae=e=>{const t=F.find((t=>t.period===I&&t.products.includes(e)));i(14,R.limitProducts=e,R),i(13,O=!1),t&&ee(t)},se=()=>{var e;e=y,ri.set(e)},oe=()=>{i(13,O=!O)},le=(e,t)=>new Date(e.getTime()-24*t*60*60*1e3),ue=()=>{window.postMessage({type:"RGW:EditLimit",payload:{id:R.id}},window.location.href)},ce=()=>{window.postMessage({type:"RGW:DeleteLimit",payload:{id:R.id}},window.location.href)},de=()=>{R&&R.formattedSchedule&&window.postMessage({type:"RGW:CancelLimitSchedule",payload:{limitId:R.id,scheduleId:R.formattedSchedule.id}},window.location.href)},he=()=>{window.postMessage({type:"RGW:AddNewLimit"},window.location.href)};
|
|
1229
|
-
/**
|
|
1230
|
-
* Handles errors by updating the error message.
|
|
1231
|
-
*
|
|
1232
|
-
* @param error - The error message to be handled.
|
|
1233
|
-
*/return e.$$set=e=>{"session"in e&&i(40,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(41,d=e.userid),"endpoint"in e&&i(42,h=e.endpoint),"transdetailsurl"in e&&i(1,m=e.transdetailsurl),"transactionspageurl"in e&&i(2,f=e.transactionspageurl),"clientstyling"in e&&i(3,p=e.clientstyling),"clientstylingurl"in e&&i(4,g=e.clientstylingurl),"lang"in e&&i(43,y=e.lang),"translationurl"in e&&i(44,v=e.translationurl),"datetimeformat"in e&&i(45,b=e.datetimeformat),"editlimitaction"in e&&i(5,L=e.editlimitaction),"deletelimitaction"in e&&i(6,w=e.deletelimitaction),"cancelimitscheduleaction"in e&&i(7,T=e.cancelimitscheduleaction),"getutctime"in e&&i(46,E=e.getutctime)},e.$$.update=()=>{/*isMounted, session, userid*/67072&e.$$.dirty[1]&&M&&u&&d&&(i(48,A=!0),C=u,H=d),/*isMounted, isLoggedIn*/196608&e.$$.dirty[1]&&M&&A&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&X()})),/*isMounted, isLoggedIn*/196608&e.$$.dirty[1]&&M&&A&&X(),/*clientstyling, customStylingContainer*/264&e.$$.dirty[0]&&p&&o&&(()=>{let e=document.createElement("style");e.innerHTML=p,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/272&e.$$.dirty[0]&&g&&o&&(()=>{try{i(9,S=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1),setTimeout((()=>{i(9,S=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}})(),/*lang*/4096&e.$$.dirty[1]&&y&&se(),/*translationurl*/8192&e.$$.dirty[1]&&v&&(()=>{let e=new URL(v);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Si(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,L,w,T,o,S,P,x,l,O,R,N,U,B,Y,I,j,G,W,z,V,n,{All:"All",RealCash:"Real Money"},X,ne,e=>{switch(e){case"Deposit":return n("depositLimitHeader");case"Loss":return n("lossLimitHeader");case"Wagering":return n("wageringLimitHeader");default:return""}},e=>{const t=e.currentTarget;i(19,I=t.value),i(15,N=Q(I)),Y&&N.includes(Y)||i(18,Y=N[0]),i(22,W=J(I,Y)),i(13,O=!1),W.includes(G)||i(21,G=W[0]);const n=F.find((e=>e.period===I&&e.walletTypes[0]===Y&&e.products.includes(G)));n&&ee(n)},e=>{const t=e.currentTarget;i(18,Y=t.value),i(22,W=J(I,Y)),i(13,O=!1),W.includes(G)||i(21,G=W[0]);const n=F.find((e=>e.period===I&&e.walletTypes[0]===Y&&e.products.includes(G)));n&&ee(n)},ae,oe,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{const e=f,t="Deposit"===j?"payment-transactions":"gaming-transactions",i=le(new Date(R.to),{Daily:1,Weekly:7,Monthly:30}[I]);try{const n=new URL(`${e}/gammatrix/gmwi/${t}`);switch(n.searchParams.append("transStatuses","2"),n.searchParams.append("startTime",i.toISOString()),n.searchParams.append("endTime",(new Date).toISOString()),n.searchParams.append("dateOption","Select custom dates"),n.searchParams.append("userId",d),j){case"Deposit":n.searchParams.append("transTypes","1");break;case"Wagering":n.searchParams.append("transTypes","12");break;case"Loss":n.searchParams.append("transTypes","8")}return n.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;Z(t)}},ue,ce,de,he,u,d,h,y,v,b,E,M,A,()=>he(),()=>oe(),e=>ae(e),function(){Y=_(this),i(18,Y),i(15,N)},function(){I=_(this),i(19,I),i(16,U)},function(){j=_(this),i(20,j),i(17,B)},()=>he(),()=>ue(),()=>ce(),()=>de(),function(e){D[e?"unshift":"push"]((()=>{o=e,i(8,o)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Ni,Ri,a,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}});class vn extends G{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.DisplayNone{display:none}.ContainerCenter{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ContainerCenter p{padding:6px}.ErrorMessage{margin:0 15px;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:700px;min-height:150px;border:1px solid var(--emw--color-primary, #307fe2);border-radius:var(--emw--border-radius-large, 20px);overflow:hidden;box-shadow:14px 26px 19.7px 0px var(--emw--color-gray-150, #76768B);gap:25px;padding:25px}.ContentLeft{line-height:20px;flex:1}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #76768B);margin-bottom:20px;gap:5px}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{font-weight:var(--emw--font-weight-bold, 700)}.CaretRight{color:var(--emw--color-primary, #307fe2)}.ContentRight{min-width:300px;display:flex;justify-content:center;flex-direction:column}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{color:var(--emw--color-primary, #307fe2);text-decoration:underline}.AddLimitControl{border:0.1rem solid var(--emw--color-primary, #307fe2);border-radius:var(--emw--border-radius-small, 0.3rem);min-height:1rem;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-primary, #307fe2);padding:0.3rem;cursor:pointer;min-width:10rem;display:flex;flex-direction:row;align-items:center;justify-content:center}.WidgetControls{display:flex;width:100%;justify-content:end;gap:10px}.ControlContainer label{display:block;width:100%;font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-bold, 700);margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 5px);width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer select{max-width:100px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 5px);width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.AddLimitControl .ActionsSvg{height:2em;width:2em;display:flex;justify-content:center;cursor:pointer;padding:5px;margin-right:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--color-white, #FFFFFF)}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:var(--emw--color-black, #000000);margin:1rem 0;flex:1;align-content:center}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b:26px;border-radius:500px 500px 0 0;background:var(--emw--gauge-fill-bg, var(--emw--color-primary, #307fe2));mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;-webkit-mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;mask-composite:intersect;-webkit-mask-composite:destination-in}.GaugeFill::before{content:"";display:block;padding-top:50%}.GaugeCover{position:absolute;left:50%;transform:translateX(-50%);top:50%;font-size:var(--emw--font-size-large, 18px);white-space:nowrap;width:130px;max-width:200px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #307fe2) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between;margin-top:10px}.ProductSelector{position:relative;margin-bottom:20px}.DisplayContainer{border:1px solid var(--emw--color-primary, #307fe2);background-color:var(--emw--color-gray-100, #f5f5f5);border-radius:var(--emw--border-radius-medium, 12px);box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.25);padding:9px;display:flex;align-items:center;justify-content:space-between;color:var(--emw--color-contrast, #07072A);gap:5px;margin-top:20px}.SelectedProduct{font-weight:var(--emw--font-weight-bold, 700);text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:var(--emw--font-size-2x-large, 36px);align-items:baseline;gap:5px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;line-height:normal;justify-content:center;white-space:nowrap;max-width:188px;flex:1;text-align:center}.TotalAmount .Currency{font-size:var(--emw--font-size-x-large, 24px)}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:var(--emw--color-gray-100, #f5f5f5);width:100%;box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:1;border:1px solid var(--emw--color-primary, #307fe2)}.ProductsDropdown.Show{display:block;border-radius:var(--emw--border-radius-medium, 12px)}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:var(--emw--font-weight-bold, 700)}.ProductsDropdown button:hover{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-primary, #307fe2);color:var(--emw--color-white, #FFFFFF)}.DropdownToggle{width:35px;height:35px;display:flex;justify-content:center;align-items:center;background:none;border:none;cursor:pointer;color:var(--emw--color-primary, #307fe2);line-height:0}.DropdownToggle.Active{transform:rotate(90deg)}.Row{display:flex}.Col{flex:1}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},yn,gn,a,{session:40,sessiontype:0,userid:41,endpoint:42,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:43,translationurl:44,datetimeformat:45,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7,getutctime:46},null,[-1,-1,-1]),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat","editlimitaction","deletelimitaction","cancelimitscheduleaction","getutctime"]}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),N()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),N()}get userid(){return this.$$.ctx[41]}set userid(e){this.$$set({userid:e}),N()}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$$set({endpoint:e}),N()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),N()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),N()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get lang(){return this.$$.ctx[43]}set lang(e){this.$$set({lang:e}),N()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),N()}get datetimeformat(){return this.$$.ctx[45]}set datetimeformat(e){this.$$set({datetimeformat:e}),N()}get editlimitaction(){return this.$$.ctx[5]}set editlimitaction(e){this.$$set({editlimitaction:e}),N()}get deletelimitaction(){return this.$$.ctx[6]}set deletelimitaction(e){this.$$set({deletelimitaction:e}),N()}get cancelimitscheduleaction(){return this.$$.ctx[7]}set cancelimitscheduleaction(e){this.$$set({cancelimitscheduleaction:e}),N()}get getutctime(){return this.$$.ctx[46]}set getutctime(e){this.$$set({getutctime:e}),N()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",vn),vn}));
|
|
1234
|
-
//# sourceMappingURL=player-rglimits.js.map
|