@everymatrix/bonus-elevate-powerups-lobby 0.5.8 → 0.5.10
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.
|
@@ -6,7 +6,7 @@ import{r as t,h as e,c as i,g as s,H as r}from"./index-907b0f95.js";import{P as
|
|
|
6
6
|
//! momentjs.com
|
|
7
7
|
var w,y;function x(){return w.apply(null,arguments)}function _(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function k(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function S(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(C(t,e))return!1;return!0}function E(t){return void 0===t}function P(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function A(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function M(t,e){var i,s=[],r=t.length;for(i=0;i<r;++i)s.push(e(t[i],i));return s}function I(t,e){for(var i in e)C(e,i)&&(t[i]=e[i]);return C(e,"toString")&&(t.toString=e.toString),C(e,"valueOf")&&(t.valueOf=e.valueOf),t}function D(t,e,i,s){return Xe(t,e,i,s,!0).utc()}function T(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function z(t){if(null==t._isValid){var e=T(t),i=y.call(e.parsedDateParts,(function(t){return null!=t})),s=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(s=s&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return s;t._isValid=s}return t._isValid}function N(t){var e=D(NaN);return null!=t?I(T(e),t):T(e).userInvalidated=!0,e}y=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),s=i.length>>>0;for(e=0;e<s;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var F=x.momentProperties=[],O=!1;function L(t,e){var i,s,r,o=F.length;if(E(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),E(e._i)||(t._i=e._i),E(e._f)||(t._f=e._f),E(e._l)||(t._l=e._l),E(e._strict)||(t._strict=e._strict),E(e._tzm)||(t._tzm=e._tzm),E(e._isUTC)||(t._isUTC=e._isUTC),E(e._offset)||(t._offset=e._offset),E(e._pf)||(t._pf=T(e)),E(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)E(r=e[s=F[i]])||(t[s]=r);return t}function U(t){L(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===O&&(O=!0,x.updateOffset(this),O=!1)}function j(t){return t instanceof U||null!=t&&null!=t._isAMomentObject}function Y(t){!1===x.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function R(t,e){var i=!0;return I((function(){if(null!=x.deprecationHandler&&x.deprecationHandler(null,t),i){var s,r,o,n=[],a=arguments.length;for(r=0;r<a;r++){if(s="","object"==typeof arguments[r]){for(o in s+="\n["+r+"] ",arguments[0])C(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[r];n.push(s)}Y(t+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var G,V={};function H(t,e){null!=x.deprecationHandler&&x.deprecationHandler(t,e),V[t]||(Y(e),V[t]=!0)}function $(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function W(t,e){var i,s=I({},t);for(i in e)C(e,i)&&(k(t[i])&&k(e[i])?(s[i]={},I(s[i],t[i]),I(s[i],e[i])):null!=e[i]?s[i]=e[i]:delete s[i]);for(i in t)C(t,i)&&!C(e,i)&&k(t[i])&&(s[i]=I({},s[i]));return s}function q(t){null!=t&&this.set(t)}function K(t,e,i){var s=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-s.length)).toString().substr(1)+s}x.suppressDeprecationWarnings=!1,x.deprecationHandler=null,G=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)C(t,e)&&i.push(e);return i};var J=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,X=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Q={},Z={};function tt(t,e,i,s){var r=s;"string"==typeof s&&(r=function(){return this[s]()}),t&&(Z[t]=r),e&&(Z[e[0]]=function(){return K(r.apply(this,arguments),e[1],e[2])}),i&&(Z[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function et(t,e){return t.isValid()?(e=it(e,t.localeData()),Q[e]=Q[e]||function(t){var e,i,s,r=t.match(J);for(e=0,i=r.length;e<i;e++)r[e]=Z[r[e]]?Z[r[e]]:(s=r[e]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(e){var s,o="";for(s=0;s<i;s++)o+=$(r[s])?r[s].call(e,t):r[s];return o}}(e),Q[e](t)):t.localeData().invalidDate()}function it(t,e){var i=5;function s(t){return e.longDateFormat(t)||t}for(X.lastIndex=0;i>=0&&X.test(t);)t=t.replace(X,s),X.lastIndex=0,i-=1;return t}var st={};function rt(t,e){var i=t.toLowerCase();st[i]=st[i+"s"]=st[e]=t}function ot(t){return"string"==typeof t?st[t]||st[t.toLowerCase()]:void 0}function nt(t){var e,i,s={};for(i in t)C(t,i)&&(e=ot(i))&&(s[e]=t[i]);return s}var at={};function lt(t,e){at[t]=e}function ht(t){return t%4==0&&t%100!=0||t%400==0}function dt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ct(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=dt(e)),i}function ut(t,e){return function(i){return null!=i?(mt(this,t,i),x.updateOffset(this,e),this):pt(this,t)}}function pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function mt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&ht(t.year())&&1===t.month()&&29===t.date()?(i=ct(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Kt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var vt,ft=/\d/,gt=/\d\d/,bt=/\d{3}/,wt=/\d{4}/,yt=/[+-]?\d{6}/,xt=/\d\d?/,_t=/\d\d\d\d?/,kt=/\d\d\d\d\d\d?/,Ct=/\d{1,3}/,St=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Pt=/\d+/,At=/[+-]?\d+/,Mt=/Z|[+-]\d\d:?\d\d/gi,It=/Z|[+-]\d\d(?::?\d\d)?/gi,Dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Tt(t,e,i){vt[t]=$(e)?e:function(t){return t&&i?i:e}}function zt(t,e){return C(vt,t)?vt[t](e._strict,e._locale):new RegExp(Nt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,s,r){return e||i||s||r}))))}function Nt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}vt={};var Ft={};function Ot(t,e){var i,s,r=e;for("string"==typeof t&&(t=[t]),P(e)&&(r=function(t,i){i[e]=ct(t)}),s=t.length,i=0;i<s;i++)Ft[t[i]]=r}function Lt(t,e){Ot(t,(function(t,i,s,r){s._w=s._w||{},e(t,s._w,s,r)}))}function Ut(t,e,i){null!=e&&C(Ft,t)&&Ft[t](e,i._a,i,t)}var Bt,jt=0,Yt=1,Rt=2,Gt=3,Vt=4,Ht=5,$t=6,Wt=7,qt=8;function Kt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?ht(t)?29:28:31-i%7%2}Bt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},tt("M",["MM",2],"Mo",(function(){return this.month()+1})),tt("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),tt("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),lt("month",8),Tt("M",xt),Tt("MM",xt,gt),Tt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Tt("MMMM",(function(t,e){return e.monthsRegex(t)})),Ot(["M","MM"],(function(t,e){e[Yt]=ct(t)-1})),Ot(["MMM","MMMM"],(function(t,e,i,s){var r=i._locale.monthsParse(t,s,i._strict);null!=r?e[Yt]=r:T(i).invalidMonth=t}));var Jt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Zt=Dt,te=Dt;function ee(t,e,i){var s,r,o,n=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=D([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Bt.call(this._shortMonthsParse,n))?r:null:-1!==(r=Bt.call(this._longMonthsParse,n))?r:null:"MMM"===e?-1!==(r=Bt.call(this._shortMonthsParse,n))||-1!==(r=Bt.call(this._longMonthsParse,n))?r:null:-1!==(r=Bt.call(this._longMonthsParse,n))||-1!==(r=Bt.call(this._shortMonthsParse,n))?r:null}function ie(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ct(e);else if(!P(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Kt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function se(t){return null!=t?(ie(this,t),x.updateOffset(this,!0),this):pt(this,"Month")}function re(){function t(t,e){return e.length-t.length}var e,i,s=[],r=[],o=[];for(e=0;e<12;e++)i=D([2e3,e]),s.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(s.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)s[e]=Nt(s[e]),r[e]=Nt(r[e]);for(e=0;e<24;e++)o[e]=Nt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function oe(t){return ht(t)?366:365}tt("Y",0,0,(function(){var t=this.year();return t<=9999?K(t,4):"+"+t})),tt(0,["YY",2],0,(function(){return this.year()%100})),tt(0,["YYYY",4],0,"year"),tt(0,["YYYYY",5],0,"year"),tt(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),lt("year",1),Tt("Y",At),Tt("YY",xt,gt),Tt("YYYY",St,wt),Tt("YYYYY",Et,yt),Tt("YYYYYY",Et,yt),Ot(["YYYYY","YYYYYY"],jt),Ot("YYYY",(function(t,e){e[jt]=2===t.length?x.parseTwoDigitYear(t):ct(t)})),Ot("YY",(function(t,e){e[jt]=x.parseTwoDigitYear(t)})),Ot("Y",(function(t,e){e[jt]=parseInt(t,10)})),x.parseTwoDigitYear=function(t){return ct(t)+(ct(t)>68?1900:2e3)};var ne=ut("FullYear",!0);function ae(t,e,i,s,r,o,n){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,s,r,o,n),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,s,r,o,n),a}function le(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function he(t,e,i){var s=7+e-i;return-(7+le(t,0,s).getUTCDay()-e)%7+s-1}function de(t,e,i,s,r){var o,n,a=1+7*(e-1)+(7+i-s)%7+he(t,s,r);return a<=0?n=oe(o=t-1)+a:a>oe(t)?(o=t+1,n=a-oe(t)):(o=t,n=a),{year:o,dayOfYear:n}}function ce(t,e,i){var s,r,o=he(t.year(),e,i),n=Math.floor((t.dayOfYear()-o-1)/7)+1;return n<1?s=n+ue(r=t.year()-1,e,i):n>ue(t.year(),e,i)?(s=n-ue(t.year(),e,i),r=t.year()+1):(r=t.year(),s=n),{week:s,year:r}}function ue(t,e,i){var s=he(t,e,i),r=he(t+1,e,i);return(oe(t)-s+r)/7}function pe(t,e){return t.slice(e,7).concat(t.slice(0,e))}tt("w",["ww",2],"wo","week"),tt("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),lt("week",5),lt("isoWeek",5),Tt("w",xt),Tt("ww",xt,gt),Tt("W",xt),Tt("WW",xt,gt),Lt(["w","ww","W","WW"],(function(t,e,i,s){e[s.substr(0,1)]=ct(t)})),tt("d",0,"do","day"),tt("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),tt("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),tt("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),tt("e",0,0,"weekday"),tt("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),lt("day",11),lt("weekday",11),lt("isoWeekday",11),Tt("d",xt),Tt("e",xt),Tt("E",xt),Tt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Tt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Tt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Lt(["dd","ddd","dddd"],(function(t,e,i,s){var r=i._locale.weekdaysParse(t,s,i._strict);null!=r?e.d=r:T(i).invalidWeekday=t})),Lt(["d","e","E"],(function(t,e,i,s){e[s]=ct(t)}));var me="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),fe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ge=Dt,be=Dt,we=Dt;function ye(t,e,i){var s,r,o,n=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)o=D([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Bt.call(this._weekdaysParse,n))?r:null:"ddd"===e?-1!==(r=Bt.call(this._shortWeekdaysParse,n))?r:null:-1!==(r=Bt.call(this._minWeekdaysParse,n))?r:null:"dddd"===e?-1!==(r=Bt.call(this._weekdaysParse,n))||-1!==(r=Bt.call(this._shortWeekdaysParse,n))||-1!==(r=Bt.call(this._minWeekdaysParse,n))?r:null:"ddd"===e?-1!==(r=Bt.call(this._shortWeekdaysParse,n))||-1!==(r=Bt.call(this._weekdaysParse,n))||-1!==(r=Bt.call(this._minWeekdaysParse,n))?r:null:-1!==(r=Bt.call(this._minWeekdaysParse,n))||-1!==(r=Bt.call(this._weekdaysParse,n))||-1!==(r=Bt.call(this._shortWeekdaysParse,n))?r:null}function xe(){function t(t,e){return e.length-t.length}var e,i,s,r,o,n=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=D([2e3,1]).day(e),s=Nt(this.weekdaysMin(i,"")),r=Nt(this.weekdaysShort(i,"")),o=Nt(this.weekdays(i,"")),n.push(s),a.push(r),l.push(o),h.push(s),h.push(r),h.push(o);n.sort(t),a.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function _e(){return this.hours()%12||12}function ke(t,e){tt(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Ce(t,e){return e._meridiemParse}tt("H",["HH",2],0,"hour"),tt("h",["hh",2],0,_e),tt("k",["kk",2],0,(function(){return this.hours()||24})),tt("hmm",0,0,(function(){return""+_e.apply(this)+K(this.minutes(),2)})),tt("hmmss",0,0,(function(){return""+_e.apply(this)+K(this.minutes(),2)+K(this.seconds(),2)})),tt("Hmm",0,0,(function(){return""+this.hours()+K(this.minutes(),2)})),tt("Hmmss",0,0,(function(){return""+this.hours()+K(this.minutes(),2)+K(this.seconds(),2)})),ke("a",!0),ke("A",!1),rt("hour","h"),lt("hour",13),Tt("a",Ce),Tt("A",Ce),Tt("H",xt),Tt("h",xt),Tt("k",xt),Tt("HH",xt,gt),Tt("hh",xt,gt),Tt("kk",xt,gt),Tt("hmm",_t),Tt("hmmss",kt),Tt("Hmm",_t),Tt("Hmmss",kt),Ot(["H","HH"],Gt),Ot(["k","kk"],(function(t,e){var i=ct(t);e[Gt]=24===i?0:i})),Ot(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Ot(["h","hh"],(function(t,e,i){e[Gt]=ct(t),T(i).bigHour=!0})),Ot("hmm",(function(t,e,i){var s=t.length-2;e[Gt]=ct(t.substr(0,s)),e[Vt]=ct(t.substr(s)),T(i).bigHour=!0})),Ot("hmmss",(function(t,e,i){var s=t.length-4,r=t.length-2;e[Gt]=ct(t.substr(0,s)),e[Vt]=ct(t.substr(s,2)),e[Ht]=ct(t.substr(r)),T(i).bigHour=!0})),Ot("Hmm",(function(t,e){var i=t.length-2;e[Gt]=ct(t.substr(0,i)),e[Vt]=ct(t.substr(i))})),Ot("Hmmss",(function(t,e){var i=t.length-4,s=t.length-2;e[Gt]=ct(t.substr(0,i)),e[Vt]=ct(t.substr(i,2)),e[Ht]=ct(t.substr(s))}));var Se,Ee=ut("Hours",!0),Pe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Jt,monthsShort:Xt,week:{dow:0,doy:6},weekdays:me,weekdaysMin:fe,weekdaysShort:ve,meridiemParse:/[ap]\.?m?\.?/i},Ae={},Me={};function Ie(t,e){var i,s=Math.min(t.length,e.length);for(i=0;i<s;i+=1)if(t[i]!==e[i])return i;return s}function De(t){return t?t.toLowerCase().replace("_","-"):t}function Te(t){var e=null;if(void 0===Ae[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=Se._abbr,require("./locale/"+t),ze(e)}catch(e){Ae[t]=null}return Ae[t]}function ze(t,e){var i;return t&&((i=E(e)?Fe(t):Ne(t,e))?Se=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Se._abbr}function Ne(t,e){if(null!==e){var i,s=Pe;if(e.abbr=t,null!=Ae[t])H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Ae[t]._config;else if(null!=e.parentLocale)if(null!=Ae[e.parentLocale])s=Ae[e.parentLocale]._config;else{if(null==(i=Te(e.parentLocale)))return Me[e.parentLocale]||(Me[e.parentLocale]=[]),Me[e.parentLocale].push({name:t,config:e}),null;s=i._config}return Ae[t]=new q(W(s,e)),Me[t]&&Me[t].forEach((function(t){Ne(t.name,t.config)})),ze(t),Ae[t]}return delete Ae[t],null}function Fe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Se;if(!_(t)){if(e=Te(t))return e;t=[t]}return function(t){for(var e,i,s,r,o=0;o<t.length;){for(e=(r=De(t[o]).split("-")).length,i=(i=De(t[o+1]))?i.split("-"):null;e>0;){if(s=Te(r.slice(0,e).join("-")))return s;if(i&&i.length>=e&&Ie(r,i)>=e-1)break;e--}o++}return Se}(t)}function Oe(t){var e,i=t._a;return i&&-2===T(t).overflow&&(e=i[Yt]<0||i[Yt]>11?Yt:i[Rt]<1||i[Rt]>Kt(i[jt],i[Yt])?Rt:i[Gt]<0||i[Gt]>24||24===i[Gt]&&(0!==i[Vt]||0!==i[Ht]||0!==i[$t])?Gt:i[Vt]<0||i[Vt]>59?Vt:i[Ht]<0||i[Ht]>59?Ht:i[$t]<0||i[$t]>999?$t:-1,T(t)._overflowDayOfYear&&(e<jt||e>Rt)&&(e=Rt),T(t)._overflowWeeks&&-1===e&&(e=Wt),T(t)._overflowWeekday&&-1===e&&(e=qt),T(t).overflow=e),t}var Le=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ue=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Be=/Z|[+-]\d\d(?::?\d\d)?/,je=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ye=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Re=/^\/?Date\((-?\d+)/i,Ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ve={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function He(t){var e,i,s,r,o,n,a=t._i,l=Le.exec(a)||Ue.exec(a),h=je.length,d=Ye.length;if(l){for(T(t).iso=!0,e=0,i=h;e<i;e++)if(je[e][1].exec(l[1])){r=je[e][0],s=!1!==je[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=d;e<i;e++)if(Ye[e][1].exec(l[3])){o=(l[2]||" ")+Ye[e][0];break}if(null==o)return void(t._isValid=!1)}if(!s&&null!=o)return void(t._isValid=!1);if(l[4]){if(!Be.exec(l[4]))return void(t._isValid=!1);n="Z"}t._f=r+(o||"")+(n||""),Ke(t)}else t._isValid=!1}function $e(t){var e,i,s,r,o,n,a,l,h,d=Ge.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],s=d[2],r=d[5],o=d[6],n=d[7],a=[(l=d[4],h=parseInt(l,10),h<=49?2e3+h:h<=999?1900+h:h),Xt.indexOf(i),parseInt(s,10),parseInt(r,10),parseInt(o,10)],n&&a.push(parseInt(n,10)),!function(t,e,i){return!t||ve.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(T(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],e=a,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Ve[t];if(e)return 0;var s=parseInt(i,10),r=s%100;return(s-r)/100*60+r}(d[8],d[9],d[10]),t._d=le.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),T(t).rfc2822=!0}else t._isValid=!1}function We(t,e,i){return null!=t?t:null!=e?e:i}function qe(t){var e,i,s,r,o,n=[];if(!t._d){for(s=function(t){var e=new Date(x.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Rt]&&null==t._a[Yt]&&function(t){var e,i,s,r,o,n,a,l,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,n=4,i=We(e.GG,t._a[jt],ce(Qe(),1,4).year),s=We(e.W,1),((r=We(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,n=t._locale._week.doy,h=ce(Qe(),o,n),i=We(e.gg,t._a[jt],h.year),s=We(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),s<1||s>ue(i,o,n)?T(t)._overflowWeeks=!0:null!=l?T(t)._overflowWeekday=!0:(a=de(i,s,r,o,n),t._a[jt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=We(t._a[jt],s[jt]),(t._dayOfYear>oe(o)||0===t._dayOfYear)&&(T(t)._overflowDayOfYear=!0),i=le(o,0,t._dayOfYear),t._a[Yt]=i.getUTCMonth(),t._a[Rt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=s[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Vt]&&0===t._a[Ht]&&0===t._a[$t]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?le:ae).apply(null,n),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(T(t).weekdayMismatch=!0)}}function Ke(t){if(t._f!==x.ISO_8601)if(t._f!==x.RFC_2822){t._a=[],T(t).empty=!0;var e,i,s,r,o,n,a,l=""+t._i,h=l.length,d=0;for(a=(s=it(t._f,t._locale).match(J)||[]).length,e=0;e<a;e++)(i=(l.match(zt(r=s[e],t))||[])[0])&&((o=l.substr(0,l.indexOf(i))).length>0&&T(t).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),d+=i.length),Z[r]?(i?T(t).empty=!1:T(t).unusedTokens.push(r),Ut(r,i,t)):t._strict&&!i&&T(t).unusedTokens.push(r);T(t).charsLeftOver=h-d,l.length>0&&T(t).unusedInput.push(l),t._a[Gt]<=12&&!0===T(t).bigHour&&t._a[Gt]>0&&(T(t).bigHour=void 0),T(t).parsedDateParts=t._a.slice(0),T(t).meridiem=t._meridiem,t._a[Gt]=function(t,e,i){var s;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((s=t.isPM(i))&&e<12&&(e+=12),s||12!==e||(e=0),e):e}(t._locale,t._a[Gt],t._meridiem),null!==(n=T(t).era)&&(t._a[jt]=t._locale.erasConvertYear(n,t._a[jt])),qe(t),Oe(t)}else $e(t);else He(t)}function Je(t){var e=t._i,i=t._f;return t._locale=t._locale||Fe(t._l),null===e||void 0===i&&""===e?N({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),j(e)?new U(Oe(e)):(A(e)?t._d=e:_(i)?function(t){var e,i,s,r,o,n,a=!1,l=t._f.length;if(0===l)return T(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,n=!1,e=L({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ke(e),z(e)&&(n=!0),o+=T(e).charsLeftOver,o+=10*T(e).unusedTokens.length,T(e).score=o,a?o<s&&(s=o,i=e):(null==s||o<s||n)&&(s=o,i=e,n&&(a=!0));I(t,i||e)}(t):i?Ke(t):function(t){var e=t._i;E(e)?t._d=new Date(x.now()):A(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Re.exec(t._i);null===e?(He(t),!1===t._isValid&&(delete t._isValid,$e(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:x.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):_(e)?(t._a=M(e.slice(0),(function(t){return parseInt(t,10)})),qe(t)):k(e)?function(t){if(!t._d){var e=nt(t._i);t._a=M([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),qe(t)}}(t):P(e)?t._d=new Date(e):x.createFromInputFallback(t)}(t),z(t)||(t._d=null),t))}function Xe(t,e,i,s,r){var o,n={};return!0!==e&&!1!==e||(s=e,e=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(k(t)&&S(t)||_(t)&&0===t.length)&&(t=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=r,n._l=i,n._i=t,n._f=e,n._strict=s,(o=new U(Oe(Je(n))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Qe(t,e,i,s){return Xe(t,e,i,s,!1)}x.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),x.ISO_8601=function(){},x.RFC_2822=function(){};var Ze=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Qe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:N()})),ti=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Qe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:N()}));function ei(t,e){var i,s;if(1===e.length&&_(e[0])&&(e=e[0]),!e.length)return Qe();for(i=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](i)||(i=e[s]);return i}var ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function si(t){var e=nt(t),i=e.year||0,s=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,n=e.day||0,a=e.hour||0,l=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,s=!1,r=ii.length;for(e in t)if(C(t,e)&&(-1===Bt.call(ii,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[ii[i]]){if(s)return!1;parseFloat(t[ii[i]])!==ct(t[ii[i]])&&(s=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*l+1e3*a*60*60,this._days=+n+7*o,this._months=+r+3*s+12*i,this._data={},this._locale=Fe(),this._bubble()}function ri(t){return t instanceof si}function oi(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ni(t,e){tt(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+K(~~(t/60),2)+e+K(~~t%60,2)}))}ni("Z",":"),ni("ZZ",""),Tt("Z",It),Tt("ZZ",It),Ot(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=li(It,t)}));var ai=/([\+\-]|\d\d)/gi;function li(t,e){var i,s,r=(e||"").match(t);return null===r?null:0===(s=60*(i=((r[r.length-1]||[])+"").match(ai)||["-",0,0])[1]+ct(i[2]))?0:"+"===i[0]?s:-s}function hi(t,e){var i,s;return e._isUTC?(i=e.clone(),s=(j(t)||A(t)?t.valueOf():Qe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),x.updateOffset(i,!1),i):Qe(t).local()}function di(t){return-Math.round(t._d.getTimezoneOffset())}function ci(){return!!this.isValid()&&this._isUTC&&0===this._offset}x.updateOffset=function(){};var ui=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,pi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mi(t,e){var i,s,r,o,n,a,l=t,h=null;return ri(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:P(t)||!isNaN(+t)?(l={},e?l[e]=+t:l.milliseconds=+t):(h=ui.exec(t))?(i="-"===h[1]?-1:1,l={y:0,d:ct(h[Rt])*i,h:ct(h[Gt])*i,m:ct(h[Vt])*i,s:ct(h[Ht])*i,ms:ct(oi(1e3*h[$t]))*i}):(h=pi.exec(t))?l={y:vi(h[2],i="-"===h[1]?-1:1),M:vi(h[3],i),w:vi(h[4],i),d:vi(h[5],i),h:vi(h[6],i),m:vi(h[7],i),s:vi(h[8],i)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Qe(l.from),n=Qe(l.to),r=o.isValid()&&n.isValid()?(n=hi(n,o),o.isBefore(n)?a=fi(o,n):((a=fi(n,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(l={}).ms=r.milliseconds,l.M=r.months),s=new si(l),ri(t)&&C(t,"_locale")&&(s._locale=t._locale),ri(t)&&C(t,"_isValid")&&(s._isValid=t._isValid),s}function vi(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function fi(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function gi(t,e){return function(i,s){var r;return null===s||isNaN(+s)||(H(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=s,s=r),bi(this,mi(i,s),t),this}}function bi(t,e,i,s){var r=e._milliseconds,o=oi(e._days),n=oi(e._months);t.isValid()&&(s=null==s||s,n&&ie(t,pt(t,"Month")+n*i),o&&mt(t,"Date",pt(t,"Date")+o*i),r&&t._d.setTime(t._d.valueOf()+r*i),s&&x.updateOffset(t,o||n))}mi.fn=si.prototype,mi.invalid=function(){return mi(NaN)};var wi=gi(1,"add"),yi=gi(-1,"subtract");function xi(t){return"string"==typeof t||t instanceof String}function _i(t,e){if(t.date()<e.date())return-_i(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return-(i+(e-s<0?(e-s)/(s-t.clone().add(i-1,"months")):(e-s)/(t.clone().add(i+1,"months")-s)))||0}function ki(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Fe(t))&&(this._locale=e),this)}x.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",x.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ci=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Si(){return this._locale}var Ei=1e3,Pi=6e4,Ai=36e5,Mi=126227808e5;function Ii(t,e){return(t%e+e)%e}function Di(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Mi:new Date(t,e,i).valueOf()}function Ti(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Mi:Date.UTC(t,e,i)}function zi(t,e){return e.erasAbbrRegex(t)}function Ni(){var t,e,i=[],s=[],r=[],o=[],n=this.eras();for(t=0,e=n.length;t<e;++t)s.push(Nt(n[t].name)),i.push(Nt(n[t].abbr)),r.push(Nt(n[t].narrow)),o.push(Nt(n[t].name)),o.push(Nt(n[t].abbr)),o.push(Nt(n[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Fi(t,e){tt(0,[t,t.length],0,e)}function Oi(t,e,i,s,r){var o;return null==t?ce(this,s,r).year:(e>(o=ue(t,s,r))&&(e=o),Li.call(this,t,e,i,s,r))}function Li(t,e,i,s,r){var o=de(t,e,i,s,r),n=le(o.year,0,o.dayOfYear);return this.year(n.getUTCFullYear()),this.month(n.getUTCMonth()),this.date(n.getUTCDate()),this}tt("N",0,0,"eraAbbr"),tt("NN",0,0,"eraAbbr"),tt("NNN",0,0,"eraAbbr"),tt("NNNN",0,0,"eraName"),tt("NNNNN",0,0,"eraNarrow"),tt("y",["y",1],"yo","eraYear"),tt("y",["yy",2],0,"eraYear"),tt("y",["yyy",3],0,"eraYear"),tt("y",["yyyy",4],0,"eraYear"),Tt("N",zi),Tt("NN",zi),Tt("NNN",zi),Tt("NNNN",(function(t,e){return e.erasNameRegex(t)})),Tt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Ot(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,s){var r=i._locale.erasParse(t,s,i._strict);r?T(i).era=r:T(i).invalidEra=t})),Tt("y",Pt),Tt("yy",Pt),Tt("yyy",Pt),Tt("yyyy",Pt),Tt("yo",(function(t,e){return e._eraYearOrdinalRegex||Pt})),Ot(["y","yy","yyy","yyyy"],jt),Ot(["yo"],(function(t,e,i){var s;i._locale._eraYearOrdinalRegex&&(s=t.match(i._locale._eraYearOrdinalRegex)),e[jt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,s):parseInt(t,10)})),tt(0,["gg",2],0,(function(){return this.weekYear()%100})),tt(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fi("gggg","weekYear"),Fi("ggggg","weekYear"),Fi("GGGG","isoWeekYear"),Fi("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),lt("weekYear",1),lt("isoWeekYear",1),Tt("G",At),Tt("g",At),Tt("GG",xt,gt),Tt("gg",xt,gt),Tt("GGGG",St,wt),Tt("gggg",St,wt),Tt("GGGGG",Et,yt),Tt("ggggg",Et,yt),Lt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,s){e[s.substr(0,2)]=ct(t)})),Lt(["gg","GG"],(function(t,e,i,s){e[s]=x.parseTwoDigitYear(t)})),tt("Q",0,"Qo","quarter"),rt("quarter","Q"),lt("quarter",7),Tt("Q",ft),Ot("Q",(function(t,e){e[Yt]=3*(ct(t)-1)})),tt("D",["DD",2],"Do","date"),rt("date","D"),lt("date",9),Tt("D",xt),Tt("DD",xt,gt),Tt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ot(["D","DD"],Rt),Ot("Do",(function(t,e){e[Rt]=ct(t.match(xt)[0])}));var Ui=ut("Date",!0);tt("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),lt("dayOfYear",4),Tt("DDD",Ct),Tt("DDDD",bt),Ot(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=ct(t)})),tt("m",["mm",2],0,"minute"),rt("minute","m"),lt("minute",14),Tt("m",xt),Tt("mm",xt,gt),Ot(["m","mm"],Vt);var Bi=ut("Minutes",!1);tt("s",["ss",2],0,"second"),rt("second","s"),lt("second",15),Tt("s",xt),Tt("ss",xt,gt),Ot(["s","ss"],Ht);var ji,Yi,Ri=ut("Seconds",!1);for(tt("S",0,0,(function(){return~~(this.millisecond()/100)})),tt(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),tt(0,["SSS",3],0,"millisecond"),tt(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),tt(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),tt(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),tt(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),tt(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),tt(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),lt("millisecond",16),Tt("S",Ct,ft),Tt("SS",Ct,gt),Tt("SSS",Ct,bt),ji="SSSS";ji.length<=9;ji+="S")Tt(ji,Pt);function Gi(t,e){e[$t]=ct(1e3*("0."+t))}for(ji="S";ji.length<=9;ji+="S")Ot(ji,Gi);Yi=ut("Milliseconds",!1),tt("z",0,0,"zoneAbbr"),tt("zz",0,0,"zoneName");var Vi=U.prototype;function Hi(t){return t}Vi.add=wi,Vi.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?j(i=arguments[0])||A(i)||xi(i)||P(i)||function(t){var e=_(t),i=!1;return e&&(i=0===t.filter((function(e){return!P(e)&&xi(t)})).length),e&&i}(i)||function(t){var e,i=k(t)&&!S(t),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=r.length;for(e=0;e<o;e+=1)s=s||C(t,r[e]);return i&&s}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=k(t)&&!S(t),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)s=s||C(t,r[e]);return i&&s}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var s=t||Qe(),r=hi(s,this).startOf("day"),o=x.calendarFormat(this,r)||"sameElse",n=e&&($(e[o])?e[o].call(this,s):e[o]);return this.format(n||this.localeData().calendar(o,this,Qe(s)))},Vi.clone=function(){return new U(this)},Vi.diff=function(t,e,i){var s,r,o;if(!this.isValid())return NaN;if(!(s=hi(t,this)).isValid())return NaN;switch(r=6e4*(s.utcOffset()-this.utcOffset()),e=ot(e)){case"year":o=_i(this,s)/12;break;case"month":o=_i(this,s);break;case"quarter":o=_i(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-r)/864e5;break;case"week":o=(this-s-r)/6048e5;break;default:o=this-s}return i?o:dt(o)},Vi.endOf=function(t){var e,i;if(void 0===(t=ot(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ti:Di,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Ai-Ii(e+(this._isUTC?0:this.utcOffset()*Pi),Ai)-1;break;case"minute":e=this._d.valueOf(),e+=Pi-Ii(e,Pi)-1;break;case"second":e=this._d.valueOf(),e+=Ei-Ii(e,Ei)-1}return this._d.setTime(e),x.updateOffset(this,!0),this},Vi.format=function(t){t||(t=this.isUtc()?x.defaultFormatUtc:x.defaultFormat);var e=et(this,t);return this.localeData().postformat(e)},Vi.from=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Qe(t).isValid())?mi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Vi.fromNow=function(t){return this.from(Qe(),t)},Vi.to=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Qe(t).isValid())?mi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Vi.toNow=function(t){return this.to(Qe(),t)},Vi.get=function(t){return $(this[t=ot(t)])?this[t]():this},Vi.invalidAt=function(){return T(this).overflow},Vi.isAfter=function(t,e){var i=j(t)?t:Qe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=ot(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Vi.isBefore=function(t,e){var i=j(t)?t:Qe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=ot(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Vi.isBetween=function(t,e,i,s){var r=j(t)?t:Qe(t),o=j(e)?e:Qe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(s=s||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===s[1]?this.isBefore(o,i):!this.isAfter(o,i))},Vi.isSame=function(t,e){var i,s=j(t)?t:Qe(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=ot(e)||"millisecond")?this.valueOf()===s.valueOf():(i=s.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Vi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Vi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Vi.isValid=function(){return z(this)},Vi.lang=Ci,Vi.locale=ki,Vi.localeData=Si,Vi.max=ti,Vi.min=Ze,Vi.parsingFlags=function(){return I({},T(this))},Vi.set=function(t,e){if("object"==typeof t){var i,s=function(t){var e,i=[];for(e in t)C(t,e)&&i.push({unit:e,priority:at[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=nt(t)),r=s.length;for(i=0;i<r;i++)this[s[i].unit](t[s[i].unit])}else if($(this[t=ot(t)]))return this[t](e);return this},Vi.startOf=function(t){var e,i;if(void 0===(t=ot(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ti:Di,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ii(e+(this._isUTC?0:this.utcOffset()*Pi),Ai);break;case"minute":e=this._d.valueOf(),e-=Ii(e,Pi);break;case"second":e=this._d.valueOf(),e-=Ii(e,Ei)}return this._d.setTime(e),x.updateOffset(this,!0),this},Vi.subtract=yi,Vi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Vi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Vi.toDate=function(){return new Date(this.valueOf())},Vi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?et(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",et(i,"Z")):et(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Vi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+s+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Vi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Vi.toJSON=function(){return this.isValid()?this.toISOString():null},Vi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Vi.unix=function(){return Math.floor(this.valueOf()/1e3)},Vi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Vi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Vi.eraName=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].name;if(s[t].until<=i&&i<=s[t].since)return s[t].name}return""},Vi.eraNarrow=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].narrow;if(s[t].until<=i&&i<=s[t].since)return s[t].narrow}return""},Vi.eraAbbr=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].abbr;if(s[t].until<=i&&i<=s[t].since)return s[t].abbr}return""},Vi.eraYear=function(){var t,e,i,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return(this.year()-x(r[t].since).year())*i+r[t].offset;return this.year()},Vi.year=ne,Vi.isLeapYear=function(){return ht(this.year())},Vi.weekYear=function(t){return Oi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Vi.isoWeekYear=function(t){return Oi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Vi.quarter=Vi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Vi.month=se,Vi.daysInMonth=function(){return Kt(this.year(),this.month())},Vi.week=Vi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Vi.isoWeek=Vi.isoWeeks=function(t){var e=ce(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Vi.weeksInYear=function(){var t=this.localeData()._week;return ue(this.year(),t.dow,t.doy)},Vi.weeksInWeekYear=function(){var t=this.localeData()._week;return ue(this.weekYear(),t.dow,t.doy)},Vi.isoWeeksInYear=function(){return ue(this.year(),1,4)},Vi.isoWeeksInISOWeekYear=function(){return ue(this.isoWeekYear(),1,4)},Vi.date=Ui,Vi.day=Vi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Vi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Vi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Vi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Vi.hour=Vi.hours=Ee,Vi.minute=Vi.minutes=Bi,Vi.second=Vi.seconds=Ri,Vi.millisecond=Vi.milliseconds=Yi,Vi.utcOffset=function(t,e,i){var s,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=li(It,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(s=di(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),r!==t&&(!e||this._changeInProgress?bi(this,mi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,x.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:di(this)},Vi.utc=function(t){return this.utcOffset(0,t)},Vi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(di(this),"m")),this},Vi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=li(Mt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Vi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Qe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Vi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Vi.isLocal=function(){return!!this.isValid()&&!this._isUTC},Vi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Vi.isUtc=ci,Vi.isUTC=ci,Vi.zoneAbbr=function(){return this._isUTC?"UTC":""},Vi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Vi.dates=R("dates accessor is deprecated. Use date instead.",Ui),Vi.months=R("months accessor is deprecated. Use month instead",se),Vi.years=R("years accessor is deprecated. Use year instead",ne),Vi.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Vi.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!E(this._isDSTShifted))return this._isDSTShifted;var t,e={};return L(e,this),(e=Je(e))._a?(t=e._isUTC?D(e._a):Qe(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<s;i++)ct(t[i])!==ct(e[i])&&o++;return o+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var $i=q.prototype;function Wi(t,e,i,s){var r=Fe(),o=D().set(s,e);return r[i](o,t)}function qi(t,e,i){if(P(t)&&(e=t,t=void 0),t=t||"",null!=e)return Wi(t,e,i,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Wi(t,s,i,"month");return r}function Ki(t,e,i,s){"boolean"==typeof t?(P(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,P(e)&&(i=e,e=void 0),e=e||"");var r,o=Fe(),n=t?o._week.dow:0,a=[];if(null!=i)return Wi(e,(i+n)%7,s,"day");for(r=0;r<7;r++)a[r]=Wi(e,(r+n)%7,s,"day");return a}$i.calendar=function(t,e,i){var s=this._calendar[t]||this._calendar.sameElse;return $(s)?s.call(e,i):s},$i.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(J).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},$i.invalidDate=function(){return this._invalidDate},$i.ordinal=function(t){return this._ordinal.replace("%d",t)},$i.preparse=Hi,$i.postformat=Hi,$i.relativeTime=function(t,e,i,s){var r=this._relativeTime[i];return $(r)?r(t,e,i,s):r.replace(/%d/i,t)},$i.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return $(i)?i(e):i.replace(/%s/i,e)},$i.set=function(t){var e,i;for(i in t)C(t,i)&&($(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$i.eras=function(){var t,e,i,s=this._eras||Fe("en")._eras;for(t=0,e=s.length;t<e;++t)switch("string"==typeof s[t].since&&(i=x(s[t].since).startOf("day"),s[t].since=i.valueOf()),typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":i=x(s[t].until).startOf("day").valueOf(),s[t].until=i.valueOf()}return s},$i.erasParse=function(t,e,i){var s,r,o,n,a,l=this.eras();for(t=t.toUpperCase(),s=0,r=l.length;s<r;++s)if(o=l[s].name.toUpperCase(),n=l[s].abbr.toUpperCase(),a=l[s].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(n===t)return l[s];break;case"NNNN":if(o===t)return l[s];break;case"NNNNN":if(a===t)return l[s]}else if([o,n,a].indexOf(t)>=0)return l[s]},$i.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?x(t.since).year():x(t.since).year()+(e-t.offset)*i},$i.erasAbbrRegex=function(t){return C(this,"_erasAbbrRegex")||Ni.call(this),t?this._erasAbbrRegex:this._erasRegex},$i.erasNameRegex=function(t){return C(this,"_erasNameRegex")||Ni.call(this),t?this._erasNameRegex:this._erasRegex},$i.erasNarrowRegex=function(t){return C(this,"_erasNarrowRegex")||Ni.call(this),t?this._erasNarrowRegex:this._erasRegex},$i.months=function(t,e){return t?_(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Qt).test(e)?"format":"standalone"][t.month()]:_(this._months)?this._months:this._months.standalone},$i.monthsShort=function(t,e){return t?_(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Qt.test(e)?"format":"standalone"][t.month()]:_(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$i.monthsParse=function(t,e,i){var s,r,o;if(this._monthsParseExact)return ee.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=D([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[s]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[s].test(t))return s;if(i&&"MMM"===e&&this._shortMonthsParse[s].test(t))return s;if(!i&&this._monthsParse[s].test(t))return s}},$i.monthsRegex=function(t){return this._monthsParseExact?(C(this,"_monthsRegex")||re.call(this),t?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=te),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},$i.monthsShortRegex=function(t){return this._monthsParseExact?(C(this,"_monthsRegex")||re.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=Zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},$i.week=function(t){return ce(t,this._week.dow,this._week.doy).week},$i.firstDayOfYear=function(){return this._week.doy},$i.firstDayOfWeek=function(){return this._week.dow},$i.weekdays=function(t,e){var i=_(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?pe(i,this._week.dow):t?i[t.day()]:i},$i.weekdaysMin=function(t){return!0===t?pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},$i.weekdaysShort=function(t){return!0===t?pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},$i.weekdaysParse=function(t,e,i){var s,r,o;if(this._weekdaysParseExact)return ye.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=D([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[s].test(t))return s;if(i&&"ddd"===e&&this._shortWeekdaysParse[s].test(t))return s;if(i&&"dd"===e&&this._minWeekdaysParse[s].test(t))return s;if(!i&&this._weekdaysParse[s].test(t))return s}},$i.weekdaysRegex=function(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=ge),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},$i.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=be),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},$i.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=we),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},$i.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},$i.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},ze("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ct(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),x.lang=R("moment.lang is deprecated. Use moment.locale instead.",ze),x.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Fe);var Ji=Math.abs;function Xi(t,e,i,s){var r=mi(e,i);return t._milliseconds+=s*r._milliseconds,t._days+=s*r._days,t._months+=s*r._months,t._bubble()}function Qi(t){return t<0?Math.floor(t):Math.ceil(t)}function Zi(t){return 4800*t/146097}function ts(t){return 146097*t/4800}function es(t){return function(){return this.as(t)}}var is=es("ms"),ss=es("s"),rs=es("m"),os=es("h"),ns=es("d"),as=es("w"),ls=es("M"),hs=es("Q"),ds=es("y");function cs(t){return function(){return this.isValid()?this._data[t]:NaN}}var us=cs("milliseconds"),ps=cs("seconds"),ms=cs("minutes"),vs=cs("hours"),fs=cs("days"),gs=cs("months"),bs=cs("years"),ws=Math.round,ys={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xs(t,e,i,s,r){return r.relativeTime(e||1,!!i,t,s)}var _s=Math.abs;function ks(t){return(t>0)-(t<0)||+t}function Cs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,s,r,o,n,a,l=_s(this._milliseconds)/1e3,h=_s(this._days),d=_s(this._months),c=this.asSeconds();return c?(t=dt(l/60),e=dt(t/60),l%=60,t%=60,i=dt(d/12),d%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",o=ks(this._months)!==ks(c)?"-":"",n=ks(this._days)!==ks(c)?"-":"",a=ks(this._milliseconds)!==ks(c)?"-":"",r+"P"+(i?o+i+"Y":"")+(d?o+d+"M":"")+(h?n+h+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+s+"S":"")):"P0D"}var Ss=si.prototype;Ss.isValid=function(){return this._isValid},Ss.abs=function(){var t=this._data;return this._milliseconds=Ji(this._milliseconds),this._days=Ji(this._days),this._months=Ji(this._months),t.milliseconds=Ji(t.milliseconds),t.seconds=Ji(t.seconds),t.minutes=Ji(t.minutes),t.hours=Ji(t.hours),t.months=Ji(t.months),t.years=Ji(t.years),this},Ss.add=function(t,e){return Xi(this,t,e,1)},Ss.subtract=function(t,e){return Xi(this,t,e,-1)},Ss.as=function(t){if(!this.isValid())return NaN;var e,i,s=this._milliseconds;if("month"===(t=ot(t))||"quarter"===t||"year"===t)switch(i=this._months+Zi(e=this._days+s/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(ts(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw new Error("Unknown unit "+t)}},Ss.asMilliseconds=is,Ss.asSeconds=ss,Ss.asMinutes=rs,Ss.asHours=os,Ss.asDays=ns,Ss.asWeeks=as,Ss.asMonths=ls,Ss.asQuarters=hs,Ss.asYears=ds,Ss.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ct(this._months/12):NaN},Ss._bubble=function(){var t,e,i,s,r,o=this._milliseconds,n=this._days,a=this._months,l=this._data;return o>=0&&n>=0&&a>=0||o<=0&&n<=0&&a<=0||(o+=864e5*Qi(ts(a)+n),n=0,a=0),l.milliseconds=o%1e3,t=dt(o/1e3),l.seconds=t%60,e=dt(t/60),l.minutes=e%60,i=dt(e/60),l.hours=i%24,n+=dt(i/24),a+=r=dt(Zi(n)),n-=Qi(ts(r)),s=dt(a/12),a%=12,l.days=n,l.months=a,l.years=s,this},Ss.clone=function(){return mi(this)},Ss.get=function(t){return t=ot(t),this.isValid()?this[t+"s"]():NaN},Ss.milliseconds=us,Ss.seconds=ps,Ss.minutes=ms,Ss.hours=vs,Ss.days=fs,Ss.weeks=function(){return dt(this.days()/7)},Ss.months=gs,Ss.years=bs,Ss.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,s,r=!1,o=ys;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},ys,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),s=function(t,e,i,s){var r=mi(t).abs(),o=ws(r.as("s")),n=ws(r.as("m")),a=ws(r.as("h")),l=ws(r.as("d")),h=ws(r.as("M")),d=ws(r.as("w")),c=ws(r.as("y")),u=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||n<=1&&["m"]||n<i.m&&["mm",n]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(u=u||d<=1&&["w"]||d<i.w&&["ww",d]),(u=u||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=e,u[3]=+t>0,u[4]=s,xs.apply(null,u)}(this,!r,o,i=this.localeData()),r&&(s=i.pastFuture(+this,s)),i.postformat(s)},Ss.toISOString=Cs,Ss.toString=Cs,Ss.toJSON=Cs,Ss.locale=ki,Ss.localeData=Si,Ss.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cs),Ss.lang=Ci,tt("X",0,0,"unix"),tt("x",0,0,"valueOf"),Tt("x",At),Tt("X",/[+-]?\d+(\.\d{1,3})?/),Ot("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Ot("x",(function(t,e,i){i._d=new Date(ct(t))})),
|
|
8
8
|
//! moment.js
|
|
9
|
-
x.version="2.29.4",w=Qe,x.fn=Vi,x.min=function(){return ei("isBefore",[].slice.call(arguments,0))},x.max=function(){return ei("isAfter",[].slice.call(arguments,0))},x.now=function(){return Date.now?Date.now():+new Date},x.utc=D,x.unix=function(t){return Qe(1e3*t)},x.months=function(t,e){return qi(t,e,"months")},x.isDate=A,x.locale=ze,x.invalid=N,x.duration=mi,x.isMoment=j,x.weekdays=function(t,e,i){return Ki(t,e,i,"weekdays")},x.parseZone=function(){return Qe.apply(null,arguments).parseZone()},x.localeData=Fe,x.isDuration=ri,x.monthsShort=function(t,e){return qi(t,e,"monthsShort")},x.weekdaysMin=function(t,e,i){return Ki(t,e,i,"weekdaysMin")},x.defineLocale=Ne,x.updateLocale=function(t,e){if(null!=e){var i,s,r=Pe;null!=Ae[t]&&null!=Ae[t].parentLocale?Ae[t].set(W(Ae[t]._config,e)):(null!=(s=Te(t))&&(r=s._config),e=W(r,e),null==s&&(e.abbr=t),(i=new q(e)).parentLocale=Ae[t],Ae[t]=i),ze(t)}else null!=Ae[t]&&(null!=Ae[t].parentLocale?(Ae[t]=Ae[t].parentLocale,t===ze()&&ze(t)):null!=Ae[t]&&delete Ae[t]);return Ae[t]},x.locales=function(){return G(Ae)},x.weekdaysShort=function(t,e,i){return Ki(t,e,i,"weekdaysShort")},x.normalizeUnits=ot,x.relativeTimeRounding=function(t){return void 0===t?ws:"function"==typeof t&&(ws=t,!0)},x.relativeTimeThreshold=function(t,e){return void 0!==ys[t]&&(void 0===e?ys[t]:(ys[t]=e,"s"===t&&(ys.ss=e-1),!0))},x.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},x.prototype=Vi,x.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Es={[o.ACTIVE]:{label:"active"},[o.ACTIVATED]:{label:"activated"},[o.EXPIRED]:{label:"expired"},[o.CONSUMED]:{label:"consumed"},[o.DISABLED]:{label:"disabled"},[o.ENABLED]:{label:"enabled"}},Ps=class{constructor(e){t(this,e),this.tableId="powerupsHistory",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=10,this.translationUrl="",this.pageLimitOptions="10,25,50",this.pageLimitSelectOptions=[],this.isLoading=!0,this.powerups=[],this.offset=0,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:s}=t.detail;s===this.tableId&&(this.offset=i,this.limit=e)}setLimit(){try{const t=this.pageLimitOptions.split(",").map((t=>parseInt(t)));t.includes(this.limit)||(this.limit=t[0])}catch(t){console.error("Error when parse PageLimitOptions",t),this.limit=10}}onPageLimitChangedHandler(t){var e;if("historyPageLimits"===(null===(e=t.detail)||void 0===e?void 0:e.name)){const e=parseInt(t.detail.value||"10");this.limit!=e&&(this.limit=e,this.offset=0)}}async loadData(){if(this.endpoint&&this.session&&this.pageLimitSelectOptions.length){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit}`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};t.searchParams.append("language",this.language),t.searchParams.append("status",`${o.CONSUMED},${o.EXPIRED}`);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:s,total:r}=await i.json();this.powerups=s,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}render(){var t;return e("div",{key:"ba00e65f374616634a43507795af711bb5c28224",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):(null===(t=this.powerups)||void 0===t?void 0:t.length)?[e("ul",{class:"PowerUps"},this.powerups.map((t=>{var i;return e("li",{class:"PowerUpItem"},e("div",{class:"HistoryLeft"},e("div",{class:"DisplayName"}," ",t.powerUpName||"-"," "),e("div",{class:"Details"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),b(t.boostingPeriod.mode===n.TIME_PERIOD?"min":"rounds",this.language)," "),e("span",{class:"Multiplier"},"| X ",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",b(t.multiplier.mode,this.language)," "))),e("div",{class:"HistoryRight"},e("div",{class:`Status S${t.status}`},b((null===(i=Es[t.status])||void 0===i?void 0:i.label)||t.status,this.language)),e("div",{class:"HistoryTime"},x(t.status===o.EXPIRED?t.expireTime:t.endTime).format("YYYY-MM-DD HH:mm:ss")," ")))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&[e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,"arrows-active":"false",secondaryArrowsActive:!0,"table-id":this.tableId,total:this.total}),e("general-input",{"client-styling":"\n .historyPageLimits__input [part='input-field'] ::slotted([slot='value']:not([placeholder])) {\n\n text-align: center;\n }\n .historyPageLimits__input .select__input{background: transparent; width: 89px;\n vaadin-select-value-button{\n color: var(--vaadin-input-field-value-color, var(--emw--color-text));\n text-align: center;\n }\n }\n .historyPageLimits__input .select__input::part(toggle-button){\n color: var(--vaadin-input-field-value-color, var(--emw--color-text));\n right: 0px;\n }\n .historyPageLimits__input .select__input::part(input-field) {\n border-radius: 20px;\n background-color: transparent;\n border: 1px solid var(--emw--color-gray-100, #BCFCB10D);\n color: var(--emw--color-black, #000000);\n font-family: inherit;\n font-style: normal;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.5;\n padding: 5px;\n height: 34px;\n }",type:"dropdown",name:"historyPageLimits","display-name":"","default-value":this.limit,validation:{mandatory:!1},options:this.pageLimitSelectOptions,emitValue:!0,language:this.language,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl})])]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHlElEQVR4nO2daYwURRTH/4tnvPCI9xE1ahQTNZmp6gXRzar4wTtGvPWLUeIVPxgVNWbizqvZRdTAGoioEQwaFDWK0YBCvMUbJWJIBD8QOUIEowhEQFjzepu4WaZ6qnp6tqub+iX9hexUV/W/Xh3vvSoAj8fj8Xg8Ho/H4/F4ikapB8PLNYiyws2S8LBU6JEKU4TCNKkwWSjUhML9ZYWrRRfOPGUy9sm6zoWio4IDpMI1/NElYalU6LN5hMI2SVgoFUgqdI6djT2yblP+6ENbuYqLJGGmJGy0FSFWIMIqQZgoFUZk3Uz3qWBYmXC5VPg2TRFinvmS0J51s51EKnQKws9DJMRgq5kjqzgp62/gBOcoHC4VXs5CiEGibBaERzsq2BO7K6KK84XCykQfUOGvaGibJxVms6hC4Q0ehiJL25Kw3M9kD47D7oYkPBCugEw/FmGFJEwVCteafDDu6SWF06XCOKnwqiBssBDmd1nFBdgtqGAY7xcMe+u2aDjr5N8189pSBfsJhRsF4VNDUbaw+Ci8GISZBuP5v5LwXKsmWqlwnlD4yECU7WxhKCqSMNVgaPom6EZpKOrDFiMJaxqJUq7iOhQNSag0aji7PYZ6lROu8ghzDYavC1EURA2XScKOGKvYyH+T8VBabTjRF2H1Va7ieElYFzNxr3dlt1wm3BXNG9olce73KZKwIKaBf7PnFg4RiRJnKY8gr4STZsySNlAYAweJPMM6QTYF3TgReUNWcFCDFcyDcHuvNC9mWT4HeUMojI8RYx672OEwIys4Iq5DlQgSeaGjgn11jRGEzeVunIwcEEYl9UPu28gLcROjIDxmWx6HYjlimDTaF/Z2hek8jFr9sA9tkvCxZqm+I+jCGcgDugCTUFg/agIOtCkrchCujsqYbbvsjIaen6LO8N3obhxi8/uyQkfM0NsD1+HQaIx1PG5rGUJh7aAyZplaSmQZSwb17IW2lhK65Ot3sJXOx+j5o2sE2d5OOLYZMWxEqStGQlFEFTfpOhlbEFxGKnyhqfx80zJ4WBKEZXEbtDhRYsX4/5luWp+zJmJ/3sRqyumC0yk7hK2aio+zKUvUMDKKClqJYijGEv47q/oQXtdY2+dwFfaIaj9eDadZl2cpSqvEiNp2p0aQrSMq2BsuIhXu1lR6TdIyTUUZNQHHtEqMRosVZ5e/ktCrEWRBM+WaiGKQUJdYjJ3zWkzixFVwEUF4T1PhKU2XbSJKi8TYiS6VlXOJ4SI8wbXSZS2SiZKKGEyY6VjfOqtwEUFYrOlB96b1Do63C8IfRmIQlpYIR6f1bkF4SzOHTYKLSIXlmo9zW5rvCWq4wkCMjTzRp/leXcaMILwAF9Hl5rKzESkx0Ddl8Fj7vpLsRYTCM3ARqfC1pgc9lIEYqYsiCO9r2qfgItp0GsKTzZZtuOmr+9g4JBu0b5HGQsbDRdh0NR/lnQwsI11L6UOb1p9VxQ1wEV5NaXrosqRlmrpDJOHKJL4vU0o9OEFX7lBlWlpTUjhXM2TtEE/gKNvybH1TSR2SJrAV6NpmG3QbMtjJxmky9SpetsyPNRqm6uwzDPcp1sOXVHhe1yHgMoLwgebjvWIZD1lsahkJd/TG7hy2KD4sqmlXL1wmINyh+QCbbEw7ULg+PJZgKYaJKByJ5IikRV3GxAjrpmNxJ6KGw3ReUaFwu01ZGlGMfVP1RLEVIyyHMEszH23gg0BwnejMX93V1ljLCXWQKPaRvgGiJBEj6MKpMZZqHAbOlKCGQGviNdxiXV6/KIuTem1DUQjLbMVgJGFGzHDVibwgFT7RWMmqJMvEZt0fSX7PQuqOJwiF711Ph921MfpDOpPhOKVp2Esq/KCzDr7cBnlDN5dIFopwKRxGKjylE0MQfmz2VHAmcGKcJPypEWWdq9dZcO/XWjfn9FYxGnmFl7oxk+LyQOFIuLYgiUmYEIQXkWvYS6oJfcr+HrcorZh3GmLEul0IK9orOBR55+wKDo4J7/KK5Zesh6+ghktiU4kIW3mhgiLAFiAaXb1EWJfJ0egKhvGZlZjNX/gECvehCFhF+ihcffVaH6xJSLQL/9CgXk1HPJ2gibDrakm4tVVnwqMhlCThn0Z1EQov5WoD2IoYuBy4CmPvcUoWw1E/TkjQLsV3tYzeXO43kogh+ucU7URf57a3WXzu3TbxLUySJtwTnRXU3tIw6NnOV9CiCNiEXUs9GC4JbyaxHM4jFoSnOcWI877Yknji5Wv6BOFZnht0J7AaDFFrZQ0XowgkOp/RhzbObDQeRlr5EOamne2YGc0elmlnNwv7vuJuDWrRIwi/8WXNKAppnlyShHad674Fz2o+SsBnCFEU2BfVipNLQb9P6bWkt4vGWoTCl3zmkW+cQJFolRgDYd8ROyjDvNrk145v4csvwx15grOOuWAoxKgXNCpXMSq6uoP/J4R3BeGrKHPxVw4ohR++/98nRQc1O3ORiNAMSZPYPC3Ai+EQXgyH8GI4hBfDIbwYDuHFcAgvhkN4MRzCi+EQXgyH8GI4hBcjLzfBDfDaupaDW3g4WcBbhuuieDEcEsWL4Q5hnpOfMzwej8fj8Xg8Ho/H4/GgyPwHN+MBWXHaP7AAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},b("nothingHere",this.language)),e("span",null,b("noPowerUps",this.language)),e("span",null,b("gotoShop",this.language)),e("div",null)))}handleClientStylingChange(t,e){t!=e&&a(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&l(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){g(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await g(this.translationUrl),this.setLimit(),this.pageLimitSelectOptions=this.pageLimitOptions.split(",").map((t=>({label:t,value:t})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&l(this.stylingContainer,this.clientStylingUrl)),this.loadData()}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData"],endpoint:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Ps.style=":host{display:block}.PowerUpsContainer{font-size:0.95rem;min-height:500px;display:flex;width:100%;flex-direction:column}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2rem;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2rem;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{min-height:60vh;width:100%;display:flex;gap:20px;flex-direction:column;padding-inline-start:0}.PowerUpsContainer .PowerUpItem{display:flex;justify-content:space-between;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));opacity:1;font-size:0.9rem;border-radius:12px;padding:20px;gap:4px;text-transform:uppercase}.PowerUpsContainer .PowerUpItem .HistoryRight{text-align:right}.PowerUpsContainer .PowerUpItem .HistoryLeft,.PowerUpsContainer .PowerUpItem .HistoryRight{display:flex;flex-direction:column;gap:8px}.PowerUpsContainer .PowerUpItem .DisplayName{text-transform:none;font-weight:500;line-height:100%;vertical-align:middle;font-size:1.1rem}.PowerUpsContainer .PowerUpItem .Details,.PowerUpsContainer .PowerUpItem .HistoryTime{text-transform:uppercase;font-size:0.85em;color:var(--emw--color-gray-dark, #727672)}.PowerUpsContainer .PowerUpItem .Status.S3{color:var(--emw--color-powup-light-green, #18CE51)}.PowerUpsContainer .Pagination{display:flex;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.Disabled{opacity:0.5}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{width:22px;height:22px;line-height:22px;opacity:1;border-radius:22px;padding:6px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active{border-radius:22px;border:2px solid var(--emw--color-powup-green, #24B24E);color:var(--emw--color-powup-green, #24B24E);background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active,.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{color:#00B74F;border:2px solid #00B74F}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{background:transparent;border:2px solid rgba(188, 252, 177, 0.0509803922);border-radius:36px;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow{color:transparent}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.PrePage.Disabled,.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage.Disabled{cursor:default;background-image:url(\"data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.25592 0.244078C7.58136 0.569515 7.58136 1.09715 7.25592 1.42259L2.84518 5.83333H12.5C12.9602 5.83333 13.3333 6.20643 13.3333 6.66667C13.3333 7.1269 12.9602 7.5 12.5 7.5H2.84518L7.25592 11.9107C7.58136 12.2362 7.58136 12.7638 7.25592 13.0893C6.93049 13.4147 6.40285 13.4147 6.07741 13.0893L0.244078 7.25592C-0.0813592 6.93049 -0.0813592 6.40285 0.244078 6.07741L6.07741 0.244078C6.40285 -0.0813592 6.93049 -0.0813592 7.25592 0.244078Z' fill='gray'/%3E%3C/svg%3E\")}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.PrePage,.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage{background-image:url(\"data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.25592 0.244078C7.58136 0.569515 7.58136 1.09715 7.25592 1.42259L2.84518 5.83333H12.5C12.9602 5.83333 13.3333 6.20643 13.3333 6.66667C13.3333 7.1269 12.9602 7.5 12.5 7.5H2.84518L7.25592 11.9107C7.58136 12.2362 7.58136 12.7638 7.25592 13.0893C6.93049 13.4147 6.40285 13.4147 6.07741 13.0893L0.244078 7.25592C-0.0813592 6.93049 -0.0813592 6.40285 0.244078 6.07741L6.07741 0.244078C6.40285 -0.0813592 6.93049 -0.0813592 7.25592 0.244078Z' fill='white'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;display:inherit;width:fit-content;padding:0 15px}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage{rotate:180deg}";const As=["pt-br","en","es-mx","hu","hr"],Ms={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},Is=(t,e,i)=>{const s=e;let r=Ms[void 0!==s&&As.includes(s)?s:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},Ds=class{constructor(e){t(this,e),this.reloadPageEmitter=i(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=7,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return e("ul",{class:"PaginationArea"},this.pagesArray.map((t=>e("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return e("general-styling-wrapper",{targetTranslations:Ms,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],s=Math.floor(t/2);const r=this.endPageIndex+1;if(e)if(this.currentPage<s||this.currentPage>r-s+1){i=Array.from({length:s},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==s){i=Array.from({length:s+1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==r-s+1){i=Array.from({length:s-1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r]);else this.currentPage<=t-s?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-s)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-s+1)),i.push("..."),i.unshift("..."));return i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return e("div",{key:"a6d3cd6cd1e5ff8d927486806d26c6eb61e57833",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&e("span",{key:"56f81e329deb0d5160d4d4e020571d1cc402dcc1",class:"PageOfMessage"},Is("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),e("div",{key:"eaf964e00190b690564d57af6da91aed717e1690",class:"PageNavigation"},this.arrowsActive&&e("div",{key:"2be57e1c4d3d6fb80db83c6b5c60710573da5f5e",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},Is("firstPage",this.language)),this.secondaryArrowsActive&&e("span",{key:"d240849c9ba6b9c14d4ebed6c346d7cc629a1a59",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},Is("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&e("span",{key:"90cb6da1e51256e86f8678e0520d4b221b99957d",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},Is("nextPage",this.language)),this.arrowsActive&&e("div",{key:"c74711a45bbbf822ca56e6f2fe70ee541ae91cfa",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",Is("lastPage",this.language)," "),this.renderStylingWrapper()))}};Ds.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const Ts={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},zs={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},Ns="requiredError",Fs="lengthError",Os="fixedLengthError",Ls=(t,e,i)=>{let s=Ts[e]?Ts[e][t]:Ts.en[t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},Us='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="6" cy="6" r="5.5" stroke="#979797"/>\n<rect x="5" y="5" width="2" height="5" fill="#979797"/>\n<circle cx="6" cy="3" r="1" fill="#979797"/>\n</svg>\n',Bs=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce(((t,e)=>(t[e.name]=this.selectedValues.includes(e.name),t)),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map((t=>t.name)),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return Ls("requiredError",this.language)}renderTooltip(){return this.showTooltip?e("div",{class:"checkboxgroup__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){const e=t.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map((t=>t.name)):[]}renderLabel(){return e("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},e("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return e("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},e("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},e("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||"true"===this.defaultValue,indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&e("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),e("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&e("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>e("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return s(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Bs.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}';const js=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(t){this.value=t.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return Ls("requiredError",this.language)}renderLabel(){var t;return e("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},e("div",{class:{"checkbox__label-text":!0,mandatory:null===(t=this.validation)||void 0===t?void 0:t.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?e("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return e("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},e("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:"true"===this.defaultValue,onChange:t=>this.handleCheckbox(t),"error-message":!this.isValid&&this.errorMessage,ref:t=>this.vaadinCheckbox=t},this.renderLabel()),this.tooltip&&e("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};function Ys(t){return Ys="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},Ys(t)}function Rs(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Gs(t){Rs(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Ys(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Vs(t){if(Rs(1,arguments),!function(t){return Rs(1,arguments),t instanceof Date||"object"===Ys(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Gs(t);return!isNaN(Number(e))}function Hs(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 $s(t,e){return Rs(2,arguments),function(t,e){Rs(2,arguments);var i=Gs(t).getTime(),s=Hs(e);return new Date(i+s)}(t,-Hs(e))}function Ws(t){Rs(1,arguments);var e=Gs(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function qs(t){Rs(1,arguments);var e=Gs(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var r=Ws(s),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var n=Ws(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}js.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}';function Ks(t){Rs(1,arguments);var e=Gs(t),i=Ws(e).getTime()-function(t){Rs(1,arguments);var e=qs(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Ws(i)}(e).getTime();return Math.round(i/6048e5)+1}var Js={};function Xs(){return Js}function Qs(t,e){var i,s,r,o,n,a,l,h;Rs(1,arguments);var d=Xs(),c=Hs(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:d.weekStartsOn)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Gs(t),p=u.getUTCDay(),m=(p<c?7:0)+p-c;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function Zs(t,e){var i,s,r,o,n,a,l,h;Rs(1,arguments);var d=Gs(t),c=d.getUTCFullYear(),u=Xs(),p=Hs(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o: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!==s?s: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(c+1,0,p),m.setUTCHours(0,0,0,0);var v=Qs(m,e),f=new Date(0);f.setUTCFullYear(c,0,p),f.setUTCHours(0,0,0,0);var g=Qs(f,e);return d.getTime()>=v.getTime()?c+1:d.getTime()>=g.getTime()?c:c-1}function tr(t,e){Rs(1,arguments);var i=Gs(t),s=Qs(i,e).getTime()-function(t,e){var i,s,r,o,n,a,l,h;Rs(1,arguments);var d=Xs(),c=Hs(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:d.firstWeekContainsDate)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=Zs(t,e),p=new Date(0);return p.setUTCFullYear(u,0,c),p.setUTCHours(0,0,0,0),Qs(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}function er(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}var ir={y:function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return er("yy"===e?s%100:s,e.length)},M:function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):er(i+1,2)},d:function(t,e){return er(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(t,e){return er(t.getUTCHours()%12||12,e.length)},H:function(t,e){return er(t.getUTCHours(),e.length)},m:function(t,e){return er(t.getUTCMinutes(),e.length)},s:function(t,e){return er(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,s=t.getUTCMilliseconds();return er(Math.floor(s*Math.pow(10,i-3)),e.length)}};const sr=ir;var rr={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return sr.y(t,e)},Y:function(t,e,i,s){var r=Zs(t,s),o=r>0?r:1-r;return"YY"===e?er(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):er(o,e.length)},R:function(t,e){return er(qs(t),e.length)},u:function(t,e){return er(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return er(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return er(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return sr.M(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return er(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var r=tr(t,s);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):er(r,e.length)},I:function(t,e,i){var s=Ks(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):er(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):sr.d(t,e)},D:function(t,e,i){var s=function(t){Rs(1,arguments);var e=Gs(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):er(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return er(o,2);case"eo":return i.ordinalNumber(o,{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,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return er(o,e.length);case"co":return i.ordinalNumber(o,{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 s=t.getUTCDay(),r=0===s?7:s;switch(e){case"i":return String(r);case"ii":return er(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,r=t.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,r=t.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return sr.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):sr.H(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):er(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):er(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):sr.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):sr.s(t,e)},S:function(t,e){return sr.S(t,e)},X:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return nr(r);case"XXXX":case"XX":return ar(r);default:return ar(r,":")}},x:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return nr(r);case"xxxx":case"xx":return ar(r);default:return ar(r,":")}},O:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+or(r,":");default:return"GMT"+ar(r,":")}},z:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+or(r,":");default:return"GMT"+ar(r,":")}},t:function(t,e,i,s){return er(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return er((s._originalDate||t).getTime(),e.length)}};function or(t,e){var i=t>0?"-":"+",s=Math.abs(t),r=Math.floor(s/60),o=s%60;if(0===o)return i+String(r);var n=e||"";return i+String(r)+n+er(o,2)}function nr(t,e){return t%60==0?(t>0?"-":"+")+er(Math.abs(t)/60,2):ar(t,e)}function ar(t,e){var i=e||"",s=t>0?"-":"+",r=Math.abs(t);return s+er(Math.floor(r/60),2)+i+er(r%60,2)}const lr=rr;var hr=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"})}},dr=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"})}},cr={p:dr,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],r=s[1],o=s[2];if(!o)return hr(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}}",hr(r,e)).replace("{{time}}",dr(o,e))}};const ur=cr;function pr(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var mr=["D","DD"],vr=["YY","YYYY"];function fr(t){return-1!==mr.indexOf(t)}function gr(t){return-1!==vr.indexOf(t)}function br(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 wr={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 yr(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 xr={date:yr({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yr({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:yr({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kr(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,o=null!=i&&i.width?String(i.width):r;s=t.formattingValues[o]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function Cr(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,r=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var o,n=r[0],a=s&&t.parsePatterns[s]||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 o=t.valueCallback?t.valueCallback(l):l,{value:o=i.valueCallback?i.valueCallback(o):o,rest:e.slice(n.length)}}}var Sr;const Er={code:"en-US",formatDistance:function(t,e,i){var s,r=wr[t];return s="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:xr,formatRelative:function(t){return _r[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:kr({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kr({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:kr({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:kr({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:kr({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:(Sr={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(Sr.matchPattern);if(!i)return null;var s=i[0],r=t.match(Sr.parsePattern);if(!r)return null;var o=Sr.valueCallback?Sr.valueCallback(r[0]):r[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(s.length)}}),era:Cr({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:Cr({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:Cr({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:Cr({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:Cr({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 Pr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ar=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mr=/^'([^]*?)'?$/,Ir=/''/g,Dr=/[a-zA-Z]/;function Tr(t,e,i){var s,r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,w,y;Rs(2,arguments);var x=String(e),_=Xs(),k=null!==(s=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:_.locale)&&void 0!==s?s:Er,C=Hs(null!==(o=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===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:_.firstWeekContainsDate)&&void 0!==n?n:null===(c=_.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Hs(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(g=i.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:_.weekStartsOn)&&void 0!==m?m:null===(w=_.locale)||void 0===w||null===(y=w.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=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 E=Gs(t);if(!Vs(E))throw new RangeError("Invalid time value");var P=$s(E,pr(E)),A={firstWeekContainsDate:C,weekStartsOn:S,locale:k,_originalDate:E};return x.match(Ar).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,ur[e])(t,k.formatLong):t})).join("").match(Pr).map((function(s){if("''"===s)return"'";var r,o,n=s[0];if("'"===n)return(o=(r=s).match(Mr))?o[1].replace(Ir,"'"):r;var a=lr[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!gr(s)||br(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!fr(s)||br(s,e,String(t)),a(P,s,k.localize,A);if(n.match(Dr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function Nr(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 zr(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)?zr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,r=function(){};return{s:r,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},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 o,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,o=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}}}function Fr(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 Or(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lr(t,e){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lr(t,e)}function Ur(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&&Lr(t,e)}function Br(t){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Br(t)}function jr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jr=function(){return!!t})()}function Yr(t){var e=jr();return function(){var i,s=Br(t);if(e){var r=Br(this).constructor;i=Reflect.construct(s,arguments,r)}else i=s.apply(this,arguments);return function(t,e){if(e&&("object"==Ys(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Or(t)}(this,i)}}function Rr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gr(t){var e=function(t){if("object"!=Ys(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=Ys(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ys(e)?e:e+""}function Vr(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,Gr(s.key),s)}}function Hr(t,e,i){return e&&Vr(t.prototype,e),i&&Vr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function $r(t,e,i){return(e=Gr(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Wr=function(){function t(){Rr(this,t),$r(this,"priority",void 0),$r(this,"subPriority",0)}return Hr(t,[{key:"validate",value:function(){return!0}}]),t}(),qr=function(){Ur(e,Wr);var t=Yr(e);function e(i,s,r,o,n){var a;return Rr(this,e),(a=t.call(this)).value=i,a.validateValue=s,a.setValue=r,a.priority=o,n&&(a.subPriority=n),a}return Hr(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}(),Kr=function(){Ur(e,Wr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",10),$r(Or(i),"subPriority",-1),i}return Hr(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}(),Jr=function(){function t(){Rr(this,t),$r(this,"incompatibleTokens",void 0),$r(this,"priority",void 0),$r(this,"subPriority",void 0)}return Hr(t,[{key:"run",value:function(t,e,i,s){var r=this.parse(t,e,i,s);return r?{setter:new qr(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Xr=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",140),$r(Or(i),"incompatibleTokens",["R","u","t","T"]),i}return Hr(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}(),Qr=/^(1[0-2]|0?\d)/,Zr=/^(3[0-1]|[0-2]?\d)/,to=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,eo=/^(5[0-3]|[0-4]?\d)/,io=/^(2[0-3]|[0-1]?\d)/,so=/^(2[0-4]|[0-1]?\d)/,ro=/^(1[0-1]|0?\d)/,oo=/^(1[0-2]|0?\d)/,no=/^[0-5]?\d/,ao=/^[0-5]?\d/,lo=/^\d/,ho=/^\d{1,2}/,co=/^\d{1,3}/,uo=/^\d{1,4}/,po=/^-?\d+/,mo=/^-?\d/,vo=/^-?\d{1,2}/,fo=/^-?\d{1,3}/,go=/^-?\d{1,4}/,bo=/^([+-])(\d{2})(\d{2})?|Z/,wo=/^([+-])(\d{2})(\d{2})|Z/,yo=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,xo=/^([+-])(\d{2}):(\d{2})|Z/,_o=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ko(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Co(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function So(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 Eo(t){return Co(po,t)}function Po(t,e){switch(t){case 1:return Co(lo,e);case 2:return Co(ho,e);case 3:return Co(co,e);case 4:return Co(uo,e);default:return Co(new RegExp("^\\d{1,"+t+"}"),e)}}function Ao(t,e){switch(t){case 1:return Co(mo,e);case 2:return Co(vo,e);case 3:return Co(fo,e);case 4:return Co(go,e);default:return Co(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Mo(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Io(t,e){var i,s=e>0,r=s?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return s?i:1-i}function Do(t){return t%400==0||t%4==0&&t%100!=0}var To=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ko(Po(4,t),s);case"yo":return ko(i.ordinalNumber(t,{unit:"year"}),s);default:return ko(Po(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var s=t.getUTCFullYear();if(i.isTwoDigitYear){var r=Io(i.year,s);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}(),zo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ko(Po(4,t),s);case"Yo":return ko(i.ordinalNumber(t,{unit:"year"}),s);default:return ko(Po(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,s){var r=Zs(t,s);if(i.isTwoDigitYear){var o=Io(i.year,r);return t.setUTCFullYear(o,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Qs(t,s)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Qs(t,s)}}]),e}(),No=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e){return Ao("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Ws(s)}}]),e}(),Fo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e){return Ao("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}(),Oo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",120),$r(Or(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return Po(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}(),Lo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",120),$r(Or(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return Po(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}(),Uo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),$r(Or(i),"priority",110),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"M":return ko(Co(Qr,t),s);case"MM":return ko(Po(2,t),s);case"Mo":return ko(i.ordinalNumber(t,{unit:"month"}),s);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}(),Bo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",110),$r(Or(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"L":return ko(Co(Qr,t),s);case"LL":return ko(Po(2,t),s);case"Lo":return ko(i.ordinalNumber(t,{unit:"month"}),s);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}(),jo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",100),$r(Or(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return Co(eo,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,s){return Qs(function(t,e,i){Rs(2,arguments);var s=Gs(t),r=Hs(e),o=tr(s,i)-r;return s.setUTCDate(s.getUTCDate()-7*o),s}(t,i,s),s)}}]),e}(),Yo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",100),$r(Or(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return Co(eo,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return Ws(function(t,e){Rs(2,arguments);var i=Gs(t),s=Hs(e),r=Ks(i)-s;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),Ro=[31,28,31,30,31,30,31,31,30,31,30,31],Go=[31,29,31,30,31,30,31,31,30,31,30,31],Vo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"subPriority",1),$r(Or(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return Co(Zr,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){var i=Do(t.getUTCFullYear()),s=t.getUTCMonth();return i?e>=1&&e<=Go[s]:e>=1&&e<=Ro[s]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Ho=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"subpriority",1),$r(Or(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return Co(to,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return Do(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 $o(t,e,i){var s,r,o,n,a,l,h,d;Rs(2,arguments);var c=Xs(),u=Hs(null!==(s=null!==(r=null!==(o=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!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(h=c.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Gs(t),m=Hs(e),v=((m%7+7)%7<u?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+v),p}var Wo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Hr(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,s){return(t=$o(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),qo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ko(Po(e.length,t),r);case"eo":return ko(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,s){return(t=$o(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Ko=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ko(Po(e.length,t),r);case"co":return ko(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,s){return(t=$o(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Jo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Po(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ko(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return ko(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ko(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);default:return ko(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"}),s)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){Rs(2,arguments);var i=Hs(e);i%7==0&&(i-=7);var s=Gs(t),r=((i%7+7)%7<1?7:0)+i-s.getUTCDay();return s.setUTCDate(s.getUTCDate()+r),s}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Xo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",80),$r(Or(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Hr(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(Mo(i),0,0,0),t}}]),e}(),Qo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",80),$r(Or(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Hr(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(Mo(i),0,0,0),t}}]),e}(),Zo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",80),$r(Or(i),"incompatibleTokens",["a","b","t","T"]),i}return Hr(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(Mo(i),0,0,0),t}}]),e}(),tn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return Co(oo,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:s||12!==i?i:0,0,0,0),t}}]),e}(),en=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return Co(io,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Po(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}(),sn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return Co(ro,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:i,0,0,0),t}}]),e}(),rn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return Co(so,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Po(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}(),on=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",60),$r(Or(i),"incompatibleTokens",["t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return Co(no,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Po(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}(),nn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",50),$r(Or(i),"incompatibleTokens",["t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return Co(ao,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Po(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}(),an=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",30),$r(Or(i),"incompatibleTokens",["t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e){return ko(Po(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}(),ln=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",10),$r(Or(i),"incompatibleTokens",["t","T","x"]),i}return Hr(e,[{key:"parse",value:function(t,e){switch(e){case"X":return So(bo,t);case"XX":return So(wo,t);case"XXXX":return So(yo,t);case"XXXXX":return So(_o,t);default:return So(xo,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),hn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",10),$r(Or(i),"incompatibleTokens",["t","T","X"]),i}return Hr(e,[{key:"parse",value:function(t,e){switch(e){case"x":return So(bo,t);case"xx":return So(wo,t);case"xxxx":return So(yo,t);case"xxxxx":return So(_o,t);default:return So(xo,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),dn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",40),$r(Or(i),"incompatibleTokens","*"),i}return Hr(e,[{key:"parse",value:function(t){return Eo(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),cn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",20),$r(Or(i),"incompatibleTokens","*"),i}return Hr(e,[{key:"parse",value:function(t){return Eo(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),un={G:new Xr,y:new To,Y:new zo,R:new No,u:new Fo,Q:new Oo,q:new Lo,M:new Uo,L:new Bo,w:new jo,I:new Yo,d:new Vo,D:new Ho,E:new Wo,e:new qo,c:new Ko,i:new Jo,a:new Xo,b:new Qo,B:new Zo,h:new tn,H:new en,K:new sn,k:new rn,m:new on,s:new nn,S:new an,X:new ln,x:new hn,t:new dn,T:new cn},pn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vn=/^'([^]*?)'?$/,fn=/''/g,gn=/\S/,bn=/[a-zA-Z]/;function wn(t,e,i,s){var r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,w,y,x;Rs(3,arguments);var _=String(t),k=String(e),C=Xs(),S=null!==(r=null!==(o=null==s?void 0:s.locale)&&void 0!==o?o:C.locale)&&void 0!==r?r:Er;if(!S.match)throw new RangeError("locale must contain match property");var E=Hs(null!==(n=null!==(a=null!==(l=null!==(h=null==s?void 0:s.firstWeekContainsDate)&&void 0!==h?h:null==s||null===(d=s.locale)||void 0===d||null===(c=d.options)||void 0===c?void 0:c.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(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=Hs(null!==(m=null!==(v=null!==(f=null!==(g=null==s?void 0:s.weekStartsOn)&&void 0!==g?g:null==s||null===(b=s.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:C.weekStartsOn)&&void 0!==v?v:null===(y=C.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===_?Gs(i):new Date(NaN);var A,M={firstWeekContainsDate:E,weekStartsOn:P,locale:S},I=[new Kr],D=k.match(mn).map((function(t){var e=t[0];return e in ur?(0,ur[e])(t,S.formatLong):t})).join("").match(pn),T=[],z=Nr(D);try{var N=function(){var e=A.value;null!=s&&s.useAdditionalWeekYearTokens||!gr(e)||br(e,k,t),null!=s&&s.useAdditionalDayOfYearTokens||!fr(e)||br(e,k,t);var i=e[0],r=un[i];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var n=T.find((function(t){return o.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&&T.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));T.push({token:i,fullToken:e});var a=r.run(_,e,S.match,M);if(!a)return{v:new Date(NaN)};I.push(a.setter),_=a.rest}else{if(i.match(bn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(vn)[1].replace(fn,"'")),0!==_.indexOf(e))return{v:new Date(NaN)};_=_.slice(e.length)}};for(z.s();!(A=z.n()).done;){var F=N();if("object"===Ys(F))return F.v}}catch(t){z.e(t)}finally{z.f()}if(_.length>0&&gn.test(_))return new Date(NaN);var O=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]})),L=Gs(i);if(isNaN(L.getTime()))return new Date(NaN);var U,B=$s(L,pr(L)),j={},Y=Nr(O);try{for(Y.s();!(U=Y.n()).done;){var R=U.value;if(!R.validate(B,M))return new Date(NaN);var G=R.set(B,j,M);Array.isArray(G)?(B=G[0],Fr(j,G[1])):B=G}}catch(t){Y.e(t)}finally{Y.f()}return B}function yn(t,e){Rs(2,arguments);var i=Gs(t),s=Gs(e);return i.getTime()>s.getTime()}function xn(t,e){Rs(2,arguments);var i=Gs(t),s=Gs(e);return i.getTime()<s.getTime()}function _n(t,e,i){return Rs(2,arguments),Vs(wn(t,e,new Date,i))}const kn=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:s}=t;return Tr(new Date(e,i,s),this.dateFormat)},this.parseDate=t=>{const e=wn(t,this.dateFormat,new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleDocumentIdUpdate=t=>{this.name===zs.BIRTHDATE&&(this.value=t.detail,this.valueAsDate=wn(this.value||"",zs.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value}))},this.handleMaskedTyping=t=>{var e;const i=t.target;if(!i)return;const s=null!==(e=i.selectionStart)&&void 0!==e?e:i.value.length,r=i.value,[o,n,a]=this.getFormatStructure(this.dateFormat),{seps:l}=this.parseFormat(this.dateFormat),[h,d]=l,c=o+n+a,u=r.replace(/\D/g,"").slice(0,c),p=u.slice(0,o),m=u.slice(o,o+n),v=u.slice(o+n,o+n+a);let f=p;u.length>o&&(f+=h+m),u.length>o+n&&(f+=d+v),i.value=f;const g=this.totalSeparatorLength(r,[h,d]),b=this.totalSeparatorLength(f,[h,d]);let w=s+Math.max(0,b-g);w=Math.max(0,Math.min(w,f.length));try{i.setSelectionRange(w,w)}catch(t){}if(u.length<c)return this.errorMessage="",void this.resetIncompleteState();try{const t=wn(f,this.dateFormat,new Date);if(t&&!isNaN(t.getTime())){const e=Tr(t,"yyyy-MM-dd");this.value=e,this.valueAsDate=t,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=e),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(t){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){return this.value?Tr(wn(this.value,"yyyy-MM-dd",new Date),this.dateFormat):""}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(t){t?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=wn((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=wn((null===(e=this.validation.max)||void 0===e?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){var t;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",(()=>this.handleCalendarIconClick())),this.datePicker.addEventListener("opened-changed",(t=>{!0===t.detail.value?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var t;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=wn(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return!(xn(this.valueAsDate,this.minDate)||yn(this.valueAsDate,this.maxDate)||!_n(this.formattedValue,this.dateFormat))&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?Ls("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?Ls("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):xn(this.valueAsDate,this.minDate)||yn(this.valueAsDate,this.maxDate)?Ls("dateError2",this.language):_n(this.formattedValue,this.dateFormat)?void 0:Ls("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?e("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}parseFormat(t){var e;const i=null!=t?t:"dd-MM-yyyy",s=/([dMy]+)|([^dMy]+)/g,r=[],o=[];let n;for(;n=s.exec(i);)n[1]?r.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const t=null!==(e=o[0])&&void 0!==e?e:"-";for(;o.length<2;)o.push(t)}return{tokens:r,seps:[o[0],o[1]]}}getFormatStructure(t){const{tokens:e}=this.parseFormat(t);if(e.length<3)return[2,2,4];const i=e.map((t=>t.length));return[i[0],i[1],i[2]]}totalSeparatorLength(t,e){if(!t)return 0;let i=0;for(const s of e){if(!s)continue;const e=new RegExp(this.escapeRegExp(s),"g"),r=t.match(e);r&&(i+=r.length*s.length)}return i}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),e("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},e("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,e("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),e("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${t} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:t=>this.handleInput(t),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),e("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&e("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};kn.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}';const Cn=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;if(this.inputReference.validity.valueMissing)return Ls("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return Ls("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return Ls(`${i}`,this.language)?Ls(`${i}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(s=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===s?void 0:s.errorMessage;return Ls(`${t}`,this.language)?Ls(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?e("div",{class:"email__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),e("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},e("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},e("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),e("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&e("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),e("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),e("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Cn.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}';var Sn=Object.defineProperty,En=Object.defineProperties,Pn=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,Dn=(t,e,i)=>e in t?Sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Tn=(t,e)=>{for(var i in e||(e={}))Mn.call(e,i)&&Dn(t,i,e[i]);if(An)for(var i of An(e))In.call(e,i)&&Dn(t,i,e[i]);return t},zn=(t,e)=>En(t,Pn(e)),Nn=(t,e,i)=>(Dn(t,"symbol"!=typeof e?e+"":e,i),i),Fn=(t,e,i)=>new Promise(((s,r)=>{var o=t=>{try{a(i.next(t))}catch(t){r(t)}},n=t=>{try{a(i.throw(t))}catch(t){r(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(o,n);a((i=i.apply(t,e)).next())}))
|
|
9
|
+
x.version="2.29.4",w=Qe,x.fn=Vi,x.min=function(){return ei("isBefore",[].slice.call(arguments,0))},x.max=function(){return ei("isAfter",[].slice.call(arguments,0))},x.now=function(){return Date.now?Date.now():+new Date},x.utc=D,x.unix=function(t){return Qe(1e3*t)},x.months=function(t,e){return qi(t,e,"months")},x.isDate=A,x.locale=ze,x.invalid=N,x.duration=mi,x.isMoment=j,x.weekdays=function(t,e,i){return Ki(t,e,i,"weekdays")},x.parseZone=function(){return Qe.apply(null,arguments).parseZone()},x.localeData=Fe,x.isDuration=ri,x.monthsShort=function(t,e){return qi(t,e,"monthsShort")},x.weekdaysMin=function(t,e,i){return Ki(t,e,i,"weekdaysMin")},x.defineLocale=Ne,x.updateLocale=function(t,e){if(null!=e){var i,s,r=Pe;null!=Ae[t]&&null!=Ae[t].parentLocale?Ae[t].set(W(Ae[t]._config,e)):(null!=(s=Te(t))&&(r=s._config),e=W(r,e),null==s&&(e.abbr=t),(i=new q(e)).parentLocale=Ae[t],Ae[t]=i),ze(t)}else null!=Ae[t]&&(null!=Ae[t].parentLocale?(Ae[t]=Ae[t].parentLocale,t===ze()&&ze(t)):null!=Ae[t]&&delete Ae[t]);return Ae[t]},x.locales=function(){return G(Ae)},x.weekdaysShort=function(t,e,i){return Ki(t,e,i,"weekdaysShort")},x.normalizeUnits=ot,x.relativeTimeRounding=function(t){return void 0===t?ws:"function"==typeof t&&(ws=t,!0)},x.relativeTimeThreshold=function(t,e){return void 0!==ys[t]&&(void 0===e?ys[t]:(ys[t]=e,"s"===t&&(ys.ss=e-1),!0))},x.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},x.prototype=Vi,x.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Es={[o.ACTIVE]:{label:"active"},[o.ACTIVATED]:{label:"activated"},[o.EXPIRED]:{label:"expired"},[o.CONSUMED]:{label:"consumed"},[o.DISABLED]:{label:"disabled"},[o.ENABLED]:{label:"enabled"}},Ps=class{constructor(e){t(this,e),this.tableId="powerupsHistory",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=10,this.translationUrl="",this.pageLimitOptions="10,25,50",this.pageLimitSelectOptions=[],this.isLoading=!0,this.powerups=[],this.offset=0,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:s}=t.detail;s===this.tableId&&(this.offset=i,this.limit=e)}setLimit(){try{const t=this.pageLimitOptions.split(",").map((t=>parseInt(t)));t.includes(this.limit)||(this.limit=t[0])}catch(t){console.error("Error when parse PageLimitOptions",t),this.limit=10}}onPageLimitChangedHandler(t){var e;if("historyPageLimits"===(null===(e=t.detail)||void 0===e?void 0:e.name)){const e=parseInt(t.detail.value||"10");this.limit!=e&&(this.limit=e,this.offset=0)}}async loadData(){if(this.endpoint&&this.session&&this.pageLimitSelectOptions.length){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit}`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};t.searchParams.append("language",this.language),t.searchParams.append("status",`${o.CONSUMED},${o.EXPIRED}`);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:s,total:r}=await i.json();this.powerups=s,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}render(){var t;return e("div",{key:"ba00e65f374616634a43507795af711bb5c28224",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):(null===(t=this.powerups)||void 0===t?void 0:t.length)?[e("ul",{class:"PowerUps"},this.powerups.map((t=>{var i;return e("li",{class:"PowerUpItem"},e("div",{class:"HistoryLeft"},e("div",{class:"DisplayName"}," ",t.powerUpName||"-"," "),e("div",{class:"Details"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),b(t.boostingPeriod.mode===n.TIME_PERIOD?"min":"rounds",this.language)," "),e("span",{class:"Multiplier"},"| X ",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",b(t.multiplier.mode,this.language)," "))),e("div",{class:"HistoryRight"},e("div",{class:`Status S${t.status}`},b((null===(i=Es[t.status])||void 0===i?void 0:i.label)||t.status,this.language)),e("div",{class:"HistoryTime"},x(t.status===o.EXPIRED?t.expireTime:t.endTime).format("YYYY-MM-DD HH:mm:ss")," ")))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&[e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,"arrows-active":"false",secondaryArrowsActive:!0,"table-id":this.tableId,total:this.total}),e("general-input",{"client-styling":"\n .historyPageLimits__input [part='input-field'] ::slotted([slot='value']:not([placeholder])) {\n\n text-align: center;\n }\n .historyPageLimits__input .select__input{background: transparent; width: 89px;\n vaadin-select-value-button{\n color: var(--vaadin-input-field-value-color, var(--emw--color-text));\n text-align: center;\n }\n }\n .historyPageLimits__input .select__input::part(toggle-button){\n color: var(--vaadin-input-field-value-color, var(--emw--color-text));\n right: 0px;\n }\n .historyPageLimits__input .select__input::part(input-field) {\n border-radius: 20px;\n background-color: transparent;\n border: 1px solid var(--emw--color-gray-100, #BCFCB10D);\n color: var(--emw--color-black, #000000);\n font-family: inherit;\n font-style: normal;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.5;\n padding: 5px;\n height: 34px;\n }",type:"dropdown",name:"historyPageLimits","display-name":"","default-value":this.limit,validation:{mandatory:!1},options:this.pageLimitSelectOptions,emitValue:!0,language:this.language,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl})])]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHlElEQVR4nO2daYwURRTH/4tnvPCI9xE1ahQTNZmp6gXRzar4wTtGvPWLUeIVPxgVNWbizqvZRdTAGoioEQwaFDWK0YBCvMUbJWJIBD8QOUIEowhEQFjzepu4WaZ6qnp6tqub+iX9hexUV/W/Xh3vvSoAj8fj8Xg8Ho/H4/F4ikapB8PLNYiyws2S8LBU6JEKU4TCNKkwWSjUhML9ZYWrRRfOPGUy9sm6zoWio4IDpMI1/NElYalU6LN5hMI2SVgoFUgqdI6djT2yblP+6ENbuYqLJGGmJGy0FSFWIMIqQZgoFUZk3Uz3qWBYmXC5VPg2TRFinvmS0J51s51EKnQKws9DJMRgq5kjqzgp62/gBOcoHC4VXs5CiEGibBaERzsq2BO7K6KK84XCykQfUOGvaGibJxVms6hC4Q0ehiJL25Kw3M9kD47D7oYkPBCugEw/FmGFJEwVCteafDDu6SWF06XCOKnwqiBssBDmd1nFBdgtqGAY7xcMe+u2aDjr5N8189pSBfsJhRsF4VNDUbaw+Ci8GISZBuP5v5LwXKsmWqlwnlD4yECU7WxhKCqSMNVgaPom6EZpKOrDFiMJaxqJUq7iOhQNSag0aji7PYZ6lROu8ghzDYavC1EURA2XScKOGKvYyH+T8VBabTjRF2H1Va7ieElYFzNxr3dlt1wm3BXNG9olce73KZKwIKaBf7PnFg4RiRJnKY8gr4STZsySNlAYAweJPMM6QTYF3TgReUNWcFCDFcyDcHuvNC9mWT4HeUMojI8RYx672OEwIys4Iq5DlQgSeaGjgn11jRGEzeVunIwcEEYl9UPu28gLcROjIDxmWx6HYjlimDTaF/Z2hek8jFr9sA9tkvCxZqm+I+jCGcgDugCTUFg/agIOtCkrchCujsqYbbvsjIaen6LO8N3obhxi8/uyQkfM0NsD1+HQaIx1PG5rGUJh7aAyZplaSmQZSwb17IW2lhK65Ot3sJXOx+j5o2sE2d5OOLYZMWxEqStGQlFEFTfpOhlbEFxGKnyhqfx80zJ4WBKEZXEbtDhRYsX4/5luWp+zJmJ/3sRqyumC0yk7hK2aio+zKUvUMDKKClqJYijGEv47q/oQXtdY2+dwFfaIaj9eDadZl2cpSqvEiNp2p0aQrSMq2BsuIhXu1lR6TdIyTUUZNQHHtEqMRosVZ5e/ktCrEWRBM+WaiGKQUJdYjJ3zWkzixFVwEUF4T1PhKU2XbSJKi8TYiS6VlXOJ4SI8wbXSZS2SiZKKGEyY6VjfOqtwEUFYrOlB96b1Do63C8IfRmIQlpYIR6f1bkF4SzOHTYKLSIXlmo9zW5rvCWq4wkCMjTzRp/leXcaMILwAF9Hl5rKzESkx0Ddl8Fj7vpLsRYTCM3ARqfC1pgc9lIEYqYsiCO9r2qfgItp0GsKTzZZtuOmr+9g4JBu0b5HGQsbDRdh0NR/lnQwsI11L6UOb1p9VxQ1wEV5NaXrosqRlmrpDJOHKJL4vU0o9OEFX7lBlWlpTUjhXM2TtEE/gKNvybH1TSR2SJrAV6NpmG3QbMtjJxmky9SpetsyPNRqm6uwzDPcp1sOXVHhe1yHgMoLwgebjvWIZD1lsahkJd/TG7hy2KD4sqmlXL1wmINyh+QCbbEw7ULg+PJZgKYaJKByJ5IikRV3GxAjrpmNxJ6KGw3ReUaFwu01ZGlGMfVP1RLEVIyyHMEszH23gg0BwnejMX93V1ljLCXWQKPaRvgGiJBEj6MKpMZZqHAbOlKCGQGviNdxiXV6/KIuTem1DUQjLbMVgJGFGzHDVibwgFT7RWMmqJMvEZt0fSX7PQuqOJwiF711Ph921MfpDOpPhOKVp2Esq/KCzDr7cBnlDN5dIFopwKRxGKjylE0MQfmz2VHAmcGKcJPypEWWdq9dZcO/XWjfn9FYxGnmFl7oxk+LyQOFIuLYgiUmYEIQXkWvYS6oJfcr+HrcorZh3GmLEul0IK9orOBR55+wKDo4J7/KK5Zesh6+ghktiU4kIW3mhgiLAFiAaXb1EWJfJ0egKhvGZlZjNX/gECvehCFhF+ihcffVaH6xJSLQL/9CgXk1HPJ2gibDrakm4tVVnwqMhlCThn0Z1EQov5WoD2IoYuBy4CmPvcUoWw1E/TkjQLsV3tYzeXO43kogh+ucU7URf57a3WXzu3TbxLUySJtwTnRXU3tIw6NnOV9CiCNiEXUs9GC4JbyaxHM4jFoSnOcWI877Yknji5Wv6BOFZnht0J7AaDFFrZQ0XowgkOp/RhzbObDQeRlr5EOamne2YGc0elmlnNwv7vuJuDWrRIwi/8WXNKAppnlyShHad674Fz2o+SsBnCFEU2BfVipNLQb9P6bWkt4vGWoTCl3zmkW+cQJFolRgDYd8ROyjDvNrk145v4csvwx15grOOuWAoxKgXNCpXMSq6uoP/J4R3BeGrKHPxVw4ohR++/98nRQc1O3ORiNAMSZPYPC3Ai+EQXgyH8GI4hBfDIbwYDuHFcAgvhkN4MRzCi+EQXgyH8GI4hBcjLzfBDfDaupaDW3g4WcBbhuuieDEcEsWL4Q5hnpOfMzwej8fj8Xg8Ho/H4/GgyPwHN+MBWXHaP7AAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},b("nothingHere",this.language)),e("span",null,b("noPowerUps",this.language)),e("span",null,b("gotoShop",this.language)),e("div",null)))}handleClientStylingChange(t,e){t!=e&&a(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&l(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){g(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await g(this.translationUrl),this.setLimit(),this.pageLimitSelectOptions=this.pageLimitOptions.split(",").map((t=>({label:t,value:t})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&l(this.stylingContainer,this.clientStylingUrl)),this.loadData()}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData"],endpoint:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Ps.style=":host{display:block}.PowerUpsContainer{font-size:0.95rem;min-height:500px;display:flex;width:100%;flex-direction:column}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2rem;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2rem;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{min-height:60vh;width:100%;display:flex;gap:20px;flex-direction:column;padding-inline-start:0}.PowerUpsContainer .PowerUpItem{display:flex;justify-content:space-between;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));opacity:1;font-size:0.9rem;border-radius:12px;padding:20px;gap:4px;text-transform:uppercase}.PowerUpsContainer .PowerUpItem .HistoryRight{text-align:right}.PowerUpsContainer .PowerUpItem .HistoryLeft,.PowerUpsContainer .PowerUpItem .HistoryRight{display:flex;flex-direction:column;gap:8px}.PowerUpsContainer .PowerUpItem .DisplayName{text-transform:none;font-weight:500;line-height:100%;vertical-align:middle;font-size:1.1rem}.PowerUpsContainer .PowerUpItem .Details,.PowerUpsContainer .PowerUpItem .HistoryTime{text-transform:uppercase;font-size:0.85em;color:var(--emw--color-gray-dark, #727672)}.PowerUpsContainer .PowerUpItem .Status.S3{color:var(--emw--color-powup-light-green, #18CE51)}.PowerUpsContainer .Pagination{display:flex;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.Disabled{opacity:0.5}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{width:22px;height:22px;line-height:22px;opacity:1;border-radius:22px;padding:6px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active{border-radius:22px;border:2px solid var(--emw--color-powup-green, #24B24E);color:var(--emw--color-powup-green, #24B24E);background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active,.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{color:#00B74F;border:2px solid #00B74F}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{background:transparent;border:2px solid rgba(188, 252, 177, 0.0509803922);border-radius:36px;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow{color:transparent}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.PrePage.Disabled,.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage.Disabled{cursor:default;background-image:url(\"data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.25592 0.244078C7.58136 0.569515 7.58136 1.09715 7.25592 1.42259L2.84518 5.83333H12.5C12.9602 5.83333 13.3333 6.20643 13.3333 6.66667C13.3333 7.1269 12.9602 7.5 12.5 7.5H2.84518L7.25592 11.9107C7.58136 12.2362 7.58136 12.7638 7.25592 13.0893C6.93049 13.4147 6.40285 13.4147 6.07741 13.0893L0.244078 7.25592C-0.0813592 6.93049 -0.0813592 6.40285 0.244078 6.07741L6.07741 0.244078C6.40285 -0.0813592 6.93049 -0.0813592 7.25592 0.244078Z' fill='gray'/%3E%3C/svg%3E\")}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.PrePage,.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage{background-image:url(\"data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.25592 0.244078C7.58136 0.569515 7.58136 1.09715 7.25592 1.42259L2.84518 5.83333H12.5C12.9602 5.83333 13.3333 6.20643 13.3333 6.66667C13.3333 7.1269 12.9602 7.5 12.5 7.5H2.84518L7.25592 11.9107C7.58136 12.2362 7.58136 12.7638 7.25592 13.0893C6.93049 13.4147 6.40285 13.4147 6.07741 13.0893L0.244078 7.25592C-0.0813592 6.93049 -0.0813592 6.40285 0.244078 6.07741L6.07741 0.244078C6.40285 -0.0813592 6.93049 -0.0813592 7.25592 0.244078Z' fill='white'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;display:inherit;width:fit-content;padding:0 15px}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.NextPage{rotate:180deg}";const As=["pt-br","en","es-mx","hu","hr"],Ms={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},Is=(t,e,i)=>{const s=e;let r=Ms[void 0!==s&&As.includes(s)?s:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},Ds=class{constructor(e){t(this,e),this.reloadPageEmitter=i(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=7,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return e("ul",{class:"PaginationArea"},this.pagesArray.map((t=>e("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return e("general-styling-wrapper",{targetTranslations:Ms,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],s=Math.floor(t/2);const r=this.endPageIndex+1;if(e)if(this.currentPage<s||this.currentPage>r-s+1){i=Array.from({length:s},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==s){i=Array.from({length:s+1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==r-s+1){i=Array.from({length:s-1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r]);else this.currentPage<=t-s?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-s)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-s+1)),i.push("..."),i.unshift("..."));return i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return e("div",{key:"a6d3cd6cd1e5ff8d927486806d26c6eb61e57833",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&e("span",{key:"56f81e329deb0d5160d4d4e020571d1cc402dcc1",class:"PageOfMessage"},Is("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),e("div",{key:"eaf964e00190b690564d57af6da91aed717e1690",class:"PageNavigation"},this.arrowsActive&&e("div",{key:"2be57e1c4d3d6fb80db83c6b5c60710573da5f5e",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},Is("firstPage",this.language)),this.secondaryArrowsActive&&e("span",{key:"d240849c9ba6b9c14d4ebed6c346d7cc629a1a59",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},Is("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&e("span",{key:"90cb6da1e51256e86f8678e0520d4b221b99957d",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},Is("nextPage",this.language)),this.arrowsActive&&e("div",{key:"c74711a45bbbf822ca56e6f2fe70ee541ae91cfa",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",Is("lastPage",this.language)," "),this.renderStylingWrapper()))}};Ds.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const Ts={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},zs={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},Ns="requiredError",Fs="lengthError",Os="fixedLengthError",Ls=(t,e,i)=>{let s=Ts[e]?Ts[e][t]:Ts.en[t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},Us='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="6" cy="6" r="5.5" stroke="#979797"/>\n<rect x="5" y="5" width="2" height="5" fill="#979797"/>\n<circle cx="6" cy="3" r="1" fill="#979797"/>\n</svg>\n',Bs=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce(((t,e)=>(t[e.name]=this.selectedValues.includes(e.name),t)),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map((t=>t.name)),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return Ls("requiredError",this.language)}renderTooltip(){return this.showTooltip?e("div",{class:"checkboxgroup__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){const e=t.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map((t=>t.name)):[]}renderLabel(){return e("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},e("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return e("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},e("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},e("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||"true"===this.defaultValue,indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&e("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),e("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&e("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>e("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return s(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Bs.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}';const js=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(t){this.value=t.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return Ls("requiredError",this.language)}renderLabel(){var t;return e("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},e("div",{class:{"checkbox__label-text":!0,mandatory:null===(t=this.validation)||void 0===t?void 0:t.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?e("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return e("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},e("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:"true"===this.defaultValue,onChange:t=>this.handleCheckbox(t),"error-message":!this.isValid&&this.errorMessage,ref:t=>this.vaadinCheckbox=t},this.renderLabel()),this.tooltip&&e("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};function Ys(t){return Ys="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},Ys(t)}function Rs(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Gs(t){Rs(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Ys(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Vs(t){if(Rs(1,arguments),!function(t){return Rs(1,arguments),t instanceof Date||"object"===Ys(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Gs(t);return!isNaN(Number(e))}function Hs(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 $s(t,e){return Rs(2,arguments),function(t,e){Rs(2,arguments);var i=Gs(t).getTime(),s=Hs(e);return new Date(i+s)}(t,-Hs(e))}function Ws(t){Rs(1,arguments);var e=Gs(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function qs(t){Rs(1,arguments);var e=Gs(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var r=Ws(s),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var n=Ws(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}js.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}';function Ks(t){Rs(1,arguments);var e=Gs(t),i=Ws(e).getTime()-function(t){Rs(1,arguments);var e=qs(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Ws(i)}(e).getTime();return Math.round(i/6048e5)+1}var Js={};function Xs(){return Js}function Qs(t,e){var i,s,r,o,n,a,l,h;Rs(1,arguments);var d=Xs(),c=Hs(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:d.weekStartsOn)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Gs(t),p=u.getUTCDay(),m=(p<c?7:0)+p-c;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function Zs(t,e){var i,s,r,o,n,a,l,h;Rs(1,arguments);var d=Gs(t),c=d.getUTCFullYear(),u=Xs(),p=Hs(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o: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!==s?s: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(c+1,0,p),m.setUTCHours(0,0,0,0);var v=Qs(m,e),f=new Date(0);f.setUTCFullYear(c,0,p),f.setUTCHours(0,0,0,0);var g=Qs(f,e);return d.getTime()>=v.getTime()?c+1:d.getTime()>=g.getTime()?c:c-1}function tr(t,e){Rs(1,arguments);var i=Gs(t),s=Qs(i,e).getTime()-function(t,e){var i,s,r,o,n,a,l,h;Rs(1,arguments);var d=Xs(),c=Hs(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:d.firstWeekContainsDate)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=Zs(t,e),p=new Date(0);return p.setUTCFullYear(u,0,c),p.setUTCHours(0,0,0,0),Qs(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}function er(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}var ir={y:function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return er("yy"===e?s%100:s,e.length)},M:function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):er(i+1,2)},d:function(t,e){return er(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(t,e){return er(t.getUTCHours()%12||12,e.length)},H:function(t,e){return er(t.getUTCHours(),e.length)},m:function(t,e){return er(t.getUTCMinutes(),e.length)},s:function(t,e){return er(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,s=t.getUTCMilliseconds();return er(Math.floor(s*Math.pow(10,i-3)),e.length)}};const sr=ir;var rr={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return sr.y(t,e)},Y:function(t,e,i,s){var r=Zs(t,s),o=r>0?r:1-r;return"YY"===e?er(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):er(o,e.length)},R:function(t,e){return er(qs(t),e.length)},u:function(t,e){return er(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return er(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return er(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return sr.M(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return er(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var r=tr(t,s);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):er(r,e.length)},I:function(t,e,i){var s=Ks(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):er(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):sr.d(t,e)},D:function(t,e,i){var s=function(t){Rs(1,arguments);var e=Gs(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):er(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return er(o,2);case"eo":return i.ordinalNumber(o,{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,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return er(o,e.length);case"co":return i.ordinalNumber(o,{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 s=t.getUTCDay(),r=0===s?7:s;switch(e){case"i":return String(r);case"ii":return er(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,r=t.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,r=t.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return sr.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):sr.H(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):er(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):er(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):sr.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):sr.s(t,e)},S:function(t,e){return sr.S(t,e)},X:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return nr(r);case"XXXX":case"XX":return ar(r);default:return ar(r,":")}},x:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return nr(r);case"xxxx":case"xx":return ar(r);default:return ar(r,":")}},O:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+or(r,":");default:return"GMT"+ar(r,":")}},z:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+or(r,":");default:return"GMT"+ar(r,":")}},t:function(t,e,i,s){return er(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return er((s._originalDate||t).getTime(),e.length)}};function or(t,e){var i=t>0?"-":"+",s=Math.abs(t),r=Math.floor(s/60),o=s%60;if(0===o)return i+String(r);var n=e||"";return i+String(r)+n+er(o,2)}function nr(t,e){return t%60==0?(t>0?"-":"+")+er(Math.abs(t)/60,2):ar(t,e)}function ar(t,e){var i=e||"",s=t>0?"-":"+",r=Math.abs(t);return s+er(Math.floor(r/60),2)+i+er(r%60,2)}const lr=rr;var hr=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"})}},dr=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"})}},cr={p:dr,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],r=s[1],o=s[2];if(!o)return hr(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}}",hr(r,e)).replace("{{time}}",dr(o,e))}};const ur=cr;function pr(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var mr=["D","DD"],vr=["YY","YYYY"];function fr(t){return-1!==mr.indexOf(t)}function gr(t){return-1!==vr.indexOf(t)}function br(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 wr={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 yr(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 xr={date:yr({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yr({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:yr({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kr(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,o=null!=i&&i.width?String(i.width):r;s=t.formattingValues[o]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function Cr(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,r=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var o,n=r[0],a=s&&t.parsePatterns[s]||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 o=t.valueCallback?t.valueCallback(l):l,{value:o=i.valueCallback?i.valueCallback(o):o,rest:e.slice(n.length)}}}var Sr;const Er={code:"en-US",formatDistance:function(t,e,i){var s,r=wr[t];return s="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:xr,formatRelative:function(t){return _r[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:kr({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kr({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:kr({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:kr({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:kr({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:(Sr={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(Sr.matchPattern);if(!i)return null;var s=i[0],r=t.match(Sr.parsePattern);if(!r)return null;var o=Sr.valueCallback?Sr.valueCallback(r[0]):r[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(s.length)}}),era:Cr({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:Cr({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:Cr({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:Cr({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:Cr({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 Pr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ar=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mr=/^'([^]*?)'?$/,Ir=/''/g,Dr=/[a-zA-Z]/;function Tr(t,e,i){var s,r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,w,y;Rs(2,arguments);var x=String(e),_=Xs(),k=null!==(s=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:_.locale)&&void 0!==s?s:Er,C=Hs(null!==(o=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===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:_.firstWeekContainsDate)&&void 0!==n?n:null===(c=_.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Hs(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(g=i.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:_.weekStartsOn)&&void 0!==m?m:null===(w=_.locale)||void 0===w||null===(y=w.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=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 E=Gs(t);if(!Vs(E))throw new RangeError("Invalid time value");var P=$s(E,pr(E)),A={firstWeekContainsDate:C,weekStartsOn:S,locale:k,_originalDate:E};return x.match(Ar).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,ur[e])(t,k.formatLong):t})).join("").match(Pr).map((function(s){if("''"===s)return"'";var r,o,n=s[0];if("'"===n)return(o=(r=s).match(Mr))?o[1].replace(Ir,"'"):r;var a=lr[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!gr(s)||br(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!fr(s)||br(s,e,String(t)),a(P,s,k.localize,A);if(n.match(Dr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function Nr(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 zr(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)?zr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,r=function(){};return{s:r,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},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 o,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,o=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}}}function Fr(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 Or(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lr(t,e){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lr(t,e)}function Ur(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&&Lr(t,e)}function Br(t){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Br(t)}function jr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jr=function(){return!!t})()}function Yr(t){var e=jr();return function(){var i,s=Br(t);if(e){var r=Br(this).constructor;i=Reflect.construct(s,arguments,r)}else i=s.apply(this,arguments);return function(t,e){if(e&&("object"==Ys(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Or(t)}(this,i)}}function Rr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gr(t){var e=function(t){if("object"!=Ys(t)||!t)return t;var e;if("undefined"!=typeof Symbol&&void 0!==(e=t[Symbol.toPrimitive])){var i=e.call(t,"string");if("object"!=Ys(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ys(e)?e:e+""}function Vr(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,Gr(s.key),s)}}function Hr(t,e,i){return e&&Vr(t.prototype,e),i&&Vr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function $r(t,e,i){return(e=Gr(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Wr=function(){function t(){Rr(this,t),$r(this,"priority",void 0),$r(this,"subPriority",0)}return Hr(t,[{key:"validate",value:function(){return!0}}]),t}(),qr=function(){Ur(e,Wr);var t=Yr(e);function e(i,s,r,o,n){var a;return Rr(this,e),(a=t.call(this)).value=i,a.validateValue=s,a.setValue=r,a.priority=o,n&&(a.subPriority=n),a}return Hr(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}(),Kr=function(){Ur(e,Wr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",10),$r(Or(i),"subPriority",-1),i}return Hr(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}(),Jr=function(){function t(){Rr(this,t),$r(this,"incompatibleTokens",void 0),$r(this,"priority",void 0),$r(this,"subPriority",void 0)}return Hr(t,[{key:"run",value:function(t,e,i,s){var r=this.parse(t,e,i,s);return r?{setter:new qr(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Xr=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",140),$r(Or(i),"incompatibleTokens",["R","u","t","T"]),i}return Hr(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}(),Qr=/^(1[0-2]|0?\d)/,Zr=/^(3[0-1]|[0-2]?\d)/,to=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,eo=/^(5[0-3]|[0-4]?\d)/,io=/^(2[0-3]|[0-1]?\d)/,so=/^(2[0-4]|[0-1]?\d)/,ro=/^(1[0-1]|0?\d)/,oo=/^(1[0-2]|0?\d)/,no=/^[0-5]?\d/,ao=/^[0-5]?\d/,lo=/^\d/,ho=/^\d{1,2}/,co=/^\d{1,3}/,uo=/^\d{1,4}/,po=/^-?\d+/,mo=/^-?\d/,vo=/^-?\d{1,2}/,fo=/^-?\d{1,3}/,go=/^-?\d{1,4}/,bo=/^([+-])(\d{2})(\d{2})?|Z/,wo=/^([+-])(\d{2})(\d{2})|Z/,yo=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,xo=/^([+-])(\d{2}):(\d{2})|Z/,_o=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ko(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Co(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function So(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 Eo(t){return Co(po,t)}function Po(t,e){switch(t){case 1:return Co(lo,e);case 2:return Co(ho,e);case 3:return Co(co,e);case 4:return Co(uo,e);default:return Co(new RegExp("^\\d{1,"+t+"}"),e)}}function Ao(t,e){switch(t){case 1:return Co(mo,e);case 2:return Co(vo,e);case 3:return Co(fo,e);case 4:return Co(go,e);default:return Co(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Mo(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Io(t,e){var i,s=e>0,r=s?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return s?i:1-i}function Do(t){return t%400==0||t%4==0&&t%100!=0}var To=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ko(Po(4,t),s);case"yo":return ko(i.ordinalNumber(t,{unit:"year"}),s);default:return ko(Po(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var s=t.getUTCFullYear();if(i.isTwoDigitYear){var r=Io(i.year,s);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}(),zo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ko(Po(4,t),s);case"Yo":return ko(i.ordinalNumber(t,{unit:"year"}),s);default:return ko(Po(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,s){var r=Zs(t,s);if(i.isTwoDigitYear){var o=Io(i.year,r);return t.setUTCFullYear(o,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Qs(t,s)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Qs(t,s)}}]),e}(),No=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e){return Ao("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Ws(s)}}]),e}(),Fo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",130),$r(Or(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e){return Ao("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}(),Oo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",120),$r(Or(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return Po(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}(),Lo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",120),$r(Or(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return Po(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}(),Uo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),$r(Or(i),"priority",110),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"M":return ko(Co(Qr,t),s);case"MM":return ko(Po(2,t),s);case"Mo":return ko(i.ordinalNumber(t,{unit:"month"}),s);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}(),Bo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",110),$r(Or(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"L":return ko(Co(Qr,t),s);case"LL":return ko(Po(2,t),s);case"Lo":return ko(i.ordinalNumber(t,{unit:"month"}),s);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}(),jo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",100),$r(Or(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return Co(eo,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,s){return Qs(function(t,e,i){Rs(2,arguments);var s=Gs(t),r=Hs(e),o=tr(s,i)-r;return s.setUTCDate(s.getUTCDate()-7*o),s}(t,i,s),s)}}]),e}(),Yo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",100),$r(Or(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return Co(eo,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return Ws(function(t,e){Rs(2,arguments);var i=Gs(t),s=Hs(e),r=Ks(i)-s;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),Ro=[31,28,31,30,31,30,31,31,30,31,30,31],Go=[31,29,31,30,31,30,31,31,30,31,30,31],Vo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"subPriority",1),$r(Or(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return Co(Zr,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){var i=Do(t.getUTCFullYear()),s=t.getUTCMonth();return i?e>=1&&e<=Go[s]:e>=1&&e<=Ro[s]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Ho=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"subpriority",1),$r(Or(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return Co(to,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return Do(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 $o(t,e,i){var s,r,o,n,a,l,h,d;Rs(2,arguments);var c=Xs(),u=Hs(null!==(s=null!==(r=null!==(o=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!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(h=c.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Gs(t),m=Hs(e),v=((m%7+7)%7<u?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+v),p}var Wo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Hr(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,s){return(t=$o(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),qo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ko(Po(e.length,t),r);case"eo":return ko(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,s){return(t=$o(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Ko=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ko(Po(e.length,t),r);case"co":return ko(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,s){return(t=$o(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Jo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",90),$r(Or(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Po(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ko(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return ko(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ko(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);default:return ko(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"}),s)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){Rs(2,arguments);var i=Hs(e);i%7==0&&(i-=7);var s=Gs(t),r=((i%7+7)%7<1?7:0)+i-s.getUTCDay();return s.setUTCDate(s.getUTCDate()+r),s}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Xo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",80),$r(Or(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Hr(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(Mo(i),0,0,0),t}}]),e}(),Qo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",80),$r(Or(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Hr(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(Mo(i),0,0,0),t}}]),e}(),Zo=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",80),$r(Or(i),"incompatibleTokens",["a","b","t","T"]),i}return Hr(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(Mo(i),0,0,0),t}}]),e}(),tn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return Co(oo,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:s||12!==i?i:0,0,0,0),t}}]),e}(),en=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return Co(io,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Po(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}(),sn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return Co(ro,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Po(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:i,0,0,0),t}}]),e}(),rn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",70),$r(Or(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return Co(so,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Po(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}(),on=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",60),$r(Or(i),"incompatibleTokens",["t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return Co(no,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Po(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}(),nn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",50),$r(Or(i),"incompatibleTokens",["t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return Co(ao,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Po(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}(),an=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",30),$r(Or(i),"incompatibleTokens",["t","T"]),i}return Hr(e,[{key:"parse",value:function(t,e){return ko(Po(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}(),ln=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",10),$r(Or(i),"incompatibleTokens",["t","T","x"]),i}return Hr(e,[{key:"parse",value:function(t,e){switch(e){case"X":return So(bo,t);case"XX":return So(wo,t);case"XXXX":return So(yo,t);case"XXXXX":return So(_o,t);default:return So(xo,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),hn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",10),$r(Or(i),"incompatibleTokens",["t","T","X"]),i}return Hr(e,[{key:"parse",value:function(t,e){switch(e){case"x":return So(bo,t);case"xx":return So(wo,t);case"xxxx":return So(yo,t);case"xxxxx":return So(_o,t);default:return So(xo,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),dn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",40),$r(Or(i),"incompatibleTokens","*"),i}return Hr(e,[{key:"parse",value:function(t){return Eo(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),cn=function(){Ur(e,Jr);var t=Yr(e);function e(){var i;Rr(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return $r(Or(i=t.call.apply(t,[this].concat(r))),"priority",20),$r(Or(i),"incompatibleTokens","*"),i}return Hr(e,[{key:"parse",value:function(t){return Eo(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),un={G:new Xr,y:new To,Y:new zo,R:new No,u:new Fo,Q:new Oo,q:new Lo,M:new Uo,L:new Bo,w:new jo,I:new Yo,d:new Vo,D:new Ho,E:new Wo,e:new qo,c:new Ko,i:new Jo,a:new Xo,b:new Qo,B:new Zo,h:new tn,H:new en,K:new sn,k:new rn,m:new on,s:new nn,S:new an,X:new ln,x:new hn,t:new dn,T:new cn},pn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vn=/^'([^]*?)'?$/,fn=/''/g,gn=/\S/,bn=/[a-zA-Z]/;function wn(t,e,i,s){var r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,w,y,x;Rs(3,arguments);var _=String(t),k=String(e),C=Xs(),S=null!==(r=null!==(o=null==s?void 0:s.locale)&&void 0!==o?o:C.locale)&&void 0!==r?r:Er;if(!S.match)throw new RangeError("locale must contain match property");var E=Hs(null!==(n=null!==(a=null!==(l=null!==(h=null==s?void 0:s.firstWeekContainsDate)&&void 0!==h?h:null==s||null===(d=s.locale)||void 0===d||null===(c=d.options)||void 0===c?void 0:c.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(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=Hs(null!==(m=null!==(v=null!==(f=null!==(g=null==s?void 0:s.weekStartsOn)&&void 0!==g?g:null==s||null===(b=s.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:C.weekStartsOn)&&void 0!==v?v:null===(y=C.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===_?Gs(i):new Date(NaN);var A,M={firstWeekContainsDate:E,weekStartsOn:P,locale:S},I=[new Kr],D=k.match(mn).map((function(t){var e=t[0];return e in ur?(0,ur[e])(t,S.formatLong):t})).join("").match(pn),T=[],z=Nr(D);try{var N=function(){var e=A.value;null!=s&&s.useAdditionalWeekYearTokens||!gr(e)||br(e,k,t),null!=s&&s.useAdditionalDayOfYearTokens||!fr(e)||br(e,k,t);var i=e[0],r=un[i];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var n=T.find((function(t){return o.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&&T.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));T.push({token:i,fullToken:e});var a=r.run(_,e,S.match,M);if(!a)return{v:new Date(NaN)};I.push(a.setter),_=a.rest}else{if(i.match(bn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(vn)[1].replace(fn,"'")),0!==_.indexOf(e))return{v:new Date(NaN)};_=_.slice(e.length)}};for(z.s();!(A=z.n()).done;){var F=N();if("object"===Ys(F))return F.v}}catch(t){z.e(t)}finally{z.f()}if(_.length>0&&gn.test(_))return new Date(NaN);var O=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]})),L=Gs(i);if(isNaN(L.getTime()))return new Date(NaN);var U,B=$s(L,pr(L)),j={},Y=Nr(O);try{for(Y.s();!(U=Y.n()).done;){var R=U.value;if(!R.validate(B,M))return new Date(NaN);var G=R.set(B,j,M);Array.isArray(G)?(B=G[0],Fr(j,G[1])):B=G}}catch(t){Y.e(t)}finally{Y.f()}return B}function yn(t,e){Rs(2,arguments);var i=Gs(t),s=Gs(e);return i.getTime()>s.getTime()}function xn(t,e){Rs(2,arguments);var i=Gs(t),s=Gs(e);return i.getTime()<s.getTime()}function _n(t,e,i){return Rs(2,arguments),Vs(wn(t,e,new Date,i))}const kn=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:s}=t;return Tr(new Date(e,i,s),this.dateFormat)},this.parseDate=t=>{const e=wn(t,this.dateFormat,new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleDocumentIdUpdate=t=>{this.name===zs.BIRTHDATE&&(this.value=t.detail,this.valueAsDate=wn(this.value||"",zs.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value}))},this.handleMaskedTyping=t=>{var e;const i=t.target;if(!i)return;const s=null!==(e=i.selectionStart)&&void 0!==e?e:i.value.length,r=i.value,[o,n,a]=this.getFormatStructure(this.dateFormat),{seps:l}=this.parseFormat(this.dateFormat),[h,d]=l,c=o+n+a,u=r.replace(/\D/g,"").slice(0,c),p=u.slice(0,o),m=u.slice(o,o+n),v=u.slice(o+n,o+n+a);let f=p;u.length>o&&(f+=h+m),u.length>o+n&&(f+=d+v),i.value=f;const g=this.totalSeparatorLength(r,[h,d]),b=this.totalSeparatorLength(f,[h,d]);let w=s+Math.max(0,b-g);w=Math.max(0,Math.min(w,f.length));try{i.setSelectionRange(w,w)}catch(t){}if(u.length<c)return this.errorMessage="",void this.resetIncompleteState();try{const t=wn(f,this.dateFormat,new Date);if(t&&!isNaN(t.getTime())){const e=Tr(t,"yyyy-MM-dd");this.value=e,this.valueAsDate=t,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=e),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(t){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){return this.value?Tr(wn(this.value,"yyyy-MM-dd",new Date),this.dateFormat):""}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(t){t?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=wn((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=wn((null===(e=this.validation.max)||void 0===e?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){var t;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",(()=>this.handleCalendarIconClick())),this.datePicker.addEventListener("opened-changed",(t=>{!0===t.detail.value?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var t;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=wn(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return!(xn(this.valueAsDate,this.minDate)||yn(this.valueAsDate,this.maxDate)||!_n(this.formattedValue,this.dateFormat))&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?Ls("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?Ls("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):xn(this.valueAsDate,this.minDate)||yn(this.valueAsDate,this.maxDate)?Ls("dateError2",this.language):_n(this.formattedValue,this.dateFormat)?void 0:Ls("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?e("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}parseFormat(t){var e;const i=null!=t?t:"dd-MM-yyyy",s=/([dMy]+)|([^dMy]+)/g,r=[],o=[];let n;for(;n=s.exec(i);)n[1]?r.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const t=null!==(e=o[0])&&void 0!==e?e:"-";for(;o.length<2;)o.push(t)}return{tokens:r,seps:[o[0],o[1]]}}getFormatStructure(t){const{tokens:e}=this.parseFormat(t);if(e.length<3)return[2,2,4];const i=e.map((t=>t.length));return[i[0],i[1],i[2]]}totalSeparatorLength(t,e){if(!t)return 0;let i=0;for(const s of e){if(!s)continue;const e=new RegExp(this.escapeRegExp(s),"g"),r=t.match(e);r&&(i+=r.length*s.length)}return i}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),e("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},e("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,e("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),e("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${t} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:t=>this.handleInput(t),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),e("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&e("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};kn.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}';const Cn=class{constructor(e){t(this,e),this.sendValidityState=i(this,"sendValidityState",7),this.sendInputValue=i(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(t,e){t!==e&&a(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&a(this.stylingContainer,this.clientStyling):this.stylingSubscription=h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;if(this.inputReference.validity.valueMissing)return Ls("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return Ls("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return Ls(`${i}`,this.language)?Ls(`${i}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(s=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===s?void 0:s.errorMessage;return Ls(`${t}`,this.language)?Ls(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?e("div",{class:"email__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),e("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},e("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},e("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),e("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&e("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:Us,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),e("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),e("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Cn.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}';var Sn=Object.defineProperty,En=Object.defineProperties,Pn=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,Dn=(t,e,i)=>e in t?Sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Tn=(t,e)=>{for(var i in e||(e={}))Mn.call(e,i)&&Dn(t,i,e[i]);if(An)for(var i of An(e))In.call(e,i)&&Dn(t,i,e[i]);return t},zn=(t,e)=>En(t,Pn(e)),Nn=(t,e,i)=>(Dn(t,"symbol"!=typeof e?e+"":e,i),i),Fn=(t,e,i)=>new Promise(((s,r)=>{var o=t=>{try{a(i.next(t))}catch(t){r(t)}},n=t=>{try{a(i.throw(t))}catch(t){r(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(o,n);a((i=i.apply(t,e)).next())}))
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -9483,15 +9483,15 @@ function _classCallCheck(a, n) {
|
|
|
9483
9483
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
9484
9484
|
}
|
|
9485
9485
|
|
|
9486
|
-
function toPrimitive(t,
|
|
9486
|
+
function toPrimitive(t, e) {
|
|
9487
9487
|
if ("object" != _typeof(t) || !t) return t;
|
|
9488
|
-
var
|
|
9489
|
-
if (void 0 !==
|
|
9490
|
-
var i =
|
|
9488
|
+
var r;
|
|
9489
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
9490
|
+
var i = r.call(t, e || "default");
|
|
9491
9491
|
if ("object" != _typeof(i)) return i;
|
|
9492
9492
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9493
9493
|
}
|
|
9494
|
-
return ("string" ===
|
|
9494
|
+
return ("string" === e ? String : Number)(t);
|
|
9495
9495
|
}
|
|
9496
9496
|
|
|
9497
9497
|
function toPropertyKey(t) {
|
|
@@ -9480,15 +9480,15 @@ function _classCallCheck(a, n) {
|
|
|
9480
9480
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
9481
9481
|
}
|
|
9482
9482
|
|
|
9483
|
-
function toPrimitive(t,
|
|
9483
|
+
function toPrimitive(t, e) {
|
|
9484
9484
|
if ("object" != _typeof(t) || !t) return t;
|
|
9485
|
-
var
|
|
9486
|
-
if (void 0 !==
|
|
9487
|
-
var i =
|
|
9485
|
+
var r;
|
|
9486
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
9487
|
+
var i = r.call(t, e || "default");
|
|
9488
9488
|
if ("object" != _typeof(i)) return i;
|
|
9489
9489
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9490
9490
|
}
|
|
9491
|
-
return ("string" ===
|
|
9491
|
+
return ("string" === e ? String : Number)(t);
|
|
9492
9492
|
}
|
|
9493
9493
|
|
|
9494
9494
|
function toPropertyKey(t) {
|