@everymatrix/pam-statement-history 0.5.9 → 0.5.11

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const pamStatementHistory = require('./pam-statement-history-7a7b04ee.js');
5
+ const pamStatementHistory = require('./pam-statement-history-eb496619.js');
6
6
  require('./index-464df915.js');
7
7
 
8
8
 
@@ -9398,15 +9398,15 @@ function _classCallCheck(a, n) {
9398
9398
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
9399
9399
  }
9400
9400
 
9401
- function toPrimitive(t, r) {
9401
+ function toPrimitive(t, e) {
9402
9402
  if ("object" != _typeof(t) || !t) return t;
9403
- var e = t[Symbol.toPrimitive];
9404
- if (void 0 !== e) {
9405
- var i = e.call(t, r || "default");
9403
+ var r;
9404
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
9405
+ var i = r.call(t, e || "default");
9406
9406
  if ("object" != _typeof(i)) return i;
9407
9407
  throw new TypeError("@@toPrimitive must return a primitive value.");
9408
9408
  }
9409
- return ("string" === r ? String : Number)(t);
9409
+ return ("string" === e ? String : Number)(t);
9410
9410
  }
9411
9411
 
9412
9412
  function toPropertyKey(t) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const pamStatementHistory = require('./pam-statement-history-7a7b04ee.js');
5
+ const pamStatementHistory = require('./pam-statement-history-eb496619.js');
6
6
  require('./index-464df915.js');
7
7
 
8
8
 
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { P as PamStatementHistory } from './pam-statement-history-bbad60d1.js';
1
+ export { P as PamStatementHistory } from './pam-statement-history-ac498350.js';
2
2
  import './index-50c7699a.js';
@@ -9396,15 +9396,15 @@ function _classCallCheck(a, n) {
9396
9396
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
9397
9397
  }
9398
9398
 
9399
- function toPrimitive(t, r) {
9399
+ function toPrimitive(t, e) {
9400
9400
  if ("object" != _typeof(t) || !t) return t;
9401
- var e = t[Symbol.toPrimitive];
9402
- if (void 0 !== e) {
9403
- var i = e.call(t, r || "default");
9401
+ var r;
9402
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
9403
+ var i = r.call(t, e || "default");
9404
9404
  if ("object" != _typeof(i)) return i;
9405
9405
  throw new TypeError("@@toPrimitive must return a primitive value.");
9406
9406
  }
9407
- return ("string" === r ? String : Number)(t);
9407
+ return ("string" === e ? String : Number)(t);
9408
9408
  }
9409
9409
 
9410
9410
  function toPropertyKey(t) {
@@ -1,2 +1,2 @@
1
- export { P as pam_statement_history } from './pam-statement-history-bbad60d1.js';
1
+ export { P as pam_statement_history } from './pam-statement-history-ac498350.js';
2
2
  import './index-50c7699a.js';
@@ -1 +1 @@
1
- export{P as PamStatementHistory}from"./pam-statement-history-bbad60d1.js";import"./index-50c7699a.js";
1
+ export{P as PamStatementHistory}from"./pam-statement-history-ac498350.js";import"./index-50c7699a.js";
@@ -6654,4 +6654,4 @@ Vt("vaadin-tabs",D`
6654
6654
  </div>
6655
6655
 
6656
6656
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6657
- `}static get is(){return"vaadin-tabs"}}function _l(t){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(t)}function kl(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Cl(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Al(t){Cl(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===_l(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}_(xl);var Sl={};function zl(){return Sl}function Tl(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Dl(t,e){return Cl(2,arguments),function(t,e){Cl(2,arguments);var i=Al(t).getTime(),o=kl(e);return new Date(i+o)}(t,-kl(e))}function Il(t){Cl(1,arguments);var e=Al(t),i=e.getUTCDay(),o=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e}function Ml(t){Cl(1,arguments);var e=Al(t),i=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(i+1,0,4),o.setUTCHours(0,0,0,0);var r=Il(o),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=Il(s);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function El(t){Cl(1,arguments);var e=Al(t),i=Il(e).getTime()-function(t){Cl(1,arguments);var e=Ml(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Il(i)}(e).getTime();return Math.round(i/6048e5)+1}function Pl(t,e){var i,o,r,s,n,a,l,h;Cl(1,arguments);var c=zl(),d=kl(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Al(t),p=u.getUTCDay(),m=(p<d?7:0)+p-d;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function Ol(t,e){var i,o,r,s,n,a,l,h;Cl(1,arguments);var c=Al(t),d=c.getUTCFullYear(),u=zl(),p=kl(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var v=Pl(m,e),f=new Date(0);f.setUTCFullYear(d,0,p),f.setUTCHours(0,0,0,0);var b=Pl(f,e);return c.getTime()>=v.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function Nl(t,e){Cl(1,arguments);var i=Al(t),o=Pl(i,e).getTime()-function(t,e){var i,o,r,s,n,a,l,h;Cl(1,arguments);var c=zl(),d=kl(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=Ol(t,e),p=new Date(0);return p.setUTCFullYear(u,0,d),p.setUTCHours(0,0,0,0),Pl(p,e)}(i,e).getTime();return Math.round(o/6048e5)+1}function Bl(t,e){for(var i=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return i+o}const jl=function(t,e){var i=t.getUTCFullYear(),o=i>0?i:1-i;return Bl("yy"===e?o%100:o,e.length)},Fl=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Bl(i+1,2)},Ll=function(t,e){return Bl(t.getUTCDate(),e.length)},Rl=function(t,e){return Bl(t.getUTCHours()%12||12,e.length)},ql=function(t,e){return Bl(t.getUTCHours(),e.length)},$l=function(t,e){return Bl(t.getUTCMinutes(),e.length)},Vl=function(t,e){return Bl(t.getUTCSeconds(),e.length)},Wl=function(t,e){var i=e.length,o=t.getUTCMilliseconds();return Bl(Math.floor(o*Math.pow(10,i-3)),e.length)};function Ul(t,e){var i=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(0===s)return i+String(r);var n=e||"";return i+String(r)+n+Bl(s,2)}function Yl(t,e){return t%60==0?(t>0?"-":"+")+Bl(Math.abs(t)/60,2):Hl(t,e)}function Hl(t,e){var i=e||"",o=t>0?"-":"+",r=Math.abs(t);return o+Bl(Math.floor(r/60),2)+i+Bl(r%60,2)}const Gl={G:function(t,e,i){var o=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var o=t.getUTCFullYear();return i.ordinalNumber(o>0?o:1-o,{unit:"year"})}return jl(t,e)},Y:function(t,e,i,o){var r=Ol(t,o),s=r>0?r:1-r;return"YY"===e?Bl(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Bl(s,e.length)},R:function(t,e){return Bl(Ml(t),e.length)},u:function(t,e){return Bl(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Bl(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Bl(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){var o=t.getUTCMonth();switch(e){case"M":case"MM":return Fl(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){var o=t.getUTCMonth();switch(e){case"L":return String(o+1);case"LL":return Bl(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){var r=Nl(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Bl(r,e.length)},I:function(t,e,i){var o=El(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Bl(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ll(t,e)},D:function(t,e,i){var o=function(t){Cl(1,arguments);var e=Al(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime();return Math.floor((i-o)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Bl(o,e.length)},E:function(t,e,i){var o=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Bl(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Bl(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var o=t.getUTCDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Bl(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){var o=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){var o,r=t.getUTCHours();switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){var o,r=t.getUTCHours();switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var o=t.getUTCHours()%12;return 0===o&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return Rl(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ql(t,e)},K:function(t,e,i){var o=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Bl(o,e.length)},k:function(t,e,i){var o=t.getUTCHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Bl(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$l(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Vl(t,e)},S:function(t,e){return Wl(t,e)},X:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return Yl(r);case"XXXX":case"XX":return Hl(r);default:return Hl(r,":")}},x:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"x":return Yl(r);case"xxxx":case"xx":return Hl(r);default:return Hl(r,":")}},O:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ul(r,":");default:return"GMT"+Hl(r,":")}},z:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ul(r,":");default:return"GMT"+Hl(r,":")}},t:function(t,e,i,o){return Bl(Math.floor((o._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,o){return Bl((o._originalDate||t).getTime(),e.length)}};var Kl=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Ql=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Jl={p:Ql,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return Kl(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",Kl(r,e)).replace("{{time}}",Ql(s,e))}};const Xl=Jl;var Zl=["D","DD"],th=["YY","YYYY"];function eh(t){return-1!==Zl.indexOf(t)}function ih(t){return-1!==th.indexOf(t)}function oh(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var rh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function sh(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var nh,ah={date:sh({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:sh({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:sh({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function hh(t){return function(e,i){var o;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,s=null!=i&&i.width?String(i.width):r;o=t.formattingValues[s]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;o=t.values[a]||t.values[n]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function ch(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.width,r=e.match(o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var s,n=r[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return s=t.valueCallback?t.valueCallback(l):l,{value:s=i.valueCallback?i.valueCallback(s):s,rest:e.slice(n.length)}}}const dh={code:"en-US",formatDistance:function(t,e,i){var o,r=rh[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:ah,formatRelative:function(t){return lh[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:hh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:hh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:hh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:hh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:hh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(nh={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(nh.matchPattern);if(!i)return null;var o=i[0],r=t.match(nh.parsePattern);if(!r)return null;var s=nh.valueCallback?nh.valueCallback(r[0]):r[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(o.length)}}),era:ch({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ch({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ch({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ch({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ch({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var uh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ph=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mh=/^'([^]*?)'?$/,vh=/''/g,fh=/[a-zA-Z]/;function bh(t,e,i){var o,r,s,n,a,l,h,c,d,u,p,m,v,f,b,g,y,w;Cl(2,arguments);var x=String(e),_=zl(),k=null!==(o=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:_.locale)&&void 0!==o?o:dh,C=kl(null!==(s=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:_.firstWeekContainsDate)&&void 0!==n?n:null===(d=_.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=kl(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(b=i.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==v?v:_.weekStartsOn)&&void 0!==m?m:null===(y=_.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=Al(t);if(!function(t){if(Cl(1,arguments),!function(t){return Cl(1,arguments),t instanceof Date||"object"===_l(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Al(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var z=Dl(S,Tl(S)),T={firstWeekContainsDate:C,weekStartsOn:A,locale:k,_originalDate:S};return x.match(ph).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Xl[e])(t,k.formatLong):t})).join("").match(uh).map((function(o){if("''"===o)return"'";var r,s,n=o[0];if("'"===n)return(s=(r=o).match(mh))?s[1].replace(vh,"'"):r;var a=Gl[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!ih(o)||oh(o,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!eh(o)||oh(o,e,String(t)),a(z,o,k.localize,T);if(n.match(fh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return o})).join("")}function gh(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function yh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function wh(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return yh(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?yh(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,s=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw s}}}}function xh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _h(t,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_h(t,e)}function kh(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_h(t,e)}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ch(t)}function Ah(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ah=function(){return!!t})()}function Sh(t){var e=Ah();return function(){var i,o=Ch(t);if(e){var r=Ch(this).constructor;i=Reflect.construct(o,arguments,r)}else i=o.apply(this,arguments);return function(t,e){if(e&&("object"==_l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xh(t)}(this,i)}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Th(t){var e=function(t){if("object"!=_l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=_l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_l(e)?e:e+""}function Dh(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Th(o.key),o)}}function Ih(t,e,i){return e&&Dh(t.prototype,e),i&&Dh(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mh(t,e,i){return(e=Th(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Eh=function(){function t(){zh(this,t),Mh(this,"priority",void 0),Mh(this,"subPriority",0)}return Ih(t,[{key:"validate",value:function(){return!0}}]),t}(),Ph=function(){kh(e,Eh);var t=Sh(e);function e(i,o,r,s,n){var a;return zh(this,e),(a=t.call(this)).value=i,a.validateValue=o,a.setValue=r,a.priority=s,n&&(a.subPriority=n),a}return Ih(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),Oh=function(){kh(e,Eh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",10),Mh(xh(i),"subPriority",-1),i}return Ih(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Nh=function(){function t(){zh(this,t),Mh(this,"incompatibleTokens",void 0),Mh(this,"priority",void 0),Mh(this,"subPriority",void 0)}return Ih(t,[{key:"run",value:function(t,e,i,o){var r=this.parse(t,e,i,o);return r?{setter:new Ph(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Bh=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",140),Mh(xh(i),"incompatibleTokens",["R","u","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),jh=/^(1[0-2]|0?\d)/,Fh=/^(3[0-1]|[0-2]?\d)/,Lh=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Rh=/^(5[0-3]|[0-4]?\d)/,qh=/^(2[0-3]|[0-1]?\d)/,$h=/^(2[0-4]|[0-1]?\d)/,Vh=/^(1[0-1]|0?\d)/,Wh=/^(1[0-2]|0?\d)/,Uh=/^[0-5]?\d/,Yh=/^[0-5]?\d/,Hh=/^\d/,Gh=/^\d{1,2}/,Kh=/^\d{1,3}/,Qh=/^\d{1,4}/,Jh=/^-?\d+/,Xh=/^-?\d/,Zh=/^-?\d{1,2}/,tc=/^-?\d{1,3}/,ec=/^-?\d{1,4}/,ic=/^([+-])(\d{2})(\d{2})?|Z/,oc=/^([+-])(\d{2})(\d{2})|Z/,rc=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,sc=/^([+-])(\d{2}):(\d{2})|Z/,nc=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ac(t,e){return t?{value:e(t.value),rest:t.rest}:t}function lc(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function hc(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function cc(t){return lc(Jh,t)}function dc(t,e){switch(t){case 1:return lc(Hh,e);case 2:return lc(Gh,e);case 3:return lc(Kh,e);case 4:return lc(Qh,e);default:return lc(new RegExp("^\\d{1,"+t+"}"),e)}}function uc(t,e){switch(t){case 1:return lc(Xh,e);case 2:return lc(Zh,e);case 3:return lc(tc,e);case 4:return lc(ec,e);default:return lc(new RegExp("^-?\\d{1,"+t+"}"),e)}}function pc(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function mc(t,e){var i,o=e>0,r=o?e:1-e;if(r<=50)i=t||100;else{var s=r+50;i=t+100*Math.floor(s/100)-(t>=s%100?100:0)}return o?i:1-i}function vc(t){return t%400==0||t%4==0&&t%100!=0}var fc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ac(dc(4,t),o);case"yo":return ac(i.ordinalNumber(t,{unit:"year"}),o);default:return ac(dc(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var o=t.getUTCFullYear();if(i.isTwoDigitYear){var r=mc(i.year,o);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),bc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ac(dc(4,t),o);case"Yo":return ac(i.ordinalNumber(t,{unit:"year"}),o);default:return ac(dc(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,o){var r=Ol(t,o);if(i.isTwoDigitYear){var s=mc(i.year,r);return t.setUTCFullYear(s,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Pl(t,o)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Pl(t,o)}}]),e}(),gc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e){return uc("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var o=new Date(0);return o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0),Il(o)}}]),e}(),yc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e){return uc("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),wc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",120),Mh(xh(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return dc(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),xc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",120),Mh(xh(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return dc(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),_c=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Mh(xh(i),"priority",110),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"M":return ac(lc(jh,t),o);case"MM":return ac(dc(2,t),o);case"Mo":return ac(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),kc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",110),Mh(xh(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"L":return ac(lc(jh,t),o);case"LL":return ac(dc(2,t),o);case"Lo":return ac(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Cc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",100),Mh(xh(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return lc(Rh,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,o){return Pl(function(t,e,i){Cl(2,arguments);var o=Al(t),r=kl(e),s=Nl(o,i)-r;return o.setUTCDate(o.getUTCDate()-7*s),o}(t,i,o),o)}}]),e}(),Ac=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",100),Mh(xh(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return lc(Rh,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return Il(function(t,e){Cl(2,arguments);var i=Al(t),o=kl(e),r=El(i)-o;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),Sc=[31,28,31,30,31,30,31,31,30,31,30,31],zc=[31,29,31,30,31,30,31,31,30,31,30,31],Tc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"subPriority",1),Mh(xh(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return lc(Fh,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){var i=vc(t.getUTCFullYear()),o=t.getUTCMonth();return i?e>=1&&e<=zc[o]:e>=1&&e<=Sc[o]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Dc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"subpriority",1),Mh(xh(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return lc(Lh,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return vc(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function Ic(t,e,i){var o,r,s,n,a,l,h,c;Cl(2,arguments);var d=zl(),u=kl(null!==(o=null!==(r=null!==(s=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:d.weekStartsOn)&&void 0!==r?r:null===(h=d.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Al(t),m=kl(e),v=((m%7+7)%7<u?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+v),p}var Mc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=Ic(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Ec=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ac(dc(e.length,t),r);case"eo":return ac(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=Ic(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Pc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ac(dc(e.length,t),r);case"co":return ac(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=Ic(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Oc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return dc(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ac(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return ac(i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return ac(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);default:return ac(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){Cl(2,arguments);var i=kl(e);i%7==0&&(i-=7);var o=Al(t),r=((i%7+7)%7<1?7:0)+i-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+r),o}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Nc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",80),Mh(xh(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(pc(i),0,0,0),t}}]),e}(),Bc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",80),Mh(xh(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(pc(i),0,0,0),t}}]),e}(),jc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",80),Mh(xh(i),"incompatibleTokens",["a","b","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(pc(i),0,0,0),t}}]),e}(),Fc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return lc(Wh,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:o||12!==i?i:0,0,0,0),t}}]),e}(),Lc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return lc(qh,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),Rc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return lc(Vh,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:i,0,0,0),t}}]),e}(),qc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return lc($h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),$c=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",60),Mh(xh(i),"incompatibleTokens",["t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return lc(Uh,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),Vc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",50),Mh(xh(i),"incompatibleTokens",["t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return lc(Yh,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),Wc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",30),Mh(xh(i),"incompatibleTokens",["t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e){return ac(dc(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),Uc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",10),Mh(xh(i),"incompatibleTokens",["t","T","x"]),i}return Ih(e,[{key:"parse",value:function(t,e){switch(e){case"X":return hc(ic,t);case"XX":return hc(oc,t);case"XXXX":return hc(rc,t);case"XXXXX":return hc(nc,t);default:return hc(sc,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Yc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",10),Mh(xh(i),"incompatibleTokens",["t","T","X"]),i}return Ih(e,[{key:"parse",value:function(t,e){switch(e){case"x":return hc(ic,t);case"xx":return hc(oc,t);case"xxxx":return hc(rc,t);case"xxxxx":return hc(nc,t);default:return hc(sc,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Hc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",40),Mh(xh(i),"incompatibleTokens","*"),i}return Ih(e,[{key:"parse",value:function(t){return cc(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Gc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",20),Mh(xh(i),"incompatibleTokens","*"),i}return Ih(e,[{key:"parse",value:function(t){return cc(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),Kc={G:new Bh,y:new fc,Y:new bc,R:new gc,u:new yc,Q:new wc,q:new xc,M:new _c,L:new kc,w:new Cc,I:new Ac,d:new Tc,D:new Dc,E:new Mc,e:new Ec,c:new Pc,i:new Oc,a:new Nc,b:new Bc,B:new jc,h:new Fc,H:new Lc,K:new Rc,k:new qc,m:new $c,s:new Vc,S:new Wc,X:new Uc,x:new Yc,t:new Hc,T:new Gc},Qc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xc=/^'([^]*?)'?$/,Zc=/''/g,td=/\S/,ed=/[a-zA-Z]/;const id=class{constructor(e){t(this,e),this.stylingInitialized=!1,this.calendarMaxDate="",this.fetchToken=0,this.fetchData=async()=>{if(!this.playerid||!this.session||!this.endpoint)return;this.fetchToken++;const t=this.fetchToken;this.isLoading=!0,this.errorMessage=null;const{startDate:e,endDate:i}=this.getDateRange(),o={"X-SessionId":this.session},r=this.endpoint.replace(/\/$/,""),s=(this.currentPage*this.itemsPerPage).toString(),n=this.itemsPerPage.toString();try{const a=[];let l=!1,h=!1;if(["All","Payments"].includes(this.activeTab)){const t=new URL(`${r}/v1/player/${this.playerid}/transactions/banking`,window.location.origin);t.searchParams.append("limit",n),t.searchParams.append("offset",s),t.searchParams.append("startDate",bh(new Date(e),"yyyy-MM-dd")),t.searchParams.append("endDate",bh(new Date(i),"yyyy-MM-dd")),a.push(fetch(t.href,{method:"GET",headers:o}).then((t=>t.ok?t.json():null)).then((t=>{var e;return l=!!(null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.next),this.normalizeBankingData(t)})))}if(["All","Casino","Sports","Bonus"].includes(this.activeTab)){const t=new URL(`${r}/v1/player/${this.playerid}/transactions/wagering`,window.location.origin);t.searchParams.append("type","All"===this.activeTab?"All":this.activeTab),t.searchParams.append("limit",n),t.searchParams.append("offset",s),t.searchParams.append("startDate",e),t.searchParams.append("endDate",i),a.push(fetch(t.href,{method:"GET",headers:o}).then((t=>t.ok?t.json():null)).then((t=>{var e;return h=!!(null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.next),this.normalizeWageringData(t)})))}const c=await Promise.all(a);if(this.fetchToken!==t)return;const d=c.flat().filter(Boolean);d.sort(((t,e)=>e.timestamp-t.timestamp)),this.transactions=d,this.hasNextPage=l||h,this.isLoading=!1,window.postMessage({type:"ScrollToTop"},window.location.href)}catch(e){if(this.fetchToken!==t)return;this.errorMessage=this.translate("errorLoading"),this.isLoading=!1}},this.scrollToTop=()=>{this.statementContainer&&setTimeout((()=>{this.statementContainer.scrollIntoView({behavior:"smooth",block:"start"})}),50)},this.goToPrevPage=()=>{this.currentPage>0&&(this.currentPage--,this.fetchData(),this.scrollToTop())},this.goToNextPage=()=>{this.hasNextPage&&(this.currentPage++,this.fetchData(),this.scrollToTop())},this.formatDate=t=>t?bh(new Date(t.year,t.month,t.day),this.dateformat):"",this.parseDate=t=>{const e=t.includes("/")?"/":"-",i=t.split(e);let o=i[0],r=i[1],s=i[2];return 4===i[0].length&&(s=i[0],r=i[1],o=i[2]),{year:parseInt(s),month:parseInt(r)-1,day:parseInt(o)}},this.handleStartDateChange=t=>{const e=t.target;e.value&&(this.customStartDate=e.value)},this.handleEndDateChange=t=>{const e=t.target;e.value&&(this.customEndDate=e.value)},this.mbsource="",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.session="",this.playerid="",this.endpoint="",this.statementenabled="",this.postMessage=!1,this.language="",this.quickFiltersActive=!1,this.clientStylingUrlContent="",this.dateformat="dd-MM-yyyy",this.translationUrl="",this.activeTab="All",this.activeFilter="1D",this.transactions=[],this.isLoading=!1,this.errorMessage=null,this.customStartDate="",this.customEndDate="",this.currentPage=0,this.hasNextPage=!1,this.itemsPerPage=10,this.copiedId=null,this.isStatementEnabled=!0}translate(t){const e=(t=>{var e,i;return(null===(e=c[this.language||"en"])||void 0===e?void 0:e[t])||(null===(i=c.en)||void 0===i?void 0:i[t])})(t);return!e&&t?t.charAt(0).toUpperCase()+t.slice(1):e||t}initStyling(){this.statementContainer&&!this.stylingInitialized&&(this.mbsource&&n(this.statementContainer,`${this.mbsource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.statementContainer,this.clientStyling),this.clientStylingUrl&&s(this.statementContainer,this.clientStylingUrl),this.stylingInitialized=!0)}formatCurrencyAmount(t){return null==t||isNaN(t)?"0.00":t.toFixed(2)}isDateRangeExceeded(){if(!this.customStartDate||!this.customEndDate)return!1;const t=new Date(this.customStartDate).getTime(),e=new Date(this.customEndDate).getTime(),i=Math.abs(e-t);return Math.ceil(i/864e5)>180}async componentWillLoad(){var t;this.translationUrl&&await(t=this.translationUrl,new Promise(((e,i)=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{const i=e;c[i]||(c[i]={});for(let o in t[e])c[i][o]=t[e][o]})),e(c)})).catch((t=>{i(t)}))}))).catch((t=>{console.error("Failed to load translations",t)}));const e=new Date;this.calendarMaxDate=bh(e,"yyyy-MM-dd"),this.customEndDate=bh(e,"yyyy-MM-dd"),this.customStartDate=bh(function(t,e){return Cl(2,arguments),function(t,e){Cl(2,arguments);var i=Al(t),o=kl(e);if(isNaN(o))return new Date(NaN);if(!o)return i;var r=i.getDate(),s=new Date(i.getTime());return s.setMonth(i.getMonth()+o+1,0),r>=s.getDate()?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}(t,-kl(e))}(e,1),"yyyy-MM-dd")}handleStatementEnabledChange(t){"false"===t?window.location.replace("/account/profile-info"):"true"===t&&(this.isStatementEnabled=!1)}handleTabChange(){this.resetPaginationAndFetch()}handleFilterChange(t){"Custom"!==t&&this.resetPaginationAndFetch()}handleClientStylingChange(t,e){t!==e&&r(this.statementContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!==e&&s(this.statementContainer,this.clientStylingUrl)}handlembsourceChange(t,e){t!==e&&n(this.statementContainer,`${this.mbsource}.Style`,this.stylingSubscription)}handleAuthDataChange(){this.endpoint&&this.playerid&&this.session&&this.fetchData()}componentDidUpdate(){this.initStyling()}componentDidLoad(){"false"===this.statementenabled?window.location.replace("/account/profile-info"):"true"===this.statementenabled&&(this.isStatementEnabled=!1),this.initStyling()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}resetPaginationAndFetch(){this.currentPage=0,this.hasNextPage=!1,this.fetchData()}formatDateForUI(t){if(!t)return"";const e=new Date(t);return`${this.translate(h[e.getDay()].toLowerCase())} ${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")} - ${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`}formattedToIso(t,e){const i=function(t,e,i,o){var r,s,n,a,l,h,c,d,u,p,m,v,f,b,g,y,w,x;Cl(3,arguments);var _=String(t),k=String(e),C=zl(),A=null!==(r=null!==(s=null==o?void 0:o.locale)&&void 0!==s?s:C.locale)&&void 0!==r?r:dh;if(!A.match)throw new RangeError("locale must contain match property");var S=kl(null!==(n=null!==(a=null!==(l=null!==(h=null==o?void 0:o.firstWeekContainsDate)&&void 0!==h?h:null==o||null===(c=o.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:C.firstWeekContainsDate)&&void 0!==a?a:null===(u=C.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=kl(null!==(m=null!==(v=null!==(f=null!==(b=null==o?void 0:o.weekStartsOn)&&void 0!==b?b:null==o||null===(g=o.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:C.weekStartsOn)&&void 0!==v?v:null===(w=C.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===_?Al(i):new Date(NaN);var T,D={firstWeekContainsDate:S,weekStartsOn:z,locale:A},I=[new Oh],M=k.match(Jc).map((function(t){var e=t[0];return e in Xl?(0,Xl[e])(t,A.formatLong):t})).join("").match(Qc),E=[],P=wh(M);try{var O=function(){var e=T.value;null!=o&&o.useAdditionalWeekYearTokens||!ih(e)||oh(e,k,t),null!=o&&o.useAdditionalDayOfYearTokens||!eh(e)||oh(e,k,t);var i=e[0],r=Kc[i];if(r){var s=r.incompatibleTokens;if(Array.isArray(s)){var n=E.find((function(t){return s.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));E.push({token:i,fullToken:e});var a=r.run(_,e,A.match,D);if(!a)return{v:new Date(NaN)};I.push(a.setter),_=a.rest}else{if(i.match(ed))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Xc)[1].replace(Zc,"'")),0!==_.indexOf(e))return{v:new Date(NaN)};_=_.slice(e.length)}};for(P.s();!(T=P.n()).done;){var N=O();if("object"===_l(N))return N.v}}catch(t){P.e(t)}finally{P.f()}if(_.length>0&&td.test(_))return new Date(NaN);var B=I.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return I.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),j=Al(i);if(isNaN(j.getTime()))return new Date(NaN);var F,L=Dl(j,Tl(j)),R={},q=wh(B);try{for(q.s();!(F=q.n()).done;){var $=F.value;if(!$.validate(L,D))return new Date(NaN);var V=$.set(L,R,D);Array.isArray(V)?(L=V[0],gh(R,V[1])):L=V}}catch(t){q.e(t)}finally{q.f()}return L}(t,"yyyy-MM-dd",new Date),o=e?function(t){Cl(1,arguments);var e=Al(t);return e.setHours(23,59,59,999),e}(i):function(t){Cl(1,arguments);var e=Al(t);return e.setHours(0,0,0,0),e}(i);return bh(o,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")}getDateRange(){if("Custom"===this.activeFilter)return{startDate:this.formattedToIso(this.customStartDate,!1),endDate:this.formattedToIso(this.customEndDate,!0)};const t=new Date,e=new Date;switch(this.activeFilter){case"1D":e.setDate(e.getDate()-1);break;case"1W":e.setDate(e.getDate()-7);break;case"1M":e.setMonth(e.getMonth()-1);break;case"3M":e.setMonth(e.getMonth()-3)}return{startDate:e.toISOString(),endDate:t.toISOString()}}parseAmount(t){return null==t?0:"object"==typeof t&&void 0!==t.parsedValue?Number(t.parsedValue)||0:Number(t)||0}normalizeBankingData(t){return t&&t.transactions?t.transactions.map((t=>{var e;const i=1===t.type||14===t.type,o=null!==(e=t.realAmount)&&void 0!==e?e:t.creditAmount;let r=t.transIdStr;!r&&t.transId&&(r="object"==typeof t.transId?t.transId.source||t.transId.parsedValue:t.transId);const s=i?"withdrawal":"deposit",n=t.status?String(t.status).toLowerCase():"";return{id:r?String(r).startsWith("#")?String(r):`#${r}`:this.translate("na"),category:this.translate(s),status:n?this.translate(n):null,statusClass:n,amount:Math.abs(this.parseAmount(o)),currency:t.currencyCode||t.currency||"",balance:null,date:this.formatDateForUI(t.created),isPositive:!i,timestamp:new Date(t.created).getTime()}})):[]}normalizeWageringData(t){return t&&t.transactions?t.transactions.map((t=>{var e,i;const o="Credit"===t.transName||"2"===t.transType;let r=this.translate("casino");(null===(e=t.gameModel)||void 0===e?void 0:e.name)?r=`${this.translate("casino")} / ${t.gameModel.name}`:t.gameId&&(r=`${this.translate("casino")} / ${t.gameId}`);const s=o?"won":"Debit"===t.transName||"1"===t.transType?"placed":String(t.transName).toLowerCase(),n=null!==(i=t.realAmount)&&void 0!==i?i:t.totalAmount;return{id:t.transId,category:r,status:this.translate(s),statusClass:o?"won":"placed",amount:Math.abs(this.parseAmount(n)),currency:t.currencyCode||t.currency||"",balance:this.parseAmount(t.balance),date:this.formatDateForUI(t.ins),isPositive:o,timestamp:new Date(t.ins).getTime()}})):[]}execCommandCopy(t){const e=document.createElement("textarea");e.value=t,Object.assign(e.style,{position:"fixed",opacity:"0"}),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}async copyToClipboard(t){try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(t):this.execCommandCopy(t),this.copiedId=t,setTimeout((()=>{this.copiedId===t&&(this.copiedId=null)}),2e3)}catch(e){try{this.execCommandCopy(t),this.copiedId=t,setTimeout((()=>{this.copiedId===t&&(this.copiedId=null)}),2e3)}catch(t){console.error(this.translate("failedToCopyText"),t)}}}setDateFormat(t){t&&!t.__i18nConfigured&&(t.i18n=Object.assign(Object.assign({},t.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),t.__i18nConfigured=!0)}isSubmitEnabled(){if(!this.customStartDate||!this.customEndDate)return!1;const t=new Date(this.customStartDate).getTime(),e=new Date(this.customEndDate).getTime();return!(t>e)&&Math.ceil(Math.abs(e-t)/864e5)<=180}render(){return this.isStatementEnabled?e("div",{class:"verify-access-loading"},e("div",{class:"loading-text"},this.translate("loading"))):e("div",{ref:t=>this.statementContainer=t,class:"statement-wrapper"},e("div",{class:"header"},e("h2",null,this.translate("transactionHistory"))),e("div",{class:"tabs-container desktop-tabs"},a.map((t=>e("button",{class:"tab-btn "+(this.activeTab===t?"active":""),onClick:()=>this.activeTab=t},this.translate(t.toLowerCase()))))),e("div",{class:"mobile-tabs-select"},e("select",Object.assign({onChange:t=>this.activeTab=t.target.value},{value:this.activeTab}),a.map((t=>e("option",{value:t},this.translate(t.toLowerCase())))))),e("div",{class:"card-container"},e("div",{class:"filters-container"},l.map((t=>e("button",{class:"filter-btn "+(this.activeFilter===t?"active":""),onClick:()=>this.activeFilter=t},this.translate(t.toLowerCase()))))),"Custom"===this.activeFilter&&e("div",{class:"custom-date-wrapper"},e("div",{class:"calendar-container"},e("div",{class:"calendar-field"},e("label",null,this.translate("from")),e("vaadin-date-picker",{value:this.customStartDate,max:this.calendarMaxDate,onChange:this.handleStartDateChange,ref:t=>this.setDateFormat(t),class:"VaadinDatePicker"})),e("div",{class:"calendar-field"},e("label",null,this.translate("to")),e("vaadin-date-picker",{value:this.customEndDate,min:this.customStartDate,max:this.calendarMaxDate,onChange:this.handleEndDateChange,ref:t=>this.setDateFormat(t),class:"VaadinDatePicker"}))),e("button",{class:"apply-date-btn",disabled:!this.isSubmitEnabled()||this.isLoading,onClick:()=>this.resetPaginationAndFetch()},this.translate("apply")),this.isDateRangeExceeded()&&e("div",{class:"date-limit-warning"},this.translate("maxRange"))),e("div",{class:"transactions-list"},this.isLoading&&e("div",{class:"empty-state"},this.translate("loading")),!this.isLoading&&this.errorMessage&&e("div",{class:"empty-state error"},this.errorMessage),!this.isLoading&&!this.errorMessage&&0===this.transactions.length&&e("div",{class:"empty-state"},this.translate("noData")),!this.isLoading&&!this.errorMessage&&this.transactions.length>0&&this.transactions.map((t=>e("div",{class:"transaction-item"},e("div",{class:"row top-row"},e("div",{class:"category-group"},e("span",{class:"category"},t.category),t.status&&e("span",{class:`status-badge ${t.statusClass}`},t.status)),e("span",{class:"amount "+(t.isPositive?"positive":"negative")},t.isPositive?"+":"-"," ",t.currency," ",this.formatCurrencyAmount(t.amount))),e("div",{class:"row middle-row"},e("span",{class:"transaction-id"},t.id.startsWith("#")?t.id:`#${t.id}`),e("div",{class:"copy-action-wrapper",onClick:()=>this.copyToClipboard(t.id)},e("svg",{class:"copy-icon",viewBox:"0 0 24 24",width:"25",height:"25"},e("rect",{x:"9",y:"9",width:"10",height:"10",rx:"1",ry:"1"}),e("rect",{x:"5",y:"5",width:"10",height:"10",rx:"1",ry:"1"})),this.copiedId===t.id&&e("span",{class:"copied-tooltip"},this.translate("copied")))),e("div",{class:"row bottom-row"},e("span",{class:"date"},t.date),e("span",{class:"balance"},null!=t.balance&&!isNaN(t.balance)&&e(i,null,this.translate("balance")," ",e("strong",null,t.currency," ",this.formatCurrencyAmount(t.balance))))))))),!this.isLoading&&this.transactions.length>0&&(this.currentPage>0||this.hasNextPage)&&e("div",{class:"pagination-container"},e("button",{class:"pagination-btn prev-btn",disabled:0===this.currentPage,onClick:this.goToPrevPage},this.translate("prev")),e("span",{class:"page-indicator"},this.translate("page")," ",this.currentPage+1),e("button",{class:"pagination-btn next-btn",disabled:!this.hasNextPage,onClick:this.goToNextPage},this.translate("next")))))}static get watchers(){return{statementenabled:["handleStatementEnabledChange"],activeTab:["handleTabChange"],activeFilter:["handleFilterChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbsource:["handlembsourceChange"],session:["handleAuthDataChange"],playerid:["handleAuthDataChange"],endpoint:["handleAuthDataChange"]}}};id.style=':host{display:block;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;color:var(--emw--color-contrast, #333);height:auto;min-height:100%}.statement-wrapper{max-width:100%;width:100%;min-height:100%;height:auto;box-sizing:border-box;background-color:var(--emw--color-white, #ffffff);border-radius:10px;padding:30px 40px;display:flex;flex-direction:column}@media (max-width: 600px){.statement-wrapper{padding:15px;background-color:transparent}}.header{margin-bottom:20px}.header h2{font-size:19px;font-weight:700;margin:0;color:var(--emw--color-contrast, #1a1a1a)}.desktop-tabs{display:flex;gap:10px;margin-bottom:20px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:5px}.desktop-tabs::-webkit-scrollbar{height:4px}.desktop-tabs::-webkit-scrollbar-thumb{background-color:var(--emw--color-gray-200, #ccc);border-radius:4px}.desktop-tabs .tab-btn{padding:8px 16px;border:none;border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;background-color:var(--emw--color-gray-100, #f0f0f0);color:var(--emw--color-gray-300, #666);transition:all 0.2s ease;white-space:nowrap}.desktop-tabs .tab-btn.active{background-color:var(--emw--color-primary, #ff6b00);color:var(--emw--color-white, #fff)}.desktop-tabs .tab-btn:hover:not(.active){background-color:var(--emw--color-gray-200, #e4e4e4)}@media (max-width: 600px){.desktop-tabs{display:none}}.mobile-tabs-select{display:none;margin-bottom:20px}.mobile-tabs-select select{width:100%;padding:12px 16px;border-radius:8px;border:1px solid var(--emw--color-gray-200, #ddd);font-size:16px;font-weight:500;color:var(--emw--color-black, #000);background-color:var(--emw--color-white, #fff);appearance:none;background:var(--emw--color-white, #fff) url(\'data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\') 97% center no-repeat;box-shadow:0 2px 4px rgba(0, 0, 0, 0.02)}.mobile-tabs-select select:focus{outline:none;border-color:var(--emw--color-primary, #ff6b00)}@media (max-width: 600px){.mobile-tabs-select{display:block}}.card-container{background:transparent;border-radius:0;padding:0;box-shadow:none;margin-top:20px;display:flex;flex-direction:column;flex:1 0 auto}.filters-container{display:flex;gap:20px;border-bottom:1px solid var(--emw--color-gray-100, #eee);padding-bottom:12px;margin-bottom:16px;overflow-x:auto;white-space:nowrap}.filters-container .filter-btn{background:none;border:none;font-size:14px;font-weight:600;color:var(--emw--color-gray-150, #888);cursor:pointer;padding:0}.filters-container .filter-btn.active{color:var(--emw--color-primary, #ff6b00)}.filters-container .filter-btn:hover{color:var(--emw--color-contrast, #333)}.custom-date-wrapper{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:24px}@media (max-width: 600px){.custom-date-wrapper{align-items:stretch}}.custom-date-wrapper .calendar-container{display:flex;flex-direction:row;align-items:center;gap:20px;width:100%;box-sizing:border-box;background-color:var(--emw--color-background, #f8f9fa);border:1px solid var(--emw--color-gray-100, #eee);border-radius:8px;padding:12px 16px}@media (max-width: 600px){.custom-date-wrapper .calendar-container{flex-direction:column;align-items:stretch;gap:16px;padding:16px}}.custom-date-wrapper .date-limit-warning{color:var(--emw--color-error, #d32f2f);font-size:13px;margin-top:8px;width:100%}.custom-date-wrapper .calendar-field{display:flex;flex-direction:row;align-items:center;gap:12px;flex:1}@media (max-width: 600px){.custom-date-wrapper .calendar-field{flex-direction:column;align-items:flex-start;gap:4px}}.custom-date-wrapper .calendar-field label{font-size:14px;font-weight:500;color:var(--emw--color-white, #ffffff);min-width:40px;margin:0;white-space:nowrap}.custom-date-wrapper .calendar-field .VaadinDatePicker{width:100%;flex:1}.custom-date-wrapper .apply-date-btn{padding:0 24px;height:44px;background-color:var(--emw--color-primary, #ff6b00);color:var(--emw--color-white, #fff);border:none;border-radius:6px;font-weight:600;font-size:15px;cursor:pointer;transition:background-color 0.2s;white-space:nowrap}@media (max-width: 600px){.custom-date-wrapper .apply-date-btn{width:100%}}.custom-date-wrapper .apply-date-btn:hover:not(:disabled){background-color:var(--emw--color-hover, #e66000)}.custom-date-wrapper .apply-date-btn:disabled{background-color:var(--emw--color-primary-disabled, #ffd6b3);color:var(--emw--color-white, #fff);cursor:not-allowed}vaadin-date-picker.VaadinDatePicker{box-shadow:none;border:1px solid var(--emw--pam-border, rgba(255, 255, 255, 0.3));border-radius:var(--emw--border-radius, 8px);background-color:transparent}vaadin-date-picker.VaadinDatePicker input[slot=input],vaadin-date-picker.VaadinDatePicker input[id^=search-input-vaadin-date-picker]{color:var(--emw--color-white, #ffffff) !important;background-color:transparent;padding-left:12px;border:none;border-radius:var(--emw--border-radius, 8px);box-shadow:none !important;outline:none;-webkit-appearance:none}vaadin-date-picker.VaadinDatePicker:focus-within{border-color:var(--emw--color-primary, #ffc107)}.transactions-list{display:flex;flex-direction:column;flex:1 0 auto}.transactions-list .empty-state{padding:30px;text-align:center;color:var(--emw--color-gray-300, #666);font-size:14px}.transactions-list .empty-state.error{color:var(--emw--color-error, #d32f2f)}.transactions-list .transaction-item{border-bottom:1px solid var(--emw--color-gray-100, #f0f0f0);padding:16px 0;display:flex;flex-direction:column;gap:10px}.transactions-list .transaction-item:last-child{border-bottom:none;padding-bottom:0}.transactions-list .transaction-item .row{display:flex;justify-content:space-between;align-items:center}.transactions-list .transaction-item .category-group{display:flex;align-items:center;gap:8px}.transactions-list .transaction-item .category-group .category{font-size:14px;color:var(--emw--color-secondary, #5bb4ff)}.transactions-list .transaction-item .category-group .status-badge{font-size:12px;padding:3px 8px;border-radius:12px;font-weight:600}.transactions-list .transaction-item .category-group .status-badge.won,.transactions-list .transaction-item .category-group .status-badge.success{background-color:var(--emw--color-valid-bg, #e8f5e9);color:var(--emw--color-valid, #4caf50)}.transactions-list .transaction-item .category-group .status-badge.placed{background-color:var(--emw--color-info-bg, #e3f2fd);color:var(--emw--color-info, #2196f3)}.transactions-list .transaction-item .category-group .status-badge.tax{background-color:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #607d8b)}.transactions-list .transaction-item .category-group .status-badge.pendingnotification,.transactions-list .transaction-item .category-group .status-badge.pending{color:var(--emw--color-pending, #F5A623)}.transactions-list .transaction-item .category-group .status-badge.failed,.transactions-list .transaction-item .category-group .status-badge.declined,.transactions-list .transaction-item .category-group .status-badge.cancelled{color:var(--emw--color-error, #d32f2f)}.transactions-list .transaction-item .amount{font-size:15px;font-weight:600}.transactions-list .transaction-item .amount.positive{color:var(--emw--color-valid, #4caf50)}.transactions-list .transaction-item .amount.negative{color:var(--emw--color-secondary, #5bb4ff)}.transactions-list .transaction-item .middle-row{justify-content:space-between}.transactions-list .transaction-item .middle-row .transaction-id{font-size:14px;font-weight:600;color:var(--emw--color-contrast, #333);word-break:break-all;padding-right:16px}.transactions-list .transaction-item .middle-row .copy-action-wrapper{position:relative;display:flex;align-items:center;min-width:30px;min-height:30px;justify-content:center;cursor:pointer;padding:8px;margin-right:-8px}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copy-icon{fill:var(--emw--color-gray-300, #4a4a4a);stroke:var(--emw--color-white, #ffffff);stroke-width:2px;cursor:pointer;transition:transform 0.1s;pointer-events:none}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copy-icon:hover .copy-icon{transform:scale(1.1)}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copy-icon:active{transform:scale(0.95)}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copied-tooltip{position:absolute;right:100%;margin-right:8px;background:var(--emw--color-contrast, #333);color:var(--emw--color-white, #fff);font-size:12px;font-weight:500;padding:2px 6px;border-radius:4px;white-space:nowrap;pointer-events:none;animation:fadeInOutCopy 2s ease forwards}.transactions-list .transaction-item .bottom-row{font-size:13px;color:var(--emw--color-gray-150, #888)}.transactions-list .transaction-item .bottom-row .balance strong{color:var(--emw--color-contrast, #333)}@keyframes fadeInOutCopy{0%{opacity:0;transform:translateX(5px)}10%{opacity:1;transform:translateX(0)}80%{opacity:1;transform:translateX(0)}100%{opacity:0}}.pagination-container{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:16px;border-top:1px solid var(--emw--color-gray-100, #eee);margin-bottom:20px}@media (max-width: 600px){.pagination-container{padding-bottom:calc(90px + env(safe-area-inset-bottom, 0px));margin-bottom:0}}.pagination-container .pagination-btn{background-color:var(--emw--color-white, #fff);border:1px solid var(--emw--color-gray-200, #ddd);color:var(--emw--color-primary, #ff6b00);font-size:14px;font-weight:600;padding:8px 16px;border-radius:4px;cursor:pointer;transition:all 0.2s;display:flex;align-items:center;gap:8px}.pagination-container .pagination-btn:hover:not(:disabled){background-color:var(--emw--color-primary-light, #fff5f0);border-color:var(--emw--color-primary, #ff6b00)}.pagination-container .pagination-btn:disabled{color:var(--emw--color-gray-200, #bbb);border-color:var(--emw--color-gray-100, #eee);cursor:not-allowed}.pagination-container .pagination-btn.next-btn::after{content:">";font-weight:bold}.pagination-container .pagination-btn.prev-btn::before{content:"<";font-weight:bold}.pagination-container .page-indicator{color:var(--emw--color-gray-300, #666);font-size:14px;font-weight:500}.verify-access-loading{height:100dvh;border:2px solid red;background-color:var(--emw--color-white, #ffffff);display:flex;justify-content:center;align-items:center}.verify-access-loading .loading-text{color:var(--emw--color-gray-300, #666666);font-size:16px;font-weight:500}';export{id as P}
6657
+ `}static get is(){return"vaadin-tabs"}}function _l(t){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(t)}function kl(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Cl(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Al(t){Cl(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===_l(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}_(xl);var Sl={};function zl(){return Sl}function Tl(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Dl(t,e){return Cl(2,arguments),function(t,e){Cl(2,arguments);var i=Al(t).getTime(),o=kl(e);return new Date(i+o)}(t,-kl(e))}function Il(t){Cl(1,arguments);var e=Al(t),i=e.getUTCDay(),o=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e}function Ml(t){Cl(1,arguments);var e=Al(t),i=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(i+1,0,4),o.setUTCHours(0,0,0,0);var r=Il(o),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=Il(s);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function El(t){Cl(1,arguments);var e=Al(t),i=Il(e).getTime()-function(t){Cl(1,arguments);var e=Ml(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Il(i)}(e).getTime();return Math.round(i/6048e5)+1}function Pl(t,e){var i,o,r,s,n,a,l,h;Cl(1,arguments);var c=zl(),d=kl(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Al(t),p=u.getUTCDay(),m=(p<d?7:0)+p-d;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function Ol(t,e){var i,o,r,s,n,a,l,h;Cl(1,arguments);var c=Al(t),d=c.getUTCFullYear(),u=zl(),p=kl(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var v=Pl(m,e),f=new Date(0);f.setUTCFullYear(d,0,p),f.setUTCHours(0,0,0,0);var b=Pl(f,e);return c.getTime()>=v.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function Nl(t,e){Cl(1,arguments);var i=Al(t),o=Pl(i,e).getTime()-function(t,e){var i,o,r,s,n,a,l,h;Cl(1,arguments);var c=zl(),d=kl(null!==(i=null!==(o=null!==(r=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=Ol(t,e),p=new Date(0);return p.setUTCFullYear(u,0,d),p.setUTCHours(0,0,0,0),Pl(p,e)}(i,e).getTime();return Math.round(o/6048e5)+1}function Bl(t,e){for(var i=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return i+o}const jl=function(t,e){var i=t.getUTCFullYear(),o=i>0?i:1-i;return Bl("yy"===e?o%100:o,e.length)},Fl=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Bl(i+1,2)},Ll=function(t,e){return Bl(t.getUTCDate(),e.length)},Rl=function(t,e){return Bl(t.getUTCHours()%12||12,e.length)},ql=function(t,e){return Bl(t.getUTCHours(),e.length)},$l=function(t,e){return Bl(t.getUTCMinutes(),e.length)},Vl=function(t,e){return Bl(t.getUTCSeconds(),e.length)},Wl=function(t,e){var i=e.length,o=t.getUTCMilliseconds();return Bl(Math.floor(o*Math.pow(10,i-3)),e.length)};function Ul(t,e){var i=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(0===s)return i+String(r);var n=e||"";return i+String(r)+n+Bl(s,2)}function Yl(t,e){return t%60==0?(t>0?"-":"+")+Bl(Math.abs(t)/60,2):Hl(t,e)}function Hl(t,e){var i=e||"",o=t>0?"-":"+",r=Math.abs(t);return o+Bl(Math.floor(r/60),2)+i+Bl(r%60,2)}const Gl={G:function(t,e,i){var o=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var o=t.getUTCFullYear();return i.ordinalNumber(o>0?o:1-o,{unit:"year"})}return jl(t,e)},Y:function(t,e,i,o){var r=Ol(t,o),s=r>0?r:1-r;return"YY"===e?Bl(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Bl(s,e.length)},R:function(t,e){return Bl(Ml(t),e.length)},u:function(t,e){return Bl(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Bl(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Bl(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){var o=t.getUTCMonth();switch(e){case"M":case"MM":return Fl(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){var o=t.getUTCMonth();switch(e){case"L":return String(o+1);case"LL":return Bl(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){var r=Nl(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Bl(r,e.length)},I:function(t,e,i){var o=El(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Bl(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ll(t,e)},D:function(t,e,i){var o=function(t){Cl(1,arguments);var e=Al(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime();return Math.floor((i-o)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Bl(o,e.length)},E:function(t,e,i){var o=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Bl(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){var r=t.getUTCDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Bl(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var o=t.getUTCDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Bl(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){var o=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){var o,r=t.getUTCHours();switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){var o,r=t.getUTCHours();switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var o=t.getUTCHours()%12;return 0===o&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return Rl(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ql(t,e)},K:function(t,e,i){var o=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Bl(o,e.length)},k:function(t,e,i){var o=t.getUTCHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Bl(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$l(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Vl(t,e)},S:function(t,e){return Wl(t,e)},X:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return Yl(r);case"XXXX":case"XX":return Hl(r);default:return Hl(r,":")}},x:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"x":return Yl(r);case"xxxx":case"xx":return Hl(r);default:return Hl(r,":")}},O:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ul(r,":");default:return"GMT"+Hl(r,":")}},z:function(t,e,i,o){var r=(o._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ul(r,":");default:return"GMT"+Hl(r,":")}},t:function(t,e,i,o){return Bl(Math.floor((o._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,o){return Bl((o._originalDate||t).getTime(),e.length)}};var Kl=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Ql=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Jl={p:Ql,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return Kl(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",Kl(r,e)).replace("{{time}}",Ql(s,e))}};const Xl=Jl;var Zl=["D","DD"],th=["YY","YYYY"];function eh(t){return-1!==Zl.indexOf(t)}function ih(t){return-1!==th.indexOf(t)}function oh(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var rh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function sh(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var nh,ah={date:sh({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:sh({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:sh({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function hh(t){return function(e,i){var o;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,s=null!=i&&i.width?String(i.width):r;o=t.formattingValues[s]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;o=t.values[a]||t.values[n]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function ch(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.width,r=e.match(o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var s,n=r[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return s=t.valueCallback?t.valueCallback(l):l,{value:s=i.valueCallback?i.valueCallback(s):s,rest:e.slice(n.length)}}}const dh={code:"en-US",formatDistance:function(t,e,i){var o,r=rh[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:ah,formatRelative:function(t){return lh[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:hh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:hh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:hh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:hh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:hh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(nh={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(nh.matchPattern);if(!i)return null;var o=i[0],r=t.match(nh.parsePattern);if(!r)return null;var s=nh.valueCallback?nh.valueCallback(r[0]):r[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(o.length)}}),era:ch({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ch({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ch({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ch({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ch({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var uh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ph=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mh=/^'([^]*?)'?$/,vh=/''/g,fh=/[a-zA-Z]/;function bh(t,e,i){var o,r,s,n,a,l,h,c,d,u,p,m,v,f,b,g,y,w;Cl(2,arguments);var x=String(e),_=zl(),k=null!==(o=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:_.locale)&&void 0!==o?o:dh,C=kl(null!==(s=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:_.firstWeekContainsDate)&&void 0!==n?n:null===(d=_.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=kl(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(b=i.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==v?v:_.weekStartsOn)&&void 0!==m?m:null===(y=_.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=Al(t);if(!function(t){if(Cl(1,arguments),!function(t){return Cl(1,arguments),t instanceof Date||"object"===_l(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Al(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var z=Dl(S,Tl(S)),T={firstWeekContainsDate:C,weekStartsOn:A,locale:k,_originalDate:S};return x.match(ph).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Xl[e])(t,k.formatLong):t})).join("").match(uh).map((function(o){if("''"===o)return"'";var r,s,n=o[0];if("'"===n)return(s=(r=o).match(mh))?s[1].replace(vh,"'"):r;var a=Gl[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!ih(o)||oh(o,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!eh(o)||oh(o,e,String(t)),a(z,o,k.localize,T);if(n.match(fh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return o})).join("")}function gh(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function yh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function wh(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return yh(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?yh(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,s=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw s}}}}function xh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _h(t,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_h(t,e)}function kh(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_h(t,e)}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ch(t)}function Ah(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ah=function(){return!!t})()}function Sh(t){var e=Ah();return function(){var i,o=Ch(t);if(e){var r=Ch(this).constructor;i=Reflect.construct(o,arguments,r)}else i=o.apply(this,arguments);return function(t,e){if(e&&("object"==_l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xh(t)}(this,i)}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Th(t){var e=function(t){if("object"!=_l(t)||!t)return t;var e;if("undefined"!=typeof Symbol&&void 0!==(e=t[Symbol.toPrimitive])){var i=e.call(t,"string");if("object"!=_l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_l(e)?e:e+""}function Dh(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Th(o.key),o)}}function Ih(t,e,i){return e&&Dh(t.prototype,e),i&&Dh(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mh(t,e,i){return(e=Th(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Eh=function(){function t(){zh(this,t),Mh(this,"priority",void 0),Mh(this,"subPriority",0)}return Ih(t,[{key:"validate",value:function(){return!0}}]),t}(),Ph=function(){kh(e,Eh);var t=Sh(e);function e(i,o,r,s,n){var a;return zh(this,e),(a=t.call(this)).value=i,a.validateValue=o,a.setValue=r,a.priority=s,n&&(a.subPriority=n),a}return Ih(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),Oh=function(){kh(e,Eh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",10),Mh(xh(i),"subPriority",-1),i}return Ih(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Nh=function(){function t(){zh(this,t),Mh(this,"incompatibleTokens",void 0),Mh(this,"priority",void 0),Mh(this,"subPriority",void 0)}return Ih(t,[{key:"run",value:function(t,e,i,o){var r=this.parse(t,e,i,o);return r?{setter:new Ph(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Bh=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",140),Mh(xh(i),"incompatibleTokens",["R","u","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),jh=/^(1[0-2]|0?\d)/,Fh=/^(3[0-1]|[0-2]?\d)/,Lh=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Rh=/^(5[0-3]|[0-4]?\d)/,qh=/^(2[0-3]|[0-1]?\d)/,$h=/^(2[0-4]|[0-1]?\d)/,Vh=/^(1[0-1]|0?\d)/,Wh=/^(1[0-2]|0?\d)/,Uh=/^[0-5]?\d/,Yh=/^[0-5]?\d/,Hh=/^\d/,Gh=/^\d{1,2}/,Kh=/^\d{1,3}/,Qh=/^\d{1,4}/,Jh=/^-?\d+/,Xh=/^-?\d/,Zh=/^-?\d{1,2}/,tc=/^-?\d{1,3}/,ec=/^-?\d{1,4}/,ic=/^([+-])(\d{2})(\d{2})?|Z/,oc=/^([+-])(\d{2})(\d{2})|Z/,rc=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,sc=/^([+-])(\d{2}):(\d{2})|Z/,nc=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ac(t,e){return t?{value:e(t.value),rest:t.rest}:t}function lc(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function hc(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function cc(t){return lc(Jh,t)}function dc(t,e){switch(t){case 1:return lc(Hh,e);case 2:return lc(Gh,e);case 3:return lc(Kh,e);case 4:return lc(Qh,e);default:return lc(new RegExp("^\\d{1,"+t+"}"),e)}}function uc(t,e){switch(t){case 1:return lc(Xh,e);case 2:return lc(Zh,e);case 3:return lc(tc,e);case 4:return lc(ec,e);default:return lc(new RegExp("^-?\\d{1,"+t+"}"),e)}}function pc(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function mc(t,e){var i,o=e>0,r=o?e:1-e;if(r<=50)i=t||100;else{var s=r+50;i=t+100*Math.floor(s/100)-(t>=s%100?100:0)}return o?i:1-i}function vc(t){return t%400==0||t%4==0&&t%100!=0}var fc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ac(dc(4,t),o);case"yo":return ac(i.ordinalNumber(t,{unit:"year"}),o);default:return ac(dc(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var o=t.getUTCFullYear();if(i.isTwoDigitYear){var r=mc(i.year,o);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),bc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ac(dc(4,t),o);case"Yo":return ac(i.ordinalNumber(t,{unit:"year"}),o);default:return ac(dc(e.length,t),o)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,o){var r=Ol(t,o);if(i.isTwoDigitYear){var s=mc(i.year,r);return t.setUTCFullYear(s,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Pl(t,o)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Pl(t,o)}}]),e}(),gc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e){return uc("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var o=new Date(0);return o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0),Il(o)}}]),e}(),yc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",130),Mh(xh(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e){return uc("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),wc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",120),Mh(xh(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return dc(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),xc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",120),Mh(xh(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return dc(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),_c=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Mh(xh(i),"priority",110),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"M":return ac(lc(jh,t),o);case"MM":return ac(dc(2,t),o);case"Mo":return ac(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),kc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",110),Mh(xh(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return t-1};switch(e){case"L":return ac(lc(jh,t),o);case"LL":return ac(dc(2,t),o);case"Lo":return ac(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Cc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",100),Mh(xh(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return lc(Rh,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,o){return Pl(function(t,e,i){Cl(2,arguments);var o=Al(t),r=kl(e),s=Nl(o,i)-r;return o.setUTCDate(o.getUTCDate()-7*s),o}(t,i,o),o)}}]),e}(),Ac=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",100),Mh(xh(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return lc(Rh,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return Il(function(t,e){Cl(2,arguments);var i=Al(t),o=kl(e),r=El(i)-o;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),Sc=[31,28,31,30,31,30,31,31,30,31,30,31],zc=[31,29,31,30,31,30,31,31,30,31,30,31],Tc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"subPriority",1),Mh(xh(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return lc(Fh,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){var i=vc(t.getUTCFullYear()),o=t.getUTCMonth();return i?e>=1&&e<=zc[o]:e>=1&&e<=Sc[o]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Dc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"subpriority",1),Mh(xh(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return lc(Lh,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return vc(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function Ic(t,e,i){var o,r,s,n,a,l,h,c;Cl(2,arguments);var d=zl(),u=kl(null!==(o=null!==(r=null!==(s=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:d.weekStartsOn)&&void 0!==r?r:null===(h=d.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Al(t),m=kl(e),v=((m%7+7)%7<u?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+v),p}var Mc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=Ic(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Ec=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ac(dc(e.length,t),r);case"eo":return ac(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=Ic(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Pc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i,o){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+o.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ac(dc(e.length,t),r);case"co":return ac(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,o){return(t=Ic(t,i,o)).setUTCHours(0,0,0,0),t}}]),e}(),Oc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",90),Mh(xh(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){var o=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return dc(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ac(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return ac(i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return ac(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);default:return ac(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){Cl(2,arguments);var i=kl(e);i%7==0&&(i-=7);var o=Al(t),r=((i%7+7)%7<1?7:0)+i-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+r),o}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Nc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",80),Mh(xh(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(pc(i),0,0,0),t}}]),e}(),Bc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",80),Mh(xh(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(pc(i),0,0,0),t}}]),e}(),jc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",80),Mh(xh(i),"incompatibleTokens",["a","b","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(pc(i),0,0,0),t}}]),e}(),Fc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return lc(Wh,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:o||12!==i?i:0,0,0,0),t}}]),e}(),Lc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return lc(qh,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),Rc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return lc(Vh,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var o=t.getUTCHours()>=12;return t.setUTCHours(o&&i<12?i+12:i,0,0,0),t}}]),e}(),qc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",70),Mh(xh(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return lc($h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),$c=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",60),Mh(xh(i),"incompatibleTokens",["t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return lc(Uh,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),Vc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",50),Mh(xh(i),"incompatibleTokens",["t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return lc(Yh,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return dc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),Wc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",30),Mh(xh(i),"incompatibleTokens",["t","T"]),i}return Ih(e,[{key:"parse",value:function(t,e){return ac(dc(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),Uc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",10),Mh(xh(i),"incompatibleTokens",["t","T","x"]),i}return Ih(e,[{key:"parse",value:function(t,e){switch(e){case"X":return hc(ic,t);case"XX":return hc(oc,t);case"XXXX":return hc(rc,t);case"XXXXX":return hc(nc,t);default:return hc(sc,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Yc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",10),Mh(xh(i),"incompatibleTokens",["t","T","X"]),i}return Ih(e,[{key:"parse",value:function(t,e){switch(e){case"x":return hc(ic,t);case"xx":return hc(oc,t);case"xxxx":return hc(rc,t);case"xxxxx":return hc(nc,t);default:return hc(sc,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Hc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",40),Mh(xh(i),"incompatibleTokens","*"),i}return Ih(e,[{key:"parse",value:function(t){return cc(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Gc=function(){kh(e,Nh);var t=Sh(e);function e(){var i;zh(this,e);for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return Mh(xh(i=t.call.apply(t,[this].concat(r))),"priority",20),Mh(xh(i),"incompatibleTokens","*"),i}return Ih(e,[{key:"parse",value:function(t){return cc(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),Kc={G:new Bh,y:new fc,Y:new bc,R:new gc,u:new yc,Q:new wc,q:new xc,M:new _c,L:new kc,w:new Cc,I:new Ac,d:new Tc,D:new Dc,E:new Mc,e:new Ec,c:new Pc,i:new Oc,a:new Nc,b:new Bc,B:new jc,h:new Fc,H:new Lc,K:new Rc,k:new qc,m:new $c,s:new Vc,S:new Wc,X:new Uc,x:new Yc,t:new Hc,T:new Gc},Qc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xc=/^'([^]*?)'?$/,Zc=/''/g,td=/\S/,ed=/[a-zA-Z]/;const id=class{constructor(e){t(this,e),this.stylingInitialized=!1,this.calendarMaxDate="",this.fetchToken=0,this.fetchData=async()=>{if(!this.playerid||!this.session||!this.endpoint)return;this.fetchToken++;const t=this.fetchToken;this.isLoading=!0,this.errorMessage=null;const{startDate:e,endDate:i}=this.getDateRange(),o={"X-SessionId":this.session},r=this.endpoint.replace(/\/$/,""),s=(this.currentPage*this.itemsPerPage).toString(),n=this.itemsPerPage.toString();try{const a=[];let l=!1,h=!1;if(["All","Payments"].includes(this.activeTab)){const t=new URL(`${r}/v1/player/${this.playerid}/transactions/banking`,window.location.origin);t.searchParams.append("limit",n),t.searchParams.append("offset",s),t.searchParams.append("startDate",bh(new Date(e),"yyyy-MM-dd")),t.searchParams.append("endDate",bh(new Date(i),"yyyy-MM-dd")),a.push(fetch(t.href,{method:"GET",headers:o}).then((t=>t.ok?t.json():null)).then((t=>{var e;return l=!!(null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.next),this.normalizeBankingData(t)})))}if(["All","Casino","Sports","Bonus"].includes(this.activeTab)){const t=new URL(`${r}/v1/player/${this.playerid}/transactions/wagering`,window.location.origin);t.searchParams.append("type","All"===this.activeTab?"All":this.activeTab),t.searchParams.append("limit",n),t.searchParams.append("offset",s),t.searchParams.append("startDate",e),t.searchParams.append("endDate",i),a.push(fetch(t.href,{method:"GET",headers:o}).then((t=>t.ok?t.json():null)).then((t=>{var e;return h=!!(null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.next),this.normalizeWageringData(t)})))}const c=await Promise.all(a);if(this.fetchToken!==t)return;const d=c.flat().filter(Boolean);d.sort(((t,e)=>e.timestamp-t.timestamp)),this.transactions=d,this.hasNextPage=l||h,this.isLoading=!1,window.postMessage({type:"ScrollToTop"},window.location.href)}catch(e){if(this.fetchToken!==t)return;this.errorMessage=this.translate("errorLoading"),this.isLoading=!1}},this.scrollToTop=()=>{this.statementContainer&&setTimeout((()=>{this.statementContainer.scrollIntoView({behavior:"smooth",block:"start"})}),50)},this.goToPrevPage=()=>{this.currentPage>0&&(this.currentPage--,this.fetchData(),this.scrollToTop())},this.goToNextPage=()=>{this.hasNextPage&&(this.currentPage++,this.fetchData(),this.scrollToTop())},this.formatDate=t=>t?bh(new Date(t.year,t.month,t.day),this.dateformat):"",this.parseDate=t=>{const e=t.includes("/")?"/":"-",i=t.split(e);let o=i[0],r=i[1],s=i[2];return 4===i[0].length&&(s=i[0],r=i[1],o=i[2]),{year:parseInt(s),month:parseInt(r)-1,day:parseInt(o)}},this.handleStartDateChange=t=>{const e=t.target;e.value&&(this.customStartDate=e.value)},this.handleEndDateChange=t=>{const e=t.target;e.value&&(this.customEndDate=e.value)},this.mbsource="",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.session="",this.playerid="",this.endpoint="",this.statementenabled="",this.postMessage=!1,this.language="",this.quickFiltersActive=!1,this.clientStylingUrlContent="",this.dateformat="dd-MM-yyyy",this.translationUrl="",this.activeTab="All",this.activeFilter="1D",this.transactions=[],this.isLoading=!1,this.errorMessage=null,this.customStartDate="",this.customEndDate="",this.currentPage=0,this.hasNextPage=!1,this.itemsPerPage=10,this.copiedId=null,this.isStatementEnabled=!0}translate(t){const e=(t=>{var e,i;return(null===(e=c[this.language||"en"])||void 0===e?void 0:e[t])||(null===(i=c.en)||void 0===i?void 0:i[t])})(t);return!e&&t?t.charAt(0).toUpperCase()+t.slice(1):e||t}initStyling(){this.statementContainer&&!this.stylingInitialized&&(this.mbsource&&n(this.statementContainer,`${this.mbsource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.statementContainer,this.clientStyling),this.clientStylingUrl&&s(this.statementContainer,this.clientStylingUrl),this.stylingInitialized=!0)}formatCurrencyAmount(t){return null==t||isNaN(t)?"0.00":t.toFixed(2)}isDateRangeExceeded(){if(!this.customStartDate||!this.customEndDate)return!1;const t=new Date(this.customStartDate).getTime(),e=new Date(this.customEndDate).getTime(),i=Math.abs(e-t);return Math.ceil(i/864e5)>180}async componentWillLoad(){var t;this.translationUrl&&await(t=this.translationUrl,new Promise(((e,i)=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{const i=e;c[i]||(c[i]={});for(let o in t[e])c[i][o]=t[e][o]})),e(c)})).catch((t=>{i(t)}))}))).catch((t=>{console.error("Failed to load translations",t)}));const e=new Date;this.calendarMaxDate=bh(e,"yyyy-MM-dd"),this.customEndDate=bh(e,"yyyy-MM-dd"),this.customStartDate=bh(function(t,e){return Cl(2,arguments),function(t,e){Cl(2,arguments);var i=Al(t),o=kl(e);if(isNaN(o))return new Date(NaN);if(!o)return i;var r=i.getDate(),s=new Date(i.getTime());return s.setMonth(i.getMonth()+o+1,0),r>=s.getDate()?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}(t,-kl(e))}(e,1),"yyyy-MM-dd")}handleStatementEnabledChange(t){"false"===t?window.location.replace("/account/profile-info"):"true"===t&&(this.isStatementEnabled=!1)}handleTabChange(){this.resetPaginationAndFetch()}handleFilterChange(t){"Custom"!==t&&this.resetPaginationAndFetch()}handleClientStylingChange(t,e){t!==e&&r(this.statementContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!==e&&s(this.statementContainer,this.clientStylingUrl)}handlembsourceChange(t,e){t!==e&&n(this.statementContainer,`${this.mbsource}.Style`,this.stylingSubscription)}handleAuthDataChange(){this.endpoint&&this.playerid&&this.session&&this.fetchData()}componentDidUpdate(){this.initStyling()}componentDidLoad(){"false"===this.statementenabled?window.location.replace("/account/profile-info"):"true"===this.statementenabled&&(this.isStatementEnabled=!1),this.initStyling()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}resetPaginationAndFetch(){this.currentPage=0,this.hasNextPage=!1,this.fetchData()}formatDateForUI(t){if(!t)return"";const e=new Date(t);return`${this.translate(h[e.getDay()].toLowerCase())} ${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")} - ${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`}formattedToIso(t,e){const i=function(t,e,i,o){var r,s,n,a,l,h,c,d,u,p,m,v,f,b,g,y,w,x;Cl(3,arguments);var _=String(t),k=String(e),C=zl(),A=null!==(r=null!==(s=null==o?void 0:o.locale)&&void 0!==s?s:C.locale)&&void 0!==r?r:dh;if(!A.match)throw new RangeError("locale must contain match property");var S=kl(null!==(n=null!==(a=null!==(l=null!==(h=null==o?void 0:o.firstWeekContainsDate)&&void 0!==h?h:null==o||null===(c=o.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:C.firstWeekContainsDate)&&void 0!==a?a:null===(u=C.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=kl(null!==(m=null!==(v=null!==(f=null!==(b=null==o?void 0:o.weekStartsOn)&&void 0!==b?b:null==o||null===(g=o.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:C.weekStartsOn)&&void 0!==v?v:null===(w=C.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===_?Al(i):new Date(NaN);var T,D={firstWeekContainsDate:S,weekStartsOn:z,locale:A},I=[new Oh],M=k.match(Jc).map((function(t){var e=t[0];return e in Xl?(0,Xl[e])(t,A.formatLong):t})).join("").match(Qc),E=[],P=wh(M);try{var O=function(){var e=T.value;null!=o&&o.useAdditionalWeekYearTokens||!ih(e)||oh(e,k,t),null!=o&&o.useAdditionalDayOfYearTokens||!eh(e)||oh(e,k,t);var i=e[0],r=Kc[i];if(r){var s=r.incompatibleTokens;if(Array.isArray(s)){var n=E.find((function(t){return s.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));E.push({token:i,fullToken:e});var a=r.run(_,e,A.match,D);if(!a)return{v:new Date(NaN)};I.push(a.setter),_=a.rest}else{if(i.match(ed))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Xc)[1].replace(Zc,"'")),0!==_.indexOf(e))return{v:new Date(NaN)};_=_.slice(e.length)}};for(P.s();!(T=P.n()).done;){var N=O();if("object"===_l(N))return N.v}}catch(t){P.e(t)}finally{P.f()}if(_.length>0&&td.test(_))return new Date(NaN);var B=I.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return I.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),j=Al(i);if(isNaN(j.getTime()))return new Date(NaN);var F,L=Dl(j,Tl(j)),R={},q=wh(B);try{for(q.s();!(F=q.n()).done;){var $=F.value;if(!$.validate(L,D))return new Date(NaN);var V=$.set(L,R,D);Array.isArray(V)?(L=V[0],gh(R,V[1])):L=V}}catch(t){q.e(t)}finally{q.f()}return L}(t,"yyyy-MM-dd",new Date),o=e?function(t){Cl(1,arguments);var e=Al(t);return e.setHours(23,59,59,999),e}(i):function(t){Cl(1,arguments);var e=Al(t);return e.setHours(0,0,0,0),e}(i);return bh(o,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")}getDateRange(){if("Custom"===this.activeFilter)return{startDate:this.formattedToIso(this.customStartDate,!1),endDate:this.formattedToIso(this.customEndDate,!0)};const t=new Date,e=new Date;switch(this.activeFilter){case"1D":e.setDate(e.getDate()-1);break;case"1W":e.setDate(e.getDate()-7);break;case"1M":e.setMonth(e.getMonth()-1);break;case"3M":e.setMonth(e.getMonth()-3)}return{startDate:e.toISOString(),endDate:t.toISOString()}}parseAmount(t){return null==t?0:"object"==typeof t&&void 0!==t.parsedValue?Number(t.parsedValue)||0:Number(t)||0}normalizeBankingData(t){return t&&t.transactions?t.transactions.map((t=>{var e;const i=1===t.type||14===t.type,o=null!==(e=t.realAmount)&&void 0!==e?e:t.creditAmount;let r=t.transIdStr;!r&&t.transId&&(r="object"==typeof t.transId?t.transId.source||t.transId.parsedValue:t.transId);const s=i?"withdrawal":"deposit",n=t.status?String(t.status).toLowerCase():"";return{id:r?String(r).startsWith("#")?String(r):`#${r}`:this.translate("na"),category:this.translate(s),status:n?this.translate(n):null,statusClass:n,amount:Math.abs(this.parseAmount(o)),currency:t.currencyCode||t.currency||"",balance:null,date:this.formatDateForUI(t.created),isPositive:!i,timestamp:new Date(t.created).getTime()}})):[]}normalizeWageringData(t){return t&&t.transactions?t.transactions.map((t=>{var e,i;const o="Credit"===t.transName||"2"===t.transType;let r=this.translate("casino");(null===(e=t.gameModel)||void 0===e?void 0:e.name)?r=`${this.translate("casino")} / ${t.gameModel.name}`:t.gameId&&(r=`${this.translate("casino")} / ${t.gameId}`);const s=o?"won":"Debit"===t.transName||"1"===t.transType?"placed":String(t.transName).toLowerCase(),n=null!==(i=t.realAmount)&&void 0!==i?i:t.totalAmount;return{id:t.transId,category:r,status:this.translate(s),statusClass:o?"won":"placed",amount:Math.abs(this.parseAmount(n)),currency:t.currencyCode||t.currency||"",balance:this.parseAmount(t.balance),date:this.formatDateForUI(t.ins),isPositive:o,timestamp:new Date(t.ins).getTime()}})):[]}execCommandCopy(t){const e=document.createElement("textarea");e.value=t,Object.assign(e.style,{position:"fixed",opacity:"0"}),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}async copyToClipboard(t){try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(t):this.execCommandCopy(t),this.copiedId=t,setTimeout((()=>{this.copiedId===t&&(this.copiedId=null)}),2e3)}catch(e){try{this.execCommandCopy(t),this.copiedId=t,setTimeout((()=>{this.copiedId===t&&(this.copiedId=null)}),2e3)}catch(t){console.error(this.translate("failedToCopyText"),t)}}}setDateFormat(t){t&&!t.__i18nConfigured&&(t.i18n=Object.assign(Object.assign({},t.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),t.__i18nConfigured=!0)}isSubmitEnabled(){if(!this.customStartDate||!this.customEndDate)return!1;const t=new Date(this.customStartDate).getTime(),e=new Date(this.customEndDate).getTime();return!(t>e)&&Math.ceil(Math.abs(e-t)/864e5)<=180}render(){return this.isStatementEnabled?e("div",{class:"verify-access-loading"},e("div",{class:"loading-text"},this.translate("loading"))):e("div",{ref:t=>this.statementContainer=t,class:"statement-wrapper"},e("div",{class:"header"},e("h2",null,this.translate("transactionHistory"))),e("div",{class:"tabs-container desktop-tabs"},a.map((t=>e("button",{class:"tab-btn "+(this.activeTab===t?"active":""),onClick:()=>this.activeTab=t},this.translate(t.toLowerCase()))))),e("div",{class:"mobile-tabs-select"},e("select",Object.assign({onChange:t=>this.activeTab=t.target.value},{value:this.activeTab}),a.map((t=>e("option",{value:t},this.translate(t.toLowerCase())))))),e("div",{class:"card-container"},e("div",{class:"filters-container"},l.map((t=>e("button",{class:"filter-btn "+(this.activeFilter===t?"active":""),onClick:()=>this.activeFilter=t},this.translate(t.toLowerCase()))))),"Custom"===this.activeFilter&&e("div",{class:"custom-date-wrapper"},e("div",{class:"calendar-container"},e("div",{class:"calendar-field"},e("label",null,this.translate("from")),e("vaadin-date-picker",{value:this.customStartDate,max:this.calendarMaxDate,onChange:this.handleStartDateChange,ref:t=>this.setDateFormat(t),class:"VaadinDatePicker"})),e("div",{class:"calendar-field"},e("label",null,this.translate("to")),e("vaadin-date-picker",{value:this.customEndDate,min:this.customStartDate,max:this.calendarMaxDate,onChange:this.handleEndDateChange,ref:t=>this.setDateFormat(t),class:"VaadinDatePicker"}))),e("button",{class:"apply-date-btn",disabled:!this.isSubmitEnabled()||this.isLoading,onClick:()=>this.resetPaginationAndFetch()},this.translate("apply")),this.isDateRangeExceeded()&&e("div",{class:"date-limit-warning"},this.translate("maxRange"))),e("div",{class:"transactions-list"},this.isLoading&&e("div",{class:"empty-state"},this.translate("loading")),!this.isLoading&&this.errorMessage&&e("div",{class:"empty-state error"},this.errorMessage),!this.isLoading&&!this.errorMessage&&0===this.transactions.length&&e("div",{class:"empty-state"},this.translate("noData")),!this.isLoading&&!this.errorMessage&&this.transactions.length>0&&this.transactions.map((t=>e("div",{class:"transaction-item"},e("div",{class:"row top-row"},e("div",{class:"category-group"},e("span",{class:"category"},t.category),t.status&&e("span",{class:`status-badge ${t.statusClass}`},t.status)),e("span",{class:"amount "+(t.isPositive?"positive":"negative")},t.isPositive?"+":"-"," ",t.currency," ",this.formatCurrencyAmount(t.amount))),e("div",{class:"row middle-row"},e("span",{class:"transaction-id"},t.id.startsWith("#")?t.id:`#${t.id}`),e("div",{class:"copy-action-wrapper",onClick:()=>this.copyToClipboard(t.id)},e("svg",{class:"copy-icon",viewBox:"0 0 24 24",width:"25",height:"25"},e("rect",{x:"9",y:"9",width:"10",height:"10",rx:"1",ry:"1"}),e("rect",{x:"5",y:"5",width:"10",height:"10",rx:"1",ry:"1"})),this.copiedId===t.id&&e("span",{class:"copied-tooltip"},this.translate("copied")))),e("div",{class:"row bottom-row"},e("span",{class:"date"},t.date),e("span",{class:"balance"},null!=t.balance&&!isNaN(t.balance)&&e(i,null,this.translate("balance")," ",e("strong",null,t.currency," ",this.formatCurrencyAmount(t.balance))))))))),!this.isLoading&&this.transactions.length>0&&(this.currentPage>0||this.hasNextPage)&&e("div",{class:"pagination-container"},e("button",{class:"pagination-btn prev-btn",disabled:0===this.currentPage,onClick:this.goToPrevPage},this.translate("prev")),e("span",{class:"page-indicator"},this.translate("page")," ",this.currentPage+1),e("button",{class:"pagination-btn next-btn",disabled:!this.hasNextPage,onClick:this.goToNextPage},this.translate("next")))))}static get watchers(){return{statementenabled:["handleStatementEnabledChange"],activeTab:["handleTabChange"],activeFilter:["handleFilterChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbsource:["handlembsourceChange"],session:["handleAuthDataChange"],playerid:["handleAuthDataChange"],endpoint:["handleAuthDataChange"]}}};id.style=':host{display:block;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;color:var(--emw--color-contrast, #333);height:auto;min-height:100%}.statement-wrapper{max-width:100%;width:100%;min-height:100%;height:auto;box-sizing:border-box;background-color:var(--emw--color-white, #ffffff);border-radius:10px;padding:30px 40px;display:flex;flex-direction:column}@media (max-width: 600px){.statement-wrapper{padding:15px;background-color:transparent}}.header{margin-bottom:20px}.header h2{font-size:19px;font-weight:700;margin:0;color:var(--emw--color-contrast, #1a1a1a)}.desktop-tabs{display:flex;gap:10px;margin-bottom:20px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:5px}.desktop-tabs::-webkit-scrollbar{height:4px}.desktop-tabs::-webkit-scrollbar-thumb{background-color:var(--emw--color-gray-200, #ccc);border-radius:4px}.desktop-tabs .tab-btn{padding:8px 16px;border:none;border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;background-color:var(--emw--color-gray-100, #f0f0f0);color:var(--emw--color-gray-300, #666);transition:all 0.2s ease;white-space:nowrap}.desktop-tabs .tab-btn.active{background-color:var(--emw--color-primary, #ff6b00);color:var(--emw--color-white, #fff)}.desktop-tabs .tab-btn:hover:not(.active){background-color:var(--emw--color-gray-200, #e4e4e4)}@media (max-width: 600px){.desktop-tabs{display:none}}.mobile-tabs-select{display:none;margin-bottom:20px}.mobile-tabs-select select{width:100%;padding:12px 16px;border-radius:8px;border:1px solid var(--emw--color-gray-200, #ddd);font-size:16px;font-weight:500;color:var(--emw--color-black, #000);background-color:var(--emw--color-white, #fff);appearance:none;background:var(--emw--color-white, #fff) url(\'data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\') 97% center no-repeat;box-shadow:0 2px 4px rgba(0, 0, 0, 0.02)}.mobile-tabs-select select:focus{outline:none;border-color:var(--emw--color-primary, #ff6b00)}@media (max-width: 600px){.mobile-tabs-select{display:block}}.card-container{background:transparent;border-radius:0;padding:0;box-shadow:none;margin-top:20px;display:flex;flex-direction:column;flex:1 0 auto}.filters-container{display:flex;gap:20px;border-bottom:1px solid var(--emw--color-gray-100, #eee);padding-bottom:12px;margin-bottom:16px;overflow-x:auto;white-space:nowrap}.filters-container .filter-btn{background:none;border:none;font-size:14px;font-weight:600;color:var(--emw--color-gray-150, #888);cursor:pointer;padding:0}.filters-container .filter-btn.active{color:var(--emw--color-primary, #ff6b00)}.filters-container .filter-btn:hover{color:var(--emw--color-contrast, #333)}.custom-date-wrapper{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:24px}@media (max-width: 600px){.custom-date-wrapper{align-items:stretch}}.custom-date-wrapper .calendar-container{display:flex;flex-direction:row;align-items:center;gap:20px;width:100%;box-sizing:border-box;background-color:var(--emw--color-background, #f8f9fa);border:1px solid var(--emw--color-gray-100, #eee);border-radius:8px;padding:12px 16px}@media (max-width: 600px){.custom-date-wrapper .calendar-container{flex-direction:column;align-items:stretch;gap:16px;padding:16px}}.custom-date-wrapper .date-limit-warning{color:var(--emw--color-error, #d32f2f);font-size:13px;margin-top:8px;width:100%}.custom-date-wrapper .calendar-field{display:flex;flex-direction:row;align-items:center;gap:12px;flex:1}@media (max-width: 600px){.custom-date-wrapper .calendar-field{flex-direction:column;align-items:flex-start;gap:4px}}.custom-date-wrapper .calendar-field label{font-size:14px;font-weight:500;color:var(--emw--color-white, #ffffff);min-width:40px;margin:0;white-space:nowrap}.custom-date-wrapper .calendar-field .VaadinDatePicker{width:100%;flex:1}.custom-date-wrapper .apply-date-btn{padding:0 24px;height:44px;background-color:var(--emw--color-primary, #ff6b00);color:var(--emw--color-white, #fff);border:none;border-radius:6px;font-weight:600;font-size:15px;cursor:pointer;transition:background-color 0.2s;white-space:nowrap}@media (max-width: 600px){.custom-date-wrapper .apply-date-btn{width:100%}}.custom-date-wrapper .apply-date-btn:hover:not(:disabled){background-color:var(--emw--color-hover, #e66000)}.custom-date-wrapper .apply-date-btn:disabled{background-color:var(--emw--color-primary-disabled, #ffd6b3);color:var(--emw--color-white, #fff);cursor:not-allowed}vaadin-date-picker.VaadinDatePicker{box-shadow:none;border:1px solid var(--emw--pam-border, rgba(255, 255, 255, 0.3));border-radius:var(--emw--border-radius, 8px);background-color:transparent}vaadin-date-picker.VaadinDatePicker input[slot=input],vaadin-date-picker.VaadinDatePicker input[id^=search-input-vaadin-date-picker]{color:var(--emw--color-white, #ffffff) !important;background-color:transparent;padding-left:12px;border:none;border-radius:var(--emw--border-radius, 8px);box-shadow:none !important;outline:none;-webkit-appearance:none}vaadin-date-picker.VaadinDatePicker:focus-within{border-color:var(--emw--color-primary, #ffc107)}.transactions-list{display:flex;flex-direction:column;flex:1 0 auto}.transactions-list .empty-state{padding:30px;text-align:center;color:var(--emw--color-gray-300, #666);font-size:14px}.transactions-list .empty-state.error{color:var(--emw--color-error, #d32f2f)}.transactions-list .transaction-item{border-bottom:1px solid var(--emw--color-gray-100, #f0f0f0);padding:16px 0;display:flex;flex-direction:column;gap:10px}.transactions-list .transaction-item:last-child{border-bottom:none;padding-bottom:0}.transactions-list .transaction-item .row{display:flex;justify-content:space-between;align-items:center}.transactions-list .transaction-item .category-group{display:flex;align-items:center;gap:8px}.transactions-list .transaction-item .category-group .category{font-size:14px;color:var(--emw--color-secondary, #5bb4ff)}.transactions-list .transaction-item .category-group .status-badge{font-size:12px;padding:3px 8px;border-radius:12px;font-weight:600}.transactions-list .transaction-item .category-group .status-badge.won,.transactions-list .transaction-item .category-group .status-badge.success{background-color:var(--emw--color-valid-bg, #e8f5e9);color:var(--emw--color-valid, #4caf50)}.transactions-list .transaction-item .category-group .status-badge.placed{background-color:var(--emw--color-info-bg, #e3f2fd);color:var(--emw--color-info, #2196f3)}.transactions-list .transaction-item .category-group .status-badge.tax{background-color:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #607d8b)}.transactions-list .transaction-item .category-group .status-badge.pendingnotification,.transactions-list .transaction-item .category-group .status-badge.pending{color:var(--emw--color-pending, #F5A623)}.transactions-list .transaction-item .category-group .status-badge.failed,.transactions-list .transaction-item .category-group .status-badge.declined,.transactions-list .transaction-item .category-group .status-badge.cancelled{color:var(--emw--color-error, #d32f2f)}.transactions-list .transaction-item .amount{font-size:15px;font-weight:600}.transactions-list .transaction-item .amount.positive{color:var(--emw--color-valid, #4caf50)}.transactions-list .transaction-item .amount.negative{color:var(--emw--color-secondary, #5bb4ff)}.transactions-list .transaction-item .middle-row{justify-content:space-between}.transactions-list .transaction-item .middle-row .transaction-id{font-size:14px;font-weight:600;color:var(--emw--color-contrast, #333);word-break:break-all;padding-right:16px}.transactions-list .transaction-item .middle-row .copy-action-wrapper{position:relative;display:flex;align-items:center;min-width:30px;min-height:30px;justify-content:center;cursor:pointer;padding:8px;margin-right:-8px}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copy-icon{fill:var(--emw--color-gray-300, #4a4a4a);stroke:var(--emw--color-white, #ffffff);stroke-width:2px;cursor:pointer;transition:transform 0.1s;pointer-events:none}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copy-icon:hover .copy-icon{transform:scale(1.1)}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copy-icon:active{transform:scale(0.95)}.transactions-list .transaction-item .middle-row .copy-action-wrapper .copied-tooltip{position:absolute;right:100%;margin-right:8px;background:var(--emw--color-contrast, #333);color:var(--emw--color-white, #fff);font-size:12px;font-weight:500;padding:2px 6px;border-radius:4px;white-space:nowrap;pointer-events:none;animation:fadeInOutCopy 2s ease forwards}.transactions-list .transaction-item .bottom-row{font-size:13px;color:var(--emw--color-gray-150, #888)}.transactions-list .transaction-item .bottom-row .balance strong{color:var(--emw--color-contrast, #333)}@keyframes fadeInOutCopy{0%{opacity:0;transform:translateX(5px)}10%{opacity:1;transform:translateX(0)}80%{opacity:1;transform:translateX(0)}100%{opacity:0}}.pagination-container{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:16px;border-top:1px solid var(--emw--color-gray-100, #eee);margin-bottom:20px}@media (max-width: 600px){.pagination-container{padding-bottom:calc(90px + env(safe-area-inset-bottom, 0px));margin-bottom:0}}.pagination-container .pagination-btn{background-color:var(--emw--color-white, #fff);border:1px solid var(--emw--color-gray-200, #ddd);color:var(--emw--color-primary, #ff6b00);font-size:14px;font-weight:600;padding:8px 16px;border-radius:4px;cursor:pointer;transition:all 0.2s;display:flex;align-items:center;gap:8px}.pagination-container .pagination-btn:hover:not(:disabled){background-color:var(--emw--color-primary-light, #fff5f0);border-color:var(--emw--color-primary, #ff6b00)}.pagination-container .pagination-btn:disabled{color:var(--emw--color-gray-200, #bbb);border-color:var(--emw--color-gray-100, #eee);cursor:not-allowed}.pagination-container .pagination-btn.next-btn::after{content:">";font-weight:bold}.pagination-container .pagination-btn.prev-btn::before{content:"<";font-weight:bold}.pagination-container .page-indicator{color:var(--emw--color-gray-300, #666);font-size:14px;font-weight:500}.verify-access-loading{height:100dvh;border:2px solid red;background-color:var(--emw--color-white, #ffffff);display:flex;justify-content:center;align-items:center}.verify-access-loading .loading-text{color:var(--emw--color-gray-300, #666666);font-size:16px;font-weight:500}';export{id as P}
@@ -1 +1 @@
1
- export{P as pam_statement_history}from"./pam-statement-history-bbad60d1.js";import"./index-50c7699a.js";
1
+ export{P as pam_statement_history}from"./pam-statement-history-ac498350.js";import"./index-50c7699a.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/pam-statement-history",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",