@everymatrix/player-account-controller 1.77.11 → 1.77.13

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.
Files changed (63) hide show
  1. package/components/{PlayerAccountController-CLO3GJjJ.js → PlayerAccountController-5H9-Dp97.js} +10 -10
  2. package/components/{PlayerAccountController-cWU_AVX3.js → PlayerAccountController-BAEr2Vyx.js} +10 -10
  3. package/components/{PlayerAccountController-DFV1bkpN.cjs → PlayerAccountController-C7-Ocka2.cjs} +1 -1
  4. package/components/{PlayerAccountGamingLimits-BPVpte4c.cjs → PlayerAccountGamingLimits-BrCEdqWf.cjs} +1 -1
  5. package/components/{PlayerAccountGamingLimits-CcpuYH3l.js → PlayerAccountGamingLimits-C7NrDdgX.js} +1 -1
  6. package/components/{PlayerAccountGamingLimits-HQ7tPC1W.js → PlayerAccountGamingLimits-Drat7yFH.js} +1 -1
  7. package/components/PlayerAccountGamingLimitsGroupEdit-3h2C_FW2.cjs +2 -0
  8. package/components/{PlayerAccountGamingLimitsGroupEdit-w-LPEUKA.js → PlayerAccountGamingLimitsGroupEdit-BsK3Gkal.js} +390 -401
  9. package/components/{PlayerAccountGamingLimitsGroupEdit-BBXokwWe.js → PlayerAccountGamingLimitsGroupEdit-DED1UDUG.js} +390 -401
  10. package/components/{PlayerAccountGamingLimitsInfoCard-B1-rS3C8.cjs → PlayerAccountGamingLimitsInfoCard-C7QGrNFp.cjs} +1 -1
  11. package/components/{PlayerAccountGamingLimitsInfoCard-DrrUbetA.js → PlayerAccountGamingLimitsInfoCard-CYi0QXjt.js} +2 -2
  12. package/components/{PlayerAccountGamingLimitsInfoCard-Tmb-Qtf5.js → PlayerAccountGamingLimitsInfoCard-CZy8Z70F.js} +2 -2
  13. package/components/{PlayerAccountProductRestriction-bUCdcJ76.cjs → PlayerAccountProductRestriction--OoNKa9R.cjs} +8 -7
  14. package/components/{PlayerAccountProductRestriction-DP9gaWug.js → PlayerAccountProductRestriction-BtYgBboa.js} +8 -7
  15. package/components/{PlayerAccountProductRestriction-BMJkJUSt.js → PlayerAccountProductRestriction-CB50nJp4.js} +8 -7
  16. package/components/{PlayerAccountSelfExclusion-B3tfkyjw.cjs → PlayerAccountSelfExclusion-B5hPZPhz.cjs} +1 -1
  17. package/components/{PlayerAccountSelfExclusion-CgUDyZXR.js → PlayerAccountSelfExclusion-CatF8Zf2.js} +2 -2
  18. package/components/{PlayerAccountSelfExclusion-CVXCwLtg.js → PlayerAccountSelfExclusion-DOGAbujk.js} +2 -2
  19. package/components/{PlayerAccountTimeout-CmiXGC6Z.js → PlayerAccountTimeout-BDqvZQlT.js} +2 -2
  20. package/components/{PlayerAccountTimeout-DSDc5ma9.js → PlayerAccountTimeout-Dtn8rncg.js} +2 -2
  21. package/components/{PlayerAccountTimeout-DA0SsG_u.cjs → PlayerAccountTimeout-o3bkzZxS.cjs} +1 -1
  22. package/components/{PlayerAccountTransactionsHistory-B9mRKUUC.js → PlayerAccountTransactionsHistory-DBC5hEPR.js} +2 -2
  23. package/components/{PlayerAccountTransactionsHistory-C5SXjM2f.js → PlayerAccountTransactionsHistory-DqZy3TOH.js} +2 -2
  24. package/components/{PlayerAccountTransactionsHistory-B6xD_Ka3.cjs → PlayerAccountTransactionsHistory-FnFkvTS7.cjs} +1 -1
  25. package/components/{PlayerActiveBonuses-BGepm_PQ.js → PlayerActiveBonuses-CNJS0lAo.js} +1 -1
  26. package/components/{PlayerActiveBonuses-Dom1cSd6.js → PlayerActiveBonuses-CuBNDPHe.js} +1 -1
  27. package/components/{PlayerActiveBonuses-eUF52Bls.cjs → PlayerActiveBonuses-DgXX-q4u.cjs} +1 -1
  28. package/components/{PlayerBonusCard-Bue5TYNt.js → PlayerBonusCard-BIs_HZAR.js} +1 -1
  29. package/components/{PlayerBonusCard-C6zYcpN6.cjs → PlayerBonusCard-RgoO5gpm.cjs} +1 -1
  30. package/components/{PlayerBonusCard-EKpiASJ6.js → PlayerBonusCard-snrZC9GG.js} +1 -1
  31. package/components/{PlayerBonusHistory-573Mtg32.js → PlayerBonusHistory-BJSs6dCz.js} +3 -3
  32. package/components/{PlayerBonusHistory-CSS5DGAr.js → PlayerBonusHistory-CZp33hpy.js} +3 -3
  33. package/components/{PlayerBonusHistory-DDbZnKib.cjs → PlayerBonusHistory-xY8ItPnS.cjs} +1 -1
  34. package/components/{PlayerGamingHistory-B6XQvygZ.js → PlayerGamingHistory-CHWkZ2a7.js} +276 -270
  35. package/components/PlayerGamingHistory-CcfX-9-7.cjs +1 -0
  36. package/components/{PlayerGamingHistory-lT_SJgiz.js → PlayerGamingHistory-DY-OU_B_.js} +261 -255
  37. package/es2015/player-account-controller.cjs +1 -1
  38. package/es2015/player-account-controller.js +1 -1
  39. package/esnext/player-account-controller.js +1 -1
  40. package/package.json +1 -1
  41. package/stencil/{checkbox-group-input_15-CCYn8XHR.js → checkbox-group-input_15-4eMmSw5n.js} +9 -8
  42. package/stencil/{checkbox-group-input_15-v7nOyVUz.cjs → checkbox-group-input_15-BrnciMf_.cjs} +8 -7
  43. package/stencil/{checkbox-group-input_15-DmlCQtUF.js → checkbox-group-input_15-DBXlfPZq.js} +9 -8
  44. package/stencil/{index-6e523641-OpXLaWRw.cjs → index-6e523641-CVaNEI5O.cjs} +1 -1
  45. package/stencil/{index-6e523641-COh-N1ey.js → index-6e523641-CoBB-3Id.js} +1 -1
  46. package/stencil/{index-6e523641-DBd81xql.js → index-6e523641-DnC0RyBN.js} +1 -1
  47. package/stencil/{index-c666b6e6-CgIaZhF8.js → index-c666b6e6-BF-gsQVq.js} +1 -1
  48. package/stencil/{index-c666b6e6-D45XCRQA.cjs → index-c666b6e6-BmyhgQ7w.cjs} +1 -1
  49. package/stencil/{index-c666b6e6-_VJdjjkl.js → index-c666b6e6-DNznJoXb.js} +1 -1
  50. package/stencil/{pam-change-password-9aef79f2-cQcampCF.js → pam-change-password-9aef79f2-CgkRMPth.js} +1 -1
  51. package/stencil/{pam-change-password-9aef79f2-CogzjFow.js → pam-change-password-9aef79f2-DWs8vXC_.js} +1 -1
  52. package/stencil/{pam-change-password-9aef79f2-pEHlKjwR.cjs → pam-change-password-9aef79f2-O7StNCS8.cjs} +1 -1
  53. package/stencil/{pam-change-password-BJnEtnlV.js → pam-change-password-Ccuv_T6s.js} +1 -1
  54. package/stencil/{pam-change-password-BquFkIEu.js → pam-change-password-dCum1Nhq.js} +1 -1
  55. package/stencil/{pam-change-password-BsG8yiit.cjs → pam-change-password-wL1gmqOc.cjs} +1 -1
  56. package/stencil/{user-transaction-history-Cbwj1zxN.js → user-transaction-history-Be-hf7kW.js} +1 -1
  57. package/stencil/{user-transaction-history-Cc_nxVuF.cjs → user-transaction-history-Bv0LEs6K.cjs} +1 -1
  58. package/stencil/{user-transaction-history-2mD0Z_m9.js → user-transaction-history-Cf_iR1wy.js} +1 -1
  59. package/stencil/{user-transaction-history_2-iFJTk4xV.js → user-transaction-history_2-8ViaNgLC.js} +8 -7
  60. package/stencil/{user-transaction-history_2-DFq1loux.cjs → user-transaction-history_2-B2yjMaBN.cjs} +8 -7
  61. package/stencil/{user-transaction-history_2-5iEvwYQ_.js → user-transaction-history_2-DwdhsDRA.js} +8 -7
  62. package/components/PlayerAccountGamingLimitsGroupEdit-gUkWnHwu.cjs +0 -2
  63. package/components/PlayerGamingHistory-B5XwEbF4.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";var Vt=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-6e523641-OpXLaWRw.cjs"),As={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"}};class I{constructor(){}static loadCustomTranslations(e){return Vt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const i=yield t.text();throw new Error(i)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,i;const a=I.getAvaliableLanguages(t);return((i=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||i===void 0?void 0:i[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=As;const Ps=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(o){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(o)}function V(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function Is(o){return V(1,arguments),o instanceof Date||_e(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function K(o){V(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||_e(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="string"||e==="[object String]")&&typeof console!="undefined"&&(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 Ss(o){if(V(1,arguments),!Is(o)&&typeof o!="number")return!1;var e=K(o);return!isNaN(Number(e))}function Q(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ds(o,e){V(2,arguments);var t=K(o).getTime(),r=Q(e);return new Date(t+r)}function ga(o,e){V(2,arguments);var t=Q(e);return Ds(o,-t)}var Os=864e5;function Ms(o){V(1,arguments);var e=K(o),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/Os)+1}function qe(o){V(1,arguments);var e=1,t=K(o),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ba(o){V(1,arguments);var e=K(o),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=qe(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=qe(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function zs(o){V(1,arguments);var e=ba(o),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=qe(t);return r}var Ns=6048e5;function ya(o){V(1,arguments);var e=K(o),t=qe(e).getTime()-zs(e).getTime();return Math.round(t/Ns)+1}var Ls={};function Xe(){return Ls}function De(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(o),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function gi(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=K(o),h=c.getUTCFullYear(),u=Xe(),p=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Fs(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=gi(o,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Bs=6048e5;function wa(o,e){V(1,arguments);var t=K(o),r=De(t,e).getTime()-Fs(t,e).getTime();return Math.round(r/Bs)+1}function M(o,e){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<e;)r="0"+r;return t+r}var Vs={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return M(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return M(a,t.length)}};const be=Vs;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rs={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,i){var a=gi(e,i),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=ba(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return M(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return M(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return M(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var a=wa(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var i=ya(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):M(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var i=Ms(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):M(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),a;switch(i===12?a=Fe.noon:i===0?a=Fe.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),a;switch(i>=17?a=Fe.evening:i>=12?a=Fe.afternoon:i>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return mo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return mo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+po(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+po(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,i){var a=i._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,i){var a=i._originalDate||e,n=a.getTime();return M(n,t.length)}};function po(o,e){var t=o>0?"-":"+",r=Math.abs(o),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var n=e;return t+String(i)+n+M(a,2)}function mo(o,e){if(o%60===0){var t=o>0?"-":"+";return t+M(Math.abs(o)/60,2)}return Te(o,e)}function Te(o,e){var t=e||"",r=o>0?"-":"+",i=Math.abs(o),a=M(Math.floor(i/60),2),n=M(i%60,2);return r+a+t+n}const $s=Rs;var fo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xa=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hs=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return fo(e,t);var n;switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",fo(i,t)).replace("{{time}}",xa(a,t))},Us={p:xa,P:Hs};const qr=Us;function Ca(o){var e=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return e.setUTCFullYear(o.getFullYear()),o.getTime()-e.getTime()}var Ws=["D","DD"],qs=["YY","YYYY"];function ka(o){return Ws.indexOf(o)!==-1}function Ea(o){return qs.indexOf(o)!==-1}function Qt(o,e,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ys={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"}},js=function(e,t,r){var i,a=Ys[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Gs=js;function Ir(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var Ks={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Js={date:Ir({formats:Ks,defaultWidth:"full"}),time:Ir({formats:Xs,defaultWidth:"full"}),dateTime:Ir({formats:Qs,defaultWidth:"full"})};const Zs=Js;var el={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tl=function(e,t,r,i){return el[e]};const rl=tl;function ot(o){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&o.formattingValues){var a=o.defaultFormattingWidth||o.defaultWidth,n=t!=null&&t.width?String(t.width):a;i=o.formattingValues[n]||o.formattingValues[a]}else{var s=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;i=o.values[l]||o.values[s]}var d=o.argumentCallback?o.argumentCallback(e):e;return i[d]}}var il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},al={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"]},nl={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"]},sl={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"}},ll={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"}},dl=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},cl={ordinalNumber:dl,era:ot({values:il,defaultWidth:"wide"}),quarter:ot({values:ol,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:al,defaultWidth:"wide"}),day:ot({values:nl,defaultWidth:"wide"}),dayPeriod:ot({values:sl,defaultWidth:"wide",formattingValues:ll,defaultFormattingWidth:"wide"})};const hl=cl;function at(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],a=e.match(i);if(!a)return null;var n=a[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(s)?pl(s,function(h){return h.test(n)}):ul(s,function(h){return h.test(n)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ul(o,e){for(var t in o)if(o.hasOwnProperty(t)&&e(o[t]))return t}function pl(o,e){for(var t=0;t<o.length;t++)if(e(o[t]))return t}function ml(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var i=r[0],a=e.match(o.parsePattern);if(!a)return null;var n=o.valueCallback?o.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(i.length);return{value:n,rest:s}}}var fl=/^(\d+)(th|st|nd|rd)?/i,_l=/\d+/i,vl={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},gl={any:[/^b/i,/^(a|c)/i]},bl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yl={any:[/1/i,/2/i,/3/i,/4/i]},wl={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},xl={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]},Cl={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},kl={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]},El={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},Tl={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}},Al={ordinalNumber:ml({matchPattern:fl,parsePattern:_l,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:gl,defaultParseWidth:"any"}),quarter:at({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any"}),day:at({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:El,defaultMatchWidth:"any",parsePatterns:Tl,defaultParseWidth:"any"})};const Pl=Al;var Il={code:"en-US",formatDistance:Gs,formatLong:Zs,formatRelative:rl,localize:hl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ta=Il;var Sl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,Ml=/''/g,zl=/[a-zA-Z]/;function Ie(o,e,t){var r,i,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Xe(),U=(r=(i=void 0)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:Ta,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(o);if(!Ss(ge))throw new RangeError("Invalid time value");var et=Ca(ge),tt=ga(ge,et),rt={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Tr=O.match(Dl).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=qr[ee];return ke(j,U.formatLong)}return j}).join("").match(Sl).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Nl(j);var ke=$s[ee];if(ke)return Ea(j)&&Qt(j,e,String(o)),ka(j)&&Qt(j,e,String(o)),ke(tt,j,U.localize,rt);if(ee.match(zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Tr}function Nl(o){var e=o.match(Ol);return e?e[1].replace(Ml,"'"):o}class Aa{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${i}`}}class Pa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(i){}return r}}const Ll=o=>m.h("div",{class:"data-transaction"},m.h("p",null,o.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:o.status.toLowerCase()},o.status)),m.h("p",{class:"date"},o.transId," | ",Aa.dateToFormatedString(new Date(o.created),o.dateformat)),m.h("p",{class:"text-style"},Pa.format(o.currency,o.realAmount)," ")),Fl=o=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",o.language)),o.pageSizes.map(e=>m.h("button",{class:o.currentPageSize===e?"active":"",onClick:()=>o.changePageSize(e)},e))),Bl=({source:o,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(i=>m.h("th",null,i.name)))),m.h("tbody",null,o.map(i=>m.h("tr",null,m.h("td",null,i.transId),m.h("td",null,Aa.dateToFormatedString(new Date(i.created),t)),m.h("td",null,Pa.format(i.currency,i.realAmount)," "),m.h("td",null,i.productType),m.h("td",null,m.h("span",{class:i.status.toLowerCase()},i.status))))))};function _o(o,e){if(o){const t=document.createElement("style");t.innerHTML=e,o.appendChild(t)}}function vo(o,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,o&&o.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vl(o,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,o&&o.appendChild(r)})}}function go(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Rl(o,e){if(o){if(typeof o=="string")return go(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?go(o,e):void 0}}function bo(o,e){var t=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Rl(o))||e){t&&(o=t);var r=0,i=function(){};return{s:i,n:function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ "use strict";var Vt=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-6e523641-CVaNEI5O.cjs"),As={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"}};class I{constructor(){}static loadCustomTranslations(e){return Vt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const i=yield t.text();throw new Error(i)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,i;const a=I.getAvaliableLanguages(t);return((i=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||i===void 0?void 0:i[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=As;const Ps=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(o){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(o)}function V(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function Is(o){return V(1,arguments),o instanceof Date||_e(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function K(o){V(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||_e(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="string"||e==="[object String]")&&typeof console!="undefined"&&(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 Ss(o){if(V(1,arguments),!Is(o)&&typeof o!="number")return!1;var e=K(o);return!isNaN(Number(e))}function Q(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ds(o,e){V(2,arguments);var t=K(o).getTime(),r=Q(e);return new Date(t+r)}function ga(o,e){V(2,arguments);var t=Q(e);return Ds(o,-t)}var Os=864e5;function Ms(o){V(1,arguments);var e=K(o),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/Os)+1}function qe(o){V(1,arguments);var e=1,t=K(o),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ba(o){V(1,arguments);var e=K(o),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=qe(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=qe(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function zs(o){V(1,arguments);var e=ba(o),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=qe(t);return r}var Ns=6048e5;function ya(o){V(1,arguments);var e=K(o),t=qe(e).getTime()-zs(e).getTime();return Math.round(t/Ns)+1}var Ls={};function Xe(){return Ls}function De(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(o),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function gi(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=K(o),h=c.getUTCFullYear(),u=Xe(),p=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Fs(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=gi(o,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Bs=6048e5;function wa(o,e){V(1,arguments);var t=K(o),r=De(t,e).getTime()-Fs(t,e).getTime();return Math.round(r/Bs)+1}function M(o,e){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<e;)r="0"+r;return t+r}var Vs={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return M(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return M(a,t.length)}};const be=Vs;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rs={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,i){var a=gi(e,i),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=ba(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return M(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return M(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return M(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var a=wa(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var i=ya(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):M(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var i=Ms(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):M(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),a;switch(i===12?a=Fe.noon:i===0?a=Fe.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),a;switch(i>=17?a=Fe.evening:i>=12?a=Fe.afternoon:i>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return mo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return mo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+po(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+po(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,i){var a=i._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,i){var a=i._originalDate||e,n=a.getTime();return M(n,t.length)}};function po(o,e){var t=o>0?"-":"+",r=Math.abs(o),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var n=e;return t+String(i)+n+M(a,2)}function mo(o,e){if(o%60===0){var t=o>0?"-":"+";return t+M(Math.abs(o)/60,2)}return Te(o,e)}function Te(o,e){var t=e||"",r=o>0?"-":"+",i=Math.abs(o),a=M(Math.floor(i/60),2),n=M(i%60,2);return r+a+t+n}const $s=Rs;var fo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xa=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hs=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return fo(e,t);var n;switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",fo(i,t)).replace("{{time}}",xa(a,t))},Us={p:xa,P:Hs};const qr=Us;function Ca(o){var e=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return e.setUTCFullYear(o.getFullYear()),o.getTime()-e.getTime()}var Ws=["D","DD"],qs=["YY","YYYY"];function ka(o){return Ws.indexOf(o)!==-1}function Ea(o){return qs.indexOf(o)!==-1}function Qt(o,e,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ys={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"}},js=function(e,t,r){var i,a=Ys[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Gs=js;function Ir(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var Ks={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Js={date:Ir({formats:Ks,defaultWidth:"full"}),time:Ir({formats:Xs,defaultWidth:"full"}),dateTime:Ir({formats:Qs,defaultWidth:"full"})};const Zs=Js;var el={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tl=function(e,t,r,i){return el[e]};const rl=tl;function ot(o){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&o.formattingValues){var a=o.defaultFormattingWidth||o.defaultWidth,n=t!=null&&t.width?String(t.width):a;i=o.formattingValues[n]||o.formattingValues[a]}else{var s=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;i=o.values[l]||o.values[s]}var d=o.argumentCallback?o.argumentCallback(e):e;return i[d]}}var il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},al={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"]},nl={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"]},sl={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"}},ll={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"}},dl=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},cl={ordinalNumber:dl,era:ot({values:il,defaultWidth:"wide"}),quarter:ot({values:ol,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:al,defaultWidth:"wide"}),day:ot({values:nl,defaultWidth:"wide"}),dayPeriod:ot({values:sl,defaultWidth:"wide",formattingValues:ll,defaultFormattingWidth:"wide"})};const hl=cl;function at(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],a=e.match(i);if(!a)return null;var n=a[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(s)?pl(s,function(h){return h.test(n)}):ul(s,function(h){return h.test(n)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ul(o,e){for(var t in o)if(o.hasOwnProperty(t)&&e(o[t]))return t}function pl(o,e){for(var t=0;t<o.length;t++)if(e(o[t]))return t}function ml(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var i=r[0],a=e.match(o.parsePattern);if(!a)return null;var n=o.valueCallback?o.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(i.length);return{value:n,rest:s}}}var fl=/^(\d+)(th|st|nd|rd)?/i,_l=/\d+/i,vl={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},gl={any:[/^b/i,/^(a|c)/i]},bl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yl={any:[/1/i,/2/i,/3/i,/4/i]},wl={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},xl={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]},Cl={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},kl={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]},El={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},Tl={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}},Al={ordinalNumber:ml({matchPattern:fl,parsePattern:_l,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:gl,defaultParseWidth:"any"}),quarter:at({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any"}),day:at({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:El,defaultMatchWidth:"any",parsePatterns:Tl,defaultParseWidth:"any"})};const Pl=Al;var Il={code:"en-US",formatDistance:Gs,formatLong:Zs,formatRelative:rl,localize:hl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ta=Il;var Sl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,Ml=/''/g,zl=/[a-zA-Z]/;function Ie(o,e,t){var r,i,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Xe(),U=(r=(i=void 0)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:Ta,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(o);if(!Ss(ge))throw new RangeError("Invalid time value");var et=Ca(ge),tt=ga(ge,et),rt={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Tr=O.match(Dl).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=qr[ee];return ke(j,U.formatLong)}return j}).join("").match(Sl).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Nl(j);var ke=$s[ee];if(ke)return Ea(j)&&Qt(j,e,String(o)),ka(j)&&Qt(j,e,String(o)),ke(tt,j,U.localize,rt);if(ee.match(zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Tr}function Nl(o){var e=o.match(Ol);return e?e[1].replace(Ml,"'"):o}class Aa{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${i}`}}class Pa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(i){}return r}}const Ll=o=>m.h("div",{class:"data-transaction"},m.h("p",null,o.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:o.status.toLowerCase()},o.status)),m.h("p",{class:"date"},o.transId," | ",Aa.dateToFormatedString(new Date(o.created),o.dateformat)),m.h("p",{class:"text-style"},Pa.format(o.currency,o.realAmount)," ")),Fl=o=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",o.language)),o.pageSizes.map(e=>m.h("button",{class:o.currentPageSize===e?"active":"",onClick:()=>o.changePageSize(e)},e))),Bl=({source:o,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(i=>m.h("th",null,i.name)))),m.h("tbody",null,o.map(i=>m.h("tr",null,m.h("td",null,i.transId),m.h("td",null,Aa.dateToFormatedString(new Date(i.created),t)),m.h("td",null,Pa.format(i.currency,i.realAmount)," "),m.h("td",null,i.productType),m.h("td",null,m.h("span",{class:i.status.toLowerCase()},i.status))))))};function _o(o,e){if(o){const t=document.createElement("style");t.innerHTML=e,o.appendChild(t)}}function vo(o,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,o&&o.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vl(o,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,o&&o.appendChild(r)})}}function go(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Rl(o,e){if(o){if(typeof o=="string")return go(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?go(o,e):void 0}}function bo(o,e){var t=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Rl(o))||e){t&&(o=t);var r=0,i=function(){};return{s:i,n:function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(o)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function $l(o,e){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o}function v(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Yr(o,e){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Yr(o,e)}function E(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&Yr(o,e)}function Jt(o){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(o)}function Ia(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ia=function(){return!!o})()}function Hl(o,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(o)}function T(o){var e=Ia();return function(){var t,r=Jt(o);if(e){var i=Jt(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Hl(this,t)}}function w(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function Ul(o,e){if(_e(o)!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e);if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Sa(o){var e=Ul(o,"string");return _e(e)=="symbol"?e:e+""}function Wl(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,Sa(r.key),r)}}function x(o,e,t){return e&&Wl(o.prototype,e),Object.defineProperty(o,"prototype",{writable:!1}),o}function _(o,e,t){return(e=Sa(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var ql=10,Da=function(){function o(){w(this,o),_(this,"priority",void 0),_(this,"subPriority",0)}return x(o,[{key:"validate",value:function(t,r){return!0}}]),o}(),Yl=function(o){E(t,o);var e=T(t);function t(r,i,a,n,s){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=i,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return x(t,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,n){return this.setValue(i,a,this.value,n)}}]),t}(Da),jl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",ql),_(v(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var n=new Date(0);return n.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),n.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),n}}]),t}(Da),S=function(){function o(){w(this,o),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return x(o,[{key:"run",value:function(t,r,i,a){var n=this.parse(t,r,i,a);return n?{setter:new Yl(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,i){return!0}}]),o}(),Gl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",140),_(v(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"})||n.era(i,{width:"narrow"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})||n.era(i,{width:"abbreviated"})||n.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,n){return a.era=n,i.setUTCFullYear(n,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),Kl=6e4,Xl=36e5,Ql=1e3,R={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},de={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $(o,e){return o&&{value:e(o.value),rest:o.rest}}function F(o,e){var t=e.match(o);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(o,e){var t=e.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(i*Xl+a*Kl+n*Ql),rest:e.slice(t[0].length)}}function Oa(o){return F(R.anyDigitsSigned,o)}function B(o,e){switch(o){case 1:return F(R.singleDigit,e);case 2:return F(R.twoDigits,e);case 3:return F(R.threeDigits,e);case 4:return F(R.fourDigits,e);default:return F(new RegExp("^\\d{1,"+o+"}"),e)}}function Zt(o,e){switch(o){case 1:return F(R.singleDigitSigned,e);case 2:return F(R.twoDigitsSigned,e);case 3:return F(R.threeDigitsSigned,e);case 4:return F(R.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+o+"}"),e)}}function bi(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ma(o,e){var t=e>0,r=t?e:1-e,i;if(r<=50)i=o||100;else{var a=r+50,n=Math.floor(a/100)*100,s=o>=a%100;i=o+n-(s?100:0)}return t?i:1-i}function za(o){return o%400===0||o%4===0&&o%100!==0}var Jl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return $(B(4,i),s);case"yo":return $(n.ordinalNumber(i,{unit:"year"}),s);default:return $(B(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,n){var s=i.getUTCFullYear();if(n.isTwoDigitYear){var l=Ma(n.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var d=!("era"in a)||a.era===1?n.year:1-n.year;return i.setUTCFullYear(d,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),Zl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return $(B(4,i),s);case"Yo":return $(n.ordinalNumber(i,{unit:"year"}),s);default:return $(B(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,n,s){var l=gi(i,s);if(n.isTwoDigitYear){var d=Ma(n.year,l);return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),De(i,s)}var c=!("era"in a)||a.era===1?n.year:1-n.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),De(i,s)}}]),t}(S),ed=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a){return Zt(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),qe(s)}}]),t}(S),td=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a){return Zt(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,n){return i.setUTCFullYear(n,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),rd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"Q":case"QQ":return B(a.length,i);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"})||n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})||n.quarter(i,{width:"abbreviated",context:"formatting"})||n.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,n){return i.setUTCMonth((n-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),id=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"q":case"qq":return B(a.length,i);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"})||n.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})||n.quarter(i,{width:"abbreviated",context:"standalone"})||n.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,n){return i.setUTCMonth((n-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),od=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_(v(r),"priority",110),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d-1};switch(a){case"M":return $(F(R.month,i),s);case"MM":return $(B(2,i),s);case"Mo":return $(n.ordinalNumber(i,{unit:"month"}),s);case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"})||n.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})||n.month(i,{width:"abbreviated",context:"formatting"})||n.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){return i.setUTCMonth(n,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),ad=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",110),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d-1};switch(a){case"L":return $(F(R.month,i),s);case"LL":return $(B(2,i),s);case"Lo":return $(n.ordinalNumber(i,{unit:"month"}),s);case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"})||n.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})||n.month(i,{width:"abbreviated",context:"standalone"})||n.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){return i.setUTCMonth(n,1),i.setUTCHours(0,0,0,0),i}}]),t}(S);function nd(o,e,t){V(2,arguments);var r=K(o),i=Q(e),a=wa(r,t)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var sd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"w":return F(R.week,i);case"wo":return n.ordinalNumber(i,{unit:"week"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,n,s){return De(nd(i,n,s),s)}}]),t}(S);function ld(o,e){V(2,arguments);var t=K(o),r=Q(e),i=ya(t)-r;return t.setUTCDate(t.getUTCDate()-i*7),t}var dd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"I":return F(R.week,i);case"Io":return n.ordinalNumber(i,{unit:"week"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,n){return qe(ld(i,n))}}]),t}(S),cd=[31,28,31,30,31,30,31,31,30,31,30,31],hd=[31,29,31,30,31,30,31,31,30,31,30,31],ud=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subPriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"d":return F(R.date,i);case"do":return n.ordinalNumber(i,{unit:"date"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){var n=i.getUTCFullYear(),s=za(n),l=i.getUTCMonth();return s?a>=1&&a<=hd[l]:a>=1&&a<=cd[l]}},{key:"set",value:function(i,a,n){return i.setUTCDate(n),i.setUTCHours(0,0,0,0),i}}]),t}(S),pd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subpriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"D":case"DD":return F(R.dayOfYear,i);case"Do":return n.ordinalNumber(i,{unit:"date"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){var n=i.getUTCFullYear(),s=za(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,n){return i.setUTCMonth(0,n),i.setUTCHours(0,0,0,0),i}}]),t}(S);function yi(o,e,t){var r,i,a,n,s,l,d,c;V(2,arguments);var h=Xe(),u=Q((r=(i=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&i!==void 0?i:(d=h.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=K(o),b=Q(e),N=p.getUTCDay(),D=b%7,O=(D+7)%7,A=(O<u?7:0)+b-N;return p.setUTCDate(p.getUTCDate()+A),p}var md=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S),fd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return $(B(a.length,i),l);case"eo":return $(n.ordinalNumber(i,{unit:"day"}),l);case"eee":return n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S),_d=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return $(B(a.length,i),l);case"co":return $(n.ordinalNumber(i,{unit:"day"}),l);case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"})||n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})||n.day(i,{width:"abbreviated",context:"standalone"})||n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S);function vd(o,e){V(2,arguments);var t=Q(e);t%7===0&&(t=t-7);var r=1,i=K(o),a=i.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return i.setUTCDate(i.getUTCDate()+l),i}var gd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return B(a.length,i);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return $(n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return $(n.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return $(n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return $(n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,n){return i=vd(i,n),i.setUTCHours(0,0,0,0),i}}]),t}(S),bd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),yd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),wd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),xd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"h":return F(R.hour12h,i);case"ho":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,n){var s=i.getUTCHours()>=12;return s&&n<12?i.setUTCHours(n+12,0,0,0):!s&&n===12?i.setUTCHours(0,0,0,0):i.setUTCHours(n,0,0,0),i}}]),t}(S),Cd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"H":return F(R.hour23h,i);case"Ho":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,n){return i.setUTCHours(n,0,0,0),i}}]),t}(S),kd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"K":return F(R.hour11h,i);case"Ko":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){var s=i.getUTCHours()>=12;return s&&n<12?i.setUTCHours(n+12,0,0,0):i.setUTCHours(n,0,0,0),i}}]),t}(S),Ed=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"k":return F(R.hour24h,i);case"ko":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,n){var s=n<=24?n%24:n;return i.setUTCHours(s,0,0,0),i}}]),t}(S),Td=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",60),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"m":return F(R.minute,i);case"mo":return n.ordinalNumber(i,{unit:"minute"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,n){return i.setUTCMinutes(n,0,0),i}}]),t}(S),Ad=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",50),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"s":return F(R.second,i);case"so":return n.ordinalNumber(i,{unit:"second"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,n){return i.setUTCSeconds(n,0),i}}]),t}(S),Pd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",30),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return $(B(a.length,i),n)}},{key:"set",value:function(i,a,n){return i.setUTCMilliseconds(n),i}}]),t}(S),Id=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(i,a){switch(a){case"X":return ce(de.basicOptionalMinutes,i);case"XX":return ce(de.basic,i);case"XXXX":return ce(de.basicOptionalSeconds,i);case"XXXXX":return ce(de.extendedOptionalSeconds,i);case"XXX":default:return ce(de.extended,i)}}},{key:"set",value:function(i,a,n){return a.timestampIsSet?i:new Date(i.getTime()-n)}}]),t}(S),Sd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(i,a){switch(a){case"x":return ce(de.basicOptionalMinutes,i);case"xx":return ce(de.basic,i);case"xxxx":return ce(de.basicOptionalSeconds,i);case"xxxxx":return ce(de.extendedOptionalSeconds,i);case"xxx":default:return ce(de.extended,i)}}},{key:"set",value:function(i,a,n){return a.timestampIsSet?i:new Date(i.getTime()-n)}}]),t}(S),Dd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",40),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(i){return Oa(i)}},{key:"set",value:function(i,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(S),Od=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",20),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(i){return Oa(i)}},{key:"set",value:function(i,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(S),Md={G:new Gl,y:new Jl,Y:new Zl,R:new ed,u:new td,Q:new rd,q:new id,M:new od,L:new ad,w:new sd,I:new dd,d:new ud,D:new pd,E:new md,e:new fd,c:new _d,i:new gd,a:new bd,b:new yd,B:new wd,h:new xd,H:new Cd,K:new kd,k:new Ed,m:new Td,s:new Ad,S:new Pd,X:new Id,x:new Sd,t:new Dd,T:new Od},zd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ld=/^'([^]*?)'?$/,Fd=/''/g,Bd=/\S/,Vd=/[a-zA-Z]/;function Na(o,e,t,r){var i,a,n,s,l,d,c,h,u,p,b,N,D,O;V(3,arguments);var A=String(o),U=String(e),W=Xe(),ne=(i=(a=void 0)!==null&&a!==void 0?a:W.locale)!==null&&i!==void 0?i:Ta;if(!ne.match)throw new RangeError("locale must contain match property");var ge=Q((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&s!==void 0?s:(c=W.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var et=Q((u=(p=(b=(N=void 0)!==null&&N!==void 0?N:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&p!==void 0?p:(D=W.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&u!==void 0?u:0);if(!(et>=0&&et<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(U==="")return A===""?K(t):new Date(NaN);var tt={firstWeekContainsDate:ge,weekStartsOn:et,locale:ne},rt=[new jl],Tr=U.match(Nd).map(function(q){var L=q[0];if(L in qr){var ae=qr[L];return ae(q,ne.formatLong)}return q}).join("").match(zd),j=[],ee=bo(Tr),ke;try{var Es=function(){var L=ke.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ea(L)&&Qt(L,U,o),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ka(L)&&Qt(L,U,o);var ae=L[0],Bt=Md[ae];if(Bt){var co=Bt.incompatibleTokens;if(Array.isArray(co)){var ho=j.find(function(uo){return co.includes(uo.token)||uo.token===ae});if(ho)throw new RangeError("The format string mustn't contain `".concat(ho.fullToken,"` and `").concat(L,"` at the same time"))}else if(Bt.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));j.push({token:ae,fullToken:L});var Pr=Bt.run(A,L,ne.match,tt);if(!Pr)return{v:new Date(NaN)};rt.push(Pr.setter),A=Pr.rest}else{if(ae.match(Vd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ae+"`");if(L==="''"?L="'":ae==="'"&&(L=Rd(L)),A.indexOf(L)===0)A=A.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(ke=ee.n()).done;){var ao=Es();if(_e(ao)==="object")return ao.v}}catch(q){ee.e(q)}finally{ee.f()}if(A.length>0&&Bd.test(A))return new Date(NaN);var Ts=rt.map(function(q){return q.priority}).sort(function(q,L){return L-q}).filter(function(q,L,ae){return ae.indexOf(q)===L}).map(function(q){return rt.filter(function(L){return L.priority===q}).sort(function(L,ae){return ae.subPriority-L.subPriority})}).map(function(q){return q[0]}),Ar=K(t);if(isNaN(Ar.getTime()))return new Date(NaN);var it=ga(Ar,Ca(Ar)),no={},Lt=bo(Ts),so;try{for(Lt.s();!(so=Lt.n()).done;){var lo=so.value;if(!lo.validate(it,tt))return new Date(NaN);var Ft=lo.set(it,no,tt);Array.isArray(Ft)?(it=Ft[0],$l(no,Ft[1])):it=Ft}}catch(q){Lt.e(q)}finally{Lt.f()}return it}function Rd(o){return o.match(Ld)[1].replace(Fd,"'")}function $d(o,e){V(2,arguments);var t=K(o),r=Q(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return i>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),i),t)}function Hd(o,e){V(2,arguments);var t=Q(e);return $d(o,-t)}const Ud=':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))}',Wd=Ud,La=class{constructor(o){m.registerInstance(this,o),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=I.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(o,e){o!=e&&_o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(o,e){o!=e&&this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Vt(this,null,function*(){this.translationUrl&&(yield I.loadCustomTranslations(this.translationUrl)),this.to=Ie(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=Ie(Hd(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?Vl(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&_o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var o;if(this.mobile){let e=this.el.getBoundingClientRect().height-((o=this.el.shadowRoot.querySelector(".table"))===null||o===void 0?void 0:o.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let o=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",o+"px")}changeTransactionsType(o){this.type=o}changePageSize(o){this.pageSize=o}prev(){var o;!((o=this.pagination)===null||o===void 0)&&o.previous&&this.page--}next(){var o;!((o=this.pagination)===null||o===void 0)&&o.next&&this.page++}applyFilters(o,e){this.from=o,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var o;const e=m.getAssetPath("../assets/filter.svg"),t=m.getAssetPath("../assets/warning.svg");return m.h(m.Host,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?m.h(Ps,null):"",m.h("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:r=>this.stylingContainer=r},this.mobile?m.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},m.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},m.h("defs",null),m.h("g",{transform:"translate(-20 -158)"},m.h("g",{transform:"translate(20 158)"},m.h("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)"})))),m.h("h2",{class:"TransactionTitleMobile"},I.translate("transactionTitle",this.language))):m.h("h2",{class:"TransactionTitle"},I.translate("transactionTitle",this.language)),m.h("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},m.h("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},I.translate("deposit",this.language)),m.h("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},I.translate("withdrawals",this.language))),this.mobile?"":m.h(Fl,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:r=>this.changePageSize(r)}),this.mobile?m.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},m.h("img",{src:e,alt:"Filter"}),I.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?m.h("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:r,to:i}})=>this.applyFilters(r,i),from:this.from,to:this.to,dateformat:this.dateFormat}):"",((o=this.transactions)===null||o===void 0?void 0:o.length)>0?m.h("div",{class:"table"},this.mobile?m.h("div",{class:"mobile-table"},this.transactions.map(r=>m.h(Ll,Object.assign({},r,{dateformat:this.dateFormat})))):m.h(Bl,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):m.h("div",{class:"noData"},m.h("img",{src:t,alt:"Warning"}),m.h("span",null,I.translate("noData",this.language))),m.h("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},m.h("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),m.h("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}loadTransactions(){return Vt(this,null,function*(){this.showLoader=!0;try{const o=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=yield fetch(o,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const r=yield e.text();throw new Error(r)}const t=yield e.json();this.pagination=t.pagination,this.transactions=t.transactions}catch(o){console.error(o)}finally{this.showLoader=!1}})}formatDateForApi(o){const e=Na(o,`${this.dateFormat||"yyyy-MM-dd"}`,new Date);return Ie(e,"yyyy-MM-dd")}getParams(){const o=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from),t=this.formatDateForApi(this.to);return`offset=${o}&endDate=${t}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return m.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};La.style=Wd;var qd=Object.defineProperty,Yd=Object.defineProperties,jd=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,jr=(o,e,t)=>e in o?qd(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,er=(o,e)=>{for(var t in e||(e={}))Gd.call(e,t)&&jr(o,t,e[t]);if(yo)for(var t of yo(e))Kd.call(e,t)&&jr(o,t,e[t]);return o},Fa=(o,e)=>Yd(o,jd(e)),X=(o,e,t)=>(jr(o,typeof e!="symbol"?e+"":e,t),t),tr=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -6081,6 +6081,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6081
6081
  overflow: hidden;
6082
6082
  min-width: var(--lumo-size-m);
6083
6083
  -webkit-user-select: none;
6084
+ -moz-user-select: none;
6084
6085
  user-select: none;
6085
6086
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
6086
6087
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
@@ -6290,11 +6291,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6290
6291
  }
6291
6292
  `,{moduleId:"lumo-tab"});/**
6292
6293
  * @license
6293
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6294
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6294
6295
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6295
6296
  */const df=o=>class extends ws(o){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const r=this.querySelector("a");r&&r.click()}}};/**
6296
6297
  * @license
6297
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6298
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6298
6299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6299
6300
  */const cf=f`
6300
6301
  :host {
@@ -6317,7 +6318,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6317
6318
  }
6318
6319
  `;/**
6319
6320
  * @license
6320
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6321
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6321
6322
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6322
6323
  */g("vaadin-tab",cf,{moduleId:"vaadin-tab-styles"});class hf extends oe(z(df(he(k)))){static get template(){return C`
6323
6324
  <slot></slot>
@@ -6562,11 +6563,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6562
6563
  }
6563
6564
  `,{moduleId:"lumo-tabs"});/**
6564
6565
  * @license
6565
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6566
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6566
6567
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6567
6568
  */const uf=o=>class extends bs(Cs(o)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),ji(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),i=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=r.right-a;n=i.right-s}else{const s=r.left+a;n=i.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-a)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),i=this.items.find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=r.left+a;n=i.left-s}else{const s=r.right-a;n=i.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-a)),this._scroll(n)}_isItemVisible(e,t,r,i){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const a=this.__isRTL?r:t,n=this.__isRTL?t:r,s=i.right-a,l=i.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:xs(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let r=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(r+=" end"),this.__direction===1&&(r=r.replace(/start|end/giu,i=>i==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
6568
6569
  * @license
6569
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6570
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6570
6571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6571
6572
  */const pf=f`
6572
6573
  :host {
@@ -6646,7 +6647,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6646
6647
  }
6647
6648
  `;/**
6648
6649
  * @license
6649
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6650
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6650
6651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6651
6652
  */g("vaadin-tabs",pf,{moduleId:"vaadin-tabs-styles"});class mf extends uf(oe(z(k))){static get template(){return C`
6652
6653
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
@@ -1,4 +1,4 @@
1
- import { r as ga, g as uo, h as m, H as As, a as Ps, c as Is } from "./index-6e523641-COh-N1ey.js";
1
+ import { r as ga, g as uo, h as m, H as As, a as Ps, c as Is } from "./index-6e523641-CoBB-3Id.js";
2
2
  const Ss = {
3
3
  en: {
4
4
  deposit: "Deposit",
@@ -18538,6 +18538,7 @@ g("vaadin-tab", f`
18538
18538
  overflow: hidden;
18539
18539
  min-width: var(--lumo-size-m);
18540
18540
  -webkit-user-select: none;
18541
+ -moz-user-select: none;
18541
18542
  user-select: none;
18542
18543
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
18543
18544
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
@@ -18748,7 +18749,7 @@ g("vaadin-tab", f`
18748
18749
  `, { moduleId: "lumo-tab" });
18749
18750
  /**
18750
18751
  * @license
18751
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
18752
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
18752
18753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
18753
18754
  */
18754
18755
  const pf = (o) => class extends ws(o) {
@@ -18765,7 +18766,7 @@ const pf = (o) => class extends ws(o) {
18765
18766
  };
18766
18767
  /**
18767
18768
  * @license
18768
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
18769
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
18769
18770
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
18770
18771
  */
18771
18772
  const mf = f`
@@ -18790,7 +18791,7 @@ const mf = f`
18790
18791
  `;
18791
18792
  /**
18792
18793
  * @license
18793
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
18794
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
18794
18795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
18795
18796
  */
18796
18797
  g("vaadin-tab", mf, { moduleId: "vaadin-tab-styles" });
@@ -19050,7 +19051,7 @@ g("vaadin-tabs", f`
19050
19051
  `, { moduleId: "lumo-tabs" });
19051
19052
  /**
19052
19053
  * @license
19053
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
19054
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
19054
19055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
19055
19056
  */
19056
19057
  const _f = (o) => class extends bs(Cs(o)) {
@@ -19129,7 +19130,7 @@ const _f = (o) => class extends bs(Cs(o)) {
19129
19130
  };
19130
19131
  /**
19131
19132
  * @license
19132
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
19133
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
19133
19134
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
19134
19135
  */
19135
19136
  const vf = f`
@@ -19211,7 +19212,7 @@ const vf = f`
19211
19212
  `;
19212
19213
  /**
19213
19214
  * @license
19214
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
19215
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
19215
19216
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
19216
19217
  */
19217
19218
  g("vaadin-tabs", vf, { moduleId: "vaadin-tabs-styles" });