@next-core/brick-playground 1.16.22 → 1.16.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see vendors.c77c822c.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_next_core_preview=globalThis.webpackChunk_next_core_preview||[]).push([[96],{264:(t,e,r)=>{"use strict";function s(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(t){return t&&t.sensitive?"":"i"}function n(t,e,r){return t instanceof RegExp?function(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,i=r.exec(t.source);i;)e.push({name:i[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,r){var s=t.map((function(t){return n(t,e,r).source}));return new RegExp("(?:".concat(s.join("|"),")"),i(r))}(t,e,r):function(t,e,r){return function(t,e,r){void 0===r&&(r={});for(var n=r.strict,a=void 0!==n&&n,o=r.start,c=void 0===o||o,l=r.end,u=void 0===l||l,h=r.encode,p=void 0===h?function(t){return t}:h,d=r.delimiter,f=void 0===d?"/#?":d,m=r.endsWith,y="[".concat(s(void 0===m?"":m),"]|$"),g="[".concat(s(f),"]"),v=c?"^":"",x=0,b=t;x<b.length;x++){var w=b[x];if("string"==typeof w)v+=s(p(w));else{var P=s(p(w.prefix)),T=s(p(w.suffix));if(w.pattern)if(e&&e.push(w),P||T)if("+"===w.modifier||"*"===w.modifier){var S="*"===w.modifier?"?":"";v+="(?:".concat(P,"((?:").concat(w.pattern,")(?:").concat(T).concat(P,"(?:").concat(w.pattern,"))*)").concat(T,")").concat(S)}else v+="(?:".concat(P,"(").concat(w.pattern,")").concat(T,")").concat(w.modifier);else{if("+"===w.modifier||"*"===w.modifier)throw new TypeError('Can not repeat "'.concat(w.name,'" without a prefix and suffix'));v+="(".concat(w.pattern,")").concat(w.modifier)}else v+="(?:".concat(P).concat(T,")").concat(w.modifier)}}if(u)a||(v+="".concat(g,"?")),v+=r.endsWith?"(?=".concat(y,")"):"$";else{var A=t[t.length-1],k="string"==typeof A?g.indexOf(A[A.length-1])>-1:void 0===A;a||(v+="(?:".concat(g,"(?=").concat(y,"))?")),k||(v+="(?=".concat(g,"|").concat(y,")"))}return new RegExp(v,i(r))}(function(t,e){void 0===e&&(e={});for(var r=function(t){for(var e=[],r=0;r<t.length;){var s=t[r];if("*"!==s&&"+"!==s&&"?"!==s)if("\\"!==s)if("{"!==s)if("}"!==s)if(":"!==s)if("("!==s)e.push({type:"CHAR",index:r,value:t[r++]});else{var i=1,n="";if("?"===t[o=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<t.length;)if("\\"!==t[o]){if(")"===t[o]){if(0==--i){o++;break}}else if("("===t[o]&&(i++,"?"!==t[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));n+=t[o++]}else n+=t[o++]+t[o++];if(i)throw new TypeError("Unbalanced pattern at ".concat(r));if(!n)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:n}),r=o}else{for(var a="",o=r+1;o<t.length;){var c=t.charCodeAt(o);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=t[o++]}if(!a)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:a}),r=o}else e.push({type:"CLOSE",index:r,value:t[r++]});else e.push({type:"OPEN",index:r,value:t[r++]});else e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else e.push({type:"MODIFIER",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}(t),i=e.prefixes,n=void 0===i?"./":i,a=e.delimiter,o=void 0===a?"/#?":a,c=[],l=0,u=0,h="",p=function(t){if(u<r.length&&r[u].type===t)return r[u++].value},d=function(t){var e=p(t);if(void 0!==e)return e;var s=r[u],i=s.type,n=s.index;throw new TypeError("Unexpected ".concat(i," at ").concat(n,", expected ").concat(t))},f=function(){for(var t,e="";t=p("CHAR")||p("ESCAPED_CHAR");)e+=t;return e},m=function(t){var e=c[c.length-1],r=t||(e&&"string"==typeof e?e:"");if(e&&!r)throw new TypeError('Must have text between two parameters, missing text after "'.concat(e.name,'"'));return!r||function(t){for(var e=0,r=o;e<r.length;e++){var s=r[e];if(t.indexOf(s)>-1)return!0}return!1}(r)?"[^".concat(s(o),"]+?"):"(?:(?!".concat(s(r),")[^").concat(s(o),"])+?")};u<r.length;){var y=p("CHAR"),g=p("NAME"),v=p("PATTERN");if(g||v){var x=y||"";-1===n.indexOf(x)&&(h+=x,x=""),h&&(c.push(h),h=""),c.push({name:g||l++,prefix:x,suffix:"",pattern:v||m(x),modifier:p("MODIFIER")||""})}else{var b=y||p("ESCAPED_CHAR");if(b)h+=b;else if(h&&(c.push(h),h=""),p("OPEN")){x=f();var w=p("NAME")||"",P=p("PATTERN")||"",T=f();d("CLOSE"),c.push({name:w||(P?l++:""),pattern:w&&!P?m(x):P,prefix:x,suffix:T,modifier:p("MODIFIER")||""})}else d("END")}}return c}(t,r),e,r)}(t,e,r)}r.d(e,{MM:()=>n})},273:(t,e,r)=>{"use strict";var s;try{s=Object(function(){var t=new Error("Cannot find module 'buffer'");throw t.code="MODULE_NOT_FOUND",t}())}catch(t){}var i=r(5417),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,s=0,i=t.length,a=n;for(r=0;r<i;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;s+=6}return s%8==0},construct:function(t){var e,r,i=t.replace(/[\r\n=]/g,""),a=i.length,o=n,c=0,l=[];for(e=0;e<a;e++)e%4==0&&e&&(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)),c=c<<6|o.indexOf(i.charAt(e));return 0==(r=a%4*6)?(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)):18===r?(l.push(c>>10&255),l.push(c>>2&255)):12===r&&l.push(c>>4&255),s?s.from?s.from(l):new s(l):l},predicate:function(t){return s&&s.isBuffer(t)},represent:function(t){var e,r,s="",i=0,a=t.length,o=n;for(e=0;e<a;e++)e%3==0&&e&&(s+=o[i>>18&63],s+=o[i>>12&63],s+=o[i>>6&63],s+=o[63&i]),i=(i<<8)+t[e];return 0==(r=a%3)?(s+=o[i>>18&63],s+=o[i>>12&63],s+=o[i>>6&63],s+=o[63&i]):2===r?(s+=o[i>>10&63],s+=o[i>>4&63],s+=o[i<<2&63],s+=o[64]):1===r&&(s+=o[i>>2&63],s+=o[i<<4&63],s+=o[64],s+=o[64]),s}})},343:(t,e,r)=>{"use strict";var s=r(5417),i=Object.prototype.toString;t.exports=new s("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,s,n,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(s=o[e],"[object Object]"!==i.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;a[e]=[n[0],s[n[0]]]}return!0},construct:function(t){if(null===t)return[];var e,r,s,i,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1)s=a[e],i=Object.keys(s),n[e]=[i[0],s[i[0]]];return n}})},414:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(1369);function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(0,s.A)(i.key),i)}}function n(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}},726:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>T});var s=r(5152),i=r(414),n=[],a=n.forEach,o=n.slice,c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,l={name:"cookie",lookup:function(t){var e;if(t.lookupCookie&&"undefined"!=typeof document){var r=function(t){for(var e="".concat(t,"="),r=document.cookie.split(";"),s=0;s<r.length;s++){for(var i=r[s];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null}(t.lookupCookie);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupCookie&&"undefined"!=typeof document&&function(t,e,r,s){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*r*1e3)),s&&(i.domain=s),document.cookie=function(t,e,r){var s=r||{};s.path=s.path||"/";var i=encodeURIComponent(e),n="".concat(t,"=").concat(i);if(s.maxAge>0){var a=s.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");n+="; Max-Age=".concat(Math.floor(a))}if(s.domain){if(!c.test(s.domain))throw new TypeError("option domain is invalid");n+="; Domain=".concat(s.domain)}if(s.path){if(!c.test(s.path))throw new TypeError("option path is invalid");n+="; Path=".concat(s.path)}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw new TypeError("option expires is invalid");n+="; Expires=".concat(s.expires.toUTCString())}if(s.httpOnly&&(n+="; HttpOnly"),s.secure&&(n+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:n+="; SameSite=Strict";break;case"lax":n+="; SameSite=Lax";break;case"strict":n+="; SameSite=Strict";break;case"none":n+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n}(t,encodeURIComponent(e),i)}(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},u={name:"querystring",lookup:function(t){var e;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var s=r.substring(1).split("&"),i=0;i<s.length;i++){var n=s[i].indexOf("=");n>0&&s[i].substring(0,n)===t.lookupQuerystring&&(e=s[i].substring(n+1))}}return e}},h=null,p=function(){if(null!==h)return h;try{h="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){h=!1}return h},d={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&p()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&p()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},f=null,m=function(){if(null!==f)return f;try{f="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){f=!1}return f},y={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&m()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&m()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},g={name:"navigator",lookup:function(t){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)e.push(navigator.languages[r]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},v={name:"htmlTag",lookup:function(t){var e,r=t.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(e=r.getAttribute("lang")),e}},x={name:"path",lookup:function(t){var e;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof t.lookupFromPathIndex){if("string"!=typeof r[t.lookupFromPathIndex])return;e=r[t.lookupFromPathIndex].replace("/","")}else e=r[0].replace("/","")}return e}},b={name:"subdomain",lookup:function(t){var e="number"==typeof t.lookupFromSubdomainIndex?t.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[e]}},w=!1;try{document.cookie,w=!0}catch(t){}var P=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];w||P.splice(1,1);var T=(0,i.A)((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,t),this.type="languageDetector",this.detectors={},this.init(e,r)}),[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=function(t){return a.call(o.call(arguments,1),(function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])})),t}(e,this.options||{},{order:P,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(t){return t.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(l),this.addDetector(u),this.addDetector(d),this.addDetector(y),this.addDetector(g),this.addDetector(v),this.addDetector(x),this.addDetector(b)}},{key:"addDetector",value:function(t){return this.detectors[t.name]=t,this}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var r=[];return t.forEach((function(t){if(e.detectors[t]){var s=e.detectors[t].lookup(e.options);s&&"string"==typeof s&&(s=[s]),s&&(r=r.concat(s))}})),r=r.map((function(t){return e.options.convertDetectedLanguage(t)})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var r=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)})))}}]);T.type="languageDetector"},829:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(2559);function i(t,e){return t.get((0,s.A)(t,e))}},843:(t,e,r)=>{"use strict";r.r(e),r.d(e,{changeLanguage:()=>mt,createInstance:()=>lt,default:()=>ct,dir:()=>ut,exists:()=>vt,getFixedT:()=>yt,hasLoadedNamespace:()=>bt,init:()=>ht,loadLanguages:()=>Pt,loadNamespaces:()=>wt,loadResources:()=>pt,reloadResources:()=>dt,setDefaultNamespace:()=>xt,t:()=>gt,use:()=>ft});var s=r(7545),i=r(5152),n=r(414);function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}function l(t,e){if(e&&("object"==(0,s.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var h=r(4586);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=Array(e);r<e;r++)s[r]=t[r];return s}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},y=new(function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,t),this.init(e,r)}return(0,n.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||m,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,r,s){return s&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,f(f({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),g=function(){function t(){(0,i.A)(this,t),this.observers={}}return(0,n.A)(t,[{key:"on",value:function(t,e){var r=this;return t.split(" ").forEach((function(t){r.observers[t]=r.observers[t]||[],r.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach((function(t){t.apply(void 0,r)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(e){e.apply(e,[t].concat(r))}))}}]),t}();function v(){var t,e,r=new Promise((function(r,s){t=r,e=s}));return r.resolve=t,r.reject=e,r}function x(t){return null==t?"":""+t}function b(t,e,r){function s(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var n="string"!=typeof e?[].concat(e):e.split(".");n.length>1;){if(i())return{};var a=s(n.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return i()?{}:{obj:t,k:s(n.shift())}}function w(t,e,r){var s=b(t,e,Object);s.obj[s.k]=r}function P(t,e){var r=b(t,e),s=r.obj,i=r.k;if(s)return s[i]}function T(t,e,r){for(var s in e)"__proto__"!==s&&"constructor"!==s&&(s in t?"string"==typeof t[s]||t[s]instanceof String||"string"==typeof e[s]||e[s]instanceof String?r&&(t[s]=e[s]):T(t[s],e[s],r):t[s]=e[s]);return t}function S(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function k(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return A[t]})):t}var _="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=[" ",",","?","!",";"];function C(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var s=e.split(r),i=t,n=0;n<s.length;++n){if(!i)return;if("string"==typeof i[s[n]]&&n+1<s.length)return;if(void 0===i[s[n]]){for(var a=2,o=s.slice(n,n+a).join(r),c=i[o];void 0===c&&s.length>n+a;)a++,c=i[o=s.slice(n,n+a).join(r)];if(void 0===c)return;if(null===c)return null;if(e.endsWith(o)){if("string"==typeof c)return c;if(o&&"string"==typeof c[o])return c[o]}var l=s.slice(n+a).join(r);return l?C(c,l,r):void 0}i=i[s[n]]}return i}}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var M=function(t){c(o,t);var e,r,s=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,s=u(e);if(r){var i=u(this).constructor;t=Reflect.construct(s,arguments,i)}else t=s.apply(this,arguments);return l(this,t)});function o(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,i.A)(this,o),e=s.call(this),_&&g.call(a(e)),e.data=t||{},e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return(0,n.A)(o,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,n=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));var o=P(this.data,a);return o||!n||"string"!=typeof r?o:C(this.data&&this.data[t]&&this.data[t][e],r,i)}},{key:"addResource",value:function(t,e,r,s){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[t,e];r&&(a=a.concat(n?r.split(n):r)),t.indexOf(".")>-1&&(s=e,e=(a=t.split("."))[1]),this.addNamespaces(e),w(this.data,a,s),i.silent||this.emit("added",t,e,r,s)}},{key:"addResources",value:function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(t,e,i,r[i],{silent:!0});s.silent||this.emit("added",t,e,r)}},{key:"addResourceBundle",value:function(t,e,r,s,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(s=r,r=e,e=(a=t.split("."))[1]),this.addNamespaces(e);var o=P(this.data,a)||{};s?T(o,r,i):o=I(I({},o),r),w(this.data,a,o),n.silent||this.emit("added",t,e,r)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?I(I({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((function(t){return e[t]&&Object.keys(e[t]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(g),L={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,s,i){var n=this;return t.forEach((function(t){n.processors[t]&&(e=n.processors[t].process(e,r,s,i))})),e}};function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var F={},j=function(t){c(h,t);var e,r,o=(e=h,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,s=u(e);if(r){var i=u(this).constructor;t=Reflect.construct(s,arguments,i)}else t=s.apply(this,arguments);return l(this,t)});function h(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.A)(this,h),e=o.call(this),_&&g.call(a(e)),function(t,e,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(t){e[t]&&(r[t]=e[t])}))}(0,t,a(e)),e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=y.create("translator"),e}return(0,n.A)(h,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var r=this.resolve(t,e);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(t,e){var r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var s=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],n=r&&t.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,r){e=e||"",r=r||"";var s=E.filter((function(t){return e.indexOf(t)<0&&r.indexOf(t)<0}));if(0===s.length)return!0;var i=new RegExp("(".concat(s.map((function(t){return"?"===t?"\\?":t})).join("|"),")")),n=!i.test(t);if(!n){var a=t.indexOf(r);a>0&&!i.test(t.substring(0,a))&&(n=!0)}return n}(t,r,s));if(n&&!a){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:i};var c=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(s)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,r){var i=this;if("object"!==(0,s.A)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"===(0,s.A)(e)&&(e=D({},e)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var n=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,a=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,o=this.extractFromKey(t[t.length-1],e),c=o.key,l=o.namespaces,u=l[l.length-1],p=e.lng||this.language,d=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(d){var f=e.nsSeparator||this.options.nsSeparator;return n?{res:"".concat(u).concat(f).concat(c),usedKey:c,exactUsedKey:c,usedLng:p,usedNS:u}:"".concat(u).concat(f).concat(c)}return n?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:u}:c}var m=this.resolve(t,e),y=m&&m.res,g=m&&m.usedKey||c,v=m&&m.exactUsedKey||c,x=Object.prototype.toString.apply(y),b=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&y&&"string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(x)<0&&("string"!=typeof b||"[object Array]"!==x)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,D(D({},e),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return n?(m.res=P,m):P}if(a){var T="[object Array]"===x,S=T?[]:{},A=T?v:g;for(var k in y)if(Object.prototype.hasOwnProperty.call(y,k)){var _="".concat(A).concat(a).concat(k);S[k]=this.translate(_,D(D({},e),{joinArrays:!1,ns:l})),S[k]===_&&(S[k]=y[k])}y=S}}else if(w&&"string"==typeof b&&"[object Array]"===x)(y=y.join(b))&&(y=this.extendTranslation(y,t,e,r));else{var E=!1,C=!1,N=void 0!==e.count&&"string"!=typeof e.count,I=h.hasDefaultValue(e),M=N?this.pluralResolver.getSuffix(p,e.count,e):"",L=e["defaultValue".concat(M)]||e.defaultValue;!this.isValidLookup(y)&&I&&(E=!0,y=L),this.isValidLookup(y)||(C=!0,y=c);var O=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:y,F=I&&L!==y&&this.options.updateMissing;if(C||E||F){if(this.logger.log(F?"updateKey":"missingKey",p,u,c,F?L:y),a){var j=this.resolve(c,D(D({},e),{},{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var Y=0;Y<B.length;Y++)R.push(B[Y]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(e.lng||this.language):R.push(e.lng||this.language);var U=function(t,r,s){var n=I&&s!==y?s:O;i.options.missingKeyHandler?i.options.missingKeyHandler(t,u,r,n,F,e):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(t,u,r,n,F,e),i.emit("missingKey",t,u,r,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?R.forEach((function(t){i.pluralResolver.getSuffixes(t,e).forEach((function(r){U([t],c+r,e["defaultValue".concat(r)]||L)}))})):U(R,c,L))}y=this.extendTranslation(y,t,e,m,r),C&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(u,":").concat(c)),(C||E)&&this.options.parseMissingKeyHandler&&(y="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(c):c,E?y:void 0):this.options.parseMissingKeyHandler(y))}return n?(m.res=y,m):y}},{key:"extendTranslation",value:function(t,e,r,s,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,D(D({},this.options.interpolation.defaultVariables),r),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D(D({},r),{interpolation:D(D({},this.options.interpolation),r.interpolation)}));var a,o="string"==typeof t&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){var c=t.match(this.interpolator.nestingRegexp);a=c&&c.length}var l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l=D(D({},this.options.interpolation.defaultVariables),l)),t=this.interpolator.interpolate(t,l,r.lng||this.language,r),o){var u=t.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&s&&s.res&&(r.lng=s.usedLng),!1!==r.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];return i&&i[0]===s[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(s[0]," in key: ").concat(e[0])),null):n.translate.apply(n,s.concat([e]))}),r)),r.interpolation&&this.interpolator.reset()}var h=r.postProcess||this.options.postProcess,p="string"==typeof h?[h]:h;return null!=t&&p&&p.length&&!1!==r.applyPostProcessor&&(t=L.handle(p,t,e,this.options&&this.options.postProcessPassResolved?D({i18nResolved:s},r):r,this)),t}},{key:"resolve",value:function(t){var e,r,s,i,n,a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!a.isValidLookup(e)){var c=a.extractFromKey(t,o),l=c.key;r=l;var u=c.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var h=void 0!==o.count&&"string"!=typeof o.count,p=h&&!o.ordinal&&0===o.count&&a.pluralResolver.shouldUseIntlApi(),d=void 0!==o.context&&("string"==typeof o.context||"number"==typeof o.context)&&""!==o.context,f=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);u.forEach((function(t){a.isValidLookup(e)||(n=t,!F["".concat(f[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(n)&&(F["".concat(f[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(r){if(!a.isValidLookup(e)){i=r;var n,c=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,l,r,t,o);else{var u;h&&(u=a.pluralResolver.getSuffix(r,o.count,o));var f="".concat(a.options.pluralSeparator,"zero");if(h&&(c.push(l+u),p&&c.push(l+f)),d){var m="".concat(l).concat(a.options.contextSeparator).concat(o.context);c.push(m),h&&(c.push(m+u),p&&c.push(m+f))}}for(;n=c.pop();)a.isValidLookup(e)||(s=n,e=a.getResource(r,t,n,o))}})))}))}})),{res:e,usedKey:r,exactUsedKey:s,usedLng:i,usedNS:n}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,s):this.resourceStore.getResource(t,e,r,s)}}],[{key:"hasDefaultValue",value:function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}]),h}(g);function R(t){return t.charAt(0).toUpperCase()+t.slice(1)}var B=function(){function t(e){(0,i.A)(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return(0,n.A)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(t){return t.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=R(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=R(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=R(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,r=this;return t?(t.forEach((function(t){if(!e){var s=r.formatLanguageCode(t);r.options.supportedLngs&&!r.isSupportedCode(s)||(e=s)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var s=r.getLanguagePartFromCode(t);if(r.isSupportedCode(s))return e=s;e=r.options.supportedLngs.find((function(t){return t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:0===t.indexOf(s)?t:void 0}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,e){var r=this,s=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],n=function(t){t&&(r.isSupportedCode(t)?i.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):"string"==typeof t&&n(this.formatLanguageCode(t)),s.forEach((function(t){i.indexOf(t)<0&&n(r.formatLanguageCode(t))})),i}}]),t}(),Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],U={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},H=["v1","v2","v3"],W={zero:0,one:1,two:2,few:3,many:4,other:5},z=function(){function t(e){var r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,t),this.languageUtils=e,this.options=s,this.logger=y.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},Y.forEach((function(t){t.lngs.forEach((function(e){r[e]={numbers:t.nr,plurals:U[t.fc]}}))})),r)}return(0,n.A)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,e);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,r).map((function(t){return"".concat(e).concat(t)}))}},{key:"getSuffixes",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.getRule(t,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((function(t,e){return W[t]-W[e]})).map((function(t){return"".concat(e.options.prepend).concat(t)})):s.numbers.map((function(s){return e.getSuffix(t,s,r)})):[]}},{key:"getSuffix",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.getRule(t,r);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(s.select(e)):this.getSuffixRetroCompatible(s,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var r=this,s=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),i=t.numbers[s];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var n=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?n():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}},{key:"shouldUseIntlApi",value:function(){return!H.includes(this.options.compatibilityJSON)}}]),t}();function V(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?V(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=function(t,e,r){var s=P(t,r);return void 0!==s?s:P(e,r)}(t,e,r);return!n&&i&&"string"==typeof r&&void 0===(n=C(t,r,s))&&(n=C(e,r,s)),n}var K=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,t),this.logger=y.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return(0,n.A)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:k,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?S(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?S(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?S(e.nestingPrefix):e.nestingPrefixEscaped||S("$t("),this.nestingSuffix=e.nestingSuffix?S(e.nestingSuffix):e.nestingSuffixEscaped||S(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,e,r,s){var i,n,a,o=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(t){return t.replace(/\$/g,"$$$$")}var u=function(t){if(t.indexOf(o.formatSeparator)<0){var i=$(e,c,t,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(i,void 0,r,q(q(q({},s),e),{},{interpolationkey:t})):i}var n=t.split(o.formatSeparator),a=n.shift().trim(),l=n.join(o.formatSeparator).trim();return o.format($(e,c,a,o.options.keySeparator,o.options.ignoreJSONStructure),l,r,q(q(q({},s),e),{},{interpolationkey:a}))};this.resetRegExp();var h=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return l(t)}},{regex:this.regexp,safeValue:function(t){return o.escapeValue?l(o.escape(t)):l(t)}}].forEach((function(e){for(a=0;i=e.regex.exec(t);){var r=i[1].trim();if(void 0===(n=u(r)))if("function"==typeof h){var c=h(t,i,s);n="string"==typeof c?c:""}else if(s&&Object.prototype.hasOwnProperty.call(s,r))n="";else{if(p){n=i[0];continue}o.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(t)),n=""}else"string"==typeof n||o.useRawValueToEscape||(n=x(n));var l=e.safeValue(n);if(t=t.replace(i[0],l),p?(e.regex.lastIndex+=n.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++a>=o.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var r,s,i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(t,e){var r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;var s=t.split(new RegExp("".concat(r,"[ ]*{"))),n="{".concat(s[1]);t=s[0];var a=(n=this.interpolate(n,i)).match(/'/g),o=n.match(/"/g);(a&&a.length%2==0&&!o||o.length%2!=0)&&(n=n.replace(/'/g,'"'));try{i=JSON.parse(n),e&&(i=q(q({},e),i))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(r).concat(n)}return delete i.defaultValue,t}for(;r=this.nestingRegexp.exec(t);){var c=[];(i=(i=q({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(t){return t.trim()}));r[1]=u.shift(),c=u,l=!0}if((s=e(o.call(this,r[1].trim(),i),i))&&r[0]===t&&"string"!=typeof s)return s;"string"!=typeof s&&(s=x(s)),s||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),s=""),l&&(s=c.reduce((function(t,e){return n.format(t,e,a.lng,q(q({},a),{},{interpolationkey:r[1].trim()}))}),s.trim())),t=t.replace(r[0],s),this.regexp.lastIndex=0}return t}}]),t}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t){var e={};return function(r,s,i){var n=s+JSON.stringify(i),a=e[n];return a||(a=t(s,i),e[n]=a),a(r)}}var Z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,t),this.logger=y.create("formatter"),this.options=e,this.formats={number:X((function(t,e){var r=new Intl.NumberFormat(t,G({},e));return function(t){return r.format(t)}})),currency:X((function(t,e){var r=new Intl.NumberFormat(t,G(G({},e),{},{style:"currency"}));return function(t){return r.format(t)}})),datetime:X((function(t,e){var r=new Intl.DateTimeFormat(t,G({},e));return function(t){return r.format(t)}})),relativetime:X((function(t,e){var r=new Intl.RelativeTimeFormat(t,G({},e));return function(t){return r.format(t,e.range||"day")}})),list:X((function(t,e){var r=new Intl.ListFormat(t,G({},e));return function(t){return r.format(t)}}))},this.init(e)}return(0,n.A)(t,[{key:"init",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=X(e)}},{key:"format",value:function(t,e,r){var s=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce((function(t,e){var n=function(t){var e=t.toLowerCase().trim(),r={};if(t.indexOf("(")>-1){var s=t.split("(");e=s[0].toLowerCase().trim();var i=s[1].substring(0,s[1].length-1);"currency"===e&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach((function(t){if(t){var e=function(t){if(Array.isArray(t))return t}(n=t.split(":"))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=e[0],i=e.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[s.trim()]||(r[s.trim()]=i),"false"===i&&(r[s.trim()]=!1),"true"===i&&(r[s.trim()]=!0),isNaN(i)||(r[s.trim()]=parseInt(i,10))}var n}))}return{formatName:e,formatOptions:r}}(e),a=n.formatName,o=n.formatOptions;if(s.formats[a]){var c=t;try{var l=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},u=l.locale||l.lng||i.locale||i.lng||r;c=s.formats[a](t,u,G(G(G({},o),i),l))}catch(t){s.logger.warn(t)}return c}return s.logger.warn("there was no format function for ".concat(a)),t}),t)}}]),t}();function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var et=function(t){c(o,t);var e,r,s=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,s=u(e);if(r){var i=u(this).constructor;t=Reflect.construct(s,arguments,i)}else t=s.apply(this,arguments);return l(this,t)});function o(t,e,r){var n,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.A)(this,o),n=s.call(this),_&&g.call(a(n)),n.backend=t,n.store=e,n.services=r,n.languageUtils=r.languageUtils,n.options=c,n.logger=y.create("backendConnector"),n.waitingReads=[],n.maxParallelReads=c.maxParallelReads||10,n.readingCalls=0,n.maxRetries=c.maxRetries>=0?c.maxRetries:5,n.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(r,c.backend,c),n}return(0,n.A)(o,[{key:"queueLoad",value:function(t,e,r,s){var i=this,n={},a={},o={},c={};return t.forEach((function(t){var s=!0;e.forEach((function(e){var o="".concat(t,"|").concat(e);!r.reload&&i.store.hasResourceBundle(t,e)?i.state[o]=2:i.state[o]<0||(1===i.state[o]?void 0===a[o]&&(a[o]=!0):(i.state[o]=1,s=!1,void 0===a[o]&&(a[o]=!0),void 0===n[o]&&(n[o]=!0),void 0===c[e]&&(c[e]=!0)))})),s||(o[t]=!0)})),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(t,e,r){var s=t.split("|"),i=s[0],n=s[1];e&&this.emit("failedLoading",i,n,e),r&&this.store.addResourceBundle(i,n,r),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(r){var s,o,c,l,u;s=r.loaded,o=n,(l=(c=b(s,[i],Object)).obj)[u=c.k]=l[u]||[],l[u].push(o),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(r,t),e&&r.errors.push(e),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(t){a[t]||(a[t]={});var e=r.loaded[t];e.length&&e.forEach((function(e){void 0===a[t][e]&&(a[t][e]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,r){var s=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:t,ns:e,fcName:r,tried:i,wait:n,callback:a});else{this.readingCalls++;var o=function(o,c){if(s.readingCalls--,s.waitingReads.length>0){var l=s.waitingReads.shift();s.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}o&&c&&i<s.maxRetries?setTimeout((function(){s.read.call(s,t,e,r,i+1,2*n,a)}),n):a(o,c)},c=this.backend[r].bind(this.backend);if(2!==c.length)return c(t,e,o);try{var l=c(t,e);l&&"function"==typeof l.then?l.then((function(t){return o(null,t)})).catch(o):o(null,l)}catch(t){o(t)}}}},{key:"prepareLoading",value:function(t,e){var r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var n=this.queueLoad(t,e,s,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach((function(t){r.loadOne(t)}))}},{key:"load",value:function(t,e,r){this.prepareLoading(t,e,{},r)}},{key:"reload",value:function(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}},{key:"loadOne",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=t.split("|"),i=s[0],n=s[1];this.read(i,n,"read",void 0,void 0,(function(s,a){s&&e.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(i," failed"),s),!s&&a&&e.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(i),a),e.loaded(t,s,a)}))}},{key:"saveMissing",value:function(t,e,r,s,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var o=tt(tt({},n),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var l;(l=5===c.length?c(t,e,r,s,o):c(t,e,r,s))&&"function"==typeof l.then?l.then((function(t){return a(null,t)})).catch(a):a(null,l)}catch(t){a(t)}else c(t,e,r,s,a,o)}t&&t[0]&&this.store.addResource(t[0],e,r,s)}}}]),o}(g);function rt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===(0,s.A)(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===(0,s.A)(t[2])||"object"===(0,s.A)(t[3])){var r=t[3]||t[2];Object.keys(r).forEach((function(t){e[t]=r[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,r,s){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function st(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function it(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?it(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function at(){}var ot=function(t){c(h,t);var e,r,o=(e=h,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,s=u(e);if(r){var i=u(this).constructor;t=Reflect.construct(s,arguments,i)}else t=s.apply(this,arguments);return l(this,t)});function h(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if((0,i.A)(this,h),t=o.call(this),_&&g.call(a(t)),t.options=st(r),t.services={},t.logger=y,t.modules={external:[]},e=a(t),Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})),s&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,s),l(t,a(t));setTimeout((function(){t.init(r,s)}),0)}return t}return(0,n.A)(h,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(r=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));var s=rt();function i(t){return t?"function"==typeof t?new t:t:null}if(this.options=nt(nt(nt({},s),this.options),st(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nt(nt({},s.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){var n;this.modules.logger?y.init(i(this.modules.logger),this.options):y.init(null,this.options),this.modules.formatter?n=this.modules.formatter:"undefined"!=typeof Intl&&(n=Z);var a=new B(this.options);this.store=new M(this.options.resources,this.options);var o=this.services;o.logger=y,o.resourceStore=this.store,o.languageUtils=a,o.pluralResolver=new z(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!n||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(o.formatter=i(n),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new K(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new et(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];t.emit.apply(t,[e].concat(s))})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];t.emit.apply(t,[e].concat(s))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.format=this.options.interpolation.format,r||(r=at),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var l=v(),u=function(){var e=function(e,s){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(s),r(e,s)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:"loadResources",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at,s="string"==typeof t?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return r();var i=[],n=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){i.indexOf(t)<0&&i.push(t)}))};s?n(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(t){return n(t)})),this.options.preload&&this.options.preload.forEach((function(t){return n(t)})),this.services.backendConnector.load(i,this.options.ns,(function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),r(t)}))}else r(null)}},{key:"reloadResources",value:function(t,e,r){var s=v();return t||(t=this.languages),e||(e=this.options.ns),r||(r=at),this.services.backendConnector.reload(t,e,(function(t){s.resolve(),r(t)})),s}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&L.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var r=this.languages[e];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(t,e){var r=this;this.isLanguageChangingTo=t;var s=v();this.emit("languageChanging",t);var i=function(t){r.language=t,r.languages=r.services.languageUtils.toResolveHierarchy(t),r.resolvedLanguage=void 0,r.setResolvedLanguage(t)},n=function(n){t||n||!r.services.languageDetector||(n=[]);var a="string"==typeof n?n:r.services.languageUtils.getBestMatchFromCodes(n);a&&(r.language||i(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(t){!function(t,n){n?(i(n),r.translator.changeLanguage(n),r.isLanguageChangingTo=void 0,r.emit("languageChanged",n),r.logger.log("languageChanged",n)):r.isLanguageChangingTo=void 0,s.resolve((function(){return r.t.apply(r,arguments)})),e&&e(t,(function(){return r.t.apply(r,arguments)}))}(t,a)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(t):n(this.services.languageDetector.detect()),s}},{key:"getFixedT",value:function(t,e,r){var i=this,n=function t(e,n){var a;if("object"!==(0,s.A)(n)){for(var o=arguments.length,c=new Array(o>2?o-2:0),l=2;l<o;l++)c[l-2]=arguments[l];a=i.options.overloadTranslationOptionHandler([e,n].concat(c))}else a=nt({},n);a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns,a.keyPrefix=a.keyPrefix||r||t.keyPrefix;var u,h=i.options.keySeparator||".";return u=a.keyPrefix&&Array.isArray(e)?e.map((function(t){return"".concat(a.keyPrefix).concat(h).concat(t)})):a.keyPrefix?"".concat(a.keyPrefix).concat(h).concat(e):e,i.t(u,a)};return"string"==typeof t?n.lng=t:n.lngs=t,n.ns=e,n.keyPrefix=r,n}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=r.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;var a=function(t,r){var s=e.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===s||2===s};if(r.precheck){var o=r.precheck(this,a);if(void 0!==o)return o}return!(!this.hasResourceBundle(s,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(s,t)||i&&!a(n,t)))}},{key:"loadNamespaces",value:function(t,e){var r=this,s=v();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){r.options.ns.indexOf(t)<0&&r.options.ns.push(t)})),this.loadResources((function(t){s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var r=v();"string"==typeof t&&(t=[t]);var s=this.options.preload||[],i=t.filter((function(t){return s.indexOf(t)<0}));return i.length?(this.options.preload=s.concat(i),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";var e=this.services&&this.services.languageUtils||new B(rt());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at,s=nt(nt(nt({},this.options),e),{isClone:!0}),i=new h(s);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=nt({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new j(i.services,i.options),i.translator.on("*",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];i.emit.apply(i,[t].concat(r))})),i.init(s,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),h}(g);(0,h.A)(ot,"createInstance",(function(){return new ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var ct=ot.createInstance();ct.createInstance=ot.createInstance;var lt=ct.createInstance,ut=ct.dir,ht=ct.init,pt=ct.loadResources,dt=ct.reloadResources,ft=ct.use,mt=ct.changeLanguage,yt=ct.getFixedT,gt=ct.t,vt=ct.exists,xt=ct.setDefaultNamespace,bt=ct.hasLoadedNamespace,wt=ct.loadNamespaces,Pt=ct.loadLanguages},918:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(2016);function i(t,e,r){(0,s.A)(t,e),e.set(t,r)}},1256:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},1329:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(r(9420))},1369:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(7545);function i(t){var e=function(t){if("object"!=(0,s.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=(0,s.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,s.A)(e)?e:e+""}},1386:function(t,e,r){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},1387:function(t,e,r){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(9420))},1548:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},1796:t=>{"use strict";function e(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},t.exports=e},2016:(t,e,r)=>{"use strict";function s(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>s})},2110:(t,e,r)=>{"use strict";r.d(e,{y:()=>o});var s=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(r[s[i]]=t[s[i]])}return r};const i="text/event-stream",n=1e3,a="last-event-id";function o(t,e){var{signal:r,headers:o,onopen:l,onmessage:u,onclose:h,onerror:p,openWhenHidden:d,fetch:f}=e,m=s(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((e,s)=>{const y=Object.assign({},o);let g;function v(){g.abort(),document.hidden||S()}y.accept||(y.accept=i),d||document.addEventListener("visibilitychange",v);let x=n,b=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(b),g.abort()}null==r||r.addEventListener("abort",(()=>{w(),e()}));const P=null!=f?f:window.fetch,T=null!=l?l:c;async function S(){var r;g=new AbortController;try{const r=await P(t,Object.assign(Object.assign({},m),{headers:y,signal:g.signal}));await T(r),await async function(t,e){const r=t.getReader();let s;for(;!(s=await r.read()).done;)e(s.value)}(r.body,function(t){let e,r,s,i=!1;return function(n){void 0===e?(e=n,r=0,s=-1):e=function(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}(e,n);const a=e.length;let o=0;for(;r<a;){i&&(10===e[r]&&(o=++r),i=!1);let n=-1;for(;r<a&&-1===n;++r)switch(e[r]){case 58:-1===s&&(s=r-o);break;case 13:i=!0;case 10:n=r}if(-1===n)break;t(e.subarray(o,n),s),o=r,s=-1}o===a?e=void 0:0!==o&&(e=e.subarray(o),r-=o)}}(function(t,e,r){let s={data:"",event:"",id:"",retry:void 0};const i=new TextDecoder;return function(t,e){if(0===t.length)null==r||r(s),s={data:"",event:"",id:"",retry:void 0};else if(e>0){const r=i.decode(t.subarray(0,e)),o=e+(32===t[e+1]?2:1),c=i.decode(t.subarray(o));switch(r){case"data":s.data=s.data?s.data+"\n"+c:c;break;case"event":s.event=c;break;case"id":(n=s.id=c)?y[a]=n:delete y[a];break;case"retry":const t=parseInt(c,10);isNaN(t)||(t=>{x=t})(s.retry=t)}}var n}}(0,0,u))),null==h||h(),w(),e()}catch(t){if(!g.signal.aborted)try{const e=null!==(r=null==p?void 0:p(t))&&void 0!==r?r:x;window.clearTimeout(b),b=window.setTimeout(S,e)}catch(t){w(),s(t)}}}S()}))}function c(t){const e=t.headers.get("content-type");if(!(null==e?void 0:e.startsWith(i)))throw new Error(`Expected content-type to be ${i}, Actual: ${e}`)}},2290:(t,e,r)=>{"use strict";var s=r(3780),i=r(1796),n=r(5417);function a(t,e,r){var s=[];return t.include.forEach((function(t){r=a(t,e,r)})),t[e].forEach((function(t){r.forEach((function(e,r){e.tag===t.tag&&e.kind===t.kind&&s.push(r)})),r.push(t)})),r.filter((function(t,e){return-1===s.indexOf(e)}))}function o(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach((function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{}};function s(t){r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(s);return r}(this.compiledImplicit,this.compiledExplicit)}o.DEFAULT=null,o.create=function(){var t,e;switch(arguments.length){case 1:t=o.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(t=s.toArray(t),e=s.toArray(e),!t.every((function(t){return t instanceof o})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every((function(t){return t instanceof n})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:t,explicit:e})},t.exports=o},2559:(t,e,r)=>{"use strict";function s(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>s})},2621:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},2846:(t,e,r)=>{"use strict";var s=r(2290);t.exports=s.DEFAULT=new s({include:[r(9590)],explicit:[r(9280),r(6751),r(5986)]})},3005:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1200?"上午":1200===s?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(9420))},3008:function(t,e,r){!function(t){"use strict";t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(r(9420))},3537:function(t,e,r){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},3601:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s={};try{s.EventTarget=(new EventTarget).constructor}catch(t){!function(t,e){var r=t.create,i=t.defineProperty,n=a.prototype;function a(){e.set(this,r(null))}function o(t,e,r){i(t,e,{configurable:!0,writable:!0,value:r})}function c(t){var e=t.options;return e&&e.once&&t.target.removeEventListener(this.type,t.listener),"function"==typeof t.listener?t.listener.call(t.target,this):t.listener.handleEvent(this),this._stopImmediatePropagationFlag}o(n,"addEventListener",(function(t,r,s){for(var i=e.get(this),n=i[t]||(i[t]=[]),a=0,o=n.length;a<o;a++)if(n[a].listener===r)return;n.push({target:this,listener:r,options:s})})),o(n,"dispatchEvent",(function(t){var r=e.get(this)[t.type];return r&&(o(t,"target",this),o(t,"currentTarget",this),r.slice(0).some(c,t),delete t.currentTarget,delete t.target),!0})),o(n,"removeEventListener",(function(t,r){for(var s=e.get(this),i=s[t]||(s[t]=[]),n=0,a=i.length;n<a;n++)if(i[n].listener===r)return void i.splice(n,1)})),s.EventTarget=a}(Object,new WeakMap)}const i=s.EventTarget},3780:t=>{"use strict";function e(t){return null==t}t.exports.isNothing=e,t.exports.isObject=function(t){return"object"==typeof t&&null!==t},t.exports.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},t.exports.repeat=function(t,e){var r,s="";for(r=0;r<e;r+=1)s+=t;return s},t.exports.isNegativeZero=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},t.exports.extend=function(t,e){var r,s,i,n;if(e)for(r=0,s=(n=Object.keys(e)).length;r<s;r+=1)t[i=n[r]]=e[i];return t}},3901:(t,e,r)=>{"use strict";var s=r(5417),i=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=new s("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,s,a,o,c=[],l=t;for(e=0,r=l.length;e<r;e+=1){if(s=l[e],o=!1,"[object Object]"!==n.call(s))return!1;for(a in s)if(i.call(s,a)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==c.indexOf(a))return!1;c.push(a)}return!0},construct:function(t){return null!==t?t:[]}})},3999:(t,e,r)=>{"use strict";function s(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function i(t){return t<=1?"".concat(100*Number(t),"%"):t}function n(t){return 1===t.length?"0"+t:String(t)}function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*r*(e-t):r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function o(t){return c(t)/255}function c(t){return parseInt(t,16)}r.d(e,{eC:()=>L,LP:()=>O,Gb:()=>D});var l={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function u(t){var e,r,n,u={r:0,g:0,b:0},h=1,p=null,d=null,y=null,g=!1,v=!1;return"string"==typeof t&&(t=function(t){if(0===(t=t.trim().toLowerCase()).length)return!1;var e=!1;if(l[t])t=l[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var r=f.rgb.exec(t);return r?{r:r[1],g:r[2],b:r[3]}:(r=f.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=f.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=f.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=f.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=f.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=f.hex8.exec(t))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),a:o(r[4]),format:e?"name":"hex8"}:(r=f.hex6.exec(t))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),format:e?"name":"hex"}:(r=f.hex4.exec(t))?{r:c(r[1]+r[1]),g:c(r[2]+r[2]),b:c(r[3]+r[3]),a:o(r[4]+r[4]),format:e?"name":"hex8"}:!!(r=f.hex3.exec(t))&&{r:c(r[1]+r[1]),g:c(r[2]+r[2]),b:c(r[3]+r[3]),format:e?"name":"hex"}}(t)),"object"==typeof t&&(m(t.r)&&m(t.g)&&m(t.b)?(e=t.r,r=t.g,n=t.b,u={r:255*s(e,255),g:255*s(r,255),b:255*s(n,255)},g=!0,v="%"===String(t.r).substr(-1)?"prgb":"rgb"):m(t.h)&&m(t.s)&&m(t.v)?(p=i(t.s),d=i(t.v),u=function(t,e,r){t=6*s(t,360),e=s(e,100),r=s(r,100);var i=Math.floor(t),n=t-i,a=r*(1-e),o=r*(1-n*e),c=r*(1-(1-n)*e),l=i%6;return{r:255*[r,o,a,a,c,r][l],g:255*[c,r,r,o,a,a][l],b:255*[a,a,c,r,r,o][l]}}(t.h,p,d),g=!0,v="hsv"):m(t.h)&&m(t.s)&&m(t.l)&&(p=i(t.s),y=i(t.l),u=function(t,e,r){var i,n,o;if(t=s(t,360),e=s(e,100),r=s(r,100),0===e)n=r,o=r,i=r;else{var c=r<.5?r*(1+e):r+e-r*e,l=2*r-c;i=a(l,c,t+1/3),n=a(l,c,t),o=a(l,c,t-1/3)}return{r:255*i,g:255*n,b:255*o}}(t.h,p,y),g=!0,v="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(h=t.a)),h=function(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}(h),{ok:g,format:t.format||v,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:h}}var h="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),p="[\\s|\\(]+(".concat(h,")[,|\\s]+(").concat(h,")[,|\\s]+(").concat(h,")\\s*\\)?"),d="[\\s|\\(]+(".concat(h,")[,|\\s]+(").concat(h,")[,|\\s]+(").concat(h,")[,|\\s]+(").concat(h,")\\s*\\)?"),f={CSS_UNIT:new RegExp(h),rgb:new RegExp("rgb"+p),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+p),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+p),hsva:new RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function m(t){return Boolean(f.CSS_UNIT.exec(String(t)))}var y=2,g=.16,v=.05,x=.05,b=.15,w=5,P=4,T=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function S(t){var e=function(t,e,r){t=s(t,255),e=s(e,255),r=s(r,255);var i=Math.max(t,e,r),n=Math.min(t,e,r),a=0,o=i,c=i-n,l=0===i?0:c/i;if(i===n)a=0;else{switch(i){case t:a=(e-r)/c+(e<r?6:0);break;case e:a=(r-t)/c+2;break;case r:a=(t-e)/c+4}a/=6}return{h:a,s:l,v:o}}(t.r,t.g,t.b);return{h:360*e.h,s:e.s,v:e.v}}function A(t){var e=t.r,r=t.g,s=t.b;return"#".concat(function(t,e,r){return[n(Math.round(t).toString(16)),n(Math.round(e).toString(16)),n(Math.round(r).toString(16))].join("")}(e,r,s))}function k(t,e,r){var s;return(s=Math.round(t.h)>=60&&Math.round(t.h)<=240?r?Math.round(t.h)-y*e:Math.round(t.h)+y*e:r?Math.round(t.h)+y*e:Math.round(t.h)-y*e)<0?s+=360:s>=360&&(s-=360),s}function _(t,e,r){return 0===t.h&&0===t.s?t.s:((s=r?t.s-g*e:e===P?t.s+g:t.s+v*e)>1&&(s=1),r&&e===w&&s>.1&&(s=.1),s<.06&&(s=.06),Number(s.toFixed(2)));var s}function E(t,e,r){var s;return(s=r?t.v+x*e:t.v-b*e)>1&&(s=1),Number(s.toFixed(2))}function C(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],s=u(t),i=w;i>0;i-=1){var n=S(s),a=A(u({h:k(n,i,!0),s:_(n,i,!0),v:E(n,i,!0)}));r.push(a)}r.push(A(s));for(var o=1;o<=P;o+=1){var c=S(s),l=A(u({h:k(c,o),s:_(c,o),v:E(c,o)}));r.push(l)}return"dark"===e.theme?T.map((function(t){var s,i,n,a=t.index,o=t.opacity;return A((s=u(e.backgroundColor||"#141414"),n=100*o/100,{r:((i=u(r[a])).r-s.r)*n+s.r,g:(i.g-s.g)*n+s.g,b:(i.b-s.b)*n+s.b}))})):r}var N={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},I={},M={};function L(t,e,r){return("dark"===t?j:F)("".concat(function(t,e){return Object.entries(t).flatMap((t=>{var[r,s]=t;return function(t){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t))throw new Error("Invalid base color name: ".concat(JSON.stringify(t)))}(r),s.map(((t,s)=>[" --palette-".concat(r,"-").concat(s+1,"-channel: ").concat(R(t),";")].concat("dark"===e?[]:" --palette-".concat(r,"-").concat(s+1,": rgb(var(--palette-").concat(r,"-").concat(s+1,"-channel));")).join("\n"))).concat("")})).join("\n")}(function(t,e,r){return Object.fromEntries(Object.entries(t).map((t=>{var[s,i]=t;return[s,C(i,"dark"===e?{theme:e,backgroundColor:r}:void 0)]})))}(e,t,r),t),"\n").concat(function(t,e,r){return Object.entries({green:"green",red:"red",blue:"blue",orange:"orange",cyan:"cyan",purple:"purple",geekblue:"indigo"}).flatMap((s=>{var[i,n]=s;return[" --theme-".concat(i,"-color-rgb-channel: ").concat(R(B(e[n],t,r)),";"),..."dark"===t?[]:[" --theme-".concat(i,"-color: var(--palette-").concat(n,"-6);")," --theme-".concat(i,"-border-color: var(--palette-").concat(n,"-3);")]," --theme-".concat(i,"-background: var(--palette-").concat(n,"-").concat("dark"===t?2:1,");"),""]})).join("\n")}(t,e,r)))}function O(t,e){return("dark"===t?j:F)("string"==typeof(r=e)?" --color-brand: ".concat(r,";\n"):[" --color-brand: ".concat(r.default,";")," --color-brand-hover: ".concat(r.hover,";")," --color-brand-active: ".concat(r.active,";"),""].join("\n"));var r}function D(t,e){return("dark"===t?j:F)(function(t){return Object.entries(t).map((t=>{var[e,r]=t;return function(t){if(!/^--[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(t))throw new Error("Invalid css variable name: ".concat(JSON.stringify(t)))}(e)," ".concat(e,": ").concat(r,";")})).concat("").join("\n")}(e))}function F(t){return':root,\n[data-override-theme="light"] {\n'.concat(t,"}")}function j(t){return'html[data-theme="dark-v2"],\n[data-override-theme="dark-v2"] {\n'.concat(t,"}")}function R(t){return t.match(/[0-9a-fA-F]{2}/g).map((t=>parseInt(t,16))).join(", ")}function B(t,e,r){return"dark"===e?C(t,{theme:e,backgroundColor:r})[5]:t}Object.keys(N).forEach((function(t){I[t]=C(N[t]),I[t].primary=I[t][5],M[t]=C(N[t],{theme:"dark",backgroundColor:"#141414"}),M[t].primary=M[t][5]})),I.red,I.volcano,I.gold,I.orange,I.yellow,I.lime,I.green,I.cyan,I.blue,I.geekblue,I.purple,I.magenta,I.grey},4073:function(t,e,r){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(r(9420))},4306:(t,e,r)=>{"use strict";r.r(e),r.d(e,{pipes:()=>i,utils:()=>s});var s={};r.r(s),r.d(s,{convertUnitValueByPrecision:()=>Ct,formatUnitValue:()=>Nt});var i={};function n(t,e){return t+e}function a(t){return"0"!==t&&Boolean(t)}r.r(i),r.d(i,{add:()=>n,atobUnicode:()=>Ft,bool:()=>o,boolean:()=>a,btoaUnicode:()=>jt,cmdbInstanceShowName:()=>c,countBy:()=>u,datetime:()=>d,deltaTime:()=>y,divide:()=>g,equal:()=>v,find:()=>x,findIndex:()=>b,findLast:()=>w,findLastIndex:()=>P,get:()=>T,graphTree:()=>S,groupBy:()=>A,groupByToIndex:()=>N,includes:()=>I,join:()=>M,json:()=>L,jsonStringify:()=>O,keyBy:()=>D,map:()=>F,mapToArray:()=>j,mergeArrayByKey:()=>R,multiply:()=>Y,not:()=>U,nullish:()=>H,number:()=>W,parseTimeRange:()=>z,randomString:()=>V,reverse:()=>q,round:()=>Dt,slice:()=>$,sort:()=>K,split:()=>J,string:()=>G,substr:()=>X,substring:()=>Z,subtract:()=>Q,ternary:()=>tt,uniq:()=>et,unitFormat:()=>It,yaml:()=>Lt,yamlStringify:()=>Ot});var o=a;function c(t){if(Array.isArray(t)){var e=t[0]||"",r=t.slice(1,t.length).join(",");return r?e+(e?"("+r+")":""+r):e||"-"}return t}var l=r(563);function u(t,e){return(0,l.countBy)(t,e)}var h=r(1916),p=r.n(h);function d(t,e){return p()(t).format(e)}function f(t){return"object"==typeof t&&null!==t}function m(t,e){return"number"==typeof t?p()(t):p()(t,e)}function y(t,e,r){if(void 0===e&&(e=!0),void 0===r&&(r="YYYY-MM-DD HH:mm:ss"),!t)return"";if(f(t)&&t.startTime&&t.endTime){var s=m(t.startTime,r),i=m(t.endTime,r);return p().duration(i.diff(s)).humanize(e)}var n=m(f(t)?t.startTime||t.endTime:t,r);return p().duration(n.diff(p()())).humanize(e)}function g(t,e){return t/e}function v(t,e){return(0,l.isEqual)(t,e)}function x(t,e,r){return(0,l.find)(t,e,r)}function b(t,e,r){return(0,l.findIndex)(t,e,r)}function w(t,e,r){return(0,l.findLast)(t,e,r)}function P(t,e,r){return(0,l.findLastIndex)(t,e,r)}function T(t,e,r){return(0,l.get)(t,e,r)}function S(t,e){var r,s;if(!t)return[];var i=null==e?void 0:e.sort,n=(0,l.groupBy)(t.edges,"out"),a=function(e){var r=n[e.instanceId];if((0,l.forEach)(r,(function(r){var s=r.out_name,i=(0,l.find)(t.vertices,["instanceId",r.in]);if(i){var n=a(i);e[s]?e[s].push(n):e[s]=[n]}})),i){var s=(0,l.uniq)((0,l.map)(r,"out_name"));(0,l.forEach)(s,(function(t){(0,l.isEmpty)(e[t])||(e[t]=(0,l.orderBy)(e[t],(function(t){var e;return null!==(e=(0,l.get)(t,i.key))&&void 0!==e?e:-1/0}),-1===i.order?"desc":"asc"))}))}return e};return null!==(s=null===(r=t.topic_vertices)||void 0===r?void 0:r.map((function(t){return a(t)})))&&void 0!==s?s:[]}function A(t,e){return(0,l.groupBy)(t,e)}var k,_,E=function(){return E=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},E.apply(this,arguments)};function C(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var s=Array(t),i=0;for(e=0;e<r;e++)for(var n=arguments[e],a=0,o=n.length;a<o;a++,i++)s[i]=n[a];return s}function N(t,e,r){var s=t;if(!(0,l.isNil)(e)&&!(0,l.isNil)(r)){var i=(0,l.groupBy)(t,e),n=(0,l.keys)(i).sort();s=s.map((function(t){var s=E({},t);return(0,l.set)(s,r,(0,l.indexOf)(n,(0,l.get)(t,e))),s}))}return s}function I(t,e){return t.includes(e)}function M(t,e){return void 0===e&&(e=","),Array.isArray(t)?t.join(e):""}function L(t){if((0,l.isNil)(t))return t;try{return JSON.parse(t)}catch(t){return void console.error(t)}}function O(t,e){void 0===e&&(e=2);try{return JSON.stringify(t,null,e)}catch(t){return void console.error(t)}}function D(t,e){return(0,l.keyBy)(t,e)}function F(t,e){return Array.isArray(t)?t.map((function(t){return(0,l.get)(t,e)})):[]}function j(t,e,r){return"object"==typeof t&&t?Object.entries(t).map((function(t){var s,i=t[0],n=t[1];return(s={})[e]=i,s[r]=n,s})):[]}function R(t,e){return t.reduce((function(t,r){return Object.values((0,l.mergeWith)((0,l.keyBy)(t,e),(0,l.keyBy)(r,e),B))}),[])}function B(t,e){if((0,l.isArray)(t))return t.concat(e)}function Y(t,e){return t*e}function U(t){return!t}function H(t,e){return null!=t?t:e}function W(t){return Number(t)}function z(t){if("now/d"===t)return+p()().startOf("day");if("now/y"===t)return+p()().startOf("year");var e=/^now-(\d+)(\w+)/.exec(t);if(null!==e){var r=e[1],s=e[2];return+p()().subtract(r,s)}return t?+t:+p()()}function V(t,e){t=t>0?t:8,e="string"==typeof e?e:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var r="",s=0;s<t;s++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function q(t){return Array.isArray(t)?t.slice().reverse():[]}function $(t,e,r){return t.slice(e,r)}function K(t,e){return Array.isArray(t)?(0,l.sortBy)(t,e):[]}function J(t,e){return"string"==typeof t?t.split(e):[]}function G(t){return null==t?"":String(t)}function X(t,e,r){return"string"==typeof t?t.substr(e,r):""}function Z(t,e,r){return"string"==typeof t?t.substring(e,r):""}function Q(t,e){return t-e}function tt(t,e,r){return t?e:r}function et(t){return(0,l.uniq)(t)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(t){t.Time="time",t.Byte="byte",t.Bibyte="bibyte",t.BitRate="bitRate",t.ByteRate="byteRate"}(k||(k={})),function(t){t.Percent1="percent(1)",t.Percent100="percent(100)"}(_||(_={}));var rt,st=[_.Percent1,_.Percent100];!function(t){t.Bytes="bytes",t.Kilobytes="kilobytes",t.Megabytes="megabytes",t.Gigabytes="gigabytes",t.Terabytes="terabytes",t.Petabytes="petabytes",t.Bibytes="bibytes",t.Kibibytes="kibibytes",t.Mebibytes="mebibytes",t.Gibibytes="gibibytes",t.Tebibytes="tebibytes",t.Pebibytes="pebibytes",t.b="b",t.B="B",t.KB="KB",t.MB="MB",t.GB="GB"}(rt||(rt={}));var it,nt=[{id:rt.Bytes,alias:["B","bytes(B)"],divisor:1,display:"B"},{id:rt.Kilobytes,alias:["KB","kilobytes(KB)"],divisor:1e3,display:"KB"},{id:rt.Megabytes,alias:["MB","megabytes(MB)"],divisor:Math.pow(1e3,2),display:"MB"},{id:rt.Gigabytes,alias:["GB","gigabytes(GB)"],divisor:Math.pow(1e3,3),display:"GB"},{id:rt.Terabytes,alias:["TB","terabytes(TB)"],divisor:Math.pow(1e3,4),display:"TB"},{id:rt.Petabytes,alias:["PB","petabytes(PB)"],divisor:Math.pow(1e3,5),display:"PB"}],at=[{id:rt.Bibytes,alias:["B","bibytes(B)"],divisor:1,display:"B"},{id:rt.Kibibytes,alias:["KiB","kibibytes(KiB)"],divisor:1024,display:"KiB"},{id:rt.Mebibytes,alias:["MiB","mebibytes(MiB)"],divisor:Math.pow(1024,2),display:"MiB"},{id:rt.Gibibytes,alias:["GiB","gibibytes(GiB)"],divisor:Math.pow(1024,3),display:"GiB"},{id:rt.Tebibytes,alias:["TiB","tebibytes(TiB)"],divisor:Math.pow(1024,4),display:"TiB"},{id:rt.Pebibytes,alias:["PiB","pebibytes(PiB)"],divisor:Math.pow(1024,5),display:"PiB"}],ot=[{id:rt.b,divisor:1,display:"b"},{id:rt.B,divisor:8,display:"B"},{id:rt.KB,divisor:8192,display:"KB"},{id:rt.MB,divisor:8388608,display:"MB"},{id:rt.GB,divisor:8589934592,display:"GB"}];!function(t){t.BitsPerSecond="bits/sec",t.KilobitsPerSecond="kilobits/sec",t.MegabitsPerSecond="megabits/sec",t.GigabitsPerSecond="gigabits/sec",t.BytesPerSecond="bytes/sec",t.KilobytesPerSecond="kilobytes/sec",t.MegabytesPerSecond="megabytes/sec",t.GigabytesPerSecond="gigabytes/sec",t.bps="bps",t.Bps="Bps",t.KBps="KBps",t.MBps="MBps",t.GBps="GBps"}(it||(it={}));var ct,lt=[{id:it.BitsPerSecond,alias:["bps","bits/sec(bps)"],divisor:1,display:"bps"},{id:it.KilobitsPerSecond,alias:["Kbps","kilobits/sec(Kbps)"],divisor:1e3,display:"Kbps"},{id:it.MegabitsPerSecond,alias:["Mbps","megabits/sec(Mbps)"],divisor:1e6,display:"Mbps"},{id:it.GigabitsPerSecond,alias:["Gbps","gigabits/sec(Gbps)"],divisor:1e9,display:"Gbps"}],ut=[{id:it.BytesPerSecond,alias:["Bps","bytes/sec(Bps)"],divisor:8,display:"Bps"},{id:it.KilobytesPerSecond,alias:["KBps","kilobytes/sec(KBps)"],divisor:8e3,display:"KBps"},{id:it.MegabytesPerSecond,alias:["MBps","megabytes/sec(MBps)"],divisor:8e6,display:"MBps"},{id:it.GigabytesPerSecond,alias:["GBps","gigabytes/sec(GBps)"],divisor:8e9,display:"GBps"}],ht=[{id:it.bps,divisor:1,display:"bps"},{id:it.Bps,divisor:8,display:"Bps"},{id:it.KBps,divisor:8e3,display:"KBps"},{id:it.MBps,divisor:8e6,display:"MBps"},{id:it.GBps,divisor:8e9,display:"GBps"}];!function(t){t.Nanosecond="nanoseconds",t.Microsecond="microseconds",t.Milliseconds="milliseconds",t.Seconds="seconds",t.Minutes="minutes",t.Hours="hours",t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t.ms="ms",t.s="s",t.min="min",t.hour="hour",t.day="day",t.week="week"}(ct||(ct={}));var pt,dt,ft=[{id:ct.Nanosecond,alias:["ns","nanoseconds(ns)"],divisor:1,display:"ns"},{id:ct.Microsecond,alias:["μs","microseconds(μs)"],divisor:1e3,display:"μs"},{id:ct.Milliseconds,alias:["ms","milliseconds(ms)"],divisor:1e6,display:"ms"},{id:ct.Seconds,alias:["s","seconds(s)"],divisor:1e9,display:"s"},{id:ct.Minutes,alias:["min","minutes(min)"],divisor:6e10,display:"min"},{id:ct.Hours,alias:["hour","hours(hour)"],divisor:36e11,display:"hour"},{id:ct.Days,alias:["day","days(day)"],divisor:864e11,display:"day"},{id:ct.Weeks,alias:["week","weeks(week)"],divisor:6048e11,display:"week"},{id:ct.Months,alias:["month","months(month)"],divisor:2592e12,display:"month"},{id:ct.Years,alias:["year","years(year)"],divisor:31536e12,display:"year"}];ct.ms,ct.s,ct.min,ct.hour,ct.day,ct.week,(pt={})[k.Time]=ft,pt[k.Byte]=nt,pt[k.Bibyte]=at,pt[k.BitRate]=lt,pt[k.ByteRate]=ut,function(t){t.None="none",t.K="K",t.M="M",t.B="B",t.T="T"}(dt||(dt={}));var mt,yt,gt=[{id:dt.None,divisor:1,display:""},{id:dt.K,divisor:1e3,display:"K"},{id:dt.M,divisor:1e6,display:"M"},{id:dt.B,divisor:1e9,display:"B"},{id:dt.T,divisor:1e12,display:"T"}],vt=function(t,e){return t.id.toLocaleLowerCase()===(null==e?void 0:e.toLocaleLowerCase())||t.alias&&t.alias.map((function(t){return t.toLocaleLowerCase()})).includes(e)},xt=function(t,e){return t.id.toLocaleLowerCase()===(null==e?void 0:e.toLocaleLowerCase())||t.alias&&t.alias.includes(e)},bt=[ft],wt=[].concat.apply([],bt.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),Pt=[nt,at,ot],Tt=[].concat.apply([],Pt.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),St=[lt,ut,ht],At=[].concat.apply([],St.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),kt=function(t,e,r,s){var i=0,n=Math.sign(t),a=Math.abs(t);if(e){var o=gt.findIndex((function(t){return t.id.toLocaleLowerCase()===e.toLocaleLowerCase()}));-1!==o&&(i=o)}for(var c=gt[i],l=i+1;l<gt.length&&a/(gt[l].divisor/gt[i].divisor)>=1;++l)c=gt[l];return c.id===dt.None?_t((n*a).toFixed(null!=r?r:2),s):_t((a/(c.divisor/gt[i].divisor)*n).toFixed(null!=r?r:2),s)+c.display};function _t(t,e){return!1===e?(+t).toString():t}!function(t){t.None="none",t.Short="short",t.Percent="percent",t.Time="time",t.Data="data",t.DataRate="data_rate"}(yt||(yt={}));var Et=((mt={})[yt.None]=[],mt[yt.Short]=[],mt[yt.Percent]=st,mt[yt.Time]=wt,mt[yt.Data]=Tt,mt[yt.DataRate]=At,mt),Ct=function(t,e,r){if(void 0===e)return t.toString();var s=t.toFixed(e);return!1===r?(+s).toString():s},Nt=function(t,e){if(!e)return[kt(t),null];var r=e.type;r||(e.unit?(r=yt.Short,Object.entries(Et).map((function(t){var s=t[0];t[1].map((function(t){return t.toLocaleLowerCase()})).includes(e.unit.toLocaleLowerCase())&&(r=s)}))):r=yt.None);var s=void 0===(null==e?void 0:e.precision)?2:e.precision,i=!(0,l.isBoolean)(null==e?void 0:e.fixedPrecision)||(null==e?void 0:e.fixedPrecision);switch(r){case yt.Percent:var n=function(t,e){return e&&e.toLocaleLowerCase()===_.Percent100.toLocaleLowerCase()?t:100*t}(t,e.unit);return[Ct(n,s,i)+"%",null];case yt.Time:var a=function(t,e,r){var s=0,i=2,n=-1;if(e)for(var a=function(t){var a=-1,o=-1;if(bt[t].forEach((function(t,s){vt(t,e)&&(a=s),vt(t,r)&&(o=s)})),-1!==a)return s=t,i=a,n=o,"break"},o=0;o<bt.length&&"break"!==a(o);++o);else r&&(n=bt[s].findIndex((function(t){return vt(t,r)})));var c=bt[s],l=c[i],u=l;if(-1===n)for(o=i+1;o<c.length&&t/(c[o].divisor/l.divisor)>=1;++o)u=c[o];else u=c[n];return r&&-1===n&&console.warn('Cannot convert unit "'+(e||l.display)+'" to "'+r+'"'),[t/(u.divisor/l.divisor),u.display]}(t,e.unit,e.targetUnit),o=a[0],c=a[1];return[""+Ct(o,void 0===(null==e?void 0:e.precision)?1:e.precision,i),c];case yt.Data:var u=function(t,e,r){var s=Pt.length-1,i=0,n=-1,a=Math.sign(t),o=Math.abs(t);if(e)for(var c=function(t){var a=-1,o=-1;if(Pt[t].forEach((function(t,s){xt(t,e)&&(a=s),xt(t,r)&&(o=s)})),-1!==a)return s=t,i=a,n=o,"break"},l=0;l<Pt.length&&"break"!==c(l);++l);else r&&(n=Pt[s].findIndex((function(t){return xt(t,r)})));var u=Pt[s],h=u[i],p=h;if(-1===n)for(l=i+1;l<u.length&&o/(u[l].divisor/h.divisor)>=1;++l)p=u[l];else p=u[n];return r&&-1===n&&console.warn('Cannot convert unit "'+(e||h.display)+'" to "'+r+'"'),[o/(p.divisor/h.divisor)*a,p.display]}(t,e.unit,e.targetUnit),h=u[0],p=u[1];return[""+Ct(h,s,i),p];case yt.DataRate:var d=function(t,e,r){var s=St.length-1,i=0,n=-1,a=Math.sign(t),o=Math.abs(t);if(e)for(var c=function(t){var a=-1,o=-1;if(St[t].forEach((function(t,s){vt(t,e)&&(a=s),vt(t,r)&&(o=s)})),-1!==a)return s=t,i=a,n=o,"break"},l=0;l<St.length&&"break"!==c(l);++l);else r&&(n=St[s].findIndex((function(t){return vt(t,r)})));var u=St[s],h=u[i],p=h;if(-1===n)for(l=i+1;l<u.length&&o/(u[l].divisor/h.divisor)>=1;++l)p=u[l];else p=u[n];return r&&-1===n&&console.warn('Cannot convert unit "'+(e||h.display)+'" to "'+r+'"'),[o/(p.divisor/h.divisor)*a,p.display]}(t,e.unit,e.targetUnit),f=d[0],m=d[1];return[""+Ct(f,s,i),m];case yt.None:return[Ct(t,s,i),""];default:return[kt(t,e.unit,s,i),e.unit]}};function It(t,e,r,s,i){return void 0===r&&(r=2),Nt(t,{unit:e,precision:r,targetUnit:s,fixedPrecision:i})}var Mt=r(8679);function Lt(t){var e;try{e=(0,Mt.safeLoad)(t,{schema:Mt.JSON_SCHEMA,json:!0})}catch(t){console.error(t)}return e}function Ot(t,e,r){var s;void 0===e&&(e=2);try{s=(0,Mt.safeDump)(t,E({indent:e,schema:Mt.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0},r))}catch(t){console.error(t)}return s}function Dt(t,e){return(0,l.round)(t,e)}function Ft(t){return decodeURIComponent(atob(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function jt(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))})))}},4586:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(1369);function i(t,e,r){return(e=(0,s.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},4635:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(2016);function i(t,e){(0,s.A)(t,e),e.add(t)}},4865:function(t,e,r){!function(t){"use strict";t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},4938:(t,e,r)=>{"use strict";var s=r(5417),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new s("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==i.exec(t)||null!==n.exec(t))},construct:function(t){var e,r,s,a,o,c,l,u,h=0,p=null;if(null===(e=i.exec(t))&&(e=n.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],s=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,s,a));if(o=+e[4],c=+e[5],l=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(p=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(p=-p)),u=new Date(Date.UTC(r,s,a,o,c,l,h)),p&&u.setTime(u.getTime()-p),u},instanceOf:Date,represent:function(t){return t.toISOString()}})},5060:function(t,e,r){var s,i;void 0===(i="function"==typeof(s=function(){"use strict";function e(t,e,r){var s=new XMLHttpRequest;s.open("GET",t),s.responseType="blob",s.onload=function(){o(s.response,e,r)},s.onerror=function(){console.error("could not download file")},s.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var n="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=n.saveAs||("object"!=typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,r,a){var o=n.URL||n.webkitURL,c=document.createElement("a");r=r||t.name||"download",c.download=r,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?i(c):s(c.href)?e(t,r,a):i(c,c.target="_blank")):(c.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(c.href)}),4e4),setTimeout((function(){i(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,n){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,n),r);else if(s(t))e(t,r,n);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){i(a)}))}}:function(t,r,s,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,r,s);var o="application/octet-stream"===t.type,c=/constructor/i.test(n.HTMLElement)||n.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&c||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var h=n.URL||n.webkitURL,p=h.createObjectURL(t);i?i.location=p:location.href=p,i=null,setTimeout((function(){h.revokeObjectURL(p)}),4e4)}});n.saveAs=o.saveAs=o,t.exports=o})?s.apply(e,[]):s)||(t.exports=i)},5137:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},5152:(t,e,r)=>{"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,{A:()=>s})},5250:function(t,e,r){var s;t=r.nmd(t),function(){var i,n="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",c=32,l=128,u=1/0,h=9007199254740991,p=NaN,d=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",v="[object Date]",x="[object Error]",b="[object Function]",w="[object GeneratorFunction]",P="[object Map]",T="[object Number]",S="[object Object]",A="[object Promise]",k="[object RegExp]",_="[object Set]",E="[object String]",C="[object Symbol]",N="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",D="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",R="[object Uint8Array]",B="[object Uint8ClampedArray]",Y="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,$=RegExp(V.source),K=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),st=/^\s+/,it=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Pt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Tt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",kt="\\ufe0e\\ufe0f",_t="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="["+wt+"]",Ct="["+_t+"]",Nt="["+Pt+"]",It="\\d+",Mt="["+Tt+"]",Lt="["+St+"]",Ot="[^"+wt+_t+It+Tt+St+At+"]",Dt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+wt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+At+"]",Yt="\\u200d",Ut="(?:"+Lt+"|"+Ot+")",Ht="(?:"+Bt+"|"+Ot+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+Nt+"|"+Dt+")?",qt="["+kt+"]?",$t=qt+Vt+"(?:"+Yt+"(?:"+[Ft,jt,Rt].join("|")+")"+qt+Vt+")*",Kt="(?:"+[Mt,jt,Rt].join("|")+")"+$t,Jt="(?:"+[Ft+Nt+"?",Nt,jt,Rt,Et].join("|")+")",Gt=RegExp("['’]","g"),Xt=RegExp(Nt,"g"),Zt=RegExp(Dt+"(?="+Dt+")|"+Jt+$t,"g"),Qt=RegExp([Bt+"?"+Lt+"+"+Wt+"(?="+[Ct,Bt,"$"].join("|")+")",Ht+"+"+zt+"(?="+[Ct,Bt+Ut,"$"].join("|")+")",Bt+"?"+Ut+"+"+Wt,Bt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Kt].join("|"),"g"),te=RegExp("["+Yt+wt+Pt+kt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],se=-1,ie={};ie[L]=ie[O]=ie[D]=ie[F]=ie[j]=ie[R]=ie[B]=ie[Y]=ie[U]=!0,ie[m]=ie[y]=ie[I]=ie[g]=ie[M]=ie[v]=ie[x]=ie[b]=ie[P]=ie[T]=ie[S]=ie[k]=ie[_]=ie[E]=ie[N]=!1;var ne={};ne[m]=ne[y]=ne[I]=ne[M]=ne[g]=ne[v]=ne[L]=ne[O]=ne[D]=ne[F]=ne[j]=ne[P]=ne[T]=ne[S]=ne[k]=ne[_]=ne[E]=ne[C]=ne[R]=ne[B]=ne[Y]=ne[U]=!0,ne[x]=ne[b]=ne[N]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oe=parseFloat,ce=parseInt,le="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ue="object"==typeof self&&self&&self.Object===Object&&self,he=le||ue||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,fe=de&&de.exports===pe,me=fe&&le.process,ye=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ge=ye&&ye.isArrayBuffer,ve=ye&&ye.isDate,xe=ye&&ye.isMap,be=ye&&ye.isRegExp,we=ye&&ye.isSet,Pe=ye&&ye.isTypedArray;function Te(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Se(t,e,r,s){for(var i=-1,n=null==t?0:t.length;++i<n;){var a=t[i];e(s,a,r(a),t)}return s}function Ae(t,e){for(var r=-1,s=null==t?0:t.length;++r<s&&!1!==e(t[r],r,t););return t}function ke(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function _e(t,e){for(var r=-1,s=null==t?0:t.length;++r<s;)if(!e(t[r],r,t))return!1;return!0}function Ee(t,e){for(var r=-1,s=null==t?0:t.length,i=0,n=[];++r<s;){var a=t[r];e(a,r,t)&&(n[i++]=a)}return n}function Ce(t,e){return!(null==t||!t.length)&&Be(t,e,0)>-1}function Ne(t,e,r){for(var s=-1,i=null==t?0:t.length;++s<i;)if(r(e,t[s]))return!0;return!1}function Ie(t,e){for(var r=-1,s=null==t?0:t.length,i=Array(s);++r<s;)i[r]=e(t[r],r,t);return i}function Me(t,e){for(var r=-1,s=e.length,i=t.length;++r<s;)t[i+r]=e[r];return t}function Le(t,e,r,s){var i=-1,n=null==t?0:t.length;for(s&&n&&(r=t[++i]);++i<n;)r=e(r,t[i],i,t);return r}function Oe(t,e,r,s){var i=null==t?0:t.length;for(s&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function De(t,e){for(var r=-1,s=null==t?0:t.length;++r<s;)if(e(t[r],r,t))return!0;return!1}var Fe=We("length");function je(t,e,r){var s;return r(t,(function(t,r,i){if(e(t,r,i))return s=r,!1})),s}function Re(t,e,r,s){for(var i=t.length,n=r+(s?1:-1);s?n--:++n<i;)if(e(t[n],n,t))return n;return-1}function Be(t,e,r){return e==e?function(t,e,r){for(var s=r-1,i=t.length;++s<i;)if(t[s]===e)return s;return-1}(t,e,r):Re(t,Ue,r)}function Ye(t,e,r,s){for(var i=r-1,n=t.length;++i<n;)if(s(t[i],e))return i;return-1}function Ue(t){return t!=t}function He(t,e){var r=null==t?0:t.length;return r?qe(t,e)/r:p}function We(t){return function(e){return null==e?i:e[t]}}function ze(t){return function(e){return null==t?i:t[e]}}function Ve(t,e,r,s,i){return i(t,(function(t,i,n){r=s?(s=!1,t):e(r,t,i,n)})),r}function qe(t,e){for(var r,s=-1,n=t.length;++s<n;){var a=e(t[s]);a!==i&&(r=r===i?a:r+a)}return r}function $e(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}function Ke(t){return t?t.slice(0,ur(t)+1).replace(st,""):t}function Je(t){return function(e){return t(e)}}function Ge(t,e){return Ie(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Ze(t,e){for(var r=-1,s=t.length;++r<s&&Be(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&Be(e,t[r],0)>-1;);return r}var tr=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=ze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(t){return"\\"+ae[t]}function sr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,s){r[++e]=[s,t]})),r}function nr(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,s=t.length,i=0,n=[];++r<s;){var a=t[r];a!==e&&a!==o||(t[r]=o,n[i++]=r)}return n}function or(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function cr(t){return sr(t)?function(t){for(var e=Zt.lastIndex=0;Zt.test(t);)++e;return e}(t):Fe(t)}function lr(t){return sr(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.split("")}(t)}function ur(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var hr=ze({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pr=function t(e){var r,s=(e=null==e?he:pr.defaults(he.Object(),e,pr.pick(he,re))).Array,it=e.Date,wt=e.Error,Pt=e.Function,Tt=e.Math,St=e.Object,At=e.RegExp,kt=e.String,_t=e.TypeError,Et=s.prototype,Ct=Pt.prototype,Nt=St.prototype,It=e["__core-js_shared__"],Mt=Ct.toString,Lt=Nt.hasOwnProperty,Ot=0,Dt=(r=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ft=Nt.toString,jt=Mt.call(St),Rt=he._,Bt=At("^"+Mt.call(Lt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=fe?e.Buffer:i,Ut=e.Symbol,Ht=e.Uint8Array,Wt=Yt?Yt.allocUnsafe:i,zt=nr(St.getPrototypeOf,St),Vt=St.create,qt=Nt.propertyIsEnumerable,$t=Et.splice,Kt=Ut?Ut.isConcatSpreadable:i,Jt=Ut?Ut.iterator:i,Zt=Ut?Ut.toStringTag:i,te=function(){try{var t=on(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,le=it&&it.now!==he.Date.now&&it.now,ue=e.setTimeout!==he.setTimeout&&e.setTimeout,pe=Tt.ceil,de=Tt.floor,me=St.getOwnPropertySymbols,ye=Yt?Yt.isBuffer:i,Fe=e.isFinite,ze=Et.join,dr=nr(St.keys,St),fr=Tt.max,mr=Tt.min,yr=it.now,gr=e.parseInt,vr=Tt.random,xr=Et.reverse,br=on(e,"DataView"),wr=on(e,"Map"),Pr=on(e,"Promise"),Tr=on(e,"Set"),Sr=on(e,"WeakMap"),Ar=on(St,"create"),kr=Sr&&new Sr,_r={},Er=Dn(br),Cr=Dn(wr),Nr=Dn(Pr),Ir=Dn(Tr),Mr=Dn(Sr),Lr=Ut?Ut.prototype:i,Or=Lr?Lr.valueOf:i,Dr=Lr?Lr.toString:i;function Fr(t){if(Za(t)&&!Ua(t)&&!(t instanceof Yr)){if(t instanceof Br)return t;if(Lt.call(t,"__wrapped__"))return Fn(t)}return new Br(t)}var jr=function(){function t(){}return function(e){if(!Xa(e))return{};if(Vt)return Vt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Rr(){}function Br(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Yr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Ur(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Wr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Wr;++e<r;)this.add(t[e])}function Vr(t){var e=this.__data__=new Hr(t);this.size=e.size}function qr(t,e){var r=Ua(t),s=!r&&Ya(t),i=!r&&!s&&Va(t),n=!r&&!s&&!i&&ao(t),a=r||s||i||n,o=a?$e(t.length,kt):[],c=o.length;for(var l in t)!e&&!Lt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||n&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||fn(l,c))||o.push(l);return o}function $r(t){var e=t.length;return e?t[Ws(0,e-1)]:i}function Kr(t,e){return Nn(Si(t),ss(e,0,t.length))}function Jr(t){return Nn(Si(t))}function Gr(t,e,r){(r!==i&&!ja(t[e],r)||r===i&&!(e in t))&&es(t,e,r)}function Xr(t,e,r){var s=t[e];Lt.call(t,e)&&ja(s,r)&&(r!==i||e in t)||es(t,e,r)}function Zr(t,e){for(var r=t.length;r--;)if(ja(t[r][0],e))return r;return-1}function Qr(t,e,r,s){return cs(t,(function(t,i,n){e(s,t,r(t),n)})),s}function ts(t,e){return t&&Ai(e,Co(e),t)}function es(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function rs(t,e){for(var r=-1,n=e.length,a=s(n),o=null==t;++r<n;)a[r]=o?i:So(t,e[r]);return a}function ss(t,e,r){return t==t&&(r!==i&&(t=t<=r?t:r),e!==i&&(t=t>=e?t:e)),t}function is(t,e,r,s,n,a){var o,c=1&e,l=2&e,u=4&e;if(r&&(o=n?r(t,s,n,a):r(t)),o!==i)return o;if(!Xa(t))return t;var h=Ua(t);if(h){if(o=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return Si(t,o)}else{var p=un(t),d=p==b||p==w;if(Va(t))return vi(t,c);if(p==S||p==m||d&&!n){if(o=l||d?{}:pn(t),!c)return l?function(t,e){return Ai(t,ln(t),e)}(t,function(t,e){return t&&Ai(e,No(e),t)}(o,t)):function(t,e){return Ai(t,cn(t),e)}(t,ts(o,t))}else{if(!ne[p])return n?t:{};o=function(t,e,r){var s,i=t.constructor;switch(e){case I:return xi(t);case g:case v:return new i(+t);case M:return function(t,e){var r=e?xi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case L:case O:case D:case F:case j:case R:case B:case Y:case U:return bi(t,r);case P:return new i;case T:case E:return new i(t);case k:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new i;case C:return s=t,Or?St(Or.call(s)):{}}}(t,p,c)}}a||(a=new Vr);var f=a.get(t);if(f)return f;a.set(t,o),so(t)?t.forEach((function(s){o.add(is(s,e,r,s,t,a))})):Qa(t)&&t.forEach((function(s,i){o.set(i,is(s,e,r,i,t,a))}));var y=h?i:(u?l?Qi:Zi:l?No:Co)(t);return Ae(y||t,(function(s,i){y&&(s=t[i=s]),Xr(o,i,is(s,e,r,i,t,a))})),o}function ns(t,e,r){var s=r.length;if(null==t)return!s;for(t=St(t);s--;){var n=r[s],a=e[n],o=t[n];if(o===i&&!(n in t)||!a(o))return!1}return!0}function as(t,e,r){if("function"!=typeof t)throw new _t(n);return kn((function(){t.apply(i,r)}),e)}function os(t,e,r,s){var i=-1,n=Ce,a=!0,o=t.length,c=[],l=e.length;if(!o)return c;r&&(e=Ie(e,Je(r))),s?(n=Ne,a=!1):e.length>=200&&(n=Xe,a=!1,e=new zr(e));t:for(;++i<o;){var u=t[i],h=null==r?u:r(u);if(u=s||0!==u?u:0,a&&h==h){for(var p=l;p--;)if(e[p]===h)continue t;c.push(u)}else n(e,h,s)||c.push(u)}return c}Fr.templateSettings={escape:J,evaluate:G,interpolate:X,variable:"",imports:{_:Fr}},Fr.prototype=Rr.prototype,Fr.prototype.constructor=Fr,Br.prototype=jr(Rr.prototype),Br.prototype.constructor=Br,Yr.prototype=jr(Rr.prototype),Yr.prototype.constructor=Yr,Ur.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Ur.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ur.prototype.get=function(t){var e=this.__data__;if(Ar){var r=e[t];return r===a?i:r}return Lt.call(e,t)?e[t]:i},Ur.prototype.has=function(t){var e=this.__data__;return Ar?e[t]!==i:Lt.call(e,t)},Ur.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ar&&e===i?a:e,this},Hr.prototype.clear=function(){this.__data__=[],this.size=0},Hr.prototype.delete=function(t){var e=this.__data__,r=Zr(e,t);return!(r<0||(r==e.length-1?e.pop():$t.call(e,r,1),--this.size,0))},Hr.prototype.get=function(t){var e=this.__data__,r=Zr(e,t);return r<0?i:e[r][1]},Hr.prototype.has=function(t){return Zr(this.__data__,t)>-1},Hr.prototype.set=function(t,e){var r=this.__data__,s=Zr(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(wr||Hr),string:new Ur}},Wr.prototype.delete=function(t){var e=nn(this,t).delete(t);return this.size-=e?1:0,e},Wr.prototype.get=function(t){return nn(this,t).get(t)},Wr.prototype.has=function(t){return nn(this,t).has(t)},Wr.prototype.set=function(t,e){var r=nn(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this},zr.prototype.add=zr.prototype.push=function(t){return this.__data__.set(t,a),this},zr.prototype.has=function(t){return this.__data__.has(t)},Vr.prototype.clear=function(){this.__data__=new Hr,this.size=0},Vr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Vr.prototype.get=function(t){return this.__data__.get(t)},Vr.prototype.has=function(t){return this.__data__.has(t)},Vr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Hr){var s=r.__data__;if(!wr||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wr(s)}return r.set(t,e),this.size=r.size,this};var cs=Ei(ys),ls=Ei(gs,!0);function us(t,e){var r=!0;return cs(t,(function(t,s,i){return r=!!e(t,s,i)})),r}function hs(t,e,r){for(var s=-1,n=t.length;++s<n;){var a=t[s],o=e(a);if(null!=o&&(c===i?o==o&&!no(o):r(o,c)))var c=o,l=a}return l}function ps(t,e){var r=[];return cs(t,(function(t,s,i){e(t,s,i)&&r.push(t)})),r}function ds(t,e,r,s,i){var n=-1,a=t.length;for(r||(r=dn),i||(i=[]);++n<a;){var o=t[n];e>0&&r(o)?e>1?ds(o,e-1,r,s,i):Me(i,o):s||(i[i.length]=o)}return i}var fs=Ci(),ms=Ci(!0);function ys(t,e){return t&&fs(t,e,Co)}function gs(t,e){return t&&ms(t,e,Co)}function vs(t,e){return Ee(e,(function(e){return Ka(t[e])}))}function xs(t,e){for(var r=0,s=(e=fi(e,t)).length;null!=t&&r<s;)t=t[On(e[r++])];return r&&r==s?t:i}function bs(t,e,r){var s=e(t);return Ua(t)?s:Me(s,r(t))}function ws(t){return null==t?t===i?"[object Undefined]":"[object Null]":Zt&&Zt in St(t)?function(t){var e=Lt.call(t,Zt),r=t[Zt];try{t[Zt]=i;var s=!0}catch(t){}var n=Ft.call(t);return s&&(e?t[Zt]=r:delete t[Zt]),n}(t):function(t){return Ft.call(t)}(t)}function Ps(t,e){return t>e}function Ts(t,e){return null!=t&&Lt.call(t,e)}function Ss(t,e){return null!=t&&e in St(t)}function As(t,e,r){for(var n=r?Ne:Ce,a=t[0].length,o=t.length,c=o,l=s(o),u=1/0,h=[];c--;){var p=t[c];c&&e&&(p=Ie(p,Je(e))),u=mr(p.length,u),l[c]=!r&&(e||a>=120&&p.length>=120)?new zr(c&&p):i}p=t[0];var d=-1,f=l[0];t:for(;++d<a&&h.length<u;){var m=p[d],y=e?e(m):m;if(m=r||0!==m?m:0,!(f?Xe(f,y):n(h,y,r))){for(c=o;--c;){var g=l[c];if(!(g?Xe(g,y):n(t[c],y,r)))continue t}f&&f.push(y),h.push(m)}}return h}function ks(t,e,r){var s=null==(t=Tn(t,e=fi(e,t)))?t:t[On($n(e))];return null==s?i:Te(s,t,r)}function _s(t){return Za(t)&&ws(t)==m}function Es(t,e,r,s,n){return t===e||(null==t||null==e||!Za(t)&&!Za(e)?t!=t&&e!=e:function(t,e,r,s,n,a){var o=Ua(t),c=Ua(e),l=o?y:un(t),u=c?y:un(e),h=(l=l==m?S:l)==S,p=(u=u==m?S:u)==S,d=l==u;if(d&&Va(t)){if(!Va(e))return!1;o=!0,h=!1}if(d&&!h)return a||(a=new Vr),o||ao(t)?Gi(t,e,r,s,n,a):function(t,e,r,s,i,n,a){switch(r){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case I:return!(t.byteLength!=e.byteLength||!n(new Ht(t),new Ht(e)));case g:case v:case T:return ja(+t,+e);case x:return t.name==e.name&&t.message==e.message;case k:case E:return t==e+"";case P:var o=ir;case _:var c=1&s;if(o||(o=or),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;s|=2,a.set(t,e);var u=Gi(o(t),o(e),s,i,n,a);return a.delete(t),u;case C:if(Or)return Or.call(t)==Or.call(e)}return!1}(t,e,l,r,s,n,a);if(!(1&r)){var f=h&&Lt.call(t,"__wrapped__"),b=p&&Lt.call(e,"__wrapped__");if(f||b){var w=f?t.value():t,A=b?e.value():e;return a||(a=new Vr),n(w,A,r,s,a)}}return!!d&&(a||(a=new Vr),function(t,e,r,s,n,a){var o=1&r,c=Zi(t),l=c.length;if(l!=Zi(e).length&&!o)return!1;for(var u=l;u--;){var h=c[u];if(!(o?h in e:Lt.call(e,h)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var m=o;++u<l;){var y=t[h=c[u]],g=e[h];if(s)var v=o?s(g,y,h,e,t,a):s(y,g,h,t,e,a);if(!(v===i?y===g||n(y,g,r,s,a):v)){f=!1;break}m||(m="constructor"==h)}if(f&&!m){var x=t.constructor,b=e.constructor;x==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(t),a.delete(e),f}(t,e,r,s,n,a))}(t,e,r,s,Es,n))}function Cs(t,e,r,s){var n=r.length,a=n,o=!s;if(null==t)return!a;for(t=St(t);n--;){var c=r[n];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++n<a;){var l=(c=r[n])[0],u=t[l],h=c[1];if(o&&c[2]){if(u===i&&!(l in t))return!1}else{var p=new Vr;if(s)var d=s(u,h,l,t,e,p);if(!(d===i?Es(h,u,3,s,p):d))return!1}}return!0}function Ns(t){return!(!Xa(t)||(e=t,Dt&&Dt in e))&&(Ka(t)?Bt:mt).test(Dn(t));var e}function Is(t){return"function"==typeof t?t:null==t?ec:"object"==typeof t?Ua(t)?Fs(t[0],t[1]):Ds(t):uc(t)}function Ms(t){if(!xn(t))return dr(t);var e=[];for(var r in St(t))Lt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Ls(t,e){return t<e}function Os(t,e){var r=-1,i=Wa(t)?s(t.length):[];return cs(t,(function(t,s,n){i[++r]=e(t,s,n)})),i}function Ds(t){var e=an(t);return 1==e.length&&e[0][2]?wn(e[0][0],e[0][1]):function(r){return r===t||Cs(r,t,e)}}function Fs(t,e){return yn(t)&&bn(e)?wn(On(t),e):function(r){var s=So(r,t);return s===i&&s===e?Ao(r,t):Es(e,s,3)}}function js(t,e,r,s,n){t!==e&&fs(e,(function(a,o){if(n||(n=new Vr),Xa(a))!function(t,e,r,s,n,a,o){var c=Sn(t,r),l=Sn(e,r),u=o.get(l);if(u)Gr(t,r,u);else{var h=a?a(c,l,r+"",t,e,o):i,p=h===i;if(p){var d=Ua(l),f=!d&&Va(l),m=!d&&!f&&ao(l);h=l,d||f||m?Ua(c)?h=c:za(c)?h=Si(c):f?(p=!1,h=vi(l,!0)):m?(p=!1,h=bi(l,!0)):h=[]:eo(l)||Ya(l)?(h=c,Ya(c)?h=mo(c):Xa(c)&&!Ka(c)||(h=pn(l))):p=!1}p&&(o.set(l,h),n(h,l,s,a,o),o.delete(l)),Gr(t,r,h)}}(t,e,o,r,js,s,n);else{var c=s?s(Sn(t,o),a,o+"",t,e,n):i;c===i&&(c=a),Gr(t,o,c)}}),No)}function Rs(t,e){var r=t.length;if(r)return fn(e+=e<0?r:0,r)?t[e]:i}function Bs(t,e,r){e=e.length?Ie(e,(function(t){return Ua(t)?function(e){return xs(e,1===t.length?t[0]:t)}:t})):[ec];var s=-1;e=Ie(e,Je(sn()));var i=Os(t,(function(t,r,i){var n=Ie(e,(function(e){return e(t)}));return{criteria:n,index:++s,value:t}}));return function(t){var e=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var s=-1,i=t.criteria,n=e.criteria,a=i.length,o=r.length;++s<a;){var c=wi(i[s],n[s]);if(c)return s>=o?c:c*("desc"==r[s]?-1:1)}return t.index-e.index}(t,e,r)}));e--;)t[e]=t[e].value;return t}(i)}function Ys(t,e,r){for(var s=-1,i=e.length,n={};++s<i;){var a=e[s],o=xs(t,a);r(o,a)&&Ks(n,fi(a,t),o)}return n}function Us(t,e,r,s){var i=s?Ye:Be,n=-1,a=e.length,o=t;for(t===e&&(e=Si(e)),r&&(o=Ie(t,Je(r)));++n<a;)for(var c=0,l=e[n],u=r?r(l):l;(c=i(o,u,c,s))>-1;)o!==t&&$t.call(o,c,1),$t.call(t,c,1);return t}function Hs(t,e){for(var r=t?e.length:0,s=r-1;r--;){var i=e[r];if(r==s||i!==n){var n=i;fn(i)?$t.call(t,i,1):ai(t,i)}}return t}function Ws(t,e){return t+de(vr()*(e-t+1))}function zs(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=de(e/2))&&(t+=t)}while(e);return r}function Vs(t,e){return _n(Pn(t,e,ec),t+"")}function qs(t){return $r(Ro(t))}function $s(t,e){var r=Ro(t);return Nn(r,ss(e,0,r.length))}function Ks(t,e,r,s){if(!Xa(t))return t;for(var n=-1,a=(e=fi(e,t)).length,o=a-1,c=t;null!=c&&++n<a;){var l=On(e[n]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(n!=o){var h=c[l];(u=s?s(h,l,c):i)===i&&(u=Xa(h)?h:fn(e[n+1])?[]:{})}Xr(c,l,u),c=c[l]}return t}var Js=kr?function(t,e){return kr.set(t,e),t}:ec,Gs=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Zo(e),writable:!0})}:ec;function Xs(t){return Nn(Ro(t))}function Zs(t,e,r){var i=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(r=r>n?n:r)<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var a=s(n);++i<n;)a[i]=t[i+e];return a}function Qs(t,e){var r;return cs(t,(function(t,s,i){return!(r=e(t,s,i))})),!!r}function ti(t,e,r){var s=0,i=null==t?s:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;s<i;){var n=s+i>>>1,a=t[n];null!==a&&!no(a)&&(r?a<=e:a<e)?s=n+1:i=n}return i}return ei(t,e,ec,r)}function ei(t,e,r,s){var n=0,a=null==t?0:t.length;if(0===a)return 0;for(var o=(e=r(e))!=e,c=null===e,l=no(e),u=e===i;n<a;){var h=de((n+a)/2),p=r(t[h]),d=p!==i,f=null===p,m=p==p,y=no(p);if(o)var g=s||m;else g=u?m&&(s||d):c?m&&d&&(s||!f):l?m&&d&&!f&&(s||!y):!f&&!y&&(s?p<=e:p<e);g?n=h+1:a=h}return mr(a,4294967294)}function ri(t,e){for(var r=-1,s=t.length,i=0,n=[];++r<s;){var a=t[r],o=e?e(a):a;if(!r||!ja(o,c)){var c=o;n[i++]=0===a?0:a}}return n}function si(t){return"number"==typeof t?t:no(t)?p:+t}function ii(t){if("string"==typeof t)return t;if(Ua(t))return Ie(t,ii)+"";if(no(t))return Dr?Dr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ni(t,e,r){var s=-1,i=Ce,n=t.length,a=!0,o=[],c=o;if(r)a=!1,i=Ne;else if(n>=200){var l=e?null:zi(t);if(l)return or(l);a=!1,i=Xe,c=new zr}else c=e?[]:o;t:for(;++s<n;){var u=t[s],h=e?e(u):u;if(u=r||0!==u?u:0,a&&h==h){for(var p=c.length;p--;)if(c[p]===h)continue t;e&&c.push(h),o.push(u)}else i(c,h,r)||(c!==o&&c.push(h),o.push(u))}return o}function ai(t,e){return null==(t=Tn(t,e=fi(e,t)))||delete t[On($n(e))]}function oi(t,e,r,s){return Ks(t,e,r(xs(t,e)),s)}function ci(t,e,r,s){for(var i=t.length,n=s?i:-1;(s?n--:++n<i)&&e(t[n],n,t););return r?Zs(t,s?0:n,s?n+1:i):Zs(t,s?n+1:0,s?i:n)}function li(t,e){var r=t;return r instanceof Yr&&(r=r.value()),Le(e,(function(t,e){return e.func.apply(e.thisArg,Me([t],e.args))}),r)}function ui(t,e,r){var i=t.length;if(i<2)return i?ni(t[0]):[];for(var n=-1,a=s(i);++n<i;)for(var o=t[n],c=-1;++c<i;)c!=n&&(a[n]=os(a[n]||o,t[c],e,r));return ni(ds(a,1),e,r)}function hi(t,e,r){for(var s=-1,n=t.length,a=e.length,o={};++s<n;){var c=s<a?e[s]:i;r(o,t[s],c)}return o}function pi(t){return za(t)?t:[]}function di(t){return"function"==typeof t?t:ec}function fi(t,e){return Ua(t)?t:yn(t,e)?[t]:Ln(yo(t))}var mi=Vs;function yi(t,e,r){var s=t.length;return r=r===i?s:r,!e&&r>=s?t:Zs(t,e,r)}var gi=ae||function(t){return he.clearTimeout(t)};function vi(t,e){if(e)return t.slice();var r=t.length,s=Wt?Wt(r):new t.constructor(r);return t.copy(s),s}function xi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function bi(t,e){var r=e?xi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function wi(t,e){if(t!==e){var r=t!==i,s=null===t,n=t==t,a=no(t),o=e!==i,c=null===e,l=e==e,u=no(e);if(!c&&!u&&!a&&t>e||a&&o&&l&&!c&&!u||s&&o&&l||!r&&l||!n)return 1;if(!s&&!a&&!u&&t<e||u&&r&&n&&!s&&!a||c&&r&&n||!o&&n||!l)return-1}return 0}function Pi(t,e,r,i){for(var n=-1,a=t.length,o=r.length,c=-1,l=e.length,u=fr(a-o,0),h=s(l+u),p=!i;++c<l;)h[c]=e[c];for(;++n<o;)(p||n<a)&&(h[r[n]]=t[n]);for(;u--;)h[c++]=t[n++];return h}function Ti(t,e,r,i){for(var n=-1,a=t.length,o=-1,c=r.length,l=-1,u=e.length,h=fr(a-c,0),p=s(h+u),d=!i;++n<h;)p[n]=t[n];for(var f=n;++l<u;)p[f+l]=e[l];for(;++o<c;)(d||n<a)&&(p[f+r[o]]=t[n++]);return p}function Si(t,e){var r=-1,i=t.length;for(e||(e=s(i));++r<i;)e[r]=t[r];return e}function Ai(t,e,r,s){var n=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var c=e[a],l=s?s(r[c],t[c],c,r,t):i;l===i&&(l=t[c]),n?es(r,c,l):Xr(r,c,l)}return r}function ki(t,e){return function(r,s){var i=Ua(r)?Se:Qr,n=e?e():{};return i(r,t,sn(s,2),n)}}function _i(t){return Vs((function(e,r){var s=-1,n=r.length,a=n>1?r[n-1]:i,o=n>2?r[2]:i;for(a=t.length>3&&"function"==typeof a?(n--,a):i,o&&mn(r[0],r[1],o)&&(a=n<3?i:a,n=1),e=St(e);++s<n;){var c=r[s];c&&t(e,c,s,a)}return e}))}function Ei(t,e){return function(r,s){if(null==r)return r;if(!Wa(r))return t(r,s);for(var i=r.length,n=e?i:-1,a=St(r);(e?n--:++n<i)&&!1!==s(a[n],n,a););return r}}function Ci(t){return function(e,r,s){for(var i=-1,n=St(e),a=s(e),o=a.length;o--;){var c=a[t?o:++i];if(!1===r(n[c],c,n))break}return e}}function Ni(t){return function(e){var r=sr(e=yo(e))?lr(e):i,s=r?r[0]:e.charAt(0),n=r?yi(r,1).join(""):e.slice(1);return s[t]()+n}}function Ii(t){return function(e){return Le(Jo(Uo(e).replace(Gt,"")),t,"")}}function Mi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=jr(t.prototype),s=t.apply(r,e);return Xa(s)?s:r}}function Li(t){return function(e,r,s){var n=St(e);if(!Wa(e)){var a=sn(r,3);e=Co(e),r=function(t){return a(n[t],t,n)}}var o=t(e,r,s);return o>-1?n[a?e[o]:o]:i}}function Oi(t){return Xi((function(e){var r=e.length,s=r,a=Br.prototype.thru;for(t&&e.reverse();s--;){var o=e[s];if("function"!=typeof o)throw new _t(n);if(a&&!c&&"wrapper"==en(o))var c=new Br([],!0)}for(s=c?s:r;++s<r;){var l=en(o=e[s]),u="wrapper"==l?tn(o):i;c=u&&gn(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[en(u[0])].apply(c,u[3]):1==o.length&&gn(o)?c[l]():c.thru(o)}return function(){var t=arguments,s=t[0];if(c&&1==t.length&&Ua(s))return c.plant(s).value();for(var i=0,n=r?e[i].apply(this,t):s;++i<r;)n=e[i].call(this,n);return n}}))}function Di(t,e,r,n,a,o,c,u,h,p){var d=e&l,f=1&e,m=2&e,y=24&e,g=512&e,v=m?i:Mi(t);return function l(){for(var x=arguments.length,b=s(x),w=x;w--;)b[w]=arguments[w];if(y)var P=rn(l),T=function(t,e){for(var r=t.length,s=0;r--;)t[r]===e&&++s;return s}(b,P);if(n&&(b=Pi(b,n,a,y)),o&&(b=Ti(b,o,c,y)),x-=T,y&&x<p){var S=ar(b,P);return Hi(t,e,Di,l.placeholder,r,b,S,u,h,p-x)}var A=f?r:this,k=m?A[t]:t;return x=b.length,u?b=function(t,e){for(var r=t.length,s=mr(e.length,r),n=Si(t);s--;){var a=e[s];t[s]=fn(a,r)?n[a]:i}return t}(b,u):g&&x>1&&b.reverse(),d&&h<x&&(b.length=h),this&&this!==he&&this instanceof l&&(k=v||Mi(k)),k.apply(A,b)}}function Fi(t,e){return function(r,s){return function(t,e,r,s){return ys(t,(function(t,i,n){e(s,r(t),i,n)})),s}(r,t,e(s),{})}}function ji(t,e){return function(r,s){var n;if(r===i&&s===i)return e;if(r!==i&&(n=r),s!==i){if(n===i)return s;"string"==typeof r||"string"==typeof s?(r=ii(r),s=ii(s)):(r=si(r),s=si(s)),n=t(r,s)}return n}}function Ri(t){return Xi((function(e){return e=Ie(e,Je(sn())),Vs((function(r){var s=this;return t(e,(function(t){return Te(t,s,r)}))}))}))}function Bi(t,e){var r=(e=e===i?" ":ii(e)).length;if(r<2)return r?zs(e,t):e;var s=zs(e,pe(t/cr(e)));return sr(e)?yi(lr(s),0,t).join(""):s.slice(0,t)}function Yi(t){return function(e,r,n){return n&&"number"!=typeof n&&mn(e,r,n)&&(r=n=i),e=uo(e),r===i?(r=e,e=0):r=uo(r),function(t,e,r,i){for(var n=-1,a=fr(pe((e-t)/(r||1)),0),o=s(a);a--;)o[i?a:++n]=t,t+=r;return o}(e,r,n=n===i?e<r?1:-1:uo(n),t)}}function Ui(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=fo(e),r=fo(r)),t(e,r)}}function Hi(t,e,r,s,n,a,o,l,u,h){var p=8&e;e|=p?c:64,4&(e&=~(p?64:c))||(e&=-4);var d=[t,e,n,p?a:i,p?o:i,p?i:a,p?i:o,l,u,h],f=r.apply(i,d);return gn(t)&&An(f,d),f.placeholder=s,En(f,t,e)}function Wi(t){var e=Tt[t];return function(t,r){if(t=fo(t),(r=null==r?0:mr(ho(r),292))&&Fe(t)){var s=(yo(t)+"e").split("e");return+((s=(yo(e(s[0]+"e"+(+s[1]+r)))+"e").split("e"))[0]+"e"+(+s[1]-r))}return e(t)}}var zi=Tr&&1/or(new Tr([,-0]))[1]==u?function(t){return new Tr(t)}:ac;function Vi(t){return function(e){var r=un(e);return r==P?ir(e):r==_?function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}(e):function(t,e){return Ie(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function qi(t,e,r,a,u,h,p,d){var f=2&e;if(!f&&"function"!=typeof t)throw new _t(n);var m=a?a.length:0;if(m||(e&=-97,a=u=i),p=p===i?p:fr(ho(p),0),d=d===i?d:ho(d),m-=u?u.length:0,64&e){var y=a,g=u;a=u=i}var v=f?i:tn(t),x=[t,e,r,a,u,y,g,h,p,d];if(v&&function(t,e){var r=t[1],s=e[1],i=r|s,n=i<131,a=s==l&&8==r||s==l&&256==r&&t[7].length<=e[8]||384==s&&e[7].length<=e[8]&&8==r;if(!n&&!a)return t;1&s&&(t[2]=e[2],i|=1&r?0:4);var c=e[3];if(c){var u=t[3];t[3]=u?Pi(u,c,e[4]):c,t[4]=u?ar(t[3],o):e[4]}(c=e[5])&&(u=t[5],t[5]=u?Ti(u,c,e[6]):c,t[6]=u?ar(t[5],o):e[6]),(c=e[7])&&(t[7]=c),s&l&&(t[8]=null==t[8]?e[8]:mr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(x,v),t=x[0],e=x[1],r=x[2],a=x[3],u=x[4],!(d=x[9]=x[9]===i?f?0:t.length:fr(x[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,r){var n=Mi(t);return function a(){for(var o=arguments.length,c=s(o),l=o,u=rn(a);l--;)c[l]=arguments[l];var h=o<3&&c[0]!==u&&c[o-1]!==u?[]:ar(c,u);return(o-=h.length)<r?Hi(t,e,Di,a.placeholder,i,c,h,i,i,r-o):Te(this&&this!==he&&this instanceof a?n:t,this,c)}}(t,e,d):e!=c&&33!=e||u.length?Di.apply(i,x):function(t,e,r,i){var n=1&e,a=Mi(t);return function e(){for(var o=-1,c=arguments.length,l=-1,u=i.length,h=s(u+c),p=this&&this!==he&&this instanceof e?a:t;++l<u;)h[l]=i[l];for(;c--;)h[l++]=arguments[++o];return Te(p,n?r:this,h)}}(t,e,r,a);else var b=function(t,e,r){var s=1&e,i=Mi(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(s?r:this,arguments)}}(t,e,r);return En((v?Js:An)(b,x),t,e)}function $i(t,e,r,s){return t===i||ja(t,Nt[r])&&!Lt.call(s,r)?e:t}function Ki(t,e,r,s,n,a){return Xa(t)&&Xa(e)&&(a.set(e,t),js(t,e,i,Ki,a),a.delete(e)),t}function Ji(t){return eo(t)?i:t}function Gi(t,e,r,s,n,a){var o=1&r,c=t.length,l=e.length;if(c!=l&&!(o&&l>c))return!1;var u=a.get(t),h=a.get(e);if(u&&h)return u==e&&h==t;var p=-1,d=!0,f=2&r?new zr:i;for(a.set(t,e),a.set(e,t);++p<c;){var m=t[p],y=e[p];if(s)var g=o?s(y,m,p,e,t,a):s(m,y,p,t,e,a);if(g!==i){if(g)continue;d=!1;break}if(f){if(!De(e,(function(t,e){if(!Xe(f,e)&&(m===t||n(m,t,r,s,a)))return f.push(e)}))){d=!1;break}}else if(m!==y&&!n(m,y,r,s,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function Xi(t){return _n(Pn(t,i,Hn),t+"")}function Zi(t){return bs(t,Co,cn)}function Qi(t){return bs(t,No,ln)}var tn=kr?function(t){return kr.get(t)}:ac;function en(t){for(var e=t.name+"",r=_r[e],s=Lt.call(_r,e)?r.length:0;s--;){var i=r[s],n=i.func;if(null==n||n==t)return i.name}return e}function rn(t){return(Lt.call(Fr,"placeholder")?Fr:t).placeholder}function sn(){var t=Fr.iteratee||rc;return t=t===rc?Is:t,arguments.length?t(arguments[0],arguments[1]):t}function nn(t,e){var r,s,i=t.__data__;return("string"==(s=typeof(r=e))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function an(t){for(var e=Co(t),r=e.length;r--;){var s=e[r],i=t[s];e[r]=[s,i,bn(i)]}return e}function on(t,e){var r=function(t,e){return null==t?i:t[e]}(t,e);return Ns(r)?r:i}var cn=me?function(t){return null==t?[]:(t=St(t),Ee(me(t),(function(e){return qt.call(t,e)})))}:dc,ln=me?function(t){for(var e=[];t;)Me(e,cn(t)),t=zt(t);return e}:dc,un=ws;function hn(t,e,r){for(var s=-1,i=(e=fi(e,t)).length,n=!1;++s<i;){var a=On(e[s]);if(!(n=null!=t&&r(t,a)))break;t=t[a]}return n||++s!=i?n:!!(i=null==t?0:t.length)&&Ga(i)&&fn(a,i)&&(Ua(t)||Ya(t))}function pn(t){return"function"!=typeof t.constructor||xn(t)?{}:jr(zt(t))}function dn(t){return Ua(t)||Ya(t)||!!(Kt&&t&&t[Kt])}function fn(t,e){var r=typeof t;return!!(e=null==e?h:e)&&("number"==r||"symbol"!=r&&gt.test(t))&&t>-1&&t%1==0&&t<e}function mn(t,e,r){if(!Xa(r))return!1;var s=typeof e;return!!("number"==s?Wa(r)&&fn(e,r.length):"string"==s&&e in r)&&ja(r[e],t)}function yn(t,e){if(Ua(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!no(t))||Q.test(t)||!Z.test(t)||null!=e&&t in St(e)}function gn(t){var e=en(t),r=Fr[e];if("function"!=typeof r||!(e in Yr.prototype))return!1;if(t===r)return!0;var s=tn(r);return!!s&&t===s[0]}(br&&un(new br(new ArrayBuffer(1)))!=M||wr&&un(new wr)!=P||Pr&&un(Pr.resolve())!=A||Tr&&un(new Tr)!=_||Sr&&un(new Sr)!=N)&&(un=function(t){var e=ws(t),r=e==S?t.constructor:i,s=r?Dn(r):"";if(s)switch(s){case Er:return M;case Cr:return P;case Nr:return A;case Ir:return _;case Mr:return N}return e});var vn=It?Ka:fc;function xn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nt)}function bn(t){return t==t&&!Xa(t)}function wn(t,e){return function(r){return null!=r&&r[t]===e&&(e!==i||t in St(r))}}function Pn(t,e,r){return e=fr(e===i?t.length-1:e,0),function(){for(var i=arguments,n=-1,a=fr(i.length-e,0),o=s(a);++n<a;)o[n]=i[e+n];n=-1;for(var c=s(e+1);++n<e;)c[n]=i[n];return c[e]=r(o),Te(t,this,c)}}function Tn(t,e){return e.length<2?t:xs(t,Zs(e,0,-1))}function Sn(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var An=Cn(Js),kn=ue||function(t,e){return he.setTimeout(t,e)},_n=Cn(Gs);function En(t,e,r){var s=e+"";return _n(t,function(t,e){var r=e.length;if(!r)return t;var s=r-1;return e[s]=(r>1?"& ":"")+e[s],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(s,function(t,e){return Ae(f,(function(r){var s="_."+r[0];e&r[1]&&!Ce(t,s)&&t.push(s)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ot):[]}(s),r)))}function Cn(t){var e=0,r=0;return function(){var s=yr(),n=16-(s-r);if(r=s,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Nn(t,e){var r=-1,s=t.length,n=s-1;for(e=e===i?s:e;++r<e;){var a=Ws(r,n),o=t[a];t[a]=t[r],t[r]=o}return t.length=e,t}var In,Mn,Ln=(In=Ia((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,r,s,i){e.push(s?i.replace(ut,"$1"):r||t)})),e}),(function(t){return 500===Mn.size&&Mn.clear(),t})),Mn=In.cache,In);function On(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Dn(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Fn(t){if(t instanceof Yr)return t.clone();var e=new Br(t.__wrapped__,t.__chain__);return e.__actions__=Si(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var jn=Vs((function(t,e){return za(t)?os(t,ds(e,1,za,!0)):[]})),Rn=Vs((function(t,e){var r=$n(e);return za(r)&&(r=i),za(t)?os(t,ds(e,1,za,!0),sn(r,2)):[]})),Bn=Vs((function(t,e){var r=$n(e);return za(r)&&(r=i),za(t)?os(t,ds(e,1,za,!0),i,r):[]}));function Yn(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var i=null==r?0:ho(r);return i<0&&(i=fr(s+i,0)),Re(t,sn(e,3),i)}function Un(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var n=s-1;return r!==i&&(n=ho(r),n=r<0?fr(s+n,0):mr(n,s-1)),Re(t,sn(e,3),n,!0)}function Hn(t){return null!=t&&t.length?ds(t,1):[]}function Wn(t){return t&&t.length?t[0]:i}var zn=Vs((function(t){var e=Ie(t,pi);return e.length&&e[0]===t[0]?As(e):[]})),Vn=Vs((function(t){var e=$n(t),r=Ie(t,pi);return e===$n(r)?e=i:r.pop(),r.length&&r[0]===t[0]?As(r,sn(e,2)):[]})),qn=Vs((function(t){var e=$n(t),r=Ie(t,pi);return(e="function"==typeof e?e:i)&&r.pop(),r.length&&r[0]===t[0]?As(r,i,e):[]}));function $n(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Kn=Vs(Jn);function Jn(t,e){return t&&t.length&&e&&e.length?Us(t,e):t}var Gn=Xi((function(t,e){var r=null==t?0:t.length,s=rs(t,e);return Hs(t,Ie(e,(function(t){return fn(t,r)?+t:t})).sort(wi)),s}));function Xn(t){return null==t?t:xr.call(t)}var Zn=Vs((function(t){return ni(ds(t,1,za,!0))})),Qn=Vs((function(t){var e=$n(t);return za(e)&&(e=i),ni(ds(t,1,za,!0),sn(e,2))})),ta=Vs((function(t){var e=$n(t);return e="function"==typeof e?e:i,ni(ds(t,1,za,!0),i,e)}));function ea(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,(function(t){if(za(t))return e=fr(t.length,e),!0})),$e(e,(function(e){return Ie(t,We(e))}))}function ra(t,e){if(!t||!t.length)return[];var r=ea(t);return null==e?r:Ie(r,(function(t){return Te(e,i,t)}))}var sa=Vs((function(t,e){return za(t)?os(t,e):[]})),ia=Vs((function(t){return ui(Ee(t,za))})),na=Vs((function(t){var e=$n(t);return za(e)&&(e=i),ui(Ee(t,za),sn(e,2))})),aa=Vs((function(t){var e=$n(t);return e="function"==typeof e?e:i,ui(Ee(t,za),i,e)})),oa=Vs(ea),ca=Vs((function(t){var e=t.length,r=e>1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,ra(t,r)}));function la(t){var e=Fr(t);return e.__chain__=!0,e}function ua(t,e){return e(t)}var ha=Xi((function(t){var e=t.length,r=e?t[0]:0,s=this.__wrapped__,n=function(e){return rs(e,t)};return!(e>1||this.__actions__.length)&&s instanceof Yr&&fn(r)?((s=s.slice(r,+r+(e?1:0))).__actions__.push({func:ua,args:[n],thisArg:i}),new Br(s,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(n)})),pa=ki((function(t,e,r){Lt.call(t,r)?++t[r]:es(t,r,1)})),da=Li(Yn),fa=Li(Un);function ma(t,e){return(Ua(t)?Ae:cs)(t,sn(e,3))}function ya(t,e){return(Ua(t)?ke:ls)(t,sn(e,3))}var ga=ki((function(t,e,r){Lt.call(t,r)?t[r].push(e):es(t,r,[e])})),va=Vs((function(t,e,r){var i=-1,n="function"==typeof e,a=Wa(t)?s(t.length):[];return cs(t,(function(t){a[++i]=n?Te(e,t,r):ks(t,e,r)})),a})),xa=ki((function(t,e,r){es(t,r,e)}));function ba(t,e){return(Ua(t)?Ie:Os)(t,sn(e,3))}var wa=ki((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Pa=Vs((function(t,e){if(null==t)return[];var r=e.length;return r>1&&mn(t,e[0],e[1])?e=[]:r>2&&mn(e[0],e[1],e[2])&&(e=[e[0]]),Bs(t,ds(e,1),[])})),Ta=le||function(){return he.Date.now()};function Sa(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,qi(t,l,i,i,i,i,e)}function Aa(t,e){var r;if("function"!=typeof e)throw new _t(n);return t=ho(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var ka=Vs((function(t,e,r){var s=1;if(r.length){var i=ar(r,rn(ka));s|=c}return qi(t,s,e,r,i)})),_a=Vs((function(t,e,r){var s=3;if(r.length){var i=ar(r,rn(_a));s|=c}return qi(e,s,t,r,i)}));function Ea(t,e,r){var s,a,o,c,l,u,h=0,p=!1,d=!1,f=!0;if("function"!=typeof t)throw new _t(n);function m(e){var r=s,n=a;return s=a=i,h=e,c=t.apply(n,r)}function y(t){var r=t-u;return u===i||r>=e||r<0||d&&t-h>=o}function g(){var t=Ta();if(y(t))return v(t);l=kn(g,function(t){var r=e-(t-u);return d?mr(r,o-(t-h)):r}(t))}function v(t){return l=i,f&&s?m(t):(s=a=i,c)}function x(){var t=Ta(),r=y(t);if(s=arguments,a=this,u=t,r){if(l===i)return function(t){return h=t,l=kn(g,e),p?m(t):c}(u);if(d)return gi(l),l=kn(g,e),m(u)}return l===i&&(l=kn(g,e)),c}return e=fo(e)||0,Xa(r)&&(p=!!r.leading,o=(d="maxWait"in r)?fr(fo(r.maxWait)||0,e):o,f="trailing"in r?!!r.trailing:f),x.cancel=function(){l!==i&&gi(l),h=0,s=u=a=l=i},x.flush=function(){return l===i?c:v(Ta())},x}var Ca=Vs((function(t,e){return as(t,1,e)})),Na=Vs((function(t,e,r){return as(t,fo(e)||0,r)}));function Ia(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new _t(n);var r=function(){var s=arguments,i=e?e.apply(this,s):s[0],n=r.cache;if(n.has(i))return n.get(i);var a=t.apply(this,s);return r.cache=n.set(i,a)||n,a};return r.cache=new(Ia.Cache||Wr),r}function Ma(t){if("function"!=typeof t)throw new _t(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ia.Cache=Wr;var La=mi((function(t,e){var r=(e=1==e.length&&Ua(e[0])?Ie(e[0],Je(sn())):Ie(ds(e,1),Je(sn()))).length;return Vs((function(s){for(var i=-1,n=mr(s.length,r);++i<n;)s[i]=e[i].call(this,s[i]);return Te(t,this,s)}))})),Oa=Vs((function(t,e){var r=ar(e,rn(Oa));return qi(t,c,i,e,r)})),Da=Vs((function(t,e){var r=ar(e,rn(Da));return qi(t,64,i,e,r)})),Fa=Xi((function(t,e){return qi(t,256,i,i,i,e)}));function ja(t,e){return t===e||t!=t&&e!=e}var Ra=Ui(Ps),Ba=Ui((function(t,e){return t>=e})),Ya=_s(function(){return arguments}())?_s:function(t){return Za(t)&&Lt.call(t,"callee")&&!qt.call(t,"callee")},Ua=s.isArray,Ha=ge?Je(ge):function(t){return Za(t)&&ws(t)==I};function Wa(t){return null!=t&&Ga(t.length)&&!Ka(t)}function za(t){return Za(t)&&Wa(t)}var Va=ye||fc,qa=ve?Je(ve):function(t){return Za(t)&&ws(t)==v};function $a(t){if(!Za(t))return!1;var e=ws(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!eo(t)}function Ka(t){if(!Xa(t))return!1;var e=ws(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ja(t){return"number"==typeof t&&t==ho(t)}function Ga(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Xa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Za(t){return null!=t&&"object"==typeof t}var Qa=xe?Je(xe):function(t){return Za(t)&&un(t)==P};function to(t){return"number"==typeof t||Za(t)&&ws(t)==T}function eo(t){if(!Za(t)||ws(t)!=S)return!1;var e=zt(t);if(null===e)return!0;var r=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Mt.call(r)==jt}var ro=be?Je(be):function(t){return Za(t)&&ws(t)==k},so=we?Je(we):function(t){return Za(t)&&un(t)==_};function io(t){return"string"==typeof t||!Ua(t)&&Za(t)&&ws(t)==E}function no(t){return"symbol"==typeof t||Za(t)&&ws(t)==C}var ao=Pe?Je(Pe):function(t){return Za(t)&&Ga(t.length)&&!!ie[ws(t)]},oo=Ui(Ls),co=Ui((function(t,e){return t<=e}));function lo(t){if(!t)return[];if(Wa(t))return io(t)?lr(t):Si(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=un(t);return(e==P?ir:e==_?or:Ro)(t)}function uo(t){return t?(t=fo(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ho(t){var e=uo(t),r=e%1;return e==e?r?e-r:e:0}function po(t){return t?ss(ho(t),0,d):0}function fo(t){if("number"==typeof t)return t;if(no(t))return p;if(Xa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var r=ft.test(t);return r||yt.test(t)?ce(t.slice(2),r?2:8):dt.test(t)?p:+t}function mo(t){return Ai(t,No(t))}function yo(t){return null==t?"":ii(t)}var go=_i((function(t,e){if(xn(e)||Wa(e))Ai(e,Co(e),t);else for(var r in e)Lt.call(e,r)&&Xr(t,r,e[r])})),vo=_i((function(t,e){Ai(e,No(e),t)})),xo=_i((function(t,e,r,s){Ai(e,No(e),t,s)})),bo=_i((function(t,e,r,s){Ai(e,Co(e),t,s)})),wo=Xi(rs),Po=Vs((function(t,e){t=St(t);var r=-1,s=e.length,n=s>2?e[2]:i;for(n&&mn(e[0],e[1],n)&&(s=1);++r<s;)for(var a=e[r],o=No(a),c=-1,l=o.length;++c<l;){var u=o[c],h=t[u];(h===i||ja(h,Nt[u])&&!Lt.call(t,u))&&(t[u]=a[u])}return t})),To=Vs((function(t){return t.push(i,Ki),Te(Mo,i,t)}));function So(t,e,r){var s=null==t?i:xs(t,e);return s===i?r:s}function Ao(t,e){return null!=t&&hn(t,e,Ss)}var ko=Fi((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=r}),Zo(ec)),_o=Fi((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Lt.call(t,e)?t[e].push(r):t[e]=[r]}),sn),Eo=Vs(ks);function Co(t){return Wa(t)?qr(t):Ms(t)}function No(t){return Wa(t)?qr(t,!0):function(t){if(!Xa(t))return function(t){var e=[];if(null!=t)for(var r in St(t))e.push(r);return e}(t);var e=xn(t),r=[];for(var s in t)("constructor"!=s||!e&&Lt.call(t,s))&&r.push(s);return r}(t)}var Io=_i((function(t,e,r){js(t,e,r)})),Mo=_i((function(t,e,r,s){js(t,e,r,s)})),Lo=Xi((function(t,e){var r={};if(null==t)return r;var s=!1;e=Ie(e,(function(e){return e=fi(e,t),s||(s=e.length>1),e})),Ai(t,Qi(t),r),s&&(r=is(r,7,Ji));for(var i=e.length;i--;)ai(r,e[i]);return r})),Oo=Xi((function(t,e){return null==t?{}:function(t,e){return Ys(t,e,(function(e,r){return Ao(t,r)}))}(t,e)}));function Do(t,e){if(null==t)return{};var r=Ie(Qi(t),(function(t){return[t]}));return e=sn(e),Ys(t,r,(function(t,r){return e(t,r[0])}))}var Fo=Vi(Co),jo=Vi(No);function Ro(t){return null==t?[]:Ge(t,Co(t))}var Bo=Ii((function(t,e,r){return e=e.toLowerCase(),t+(r?Yo(e):e)}));function Yo(t){return Ko(yo(t).toLowerCase())}function Uo(t){return(t=yo(t))&&t.replace(vt,tr).replace(Xt,"")}var Ho=Ii((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Wo=Ii((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),zo=Ni("toLowerCase"),Vo=Ii((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),qo=Ii((function(t,e,r){return t+(r?" ":"")+Ko(e)})),$o=Ii((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Ko=Ni("toUpperCase");function Jo(t,e,r){return t=yo(t),(e=r?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Go=Vs((function(t,e){try{return Te(t,i,e)}catch(t){return $a(t)?t:new wt(t)}})),Xo=Xi((function(t,e){return Ae(e,(function(e){e=On(e),es(t,e,ka(t[e],t))})),t}));function Zo(t){return function(){return t}}var Qo=Oi(),tc=Oi(!0);function ec(t){return t}function rc(t){return Is("function"==typeof t?t:is(t,1))}var sc=Vs((function(t,e){return function(r){return ks(r,t,e)}})),ic=Vs((function(t,e){return function(r){return ks(t,r,e)}}));function nc(t,e,r){var s=Co(e),i=vs(e,s);null!=r||Xa(e)&&(i.length||!s.length)||(r=e,e=t,t=this,i=vs(e,Co(e)));var n=!(Xa(r)&&"chain"in r&&!r.chain),a=Ka(t);return Ae(i,(function(r){var s=e[r];t[r]=s,a&&(t.prototype[r]=function(){var e=this.__chain__;if(n||e){var r=t(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:s,args:arguments,thisArg:t}),r.__chain__=e,r}return s.apply(t,Me([this.value()],arguments))})})),t}function ac(){}var oc=Ri(Ie),cc=Ri(_e),lc=Ri(De);function uc(t){return yn(t)?We(On(t)):function(t){return function(e){return xs(e,t)}}(t)}var hc=Yi(),pc=Yi(!0);function dc(){return[]}function fc(){return!1}var mc,yc=ji((function(t,e){return t+e}),0),gc=Wi("ceil"),vc=ji((function(t,e){return t/e}),1),xc=Wi("floor"),bc=ji((function(t,e){return t*e}),1),wc=Wi("round"),Pc=ji((function(t,e){return t-e}),0);return Fr.after=function(t,e){if("function"!=typeof e)throw new _t(n);return t=ho(t),function(){if(--t<1)return e.apply(this,arguments)}},Fr.ary=Sa,Fr.assign=go,Fr.assignIn=vo,Fr.assignInWith=xo,Fr.assignWith=bo,Fr.at=wo,Fr.before=Aa,Fr.bind=ka,Fr.bindAll=Xo,Fr.bindKey=_a,Fr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},Fr.chain=la,Fr.chunk=function(t,e,r){e=(r?mn(t,e,r):e===i)?1:fr(ho(e),0);var n=null==t?0:t.length;if(!n||e<1)return[];for(var a=0,o=0,c=s(pe(n/e));a<n;)c[o++]=Zs(t,a,a+=e);return c},Fr.compact=function(t){for(var e=-1,r=null==t?0:t.length,s=0,i=[];++e<r;){var n=t[e];n&&(i[s++]=n)}return i},Fr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=s(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Me(Ua(r)?Si(r):[r],ds(e,1))},Fr.cond=function(t){var e=null==t?0:t.length,r=sn();return t=e?Ie(t,(function(t){if("function"!=typeof t[1])throw new _t(n);return[r(t[0]),t[1]]})):[],Vs((function(r){for(var s=-1;++s<e;){var i=t[s];if(Te(i[0],this,r))return Te(i[1],this,r)}}))},Fr.conforms=function(t){return function(t){var e=Co(t);return function(r){return ns(r,t,e)}}(is(t,1))},Fr.constant=Zo,Fr.countBy=pa,Fr.create=function(t,e){var r=jr(t);return null==e?r:ts(r,e)},Fr.curry=function t(e,r,s){var n=qi(e,8,i,i,i,i,i,r=s?i:r);return n.placeholder=t.placeholder,n},Fr.curryRight=function t(e,r,s){var n=qi(e,16,i,i,i,i,i,r=s?i:r);return n.placeholder=t.placeholder,n},Fr.debounce=Ea,Fr.defaults=Po,Fr.defaultsDeep=To,Fr.defer=Ca,Fr.delay=Na,Fr.difference=jn,Fr.differenceBy=Rn,Fr.differenceWith=Bn,Fr.drop=function(t,e,r){var s=null==t?0:t.length;return s?Zs(t,(e=r||e===i?1:ho(e))<0?0:e,s):[]},Fr.dropRight=function(t,e,r){var s=null==t?0:t.length;return s?Zs(t,0,(e=s-(e=r||e===i?1:ho(e)))<0?0:e):[]},Fr.dropRightWhile=function(t,e){return t&&t.length?ci(t,sn(e,3),!0,!0):[]},Fr.dropWhile=function(t,e){return t&&t.length?ci(t,sn(e,3),!0):[]},Fr.fill=function(t,e,r,s){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&mn(t,e,r)&&(r=0,s=n),function(t,e,r,s){var n=t.length;for((r=ho(r))<0&&(r=-r>n?0:n+r),(s=s===i||s>n?n:ho(s))<0&&(s+=n),s=r>s?0:po(s);r<s;)t[r++]=e;return t}(t,e,r,s)):[]},Fr.filter=function(t,e){return(Ua(t)?Ee:ps)(t,sn(e,3))},Fr.flatMap=function(t,e){return ds(ba(t,e),1)},Fr.flatMapDeep=function(t,e){return ds(ba(t,e),u)},Fr.flatMapDepth=function(t,e,r){return r=r===i?1:ho(r),ds(ba(t,e),r)},Fr.flatten=Hn,Fr.flattenDeep=function(t){return null!=t&&t.length?ds(t,u):[]},Fr.flattenDepth=function(t,e){return null!=t&&t.length?ds(t,e=e===i?1:ho(e)):[]},Fr.flip=function(t){return qi(t,512)},Fr.flow=Qo,Fr.flowRight=tc,Fr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,s={};++e<r;){var i=t[e];s[i[0]]=i[1]}return s},Fr.functions=function(t){return null==t?[]:vs(t,Co(t))},Fr.functionsIn=function(t){return null==t?[]:vs(t,No(t))},Fr.groupBy=ga,Fr.initial=function(t){return null!=t&&t.length?Zs(t,0,-1):[]},Fr.intersection=zn,Fr.intersectionBy=Vn,Fr.intersectionWith=qn,Fr.invert=ko,Fr.invertBy=_o,Fr.invokeMap=va,Fr.iteratee=rc,Fr.keyBy=xa,Fr.keys=Co,Fr.keysIn=No,Fr.map=ba,Fr.mapKeys=function(t,e){var r={};return e=sn(e,3),ys(t,(function(t,s,i){es(r,e(t,s,i),t)})),r},Fr.mapValues=function(t,e){var r={};return e=sn(e,3),ys(t,(function(t,s,i){es(r,s,e(t,s,i))})),r},Fr.matches=function(t){return Ds(is(t,1))},Fr.matchesProperty=function(t,e){return Fs(t,is(e,1))},Fr.memoize=Ia,Fr.merge=Io,Fr.mergeWith=Mo,Fr.method=sc,Fr.methodOf=ic,Fr.mixin=nc,Fr.negate=Ma,Fr.nthArg=function(t){return t=ho(t),Vs((function(e){return Rs(e,t)}))},Fr.omit=Lo,Fr.omitBy=function(t,e){return Do(t,Ma(sn(e)))},Fr.once=function(t){return Aa(2,t)},Fr.orderBy=function(t,e,r,s){return null==t?[]:(Ua(e)||(e=null==e?[]:[e]),Ua(r=s?i:r)||(r=null==r?[]:[r]),Bs(t,e,r))},Fr.over=oc,Fr.overArgs=La,Fr.overEvery=cc,Fr.overSome=lc,Fr.partial=Oa,Fr.partialRight=Da,Fr.partition=wa,Fr.pick=Oo,Fr.pickBy=Do,Fr.property=uc,Fr.propertyOf=function(t){return function(e){return null==t?i:xs(t,e)}},Fr.pull=Kn,Fr.pullAll=Jn,Fr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Us(t,e,sn(r,2)):t},Fr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Us(t,e,i,r):t},Fr.pullAt=Gn,Fr.range=hc,Fr.rangeRight=pc,Fr.rearg=Fa,Fr.reject=function(t,e){return(Ua(t)?Ee:ps)(t,Ma(sn(e,3)))},Fr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var s=-1,i=[],n=t.length;for(e=sn(e,3);++s<n;){var a=t[s];e(a,s,t)&&(r.push(a),i.push(s))}return Hs(t,i),r},Fr.rest=function(t,e){if("function"!=typeof t)throw new _t(n);return Vs(t,e=e===i?e:ho(e))},Fr.reverse=Xn,Fr.sampleSize=function(t,e,r){return e=(r?mn(t,e,r):e===i)?1:ho(e),(Ua(t)?Kr:$s)(t,e)},Fr.set=function(t,e,r){return null==t?t:Ks(t,e,r)},Fr.setWith=function(t,e,r,s){return s="function"==typeof s?s:i,null==t?t:Ks(t,e,r,s)},Fr.shuffle=function(t){return(Ua(t)?Jr:Xs)(t)},Fr.slice=function(t,e,r){var s=null==t?0:t.length;return s?(r&&"number"!=typeof r&&mn(t,e,r)?(e=0,r=s):(e=null==e?0:ho(e),r=r===i?s:ho(r)),Zs(t,e,r)):[]},Fr.sortBy=Pa,Fr.sortedUniq=function(t){return t&&t.length?ri(t):[]},Fr.sortedUniqBy=function(t,e){return t&&t.length?ri(t,sn(e,2)):[]},Fr.split=function(t,e,r){return r&&"number"!=typeof r&&mn(t,e,r)&&(e=r=i),(r=r===i?d:r>>>0)?(t=yo(t))&&("string"==typeof e||null!=e&&!ro(e))&&!(e=ii(e))&&sr(t)?yi(lr(t),0,r):t.split(e,r):[]},Fr.spread=function(t,e){if("function"!=typeof t)throw new _t(n);return e=null==e?0:fr(ho(e),0),Vs((function(r){var s=r[e],i=yi(r,0,e);return s&&Me(i,s),Te(t,this,i)}))},Fr.tail=function(t){var e=null==t?0:t.length;return e?Zs(t,1,e):[]},Fr.take=function(t,e,r){return t&&t.length?Zs(t,0,(e=r||e===i?1:ho(e))<0?0:e):[]},Fr.takeRight=function(t,e,r){var s=null==t?0:t.length;return s?Zs(t,(e=s-(e=r||e===i?1:ho(e)))<0?0:e,s):[]},Fr.takeRightWhile=function(t,e){return t&&t.length?ci(t,sn(e,3),!1,!0):[]},Fr.takeWhile=function(t,e){return t&&t.length?ci(t,sn(e,3)):[]},Fr.tap=function(t,e){return e(t),t},Fr.throttle=function(t,e,r){var s=!0,i=!0;if("function"!=typeof t)throw new _t(n);return Xa(r)&&(s="leading"in r?!!r.leading:s,i="trailing"in r?!!r.trailing:i),Ea(t,e,{leading:s,maxWait:e,trailing:i})},Fr.thru=ua,Fr.toArray=lo,Fr.toPairs=Fo,Fr.toPairsIn=jo,Fr.toPath=function(t){return Ua(t)?Ie(t,On):no(t)?[t]:Si(Ln(yo(t)))},Fr.toPlainObject=mo,Fr.transform=function(t,e,r){var s=Ua(t),i=s||Va(t)||ao(t);if(e=sn(e,4),null==r){var n=t&&t.constructor;r=i?s?new n:[]:Xa(t)&&Ka(n)?jr(zt(t)):{}}return(i?Ae:ys)(t,(function(t,s,i){return e(r,t,s,i)})),r},Fr.unary=function(t){return Sa(t,1)},Fr.union=Zn,Fr.unionBy=Qn,Fr.unionWith=ta,Fr.uniq=function(t){return t&&t.length?ni(t):[]},Fr.uniqBy=function(t,e){return t&&t.length?ni(t,sn(e,2)):[]},Fr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ni(t,i,e):[]},Fr.unset=function(t,e){return null==t||ai(t,e)},Fr.unzip=ea,Fr.unzipWith=ra,Fr.update=function(t,e,r){return null==t?t:oi(t,e,di(r))},Fr.updateWith=function(t,e,r,s){return s="function"==typeof s?s:i,null==t?t:oi(t,e,di(r),s)},Fr.values=Ro,Fr.valuesIn=function(t){return null==t?[]:Ge(t,No(t))},Fr.without=sa,Fr.words=Jo,Fr.wrap=function(t,e){return Oa(di(e),t)},Fr.xor=ia,Fr.xorBy=na,Fr.xorWith=aa,Fr.zip=oa,Fr.zipObject=function(t,e){return hi(t||[],e||[],Xr)},Fr.zipObjectDeep=function(t,e){return hi(t||[],e||[],Ks)},Fr.zipWith=ca,Fr.entries=Fo,Fr.entriesIn=jo,Fr.extend=vo,Fr.extendWith=xo,nc(Fr,Fr),Fr.add=yc,Fr.attempt=Go,Fr.camelCase=Bo,Fr.capitalize=Yo,Fr.ceil=gc,Fr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=fo(r))==r?r:0),e!==i&&(e=(e=fo(e))==e?e:0),ss(fo(t),e,r)},Fr.clone=function(t){return is(t,4)},Fr.cloneDeep=function(t){return is(t,5)},Fr.cloneDeepWith=function(t,e){return is(t,5,e="function"==typeof e?e:i)},Fr.cloneWith=function(t,e){return is(t,4,e="function"==typeof e?e:i)},Fr.conformsTo=function(t,e){return null==e||ns(t,e,Co(e))},Fr.deburr=Uo,Fr.defaultTo=function(t,e){return null==t||t!=t?e:t},Fr.divide=vc,Fr.endsWith=function(t,e,r){t=yo(t),e=ii(e);var s=t.length,n=r=r===i?s:ss(ho(r),0,s);return(r-=e.length)>=0&&t.slice(r,n)==e},Fr.eq=ja,Fr.escape=function(t){return(t=yo(t))&&K.test(t)?t.replace(q,er):t},Fr.escapeRegExp=function(t){return(t=yo(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Fr.every=function(t,e,r){var s=Ua(t)?_e:us;return r&&mn(t,e,r)&&(e=i),s(t,sn(e,3))},Fr.find=da,Fr.findIndex=Yn,Fr.findKey=function(t,e){return je(t,sn(e,3),ys)},Fr.findLast=fa,Fr.findLastIndex=Un,Fr.findLastKey=function(t,e){return je(t,sn(e,3),gs)},Fr.floor=xc,Fr.forEach=ma,Fr.forEachRight=ya,Fr.forIn=function(t,e){return null==t?t:fs(t,sn(e,3),No)},Fr.forInRight=function(t,e){return null==t?t:ms(t,sn(e,3),No)},Fr.forOwn=function(t,e){return t&&ys(t,sn(e,3))},Fr.forOwnRight=function(t,e){return t&&gs(t,sn(e,3))},Fr.get=So,Fr.gt=Ra,Fr.gte=Ba,Fr.has=function(t,e){return null!=t&&hn(t,e,Ts)},Fr.hasIn=Ao,Fr.head=Wn,Fr.identity=ec,Fr.includes=function(t,e,r,s){t=Wa(t)?t:Ro(t),r=r&&!s?ho(r):0;var i=t.length;return r<0&&(r=fr(i+r,0)),io(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Be(t,e,r)>-1},Fr.indexOf=function(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var i=null==r?0:ho(r);return i<0&&(i=fr(s+i,0)),Be(t,e,i)},Fr.inRange=function(t,e,r){return e=uo(e),r===i?(r=e,e=0):r=uo(r),function(t,e,r){return t>=mr(e,r)&&t<fr(e,r)}(t=fo(t),e,r)},Fr.invoke=Eo,Fr.isArguments=Ya,Fr.isArray=Ua,Fr.isArrayBuffer=Ha,Fr.isArrayLike=Wa,Fr.isArrayLikeObject=za,Fr.isBoolean=function(t){return!0===t||!1===t||Za(t)&&ws(t)==g},Fr.isBuffer=Va,Fr.isDate=qa,Fr.isElement=function(t){return Za(t)&&1===t.nodeType&&!eo(t)},Fr.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Ua(t)||"string"==typeof t||"function"==typeof t.splice||Va(t)||ao(t)||Ya(t)))return!t.length;var e=un(t);if(e==P||e==_)return!t.size;if(xn(t))return!Ms(t).length;for(var r in t)if(Lt.call(t,r))return!1;return!0},Fr.isEqual=function(t,e){return Es(t,e)},Fr.isEqualWith=function(t,e,r){var s=(r="function"==typeof r?r:i)?r(t,e):i;return s===i?Es(t,e,i,r):!!s},Fr.isError=$a,Fr.isFinite=function(t){return"number"==typeof t&&Fe(t)},Fr.isFunction=Ka,Fr.isInteger=Ja,Fr.isLength=Ga,Fr.isMap=Qa,Fr.isMatch=function(t,e){return t===e||Cs(t,e,an(e))},Fr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:i,Cs(t,e,an(e),r)},Fr.isNaN=function(t){return to(t)&&t!=+t},Fr.isNative=function(t){if(vn(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ns(t)},Fr.isNil=function(t){return null==t},Fr.isNull=function(t){return null===t},Fr.isNumber=to,Fr.isObject=Xa,Fr.isObjectLike=Za,Fr.isPlainObject=eo,Fr.isRegExp=ro,Fr.isSafeInteger=function(t){return Ja(t)&&t>=-9007199254740991&&t<=h},Fr.isSet=so,Fr.isString=io,Fr.isSymbol=no,Fr.isTypedArray=ao,Fr.isUndefined=function(t){return t===i},Fr.isWeakMap=function(t){return Za(t)&&un(t)==N},Fr.isWeakSet=function(t){return Za(t)&&"[object WeakSet]"==ws(t)},Fr.join=function(t,e){return null==t?"":ze.call(t,e)},Fr.kebabCase=Ho,Fr.last=$n,Fr.lastIndexOf=function(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var n=s;return r!==i&&(n=(n=ho(r))<0?fr(s+n,0):mr(n,s-1)),e==e?function(t,e,r){for(var s=r+1;s--;)if(t[s]===e)return s;return s}(t,e,n):Re(t,Ue,n,!0)},Fr.lowerCase=Wo,Fr.lowerFirst=zo,Fr.lt=oo,Fr.lte=co,Fr.max=function(t){return t&&t.length?hs(t,ec,Ps):i},Fr.maxBy=function(t,e){return t&&t.length?hs(t,sn(e,2),Ps):i},Fr.mean=function(t){return He(t,ec)},Fr.meanBy=function(t,e){return He(t,sn(e,2))},Fr.min=function(t){return t&&t.length?hs(t,ec,Ls):i},Fr.minBy=function(t,e){return t&&t.length?hs(t,sn(e,2),Ls):i},Fr.stubArray=dc,Fr.stubFalse=fc,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=bc,Fr.nth=function(t,e){return t&&t.length?Rs(t,ho(e)):i},Fr.noConflict=function(){return he._===this&&(he._=Rt),this},Fr.noop=ac,Fr.now=Ta,Fr.pad=function(t,e,r){t=yo(t);var s=(e=ho(e))?cr(t):0;if(!e||s>=e)return t;var i=(e-s)/2;return Bi(de(i),r)+t+Bi(pe(i),r)},Fr.padEnd=function(t,e,r){t=yo(t);var s=(e=ho(e))?cr(t):0;return e&&s<e?t+Bi(e-s,r):t},Fr.padStart=function(t,e,r){t=yo(t);var s=(e=ho(e))?cr(t):0;return e&&s<e?Bi(e-s,r)+t:t},Fr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),gr(yo(t).replace(st,""),e||0)},Fr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&mn(t,e,r)&&(e=r=i),r===i&&("boolean"==typeof e?(r=e,e=i):"boolean"==typeof t&&(r=t,t=i)),t===i&&e===i?(t=0,e=1):(t=uo(t),e===i?(e=t,t=0):e=uo(e)),t>e){var s=t;t=e,e=s}if(r||t%1||e%1){var n=vr();return mr(t+n*(e-t+oe("1e-"+((n+"").length-1))),e)}return Ws(t,e)},Fr.reduce=function(t,e,r){var s=Ua(t)?Le:Ve,i=arguments.length<3;return s(t,sn(e,4),r,i,cs)},Fr.reduceRight=function(t,e,r){var s=Ua(t)?Oe:Ve,i=arguments.length<3;return s(t,sn(e,4),r,i,ls)},Fr.repeat=function(t,e,r){return e=(r?mn(t,e,r):e===i)?1:ho(e),zs(yo(t),e)},Fr.replace=function(){var t=arguments,e=yo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Fr.result=function(t,e,r){var s=-1,n=(e=fi(e,t)).length;for(n||(n=1,t=i);++s<n;){var a=null==t?i:t[On(e[s])];a===i&&(s=n,a=r),t=Ka(a)?a.call(t):a}return t},Fr.round=wc,Fr.runInContext=t,Fr.sample=function(t){return(Ua(t)?$r:qs)(t)},Fr.size=function(t){if(null==t)return 0;if(Wa(t))return io(t)?cr(t):t.length;var e=un(t);return e==P||e==_?t.size:Ms(t).length},Fr.snakeCase=Vo,Fr.some=function(t,e,r){var s=Ua(t)?De:Qs;return r&&mn(t,e,r)&&(e=i),s(t,sn(e,3))},Fr.sortedIndex=function(t,e){return ti(t,e)},Fr.sortedIndexBy=function(t,e,r){return ei(t,e,sn(r,2))},Fr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var s=ti(t,e);if(s<r&&ja(t[s],e))return s}return-1},Fr.sortedLastIndex=function(t,e){return ti(t,e,!0)},Fr.sortedLastIndexBy=function(t,e,r){return ei(t,e,sn(r,2),!0)},Fr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=ti(t,e,!0)-1;if(ja(t[r],e))return r}return-1},Fr.startCase=qo,Fr.startsWith=function(t,e,r){return t=yo(t),r=null==r?0:ss(ho(r),0,t.length),e=ii(e),t.slice(r,r+e.length)==e},Fr.subtract=Pc,Fr.sum=function(t){return t&&t.length?qe(t,ec):0},Fr.sumBy=function(t,e){return t&&t.length?qe(t,sn(e,2)):0},Fr.template=function(t,e,r){var s=Fr.templateSettings;r&&mn(t,e,r)&&(e=i),t=yo(t),e=xo({},e,s,$i);var n,a,o=xo({},e.imports,s.imports,$i),c=Co(o),l=Ge(o,c),u=0,h=e.interpolate||xt,p="__p += '",d=At((e.escape||xt).source+"|"+h.source+"|"+(h===X?ht:xt).source+"|"+(e.evaluate||xt).source+"|$","g"),f="//# sourceURL="+(Lt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(d,(function(e,r,s,i,o,c){return s||(s=i),p+=t.slice(u,c).replace(bt,rr),r&&(n=!0,p+="' +\n__e("+r+") +\n'"),o&&(a=!0,p+="';\n"+o+";\n__p += '"),s&&(p+="' +\n((__t = ("+s+")) == null ? '' : __t) +\n'"),u=c+e.length,e})),p+="';\n";var m=Lt.call(e,"variable")&&e.variable;if(m){if(lt.test(m))throw new wt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(W,"$1").replace(z,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(n?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Go((function(){return Pt(c,f+"return "+p).apply(i,l)}));if(y.source=p,$a(y))throw y;return y},Fr.times=function(t,e){if((t=ho(t))<1||t>h)return[];var r=d,s=mr(t,d);e=sn(e),t-=d;for(var i=$e(s,e);++r<t;)e(r);return i},Fr.toFinite=uo,Fr.toInteger=ho,Fr.toLength=po,Fr.toLower=function(t){return yo(t).toLowerCase()},Fr.toNumber=fo,Fr.toSafeInteger=function(t){return t?ss(ho(t),-9007199254740991,h):0===t?t:0},Fr.toString=yo,Fr.toUpper=function(t){return yo(t).toUpperCase()},Fr.trim=function(t,e,r){if((t=yo(t))&&(r||e===i))return Ke(t);if(!t||!(e=ii(e)))return t;var s=lr(t),n=lr(e);return yi(s,Ze(s,n),Qe(s,n)+1).join("")},Fr.trimEnd=function(t,e,r){if((t=yo(t))&&(r||e===i))return t.slice(0,ur(t)+1);if(!t||!(e=ii(e)))return t;var s=lr(t);return yi(s,0,Qe(s,lr(e))+1).join("")},Fr.trimStart=function(t,e,r){if((t=yo(t))&&(r||e===i))return t.replace(st,"");if(!t||!(e=ii(e)))return t;var s=lr(t);return yi(s,Ze(s,lr(e))).join("")},Fr.truncate=function(t,e){var r=30,s="...";if(Xa(e)){var n="separator"in e?e.separator:n;r="length"in e?ho(e.length):r,s="omission"in e?ii(e.omission):s}var a=(t=yo(t)).length;if(sr(t)){var o=lr(t);a=o.length}if(r>=a)return t;var c=r-cr(s);if(c<1)return s;var l=o?yi(o,0,c).join(""):t.slice(0,c);if(n===i)return l+s;if(o&&(c+=l.length-c),ro(n)){if(t.slice(c).search(n)){var u,h=l;for(n.global||(n=At(n.source,yo(pt.exec(n))+"g")),n.lastIndex=0;u=n.exec(h);)var p=u.index;l=l.slice(0,p===i?c:p)}}else if(t.indexOf(ii(n),c)!=c){var d=l.lastIndexOf(n);d>-1&&(l=l.slice(0,d))}return l+s},Fr.unescape=function(t){return(t=yo(t))&&$.test(t)?t.replace(V,hr):t},Fr.uniqueId=function(t){var e=++Ot;return yo(t)+e},Fr.upperCase=$o,Fr.upperFirst=Ko,Fr.each=ma,Fr.eachRight=ya,Fr.first=Wn,nc(Fr,(mc={},ys(Fr,(function(t,e){Lt.call(Fr.prototype,e)||(mc[e]=t)})),mc),{chain:!1}),Fr.VERSION="4.17.21",Ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Fr[t].placeholder=Fr})),Ae(["drop","take"],(function(t,e){Yr.prototype[t]=function(r){r=r===i?1:fr(ho(r),0);var s=this.__filtered__&&!e?new Yr(this):this.clone();return s.__filtered__?s.__takeCount__=mr(r,s.__takeCount__):s.__views__.push({size:mr(r,d),type:t+(s.__dir__<0?"Right":"")}),s},Yr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ae(["filter","map","takeWhile"],(function(t,e){var r=e+1,s=1==r||3==r;Yr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:sn(t,3),type:r}),e.__filtered__=e.__filtered__||s,e}})),Ae(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Yr.prototype[t]=function(){return this[r](1).value()[0]}})),Ae(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Yr.prototype[t]=function(){return this.__filtered__?new Yr(this):this[r](1)}})),Yr.prototype.compact=function(){return this.filter(ec)},Yr.prototype.find=function(t){return this.filter(t).head()},Yr.prototype.findLast=function(t){return this.reverse().find(t)},Yr.prototype.invokeMap=Vs((function(t,e){return"function"==typeof t?new Yr(this):this.map((function(r){return ks(r,t,e)}))})),Yr.prototype.reject=function(t){return this.filter(Ma(sn(t)))},Yr.prototype.slice=function(t,e){t=ho(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Yr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=ho(e))<0?r.dropRight(-e):r.take(e-t)),r)},Yr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Yr.prototype.toArray=function(){return this.take(d)},ys(Yr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),s=/^(?:head|last)$/.test(e),n=Fr[s?"take"+("last"==e?"Right":""):e],a=s||/^find/.test(e);n&&(Fr.prototype[e]=function(){var e=this.__wrapped__,o=s?[1]:arguments,c=e instanceof Yr,l=o[0],u=c||Ua(e),h=function(t){var e=n.apply(Fr,Me([t],o));return s&&p?e[0]:e};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,d=!!this.__actions__.length,f=a&&!p,m=c&&!d;if(!a&&u){e=m?e:new Yr(this);var y=t.apply(e,o);return y.__actions__.push({func:ua,args:[h],thisArg:i}),new Br(y,p)}return f&&m?t.apply(this,o):(y=this.thru(h),f?s?y.value()[0]:y.value():y)})})),Ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Et[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",s=/^(?:pop|shift)$/.test(t);Fr.prototype[t]=function(){var t=arguments;if(s&&!this.__chain__){var i=this.value();return e.apply(Ua(i)?i:[],t)}return this[r]((function(r){return e.apply(Ua(r)?r:[],t)}))}})),ys(Yr.prototype,(function(t,e){var r=Fr[e];if(r){var s=r.name+"";Lt.call(_r,s)||(_r[s]=[]),_r[s].push({name:e,func:r})}})),_r[Di(i,2).name]=[{name:"wrapper",func:i}],Yr.prototype.clone=function(){var t=new Yr(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Yr.prototype.reverse=function(){if(this.__filtered__){var t=new Yr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Yr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ua(t),s=e<0,i=r?t.length:0,n=function(t,e,r){for(var s=-1,i=r.length;++s<i;){var n=r[s],a=n.size;switch(n.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=mr(e,t+a);break;case"takeRight":t=fr(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=n.start,o=n.end,c=o-a,l=s?o:a-1,u=this.__iteratees__,h=u.length,p=0,d=mr(c,this.__takeCount__);if(!r||!s&&i==c&&d==c)return li(t,this.__actions__);var f=[];t:for(;c--&&p<d;){for(var m=-1,y=t[l+=e];++m<h;){var g=u[m],v=g.iteratee,x=g.type,b=v(y);if(2==x)y=b;else if(!b){if(1==x)continue t;break t}}f[p++]=y}return f},Fr.prototype.at=ha,Fr.prototype.chain=function(){return la(this)},Fr.prototype.commit=function(){return new Br(this.value(),this.__chain__)},Fr.prototype.next=function(){this.__values__===i&&(this.__values__=lo(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Fr.prototype.plant=function(t){for(var e,r=this;r instanceof Rr;){var s=Fn(r);s.__index__=0,s.__values__=i,e?n.__wrapped__=s:e=s;var n=s;r=r.__wrapped__}return n.__wrapped__=t,e},Fr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Yr){var e=t;return this.__actions__.length&&(e=new Yr(this)),(e=e.reverse()).__actions__.push({func:ua,args:[Xn],thisArg:i}),new Br(e,this.__chain__)}return this.thru(Xn)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,Jt&&(Fr.prototype[Jt]=function(){return this}),Fr}();he._=pr,(s=function(){return pr}.call(e,r,e,t))===i||(t.exports=s)}.call(this)},5417:(t,e,r)=>{"use strict";var s=r(1796),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];t.exports=function(t,e){var r,a;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===i.indexOf(e))throw new s('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=(r=e.styleAliases||null,a={},null!==r&&Object.keys(r).forEach((function(t){r[t].forEach((function(e){a[String(e)]=t}))})),a),-1===n.indexOf(this.kind))throw new s('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}},5462:(t,e,r)=>{"use strict";r.d(e,{U:()=>l});const s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,i=t=>{if("string"!=typeof t)throw new TypeError("Invalid argument expected string");const e=t.match(s);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},n=t=>"*"===t||"x"===t||"X"===t,a=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},o=(t,e)=>{if(n(t)||n(e))return 0;const[r,s]=((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e])(a(t),a(e));return r>s?1:r<s?-1:0},c=(t,e)=>{for(let r=0;r<Math.max(t.length,e.length);r++){const s=o(t[r]||"0",e[r]||"0");if(0!==s)return s}return 0},l=(t,e,r)=>{p(r);const s=((t,e)=>{const r=i(t),s=i(e),n=r.pop(),a=s.pop(),o=c(r,s);return 0!==o?o:n&&a?c(n.split("."),a.split(".")):n||a?n?-1:1:0})(t,e);return u[r].includes(s)},u={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},h=Object.keys(u),p=t=>{if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===h.indexOf(t))throw new Error(`Invalid operator, expected one of ${h.join("|")}`)}},5506:(t,e,r)=>{"use strict";var s=r(3780),i=r(1796),n=r(9348),a=r(9590),o=r(2846),c=Object.prototype.hasOwnProperty,l=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=/[\x85\u2028\u2029]/,h=/[,\[\]\{\}]/,p=/^(?:!|!!|![a-z\-]+!)$/i,d=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(t){return Object.prototype.toString.call(t)}function m(t){return 10===t||13===t}function y(t){return 9===t||32===t}function g(t){return 9===t||32===t||10===t||13===t}function v(t){return 44===t||91===t||93===t||123===t||125===t}function x(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function b(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function w(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var P=new Array(256),T=new Array(256),S=0;S<256;S++)P[S]=b(S)?1:0,T[S]=b(S);function A(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||o,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function k(t,e){return new i(e,new n(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function _(t,e){throw k(t,e)}function E(t,e){t.onWarning&&t.onWarning.call(null,k(t,e))}var C={YAML:function(t,e,r){var s,i,n;null!==t.version&&_(t,"duplication of %YAML directive"),1!==r.length&&_(t,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&_(t,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),n=parseInt(s[2],10),1!==i&&_(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&E(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var s,i;2!==r.length&&_(t,"TAG directive accepts exactly two arguments"),s=r[0],i=r[1],p.test(s)||_(t,"ill-formed tag handle (first argument) of the TAG directive"),c.call(t.tagMap,s)&&_(t,'there is a previously declared suffix for "'+s+'" tag handle'),d.test(i)||_(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[s]=i}};function N(t,e,r,s){var i,n,a,o;if(e<r){if(o=t.input.slice(e,r),s)for(i=0,n=o.length;i<n;i+=1)9===(a=o.charCodeAt(i))||32<=a&&a<=1114111||_(t,"expected valid JSON character");else l.test(o)&&_(t,"the stream contains non-printable characters");t.result+=o}}function I(t,e,r,i){var n,a,o,l;for(s.isObject(r)||_(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,l=(n=Object.keys(r)).length;o<l;o+=1)a=n[o],c.call(e,a)||(e[a]=r[a],i[a]=!0)}function M(t,e,r,s,i,n,a,o){var l,u;if(Array.isArray(i))for(l=0,u=(i=Array.prototype.slice.call(i)).length;l<u;l+=1)Array.isArray(i[l])&&_(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===f(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===f(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(n))for(l=0,u=n.length;l<u;l+=1)I(t,e,n[l],r);else I(t,e,n,r);else t.json||c.call(r,i)||!c.call(e,i)||(t.line=a||t.line,t.position=o||t.position,_(t,"duplicated mapping key")),e[i]=n,delete r[i];return e}function L(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):_(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function O(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);0!==i;){for(;y(i);)i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!m(i))break;for(L(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==r&&0!==s&&t.lineIndent<r&&E(t,"deficient indentation"),s}function D(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!g(e)))}function F(t,e){1===e?t.result+=" ":e>1&&(t.result+=s.repeat("\n",e-1))}function j(t,e){var r,s,i=t.tag,n=t.anchor,a=[],o=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),s=t.input.charCodeAt(t.position);0!==s&&45===s&&g(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,O(t,!0,-1)&&t.lineIndent<=e)a.push(null),s=t.input.charCodeAt(t.position);else if(r=t.line,Y(t,e,3,!1,!0),a.push(t.result),O(t,!0,-1),s=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==s)_(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=i,t.anchor=n,t.kind="sequence",t.result=a,!0)}function R(t){var e,r,s,i,n=!1,a=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&_(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(n=!0,i=t.input.charCodeAt(++t.position)):33===i?(a=!0,r="!!",i=t.input.charCodeAt(++t.position)):r="!",e=t.position,n){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(s=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):_(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!g(i);)33===i&&(a?_(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),p.test(r)||_(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),h.test(s)&&_(t,"tag suffix cannot contain flow indicator characters")}return s&&!d.test(s)&&_(t,"tag name cannot contain such characters: "+s),n?t.tag=s:c.call(t.tagMap,r)?t.tag=t.tagMap[r]+s:"!"===r?t.tag="!"+s:"!!"===r?t.tag="tag:yaml.org,2002:"+s:_(t,'undeclared tag handle "'+r+'"'),!0}function B(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&_(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!g(r)&&!v(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&_(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Y(t,e,r,i,n){var a,o,l,u,h,p,d,f,b=1,S=!1,A=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=l=4===r||3===r,i&&O(t,!0,-1)&&(S=!0,t.lineIndent>e?b=1:t.lineIndent===e?b=0:t.lineIndent<e&&(b=-1)),1===b)for(;R(t)||B(t);)O(t,!0,-1)?(S=!0,l=a,t.lineIndent>e?b=1:t.lineIndent===e?b=0:t.lineIndent<e&&(b=-1)):l=!1;if(l&&(l=S||n),1!==b&&4!==r||(d=1===r||2===r?e:e+1,f=t.position-t.lineStart,1===b?l&&(j(t,f)||function(t,e,r){var s,i,n,a,o,c=t.tag,l=t.anchor,u={},h={},p=null,d=null,f=null,m=!1,v=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),o=t.input.charCodeAt(t.position);0!==o;){if(s=t.input.charCodeAt(t.position+1),n=t.line,a=t.position,63!==o&&58!==o||!g(s)){if(!Y(t,r,2,!1,!0))break;if(t.line===n){for(o=t.input.charCodeAt(t.position);y(o);)o=t.input.charCodeAt(++t.position);if(58===o)g(o=t.input.charCodeAt(++t.position))||_(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(M(t,u,h,p,d,null),p=d=f=null),v=!0,m=!1,i=!1,p=t.tag,d=t.result;else{if(!v)return t.tag=c,t.anchor=l,!0;_(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=c,t.anchor=l,!0;_(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===o?(m&&(M(t,u,h,p,d,null),p=d=f=null),v=!0,m=!0,i=!0):m?(m=!1,i=!0):_(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,o=s;if((t.line===n||t.lineIndent>e)&&(Y(t,e,4,!0,i)&&(m?d=t.result:f=t.result),m||(M(t,u,h,p,d,f,n,a),p=d=f=null),O(t,!0,-1),o=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==o)_(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&M(t,u,h,p,d,null),v&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=u),v}(t,f,d))||function(t,e){var r,s,i,n,a,o,c,l,u,h,p=!0,d=t.tag,f=t.anchor,m={};if(91===(h=t.input.charCodeAt(t.position)))i=93,o=!1,s=[];else{if(123!==h)return!1;i=125,o=!0,s={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),h=t.input.charCodeAt(++t.position);0!==h;){if(O(t,!0,e),(h=t.input.charCodeAt(t.position))===i)return t.position++,t.tag=d,t.anchor=f,t.kind=o?"mapping":"sequence",t.result=s,!0;p||_(t,"missed comma between flow collection entries"),u=null,n=a=!1,63===h&&g(t.input.charCodeAt(t.position+1))&&(n=a=!0,t.position++,O(t,!0,e)),r=t.line,Y(t,e,1,!1,!0),l=t.tag,c=t.result,O(t,!0,e),h=t.input.charCodeAt(t.position),!a&&t.line!==r||58!==h||(n=!0,h=t.input.charCodeAt(++t.position),O(t,!0,e),Y(t,e,1,!1,!0),u=t.result),o?M(t,s,m,l,c,u):n?s.push(M(t,null,m,l,c,u)):s.push(c),O(t,!0,e),44===(h=t.input.charCodeAt(t.position))?(p=!0,h=t.input.charCodeAt(++t.position)):p=!1}_(t,"unexpected end of the stream within a flow collection")}(t,d)?A=!0:(o&&function(t,e){var r,i,n,a,o,c=1,l=!1,u=!1,h=e,p=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===c?c=43===a?3:2:_(t,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=a)&&o<=57?o-48:-1)>=0))break;0===n?_(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?_(t,"repeat of an indentation width identifier"):(h=e+n-1,u=!0)}if(y(a)){do{a=t.input.charCodeAt(++t.position)}while(y(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!m(a)&&0!==a)}for(;0!==a;){for(L(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!u||t.lineIndent<h)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>h&&(h=t.lineIndent),m(a))p++;else{if(t.lineIndent<h){3===c?t.result+=s.repeat("\n",l?1+p:p):1===c&&l&&(t.result+="\n");break}for(i?y(a)?(d=!0,t.result+=s.repeat("\n",l?1+p:p)):d?(d=!1,t.result+=s.repeat("\n",p+1)):0===p?l&&(t.result+=" "):t.result+=s.repeat("\n",p):t.result+=s.repeat("\n",l?1+p:p),l=!0,u=!0,p=0,r=t.position;!m(a)&&0!==a;)a=t.input.charCodeAt(++t.position);N(t,r,t.position,!1)}}return!0}(t,d)||function(t,e){var r,s,i;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,s=i=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(N(t,s,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;s=t.position,t.position++,i=t.position}else m(r)?(N(t,s,i,!0),F(t,O(t,!1,e)),s=i=t.position):t.position===t.lineStart&&D(t)?_(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);_(t,"unexpected end of the stream within a single quoted scalar")}(t,d)||function(t,e){var r,s,i,n,a,o,c;if(34!==(o=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return N(t,r,t.position,!0),t.position++,!0;if(92===o){if(N(t,r,t.position,!0),m(o=t.input.charCodeAt(++t.position)))O(t,!1,e);else if(o<256&&P[o])t.result+=T[o],t.position++;else if((a=120===(c=o)?2:117===c?4:85===c?8:0)>0){for(i=a,n=0;i>0;i--)(a=x(o=t.input.charCodeAt(++t.position)))>=0?n=(n<<4)+a:_(t,"expected hexadecimal character");t.result+=w(n),t.position++}else _(t,"unknown escape sequence");r=s=t.position}else m(o)?(N(t,r,s,!0),F(t,O(t,!1,e)),r=s=t.position):t.position===t.lineStart&&D(t)?_(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}_(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?A=!0:function(t){var e,r,s;if(42!==(s=t.input.charCodeAt(t.position)))return!1;for(s=t.input.charCodeAt(++t.position),e=t.position;0!==s&&!g(s)&&!v(s);)s=t.input.charCodeAt(++t.position);return t.position===e&&_(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),c.call(t.anchorMap,r)||_(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],O(t,!0,-1),!0}(t)?(A=!0,null===t.tag&&null===t.anchor||_(t,"alias node should not have any properties")):function(t,e,r){var s,i,n,a,o,c,l,u,h=t.kind,p=t.result;if(g(u=t.input.charCodeAt(t.position))||v(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(g(s=t.input.charCodeAt(t.position+1))||r&&v(s)))return!1;for(t.kind="scalar",t.result="",i=n=t.position,a=!1;0!==u;){if(58===u){if(g(s=t.input.charCodeAt(t.position+1))||r&&v(s))break}else if(35===u){if(g(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&D(t)||r&&v(u))break;if(m(u)){if(o=t.line,c=t.lineStart,l=t.lineIndent,O(t,!1,-1),t.lineIndent>=e){a=!0,u=t.input.charCodeAt(t.position);continue}t.position=n,t.line=o,t.lineStart=c,t.lineIndent=l;break}}a&&(N(t,i,n,!1),F(t,t.line-o),i=n=t.position,a=!1),y(u)||(n=t.position+1),u=t.input.charCodeAt(++t.position)}return N(t,i,n,!1),!!t.result||(t.kind=h,t.result=p,!1)}(t,d,1===r)&&(A=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===b&&(A=l&&j(t,f))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&_(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),u=0,h=t.implicitTypes.length;u<h;u+=1)if((p=t.implicitTypes[u]).resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else c.call(t.typeMap[t.kind||"fallback"],t.tag)?(p=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&p.kind!==t.kind&&_(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result)?(t.result=p.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):_(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):_(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||A}function U(t){var e,r,s,i,n=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(i=t.input.charCodeAt(t.position))&&(O(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(a=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!g(i);)i=t.input.charCodeAt(++t.position);for(s=[],(r=t.input.slice(e,t.position)).length<1&&_(t,"directive name must not be less than one character in length");0!==i;){for(;y(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!m(i));break}if(m(i))break;for(e=t.position;0!==i&&!g(i);)i=t.input.charCodeAt(++t.position);s.push(t.input.slice(e,t.position))}0!==i&&L(t),c.call(C,r)?C[r](t,r,s):E(t,'unknown document directive "'+r+'"')}O(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,O(t,!0,-1)):a&&_(t,"directives end mark is expected"),Y(t,t.lineIndent-1,4,!1,!0),O(t,!0,-1),t.checkLineBreaks&&u.test(t.input.slice(n,t.position))&&E(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&D(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,O(t,!0,-1)):t.position<t.length-1&&_(t,"end of the stream or a document separator is expected")}function H(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new A(t,e),s=t.indexOf("\0");for(-1!==s&&(r.position=s,_(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)U(r);return r.documents}function W(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var s=H(t,r);if("function"!=typeof e)return s;for(var i=0,n=s.length;i<n;i+=1)e(s[i])}function z(t,e){var r=H(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new i("expected a single document in the stream, but found more")}}t.exports.loadAll=W,t.exports.load=z,t.exports.safeLoadAll=function(t,e,r){return"object"==typeof e&&null!==e&&void 0===r&&(r=e,e=null),W(t,e,s.extend({schema:a},r))},t.exports.safeLoad=function(t,e){return z(t,s.extend({schema:a},e))}},5853:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},5861:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(9420))},5986:(t,e,r)=>{"use strict";var s;try{s=r(Object(function(){var t=new Error("Cannot find module 'esprima'");throw t.code="MODULE_NOT_FOUND",t}()))}catch(t){"undefined"!=typeof window&&(s=window.esprima)}var i=r(5417);t.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var e="("+t+")",r=s.parse(e,{range:!0});return"Program"===r.type&&1===r.body.length&&"ExpressionStatement"===r.body[0].type&&("ArrowFunctionExpression"===r.body[0].expression.type||"FunctionExpression"===r.body[0].expression.type)}catch(t){return!1}},construct:function(t){var e,r="("+t+")",i=s.parse(r,{range:!0}),n=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(t){n.push(t.name)})),e=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(n,r.slice(e[0]+1,e[1]-1)):new Function(n,"return "+r.slice(e[0],e[1]))},predicate:function(t){return"[object Function]"===Object.prototype.toString.call(t)},represent:function(t){return t.toString()}})},6076:(t,e,r)=>{"use strict";var s=r(3780),i=r(5417),n=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;t.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!n.test(t)||"_"===t[t.length-1])},construct:function(t){var e,r,s,i;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach((function(t){i.unshift(parseFloat(t,10))})),e=0,s=1,i.forEach((function(t){e+=t*s,s*=60})),r*e):r*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||s.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(t))return"-0.0";return r=t.toString(10),a.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},6121:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(2559);function i(t,e,r){return t.set((0,s.A)(t,e),r),r}},6384:(t,e,r)=>{"use strict";var s=r(3780),i=r(1796),n=r(2846),a=r(9590),o=Object.prototype.toString,c=Object.prototype.hasOwnProperty,l={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},u=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function h(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else{if(!(t<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+s.repeat("0",n-e.length)+e}function p(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=s.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var r,s,i,n,a,o,l;if(null===e)return{};for(r={},i=0,n=(s=Object.keys(e)).length;i<n;i+=1)a=s[i],o=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&c.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[a]=o;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(t,e){for(var r,i=s.repeat(" ",e),n=0,a=-1,o="",c=t.length;n<c;)-1===(a=t.indexOf("\n",n))?(r=t.slice(n),n=c):(r=t.slice(n,a+1),n=a+1),r.length&&"\n"!==r&&(o+=i),o+=r;return o}function f(t,e){return"\n"+s.repeat(" ",t.indent*e)}function m(t){return 32===t||9===t}function y(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function g(t,e){return y(t)&&65279!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&58!==t&&(35!==t||e&&function(t){return y(t)&&!m(t)&&65279!==t&&13!==t&&10!==t}(e))}function v(t){return/^\n* /.test(t)}function x(t,e,r,s){t.dump=function(){if(0===e.length)return"''";if(!t.noCompatMode&&-1!==u.indexOf(e))return"'"+e+"'";var n=t.indent*Math.max(1,r),a=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),o=s||t.flowLevel>-1&&r>=t.flowLevel;switch(function(t,e,r,s,i){var n,a,o,c,l=!1,u=!1,h=-1!==s,p=-1,d=y(c=t.charCodeAt(0))&&65279!==c&&!m(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&!m(t.charCodeAt(t.length-1));if(e)for(n=0;n<t.length;n++){if(!y(a=t.charCodeAt(n)))return 5;o=n>0?t.charCodeAt(n-1):null,d=d&&g(a,o)}else{for(n=0;n<t.length;n++){if(10===(a=t.charCodeAt(n)))l=!0,h&&(u=u||n-p-1>s&&" "!==t[p+1],p=n);else if(!y(a))return 5;o=n>0?t.charCodeAt(n-1):null,d=d&&g(a,o)}u=u||h&&n-p-1>s&&" "!==t[p+1]}return l||u?r>9&&v(t)?5:u?4:3:d&&!i(t)?1:2}(e,o,t.indent,a,(function(e){return function(t,e){var r,s;for(r=0,s=t.implicitTypes.length;r<s;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}(t,e)}))){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+b(e,t.indent)+w(d(e,n));case 4:return">"+b(e,t.indent)+w(d(function(t,e){for(var r,s,i,n=/(\n+)([^\n]*)/g,a=(i=-1!==(i=t.indexOf("\n"))?i:t.length,n.lastIndex=i,P(t.slice(0,i),e)),o="\n"===t[0]||" "===t[0];s=n.exec(t);){var c=s[1],l=s[2];r=" "===l[0],a+=c+(o||r||""===l?"":"\n")+P(l,e),o=r}return a}(e,a),n));case 5:return'"'+function(t){for(var e,r,s,i="",n=0;n<t.length;n++)(e=t.charCodeAt(n))>=55296&&e<=56319&&(r=t.charCodeAt(n+1))>=56320&&r<=57343?(i+=h(1024*(e-55296)+r-56320+65536),n++):i+=!(s=l[e])&&y(e)?t[n]:s||h(e);return i}(e)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function b(t,e){var r=v(t)?String(e):"",s="\n"===t[t.length-1];return r+(!s||"\n"!==t[t.length-2]&&"\n"!==t?s?"":"-":"+")+"\n"}function w(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function P(t,e){if(""===t||" "===t[0])return t;for(var r,s,i=/ [^ ]/g,n=0,a=0,o=0,c="";r=i.exec(t);)(o=r.index)-n>e&&(s=a>n?a:o,c+="\n"+t.slice(n,s),n=s+1),a=o;return c+="\n",t.length-n>e&&a>n?c+=t.slice(n,a)+"\n"+t.slice(a+1):c+=t.slice(n),c.slice(1)}function T(t,e,r){var s,n,a,l,u,h;for(a=0,l=(n=r?t.explicitTypes:t.implicitTypes).length;a<l;a+=1)if(((u=n[a]).instanceOf||u.predicate)&&(!u.instanceOf||"object"==typeof e&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(t.tag=r?u.tag:"?",u.represent){if(h=t.styleMap[u.tag]||u.defaultStyle,"[object Function]"===o.call(u.represent))s=u.represent(e,h);else{if(!c.call(u.represent,h))throw new i("!<"+u.tag+'> tag resolver accepts not "'+h+'" style');s=u.represent[h](e,h)}t.dump=s}return!0}return!1}function S(t,e,r,s,n,a){t.tag=null,t.dump=r,T(t,r,!1)||T(t,r,!0);var c=o.call(t.dump);s&&(s=t.flowLevel<0||t.flowLevel>e);var l,u,h="[object Object]"===c||"[object Array]"===c;if(h&&(u=-1!==(l=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(n=!1),u&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(h&&u&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),"[object Object]"===c)s&&0!==Object.keys(t.dump).length?(function(t,e,r,s){var n,a,o,c,l,u,h="",p=t.tag,d=Object.keys(r);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new i("sortKeys must be a boolean or a function");for(n=0,a=d.length;n<a;n+=1)u="",s&&0===n||(u+=f(t,e)),c=r[o=d[n]],S(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,l&&(u+=f(t,e)),S(t,e+1,c,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?u+=":":u+=": ",h+=u+=t.dump));t.tag=p,t.dump=h||"{}"}(t,e,t.dump,n),u&&(t.dump="&ref_"+l+t.dump)):(function(t,e,r){var s,i,n,a,o,c="",l=t.tag,u=Object.keys(r);for(s=0,i=u.length;s<i;s+=1)o="",0!==s&&(o+=", "),t.condenseFlow&&(o+='"'),a=r[n=u[s]],S(t,e,n,!1,!1)&&(t.dump.length>1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),S(t,e,a,!1,!1)&&(c+=o+=t.dump));t.tag=l,t.dump="{"+c+"}"}(t,e,t.dump),u&&(t.dump="&ref_"+l+" "+t.dump));else if("[object Array]"===c){var p=t.noArrayIndent&&e>0?e-1:e;s&&0!==t.dump.length?(function(t,e,r,s){var i,n,a="",o=t.tag;for(i=0,n=r.length;i<n;i+=1)S(t,e+1,r[i],!0,!0)&&(s&&0===i||(a+=f(t,e)),t.dump&&10===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=o,t.dump=a||"[]"}(t,p,t.dump,n),u&&(t.dump="&ref_"+l+t.dump)):(function(t,e,r){var s,i,n="",a=t.tag;for(s=0,i=r.length;s<i;s+=1)S(t,e,r[s],!1,!1)&&(0!==s&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=a,t.dump="["+n+"]"}(t,p,t.dump),u&&(t.dump="&ref_"+l+" "+t.dump))}else{if("[object String]"!==c){if(t.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&x(t,t.dump,e,a)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function A(t,e){var r,s,i=[],n=[];for(k(t,i,n),r=0,s=n.length;r<s;r+=1)e.duplicates.push(i[n[r]]);e.usedDuplicates=new Array(s)}function k(t,e,r){var s,i,n;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,n=t.length;i<n;i+=1)k(t[i],e,r);else for(i=0,n=(s=Object.keys(t)).length;i<n;i+=1)k(t[s[i]],e,r)}function _(t,e){var r=new p(e=e||{});return r.noRefs||A(t,r),S(r,0,t,!0,!0)?r.dump+"\n":""}t.exports.dump=_,t.exports.safeDump=function(t,e){return _(t,s.extend({schema:a},e))}},6539:(t,e,r)=>{"use strict";var s=r(3780),i=r(5417);function n(t){return 48<=t&&t<=55}function a(t){return 48<=t&&t<=57}t.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,s=t.length,i=0,o=!1;if(!s)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===s)return!0;if("b"===(e=t[++i])){for(i++;i<s;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(i++;i<s;i++)if("_"!==(e=t[i])){if(!(48<=(r=t.charCodeAt(i))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;o=!0}return o&&"_"!==e}for(;i<s;i++)if("_"!==(e=t[i])){if(!n(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}if("_"===e)return!1;for(;i<s;i++)if("_"!==(e=t[i])){if(":"===e)break;if(!a(t.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===e)&&(":"!==e||/^(:[0-5]?[0-9])+$/.test(t.slice(i)))},construct:function(t){var e,r,s=t,i=1,n=[];return-1!==s.indexOf("_")&&(s=s.replace(/_/g,"")),"-"!==(e=s[0])&&"+"!==e||("-"===e&&(i=-1),e=(s=s.slice(1))[0]),"0"===s?0:"0"===e?"b"===s[1]?i*parseInt(s.slice(2),2):"x"===s[1]?i*parseInt(s,16):i*parseInt(s,8):-1!==s.indexOf(":")?(s.split(":").forEach((function(t){n.unshift(parseInt(t,10))})),s=0,r=1,n.forEach((function(t){s+=t*r,r*=60})),i*s):i*parseInt(s,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!s.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6562:(t,e,r)=>{"use strict";var s=r(5417),i=Object.prototype.hasOwnProperty;t.exports=new s("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,r=t;for(e in r)if(i.call(r,e)&&null!==r[e])return!1;return!0},construct:function(t){return null!==t?t:{}}})},6751:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,r=/\/([gim]*)$/.exec(t),s="";if("/"===e[0]){if(r&&(s=r[1]),s.length>3)return!1;if("/"!==e[e.length-s.length-1])return!1}return!0},construct:function(t){var e=t,r=/\/([gim]*)$/.exec(t),s="";return"/"===e[0]&&(r&&(s=r[1]),e=e.slice(1,e.length-s.length-1)),new RegExp(e,s)},predicate:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},represent:function(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}})},6773:(t,e)=>{"use strict";function r(t,e){if(null==t)return{};var r={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(-1!==e.indexOf(s))continue;r[s]=t[s]}return r}Object.defineProperty(e,"__esModule",{value:!0});class s{constructor(t,e,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=r}}class i{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function n(t,e){const{line:r,column:i,index:n}=t;return new s(r,i+e,n+e)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const c={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},l=t=>"UpdateExpression"===t.type?c.UpdateExpression[`${t.prefix}`]:c[t.type];var u={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${l(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${l(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${l(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},h={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`};const p=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${l({type:t})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const f=["message"];function m(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function y({toMessage:t,code:e,reasonCode:r,syntaxPlugin:i}){const n="MissingPlugin"===r||"MissingOneOfPlugins"===r;{const t={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};t[r]&&(r=t[r])}return function a(o,c){const l=new SyntaxError;return l.code=e,l.reasonCode=r,l.loc=o,l.pos=o.index,l.syntaxPlugin=i,n&&(l.missingPlugin=c.missingPlugin),m(l,"clone",(function(t={}){var e;const{line:r,column:i,index:n}=null!=(e=t.loc)?e:o;return a(new s(r,i,n),Object.assign({},c,t.details))})),m(l,"details",c),Object.defineProperty(l,"message",{configurable:!0,get(){const e=`${t(c)} (${o.line}:${o.column})`;return this.message=e,e},set(t){Object.defineProperty(this,"message",{value:t,writable:!0})}}),l}}function g(t,e){if(Array.isArray(t))return e=>g(e,t[0]);const s={};for(const i of Object.keys(t)){const n=t[i],a="string"==typeof n?{message:()=>n}:"function"==typeof n?{message:n}:n,{message:o}=a,c=r(a,f),l="string"==typeof o?()=>o:o;s[i]=y(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},e?{syntaxPlugin:e}:{},c))}return s}const v=Object.assign({},g(o),g(u),g({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),g(h),g`pipelineOperator`(d)),{defineProperty:x}=Object,b=(t,e)=>{t&&x(t,e,{enumerable:!1,value:t[e]})};function w(t){return b(t.loc.start,"index"),b(t.loc.end,"index"),t}class P{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}const T={brace:new P("{"),j_oTag:new P("<tag"),j_cTag:new P("</tag"),j_expr:new P("<tag>...</tag>",!0)};T.template=new P("`",!0);const S=!0,A=!0,k=!0,_=!0,E=!0;class C{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}const N=new Map;function I(t,e={}){e.keyword=t;const r=Y(t,e);return N.set(t,r),r}function M(t,e){return Y(t,{beforeExpr:S,binop:e})}let L=-1;const O=[],D=[],F=[],j=[],R=[],B=[];function Y(t,e={}){var r,s,i,n;return++L,D.push(t),F.push(null!=(r=e.binop)?r:-1),j.push(null!=(s=e.beforeExpr)&&s),R.push(null!=(i=e.startsExpr)&&i),B.push(null!=(n=e.prefix)&&n),O.push(new C(t,e)),L}function U(t,e={}){var r,s,i,n;return++L,N.set(t,L),D.push(t),F.push(null!=(r=e.binop)?r:-1),j.push(null!=(s=e.beforeExpr)&&s),R.push(null!=(i=e.startsExpr)&&i),B.push(null!=(n=e.prefix)&&n),O.push(new C("name",e)),L}const H={bracketL:Y("[",{beforeExpr:S,startsExpr:A}),bracketHashL:Y("#[",{beforeExpr:S,startsExpr:A}),bracketBarL:Y("[|",{beforeExpr:S,startsExpr:A}),bracketR:Y("]"),bracketBarR:Y("|]"),braceL:Y("{",{beforeExpr:S,startsExpr:A}),braceBarL:Y("{|",{beforeExpr:S,startsExpr:A}),braceHashL:Y("#{",{beforeExpr:S,startsExpr:A}),braceR:Y("}"),braceBarR:Y("|}"),parenL:Y("(",{beforeExpr:S,startsExpr:A}),parenR:Y(")"),comma:Y(",",{beforeExpr:S}),semi:Y(";",{beforeExpr:S}),colon:Y(":",{beforeExpr:S}),doubleColon:Y("::",{beforeExpr:S}),dot:Y("."),question:Y("?",{beforeExpr:S}),questionDot:Y("?."),arrow:Y("=>",{beforeExpr:S}),template:Y("template"),ellipsis:Y("...",{beforeExpr:S}),backQuote:Y("`",{startsExpr:A}),dollarBraceL:Y("${",{beforeExpr:S,startsExpr:A}),templateTail:Y("...`",{startsExpr:A}),templateNonTail:Y("...${",{beforeExpr:S,startsExpr:A}),at:Y("@"),hash:Y("#",{startsExpr:A}),interpreterDirective:Y("#!..."),eq:Y("=",{beforeExpr:S,isAssign:_}),assign:Y("_=",{beforeExpr:S,isAssign:_}),slashAssign:Y("_=",{beforeExpr:S,isAssign:_}),xorAssign:Y("_=",{beforeExpr:S,isAssign:_}),moduloAssign:Y("_=",{beforeExpr:S,isAssign:_}),incDec:Y("++/--",{prefix:E,postfix:!0,startsExpr:A}),bang:Y("!",{beforeExpr:S,prefix:E,startsExpr:A}),tilde:Y("~",{beforeExpr:S,prefix:E,startsExpr:A}),doubleCaret:Y("^^",{startsExpr:A}),doubleAt:Y("@@",{startsExpr:A}),pipeline:M("|>",0),nullishCoalescing:M("??",1),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),lt:M("</>/<=/>=",7),gt:M("</>/<=/>=",7),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),bitShiftL:M("<</>>/>>>",8),bitShiftR:M("<</>>/>>>",8),plusMin:Y("+/-",{beforeExpr:S,binop:9,prefix:E,startsExpr:A}),modulo:Y("%",{binop:10,startsExpr:A}),star:Y("*",{binop:10}),slash:M("/",10),exponent:Y("**",{beforeExpr:S,binop:11,rightAssociative:!0}),_in:I("in",{beforeExpr:S,binop:7}),_instanceof:I("instanceof",{beforeExpr:S,binop:7}),_break:I("break"),_case:I("case",{beforeExpr:S}),_catch:I("catch"),_continue:I("continue"),_debugger:I("debugger"),_default:I("default",{beforeExpr:S}),_else:I("else",{beforeExpr:S}),_finally:I("finally"),_function:I("function",{startsExpr:A}),_if:I("if"),_return:I("return",{beforeExpr:S}),_switch:I("switch"),_throw:I("throw",{beforeExpr:S,prefix:E,startsExpr:A}),_try:I("try"),_var:I("var"),_const:I("const"),_with:I("with"),_new:I("new",{beforeExpr:S,startsExpr:A}),_this:I("this",{startsExpr:A}),_super:I("super",{startsExpr:A}),_class:I("class",{startsExpr:A}),_extends:I("extends",{beforeExpr:S}),_export:I("export"),_import:I("import",{startsExpr:A}),_null:I("null",{startsExpr:A}),_true:I("true",{startsExpr:A}),_false:I("false",{startsExpr:A}),_typeof:I("typeof",{beforeExpr:S,prefix:E,startsExpr:A}),_void:I("void",{beforeExpr:S,prefix:E,startsExpr:A}),_delete:I("delete",{beforeExpr:S,prefix:E,startsExpr:A}),_do:I("do",{isLoop:k,beforeExpr:S}),_for:I("for",{isLoop:k}),_while:I("while",{isLoop:k}),_as:U("as",{startsExpr:A}),_assert:U("assert",{startsExpr:A}),_async:U("async",{startsExpr:A}),_await:U("await",{startsExpr:A}),_defer:U("defer",{startsExpr:A}),_from:U("from",{startsExpr:A}),_get:U("get",{startsExpr:A}),_let:U("let",{startsExpr:A}),_meta:U("meta",{startsExpr:A}),_of:U("of",{startsExpr:A}),_sent:U("sent",{startsExpr:A}),_set:U("set",{startsExpr:A}),_source:U("source",{startsExpr:A}),_static:U("static",{startsExpr:A}),_using:U("using",{startsExpr:A}),_yield:U("yield",{startsExpr:A}),_asserts:U("asserts",{startsExpr:A}),_checks:U("checks",{startsExpr:A}),_exports:U("exports",{startsExpr:A}),_global:U("global",{startsExpr:A}),_implements:U("implements",{startsExpr:A}),_intrinsic:U("intrinsic",{startsExpr:A}),_infer:U("infer",{startsExpr:A}),_is:U("is",{startsExpr:A}),_mixins:U("mixins",{startsExpr:A}),_proto:U("proto",{startsExpr:A}),_require:U("require",{startsExpr:A}),_satisfies:U("satisfies",{startsExpr:A}),_keyof:U("keyof",{startsExpr:A}),_readonly:U("readonly",{startsExpr:A}),_unique:U("unique",{startsExpr:A}),_abstract:U("abstract",{startsExpr:A}),_declare:U("declare",{startsExpr:A}),_enum:U("enum",{startsExpr:A}),_module:U("module",{startsExpr:A}),_namespace:U("namespace",{startsExpr:A}),_interface:U("interface",{startsExpr:A}),_type:U("type",{startsExpr:A}),_opaque:U("opaque",{startsExpr:A}),name:Y("name",{startsExpr:A}),placeholder:Y("%%",{startsExpr:!0}),string:Y("string",{startsExpr:A}),num:Y("num",{startsExpr:A}),bigint:Y("bigint",{startsExpr:A}),decimal:Y("decimal",{startsExpr:A}),regexp:Y("regexp",{startsExpr:A}),privateName:Y("#name",{startsExpr:A}),eof:Y("eof"),jsxName:Y("jsxName"),jsxText:Y("jsxText",{beforeExpr:!0}),jsxTagStart:Y("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Y("jsxTagEnd")};function W(t){return t>=93&&t<=133}function z(t){return t>=58&&t<=133}function V(t){return t>=58&&t<=137}function q(t){return R[t]}function $(t){return t>=129&&t<=131}function K(t){return t>=58&&t<=92}function J(t){return D[t]}function G(t){return F[t]}function X(t){return t>=24&&t<=25}function Z(t){return O[t]}O[8].updateContext=t=>{t.pop()},O[5].updateContext=O[7].updateContext=O[23].updateContext=t=>{t.push(T.brace)},O[22].updateContext=t=>{t[t.length-1]===T.template?t.pop():t.push(T.template)},O[143].updateContext=t=>{t.push(T.j_expr,T.j_oTag)};let Q="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tt="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const et=new RegExp("["+Q+"]"),rt=new RegExp("["+Q+tt+"]");Q=tt=null;const st=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],it=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function nt(t,e){let r=65536;for(let s=0,i=e.length;s<i;s+=2){if(r+=e[s],r>t)return!1;if(r+=e[s+1],r>=t)return!0}return!1}function at(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&et.test(String.fromCharCode(t)):nt(t,st)))}function ot(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&rt.test(String.fromCharCode(t)):nt(t,st)||nt(t,it))))}const ct=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),lt=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),ut=new Set(["eval","arguments"]);function ht(t,e){return e&&"await"===t||"enum"===t}function pt(t,e){return ht(t,e)||lt.has(t)}function dt(t){return ut.has(t)}function ft(t,e){return pt(t,e)||dt(t)}const mt=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class yt{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class gt{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(64&t)>0&&!(2&t)}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(128&e)return!0;if(707&e)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new yt(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(130&t.flags||!this.parser.inModule&&1&t.flags)}declareName(t,e,r){let s=this.currentScope();if(8&e||16&e){this.checkRedeclarationInScope(s,t,e,r);let i=s.names.get(t)||0;16&e?i|=4:(s.firstLexicalName||(s.firstLexicalName=t),i|=2),s.names.set(t,i),8&e&&this.maybeExportDefined(s,t)}else if(4&e)for(let i=this.scopeStack.length-1;i>=0&&(s=this.scopeStack[i],this.checkRedeclarationInScope(s,t,e,r),s.names.set(t,1|(s.names.get(t)||0)),this.maybeExportDefined(s,t),!(643&s.flags));--i);this.parser.inModule&&1&s.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,r,s){this.isRedeclaredInScope(t,e,r)&&this.parser.raise(v.VarRedeclaration,s,{identifierName:e})}isRedeclaredInScope(t,e,r){if(!(1&r))return!1;if(8&r)return t.names.has(e);const s=t.names.get(e);return 16&r?(2&s)>0||!this.treatFunctionsAsVarInScope(t)&&(1&s)>0:(2&s)>0&&!(8&t.flags&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(4&s)>0}checkLocalExport(t){const{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(643&e)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(707&e&&!(4&e))return e}}}class vt extends yt{constructor(...t){super(...t),this.declareFunctions=new Set}}class xt extends gt{createScope(t){return new vt(t)}declareName(t,e,r){const s=this.currentScope();if(2048&e)return this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t),void s.declareFunctions.add(t);super.declareName(t,e,r)}isRedeclaredInScope(t,e,r){if(super.isRedeclaredInScope(t,e,r))return!0;if(2048&r&&!t.declareFunctions.has(e)){const r=t.names.get(e);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}const bt=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),wt=g`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Pt(t){return"type"===t.importKind||"typeof"===t.importKind}const Tt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},St=/\*?\s*@((?:no)?flow)\b/,At={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},kt=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function _t(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Et(t,e,r){for(let s=e;s<r;s++)if(_t(t.charCodeAt(s)))return!0;return!1}const Ct=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Nt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function It(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const Mt=g`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Lt(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function Ot(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return Ot(t.object)+"."+Ot(t.property);throw new Error("Node had unexpected type: "+t.type)}class Dt extends yt{constructor(...t){super(...t),this.tsNames=new Map}}class Ft extends gt{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Dt(t)}enter(t){512===t&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return 512===t&&this.importsStack.pop(),t}hasImport(t,e){const r=this.importsStack.length;if(this.importsStack[r-1].has(t))return!0;if(!e&&r>1)for(let e=0;e<r-1;e++)if(this.importsStack[e].has(t))return!0;return!1}declareName(t,e,r){if(4096&e)return this.hasImport(t,!0)&&this.parser.raise(v.VarRedeclaration,r,{identifierName:t}),void this.importsStack[this.importsStack.length-1].add(t);const s=this.currentScope();let i=s.tsNames.get(t)||0;if(1024&e)return this.maybeExportDefined(s,t),void s.tsNames.set(t,16|i);super.declareName(t,e,r),2&e&&(1&e||(this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t)),i|=1),256&e&&(i|=2),512&e&&(i|=4),128&e&&(i|=8),i&&s.tsNames.set(t,i)}isRedeclaredInScope(t,e,r){const s=t.tsNames.get(e);return(2&s)>0?!(256&r)||!!(512&r)!=(4&s)>0:128&r&&(8&s)>0?!!(2&t.names.get(e))&&!!(1&r):!!(2&r&&(1&s)>0)||super.isRedeclaredInScope(t,e,r)}checkLocalExport(t){const{name:e}=t;if(!this.hasImport(e)){for(let t=this.scopeStack.length-1;t>=0;t--){const r=this.scopeStack[t].tsNames.get(e);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(t)}}}class jt{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Rt(t,e){return(t?2:0)|(e?1:0)}class Bt{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if("string"==typeof t)return this.plugins.has(t);{const[e,r]=t;if(!this.hasPlugin(e))return!1;const s=this.plugins.get(e);for(const t of Object.keys(r))if((null==s?void 0:s[t])!==r[t])return!1;return!0}}getPluginOption(t,e){var r;return null==(r=this.plugins.get(t))?void 0:r[e]}}function Yt(t,e){void 0===t.trailingComments?t.trailingComments=e:t.trailingComments.unshift(...e)}function Ut(t,e){void 0===t.innerComments?t.innerComments=e:t.innerComments.unshift(...e)}function Ht(t,e,r){let s=null,i=e.length;for(;null===s&&i>0;)s=e[--i];null===s||s.start>r.start?Ut(t,r.comments):Yt(s,r.comments)}class Wt extends Bt{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:e}=this.state,r=e.length;if(0===r)return;let s=r-1;const i=e[s];i.start===t.end&&(i.leadingNode=t,s--);const{start:n}=t;for(;s>=0;s--){const r=e[s],i=r.end;if(!(i>n)){i===n&&(r.trailingNode=t);break}r.containingNode=t,this.finalizeComment(r),e.splice(s,1)}}finalizeComment(t){var e;const{comments:r}=t;if(null!==t.leadingNode||null!==t.trailingNode)null!==t.leadingNode&&Yt(t.leadingNode,r),null!==t.trailingNode&&function(t,e){void 0===t.leadingComments?t.leadingComments=e:t.leadingComments.unshift(...e)}(t.trailingNode,r);else{const{containingNode:s,start:i}=t;if(44===this.input.charCodeAt(this.offsetToSourcePos(i)-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ht(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":Ht(s,s.arguments,t);break;case"ImportExpression":Ht(s,[s.source,null!=(e=s.options)?e:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ht(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ht(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ht(s,s.specifiers,t);break;case"TSEnumDeclaration":case"TSEnumBody":Ht(s,s.members,t);break;default:Ut(s,r)}else Ut(s,r)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:e}=this.state,{length:r}=e;if(0===r)return;const s=e[r-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,e,r){const{commentStack:s}=this.state,i=s.length;if(0===i)return;let n=i-1;for(;n>=0;n--){const i=s[n],a=i.end;if(i.start===r)i.leadingNode=t;else if(a===e)i.trailingNode=t;else if(a<e)break}}}class zt{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[T.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startIndex:r,startLine:i,startColumn:n}){this.strict=!1!==t&&(!0===t||"module"===e),this.startIndex=r,this.curLine=i,this.lineStart=-n,this.startLoc=this.endLoc=new s(i,n,r)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new s(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const t=new zt;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var Vt=function(t){return t>=48&&t<=57};const qt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$t={bin:t=>48===t||49===t,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Kt(t,e,r,s,i,n){const a=r,o=s,c=i;let l="",u=null,h=r;const{length:p}=e;for(;;){if(r>=p){n.unterminated(a,o,c),l+=e.slice(h,r);break}const d=e.charCodeAt(r);if(Jt(t,d,e,r)){l+=e.slice(h,r);break}if(92===d){l+=e.slice(h,r);const a=Gt(e,r,s,i,"template"===t,n);null!==a.ch||u?l+=a.ch:u={pos:r,lineStart:s,curLine:i},({pos:r,lineStart:s,curLine:i}=a),h=r}else 8232===d||8233===d?(++i,s=++r):10===d||13===d?"template"===t?(l+=e.slice(h,r)+"\n",++r,13===d&&10===e.charCodeAt(r)&&++r,++i,h=s=r):n.unterminated(a,o,c):++r}return{pos:r,str:l,firstInvalidLoc:u,lineStart:s,curLine:i,containsInvalid:!!u}}function Jt(t,e,r,s){return"template"===t?96===e||36===e&&123===r.charCodeAt(s+1):e===("double"===t?34:39)}function Gt(t,e,r,s,i,n){const a=!i;e++;const o=t=>({pos:e,ch:t,lineStart:r,curLine:s}),c=t.charCodeAt(e++);switch(c){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:e}=Xt(t,e,r,s,2,!1,a,n)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:e}=Qt(t,e,r,s,a,n)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===t.charCodeAt(e)&&++e;case 10:r=e,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);n.strictNumericEscape(e-1,r,s);default:if(c>=48&&c<=55){const a=e-1;let c=/^[0-7]+/.exec(t.slice(a,e+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),e+=c.length-1;const u=t.charCodeAt(e);if("0"!==c||56===u||57===u){if(i)return o(null);n.strictNumericEscape(a,r,s)}return o(String.fromCharCode(l))}return o(String.fromCharCode(c))}}function Xt(t,e,r,s,i,n,a,o){const c=e;let l;return({n:l,pos:e}=Zt(t,e,r,s,16,i,n,!1,o,!a)),null===l&&(a?o.invalidEscapeSequence(c,r,s):e=c-1),{code:l,pos:e}}function Zt(t,e,r,s,i,n,a,o,c,l){const u=e,h=16===i?qt.hex:qt.decBinOct,p=16===i?$t.hex:10===i?$t.dec:8===i?$t.oct:$t.bin;let d=!1,f=0;for(let u=0,m=null==n?1/0:n;u<m;++u){const n=t.charCodeAt(e);let u;if(95!==n||"bail"===o){if(u=n>=97?n-97+10:n>=65?n-65+10:Vt(n)?n-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:e};if(u<=9&&c.invalidDigit(e,r,s,i))u=0;else{if(!a)break;u=0,d=!0}}++e,f=f*i+u}else{const i=t.charCodeAt(e-1),n=t.charCodeAt(e+1);if(o){if(Number.isNaN(n)||!p(n)||h.has(i)||h.has(n)){if(l)return{n:null,pos:e};c.unexpectedNumericSeparator(e,r,s)}}else{if(l)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,r,s)}++e}}return e===u||null!=n&&e-u!==n||d?{n:null,pos:e}:{n:f,pos:e}}function Qt(t,e,r,s,i,n){let a;if(123===t.charCodeAt(e)){if(++e,({code:a,pos:e}=Xt(t,e,r,s,t.indexOf("}",e)-e,!0,i,n)),++e,null!==a&&a>1114111){if(!i)return{code:null,pos:e};n.invalidCodePoint(e,r,s)}}else({code:a,pos:e}=Xt(t,e,r,s,4,!1,i,n));return{code:a,pos:e}}function te(t,e,r){return new s(r,t-e,t)}const ee=new Set([103,109,115,105,121,117,100,118]);class re{constructor(t){const e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new i(t.startLoc,t.endLoc)}}class se extends Wt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(t,e,r,s)=>!!(2048&this.optionFlags)&&(this.raise(v.InvalidDigit,te(t,e,r),{radix:s}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(v.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(v.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(v.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(v.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,e,r)=>{this.recordStrictModeErrors(v.StrictNumericEscape,te(t,e,r))},unterminated:(t,e,r)=>{throw this.raise(v.UnterminatedString,te(t-1,e,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(v.StrictNumericEscape),unterminated:(t,e,r)=>{throw this.raise(v.UnterminatedTemplate,te(t,e,r))}}),this.state=new zt,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new re(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Ct.lastIndex=t,Ct.test(this.input)?Ct.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Nt.lastIndex=t,Nt.test(this.input)?Nt.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if(55296==(64512&e)&&++t<this.input.length){const r=this.input.charCodeAt(t);56320==(64512&r)&&(e=65536+((1023&e)<<10)+(1023&r))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach((([t,e])=>this.raise(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());const r=this.state.pos,s=this.input.indexOf(t,r+2);if(-1===s)throw this.raise(v.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,kt.lastIndex=r+2;kt.test(this.input)&&kt.lastIndex<=s;)++this.state.curLine,this.state.lineStart=kt.lastIndex;if(this.isLookahead)return;const n={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+t.length),loc:new i(e,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(n),n}skipLineComment(t){const e=this.state.pos;let r;this.isLookahead||(r=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!_t(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const n=this.state.pos,a={type:"CommentLine",value:this.input.slice(e+t,n),start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),loc:new i(r,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){const t=this.state.pos,e=4096&this.optionFlags?[]:null;t:for(;this.state.pos<this.length;){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),null==e||e.push(t));break}case 47:{const t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),null==e||e.push(t));break}default:break t}break;default:if(It(r))++this.state.pos;else if(45===r&&!this.inModule&&8192&this.optionFlags){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===t||this.state.lineStart>t))break t;{const t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),null==e||e.push(t))}}else{if(60!==r||this.inModule||!(8192&this.optionFlags))break t;{const t=this.state.pos;if(33!==this.input.charCodeAt(t+1)||45!==this.input.charCodeAt(t+2)||45!==this.input.charCodeAt(t+3))break t;{const t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),null==e||e.push(t))}}}}}if((null==e?void 0:e.length)>0){const r=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(r),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(r)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(v.UnexpectedDigitAfterHash,this.state.curPosition());if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===e?v.RecordExpressionHashIncorrectStartSyntaxType:v.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else at(e)?(++this.state.pos,this.finishToken(139,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;const e=this.state.pos;for(this.state.pos+=1;!_t(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const r=this.input.slice(e+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(t){let e=42===t?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);42===t&&42===s&&(r++,s=this.input.charCodeAt(this.state.pos+2),e=57),61!==s||this.state.inType||(r++,e=37===t?33:30),this.finishOp(e,r)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(v.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(v.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==e?this.finishOp(124===t?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===t?41:42,2)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);61!==t||this.state.inType?94===t&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);e!==t?61===e?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(60===e)return 61===this.input.charCodeAt(t+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==e?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(62===e){const e=62===this.input.charCodeAt(t+2)?3:2;return 61===this.input.charCodeAt(t+e)?void this.finishOp(30,e+1):void this.finishOp(52,e)}61!==e?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===t?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(30,3):this.finishOp(40,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(v.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(v.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(at(t))return void this.readWord(t)}throw this.raise(v.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){const r=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,r)}readRegexp(){const t=this.state.startLoc,e=this.state.start+1;let r,s,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(v.UnterminatedRegExp,n(t,1));const e=this.input.charCodeAt(i);if(_t(e))throw this.raise(v.UnterminatedRegExp,n(t,1));if(r)r=!1;else{if(91===e)s=!0;else if(93===e&&s)s=!1;else if(47===e&&!s)break;r=92===e}}const a=this.input.slice(e,i);++i;let o="";const c=()=>n(t,i+2-e);for(;i<this.length;){const t=this.codePointAtPos(i),e=String.fromCharCode(t);if(ee.has(t))118===t?o.includes("u")&&this.raise(v.IncompatibleRegExpUVFlags,c()):117===t&&o.includes("v")&&this.raise(v.IncompatibleRegExpUVFlags,c()),o.includes(e)&&this.raise(v.DuplicateRegExpFlags,c());else{if(!ot(t)&&92!==t)break;this.raise(v.MalformedRegExpFlags,c())}++i,o+=e}this.state.pos=i,this.finishToken(138,{pattern:a,flags:o})}readInt(t,e,r=!1,s=!0){const{n:i,pos:n}=Zt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,r,s,this.errorHandlers_readInt,!1);return this.state.pos=n,i}readRadixNumber(t){const e=this.state.pos,r=this.state.curPosition();let s=!1;this.state.pos+=2;const i=this.readInt(t);null==i&&this.raise(v.InvalidDigit,n(r,2),{radix:t});const a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,s=!0;else if(109===a)throw this.raise(v.InvalidDecimal,r);if(at(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());if(s){const t=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,t)}else this.finishToken(135,i)}readNumber(t){const e=this.state.pos,r=this.state.curPosition();let s=!1,i=!1,a=!1,o=!1;t||null!==this.readInt(10)||this.raise(v.InvalidNumber,this.state.curPosition());const c=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(c){const t=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(v.StrictOctalLiteral,r),!this.state.strict){const e=t.indexOf("_");e>0&&this.raise(v.ZeroDigitNumericSeparator,n(r,e))}o=c&&!/[89]/.test(t)}let l=this.input.charCodeAt(this.state.pos);if(46!==l||o||(++this.state.pos,this.readInt(10),s=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||o||(l=this.input.charCodeAt(++this.state.pos),43!==l&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(v.InvalidOrMissingExponent,r),s=!0,a=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((s||c)&&this.raise(v.InvalidBigIntLiteral,r),++this.state.pos,i=!0),109===l){this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(v.InvalidDecimal,r),++this.state.pos;var u=!0}if(at(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());const h=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(136,h);if(u)return void this.finishToken(137,h);const p=o?parseInt(h,8):parseFloat(h);this.finishToken(135,p)}readCodePoint(t){const{code:e,pos:r}=Qt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=r,e}readString(t){const{str:e,pos:r,curLine:s,lineStart:i}=Kt(34===t?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=s,this.finishToken(134,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:e,firstInvalidLoc:r,pos:i,curLine:n,lineStart:a}=Kt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=n,r&&(this.state.firstInvalidTemplateEscapePos=new s(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),96===this.input.codePointAt(i)?this.finishToken(24,r?null:t+e+"`"):(this.state.pos++,this.finishToken(25,r?null:t+e+"${"))}recordStrictModeErrors(t,e){const r=e.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(t,e):this.state.strictErrors.set(r,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="";const r=this.state.pos;let s=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const t=this.codePointAtPos(this.state.pos);if(ot(t))this.state.pos+=t<=65535?1:2;else{if(92!==t)break;{this.state.containsEsc=!0,e+=this.input.slice(s,this.state.pos);const t=this.state.curPosition(),i=this.state.pos===r?at:ot;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(v.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;const n=this.readCodePoint(!0);null!==n&&(i(n)||this.raise(v.EscapedCharNotAnIdentifier,t),e+=String.fromCodePoint(n)),s=this.state.pos}}}return e+this.input.slice(s,this.state.pos)}readWord(t){const e=this.readWord1(t),r=N.get(e);void 0!==r?this.finishToken(r,J(r)):this.finishToken(132,e)}checkKeywordEscapes(){const{type:t}=this.state;K(t)&&this.state.containsEsc&&this.raise(v.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:J(t)})}raise(t,e,r={}){const i=t(e instanceof s?e:e.loc.start,r);if(!(2048&this.optionFlags))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(t,e,r={}){const i=e instanceof s?e:e.loc.start,n=i.index,a=this.state.errors;for(let e=a.length-1;e>=0;e--){const s=a[e];if(s.loc.index===n)return a[e]=t(i,r);if(s.loc.index<n)break}return this.raise(t,e,r)}updateContext(t){}unexpected(t,e){throw this.raise(v.UnexpectedToken,null!=t?t:this.state.startLoc,{expected:e?J(e):null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(v.MissingPlugin,null!=e?e:this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some((t=>this.hasPlugin(t))))throw this.raise(v.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,r,s)=>{this.raise(t,te(e,r,s))}}}class ie{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class ne{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ie)}exit(){const t=this.stack.pop(),e=this.current();for(const[r,s]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(r)||e.undefinedPrivateNames.set(r,s):this.parser.raise(v.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(t,e,r){const{privateNames:s,loneAccessors:i,undefinedPrivateNames:n}=this.current();let a=s.has(t);if(3&e){const r=a&&i.get(t);r?(a=(3&r)==(3&e)||(4&r)!=(4&e),a||i.delete(t)):a||i.set(t,e)}a&&this.parser.raise(v.PrivateNameRedeclaration,r,{identifierName:t}),s.add(t),n.delete(t)}usePrivateName(t,e){let r;for(r of this.stack)if(r.privateNames.has(t))return;r?r.undefinedPrivateNames.set(t,e):this.parser.raise(v.InvalidPrivateFieldResolution,e,{identifierName:t})}}class ae{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class oe extends ae{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){const r=e.index;this.declarationErrors.set(r,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class ce{constructor(t){this.parser=void 0,this.stack=[new ae],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const r=e.loc.start,{stack:s}=this;let i=s.length-1,n=s[i];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(t,r),n=s[--i]}this.parser.raise(t,r)}recordArrowParameterBindingError(t,e){const{stack:r}=this,s=r[r.length-1],i=e.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,i);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(t,i)}}recordAsyncArrowParametersError(t){const{stack:e}=this;let r=e.length-1,s=e[r];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(v.AwaitBindingIdentifier,t),s=e[--r]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors((([e,r])=>{this.parser.raise(e,r);let s=t.length-2,i=t[s];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r.index),i=t[--s]}))}}function le(){return new ae}class ue extends se{addExtra(t,e,r,s=!0){if(!t)return;let{extra:i}=t;null==i&&(i={},t.extra=i),s?i[e]=r:Object.defineProperty(i,e,{enumerable:s,value:r})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){const r=t+e.length;if(this.input.slice(t,r)===e){const t=this.input.charCodeAt(r);return!(ot(t)||55296==(64512&t))}return!1}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}expectContextual(t,e){if(!this.eatContextual(t)){if(null!=e)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Et(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Et(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(v.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){const r={node:null};try{const s=t(((t=null)=>{throw r.node=t,r}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,this.state.tokensLength=t.tokensLength,{node:s,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const s=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:s};if(t===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:n}=t;if(!e)return!!(r||s||n||i);null!=r&&this.raise(v.InvalidCoverInitializedName,r),null!=s&&this.raise(v.DuplicateProto,s),null!=i&&this.raise(v.UnexpectedPrivateField,i),null!=n&&this.unexpected(n)}isLiteralPropertyName(){return V(this.state.type)}isPrivateName(t){return"PrivateName"===t.type}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}isObjectProperty(t){return"ObjectProperty"===t.type}isObjectMethod(t){return"ObjectMethod"===t.type}initializeScopes(t="module"===this.options.sourceType){const e=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=t;const i=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);const a=this.prodParam;this.prodParam=new jt;const o=this.classScope;this.classScope=new ne(this);const c=this.expressionScope;return this.expressionScope=new ce(this),()=>{this.state.labels=e,this.exportedIdentifiers=r,this.inModule=s,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=c}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),32&this.optionFlags&&(t|=1),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:e}=t;null!==e&&this.expectPlugin("destructuringPrivate",e)}}class he{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class pe{constructor(t,e,r){this.type="",this.start=e,this.end=0,this.loc=new i(r),128&(null==t?void 0:t.optionFlags)&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}}const de=pe.prototype;de.__clone=function(){const t=new pe(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,s=e.length;r<s;r++){const s=e[r];"leadingComments"!==s&&"trailingComments"!==s&&"innerComments"!==s&&(t[s]=this[s])}return t};class fe extends ue{startNode(){const t=this.state.startLoc;return new pe(this,t.index,t)}startNodeAt(t){return new pe(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,r){return t.type=e,t.end=r.index,t.loc.end=r,128&this.optionFlags&&(t.range[1]=r.index),4096&this.optionFlags&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,128&this.optionFlags&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,128&this.optionFlags&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}castNodeTo(t,e){return t.type=e,t}cloneIdentifier(t){const{type:e,start:r,end:s,loc:i,range:n,name:a}=t,o=Object.create(de);return o.type=e,o.start=r,o.end=s,o.loc=i,o.range=n,o.name=a,t.extra&&(o.extra=t.extra),o}cloneStringLiteral(t){const{type:e,start:r,end:s,loc:i,range:n,extra:a}=t,o=Object.create(de);return o.type=e,o.start=r,o.end=s,o.loc=i,o.range=n,o.extra=a,o.value=t.value,o}}const me=t=>"ParenthesizedExpression"===t.type?me(t.expression):t;class ye extends fe{toAssignable(t,e=!1){var r,s;let i;switch(("ParenthesizedExpression"===t.type||null!=(r=t.extra)&&r.parenthesized)&&(i=me(t),e?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(v.InvalidParenthesizedAssignment,t):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(v.InvalidParenthesizedAssignment,t):this.raise(v.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let r=0,s=t.properties.length,i=s-1;r<s;r++){var n;const s=t.properties[r],a=r===i;this.toAssignableObjectExpressionProp(s,a,e),a&&"RestElement"===s.type&&null!=(n=t.extra)&&n.trailingCommaLoc&&this.raise(v.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:s}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,e);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,null==(s=t.extra)?void 0:s.trailingCommaLoc,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(v.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(i,e)}}toAssignableObjectExpressionProp(t,e,r){if("ObjectMethod"===t.type)this.raise("get"===t.kind||"set"===t.kind?v.PatternHasAccessor:v.PatternHasMethod,t.key);else if("SpreadElement"===t.type){this.castNodeTo(t,"RestElement");const s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,r),e||this.raise(v.RestTrailingComma,t)}else this.toAssignable(t,r)}toAssignableList(t,e,r){const s=t.length-1;for(let i=0;i<=s;i++){const n=t[i];n&&(this.toAssignableListItem(t,i,r),"RestElement"===n.type&&(i<s?this.raise(v.RestTrailingComma,n):e&&this.raise(v.RestTrailingComma,e)))}}toAssignableListItem(t,e,r){const s=t[e];if("SpreadElement"===s.type){this.castNodeTo(s,"RestElement");const t=s.argument;this.checkToRestConversion(t,!0),this.toAssignable(t,r)}else this.toAssignable(s,r)}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const e=t.properties.length-1;return t.properties.every(((t,r)=>"ObjectMethod"!==t.type&&(r===e||"SpreadElement"!==t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>null===t||this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(const e of t)"ArrayExpression"===(null==e?void 0:e.type)&&this.toReferencedListDeep(e.elements)}parseSpread(t){const e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,r){const s=1&r,i=[];let n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),s&&this.match(12))i.push(null);else{if(this.eat(t))break;if(this.match(21)){let s=this.parseRestBinding();if((this.hasPlugin("flow")||2&r)&&(s=this.parseFunctionParamType(s)),i.push(s),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{const t=[];if(2&r)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(v.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());i.push(this.parseBindingElement(r,t))}}return i}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:e}=this.state;if(21===t)return this.parseBindingRestProperty(this.startNode());const r=this.startNode();return 139===t?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,e,!1,!1,!0,!1)}parseBindingElement(t,e){const r=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&t)&&this.parseFunctionParamType(r),e.length&&(r.decorators=e,this.resetStartLocationFromNode(r,e[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(t){return t}parseMaybeDefault(t,e){if(null!=t||(t=this.state.startLoc),e=null!=e?e:this.parseBindingAtom(),!this.eat(29))return e;const r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,r){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return"OptionalMemberExpression"===t.type}checkLVal(t,e,r=64,s=!1,i=!1,n=!1){var a;const o=t.type;if(this.isObjectMethod(t))return;const c=this.isOptionalMemberExpression(t);if(c||"MemberExpression"===o)return c&&(this.expectPlugin("optionalChainingAssign",t.loc.start),"AssignmentExpression"!==e.type&&this.raise(v.InvalidLhsOptionalChaining,t,{ancestor:e})),void(64!==r&&this.raise(v.InvalidPropertyBindingPattern,t));if("Identifier"===o){this.checkIdentifier(t,r,i);const{name:e}=t;return void(s&&(s.has(e)?this.raise(v.ParamDupe,t):s.add(e)))}const l=this.isValidLVal(o,!(n||null!=(a=t.extra)&&a.parenthesized)&&"AssignmentExpression"===e.type,r);if(!0===l)return;if(!1===l){const s=64===r?v.InvalidLhs:v.InvalidLhsBinding;return void this.raise(s,t,{ancestor:e})}let u,h;"string"==typeof l?(u=l,h="ParenthesizedExpression"===o):[u,h]=l;const p="ArrayPattern"===o||"ObjectPattern"===o?{type:o}:e,d=t[u];if(Array.isArray(d))for(const t of d)t&&this.checkLVal(t,p,r,s,i,h);else d&&this.checkLVal(d,p,r,s,i,h)}checkIdentifier(t,e,r=!1){this.state.strict&&(r?ft(t.name,this.inModule):dt(t.name))&&(64===e?this.raise(v.StrictEvalArguments,t,{referenceName:t.name}):this.raise(v.StrictEvalArgumentsBinding,t,{bindingName:t.name})),8192&e&&"let"===t.name&&this.raise(v.LetInLexicalBinding,t),64&e||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(v.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===t?v.RestTrailingComma:v.ElementAfterRest,this.state.startLoc),!0)}}function ge(t){if(!t)throw new Error("Assert fail")}const ve=g`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function xe(t){return"private"===t||"public"===t||"protected"===t}function be(t){return"in"===t||"out"===t}function we(t){if("MemberExpression"!==t.type)return!1;const{computed:e,property:r}=t;return(!e||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Se(t.object)}function Pe(t,e){var r;const{type:s}=t;if(null!=(r=t.extra)&&r.parenthesized)return!1;if(e){if("Literal"===s){const{value:e}=t;if("string"==typeof e||"boolean"==typeof e)return!0}}else if("StringLiteral"===s||"BooleanLiteral"===s)return!0;return!(!Te(t,e)&&!function(t,e){if("UnaryExpression"===t.type){const{operator:r,argument:s}=t;if("-"===r&&Te(s,e))return!0}return!1}(t,e))||"TemplateLiteral"===s&&0===t.expressions.length||!!we(t)}function Te(t,e){return e?"Literal"===t.type&&("number"==typeof t.value||"bigint"in t):"NumericLiteral"===t.type||"BigIntLiteral"===t.type}function Se(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&Se(t.object)}const Ae=g`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),ke=["minimal","fsharp","hack","smart"],_e=["^^","@@","^","%","#"],Ee={estree:t=>class extends t{parse(){const t=w(super.parse());return 256&this.optionFlags&&(t.tokens=t.tokens.map(w)),t}parseRegExpLiteral({pattern:t,flags:e}){let r=null;try{r=new RegExp(t,e)}catch(t){}const s=this.estreeParseLiteral(r);return s.regex={pattern:t,flags:e},s}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch(t){e=null}const r=this.estreeParseLiteral(e);return r.bigint=String(r.value||t),r}parseDecimalLiteral(t){const e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,e){const r=this.startNodeAtNode(t);return r.expression=t,this.finishNodeAt(r,"ChainExpression",e)}directiveToStmt(t){const e=t.value;delete t.value,this.castNodeTo(e,"Literal"),e.raw=e.extra.raw,e.value=e.extra.expressionValue;const r=this.castNodeTo(t,"ExpressionStatement");return r.expression=e,r.directive=e.extra.rawValue,delete e.extra,r}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){const{start:e,end:r,loc:s,range:i,raw:n,value:a}=t,o=Object.create(t.constructor.prototype);return o.type="Literal",o.start=e,o.end=r,o.loc=s,o.range=i,o.raw=n,o.value=a,o}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null!=(e=t.expression.extra)&&e.parenthesized)}parseBlockBody(t,e,r,s,i){super.parseBlockBody(t,e,r,s,i);const n=t.directives.map((t=>this.directiveToStmt(t)));t.body=n.concat(t.body),delete t.directives}parsePrivateName(){const t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){const e=super.getPrivateNameSV(t);return delete t.id,t.name=e,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,e){const r=super.parseLiteral(t,e);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(t,e,r=!1){super.parseFunctionBody(t,e,r),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,r,s,i,n,a=!1){let o=this.startNode();o.kind=t.kind,o=super.parseMethod(o,e,r,s,i,n,a),delete o.kind;const{typeParameters:c}=t;c&&(delete t.typeParameters,o.typeParameters=c,this.resetStartLocationFromNode(o,c));const l=this.castNodeTo(o,"FunctionExpression");return t.value=l,"ClassPrivateMethod"===n&&(t.computed=!1),"ObjectMethod"===n?("method"===t.kind&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return"Literal"===t.type?"constructor"===t.value:super.nameIsConstructor(t)}parseClassProperty(...t){const e=super.parseClassProperty(...t);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(e,"PropertyDefinition"),e):e}parseClassPrivateProperty(...t){const e=super.parseClassPrivateProperty(...t);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(e,"PropertyDefinition"),e.computed=!1,e):e}parseClassAccessorProperty(t){const e=super.parseClassAccessorProperty(t);return this.getPluginOption("estree","classFeatures")?(e.abstract&&this.hasPlugin("typescript")?(delete e.abstract,this.castNodeTo(e,"TSAbstractAccessorProperty")):this.castNodeTo(e,"AccessorProperty"),e):e}parseObjectProperty(t,e,r,s){const i=super.parseObjectProperty(t,e,r,s);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,e,r){return"Property"===t?"value":super.isValidLVal(t,e,r)}isAssignable(t,e){return null!=t&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t,e=!1){if(null!=t&&this.isObjectProperty(t)){const{key:r,value:s}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,e)}else super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,e,r){"Property"!==t.type||"get"!==t.kind&&"set"!==t.kind?"Property"===t.type&&t.method?this.raise(v.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,e,r):this.raise(v.PatternHasAccessor,t.key)}finishCallExpression(t,e){const r=super.finishCallExpression(t,e);var s,i;return"Import"===r.callee.type?(this.castNodeTo(r,"ImportExpression"),r.source=r.arguments[0],r.options=null!=(s=r.arguments[1])?s:null,r.attributes=null!=(i=r.arguments[1])?i:null,delete r.arguments,delete r.callee):"OptionalCallExpression"===r.type?this.castNodeTo(r,"CallExpression"):r.optional=!1,r}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t,e){const r=this.state.lastTokStartLoc,s=super.parseExport(t,e);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":1===s.specifiers.length&&"ExportNamespaceSpecifier"===s.specifiers[0].type&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:t}=s;"ClassDeclaration"===(null==t?void 0:t.type)&&(null==(i=t.decorators)?void 0:i.length)>0&&t.start===s.start&&this.resetStartLocation(s,r)}}return s}stopParseSubscript(t,e){const r=super.stopParseSubscript(t,e);return e.optionalChainMember?this.estreeParseChainExpression(r,t.loc.end):r}parseMember(t,e,r,s,i){const n=super.parseMember(t,e,r,s,i);return"OptionalMemberExpression"===n.type?this.castNodeTo(n,"MemberExpression"):n.optional=!1,n}isOptionalMemberExpression(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return"ChainExpression"===t.type&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return"Property"===t.type&&"init"===t.kind&&!t.method}isObjectMethod(t){return"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}castNodeTo(t,e){const r=super.castNodeTo(t,e);return this.fillOptionalPropertiesForTSESLint(r),r}cloneIdentifier(t){const e=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(e),e}cloneStringLiteral(t){return"Literal"===t.type?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,e,r){return w(super.finishNodeAt(t,e,r))}finishNode(t,e){const r=super.finishNode(t,e);return this.fillOptionalPropertiesForTSESLint(r),r}resetStartLocation(t,e){super.resetStartLocation(t,e),w(t)}resetEndLocation(t,e=this.state.lastTokEndLoc){super.resetEndLocation(t,e),w(t)}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Mt.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(r)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(142,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:_t(r)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){const e=this.input.charCodeAt(this.state.pos);let r;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=t?"\n":"\r\n"):r=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(t){let e="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v.UnterminatedString,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);if(s===t)break;38===s?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos):_t(s)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}e+=this.input.slice(r,this.state.pos++),this.finishToken(134,e)}jsxReadEntity(){const t=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);const e=this.readInt(t,void 0,!1,"bail");if(null!==e&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(e)}else{let e=0,r=!1;for(;e++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const e=this.input.slice(t,this.state.pos),r=At[e];if(++this.state.pos,r)return r}}return this.state.pos=t,"&"}jsxReadWord(){let t;const e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(ot(t)||45===t);this.finishToken(141,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){const t=this.startNode();return this.match(141)?t.name=this.state.value:K(this.state.type)?t.name=J(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){const t=this.state.startLoc,e=this.jsxParseIdentifier();if(!this.eat(14))return e;const r=this.startNodeAt(t);return r.namespace=e,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const t=this.state.startLoc;let e=this.jsxParseNamespacedName();if("JSXNamespacedName"===e.type)return e;for(;this.eat(16);){const r=this.startNodeAt(t);r.object=e,r.property=this.jsxParseIdentifier(),e=this.finishNode(r,"JSXMemberExpression")}return e}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(T.brace),this.next(),t=this.jsxParseExpressionContainer(t,T.j_oTag),"JSXEmptyExpression"===t.expression.type&&this.raise(Mt.AttributeIsEmpty,t),t;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Mt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(T.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,e){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{const e=this.parseExpression();t.expression=e}return this.setContext(e),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){const t=this.startNode();return this.match(5)?(this.setContext(T.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(T.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){const e=this.startNodeAt(t);return this.eat(144)?this.finishNode(e,"JSXOpeningFragment"):(e.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(e))}jsxParseOpeningElementAfterName(t){const e=[];for(;!this.match(56)&&!this.match(144);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(56),this.expect(144),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){const e=this.startNodeAt(t);return this.eat(144)?this.finishNode(e,"JSXClosingFragment"):(e.name=this.jsxParseElementName(),this.expect(144),this.finishNode(e,"JSXClosingElement"))}jsxParseElementAt(t){const e=this.startNodeAt(t),r=[],s=this.jsxParseOpeningElementAt(t);let i=null;if(!s.selfClosing){t:for(;;)switch(this.state.type){case 143:if(t=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(t);break t}r.push(this.jsxParseElementAt(t));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const t=this.startNode();this.setContext(T.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(t)):r.push(this.jsxParseExpressionContainer(t,T.j_expr));break}default:this.unexpected()}Lt(s)&&!Lt(i)&&null!==i?this.raise(Mt.MissingClosingTagFragment,i):!Lt(s)&&Lt(i)?this.raise(Mt.MissingClosingTagElement,i,{openingTagName:Ot(s.name)}):Lt(s)||Lt(i)||Ot(i.name)!==Ot(s.name)&&this.raise(Mt.MissingClosingTagElement,i,{openingTagName:Ot(s.name)})}if(Lt(s)?(e.openingFragment=s,e.closingFragment=i):(e.openingElement=s,e.closingElement=i),e.children=r,this.match(47))throw this.raise(Mt.UnwrappedAdjacentJSXElements,this.state.startLoc);return Lt(s)?this.finishNode(e,"JSXFragment"):this.finishNode(e,"JSXElement")}jsxParseElement(){const t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){const{context:e}=this.state;e[e.length-1]=t}parseExprAtom(t){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){const e=this.curContext();if(e!==T.j_expr){if(e===T.j_oTag||e===T.j_cTag){if(at(t))return void this.jsxReadWord();if(62===t)return++this.state.pos,void this.finishToken(144);if((34===t||39===t)&&e===T.j_oTag)return void this.jsxReadString(t)}if(60===t&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(t)}else this.jsxReadToken()}updateContext(t){const{context:e,type:r}=this.state;if(56===r&&143===t)e.splice(-2,2,T.j_cTag),this.state.canStartJSXElement=!1;else if(143===r)e.push(T.j_oTag);else if(144===r){const r=e[e.length-1];r===T.j_oTag&&56===t||r===T.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===T.j_expr):(this.setContext(T.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=j[r]}},flow:t=>class extends t{constructor(...t){super(...t),this.flowPragma=void 0}getScopeHandler(){return xt}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(t,e){134!==t&&13!==t&&28!==t&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){const e=St.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else{if("noflow"!==e[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(t)}flowParseTypeInitialiser(t){const e=this.state.inType;this.state.inType=!0,this.expect(t||14);const r=this.flowParseType();return this.state.inType=e,r}flowParsePredicate(){const t=this.startNode(),e=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>e.index+1&&this.raise(wt.UnexpectedSpaceBetweenModuloChecks,e),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(14);let e=null,r=null;return this.match(54)?(this.state.inType=t,r=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(54)&&(r=this.flowParsePredicate())),[e,r]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),r=this.startNode(),s=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){return this.match(80)?this.flowParseDeclareClass(t):this.match(68)?this.flowParseDeclareFunction(t):this.match(74)?this.flowParseDeclareVariable(t):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(t):(e&&this.raise(wt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t)):this.isContextual(130)?this.flowParseDeclareTypeAlias(t):this.isContextual(131)?this.flowParseDeclareOpaqueType(t):this.isContextual(129)?this.flowParseDeclareInterface(t):this.match(82)?this.flowParseDeclareExportDeclaration(t,e):void this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),r=e.body=[];for(this.expect(5);!this.match(8);){let t=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(wt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(t)):(this.expectContextual(125,wt.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),r.push(t)}this.scope.exit(),this.expect(8),this.finishNode(e,"BlockStatement");let s=null,i=!1;return r.forEach((t=>{!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(i&&this.raise(wt.DuplicateDeclareModuleExports,t),"ES"===s&&this.raise(wt.AmbiguousDeclareModuleKind,t),s="CommonJS",i=!0):("CommonJS"===s&&this.raise(wt.AmbiguousDeclareModuleKind,t),s="ES")})),t.kind=s||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!e){const t=this.state.value;throw this.raise(wt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:t,suggestion:Tt[t]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?"ExportNamedDeclaration"===(t=this.parseExport(t,null)).type?(t.default=!1,delete t.exportKind,this.castNodeTo(t,"DeclareExportDeclaration")):this.castNodeTo(t,"DeclareExportAllDeclaration"):void this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();const e=this.flowParseTypeAlias(t);return this.castNodeTo(e,"DeclareTypeAlias"),e}flowParseDeclareOpaqueType(t){this.next();const e=this.flowParseOpaqueType(t,!0);return this.castNodeTo(e,"DeclareOpaqueType"),e}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,e){if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(12));if(e){if(t.implements=[],t.mixins=[],this.eatContextual(117))do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){const t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(wt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,e,r){bt.has(t)&&this.raise(r?wt.AssignReservedType:wt.UnexpectedReservedType,e,{reservedType:t})}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.startLoc,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){const e=this.state.startLoc,r=this.startNode(),s=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=s,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):t&&this.raise(wt.MissingTypeParamDefault,e),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let r=!1;do{const t=this.flowParseTypeParameter(r);e.params.push(t),t.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()===T.brace)return t();{const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const t=this.startNode(),e=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext((()=>{this.expect(47);const e=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=e})),this.state.inType=e,this.state.inType||this.curContext()!==T.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return;const t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){const t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,r){return t.static=e,14===this.lookahead().type?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=r,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const r=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(r),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:r,allowProto:s,allowInexact:i}){const n=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let l=!1;for(e&&this.match(6)?(this.expect(6),o=9,c=!0):(this.expect(5),o=8,c=!1),a.exact=c;!this.match(o);){let e=!1,n=null,o=null;const u=this.startNode();if(s&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),n=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const h=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(h&&this.unexpected(h.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,e))):a.indexers.push(this.flowParseObjectTypeIndexer(u,e,h));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),h&&this.unexpected(h.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(u,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&V(this.lookahead().type)&&(t=this.state.value,this.next());const s=this.flowParseObjectTypeProperty(u,e,n,h,t,r,null!=i?i:!c);null===s?(l=!0,o=this.state.lastTokStartLoc):a.properties.push(s)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(wt.UnexpectedExplicitInexactInObject,o)}this.expect(o),r&&(a.inexact=l);const u=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=n,u}flowParseObjectTypeProperty(t,e,r,s,i,n,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(n?a||this.raise(wt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(wt.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(wt.InexactVariance,s),null):(n||this.raise(wt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),s&&this.raise(wt.SpreadVariance,s),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=r,t.kind=i;let a=!1;return this.match(47)||this.match(10)?(t.method=!0,null!=r&&this.unexpected(r),s&&this.unexpected(s.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(t),!n&&"constructor"===t.key.name&&t.value.this&&this.raise(wt.ThisParamBannedInConstructor,t.value.this)):("init"!==i&&this.unexpected(),t.method=!1,this.eat(17)&&(a=!0),t.value=this.flowParseTypeInitialiser(),t.variance=s),t.optional=a,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,r=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise("get"===t.kind?wt.GetterMayNotHaveThisParam:wt.SetterMayNotHaveThisParam,t.value.this),r!==e&&this.raise("get"===t.kind?v.BadGetterArity:v.BadSetterArity,t),"set"===t.kind&&t.value.rest&&this.raise(v.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e){null!=t||(t=this.state.startLoc);let r=e||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const e=this.startNodeAt(t);e.qualification=r,e.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(e,"QualifiedTypeIdentifier")}return r}flowParseGenericType(t,e){const r=this.startNodeAt(t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(t,e),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let e=null,r=!1,s=null;const i=this.startNode(),n=this.lookahead(),a=78===this.state.type;return 14===n.type||17===n.type?(a&&!t&&this.raise(wt.ThisParamMustBeFirst,i),e=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(wt.ThisParamMayNotBeOptional,i)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),i.name=e,i.optional=r,i.typeAnnotation=s,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){const e=this.startNodeAt(t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let e=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e=this.flowParseFunctionTypeParam(!1)),{params:t,rest:e,_this:r}}flowIdentToTypeAnnotation(t,e,r){switch(r.name){case"any":return this.finishNode(e,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(e,"BooleanTypeAnnotation");case"mixed":return this.finishNode(e,"MixedTypeAnnotation");case"empty":return this.finishNode(e,"EmptyTypeAnnotation");case"number":return this.finishNode(e,"NumberTypeAnnotation");case"string":return this.finishNode(e,"StringTypeAnnotation");case"symbol":return this.finishNode(e,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(t,r)}}flowParsePrimaryType(){const t=this.state.startLoc,e=this.startNode();let r,s,i=!1;const n=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=n,s;case 47:{const t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{const t=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(W(this.state.type)||this.match(78)){const t=this.lookahead().type;i=17!==t&&14!==t}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=n,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),s;this.eat(12)}return r=s?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return e.value=this.match(85),this.next(),this.finishNode(e,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",e);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",e);throw this.raise(wt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(e,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(e,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(e,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(e,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(K(this.state.type)){const t=J(this.state.type);return this.next(),super.createIdentifier(e,t)}if(W(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,e,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const t=this.state.startLoc;let e=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const s=this.startNodeAt(t),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(s.elementType=e,this.next(),e=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=e,s.indexType=this.flowParseType(),this.expect(3),r?(s.optional=i,e=this.finishNode(s,"OptionalIndexedAccessType")):e=this.finishNode(s,"IndexedAccessType"))}return e}flowParsePrefixType(){const t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const e=this.startNodeAt(t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.this=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){const t=this.startNode();this.eat(45);const e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){const t=this.startNode();this.eat(43);const e=this.flowParseIntersectionType();for(t.types=[e];this.eat(43);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){const t=this.state.inType;this.state.inType=!0;const e=this.flowParseUnionType();return this.state.inType=t,e}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const t=this.state.startLoc,e=this.parseIdentifier();return this.flowParseGenericType(t,e)}return this.flowParseType()}flowParseTypeAnnotation(){const t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){const e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,e,r=!1){e?this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,r))):super.parseFunctionBody(t,!1,r)}parseFunctionBodyAndFinish(t,e,r=!1){if(this.match(14)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,e,r)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){if(z(this.lookahead().type)){const t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}const e=super.parseStatementLike(t);return void 0!==this.flowPragma||this.isValidDirective(e)||(this.flowPragma=null),e}parseExpressionStatement(t,e,r){if("Identifier"===e.type)if("declare"===e.name){if(this.match(80)||W(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(W(this.state.type)){if("interface"===e.name)return this.flowParseInterface(t);if("type"===e.name)return this.flowParseTypeAlias(t);if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}return super.parseExpressionStatement(t,e,r)}shouldParseExportDeclaration(){const{type:t}=this.state;return 126===t||$(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:t}=this.state;return 126===t||$(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){const e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(r),t}this.expect(17);const s=this.state.clone(),i=this.state.noArrowAt,n=this.startNodeAt(e);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(a);if(o||l.length>0){const t=[...i];if(l.length>0){this.state=s,this.state.noArrowAt=t;for(let e=0;e<l.length;e++)t.push(l[e].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(a)}o&&c.length>1&&this.raise(wt.AmbiguousConditionalArrow,s.startLoc),o&&1===c.length&&(this.state=s,t.push(c[0].start),this.state.noArrowAt=t,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),n.test=t,n.consequent=a,n.alternate=this.forwardNoArrowParamsConversionAt(n,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(n,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const t=this.parseMaybeAssignAllowIn(),e=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const r=[t],s=[];for(;0!==r.length;){const t=r.pop();"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):s.push(t),r.push(t.body)):"ConditionalExpression"===t.type&&(r.push(t.consequent),r.push(t.alternate))}return e?(s.forEach((t=>this.finishArrowValidation(t))),[s,[]]):function(t,e){const r=[],s=[];for(let i=0;i<t.length;i++)(e(t[i])?r:s).push(t[i]);return[r,s]}(s,(t=>t.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=e(),this.state.noArrowParamsConversionAt.pop()):r=e(),r}parseParenItem(t,e){const r=super.parseParenItem(t,e);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){const t=this.startNodeAt(e);return t.expression=r,t.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t,"TypeCastExpression")}return r}assertModuleNodeAllowed(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";const e=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual(131)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual(129)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseInterface(e)}if(this.isContextual(126)){t.exportKind="value";const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDeclaration(t)}eatExportStar(t){return!!super.eatExportStar(t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const{startLoc:e}=this.state,r=super.maybeParseExportNamespaceSpecifier(t);return r&&"type"===t.exportKind&&this.unexpected(e),r}parseClassId(t,e,r){super.parseClassId(t,e,r),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,r){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,r),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type&&"PropertyDefinition"!==e.type?this.raise(wt.DeclareClassElement,s):e.value&&this.raise(wt.DeclareClassFieldInitializer,e.value))}isIterator(t){return"iterator"===t||"asyncIterator"===t}readIterator(){const t=super.readWord1(),e="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(v.InvalidIdentifier,this.state.curPosition(),{identifierName:e}),this.finishToken(132,e)}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);123===t&&124===e?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===e?this.finishOp(18,2):this.finishOp(17,1):function(t,e,r){return 64===t&&64===e&&at(r)}(t,e,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t):this.finishOp(62===t?48:47,1)}isAssignable(t,e){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,e):super.isAssignable(t,e)}toAssignable(t,e=!1){e||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,e)}toAssignableList(t,e,r){for(let e=0;e<t.length;e++){const r=t[e];"TypeCastExpression"===(null==r?void 0:r.type)&&(t[e]=this.typeCastToParameter(r))}super.toAssignableList(t,e,r)}toReferencedList(t,e){for(let s=0;s<t.length;s++){var r;const i=t[s];!i||"TypeCastExpression"!==i.type||null!=(r=i.extra)&&r.parenthesized||!(t.length>1)&&e||this.raise(wt.TypeCastInPattern,i.typeAnnotation)}return t}parseArrayLike(t,e,r,s){const i=super.parseArrayLike(t,e,r,s);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(t,e,r){return"TypeCastExpression"===t||super.isValidLVal(t,e,r)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,r,s,i,n){if(e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,r,s,i,n),e.params&&i){const t=e.params;t.length>0&&this.isThisParam(t[0])&&this.raise(wt.ThisParamBannedInConstructor,e)}else if("MethodDefinition"===e.type&&i&&e.value.params){const t=e.value.params;t.length>0&&this.isThisParam(t[0])&&this.raise(wt.ThisParamBannedInConstructor,e)}}pushClassPrivateMethod(t,e,r,s){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,r,s)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const e=t.implements=[];do{const t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);const e=this.getObjectOrClassMethodParams(t);if(e.length>0){const r=e[0];this.isThisParam(r)&&"get"===t.kind?this.raise(wt.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(wt.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,e,r,s,i,n,a){let o;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!n&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(t,e,r,s,i,n,a);return o&&((c.value||c).typeParameters=o),c}parseFunctionParamType(t){return this.eat(17)&&("Identifier"!==t.type&&this.raise(wt.PatternIsOptional,t),this.isThisParam(t)&&this.raise(wt.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(wt.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(wt.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,e){const r=super.parseMaybeDefault(t,e);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(wt.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(wt.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,e,r){e.local=Pt(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;const e=this.lookaheadCharCode();return 123===e||42===e}return!t&&this.isContextual(87)}applyImportPhase(t,e,r,s){if(super.applyImportPhase(t,e,r,s),e){if(!r&&this.match(65))return;t.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),t.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(t,e,r,s,i){const n=t.imported;let a=null;"Identifier"===n.type&&("type"===n.name?a="type":"typeof"===n.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===a||z(this.state.type)?(t.imported=n,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=a,t.local=this.cloneIdentifier(e))}else{if(null!==a&&z(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=a;else{if(e)throw this.raise(v.ImportBindingIsString,t,{importName:n.value});t.imported=n,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(o=!0,t.local=this.cloneIdentifier(t.imported))}const c=Pt(t);return r&&c&&this.raise(wt.ImportTypeShorthandOnlyInPureImport,t),(r||c)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),!o||r||c||this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,e){const r=t.kind;"get"!==r&&"set"!==r&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(14)){const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e){var r;let s,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),s=this.tryParse((()=>super.parseMaybeAssign(t,e)),i),!s.error)return s.node;const{context:r}=this.state,n=r[r.length-1];n!==T.j_oTag&&n!==T.j_expr||r.pop()}if(null!=(r=s)&&r.error||this.match(47)){var n,a;let r;i=i||this.state.clone();const o=this.tryParse((s=>{var i;r=this.flowParseTypeParameterDeclaration();const n=this.forwardNoArrowParamsConversionAt(r,(()=>{const s=super.parseMaybeAssign(t,e);return this.resetStartLocationFromNode(s,r),s}));null!=(i=n.extra)&&i.parenthesized&&s();const a=this.maybeUnwrapTypeCastExpression(n);return"ArrowFunctionExpression"!==a.type&&s(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),n}),i);let c=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(wt.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),o.node;c=o.node}if(null!=(n=s)&&n.node)return this.state=s.failState,s.node;if(c)return this.state=o.failState,c;if(null!=(a=s)&&a.thrown)throw s.error;if(o.thrown)throw o.error;throw this.raise(wt.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,e){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,r,s=!0){if(!r||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))){for(let e=0;e<t.params.length;e++)this.isThisParam(t.params[e])&&e>0&&this.raise(wt.ThisParamMustBeFirst,t.params[e]);super.checkParams(t,e,r,s)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,e,r){if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(e.index)){this.next();const r=this.startNodeAt(e);r.callee=t,r.arguments=super.parseCallExpressionArguments(11),t=this.finishNode(r,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){const s=this.state.clone(),i=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e)||t()),s);if(!i.error&&!i.aborted)return i.node;const n=this.tryParse((()=>super.parseSubscripts(t,e,r)),s);if(n.node&&!n.error)return n.node;if(i.node)return this.state=i.failState,i.node;if(n.node)return this.state=n.failState,n.node;throw i.error||n.error}return super.parseSubscripts(t,e,r)}parseSubscript(t,e,r,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,r)return s.stop=!0,t;this.next();const i=this.startNodeAt(e);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const r=this.startNodeAt(e);r.callee=t;const i=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11),s.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,s.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(t,e,r,s)}parseNewCallee(t){super.parseNewCallee(t);let e=null;this.shouldParseTypes()&&this.match(47)&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e}parseAsyncArrowWithTypeParameters(t){const e=this.startNodeAt(t);if(this.parseFunctionParams(e,!1),this.parseArrow(e))return super.parseArrowExpression(e,void 0,!0)}readToken_mult_modulo(t){const e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(t)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);124!==t||125!==e?super.readToken_pipe_amp(t):this.finishOp(9,2)}parseTopLevel(t,e){const r=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(wt.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(wt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:t}=this.state;let e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;const r=this.input.charCodeAt(e+t),s=this.input.charCodeAt(e+t+1);return 58===r&&58===s?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===r&&58!==s&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(v.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:r}){this.raise(wt.EnumBooleanMemberNotInitialized,t,{memberName:r,enumName:e})}flowEnumErrorInvalidMemberInitializer(t,e){return this.raise(e.explicitType?"symbol"===e.explicitType?wt.EnumInvalidMemberInitializerSymbolType:wt.EnumInvalidMemberInitializerPrimaryType:wt.EnumInvalidMemberInitializerUnknownType,t,e)}flowEnumErrorNumberMemberNotInitialized(t,e){this.raise(wt.EnumNumberMemberNotInitialized,t,e)}flowEnumErrorStringMemberInconsistentlyInitialized(t,e){this.raise(wt.EnumStringMemberInconsistentlyInitialized,t,e)}flowEnumMemberInit(){const t=this.state.startLoc,e=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const r=this.parseNumericLiteral(this.state.value);return e()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}case 134:{const r=this.parseStringLiteral(this.state.value);return e()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}case 85:case 86:{const r=this.parseBooleanLiteral(this.match(85));return e()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){const t=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t}}}flowEnumCheckExplicitTypeMismatch(t,e,r){const{explicitType:s}=e;null!==s&&s!==r&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){const r=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const n=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),c=a.name;if(""===c)continue;/^[a-z]/.test(c)&&this.raise(wt.EnumInvalidMemberName,a,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:t}),r.has(c)&&this.raise(wt.EnumDuplicateMemberName,a,{memberName:c,enumName:t}),r.add(c);const l={enumName:t,explicitType:e,memberName:c};switch(n.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"boolean"),n.init=o.value,s.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"number"),n.init=o.value,s.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"string"),n.init=o.value,s.stringMembers.push(this.finishNode(n,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,l);case"none":switch(e){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,l);break;default:s.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(t,e,{enumName:r}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!W(this.state.type))throw this.raise(wt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:e}=this.state;return this.next(),"boolean"!==e&&"number"!==e&&"string"!==e&&"symbol"!==e&&this.raise(wt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:e}),e}flowEnumBody(t,e){const r=e.name,s=e.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:n,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:i});switch(t.hasUnknownMembers=a,i){case"boolean":return t.explicitType=!0,t.members=n.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=n.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=n.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{const e=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const i=n.booleanMembers.length,a=n.numberMembers.length,o=n.stringMembers.length,c=n.defaultedMembers.length;if(i||a||o||c){if(i||a){if(!a&&!o&&i>=c){for(const t of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(t.loc.start,{enumName:r,memberName:t.id.name});return t.members=n.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}if(!i&&!o&&a>=c){for(const t of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(t.loc.start,{enumName:r,memberName:t.id.name});return t.members=n.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}return this.raise(wt.EnumInconsistentMemberValues,s,{enumName:r}),e()}return t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody")}return e()}}}flowParseEnumDeclaration(t){const e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),e),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){const t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){const e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}reScan_lt_gt(){const{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{constructor(...t){super(...t),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ve.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ve.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ve.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ft}tsIsIdentifier(){return W(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,e,r){if(!W(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const s=this.state.value;if(t.includes(s)){if(r&&this.match(106))return;if(e&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:e,stopOnStartOfClassStaticBlock:r,errorTemplate:s=ve.InvalidModifierOnTypeMember},i){const n=(t,e,r,s)=>{e===r&&i[s]&&this.raise(ve.InvalidModifiersOrder,t,{orderedModifiers:[r,s]})},a=(t,e,r,s)=>{(i[r]&&e===s||i[s]&&e===r)&&this.raise(ve.IncompatibleModifiers,t,{modifiers:[r,s]})};for(;;){const{startLoc:o}=this.state,c=this.tsParseModifier(t.concat(null!=e?e:[]),r,i.static);if(!c)break;xe(c)?i.accessibility?this.raise(ve.DuplicateAccessibilityModifier,o,{modifier:c}):(n(o,c,c,"override"),n(o,c,c,"static"),n(o,c,c,"readonly"),i.accessibility=c):be(c)?(i[c]&&this.raise(ve.DuplicateModifier,o,{modifier:c}),i[c]=!0,n(o,c,"in","out")):(hasOwnProperty.call(i,c)?this.raise(ve.DuplicateModifier,o,{modifier:c}):(n(o,c,"static","readonly"),n(o,c,"static","override"),n(o,c,"override","readonly"),n(o,c,"abstract","override"),a(o,c,"declare","override"),a(o,c,"static","abstract")),i[c]=!0),null!=e&&e.includes(c)&&this.raise(s,o,{modifier:c})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,e){const r=[];for(;!this.tsIsListTerminator(t);)r.push(e());return r}tsParseDelimitedList(t,e,r){return function(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}(this.tsParseDelimitedListWorker(t,e,!0,r))}tsParseDelimitedListWorker(t,e,r,s){const i=[];let n=-1;for(;!this.tsIsListTerminator(t);){n=-1;const s=e();if(null==s)return;if(i.push(s),!this.eat(12)){if(this.tsIsListTerminator(t))break;return void(r&&this.expect(12))}n=this.state.lastTokStartLoc.index}return s&&(s.value=n),i}tsParseBracketedList(t,e,r,s,i){s||(r?this.expect(0):this.expect(47));const n=this.tsParseDelimitedList(t,e,i);return r?this.expect(3):this.expect(48),n}tsParseImportType(){const t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.parseStringLiteral(this.state.value):(this.raise(ve.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=super.parseExprAtom()),this.eat(12)?t.options=this.tsParseImportTypeOptions():t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseImportTypeOptions(){const t=this.startNode();this.expect(5);const e=this.startNode();return this.isContextual(76)?(e.method=!1,e.key=this.parseIdentifier(!0),e.computed=!1,e.shorthand=!1):this.unexpected(null,76),this.expect(14),e.value=this.tsParseImportTypeWithPropertyValue(),t.properties=[this.finishObjectProperty(e)],this.expect(8),this.finishNode(t,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const t=this.startNode(),e=[];for(this.expect(5);!this.match(8);){const t=this.state.type;W(t)||134===t?e.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return t.properties=e,this.next(),this.finishNode(t,"ObjectExpression")}tsParseEntityName(t){let e;if(1&t&&this.match(78))if(2&t)e=this.parseIdentifier(!0);else{const t=this.startNode();this.next(),e=this.finishNode(t,"ThisExpression")}else e=this.parseIdentifier(!!(1&t));for(;this.eat(16);){const r=this.startNodeAtNode(e);r.left=e,r.right=this.parseIdentifier(!!(1&t)),e=this.finishNode(r,"TSQualifiedName")}return e}tsParseTypeReference(){const t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();const e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){const t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){const t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(t){const e=this.startNode();return t(e),e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(81),e.default=this.tsEatThenParseType(29),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){const e=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const r={value:-1};return e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,r),0===e.params.length&&this.raise(ve.EmptyTypeParameters,e),-1!==r.value&&this.addExtra(e,"trailingComma",r.value),this.finishNode(e,"TSTypeParameterDeclaration")}tsFillSignature(t,e){const r=19===t;e.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),e.parameters=this.tsParseBindingListForSignature(),(r||this.match(t))&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){const t=super.parseBindingList(11,41,2);for(const e of t){const{type:t}=e;"AssignmentPattern"!==t&&"TSParameterProperty"!==t||this.raise(ve.UnsupportedSignatureParameterKind,e,{type:t})}return t}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(t,e){return this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!W(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(t){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(3),t.parameters=[e];const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){if(this.eat(17)&&(t.optional=!0),this.match(10)||this.match(47)){e&&this.raise(ve.ReadonlyForMethodSignature,t);const r=t;r.kind&&this.match(47)&&this.raise(ve.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const s="parameters",i="typeAnnotation";if("get"===r.kind)r[s].length>0&&(this.raise(v.BadGetterArity,this.state.curPosition()),this.isThisParam(r[s][0])&&this.raise(ve.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[s].length)this.raise(v.BadSetterArity,this.state.curPosition());else{const t=r[s][0];this.isThisParam(t)&&this.raise(ve.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(ve.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(ve.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[i]&&this.raise(ve.SetAccessorCannotHaveReturnType,r[i])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const r=t;e&&(r.readonly=!0);const s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){const e=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t),this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,super.parsePropertyName(t),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){const t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const t=this.startNode();this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0);{const e=this.startNode();e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),t.typeParameter=this.finishNode(e,"TSTypeParameter")}return t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1;return t.elementTypes.forEach((t=>{const{type:r}=t;!e||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&t.optional||this.raise(ve.OptionalTypeBeforeRequired,t),e||(e="TSNamedTupleMember"===r&&t.optional||"TSOptionalType"===r)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const t=this.state.startLoc,e=this.eat(21),{startLoc:r}=this.state;let s,i,n,a;const o=z(this.state.type)?this.lookaheadCharCode():null;if(58===o)s=!0,n=!1,i=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){n=!0;const t=this.state.value,e=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(s=!0,i=this.createIdentifier(this.startNodeAt(r),t),this.expect(17),this.expect(14),a=this.tsParseType()):(s=!1,a=e,this.expect(17))}else a=this.tsParseType(),n=this.eat(17),s=this.eat(14);if(s){let t;i?(t=this.startNodeAt(r),t.optional=n,t.label=i,t.elementType=a,this.eat(17)&&(t.optional=!0,this.raise(ve.TupleOptionalAfterType,this.state.lastTokStartLoc))):(t=this.startNodeAt(r),t.optional=n,this.raise(ve.InvalidTupleMemberLabel,a),t.label=a,t.elementType=this.tsParseType()),a=this.finishNode(t,"TSNamedTupleMember")}else if(n){const t=this.startNodeAt(r);t.typeAnnotation=a,a=this.finishNode(t,"TSOptionalType")}if(e){const e=this.startNodeAt(t);e.typeAnnotation=a,a=this.finishNode(e,"TSRestType")}return a}tsParseParenthesizedType(){const t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,e){const r=this.startNode();return"TSConstructorType"===t&&(r.abstract=!!e,e&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,t)}tsParseLiteralTypeNode(){const t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{const t=this.startNode();return t.literal=super.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();return 135!==e.type&&136!==e.type&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:t}=this.state;if(W(t)||88===t||84===t){const e=88===t?"TSVoidKeyword":84===t?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:t}=this.state;let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const r=this.startNodeAt(t);r.elementType=e,this.expect(3),e=this.finishNode(r,"TSArrayType")}else{const r=this.startNodeAt(t);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const t=this.startNode(),e=this.state.value;return this.next(),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ve.UnexpectedReadonly,t)}}tsParseInferType(){const t=this.startNode();this.expectContextual(115);const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const t=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){var t;return(t=this.state.type)>=121&&t<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(t,e,r){const s=this.startNode(),i=this.eat(r),n=[];do{n.push(e())}while(this.eat(r));return 1!==n.length||i?(s.types=n,this.finishNode(s,t)):n[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(W(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:t}=this.state,e=t.length;try{return this.parseObjectLike(8,!0),t.length===e}catch(t){return!1}}if(this.match(0)){this.next();const{errors:t}=this.state,e=t.length;try{return super.parseBindingList(3,93,1),t.length===e}catch(t){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const r=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let t=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===t.type?(r.parameterName=t,r.asserts=!0,r.typeAnnotation=null,t=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(t,r),t.asserts=!0),e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return s?(r.parameterName=this.parseIdentifier(),r.asserts=s,r.typeAnnotation=null,e.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,e);const n=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=n,r.asserts=s,e.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const t=this.state.containsEsc;return this.next(),!(!W(this.state.type)&&!this.match(78)||(t&&this.raise(v.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(14),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){ge(this.state.inType);const t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),e.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),e.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(e,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ve.ReservedTypeAssertion,this.state.startLoc);const t=this.startNode();return t.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){const e=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{const t=this.startNode();return t.expression=this.tsParseEntityName(3),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}}));return r.length||this.raise(ve.EmptyHeritageClauseType,e,{token:t}),r}tsParseInterfaceDeclaration(t,e={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),e.declare&&(t.declare=!0),W(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(ve.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));const r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType((()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()===T.brace)return t();{const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}}tsInType(t){const e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsInDisallowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsInAllowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType((()=>(this.expect(t),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e={}){return e.const&&(t.const=!0),e.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){const t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,e=!1){if(t.id=this.parseIdentifier(),e||this.checkIdentifier(t.id,1024),this.eat(16)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(512),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.global=!0,t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(512),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e,r){t.isExport=r||!1,t.id=e||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);const s=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==s.type&&this.raise(ve.ImportAliasHasImportType,s),t.moduleReference=s,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),r=t();return this.state=e,r}tsTryParseAndCatch(t){const e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){const e=this.state.clone(),r=t();if(void 0!==r&&!1!==r)return r;this.state=e}tsTryParseDeclare(t){if(this.isLineTerminator())return;const e=this.state.type;return this.tsInAmbientContext((()=>{switch(e){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,this.parseVarStatement(t,this.state.value,!0));case 107:if(this.hasPlugin("explicitResourceManagement")&&this.isUsing())return this.raise(ve.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.parseVarStatement(t,"using",!0);break;case 96:if(this.hasPlugin("explicitResourceManagement")&&this.isAwaitUsing())return this.raise(ve.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.next(),this.parseVarStatement(t,"await using",!0);break;case 129:{const e=this.tsParseInterfaceDeclaration(t,{declare:!0});if(e)return e}default:if(W(e))return this.tsParseDeclaration(t,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(t,e,r){switch(e.name){case"declare":{const e=this.tsTryParseDeclare(t);return e&&(e.declare=!0),e}case"global":if(this.match(5)){this.scope.enter(512),this.prodParam.enter(0);const r=t;return r.kind="global",t.global=!0,r.id=e,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1,r)}}tsParseDeclaration(t,e,r,s){switch(e){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||W(this.state.type)))return this.tsParseAbstractDeclaration(t,s);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);if(W(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&W(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(r)&&W(this.state.type))return this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminator(t){return t?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;const e=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const e=this.startNodeAt(t);return e.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(e),e.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),e}));return this.state.maybeInArrowParameters=e,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const t=this.startNode();return t.params=this.tsInType((()=>this.tsInTopLevelContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length?this.raise(ve.EmptyTypeArguments,t):this.state.inType||this.curContext()!==T.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(t=this.state.type)>=124&&t<=130;var t}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(t,e){const r=e.length?e[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const i=s.accessibility,n=s.override,a=s.readonly;4&t||!(i||a||n)||this.raise(ve.UnexpectedParameterModifier,r);const o=this.parseMaybeDefault();2&t&&this.parseFunctionParamType(o);const c=this.parseMaybeDefault(o.loc.start,o);if(i||a||n){const t=this.startNodeAt(r);return e.length&&(t.decorators=e),i&&(t.accessibility=i),a&&(t.readonly=a),n&&(t.override=n),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(ve.UnsupportedParameterPropertyKind,t),t.parameter=c,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),c}isSimpleParameter(t){return"TSParameterProperty"===t.type&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(const e of t.params)"Identifier"!==e.type&&e.optional&&!this.state.isAmbientContext&&this.raise(ve.PatternIsOptional,e)}setArrowFunctionParameters(t,e,r){super.setArrowFunctionParameters(t,e,r),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,e,r=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e||"ClassPrivateMethod"===e?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,s):"TSDeclareFunction"===s&&this.state.isAmbientContext&&(this.raise(ve.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,s,r):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,e,r))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{"TSTypeCastExpression"===(null==t?void 0:t.type)&&this.raise(ve.UnexpectedTypeAnnotation,t.typeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,e,r,s){const i=super.parseArrayLike(t,e,r,s);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(t,e,r,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return s.stop=!0,t;s.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let n;const a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e);if(t)return t}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(n=this.state.curPosition());if(X(this.state.type)){const r=super.parseTaggedTemplateExpression(t,e,s);return r.typeParameters=a,r}if(!r&&this.eat(10)){const r=this.startNodeAt(e);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,s.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,s.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&q(o)&&!this.hasPrecedingLineBreak())return;const c=this.startNodeAt(e);return c.expression=t,c.typeParameters=a,this.finishNode(c,"TSInstantiationExpression")}));if(n&&this.unexpected(n,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(ve.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(t,s))),a}return super.parseSubscript(t,e,r,s)}parseNewCallee(t){var e;super.parseNewCallee(t);const{callee:r}=t;"TSInstantiationExpression"!==r.type||null!=(e=r.extra)&&e.parenthesized||(t.typeParameters=r.typeParameters,t.callee=r.expression)}parseExprOp(t,e,r){let s;if(G(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const i=this.startNodeAt(e);return i.expression=t,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(s&&this.raise(v.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,e,r)}return super.parseExprOp(t,e,r)}checkReservedWord(t,e,r,s){this.state.isAmbientContext||super.checkReservedWord(t,e,r,s)}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(ve.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){const e=this.lookaheadCharCode();return t?123===e||42===e:61!==e}return!t&&this.isContextual(87)}applyImportPhase(t,e,r,s){super.applyImportPhase(t,e,r,s),e?t.exportKind="type"===r?"type":"value":t.importKind="type"===r||"typeof"===r?r:"value"}parseImport(t){if(this.match(134))return t.importKind="value",super.parseImport(t);let e;if(W(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,r);e=super.parseImportSpecifiersAndAfter(t,r)}else e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(ve.TypeImportCannotSpecifyDefaultAndNamed,e),e}parseExport(t,e){if(this.match(83)){const e=t;this.next();let r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,r,!0)}if(this.eat(29)){const e=t;return e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")}if(this.eatContextual(93)){const e=t;return this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")}return super.parseExport(t,e)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,e,r=!1){const{isAmbientContext:s}=this.state,i=super.parseVarStatement(t,e,r||s);if(!s)return i;for(const{id:t,init:r}of i.declarations)r&&("var"===e||"let"===e||t.typeAnnotation?this.raise(ve.InitializerNotAllowedInAmbientContext,r):Pe(r,this.hasPlugin("estree"))||this.raise(ve.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return i}parseStatementContent(t,e){if(this.match(75)&&this.isLookaheadContextual("enum")){const t=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(t,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,e){return e.some((e=>xe(e)?t.accessibility===e:!!t[e]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(t,e,r){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ve.InvalidModifierOnTypeParameterPositions},e);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(e,s)&&this.raise(ve.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,e)):this.parseClassMemberWithIsStatic(t,e,r,!!e.static)};e.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,e,r,s){const i=this.tsTryParseIndexSignature(e);if(i)return t.body.push(i),e.abstract&&this.raise(ve.IndexSignatureHasAbstract,e),e.accessibility&&this.raise(ve.IndexSignatureHasAccessibility,e,{modifier:e.accessibility}),e.declare&&this.raise(ve.IndexSignatureHasDeclare,e),void(e.override&&this.raise(ve.IndexSignatureHasOverride,e));!this.state.inAbstractClass&&e.abstract&&this.raise(ve.NonAbstractClassHasAbstractMethod,e),e.override&&(r.hadSuperClass||this.raise(ve.OverrideNotInSubClass,e)),super.parseClassMemberWithIsStatic(t,e,r,s)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(ve.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(ve.ClassMethodHasDeclare,t)}parseExpressionStatement(t,e,r){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e,r):void 0)||super.parseExpressionStatement(t,e,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){const e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(r),t}return super.parseConditional(t,e,r)}parseParenItem(t,e){const r=super.parseParenItem(t,e);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){const r=this.startNodeAt(e);return r.expression=t,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(t)));const e=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ve.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const s=W(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return s?(("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||r)&&(t.exportKind="type"),r&&"TSImportEqualsDeclaration"!==s.type&&(this.resetStartLocation(s,e),s.declare=!0),s):null}parseClassId(t,e,r,s){if((!e||r)&&this.isContextual(113))return;super.parseClassId(t,e,r,t.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(t.typeParameters=i)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(29)&&this.raise(ve.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){const{key:e}=t;this.raise(ve.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==e.type||t.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(ve.PrivateElementHasAbstract,t),t.accessibility&&this.raise(ve.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(ve.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,e,r,s,i,n){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(ve.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:c}=e;!o||"get"!==c&&"set"!==c||this.raise(ve.DeclareAccessor,e,{kind:c}),a&&(e.typeParameters=a),super.pushClassMethod(t,e,r,s,i,n)}pushClassPrivateMethod(t,e,r,s){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.pushClassPrivateMethod(t,e,r,s)}declareClassPrivateMethodInScope(t,e){"TSDeclareMethod"!==t.type&&("MethodDefinition"===t.type&&null==t.value.body||super.declareClassPrivateMethodInScope(t,e))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,e,r,s,i,n,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(t.typeParameters=o),super.parseObjPropValue(t,e,r,s,i,n,a)}parseFunctionParams(t,e){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(t.typeParameters=r),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(t,e){var r,s,i,n,a;let o,c,l,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),c=this.tryParse((()=>super.parseMaybeAssign(t,e)),o),!c.error)return c.node;const{context:r}=this.state,s=r[r.length-1];s!==T.j_oTag&&s!==T.j_expr||r.pop()}if(!(null!=(r=c)&&r.error||this.match(47)))return super.parseMaybeAssign(t,e);o&&o!==this.state||(o=this.state.clone());const h=this.tryParse((r=>{var s,i;u=this.tsParseTypeParameters(this.tsParseConstModifier);const n=super.parseMaybeAssign(t,e);return("ArrowFunctionExpression"!==n.type||null!=(s=n.extra)&&s.parenthesized)&&r(),0!==(null==(i=u)?void 0:i.params.length)&&this.resetStartLocationFromNode(n,u),n.typeParameters=u,n}),o);if(!h.error&&!h.aborted)return u&&this.reportReservedArrowTypeParam(u),h.node;if(!c&&(ge(!this.hasPlugin("jsx")),l=this.tryParse((()=>super.parseMaybeAssign(t,e)),o),!l.error))return l.node;if(null!=(s=c)&&s.node)return this.state=c.failState,c.node;if(h.node)return this.state=h.failState,u&&this.reportReservedArrowTypeParam(u),h.node;if(null!=(i=l)&&i.node)return this.state=l.failState,l.node;throw(null==(n=c)?void 0:n.error)||h.error||(null==(a=l)?void 0:a.error)}reportReservedArrowTypeParam(t){var e;1!==t.params.length||t.params[0].constraint||null!=(e=t.extra)&&e.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(ve.ReservedArrowTypeParam,t)}parseMaybeUnary(t,e){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);const e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e),this.resetEndLocation(t),t}isAssignable(t,e){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,e);case"TSParameterProperty":return!0;default:return super.isAssignable(t,e)}}toAssignable(t,e=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,e);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":e?this.expressionScope.recordArrowParameterBindingError(ve.UnexpectedTypeCastInParameter,t):this.raise(ve.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,e);break;case"AssignmentExpression":e||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,e)}}toAssignableParenthesizedExpression(t,e){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;default:super.toAssignable(t,e)}}checkToRestConversion(t,e){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,e)}}isValidLVal(t,e,r){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!e)&&["expression",!0];default:return super.isValidLVal(t,e,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,e){if(this.match(47)||this.match(51)){const r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(t,e);return s.typeParameters=r,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,e)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,e){const r=super.parseMaybeDefault(t,e);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(ve.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(t){if(this.state.inType){if(62===t)return void this.finishOp(48,1);if(60===t)return void this.finishOp(47,1)}super.getTokenFromCode(t)}reScan_lt_gt(){const{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableListItem(t,e,r){const s=t[e];"TSTypeCastExpression"===s.type&&(t[e]=this.typeCastToParameter(s)),super.toAssignableListItem(t,e,r)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every((t=>this.isAssignable(t,!0))):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t)[0];return r&&this.isThisParam(r)?e+1:e}parseCatchClauseParam(){const t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInAmbientContext(t){const{isAmbientContext:e,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=e,this.state.strict=r}}parseClass(t,e,r){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,e,r)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(t,e){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(e,this.parseClass(t,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(ve.NonClassMethodPropertyHasAbstractModifier,t),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(t,e,r,s,i,n,a){const o=super.parseMethod(t,e,r,s,i,n,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){const{key:t}=o;this.raise(ve.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==t.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,e,r,s){return!e&&s?(this.parseTypeOnlyImportExportSpecifier(t,!1,r),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,e,r,s))}parseImportSpecifier(t,e,r,s,i){return!e&&s?(this.parseTypeOnlyImportExportSpecifier(t,!0,r),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,e,r,s,r?4098:4096))}parseTypeOnlyImportExportSpecifier(t,e,r){const s=e?"imported":"local",i=e?"local":"exported";let n,a=t[s],o=!1,c=!0;const l=a.loc.start;if(this.isContextual(93)){const t=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();z(this.state.type)?(o=!0,a=t,n=e?this.parseIdentifier():this.parseModuleExportName(),c=!1):(n=r,c=!1)}else z(this.state.type)?(c=!1,n=e?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=t)}else z(this.state.type)&&(o=!0,e?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(e?ve.TypeModifierIsUsedInTypeImports:ve.TypeModifierIsUsedInTypeExports,l),t[s]=a,t[i]=n,t[e?"importKind":"exportKind"]=o?"type":"value",c&&this.eatContextual(93)&&(t[i]=e?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=this.cloneIdentifier(t[s])),e&&this.checkIdentifier(t[i],o?4098:4096)}fillOptionalPropertiesForTSESLint(t){switch(t.type){case"ExpressionStatement":return void(null!=t.directive||(t.directive=void 0));case"RestElement":t.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=t.decorators||(t.decorators=[]),null!=t.optional||(t.optional=!1),void(null!=t.typeAnnotation||(t.typeAnnotation=void 0));case"TSParameterProperty":return null!=t.accessibility||(t.accessibility=void 0),null!=t.decorators||(t.decorators=[]),null!=t.override||(t.override=!1),null!=t.readonly||(t.readonly=!1),void(null!=t.static||(t.static=!1));case"TSEmptyBodyFunctionExpression":t.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=t.declare||(t.declare=!1),null!=t.returnType||(t.returnType=void 0),void(null!=t.typeParameters||(t.typeParameters=void 0));case"Property":return void(null!=t.optional||(t.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=t.optional||(t.optional=!1);case"TSIndexSignature":return null!=t.accessibility||(t.accessibility=void 0),null!=t.readonly||(t.readonly=!1),void(null!=t.static||(t.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=t.declare||(t.declare=!1),null!=t.definite||(t.definite=!1),null!=t.readonly||(t.readonly=!1),null!=t.typeAnnotation||(t.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=t.accessibility||(t.accessibility=void 0),null!=t.decorators||(t.decorators=[]),null!=t.override||(t.override=!1),void(null!=t.optional||(t.optional=!1));case"ClassExpression":null!=t.id||(t.id=null);case"ClassDeclaration":return null!=t.abstract||(t.abstract=!1),null!=t.declare||(t.declare=!1),null!=t.decorators||(t.decorators=[]),null!=t.implements||(t.implements=[]),null!=t.superTypeArguments||(t.superTypeArguments=void 0),void(null!=t.typeParameters||(t.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=t.declare||(t.declare=!1));case"VariableDeclarator":return void(null!=t.definite||(t.definite=!1));case"TSEnumDeclaration":return null!=t.const||(t.const=!1),void(null!=t.declare||(t.declare=!1));case"TSEnumMember":return void(null!=t.computed||(t.computed=!1));case"TSImportType":return null!=t.qualifier||(t.qualifier=null),void(null!=t.options||(t.options=null));case"TSInterfaceDeclaration":return null!=t.declare||(t.declare=!1),void(null!=t.extends||(t.extends=[]));case"TSModuleDeclaration":return null!=t.declare||(t.declare=!1),void(null!=t.global||(t.global="global"===t.kind));case"TSTypeParameter":return null!=t.const||(t.const=!1),null!=t.in||(t.in=!1),void(null!=t.out||(t.out=!1))}}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(54)){const t=this.state.startLoc,e=this.startNode();if(this.next(),W(this.state.type)){const t=this.parseIdentifierName(),r=this.createIdentifier(e,t);if(this.castNodeTo(r,"V8IntrinsicIdentifier"),this.match(10))return r}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(133)){const e=this.startNode();return this.next(),this.assertNoSpace(),e.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){let r=t;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=e,r}getTokenFromCode(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,e,r,s){void 0!==t&&super.checkReservedWord(t,e,r,s)}cloneIdentifier(t){const e=super.cloneIdentifier(t);return"Placeholder"===e.type&&(e.expectedNode=t.expectedNode),e}cloneStringLiteral(t){return"Placeholder"===t.type?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,e,r){return"Placeholder"===t||super.isValidLVal(t,e,r)}toAssignable(t,e){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":super.toAssignable(t,e)}chStartsBindingIdentifier(t,e){return!!super.chStartsBindingIdentifier(t,e)||133===this.lookahead().type}verifyBreakContinue(t,e){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(t,e)}parseExpressionStatement(t,e){var r;if("Placeholder"!==e.type||null!=(r=e.extra)&&r.parenthesized)return super.parseExpressionStatement(t,e);if(this.match(14)){const r=t;return r.label=this.finishPlaceholder(e,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}this.semicolon();const s=t;return s.name=e.name,this.finishPlaceholder(s,"Statement")}parseBlock(t,e,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,e,r)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,e,r){const s=e?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,n=this.parsePlaceholder("Identifier");if(n){if(!(this.match(81)||this.match(133)||this.match(5))){if(r||!e)return t.id=null,t.body=this.finishPlaceholder(n,"ClassBody"),this.finishNode(t,s);throw this.raise(Ae.ClassNameIsRequired,this.state.startLoc)}t.id=n}else this.parseClassId(t,e,r);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,s)}parseExport(t,e){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(t,e);const s=t;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=r,s.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(s,e)}isExportDefaultSpecifier(){if(this.match(65)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(J(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,e){var r;return!(null==(r=t.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(t,e)}checkExport(t){const{specifiers:e}=t;null!=e&&e.length&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Ae.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ce=Object.keys(Ee);class Ne extends ye{checkProto(t,e,r,s){if("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)return r;const i=t.key;return"__proto__"===("Identifier"===i.type?i.name:i.value)?e?(this.raise(v.RecordNoProto,i),!0):(r&&(s?null===s.doubleProtoLoc&&(s.doubleProtoLoc=i.loc.start):this.raise(v.DuplicateProto,i)),!0):r}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&this.offsetToSourcePos(t.start)===e}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(v.ParseExpressionEmptyInput,this.state.startLoc);const t=this.parseExpression();if(!this.match(140))throw this.raise(v.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,256&this.optionFlags&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.startLoc,r=this.parseMaybeAssign(t);if(this.match(12)){const s=this.startNodeAt(e);for(s.expressions=[r];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e)))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd((()=>this.parseMaybeAssign(t,e)))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,e){const r=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let t=this.parseYield(r);return e&&(t=e.call(this,t,r)),t}let i;t?i=!1:(t=new he,i=!0);const{type:n}=this.state;(10===n||W(n))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(e&&(a=e.call(this,a,r)),(o=this.state.type)>=29&&o<=33){const e=this.startNodeAt(r),s=this.state.value;if(e.operator=s,this.match(29)){this.toAssignable(a,!0),e.left=a;const s=r.index;null!=t.doubleProtoLoc&&t.doubleProtoLoc.index>=s&&(t.doubleProtoLoc=null),null!=t.shorthandAssignLoc&&t.shorthandAssignLoc.index>=s&&(t.shorthandAssignLoc=null),null!=t.privateKeyLoc&&t.privateKeyLoc.index>=s&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else e.left=a;return this.next(),e.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(e,"AssignmentExpression")),e}var o;if(i&&this.checkExpressionErrors(t,!0),s){const{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?q(t):q(t)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,r)?s:this.parseConditional(s,e,t)}parseConditional(t,e,r){if(this.eat(17)){const r=this.startNodeAt(e);return r.test=t,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,r)?s:this.parseExprOp(s,e,-1)}parseExprOp(t,e,r){if(this.isPrivateName(t)){const e=this.getPrivateNameSV(t);(r>=G(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(v.PrivateInExpectedIn,t,{identifierName:e}),this.classScope.usePrivateName(e,t.loc.start)}const s=this.state.type;if((i=s)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=G(s);if(i>r){if(39===s){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}const n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;const a=41===s||42===s,o=40===s;if(o&&(i=G(42)),this.next(),39===s&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(v.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(s,i);const c=this.finishNode(n,a||o?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(o&&(41===l||42===l)||a&&40===l)throw this.raise(v.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,e,r)}}var i;return t}parseExprOpRightExpr(t,e){const r=this.state.startLoc;if(39===t){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(v.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),r)}))}return this.parseExprOpBaseRightExpr(t,e)}parseExprOpBaseRightExpr(t,e){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===t?e-1:e)}parseHackPipeBody(){var t;const{startLoc:e}=this.state,r=this.parseMaybeAssign();return!p.has(r.type)||null!=(t=r.extra)&&t.parenthesized||this.raise(v.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipeTopicUnused,e),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(v.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){const r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const t=this.parseAwait(r);return e||this.checkExponentialAfterUnary(t),t}const i=this.match(34),n=this.startNode();if(a=this.state.type,B[a]){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&r){const t=n.argument;"Identifier"===t.type?this.raise(v.StrictDelete,n):this.hasPropertyAsPrivateName(t)&&this.raise(v.DeletePrivateField,n)}if(!i)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}var a;const o=this.parseUpdate(n,i,t);if(s){const{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?q(t):q(t)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.AwaitNotInAsyncContext,r),this.parseAwait(r)}return o}parseUpdate(t,e,r){if(e){const e=t;return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),t}const s=this.state.startLoc;let i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const t=this.startNodeAt(s);t.operator=this.state.value,t.prefix=!1,t.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(t,"UpdateExpression"))}return i}parseExprSubscripts(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,r)?s:this.parseSubscripts(s,e)}parseSubscripts(t,e,r){const s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,r,s),s.maybeAsyncArrow=!1}while(!s.stop);return t}parseSubscript(t,e,r,s){const{type:i}=this.state;if(!r&&15===i)return this.parseBind(t,e,r,s);if(X(i))return this.parseTaggedTemplateExpression(t,e,s);let n=!1;if(18===i){if(r&&(this.raise(v.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(t,s);s.optionalChainMember=n=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,s,n);{const r=this.eat(0);return r||n||this.eat(16)?this.parseMember(t,e,s,r,n):this.stopParseSubscript(t,s)}}stopParseSubscript(t,e){return e.stop=!0,t}parseMember(t,e,r,s,i){const n=this.startNodeAt(e);return n.object=t,n.computed=s,s?(n.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===t.type&&this.raise(v.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),r.optionalChainMember?(n.optional=i,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,r,s){const i=this.startNodeAt(e);return i.object=t,this.next(),i.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),e,r)}parseCoverCallAndAsyncArrowHead(t,e,r,s){const i=this.state.maybeInArrowParameters;let n=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(e);a.callee=t;const{maybeAsyncArrow:o,optionalChainMember:c}=r;o&&(this.expressionScope.enter(new oe(2)),n=new he),c&&(a.optional=s),a.arguments=s?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Super"!==t.type,a,n);let l=this.finishCallExpression(a,c);return o&&this.shouldParseAsyncArrow()&&!s?(r.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),l)):(o&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,r){const s=this.startNodeAt(e);return s.tag=t,s.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(v.OptionalChainingNoTemplate,e),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,e){if("Import"===t.callee.type)if(0===t.arguments.length||t.arguments.length>2)this.raise(v.ImportCallArity,t);else for(const e of t.arguments)"SpreadElement"===e.type&&this.raise(v.ImportCallSpreadArgument,e);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,r,s){const i=[];let n=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(!1,s,e))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var r;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(r=e.extra)?void 0:r.trailingCommaLoc),e.innerComments&&Ut(t,e.innerComments),e.callee.trailingComments&&Ut(t,e.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,r=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(e):this.match(10)?512&this.optionFlags?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(v.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const t=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(t)}case 0:return this.parseArrayLike(3,!0,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;const t=e.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(e,"BindExpression");throw this.raise(v.UnsupportedBind,t)}case 139:return this.raise(v.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const t=this.getPluginOption("pipelineOperator","proposal");if(t)return this.parseTopicReference(t);this.unexpected();break}case 47:{const t=this.input.codePointAt(this.nextTokenStart());at(t)||62===t?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(137===s)return this.parseDecimalLiteral(this.state.value);if(2===s||1===s)return this.parseArrayLike(2===this.state.type?4:3,!1,!0);if(6===s||7===s)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(W(s)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const t=this.state.potentialArrowAt===this.state.start,e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(W(t))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===t)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return t&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){const r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=n(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(t){const e=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(e,r,t,s)}finishTopicReference(t,e,r,s){if(this.testTopicReferenceConfiguration(r,e,s))return"hack"===r?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PrimaryTopicNotAllowed,e),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(v.PipeTopicUnconfiguredToken,e,{token:J(s)})}testTopicReferenceConfiguration(t,e,r){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:J(r)}]);case"smart":return 27===r;default:throw this.raise(v.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Rt(!0,this.prodParam.hasYield));const e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(v.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();const r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||16&this.optionFlags?this.scope.allowSuper||16&this.optionFlags||this.raise(v.UnexpectedSuper,t):this.raise(v.SuperNotAllowed,t),this.match(10)||this.match(0)||this.match(16)||this.raise(v.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),e=this.startNodeAt(n(this.state.startLoc,1)),r=this.state.value;return this.next(),t.id=this.createIdentifier(e,r),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,r){t.meta=e;const s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==r||s)&&this.raise(v.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:r}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){const e=this.isContextual(105);return this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}{const e=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(v.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}}parseLiteralAtNode(t,e,r){return this.addExtra(r,"rawValue",t),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=t,this.next(),this.finishNode(r,e)}parseLiteral(t,e){const r=this.startNode();return this.parseLiteralAtNode(t,e,r)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const e=this.startNode();return this.addExtra(e,"raw",this.input.slice(this.offsetToSourcePos(e.start),this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){const e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const e=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new oe(1));const s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const n=this.state.startLoc,a=[],o=new he;let c,l,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){l=this.state.startLoc;break}if(this.match(21)){const t=this.state.startLoc;if(c=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),t)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}const h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let p=this.startNodeAt(e);return t&&this.shouldParseArrow(a)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,a,!1),p):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),l&&this.unexpected(l),c&&this.unexpected(c),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(n),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,h)):r=a[0],this.wrapParenthesis(e,r))}wrapParenthesis(t,e){if(!(1024&this.optionFlags))return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const r=this.parseMetaProperty(t,e,"target");return this.scope.inNonArrowFunction||this.scope.inClass||4&this.optionFlags||this.raise(v.UnexpectedNewTarget,r),r}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const e=this.match(83),r=this.parseNoCallExpr();t.callee=r,!e||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(v.ImportCallNotNewExpression,r)}parseTemplateElement(t){const{start:e,startLoc:r,end:s,value:i}=this.state,a=e+1,o=this.startNodeAt(n(r,1));null===i&&(t||this.raise(v.InvalidEscapeSequenceTemplate,n(this.state.firstInvalidTemplateEscapePos,1)));const c=this.match(24),l=c?-1:-2,u=s+l;o.value={raw:this.input.slice(a,u).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,l)},o.tail=c,this.next();const h=this.finishNode(o,"TemplateElement");return this.resetEndLocation(h,n(this.state.lastTokEndLoc,l)),h}parseTemplate(t){const e=this.startNode();let r=this.parseTemplateElement(t);const s=[r],i=[];for(;!r.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(t));return e.expressions=i,e.quasis=s,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=!1,a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let i;e?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(s),n=this.checkProto(i,r,n,s)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(v.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return e?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(v.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());const r=this.startNode();let s,i=!1,n=!1;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(r.decorators=e,e=[]),r.method=!1,t&&(s=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;if(this.parsePropertyName(r,t),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:t}=r,e=t.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(t),a=this.eat(55),this.parsePropertyName(r)),"get"!==e&&"set"!==e||(n=!0,this.resetPreviousNodeTrailingComments(t),r.kind=e,this.match(55)&&(a=!0,this.raise(v.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,s,a,i,!1,n,t)}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const r=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==r&&this.raise("get"===t.kind?v.BadGetterArity:v.BadSetterArity,t),"set"===t.kind&&"RestElement"===(null==(e=s[s.length-1])?void 0:e.type)&&this.raise(v.BadSetterRestParameter,t)}parseObjectMethod(t,e,r,s,i){if(i){const r=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||e||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,r,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,r,s){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishObjectProperty(t);if(!t.computed&&"Identifier"===t.key.type){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,this.cloneIdentifier(t.key));else if(this.match(29)){const r=this.state.startLoc;null!=s?null===s.shorthandAssignLoc&&(s.shorthandAssignLoc=r):this.raise(v.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,e,r,s,i,n,a){const o=this.parseObjectMethod(t,r,s,i,n)||this.parseObjectProperty(t,e,i,a);return o||this.unexpected(),o}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:r,value:s}=this.state;let i;if(z(r))i=this.parseIdentifier(!0);else switch(r){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{const t=this.state.startLoc;null!=e?null===e.privateKeyLoc&&(e.privateKeyLoc=t):this.raise(v.UnexpectedPrivateField,t),i=this.parsePrivateName();break}default:if(137===r){i=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=i,139!==r&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,r,s,i,n,a=!1){this.initFunction(t,r),t.generator=e,this.scope.enter(18|(a?64:0)|(i?32:0)),this.prodParam.enter(Rt(r,t.generator)),this.parseFunctionParams(t,s);const o=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!r,s,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,r,s){this.scope.enter(6);let i=Rt(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,r);const n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,r){this.toAssignableList(e,r,!1),t.params=e}parseFunctionBodyAndFinish(t,e,r=!1){return this.parseFunctionBody(t,!1,r),this.finishNode(t,e)}parseFunctionBody(t,e,r=!1){const s=e&&!this.match(5);if(this.expressionScope.enter(le()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(i=>{const n=!this.isSimpleParamList(t.params);i&&n&&this.raise(v.IllegalLanguageModeDirective,"method"!==t.kind&&"constructor"!==t.kind||!t.key?t:t.key.loc.end);const a=!s&&this.state.strict;this.checkParams(t,!(this.state.strict||e||r||n),e,a),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,a)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(t){return"Identifier"===t.type}isSimpleParamList(t){for(let e=0,r=t.length;e<r;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,r,s=!0){const i=!e&&new Set,n={type:"FormalParameters"};for(const e of t.params)this.checkLVal(e,n,5,i,s)}parseExprList(t,e,r,s){const i=[];let n=!0;for(;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}i.push(this.parseExprListItem(e,r))}return i}parseExprListItem(t,e,r){let s;if(this.match(12))t||this.raise(v.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){const t=this.state.startLoc;s=this.parseParenItem(this.parseSpread(e),t)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(v.UnexpectedArgumentPlaceholder,this.state.startLoc);const t=this.startNode();this.next(),s=this.finishNode(t,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return s}parseIdentifier(t){const e=this.startNode(),r=this.parseIdentifierName(t);return this.createIdentifier(e,r)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}createIdentifierAt(t,e,r){return t.name=e,t.loc.identifierName=e,this.finishNodeAt(t,"Identifier",r)}parseIdentifierName(t){let e;const{startLoc:r,type:s}=this.state;z(s)?e=this.state.value:this.unexpected();const i=s<=92;return t?i&&this.replaceToken(132):this.checkReservedWord(e,r,i,!1),this.next(),e}checkReservedWord(t,e,r,s){if(!(t.length>10)&&function(t){return mt.has(t)}(t))if(r&&function(t){return ct.has(t)}(t))this.raise(v.UnexpectedKeyword,e,{keyword:t});else if((this.state.strict?s?ft:pt:ht)(t,this.inModule))this.raise(v.UnexpectedReservedWord,e,{reservedWord:t});else if("yield"===t){if(this.prodParam.hasYield)return void this.raise(v.YieldBindingIdentifier,e)}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(v.AwaitBindingIdentifier,e);if(this.scope.inStaticBlock)return void this.raise(v.AwaitBindingIdentifierInStaticBlock,e);this.expressionScope.recordAsyncArrowParametersError(e)}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(v.ArgumentsInClass,e)}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait||1&this.optionFlags&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(v.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(v.ObsoleteAwaitStar,e),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return 53===t||10===t||0===t||X(t)||102===t&&!this.state.containsEsc||138===t||56===t||this.hasPlugin("v8intrinsic")&&54===t}parseYield(t){const e=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(v.YieldInParameter,e);let r=!1,s=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}return e.delegate=r,e.argument=s,this.finishNode(e,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(v.ImportCallArity,t)}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===t.type&&this.raise(v.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){const r=this.startNodeAt(e);return r.callee=t,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),r.expression=t,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(v.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipelineTopicUnused,t)}withTopicBindingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return t();{const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=r,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const e=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{r()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const Ie={kind:1},Me={kind:2},Le=/[\uD800-\uDFFF]/u,Oe=/in(?:stanceof)?/y;class De extends Ne{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.comments,256&this.optionFlags&&(t.tokens=function(t,e,r){for(let s=0;s<t.length;s++){const i=t[s],{type:a}=i;if("number"==typeof a){if(139===a){const{loc:e,start:r,value:a,end:o}=i,c=r+1,l=n(e.start,1);t.splice(s,1,new re({type:Z(27),value:"#",start:r,end:c,startLoc:e.start,endLoc:l}),new re({type:Z(132),value:a,start:c,end:o,startLoc:l,endLoc:e.end})),s++;continue}if(X(a)){const{loc:o,start:c,value:l,end:u}=i,h=c+1,p=n(o.start,1);let d,f,m,y,g;d=96===e.charCodeAt(c-r)?new re({type:Z(22),value:"`",start:c,end:h,startLoc:o.start,endLoc:p}):new re({type:Z(8),value:"}",start:c,end:h,startLoc:o.start,endLoc:p}),24===a?(m=u-1,y=n(o.end,-1),f=null===l?null:l.slice(1,-1),g=new re({type:Z(22),value:"`",start:m,end:u,startLoc:y,endLoc:o.end})):(m=u-2,y=n(o.end,-2),f=null===l?null:l.slice(1,-2),g=new re({type:Z(23),value:"${",start:m,end:u,startLoc:y,endLoc:o.end})),t.splice(s,1,d,new re({type:Z(20),value:f,start:h,end:m,startLoc:p,endLoc:y}),g),s+=2;continue}i.type=Z(a)}}return t}(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,e=140,r=this.options.sourceType){if(t.sourceType=r,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[t,e]of Array.from(this.scope.undefinedExports))this.raise(v.ModuleExportUndefined,e,{localName:t});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return s=140===e?this.finishNode(t,"Program"):this.finishNodeAt(t,"Program",n(this.state.startLoc,-1)),s}stmtToDirective(t){const e=this.castNodeTo(t,"Directive"),r=this.castNodeTo(t.expression,"DirectiveLiteral"),s=r.value,i=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),n=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",n),this.addExtra(r,"expressionValue",s),e.value=r,delete t.expression,e}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}chStartsBindingIdentifier(t,e){if(at(t)){if(Oe.lastIndex=e,Oe.test(this.input)){const t=this.codePointAtPos(Oe.lastIndex);if(!ot(t)&&92!==t)return!1}return!0}return 92===t}chStartsBindingPattern(t){return 91===t||123===t}hasFollowingBindingAtom(){const t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return 123===e||this.chStartsBindingIdentifier(e,t)}allowsForUsing(){const{type:t,containsEsc:e,end:r}=this.lookahead();if(102===t&&!e){const t=this.lookaheadCharCodeSince(r);if(61!==t&&58!==t&&59!==t)return!1}return!(!W(t)||this.hasFollowingLineBreak()||(this.expectPlugin("explicitResourceManagement"),0))}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){const r=this.state.type,s=this.startNode(),i=!!(2&t),n=!!(4&t),a=1&t;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(46===this.lookaheadCharCode())break;return n||this.raise(this.state.strict?v.StrictFunction:this.options.annexB?v.SloppyFunctionAnnexB:v.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!i&&n);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,s):this.raise(v.UnexpectedLexicalDeclaration,s):this.raise(v.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),this.allowsUsing()?i||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(v.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;const t=this.nextTokenStart(),e=this.codePointAtPos(t);if(91!==e){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(e,t)&&123!==e)break}}case 75:i||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const t=this.state.value;return this.parseVarStatement(s,t)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{const t=this.lookaheadCharCode();if(40===t||46===t)break}case 82:{let t;return 8&this.optionFlags||a||this.raise(v.UnexpectedImportExport,this.state.startLoc),this.next(),t=83===r?this.parseImport(s):this.parseExport(s,e),this.assertModuleNodeAllowed(t),t}default:if(this.isAsyncFunction())return i||this.raise(v.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!i&&n)}const o=this.state.value,c=this.parseExpression();return W(r)&&"Identifier"===c.type&&this.eat(14)?this.parseLabeledStatement(s,o,c,t):this.parseExpressionStatement(s,c,e)}assertModuleNodeAllowed(t){8&this.optionFlags||this.inModule||this.raise(v.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(t,e,r){var s;return t&&(null!=(s=e.decorators)&&s.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(v.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),r&&this.resetStartLocationFromNode(r,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const e=[];do{e.push(this.parseDecorator())}while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(v.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(v.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const e=this.state.startLoc;let r;if(this.match(10)){const e=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(e,r);const s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(r,e),!1===this.getPluginOption("decorators","allowCallParenthesized")&&t.expression!==r&&this.raise(v.DecoratorArgumentsOutsideParentheses,s)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const t=this.startNodeAt(e);t.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),t.property=this.parsePrivateName()):t.property=this.parseIdentifier(!0),t.computed=!1,r=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(r,e)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,e){if(this.eat(10)){const r=this.startNodeAt(e);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let r;for(r=0;r<this.state.labels.length;++r){const s=this.state.labels[r];if(null==t.label||s.name===t.label.name){if(null!=s.kind&&(e||1===s.kind))break;if(t.label&&e)break}}if(r===this.state.labels.length){const r=e?"BreakStatement":"ContinueStatement";this.raise(v.IllegalBreakContinue,t,{type:r})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Ie),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Ie);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==e&&this.unexpected(e),this.parseFor(t,null);const r=this.isContextual(100);{const s=this.isAwaitUsing(),i=s||this.isContextual(107)&&this.allowsForUsing(),n=r&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||n){const r=this.startNode();let n;s?(n="await using",this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):n=this.state.value,this.next(),this.parseVar(r,!0,n);const a=this.finishNode(r,"VariableDeclaration"),o=this.match(58);return o&&i&&this.raise(v.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(t,a,e):(null!==e&&this.unexpected(e),this.parseFor(t,a))}}const s=this.isContextual(95),i=new he,n=this.parseExpression(!0,i),a=this.isContextual(102);if(a&&(r&&this.raise(v.ForOfLet,n),null===e&&s&&"Identifier"===n.type&&this.raise(v.ForOfAsync,n)),a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(n,!0);const r=a?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:r}),this.parseForIn(t,n,e)}return this.checkExpressionErrors(i,!0),null!==e&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,r){return this.next(),this.parseFunction(t,1|(r?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||2&this.optionFlags||this.raise(v.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];let r;this.expect(5),this.state.labels.push(Me),this.scope.enter(256);for(let t;!this.match(8);)if(this.match(61)||this.match(65)){const s=this.match(61);r&&this.finishNode(r,"SwitchCase"),e.push(r=this.startNode()),r.consequent=[],this.next(),s?r.test=this.parseExpression():(t&&this.raise(v.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),t=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(v.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===t.type?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,t.handler||t.finalizer||this.raise(v.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,r=!1){return this.next(),this.parseVar(t,!1,e,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Ie),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(v.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,r,s){for(const t of this.state.labels)t.name===e&&this.raise(v.LabelRedeclaration,r,{labelName:e});const i=(n=this.state.type)>=90&&n<=92?1:this.match(71)?2:null;var n;for(let e=this.state.labels.length-1;e>=0;e--){const r=this.state.labels[e];if(r.statementStart!==t.start)break;r.statementStart=this.sourceToOffsetPos(this.state.start),r.kind=i}return this.state.labels.push({name:e,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=8&s?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,r){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,r){const s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,r),e&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,r,s,i){const n=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?a:void 0,r,s,i)}parseBlockOrModuleBlockBody(t,e,r,s,i){const n=this.state.strict;let a=!1,o=!1;for(;!this.match(s);){const s=r?this.parseModuleItem():this.parseStatementListItem();if(e&&!o){if(this.isValidDirective(s)){const t=this.stmtToDirective(s);e.push(t),a||"use strict"!==t.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}t.push(s)}null==i||i.call(this,a),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,r){const s=this.match(58);return this.next(),s?null!==r&&this.unexpected(r):t.await=null!==r,"VariableDeclaration"!==e.type||null==e.declarations[0].init||s&&this.options.annexB&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(v.ForInOfLoopInitializer,e,{type:s?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===e.type&&this.raise(v.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,e,r,s=!1){const i=t.declarations=[];for(t.kind=r;;){const t=this.startNode();if(this.parseVarId(t,r),t.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==t.init||s||("Identifier"===t.id.type||e&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(t,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){const r=this.parseBindingAtom();"using"!==e&&"await using"!==e||"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(v.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===e?5:8201),t.id=r}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){const r=2&e,s=!!(1&e),i=s&&!(4&e),n=!!(8&e);this.initFunction(t,n),this.match(55)&&(r&&this.raise(v.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(i));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Rt(n,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),s&&!r&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=a,t}parseFunctionId(t){return t||W(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(new ae(3)),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,r){this.next();const s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,r),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return"Identifier"===t.type&&"constructor"===t.name||"StringLiteral"===t.type&&"constructor"===t.value}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();const r={hadConstructor:!1,hadSuperClass:t};let s=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(v.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}const t=this.startNode();s.length&&(t.decorators=s,this.resetStartLocationFromNode(t,s[0]),s=[]),this.parseClassMember(i,t,r),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(v.DecoratorConstructor,t)}})),this.state.strict=e,this.next(),s.length)throw this.raise(v.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,e){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const s=e;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}if(this.isClassProperty()){const s=e;return s.computed=!1,s.key=r,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(t,e,r){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,r,s)}parseClassMemberWithIsStatic(t,e,r,s){const i=e,n=e,a=e,o=e,c=e,l=i,u=i;if(e.static=s,this.parsePropertyNamePrefixOperator(e),this.eat(55)){l.kind="method";const e=this.match(139);return this.parseClassElementName(l),this.parsePostMemberNameModifiers(l),e?void this.pushClassPrivateMethod(t,n,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsGenerator,i.key),void this.pushClassMethod(t,i,!0,!1,!1,!1))}const h=!this.state.containsEsc&&W(this.state.type),p=this.parseClassElementName(e),d=h?p.name:null,f=this.isPrivateName(p),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind="method",f)return void this.pushClassPrivateMethod(t,n,!1,!1);const s=this.isNonstaticConstructor(i);let a=!1;s&&(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(v.DuplicateConstructor,p),s&&this.hasPlugin("typescript")&&e.override&&this.raise(v.OverrideOnConstructor,p),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(t,i,!1,!1,s,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);const e=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(t,c,e)}else{this.resetPreviousNodeTrailingComments(p),l.kind=d;const e=this.match(139);this.parseClassElementName(i),e?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsAccessor,i.key),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(p);const e=this.eat(55);u.optional&&this.unexpected(m),l.kind="method";const r=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),r?this.pushClassPrivateMethod(t,n,e,!0):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsAsync,i.key),this.pushClassMethod(t,i,e,!0,!1,!1))}}parseClassElementName(t){const{type:e,value:r}=this.state;if(132!==e&&134!==e||!t.static||"prototype"!==r||this.raise(v.StaticPrototype,this.state.startLoc),139===e){"constructor"===r&&this.raise(v.ConstructorClassPrivateField,this.state.startLoc);const e=this.parsePrivateName();return t.key=e,e}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var r;this.scope.enter(208);const s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=e.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(e,"StaticBlock")),null!=(r=e.decorators)&&r.length&&this.raise(v.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(v.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){const r=this.parseClassPrivateProperty(e);t.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(t,e,r){r||e.computed||!this.nameIsConstructor(e.key)||this.raise(v.ConstructorClassField,e.key);const s=this.parseClassAccessorProperty(e);t.body.push(s),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,e,r,s,i,n){t.body.push(this.parseMethod(e,r,s,i,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,r,s){const i=this.parseMethod(e,r,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);const n="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(le()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,r,s=8331){if(W(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,s);else{if(!r&&e)throw this.raise(v.MissingClassName,this.state.startLoc);t.id=null}}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){const r=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,r),i=!s||this.eat(12),n=i&&this.eatExportStar(t),a=n&&this.maybeParseExportNamespaceSpecifier(t),o=i&&(!a||this.eat(12)),c=s||n;if(n&&!a){if(s&&this.unexpected(),e)throw this.raise(v.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}const l=this.maybeParseExportNamedSpecifiers(t);let u;if(s&&i&&!n&&!l&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),c||l){if(u=!1,e)throw this.raise(v.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else u=this.maybeParseExportDeclaration(t);if(c||l||u){var h;const r=t;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(h=r.declaration)?void 0:h.type))this.maybeTakeDecorators(e,r.declaration,r);else if(e)throw this.raise(v.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=t,s=this.parseExportDefaultExpression();if(r.declaration=s,"ClassDeclaration"===s.type)this.maybeTakeDecorators(e,s,r);else if(e)throw this.raise(v.UnsupportedDecoratorExport,t);return this.checkExport(r,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==e?void 0:e.loc.start);const r=e||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e;null!=(e=t).specifiers||(e.specifiers=[]);const r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const e=t;e.specifiers||(e.specifiers=[]);const r="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(r)),e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.hasPlugin("explicitResourceManagement")&&(this.isUsing()||this.isAwaitUsing()))throw this.raise(v.UnsupportedDefaultExport,this.state.startLoc);const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(W(t)){if(95===t&&!this.state.containsEsc||100===t)return!1;if((130===t||129===t)&&!this.state.containsEsc){const{type:t}=this.lookahead();if(W(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const e=this.nextTokenStart(),r=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||W(this.state.type)&&r)return!0;if(this.match(65)&&r){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;if(26===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")))return!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),!0;if(this.hasPlugin("explicitResourceManagement")){if(this.isUsing())return this.raise(v.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(v.UsingDeclarationExport,this.state.startLoc),!0}return 74===t||75===t||68===t||80===t||this.isLet()||this.isAsyncFunction()}checkExport(t,e,r,s){var i;if(e)if(r){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||null!=(n=e.extra)&&n.parenthesized||this.raise(v.ExportDefaultFromAsIdentifier,e)}}else if(null!=(i=t.specifiers)&&i.length)for(const e of t.specifiers){const{exported:t}=e,r="Identifier"===t.type?t.name:t.value;if(this.checkDuplicateExports(e,r),!s&&e.local){const{local:t}=e;"Identifier"!==t.type?this.raise(v.ExportBindingIsString,e,{localName:t.value,exportName:r}):(this.checkReservedWord(t.name,t.loc.start,!0,!1),this.scope.checkLocalExport(t))}}else if(t.declaration){const e=t.declaration;if("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type){const{id:r}=e;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(t,r.name)}else if("VariableDeclaration"===e.type)for(const t of e.declarations)this.checkDeclaration(t.id)}}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(const e of t.properties)this.checkDeclaration(e);else if("ArrayPattern"===t.type)for(const e of t.elements)e&&this.checkDeclaration(e);else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&("default"===e?this.raise(v.DuplicateDefaultExport,t):this.raise(v.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){const e=[];let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const s=this.isContextual(130),i=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,i,t,s))}return e}parseExportSpecifier(t,e,r,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const t=this.parseStringLiteral(this.state.value),e=Le.exec(t.value);return e&&this.raise(v.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return null!=t.assertions&&t.assertions.some((({key:t,value:e})=>"json"===e.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)))}checkImportReflection(t){const{specifiers:e}=t,r=1===e.length?e[0].type:null;if("source"===t.phase)"ImportDefaultSpecifier"!==r&&this.raise(v.SourcePhaseImportRequiresDefault,e[0].loc.start);else if("defer"===t.phase)"ImportNamespaceSpecifier"!==r&&this.raise(v.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var s;"ImportDefaultSpecifier"!==r&&this.raise(v.ImportReflectionNotBinding,e[0].loc.start),(null==(s=t.assertions)?void 0:s.length)>0&&this.raise(v.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&"ExportAllDeclaration"!==t.type){const{specifiers:e}=t;if(null!=e){const t=e.find((t=>{let e;if("ExportSpecifier"===t.type?e=t.local:"ImportSpecifier"===t.type&&(e=t.imported),void 0!==e)return"Identifier"===e.type?"default"!==e.name:"default"!==e.value}));void 0!==t&&this.raise(v.ImportJSONBindingNotDefault,t.loc.start)}}}isPotentialImportPhase(t){return!t&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(t,e,r,s){e||("module"===r?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;const r=this.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;return(z(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.applyImportPhase(t,e,s,r.loc.start),null):(this.applyImportPhase(t,e,null),this.createIdentifier(r,s))}isPrecedingIdImportPhase(t){const{type:e}=this.state;return W(e)?98!==e||102===this.lookaheadCharCode():12!==e}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];const r=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),s=r&&this.maybeParseStarImportSpecifier(t);return r&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return null!=t.specifiers||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,r){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}finishImportSpecifier(t,e,r=8201){return this.checkLVal(t.local,{type:e},r),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);const t=[],e=new Set;do{if(this.match(8))break;const r=this.startNode(),s=this.state.value;if(e.has(s)&&this.raise(v.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),e.add(s),this.match(134)?r.key=this.parseStringLiteral(s):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],e=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(v.ModuleAttributeDifferentFromType,r.key),e.has(r.key.name)&&this.raise(v.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),e.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(e=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):e=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(v.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),e=this.parseImportAttributes()):e=[];!r&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){const r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!z(this.state.type)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(55)){const e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(v.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const r=this.startNode(),s=this.match(134),i=this.isContextual(130);r.imported=this.parseModuleExportName();const n=this.parseImportSpecifier(r,s,"type"===t.importKind||"typeof"===t.importKind,i,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,r,s,i){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:r}=t;if(e)throw this.raise(v.ImportBindingIsString,t,{importName:r.value});this.checkReservedWord(r.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(r))}return this.finishImportSpecifier(t,"ImportSpecifier",i)}isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}class Fe extends De{constructor(t,e,r){super(t=function(t){const e={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==t)return e;if(null!=t.annexB&&!1!==t.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const r of Object.keys(e))null!=t[r]&&(e[r]=t[r]);if(1===e.startLine)null==t.startIndex&&e.startColumn>0?e.startIndex=e.startColumn:null==t.startColumn&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((null==t.startColumn||null==t.startIndex)&&null!=t.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return e}(t),e),this.options=t,this.initializeScopes(),this.plugins=r,this.filename=t.sourceFilename,this.startIndex=t.startIndex;let s=0;t.allowAwaitOutsideFunction&&(s|=1),t.allowReturnOutsideFunction&&(s|=2),t.allowImportExportEverywhere&&(s|=8),t.allowSuperOutsideMethod&&(s|=16),t.allowUndeclaredExports&&(s|=64),t.allowNewTargetOutsideFunction&&(s|=4),t.allowYieldOutsideFunction&&(s|=32),t.ranges&&(s|=128),t.tokens&&(s|=256),t.createImportExpressions&&(s|=512),t.createParenthesizedExpressions&&(s|=1024),t.errorRecovery&&(s|=2048),t.attachComment&&(s|=4096),t.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return gt}parse(){this.enterInitialScopes();const t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}const je=function(t){const e={};for(const r of Object.keys(t))e[r]=Z(t[r]);return e}(H);function Re(t,e){let r=Fe;const s=new Map;if(null!=t&&t.plugins){for(const e of t.plugins){let t,r;"string"==typeof e?t=e:[t,r]=e,s.has(t)||s.set(t,r||{})}!function(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=t.get("decorators").decoratorsBeforeExport;if(null!=e&&"boolean"!=typeof e)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=t.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;const s=t.get("pipelineOperator").proposal;if(!ke.includes(s)){const t=ke.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${t}.`)}if("hack"===s){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const e=t.get("pipelineOperator").topicToken;if(!_e.includes(e)){const t=_e.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${t}.`)}var r;if("#"===e&&"hash"===(null==(r=t.get("recordAndTuple"))?void 0:r.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}else if("smart"===s&&"hash"===(null==(e=t.get("recordAndTuple"))?void 0:e.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("deprecatedImportAssert")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==t.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAssertions")&&t.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&t.set("deprecatedImportAssert",{}),t.has("recordAndTuple")){const e=t.get("recordAndTuple").syntaxType;if(null!=e){const t=["hash","bar"];if(!t.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+t.map((t=>`'${t}'`)).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){const t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(t.has("optionalChainingAssign")&&"2023-07"!==t.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(s),r=function(t){const e=[];for(const r of Ce)t.has(r)&&e.push(r);const r=e.join("|");let s=Be.get(r);if(!s){s=Fe;for(const t of e)s=Ee[t](s);Be.set(r,s)}return s}(s)}return new r(t,e,s)}const Be=new Map;e.parse=function(t,e){var r;if("unambiguous"!==(null==(r=e)?void 0:r.sourceType))return Re(e,t).parse();e=Object.assign({},e);try{e.sourceType="module";const r=Re(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Re(e,t).parse()}catch(t){}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",Re(e,t).parse()}catch(t){}throw r}},e.parseExpression=function(t,e){const r=Re(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=je},6963:function(t,e,r){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},7042:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}})},7050:function(t,e,r){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(9420))},7545:(t,e,r)=>{"use strict";function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}r.d(e,{A:()=>s})},7696:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(9420))},8028:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({explicit:[r(2621),r(5853),r(1256)]})},8739:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({include:[r(8028)],implicit:[r(5137),r(1548),r(6539),r(6076)]})},8774:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({include:[r(8739)]})},9142:(t,e,r)=>{"use strict";var s=r(5506),i=r(6384);function n(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}t.exports.Type=r(5417),t.exports.Schema=r(2290),t.exports.FAILSAFE_SCHEMA=r(8028),t.exports.JSON_SCHEMA=r(8739),t.exports.CORE_SCHEMA=r(8774),t.exports.DEFAULT_SAFE_SCHEMA=r(9590),t.exports.DEFAULT_FULL_SCHEMA=r(2846),t.exports.load=s.load,t.exports.loadAll=s.loadAll,t.exports.safeLoad=s.safeLoad,t.exports.safeLoadAll=s.safeLoadAll,t.exports.dump=i.dump,t.exports.safeDump=i.safeDump,t.exports.YAMLException=r(1796),t.exports.MINIMAL_SCHEMA=r(8028),t.exports.SAFE_SCHEMA=r(9590),t.exports.DEFAULT_SCHEMA=r(2846),t.exports.scan=n("scan"),t.exports.parse=n("parse"),t.exports.compose=n("compose"),t.exports.addConstructor=n("addConstructor")},9280:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(t){return void 0===t},represent:function(){return""}})},9348:(t,e,r)=>{"use strict";var s=r(3780);function i(t,e,r,s,i){this.name=t,this.buffer=e,this.position=r,this.line=s,this.column=i}i.prototype.getSnippet=function(t,e){var r,i,n,a,o;if(!this.buffer)return null;for(t=t||4,e=e||75,r="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>e/2-1){r=" ... ",i+=5;break}for(n="",a=this.position;a<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>e/2-1){n=" ... ",a-=5;break}return o=this.buffer.slice(i,a),s.repeat(" ",t)+r+o+n+"\n"+s.repeat(" ",t+this.position-i+r.length)+"^"},i.prototype.toString=function(t){var e,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet())&&(r+=":\n"+e),r},t.exports=i},9420:function(t,e,r){(t=r.nmd(t)).exports=function(){"use strict";var e,s;function i(){return e.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function l(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var r,s=[],i=t.length;for(r=0;r<i;++r)s.push(e(t[r],r));return s}function d(t,e){for(var r in e)o(e,r)&&(t[r]=e[r]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,r,s){return Oe(t,e,r,s,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function y(t){var e=null,r=!1,i=t._d&&!isNaN(t._d.getTime());return i&&(e=m(t),r=s.call(e.parsedDateParts,(function(t){return null!=t})),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?i:(t._isValid=i,t._isValid)}function g(t){var e=f(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}s=Array.prototype.some?Array.prototype.some:function(t){var e,r=Object(this),s=r.length>>>0;for(e=0;e<s;e++)if(e in r&&t.call(this,r[e],e,r))return!0;return!1};var v=i.momentProperties=[],x=!1;function b(t,e){var r,s,i,n=v.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=m(e)),l(e._locale)||(t._locale=e._locale),n>0)for(r=0;r<n;r++)l(i=e[s=v[r]])||(t[s]=i);return t}function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,i.updateOffset(this),x=!1)}function P(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function T(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var r=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),r){var s,n,a,c=[],l=arguments.length;for(n=0;n<l;n++){if(s="","object"==typeof arguments[n]){for(a in s+="\n["+n+"] ",arguments[0])o(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[n];c.push(s)}T(t+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),r=!1}return e.apply(this,arguments)}),e)}var A,k={};function _(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),k[t]||(T(e),k[t]=!0)}function E(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var r,s=d({},t);for(r in e)o(e,r)&&(a(t[r])&&a(e[r])?(s[r]={},d(s[r],t[r]),d(s[r],e[r])):null!=e[r]?s[r]=e[r]:delete s[r]);for(r in t)o(t,r)&&!o(e,r)&&a(t[r])&&(s[r]=d({},s[r]));return s}function N(t){null!=t&&this.set(t)}function I(t,e,r){var s=""+Math.abs(t),i=e-s.length;return(t>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,A=Object.keys?Object.keys:function(t){var e,r=[];for(e in t)o(t,e)&&r.push(e);return r};var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},D={};function F(t,e,r,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),t&&(D[t]=i),e&&(D[e[0]]=function(){return I(i.apply(this,arguments),e[1],e[2])}),r&&(D[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function j(t,e){return t.isValid()?(e=R(e,t.localeData()),O[e]=O[e]||function(t){var e,r,s,i=t.match(M);for(e=0,r=i.length;e<r;e++)D[i[e]]?i[e]=D[i[e]]:i[e]=(s=i[e]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(e){var s,n="";for(s=0;s<r;s++)n+=E(i[s])?i[s].call(e,t):i[s];return n}}(e),O[e](t)):t.localeData().invalidDate()}function R(t,e){var r=5;function s(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;r>=0&&L.test(t);)t=t.replace(L,s),L.lastIndex=0,r-=1;return t}var B={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(t){return"string"==typeof t?B[t]||B[t.toLowerCase()]:void 0}function U(t){var e,r,s={};for(r in t)o(t,r)&&(e=Y(r))&&(s[e]=t[r]);return s}var H,W={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},z=/\d/,V=/\d\d/,q=/\d{3}/,$=/\d{4}/,K=/[+-]?\d{6}/,J=/\d\d?/,G=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,Q=/\d{1,4}/,tt=/[+-]?\d{1,6}/,et=/\d+/,rt=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,nt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,at=/^[1-9]\d?/,ot=/^([1-9]\d|\d)/;function ct(t,e,r){H[t]=E(e)?e:function(t,s){return t&&r?r:e}}function lt(t,e){return o(H,t)?H[t](e._strict,e._locale):new RegExp(ut(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,r,s,i){return e||r||s||i}))))}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ht(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function pt(t){var e=+t,r=0;return 0!==e&&isFinite(e)&&(r=ht(e)),r}H={};var dt={};function ft(t,e){var r,s,i=e;for("string"==typeof t&&(t=[t]),u(e)&&(i=function(t,r){r[e]=pt(t)}),s=t.length,r=0;r<s;r++)dt[t[r]]=i}function mt(t,e){ft(t,(function(t,r,s,i){s._w=s._w||{},e(t,s._w,s,i)}))}function yt(t,e,r){null!=e&&o(dt,t)&&dt[t](e,r._a,r,t)}function gt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,xt=1,bt=2,wt=3,Pt=4,Tt=5,St=6,At=7,kt=8;function _t(t){return gt(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?I(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ct("Y",rt),ct("YY",J,V),ct("YYYY",Q,$),ct("YYYYY",tt,K),ct("YYYYYY",tt,K),ft(["YYYYY","YYYYYY"],vt),ft("YYYY",(function(t,e){e[vt]=2===t.length?i.parseTwoDigitYear(t):pt(t)})),ft("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return pt(t)+(pt(t)>68?1900:2e3)};var Et,Ct=Nt("FullYear",!0);function Nt(t,e){return function(r){return null!=r?(Mt(this,t,r),i.updateOffset(this,e),this):It(this,t)}}function It(t,e){if(!t.isValid())return NaN;var r=t._d,s=t._isUTC;switch(e){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Mt(t,e,r){var s,i,n,a,o;if(t.isValid()&&!isNaN(r)){switch(s=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(i?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(i?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(i?s.setUTCHours(r):s.setHours(r));case"Date":return void(i?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}n=r,a=t.month(),o=29!==(o=t.date())||1!==a||gt(n)?o:28,i?s.setUTCFullYear(n,a,o):s.setFullYear(n,a,o)}}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=(e%12+12)%12;return t+=(e-r)/12,1===r?gt(t)?29:28:31-r%7%2}Et=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),ct("M",J,at),ct("MM",J,V),ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),ct("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[xt]=pt(t)-1})),ft(["MMM","MMMM"],(function(t,e,r,s){var i=r._locale.monthsParse(t,s,r._strict);null!=i?e[xt]=i:m(r).invalidMonth=t}));var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ft=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt=nt,Rt=nt;function Bt(t,e,r){var s,i,n,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)n=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(n,"").toLocaleLowerCase();return r?"MMM"===e?-1!==(i=Et.call(this._shortMonthsParse,a))?i:null:-1!==(i=Et.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Et.call(this._shortMonthsParse,a))||-1!==(i=Et.call(this._longMonthsParse,a))?i:null:-1!==(i=Et.call(this._longMonthsParse,a))||-1!==(i=Et.call(this._shortMonthsParse,a))?i:null}function Yt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=pt(e);else if(!u(e=t.localeData().monthsParse(e)))return t;var r=e,s=t.date();return s=s<29?s:Math.min(s,Lt(t.year(),r)),t._isUTC?t._d.setUTCMonth(r,s):t._d.setMonth(r,s),t}function Ut(t){return null!=t?(Yt(this,t),i.updateOffset(this,!0),this):It(this,"Month")}function Ht(){function t(t,e){return e.length-t.length}var e,r,s,i,n=[],a=[],o=[];for(e=0;e<12;e++)r=f([2e3,e]),s=ut(this.monthsShort(r,"")),i=ut(this.months(r,"")),n.push(s),a.push(i),o.push(i),o.push(s);n.sort(t),a.sort(t),o.sort(t),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Wt(t,e,r,s,i,n,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,r,s,i,n,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,r,s,i,n,a),o}function zt(t){var e,r;return t<100&&t>=0?((r=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Vt(t,e,r){var s=7+e-r;return-(7+zt(t,0,s).getUTCDay()-e)%7+s-1}function qt(t,e,r,s,i){var n,a,o=1+7*(e-1)+(7+r-s)%7+Vt(t,s,i);return o<=0?a=_t(n=t-1)+o:o>_t(t)?(n=t+1,a=o-_t(t)):(n=t,a=o),{year:n,dayOfYear:a}}function $t(t,e,r){var s,i,n=Vt(t.year(),e,r),a=Math.floor((t.dayOfYear()-n-1)/7)+1;return a<1?s=a+Kt(i=t.year()-1,e,r):a>Kt(t.year(),e,r)?(s=a-Kt(t.year(),e,r),i=t.year()+1):(i=t.year(),s=a),{week:s,year:i}}function Kt(t,e,r){var s=Vt(t,e,r),i=Vt(t+1,e,r);return(_t(t)-s+i)/7}function Jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ct("w",J,at),ct("ww",J,V),ct("W",J,at),ct("WW",J,V),mt(["w","ww","W","WW"],(function(t,e,r,s){e[s.substr(0,1)]=pt(t)})),F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ct("d",J),ct("e",J),ct("E",J),ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),mt(["dd","ddd","dddd"],(function(t,e,r,s){var i=r._locale.weekdaysParse(t,s,r._strict);null!=i?e.d=i:m(r).invalidWeekday=t})),mt(["d","e","E"],(function(t,e,r,s){e[s]=pt(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qt=nt,te=nt,ee=nt;function re(t,e,r){var s,i,n,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)n=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(n,"").toLocaleLowerCase();return r?"dddd"===e?-1!==(i=Et.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Et.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._shortWeekdaysParse,a))||-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Et.call(this._shortWeekdaysParse,a))||-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Et.call(this._minWeekdaysParse,a))||-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._shortWeekdaysParse,a))?i:null}function se(){function t(t,e){return e.length-t.length}var e,r,s,i,n,a=[],o=[],c=[],l=[];for(e=0;e<7;e++)r=f([2e3,1]).day(e),s=ut(this.weekdaysMin(r,"")),i=ut(this.weekdaysShort(r,"")),n=ut(this.weekdays(r,"")),a.push(s),o.push(i),c.push(n),l.push(s),l.push(i),l.push(n);a.sort(t),o.sort(t),c.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ie(){return this.hours()%12||12}function ne(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ae(t,e){return e._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,ie),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+ie.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+ie.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),ne("a",!0),ne("A",!1),ct("a",ae),ct("A",ae),ct("H",J,ot),ct("h",J,at),ct("k",J,at),ct("HH",J,V),ct("hh",J,V),ct("kk",J,V),ct("hmm",G),ct("hmmss",X),ct("Hmm",G),ct("Hmmss",X),ft(["H","HH"],wt),ft(["k","kk"],(function(t,e,r){var s=pt(t);e[wt]=24===s?0:s})),ft(["a","A"],(function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t})),ft(["h","hh"],(function(t,e,r){e[wt]=pt(t),m(r).bigHour=!0})),ft("hmm",(function(t,e,r){var s=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s)),m(r).bigHour=!0})),ft("hmmss",(function(t,e,r){var s=t.length-4,i=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s,2)),e[Tt]=pt(t.substr(i)),m(r).bigHour=!0})),ft("Hmm",(function(t,e,r){var s=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s))})),ft("Hmmss",(function(t,e,r){var s=t.length-4,i=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s,2)),e[Tt]=pt(t.substr(i))}));var oe,ce=Nt("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Dt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Zt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ue={},he={};function pe(t,e){var r,s=Math.min(t.length,e.length);for(r=0;r<s;r+=1)if(t[r]!==e[r])return r;return s}function de(t){return t?t.toLowerCase().replace("_","-"):t}function fe(e){var s=null;if(void 0===ue[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{s=oe._abbr,r(9844)("./"+e),me(s)}catch(t){ue[e]=null}return ue[e]}function me(t,e){var r;return t&&((r=l(e)?ge(t):ye(t,e))?oe=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),oe._abbr}function ye(t,e){if(null!==e){var r,s=le;if(e.abbr=t,null!=ue[t])_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ue[t]._config;else if(null!=e.parentLocale)if(null!=ue[e.parentLocale])s=ue[e.parentLocale]._config;else{if(null==(r=fe(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;s=r._config}return ue[t]=new N(C(s,e)),he[t]&&he[t].forEach((function(t){ye(t.name,t.config)})),me(t),ue[t]}return delete ue[t],null}function ge(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return oe;if(!n(t)){if(e=fe(t))return e;t=[t]}return function(t){for(var e,r,s,i,n=0;n<t.length;){for(e=(i=de(t[n]).split("-")).length,r=(r=de(t[n+1]))?r.split("-"):null;e>0;){if(s=fe(i.slice(0,e).join("-")))return s;if(r&&r.length>=e&&pe(i,r)>=e-1)break;e--}n++}return oe}(t)}function ve(t){var e,r=t._a;return r&&-2===m(t).overflow&&(e=r[xt]<0||r[xt]>11?xt:r[bt]<1||r[bt]>Lt(r[vt],r[xt])?bt:r[wt]<0||r[wt]>24||24===r[wt]&&(0!==r[Pt]||0!==r[Tt]||0!==r[St])?wt:r[Pt]<0||r[Pt]>59?Pt:r[Tt]<0||r[Tt]>59?Tt:r[St]<0||r[St]>999?St:-1,m(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),m(t)._overflowWeeks&&-1===e&&(e=At),m(t)._overflowWeekday&&-1===e&&(e=kt),m(t).overflow=e),t}var xe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/Z|[+-]\d\d(?::?\d\d)?/,Pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Te=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Se=/^\/?Date\((-?\d+)/i,Ae=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _e(t){var e,r,s,i,n,a,o=t._i,c=xe.exec(o)||be.exec(o),l=Pe.length,u=Te.length;if(c){for(m(t).iso=!0,e=0,r=l;e<r;e++)if(Pe[e][1].exec(c[1])){i=Pe[e][0],s=!1!==Pe[e][2];break}if(null==i)return void(t._isValid=!1);if(c[3]){for(e=0,r=u;e<r;e++)if(Te[e][1].exec(c[3])){n=(c[2]||" ")+Te[e][0];break}if(null==n)return void(t._isValid=!1)}if(!s&&null!=n)return void(t._isValid=!1);if(c[4]){if(!we.exec(c[4]))return void(t._isValid=!1);a="Z"}t._f=i+(n||"")+(a||""),Me(t)}else t._isValid=!1}function Ee(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ce(t){var e,r,s,i,n,a,o,c,l=Ae.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(r=l[4],s=l[3],i=l[2],n=l[5],a=l[6],o=l[7],c=[Ee(r),Dt.indexOf(s),parseInt(i,10),parseInt(n,10),parseInt(a,10)],o&&c.push(parseInt(o,10)),e=c,!function(t,e,r){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(r).weekdayMismatch=!0,r._isValid=!1,!1)}(l[1],e,t))return;t._a=e,t._tzm=function(t,e,r){if(t)return ke[t];if(e)return 0;var s=parseInt(r,10),i=s%100;return(s-i)/100*60+i}(l[8],l[9],l[10]),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Ne(t,e,r){return null!=t?t:null!=e?e:r}function Ie(t){var e,r,s,n,a,o=[];if(!t._d){for(s=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[xt]&&function(t){var e,r,s,i,n,a,o,c,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(n=1,a=4,r=Ne(e.GG,t._a[vt],$t(De(),1,4).year),s=Ne(e.W,1),((i=Ne(e.E,1))<1||i>7)&&(c=!0)):(n=t._locale._week.dow,a=t._locale._week.doy,l=$t(De(),n,a),r=Ne(e.gg,t._a[vt],l.year),s=Ne(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(c=!0):null!=e.e?(i=e.e+n,(e.e<0||e.e>6)&&(c=!0)):i=n),s<1||s>Kt(r,n,a)?m(t)._overflowWeeks=!0:null!=c?m(t)._overflowWeekday=!0:(o=qt(r,s,i,n,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(a=Ne(t._a[vt],s[vt]),(t._dayOfYear>_t(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),r=zt(a,0,t._dayOfYear),t._a[xt]=r.getUTCMonth(),t._a[bt]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=s[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[Pt]&&0===t._a[Tt]&&0===t._a[St]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?zt:Wt).apply(null,o),n=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==n&&(m(t).weekdayMismatch=!0)}}function Me(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],m(t).empty=!0;var e,r,s,n,a,o,c,l=""+t._i,u=l.length,h=0;for(c=(s=R(t._f,t._locale).match(M)||[]).length,e=0;e<c;e++)n=s[e],(r=(l.match(lt(n,t))||[])[0])&&((a=l.substr(0,l.indexOf(r))).length>0&&m(t).unusedInput.push(a),l=l.slice(l.indexOf(r)+r.length),h+=r.length),D[n]?(r?m(t).empty=!1:m(t).unusedTokens.push(n),yt(n,r,t)):t._strict&&!r&&m(t).unusedTokens.push(n);m(t).charsLeftOver=u-h,l.length>0&&m(t).unusedInput.push(l),t._a[wt]<=12&&!0===m(t).bigHour&&t._a[wt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,r){var s;return null==r?e:null!=t.meridiemHour?t.meridiemHour(e,r):null!=t.isPM?((s=t.isPM(r))&&e<12&&(e+=12),s||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),null!==(o=m(t).era)&&(t._a[vt]=t._locale.erasConvertYear(o,t._a[vt])),Ie(t),ve(t)}else Ce(t);else _e(t)}function Le(t){var e=t._i,r=t._f;return t._locale=t._locale||ge(t._l),null===e||void 0===r&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),P(e)?new w(ve(e)):(h(e)?t._d=e:n(r)?function(t){var e,r,s,i,n,a,o=!1,c=t._f.length;if(0===c)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<c;i++)n=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Me(e),y(e)&&(a=!0),n+=m(e).charsLeftOver,n+=10*m(e).unusedTokens.length,m(e).score=n,o?n<s&&(s=n,r=e):(null==s||n<s||a)&&(s=n,r=e,a&&(o=!0));d(t,r||e)}(t):r?Me(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Se.exec(t._i);null===e?(_e(t),!1===t._isValid&&(delete t._isValid,Ce(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):n(e)?(t._a=p(e.slice(0),(function(t){return parseInt(t,10)})),Ie(t)):a(e)?function(t){if(!t._d){var e=U(t._i),r=void 0===e.day?e.date:e.day;t._a=p([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ie(t)}}(t):u(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),y(t)||(t._d=null),t))}function Oe(t,e,r,s,i){var o,l={};return!0!==e&&!1!==e||(s=e,e=void 0),!0!==r&&!1!==r||(s=r,r=void 0),(a(t)&&c(t)||n(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=r,l._i=t,l._f=e,l._strict=s,(o=new w(ve(Le(l))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function De(t,e,r,s){return Oe(t,e,r,s,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Fe=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),je=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}));function Re(t,e){var r,s;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return De();for(r=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](r)||(r=e[s]);return r}var Be=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ye(t){var e=U(t),r=e.year||0,s=e.quarter||0,i=e.month||0,n=e.week||e.isoWeek||0,a=e.day||0,c=e.hour||0,l=e.minute||0,u=e.second||0,h=e.millisecond||0;this._isValid=function(t){var e,r,s=!1,i=Be.length;for(e in t)if(o(t,e)&&(-1===Et.call(Be,e)||null!=t[e]&&isNaN(t[e])))return!1;for(r=0;r<i;++r)if(t[Be[r]]){if(s)return!1;parseFloat(t[Be[r]])!==pt(t[Be[r]])&&(s=!0)}return!0}(e),this._milliseconds=+h+1e3*u+6e4*l+1e3*c*60*60,this._days=+a+7*n,this._months=+i+3*s+12*r,this._data={},this._locale=ge(),this._bubble()}function Ue(t){return t instanceof Ye}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,e){F(t,0,0,(function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+I(~~(t/60),2)+e+I(~~t%60,2)}))}We("Z",":"),We("ZZ",""),ct("Z",it),ct("ZZ",it),ft(["Z","ZZ"],(function(t,e,r){r._useUTC=!0,r._tzm=Ve(it,t)}));var ze=/([\+\-]|\d\d)/gi;function Ve(t,e){var r,s,i=(e||"").match(t);return null===i?null:0===(s=60*(r=((i[i.length-1]||[])+"").match(ze)||["-",0,0])[1]+pt(r[2]))?0:"+"===r[0]?s:-s}function qe(t,e){var r,s;return e._isUTC?(r=e.clone(),s=(P(t)||h(t)?t.valueOf():De(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),i.updateOffset(r,!1),r):De(t).local()}function $e(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Je=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ge=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var r,s,i,n,a,c,l=t,h=null;return Ue(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(l={},e?l[e]=+t:l.milliseconds=+t):(h=Je.exec(t))?(r="-"===h[1]?-1:1,l={y:0,d:pt(h[bt])*r,h:pt(h[wt])*r,m:pt(h[Pt])*r,s:pt(h[Tt])*r,ms:pt(He(1e3*h[St]))*r}):(h=Ge.exec(t))?(r="-"===h[1]?-1:1,l={y:Ze(h[2],r),M:Ze(h[3],r),w:Ze(h[4],r),d:Ze(h[5],r),h:Ze(h[6],r),m:Ze(h[7],r),s:Ze(h[8],r)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(n=De(l.from),a=De(l.to),i=n.isValid()&&a.isValid()?(a=qe(a,n),n.isBefore(a)?c=Qe(n,a):((c=Qe(a,n)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),s=new Ye(l),Ue(t)&&o(t,"_locale")&&(s._locale=t._locale),Ue(t)&&o(t,"_isValid")&&(s._isValid=t._isValid),s}function Ze(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function Qe(t,e){var r={};return r.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function tr(t,e){return function(r,s){var i;return null===s||isNaN(+s)||(_(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=s,s=i),er(this,Xe(r,s),t),this}}function er(t,e,r,s){var n=e._milliseconds,a=He(e._days),o=He(e._months);t.isValid()&&(s=null==s||s,o&&Yt(t,It(t,"Month")+o*r),a&&Mt(t,"Date",It(t,"Date")+a*r),n&&t._d.setTime(t._d.valueOf()+n*r),s&&i.updateOffset(t,a||o))}Xe.fn=Ye.prototype,Xe.invalid=function(){return Xe(NaN)};var rr=tr(1,"add"),sr=tr(-1,"subtract");function ir(t){return"string"==typeof t||t instanceof String}function nr(t){return P(t)||h(t)||ir(t)||u(t)||function(t){var e=n(t),r=!1;return e&&(r=0===t.filter((function(e){return!u(e)&&ir(t)})).length),e&&r}(t)||function(t){var e,r=a(t)&&!c(t),s=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n=i.length;for(e=0;e<n;e+=1)s=s||o(t,i[e]);return r&&s}(t)||null==t}function ar(t,e){if(t.date()<e.date())return-ar(e,t);var r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return-(r+(e-s<0?(e-s)/(s-t.clone().add(r-1,"months")):(e-s)/(t.clone().add(r+1,"months")-s)))||0}function or(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ge(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function lr(){return this._locale}var ur=1e3,hr=6e4,pr=36e5,dr=126227808e5;function fr(t,e){return(t%e+e)%e}function mr(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-dr:new Date(t,e,r).valueOf()}function yr(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-dr:Date.UTC(t,e,r)}function gr(t,e){return e.erasAbbrRegex(t)}function vr(){var t,e,r,s,i,n=[],a=[],o=[],c=[],l=this.eras();for(t=0,e=l.length;t<e;++t)r=ut(l[t].name),s=ut(l[t].abbr),i=ut(l[t].narrow),a.push(r),n.push(s),o.push(i),c.push(r),c.push(s),c.push(i);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function xr(t,e){F(0,[t,t.length],0,e)}function br(t,e,r,s,i){var n;return null==t?$t(this,s,i).year:(e>(n=Kt(t,s,i))&&(e=n),wr.call(this,t,e,r,s,i))}function wr(t,e,r,s,i){var n=qt(t,e,r,s,i),a=zt(n.year,0,n.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ct("N",gr),ct("NN",gr),ct("NNN",gr),ct("NNNN",(function(t,e){return e.erasNameRegex(t)})),ct("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),ft(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,r,s){var i=r._locale.erasParse(t,s,r._strict);i?m(r).era=i:m(r).invalidEra=t})),ct("y",et),ct("yy",et),ct("yyy",et),ct("yyyy",et),ct("yo",(function(t,e){return e._eraYearOrdinalRegex||et})),ft(["y","yy","yyy","yyyy"],vt),ft(["yo"],(function(t,e,r,s){var i;r._locale._eraYearOrdinalRegex&&(i=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[vt]=r._locale.eraYearOrdinalParse(t,i):e[vt]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),xr("gggg","weekYear"),xr("ggggg","weekYear"),xr("GGGG","isoWeekYear"),xr("GGGGG","isoWeekYear"),ct("G",rt),ct("g",rt),ct("GG",J,V),ct("gg",J,V),ct("GGGG",Q,$),ct("gggg",Q,$),ct("GGGGG",tt,K),ct("ggggg",tt,K),mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,r,s){e[s.substr(0,2)]=pt(t)})),mt(["gg","GG"],(function(t,e,r,s){e[s]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),ct("Q",z),ft("Q",(function(t,e){e[xt]=3*(pt(t)-1)})),F("D",["DD",2],"Do","date"),ct("D",J,at),ct("DD",J,V),ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],bt),ft("Do",(function(t,e){e[bt]=pt(t.match(J)[0])}));var Pr=Nt("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("DDD",Z),ct("DDDD",q),ft(["DDD","DDDD"],(function(t,e,r){r._dayOfYear=pt(t)})),F("m",["mm",2],0,"minute"),ct("m",J,ot),ct("mm",J,V),ft(["m","mm"],Pt);var Tr=Nt("Minutes",!1);F("s",["ss",2],0,"second"),ct("s",J,ot),ct("ss",J,V),ft(["s","ss"],Tt);var Sr,Ar,kr=Nt("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ct("S",Z,z),ct("SS",Z,V),ct("SSS",Z,q),Sr="SSSS";Sr.length<=9;Sr+="S")ct(Sr,et);function _r(t,e){e[St]=pt(1e3*("0."+t))}for(Sr="S";Sr.length<=9;Sr+="S")ft(Sr,_r);Ar=Nt("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Er=w.prototype;function Cr(t){return t}Er.add=rr,Er.calendar=function(t,e){1===arguments.length&&(arguments[0]?nr(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,r=a(t)&&!c(t),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<i.length;e+=1)s=s||o(t,i[e]);return r&&s}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||De(),s=qe(r,this).startOf("day"),n=i.calendarFormat(this,s)||"sameElse",l=e&&(E(e[n])?e[n].call(this,r):e[n]);return this.format(l||this.localeData().calendar(n,this,De(r)))},Er.clone=function(){return new w(this)},Er.diff=function(t,e,r){var s,i,n;if(!this.isValid())return NaN;if(!(s=qe(t,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),e=Y(e)){case"year":n=ar(this,s)/12;break;case"month":n=ar(this,s);break;case"quarter":n=ar(this,s)/3;break;case"second":n=(this-s)/1e3;break;case"minute":n=(this-s)/6e4;break;case"hour":n=(this-s)/36e5;break;case"day":n=(this-s-i)/864e5;break;case"week":n=(this-s-i)/6048e5;break;default:n=this-s}return r?n:ht(n)},Er.endOf=function(t){var e,r;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?yr:mr,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=pr-fr(e+(this._isUTC?0:this.utcOffset()*hr),pr)-1;break;case"minute":e=this._d.valueOf(),e+=hr-fr(e,hr)-1;break;case"second":e=this._d.valueOf(),e+=ur-fr(e,ur)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Er.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=j(this,t);return this.localeData().postformat(e)},Er.from=function(t,e){return this.isValid()&&(P(t)&&t.isValid()||De(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Er.fromNow=function(t){return this.from(De(),t)},Er.to=function(t,e){return this.isValid()&&(P(t)&&t.isValid()||De(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Er.toNow=function(t){return this.to(De(),t)},Er.get=function(t){return E(this[t=Y(t)])?this[t]():this},Er.invalidAt=function(){return m(this).overflow},Er.isAfter=function(t,e){var r=P(t)?t:De(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf())},Er.isBefore=function(t,e){var r=P(t)?t:De(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf())},Er.isBetween=function(t,e,r,s){var i=P(t)?t:De(t),n=P(e)?e:De(e);return!!(this.isValid()&&i.isValid()&&n.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===s[1]?this.isBefore(n,r):!this.isAfter(n,r))},Er.isSame=function(t,e){var r,s=P(t)?t:De(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf()))},Er.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Er.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Er.isValid=function(){return y(this)},Er.lang=cr,Er.locale=or,Er.localeData=lr,Er.max=je,Er.min=Fe,Er.parsingFlags=function(){return d({},m(this))},Er.set=function(t,e){if("object"==typeof t){var r,s=function(t){var e,r=[];for(e in t)o(t,e)&&r.push({unit:e,priority:W[e]});return r.sort((function(t,e){return t.priority-e.priority})),r}(t=U(t)),i=s.length;for(r=0;r<i;r++)this[s[r].unit](t[s[r].unit])}else if(E(this[t=Y(t)]))return this[t](e);return this},Er.startOf=function(t){var e,r;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?yr:mr,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fr(e+(this._isUTC?0:this.utcOffset()*hr),pr);break;case"minute":e=this._d.valueOf(),e-=fr(e,hr);break;case"second":e=this._d.valueOf(),e-=fr(e,ur)}return this._d.setTime(e),i.updateOffset(this,!0),this},Er.subtract=sr,Er.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Er.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Er.toDate=function(){return new Date(this.valueOf())},Er.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?j(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(r,"Z")):j(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Er.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,r,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+s+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=i+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Er[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Er.toJSON=function(){return this.isValid()?this.toISOString():null},Er.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Er.unix=function(){return Math.floor(this.valueOf()/1e3)},Er.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Er.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Er.eraName=function(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until)return s[t].name;if(s[t].until<=r&&r<=s[t].since)return s[t].name}return""},Er.eraNarrow=function(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until)return s[t].narrow;if(s[t].until<=r&&r<=s[t].since)return s[t].narrow}return""},Er.eraAbbr=function(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until)return s[t].abbr;if(s[t].until<=r&&r<=s[t].since)return s[t].abbr}return""},Er.eraYear=function(){var t,e,r,s,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=n[t].since<=n[t].until?1:-1,s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return(this.year()-i(n[t].since).year())*r+n[t].offset;return this.year()},Er.year=Ct,Er.isLeapYear=function(){return gt(this.year())},Er.weekYear=function(t){return br.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Er.isoWeekYear=function(t){return br.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Er.quarter=Er.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Er.month=Ut,Er.daysInMonth=function(){return Lt(this.year(),this.month())},Er.week=Er.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Er.isoWeek=Er.isoWeeks=function(t){var e=$t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Er.weeksInYear=function(){var t=this.localeData()._week;return Kt(this.year(),t.dow,t.doy)},Er.weeksInWeekYear=function(){var t=this.localeData()._week;return Kt(this.weekYear(),t.dow,t.doy)},Er.isoWeeksInYear=function(){return Kt(this.year(),1,4)},Er.isoWeeksInISOWeekYear=function(){return Kt(this.isoWeekYear(),1,4)},Er.date=Pr,Er.day=Er.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=It(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Er.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Er.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Er.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Er.hour=Er.hours=ce,Er.minute=Er.minutes=Tr,Er.second=Er.seconds=kr,Er.millisecond=Er.milliseconds=Ar,Er.utcOffset=function(t,e,r){var s,n=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ve(it,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&e&&(s=$e(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),n!==t&&(!e||this._changeInProgress?er(this,Xe(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:$e(this)},Er.utc=function(t){return this.utcOffset(0,t)},Er.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($e(this),"m")),this},Er.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ve(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Er.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Er.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Er.isLocal=function(){return!!this.isValid()&&!this._isUTC},Er.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Er.isUtc=Ke,Er.isUTC=Ke,Er.zoneAbbr=function(){return this._isUTC?"UTC":""},Er.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Er.dates=S("dates accessor is deprecated. Use date instead.",Pr),Er.months=S("months accessor is deprecated. Use month instead",Ut),Er.years=S("years accessor is deprecated. Use year instead",Ct),Er.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Er.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=Le(e))._a?(t=e._isUTC?f(e._a):De(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var r,s=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),n=0;for(r=0;r<s;r++)pt(t[r])!==pt(e[r])&&n++;return n+i}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Nr=N.prototype;function Ir(t,e,r,s){var i=ge(),n=f().set(s,e);return i[r](n,t)}function Mr(t,e,r){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ir(t,e,r,"month");var s,i=[];for(s=0;s<12;s++)i[s]=Ir(t,s,r,"month");return i}function Lr(t,e,r,s){"boolean"==typeof t?(u(e)&&(r=e,e=void 0),e=e||""):(r=e=t,t=!1,u(e)&&(r=e,e=void 0),e=e||"");var i,n=ge(),a=t?n._week.dow:0,o=[];if(null!=r)return Ir(e,(r+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Ir(e,(i+a)%7,s,"day");return o}Nr.calendar=function(t,e,r){var s=this._calendar[t]||this._calendar.sameElse;return E(s)?s.call(e,r):s},Nr.longDateFormat=function(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(M).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Nr.invalidDate=function(){return this._invalidDate},Nr.ordinal=function(t){return this._ordinal.replace("%d",t)},Nr.preparse=Cr,Nr.postformat=Cr,Nr.relativeTime=function(t,e,r,s){var i=this._relativeTime[r];return E(i)?i(t,e,r,s):i.replace(/%d/i,t)},Nr.pastFuture=function(t,e){var r=this._relativeTime[t>0?"future":"past"];return E(r)?r(e):r.replace(/%s/i,e)},Nr.set=function(t){var e,r;for(r in t)o(t,r)&&(E(e=t[r])?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Nr.eras=function(t,e){var r,s,n,a=this._eras||ge("en")._eras;for(r=0,s=a.length;r<s;++r)switch("string"==typeof a[r].since&&(n=i(a[r].since).startOf("day"),a[r].since=n.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=i(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf()}return a},Nr.erasParse=function(t,e,r){var s,i,n,a,o,c=this.eras();for(t=t.toUpperCase(),s=0,i=c.length;s<i;++s)if(n=c[s].name.toUpperCase(),a=c[s].abbr.toUpperCase(),o=c[s].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(a===t)return c[s];break;case"NNNN":if(n===t)return c[s];break;case"NNNNN":if(o===t)return c[s]}else if([n,a,o].indexOf(t)>=0)return c[s]},Nr.erasConvertYear=function(t,e){var r=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*r},Nr.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||vr.call(this),t?this._erasAbbrRegex:this._erasRegex},Nr.erasNameRegex=function(t){return o(this,"_erasNameRegex")||vr.call(this),t?this._erasNameRegex:this._erasRegex},Nr.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||vr.call(this),t?this._erasNarrowRegex:this._erasRegex},Nr.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ft).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},Nr.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ft.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Nr.monthsParse=function(t,e,r){var s,i,n;if(this._monthsParseExact)return Bt.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=f([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[s]||(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(n.replace(".",""),"i")),r&&"MMMM"===e&&this._longMonthsParse[s].test(t))return s;if(r&&"MMM"===e&&this._shortMonthsParse[s].test(t))return s;if(!r&&this._monthsParse[s].test(t))return s}},Nr.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Rt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Nr.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Nr.week=function(t){return $t(t,this._week.dow,this._week.doy).week},Nr.firstDayOfYear=function(){return this._week.doy},Nr.firstDayOfWeek=function(){return this._week.dow},Nr.weekdays=function(t,e){var r=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Jt(r,this._week.dow):t?r[t.day()]:r},Nr.weekdaysMin=function(t){return!0===t?Jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Nr.weekdaysShort=function(t){return!0===t?Jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Nr.weekdaysParse=function(t,e,r){var s,i,n;if(this._weekdaysParseExact)return re.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=f([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(n.replace(".",""),"i")),r&&"dddd"===e&&this._fullWeekdaysParse[s].test(t))return s;if(r&&"ddd"===e&&this._shortWeekdaysParse[s].test(t))return s;if(r&&"dd"===e&&this._minWeekdaysParse[s].test(t))return s;if(!r&&this._weekdaysParse[s].test(t))return s}},Nr.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Qt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Nr.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Nr.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Nr.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Nr.meridiem=function(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"},me("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===pt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",me),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ge);var Or=Math.abs;function Dr(t,e,r,s){var i=Xe(e,r);return t._milliseconds+=s*i._milliseconds,t._days+=s*i._days,t._months+=s*i._months,t._bubble()}function Fr(t){return t<0?Math.floor(t):Math.ceil(t)}function jr(t){return 4800*t/146097}function Rr(t){return 146097*t/4800}function Br(t){return function(){return this.as(t)}}var Yr=Br("ms"),Ur=Br("s"),Hr=Br("m"),Wr=Br("h"),zr=Br("d"),Vr=Br("w"),qr=Br("M"),$r=Br("Q"),Kr=Br("y"),Jr=Yr;function Gr(t){return function(){return this.isValid()?this._data[t]:NaN}}var Xr=Gr("milliseconds"),Zr=Gr("seconds"),Qr=Gr("minutes"),ts=Gr("hours"),es=Gr("days"),rs=Gr("months"),ss=Gr("years"),is=Math.round,ns={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function as(t,e,r,s,i){return i.relativeTime(e||1,!!r,t,s)}var os=Math.abs;function cs(t){return(t>0)-(t<0)||+t}function ls(){if(!this.isValid())return this.localeData().invalidDate();var t,e,r,s,i,n,a,o,c=os(this._milliseconds)/1e3,l=os(this._days),u=os(this._months),h=this.asSeconds();return h?(t=ht(c/60),e=ht(t/60),c%=60,t%=60,r=ht(u/12),u%=12,s=c?c.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",n=cs(this._months)!==cs(h)?"-":"",a=cs(this._days)!==cs(h)?"-":"",o=cs(this._milliseconds)!==cs(h)?"-":"",i+"P"+(r?n+r+"Y":"")+(u?n+u+"M":"")+(l?a+l+"D":"")+(e||t||c?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(c?o+s+"S":"")):"P0D"}var us=Ye.prototype;return us.isValid=function(){return this._isValid},us.abs=function(){var t=this._data;return this._milliseconds=Or(this._milliseconds),this._days=Or(this._days),this._months=Or(this._months),t.milliseconds=Or(t.milliseconds),t.seconds=Or(t.seconds),t.minutes=Or(t.minutes),t.hours=Or(t.hours),t.months=Or(t.months),t.years=Or(t.years),this},us.add=function(t,e){return Dr(this,t,e,1)},us.subtract=function(t,e){return Dr(this,t,e,-1)},us.as=function(t){if(!this.isValid())return NaN;var e,r,s=this._milliseconds;if("month"===(t=Y(t))||"quarter"===t||"year"===t)switch(e=this._days+s/864e5,r=this._months+jr(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Rr(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw new Error("Unknown unit "+t)}},us.asMilliseconds=Yr,us.asSeconds=Ur,us.asMinutes=Hr,us.asHours=Wr,us.asDays=zr,us.asWeeks=Vr,us.asMonths=qr,us.asQuarters=$r,us.asYears=Kr,us.valueOf=Jr,us._bubble=function(){var t,e,r,s,i,n=this._milliseconds,a=this._days,o=this._months,c=this._data;return n>=0&&a>=0&&o>=0||n<=0&&a<=0&&o<=0||(n+=864e5*Fr(Rr(o)+a),a=0,o=0),c.milliseconds=n%1e3,t=ht(n/1e3),c.seconds=t%60,e=ht(t/60),c.minutes=e%60,r=ht(e/60),c.hours=r%24,a+=ht(r/24),o+=i=ht(jr(a)),a-=Fr(Rr(i)),s=ht(o/12),o%=12,c.days=a,c.months=o,c.years=s,this},us.clone=function(){return Xe(this)},us.get=function(t){return t=Y(t),this.isValid()?this[t+"s"]():NaN},us.milliseconds=Xr,us.seconds=Zr,us.minutes=Qr,us.hours=ts,us.days=es,us.weeks=function(){return ht(this.days()/7)},us.months=rs,us.years=ss,us.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var r,s,i=!1,n=ns;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(n=Object.assign({},ns,e),null!=e.s&&null==e.ss&&(n.ss=e.s-1)),s=function(t,e,r,s){var i=Xe(t).abs(),n=is(i.as("s")),a=is(i.as("m")),o=is(i.as("h")),c=is(i.as("d")),l=is(i.as("M")),u=is(i.as("w")),h=is(i.as("y")),p=n<=r.ss&&["s",n]||n<r.s&&["ss",n]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||c<=1&&["d"]||c<r.d&&["dd",c];return null!=r.w&&(p=p||u<=1&&["w"]||u<r.w&&["ww",u]),(p=p||l<=1&&["M"]||l<r.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=e,p[3]=+t>0,p[4]=s,as.apply(null,p)}(this,!i,n,r=this.localeData()),i&&(s=r.pastFuture(+this,s)),r.postformat(s)},us.toISOString=ls,us.toString=ls,us.toJSON=ls,us.locale=or,us.localeData=lr,us.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ls),us.lang=cr,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ct("x",rt),ct("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,r){r._d=new Date(1e3*parseFloat(t))})),ft("x",(function(t,e,r){r._d=new Date(pt(t))})),i.version="2.30.1",e=De,i.fn=Er,i.min=function(){return Re("isBefore",[].slice.call(arguments,0))},i.max=function(){return Re("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return De(1e3*t)},i.months=function(t,e){return Mr(t,e,"months")},i.isDate=h,i.locale=me,i.invalid=g,i.duration=Xe,i.isMoment=P,i.weekdays=function(t,e,r){return Lr(t,e,r,"weekdays")},i.parseZone=function(){return De.apply(null,arguments).parseZone()},i.localeData=ge,i.isDuration=Ue,i.monthsShort=function(t,e){return Mr(t,e,"monthsShort")},i.weekdaysMin=function(t,e,r){return Lr(t,e,r,"weekdaysMin")},i.defineLocale=ye,i.updateLocale=function(t,e){if(null!=e){var r,s,i=le;null!=ue[t]&&null!=ue[t].parentLocale?ue[t].set(C(ue[t]._config,e)):(null!=(s=fe(t))&&(i=s._config),e=C(i,e),null==s&&(e.abbr=t),(r=new N(e)).parentLocale=ue[t],ue[t]=r),me(t)}else null!=ue[t]&&(null!=ue[t].parentLocale?(ue[t]=ue[t].parentLocale,t===me()&&me(t)):null!=ue[t]&&delete ue[t]);return ue[t]},i.locales=function(){return A(ue)},i.weekdaysShort=function(t,e,r){return Lr(t,e,r,"weekdaysShort")},i.normalizeUnits=Y,i.relativeTimeRounding=function(t){return void 0===t?is:"function"==typeof t&&(is=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==ns[t]&&(void 0===e?ns[t]:(ns[t]=e,"s"===t&&(ns.ss=e-1),!0))},i.calendarFormat=function(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},i.prototype=Er,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9515:(t,e,r)=>{"use strict";var s=r(9142);t.exports=s},9590:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({include:[r(8774)],implicit:[r(4938),r(7042)],explicit:[r(273),r(3901),r(343),r(6562)]})},9669:(t,e,r)=>{"use strict";function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},s.apply(null,arguments)}function i(t){return"/"===t.charAt(0)}function n(t,e){for(var r=e,s=r+1,i=t.length;s<i;r+=1,s+=1)t[r]=t[s];t.pop()}r.r(e),r.d(e,{createBrowserHistory:()=>k,createHashHistory:()=>M,createLocation:()=>v,createMemoryHistory:()=>O,createPath:()=>g,locationsAreEqual:()=>x,parsePath:()=>y});const a=function(t,e){void 0===e&&(e="");var r,s=t&&t.split("/")||[],a=e&&e.split("/")||[],o=t&&i(t),c=e&&i(e),l=o||c;if(t&&i(t)?a=s:s.length&&(a.pop(),a=a.concat(s)),!a.length)return"/";if(a.length){var u=a[a.length-1];r="."===u||".."===u||""===u}else r=!1;for(var h=0,p=a.length;p>=0;p--){var d=a[p];"."===d?n(a,p):".."===d?(n(a,p),h++):h&&(n(a,p),h--)}if(!l)for(;h--;h)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var f=a.join("/");return r&&"/"!==f.substr(-1)&&(f+="/"),f};function o(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const c=function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every((function(e,s){return t(e,r[s])}));if("object"==typeof e||"object"==typeof r){var s=o(e),i=o(r);return s!==e||i!==r?t(s,i):Object.keys(Object.assign({},e,r)).every((function(s){return t(e[s],r[s])}))}return!1};var l=!0,u="Invariant failed";function h(t,e){if(!t){if(l)throw new Error(u);var r="function"==typeof e?e():e,s=r?"".concat(u,": ").concat(r):u;throw new Error(s)}}function p(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function m(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function y(t){var e=t||"/",r="",s="",i=e.indexOf("#");-1!==i&&(s=e.substr(i),e=e.substr(0,i));var n=e.indexOf("?");return-1!==n&&(r=e.substr(n),e=e.substr(0,n)),{pathname:e,search:"?"===r?"":r,hash:"#"===s?"":s}}function g(t){var e=t.pathname,r=t.search,s=t.hash,i=e||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(i+="#"===s.charAt(0)?s:"#"+s),i}function v(t,e,r,i){var n;"string"==typeof t?(n=y(t)).state=e:(void 0===(n=s({},t)).pathname&&(n.pathname=""),n.search?"?"!==n.search.charAt(0)&&(n.search="?"+n.search):n.search="",n.hash?"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash):n.hash="",void 0!==e&&void 0===n.state&&(n.state=e));try{n.pathname=decodeURI(n.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return r&&(n.key=r),i?n.pathname?"/"!==n.pathname.charAt(0)&&(n.pathname=a(n.pathname,i.pathname)):n.pathname=i.pathname:n.pathname||(n.pathname="/"),n}function x(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&c(t.state,e.state)}function b(){var t=null,e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,r,s,i){if(null!=t){var n="function"==typeof t?t(e,r):t;"string"==typeof n?"function"==typeof s?s(n,i):i(!0):i(!1!==n)}else i(!0)},appendListener:function(t){var r=!0;function s(){r&&t.apply(void 0,arguments)}return e.push(s),function(){r=!1,e=e.filter((function(t){return t!==s}))}},notifyListeners:function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];e.forEach((function(t){return t.apply(void 0,r)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function P(t,e){e(window.confirm(t))}var T="popstate",S="hashchange";function A(){try{return window.history.state||{}}catch(t){return{}}}function k(t){void 0===t&&(t={}),w||h(!1);var e,r=window.history,i=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,n=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,o=a.forceRefresh,c=void 0!==o&&o,l=a.getUserConfirmation,u=void 0===l?P:l,d=a.keyLength,y=void 0===d?6:d,x=t.basename?m(p(t.basename)):"";function k(t){var e=t||{},r=e.key,s=e.state,i=window.location,n=i.pathname+i.search+i.hash;return x&&(n=f(n,x)),v(n,s,r)}function _(){return Math.random().toString(36).substr(2,y)}var E=b();function C(t){s(U,t),U.length=r.length,E.notifyListeners(U.location,U.action)}function N(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(k(t.state))}function I(){L(k(A()))}var M=!1;function L(t){M?(M=!1,C()):E.confirmTransitionTo(t,"POP",u,(function(e){e?C({action:"POP",location:t}):function(t){var e=U.location,r=D.indexOf(e.key);-1===r&&(r=0);var s=D.indexOf(t.key);-1===s&&(s=0);var i=r-s;i&&(M=!0,j(i))}(t)}))}var O=k(A()),D=[O.key];function F(t){return x+g(t)}function j(t){r.go(t)}var R=0;function B(t){1===(R+=t)&&1===t?(window.addEventListener(T,N),n&&window.addEventListener(S,I)):0===R&&(window.removeEventListener(T,N),n&&window.removeEventListener(S,I))}var Y=!1,U={length:r.length,action:"POP",location:O,createHref:F,push:function(t,e){var s="PUSH",n=v(t,e,_(),U.location);E.confirmTransitionTo(n,s,u,(function(t){if(t){var e=F(n),a=n.key,o=n.state;if(i)if(r.pushState({key:a,state:o},null,e),c)window.location.href=e;else{var l=D.indexOf(U.location.key),u=D.slice(0,l+1);u.push(n.key),D=u,C({action:s,location:n})}else window.location.href=e}}))},replace:function(t,e){var s="REPLACE",n=v(t,e,_(),U.location);E.confirmTransitionTo(n,s,u,(function(t){if(t){var e=F(n),a=n.key,o=n.state;if(i)if(r.replaceState({key:a,state:o},null,e),c)window.location.replace(e);else{var l=D.indexOf(U.location.key);-1!==l&&(D[l]=n.key),C({action:s,location:n})}else window.location.replace(e)}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(t){void 0===t&&(t=!1);var e=E.setPrompt(t);return Y||(B(1),Y=!0),function(){return Y&&(Y=!1,B(-1)),e()}},listen:function(t){var e=E.appendListener(t);return B(1),function(){B(-1),e()}}};return U}var _="hashchange",E={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:p},slash:{encodePath:p,decodePath:p}};function C(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function N(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function I(t){window.location.replace(C(window.location.href)+"#"+t)}function M(t){void 0===t&&(t={}),w||h(!1);var e=window.history,r=(window.navigator.userAgent.indexOf("Firefox"),t),i=r.getUserConfirmation,n=void 0===i?P:i,a=r.hashType,o=void 0===a?"slash":a,c=t.basename?m(p(t.basename)):"",l=E[o],u=l.encodePath,d=l.decodePath;function y(){var t=d(N());return c&&(t=f(t,c)),v(t)}var x=b();function T(t){s(Y,t),Y.length=e.length,x.notifyListeners(Y.location,Y.action)}var S=!1,A=null;function k(){var t,e,r=N(),s=u(r);if(r!==s)I(s);else{var i=y(),a=Y.location;if(!S&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===g(i))return;A=null,function(t){S?(S=!1,T()):x.confirmTransitionTo(t,"POP",n,(function(e){e?T({action:"POP",location:t}):function(t){var e=Y.location,r=D.lastIndexOf(g(e));-1===r&&(r=0);var s=D.lastIndexOf(g(t));-1===s&&(s=0);var i=r-s;i&&(S=!0,F(i))}(t)}))}(i)}}var M=N(),L=u(M);M!==L&&I(L);var O=y(),D=[g(O)];function F(t){e.go(t)}var j=0;function R(t){1===(j+=t)&&1===t?window.addEventListener(_,k):0===j&&window.removeEventListener(_,k)}var B=!1,Y={length:e.length,action:"POP",location:O,createHref:function(t){var e=document.querySelector("base"),r="";return e&&e.getAttribute("href")&&(r=C(window.location.href)),r+"#"+u(c+g(t))},push:function(t,e){var r="PUSH",s=v(t,void 0,void 0,Y.location);x.confirmTransitionTo(s,r,n,(function(t){if(t){var e=g(s),i=u(c+e);if(N()!==i){A=e,function(t){window.location.hash=t}(i);var n=D.lastIndexOf(g(Y.location)),a=D.slice(0,n+1);a.push(e),D=a,T({action:r,location:s})}else T()}}))},replace:function(t,e){var r="REPLACE",s=v(t,void 0,void 0,Y.location);x.confirmTransitionTo(s,r,n,(function(t){if(t){var e=g(s),i=u(c+e);N()!==i&&(A=e,I(i));var n=D.indexOf(g(Y.location));-1!==n&&(D[n]=e),T({action:r,location:s})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(t){void 0===t&&(t=!1);var e=x.setPrompt(t);return B||(R(1),B=!0),function(){return B&&(B=!1,R(-1)),e()}},listen:function(t){var e=x.appendListener(t);return R(1),function(){R(-1),e()}}};return Y}function L(t,e,r){return Math.min(Math.max(t,e),r)}function O(t){void 0===t&&(t={});var e=t,r=e.getUserConfirmation,i=e.initialEntries,n=void 0===i?["/"]:i,a=e.initialIndex,o=void 0===a?0:a,c=e.keyLength,l=void 0===c?6:c,u=b();function h(t){s(x,t),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,l)}var d=L(o,0,n.length-1),f=n.map((function(t){return v(t,void 0,"string"==typeof t?p():t.key||p())})),m=g;function y(t){var e=L(x.index+t,0,x.entries.length-1),s=x.entries[e];u.confirmTransitionTo(s,"POP",r,(function(t){t?h({action:"POP",location:s,index:e}):h()}))}var x={length:f.length,action:"POP",location:f[d],index:d,entries:f,createHref:m,push:function(t,e){var s="PUSH",i=v(t,e,p(),x.location);u.confirmTransitionTo(i,s,r,(function(t){if(t){var e=x.index+1,r=x.entries.slice(0);r.length>e?r.splice(e,r.length-e,i):r.push(i),h({action:s,location:i,index:e,entries:r})}}))},replace:function(t,e){var s="REPLACE",i=v(t,e,p(),x.location);u.confirmTransitionTo(i,s,r,(function(t){t&&(x.entries[x.index]=i,h({action:s,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=x.index+t;return e>=0&&e<x.entries.length},block:function(t){return void 0===t&&(t=!1),u.setPrompt(t)},listen:function(t){return u.appendListener(t)}};return x}}}]);