forked from Romeo-Rosete/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
975-c56c81d30c4baaa4.js.download
1 lines (1 loc) · 41.4 KB
/
975-c56c81d30c4baaa4.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[975],{81186:function(e,r,t){t.d(r,{H:function(){return BaseIconButton}});var a=t(77293),n=t(23273),i=t(87593),o=t(36897),__rest=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>r.indexOf(a)&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>r.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t};function BaseIconButton(e){var{icon:r,iconSize:t,isCircle:s,label:u,shouldCorrectTooltipPosition:c,tooltipId:l,tooltipPosition:d}=e,f=__rest(e,["icon","iconSize","isCircle","label","shouldCorrectTooltipPosition","tooltipId","tooltipPosition"]);return(0,a.U)(i.p,{content:u,position:d,shouldCorrectPosition:c,showTooltipOnTouchDevices:!1,tooltipId:l},({childProps:e})=>(0,a.U)(o.Y,Object.assign({ariaLabel:u},f,e,{isPill:s,isSquare:!0}),(0,a.U)(n.J,{canAcceptPointerEvents:!1,isBlock:!0,name:r,size:24})))}},19784:function(e,r,t){t.d(r,{Z:function(){return assign}});function assign(e,r){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}},19579:function(e,r,t){t.d(r,{Z:function(){return parse}});var a=t(86522);function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,r)}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var a=0,F=function(){};return{s:F,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){o=!0,n=e},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw n}}}}var n=t(69495),i=t(86490),o=t(60922),s=t(19784),u=t(91757),c=t(37652),l=t(6548),d=t(95661),f=t(75105),h=t(80753),p=t(88960);function _inherits(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&(0,p.Z)(e,r)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _createSuper(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var t,n=_getPrototypeOf(e);if(r){var i=_getPrototypeOf(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return function(e,r){if(r&&("object"===(0,a.Z)(r)||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");return(0,h.Z)(e)}(this,t)}}function _classCallCheck(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}var y=t(32802);function _defineProperties(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,y.Z)(a.key),a)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var v=t(56666),m=function(){function Setter(){_classCallCheck(this,Setter),(0,v.Z)(this,"priority",void 0),(0,v.Z)(this,"subPriority",0)}return _createClass(Setter,[{key:"validate",value:function(e,r){return!0}}]),Setter}(),P=function(e){_inherits(ValueSetter,e);var r=_createSuper(ValueSetter);function ValueSetter(e,t,a,n,i){var o;return _classCallCheck(this,ValueSetter),(o=r.call(this)).value=e,o.validateValue=t,o.setValue=a,o.priority=n,i&&(o.subPriority=i),o}return _createClass(ValueSetter,[{key:"validate",value:function(e,r){return this.validateValue(e,this.value,r)}},{key:"set",value:function(e,r,t){return this.setValue(e,r,this.value,t)}}]),ValueSetter}(m),w=function(e){_inherits(DateToSystemTimezoneSetter,e);var r=_createSuper(DateToSystemTimezoneSetter);function DateToSystemTimezoneSetter(){var e;_classCallCheck(this,DateToSystemTimezoneSetter);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",10),(0,v.Z)((0,h.Z)(e),"subPriority",-1),e}return _createClass(DateToSystemTimezoneSetter,[{key:"set",value:function(e,r){if(r.timestampIsSet)return e;var t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}}]),DateToSystemTimezoneSetter}(m),g=function(){function Parser(){_classCallCheck(this,Parser),(0,v.Z)(this,"incompatibleTokens",void 0),(0,v.Z)(this,"priority",void 0),(0,v.Z)(this,"subPriority",void 0)}return _createClass(Parser,[{key:"run",value:function(e,r,t,a){var n=this.parse(e,r,t,a);return n?{setter:new P(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(e,r,t){return!0}}]),Parser}(),k=function(e){_inherits(EraParser,e);var r=_createSuper(EraParser);function EraParser(){var e;_classCallCheck(this,EraParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",140),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["R","u","t","T"]),e}return _createClass(EraParser,[{key:"parse",value:function(e,r,t){switch(r){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"});case"GGGGG":return t.era(e,{width:"narrow"});default:return t.era(e,{width:"wide"})||t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"})}}},{key:"set",value:function(e,r,t){return r.era=t,e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}}]),EraParser}(g),T=t(8744),b={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},C={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(e,r){return e?{value:r(e.value),rest:e.rest}:e}function parseNumericPattern(e,r){var t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function parseTimezonePattern(e,r){var t=r.match(e);if(!t)return null;if("Z"===t[0])return{value:0,rest:r.slice(1)};var a="+"===t[1]?1:-1,n=t[2]?parseInt(t[2],10):0,i=t[3]?parseInt(t[3],10):0,o=t[5]?parseInt(t[5],10):0;return{value:a*(n*T.vh+i*T.yJ+o*T.qk),rest:r.slice(t[0].length)}}function parseAnyDigitsSigned(e){return parseNumericPattern(b.anyDigitsSigned,e)}function parseNDigits(e,r){switch(e){case 1:return parseNumericPattern(b.singleDigit,r);case 2:return parseNumericPattern(b.twoDigits,r);case 3:return parseNumericPattern(b.threeDigits,r);case 4:return parseNumericPattern(b.fourDigits,r);default:return parseNumericPattern(RegExp("^\\d{1,"+e+"}"),r)}}function parseNDigitsSigned(e,r){switch(e){case 1:return parseNumericPattern(b.singleDigitSigned,r);case 2:return parseNumericPattern(b.twoDigitsSigned,r);case 3:return parseNumericPattern(b.threeDigitsSigned,r);case 4:return parseNumericPattern(b.fourDigitsSigned,r);default:return parseNumericPattern(RegExp("^-?\\d{1,"+e+"}"),r)}}function dayPeriodEnumToHours(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function normalizeTwoDigitYear(e,r){var t,a=r>0,n=a?r:1-r;if(n<=50)t=e||100;else{var i=n+50;t=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return a?t:1-t}function isLeapYearIndex(e){return e%400==0||e%4==0&&e%100!=0}var Z=function(e){_inherits(YearParser,e);var r=_createSuper(YearParser);function YearParser(){var e;_classCallCheck(this,YearParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",130),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return _createClass(YearParser,[{key:"parse",value:function(e,r,t){var valueCallback=function(e){return{year:e,isTwoDigitYear:"yy"===r}};switch(r){case"y":return mapValue(parseNDigits(4,e),valueCallback);case"yo":return mapValue(t.ordinalNumber(e,{unit:"year"}),valueCallback);default:return mapValue(parseNDigits(r.length,e),valueCallback)}}},{key:"validate",value:function(e,r){return r.isTwoDigitYear||r.year>0}},{key:"set",value:function(e,r,t){var a=e.getUTCFullYear();if(t.isTwoDigitYear){var n=normalizeTwoDigitYear(t.year,a);return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in r&&1!==r.era?1-t.year:t.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),YearParser}(g),S=t(23637),D=t(4623),_=function(e){_inherits(LocalWeekYearParser,e);var r=_createSuper(LocalWeekYearParser);function LocalWeekYearParser(){var e;_classCallCheck(this,LocalWeekYearParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",130),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return _createClass(LocalWeekYearParser,[{key:"parse",value:function(e,r,t){var valueCallback=function(e){return{year:e,isTwoDigitYear:"YY"===r}};switch(r){case"Y":return mapValue(parseNDigits(4,e),valueCallback);case"Yo":return mapValue(t.ordinalNumber(e,{unit:"year"}),valueCallback);default:return mapValue(parseNDigits(r.length,e),valueCallback)}}},{key:"validate",value:function(e,r){return r.isTwoDigitYear||r.year>0}},{key:"set",value:function(e,r,t,a){var n=(0,S.Z)(e,a);if(t.isTwoDigitYear){var i=normalizeTwoDigitYear(t.year,n);return e.setUTCFullYear(i,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,D.Z)(e,a)}var o="era"in r&&1!==r.era?1-t.year:t.year;return e.setUTCFullYear(o,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,D.Z)(e,a)}}]),LocalWeekYearParser}(g),x=t(73433),O=function(e){_inherits(ISOWeekYearParser,e);var r=_createSuper(ISOWeekYearParser);function ISOWeekYearParser(){var e;_classCallCheck(this,ISOWeekYearParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",130),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return _createClass(ISOWeekYearParser,[{key:"parse",value:function(e,r){return"R"===r?parseNDigitsSigned(4,e):parseNDigitsSigned(r.length,e)}},{key:"set",value:function(e,r,t){var a=new Date(0);return a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0),(0,x.Z)(a)}}]),ISOWeekYearParser}(g),M=function(e){_inherits(ExtendedYearParser,e);var r=_createSuper(ExtendedYearParser);function ExtendedYearParser(){var e;_classCallCheck(this,ExtendedYearParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",130),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return _createClass(ExtendedYearParser,[{key:"parse",value:function(e,r){return"u"===r?parseNDigitsSigned(4,e):parseNDigitsSigned(r.length,e)}},{key:"set",value:function(e,r,t){return e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}}]),ExtendedYearParser}(g),N=function(e){_inherits(QuarterParser,e);var r=_createSuper(QuarterParser);function QuarterParser(){var e;_classCallCheck(this,QuarterParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",120),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return _createClass(QuarterParser,[{key:"parse",value:function(e,r,t){switch(r){case"Q":case"QQ":return parseNDigits(r.length,e);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});default:return t.quarter(e,{width:"wide",context:"formatting"})||t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,r){return r>=1&&r<=4}},{key:"set",value:function(e,r,t){return e.setUTCMonth((t-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),QuarterParser}(g),A=function(e){_inherits(StandAloneQuarterParser,e);var r=_createSuper(StandAloneQuarterParser);function StandAloneQuarterParser(){var e;_classCallCheck(this,StandAloneQuarterParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",120),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return _createClass(StandAloneQuarterParser,[{key:"parse",value:function(e,r,t){switch(r){case"q":case"qq":return parseNDigits(r.length,e);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});default:return t.quarter(e,{width:"wide",context:"standalone"})||t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,r){return r>=1&&r<=4}},{key:"set",value:function(e,r,t){return e.setUTCMonth((t-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),StandAloneQuarterParser}(g),Y=function(e){_inherits(MonthParser,e);var r=_createSuper(MonthParser);function MonthParser(){var e;_classCallCheck(this,MonthParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,v.Z)((0,h.Z)(e),"priority",110),e}return _createClass(MonthParser,[{key:"parse",value:function(e,r,t){var valueCallback=function(e){return e-1};switch(r){case"M":return mapValue(parseNumericPattern(b.month,e),valueCallback);case"MM":return mapValue(parseNDigits(2,e),valueCallback);case"Mo":return mapValue(t.ordinalNumber(e,{unit:"month"}),valueCallback);case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});default:return t.month(e,{width:"wide",context:"formatting"})||t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,r){return r>=0&&r<=11}},{key:"set",value:function(e,r,t){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}}]),MonthParser}(g),U=function(e){_inherits(StandAloneMonthParser,e);var r=_createSuper(StandAloneMonthParser);function StandAloneMonthParser(){var e;_classCallCheck(this,StandAloneMonthParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",110),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return _createClass(StandAloneMonthParser,[{key:"parse",value:function(e,r,t){var valueCallback=function(e){return e-1};switch(r){case"L":return mapValue(parseNumericPattern(b.month,e),valueCallback);case"LL":return mapValue(parseNDigits(2,e),valueCallback);case"Lo":return mapValue(t.ordinalNumber(e,{unit:"month"}),valueCallback);case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,r){return r>=0&&r<=11}},{key:"set",value:function(e,r,t){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}}]),StandAloneMonthParser}(g),H=t(38348),I=function(e){_inherits(LocalWeekParser,e);var r=_createSuper(LocalWeekParser);function LocalWeekParser(){var e;_classCallCheck(this,LocalWeekParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",100),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return _createClass(LocalWeekParser,[{key:"parse",value:function(e,r,t){switch(r){case"w":return parseNumericPattern(b.week,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=1&&r<=53}},{key:"set",value:function(e,r,t,a){return(0,D.Z)(function(e,r,t){(0,f.Z)(2,arguments);var a=(0,o.Z)(e),n=(0,d.Z)(r),i=(0,H.Z)(a,t)-n;return a.setUTCDate(a.getUTCDate()-7*i),a}(e,t,a),a)}}]),LocalWeekParser}(g),E=t(78532),L=function(e){_inherits(ISOWeekParser,e);var r=_createSuper(ISOWeekParser);function ISOWeekParser(){var e;_classCallCheck(this,ISOWeekParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",100),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return _createClass(ISOWeekParser,[{key:"parse",value:function(e,r,t){switch(r){case"I":return parseNumericPattern(b.week,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=1&&r<=53}},{key:"set",value:function(e,r,t){return(0,x.Z)(function(e,r){(0,f.Z)(2,arguments);var t=(0,o.Z)(e),a=(0,d.Z)(r),n=(0,E.Z)(t)-a;return t.setUTCDate(t.getUTCDate()-7*n),t}(e,t))}}]),ISOWeekParser}(g),q=[31,28,31,30,31,30,31,31,30,31,30,31],W=[31,29,31,30,31,30,31,31,30,31,30,31],Q=function(e){_inherits(DateParser,e);var r=_createSuper(DateParser);function DateParser(){var e;_classCallCheck(this,DateParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",90),(0,v.Z)((0,h.Z)(e),"subPriority",1),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return _createClass(DateParser,[{key:"parse",value:function(e,r,t){switch(r){case"d":return parseNumericPattern(b.date,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){var t=isLeapYearIndex(e.getUTCFullYear()),a=e.getUTCMonth();return t?r>=1&&r<=W[a]:r>=1&&r<=q[a]}},{key:"set",value:function(e,r,t){return e.setUTCDate(t),e.setUTCHours(0,0,0,0),e}}]),DateParser}(g),z=function(e){_inherits(DayOfYearParser,e);var r=_createSuper(DayOfYearParser);function DayOfYearParser(){var e;_classCallCheck(this,DayOfYearParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",90),(0,v.Z)((0,h.Z)(e),"subpriority",1),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return _createClass(DayOfYearParser,[{key:"parse",value:function(e,r,t){switch(r){case"D":case"DD":return parseNumericPattern(b.dayOfYear,e);case"Do":return t.ordinalNumber(e,{unit:"date"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return isLeapYearIndex(e.getUTCFullYear())?r>=1&&r<=366:r>=1&&r<=365}},{key:"set",value:function(e,r,t){return e.setUTCMonth(0,t),e.setUTCHours(0,0,0,0),e}}]),DayOfYearParser}(g),V=t(5197);function setUTCDay(e,r,t){(0,f.Z)(2,arguments);var a,n,i,s,u,c,l,h,p=(0,V.j)(),y=(0,d.Z)(null!==(a=null!==(n=null!==(i=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(u=t.locale)||void 0===u?void 0:null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:p.weekStartsOn)&&void 0!==n?n:null===(l=p.locale)||void 0===l?void 0:null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==a?a:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,o.Z)(e),m=(0,d.Z)(r),P=v.getUTCDay();return v.setUTCDate(v.getUTCDate()+(((m%7+7)%7<y?7:0)+m-P)),v}var R=function(e){_inherits(DayParser,e);var r=_createSuper(DayParser);function DayParser(){var e;_classCallCheck(this,DayParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",90),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return _createClass(DayParser,[{key:"parse",value:function(e,r,t){switch(r){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,r){return r>=0&&r<=6}},{key:"set",value:function(e,r,t,a){return(e=setUTCDay(e,t,a)).setUTCHours(0,0,0,0),e}}]),DayParser}(g),j=function(e){_inherits(LocalDayParser,e);var r=_createSuper(LocalDayParser);function LocalDayParser(){var e;_classCallCheck(this,LocalDayParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",90),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return _createClass(LocalDayParser,[{key:"parse",value:function(e,r,t,a){var valueCallback=function(e){return(e+a.weekStartsOn+6)%7+7*Math.floor((e-1)/7)};switch(r){case"e":case"ee":return mapValue(parseNDigits(r.length,e),valueCallback);case"eo":return mapValue(t.ordinalNumber(e,{unit:"day"}),valueCallback);case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,r){return r>=0&&r<=6}},{key:"set",value:function(e,r,t,a){return(e=setUTCDay(e,t,a)).setUTCHours(0,0,0,0),e}}]),LocalDayParser}(g),B=function(e){_inherits(StandAloneLocalDayParser,e);var r=_createSuper(StandAloneLocalDayParser);function StandAloneLocalDayParser(){var e;_classCallCheck(this,StandAloneLocalDayParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",90),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return _createClass(StandAloneLocalDayParser,[{key:"parse",value:function(e,r,t,a){var valueCallback=function(e){return(e+a.weekStartsOn+6)%7+7*Math.floor((e-1)/7)};switch(r){case"c":case"cc":return mapValue(parseNDigits(r.length,e),valueCallback);case"co":return mapValue(t.ordinalNumber(e,{unit:"day"}),valueCallback);case"ccc":return t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"ccccc":return t.day(e,{width:"narrow",context:"standalone"});case"cccccc":return t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});default:return t.day(e,{width:"wide",context:"standalone"})||t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,r){return r>=0&&r<=6}},{key:"set",value:function(e,r,t,a){return(e=setUTCDay(e,t,a)).setUTCHours(0,0,0,0),e}}]),StandAloneLocalDayParser}(g),G=function(e){_inherits(ISODayParser,e);var r=_createSuper(ISODayParser);function ISODayParser(){var e;_classCallCheck(this,ISODayParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",90),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return _createClass(ISODayParser,[{key:"parse",value:function(e,r,t){var valueCallback=function(e){return 0===e?7:e};switch(r){case"i":case"ii":return parseNDigits(r.length,e);case"io":return t.ordinalNumber(e,{unit:"day"});case"iii":return mapValue(t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),valueCallback);case"iiiii":return mapValue(t.day(e,{width:"narrow",context:"formatting"}),valueCallback);case"iiiiii":return mapValue(t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),valueCallback);default:return mapValue(t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),valueCallback)}}},{key:"validate",value:function(e,r){return r>=1&&r<=7}},{key:"set",value:function(e,r,t){return(e=function(e,r){(0,f.Z)(2,arguments);var t=(0,d.Z)(r);t%7==0&&(t-=7);var a=(0,o.Z)(e),n=((t%7+7)%7<1?7:0)+t-a.getUTCDay();return a.setUTCDate(a.getUTCDate()+n),a}(e,t)).setUTCHours(0,0,0,0),e}}]),ISODayParser}(g),X=function(e){_inherits(AMPMParser,e);var r=_createSuper(AMPMParser);function AMPMParser(){var e;_classCallCheck(this,AMPMParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",80),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return _createClass(AMPMParser,[{key:"parse",value:function(e,r,t){switch(r){case"a":case"aa":case"aaa":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,r,t){return e.setUTCHours(dayPeriodEnumToHours(t),0,0,0),e}}]),AMPMParser}(g),K=function(e){_inherits(AMPMMidnightParser,e);var r=_createSuper(AMPMMidnightParser);function AMPMMidnightParser(){var e;_classCallCheck(this,AMPMMidnightParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",80),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return _createClass(AMPMMidnightParser,[{key:"parse",value:function(e,r,t){switch(r){case"b":case"bb":case"bbb":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,r,t){return e.setUTCHours(dayPeriodEnumToHours(t),0,0,0),e}}]),AMPMMidnightParser}(g),$=function(e){_inherits(DayPeriodParser,e);var r=_createSuper(DayPeriodParser);function DayPeriodParser(){var e;_classCallCheck(this,DayPeriodParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",80),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["a","b","t","T"]),e}return _createClass(DayPeriodParser,[{key:"parse",value:function(e,r,t){switch(r){case"B":case"BB":case"BBB":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,r,t){return e.setUTCHours(dayPeriodEnumToHours(t),0,0,0),e}}]),DayPeriodParser}(g),J=function(e){_inherits(Hour1to12Parser,e);var r=_createSuper(Hour1to12Parser);function Hour1to12Parser(){var e;_classCallCheck(this,Hour1to12Parser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",70),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return _createClass(Hour1to12Parser,[{key:"parse",value:function(e,r,t){switch(r){case"h":return parseNumericPattern(b.hour12h,e);case"ho":return t.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=1&&r<=12}},{key:"set",value:function(e,r,t){var a=e.getUTCHours()>=12;return a&&t<12?e.setUTCHours(t+12,0,0,0):a||12!==t?e.setUTCHours(t,0,0,0):e.setUTCHours(0,0,0,0),e}}]),Hour1to12Parser}(g),ee=function(e){_inherits(Hour0to23Parser,e);var r=_createSuper(Hour0to23Parser);function Hour0to23Parser(){var e;_classCallCheck(this,Hour0to23Parser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",70),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return _createClass(Hour0to23Parser,[{key:"parse",value:function(e,r,t){switch(r){case"H":return parseNumericPattern(b.hour23h,e);case"Ho":return t.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=0&&r<=23}},{key:"set",value:function(e,r,t){return e.setUTCHours(t,0,0,0),e}}]),Hour0to23Parser}(g),er=function(e){_inherits(Hour0To11Parser,e);var r=_createSuper(Hour0To11Parser);function Hour0To11Parser(){var e;_classCallCheck(this,Hour0To11Parser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",70),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return _createClass(Hour0To11Parser,[{key:"parse",value:function(e,r,t){switch(r){case"K":return parseNumericPattern(b.hour11h,e);case"Ko":return t.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=0&&r<=11}},{key:"set",value:function(e,r,t){return e.getUTCHours()>=12&&t<12?e.setUTCHours(t+12,0,0,0):e.setUTCHours(t,0,0,0),e}}]),Hour0To11Parser}(g),et=function(e){_inherits(Hour1To24Parser,e);var r=_createSuper(Hour1To24Parser);function Hour1To24Parser(){var e;_classCallCheck(this,Hour1To24Parser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",70),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return _createClass(Hour1To24Parser,[{key:"parse",value:function(e,r,t){switch(r){case"k":return parseNumericPattern(b.hour24h,e);case"ko":return t.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=1&&r<=24}},{key:"set",value:function(e,r,t){var a=t<=24?t%24:t;return e.setUTCHours(a,0,0,0),e}}]),Hour1To24Parser}(g),ea=function(e){_inherits(MinuteParser,e);var r=_createSuper(MinuteParser);function MinuteParser(){var e;_classCallCheck(this,MinuteParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",60),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return _createClass(MinuteParser,[{key:"parse",value:function(e,r,t){switch(r){case"m":return parseNumericPattern(b.minute,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=0&&r<=59}},{key:"set",value:function(e,r,t){return e.setUTCMinutes(t,0,0),e}}]),MinuteParser}(g),en=function(e){_inherits(SecondParser,e);var r=_createSuper(SecondParser);function SecondParser(){var e;_classCallCheck(this,SecondParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",50),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return _createClass(SecondParser,[{key:"parse",value:function(e,r,t){switch(r){case"s":return parseNumericPattern(b.second,e);case"so":return t.ordinalNumber(e,{unit:"second"});default:return parseNDigits(r.length,e)}}},{key:"validate",value:function(e,r){return r>=0&&r<=59}},{key:"set",value:function(e,r,t){return e.setUTCSeconds(t,0),e}}]),SecondParser}(g),ei=function(e){_inherits(FractionOfSecondParser,e);var r=_createSuper(FractionOfSecondParser);function FractionOfSecondParser(){var e;_classCallCheck(this,FractionOfSecondParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",30),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return _createClass(FractionOfSecondParser,[{key:"parse",value:function(e,r){return mapValue(parseNDigits(r.length,e),function(e){return Math.floor(e*Math.pow(10,-r.length+3))})}},{key:"set",value:function(e,r,t){return e.setUTCMilliseconds(t),e}}]),FractionOfSecondParser}(g),eo=function(e){_inherits(ISOTimezoneWithZParser,e);var r=_createSuper(ISOTimezoneWithZParser);function ISOTimezoneWithZParser(){var e;_classCallCheck(this,ISOTimezoneWithZParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",10),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["t","T","x"]),e}return _createClass(ISOTimezoneWithZParser,[{key:"parse",value:function(e,r){switch(r){case"X":return parseTimezonePattern(C.basicOptionalMinutes,e);case"XX":return parseTimezonePattern(C.basic,e);case"XXXX":return parseTimezonePattern(C.basicOptionalSeconds,e);case"XXXXX":return parseTimezonePattern(C.extendedOptionalSeconds,e);default:return parseTimezonePattern(C.extended,e)}}},{key:"set",value:function(e,r,t){return r.timestampIsSet?e:new Date(e.getTime()-t)}}]),ISOTimezoneWithZParser}(g),es=function(e){_inherits(ISOTimezoneParser,e);var r=_createSuper(ISOTimezoneParser);function ISOTimezoneParser(){var e;_classCallCheck(this,ISOTimezoneParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",10),(0,v.Z)((0,h.Z)(e),"incompatibleTokens",["t","T","X"]),e}return _createClass(ISOTimezoneParser,[{key:"parse",value:function(e,r){switch(r){case"x":return parseTimezonePattern(C.basicOptionalMinutes,e);case"xx":return parseTimezonePattern(C.basic,e);case"xxxx":return parseTimezonePattern(C.basicOptionalSeconds,e);case"xxxxx":return parseTimezonePattern(C.extendedOptionalSeconds,e);default:return parseTimezonePattern(C.extended,e)}}},{key:"set",value:function(e,r,t){return r.timestampIsSet?e:new Date(e.getTime()-t)}}]),ISOTimezoneParser}(g),eu=function(e){_inherits(TimestampSecondsParser,e);var r=_createSuper(TimestampSecondsParser);function TimestampSecondsParser(){var e;_classCallCheck(this,TimestampSecondsParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",40),(0,v.Z)((0,h.Z)(e),"incompatibleTokens","*"),e}return _createClass(TimestampSecondsParser,[{key:"parse",value:function(e){return parseAnyDigitsSigned(e)}},{key:"set",value:function(e,r,t){return[new Date(1e3*t),{timestampIsSet:!0}]}}]),TimestampSecondsParser}(g),ec=function(e){_inherits(TimestampMillisecondsParser,e);var r=_createSuper(TimestampMillisecondsParser);function TimestampMillisecondsParser(){var e;_classCallCheck(this,TimestampMillisecondsParser);for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=r.call.apply(r,[this].concat(a)),(0,v.Z)((0,h.Z)(e),"priority",20),(0,v.Z)((0,h.Z)(e),"incompatibleTokens","*"),e}return _createClass(TimestampMillisecondsParser,[{key:"parse",value:function(e){return parseAnyDigitsSigned(e)}},{key:"set",value:function(e,r,t){return[new Date(t),{timestampIsSet:!0}]}}]),TimestampMillisecondsParser}(g),el={G:new k,y:new Z,Y:new _,R:new O,u:new M,Q:new N,q:new A,M:new Y,L:new U,w:new I,I:new L,d:new Q,D:new z,E:new R,e:new j,c:new B,i:new G,a:new X,b:new K,B:new $,h:new J,H:new ee,K:new er,k:new et,m:new ea,s:new en,S:new ei,X:new eo,x:new es,t:new eu,T:new ec},ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ef=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eh=/^'([^]*?)'?$/,ep=/''/g,ey=/\S/,ev=/[a-zA-Z]/;function parse(e,r,t,h){(0,f.Z)(3,arguments);var p=String(e),y=String(r),v=(0,V.j)(),m=null!==(k=null!==(T=null==h?void 0:h.locale)&&void 0!==T?T:v.locale)&&void 0!==k?k:n.Z;if(!m.match)throw RangeError("locale must contain match property");var P=(0,d.Z)(null!==(b=null!==(C=null!==(Z=null!==(S=null==h?void 0:h.firstWeekContainsDate)&&void 0!==S?S:null==h?void 0:null===(D=h.locale)||void 0===D?void 0:null===(_=D.options)||void 0===_?void 0:_.firstWeekContainsDate)&&void 0!==Z?Z:v.firstWeekContainsDate)&&void 0!==C?C:null===(x=v.locale)||void 0===x?void 0:null===(O=x.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==b?b:1);if(!(P>=1&&P<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=(0,d.Z)(null!==(M=null!==(N=null!==(A=null!==(Y=null==h?void 0:h.weekStartsOn)&&void 0!==Y?Y:null==h?void 0:null===(U=h.locale)||void 0===U?void 0:null===(H=U.options)||void 0===H?void 0:H.weekStartsOn)&&void 0!==A?A:v.weekStartsOn)&&void 0!==N?N:null===(I=v.locale)||void 0===I?void 0:null===(E=I.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==M?M:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===y)return""===p?(0,o.Z)(t):new Date(NaN);var k,T,b,C,Z,S,D,_,x,O,M,N,A,Y,U,H,I,E,L,q={firstWeekContainsDate:P,weekStartsOn:g,locale:m},W=[new w],Q=y.match(ef).map(function(e){var r=e[0];return r in u.Z?(0,u.Z[r])(e,m.formatLong):e}).join("").match(ed),z=[],R=_createForOfIteratorHelper(Q);try{for(R.s();!(L=R.n()).done;){var j=function(){var r=L.value;!(null!=h&&h.useAdditionalWeekYearTokens)&&(0,l.Do)(r)&&(0,l.qp)(r,y,e),!(null!=h&&h.useAdditionalDayOfYearTokens)&&(0,l.Iu)(r)&&(0,l.qp)(r,y,e);var t=r[0],a=el[t];if(a){var n=a.incompatibleTokens;if(Array.isArray(n)){var i=z.find(function(e){return n.includes(e.token)||e.token===t});if(i)throw RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(r,"` at the same time"))}else if("*"===a.incompatibleTokens&&z.length>0)throw RangeError("The format string mustn't contain `".concat(r,"` and any other token at the same time"));z.push({token:t,fullToken:r});var o=a.run(p,r,m.match,q);if(!o)return{v:new Date(NaN)};W.push(o.setter),p=o.rest}else{if(t.match(ev))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");if("''"===r?r="'":"'"===t&&(r=r.match(eh)[1].replace(ep,"'")),0!==p.indexOf(r))return{v:new Date(NaN)};p=p.slice(r.length)}}();if("object"===(0,a.Z)(j))return j.v}}catch(e){R.e(e)}finally{R.f()}if(p.length>0&&ey.test(p))return new Date(NaN);var B=W.map(function(e){return e.priority}).sort(function(e,r){return r-e}).filter(function(e,r,t){return t.indexOf(e)===r}).map(function(e){return W.filter(function(r){return r.priority===e}).sort(function(e,r){return r.subPriority-e.subPriority})}).map(function(e){return e[0]}),G=(0,o.Z)(t);if(isNaN(G.getTime()))return new Date(NaN);var X,K=(0,i.Z)(G,(0,c.Z)(G)),$={},J=_createForOfIteratorHelper(B);try{for(J.s();!(X=J.n()).done;){var ee=X.value;if(!ee.validate(K,q))return new Date(NaN);var er=ee.set(K,$,q);Array.isArray(er)?(K=er[0],(0,s.Z)($,er[1])):K=er}}catch(e){J.e(e)}finally{J.f()}return K}},71360:function(e,r,t){t.d(r,{Z:function(){return subDays}});var a=t(88657),n=t(75105),i=t(95661);function subDays(e,r){(0,n.Z)(2,arguments);var t=(0,i.Z)(r);return(0,a.Z)(e,-t)}},82269:function(e,r,t){t.d(r,{Z:function(){return _objectWithoutProperties}});function _objectWithoutProperties(e,r){if(null==e)return{};var t,a,n=function(e,r){if(null==e)return{};var t,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}}}]);