@everymatrix/user-transaction-history 1.85.16 → 1.85.18
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.
|
@@ -2381,6 +2381,8 @@ function setClientStyling(stylingContainer, clientStyling) {
|
|
|
2381
2381
|
* @param {string} clientStylingUrl The URL of the style content
|
|
2382
2382
|
*/
|
|
2383
2383
|
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
2384
|
+
if (!stylingContainer || !clientStylingUrl) return;
|
|
2385
|
+
|
|
2384
2386
|
const url = new URL(clientStylingUrl);
|
|
2385
2387
|
|
|
2386
2388
|
fetch(url.href)
|
|
@@ -2377,6 +2377,8 @@ function setClientStyling(stylingContainer, clientStyling) {
|
|
|
2377
2377
|
* @param {string} clientStylingUrl The URL of the style content
|
|
2378
2378
|
*/
|
|
2379
2379
|
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
2380
|
+
if (!stylingContainer || !clientStylingUrl) return;
|
|
2381
|
+
|
|
2380
2382
|
const url = new URL(clientStylingUrl);
|
|
2381
2383
|
|
|
2382
2384
|
fetch(url.href)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as t,r as e,g as i,H as o,a as r,c as s}from"./index-6e523641.js";class n{constructor(){}static async loadCustomTranslations(t){try{const e=await fetch(t,{headers:{"Content-Type":"application/json"}});if(!e.ok){const t=await e.text();throw new Error(t)}const i=await e.json();n.updateTranslations(i)}catch(e){console.error(`Failed to load translations ${t}. ${e.message}`)}}static translate(t,e){var i,o;const r=n.getAvaliableLanguages(e);return(null===(o=null===(i=n.customTranslation)||void 0===i?void 0:i[r.customLanguage])||void 0===o?void 0:o[t])||n.defaultTranslation[r.predefinedLanguage][t]}static getAvaliableLanguages(t){var e;const i=(null===(e=n.customLanguages)||void 0===e?void 0:e.includes(t))?t:n.defaultLanguage;return{predefinedLanguage:n.supportedLanguages.includes(t)?t:n.defaultLanguage,customLanguage:i}}static updateTranslations(t){n.customLanguages=Array.from(new Set([...n.supportedLanguages,...Object.keys(t).map((t=>t.toLowerCase()))])),n.customTranslation=t}}n.defaultLanguage="en",n.supportedLanguages=["en"],n.defaultTranslation={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};const a=()=>t("div",{class:"loader"},t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null));function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function c(t){h(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===l(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function d(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function u(t,e){return h(2,arguments),function(t,e){h(2,arguments);var i=c(t).getTime(),o=d(e);return new Date(i+o)}(t,-d(e))}function p(t){h(1,arguments);var e=c(t),i=e.getUTCDay(),o=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e}function m(t){h(1,arguments);var e=c(t),i=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(i+1,0,4),o.setUTCHours(0,0,0,0);var r=p(o),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=p(s);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function v(t){h(1,arguments);var e=c(t),i=p(e).getTime()-function(t){h(1,arguments);var e=m(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),p(i)}(e).getTime();return Math.round(i/6048e5)+1}var f={};function b(){return f}function g(t,e){var i,o,r,s,n,a,l,u;h(1,arguments);var p=b(),m=d(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:p.weekStartsOn)&&void 0!==o?o:null===(l=p.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=c(t),f=v.getUTCDay(),g=(f<m?7:0)+f-m;return v.setUTCDate(v.getUTCDate()-g),v.setUTCHours(0,0,0,0),v}function y(t,e){var i,o,r,s,n,a,l,u;h(1,arguments);var p=c(t),m=p.getUTCFullYear(),v=b(),f=d(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:v.firstWeekContainsDate)&&void 0!==o?o:null===(l=v.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,f),y.setUTCHours(0,0,0,0);var w=g(y,e),x=new Date(0);x.setUTCFullYear(m,0,f),x.setUTCHours(0,0,0,0);var _=g(x,e);return p.getTime()>=w.getTime()?m+1:p.getTime()>=_.getTime()?m:m-1}function w(t,e){h(1,arguments);var i=c(t),o=g(i,e).getTime()-function(t,e){var i,o,r,s,n,a,l,c;h(1,arguments);var u=b(),p=d(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:1),m=y(t,e),v=new Date(0);return v.setUTCFullYear(m,0,p),v.setUTCHours(0,0,0,0),g(v,e)}(i,e).getTime();return Math.round(o/6048e5)+1}function x(t,e){for(var i=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return i+o}const _=function(t,e){var i=t.getUTCFullYear(),o=i>0?i:1-i;return x("yy"===e?o%100:o,e.length)},k=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):x(i+1,2)},C=function(t,e){return x(t.getUTCDate(),e.length)},A=function(t,e){return x(t.getUTCHours()%12||12,e.length)},S=function(t,e){return x(t.getUTCHours(),e.length)},z=function(t,e){return x(t.getUTCMinutes(),e.length)},T=function(t,e){return x(t.getUTCSeconds(),e.length)},I=function(t,e){var i=e.length,o=t.getUTCMilliseconds();return x(Math.floor(o*Math.pow(10,i-3)),e.length)};function D(t,e){var i=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(0===s)return i+String(r);var n=e||"";return i+String(r)+n+x(s,2)}function M(t,e){return t%60==0?(t>0?"-":"+")+x(Math.abs(t)/60,2):E(t,e)}function E(t,e){var i=e||"",o=t>0?"-":"+",r=Math.abs(t);return o+x(Math.floor(r/60),2)+i+x(r%60,2)}const O={G:function(t,e,i){var o=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var o=t.getUTCFullYear();return i.ordinalNumber(o>0?o:1-o,{unit:"year"})}return _(t,e)},Y:function(t,e,i,o){var r=y(t,o),s=r>0?r:1-r;return"YY"===e?x(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):x(s,e.length)},R:function(t,e){return x(m(t),e.length)},u:function(t,e){return x(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return x(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return x(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){var o=t.getUTCMonth();switch(e){case"M":case"MM":return k(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){var o=t.getUTCMonth();switch(e){case"L":return String(o+1);case"LL":return x(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){var r=w(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):x(r,e.length)},I:function(t,e,i){var o=v(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):x(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):C(t,e)},D:function(t,e,i){var o=function(t){h(1,arguments);var e=c(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime();return Math.floor((i-o)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):x(o,e.length)},E:function(t,e,i){var o=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return x(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return x(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var o=t.getUTCDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return x(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){var o=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){var o,r=t.getUTCHours();switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){var o,r=t.getUTCHours();switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var o=t.getUTCHours()%12;return 0===o&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return A(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):S(t,e)},K:function(t,e,i){var o=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):x(o,e.length)},k:function(t,e,i){var o=t.getUTCHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):x(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):z(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):T(t,e)},S:function(t,e){return I(t,e)},X:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return M(r);case"XXXX":case"XX":return E(r);default:return E(r,":")}},x:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"x":return M(r);case"xxxx":case"xx":return E(r);default:return E(r,":")}},O:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+D(r,":");default:return"GMT"+E(r,":")}},z:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+D(r,":");default:return"GMT"+E(r,":")}},t:function(t,e,i,o){return x(Math.floor((o._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,o){return x((o._originalDate||t).getTime(),e.length)}};var P=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},B=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},N={p:B,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return P(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",P(r,e)).replace("{{time}}",B(s,e))}};const j=N;function F(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var L=["D","DD"],R=["YY","YYYY"];function $(t){return-1!==L.indexOf(t)}function q(t){return-1!==R.indexOf(t)}function V(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function U(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Y,H={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},G={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function K(t){return function(e,i){var o;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,s=null!=i&&i.width?String(i.width):r;o=t.formattingValues[s]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;o=t.values[a]||t.values[n]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Q(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.width,r=e.match(o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var s,n=r[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return s=t.valueCallback?t.valueCallback(l):l,{value:s=i.valueCallback?i.valueCallback(s):s,rest:e.slice(n.length)}}}const J={code:"en-US",formatDistance:function(t,e,i){var o,r=W[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:H,formatRelative:function(t){return G[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:K({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Y.matchPattern);if(!i)return null;var o=i[0],r=t.match(Y.parsePattern);if(!r)return null;var s=Y.valueCallback?Y.valueCallback(r[0]):r[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(o.length)}}),era:Q({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var X=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tt=/^'([^]*?)'?$/,et=/''/g,it=/[a-zA-Z]/;function ot(t,e,i){var o,r,s,n,a,p,m,v,f,g,y,w,x,_,k,C,A,S;h(2,arguments);var z=String(e),T=b(),I=null!==(o=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:T.locale)&&void 0!==o?o:J,D=d(null!==(s=null!==(n=null!==(a=null!==(p=null==i?void 0:i.firstWeekContainsDate)&&void 0!==p?p:null==i||null===(m=i.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==a?a:T.firstWeekContainsDate)&&void 0!==n?n:null===(f=T.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==s?s:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=d(null!==(y=null!==(w=null!==(x=null!==(_=null==i?void 0:i.weekStartsOn)&&void 0!==_?_:null==i||null===(k=i.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==x?x:T.weekStartsOn)&&void 0!==w?w:null===(A=T.locale)||void 0===A||null===(S=A.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==y?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var E=c(t);if(!function(t){if(h(1,arguments),!function(t){return h(1,arguments),t instanceof Date||"object"===l(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=c(t);return!isNaN(Number(e))}(E))throw new RangeError("Invalid time value");var P=u(E,F(E)),B={firstWeekContainsDate:D,weekStartsOn:M,locale:I,_originalDate:E};return z.match(Z).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,j[e])(t,I.formatLong):t})).join("").match(X).map((function(o){if("''"===o)return"'";var r,s,n=o[0];if("'"===n)return(s=(r=o).match(tt))?s[1].replace(et,"'"):r;var a=O[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!q(o)||V(o,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!$(o)||V(o,e,String(t)),a(P,o,I.localize,B);if(n.match(it))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return o})).join("")}class rt{constructor(){}static dateToFormatedString(t,e){return`${e?ot(t,e):t.toLocaleDateString("en-gb")}, ${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}`}}class st{constructor(){}static format(t,e){let i=`${e} ${t}`;try{i=new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e)}catch(t){}return i}}const nt=e=>t("div",{class:"data-transaction"},t("p",null,e.productType),t("p",{class:"text-style text-style-status"},t("span",{class:e.status.toLowerCase()},e.status)),t("p",{class:"date"},e.transId," | ",rt.dateToFormatedString(new Date(e.created),e.dateformat)),t("p",{class:"text-style"},st.format(e.currency,e.realAmount)," ")),at=e=>t("div",{class:"page-size"},t("span",null,n.translate("show",e.language)),e.pageSizes.map((i=>t("button",{class:e.currentPageSize===i?"active":"",onClick:()=>e.changePageSize(i)},i)))),lt=({source:e,language:i,dateformat:o})=>{const r=[{name:n.translate("transactionId",i)},{name:n.translate("date",i)},{name:n.translate("amount",i)},{name:n.translate("productType",i)},{name:n.translate("status",i)}];return t("table",null,t("thead",null,t("tr",null,r.map((e=>t("th",null,e.name))))),t("tbody",null,e.map((e=>t("tr",null,t("td",null,e.transId),t("td",null,rt.dateToFormatedString(new Date(e.created),o)),t("td",null,st.format(e.currency,e.realAmount)," "),t("td",null,e.productType),t("td",null,t("span",{class:e.status.toLowerCase()},e.status)))))))};function ht(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function ct(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function ut(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return dt(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?dt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,s=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw s}}}}function pt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}function ft(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vt(t,e)}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}function gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gt=function(){return!!t})()}function yt(t){var e=gt();return function(){var i,o=bt(t);if(e){var r=bt(this).constructor;i=Reflect.construct(o,arguments,r)}else i=o.apply(this,arguments);return function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mt(t)}(this,i)}}function wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xt(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function _t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,xt(o.key),o)}}function kt(t,e,i){return e&&_t(t.prototype,e),i&&_t(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ct(t,e,i){return(e=xt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var At=function(){function t(){wt(this,t),Ct(this,"priority",void 0),Ct(this,"subPriority",0)}return kt(t,[{key:"validate",value:function(){return!0}}]),t}(),St=function(){ft(e,At);var t=yt(e);function e(i,o,r,s,n){var a;return wt(this,e),(a=t.call(this)).value=i,a.validateValue=o,a.setValue=r,a.priority=s,n&&(a.subPriority=n),a}return kt(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),zt=function(){ft(e,At);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",10),Ct(mt(i),"subPriority",-1),i}return kt(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Tt=function(){function t(){wt(this,t),Ct(this,"incompatibleTokens",void 0),Ct(this,"priority",void 0),Ct(this,"subPriority",void 0)}return kt(t,[{key:"run",value:function(t,e,i,o){var r=this.parse(t,e,i,o);return r?{setter:new St(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),It=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",140),Ct(mt(i),"incompatibleTokens",["R","u","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Dt=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Et=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ot=/^(5[0-3]|[0-4]?\d)/,Pt=/^(2[0-3]|[0-1]?\d)/,Bt=/^(2[0-4]|[0-1]?\d)/,Nt=/^(1[0-1]|0?\d)/,jt=/^(1[0-2]|0?\d)/,Ft=/^[0-5]?\d/,Lt=/^[0-5]?\d/,Rt=/^\d/,$t=/^\d{1,2}/,qt=/^\d{1,3}/,Vt=/^\d{1,4}/,Wt=/^-?\d+/,Ut=/^-?\d/,Yt=/^-?\d{1,2}/,Ht=/^-?\d{1,3}/,Gt=/^-?\d{1,4}/,Kt=/^([+-])(\d{2})(\d{2})?|Z/,Qt=/^([+-])(\d{2})(\d{2})|Z/,Jt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Xt=/^([+-])(\d{2}):(\d{2})|Z/,Zt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function te(t,e){return t?{value:e(t.value),rest:t.rest}:t}function ee(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function ie(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function oe(t){return ee(Wt,t)}function re(t,e){switch(t){case 1:return ee(Rt,e);case 2:return ee($t,e);case 3:return ee(qt,e);case 4:return ee(Vt,e);default:return ee(new RegExp("^\\d{1,"+t+"}"),e)}}function se(t,e){switch(t){case 1:return ee(Ut,e);case 2:return ee(Yt,e);case 3:return ee(Ht,e);case 4:return ee(Gt,e);default:return ee(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ne(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ae(t,e){var i,o=e>0,r=o?e:1-e;if(r<=50)i=t||100;else{var s=r+50;i=t+100*Math.floor(s/100)-(t>=s%100?100:0)}return o?i:1-i}function le(t){return t%400==0||t%4==0&&t%100!=0}var he=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return te(re(4,t),o);case"yo":return te(i.ordinalNumber(t,{unit:"year"}),o);default:return te(re(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var o=t.getUTCFullYear();if(i.isTwoDigitYear){var r=ae(i.year,o);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),ce=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return te(re(4,t),o);case"Yo":return te(i.ordinalNumber(t,{unit:"year"}),o);default:return te(re(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,o){var r=y(t,o);if(i.isTwoDigitYear){var s=ae(i.year,r);return t.setUTCFullYear(s,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),g(t,o)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),g(t,o)}}]),e}(),de=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e){return se("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var o=new Date(0);return o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0),p(o)}}]),e}(),ue=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e){return se("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),pe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",120),Ct(mt(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return re(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),me=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",120),Ct(mt(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return re(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),ve=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ct(mt(i),"priority",110),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"M":return te(ee(Dt,t),o);case"MM":return te(re(2,t),o);case"Mo":return te(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),fe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",110),Ct(mt(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"L":return te(ee(Dt,t),o);case"LL":return te(re(2,t),o);case"Lo":return te(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),be=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",100),Ct(mt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return ee(Ot,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,o){return g(function(t,e,i){h(2,arguments);var o=c(t),r=d(e),s=w(o,i)-r;return o.setUTCDate(o.getUTCDate()-7*s),o}(t,i,o),o)}}]),e}(),ge=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",100),Ct(mt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return ee(Ot,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return p(function(t,e){h(2,arguments);var i=c(t),o=d(e),r=v(i)-o;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),ye=[31,28,31,30,31,30,31,31,30,31,30,31],we=[31,29,31,30,31,30,31,31,30,31,30,31],xe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"subPriority",1),Ct(mt(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return ee(Mt,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){var i=le(t.getUTCFullYear()),o=t.getUTCMonth();return i?e>=1&&e<=we[o]:e>=1&&e<=ye[o]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),_e=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"subpriority",1),Ct(mt(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return ee(Et,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return le(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function ke(t,e,i){var o,r,s,n,a,l,u,p;h(2,arguments);var m=b(),v=d(null!==(o=null!==(r=null!==(s=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:m.weekStartsOn)&&void 0!==r?r:null===(u=m.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==o?o:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=c(t),g=d(e),y=((g%7+7)%7<v?7:0)+g-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+y),f}var Ce=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=ke(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Ae=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return te(re(e.length,t),r);case"eo":return te(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=ke(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Se=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return te(re(e.length,t),r);case"co":return te(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=ke(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),ze=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return re(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return te(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return te(i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return te(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);default:return te(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){h(2,arguments);var i=d(e);i%7==0&&(i-=7);var o=c(t),r=((i%7+7)%7<1?7:0)+i-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+r),o}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Te=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",80),Ct(mt(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ne(i),0,0,0),t}}]),e}(),Ie=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",80),Ct(mt(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ne(i),0,0,0),t}}]),e}(),De=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",80),Ct(mt(i),"incompatibleTokens",["a","b","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ne(i),0,0,0),t}}]),e}(),Me=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["H","K","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return ee(jt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:o||12!==i?i:0,0,0,0),t}}]),e}(),Ee=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return ee(Pt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),Oe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["h","H","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return ee(Nt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:i,0,0,0),t}}]),e}(),Pe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return ee(Bt,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),Be=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",60),Ct(mt(i),"incompatibleTokens",["t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return ee(Ft,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),Ne=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",50),Ct(mt(i),"incompatibleTokens",["t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return ee(Lt,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),je=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",30),Ct(mt(i),"incompatibleTokens",["t","T"]),i}return kt(e,[{key:"parse",value:function(t,e){return te(re(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),Fe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",10),Ct(mt(i),"incompatibleTokens",["t","T","x"]),i}return kt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return ie(Kt,t);case"XX":return ie(Qt,t);case"XXXX":return ie(Jt,t);case"XXXXX":return ie(Zt,t);default:return ie(Xt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Le=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",10),Ct(mt(i),"incompatibleTokens",["t","T","X"]),i}return kt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return ie(Kt,t);case"xx":return ie(Qt,t);case"xxxx":return ie(Jt,t);case"xxxxx":return ie(Zt,t);default:return ie(Xt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Re=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",40),Ct(mt(i),"incompatibleTokens","*"),i}return kt(e,[{key:"parse",value:function(t){return oe(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),$e=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",20),Ct(mt(i),"incompatibleTokens","*"),i}return kt(e,[{key:"parse",value:function(t){return oe(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),qe={G:new It,y:new he,Y:new ce,R:new de,u:new ue,Q:new pe,q:new me,M:new ve,L:new fe,w:new be,I:new ge,d:new xe,D:new _e,E:new Ce,e:new Ae,c:new Se,i:new ze,a:new Te,b:new Ie,B:new De,h:new Me,H:new Ee,K:new Oe,k:new Pe,m:new Be,s:new Ne,S:new je,X:new Fe,x:new Le,t:new Re,T:new $e},Ve=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,We=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ue=/^'([^]*?)'?$/,Ye=/''/g,He=/\S/,Ge=/[a-zA-Z]/;function Ke(t,e,i,o){var r,s,n,a,p,m,v,f,g,y,w,x,_,k,C,A,S,z;h(3,arguments);var T=String(t),I=String(e),D=b(),M=null!==(r=null!==(s=null==o?void 0:o.locale)&&void 0!==s?s:D.locale)&&void 0!==r?r:J;if(!M.match)throw new RangeError("locale must contain match property");var E=d(null!==(n=null!==(a=null!==(p=null!==(m=null==o?void 0:o.firstWeekContainsDate)&&void 0!==m?m:null==o||null===(v=o.locale)||void 0===v||null===(f=v.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==p?p:D.firstWeekContainsDate)&&void 0!==a?a:null===(g=D.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==n?n:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=d(null!==(w=null!==(x=null!==(_=null!==(k=null==o?void 0:o.weekStartsOn)&&void 0!==k?k:null==o||null===(C=o.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==_?_:D.weekStartsOn)&&void 0!==x?x:null===(S=D.locale)||void 0===S||null===(z=S.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==w?w:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===I)return""===T?c(i):new Date(NaN);var P,B={firstWeekContainsDate:E,weekStartsOn:O,locale:M},N=[new zt],L=I.match(We).map((function(t){var e=t[0];return e in j?(0,j[e])(t,M.formatLong):t})).join("").match(Ve),R=[],W=ut(L);try{var U=function(){var e=P.value;null!=o&&o.useAdditionalWeekYearTokens||!q(e)||V(e,I,t),null!=o&&o.useAdditionalDayOfYearTokens||!$(e)||V(e,I,t);var i=e[0],r=qe[i];if(r){var s=r.incompatibleTokens;if(Array.isArray(s)){var n=R.find((function(t){return s.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));R.push({token:i,fullToken:e});var a=r.run(T,e,M.match,B);if(!a)return{v:new Date(NaN)};N.push(a.setter),T=a.rest}else{if(i.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Ue)[1].replace(Ye,"'")),0!==T.indexOf(e))return{v:new Date(NaN)};T=T.slice(e.length)}};for(W.s();!(P=W.n()).done;){var Y=U();if("object"===l(Y))return Y.v}}catch(t){W.e(t)}finally{W.f()}if(T.length>0&&He.test(T))return new Date(NaN);var H=N.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return N.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),G=c(i);if(isNaN(G.getTime()))return new Date(NaN);var K,Q=u(G,F(G)),X={},Z=ut(H);try{for(Z.s();!(K=Z.n()).done;){var tt=K.value;if(!tt.validate(Q,B))return new Date(NaN);var et=tt.set(Q,X,B);Array.isArray(et)?(Q=et[0],pt(X,et[1])):Q=et}}catch(t){Z.e(t)}finally{Z.f()}return Q}const Qe=class{constructor(t){e(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=n.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,e){t!=e&&ht(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&ct(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl&&await n.loadCustomTranslations(this.translationUrl),this.to=ot(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=ot(function(t,e){return h(2,arguments),function(t,e){h(2,arguments);var i=c(t),o=d(e);if(isNaN(o))return new Date(NaN);if(!o)return i;var r=i.getDate(),s=new Date(i.getTime());return s.setMonth(i.getMonth()+o+1,0),r>=s.getDate()?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}(t,-d(e))}(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&ht(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&ct(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let e=this.el.getBoundingClientRect().height-(null===(t=this.el.shadowRoot.querySelector(".table"))||void 0===t?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;(null===(t=this.pagination)||void 0===t?void 0:t.previous)&&this.page--}next(){var t;(null===(t=this.pagination)||void 0===t?void 0:t.next)&&this.page++}applyFilters(t,e){this.from=t,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var e;const r=i("../assets/filter.svg"),s=i("../assets/warning.svg");return t(o,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?t(a,null):"",t("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:t=>this.stylingContainer=t},this.mobile?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"TransactionTitleMobile"},n.translate("transactionTitle",this.language))):t("h2",{class:"TransactionTitle"},n.translate("transactionTitle",this.language)),t("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},t("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+("0"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("0")},n.translate("deposit",this.language)),t("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+("1"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("1")},n.translate("withdrawals",this.language))),this.mobile?"":t(at,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:t=>this.changePageSize(t)}),this.mobile?t("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},t("img",{src:r,alt:"Filter"}),n.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?t("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:t,to:e}})=>this.applyFilters(t,e),from:this.from,to:this.to,dateformat:this.dateFormat}):"",(null===(e=this.transactions)||void 0===e?void 0:e.length)>0?t("div",{class:"table"},this.mobile?t("div",{class:"mobile-table"},this.transactions.map((e=>t(nt,Object.assign({},e,{dateformat:this.dateFormat}))))):t(lt,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):t("div",{class:"noData"},t("img",{src:s,alt:"Warning"}),t("span",null,n.translate("noData",this.language))),t("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},t("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),t("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}async loadTransactions(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=await fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const t=await e.text();throw new Error(t)}const i=await e.json();this.pagination=i.pagination,this.transactions=i.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}}formatDateForApi(t){return ot(Ke(t,`${this.dateFormat||"yyyy-MM-dd"}`,new Date),"yyyy-MM-dd")}getParams(){const t=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from);return`offset=${t}&endDate=${this.formatDateForApi(this.to)}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return r(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};Qe.style=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}';var Je=Object.defineProperty,Xe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,oi=(t,e,i)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ri=(t,e)=>{for(var i in e||(e={}))ei.call(e,i)&&oi(t,i,e[i]);if(ti)for(var i of ti(e))ii.call(e,i)&&oi(t,i,e[i]);return t},si=(t,e)=>Xe(t,Ze(e)),ni=(t,e,i)=>(oi(t,"symbol"!=typeof e?e+"":e,i),i),ai=(t,e,i)=>new Promise(((o,r)=>{var s=t=>{try{a(i.next(t))}catch(t){r(t)}},n=t=>{try{a(i.throw(t))}catch(t){r(t)}},a=t=>t.done?o(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}))
|
|
1
|
+
import{h as t,r as e,g as i,H as o,a as r,c as s}from"./index-6e523641.js";class n{constructor(){}static async loadCustomTranslations(t){try{const e=await fetch(t,{headers:{"Content-Type":"application/json"}});if(!e.ok){const t=await e.text();throw new Error(t)}const i=await e.json();n.updateTranslations(i)}catch(e){console.error(`Failed to load translations ${t}. ${e.message}`)}}static translate(t,e){var i,o;const r=n.getAvaliableLanguages(e);return(null===(o=null===(i=n.customTranslation)||void 0===i?void 0:i[r.customLanguage])||void 0===o?void 0:o[t])||n.defaultTranslation[r.predefinedLanguage][t]}static getAvaliableLanguages(t){var e;const i=(null===(e=n.customLanguages)||void 0===e?void 0:e.includes(t))?t:n.defaultLanguage;return{predefinedLanguage:n.supportedLanguages.includes(t)?t:n.defaultLanguage,customLanguage:i}}static updateTranslations(t){n.customLanguages=Array.from(new Set([...n.supportedLanguages,...Object.keys(t).map((t=>t.toLowerCase()))])),n.customTranslation=t}}n.defaultLanguage="en",n.supportedLanguages=["en"],n.defaultTranslation={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};const a=()=>t("div",{class:"loader"},t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null));function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function c(t){h(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===l(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function d(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function u(t,e){return h(2,arguments),function(t,e){h(2,arguments);var i=c(t).getTime(),o=d(e);return new Date(i+o)}(t,-d(e))}function p(t){h(1,arguments);var e=c(t),i=e.getUTCDay(),o=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e}function m(t){h(1,arguments);var e=c(t),i=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(i+1,0,4),o.setUTCHours(0,0,0,0);var r=p(o),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=p(s);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function v(t){h(1,arguments);var e=c(t),i=p(e).getTime()-function(t){h(1,arguments);var e=m(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),p(i)}(e).getTime();return Math.round(i/6048e5)+1}var f={};function b(){return f}function g(t,e){var i,o,r,s,n,a,l,u;h(1,arguments);var p=b(),m=d(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:p.weekStartsOn)&&void 0!==o?o:null===(l=p.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=c(t),f=v.getUTCDay(),g=(f<m?7:0)+f-m;return v.setUTCDate(v.getUTCDate()-g),v.setUTCHours(0,0,0,0),v}function y(t,e){var i,o,r,s,n,a,l,u;h(1,arguments);var p=c(t),m=p.getUTCFullYear(),v=b(),f=d(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:v.firstWeekContainsDate)&&void 0!==o?o:null===(l=v.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,f),y.setUTCHours(0,0,0,0);var w=g(y,e),x=new Date(0);x.setUTCFullYear(m,0,f),x.setUTCHours(0,0,0,0);var _=g(x,e);return p.getTime()>=w.getTime()?m+1:p.getTime()>=_.getTime()?m:m-1}function w(t,e){h(1,arguments);var i=c(t),o=g(i,e).getTime()-function(t,e){var i,o,r,s,n,a,l,c;h(1,arguments);var u=b(),p=d(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:1),m=y(t,e),v=new Date(0);return v.setUTCFullYear(m,0,p),v.setUTCHours(0,0,0,0),g(v,e)}(i,e).getTime();return Math.round(o/6048e5)+1}function x(t,e){for(var i=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return i+o}const _=function(t,e){var i=t.getUTCFullYear(),o=i>0?i:1-i;return x("yy"===e?o%100:o,e.length)},k=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):x(i+1,2)},C=function(t,e){return x(t.getUTCDate(),e.length)},A=function(t,e){return x(t.getUTCHours()%12||12,e.length)},S=function(t,e){return x(t.getUTCHours(),e.length)},z=function(t,e){return x(t.getUTCMinutes(),e.length)},T=function(t,e){return x(t.getUTCSeconds(),e.length)},I=function(t,e){var i=e.length,o=t.getUTCMilliseconds();return x(Math.floor(o*Math.pow(10,i-3)),e.length)};function D(t,e){var i=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(0===s)return i+String(r);var n=e||"";return i+String(r)+n+x(s,2)}function M(t,e){return t%60==0?(t>0?"-":"+")+x(Math.abs(t)/60,2):E(t,e)}function E(t,e){var i=e||"",o=t>0?"-":"+",r=Math.abs(t);return o+x(Math.floor(r/60),2)+i+x(r%60,2)}const O={G:function(t,e,i){var o=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var o=t.getUTCFullYear();return i.ordinalNumber(o>0?o:1-o,{unit:"year"})}return _(t,e)},Y:function(t,e,i,o){var r=y(t,o),s=r>0?r:1-r;return"YY"===e?x(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):x(s,e.length)},R:function(t,e){return x(m(t),e.length)},u:function(t,e){return x(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return x(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return x(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){var o=t.getUTCMonth();switch(e){case"M":case"MM":return k(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){var o=t.getUTCMonth();switch(e){case"L":return String(o+1);case"LL":return x(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){var r=w(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):x(r,e.length)},I:function(t,e,i){var o=v(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):x(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):C(t,e)},D:function(t,e,i){var o=function(t){h(1,arguments);var e=c(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime();return Math.floor((i-o)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):x(o,e.length)},E:function(t,e,i){var o=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return x(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return x(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var o=t.getUTCDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return x(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){var o=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){var o,r=t.getUTCHours();switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){var o,r=t.getUTCHours();switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var o=t.getUTCHours()%12;return 0===o&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return A(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):S(t,e)},K:function(t,e,i){var o=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):x(o,e.length)},k:function(t,e,i){var o=t.getUTCHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):x(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):z(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):T(t,e)},S:function(t,e){return I(t,e)},X:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return M(r);case"XXXX":case"XX":return E(r);default:return E(r,":")}},x:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"x":return M(r);case"xxxx":case"xx":return E(r);default:return E(r,":")}},O:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+D(r,":");default:return"GMT"+E(r,":")}},z:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+D(r,":");default:return"GMT"+E(r,":")}},t:function(t,e,i,o){return x(Math.floor((o._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,o){return x((o._originalDate||t).getTime(),e.length)}};var P=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},B=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},N={p:B,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return P(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",P(r,e)).replace("{{time}}",B(s,e))}};const j=N;function F(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var L=["D","DD"],R=["YY","YYYY"];function $(t){return-1!==L.indexOf(t)}function q(t){return-1!==R.indexOf(t)}function V(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function U(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Y,H={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},G={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function K(t){return function(e,i){var o;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,s=null!=i&&i.width?String(i.width):r;o=t.formattingValues[s]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;o=t.values[a]||t.values[n]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Q(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.width,r=e.match(o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var s,n=r[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return s=t.valueCallback?t.valueCallback(l):l,{value:s=i.valueCallback?i.valueCallback(s):s,rest:e.slice(n.length)}}}const J={code:"en-US",formatDistance:function(t,e,i){var o,r=W[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:H,formatRelative:function(t){return G[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:K({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Y.matchPattern);if(!i)return null;var o=i[0],r=t.match(Y.parsePattern);if(!r)return null;var s=Y.valueCallback?Y.valueCallback(r[0]):r[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(o.length)}}),era:Q({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var X=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tt=/^'([^]*?)'?$/,et=/''/g,it=/[a-zA-Z]/;function ot(t,e,i){var o,r,s,n,a,p,m,v,f,g,y,w,x,_,k,C,A,S;h(2,arguments);var z=String(e),T=b(),I=null!==(o=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:T.locale)&&void 0!==o?o:J,D=d(null!==(s=null!==(n=null!==(a=null!==(p=null==i?void 0:i.firstWeekContainsDate)&&void 0!==p?p:null==i||null===(m=i.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==a?a:T.firstWeekContainsDate)&&void 0!==n?n:null===(f=T.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==s?s:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=d(null!==(y=null!==(w=null!==(x=null!==(_=null==i?void 0:i.weekStartsOn)&&void 0!==_?_:null==i||null===(k=i.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==x?x:T.weekStartsOn)&&void 0!==w?w:null===(A=T.locale)||void 0===A||null===(S=A.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==y?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var E=c(t);if(!function(t){if(h(1,arguments),!function(t){return h(1,arguments),t instanceof Date||"object"===l(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=c(t);return!isNaN(Number(e))}(E))throw new RangeError("Invalid time value");var P=u(E,F(E)),B={firstWeekContainsDate:D,weekStartsOn:M,locale:I,_originalDate:E};return z.match(Z).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,j[e])(t,I.formatLong):t})).join("").match(X).map((function(o){if("''"===o)return"'";var r,s,n=o[0];if("'"===n)return(s=(r=o).match(tt))?s[1].replace(et,"'"):r;var a=O[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!q(o)||V(o,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!$(o)||V(o,e,String(t)),a(P,o,I.localize,B);if(n.match(it))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return o})).join("")}class rt{constructor(){}static dateToFormatedString(t,e){return`${e?ot(t,e):t.toLocaleDateString("en-gb")}, ${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}`}}class st{constructor(){}static format(t,e){let i=`${e} ${t}`;try{i=new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e)}catch(t){}return i}}const nt=e=>t("div",{class:"data-transaction"},t("p",null,e.productType),t("p",{class:"text-style text-style-status"},t("span",{class:e.status.toLowerCase()},e.status)),t("p",{class:"date"},e.transId," | ",rt.dateToFormatedString(new Date(e.created),e.dateformat)),t("p",{class:"text-style"},st.format(e.currency,e.realAmount)," ")),at=e=>t("div",{class:"page-size"},t("span",null,n.translate("show",e.language)),e.pageSizes.map((i=>t("button",{class:e.currentPageSize===i?"active":"",onClick:()=>e.changePageSize(i)},i)))),lt=({source:e,language:i,dateformat:o})=>{const r=[{name:n.translate("transactionId",i)},{name:n.translate("date",i)},{name:n.translate("amount",i)},{name:n.translate("productType",i)},{name:n.translate("status",i)}];return t("table",null,t("thead",null,t("tr",null,r.map((e=>t("th",null,e.name))))),t("tbody",null,e.map((e=>t("tr",null,t("td",null,e.transId),t("td",null,rt.dateToFormatedString(new Date(e.created),o)),t("td",null,st.format(e.currency,e.realAmount)," "),t("td",null,e.productType),t("td",null,t("span",{class:e.status.toLowerCase()},e.status)))))))};function ht(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function ct(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function ut(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return dt(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?dt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,s=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw s}}}}function pt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}function ft(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vt(t,e)}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}function gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gt=function(){return!!t})()}function yt(t){var e=gt();return function(){var i,o=bt(t);if(e){var r=bt(this).constructor;i=Reflect.construct(o,arguments,r)}else i=o.apply(this,arguments);return function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mt(t)}(this,i)}}function wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xt(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function _t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,xt(o.key),o)}}function kt(t,e,i){return e&&_t(t.prototype,e),i&&_t(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ct(t,e,i){return(e=xt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var At=function(){function t(){wt(this,t),Ct(this,"priority",void 0),Ct(this,"subPriority",0)}return kt(t,[{key:"validate",value:function(){return!0}}]),t}(),St=function(){ft(e,At);var t=yt(e);function e(i,o,r,s,n){var a;return wt(this,e),(a=t.call(this)).value=i,a.validateValue=o,a.setValue=r,a.priority=s,n&&(a.subPriority=n),a}return kt(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),zt=function(){ft(e,At);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",10),Ct(mt(i),"subPriority",-1),i}return kt(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Tt=function(){function t(){wt(this,t),Ct(this,"incompatibleTokens",void 0),Ct(this,"priority",void 0),Ct(this,"subPriority",void 0)}return kt(t,[{key:"run",value:function(t,e,i,o){var r=this.parse(t,e,i,o);return r?{setter:new St(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),It=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",140),Ct(mt(i),"incompatibleTokens",["R","u","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Dt=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Et=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ot=/^(5[0-3]|[0-4]?\d)/,Pt=/^(2[0-3]|[0-1]?\d)/,Bt=/^(2[0-4]|[0-1]?\d)/,Nt=/^(1[0-1]|0?\d)/,jt=/^(1[0-2]|0?\d)/,Ft=/^[0-5]?\d/,Lt=/^[0-5]?\d/,Rt=/^\d/,$t=/^\d{1,2}/,qt=/^\d{1,3}/,Vt=/^\d{1,4}/,Wt=/^-?\d+/,Ut=/^-?\d/,Yt=/^-?\d{1,2}/,Ht=/^-?\d{1,3}/,Gt=/^-?\d{1,4}/,Kt=/^([+-])(\d{2})(\d{2})?|Z/,Qt=/^([+-])(\d{2})(\d{2})|Z/,Jt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Xt=/^([+-])(\d{2}):(\d{2})|Z/,Zt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function te(t,e){return t?{value:e(t.value),rest:t.rest}:t}function ee(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function ie(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function oe(t){return ee(Wt,t)}function re(t,e){switch(t){case 1:return ee(Rt,e);case 2:return ee($t,e);case 3:return ee(qt,e);case 4:return ee(Vt,e);default:return ee(new RegExp("^\\d{1,"+t+"}"),e)}}function se(t,e){switch(t){case 1:return ee(Ut,e);case 2:return ee(Yt,e);case 3:return ee(Ht,e);case 4:return ee(Gt,e);default:return ee(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ne(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ae(t,e){var i,o=e>0,r=o?e:1-e;if(r<=50)i=t||100;else{var s=r+50;i=t+100*Math.floor(s/100)-(t>=s%100?100:0)}return o?i:1-i}function le(t){return t%400==0||t%4==0&&t%100!=0}var he=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return te(re(4,t),o);case"yo":return te(i.ordinalNumber(t,{unit:"year"}),o);default:return te(re(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var o=t.getUTCFullYear();if(i.isTwoDigitYear){var r=ae(i.year,o);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),ce=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return te(re(4,t),o);case"Yo":return te(i.ordinalNumber(t,{unit:"year"}),o);default:return te(re(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,o){var r=y(t,o);if(i.isTwoDigitYear){var s=ae(i.year,r);return t.setUTCFullYear(s,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),g(t,o)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),g(t,o)}}]),e}(),de=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e){return se("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var o=new Date(0);return o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0),p(o)}}]),e}(),ue=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",130),Ct(mt(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e){return se("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),pe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",120),Ct(mt(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return re(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),me=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",120),Ct(mt(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return re(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),ve=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ct(mt(i),"priority",110),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"M":return te(ee(Dt,t),o);case"MM":return te(re(2,t),o);case"Mo":return te(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),fe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",110),Ct(mt(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"L":return te(ee(Dt,t),o);case"LL":return te(re(2,t),o);case"Lo":return te(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),be=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",100),Ct(mt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return ee(Ot,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,o){return g(function(t,e,i){h(2,arguments);var o=c(t),r=d(e),s=w(o,i)-r;return o.setUTCDate(o.getUTCDate()-7*s),o}(t,i,o),o)}}]),e}(),ge=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",100),Ct(mt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return ee(Ot,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return p(function(t,e){h(2,arguments);var i=c(t),o=d(e),r=v(i)-o;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),ye=[31,28,31,30,31,30,31,31,30,31,30,31],we=[31,29,31,30,31,30,31,31,30,31,30,31],xe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"subPriority",1),Ct(mt(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return ee(Mt,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){var i=le(t.getUTCFullYear()),o=t.getUTCMonth();return i?e>=1&&e<=we[o]:e>=1&&e<=ye[o]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),_e=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"subpriority",1),Ct(mt(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return ee(Et,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return le(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function ke(t,e,i){var o,r,s,n,a,l,u,p;h(2,arguments);var m=b(),v=d(null!==(o=null!==(r=null!==(s=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:m.weekStartsOn)&&void 0!==r?r:null===(u=m.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==o?o:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=c(t),g=d(e),y=((g%7+7)%7<v?7:0)+g-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+y),f}var Ce=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=ke(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Ae=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return te(re(e.length,t),r);case"eo":return te(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=ke(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Se=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return te(re(e.length,t),r);case"co":return te(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=ke(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),ze=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",90),Ct(mt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){var o=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return re(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return te(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return te(i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return te(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);default:return te(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){h(2,arguments);var i=d(e);i%7==0&&(i-=7);var o=c(t),r=((i%7+7)%7<1?7:0)+i-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+r),o}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Te=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",80),Ct(mt(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ne(i),0,0,0),t}}]),e}(),Ie=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",80),Ct(mt(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ne(i),0,0,0),t}}]),e}(),De=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",80),Ct(mt(i),"incompatibleTokens",["a","b","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ne(i),0,0,0),t}}]),e}(),Me=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["H","K","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return ee(jt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:o||12!==i?i:0,0,0,0),t}}]),e}(),Ee=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return ee(Pt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),Oe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["h","H","k","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return ee(Nt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:i,0,0,0),t}}]),e}(),Pe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",70),Ct(mt(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return ee(Bt,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),Be=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",60),Ct(mt(i),"incompatibleTokens",["t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return ee(Ft,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),Ne=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",50),Ct(mt(i),"incompatibleTokens",["t","T"]),i}return kt(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return ee(Lt,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return re(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),je=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",30),Ct(mt(i),"incompatibleTokens",["t","T"]),i}return kt(e,[{key:"parse",value:function(t,e){return te(re(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),Fe=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",10),Ct(mt(i),"incompatibleTokens",["t","T","x"]),i}return kt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return ie(Kt,t);case"XX":return ie(Qt,t);case"XXXX":return ie(Jt,t);case"XXXXX":return ie(Zt,t);default:return ie(Xt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Le=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",10),Ct(mt(i),"incompatibleTokens",["t","T","X"]),i}return kt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return ie(Kt,t);case"xx":return ie(Qt,t);case"xxxx":return ie(Jt,t);case"xxxxx":return ie(Zt,t);default:return ie(Xt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Re=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",40),Ct(mt(i),"incompatibleTokens","*"),i}return kt(e,[{key:"parse",value:function(t){return oe(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),$e=function(){ft(e,Tt);var t=yt(e);function e(){var i;wt(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Ct(mt(i=t.call.apply(t,[this].concat(r))),"priority",20),Ct(mt(i),"incompatibleTokens","*"),i}return kt(e,[{key:"parse",value:function(t){return oe(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),qe={G:new It,y:new he,Y:new ce,R:new de,u:new ue,Q:new pe,q:new me,M:new ve,L:new fe,w:new be,I:new ge,d:new xe,D:new _e,E:new Ce,e:new Ae,c:new Se,i:new ze,a:new Te,b:new Ie,B:new De,h:new Me,H:new Ee,K:new Oe,k:new Pe,m:new Be,s:new Ne,S:new je,X:new Fe,x:new Le,t:new Re,T:new $e},Ve=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,We=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ue=/^'([^]*?)'?$/,Ye=/''/g,He=/\S/,Ge=/[a-zA-Z]/;function Ke(t,e,i,o){var r,s,n,a,p,m,v,f,g,y,w,x,_,k,C,A,S,z;h(3,arguments);var T=String(t),I=String(e),D=b(),M=null!==(r=null!==(s=null==o?void 0:o.locale)&&void 0!==s?s:D.locale)&&void 0!==r?r:J;if(!M.match)throw new RangeError("locale must contain match property");var E=d(null!==(n=null!==(a=null!==(p=null!==(m=null==o?void 0:o.firstWeekContainsDate)&&void 0!==m?m:null==o||null===(v=o.locale)||void 0===v||null===(f=v.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==p?p:D.firstWeekContainsDate)&&void 0!==a?a:null===(g=D.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==n?n:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=d(null!==(w=null!==(x=null!==(_=null!==(k=null==o?void 0:o.weekStartsOn)&&void 0!==k?k:null==o||null===(C=o.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==_?_:D.weekStartsOn)&&void 0!==x?x:null===(S=D.locale)||void 0===S||null===(z=S.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==w?w:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===I)return""===T?c(i):new Date(NaN);var P,B={firstWeekContainsDate:E,weekStartsOn:O,locale:M},N=[new zt],L=I.match(We).map((function(t){var e=t[0];return e in j?(0,j[e])(t,M.formatLong):t})).join("").match(Ve),R=[],W=ut(L);try{var U=function(){var e=P.value;null!=o&&o.useAdditionalWeekYearTokens||!q(e)||V(e,I,t),null!=o&&o.useAdditionalDayOfYearTokens||!$(e)||V(e,I,t);var i=e[0],r=qe[i];if(r){var s=r.incompatibleTokens;if(Array.isArray(s)){var n=R.find((function(t){return s.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));R.push({token:i,fullToken:e});var a=r.run(T,e,M.match,B);if(!a)return{v:new Date(NaN)};N.push(a.setter),T=a.rest}else{if(i.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Ue)[1].replace(Ye,"'")),0!==T.indexOf(e))return{v:new Date(NaN)};T=T.slice(e.length)}};for(W.s();!(P=W.n()).done;){var Y=U();if("object"===l(Y))return Y.v}}catch(t){W.e(t)}finally{W.f()}if(T.length>0&&He.test(T))return new Date(NaN);var H=N.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return N.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),G=c(i);if(isNaN(G.getTime()))return new Date(NaN);var K,Q=u(G,F(G)),X={},Z=ut(H);try{for(Z.s();!(K=Z.n()).done;){var tt=K.value;if(!tt.validate(Q,B))return new Date(NaN);var et=tt.set(Q,X,B);Array.isArray(et)?(Q=et[0],pt(X,et[1])):Q=et}}catch(t){Z.e(t)}finally{Z.f()}return Q}const Qe=class{constructor(t){e(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=n.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,e){t!=e&&ht(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&ct(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl&&await n.loadCustomTranslations(this.translationUrl),this.to=ot(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=ot(function(t,e){return h(2,arguments),function(t,e){h(2,arguments);var i=c(t),o=d(e);if(isNaN(o))return new Date(NaN);if(!o)return i;var r=i.getDate(),s=new Date(i.getTime());return s.setMonth(i.getMonth()+o+1,0),r>=s.getDate()?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}(t,-d(e))}(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&ht(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&ct(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let e=this.el.getBoundingClientRect().height-(null===(t=this.el.shadowRoot.querySelector(".table"))||void 0===t?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;(null===(t=this.pagination)||void 0===t?void 0:t.previous)&&this.page--}next(){var t;(null===(t=this.pagination)||void 0===t?void 0:t.next)&&this.page++}applyFilters(t,e){this.from=t,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var e;const r=i("../assets/filter.svg"),s=i("../assets/warning.svg");return t(o,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?t(a,null):"",t("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:t=>this.stylingContainer=t},this.mobile?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"TransactionTitleMobile"},n.translate("transactionTitle",this.language))):t("h2",{class:"TransactionTitle"},n.translate("transactionTitle",this.language)),t("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},t("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+("0"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("0")},n.translate("deposit",this.language)),t("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+("1"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("1")},n.translate("withdrawals",this.language))),this.mobile?"":t(at,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:t=>this.changePageSize(t)}),this.mobile?t("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},t("img",{src:r,alt:"Filter"}),n.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?t("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:t,to:e}})=>this.applyFilters(t,e),from:this.from,to:this.to,dateformat:this.dateFormat}):"",(null===(e=this.transactions)||void 0===e?void 0:e.length)>0?t("div",{class:"table"},this.mobile?t("div",{class:"mobile-table"},this.transactions.map((e=>t(nt,Object.assign({},e,{dateformat:this.dateFormat}))))):t(lt,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):t("div",{class:"noData"},t("img",{src:s,alt:"Warning"}),t("span",null,n.translate("noData",this.language))),t("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},t("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),t("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}async loadTransactions(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=await fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const t=await e.text();throw new Error(t)}const i=await e.json();this.pagination=i.pagination,this.transactions=i.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}}formatDateForApi(t){return ot(Ke(t,`${this.dateFormat||"yyyy-MM-dd"}`,new Date),"yyyy-MM-dd")}getParams(){const t=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from);return`offset=${t}&endDate=${this.formatDateForApi(this.to)}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return r(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};Qe.style=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}';var Je=Object.defineProperty,Xe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,oi=(t,e,i)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ri=(t,e)=>{for(var i in e||(e={}))ei.call(e,i)&&oi(t,i,e[i]);if(ti)for(var i of ti(e))ii.call(e,i)&&oi(t,i,e[i]);return t},si=(t,e)=>Xe(t,Ze(e)),ni=(t,e,i)=>(oi(t,"symbol"!=typeof e?e+"":e,i),i),ai=(t,e,i)=>new Promise(((o,r)=>{var s=t=>{try{a(i.next(t))}catch(t){r(t)}},n=t=>{try{a(i.throw(t))}catch(t){r(t)}},a=t=>t.done?o(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}))
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|