0?c:["plain"],u=d):(c=Te(c,d.type),d.alias&&(c=Te(c,d.alias)),u=d.content),"string"===typeof u){var f=u.split(De),p=f.length;s.push({types:c,content:f[0]});for(var h=1;h=t&&(t=0),(!n||0>n)&&(n=t);var r=document.createRange();e=[e.firstChild];for(var a,o=0,i=t;a=e[e.length-1];){if(a.nodeType===Node.TEXT_NODE){if(o+a.textContent.length>=i){var s=i-o;if(i===t){if(i=r,s=i){if(i===t){if(s=r,0";case Fe.template:return"template";case Fe.ellipsis:return"...";case Fe.backQuote:return"`";case Fe.dollarBraceL:return"${";case Fe.at:return"@";case Fe.hash:return"#";case Fe.eq:return"=";case Fe.assign:return"_=";case Fe.preIncDec:case Fe.postIncDec:return"++/--";case Fe.bang:return"!";case Fe.tilde:return"~";case Fe.pipeline:return"|>";case Fe.nullishCoalescing:return"??";case Fe.logicalOR:return"||";case Fe.logicalAND:return"&&";case Fe.bitwiseOR:return"|";case Fe.bitwiseXOR:return"^";case Fe.bitwiseAND:return"&";case Fe.equality:return"==/!=";case Fe.lessThan:return"<";case Fe.greaterThan:return">";case Fe.relationalOrEqual:return"<=/>=";case Fe.bitShiftL:return"<<";case Fe.bitShiftR:return">>/>>>";case Fe.plus:return"+";case Fe.minus:return"-";case Fe.modulo:return"%";case Fe.star:return"*";case Fe.slash:return"/";case Fe.exponent:return"**";case Fe.jsxName:return"jsxName";case Fe.jsxText:return"jsxText";case Fe.jsxEmptyText:return"jsxEmptyText";case Fe.jsxTagStart:return"jsxTagStart";case Fe.jsxTagEnd:return"jsxTagEnd";case Fe.typeParameterStart:return"typeParameterStart";case Fe.nonNullAssertion:return"nonNullAssertion";case Fe._break:return"break";case Fe._case:return"case";case Fe._catch:return"catch";case Fe._continue:return"continue";case Fe._debugger:return"debugger";case Fe._default:return"default";case Fe._do:return"do";case Fe._else:return"else";case Fe._finally:return"finally";case Fe._for:return"for";case Fe._function:return"function";case Fe._if:return"if";case Fe._return:return"return";case Fe._switch:return"switch";case Fe._throw:return"throw";case Fe._try:return"try";case Fe._var:return"var";case Fe._let:return"let";case Fe._const:return"const";case Fe._while:return"while";case Fe._with:return"with";case Fe._new:return"new";case Fe._this:return"this";case Fe._super:return"super";case Fe._class:return"class";case Fe._extends:return"extends";case Fe._export:return"export";case Fe._import:return"import";case Fe._yield:return"yield";case Fe._null:return"null";case Fe._true:return"true";case Fe._false:return"false";case Fe._in:return"in";case Fe._instanceof:return"instanceof";case Fe._typeof:return"typeof";case Fe._void:return"void";case Fe._delete:return"delete";case Fe._async:return"async";case Fe._get:return"get";case Fe._set:return"set";case Fe._declare:return"declare";case Fe._readonly:return"readonly";case Fe._abstract:return"abstract";case Fe._static:return"static";case Fe._public:return"public";case Fe._private:return"private";case Fe._protected:return"protected";case Fe._override:return"override";case Fe._as:return"as";case Fe._enum:return"enum";case Fe._type:return"type";case Fe._implements:return"implements";default:return""}}(e),'"'))}function ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected token",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We.start;if(!We.error){var n=new SyntaxError(e);n.pos=t,We.error=n,We.pos=qe.length,$t(Fe.eof)}}for(var ct=[9,11,12,Ye.space,Ye.nonBreakingSpace,Ye.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],dt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ft=new Uint8Array(65536),pt=0,ht=ct;pt=qe.length)return void ut("Unterminated template");var e=qe.charCodeAt(We.pos);if(e===Ye.graveAccent||e===Ye.dollarSign&&qe.charCodeAt(We.pos+1)===Ye.leftCurlyBrace)return We.pos===We.start&&Bt(Fe.template)?e===Ye.dollarSign?(We.pos+=2,void $t(Fe.dollarBraceL)):(++We.pos,void $t(Fe.backQuote)):void $t(Fe.template);e===Ye.backslash&&We.pos++,We.pos++}}()}function Lt(){We.type===Fe.assign&&--We.pos,function(){for(var e=We.pos,t=!1,n=!1;;){if(We.pos>=qe.length)return void ut("Unterminated regular expression",e);var r=qe.charCodeAt(We.pos);if(t)t=!1;else{if(r===Ye.leftSquareBracket)n=!0;else if(r===Ye.rightSquareBracket&&n)n=!1;else if(r===Ye.slash&&!n)break;t=r===Ye.backslash}++We.pos}++We.pos,function(){for(;We.pos=qe.length){var e=We.tokens;return e.length>=2&&e[e.length-1].start>=qe.length&&e[e.length-2].start>=qe.length&&ut("Unexpectedly reached the end of input."),void $t(Fe.eof)}var t;t=qe.charCodeAt(We.pos),xt[t]||t===Ye.backslash||t===Ye.atSign&&qe.charCodeAt(We.pos+1)===Ye.atSign?function(){for(var e=0,t=0,n=We.pos;nYe.lowercaseZ);){var r=Tt[e+(t-Ye.lowercaseA)+1];if(-1===r)break;e=r,n++}var a=Tt[e];if(a>-1&&!vt[t])return We.pos=n,void(1&a?$t(a>>>1):$t(Fe.name,a>>>1));for(;nqe.length)return void ut("Unterminated comment",We.pos-2);We.pos+=2}function Zt(e){var t=qe.charCodeAt(We.pos+=e);if(We.pos1&&void 0!==arguments[1]?arguments[1]:Le.NONE;We.end=We.pos,We.type=e,We.contextualKeyword=t}function Jt(){if(We.isType)nn(Fe.greaterThan,1);else{var e=qe.charCodeAt(We.pos+1);if(e===Ye.greaterThan){var t=qe.charCodeAt(We.pos+2)===Ye.greaterThan?3:2;return qe.charCodeAt(We.pos+t)===Ye.equalsTo?void nn(Fe.assign,t+1):void nn(Fe.bitShiftR,t)}e===Ye.equalsTo?nn(Fe.relationalOrEqual,2):nn(Fe.greaterThan,1)}}function en(){We.type===Fe.greaterThan&&(We.pos-=1,Jt())}function tn(e){switch(e){case Ye.numberSign:return++We.pos,void $t(Fe.hash);case Ye.dot:return void function(){var e=qe.charCodeAt(We.pos+1);e>=Ye.digit0&&e<=Ye.digit9?an(!0):e===Ye.dot&&qe.charCodeAt(We.pos+2)===Ye.dot?(We.pos+=3,$t(Fe.ellipsis)):(++We.pos,$t(Fe.dot))}();case Ye.leftParenthesis:return++We.pos,void $t(Fe.parenL);case Ye.rightParenthesis:return++We.pos,void $t(Fe.parenR);case Ye.semicolon:return++We.pos,void $t(Fe.semi);case Ye.comma:return++We.pos,void $t(Fe.comma);case Ye.leftSquareBracket:return++We.pos,void $t(Fe.bracketL);case Ye.rightSquareBracket:return++We.pos,void $t(Fe.bracketR);case Ye.leftCurlyBrace:return void(He&&qe.charCodeAt(We.pos+1)===Ye.verticalBar?nn(Fe.braceBarL,2):(++We.pos,$t(Fe.braceL)));case Ye.rightCurlyBrace:return++We.pos,void $t(Fe.braceR);case Ye.colon:return void(qe.charCodeAt(We.pos+1)===Ye.colon?nn(Fe.doubleColon,2):(++We.pos,$t(Fe.colon)));case Ye.questionMark:return void function(){var e=qe.charCodeAt(We.pos+1),t=qe.charCodeAt(We.pos+2);e!==Ye.questionMark||He&&We.isType?e!==Ye.dot||t>=Ye.digit0&&t<=Ye.digit9?(++We.pos,$t(Fe.question)):(We.pos+=2,$t(Fe.questionDot)):t===Ye.equalsTo?nn(Fe.assign,3):nn(Fe.nullishCoalescing,2)}();case Ye.atSign:return++We.pos,void $t(Fe.at);case Ye.graveAccent:return++We.pos,void $t(Fe.backQuote);case Ye.digit0:var t=qe.charCodeAt(We.pos+1);if(t===Ye.lowercaseX||t===Ye.uppercaseX||t===Ye.lowercaseO||t===Ye.uppercaseO||t===Ye.lowercaseB||t===Ye.uppercaseB)return void function(){We.pos+=2;for(;;){var e=qe.charCodeAt(We.pos);if(!(e>=Ye.digit0&&e<=Ye.digit9||e>=Ye.lowercaseA&&e<=Ye.lowercaseF||e>=Ye.uppercaseA&&e<=Ye.uppercaseF||e===Ye.underscore))break;We.pos++}var t=qe.charCodeAt(We.pos);t===Ye.lowercaseN?(++We.pos,$t(Fe.bigint)):$t(Fe.num)}();case Ye.digit1:case Ye.digit2:case Ye.digit3:case Ye.digit4:case Ye.digit5:case Ye.digit6:case Ye.digit7:case Ye.digit8:case Ye.digit9:return void an(!1);case Ye.quotationMark:case Ye.apostrophe:return void function(e){for(We.pos++;;){if(We.pos>=qe.length)return void ut("Unterminated string constant");var t=qe.charCodeAt(We.pos);if(t===Ye.backslash)We.pos++;else if(t===e)break;We.pos++}We.pos++,$t(Fe.string)}(e);case Ye.slash:return void(qe.charCodeAt(We.pos+1)===Ye.equalsTo?nn(Fe.assign,2):nn(Fe.slash,1));case Ye.percentSign:case Ye.asterisk:return void function(e){var t=e===Ye.asterisk?Fe.star:Fe.modulo,n=1,r=qe.charCodeAt(We.pos+1);e===Ye.asterisk&&r===Ye.asterisk&&(n++,r=qe.charCodeAt(We.pos+2),t=Fe.exponent),r===Ye.equalsTo&&qe.charCodeAt(We.pos+2)!==Ye.greaterThan&&(n++,t=Fe.assign),nn(t,n)}(e);case Ye.verticalBar:case Ye.ampersand:return void function(e){var t=qe.charCodeAt(We.pos+1);if(t!==e){if(e===Ye.verticalBar){if(t===Ye.greaterThan)return void nn(Fe.pipeline,2);if(t===Ye.rightCurlyBrace&&He)return void nn(Fe.braceBarR,2)}t!==Ye.equalsTo?nn(e===Ye.verticalBar?Fe.bitwiseOR:Fe.bitwiseAND,1):nn(Fe.assign,2)}else qe.charCodeAt(We.pos+2)===Ye.equalsTo?nn(Fe.assign,3):nn(e===Ye.verticalBar?Fe.logicalOR:Fe.logicalAND,2)}(e);case Ye.caret:return void(qe.charCodeAt(We.pos+1)===Ye.equalsTo?nn(Fe.assign,2):nn(Fe.bitwiseXOR,1));case Ye.plusSign:case Ye.dash:return void function(e){var t=qe.charCodeAt(We.pos+1);t!==e?t===Ye.equalsTo?nn(Fe.assign,2):e===Ye.plusSign?nn(Fe.plus,1):nn(Fe.minus,1):nn(Fe.preIncDec,2)}(e);case Ye.lessThan:return void function(){var e=qe.charCodeAt(We.pos+1);if(e===Ye.lessThan)return qe.charCodeAt(We.pos+2)===Ye.equalsTo?void nn(Fe.assign,3):void(We.isType?nn(Fe.lessThan,1):nn(Fe.bitShiftL,2));e===Ye.equalsTo?nn(Fe.relationalOrEqual,2):nn(Fe.lessThan,1)}();case Ye.greaterThan:return void Jt();case Ye.equalsTo:case Ye.exclamationMark:return void function(e){var t=qe.charCodeAt(We.pos+1);if(t!==Ye.equalsTo)return e===Ye.equalsTo&&t===Ye.greaterThan?(We.pos+=2,void $t(Fe.arrow)):void nn(e===Ye.equalsTo?Fe.eq:Fe.bang,1);nn(Fe.equality,qe.charCodeAt(We.pos+2)===Ye.equalsTo?3:2)}(e);case Ye.tilde:return void nn(Fe.tilde,1)}ut("Unexpected character '".concat(String.fromCharCode(e),"'"),We.pos)}function nn(e,t){We.pos+=t,$t(e)}function rn(){for(;;){var e=qe.charCodeAt(We.pos);if(!(e>=Ye.digit0&&e<=Ye.digit9||e===Ye.underscore))break;We.pos++}}function an(e){var t=!1,n=!1;e||rn();var r=qe.charCodeAt(We.pos);r===Ye.dot&&(++We.pos,rn(),r=qe.charCodeAt(We.pos)),r!==Ye.uppercaseE&&r!==Ye.lowercaseE||((r=qe.charCodeAt(++We.pos))!==Ye.plusSign&&r!==Ye.dash||++We.pos,rn(),r=qe.charCodeAt(We.pos)),r===Ye.lowercaseN?(++We.pos,t=!0):r===Ye.lowercaseM&&(++We.pos,n=!0),$t(t?Fe.bigint:n?Fe.decimal:Fe.num)}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.currentIndex(),n=t+1;if(sn(e,n)){var r=e.identifierNameAtIndex(t);return{isType:!1,leftName:r,rightName:r,endIndex:n}}if(sn(e,++n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(sn(e,++n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(sn(e,++n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error("Unexpected import/export specifier at ".concat(t))}function sn(e,t){var n=e.tokens[t];return n.type===Fe.braceR||n.type===Fe.comma}var ln=n(3986);const un=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function cn(e){var t=dn(e.jsxPragma||"React.createElement"),n=(0,a.A)(t,2),r=n[0],o=n[1],i=dn(e.jsxFragmentPragma||"React.Fragment"),s=(0,a.A)(i,2);return{base:r,suffix:o,fragmentBase:s[0],fragmentSuffix:s[1]}}function dn(e){var t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}var fn=function(){function e(){o(this,e)}return l(e,[{key:"getPrefixCode",value:function(){return""}},{key:"getHoistedCode",value:function(){return""}},{key:"getSuffixCode",value:function(){return""}}]),e}(),pn=["createElement"],hn=function(e){c(n,e);var t=m(n);function n(e,r,a,i,s){var l;return o(this,n),(l=t.call(this)).rootTransformer=e,l.tokens=r,l.importProcessor=a,l.nameManager=i,l.options=s,n.prototype.__init.call(h(l)),n.prototype.__init2.call(h(l)),n.prototype.__init3.call(h(l)),n.prototype.__init4.call(h(l)),n.prototype.__init5.call(h(l)),l.jsxPragmaInfo=cn(s),l.isAutomaticRuntime="automatic"===s.jsxRuntime,l.jsxImportSource=s.jsxImportSource||"react",l}return l(n,[{key:"__init",value:function(){this.lastLineNumber=1}},{key:"__init2",value:function(){this.lastIndex=0}},{key:"__init3",value:function(){this.filenameVarName=null}},{key:"__init4",value:function(){this.esmAutomaticImportNameResolutions={}}},{key:"__init5",value:function(){this.cjsAutomaticModuleNameResolutions={}}},{key:"process",value:function(){return!!this.tokens.matches1(Fe.jsxTagStart)&&(this.processJSXTag(),!0)}},{key:"getPrefixCode",value:function(){var e="";if(this.filenameVarName&&(e+="const ".concat(this.filenameVarName," = ").concat(JSON.stringify(this.options.filePath||""),";")),this.isAutomaticRuntime)if(this.importProcessor)for(var t=0,n=Object.entries(this.cjsAutomaticModuleNameResolutions);t or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}r&&this.tokens.appendCode(", ".concat(r))}for(this.options.production||(null===r&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(", ".concat(n,", ").concat(this.getDevSource(e),", this"))),this.tokens.removeInitialToken();!this.tokens.matches1(Fe.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}},{key:"transformTagToCreateElement",value:function(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(Fe.jsxTagEnd))this.tokens.replaceToken("".concat(this.getFragmentCode(),", null")),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(Fe.slash,Fe.jsxTagEnd));else{if(!this.tokens.matches1(Fe.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(Fe.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}},{key:"getJSXFuncInvocationCode",value:function(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}},{key:"getCreateElementInvocationCode",value:function(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");var e=this.jsxPragmaInfo,t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base;return"".concat(t).concat(e.suffix,"(")}},{key:"getFragmentCode",value:function(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");var e=this.jsxPragmaInfo;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}},{key:"claimAutoImportedFuncInvocation",value:function(e,t){var n=this.claimAutoImportedName(e,t);return this.importProcessor?"".concat(n,".call(void 0, "):"".concat(n,"(")}},{key:"claimAutoImportedName",value:function(e,t){if(this.importProcessor){var n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),"".concat(this.cjsAutomaticModuleNameResolutions[n],".").concat(e)}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName("_".concat(e))),this.esmAutomaticImportNameResolutions[e]}},{key:"processTagIntro",value:function(){for(var e=this.tokens.currentIndex()+1;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,Fe.jsxName,Fe.jsxName)&&!this.tokens.matches2AtIndex(e-1,Fe.greaterThan,Fe.jsxName)&&!this.tokens.matches1AtIndex(e,Fe.braceL)&&!this.tokens.matches1AtIndex(e,Fe.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,Fe.slash,Fe.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){var t=this.tokens.identifierName();mn(t)&&this.tokens.replaceToken("'".concat(t,"'"))}for(;this.tokens.currentIndex()=Ye.lowercaseA&&t<=Ye.lowercaseZ}function vn(e){var t,n=0,r=0,a=(0,O.A)(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;"\n"===o?(n++,r=0):" "===o&&r++}}catch(zh){a.e(zh)}finally{a.f()}return"\n".repeat(n)+" ".repeat(r)}function gn(e,t){var n,r,a="",o=0,i=t;if("#"===e[i]){var s,l=10;if("x"===e[++i])for(l=16,s=++i;i=Ye.digit0&&r<=Ye.digit9||r>=Ye.lowercaseA&&r<=Ye.lowercaseF||r>=Ye.uppercaseA&&r<=Ye.uppercaseF);)i++;else for(s=i;i=Ye.digit0&&e<=Ye.digit9}function kn(e,t){for(var n=cn(t),r=new Set,a=0;a0||i.namedExports.length>0))[].concat((0,P.A)(i.defaultNames),(0,P.A)(i.wildcardNames),(0,P.A)(i.namedImports.map((function(e){return e.localName})))).every((function(t){return e.shouldAutomaticallyElideImportedName(t)}))&&this.importsToReplace.set(o,"")}}catch(zh){n.e(zh)}finally{n.f()}}},{key:"shouldAutomaticallyElideImportedName",value:function(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}},{key:"generateImportReplacements",value:function(){var e,t=(0,O.A)(this.importInfoByPath.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,a.A)(e.value,2),r=n[0],o=n[1],i=o.defaultNames,s=o.wildcardNames,l=o.namedImports,u=o.namedExports,c=o.exportStarNames,d=o.hasStarExport;if(0!==i.length||0!==s.length||0!==l.length||0!==u.length||0!==c.length||d){var f=this.getFreeIdentifierForPath(r),p=void 0;p=this.enableLegacyTypeScriptModuleInterop?f:s.length>0?s[0]:this.getFreeIdentifierForPath(r);var h="var ".concat(f," = require('").concat(r,"');");if(s.length>0){var m,v=(0,O.A)(s);try{for(v.s();!(m=v.n()).done;){var g=m.value,y=this.enableLegacyTypeScriptModuleInterop?f:"".concat(this.helperManager.getHelperName("interopRequireWildcard"),"(").concat(f,")");h+=" var ".concat(g," = ").concat(y,";")}}catch(zh){v.e(zh)}finally{v.f()}}else c.length>0&&p!==f?h+=" var ".concat(p," = ").concat(this.helperManager.getHelperName("interopRequireWildcard"),"(").concat(f,");"):i.length>0&&p!==f&&(h+=" var ".concat(p," = ").concat(this.helperManager.getHelperName("interopRequireDefault"),"(").concat(f,");"));var k,b=(0,O.A)(u);try{for(b.s();!(k=b.n()).done;){var w=k.value,x=w.importedName,S=w.localName;h+=" ".concat(this.helperManager.getHelperName("createNamedExportFrom"),"(").concat(f,", '").concat(S,"', '").concat(x,"');")}}catch(zh){b.e(zh)}finally{b.f()}var D,E=(0,O.A)(c);try{for(E.s();!(D=E.n()).done;){var T=D.value;h+=" exports.".concat(T," = ").concat(p,";")}}catch(zh){E.e(zh)}finally{E.f()}d&&(h+=" ".concat(this.helperManager.getHelperName("createStarExport"),"(").concat(f,");")),this.importsToReplace.set(r,h);var _,C=(0,O.A)(i);try{for(C.s();!(_=C.n()).done;){var A=_.value;this.identifierReplacements.set(A,"".concat(p,".default"))}}catch(zh){C.e(zh)}finally{C.f()}var M,I=(0,O.A)(l);try{for(I.s();!(M=I.n()).done;){var N=M.value,P=N.importedName,R=N.localName;this.identifierReplacements.set(R,"".concat(f,".").concat(P))}}catch(zh){I.e(zh)}finally{I.f()}}else this.importsToReplace.set(r,"require('".concat(r,"');"))}}catch(zh){t.e(zh)}finally{t.f()}}},{key:"getFreeIdentifierForPath",value:function(e){var t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName("_".concat(n))}},{key:"preprocessImportAtIndex",value:function(e){var t,n,r,a=[],o=[],i=[];if(e++,(!this.tokens.matchesContextualAtIndex(e,Le._type)&&!this.tokens.matches1AtIndex(e,Fe._typeof)||this.tokens.matches1AtIndex(e+1,Fe.comma)||this.tokens.matchesContextualAtIndex(e+1,Le._from))&&!this.tokens.matches1AtIndex(e,Fe.parenL)){if(this.tokens.matches1AtIndex(e,Fe.name)&&(a.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,Fe.comma)&&e++),this.tokens.matches1AtIndex(e,Fe.star)&&(e+=2,o.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,Fe.braceL)){var s=this.getNamedImports(e+1);e=s.newIndex;var l,u=(0,O.A)(s.namedImports);try{for(u.s();!(l=u.n()).done;){var c=l.value;"default"===c.importedName?a.push(c.localName):i.push(c)}}catch(zh){u.e(zh)}finally{u.f()}}if(this.tokens.matchesContextualAtIndex(e,Le._from)&&e++,!this.tokens.matches1AtIndex(e,Fe.string))throw new Error("Expected string token at the end of import statement.");var d=this.tokens.stringValueAtIndex(e),f=this.getImportInfo(d);(t=f.defaultNames).push.apply(t,a),(n=f.wildcardNames).push.apply(n,o),(r=f.namedImports).push.apply(r,i),0===a.length&&0===o.length&&0===i.length&&(f.hasBareImport=!0)}}},{key:"preprocessExportAtIndex",value:function(e){if(this.tokens.matches2AtIndex(e,Fe._export,Fe._var)||this.tokens.matches2AtIndex(e,Fe._export,Fe._let)||this.tokens.matches2AtIndex(e,Fe._export,Fe._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,Fe._export,Fe._function)||this.tokens.matches2AtIndex(e,Fe._export,Fe._class)){var t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,Fe._export,Fe.name,Fe._function)){var n=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(e,Fe._export,Fe.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,Fe._export,Fe.star)&&this.preprocessExportStarAtIndex(e)}},{key:"preprocessVarExportAtIndex",value:function(e){for(var t=0,n=e+2;;n++)if(this.tokens.matches1AtIndex(n,Fe.braceL)||this.tokens.matches1AtIndex(n,Fe.dollarBraceL)||this.tokens.matches1AtIndex(n,Fe.bracketL))t++;else if(this.tokens.matches1AtIndex(n,Fe.braceR)||this.tokens.matches1AtIndex(n,Fe.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,Fe.name))break;if(this.tokens.matches1AtIndex(1,Fe.eq)){var r=this.tokens.currentToken().rhsEndIndex;if(null==r)throw new Error("Expected = token with an end index.");n=r-1}else{if(_t(this.tokens.tokens[n])){var a=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(a,"exports.".concat(a))}}}}},{key:"preprocessNamedExportAtIndex",value:function(e){var t;e+=2;var n=this.getNamedImports(e),r=n.newIndex,a=n.namedImports;if(e=r,this.tokens.matchesContextualAtIndex(e,Le._from)){if(e++,!this.tokens.matches1AtIndex(e,Fe.string))throw new Error("Expected string token at the end of import statement.");var o=this.tokens.stringValueAtIndex(e);(t=this.getImportInfo(o).namedExports).push.apply(t,(0,P.A)(a))}else{var i,s=(0,O.A)(a);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.importedName,c=l.localName;this.addExportBinding(u,c)}}catch(zh){s.e(zh)}finally{s.f()}}}},{key:"preprocessExportStarAtIndex",value:function(e){var t=null;if(this.tokens.matches3AtIndex(e,Fe._export,Fe.star,Fe._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,Fe.string))throw new Error("Expected string token at the end of star export statement.");var n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);null!==t?r.exportStarNames.push(t):r.hasStarExport=!0}},{key:"getNamedImports",value:function(e){for(var t=[];;){if(this.tokens.matches1AtIndex(e,Fe.braceR)){e++;break}var n=on(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,Fe.comma,Fe.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,Fe.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,Fe.comma))throw new Error("Unexpected token: ".concat(JSON.stringify(this.tokens.tokens[e])));e++}return{newIndex:e,namedImports:t}}},{key:"getImportInfo",value:function(e){var t=this.importInfoByPath.get(e);if(t)return t;var n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}},{key:"addExportBinding",value:function(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}},{key:"claimImportCode",value:function(e){var t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}},{key:"getIdentifierReplacement",value:function(e){return this.identifierReplacements.get(e)||null}},{key:"resolveExportBinding",value:function(e){var t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map((function(e){return"exports.".concat(e)})).join(" = "):null}},{key:"getGlobalNames",value:function(){return new Set([].concat((0,P.A)(this.identifierReplacements.keys()),(0,P.A)(this.exportBindingsByLocalName.keys())))}}]),e}(),wn=n(517),xn=["sourceRoot","sourcesContent"];function Sn(e,t,n,r,a){for(var o=e.code,i=e.mappings,s=function(e,t){for(var n=new Array(t.length),r=0,a=t[r].start,o=0,i=0;i obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "},En=function(){function e(t){o(this,e),this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}return l(e,[{key:"__init",value:function(){this.helperNames={}}},{key:"__init2",value:function(){this.createRequireName=null}},{key:"getHelperName",value:function(e){var t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName("_".concat(e)),this.helperNames[e]=t,t)}},{key:"emitHelpers",value:function(){var e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(var t=0,n=Object.entries(Dn);t0&&r[r.length-1].startTokenIndex===o+1;)r.pop();for(;a>=0&&t[a].endTokenIndex===o+1;)r.push(t[a]),a--;if(o<0)break;var i=e.tokens[o],s=e.identifierNameForToken(i);if(r.length>1&&!i.isType&&i.type===Fe.name&&n.has(s))if(Mt(i))_n(r[r.length-1],e,s);else if(It(i)){for(var l=r.length-1;l>0&&!r[l].isFunctionScope;)l--;if(l<0)throw new Error("Did not find parent function scope.");_n(r[l],e,s)}}if(r.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function _n(e,t,n){for(var r=e.startTokenIndex;r2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=!0,i=!1,s=We.tokens.length;!Yt(e)&&!We.error;)if(o?o=!1:(lt(Fe.comma),We.tokens[We.tokens.length-1].contextId=a,!i&&We.tokens[s].isType&&(We.tokens[We.tokens.length-1].isType=!0,i=!0)),n&&Bt(Fe.comma));else{if(Yt(e))break;if(Bt(Fe.ellipsis)){On(t),Bn(),Yt(Fe.comma),lt(e);break}zn(r,t)}}function zn(e,t){e&&Un([Le._public,Le._protected,Le._private,Le._readonly,Le._override]),Hn(t),Bn(),Hn(t,!0)}function Bn(){He?function(){var e=Ft(0);Yt(Fe.question),Bt(Fe.colon)&&Ga();jt(e)}():Be&&function(){var e=Ft(0);Yt(Fe.question),hr(),jt(e)}()}function Hn(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||jn(e),Yt(Fe.eq)){var t=We.tokens.length-1;Qr(),We.tokens[t].rhsEndIndex=We.tokens.length}}function Wn(){return Bt(Fe.name)}function qn(){var e=We.snapshot();return Ot(),!!((Bt(Fe.bracketL)||Bt(Fe.braceL)||Bt(Fe.star)||Bt(Fe.ellipsis)||Bt(Fe.hash)||Bt(Fe.name)||Boolean(We.type&Fe.IS_KEYWORD)||Bt(Fe.string)||Bt(Fe.num)||Bt(Fe.bigint)||Bt(Fe.decimal))&&!at())||(We.restoreFromSnapshot(e),!1)}function Un(e){for(;;){if(null===Qn(e))break}}function Qn(e){if(!Bt(Fe.name))return null;var t=We.contextualKeyword;if(-1!==e.indexOf(t)&&qn()){switch(t){case Le._readonly:We.tokens[We.tokens.length-1].type=Fe._readonly;break;case Le._abstract:We.tokens[We.tokens.length-1].type=Fe._abstract;break;case Le._static:We.tokens[We.tokens.length-1].type=Fe._static;break;case Le._public:We.tokens[We.tokens.length-1].type=Fe._public;break;case Le._private:We.tokens[We.tokens.length-1].type=Fe._private;break;case Le._protected:We.tokens[We.tokens.length-1].type=Fe._protected;break;case Le._override:We.tokens[We.tokens.length-1].type=Fe._override;break;case Le._declare:We.tokens[We.tokens.length-1].type=Fe._declare}return t}return null}function Vn(){for(Sa();Yt(Fe.dot);)Sa()}function Kn(){lt(Fe._import),lt(Fe.parenL),lt(Fe.string),lt(Fe.parenR),Yt(Fe.dot)&&Vn(),Bt(Fe.lessThan)&&Nr()}function Gn(){Yt(Fe._const);var e=Yt(Fe._in),t=tt(Le._out);Yt(Fe._const),!e&&!t||Bt(Fe.name)?Sa():We.tokens[We.tokens.length-1].type=Fe.name,Yt(Fe._extends)&&vr(),Yt(Fe.eq)&&vr()}function Zn(){Bt(Fe.lessThan)&&Xn()}function Xn(){var e=Ft(0);for(Bt(Fe.lessThan)||Bt(Fe.typeParameterStart)?Ot():ut();!Yt(Fe.greaterThan)&&!We.error;)Gn(),Yt(Fe.comma);jt(e)}function $n(e){var t,n=e===Fe.arrow;Zn(),lt(Fe.parenL),We.scopeDepth++,t=!1,Yn(Fe.parenR,t),We.scopeDepth--,(n||Bt(e))&&pr(e)}function Jn(){Yt(Fe.comma)||st()}function er(){$n(Fe.colon),Jn()}function tr(){if(!Bt(Fe.bracketL)||!function(){var e=We.snapshot();Ot();var t=Yt(Fe.name)&&Bt(Fe.colon);return We.restoreFromSnapshot(e),t}())return!1;var e=Ft(0);return lt(Fe.bracketL),Sa(),mr(),lt(Fe.bracketR),hr(),Jn(),jt(e),!0}function nr(e){Yt(Fe.question),e||!Bt(Fe.parenL)&&!Bt(Fe.lessThan)?(hr(),Jn()):($n(Fe.colon),Jn())}function rr(){if(Bt(Fe.parenL)||Bt(Fe.lessThan))er();else{if(Bt(Fe._new))return Ot(),void(Bt(Fe.parenL)||Bt(Fe.lessThan)?er():nr(!1));var e=!!Qn([Le._readonly]);tr()||((Je(Le._get)||Je(Le._set))&&qn(),va(-1),nr(e))}}function ar(){for(lt(Fe.braceL);!Yt(Fe.braceR)&&!We.error;)rr()}function or(){var e=We.snapshot(),t=function(){if(Ot(),Yt(Fe.plus)||Yt(Fe.minus))return Je(Le._readonly);Je(Le._readonly)&&Ot();if(!Bt(Fe.bracketL))return!1;if(Ot(),!Wn())return!1;return Ot(),Bt(Fe._in)}();return We.restoreFromSnapshot(e),t}function ir(){lt(Fe.braceL),Bt(Fe.plus)||Bt(Fe.minus)?(Ot(),nt(Le._readonly)):tt(Le._readonly),lt(Fe.bracketL),Sa(),lt(Fe._in),vr(),tt(Le._as)&&vr(),lt(Fe.bracketR),Bt(Fe.plus)||Bt(Fe.minus)?(Ot(),lt(Fe.question)):Yt(Fe.question),Yt(Fe.colon)&&vr(),st(),lt(Fe.braceR)}function sr(){Yt(Fe.ellipsis)?vr():(vr(),Yt(Fe.question)),Yt(Fe.colon)&&vr()}function lr(e){e===In.TSAbstractConstructorType&&nt(Le._abstract),e!==In.TSConstructorType&&e!==In.TSAbstractConstructorType||lt(Fe._new);var t=We.inDisallowConditionalTypesContext;We.inDisallowConditionalTypesContext=!1,$n(Fe.arrow),We.inDisallowConditionalTypesContext=t}function ur(){switch(We.type){case Fe.name:return Vn(),void(!at()&&Bt(Fe.lessThan)&&Nr());case Fe._void:case Fe._null:return void Ot();case Fe.string:case Fe.num:case Fe.bigint:case Fe.decimal:case Fe._true:case Fe._false:return void sa();case Fe.minus:return Ot(),void sa();case Fe._this:return Ot(),void(Je(Le._is)&&!at()&&(Ot(),mr()));case Fe._typeof:return lt(Fe._typeof),Bt(Fe._import)?Kn():Vn(),void(!at()&&Bt(Fe.lessThan)&&Nr());case Fe._import:return void Kn();case Fe.braceL:return void(or()?ir():ar());case Fe.bracketL:return void function(){for(lt(Fe.bracketL);!Yt(Fe.bracketR)&&!We.error;)sr(),Yt(Fe.comma)}();case Fe.parenL:return lt(Fe.parenL),vr(),void lt(Fe.parenR);case Fe.backQuote:return void function(){for(Rt(),Rt();!Bt(Fe.backQuote)&&!We.error;)lt(Fe.dollarBraceL),vr(),Rt(),Rt();Ot()}();default:if(We.type&Fe.IS_KEYWORD)return Ot(),void(We.tokens[We.tokens.length-1].type=Fe.name)}ut()}function cr(){if(Je(Le._keyof)||Je(Le._unique)||Je(Le._readonly))Ot(),cr();else if(Je(Le._infer))!function(){if(nt(Le._infer),Sa(),Bt(Fe._extends)){var e=We.snapshot();lt(Fe._extends);var t=We.inDisallowConditionalTypesContext;We.inDisallowConditionalTypesContext=!0,vr(),We.inDisallowConditionalTypesContext=t,(We.error||!We.inDisallowConditionalTypesContext&&Bt(Fe.question))&&We.restoreFromSnapshot(e)}}();else{var e=We.inDisallowConditionalTypesContext;We.inDisallowConditionalTypesContext=!1,function(){for(ur();!at()&&Yt(Fe.bracketL);)Yt(Fe.bracketR)||(vr(),lt(Fe.bracketR))}(),We.inDisallowConditionalTypesContext=e}}function dr(){if(Yt(Fe.bitwiseAND),cr(),Bt(Fe.bitwiseAND))for(;Yt(Fe.bitwiseAND);)cr()}function fr(){return!!Bt(Fe.lessThan)||Bt(Fe.parenL)&&function(){var e=We.snapshot(),t=function(){if(Ot(),Bt(Fe.parenR)||Bt(Fe.ellipsis))return!0;if(function(){if(Bt(Fe.name)||Bt(Fe._this))return Ot(),!0;if(Bt(Fe.braceL)||Bt(Fe.bracketL)){var e=1;for(Ot();e>0&&!We.error;)Bt(Fe.braceL)||Bt(Fe.bracketL)?e++:(Bt(Fe.braceR)||Bt(Fe.bracketR))&&e--,Ot();return!0}return!1}()){if(Bt(Fe.colon)||Bt(Fe.comma)||Bt(Fe.question)||Bt(Fe.eq))return!0;if(Bt(Fe.parenR)&&(Ot(),Bt(Fe.arrow)))return!0}return!1}();return We.restoreFromSnapshot(e),t}()}function pr(e){var t=Ft(0);lt(e),function(){var e=We.snapshot();if(Je(Le._asserts))return Ot(),tt(Le._is)?(vr(),!0):Wn()||Bt(Fe._this)?(Ot(),tt(Le._is)&&vr(),!0):(We.restoreFromSnapshot(e),!1);if(Wn()||Bt(Fe._this))return Ot(),Je(Le._is)&&!at()?(Ot(),vr(),!0):(We.restoreFromSnapshot(e),!1);return!1}()||vr(),jt(t)}function hr(){Bt(Fe.colon)&&mr()}function mr(){var e=Ft(0);lt(Fe.colon),vr(),jt(e)}function vr(){if(gr(),!We.inDisallowConditionalTypesContext&&!at()&&Yt(Fe._extends)){var e=We.inDisallowConditionalTypesContext;We.inDisallowConditionalTypesContext=!0,gr(),We.inDisallowConditionalTypesContext=e,lt(Fe.question),vr(),lt(Fe.colon),vr()}}function gr(){fr()?lr(In.TSFunctionType):Bt(Fe._new)?lr(In.TSConstructorType):Je(Le._abstract)&&Ht()===Fe._new?lr(In.TSAbstractConstructorType):function(){if(Yt(Fe.bitwiseOR),dr(),Bt(Fe.bitwiseOR))for(;Yt(Fe.bitwiseOR);)dr()}()}function yr(){for(;!Bt(Fe.braceL)&&!We.error;)kr(),Yt(Fe.comma)}function kr(){Vn(),Bt(Fe.lessThan)&&Nr()}function br(){if(Bt(Fe.string)?sa():Sa(),Yt(Fe.eq)){var e=We.tokens.length-1;Qr(),We.tokens[e].rhsEndIndex=We.tokens.length}}function wr(){for(Rn(!1),lt(Fe.braceL);!Yt(Fe.braceR)&&!We.error;)br(),Yt(Fe.comma)}function xr(){lt(Fe.braceL),lo(Fe.braceR)}function Sr(){Rn(!1),Yt(Fe.dot)?Sr():xr()}function Dr(){Je(Le._global)?Sa():Bt(Fe.string)?oa():ut(),Bt(Fe.braceL)?xr():st()}function Er(){Ln(),lt(Fe.eq),Je(Le._require)&&Ht()===Fe.parenL?(nt(Le._require),lt(Fe.parenL),Bt(Fe.string)||ut(),sa(),lt(Fe.parenR)):Vn(),st()}function Tr(){return Cr(We.contextualKeyword,!0)}function _r(e){switch(e){case Le._declare:var t=We.tokens.length-1,n=function(){if(it())return!1;switch(We.type){case Fe._function:var e=Ft(1);return Ot(),ho(We.start,!0),jt(e),!0;case Fe._class:var t=Ft(1);return vo(!0,!1),jt(t),!0;case Fe._const:if(Bt(Fe._const)&&et(Le._enum)){var n=Ft(1);return lt(Fe._const),nt(Le._enum),We.tokens[We.tokens.length-1].type=Fe._enum,wr(),jt(n),!0}case Fe._var:case Fe._let:var r=Ft(1);return io(We.type!==Fe._var),jt(r),!0;case Fe.name:var a=Ft(1),o=We.contextualKeyword,i=!1;return o===Le._global?(Dr(),i=!0):i=Cr(o,!0),jt(a),i;default:return!1}}();if(n)return We.tokens[t].type=Fe._declare,!0;break;case Le._global:if(Bt(Fe.braceL))return xr(),!0;break;default:return Cr(e,!1)}return!1}function Cr(e,t){switch(e){case Le._abstract:if(Ar(t)&&Bt(Fe._class))return We.tokens[We.tokens.length-1].type=Fe._abstract,vo(!0,!1),!0;break;case Le._enum:if(Ar(t)&&Bt(Fe.name))return We.tokens[We.tokens.length-1].type=Fe._enum,wr(),!0;break;case Le._interface:if(Ar(t)&&Bt(Fe.name)){var n=Ft(t?2:1);return Rn(!1),Zn(),Yt(Fe._extends)&&yr(),ar(),jt(n),!0}break;case Le._module:if(Ar(t)){if(Bt(Fe.string)){var r=Ft(t?2:1);return Dr(),jt(r),!0}if(Bt(Fe.name)){var a=Ft(t?2:1);return Sr(),jt(a),!0}}break;case Le._namespace:if(Ar(t)&&Bt(Fe.name)){var o=Ft(t?2:1);return Sr(),jt(o),!0}break;case Le._type:if(Ar(t)&&Bt(Fe.name)){var i=Ft(t?2:1);return Rn(!1),Zn(),lt(Fe.eq),vr(),st(),jt(i),!0}}return!1}function Ar(e){return e?(Ot(),!0):!it()}function Mr(){var e=We.snapshot();return Xn(),mo(),Bt(Fe.colon)&&pr(Fe.colon),lt(Fe.arrow),We.error?(We.restoreFromSnapshot(e),!1):(ba(!0),!0)}function Ir(){We.type===Fe.bitShiftL&&(We.pos-=1,$t(Fe.lessThan)),Nr()}function Nr(){var e=Ft(0);for(lt(Fe.lessThan);!Bt(Fe.greaterThan)&&!We.error;)vr(),Yt(Fe.comma);e?(lt(Fe.greaterThan),jt(e)):(jt(e),en(),lt(Fe.greaterThan),We.tokens[We.tokens.length-1].isType=!0)}function Pr(){if(Bt(Fe.name))switch(We.contextualKeyword){case Le._abstract:case Le._declare:case Le._enum:case Le._interface:case Le._module:case Le._namespace:case Le._type:return!0}return!1}function Or(e,t){return ze?function(e,t){if(!Bt(Fe.lessThan))return Vr(e,t);var n=We.snapshot(),r=Vr(e,t);if(!We.error)return r;We.restoreFromSnapshot(n);We.type=Fe.typeParameterStart,Xn(),r=Vr(e,t),r||ut();return r}(e,t):function(e,t){if(!Bt(Fe.lessThan))return Vr(e,t);var n=We.snapshot();Xn();var r=Vr(e,t);r||ut();if(!We.error)return r;We.restoreFromSnapshot(n);return Vr(e,t)}(e,t)}function Rr(){Hr()}function Lr(e){Rr(),Yt(Fe.colon)?Rr():We.tokens[We.tokens.length-1].identifierRole=e}function Fr(){var e=We.tokens.length;Lr(Dt.Access);for(var t=!1;Bt(Fe.dot);)t=!0,Hr(),Rr();if(!t){var n=We.tokens[e],r=qe.charCodeAt(n.start);r>=Ye.lowercaseA&&r<=Ye.lowercaseZ&&(n.identifierRole=null)}}function jr(){switch(We.type){case Fe.braceL:return Ot(),Ur(),void Hr();case Fe.jsxTagStart:return Br(),void Hr();case Fe.string:return void Hr();default:ut("JSX value should be either an expression or a quoted JSX text")}}function Yr(e){if(Bt(Fe.jsxTagEnd))return!1;Fr(),Be&&function(){if(Yt(Fe.jsxTagStart)){We.tokens[We.tokens.length-1].type=Fe.typeParameterStart;for(var e=Ft(1);!Bt(Fe.greaterThan)&&!We.error;)vr(),Yt(Fe.comma);Hr(),jt(e)}}();for(var t=!1;!Bt(Fe.slash)&&!Bt(Fe.jsxTagEnd)&&!We.error;)Yt(Fe.braceL)?(t=!0,lt(Fe.ellipsis),Qr(),Hr()):(t&&We.end-We.start===3&&qe.charCodeAt(We.start)===Ye.lowercaseK&&qe.charCodeAt(We.start+1)===Ye.lowercaseE&&qe.charCodeAt(We.start+2)===Ye.lowercaseY&&(We.tokens[e].jsxRole=Et.KeyAfterPropSpread),Lr(Dt.ObjectKey),Bt(Fe.eq)&&(Hr(),jr()));var n=Bt(Fe.slash);return n&&Hr(),n}function zr(){var e=We.tokens.length-1;We.tokens[e].jsxRole=Et.NoChildren;var t=0;if(!Yr(e))for(Wr();;)switch(We.type){case Fe.jsxTagStart:if(Hr(),Bt(Fe.slash))return Hr(),Bt(Fe.jsxTagEnd)||Fr(),void(We.tokens[e].jsxRole!==Et.KeyAfterPropSpread&&(1===t?We.tokens[e].jsxRole=Et.OneChild:t>1&&(We.tokens[e].jsxRole=Et.StaticChildren)));t++,zr(),Wr();break;case Fe.jsxText:t++,Wr();break;case Fe.jsxEmptyText:Wr();break;case Fe.braceL:Ot(),Bt(Fe.ellipsis)?(lt(Fe.ellipsis),Ur(),Wr(),t+=2):(Bt(Fe.braceR)||(t++,Ur()),Wr());break;default:return void ut()}}function Br(){Hr(),zr()}function Hr(){We.tokens.push(new Pt),Xt(),We.start=We.pos;var e=qe.charCodeAt(We.pos);if(xt[e])!function(){var e;do{if(We.pos>qe.length)return void ut("Unexpectedly reached the end of input.");e=qe.charCodeAt(++We.pos)}while(vt[e]||e===Ye.dash);$t(Fe.jsxName)}();else if(e===Ye.quotationMark||e===Ye.apostrophe)!function(e){for(We.pos++;;){if(We.pos>=qe.length)return void ut("Unterminated string constant");if(qe.charCodeAt(We.pos)===e){We.pos++;break}We.pos++}$t(Fe.string)}(e);else switch(++We.pos,e){case Ye.greaterThan:$t(Fe.jsxTagEnd);break;case Ye.lessThan:$t(Fe.jsxTagStart);break;case Ye.slash:$t(Fe.slash);break;case Ye.equalsTo:$t(Fe.eq);break;case Ye.leftCurlyBrace:$t(Fe.braceL);break;case Ye.dot:$t(Fe.dot);break;case Ye.colon:$t(Fe.colon);break;default:ut()}}function Wr(){We.tokens.push(new Pt),We.start=We.pos,function(){for(var e=!1,t=!1;;){if(We.pos>=qe.length)return void ut("Unterminated JSX contents");var n=qe.charCodeAt(We.pos);if(n===Ye.lessThan||n===Ye.leftCurlyBrace)return We.pos===We.start?n===Ye.lessThan?(We.pos++,void $t(Fe.jsxTagStart)):void tn(n):void $t(e&&!t?Fe.jsxEmptyText:Fe.jsxText);n===Ye.lineFeed?e=!0:n!==Ye.space&&n!==Ye.carriageReturn&&n!==Ye.tab&&(t=!0),We.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(In||(In={}));var qr=l((function e(t){o(this,e),this.stop=t}));function Ur(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Qr(e),Bt(Fe.comma))for(;Yt(Fe.comma);)Qr(e)}function Qr(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Be?Or(e,t):He?function(e,t){if(Bt(Fe.lessThan)){var n=We.snapshot(),r=Vr(e,t);if(!We.error)return r;We.restoreFromSnapshot(n),We.type=Fe.typeParameterStart;var a=Ft(0);if(Oa(),jt(a),r=Vr(e,t))return!0;ut()}return Vr(e,t)}(e,t):Vr(e,t)}function Vr(e,t){if(Bt(Fe._yield))return Ot(),Bt(Fe.semi)||rt()||(Yt(Fe.star),Qr()),!1;(Bt(Fe.parenL)||Bt(Fe.name)||Bt(Fe._yield))&&(We.potentialArrowAt=We.start);var n=function(e){var t=function(e){var t=We.tokens.length,n=Zr();if(n)return!0;return Gr(t,-1,e),!1}(e);if(t)return!0;return function(e){Be||He?function(e){if(Bt(Fe.question)){var t=Ht();if(t===Fe.colon||t===Fe.comma||t===Fe.parenR)return}Kr(e)}(e):Kr(e)}(e),!1}(e);return t&&da(),We.type&Fe.IS_ASSIGN?(Ot(),Qr(e),!1):n}function Kr(e){Yt(Fe.question)&&(Qr(),lt(Fe.colon),Qr(e))}function Gr(e,t,n){if(Be&&(Fe._in&Fe.PRECEDENCE_MASK)>t&&!at()&&(tt(Le._as)||tt(Le._satisfies))){var r=Ft(1);return vr(),jt(r),en(),void Gr(e,t,n)}var a=We.type&Fe.PRECEDENCE_MASK;if(a>0&&(!n||!Bt(Fe._in))&&a>t){var o=We.type;Ot(),o===Fe.nullishCoalescing&&(We.tokens[We.tokens.length-1].nullishStartIndex=e);var i=We.tokens.length;Zr(),Gr(i,o&Fe.IS_RIGHT_ASSOCIATIVE?a-1:a,n),o===Fe.nullishCoalescing&&(We.tokens[e].numNullishCoalesceStarts++,We.tokens[We.tokens.length-1].numNullishCoalesceEnds++),Gr(e,t,n)}}function Zr(){if(Be&&!ze&&Yt(Fe.lessThan))return function(){var e=Ft(1);vr(),lt(Fe.greaterThan),jt(e),Zr()}(),!1;if(Je(Le._module)&&Vt()===Ye.leftCurlyBrace&&!ot())return nt(Le._module),lt(Fe.braceL),lo(Fe.braceR),!1;if(We.type&Fe.IS_PREFIX)return Ot(),Zr(),!1;if(Xr())return!0;for(;We.type&Fe.IS_POSTFIX&&!rt();)We.type===Fe.preIncDec&&(We.type=Fe.postIncDec),Ot();return!1}function Xr(){var e=We.tokens.length;return!!oa()||($r(e),We.tokens.length>e&&We.tokens[e].isOptionalChainStart&&(We.tokens[We.tokens.length-1].isOptionalChainEnd=!0),!1)}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];He?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(We.tokens[We.tokens.length-1].contextualKeyword===Le._async&&Bt(Fe.lessThan)){var n=We.snapshot(),r=function(){We.scopeDepth++;var e=We.tokens.length;if(mo(),!ca())return!1;return ya(e),!0}();if(r&&!We.error)return;We.restoreFromSnapshot(n)}Jr(e,t)}(e,t):Jr(e,t)}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new qr(!1);do{ea(e,t,n)}while(!n.stop&&!We.error)}function ea(e,t,n){Be?function(e,t,n){if(at()||!Yt(Fe.bang)){if(Bt(Fe.lessThan)||Bt(Fe.bitShiftL)){var r=We.snapshot();if(!t&&na()&&Mr())return;if(Ir(),!t&&Yt(Fe.parenL)?(We.tokens[We.tokens.length-1].subscriptStartIndex=e,ra()):Bt(Fe.backQuote)?fa():(We.type===Fe.greaterThan||We.type!==Fe.parenL&&Boolean(We.type&Fe.IS_EXPRESSION_START)&&!at())&&ut(),!We.error)return;We.restoreFromSnapshot(r)}else!t&&Bt(Fe.questionDot)&&Ht()===Fe.lessThan&&(Ot(),We.tokens[e].isOptionalChainStart=!0,We.tokens[We.tokens.length-1].subscriptStartIndex=e,Nr(),lt(Fe.parenL),ra());ta(e,t,n)}else We.tokens[We.tokens.length-1].type=Fe.nonNullAssertion}(e,t,n):He?function(e,t,n){if(Bt(Fe.questionDot)&&Ht()===Fe.lessThan)return t?void(n.stop=!0):(Ot(),Ra(),lt(Fe.parenL),void ra());if(!t&&Bt(Fe.lessThan)){var r=We.snapshot();if(Ra(),lt(Fe.parenL),ra(),!We.error)return;We.restoreFromSnapshot(r)}ta(e,t,n)}(e,t,n):ta(e,t,n)}function ta(e,t,n){if(!t&&Yt(Fe.doubleColon))aa(),n.stop=!0,$r(e,t);else if(Bt(Fe.questionDot)){if(We.tokens[e].isOptionalChainStart=!0,t&&Ht()===Fe.parenL)return void(n.stop=!0);Ot(),We.tokens[We.tokens.length-1].subscriptStartIndex=e,Yt(Fe.bracketL)?(Ur(),lt(Fe.bracketR)):Yt(Fe.parenL)?ra():ia()}else if(Yt(Fe.dot))We.tokens[We.tokens.length-1].subscriptStartIndex=e,ia();else if(Yt(Fe.bracketL))We.tokens[We.tokens.length-1].subscriptStartIndex=e,Ur(),lt(Fe.bracketR);else if(!t&&Bt(Fe.parenL))if(na()){var r=We.snapshot(),a=We.tokens.length;Ot(),We.tokens[We.tokens.length-1].subscriptStartIndex=e;var o=Ge();We.tokens[We.tokens.length-1].contextId=o,ra(),We.tokens[We.tokens.length-1].contextId=o,(Bt(Fe.colon)||Bt(Fe.arrow))&&(We.restoreFromSnapshot(r),n.stop=!0,We.scopeDepth++,mo(),function(e){Be?Bt(Fe.colon)&&mr():He&&function(){if(Bt(Fe.colon)){var e=We.noAnonFunctionType;We.noAnonFunctionType=!0,Ga(),We.noAnonFunctionType=e}}();lt(Fe.arrow),ya(e)}(a))}else{Ot(),We.tokens[We.tokens.length-1].subscriptStartIndex=e;var i=Ge();We.tokens[We.tokens.length-1].contextId=i,ra(),We.tokens[We.tokens.length-1].contextId=i}else Bt(Fe.backQuote)?fa():n.stop=!0}function na(){return We.tokens[We.tokens.length-1].contextualKeyword===Le._async&&!rt()}function ra(){for(var e=!0;!Yt(Fe.parenR)&&!We.error;){if(e)e=!1;else if(lt(Fe.comma),Yt(Fe.parenR))break;xa(!1)}}function aa(){var e=We.tokens.length;oa(),$r(e,!0)}function oa(){if(Yt(Fe.modulo))return Sa(),!1;if(Bt(Fe.jsxText)||Bt(Fe.jsxEmptyText))return sa(),!1;if(Bt(Fe.lessThan)&&ze)return We.type=Fe.jsxTagStart,Br(),Ot(),!1;var e=We.potentialArrowAt===We.start;switch(We.type){case Fe.slash:case Fe.assign:Lt();case Fe._super:case Fe._this:case Fe.regexp:case Fe.num:case Fe.bigint:case Fe.decimal:case Fe.string:case Fe._null:case Fe._true:case Fe._false:return Ot(),!1;case Fe._import:return Ot(),Bt(Fe.dot)&&(We.tokens[We.tokens.length-1].type=Fe.name,Ot(),Sa()),!1;case Fe.name:var t=We.tokens.length,n=We.start,r=We.contextualKeyword;return Sa(),r===Le._await?(Zr(),!1):r===Le._async&&Bt(Fe._function)&&!rt()?(Ot(),ho(n,!1),!1):e&&r===Le._async&&!rt()&&Bt(Fe.name)?(We.scopeDepth++,Rn(!1),lt(Fe.arrow),ya(t),!0):Bt(Fe._do)&&!rt()?(Ot(),so(),!1):e&&!rt()&&Bt(Fe.arrow)?(We.scopeDepth++,Fn(!1),lt(Fe.arrow),ya(t),!0):(We.tokens[We.tokens.length-1].identifierRole=Dt.Access,!1);case Fe._do:return Ot(),so(),!1;case Fe.parenL:return ua(e);case Fe.bracketL:return Ot(),wa(Fe.bracketR,!0),!1;case Fe.braceL:return pa(!1,!1),!1;case Fe._function:return function(){var e=We.start;Sa(),Yt(Fe.dot)&&Sa();ho(e,!1)}(),!1;case Fe.at:ro();case Fe._class:return vo(!1),!1;case Fe._new:return function(){if(lt(Fe._new),Yt(Fe.dot))return void Sa();aa(),void Yt(Fe.questionDot),He&&function(){if(Bt(Fe.lessThan)){var e=We.snapshot();Ra(),We.error&&We.restoreFromSnapshot(e)}}();Yt(Fe.parenL)&&wa(Fe.parenR)}(),!1;case Fe.backQuote:return fa(),!1;case Fe.doubleColon:return Ot(),aa(),!1;case Fe.hash:var a=Vt();return xt[a]||a===Ye.backslash?ia():Ot(),!1;default:return ut(),!1}}function ia(){Yt(Fe.hash),Sa()}function sa(){Ot()}function la(){lt(Fe.parenL),Ur(),lt(Fe.parenR)}function ua(e){var t=We.snapshot(),n=We.tokens.length;lt(Fe.parenL);for(var r=!0;!Bt(Fe.parenR)&&!We.error;){if(r)r=!1;else if(lt(Fe.comma),Bt(Fe.parenR))break;if(Bt(Fe.ellipsis)){On(!1),da();break}Qr(!1,!0)}if((lt(Fe.parenR),e&&(Bt(Fe.colon)||!rt()))&&ca())return We.restoreFromSnapshot(t),We.scopeDepth++,mo(),ca(),ya(n),!We.error||(We.restoreFromSnapshot(t),ua(!1),!1);return!1}function ca(){return Be?function(){if(Bt(Fe.colon)){var e=We.snapshot();pr(Fe.colon),rt()&&ut(),Bt(Fe.arrow)||ut(),We.error&&We.restoreFromSnapshot(e)}return Yt(Fe.arrow)}():He?function(){if(Bt(Fe.colon)){var e=Ft(0),t=We.snapshot(),n=We.noAnonFunctionType;We.noAnonFunctionType=!0,Ta(),We.noAnonFunctionType=n,rt()&&ut(),Bt(Fe.arrow)||ut(),We.error&&We.restoreFromSnapshot(t),jt(e)}return Yt(Fe.arrow)}():Yt(Fe.arrow)}function da(){(Be||He)&&(zt(Fe.question),Bt(Fe.colon)&&(Be?mr():He&&Ga()))}function fa(){for(Rt(),Rt();!Bt(Fe.backQuote)&&!We.error;)lt(Fe.dollarBraceL),Ur(),Rt(),Rt();Ot()}function pa(e,t){var n=Ge(),r=!0;for(Ot(),We.tokens[We.tokens.length-1].contextId=n;!Yt(Fe.braceR)&&!We.error;){if(r)r=!1;else if(lt(Fe.comma),Yt(Fe.braceR))break;var a=!1;if(Bt(Fe.ellipsis)){var o=We.tokens.length;if(Pn(),e&&(We.tokens.length===o+2&&Fn(t),Yt(Fe.braceR)))break}else e||(a=Yt(Fe.star)),!e&&Je(Le._async)?(a&&ut(),Sa(),Bt(Fe.colon)||Bt(Fe.parenL)||Bt(Fe.braceR)||Bt(Fe.eq)||Bt(Fe.comma)||(Bt(Fe.star)&&(Ot(),a=!0),va(n))):va(n),ma(e,t,n)}We.tokens[We.tokens.length-1].contextId=n}function ha(e,t){var n=We.start;return Bt(Fe.parenL)?(e&&ut(),ga(n,!1),!0):!!function(e){return!e&&(Bt(Fe.string)||Bt(Fe.num)||Bt(Fe.bracketL)||Bt(Fe.name)||!!(We.type&Fe.IS_KEYWORD))}(e)&&(va(t),ga(n,!1),!0)}function ma(e,t,n){Be?Zn():He&&Bt(Fe.lessThan)&&(Oa(),Bt(Fe.parenL)||ut()),ha(e,n)||function(e,t){var n;Yt(Fe.colon)?e?Hn(t):Qr(!1):(n=e?0===We.scopeDepth?Dt.ObjectShorthandTopLevelDeclaration:t?Dt.ObjectShorthandBlockScopedDeclaration:Dt.ObjectShorthandFunctionScopedDeclaration:Dt.ObjectShorthand,We.tokens[We.tokens.length-1].identifierRole=n,Hn(t,!0))}(e,t)}function va(e){He&&Xa(),Yt(Fe.bracketL)?(We.tokens[We.tokens.length-1].contextId=e,Qr(),lt(Fe.bracketR),We.tokens[We.tokens.length-1].contextId=e):(Bt(Fe.num)||Bt(Fe.string)||Bt(Fe.bigint)||Bt(Fe.decimal)?oa():ia(),We.tokens[We.tokens.length-1].identifierRole=Dt.ObjectKey,We.tokens[We.tokens.length-1].contextId=e)}function ga(e,t){var n=Ge();We.scopeDepth++;var r=We.tokens.length;mo(t,n),ka(e,n);var a=We.tokens.length;We.scopes.push(new Qe(r,a,!0)),We.scopeDepth--}function ya(e){ba(!0);var t=We.tokens.length;We.scopes.push(new Qe(e,t,!0)),We.scopeDepth--}function ka(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Be?function(e,t){if(Bt(Fe.colon)&&pr(Fe.colon),Bt(Fe.braceL)||!it())ba(!1,t);else for(var n=We.tokens.length-1;n>=0&&(We.tokens[n].start>=e||We.tokens[n].type===Fe._default||We.tokens[n].type===Fe._export);)We.tokens[n].isType=!0,n--}(e,t):He?function(e){Bt(Fe.colon)&&Ta();ba(!1,e)}(t):ba(!1,t)}function ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e&&!Bt(Fe.braceL)?Qr():so(!0,t)}function wa(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!0;!Yt(e)&&!We.error;){if(n)n=!1;else if(lt(Fe.comma),Yt(e))break;xa(t)}}function xa(e){e&&Bt(Fe.comma)||(Bt(Fe.ellipsis)?(Pn(),da()):Bt(Fe.question)?Ot():Qr(!1,!0))}function Sa(){Ot(),We.tokens[We.tokens.length-1].type=Fe.name}function Da(e){var t=Ft(0);lt(e||Fe.colon),Ka(),jt(t)}function Ea(){lt(Fe.modulo),nt(Le._checks),Yt(Fe.parenL)&&(Ur(),lt(Fe.parenR))}function Ta(){var e=Ft(0);lt(Fe.colon),Bt(Fe.modulo)?Ea():(Ka(),Bt(Fe.modulo)&&Ea()),jt(e)}function _a(){Bt(Fe._class)?(Ot(),Ca(!0)):Bt(Fe._function)?(Ot(),Sa(),Bt(Fe.lessThan)&&Oa(),lt(Fe.parenL),Wa(),lt(Fe.parenR),Ta(),st()):Bt(Fe._var)?(Ot(),Za(),st()):tt(Le._module)?Yt(Fe.dot)?(nt(Le._exports),Ga(),st()):function(){Bt(Fe.string)?oa():Sa();lt(Fe.braceL);for(;!Bt(Fe.braceR)&&!We.error;)Bt(Fe._import)?(Ot(),Io()):ut();lt(Fe.braceR)}():Je(Le._type)?(Ot(),Na()):Je(Le._opaque)?(Ot(),Pa(!0)):Je(Le._interface)?(Ot(),Ca()):Bt(Fe._export)?(lt(Fe._export),Yt(Fe._default)?Bt(Fe._function)||Bt(Fe._class)?_a():(Ka(),st()):Bt(Fe._var)||Bt(Fe._function)||Bt(Fe._class)||Je(Le._opaque)?_a():Bt(Fe.star)||Bt(Fe.braceL)||Je(Le._interface)||Je(Le._type)||Je(Le._opaque)?Do():ut()):ut()}function Ca(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Ia(),Bt(Fe.lessThan)&&Oa(),Yt(Fe._extends))do{Aa()}while(!e&&Yt(Fe.comma));if(Je(Le._mixins)){Ot();do{Aa()}while(Yt(Fe.comma))}if(Je(Le._implements)){Ot();do{Aa()}while(Yt(Fe.comma))}ja(e,!1,e)}function Aa(){Ba(!1),Bt(Fe.lessThan)&&Ra()}function Ma(){Ca()}function Ia(){Sa()}function Na(){Ia(),Bt(Fe.lessThan)&&Oa(),Da(Fe.eq),st()}function Pa(e){nt(Le._type),Ia(),Bt(Fe.lessThan)&&Oa(),Bt(Fe.colon)&&Da(Fe.colon),e||Da(Fe.eq),st()}function Oa(){var e=Ft(0);Bt(Fe.lessThan)||Bt(Fe.typeParameterStart)?Ot():ut();do{Xa(),Za(),Yt(Fe.eq)&&Ka(),Bt(Fe.greaterThan)||lt(Fe.comma)}while(!Bt(Fe.greaterThan)&&!We.error);lt(Fe.greaterThan),jt(e)}function Ra(){var e=Ft(0);for(lt(Fe.lessThan);!Bt(Fe.greaterThan)&&!We.error;)Ka(),Bt(Fe.greaterThan)||lt(Fe.comma);lt(Fe.greaterThan),jt(e)}function La(){Bt(Fe.num)||Bt(Fe.string)?oa():Sa()}function Fa(){for(Bt(Fe.lessThan)&&Oa(),lt(Fe.parenL);!Bt(Fe.parenR)&&!Bt(Fe.ellipsis)&&!We.error;)Ha(),Bt(Fe.parenR)||lt(Fe.comma);Yt(Fe.ellipsis)&&Ha(),lt(Fe.parenR),Da()}function ja(e,t,n){var r;for(t&&Bt(Fe.braceBarL)?(lt(Fe.braceBarL),r=Fe.braceBarR):(lt(Fe.braceL),r=Fe.braceR);!Bt(r)&&!We.error;){if(n&&Je(Le._proto)){var a=Ht();a!==Fe.colon&&a!==Fe.question&&(Ot(),e=!1)}if(e&&Je(Le._static)){var o=Ht();o!==Fe.colon&&o!==Fe.question&&Ot()}if(Xa(),Yt(Fe.bracketL))Yt(Fe.bracketL)?(La(),lt(Fe.bracketR),lt(Fe.bracketR),Bt(Fe.lessThan)||Bt(Fe.parenL)?Fa():(Yt(Fe.question),Da())):(Ht()===Fe.colon?(La(),Da()):Ka(),lt(Fe.bracketR),Da());else if(Bt(Fe.parenL)||Bt(Fe.lessThan))Fa();else{if(Je(Le._get)||Je(Le._set)){var i=Ht();i!==Fe.name&&i!==Fe.string&&i!==Fe.num||Ot()}Ya()}za()}lt(r)}function Ya(){if(Bt(Fe.ellipsis)){if(lt(Fe.ellipsis),Yt(Fe.comma)||Yt(Fe.semi),Bt(Fe.braceR))return;Ka()}else La(),Bt(Fe.lessThan)||Bt(Fe.parenL)?Fa():(Yt(Fe.question),Da())}function za(){Yt(Fe.semi)||Yt(Fe.comma)||Bt(Fe.braceR)||Bt(Fe.braceBarR)||ut()}function Ba(e){for(e||Sa();Yt(Fe.dot);)Sa()}function Ha(){var e=Ht();e===Fe.colon||e===Fe.question?(Sa(),Yt(Fe.question),Da()):Ka()}function Wa(){for(;!Bt(Fe.parenR)&&!Bt(Fe.ellipsis)&&!We.error;)Ha(),Bt(Fe.parenR)||lt(Fe.comma);Yt(Fe.ellipsis)&&Ha()}function qa(){var e=!1,t=We.noAnonFunctionType;switch(We.type){case Fe.name:return Je(Le._interface)?void function(){if(nt(Le._interface),Yt(Fe._extends))do{Aa()}while(Yt(Fe.comma));ja(!1,!1,!1)}():(Sa(),Ba(!0),void(Bt(Fe.lessThan)&&Ra()));case Fe.braceL:return void ja(!1,!1,!1);case Fe.braceBarL:return void ja(!1,!0,!1);case Fe.bracketL:return void function(){for(lt(Fe.bracketL);We.pos0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=We.tokens.length;We.scopeDepth++,lt(Fe.braceL),t&&(We.tokens[We.tokens.length-1].contextId=t),lo(Fe.braceR),t&&(We.tokens[We.tokens.length-1].contextId=t);var r=We.tokens.length;We.scopes.push(new Qe(n,r,e)),We.scopeDepth--}function lo(e){for(;!Yt(e)&&!We.error;)to(!0)}function uo(){lt(Fe.semi),Bt(Fe.semi)||Ur(),lt(Fe.semi),Bt(Fe.parenR)||Ur(),lt(Fe.parenR),to(!1)}function co(e){e?tt(Le._of):Ot(),Ur(),lt(Fe.parenR),to(!1)}function fo(e,t){for(;;){if(po(t),Yt(Fe.eq)){var n=We.tokens.length-1;Qr(e),We.tokens[n].rhsEndIndex=We.tokens.length}if(!Yt(Fe.comma))break}}function po(e){jn(e),Be?function(){var e=Ft(0);at()||Yt(Fe.bang),hr(),jt(e)}():He&&Bt(Fe.colon)&&Ga()}function ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Bt(Fe.star)&&Ot(),!t||n||Bt(Fe.name)||Bt(Fe._yield)||ut();var r=null;Bt(Fe.name)&&(t||(r=We.tokens.length,We.scopeDepth++),Rn(!1));var a=We.tokens.length;We.scopeDepth++,mo(),ka(e);var o=We.tokens.length;We.scopes.push(new Qe(a,o,!0)),We.scopeDepth--,null!==r&&(We.scopes.push(new Qe(r,o,!0)),We.scopeDepth--)}function mo(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Be?Zn():He&&function(){if(Bt(Fe.lessThan)){var e=Ft(0);Oa(),jt(e)}}(),lt(Fe.parenL),t&&(We.tokens[We.tokens.length-1].contextId=t),Yn(Fe.parenR,!1,!1,e,t),t&&(We.tokens[We.tokens.length-1].contextId=t)}function vo(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ge();Ot(),We.tokens[We.tokens.length-1].contextId=n,We.tokens[We.tokens.length-1].isExpression=!e;var r=null;e||(r=We.tokens.length,We.scopeDepth++),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Be&&(!e||t)&&Je(Le._implements))return;Bt(Fe.name)&&Rn(!0);Be?Zn():He&&Bt(Fe.lessThan)&&Oa()}(e,t),function(){var e=!1;Yt(Fe._extends)?(Xr(),e=!0):e=!1;Be?function(e){if(e&&(Bt(Fe.lessThan)||Bt(Fe.bitShiftL))&&Ir(),tt(Le._implements)){We.tokens[We.tokens.length-1].type=Fe._implements;var t=Ft(1);yr(),jt(t)}}(e):He&&function(e){if(e&&Bt(Fe.lessThan)&&Ra(),Je(Le._implements)){var t=Ft(0);Ot(),We.tokens[We.tokens.length-1].type=Fe._implements;do{Ia(),Bt(Fe.lessThan)&&Ra()}while(Yt(Fe.comma));jt(t)}}(e)}();var a=We.tokens.length;if(function(e){lt(Fe.braceL);for(;!Yt(Fe.braceR)&&!We.error;){if(!Yt(Fe.semi))if(Bt(Fe.at))ao();else ko(We.start,e)}}(n),!We.error&&(We.tokens[a].contextId=n,We.tokens[We.tokens.length-1].contextId=n,null!==r)){var o=We.tokens.length;We.scopes.push(new Qe(r,o,!1)),We.scopeDepth--}}function go(){return Bt(Fe.eq)||Bt(Fe.semi)||Bt(Fe.braceR)||Bt(Fe.bang)||Bt(Fe.colon)}function yo(){return Bt(Fe.parenL)||Bt(Fe.lessThan)}function ko(e,t){Be&&Un([Le._declare,Le._public,Le._protected,Le._private,Le._override]);var n=!1;if(Bt(Fe.name)&&We.contextualKeyword===Le._static){if(Sa(),yo())return void bo(e,!1);if(go())return void So();if(We.tokens[We.tokens.length-1].type=Fe._static,n=!0,Bt(Fe.braceL))return We.tokens[We.tokens.length-1].contextId=t,void so()}!function(e,t,n){if(Be&&function(e){var t=We.tokens.length;Un([Le._abstract,Le._readonly,Le._declare,Le._static,Le._override]);var n=We.tokens.length;if(tr()){for(var r=e?t-1:t;r0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex0&&t0&&this.tokenAtRelativeIndex(-1).type===Fe._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}},{key:"appendTokenSuffix",value:function(){var e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(var t=0;t ".concat(e,"require"));var t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(Fe.parenR,t);)this.rootTransformer.processToken();this.tokens.replaceToken(e?")))":"))")}else{if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{var n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}Vo(this.tokens),this.tokens.matches1(Fe.semi)&&this.tokens.removeToken()}}},{key:"removeImportAndDetectIfShouldElide",value:function(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(Le._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,Fe.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Le._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(Fe.name)||this.tokens.matches1(Fe.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(Fe.string))return!1;for(var e=!1,t=!1;!this.tokens.matches1(Fe.string);)(!e&&this.tokens.matches1(Fe.braceL)||this.tokens.matches1(Fe.comma))&&(this.tokens.removeToken(),this.tokens.matches1(Fe.braceR)||(t=!0),(this.tokens.matches2(Fe.name,Fe.comma)||this.tokens.matches2(Fe.name,Fe.braceR)||this.tokens.matches4(Fe.name,Fe.name,Fe.name,Fe.comma)||this.tokens.matches4(Fe.name,Fe.name,Fe.name,Fe.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}},{key:"removeRemainingImport",value:function(){for(;!this.tokens.matches1(Fe.string);)this.tokens.removeToken()}},{key:"processIdentifier",value:function(){var e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===Dt.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==Dt.Access)return!1;var t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;for(var n=this.tokens.currentIndex()+1;n=2&&this.tokens.matches1AtIndex(e-2,Fe.dot))return!1;if(e>=2&&[Fe._var,Fe._let,Fe._const].includes(this.tokens.tokens[e-2].type))return!1;var n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(" ".concat(n," =")),!0)}},{key:"processComplexAssignment",value:function(){var e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==Fe.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,Fe.dot))return!1;var n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(" = ".concat(n)),this.tokens.copyToken(),!0)}},{key:"processPreIncDec",value:function(){var e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==Fe.name)return!1;if(t.shadowsGlobal)return!1;if(e+2=1&&this.tokens.matches1AtIndex(e-1,Fe.dot))return!1;var r=this.tokens.identifierNameForToken(t),a=this.importProcessor.resolveExportBinding(r);if(!a)return!1;var o=this.tokens.rawCodeForToken(n),i=this.importProcessor.getIdentifierReplacement(r)||r;if("++"===o)this.tokens.replaceToken("(".concat(i," = ").concat(a," = ").concat(i," + 1, ").concat(i," - 1)"));else{if("--"!==o)throw new Error("Unexpected operator: ".concat(o));this.tokens.replaceToken("(".concat(i," = ").concat(a," = ").concat(i," - 1, ").concat(i," + 1)"))}return this.tokens.removeToken(),!0}},{key:"processExportDefault",value:function(){var e=!0;if(this.tokens.matches4(Fe._export,Fe._default,Fe._function,Fe.name)||this.tokens.matches5(Fe._export,Fe._default,Fe.name,Fe._function,Fe.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Le._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();var t=this.processNamedFunction();this.tokens.appendCode(" exports.default = ".concat(t,";"))}else if(this.tokens.matches4(Fe._export,Fe._default,Fe._class,Fe.name)||this.tokens.matches5(Fe._export,Fe._default,Fe._abstract,Fe._class,Fe.name)||this.tokens.matches3(Fe._export,Fe._default,Fe.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(Fe._abstract)&&this.tokens.removeToken();var n=this.rootTransformer.processNamedClass();this.tokens.appendCode(" exports.default = ".concat(n,";"))}else if(Ko(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){var r=this.nameManager.claimFreeName("_default");this.tokens.replaceToken("let ".concat(r,"; exports.")),this.tokens.copyToken(),this.tokens.appendCode(" = ".concat(r," =")),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}},{key:"copyDecorators",value:function(){for(;this.tokens.matches1(Fe.at);)if(this.tokens.copyToken(),this.tokens.matches1(Fe.parenL))this.tokens.copyExpectedToken(Fe.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Fe.parenR);else{for(this.tokens.copyExpectedToken(Fe.name);this.tokens.matches1(Fe.dot);)this.tokens.copyExpectedToken(Fe.dot),this.tokens.copyExpectedToken(Fe.name);this.tokens.matches1(Fe.parenL)&&(this.tokens.copyExpectedToken(Fe.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Fe.parenR))}}},{key:"processExportVar",value:function(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}},{key:"isSimpleExportVar",value:function(){var e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,Fe.name))return!1;for(e++;e0?this.hoistedFunctionNames.map((function(e){return"".concat(e,"();")})).join(""):""}},{key:"extractHoistedCalls",value:function(){this.tokens.removeToken();for(var e=!1;this.tokens.matches3(Fe.dot,Fe.name,Fe.parenL);){var t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Jo.includes(t)){var n=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(n),this.tokens.replaceToken("function ".concat(n,"(){").concat($o,".")),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Fe.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken("".concat($o,".")),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Fe.parenR),e=!0}return!0}}]),n}(fn),ti=function(e){c(n,e);var t=m(n);function n(e){var r;return o(this,n),(r=t.call(this)).tokens=e,r}return l(n,[{key:"process",value:function(){if(this.tokens.matches1(Fe.num)){var e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}]),n}(fn),ni=function(e){c(n,e);var t=m(n);function n(e,r){var a;return o(this,n),(a=t.call(this)).tokens=e,a.nameManager=r,a}return l(n,[{key:"process",value:function(){return!!this.tokens.matches2(Fe._catch,Fe.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(" (".concat(this.nameManager.claimFreeName("e"),")")),!0)}}]),n}(fn),ri=function(e){c(n,e);var t=m(n);function n(e,r){var a;return o(this,n),(a=t.call(this)).tokens=e,a.nameManager=r,a}return l(n,[{key:"process",value:function(){if(this.tokens.matches1(Fe.nullishCoalescing)){var e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(Fe._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;var t=this.tokens.currentToken().subscriptStartIndex;if(null!=t&&this.tokens.tokens[t].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==Fe._super){var n,r=this.nameManager.claimFreeName("_");if(n=t>0&&this.tokens.matches1AtIndex(t-1,Fe._delete)&&this.isLastSubscriptInChain()?"".concat(r," => delete ").concat(r):"".concat(r," => ").concat(r),this.tokens.tokens[t].isAsyncOperation&&(n="async ".concat(n)),this.tokens.matches2(Fe.questionDot,Fe.parenL)||this.tokens.matches2(Fe.questionDot,Fe.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(", 'optionalCall', ".concat(n));else if(this.tokens.matches2(Fe.questionDot,Fe.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'optionalAccess', ".concat(n));else if(this.tokens.matches1(Fe.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'optionalAccess', ".concat(n,"."));else if(this.tokens.matches1(Fe.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'access', ".concat(n,"."));else if(this.tokens.matches1(Fe.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'access', ".concat(n,"["));else{if(!this.tokens.matches1(Fe.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(", 'call', ".concat(n,"("))}return!0}return!1}},{key:"isLastSubscriptInChain",value:function(){for(var e=0,t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}},{key:"justSkippedSuper",value:function(){for(var e=0,t=this.tokens.currentIndex()-1;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===Fe._super;t--}}}]),n}(fn),ai=function(e){c(n,e);var t=m(n);function n(e,r,a,i){var s;return o(this,n),(s=t.call(this)).rootTransformer=e,s.tokens=r,s.importProcessor=a,s.options=i,s}return l(n,[{key:"process",value:function(){var e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){var t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken("(0, ".concat(t,")")):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(Fe.name,Fe.dot,Fe.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){var n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}},{key:"tryProcessCreateClassCall",value:function(e){var t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(Fe.parenL),this.tokens.copyExpectedToken(Fe.braceL),this.tokens.appendCode("displayName: '".concat(t,"',")),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Fe.braceR),this.tokens.copyExpectedToken(Fe.parenR))}},{key:"findDisplayName",value:function(e){return e<2?null:this.tokens.matches2AtIndex(e-2,Fe.name,Fe.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===Dt.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,Fe._export,Fe._default)?this.getDisplayNameFromFilename():null}},{key:"getDisplayNameFromFilename",value:function(){var e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),r=-1===n?t:t.slice(0,n);return"index"===r&&e[e.length-2]?e[e.length-2]:r}},{key:"classNeedsDisplayName",value:function(){var e=this.tokens.currentIndex();if(!this.tokens.matches2(Fe.parenL,Fe.braceL))return!1;var t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e0&&void 0!==arguments[0]&&arguments[0];for(this.tokens.removeInitialToken();this.tokens.matches1(Fe._const)||this.tokens.matches1(Fe._enum);)this.tokens.removeToken();var t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode("var ".concat(t,"; (function (").concat(t,")")),this.tokens.copyExpectedToken(Fe.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(Fe.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(")(".concat(t," || (exports.").concat(t," = ").concat(t," = {}));")):this.tokens.appendCode(")(".concat(t," || (").concat(t," = {}));"))}},{key:"processEnumBody",value:function(e){for(var t=null;!this.tokens.matches1(Fe.braceR);){var n=this.extractEnumKeyInfo(this.tokens.currentToken()),r=n.nameStringCode,a=n.variableName;this.tokens.removeInitialToken(),this.tokens.matches3(Fe.eq,Fe.string,Fe.comma)||this.tokens.matches3(Fe.eq,Fe.string,Fe.braceR)?this.processStringLiteralEnumMember(e,r,a):this.tokens.matches1(Fe.eq)?this.processExplicitValueEnumMember(e,r,a):this.processImplicitValueEnumMember(e,r,a,t),this.tokens.matches1(Fe.comma)&&this.tokens.removeToken(),t=null!=a?a:"".concat(e,"[").concat(r,"]")}}},{key:"extractEnumKeyInfo",value:function(e){if(e.type===Fe.name){var t=this.tokens.identifierNameForToken(e);return{nameStringCode:'"'.concat(t,'"'),variableName:si(t)?t:null}}if(e.type===Fe.string){var n=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:si(n)?n:null}}throw new Error("Expected name or string at beginning of enum element.")}},{key:"processStringLiteralEnumMember",value:function(e,t,n){null!=n?(this.tokens.appendCode("const ".concat(n)),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode("; ".concat(e,"[").concat(t,"] = ").concat(n,";"))):(this.tokens.appendCode("".concat(e,"[").concat(t,"]")),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}},{key:"processExplicitValueEnumMember",value:function(e,t,n){var r=this.tokens.currentToken().rhsEndIndex;if(null==r)throw new Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode("const ".concat(n)),this.tokens.copyToken();this.tokens.currentIndex()0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(" (".concat(n," =")));var r=this.tokens.currentToken().contextId;if(null==r)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(Fe._class);!this.tokens.matchesContextIdAndLabel(Fe.braceL,r);)this.processToken();this.processClassBody(e,n);var a=e.staticInitializerNames.map((function(e){return"".concat(n,".").concat(e,"()")}));t?this.tokens.appendCode(", ".concat(a.map((function(e){return"".concat(e,", ")})).join("")).concat(n,")")):e.staticInitializerNames.length>0&&this.tokens.appendCode(" ".concat(a.map((function(e){return"".concat(e,";")})).join(" ")))}},{key:"processClassBody",value:function(e,t){var n=e.headerInfo,r=e.constructorInsertPos,a=e.constructorInitializerStatements,o=e.fields,i=e.instanceInitializerNames,s=e.rangesToRemove,l=0,u=0,c=this.tokens.currentToken().contextId;if(null==c)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(Fe.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");var d=a.length+i.length>0;if(null===r&&d){var f=this.makeConstructorInitCode(a,i,t);if(n.hasSuperclass){var p=this.nameManager.claimFreeName("args");this.tokens.appendCode("constructor(...".concat(p,") { super(...").concat(p,"); ").concat(f,"; }"))}else this.tokens.appendCode("constructor() { ".concat(f,"; }"))}for(;!this.tokens.matchesContextIdAndLabel(Fe.braceR,c);)if(l=s[u].start){for(this.tokens.currentIndex()"),!0}}return!1}},{key:"processPossibleAsyncArrowWithTypeParams",value:function(){if(!this.tokens.matchesContextual(Le._async)&&!this.tokens.matches1(Fe._async))return!1;var e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==Fe.lessThan||!e.isType)return!1;for(var t=this.tokens.currentIndex()+1;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,Fe.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()o?o:0),a.position+(0o-l||i&&i[1]===r?l=o:(n=++c.historyAt,c.history[n]=[a,r],c.history.splice(n+1),5000&&void 0!==arguments[0]?arguments[0]:{},t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):Di;return function(e){return di(e,{transforms:t}).code}}var Ti=function(e,n){return function(r){c(i,r);var a=m(i);function i(){return o(this,i),a.apply(this,arguments)}return l(i,[{key:"componentDidCatch",value:function(e){n(e)}},{key:"render",value:function(){return"function"===typeof e?(0,je.jsx)(e,{}):t.isValidElement(e)?e:null}}]),i}(t.Component)},_i=function(e,t){var n=Object.keys(t),r=n.map((function(e){return t[e]}));return N(Function,n.concat([e])).apply(void 0,(0,P.A)(r))};var Ci='const _jsxFileName = "";',Ai=function(e){return e.trim().replace(/;$/,"")},Mi=function(e){return e.replace(Ci,"").trim()},Ii=function(e){return Ci+e},Ni=function(e){return"return (".concat(e,")")},Pi=function(e,n){var r=e.code,a=void 0===r?"":r,o=e.scope,i=void 0===o?{}:o,s=e.enableTypeScript,l=["jsx"];(void 0===s||s)&&l.push("typescript");var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function Ui(e,t){var n=t.years,r=void 0===n?0:n,a=t.months,o=void 0===a?0:a,i=t.weeks,s=void 0===i?0:i,l=t.days,u=void 0===l?0:l,c=t.hours,d=void 0===c?0:c,f=t.minutes,p=void 0===f?0:f,h=t.seconds,m=void 0===h?0:h,v=Bi(e),g=o||r?qi(v,o+12*r):v,y=1e3*(m+60*(p+60*d));return Hi(e,(u||s?Wi(g,u+7*s):g).getTime()+y)}function Qi(e){return 6===Bi(e).getDay()}function Vi(e){return 0===Bi(e).getDay()}function Ki(e){var t=Bi(e).getDay();return 0===t||6===t}function Gi(e,t){var n=Bi(e),r=Ki(n);if(isNaN(t))return Hi(e,NaN);var a=n.getHours(),o=t<0?-1:1,i=Math.trunc(t/5);n.setDate(n.getDate()+7*i);for(var s=Math.abs(t%5);s>0;)n.setDate(n.getDate()+o),Ki(n)||(s-=1);return r&&Ki(n)&&0!==t&&(Qi(n)&&n.setDate(n.getDate()+(o<0?2:-1)),Vi(n)&&n.setDate(n.getDate()+(o<0?1:-2))),n.setHours(a),n}function Zi(e,t){return Hi(e,+Bi(e)+t)}var Xi=7,$i=365.2425,Ji=(Math.pow(10,8),6048e5),es=864e5,ts=6e4,ns=36e5,rs=1e3,as=525600,os=43200,is=1440,ss=60,ls=3,us=12,cs=4,ds=3600,fs=60,ps=24*ds,hs=7*ps,ms=ps*$i,vs=ms/12,gs=3*vs;function ys(e,t){return Zi(e,t*ns)}var ks={};function bs(){return ks}function ws(e){ks=e}function xs(e,t){var n,r,a,o,i,s,l=bs(),u=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:l.weekStartsOn)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Bi(e),d=c.getDay(),f=(d=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Es(e){var t=Bi(e);return t.setHours(0,0,0,0),t}function Ts(e){var t=Bi(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _s(e,t){var n=Es(e),r=Es(t),a=+n-Ts(n),o=+r-Ts(r);return Math.round((a-o)/es)}function Cs(e){var t=Ds(e),n=Hi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ss(n)}function As(e,t){var n=Bi(e),r=_s(n,Cs(n)),a=Hi(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),(n=Cs(a)).setDate(n.getDate()+r),n}function Ms(e,t){return As(e,Ds(e)+t)}function Is(e,t){return Zi(e,t*ts)}function Ns(e,t){return qi(e,3*t)}function Ps(e,t){return Zi(e,1e3*t)}function Os(e,t){return Wi(e,7*t)}function Rs(e,t){return qi(e,12*t)}function Ls(e,t,n){var r=[+Bi(e.start),+Bi(e.end)].sort((function(e,t){return e-t})),o=(0,a.A)(r,2),i=o[0],s=o[1],l=[+Bi(t.start),+Bi(t.end)].sort((function(e,t){return e-t})),u=(0,a.A)(l,2),c=u[0],d=u[1];return null!==n&&void 0!==n&&n.inclusive?i<=d&&c<=s:in||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function Ys(e,t){return js([Fs([e,t.start]),t.end])}function zs(e,t){var n=Bi(e);if(isNaN(Number(n)))return NaN;var r,a,o=n.getTime();return t.forEach((function(e,t){var n=Bi(e);if(isNaN(Number(n)))return r=NaN,void(a=NaN);var i=Math.abs(o-n.getTime());(null==r||i0?1:a}function Ws(e,t){var n=Bi(e),r=Bi(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}function qs(e){return Hi(e,Date.now())}function Us(e){var t=e/Xi,n=Math.trunc(t);return 0===n?0:n}function Qs(e,t){return+Es(e)===+Es(t)}function Vs(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Ks(e){if(!Vs(e)&&"number"!==typeof e)return!1;var t=Bi(e);return!isNaN(Number(t))}function Gs(e,t){var n=Bi(e),r=Bi(t);if(!Ks(n)||!Ks(r))return NaN;var a=_s(n,r),o=a<0?-1:1,i=Math.trunc(a/7),s=5*i;for(r=Wi(r,7*i);!Qs(n,r);)s+=Ki(r)?0:o,r=Wi(r,o);return 0===s?0:s}function Zs(e,t){return Ds(e)-Ds(t)}function Xs(e,t){var n=Ss(e),r=Ss(t),a=+n-Ts(n),o=+r-Ts(r);return Math.round((a-o)/Ji)}function $s(e,t){var n=Bi(e),r=Bi(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function Js(e){var t=Bi(e);return Math.trunc(t.getMonth()/3)+1}function el(e,t){var n=Bi(e),r=Bi(t);return 4*(n.getFullYear()-r.getFullYear())+(Js(n)-Js(r))}function tl(e,t,n){var r=xs(e,n),a=xs(t,n),o=+r-Ts(r),i=+a-Ts(a);return Math.round((o-i)/Ji)}function nl(e,t){var n=Bi(e),r=Bi(t);return n.getFullYear()-r.getFullYear()}function rl(e,t){var n=Bi(e),r=Bi(t),a=al(n,r),o=Math.abs(_s(n,r));n.setDate(n.getDate()-a*o);var i=a*(o-Number(al(n,r)===-a));return 0===i?0:i}function al(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function ol(e){return function(t){var n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function il(e,t){return+Bi(e)-+Bi(t)}function sl(e,t,n){var r=il(e,t)/ns;return ol(null===n||void 0===n?void 0:n.roundingMethod)(r)}function ll(e,t){return Ms(e,-t)}function ul(e,t){var n=Bi(e),r=Bi(t),a=Hs(n,r),o=Math.abs(Zs(n,r));n=ll(n,a*o);var i=a*(o-Number(Hs(n,r)===-a));return 0===i?0:i}function cl(e,t,n){var r=il(e,t)/ts;return ol(null===n||void 0===n?void 0:n.roundingMethod)(r)}function dl(e){var t=Bi(e);return t.setHours(23,59,59,999),t}function fl(e){var t=Bi(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pl(e){var t=Bi(e);return+dl(t)===+fl(t)}function hl(e,t){var n,r=Bi(e),a=Bi(t),o=Hs(r,a),i=Math.abs($s(r,a));if(i<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*i);var s=Hs(r,a)===-o;pl(Bi(e))&&1===i&&1===Hs(e,a)&&(s=!1),n=o*(i-Number(s))}return 0===n?0:n}function ml(e,t,n){var r=hl(e,t)/3;return ol(null===n||void 0===n?void 0:n.roundingMethod)(r)}function vl(e,t,n){var r=il(e,t)/1e3;return ol(null===n||void 0===n?void 0:n.roundingMethod)(r)}function gl(e,t,n){var r=rl(e,t)/7;return ol(null===n||void 0===n?void 0:n.roundingMethod)(r)}function yl(e,t){var n=Bi(e),r=Bi(t),a=Hs(n,r),o=Math.abs(nl(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=a*(o-+(Hs(n,r)===-a));return 0===i?0:i}function kl(e,t){var n,r=Bi(e.start),a=Bi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r;s.setHours(0,0,0,0);var l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);for(var u=[];+s<=i;)u.push(Bi(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?u.reverse():u}function bl(e,t){var n,r=Bi(e.start),a=Bi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r;s.setMinutes(0,0,0);var l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);for(var u=[];+s<=i;)u.push(Bi(s)),s=ys(s,l);return o?u.reverse():u}function wl(e){var t=Bi(e);return t.setSeconds(0,0),t}function xl(e,t){var n,r=wl(Bi(e.start)),a=Bi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r,l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);for(var u=[];+s<=i;)u.push(Bi(s)),s=Is(s,l);return o?u.reverse():u}function Sl(e,t){var n,r=Bi(e.start),a=Bi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r;s.setHours(0,0,0,0),s.setDate(1);var l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);for(var u=[];+s<=i;)u.push(Bi(s)),s.setMonth(s.getMonth()+l);return o?u.reverse():u}function Dl(e){var t=Bi(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function El(e,t){var n,r=Bi(e.start),a=Bi(e.end),o=+r>+a,i=o?+Dl(r):+Dl(a),s=Dl(o?a:r),l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);for(var u=[];+s<=i;)u.push(Bi(s)),s=Ns(s,l);return o?u.reverse():u}function Tl(e,t){var n,r=Bi(e.start),a=Bi(e.end),o=+r>+a,i=xs(o?a:r,t),s=xs(o?r:a,t);i.setHours(15),s.setHours(15);var l=+s.getTime(),u=i,c=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!c)return[];c<0&&(c=-c,o=!o);for(var d=[];+u<=l;)u.setHours(0),d.push(Bi(u)),(u=Os(u,c)).setHours(15);return o?d.reverse():d}function _l(e){for(var t=kl(e),n=[],r=0;r+a,i=o?+r:+a,s=o?a:r;s.setHours(0,0,0,0),s.setMonth(0,1);var l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);for(var u=[];+s<=i;)u.push(Bi(s)),s.setFullYear(s.getFullYear()+l);return o?u.reverse():u}function Ol(e){var t=Bi(e),n=t.getFullYear(),r=9+10*Math.floor(n/10);return t.setFullYear(r,11,31),t.setHours(23,59,59,999),t}function Rl(e){var t=Bi(e);return t.setMinutes(59,59,999),t}function Ll(e,t){var n,r,a,o,i,s,l=bs(),u=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:l.weekStartsOn)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Bi(e),d=c.getDay(),f=6+(d0?"in "+r:r+" ago":r};function Vl(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Kl={date:Vl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Vl({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:Vl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Gl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zl=function(e,t,n,r){return Gl[e]};function Xl(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var i=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var $l={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Xl({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Xl({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xl({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:Xl({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:Xl({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"})};function Jl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(a.length)}}}var tu={ordinalNumber:eu({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Jl({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:Jl({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(e){return e+1}}),month:Jl({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:Jl({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:Jl({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"})},nu={code:"en-US",formatDistance:Ql,formatLong:Kl,formatRelative:Zl,localize:$l,match:tu,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ru(e){var t=Bi(e);return _s(t,Il(t))+1}function au(e){var t=Bi(e),n=+Ss(t)-+Cs(t);return Math.round(n/Ji)+1}function ou(e,t){var n,r,a,o,i,s,l=Bi(e),u=l.getFullYear(),c=bs(),d=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==a?a:c.firstWeekContainsDate)&&void 0!==r?r:null===(s=c.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,f=Hi(e,0);f.setFullYear(u+1,0,d),f.setHours(0,0,0,0);var p=xs(f,t),h=Hi(e,0);h.setFullYear(u,0,d),h.setHours(0,0,0,0);var m=xs(h,t);return l.getTime()>=p.getTime()?u+1:l.getTime()>=m.getTime()?u:u-1}function iu(e,t){var n,r,a,o,i,s,l=bs(),u=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==a?a:l.firstWeekContainsDate)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,c=ou(e,t),d=Hi(e,0);return d.setFullYear(c,0,u),d.setHours(0,0,0,0),xs(d,t)}function su(e,t){var n=Bi(e),r=+xs(n,t)-+iu(n,t);return Math.round(r/Ji)+1}function lu(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}var uu={y:function(e,t){var n=e.getFullYear(),r=n>0?n:1-n;return lu("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getMonth();return"M"===t?String(n+1):lu(n+1,2)},d:function(e,t){return lu(e.getDate(),t.length)},a:function(e,t){var n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return lu(e.getHours()%12||12,t.length)},H:function(e,t){return lu(e.getHours(),t.length)},m:function(e,t){return lu(e.getMinutes(),t.length)},s:function(e,t){return lu(e.getSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getMilliseconds();return lu(Math.trunc(r*Math.pow(10,n-3)),t.length)}},cu="midnight",du="noon",fu="morning",pu="afternoon",hu="evening",mu="night",vu={G:function(e,t,n){var r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return uu.y(e,t)},Y:function(e,t,n,r){var a=ou(e,r),o=a>0?a:1-a;return"YY"===t?lu(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):lu(o,t.length)},R:function(e,t){return lu(Ds(e),t.length)},u:function(e,t){return lu(e.getFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return lu(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return lu(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getMonth();switch(t){case"M":case"MM":return uu.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return lu(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=su(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):lu(a,t.length)},I:function(e,t,n){var r=au(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):lu(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):uu.d(e,t)},D:function(e,t,n){var r=ru(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):lu(r,t.length)},E:function(e,t,n){var r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return lu(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return lu(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return lu(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getHours();switch(r=12===a?du:0===a?cu:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getHours();switch(r=a>=17?hu:a>=12?pu:a>=4?fu:mu,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return uu.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):uu.H(e,t)},K:function(e,t,n){var r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):lu(r,t.length)},k:function(e,t,n){var r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):lu(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):uu.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):uu.s(e,t)},S:function(e,t){return uu.S(e,t)},X:function(e,t,n){var r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return yu(r);case"XXXX":case"XX":return ku(r);default:return ku(r,":")}},x:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case"x":return yu(r);case"xxxx":case"xx":return ku(r);default:return ku(r,":")}},O:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gu(r,":");default:return"GMT"+ku(r,":")}},z:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gu(r,":");default:return"GMT"+ku(r,":")}},t:function(e,t,n){return lu(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return lu(e.getTime(),t.length)}};function gu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+lu(o,2)}function yu(e,t){return e%60===0?(e>0?"-":"+")+lu(Math.abs(e)/60,2):ku(e,t)}function ku(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e);return n+lu(Math.trunc(r/60),2)+t+lu(r%60,2)}var bu=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},wu=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},xu={p:wu,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return bu(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",bu(a,t)).replace("{{time}}",wu(o,t))}},Su=/^D+$/,Du=/^Y+$/,Eu=["D","DD","YY","YYYY"];function Tu(e){return Su.test(e)}function _u(e){return Du.test(e)}function Cu(e,t,n){var r=function(e,t,n){var r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),Eu.includes(e))throw new RangeError(r)}var Au=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Iu=/^'([^]*?)'?$/,Nu=/''/g,Pu=/[a-zA-Z]/;function Ou(e,t,n){var r,a,o,i,s,l,u,c,d,f,p,h,m,v,g=bs(),y=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:g.locale)&&void 0!==r?r:nu,k=null!==(o=null!==(i=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(u=n.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:g.firstWeekContainsDate)&&void 0!==i?i:null===(c=g.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:1,b=null!==(d=null!==(f=null!==(p=null!==(h=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==h?h:null===n||void 0===n||null===(m=n.locale)||void 0===m||null===(m=m.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==p?p:g.weekStartsOn)&&void 0!==f?f:null===(v=g.locale)||void 0===v||null===(v=v.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==d?d:0,w=Bi(e);if(!Ks(w))throw new RangeError("Invalid time value");var x=t.match(Mu).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,xu[t])(e,y.formatLong):e})).join("").match(Au).map((function(e){if("''"===e)return{isToken:!1,value:"'"};var t=e[0];if("'"===t)return{isToken:!1,value:Ru(e)};if(vu[t])return{isToken:!0,value:e};if(t.match(Pu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));y.localize.preprocessor&&(x=y.localize.preprocessor(w,x));var S={firstWeekContainsDate:k,weekStartsOn:b,locale:y};return x.map((function(r){if(!r.isToken)return r.value;var a=r.value;return(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!_u(a))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!Tu(a))||Cu(a,t,String(e)),(0,vu[a[0]])(w,a,y.localize,S)})).join("")}function Ru(e){var t=e.match(Iu);return t?t[1].replace(Nu,"'"):e}function Lu(e,t,n){var r,a,o=bs(),i=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:o.locale)&&void 0!==r?r:nu,s=Hs(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l,u,c=Object.assign({},n,{addSuffix:null===n||void 0===n?void 0:n.addSuffix,comparison:s});s>0?(l=Bi(t),u=Bi(e)):(l=Bi(e),u=Bi(t));var d,f=vl(u,l),p=(Ts(u)-Ts(l))/1e3,h=Math.round((f-p)/60);if(h<2)return null!==n&&void 0!==n&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,c):f<10?i.formatDistance("lessThanXSeconds",10,c):f<20?i.formatDistance("lessThanXSeconds",20,c):f<40?i.formatDistance("halfAMinute",0,c):f<60?i.formatDistance("lessThanXMinutes",1,c):i.formatDistance("xMinutes",1,c):0===h?i.formatDistance("lessThanXMinutes",1,c):i.formatDistance("xMinutes",h,c);if(h<45)return i.formatDistance("xMinutes",h,c);if(h<90)return i.formatDistance("aboutXHours",1,c);if(h0?(u=Bi(t),c=Bi(e)):(u=Bi(e),c=Bi(t));var f,p=ol(null!==(o=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==o?o:"round"),h=c.getTime()-u.getTime(),m=h/ts,v=(h-(Ts(c)-Ts(u)))/ts,g=null===n||void 0===n?void 0:n.unit;if("second"===(f=g||(m<1?"second":m<60?"minute":m0){var f=r.getMilliseconds();d="."+lu(Math.trunc(f*Math.pow(10,a-3)),a)}var p="",h=r.getTimezoneOffset();if(0!==h){var m=Math.abs(h),v=lu(Math.trunc(m/60),2),g=lu(m%60,2);p="".concat(h<0?"+":"-").concat(v,":").concat(g)}else p="Z";return"".concat(s,"-").concat(i,"-").concat(o,"T").concat(l,":").concat(u,":").concat(c).concat(d).concat(p)}var Qu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Vu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ku(e){var t=Bi(e);if(!Ks(t))throw new RangeError("Invalid time value");var n=Qu[t.getUTCDay()],r=lu(t.getUTCDate(),2),a=Vu[t.getUTCMonth()],o=t.getUTCFullYear(),i=lu(t.getUTCHours(),2),s=lu(t.getUTCMinutes(),2),l=lu(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(o," ").concat(i,":").concat(s,":").concat(l," GMT")}function Gu(e,t,n){var r,a,o,i,s,l,u,c,d,f=Bi(e),p=Bi(t),h=bs(),m=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:h.locale)&&void 0!==r?r:nu,v=null!==(o=null!==(i=null!==(s=null!==(l=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==l?l:null===n||void 0===n||null===(u=n.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==i?i:null===(c=h.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:0,g=_s(f,p);if(isNaN(g))throw new RangeError("Invalid time value");return d=g<-6?"other":g<-1?"lastWeek":g<0?"yesterday":g<1?"today":g<2?"tomorrow":g<7?"nextWeek":"other",Ou(f,m.formatRelative(d,f,p,{locale:m,weekStartsOn:v}),{locale:m,weekStartsOn:v})}function Zu(e){return Bi(1e3*e)}function Xu(e){return Bi(e).getDate()}function $u(e){return Bi(e).getDay()}function Ju(e){var t=Bi(e),n=t.getFullYear(),r=t.getMonth(),a=Hi(e,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function ec(e){var t=Bi(e).getFullYear();return t%400===0||t%4===0&&t%100!==0}function tc(e){var t=Bi(e);return"Invalid Date"===String(new Date(t))?NaN:ec(t)?366:365}function nc(e){var t=Bi(e).getFullYear();return 10*Math.floor(t/10)}function rc(){return Object.assign({},bs())}function ac(e){return Bi(e).getHours()}function oc(e){var t=Bi(e).getDay();return 0===t&&(t=7),t}function ic(e){var t=Cs(e),n=+Cs(Os(t,60))-+t;return Math.round(n/Ji)}function sc(e){return Bi(e).getMilliseconds()}function lc(e){return Bi(e).getMinutes()}function uc(e){return Bi(e).getMonth()}function cc(e,t){var n=[+Bi(e.start),+Bi(e.end)].sort((function(e,t){return e-t})),r=(0,a.A)(n,2),o=r[0],i=r[1],s=[+Bi(t.start),+Bi(t.end)].sort((function(e,t){return e-t})),l=(0,a.A)(s,2),u=l[0],c=l[1];if(!(oi?i:c,h=p-Ts(p);return Math.ceil((h-f)/es)}function dc(e){return Bi(e).getSeconds()}function fc(e){return Bi(e).getTime()}function pc(e){return Math.trunc(+Bi(e)/1e3)}function hc(e,t){var n,r,a,o,i,s,l=bs(),u=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:l.weekStartsOn)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Xu(e);if(isNaN(c))return NaN;var d=u-$u(Cl(e));d<=0&&(d+=7);var f=c-d;return Math.ceil(f/7)+1}function mc(e){var t=Bi(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vc(e,t){return tl(mc(e),Cl(e),t)+1}function gc(e){return Bi(e).getFullYear()}function yc(e){return Math.trunc(e*ns)}function kc(e){return Math.trunc(e*ss)}function bc(e){return Math.trunc(e*ds)}function wc(e,t,n){var r=Bi(e);if(isNaN(+r))throw new TypeError("Start date is invalid");var a=Bi(t);if(isNaN(+a))throw new TypeError("End date is invalid");if(null!==n&&void 0!==n&&n.assertPositive&&+r>+a)throw new TypeError("End date must be after start date");return{start:r,end:a}}function xc(e){var t=Bi(e.start),n=Bi(e.end),r={},a=yl(n,t);a&&(r.years=a);var o=Ui(t,{years:r.years}),i=hl(n,o);i&&(r.months=i);var s=Ui(o,{months:r.months}),l=rl(n,s);l&&(r.days=l);var u=Ui(s,{days:r.days}),c=sl(n,u);c&&(r.hours=c);var d=Ui(u,{hours:r.hours}),f=cl(n,d);f&&(r.minutes=f);var p=vl(n,Ui(d,{minutes:r.minutes}));return p&&(r.seconds=p),r}function Sc(e,t,n){var r,a,o;return void 0===(o=t)||"locale"in o?n=t:a=t,new Intl.DateTimeFormat(null===(r=n)||void 0===r?void 0:r.locale,a).format(Bi(e))}function Dc(e,t,n){var r,a=0,o=Bi(e),i=Bi(t);if(null!==n&&void 0!==n&&n.unit)"second"===(r=null===n||void 0===n?void 0:n.unit)?a=vl(o,i):"minute"===r?a=cl(o,i):"hour"===r?a=sl(o,i):"day"===r?a=_s(o,i):"week"===r?a=tl(o,i):"month"===r?a=$s(o,i):"quarter"===r?a=el(o,i):"year"===r&&(a=nl(o,i));else{var s=vl(o,i);Math.abs(s)r.getTime()}function Tc(e,t){return+Bi(e)<+Bi(t)}function _c(e,t){return+Bi(e)===+Bi(t)}function Cc(e,t,n){var r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}function Ac(e){return 1===Bi(e).getDate()}function Mc(e){return 5===Bi(e).getDay()}function Ic(e){return+Bi(e)>Date.now()}var Nc=n(4467);function Pc(e,t){var n=t instanceof Date?Hi(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}var Oc=function(){function e(){o(this,e),(0,Nc.A)(this,"subPriority",0)}return l(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Rc=function(e){c(n,e);var t=m(n);function n(e,r,a,i,s){var l;return o(this,n),(l=t.call(this)).value=e,l.validateValue=r,l.setValue=a,l.priority=i,s&&(l.subPriority=s),l}return l(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Oc),Lc=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0,a=r?t:1-t;if(a<=50)n=e||100;else{var o=a+50;n=e+100*Math.trunc(o/100)-(e>=o%100?100:0)}return r?n:1-n}function gd(e){return e%400===0||e%4===0&&e%100!==0}var yd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"set",value:function(e,t,n){var r=e.getFullYear();if(n.isTwoDigitYear){var a=vd(n.year,r);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}]),n}(Fc),kd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"set",value:function(e,t,n,r){var a=ou(e,r);if(n.isTwoDigitYear){var o=vd(n.year,a);return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),xs(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),xs(e,r)}}]),n}(Fc),bd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}]),n}(Fc),Sd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}]),n}(Fc),Dd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}]),n}(Fc),Ed=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}]),n}(Fc);function Td(e,t,n){var r=Bi(e),a=su(r,n)-t;return r.setDate(r.getDate()-7*a),r}var _d=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=53}},{key:"set",value:function(e,t,n,r){return xs(Td(e,n,r),r)}}]),n}(Fc);function Cd(e,t){var n=Bi(e),r=au(n)-t;return n.setDate(n.getDate()-7*r),n}var Ad=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=53}},{key:"set",value:function(e,t,n){return Ss(Cd(e,n))}}]),n}(Fc),Md=[31,28,31,30,31,30,31,31,30,31,30,31],Id=[31,29,31,30,31,30,31,31,30,31,30,31],Nd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=Id[r]:t>=1&&t<=Md[r]}},{key:"set",value:function(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}]),n}(Fc),Pd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}]),n}(Fc);function Od(e,t,n){var r,a,o,i,s,l,u=bs(),c=null!==(r=null!==(a=null!==(o=null!==(i=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==a?a:null===(l=u.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0,d=Bi(e),f=d.getDay(),p=7-c;return Wi(d,t<0||t>6?t-(f+p)%7:((t%7+7)%7+p)%7-(f+p)%7)}var Rd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Od(e,n,r)).setHours(0,0,0,0),e}}]),n}(Fc),Ld=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Od(e,n,r)).setHours(0,0,0,0),e}}]),n}(Fc),Fd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Od(e,n,r)).setHours(0,0,0,0),e}}]),n}(Fc);function jd(e,t){var n=Bi(e);return Wi(n,t-oc(n))}var Yd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=jd(e,n)).setHours(0,0,0,0),e}}]),n}(Fc),zd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}}]),n}(Fc),qd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setHours(n,0,0,0),e}}]),n}(Fc),Ud=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}]),n}(Fc),Qd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}]),n}(Fc),Vd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setMinutes(n,0,0),e}}]),n}(Fc),Kd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setSeconds(n,0),e}}]),n}(Fc),Gd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0)throw new RangeError("The format string mustn't contain `".concat(a,"` and any other token at the same time"));T.push({token:o,fullToken:a});var u=i.run(e,a,k.match,S);if(!u)return{v:Hi(n,NaN)};D.push(u.setter),e=u.rest}else{if(o.match(sf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===a?a="'":"'"===o&&(a=function(e){return e.match(rf)[1].replace(af,"'")}(a)),0!==e.indexOf(a))return{v:Hi(n,NaN)};e=e.slice(a.length)}};for(_.s();!(x=_.n()).done;){var A=C();if("object"===typeof A)return A.v}}catch(zh){_.e(zh)}finally{_.f()}if(e.length>0&&of.test(e))return Hi(n,NaN);var M=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),I=Bi(n);if(isNaN(I.getTime()))return Hi(n,NaN);var N,P={},R=(0,O.A)(M);try{for(R.s();!(N=R.n()).done;){var L=N.value;if(!L.validate(I,S))return Hi(n,NaN);var F=L.set(I,P,S);Array.isArray(F)?(I=F[0],Object.assign(P,F[1])):I=F}}catch(zh){R.e(zh)}finally{R.f()}return Hi(n,I)}function uf(e,t,n){return Ks(lf(e,t,new Date,n))}function cf(e){return 1===Bi(e).getDay()}function df(e){return+Bi(e)=i&&n<=s}function Ff(e,t){return Wi(e,-t)}function jf(e){return Qs(e,Ff(qs(e),1))}function Yf(e){var t=Bi(e),n=t.getFullYear(),r=9+10*Math.floor(n/10);return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function zf(e,t){var n,r,a,o,i,s,l=bs(),u=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:l.weekStartsOn)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Bi(e),d=c.getDay(),f=6+(d2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],hp.timeZoneDelimiter.test(n.date)&&(n.date=e.split(hp.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var a=hp.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(o.date){var i=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,a);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(mp);if(!n)return new Date(NaN);var r=!!n[4],a=yp(n[1]),o=yp(n[2])-1,i=yp(n[3]),s=yp(n[4]),l=yp(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,o=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bp[t]||(wp(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(wp(e)?366:365)}(t,a)?(u.setUTCFullYear(t,o,Math.max(a,i)),u):new Date(NaN)}(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),u=0;if(o.time&&(u=function(e){var t=e.match(vp);if(!t)return NaN;var n=kp(t[1]),r=kp(t[2]),a=kp(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*ns+r*ts+1e3*a}(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var c=new Date(l+u),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(gp);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*ns+a*ts)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var hp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,vp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yp(e){return e?parseInt(e):1}function kp(e){return e&&parseFloat(e.replace(",","."))||0}var bp=[31,null,31,30,31,30,31,31,30,31,30,31];function wp(e){return e%400===0||e%4===0&&e%100!==0}function xp(e){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}function Sp(e,t){var n=$u(e)-t;return n<=0&&(n+=7),Ff(e,n)}function Dp(e){return Sp(e,5)}function Ep(e){return Sp(e,1)}function Tp(e){return Sp(e,6)}function _p(e){return Sp(e,0)}function Cp(e){return Sp(e,4)}function Ap(e){return Sp(e,2)}function Mp(e){return Sp(e,3)}function Ip(e){return Math.trunc(e*ls)}function Np(e){var t=e/cs;return Math.trunc(t)}function Pp(e,t){var n,r,a=null!==(n=null===t||void 0===t?void 0:t.nearestTo)&&void 0!==n?n:1;if(a<1||a>12)return Hi(e,NaN);var o=Bi(e),i=o.getMinutes()/60,s=o.getSeconds()/60/60,l=o.getMilliseconds()/1e3/60/60,u=o.getHours()+i+s+l,c=ol(null!==(r=null===t||void 0===t?void 0:t.roundingMethod)&&void 0!==r?r:"round")(u/a)*a,d=Hi(e,o);return d.setHours(c,0,0,0),d}function Op(e,t){var n,r,a=null!==(n=null===t||void 0===t?void 0:t.nearestTo)&&void 0!==n?n:1;if(a<1||a>30)return Hi(e,NaN);var o=Bi(e),i=o.getSeconds()/60,s=o.getMilliseconds()/1e3/60,l=o.getMinutes()+i+s,u=ol(null!==(r=null===t||void 0===t?void 0:t.roundingMethod)&&void 0!==r?r:"round")(l/a)*a,c=Hi(e,o);return c.setMinutes(u,0,0),c}function Rp(e){var t=e/ds;return Math.trunc(t)}function Lp(e){return e*rs}function Fp(e){var t=e/fs;return Math.trunc(t)}function jp(e,t){var n=Bi(e),r=n.getFullYear(),a=n.getDate(),o=Hi(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);var i=Ju(o);return n.setMonth(t,Math.min(a,i)),n}function Yp(e,t){var n=Bi(e);return isNaN(+n)?Hi(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=jp(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function zp(e,t){var n=Bi(e);return n.setDate(t),n}function Bp(e,t){var n=Bi(e);return n.setMonth(0),n.setDate(t),n}function Hp(e){var t={},n=bs();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(void 0===e[a]?delete t[a]:t[a]=e[a]);ws(t)}function Wp(e,t){var n=Bi(e);return n.setHours(t),n}function qp(e,t){var n=Bi(e);return n.setMilliseconds(t),n}function Up(e,t){var n=Bi(e);return n.setMinutes(t),n}function Qp(e,t){var n=Bi(e),r=t-(Math.trunc(n.getMonth()/3)+1);return jp(n,n.getMonth()+3*r)}function Vp(e,t){var n=Bi(e);return n.setSeconds(t),n}function Kp(e,t,n){var r,a,o,i,s,l,u=bs(),c=null!==(r=null!==(a=null!==(o=null!==(i=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==a?a:null===(l=u.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:1,d=Bi(e),f=_s(d,iu(d,n)),p=Hi(e,0);return p.setFullYear(t,0,c),p.setHours(0,0,0,0),(d=iu(p,n)).setDate(d.getDate()+f),d}function Gp(e,t){var n=Bi(e);return isNaN(+n)?Hi(e,NaN):(n.setFullYear(t),n)}function Zp(e){var t=Bi(e),n=t.getFullYear(),r=10*Math.floor(n/10);return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function Xp(){return Es(Date.now())}function $p(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function Jp(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}function eh(e,t){return qi(e,-t)}function th(e,t){var n=t.years,r=void 0===n?0:n,a=t.months,o=void 0===a?0:a,i=t.weeks,s=void 0===i?0:i,l=t.days,u=void 0===l?0:l,c=t.hours,d=void 0===c?0:c,f=t.minutes,p=void 0===f?0:f,h=t.seconds,m=1e3*((void 0===h?0:h)+60*(p+60*d));return Hi(e,Ff(eh(e,o+12*r),u+7*s).getTime()-m)}function nh(e,t){return Gi(e,-t)}function rh(e,t){return ys(e,-t)}function ah(e,t){return Zi(e,-t)}function oh(e,t){return Is(e,-t)}function ih(e,t){return Ns(e,-t)}function sh(e,t){return Ps(e,-t)}function lh(e,t){return Os(e,-t)}function uh(e,t){return Rs(e,-t)}function ch(e){return Math.trunc(e*Xi)}function dh(e){return Math.trunc(e*$i)}function fh(e){return Math.trunc(e*us)}function ph(e){return Math.trunc(e*cs)}function hh(e){return e.replace(/sekuntia?/,"sekunnin")}function mh(e){return e.replace(/minuuttia?/,"minuutin")}function vh(e){return e.replace(/tuntia?/,"tunnin")}function gh(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function yh(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function kh(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var bh={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:hh},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:hh},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(e){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:mh},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:mh},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:vh},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:vh},xDays:{one:"p\xe4iv\xe4",other:"{{count}} p\xe4iv\xe4\xe4",futureTense:function(e){return e.replace(/p\xe4iv\xe4\xe4?/,"p\xe4iv\xe4n")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:gh},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:gh},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:yh},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:yh},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:kh},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:kh},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:kh},almostXYears:{one:"l\xe4hes vuosi",other:"l\xe4hes {{count}} vuotta",futureTense:kh}},wh={date:Vl({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:Vl({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:Vl({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},xh={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'t\xe4n\xe4\xe4n klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Sh={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Dh={narrow:Sh.narrow,abbreviated:Sh.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kes\xe4kuuta","hein\xe4kuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Eh={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},Th={narrow:Eh.narrow,short:Eh.short,abbreviated:Eh.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},_h={code:"fi",formatDistance:function(e,t,n){var r=bh[e],a=1===t?r.one:r.other.replace("{{count}}",String(t));return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r.futureTense(a)+" kuluttua":a+" sitten":a},formatLong:wh,formatRelative:function(e,t,n,r){return xh[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"."},era:Xl({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","j\xe4lkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:Xl({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xl({values:Sh,defaultWidth:"wide",formattingValues:Dh,defaultFormattingWidth:"wide"}),day:Xl({values:Eh,defaultWidth:"wide",formattingValues:Th,defaultFormattingWidth:"wide"}),dayPeriod:Xl({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},wide:{am:"ap",pm:"ip",midnight:"keskiy\xf6ll\xe4",noon:"keskip\xe4iv\xe4ll\xe4",morning:"aamup\xe4iv\xe4ll\xe4",afternoon:"iltap\xe4iv\xe4ll\xe4",evening:"illalla",night:"y\xf6ll\xe4"}},defaultWidth:"wide"})},match:{ordinalNumber:eu({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Jl({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|j\xe4lkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:Jl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Jl({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kes\xe4kuu|hein\xe4kuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:Jl({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Jl({matchPatterns:{narrow:/^(ap|ip|keskiy\xf6|keskip\xe4iv\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i,any:/^(ap|ip|keskiy\xf6ll\xe4|keskip\xe4iv\xe4ll\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiy\xf6/i,noon:/^keskip\xe4iv\xe4/i,morning:/aamup\xe4iv\xe4ll\xe4/i,afternoon:/iltap\xe4iv\xe4ll\xe4/i,evening:/illalla/i,night:/y\xf6ll\xe4/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var Ch={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Ah={date:Vl({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Vl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Vl({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mh={lastWeek:function(e){var t=e.getDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},Ih={code:"pt-BR",formatDistance:function(e,t,n){var r,a=Ch[e];return r="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"h\xe1 "+r:r},formatLong:Ah,formatRelative:function(e,t,n,r){var a=Mh[e];return"function"===typeof a?a(t):a},localize:{ordinalNumber:function(e,t){var n=Number(e);return"week"===(null===t||void 0===t?void 0:t.unit)?n+"\xaa":n+"\xba"},era:Xl({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:Xl({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xl({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Xl({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Xl({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:eu({matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Jl({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:Jl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Jl({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:Jl({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:Jl({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var Nh={code:"en-GB",formatDistance:Ql,formatLong:{date:Vl({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Vl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Vl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Zl,localize:$l,match:tu,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Ph=n(6604),Oh=n.n(Ph);const Rh=n.p+"static/media/edit-regular.3c9aad14d3d21daa587b5b2690065e36.svg";var Lh=function(n){c(a,n);var r=m(a);function a(){return o(this,a),r.apply(this,arguments)}return l(a,[{key:"componentDidMount",value:function(){(0,Yi.registerLocale)("fi",_h),(0,Yi.registerLocale)("pt-BR",Ih),(0,Yi.registerLocale)("en-GB",Nh)}},{key:"render",value:function(){var n=this.props.example,r=n.title,a=n.description,o=n.component;return(0,je.jsxs)("div",{id:"example-".concat(_()(r,{lower:!0})),className:"example",children:[(0,je.jsx)("h2",{className:"example__heading",children:r}),a&&(0,je.jsx)("p",{children:a}),(0,je.jsx)("div",{className:"row",children:(0,je.jsxs)(Ri,{code:o.trim(),scope:(0,C.A)((0,C.A)({PropTypes:M(),useState:t.useState,DatePicker:zi(),CalendarContainer:Yi.CalendarContainer},e),{},{range:Oh(),fi:_h,forwardRef:t.forwardRef}),theme:ne.github,children:[(0,je.jsxs)("pre",{className:"example__code",children:[(0,je.jsx)("img",{src:Rh,className:"example__code__edit_icon",alt:"edit icon",title:"Edit the code directly on the left side and and see the output on the right"}),(0,je.jsx)(Li,{})]}),(0,je.jsxs)("div",{className:"example__preview",children:[(0,je.jsx)(Fi,{}),(0,je.jsx)(ji,{})]})]})})]})}}]),a}(t.Component);var Fh=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i {\n const [startDate, setStartDate] = useState(new Date());\n return (\n setStartDate(date)} />\n );\n};\n"},{title:"Calendar Icon",component:"() => {\n const [startDate, setStartDate] = useState(new Date());\n return (\n